/*! For license information please see graphQLOverview.js.LICENSE.txt */
!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t,n){"use strict";(function(e,i){function r(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 o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return Ia})),n.d(t,"b",(function(){return xu})),n.d(t,"c",(function(){return gu})),n.d(t,"d",(function(){return Ag})),n.d(t,"e",(function(){return Ce})),n.d(t,"f",(function(){return Fa})),n.d(t,"g",(function(){return Aa})),n.d(t,"h",(function(){return Og})),n.d(t,"i",(function(){return Sm})),n.d(t,"j",(function(){return Qr})),n.d(t,"k",(function(){return ru})),n.d(t,"l",(function(){return ga})),n.d(t,"m",(function(){return K})),n.d(t,"n",(function(){return ya})),n.d(t,"o",(function(){return el})),n.d(t,"p",(function(){return pv})),n.d(t,"q",(function(){return P})),n.d(t,"r",(function(){return Ms})),n.d(t,"s",(function(){return Am})),n.d(t,"t",(function(){return ku})),n.d(t,"u",(function(){return Po})),n.d(t,"v",(function(){return w})),n.d(t,"w",(function(){return L})),n.d(t,"x",(function(){return ne})),n.d(t,"y",(function(){return Em})),n.d(t,"z",(function(){return jv}));class s{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 a=function(){let e;return{getInstance:function(){return e||(e=new s),e}}}();class c{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 l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();function u(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function d(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 h(){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 p(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function f(e,t){return m(e,"trk",t)}function m(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=p(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 g(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 v(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(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 E(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function _(e){return"string"!=typeof e?null:e.split("?")[0]}var w=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:a,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:p,addTrackingCode:f,addQueryParam:m,debounce:g,getCookie:v,dispatchCustomEvent:y,getDeferredPromise:b,isDocumentHidden:E,stripQueryParams:_,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=m(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 T(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 S(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function k(){var e,t;const n=null===(e=window.atob(v("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function C(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function I(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function A(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var L=Object.freeze({__proto__:null,getPageKey:T,getPageTag:S,getLiSugrCookie:function(){return v("li_sugr")},getGuestRetargetingOptOut:k,getLocale:C,getDomain:I,trimDoubleQuotes:A});const O={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},R={Down:O.ARROW_DOWN,Right:O.ARROW_RIGHT,Left:O.ARROW_LEFT,Up:O.ARROW_UP,Esc:O.ESCAPE,Spacebar:O.SPACEBAR,Tab:O.TAB};function N(e){return R[e]||e}var P=Object.freeze({__proto__:null,KEYS:O,normalizeKeyBoardEventKey:N});class x{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("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(N(e.key)){case O.ENTER:case O.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case O.ARROW_UP:this.isOpen||this._open(e);break;case O.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){N(e.key)===O.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=N(e.key);if(t===O.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case O.SPACEBAR:y(e.target,"click");break;case O.ARROW_LEFT:case O.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case O.ARROW_RIGHT:case O.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(i,"focusEl")}}}_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)),y(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)),y(this.el,"close"),e&&this.mainButton.focus())}}let M,D;const U=['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^="-"])'],B=[...U,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),F=[...U,"[tabindex]:not([disabled])"].join(",");function q(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function H(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?!q(e):i&&i.get(e)?i.get(e):(q(e)?t=!1:e.parentNode&&(t=H(e.parentNode,n,i)),i&&i.set(e,t),t)}const j=["CODE","TEMPLATE","SCRIPT"],z={POLITE:"polite",ASSERTIVE:"assertive"};function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z.POLITE;M&&(M.removeAttribute("aria-hidden"),M.setAttribute("aria-live",z.POLITE),M.textContent="",M.textContent=e,M.setAttribute("aria-live",t),clearTimeout(D),D=setTimeout(()=>{M.removeAttribute("aria-live"),M.setAttribute("aria-hidden","true")},1e4))}function W(){M=function(){let e=document.querySelector("#a11y-alert-container");return e||(e=document.createElement("div"),e.setAttribute("role","region"),e.setAttribute("aria-live","polite"),e.setAttribute("id","a11y-alert-container"),e.classList.add("visually-hidden"),document.body.appendChild(e)),e}()}var K=Object.freeze({__proto__:null,FOCUSABLE_ELEMS:B,FOCUSABLE_ELEMS_INCLUDING_NEGATIVE_TABINDEX:F,isElVisible:H,ARIA_NON_ACCESSIBLE_NODE_NAMES:j,ARIA_POLITENESS_SETTING:z,resetLiveContent:G,getLiveRegionEl:W});class V{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 Y=["class","disabled","style","tabindex","type"];class J{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 V(this._container)}init(){this._observer.observe(this._container,{attributeFilter:Y,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=N(t),r=i===O.TAB&&e.shiftKey;!r&&i===O.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(B)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=H(r,e,n)&&r,o++}if(!r){const i=t[s];r=H(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const Q=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function X(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&Q.test(e)}const Z=".".concat("collapsible-dropdown","__list"),$=".".concat("collapsible-dropdown","__button"),ee=".".concat("collapsible-dropdown","__close-button");class te{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(B)),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(Z),this._closeButton=this.el.querySelector(ee),this._isMobile=X();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new J(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(B),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($),this.hideClass="hidden",this.collapsible=new x(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("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),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 ne(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=v("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",A(e))}c.send(o)});return s&&(a.length?ie(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function ie(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?re(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 re(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 oe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},se=/^\s+|\s+$/g,ae=/^[-+]0x[0-9a-f]+$/i,ce=/^0b[01]+$/i,le=/^0o[0-7]+$/i,ue=parseInt,de="object"==typeof oe&&oe&&oe.Object===Object&&oe,he="object"==typeof self&&self&&self.Object===Object&&self,pe=de||he||Function("return this")(),fe=Object.prototype.toString,me=Math.max,ge=Math.min,ve=function(){return pe.Date.now()};function ye(e,t,n){var i,r,o,s,a,c,l=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=i,o=r;return i=r=void 0,l=t,s=e.apply(o,n)}function f(e){return l=e,a=setTimeout(g,t),u?p(e):s}function m(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function g(){var e=ve();if(m(e))return v(e);a=setTimeout(g,function(e){var n=t-(e-c);return d?ge(n,o-(e-l)):n}(e))}function v(e){return a=void 0,h&&i?p(e):(i=r=void 0,s)}function y(){var e=ve(),n=m(e);if(i=arguments,r=this,c=e,n){if(void 0===a)return f(c);if(d)return a=setTimeout(g,t),p(c)}return void 0===a&&(a=setTimeout(g,t)),s}return t=Ee(t)||0,be(n)&&(u=!!n.leading,o=(d="maxWait"in n)?me(Ee(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==a&&clearTimeout(a),l=0,i=c=r=a=void 0},y.flush=function(){return void 0===a?s:v(ve())},y}function be(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ee(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==fe.call(e)}(e))return NaN;if(be(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=be(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(se,"");var n=ce.test(e);return n||le.test(e)?ue(e.slice(2),n?2:8):ae.test(e)?NaN:+e}var _e=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return be(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ye(e,t,{leading:i,maxWait:t,trailing:r})};const we=".loader",Te=".infinite-scroller__show-more-button",Se=0,ke=10;class Ce{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,{threshold:t=Se,scrollLoadLimit:n=ke,useDebounce:i=!1,wait:r=1e3,loadResults:o,onLoading:s=this._defaultOnLoading,onDoneLoading:a=this._defaultOnDoneLoading,loaderEl:c=document.querySelector(we),showMoreButtonEl:l=document.querySelector(Te),isReverse:u=!1,listEl:d,getFocusItemFromListItem:h=(e=>e.querySelector(F))}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)throw new Error("loadResults should be passed to the component");if(n<=0)throw new Error("scrollLoadLimit should be greater than 0, if you only need the button and not the scroller do not use this module");l&&!d&&console.error("A list element is required for accessibility focus if a showMoreButtonEl is present"),this.el=e,this.threshold=t,this.scrollLoadLimit=n,this.useDebounce=i,this.wait=r,this.loaderEl=c,this.onLoading=s,this.onDoneLoading=a,this.loadResults=o,this.showMoreButtonEl=l,this.isReverse=u,this.listEl=d,this._getFocusItemFromListItem=h,this.isLoading=!1,this.loadNumber=0,this._onScroll=this._onScroll.bind(this),this._onClick=this._onClick.bind(this),this._scrollListener=this.useDebounce?g(this._onScroll,this.wait):_e(this._onScroll,this.wait),this._attachScrollEventListener(),this._onScroll()}_defaultOnLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!0:this.loaderEl&&this.loaderEl.classList.add("loader--show")}_defaultOnDoneLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!1:this.loaderEl&&this.loaderEl.classList.remove("loader--show")}_onScroll(){!this.isLoading&&h(this.el,this.threshold,this.isReverse)&&(this.isLoading=!0,this.onLoading(),this.loadResults().finally(()=>{this.onDoneLoading(),this.isLoading=!1,++this.loadNumber>=this.scrollLoadLimit&&(this.removeInfiniteScroller(),this.showMoreButtonEl&&this._switchToShowMoreButton())}))}_onClick(){var e,t;const n=(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)||0;this.onLoading(),this.loadResults().finally(()=>{var e,t;if(this.onDoneLoading(),(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)>n){var i,r;const e=null===(i=this.listEl)||void 0===i||null===(r=i.children)||void 0===r?void 0:r[n];let t=this._getFocusItemFromListItem(e);t&&t.focus()}})}_switchToShowMoreButton(){this.isShowMoreButtonTheTrigger=!0,this.showMoreButtonEl.classList.add("infinite-scroller__show-more-button--visible"),this.showMoreButtonEl.addEventListener("click",this._onClick)}removeInfiniteScroller(){this.isShowMoreButtonTheTrigger?(this.showMoreButtonEl.removeEventListener("click",this._onClick),this.showMoreButtonEl.classList.remove("infinite-scroller__show-more-button--visible")):this.el.removeEventListener("scroll",this._scrollListener),y(this.el,"infinite-scroller-removed")}_attachScrollEventListener(){this.el.addEventListener("scroll",this._scrollListener)}}function Ie(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 Ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ie(Object(n),!0).forEach((function(t){Le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oe(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 Re="light",Ne="dark";function Pe(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Ne:Re:void 0}var xe;function Me(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)||je(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 De(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=je(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 Ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Be(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 Fe(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){return function(e){if(Array.isArray(e))return ze(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||je(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 je(e,t){if(e){if("string"==typeof e)return ze(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)?ze(e,t):void 0}}function ze(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 Ge(e){return(Ge="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 We,Ke=new Uint8Array(16);function Ve(){if(!We&&!(We="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 We(Ke)}var Ye=/^(?:[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&&Ye.test(e)}for(var Qe=[],Xe=0;Xe<256;++Xe)Qe.push((Xe+256).toString(16).substr(1));function Ze(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Qe[e[t+0]]+Qe[e[t+1]]+Qe[e[t+2]]+Qe[e[t+3]]+"-"+Qe[e[t+4]]+Qe[e[t+5]]+"-"+Qe[e[t+6]]+Qe[e[t+7]]+"-"+Qe[e[t+8]]+Qe[e[t+9]]+"-"+Qe[e[t+10]]+Qe[e[t+11]]+Qe[e[t+12]]+Qe[e[t+13]]+Qe[e[t+14]]+Qe[e[t+15]]).toLowerCase();if(!Je(n))throw TypeError("Stringified UUID is invalid");return n}function $e(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 et(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=$e(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 Ze(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function tt(e){return 14+(e+64>>>9<<4)+1}function nt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function it(e,t,n,i,r,o){return nt((s=nt(nt(t,e),nt(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function rt(e,t,n,i,r,o,s){return it(t&n|~t&i,e,t,r,o,s)}function ot(e,t,n,i,r,o,s){return it(t&i|n&~i,e,t,r,o,s)}function st(e,t,n,i,r,o,s){return it(t^n^i,e,t,r,o,s)}function at(e,t,n,i,r,o,s){return it(n^(t|~i),e,t,r,o,s)}function ct(e,t,n){var i=(e=e||{}).random||(e.rng||Ve)();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 Ze(i)}function lt(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function ut(e,t){return e<<t|e>>>32-t}et("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[tt(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=rt(n,i,r,o,e[s],7,-680876936),o=rt(o,n,i,r,e[s+1],12,-389564586),r=rt(r,o,n,i,e[s+2],17,606105819),i=rt(i,r,o,n,e[s+3],22,-1044525330),n=rt(n,i,r,o,e[s+4],7,-176418897),o=rt(o,n,i,r,e[s+5],12,1200080426),r=rt(r,o,n,i,e[s+6],17,-1473231341),i=rt(i,r,o,n,e[s+7],22,-45705983),n=rt(n,i,r,o,e[s+8],7,1770035416),o=rt(o,n,i,r,e[s+9],12,-1958414417),r=rt(r,o,n,i,e[s+10],17,-42063),i=rt(i,r,o,n,e[s+11],22,-1990404162),n=rt(n,i,r,o,e[s+12],7,1804603682),o=rt(o,n,i,r,e[s+13],12,-40341101),r=rt(r,o,n,i,e[s+14],17,-1502002290),n=ot(n,i=rt(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=ot(o,n,i,r,e[s+6],9,-1069501632),r=ot(r,o,n,i,e[s+11],14,643717713),i=ot(i,r,o,n,e[s],20,-373897302),n=ot(n,i,r,o,e[s+5],5,-701558691),o=ot(o,n,i,r,e[s+10],9,38016083),r=ot(r,o,n,i,e[s+15],14,-660478335),i=ot(i,r,o,n,e[s+4],20,-405537848),n=ot(n,i,r,o,e[s+9],5,568446438),o=ot(o,n,i,r,e[s+14],9,-1019803690),r=ot(r,o,n,i,e[s+3],14,-187363961),i=ot(i,r,o,n,e[s+8],20,1163531501),n=ot(n,i,r,o,e[s+13],5,-1444681467),o=ot(o,n,i,r,e[s+2],9,-51403784),r=ot(r,o,n,i,e[s+7],14,1735328473),n=st(n,i=ot(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=st(o,n,i,r,e[s+8],11,-2022574463),r=st(r,o,n,i,e[s+11],16,1839030562),i=st(i,r,o,n,e[s+14],23,-35309556),n=st(n,i,r,o,e[s+1],4,-1530992060),o=st(o,n,i,r,e[s+4],11,1272893353),r=st(r,o,n,i,e[s+7],16,-155497632),i=st(i,r,o,n,e[s+10],23,-1094730640),n=st(n,i,r,o,e[s+13],4,681279174),o=st(o,n,i,r,e[s],11,-358537222),r=st(r,o,n,i,e[s+3],16,-722521979),i=st(i,r,o,n,e[s+6],23,76029189),n=st(n,i,r,o,e[s+9],4,-640364487),o=st(o,n,i,r,e[s+12],11,-421815835),r=st(r,o,n,i,e[s+15],16,530742520),n=at(n,i=st(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=at(o,n,i,r,e[s+7],10,1126891415),r=at(r,o,n,i,e[s+14],15,-1416354905),i=at(i,r,o,n,e[s+5],21,-57434055),n=at(n,i,r,o,e[s+12],6,1700485571),o=at(o,n,i,r,e[s+3],10,-1894986606),r=at(r,o,n,i,e[s+10],15,-1051523),i=at(i,r,o,n,e[s+1],21,-2054922799),n=at(n,i,r,o,e[s+8],6,1873313359),o=at(o,n,i,r,e[s+15],10,-30611744),r=at(r,o,n,i,e[s+6],15,-1560198380),i=at(i,r,o,n,e[s+13],21,1309151649),n=at(n,i,r,o,e[s+4],6,-145523070),o=at(o,n,i,r,e[s+11],10,-1120210379),r=at(r,o,n,i,e[s+2],15,718787259),i=at(i,r,o,n,e[s+9],21,-343485551),n=nt(n,a),i=nt(i,c),r=nt(r,l),o=nt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(tt(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),et("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]=ut(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],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=ut(m,5)+lt(_,g,v,y)+b+t[_]+h[E]>>>0;b=y,y=v,v=ut(g,30)>>>0,g=m,m=w}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]+b>>>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 dt=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var ht=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(ht){var pt=new Uint8Array(256),ft=pt.length;dt={rng:function(){return ft>pt.length-16&&(ht.randomFillSync(pt),ft=0),pt.slice(ft,ft+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ge(crypto))&&crypto.randomUUID;function mt(){return ct(dt,new Array(16),0)}function gt(e){return He(e).map((function(e){return String.fromCharCode(e)})).join("")}function vt(){return gt(mt())}var yt=/^[a-zA-Z0-9/+]+[=]+$/;function bt(e,t){return{pageUrn:_t(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("")}(mt())}}function Et(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function _t(e){return"urn:li:page:".concat(e)}function wt(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Tt(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 St(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 Ct(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function It(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var At,Lt,Ot=(At=new Map,Lt=new Map,{on:function(e,t){Ct(At,e,t)},before:function(e,t){Ct(Lt,e,t)},off:function(e,t){It(At,e,t)},offBefore:function(e,t){It(Lt,e,t)},emit:function(e,t){(Lt.get(e)||[]).concat(At.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Lt.clear(),At.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Rt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Ot.emit("internal:hide",e)};document.addEventListener("visibilitychange",Rt),window.addEventListener("pagehide",Rt)}var Nt=Uint8Array,Pt=Uint16Array,xt=Uint32Array,Mt=new Nt([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]),Dt=new Nt([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]),Ut=new Nt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bt=function(e,t){for(var n=new Pt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new xt(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]},Ft=Bt(Mt,2),qt=Ft[0],Ht=Ft[1];qt[28]=258,Ht[258]=28;for(var jt=Bt(Dt,0)[1],zt=new Pt(32768),Gt=0;Gt<32768;++Gt){var Wt=(43690&Gt)>>>1|(21845&Gt)<<1;Wt=(61680&(Wt=(52428&Wt)>>>2|(13107&Wt)<<2))>>>4|(3855&Wt)<<4,zt[Gt]=((65280&Wt)>>>8|(255&Wt)<<8)>>>1}var Kt=function(e,t,n){for(var i=e.length,r=0,o=new Pt(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new Pt(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new Pt(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[zt[d]>>>c]=l}else for(s=new Pt(i),r=0;r<i;++r)e[r]&&(s[r]=zt[a[e[r]-1]++]>>>15-e[r]);return s},Vt=new Nt(288);for(Gt=0;Gt<144;++Gt)Vt[Gt]=8;for(Gt=144;Gt<256;++Gt)Vt[Gt]=9;for(Gt=256;Gt<280;++Gt)Vt[Gt]=7;for(Gt=280;Gt<288;++Gt)Vt[Gt]=8;var Yt=new Nt(32);for(Gt=0;Gt<32;++Gt)Yt[Gt]=5;var Jt=Kt(Vt,9,0),Qt=Kt(Yt,5,0),Xt=function(e){return(e+7)/8|0},Zt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},$t=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},en=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[cn,0];if(1==r){var s=new Nt(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 Pt(h+1),f=tn(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 b=o[i].s;p[b]<t?m-=1<<t-p[b]++-1:++i}for(;i>=0&&m;--i){var E=o[i].s;p[E]==t&&(--p[E],++m)}f=t}return[new Nt(p),f]},tn=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},nn=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Pt(++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]},rn=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},on=function(e,t,n){var i=n.length,r=Xt(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)},sn=function(e,t,n,i,r,o,s,a,c,l,u){Zt(t,u++,n),++r[256];for(var d=en(r,15),h=d[0],p=d[1],f=en(o,15),m=f[0],g=f[1],v=nn(h),y=v[0],b=v[1],E=nn(m),_=E[0],w=E[1],T=new Pt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var k=en(T,7),C=k[0],I=k[1],A=19;A>4&&!C[Ut[A-1]];--A);var L,O,R,N,P=l+5<<3,x=rn(r,Vt)+rn(o,Yt)+s,M=rn(r,h)+rn(o,m)+s+14+3*A+rn(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return on(t,u,e.subarray(c,c+l));if(Zt(t,u,1+(M<x)),u+=2,M<x){L=Kt(h,p,0),O=h,R=Kt(m,g,0),N=m;var D=Kt(C,I,0);for(Zt(t,u,b-257),Zt(t,u+5,w-1),Zt(t,u+10,A-4),u+=14,S=0;S<A;++S)Zt(t,u+3*S,C[Ut[S]]);u+=3*A;for(var U=[y,_],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];Zt(t,u,D[q]),u+=C[q],q>15&&(Zt(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=Jt,O=Vt,R=Qt,N=Yt;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,$t(t,u,L[q+257]),u+=O[q+257],q>7&&(Zt(t,u,i[S]>>>23&31),u+=Mt[q]);var H=31&i[S];$t(t,u,R[H]),u+=N[H],H>3&&($t(t,u,i[S]>>>5&8191),u+=Dt[H])}else $t(t,u,L[i[S]]),u+=O[i[S]];return $t(t,u,L[256]),u+O[256]},an=new xt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),cn=new Nt(0),ln=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}(),un=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function dn(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=ln[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 Nt(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=on(c,l+1,e.subarray(u,d))}else{for(var h=an[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new Pt(32768),v=new Pt(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},_=new xt(25e3),w=new Pt(288),T=new Pt(32),S=0,k=0,C=(u=0,0),I=0,A=0;u<s;++u){var L=E(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,I<=u){var N=s-u;if((S>7e3||C>24576)&&N>423){l=sn(e,c,0,_,w,T,k,C,A,u-A,l),C=S=k=0,A=u;for(var P=0;P<286;++P)w[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,U=O-R&32767;if(N>2&&L==E(u-U))for(var B=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);U<=F&&--D&&O!=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),z=0;for(P=0;P<j;++P){var G=u-U+P+32768&32767,W=G-g[G]+32768&32767;W>z&&(z=W,R=G)}}}U+=(O=R)-(R=g[O])+32768&32767}if(M){_[C++]=268435456|Ht[x]<<18|jt[M];var K=31&Ht[x],V=31&jt[M];k+=Mt[K]+Dt[V],++w[257+K],++T[V],I=u+x,++S}else _[C++]=e[u],++w[e[u]]}}l=sn(e,c,o,_,w,T,k,C,A,u-A,l),!o&&7&l&&(l=on(c,l+1,cn))}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?Pt:4==e.BYTES_PER_ELEMENT?xt:Nt)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+Xt(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&&un(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),un(a,c-8,n.d()),un(a,c-4,i),a}var hn="undefined"!=typeof TextDecoder&&new TextDecoder;try{hn.decode(cn,{stream:!0})}catch(er){}function pn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function fn(){try{return pn()&&"keepalive"in new Request("")}catch(e){return!1}}function mn(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 gn(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=dn((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function vn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var yn,bn="undefined"!=typeof navigator&&"sendBeacon"in navigator,En=fn()?function(e,t,n,i){return new Promise((function(r){fetch(e,gn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,gn({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:vn(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(bn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,gn({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:vn(e)})}))}))};function _n(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 wn(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 Tn(){return yn||(yn=wn("idb-queue","default")),yn}function Sn(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))},_n(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]:Tn();return t("readwrite",(function(t){return Sn(t,e)}))}var Cn=!1;function In(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]:Tn();return n("readwrite",(function(n){return n.put(e),_n(n.count()).then((function(e){if(!(e<=t.maxNumber))return Sn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return kn(t,n)}))}function An(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]:Tn();return Cn?Promise.resolve():In(e,t,n)}function Ln(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())},_n(t.transaction).then((function(){return i}))}))}function On(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())},_n(t.transaction).then((function(){return i}))}))}function Rn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn();return On(e,t,"next")}function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Tn();return On(e,t,"prev")}function Pn(){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 xn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Mn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Dn(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 Un(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(xn((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var Bn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Ue(this,e),qe(this,"config",void 0),qe(this,"compress",void 0),qe(this,"throttleControl",void 0),qe(this,"withStore",void 0),qe(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=wn(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=Un(this.replayEntries.bind(this),t.throttleWait)}return Fe(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){xn((function(){return"Persisting to DB "+e.url})),An(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),xn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Mn((function(){return"push failed"}))}))};this.config.useIdle?Dn(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]:Tn();return Cn=!0,e("readwrite",(function(e){return e.clear(),_n(e.transaction).finally((function(){return Cn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Mn((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([]):Rn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Mn((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([]):Nn(t,this.withStore).catch((function(){return e.disablePersistence=!0,Mn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){xn((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]:Tn();return Ln(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 xn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),En(o,s,Pn(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 xn((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),xn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),An({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&&Mn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Dn(t):t()}}}]),e}(),Fn=function(){function e(){Ue(this,e)}return Fe(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}(),qn=function(){function e(t,n){Ue(this,e),qe(this,"queue",void 0),qe(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Bn(t,n.compress):new Fn}return Fe(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}();qe(qn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Hn=[502,504],jn=[429,503],zn=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Ue(this,e),qe(this,"url",void 0),qe(this,"body",void 0),qe(this,"config",void 0),qe(this,"persistenceConfig",void 0),qe(this,"compress",void 0),qe(this,"timestamp",void 0),qe(this,"isClearQueuePending",!1),qe(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 Fe(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 En(e.url,e.body,t,e.compress)}),n,t).finally((function(){xn((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(Pn(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(xn((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 xn((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 Gn(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&&fn()&&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:Hn,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:jn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new qn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return pn()?new zn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||jn},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){Ot.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Ot.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var Wn=function(){function e(t){Ue(this,e),qe(this,"host",void 0),this.host=t}return Fe(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&&Gn(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){Ot.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();fn()&&"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){Ot.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||!pn()||"undefined"==typeof Promise?mn(e,JSON.stringify(t),{headers:n}):En(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}(),Kn="undefined"!=typeof window&&"undefined"!=typeof document,Vn=/JSESSIONID="?([^";]+)"?/,Yn="",Jn=0;function Qn(){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?Vn:i;if(!Yn||Date.now()-Jn>n){var o=Kn&&document.cookie.match(r);Yn=o&&o[1]||"",Jn=Date.now()}return Yn}var Xn=function(){function e(t){Ue(this,e),qe(this,"networkTransporter",void 0),qe(this,"inactive",void 0),qe(this,"mpName",void 0),qe(this,"endpoint",void 0),qe(this,"debug",void 0),this.networkTransporter=new Wn(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=$n;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Zn;break;case"https://www.linkedin-ei.com/li/track":t=Zn;break;default:n=!0,t=Zn}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Fe(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":Qn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Zn="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",$n="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function ei(e){return"string"==typeof e}function ti(e){return ei(e)?e:e.topicName||e.eventName}function ni(e){return ei(e)?e:e.eventName}var ii,ri,oi=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ue(this,e),qe(this,"host",void 0),qe(this,"cmoTransporter",void 0),qe(this,"clientMonitoringInstanceId",vt()),qe(this,"currentContext",ci()),qe(this,"appState",{}),qe(this,"estimatedFragmentSize",0),qe(this,"fragmentSizeLimit",void 0),qe(this,"activeFragmentEvent",void 0),qe(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new Xn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=ai(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Fe(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=De(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:ni(t),eventTopic:ti(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=ai(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=li(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=li(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 si(e){return ii||(ii=new oi(e)),{getCurrentInstanceId:function(){return ii.getCurrentInstanceId()},logEventGenerated:function(e){return ii.logEventGenerated(e)},logEventReadyToSend:function(e){ii.logEventReadyToSend(e)},logEventSent:function(e){ii.logEventSent(e)},logPersistedEventSent:function(e,t){ii.logEventSent(t,e)},logNetworkResponseCode:function(e){ii.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=ii)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){ii.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){ii.logFailedEvent(t,n,i,r,e)},flush:function(){ii.flush()},destroy:function(){ii=void 0},isDestroyed:function(){return void 0===ii},setCurrentContext:function(e){ii.setCurrentContext(e)},updateAppState:function(e){ii.updateAppState(e)}}}function ai(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 ci(){return{pageKey:"unknown",pageInstance:bt("unknown")}}function li(e){return Array.isArray(e)?gt(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(yt)}(e)?atob(e):gt(function(e){return $e(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"}(ri||(ri={}));var ui="PageViewEvent",di=function(){function e(t){var n=this;Ue(this,e),qe(this,"host",void 0),qe(this,"queue",void 0),qe(this,"preContextQueue",void 0),qe(this,"debounceTimer",void 0),qe(this,"unloadHandlers",void 0),qe(this,"maxQueueSize",void 0),qe(this,"flushDebounceTime",void 0),qe(this,"trackingEventListeners",[]),qe(this,"onHideHandler",(function(){n.forceFlush()})),qe(this,"networkTransporter",void 0),qe(this,"clientMonitoringConn",void 0),qe(this,"clientSequenceNumberCounter",void 0),qe(this,"isTimerRunning",void 0),qe(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,Ot.on("internal:hide",this.onHideHandler),this.networkTransporter=new Wn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=si(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return Fe(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(ri.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,ri.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(ti(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,Ot.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:bt("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){Ot.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){kt("update",this.clientSequenceNumberCounter).catch((function(e){Ot.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=wt(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===ui:e.eventName===ui}(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(ri.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 hi,pi=function(){function e(t,n){Ue(this,e),this.clientBreadcrumbType=t,this.id=n}return Fe(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 fi(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 mi(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(hi||(hi={}));var gi,vi,yi,bi=function(){function e(t,n){var i,r;if(Ue(this,e),qe(this,"transporter",void 0),qe(this,"delegate",void 0),qe(this,"currentContext",void 0),qe(this,"appState",void 0),qe(this,"previousAppContext",void 0),qe(this,"customTransporters",void 0),qe(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 di(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=si(t.host))}return Fe(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){mi(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=mi(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return wt(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,fi(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=wt(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(wt(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=Et(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=ti(e),o=void 0===t?"undefined":null===t?"null":Ge(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(ri.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return pi.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(ei(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=ti(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(ri.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 bt(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),Ot.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 Et((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&&wt(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 Ei(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;Ue(this,e),qe(this,"core",void 0),qe(this,"protocol",void 0),qe(this,"throttleKeySet",new Set),qe(this,"config",void 0),qe(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},Ot.on("internal:error",this.reportTransporterError)}Fe(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,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,C=b.api,I=C.Promise,A=C.location,L=A.host,O=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:E,e:{c:y,l:g,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,service:w,serviceInstance:T,serviceVersion:_,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=Ei(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?I.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(),Ot.off("internal:error",this.reportTransporterError)}}])}();var _i=function(){function e(){Ue(this,e),qe(this,"userTimingEntries",[]),qe(this,"longTasks",[]),qe(this,"resourceTimingEntries",[]),qe(this,"cdnData",void 0)}return Fe(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(Ti),cdnData:this.cdnData}}}]),e}(),wi=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Ti(e){return wi.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Si(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};vi=Object.assign(Object.assign({},n),t),yi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(vi.root,n);var i=ki(e,gi.All,(function(){return ki(e,gi.Two,(function(){return ki(e,gi.One)}))}));if(i){var r=xi(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(t.length>2&&t.length>vi.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>vi.maxNumberOfTries)return r;i.counter+=1;var s=He(t);s.splice(o,1);var a=Ii(s);if(i.visited.has(a))return r;Li(s)&&Mi(s,n)&&(r.push(s),i.visited.set(a,!0),r=r.concat(e(s,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),Ii(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=Ni(function(e){var t=e.getAttribute("id");return t&&vi.idName(t)?{name:"#"+Hi(t,{isIdentifier:!0}),penalty:0}:null}(o))||Ni.apply(void 0,He(function(e){return Array.from(e.attributes).filter((function(e){return vi.attr(e.name,e.value)})).map((function(e){return{name:"["+Hi(e.name,{isIdentifier:!0})+'="'+Hi(e.value)+'"]',penalty:.5}}))}(o)))||Ni.apply(void 0,He(function(e){return Array.from(e.classList).filter(vi.className).map((function(e){return{name:"."+Hi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Ni(function(e){var t=e.tagName.toLowerCase();return vi.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===gi.All)a&&(e=e.concat(e.filter(Ri).map((function(e){return Oi(e,a)}))));else if(t===gi.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Ri).map((function(e){return Oi(e,a)}))));else if(t===gi.One){var c=Me(e=e.slice(0,1),1)[0];a&&Ri(c)&&(e=[Oi(c,a)])}var l,u=De(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>=vi.seedMinLength&&(i=Ci(r,n)))return"break";o=o.parentElement,s++};o&&o!==vi.root.parentElement&&"break"!==a(););return i||(i=Ci(r,n)),i}function Ci(e,t){var n=xi(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=De(t[0]);try{for(o.s();!(i=o.n()).done;){var s=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>vi.threshold)return t?t():null;var i,r=De(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Li(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Ii(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 Ai(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Li(e){switch(yi.querySelectorAll(Ii(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Ii(e)));case 1:return!0;default:return!1}}function Oi(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Ri(e){return"html"!==e.name&&!e.name.startsWith("#")}function Ni(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Pi);return i.length>0?i:null}function Pi(e){return null!=e}function xi(e){return Array.from(e).sort((function(e,t){return Ai(e)-Ai(t)}))}function Mi(e,t){return yi.querySelector(Ii(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(gi||(gi={}));var Di,Ui=/[ -,\.\/:-@\[-\^`\{-~]/,Bi=/[ -,\.\/:-@\[\]\^`\{-~]/,Fi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,qi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Hi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},qi),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?Ui.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&&Bi.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(Fi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function ji(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 zi(e){var t=e||performance;return Math.round(t.now())}function Gi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Si(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Gi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Wi(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 Ki(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Vi,Yi=function(){function e(t){Ue(this,e),qe(this,"hostApis",void 0),qe(this,"hostnameProperties",void 0),qe(this,"usedHostnames",void 0),qe(this,"abortController",void 0),qe(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 Fe(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return St(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=Tt(St(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,(Di=Di||i.createElement("a")).href=n,Di.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}(),Ji=function(){function e(t,n,i,r){Ue(this,e),qe(this,"hostApis",void 0),qe(this,"statics",void 0),qe(this,"options",void 0),qe(this,"allowTimingOrigin",void 0),qe(this,"collectResourceTimings",void 0),qe(this,"collectCdnData",void 0),qe(this,"perfObserver",void 0),qe(this,"renderTimings",new Map),qe(this,"urlToTreeId",new Map),qe(this,"cdnDataProvider",void 0),qe(this,"observables",new _i),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 Yi(t))}return Fe(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Di=Di||t.createElement("a")).href=e,Di.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:ji(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||ji(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=Wi(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,Qi.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?Tt(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=Wi(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:Ki(this.renderTimings),networkInformationMetrics:Xi(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),Qi=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Xi(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"}(Vi||(Vi={}));var Zi=(qe(xe={},"web-ui-framework","EMBER"),qe(xe,"app-id","linkedin.rum.tracking"),qe(xe,"app-version","unknown"),qe(xe,"is-single-page-app",!0),qe(xe,"user-timing-mark-enabled",!1),qe(xe,"user-timing-measure-enabled",!0),qe(xe,"beacon-source","apps"),qe(xe,"enable-rs-timing",!0),qe(xe,"enable-cdn-tracking",!1),qe(xe,"async-plugins-timeout",5e3),qe(xe,"beacon-timeout",3e4),qe(xe,"enable-memory-measurement",!1),qe(xe,"pageKeyPrefix",""),xe),$i=function(){function e(t,n,i){Ue(this,e),qe(this,"featureName",void 0),qe(this,"trackingCore",void 0),qe(this,"rumConfig",void 0),qe(this,"observing",!1),qe(this,"basePageTreeId",void 0),qe(this,"startPageInstance",void 0),qe(this,"startMemory",void 0),qe(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Fe(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)||bt("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:zi(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}();qe($i,"checkpoints",[1,3,10,30,90,180,300]);var er,tr,nr,ir,rr,or=Fe((function e(t,n,i){Ue(this,e),qe(this,"webUIFramework",void 0),qe(this,"timeSource",void 0),qe(this,"isSinglePageApp",void 0),qe(this,"appRenderMode",void 0),qe(this,"isAppRenderFailed",void 0),qe(this,"pageLoadMode","INITIAL"),qe(this,"isSSL",void 0),qe(this,"treeId",void 0),qe(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})),sr=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)}},ar=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){}},cr=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)},lr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},ur=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)))}},dr=-1,hr=function(){return"hidden"===document.visibilityState?0:1/0},pr=function(){cr((function(e){var t=e.timeStamp;dr=t}),!0)},fr=function(){return dr<0&&(dr=hr(),pr(),lr((function(){setTimeout((function(){dr=hr(),pr()}),0)}))),{get firstHiddenTime(){return dr}}},mr=!1,gr=-1,vr=function(e,t){mr||(function(e,t){var n,i=fr(),r=sr("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:ar("paint",o);(s||a)&&(n=ur(e,r,t),s&&o(s),lr((function(i){r=sr("FCP"),n=ur(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){gr=e.value})),mr=!0);var n,i=function(t){gr>-1&&e(t)},r=sr("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=ar("layout-shift",a);c&&(n=ur(i,r,t),cr((function(){c.takeRecords().map(a),n(!0)})),lr((function(){o=0,gr=-1,r=sr("CLS",0),n=ur(i,r,t)})))},yr={passive:!0,capture:!0},br=new Date,Er=function(e,t){er||(er=t,tr=e,nr=new Date,Tr(removeEventListener),_r())},_r=function(){if(tr>=0&&tr<nr-br){var e={entryType:"first-input",name:er.type,target:er.target,cancelable:er.cancelable,startTime:er.timeStamp,processingStart:er.timeStamp+tr};ir.forEach((function(t){t(e)})),ir=[]}},wr=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(){Er(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,yr),removeEventListener("pointercancel",i,yr)};addEventListener("pointerup",n,yr),addEventListener("pointercancel",i,yr)}(t,e):Er(t,e)}},Tr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,wr,yr)}))},Sr=function(e,t){var n,i=fr(),r=sr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=ar("first-input",o);n=ur(e,r,t),s&&cr((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&lr((function(){var i;r=sr("FID"),n=ur(e,r,t),ir=[],tr=-1,er=null,Tr(addEventListener),i=o,ir.push(i),_r()}))},kr={},Cr=function(e,t){var n,i=fr(),r=sr("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=ar("largest-contentful-paint",o);if(s){n=ur(e,r,t);var a=function(){kr[r.id]||(s.takeRecords().map(o),s.disconnect(),kr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),cr(a,!0),lr((function(i){r=sr("LCP"),n=ur(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,kr[r.id]=!0,n(!0)}))}))}))}},Ir=["LCP","FID","CLS"],Ar={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Lr={},Or=function(){var e;if(!Kn)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}(),Rr=!1,Nr=[],Pr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function xr(){var e=!0===window.__test__resetWebVitalsState;if(!Rr||e){e&&(Nr=[]),Ir.forEach(Mr);var t=Symbol();rr=t,[Cr,Sr,vr].forEach((function(e){return e(Dr.bind(null,t),!0)})),[Cr,Sr,vr].forEach((function(e){return e(Ur.bind(null,t))})),Rr=!0}}function Mr(e){Lr[e]={name:e,value:-1,updateHistory:[]};var t=Pr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Lr[e].value=-2)}function Dr(e,t){if(e===rr){var n=Lr[t.name],i=zi();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Nr.forEach((function(e){return e(t,i,!1)}))}}function Ur(e,t){e===rr&&Nr.forEach((function(e){return e(t,zi(),!0)}))}var Br=function(){function e(t,n){Ue(this,e),qe(this,"basePageTreeId",void 0),qe(this,"basePageKey",void 0),qe(this,"observing",!1),qe(this,"appContextMap",new Map),qe(this,"rumConfig",void 0),qe(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return Fe(e,[{key:"startObserving",value:function(){var e,t,n=this;xr(),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",Ir.forEach((function(e){var t;-2===(null===(t=Lr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),Nr.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=Lr[e],n={name:Ar[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=Lr[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Or},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:Gi(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:Gi(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":Gi(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;Ue(this,e),qe(this,"core",void 0),qe(this,"config",void 0),qe(this,"collector",void 0),qe(this,"boomerangStart",-1),qe(this,"webVitalsObserver",void 0),qe(this,"appMemoryObserver",void 0),qe(this,"pageMemoryObserver",void 0),qe(this,"liveTokens",new Set),qe(this,"stateWM",new WeakMap),qe(this,"activeToken",void 0),qe(this,"isInitial",void 0),qe(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({},Zi),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 Ji(i.host.api,new or(t,this.config,i.host),this.config,s),this.collector.startObserving(),Ot.before("internal:hide",this.beforeHideHandlerBound)}Fe(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:ji(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 $i("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new $i("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Br(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=ji(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 Ot.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;Ot.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 Fr="undefined"!=typeof window&&"undefined"!=typeof performance,qr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Hr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",jr(n,t))}function jr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=S(document),i=C(document),r=Pe();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 zr(e,t){const n=C(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function Gr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Wr(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function Wr(e){return"string"==typeof e&&"=="===e.slice(-2)}function Kr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ae({},e),n=p(window.location.href,"originalReferer")||p(window.location.href,"original_referer");return n&&(t.requestHeader=Ae(Ae({},t.requestHeader),{},{referer:n})),Vr(t)}function Vr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Ae({},e),n=Pe();return n&&(t.requestHeader=Ae(Ae({},t.requestHeader),{},{theme:n.toUpperCase()})),t}!function(){function e(t,n){Ue(this,e),qe(this,"featureKey",void 0),qe(this,"productName",void 0),qe(this,"endPageInstance",void 0),qe(this,"startPageInstance",void 0),qe(this,"isCanceled",!1),qe(this,"featureIdentifier",void 0),qe(this,"name",void 0),qe(this,"startTime",void 0),qe(this,"duration",void 0),qe(this,"marks",[]),qe(this,"spanStarts",new Map),qe(this,"spans",[]),qe(this,"isSpanContainer",!1),qe(this,"basePageTreeId",void 0),qe(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}Fe(e,[{key:"start",value:function(e){this.startPageInstance=e,Fr&&(this.startTime=zi(),qr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Fr&&(this.marks.push({name:e,startTime:zi()}),qr&&(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){Fr&&(this.spanStarts.set(e,zi()),qr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Fr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:zi()-n}),qr&&(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,Fr&&(this.duration=zi()-this.startTime,qr&&!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(Fr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||bt("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Fr){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:Yr,ESCAPE:Jr}=O;class Qr{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 J(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=N(e.key),n=t===Yr&&document.activeElement===this._exitButtonEl;(t===Jr||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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{Hr(e,"ajax",this._pageKey||"".concat(this._el.id))}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),y(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("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}}function Xr(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 Zr=/ /g,$r=/[\s\u0000<>"]|%00/,eo=/\\/,to=/([.]|%2e){2}/i;let no=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 io(e){let t;if("string"!=typeof e)return Xr("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(Xr("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(Zr,"+")),!no.test(t))return Xr("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if($r.test(t))return Xr("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,i=t.split("?")[0],r=!1;try{n=decodeURI(i)}catch(e){r=!0}return r?(Xr("jSecure Error: malformed url path detected: "+i),"invalid://"):eo.test(i)||to.test(i)||to.test(n)?(Xr("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const ro={redirect(e){window&&(window.location.href=e)}};function oo(e){return e.scrollHeight>e.offsetHeight}function so(e,t){const n=u(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function ao(e){return e.classList.contains("hidden")}function co(e){uo([e])}function lo(e){ho([e])}function uo(e){so(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function ho(e){so(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function po(e){if(!e)return"";return e.split("").map(e=>String.fromCharCode(e.charCodeAt(0)+17)).join("")}function fo(){let e=v("JSESSIONID");return e&&(e=e.replace(/(^"|"$)/g,"")),e||""}function mo(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function go(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function vo(){return document.documentElement.classList.contains("safari")}function yo(){return document.documentElement.classList.contains("ios")}function bo(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}const Eo={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function _o(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function wo(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=T(document),r=_o();return window.tracking.then(o=>(t=o.generateTrackingId(),ne(e,Ae(Ae({},n),{},{method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[Eo.EFFECTIVE_CONNECTION_TYPE]:r,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":i,"X-li-page-instance":"urn:li:page:".concat(i,";").concat(t)}}))))}function To(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&&oo(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")})}}function So(e,t){return e.replace(new RegExp("".concat(t,"=[^&]*&?")),"").replace(new RegExp("[&?]$"),"")}function ko(){if(!p(window.location.href,"pwa"))return;const e=So(window.location.href,"pwa");window.history.replaceState({},document.title,e)}function Co(){let e=!1;try{if(window.matchMedia("(display-mode: standalone)").matches){null===sessionStorage.getItem("launchedFromHomeScreen")&&(e=!0,sessionStorage.setItem("launchedFromHomeScreen",""))}}catch(e){}return e}function Io(e){const t=window.location.hash;if(t&&0===t.indexOf(e)){const e=window.location.href.split("#")[0];window.history.replaceState({},document.title,e)}}function Ao(e){e&&(document.cookie="".concat(e,"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;"))}function Lo(e,t,n,i){let r="";if(n){const e=new Date;e.setTime(e.getTime()+n),r="expires=".concat(e.toUTCString())}v(e)&&Ao(e);const o=i?"domain=.".concat(i):"",s="".concat(e,"=").concat(t,";").concat(r,";path=/;").concat(o),a="".concat(s,";").concat("secure;samesite=none");document.cookie=a,v(e)||(document.cookie=s)}function Oo(){const e=m(window.location.href,"pwa","noCache",!0);window.location.replace(e)}function Ro(){let e=!1;try{(null===sessionStorage.getItem("previousPage")||1===window.history.length)&&(e=!0)}catch(e){}return e}function No(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=n.querySelector('meta[name="'.concat(e,'"]'));i&&i.setAttribute("content",t)}var Po=Object.freeze({__proto__:null,PREVIOUS_PAGE_KEY:"previousPage",NO_CACHE_PARAM_KEY:"pwa",NO_CACHE_PARAM_VALUE:"noCache",LAUNCHED_FROM_HOME_SCREEN:"launchedFromHomeScreen",isElementHidden:ao,hideElement:co,showElement:lo,hideElements:uo,showElements:ho,conceal:po,getCsrfToken:fo,cloneWithRemovedElements:function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i="string"==typeof e?document.querySelector(e):e,r=i.cloneNode(n.deep),o=Array.prototype.concat(t).reduce((e,t)=>{if("string"==typeof t){const n=r.querySelectorAll(t);for(const t of n)e.push(t)}return e},[]);for(const e of o)e.parentElement.removeChild(e);return r},disableButton:mo,enableButton:go,isSafari:vo,isIOS:yo,isMobile:function(){return document.documentElement.classList.contains("android")||yo()},getCurrentPage:bo,HEADERS:Eo,getEffectiveConnectionType:_o,requestJSONWithDefaultHeaders:wo,initExpandButton:To,removeQueryParameter:So,removeNoCacheParam:ko,isLaunchedFromHomeScreen:Co,removeHashFromUrl:Io,deleteCookie:Ao,setCookie:Lo,hardReloadPage:Oo,isFirstPageOfSession:Ro,getMetaTagContent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n=t.querySelector('meta[name="'.concat(e,'"]'));if(n)return n.getAttribute("content")},setMetaTagContent:No,convertIdToUrn:function(e,t){return Boolean(e)&&Boolean(t)&&"urn:li:".concat(t,":").concat(e)}});const xo="prev",Mo="next";class Do{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("slide-list__indicator-button-container")),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?(lo(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(co(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(B).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===xo?this.prev():n===Mo&&this.next())}_fireScrollEvent(){y(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("slide-list__indicator--selected"),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat("slide-list__indicator-button-container"," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add("slide-list__indicator--selected"),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("slide-list__list--dragging"),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("slide-list__list--dragging")}_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(){y(this._el,"pagechange",{pageNumber:this._currentPage})}}var Uo=Object.hasOwnProperty,Bo=Object.setPrototypeOf,Fo=Object.isFrozen,qo=Object.getPrototypeOf,Ho=Object.getOwnPropertyDescriptor,jo=Object.freeze,zo=Object.seal,Go=Object.create,Wo="undefined"!=typeof Reflect&&Reflect,Ko=Wo.apply,Vo=Wo.construct;Ko||(Ko=function(e,t,n){return e.apply(t,n)}),jo||(jo=function(e){return e}),zo||(zo=function(e){return e}),Vo||(Vo=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 Yo,Jo=os(Array.prototype.forEach),Qo=os(Array.prototype.pop),Xo=os(Array.prototype.push),Zo=os(String.prototype.toLowerCase),$o=os(String.prototype.match),es=os(String.prototype.replace),ts=os(String.prototype.indexOf),ns=os(String.prototype.trim),is=os(RegExp.prototype.test),rs=(Yo=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Vo(Yo,t)});function os(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 Ko(e,t,i)}}function ss(e,t){Bo&&Bo(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=Zo(i);r!==i&&(Fo(t)||(t[n]=r),i=r)}e[i]=!0}return e}function as(e){var t=Go(null),n=void 0;for(n in e)Ko(Uo,e,[n])&&(t[n]=e[n]);return t}function cs(e,t){for(;null!==e;){var n=Ho(e,t);if(n){if(n.get)return os(n.get);if("function"==typeof n.value)return os(n.value)}e=qo(e)}return function(e){return console.warn("fallback value for",e),null}}var ls=jo(["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"]),us=jo(["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"]),ds=jo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),hs=jo(["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"]),ps=jo(["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"]),fs=jo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ms=jo(["#text"]),gs=jo(["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"]),vs=jo(["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"]),ys=jo(["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=jo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Es=zo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),_s=zo(/<%[\s\S]*|[\s\S]*%>/gm),ws=zo(/^data-[\-\w.\u00B7-\uFFFF]/),Ts=zo(/^aria-[\-\w]+$/),Ss=zo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ks=zo(/^(?:\w+script|data):/i),Cs=zo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Is="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 As(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},Os=function(e,t){if("object"!==(void 0===e?"undefined":Is(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var Rs=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=cs(m,"cloneNode"),v=cs(m,"nextSibling"),y=cs(m,"childNodes"),b=cs(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var _=Os(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,C=T.createDocumentFragment,I=T.getElementsByTagName,A=i.importNode,L={};try{L=as(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=Es,N=_s,P=ws,x=Ts,M=ks,D=Cs,U=Ss,B=null,F=ss({},[].concat(As(ls),As(us),As(ds),As(ps),As(ms))),q=null,H=ss({},[].concat(As(gs),As(vs),As(ys),As(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}})),z=null,G=null,W=!0,K=!0,V=!1,Y=!1,J=!1,Q=!1,X=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=ss({},["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=ss({},["audio","video","img","source","image","track"]),le=null,ue=ss({},["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",be=void 0,Ee=null,_e=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":Is(e))||(e={}),e=as(e),B="ALLOWED_TAGS"in e?ss({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?ss({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?ss(as(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?ss(as(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ss({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?ss({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?ss({},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,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,X=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&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(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,be="application/xhtml+xml"===ge?function(e){return e}:Zo,Y&&(K=!1),$&&(Z=!0),re&&(B=ss({},[].concat(As(ms))),q=[],!0===re.html&&(ss(B,ls),ss(q,gs)),!0===re.svg&&(ss(B,us),ss(q,vs),ss(q,bs)),!0===re.svgFilters&&(ss(B,ds),ss(q,vs),ss(q,bs)),!0===re.mathMl&&(ss(B,ps),ss(q,ys),ss(q,bs))),e.ADD_TAGS&&(B===F&&(B=as(B)),ss(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=as(q)),ss(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ss(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=as(oe)),ss(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),J&&ss(B,["html","head","body"]),B.table&&(ss(B,["tbody"]),delete z.tbody),jo&&jo(e),Ee=e)},Se=ss({},["mi","mo","mn","ms","mtext"]),ke=ss({},["foreignobject","desc","title","annotation-xml"]),Ce=ss({},us);ss(Ce,ds),ss(Ce,hs);var Ie=ss({},ps);ss(Ie,fs);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=Zo(e.tagName),i=Zo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ce[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=ss({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!Ce[n])}return!1},Le=function(e){Xo(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Oe=function(e,t){try{Xo(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Xo(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(X)e="<remove></remove>"+e;else{var i=$o(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=_?_.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?I.call(t,J?"html":"body")[0]:J?t.documentElement:s},Ne=function(e){return k.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":Is(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Is(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){O[e]&&Jo(O[e],(function(e){e.call(n,t,i,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Le(e),!0;if($o(e.nodeName,/[\u0080-\uFFFF]/))return Le(e),!0;var i=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&is(/<[/\w]/g,e.innerHTML)&&is(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===i&&is(/<template/i,e.innerHTML))return Le(e),!0;if(!B[i]||z[i]){if(ne&&!oe[i]){var r=b(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(!z[i]&&Be(i)){if(j.tagNameCheck instanceof RegExp&&is(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Le(e),!0}return e instanceof c&&!Ae(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i||!is(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=es(t,R," "),t=es(t,N," "),e.textContent!==t&&(Xo(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(K&&!G[t]&&is(P,t));else if(W&&is(x,t));else if(!q[t]||G[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&is(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&is(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&is(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(is(U,es(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ts(n,"data:")||!ae[e]){if(V&&!is(M,es(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=ns(t.value),r=be(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Oe(l,e),a.keepAttr))if(is(/\/>/i,i))Oe(l,e);else{Y&&(i=es(i,R," "),i=es(i,N," "));var d=be(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),Qo(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 rs("toString is not a function");if("string"!=typeof(e=e.toString()))throw rs("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Is(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(Q||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=be(e.nodeName);if(!B[h]||z[h])throw rs("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&&!J&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?w:""}s&&X&&Le(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=C.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=J?s.outerHTML:s.innerHTML;return Y&&(f=es(f,R," "),f=es(f,N," ")),_&&ee?_.createHTML(f):f},n.setConfig=function(e){Te(e),Q=!0},n.clearConfig=function(){Ee=null,Q=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var i=be(e),r=be(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],Xo(O[e],t))},n.removeHook=function(e){O[e]&&Qo(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Ns={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ps(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=xs(null,e,t);return n.innerHTML}function xs(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=Ae({},Ns);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Rs.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Ms=Object.freeze({__proto__:null,sanitizedMarkupOptions:Ns,getSanitizedMarkup:Ps,setSanitizedMarkup:xs}),Ds="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Us=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Bs=["b","del","em","i","s","strong","sub","sup"],Fs=Bs.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"]),qs=[Ds,"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 Hs(){}var js,zs,Gs=(zs=/[&<>"'\u0000\\=]/g,js={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(zs,(function(e){return js[e]}))}),Ws=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[Us],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var Ks=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Vs(e){return/[<&]/.test(e)}var Ys,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)};function Qs(e){e=Ks(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Js(e,(function(e,s){t=e.tags||Fs,n=e.attrs||qs,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",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 Xs(e){return Qs({tags:e=e||Fs,checkUrlAttrs:!0})}function Zs(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!Xs(n).test(e):i?!Zs.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Zs.R_UNSAFE_HTML.test(e)}function $s(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function ea(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 Hs||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Gs(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return Vs(i)&&!Zs(i,n)&&(i=$s(i),Xr("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ta(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}Zs.R_UNSAFE_HTML=Xs(),Zs.R_UNSAFE_CUSTOM_ELEMENT=Qs([{tags:Fs,checkUrlAttrs:!0},{tags:[(Ys={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Ds,Ys.attrs].join("|"),checkUrlAttrs:!1}]);var na={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,"",""]};na.optgroup=na.option,na.tbody=na.tfoot=na.colgroup=na.caption=na.thead,na.th=na.td;var ia=/<([\w:]+)/;function ra(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=(ia.exec(o)||["",""])[1].toLowerCase(),aa(r,(i=na[n]||na._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ta(u,r.childNodes),(r=l.firstChild).textContent=""}else ta(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var oa=ea,sa=ea;function aa(e,t,n){var i=ea(t,n);return Vs(i)?e.innerHTML=i:e[Us]=i,i}function ca(e,t){if(!(this instanceof ca))return new ca(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}ca.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Hs,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(Zs(e,this._options)||(n=e,e=$s(e),Xr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var la={ALLOWED_TAGS:Fs,FORMATTING_TAGS:Bs,htmlEncode:Gs,htmlUnencode:Ws,log:Xr,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 ca?r:Gs(r))})),sa(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=ra([e],t);else{if(!Ks(e))return e;n=ra(e,t)}return ta([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:oa,reEncode:function(e){return Gs(Ws(e))},_redirector:ro,redirect:function(e){const t=io(e);t===e&&ro.redirect(t)},sanitizeHTML:sa,sanitizeUrl:io,setElementContent:aa,text:function(e){return Xr("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Gs(e)},unsafe:function(e){return e},UnsafeString:ca};const ua='a[href], area[href], input:not([disabled]):not([hidden]), select:not([disabled]), textarea:not([disabled]), img:not([alt=""]), button, iframe, object, [tabindex="0"], [contenteditable]';function da(e){if(!e)throw new Error("Could not initialize focus-trapping - Config Missing");const t=e.el,n=e.escCallback,i=e.focusElement,r=e.ariaHiddenElements||function e(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!(t instanceof HTMLElement&&t.parentElement instanceof HTMLElement))return n;const i=Array.prototype.slice.call(t.parentElement.children).filter(e=>e!==t&&fa(e)),r=n.concat(i);return t.parentElement===document.body?r:e(t.parentElement,r)}(t);if(!t)throw new Error("Could not initialize focus-trapping - Element Missing");if(n&&!(n instanceof Function))throw new Error("Could not initialize focus-trapping - `config.escCallback` is not a function");G(function(e){let t="";const n=e.getAttribute("role"),i=e.getAttribute("aria-labelledby"),r=e.getAttribute("aria-describedby"),o=e.dataset.primaryActionLabel,s=e.dataset.secondaryActionLabel;if("dialog"===n&&(i||r)){const n=i&&e.querySelector("#".concat(i)),a=r&&e.querySelector("#".concat(r)),c=n&&n.textContent,l=a&&a.textContent;c&&(t+=c),l&&(t+=l),s&&(t="".concat(t," ").concat(s)),o&&(t="".concat(t," ").concat(o))}return t.trim()}(t),z.ASSERTIVE),ha(r,!0);const o=t.querySelectorAll(ua);let s;if(o.length>0){const e=o[0],r=o[o.length-1];pa(i||e),s=function(t){t.key===O.TAB?t.shiftKey&&document.activeElement===e?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),e.focus()):t.key===O.ESCAPE&&n&&n(t)},t.addEventListener("keydown",s)}return function(){s&&t.removeEventListener("keydown",s),G(),ha(r)}}function ha(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n="aria-hidden";if(!Array.isArray(e))throw new Error("Incorrect argument: elements should be an array of HTMLElement");e.forEach(e=>t?e.setAttribute(n,t):e.removeAttribute(n))}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()}function fa(e){return j.indexOf(e.nodeName.toUpperCase())<0&&!e.getAttribute("aria-live")&&"true"!==e.getAttribute("aria-hidden")}const ma=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class ga{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(ma).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(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const t=r(e.target,".toast__dismiss-btn");if(t){const e=r(t,".toast");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(".toast__message");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===ma.CAUTION?c="text-color-text-caution":e===ma.ERROR?c="text-color-text-negative":e===ma.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),xs(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",la.sanitizeUrl(f(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(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),pa(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),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()})}}Le(ga,"TOAST_TYPES",ma);const va={};function ya(e){const t=document.getElementById(e);if(!t&&void 0!==va[e])return va[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),va[e]=null,va[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):(va[e]=n,t.parentNode.removeChild(t),va[e])}const ba={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},Ea=Object.keys(ba).map(e=>ba[e]);class _a{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:r(n,".".concat(t));i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){this.checkAndUpdateUtm(e);const t={linkedin:"https://www.".concat(I(this.document),"/shareArticle?mini=true&url=").concat(this._encodedShareUrl,"&title=").concat(this._encodedShareMessage),twitter:"https://twitter.com/intent/tweet?url=".concat(this._encodedShareUrl,"&text=").concat(this._encodedShareMessage),facebook:"https://www.facebook.com/sharer/sharer.php?u=".concat(this._encodedShareUrl)};return ya("disableLinkedinShareRedirectLink")&&"linkedin"===e?ya("isGuest")?(this.window.location.href=this._updateSignInUrlWithParams(ya("signInUrl")),""):"":t[e]||""}_updateSignInUrlWithParams(e){const t=new URL(e),n=t.searchParams,i=m(n.get("session_redirect"),"openShareModal",!0);return n.set("session_redirect",i),t.toString()}share(e){if(Ea.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 ga({removeToastCallback:this.removeToastCallback.bind(this)});i.clearAllToasts();const r=t?"error":"success";i.trigger(r,ya("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 wa extends _a{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 te(e,{dropdownTriggerEl:this.socialShareButton}),super.init(this.dropdown,this.itemClassName)}}const Ta=["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(Ta,"i");class Sa{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:r,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:c}=e.dataset,l=JSON.parse(r);if(!l.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,i).then(e=>(o&&e.poster(o),e.src(l),c&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:c}),this._bindTracking(e,n),e))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,s=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=Ae({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{posterBackground:!0}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o=Ae({header:{},requestHeader:{}},r);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=T(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}class ka{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:s=!1,marginApplied:a=!1,debounceDelay:c=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=s,this._scrollListener=g(this._onScroll.bind(this),c),this.marginApplied=a,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),o(()=>{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(){X()||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"),y(this.el,"show")}hide(){this.el.classList.remove("show"),y(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 Ca=[];for(let e=0;e<256;++e)Ca.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);"".concat("tooltip__popup","--show");class Ia{constructor(e){if(!e)throw new Error("No element passed in");this._el=e,this._imgEl=this._el.querySelector(".cover-img__image"),this._imgEl&&(this.cropInfo=ya(this._imgEl.dataset.embedId),this.ratio=0,this._imgEl.classList.contains(".lazy-loaded")&&this._initCalc(),this._bindEvents())}_bindEvents(){window.addEventListener("resize",this._handleWindowResize.bind(this)),this._imgEl.addEventListener("load",this._initCalc.bind(this))}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){const e=this._el.clientWidth,t=this._el.clientHeight,n=this._imgEl.naturalWidth,i=this._imgEl.naturalHeight,r=this.cropInfo?this.cropInfo.y:0,o=this.cropInfo?this.cropInfo.x:0,s=n-o,a=i-r,c=e/s,l=t/a,u=s*l>=e,d=a*c>=t;let h=0;d&&u?h=Math.min(c,l):d?h=c:u&&(h=l);let p=Math.max(h*n,e),f=Math.max(h*i,t);h!==this.ratio&&(this.ratio=h,this._imgEl.style.width="".concat(p,"px"),this._imgEl.style.height="".concat(f,"px"),this._imgEl.style.top="-".concat(r*this.ratio,"px"),this._imgEl.style.left="-".concat(o*this.ratio,"px")),this._isResizing=!1}}var Aa={SKILL:"SKILL",CITY:"CITY",REGION:"REGION",INDUSTRY:"INDUSTRY",LANGUAGE:"LANGUAGE",DEGREE:"DEGREE",SCHOOL:"SCHOOL",FIELD_OF_STUDY:"FIELD_OF_STUDY",COMPANY:"COMPANY",TITLE:"TITLE",GEO:"GEO",PEOPLE:"PEOPLE",JOB:"JOB",JOB_TITLE:"JOB_TITLE",HASHTAG:"HASHTAG",MENTIONS:"MENTIONS",MENTIONS_IN_CONTAINER:"MENTIONS_IN_CONTAINER",BLENDED:"BLENDED"};const La=["endpoint","headers","queryId","variables","pageKey"];function Oa(){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=Oe(e,La);return ne(t,Ae({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:o})},s))}class Ra{constructor(e,t,n){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e,n&&(this.pageKey=n)}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return Oa({endpoint:this.endpoint,queryId:n,variables:t,pageKey:this.pageKey,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class Na extends Ra{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Na.query,variables:{allowedCommentersScope:e.allowedCommentersScope,text:e.text,visibility:e.visibility||"PUBLIC",reshareUrn:e.reshareUrn,attributedShareUrn:e.attributedShareUrn,articleInput:e.articleInput,imagePostInput:e.imagePostInput,attributes:e.attributes,containerEntity:e.containerEntity},successCallback:t,failureCallback:n})}}Le(Na,"query","2849bb08e3a3bbd23c96c0e758c018b7");class Pa extends Ra{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Pa.query,variables:{url:e},successCallback:t,failureCallback:n})}}Le(Pa,"query","bece320b5f70fe4357082fe84eca6c56");const xa="loader--absolute",Ma="loader--show",Da="loader--full-screen",Ua="no-scroll",Ba="loader-wrapper";class Fa{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(xa),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(Ma),this.el.classList.contains(Da)&&document.body.classList.add(Ua),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Ba)}hide(){this.el.classList.remove(Ma),document.body.classList.remove(Ua),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Ba)}}class qa extends Qr{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("overlay_").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("overlay_").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()}}function Ha(e){return ne(e,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e&&e.responseText).then(t=>{if(!t)throw new Error("Empty response for resource "+e);return t})}function ja(e){let{jsUrl:t,cssUrl:n}=e;const i=[];return t&&i.push(function(e){return Ha(e).then(()=>{const t=document.createElement("script");return t.setAttribute("type","text/javascript"),new Promise(n=>{t.onload=()=>n(),t.src=Ps(e),document.body.appendChild(t)})})}(t)),n&&i.push(function(e){return Ha(e).then(e=>{if(e.length>0){const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}})}(n)),Promise.all(i)}function za(e){return ja(e)}const Ga={};function Wa(e){return Ga[e]?Promise.resolve(Ga[e]):ne("/mwlite/typeahead/get-asset-urls/").then(e=>e&&e.responseText).then(t=>{const n=function(e){const t=document.createElement("template");return t.innerHTML=e,t.content}(t);n.querySelectorAll("meta").forEach(e=>{const[t,n]=e.id.split("_");Ga[t]=Ae(Ae({},Ga[t]),{},{[n]:e.getAttribute("content")})});const i=n.getElementById("".concat(e,"_jsUrl")),r=n.getElementById("".concat(e,"_cssUrl"));return{jsUrl:i&&i.getAttribute("content"),cssUrl:r&&r.getAttribute("content")}}).catch(e=>{throw e})}function Ka(){const e=window["".concat("blendedTypeahead","Module")];return e?Promise.resolve(e):Wa("blendedTypeahead").then(e=>{let{jsUrl:t,cssUrl:n}=e;return za({jsUrl:t,cssUrl:n}).then(()=>window["".concat("blendedTypeahead","Module")])})}document.querySelector.bind(document);String.fromCharCode(32);T(document);String.fromCharCode(32);function Va(){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 Ya(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 Ja(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}Va(),Ya(3),Ja(128),Va(),Ya(6),Ja(400);var Qa=window||e;const Xa=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function Za(){const e=Qa.location?Qa.location.hostname:"";return Xa.test(e)}function $a(){return Za()?ec()?"platform.linkedin.cn":"platform.linkedin.com":ec()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function ec(){const e=Qa.location?Qa.location.hostname:"";return/\.cn$/.test(e)}function tc(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 Qa.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 nc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ic(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rc,oc,sc,ac,cc={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},lc="GUEST",uc="MEMBER",dc=0,hc=1,pc=2,fc=(ic(rc={},lc,"li_gc"),ic(rc,uc,"li_mc"),rc),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 nc(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},cc)t[o]=t[o]||dc,t[o]!==dc&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===hc||t[o]===dc&&r===hc},gc=(oc=[cc.ADVERTISING,cc.ANALYTICS_AND_RESEARCH,cc.FUNCTIONAL],sc=[dc,hc,pc,dc],ac=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(ac);if(!n)return{error:"Invalid consent body encoding",consent:new mc};for(var i=parseInt(n[1],10),r={},o=0;o<oc.length;o++)r[oc[o]]=sc[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),a=parseInt(n[3],10),c=dc;return a>=0&&a<=3&&(c=sc[a]),{error:null,consent:new mc(r,s,t,c)}}}),vc=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),yc=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},bc=function(e,t){var n=yc(fc[e],t);return n?_c(n,e):yc(fc[lc],t)||yc(fc[uc],t)?Ec(pc):Ec(hc)},Ec=function(e){var t={};for(var n in cc)t[n]=e;return{error:null,consent:new mc(t,null,null,e)}};var _c=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,r=null;try{r=(n=e,"undefined"==typeof atob&&void 0!==i?i.from(n,"base64").toString("binary"):atob(n)).match(vc)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new mc};var o=parseInt(r[1],10),s=r[2];switch(o){case 1:return gc.parseConsentBody(s,t);default:return{error:"Invalid encoded consent version ".concat(o),consent:new mc}}},wc=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=yc("liap",t)?yc(fc[uc],t)?uc:lc:yc(fc[lc],t)?lc:uc),bc(e,t)};function Tc(e){return function(){let e=wc();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function Sc(e){return function(){let e=wc();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function kc(e){return function(){let e=wc();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Cc(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 Ic(e){const t=new Qa.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function Ac(){return/utagdb=[^;]+/.test(Qa.document.cookie)}let Lc;const Oc={},Rc={};function Nc(){return"https://".concat(Za()?ec()?"www.linkedin.cn":"www.linkedin.com":ec()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function Pc(){return function(e){let t=Cc({},e);return t["compliance.isAdvertisingOptIn"]=Tc(t),t["compliance.isAnalyticsAndResearchOptIn"]=Sc(),t["compliance.isFunctionalOptIn"]=kc(),t}(Oc)}function xc(e){if(!Rc[e]){const t=function(e){return"https://".concat($a(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{tc(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});Rc[e]=n}return Rc[e]}Qa.utag_data||(Qa.utag_data={});const Mc="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Dc;function Uc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat($a(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Ic(t))),n}function Bc(){return function(){if(void 0===Dc&&Mc){const e=Qa.document.cookie.match(/litms_utag_override=([^;]+)/);Dc=e?e[1]:""}return Dc}().length>0}function Fc(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Cc({},t,Pc());e.view(r),Ac()&&Qa.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function qc(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Cc({},t,Pc());e.link(r),Ac()&&Qa.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Hc(e,t,n){if(function(e){Qa.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?qc(e,i.data,i.callback,n):Fc(e,i.data,i.callback,n)}}}function jc(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 zc(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function Gc(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:zc(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}Qa.utag_cfg_ovrd=Qa.utag_cfg_ovrd||{},Qa.trackingEventDebugData=Qa.trackingEventDebugData||[],Qa.utag_cfg_ovrd.noview=!0,Qa.utag_cfg_ovrd.nocookie=!0;const Wc=Mc&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Qa.navigator.userAgent),Kc={};let Vc,Yc,Jc,Qc={};class Xc{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=xc(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&&(Kc[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==Qa.utag&&(Qa.utag=void 0),void 0!==Qa.utag_data&&(Qa.utag_data=void 0);const n=function(){if(!Lc){const e=Nc();Lc=new Promise((t,n)=>{tc(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return Lc}().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=>{Oc[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 Bc()?Dc:Uc(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=Qa.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,Qa.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=Qa.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){if(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&&jc(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Wc}_shouldProcessEvent(e){return Wc?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?Hc(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=Gc(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&jc(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){wc().consent.consentAvailable&&!Yc?this._refireTracking():Vc=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){Qc.payloads&&Qc.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(Mc){Yc=!1;const{payloads:n=[],url:i}=Qc,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),Qc={url:r,payloads:s},Vc||(Vc=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return wc().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 Zc(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 $c{constructor(e){if(this.trackingInstance=e,this.pageKey=T(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 Xc({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>Zc({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||Zc({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(Ae({pageKey:n},t))}}function el(e){if(!Jc){if(!e)throw new Error("No trackingInstance passed in!");Jc=new $c(e)}return Jc}!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 tl={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},nl={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:il,GOOGLE_USER_FETCHED:rl,INITIALIZED:ol}=tl,{INITIALIZATION:sl,AUTHENTICATION:al}=nl;EventTarget;var cl={exports:{}};function ll(e){this.message=e}ll.prototype=new Error,ll.prototype.name="InvalidCharacterError";var ul="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new ll("'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 dl=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(ul(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 ul(t)}};function hl(e){this.message=e}hl.prototype=new Error,hl.prototype.name="InvalidTokenError",cl.exports=function(e,t){if("string"!=typeof e)throw new hl("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(dl(e.split(".")[n]))}catch(e){throw new hl("Invalid token specified: "+e.message)}},cl.exports.InvalidTokenError=hl;const pl=tl,fl=nl;const{GOOGLE_USER_FETCHED:ml,GOOGLE_ERROR:gl,INITIALIZED:vl}=pl,{INITIALIZATION:yl}=fl;function bl(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function El(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 _l(e,t){return Math.round(e-t)}var wl,Tl=(wl=function(e,t){return(wl=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)},function(e,t){function n(){this.constructor=e}wl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Sl=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}(),kl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Sl),Cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tl(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Sl),Il=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tl(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}(Sl),Al=function(){return 0},Ll=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Ol=Ll&&!!window.requestAnimationFrame,Rl={hasDOM:Ll,hasRAF:Ol,getScrollTop:Al,getScrollLeft:Al,getHeight:Al,getWidth:Al,rAF:Ol?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:Al,get isDirty(){return Rl.version!==Rl.lastVersion},document:window.document,IntersectionObserver:Ll&&window.IntersectionObserver,performance:Ll&&window.performance};function Nl(){++Rl.version}function Pl(){var e=null!=document.scrollingElement;Rl.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Rl.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Ll&&(Rl.getHeight=function(){return window.innerHeight},Rl.getWidth=function(){return window.innerWidth},Rl.updateMeta=function(){Rl.meta.height=Rl.getHeight(),Rl.meta.width=Rl.getWidth(),Rl.meta.scrollLeft=Rl.getScrollLeft(),Rl.meta.scrollTop=Rl.getScrollTop(),Rl.lastVersion=Rl.version},Rl.updateMeta(),"loading"!==document.readyState?Pl():document.addEventListener("DOMContentLoaded",Pl),window.addEventListener("resize",Nl,!1),window.addEventListener("scroll",Nl,!1));var xl=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,Rl.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}(),Ml=null;var Dl=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])})(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)}}(),Ul="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Bl=0,Fl=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 Rl.isDirty&&Rl.updateMeta(),e===window||e===document?(n.height=Rl.meta.height,n.width=Rl.meta.width,n.scrollLeft=Rl.meta.scrollLeft,n.scrollTop=Rl.meta.scrollTop,n):(t=El(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 Bl+++Ul}var Hl=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Ml||(Ml=new xl)),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(Fl.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=El(e),i=Fl.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 kl,t}return Dl(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}(Hl),zl=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Dl(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(jl),Gl=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=Rl.version,r.queue=new Il,r.ALLOW_CACHED_SCHEDULER=i,r}return Dl(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Rl.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=El(r)),i(e,o,s)}this.lastVersion=Rl.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}(Hl),Wl=null;var Kl=function(){function e(){this.queue=new Cl}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}(),Vl=function(){function e(e){this.scheduler=new zl(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Fl.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Yl=null;function Jl(e,t){var n=(Yl||(Yl={scroll:new Vl((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Vl((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Kl,beforeunload:new Kl,hide:new Kl,show:new Kl}))[e];n&&n.listen(t)}function Ql(e,t){if(Yl){var n=Yl[e];n&&n.unlisten(t)}}function Xl(e,t){if(Yl){var n=Yl[e];n&&n.trigger(t)}}function Zl(e){(Wl||(Wl=new jl)).scheduleWork(e)}function $l(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}}Rl.hasDOM&&(window.addEventListener("beforeunload",(function(){Xl("beforeunload"),Xl("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Xl("show"):Xl("hide")})));var eu=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 Gl(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:tu(),intersectionRatio:0,intersectionRect:tu(),isIntersecting:!1,rootBounds:tu(),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:bl({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:$l(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 tu(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var nu={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};var iu=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&&!!Rl.IntersectionObserver;var h=this.usingNativeIo?Rl.IntersectionObserver:eu;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),Rl.hasDOM&&(Jl("beforeunload",this.onWindowClosed),Jl("hide",this.onTabHidden),Jl("show",this.onTabShown),c&&(this.paused="visible"!==Rl.document.visibilityState))}return 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((Rl.performance.timeOrigin||Rl.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:nu,boundingClientRect:o||nu,intersectionRect:nu,visibleTime:r.lastVisible.unixTime,duration:_l(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=_l(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:bl(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=_l(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(),Rl.hasDOM&&(Ql("beforeunload",this.onWindowClosed),Ql("hide",this.onTabHidden),Ql("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),Zl((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},e}();Rl.IntersectionObserver&&Rl.IntersectionObserver;class ru{constructor(e){let{thresholds:t,root:n=null,rootMargin:i="0px",componentList:r=[],observeOnce:o=!1,trailingTrackingEnabled:s=!1,deferInitialTracking:a=!1,getElementPayload:c,onImpression:l=(()=>{}),onObservation:u=(()=>{}),onUnobservation:d=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.root=n,this.thresholds=t||[{label:"impressed",time:1e3,ratio:.5}],this.rootMargin=i,this.trackingInstance=e,this.trailingTrackingEnabled=s,this._getElementPayload=c,this._onImpression=l,this._onObservation=u,this.observeOnce=o,this._onUnobservation=d;const h={root:this.root,rootMargin:this.rootMargin,threshold:this.thresholds};this.spanielObserverInstance=new iu(this._handleObservedNodes.bind(this),h),!a&&this.observeComponents(r)}observeComponents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.spanielObserverInstance&&e.forEach(e=>{const t=this._getElementPayload?this._getElementPayload(e):{};this.spanielObserverInstance.observe(e,t),this._onObservation(e)})}unobserveComponents(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{this.spanielObserverInstance.unobserve(e),this._onUnobservation(e)})}_handleOnImpression(e){this._onImpression({trackingInstance:this.trackingInstance,visibleElements:e}),this.observeOnce&&this.unobserveComponents(e.map(e=>{let{target:t}=e;return t}))}_handleObservedNodes(e){if(this.spanielObserverInstance){const t=e.filter(e=>this.trailingTrackingEnabled?!e.entering:e.entering&&e.boundingClientRect.width>0&&e.boundingClientRect.height>0);t.length>0&&this._handleOnImpression(t)}}reset(){this.spanielObserverInstance.disconnect()}destroy(){this.spanielObserverInstance.destroy()}static fireImpressionEvent(e,t,n,i){let r=e.payload||{};r.visibleTime=e.time-e.duration,r.duration=e.duration,r.size={width:e.boundingClientRect.width,height:e.boundingClientRect.height},r=i?i(r):r,t.fireTrackingEvent(n,r)}}".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");".".concat("accordion-item__trigger");const ou=["options","optionsV2"];function su(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const au=su("action"),cu=su("openpage"),lu=su("openlink"),uu=e=>au(e)&&"BLOCK_PROFILE"===e.action.actionType;function du(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]:Ae({},e[t]),type:n}}class hu{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=Oe(t,ou);if(n&&!(this.optionStack.length>=r.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=n.find(e=>au(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const t=[e];return this.optionStack.push(Ae({options:t.map(e=>du(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(cu(n))return Ae(Ae({},n),r);const i=Ae({options:n[n.type].options.map(e=>du(e))},r);n[n.type].heading&&(i.heading=n[n.type].heading),this.optionStack.push(i)}else n=[...n,...i],this.optionStack.push(Ae({options:n.map(e=>du(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=>au(t)&&t[t.type].title===e);return n&&n.action}}const pu="hidden";class fu extends Qr{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 fu(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=r(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=r(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&&(cu(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=r(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 hu(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;lu(o)&&!i&&(i=!0),au(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=uu(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),au(o)){if(uu(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 f(e,this.semaphoreTrackingPrefix)}sendAction(e){return ne(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,i){let r=m("/psettings/flagging-menu","entityUrn",e);return r=m(r,"contentSource",t),n?r=m(r,"authorProfileId",n):i&&(r=m(r,"authorUrn",i)),ne(r).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class gu{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 te(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new mu('[data-item-type="semaphore"]',t))}}const vu="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var yu;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(yu||(yu={}));const bu=new Set(Object.values(yu));class Eu extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Eu.prototype)}}function _u(e){return 0===e.length||!e.trim()}function wu(e){if("string"!=typeof e)throw new Eu("Keys must be strings. ".concat(vu,"."));if(_u(e))throw new Eu("Keys should not be blank. ".concat(vu,"."));if(/[^a-z0-9-]/.test(e))throw new Eu("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(vu,"."));return e}class Tu{constructor(e,t,n){if(this._featureKey=wu(e),this._degradationKey=wu(t),!n)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof n)throw new Eu("DegradationTrackingMetadata options should be an object. ".concat(vu,"."));const i=n.productName;i&&(this._productName=function(e){if("string"!=typeof e)throw new Eu("The product name must be a string. ".concat(vu,"."));if(_u(e))throw new Eu("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(vu,"."));return e}(i));const r=n.untrackedResponseCodes,o=n.trackedResponseCodes;if(r&&o)throw new Eu("You may only specify one of the options: ".concat(yu.UntrackedResponseCodes," or ")+"".concat(yu.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(vu,"."));!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new Eu("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(vu,"."));var n;if(429===e||999===e)throw new Eu("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."));if(t===yu.UntrackedResponseCodes&&(e<500||e>=600))throw new Eu("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(e," is not considered a degradation unless you explicitly add it to the ")+"".concat(yu.TrackedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat(yu.UntrackedResponseCodes," option. ").concat(vu,"."))};if(void 0!==e&&!Array.isArray(e))throw new Eu("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat(yu.UntrackedResponseCodes," option. ")+"".concat(vu,"."));if(void 0!==t&&!Array.isArray(t))throw new Eu("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat(yu.TrackedResponseCodes," option. ").concat(vu,"."));e&&e.forEach(e=>n(e,yu.UntrackedResponseCodes));t&&t.forEach(e=>n(e,yu.TrackedResponseCodes))}(r,o),this._untrackedResponseCodes=r||[],this._trackedResponseCodes=o||[],this._clientSensorGroupName=n.clientSensorGroupName,function(e){Object.keys(e).forEach(e=>{if(!bu.has(e))throw new Eu("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(vu))})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(Tu.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get degradationKey(){return this._degradationKey}get productName(){return this._productName}get untrackedResponseCodes(){return this._untrackedResponseCodes}get trackedResponseCodes(){return this._trackedResponseCodes}get clientSensorGroupName(){return this._clientSensorGroupName}}var Su;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Su||(Su={})),new Set(Object.values(Su));function ku(e){var t;null===(t=window.lazyloader)||void 0===t||t.then(e=>e.getLazyLoadedJavascriptModule("mweb-gdpr-notice-manager-js")).then(()=>{window.GDPRNoticeManager?new window.GDPRNoticeManager(e):window.GDPRNoticesConfig=e})}var Cu={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,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&&c(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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 u(e,t,n){return(u=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&c(r,n.prototype),r}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(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 u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function f(e){return function(){var t,n=a(e);if(l()){var i=a(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function g(e,t){var 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){}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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},E={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={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"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},k=y.GOOGLE_ERROR,C=y.GOOGLE_USER_FETCHED,I=y.INITIALIZED,A=b.INITIALIZATION,L=b.AUTHENTICATION,O=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?v: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.");m((function(){g(o,i._initializeGoogleAuth.bind(h(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(I);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},i=new CustomEvent(k,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(C,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:L,message:t.error},i=new CustomEvent(k,{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}(d(EventTarget)),R=y.GOOGLE_USER_FETCHED,N=y.PROMPT_MOMENT,P=function(e){s(r,e);var n=f(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?v:u,p=e.cancelOnTapOutside,f=void 0===p||p;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=f,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");m((function(){g(a,i._onGoogleApiLoad.bind(h(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===E.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(R,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{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(N,{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}(d(EventTarget)),x={exports:{}};function M(e){this.message=e}M.prototype=new Error,M.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new M("'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},U=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(D(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 D(t)}};function B(e){this.message=e}B.prototype=new Error,B.prototype.name="InvalidTokenError",x.exports=function(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(U(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}},x.exports.InvalidTokenError=B;var F=x.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=function(e){s(a,e);var n=f(a);function a(e){var i,r,o,s,c=e.autoSelect,l=void 0!==c&&c,u=e.buttonParentEl,d=e.cancelOnTapOutside,p=void 0===d||d,f=e.clientId,y=void 0===f?v:f,b=e.context,E=void 0===b?"signin":b,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.libSrcPath,S=e.hasContentAbove,k=void 0!==S&&S,C=e.promptParentId,I=e.showOneTap,A=void 0===I||I;if(t(this,a),(i=n.call(this)).autoSelect=l,i.buttonParentEl=u,i.cancelOnTapOutside=p,i.clientId=y,i.context=E,i.gsiButtonConfig=w,i.isLibraryLoaded=((s=new Promise((function(e,t){r=e,o=t}))).resolve=r,s.reject=o,s),i.libSrcPath=T,i.hasContentAbove=k,i.promptParentId=C,i.showOneTap=A,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!T)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){g(T,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(a,[{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:S[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.locale,r=void 0===i?"en_US":i,o=t.logo_alignment,s=void 0===o?"center":o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,m=void 0===f?"400px":f;return this.isLibraryLoaded.then((function(){var t=d||S[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:s,shape:c,size:u,text:t,theme:h,type:p,width:m})}))}},{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(H,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=F(t),s=function(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}({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(s){var a=new CustomEvent(q,{detail:s});this.dispatchEvent(a)}}},{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")}}}]),a}(d(EventTarget)),z=T.DISMISSED,G=T.INITIALIZED,W=T.SNAPPLE_USER_FETCHED,K=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?"com.linkedin.LinkedIn.service":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");m((function(){g(o,i._onSnappleLibLoad.bind(h(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(G);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(W,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(z,{detail:{type:z,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:b,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:E,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=P,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(Cu.exports);const{EVENTS:Iu,GOT_CONTEXTS:Au,GOT_PROMPT_MOMENT_REASONS:Lu,GOT_PROMPT_MOMENT_TYPES:Ou}=Cu.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Ru,PROMPT_MOMENT:Nu}=Iu,{SIGN_IN:Pu}=Au;Lu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,Lu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,Lu.NOT_DISPLAYED.SUPPRESSED_BY_USER,Lu.SKIPPED.AUTO_CANCEL,Lu.SKIPPED.TAP_OUTSIDE,Lu.SKIPPED.USER_CANCEL,Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class xu{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("modal")),this.modal=new qa(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 Mu{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 qa(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 Do(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 Du(e){let{featureName:t,featureMappingToDegradationConfig:n,productName:i}=e;return n[t].map(e=>function(e,t,n){const{degradationKey:i,trackedResponseCodes:r,untrackedResponseCodes:o}=n,s=e;let a={productName:t};return r?a=Ae(Ae({},a),{},{trackedResponseCodes:r}):o&&(a=Ae(Ae({},a),{},{untrackedResponseCodes:o})),new Tu(s,i,a)}(t,i,e))}const Uu={AJAX:"ajax",HALF:"half",FULL:"full",ERROR:"error"};class Bu extends Ra{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Bu.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Le(Bu,"query","20f8e9934e7df62932fd167d87c19b27");var Fu=function(){this.__data__=[],this.size=0};var qu=function(e,t){return e===t||e!=e&&t!=t},Hu=qu;var ju=function(e,t){for(var n=e.length;n--;)if(Hu(e[n][0],t))return n;return-1},zu=ju,Gu=Array.prototype.splice;var Wu=ju;var Ku=ju;var Vu=ju;var Yu=Fu,Ju=function(e){var t=this.__data__,n=zu(t,e);return!(n<0)&&(n==t.length-1?t.pop():Gu.call(t,n,1),--this.size,!0)},Qu=function(e){var t=this.__data__,n=Wu(t,e);return n<0?void 0:t[n][1]},Xu=function(e){return Ku(this.__data__,e)>-1},Zu=function(e,t){var n=this.__data__,i=Vu(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function $u(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])}}$u.prototype.clear=Yu,$u.prototype.delete=Ju,$u.prototype.get=Qu,$u.prototype.has=Xu,$u.prototype.set=Zu;var ed=$u,td=ed;var nd=function(){this.__data__=new td,this.size=0};var id=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var rd=function(e){return this.__data__.get(e)};var od=function(e){return this.__data__.has(e)},sd="object"==typeof oe&&oe&&oe.Object===Object&&oe,ad=sd,cd="object"==typeof self&&self&&self.Object===Object&&self,ld=ad||cd||Function("return this")(),ud=ld.Symbol,dd=ud,hd=Object.prototype,pd=hd.hasOwnProperty,fd=hd.toString,md=dd?dd.toStringTag:void 0;var gd=function(e){var t=pd.call(e,md),n=e[md];try{e[md]=void 0;var i=!0}catch(e){}var r=fd.call(e);return i&&(t?e[md]=n:delete e[md]),r},vd=Object.prototype.toString;var yd=gd,bd=function(e){return vd.call(e)},Ed=ud?ud.toStringTag:void 0;var _d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ed&&Ed in Object(e)?yd(e):bd(e)};var wd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Td=_d,Sd=wd;var kd,Cd=function(e){if(!Sd(e))return!1;var t=Td(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Id=ld["__core-js_shared__"],Ad=(kd=/[^.]+$/.exec(Id&&Id.keys&&Id.keys.IE_PROTO||""))?"Symbol(src)_1."+kd:"";var Ld=function(e){return!!Ad&&Ad in e},Od=Function.prototype.toString;var Rd=Cd,Nd=Ld,Pd=wd,xd=function(e){if(null!=e){try{return Od.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Md=/^\[object .+?Constructor\]$/,Dd=Function.prototype,Ud=Object.prototype,Bd=Dd.toString,Fd=Ud.hasOwnProperty,qd=RegExp("^"+Bd.call(Fd).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Hd=function(e){return!(!Pd(e)||Nd(e))&&(Rd(e)?qd:Md).test(xd(e))},jd=function(e,t){return null==e?void 0:e[t]};var zd=function(e,t){var n=jd(e,t);return Hd(n)?n:void 0},Gd=zd(ld,"Map"),Wd=zd(Object,"create"),Kd=Wd;var Vd=function(){this.__data__=Kd?Kd(null):{},this.size=0};var Yd=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jd=Wd,Qd=Object.prototype.hasOwnProperty;var Xd=function(e){var t=this.__data__;if(Jd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Qd.call(t,e)?t[e]:void 0},Zd=Wd,$d=Object.prototype.hasOwnProperty;var eh=Wd;var th=Vd,nh=Yd,ih=Xd,rh=function(e){var t=this.__data__;return Zd?void 0!==t[e]:$d.call(t,e)},oh=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=eh&&void 0===t?"__lodash_hash_undefined__":t,this};function sh(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])}}sh.prototype.clear=th,sh.prototype.delete=nh,sh.prototype.get=ih,sh.prototype.has=rh,sh.prototype.set=oh;var ah=sh,ch=ed,lh=Gd;var uh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var dh=function(e,t){var n=e.__data__;return uh(t)?n["string"==typeof t?"string":"hash"]:n.map},hh=dh;var ph=dh;var fh=dh;var mh=dh;var gh=function(){this.size=0,this.__data__={hash:new ah,map:new(lh||ch),string:new ah}},vh=function(e){var t=hh(this,e).delete(e);return this.size-=t?1:0,t},yh=function(e){return ph(this,e).get(e)},bh=function(e){return fh(this,e).has(e)},Eh=function(e,t){var n=mh(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function _h(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])}}_h.prototype.clear=gh,_h.prototype.delete=vh,_h.prototype.get=yh,_h.prototype.has=bh,_h.prototype.set=Eh;var wh=ed,Th=Gd,Sh=_h;var kh=ed,Ch=nd,Ih=id,Ah=rd,Lh=od,Oh=function(e,t){var n=this.__data__;if(n instanceof wh){var i=n.__data__;if(!Th||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Sh(i)}return n.set(e,t),this.size=n.size,this};function Rh(e){var t=this.__data__=new kh(e);this.size=t.size}Rh.prototype.clear=Ch,Rh.prototype.delete=Ih,Rh.prototype.get=Ah,Rh.prototype.has=Lh,Rh.prototype.set=Oh;var Nh=Rh,Ph=zd,xh=function(){try{var e=Ph(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mh=xh;var Dh=function(e,t,n){"__proto__"==t&&Mh?Mh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Uh=Dh,Bh=qu;var Fh=function(e,t,n){(void 0!==n&&!Bh(e[t],n)||void 0===n&&!(t in e))&&Uh(e,t,n)};var qh=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}}(),Hh={exports:{}};!function(e,t){var n=ld,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}}(Hh,Hh.exports);var jh=ld.Uint8Array;var zh=function(e){var t=new e.constructor(e.byteLength);return new jh(t).set(new jh(e)),t};var Gh=function(e,t){var n=t?zh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Wh=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Kh=wd,Vh=Object.create,Yh=function(){function e(){}return function(t){if(!Kh(t))return{};if(Vh)return Vh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Jh=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Qh=Object.prototype;var Xh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qh)},Zh=Yh,$h=Jh,ep=Xh;var tp=function(e){return"function"!=typeof e.constructor||ep(e)?{}:Zh($h(e))};var np=function(e){return null!=e&&"object"==typeof e},ip=_d,rp=np;var op=function(e){return rp(e)&&"[object Arguments]"==ip(e)},sp=np,ap=Object.prototype,cp=ap.hasOwnProperty,lp=ap.propertyIsEnumerable,up=op(function(){return arguments}())?op:function(e){return sp(e)&&cp.call(e,"callee")&&!lp.call(e,"callee")},dp=Array.isArray;var hp=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},pp=Cd,fp=hp;var mp=function(e){return null!=e&&fp(e.length)&&!pp(e)},gp=mp,vp=np;var yp=function(e){return vp(e)&&gp(e)},bp={exports:{}};var Ep=function(){return!1};!function(e,t){var n=ld,i=Ep,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}(bp,bp.exports);var _p=_d,wp=Jh,Tp=np,Sp=Function.prototype,kp=Object.prototype,Cp=Sp.toString,Ip=kp.hasOwnProperty,Ap=Cp.call(Object);var Lp=function(e){if(!Tp(e)||"[object Object]"!=_p(e))return!1;var t=wp(e);if(null===t)return!0;var n=Ip.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Cp.call(n)==Ap},Op=_d,Rp=hp,Np=np,Pp={};Pp["[object Float32Array]"]=Pp["[object Float64Array]"]=Pp["[object Int8Array]"]=Pp["[object Int16Array]"]=Pp["[object Int32Array]"]=Pp["[object Uint8Array]"]=Pp["[object Uint8ClampedArray]"]=Pp["[object Uint16Array]"]=Pp["[object Uint32Array]"]=!0,Pp["[object Arguments]"]=Pp["[object Array]"]=Pp["[object ArrayBuffer]"]=Pp["[object Boolean]"]=Pp["[object DataView]"]=Pp["[object Date]"]=Pp["[object Error]"]=Pp["[object Function]"]=Pp["[object Map]"]=Pp["[object Number]"]=Pp["[object Object]"]=Pp["[object RegExp]"]=Pp["[object Set]"]=Pp["[object String]"]=Pp["[object WeakMap]"]=!1;var xp=function(e){return Np(e)&&Rp(e.length)&&!!Pp[Op(e)]};var Mp=function(e){return function(t){return e(t)}},Dp={exports:{}};!function(e,t){var n=sd,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}(Dp,Dp.exports);var Up=xp,Bp=Mp,Fp=Dp.exports,qp=Fp&&Fp.isTypedArray,Hp=qp?Bp(qp):Up;var jp=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},zp=Dh,Gp=qu,Wp=Object.prototype.hasOwnProperty;var Kp=function(e,t,n){var i=e[t];Wp.call(e,t)&&Gp(i,n)&&(void 0!==n||t in e)||zp(e,t,n)},Vp=Dh;var Yp=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?Vp(n,a,c):Kp(n,a,c)}return n};var Jp=/^(?:0|[1-9]\d*)$/;var Qp=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Jp.test(e))&&e>-1&&e%1==0&&e<t},Xp=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Zp=up,$p=dp,ef=bp.exports,tf=Qp,nf=Hp,rf=Object.prototype.hasOwnProperty;var of=function(e,t){var n=$p(e),i=!n&&Zp(e),r=!n&&!i&&ef(e),o=!n&&!i&&!r&&nf(e),s=n||i||r||o,a=s?Xp(e.length,String):[],c=a.length;for(var l in e)!t&&!rf.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||tf(l,c))||a.push(l);return a};var sf=wd,af=Xh,cf=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},lf=Object.prototype.hasOwnProperty;var uf=of,df=function(e){if(!sf(e))return cf(e);var t=af(e),n=[];for(var i in e)("constructor"!=i||!t&&lf.call(e,i))&&n.push(i);return n},hf=mp;var pf=function(e){return hf(e)?uf(e,!0):df(e)},ff=Yp,mf=pf;var gf=Fh,vf=Hh.exports,yf=Gh,bf=Wh,Ef=tp,_f=up,wf=dp,Tf=yp,Sf=bp.exports,kf=Cd,Cf=wd,If=Lp,Af=Hp,Lf=jp,Of=function(e){return ff(e,mf(e))};var Rf=Nh,Nf=Fh,Pf=qh,xf=function(e,t,n,i,r,o,s){var a=Lf(e,n),c=Lf(t,n),l=s.get(c);if(l)gf(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=wf(c),p=!h&&Sf(c),f=!h&&!p&&Af(c);u=c,h||p||f?wf(a)?u=a:Tf(a)?u=bf(a):p?(d=!1,u=vf(c,!0)):f?(d=!1,u=yf(c,!0)):u=[]:If(c)||_f(c)?(u=a,_f(a)?u=Of(a):Cf(a)&&!kf(a)||(u=Ef(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),gf(e,n,u)}},Mf=wd,Df=pf,Uf=jp;var Bf=function e(t,n,i,r,o){t!==n&&Pf(n,(function(s,a){if(o||(o=new Rf),Mf(s))xf(t,n,a,i,e,r,o);else{var c=r?r(Uf(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),Nf(t,a,c)}}),Df)};var Ff=function(e){return e};var qf=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)},Hf=Math.max;var jf=function(e,t,n){return t=Hf(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Hf(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),qf(e,this,a)}};var zf=function(e){return function(){return e}},Gf=xh,Wf=Gf?function(e,t){return Gf(e,"toString",{configurable:!0,enumerable:!1,value:zf(t),writable:!0})}:Ff,Kf=Date.now;var Vf=function(e){var t=0,n=0;return function(){var i=Kf(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Wf),Yf=Ff,Jf=jf,Qf=Vf;var Xf=qu,Zf=mp,$f=Qp,em=wd;var tm=function(e,t){return Qf(Jf(e,t,Yf),e+"")},nm=function(e,t,n){if(!em(n))return!1;var i=typeof t;return!!("number"==i?Zf(n)&&$f(t,n.length):"string"==i&&t in n)&&Xf(n[t],e)};var im=Bf;rm=function(e,t,n){im(e,t,n)},tm((function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(r=rm.length>3&&"function"==typeof r?(i--,r):void 0,o&&nm(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var s=t[n];s&&rm(e,s,n,r)}return e}));var rm;function om(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 sm(e,t,n){const i=om(e),r=om(t),o=om(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}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const am="data-draggable-initialized",cm="touchstart",lm="touchmove",um="touchend";class dm{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;dm.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(cm,t),this.draggableElementEl.setAttribute(am,!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=sm(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(lm,t),document.addEventListener(um,(function e(){document.removeEventListener(lm,t),document.removeEventListener(um,e)}))}moveTo(e,t){const n=sm(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)}}dm.isDraggable=function(e){return!!e.getAttribute(am)};const hm="data-zoomable-initialized",pm="touchstart",fm="touchmove",mm="touchend";class gm{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;gm.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(pm,t),this.zoomableElement.setAttribute(hm,!0))}scaleElement(e,t){if(1===e)return;this.limits=sm(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(fm,t),document.addEventListener(mm,(function e(){document.removeEventListener(fm,t),document.removeEventListener(mm,e)}))}}let vm;gm.isZoomable=function(e){return!!e.getAttribute(hm)};function ym(e){var t;const n=ya("gdpr_notice_share"),i=ya("gdprLearnMoreLabel"),r=document.querySelector(".modal-spinner");lo(r),n&&i&&ku({notices:[{name:"SHARING_POST_VISIBILITY_FOR_PERSONALIZATION",msg:n,lbl:i,href:"/help/linkedin/answer/85598"}]});const o=document.querySelector("#share-modal");null===(t=window.lazyloader)||void 0===t||t.then(e=>e.getLazyLoadedJavascriptModule("mweb-share-modal-js")).then(t=>{const{getShareModalInstance:n}=t;vm=n(o,{shouldHideModal:()=>!1,triggerByOutletEl:!1,pushState:!0,historyUpdateUrl:e.historyUpdateUrl}),co(r),vm.open(e)}).catch(()=>{co(r)})}function bm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.preventDefault(),ym(t)}a.getInstance().addUnloadCallback(()=>{vm&&vm.close(),co(document.querySelector("#discard-post-modal")),co(document.querySelector("#visibility-settings-modal")),co(document.querySelector("#max-images-prompt-modal")),co(document.querySelector("#retry-upload-modal"))});var Em=Object.freeze({__proto__:null,openShareModal:bm});class _m{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=ya("feedLastUpdatedTime")}resetBadges(){uo(this.badgeCountEls),uo(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return ne(e?m("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);y(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const i=bo();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(()=>{y(window,"badgesreceived",{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,lo(e)):t!==n&&(t>0?(e.textContent=t,lo(e),e.classList.toggle("singular",t<=1)):co(e))}_setBadge(e,t){e&&(t>0?(lo(e),e.classList.add("badge-with-no-count")):co(e))}_updateCacheBustUrl(e){ya("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Ps(e?m(t.href,"pwa","noCache"):_(t.href))})}}const wm=function(){let e;return{getInstance:function(t){return e||(e=new _m(t)),e}}}();let Tm;class Sm{constructor(e){if(!e)throw Error("An element must be provided to Nav");this.el=e,this.activeSearchType="",this.defaultSearchType="",this.activeTypeahead=null,this.registeredSearchTypes={},Ka().then(e=>{Tm=e,this.setupEventListeners()})}historyBackClickHandler(){this.activeTypeahead&&this.activeTypeahead.input.el.getAttribute("data-container")!==window.location.hash&&this.navBackEl.click()}onTypeaheadOpen(e){clearTimeout(this.collapseTimeoutID),this.activeTypeahead=this.typeaheadInstance.getTypeahead();const t=void 0!==this.collapseTimeoutID,n=e.target.getAttribute("data-container");window.location.hash!==n&&window.history[t?"replaceState":"pushState"]({},"search typeahead opened",n),window.addEventListener("popstate",this.historyBackClickHandler.bind(this)),this.collapseTimeoutID=void 0,this.expandSearchBar()}onTypeaheadClose(){this.activeTypeahead=null,window.removeEventListener("popstate",this.historyBackClickHandler.bind(this)),this.collapseTimeoutID=setTimeout(()=>{this.collapseTimeoutID=void 0,this.collapseSearchBar(),window.location.hash&&window.history.back()},0)}getSearchExpandedClass(){const e=this.getActiveSearchType(),t=this.registeredSearchTypes[e];return t?t.searchExpandClass:""}expandSearchBar(){document.body.classList.contains("search-expanded")||(document.body.classList.add("search-expanded"),this.getSearchExpandedClass()&&document.body.classList.add(this.getSearchExpandedClass()),y(this.navSearchEl,"navbar:expand"))}collapseSearchBar(){document.body.classList.remove("search-expanded"),this.getSearchExpandedClass()&&document.body.classList.remove(this.getSearchExpandedClass()),y(this.navSearchEl,"navbar:collapse")}initializeBlendedTypeahead(){this.navSearchEl=this.el.querySelector("#nav-search"),this.typeaheadInstance=new Tm(this.navSearchEl),this.registerSearchType("people",{isDefault:!0})}initSecondaryNavScroll(e){new ka(e,{isBottom:!1,scrollThreshold:window.innerHeight/2,hideOnScrollDown:!0,marginApplied:!0,debounceDelay:10}),e.addEventListener("hide",()=>{document.body.classList.add("window-scroll-threshold-met")}),e.addEventListener("show",()=>{document.body.classList.remove("window-scroll-threshold-met")})}initializeBadges(){return!ya("isPrefetchedSSRBadgeEnabled")&&wm.getInstance().getBadges()}resetBadges(){wm.getInstance().resetBadges()}setupEventListeners(){const e=this.el.querySelector("[".concat("data-action-type","=").concat("OPEN_SHARE_MODAL","] a")),t=document.querySelector("#share-modal"),n=this.el.querySelector("#secondary-nav");e&&t&&e.addEventListener("click",(function(e){e.preventDefault(),bm(e)})),n&&(this.navBackEl=this.el.querySelector("#nav-back"),this.initializeBlendedTypeahead(),this.navBackEl&&this.navBackEl.addEventListener("click",()=>{this.typeaheadInstance.closeSearchTypeahead()}),this.navSearchEl&&(this.navSearchEl.addEventListener("typeahead:open",this.onTypeaheadOpen.bind(this)),this.navSearchEl.addEventListener("typeahead:close",this.onTypeaheadClose.bind(this))),this.initSecondaryNavScroll(n),a.getInstance().addUnloadCallback(()=>{this.activeTypeahead&&(this.typeaheadInstance.closeSearchTypeahead(),clearTimeout(this.collapseTimeoutID),this.collapseTimeoutID=null,this.collapseSearchBar(),window.location.hash&&window.history.back())})),this.initializeBadges(),a.getInstance().addUnloadCallback(()=>{this.resetBadges()})}getActiveSearchType(){return this.activeSearchType||this.defaultSearchType}registerSearchType(e,t){this.registeredSearchTypes[e]||(this.registeredSearchTypes[e]=t||{},t&&t.isDefault&&(this.defaultSearchType=e))}}class km{constructor(e){this.storage=void 0===e?localStorage:e}read(e){try{const t=this.storage.getItem(e);if(t)return JSON.parse(t)}catch(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+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}const Cm=function(){try{return km.instance||(km.instance=new km(localStorage)),km.instance}catch(e){}}(),Im=function(){try{return km.sessionInstance||(km.sessionInstance=new km(sessionStorage)),km.sessionInstance}catch(e){}}();var Am=Object.freeze({__proto__:null,default:km,cache:Cm,sessionCache:Im});let Lm;function Om(){return Lm||(Lm=new ga),Lm}function Rm(){try{var e,t;const n=null===(e=window.sessionStorage)||void 0===e?void 0:e.getItem("MWEB_TOAST_MESSAGE"),i=null===(t=window.sessionStorage)||void 0===t?void 0:t.getItem("MWEB_TOAST_TYPE");n&&i&&(Om().trigger(i,n),function(){try{var e,t;null===(e=window.sessionStorage)||void 0===e||e.removeItem("MWEB_TOAST_MESSAGE"),null===(t=window.sessionStorage)||void 0===t||t.removeItem("MWEB_TOAST_TYPE")}catch(e){}}())}catch(e){}}function Nm(e,t){return e&&t?"urn:li:control:".concat(t,"-").concat(e):null}function Pm(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function xm(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",Pm),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(xm)}}function Mm(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),y(t,"input:cleared"),y(t,"change")}function Dm(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",Dm)}function Um(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Bm(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("input"),r=e.querySelector(".right");i.addEventListener("change",Um),i.addEventListener("focus",Dm),r&&r.addEventListener("click",Mm)}else{document.querySelectorAll(".input-container").forEach(Bm)}}const Fm="MinLength",qm="MaxLength",Hm="Regex",jm="Required",zm="RegexAllow",Gm={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"}},Wm="EMAIL_ADDRESS",Km="PHONE_NUMBER",Vm="OTHER",Ym="consentUnchecked",Jm={INPUT:"INPUT",SELECT:"SELECT"},Qm="text",Xm="checkbox";function Zm(e){return Object.keys(Jm).includes(e.tagName)}function $m(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Vm:n&&t.push({type:Fm,MinLength:n}),i&&t.push({type:qm,MaxLength:i});break;case Wm:t.push({type:zm,RegexAllow:[Gm.EMAIL]});break;case Km:o=e.value.replace(/ /g,""),t.push({type:zm,RegexAllow:[Gm.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 jm:if(0===n.length)return jm;break;case Fm:if(n.length<e[Fm])return Fm;break;case qm:if(n.length>e[qm])return qm;break;case Hm:for(let t=0;t<e[Hm].length;t++)if(e[Hm][t].pattern.test(n))return Hm+e[Hm][t].errorCode;break;case zm:for(let t=0;t<e[zm].length;t++)if(!e[zm][t].pattern.test(n))return zm+e[zm][t].errorCode}})(e,n)).filter(e=>!!e)}function eg(e,t){return t&&!e?Ym:null}const tg=(e,t)=>parseInt(t.split(e)[1]),ng=(e,t)=>t.split(e)[1];function ig(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const rg=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),og=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),sg=(e,t)=>({question:e,answerDetails:{options:[t]}});function ag(e){const t=e.id+"_",n=t+"q",i=t+"c",r=ya("hasDecoratedLeadGenFormData");return new Promise((t,o)=>{const s=[];let a,c;const{urn:l,creativeUrn:u,legalInfoUrn:d}=e.dataset;c=e.dataset.leadTrackingParams,c||(a=e.closest("[data-lead-tracking-params]"),c=a.dataset.leadTrackingParams);const h={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:c,trackingAction:"LEAD_FORM_CLICK"},p={associatedEntity:u,form:l,legalInfoUrn:d,leadType:"SPONSORED",formResponse:{answers:[],consentResponses:[]},leadTrackingParams:c,submittedAt:Date.now(),submitter:ya("memberUrn")};return Array.from(e).filter(Zm).forEach(e=>{let t;if(e.tagName===Jm.SELECT)t=((e,t,n)=>{const i=n?ng(e,t.id):tg(e,t.id),r=t.selectedIndex;return{response:n?sg(i,r):og(i,r)}})(n,e,r),r?p.formResponse.answers.push(t.response):h.formResponse.answers.push(t.response);else if(e.type===Qm)if(t=((e,t,n)=>{const i=n?ng(e,t.id):tg(e,t.id),r=$m(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):rg(i,t.value)};var o,s})(n,e,r),t.response)r?p.formResponse.answers.push(t.response):h.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===Xm&&(t=((e,t,n,i,r)=>{const o=tg(e,t),s=eg(n,i);return s?{errors:s}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(i,e.id,e.checked,e.required,r),t.response?r?p.formResponse.consentResponses.push(t.response):h.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?t(r?p:h):o(s)})}class cg{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");Bm(),xm(),To("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 qa(i,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Zm).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),ag(this.formEl).then(e=>{y(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();G(ig(t.element,t.errorType),z.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");co(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=ig(e,t),i=e.closest(".lead-gen-input-container"),r=i.querySelector(".error-text");r.innerText=n,lo(r),i.classList.add("input-error"),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Xm)t=eg(e.checked,e.required);else if(e.type===Qm){const n=$m(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",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("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}Le(cg,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class lg{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 lg}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 ug="#push-notification-prompt";document.querySelector(ug);const dg="[data-feed-control]",hg='[data-id="main-feed-card"]';function pg(e,t,n){var i,r;const o=null==e||null===(i=e.target)||void 0===i?void 0:i.closest(dg),s=null==e||null===(r=e.target)||void 0===r?void 0:r.closest(hg),a=t||(null==s?void 0:s.dataset);if(!o&&!n||!a)return;const c=Ae(Ae({},null==o?void 0:o.dataset),n),{feedControl:l,feedActionCategory:u,feedActionType:d}=c,{activityUrn:h,feedItemTrackingId:p}=a;window.tracking&&window.tracking.then(e=>{let t;const n=ya("trackingModuleKey"),i=T(document),r=jr(i);t=Ae({actionCategory:(null==u?void 0:u.toUpperCase())||"",actionType:d,controlUrn:Nm(l,i),updateUrn:h,trackingId:p||e.generateBase64UUID(),moduleKey:n||"lite-feed:phone",requestId:""},r);try{var o,s;(null===(o=t)||void 0===o?void 0:o.actionCategory)&&(null===(s=t)||void 0===s?void 0:s.actionType)&&e.fireTrackingEvent("FeedActionEvent",t)}catch(e){}})}class fg{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=ya("share-via-text"),r=ya("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 Qr(this.shareViaModalEl)),this.bindEvents()}modalClickHandler(e){const t=r(e.target,"[data-action-copy-to-clipboard]");t?(this.onSelect(e,t),this.copyToClipboard.call(this,e)):this.onSelect(e,r(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 mg="FOLLOW_ACTIVE",gg="UNFOLLOW";class vg{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 Oa({endpoint:this.endpoint,queryId:vg.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)}}Le(vg,"query","cbed571fffd8cea15209aed8d44e6759");class yg{constructor(e){var t,n;let{deleteEntity:i=(()=>{}),disableComment:r=(()=>{}),enableComment:o=(()=>{}),followConfig:s={},semaphoreConfig:a={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Control menu element is required");this._el=e,this.followConfig=s,this.semaphoreConfig=a,this.ellipsisMenu=new gu(e),this.feedCardEl=e.closest('[data-id="main-feed-card"]'),this.parentEl=null===(t=this.feedCardEl)||void 0===t?void 0:t.parentNode,this.ellipsisMenuTriggerEl=e.querySelector(".ellipsis-menu__trigger"),null!==(n=this.followConfig)&&void 0!==n&&n.endpoint&&(this._followMutationInstance=new vg(this.followConfig.endpoint)),this._enableComment=o,document.getElementById("toasts")&&(this.toasts=new ga);const c=e.querySelector(".collapsible-dropdown__list"),l=c.querySelector('[data-feed-action="control-menu-semaphore"]');l&&new mu('[data-item-type="semaphore"]',l,this._handleSemaphoreSubmitAction.bind(this),this.ellipsisMenuTriggerEl);const u=c.querySelector('[data-feed-action="control-menu-share-via"]');var d;u&&(null===(d=this.toasts)||void 0===d||d.clearAllToasts(),new fg(u,{onClipboardCopy:e=>{var t,n;e?null===(t=this.toasts)||void 0===t||t.trigger("success",ya("i18n_copy_to_clipboard_success")):null===(n=this.toasts)||void 0===n||n.trigger("error",ya("i18n_copy_to_clipboard_error"))}}));if(c.querySelector('[data-feed-action="control-menu-delete"]')){const e=this.feedCardEl.querySelector("#modal-delete-confirmation-wrapper");this.deleteConfirmationModal=new xu(e,e=>i(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}if(c.querySelector('[data-feed-action="control-menu-disable-comments"]')){const e=this.feedCardEl.querySelector("#modal-disable-comments-confirmation-wrapper");this.disableCommentsConfirmationModal=new xu(e,e=>r(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}c.addEventListener("click",this.handleControlMenuActions.bind(this))}_showPostRemovedCard(e){const t=this.feedCardEl.parentNode,n=this.feedCardEl.querySelector("#post-removed-card-template"),i=document.importNode(n.content,!0);t.appendChild(i),this._initializeUndoButton(e);const r=t.querySelector(".imf-link");r&&r.focus()}_handleSemaphoreSubmitAction(){var e,t;co(this.feedCardEl);const n=this.feedCardEl.querySelector("#post-reported-card-template"),i=document.importNode(n.content,!0);this.parentEl.appendChild(i),null===(e=this.semaphoreConfig)||void 0===e||null===(t=e.submitActionCallback)||void 0===t||t.call(e)}_initializeUndoButton(e){const t=this.parentEl.querySelector(".post-removed-card");t.querySelector(".undo-follow-button").addEventListener("click",n=>{var i,r,o;const{activityUrn:s,feedItemTrackingId:a}=this.feedCardEl.dataset;pg(n,{activityUrn:s,feedItemTrackingId:a}),null===(i=this.toasts)||void 0===i||i.clearAllToasts(),t.remove(),lo(this.feedCardEl),this.parentEl.querySelector(".ellipsis-menu__trigger").focus(),null===(r=this.followConfig)||void 0===r||null===(o=r.actionCallback)||void 0===o||o.call(r),this._followMutationInstance.execute(mg,e.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},t=>{var n,i,r;null===(n=this.toasts)||void 0===n||n.trigger("error",e.getAttribute("data-failure-message")),null===(i=this.followConfig)||void 0===i||null===(r=i.errorCallback)||void 0===r||r.call(i,t)})})}_handleFollowAction(e){var t,n,i;const r=e.target.closest("[data-feed-action]");null===(t=this.toasts)||void 0===t||t.clearAllToasts();G(r.getAttribute("data-unfollow-ally-text")),co(this.feedCardEl),this._showPostRemovedCard(r),null===(n=this.followConfig)||void 0===n||null===(i=n.actionCallback)||void 0===i||i.call(n),this._followMutationInstance.execute(gg,r.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},e=>{var t,n,i;null===(t=this.toasts)||void 0===t||t.trigger("error",r.getAttribute("data-unfollow-failure-message")),null===(n=this.followConfig)||void 0===n||null===(i=n.errorCallback)||void 0===i||i.call(n,e)})}handleControlMenuActions(e){const t=e.target.closest("[data-feed-action]"),n=e.target.closest('[data-id="main-feed-card"]');if(t&&t.getAttribute("data-feed-action")&&n){switch(t.getAttribute("data-feed-action")){case"control-menu-unfollow":this._handleFollowAction(e);break;case"control-menu-delete":this.deleteConfirmationModal.modal.open();break;case"control-menu-disable-comments":this.disableCommentsConfirmationModal.modal.open();break;case"control-menu-enable-comments":this._enableComment(e,n)}y(this._el,"close")}}}const bg=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.freeze(Object.values(bg));const Eg="CREATE",_g="DELETE",wg="UPDATE";class Tg{constructor(e,t){if(!e)throw Error("Missing ReactionMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),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:Tg.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Eg&&n!==wg||(o.variables.reactionType=e),Oa(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Le(Tg,"query","070ee23fd6fb77f92ac08f964ae1df29");const Sg="REACT",kg="UNREACT";class Cg{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"".concat(".reactions-menu","__trigger"),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,{endpoint:n,beforeReaction:i,onReaction:r,pemDegradationTrackingMetadata:o,onReactionSuccess:s=(()=>{}),onReactionError:a=(()=>{}),shouldStopPropagation:c=!0,reactionsMenuPageViewEvent:l,fireLoggedInReactionTracking:u=!1,isContribution:d=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.triggerSelector=e,this.a11yTriggerSelector="".concat(e,"--a11y"),this.parentContainerElement=t,this._mutationInstance=new Tg(n,o),this.selectedReactionTemplate=t.querySelector("#selected-reaction"),!t.querySelector('[data-id="reactions-menu"]'))throw new Error("Cannot find ReactionsMenu template");this.beforeReaction=i,this.activeReactionMenuEl=null,this.onReaction=r,this.onReactionSuccess=s,this.onReactionError=a,this.shouldStopPropagation=c,this.reactionsMenuPageViewEvent=l,this.triggers=t.querySelectorAll(this.triggerSelector),this.reactionsMenuClickHandler=this.handleReactionsClick.bind(this),this.isTouchActive=!1,this.isA11yTriggerActive=!1,this.fireLoggedInReactionTracking=u,this.isContribution=d,this.bindEvents()}bindEvents(){this.triggers.forEach(e=>{X()?(e.addEventListener("touchstart",e=>{this.longPressTimer=setTimeout(()=>{e.preventDefault(),this.showReactions(e),this.isA11yTriggerActive=!1},334)}),e.addEventListener("touchend",()=>{clearTimeout(this.longPressTimer)})):(e.addEventListener("mouseenter",g(this.showReactions.bind(this),300)),e.addEventListener("mouseleave",g(()=>{!e.parentElement.matches(":hover")&&this.hideReactions.call(this)},500)))}),this.parentContainerElement.addEventListener("click",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?Eg:_g,t=>{this.onReactionSuccess(t,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("w-0")}),e.addEventListener("blur",e=>{!this.getContainerElement(e.target).querySelector('[data-id="reactions-menu"]')&&e.target.classList.add("w-0")})})}handleFocusForReactionEl(e){e?(e.focus(),e.classList.add("outline-none")):document.activeElement.blur()}getTouchEventTarget(e){const t=e.changedTouches[0];return r(document.elementFromPoint(t.clientX,t.clientY),"[data-reaction-type]")}showReactions(e){if(!this.isReactionMenuVisible()){var t,n;let i=e.target;if(!e.target.classList.contains("reaction-menu")&&(i=this.getContainerElement(e.target),!i))return;this.renderReactionsMenu(i),this.reactionsMenuPageViewEvent&&(null===(t=window.tracking)||void 0===t||t.then(e=>{Hr(e,"half",this.reactionsMenuPageViewEvent)})),X()&&(this.isTouchActive=!0,this.isA11yTriggerActive||(document.body.classList.add("overflow-hidden"),this.handleFocusForReactionEl(this.getTouchEventTarget(e)),this.documentTouchStartHandlerFn=this.documentTouchStartHandlerFn||this.documentTouchStartHandler.bind(this),this.documentTouchEndHandlerFn=this.documentTouchEndHandlerFn||this.documentTouchEndHandler.bind(this),this.parentContainerElementTouchMoveHandlerFn=this.parentContainerElementTouchMoveHandlerFn||this.parentContainerElementTouchMoveHandler.bind(this),this.parentContainerElementTouchEndHandlerFn=this.parentContainerElementTouchEndHandlerFn||this.parentContainerElementTouchEndHandler.bind(this),document.addEventListener("touchstart",this.documentTouchStartHandlerFn),document.addEventListener("touchend",this.documentTouchEndHandlerFn),this.parentContainerElement.addEventListener("touchmove",this.parentContainerElementTouchMoveHandlerFn),this.parentContainerElement.addEventListener("touchend",this.parentContainerElementTouchEndHandlerFn))),this.documentClickHandlerFn=this.documentClickHandlerFn||this.hideReactions.bind(this),this.parentContainerEl!==document.body&&document.addEventListener("click",this.documentClickHandlerFn),null===(n=this.a11yTriggerElement())||void 0===n||n.setAttribute("aria-expanded","true")}}hideReactions(){var e;let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.isReactionMenuVisible()){var n,i;if(this.activeReactionMenuEl.removeEventListener("click",this.reactionsMenuClickHandler),t)null===(n=this.getContainerElement(this.activeReactionMenuEl))||void 0===n||null===(i=n.querySelector(this.a11yTriggerSelector))||void 0===i||i.classList.add("w-0");this.activeReactionMenuEl.classList.add("hidden"),this.activeReactionMenuEl=null}X()&&!this.isA11yTriggerActive&&(document.body.classList.remove("overflow-hidden"),document.removeEventListener("touchstart",this.documentTouchStartHandlerFn),document.removeEventListener("touchend",this.documentTouchEndHandlerFn),this.parentContainerElement.removeEventListener("touchmove",this.parentContainerElementTouchMoveHandlerFn),this.parentContainerElement.removeEventListener("touchend",this.parentContainerElementTouchEndHandlerFn)),this.isA11yTriggerActive=!1,this.parentContainerEl!==document.body&&document.removeEventListener("click",this.documentClickHandlerFn),null===(e=this.a11yTriggerElement())||void 0===e||e.setAttribute("aria-expanded","false")}isReactionMenuVisible(){return Boolean(this.activeReactionMenuEl&&!this.activeReactionMenuEl.classList.contains("hidden"))}getActionType(e,t){return e&&t?t!==e?wg:null:t?Eg:_g}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,pg(n)}else pg(e);e.stopPropagation()}handleReactionsClick(e){var t,n;let i;var r;"touchend"===e.type?i=this.getTouchEventTarget(e):i=null===(r=e.target)||void 0===r?void 0:r.closest("[data-reaction-type]");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,t=>{this.onReactionSuccess(t,e)},e=>{this.onReactionError(e)});this.shouldStopPropagation&&e.stopPropagation()}}documentTouchStartHandler(e){e.preventDefault(),e.target.closest('[data-id="reactions-menu"]')&&e.target.closest(this.triggerSelector)?this.isTouchActive=!0:this.isTouchActive=!1}documentTouchMoveHandler(e){e.preventDefault()}documentTouchEndHandler(e){e.preventDefault(),!this.isTouchActive&&this.isReactionMenuVisible()&&!this.isA11yTriggerActive&&this.hideReactions()}parentContainerElementTouchEndHandler(e){e.stopPropagation(),e.preventDefault(),this.reactionsMenuClickHandler(e),!this.isTouchActive&&this.isReactionMenuVisible()&&!this.isA11yTriggerActive&&this.hideReactions()}parentContainerElementTouchMoveHandler(e){e.stopPropagation(),e.preventDefault(),this.isTouchActive=!0,this.handleFocusForReactionEl(this.getTouchEventTarget(e))}renderReactionsMenu(e){if(!e)return;const t=e.querySelector('[data-id="reactions-menu"]');t.classList.remove("hidden"),t.addEventListener("click",this.reactionsMenuClickHandler),this.activeReactionMenuEl=t}maybeHideReactions(e){r(e.target,"[data-reaction-type]")||this.hideReactions()}setReaction(e,t){var n;const i="".concat(".selected-reaction","--").concat(e),r=this.selectedReactionTemplate.content.querySelector(i).cloneNode(!0),o=t.querySelector(".selected-reaction"),s=t.querySelector(".like-button-default");o?o.remove():s.classList.add("hidden"),t.querySelector(this.triggerSelector).setAttribute("aria-pressed","true"),r.classList.add("selected-reaction"),s.parentElement.insertBefore(r,s),null===(n=window.lazyloader)||void 0===n||n.then(e=>e.refreshLoader()),this.postReactionChangeCallback(e,t)}toggleReaction(e){const t=e.querySelector(".selected-reaction"),n=e.querySelector(".like-button-default");if(t)return t.remove(),e.querySelector(this.triggerSelector).setAttribute("aria-pressed","false"),n.classList.remove("hidden"),void this.postReactionChangeCallback("",e);this.setReaction(bg.LIKE,e)}postReactionChangeCallback(e,t){const n=(e?"un".concat(e):"".concat(bg.LIKE)).toLowerCase()+(this.isContribution?"Contribution":"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?kg:Sg)}getCurrentReactionType(e){return e.querySelector(this.triggerSelector).dataset.socialReaction}getParentUrn(e){return e.querySelector(this.triggerSelector).dataset.parentUrn}getContainerElement(e){return e.closest(".reactions-menu")}getContainerElementFromParentUrn(e){const t=this.parentContainerElement.querySelector("".concat(this.triggerSelector,'[data-parent-urn="').concat(e,'"]'));return null==t?void 0:t.closest(".reactions-menu")}a11yTriggerElement(){return this.parentContainerElement.querySelector(this.a11yTriggerSelector)}}class Ig{constructor(e){if(!e)throw new Error("No element passed to FeedAttributedTextSegmentList");this._el=e,this._containerEl=e.closest(".attributed-text-segment-list__container"),this._truncationButton=this._containerEl.querySelector(".attributed-text-segment-list__btn-truncation"),oo(this._el)&&this._truncationButton&&(this._truncationButton.classList.remove("invisible"),this._truncationButton.addEventListener("click",this._handleSeeMoreAction.bind(this)))}_handleSeeMoreAction(){this._el.classList.remove("attributed-text-segment-list__content-truncated"),this._truncationButton.classList.add("hidden")}}class Ag{constructor(e){let{endpoint:t,errorCallback:n=(()=>{}),globalWindow:i=window,onFollowSuccess:r=(()=>{}),onUnfollowSuccess:o=(()=>{}),pemDegradationTrackingMetadata:s,unfollowPemDegradationTrackingMetadata:a,pageKey:c,unfollowPageKey:l}=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 vg(t,s,c),this._unfollowMutationInstance=new vg(t,a,l),this._entityUrn=e.getAttribute("data-entity-urn"),this._initEventListeners()}_initEventListeners(){this._followButtonEl.addEventListener("click",e=>{e.preventDefault(),this._showFollowingButton(),this._mutationInstance.execute(mg,this._entityUrn,e=>{this._successCallbackForFollow(e)},e=>{this._hideFollowingButton(),this._errorCallback(e)})}),this._followingButtonEl.addEventListener("click",e=>{e.preventDefault(),this._hideFollowingButton(),this._unfollowMutationInstance.execute(gg,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()}}class Lg{constructor(e){let{isLoggedIn:t=!1,reactionsMenuConfig:n={},newsletterConfig:i={},controlMenuConfig:r={},followButtonConfig:o={}}=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 MainFeedActivityCard");this._el=e,this._isLoggedIn=t,this._controlMenuConfig=r,this._controlMenu=this._initControlMenu(),this._nativeVideo=this._initNativeVideo(),this._reactionsMenuConfig=this._getReactionsMenuConfig(n),this._socialActionBar=this._initSocialActionBarMenu(),this._followButtons=this._initFollowButton(o),this._initPaginatedDocument(),this._socialShare=this._initSocialShare(),this._sponsoredContent=this._initSponsoredContent(),this._initImageViewer(),this._initFeedAttributedTextSegmentList(),this._initNewsletterSubscribe(i),this._handleShareAction(),this._handleFeedClick()}_initFeedAttributedTextSegmentList(){this._el.querySelectorAll(".attributed-text-segment-list__content").forEach(e=>new Ig(e))}_initControlMenu(){const e=this._el.querySelector(".ellipsis-menu");return e?this._isLoggedIn?void new yg(e,this._controlMenuConfig):new gu(e):null}_handleShareAction(){this._isLoggedIn&&ya("is-mobile")&&this._el.addEventListener("click",e=>{e.target.closest('[data-feed-action="share"]')&&bm(e,{feedItemToShare:this._el.parentElement,removalElements:['[data-id="main-feed-card__ellipsis-menu"]',".main-feed-activity-card__header",".main-feed-activity-card__social-actions",".social-action-bar","#feed-image-viewer-modal",".main-feed-activity-card__single-comment"]})})}_initSocialActionBarMenu(){if(this._isLoggedIn&&this._el.querySelector('[data-id="reactions-menu"]'))return{reactionsMenu:new Cg(".reactions-menu__trigger",this._el,this._reactionsMenuConfig)}}_initFollowButton(e){const t=this._el.querySelectorAll(".follow-button");if(this._isLoggedIn&&null!=t&&t.length)return Array.from(t).map(t=>new Ag(t,e))}_getReactionsMenuConfig(e){const t=this._synchronizeReactionState(null==e?void 0:e.onReaction),n=this._isLoggedIn;return Ae(Ae({},e),{},{onReaction:t,fireLoggedInReactionTracking:n})}_synchronizeReactionState(e){const t=this;return function(n,i){var r;null==e||e.call(this,...arguments);const o=null===(r=t._socialActionBar)||void 0===r?void 0:r.reactionsMenu,s=Array.from(t._el.querySelectorAll(".reactions-menu")).filter(e=>i?i!==this.getCurrentReactionType(e):Boolean(this.getCurrentReactionType(e)));s.forEach(e=>{i?o.setReaction(i,e):o.toggleReaction(e)})}}_initNativeVideo(){const e=this._el.querySelector(".share-native-video__node");return e&&new Sa(e)}_initImageViewer(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".feed-images-content"),t=this._el.querySelector("#feed-image-viewer-modal");e&&t&&(this.imageViewerModal=new Mu(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")})}))}_initPaginatedDocument(){const e=this._el.querySelector('iframe[data-id="feed-paginated-document-content"]');e&&e.addEventListener("load",()=>{const{nativeDocumentConfig:t}=e.dataset;e.contentWindow.postMessage(t,"*")})}_initSponsoredContent(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".lead-gen-container");return e&&new cg(e)}_initSocialShare(){const e=this._el.querySelector(".social-share");return e&&new wa(e)}_initNewsletterSubscribe(e){if(!this._isLoggedIn||null==e||!e.endpoint)return;const t=this._el.querySelector(".newsletter-details__action .follow-button"),n=this._el.querySelector(".newsletter-content__action .follow-button");let i=t||n;return i&&new Ag(i,e)}_handleFeedClick(){this._isLoggedIn&&this._el.addEventListener("click",e=>{e.target.closest(".social-action-bar")||pg(e)})}}class Og{constructor(e){let t=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 MainFeedCard");this._el=e,this._options=t,this._mainFeedActivityCard=this._initMainFeedActivityCard()}_initMainFeedActivityCard(){if(this._el.classList.contains("main-feed-activity-card"))return new Lg(this._el,this._options)}}Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});const Rg="https://radar.cedexis.com/1/11326/radar.html",Ng="https://platform.linkedin.com/js/thirdPartyJSDelegatorFrame.html?type=dyndns";function Pg(e){const t=document.createElement("iframe");t.style.display="none",t.setAttribute("sandbox","allow-scripts allow-same-origin"),t.src=e,document.body&&document.body.appendChild(t)}function xg(){Pg(Ng)}function Mg(){Pg(Rg)}Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});function Dg(e,t){const n=ya("offline-text");t.clearAllToasts(),e&&t.trigger(ma.NOTIFY,n,"offline")}function Ug(e){e&&(e.setAttribute("category","system-icons"),e.setAttribute("type","close-small"))}const Bg=["category","type"];let Fg;const qg=e=>{const t=e.getAttribute("type");t&&0===t.indexOf("large-")&&e.classList.add("large-icon")},Hg=(e,t,n)=>{for(;e.firstChild;)e.removeChild(e.firstChild);const i=t&&n&&((e,t)=>{const n=Fg.querySelector("#".concat(e," #").concat(t));if(n){const e=n.cloneNode(!0);return e.removeAttribute("id"),e.classList.add("icon"),e}return null})(t,n);i&&e.appendChild(i)};class jg extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),qg(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){Bg.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||qg(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||Hg(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()}}function zg(){const e=document.getElementById("icons-svg").getAttribute("content");e&&ne(e,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e.responseText).then(e=>{const t=(new DOMParser).parseFromString(e,"application/xml").firstChild;t&&(Fg=t,customElements.define("li-icon",jg))})}const Gg=["light","dark","system"],Wg=["app","user"];let Kg="light".toUpperCase();function Vg(e){document.documentElement.classList.toggle("dark",e),function(e){Array.prototype.slice.call(document.querySelectorAll("img[light-theme-url]")).forEach(t=>function(e,t){const n=t?e.getAttribute("dark-theme-url"):e.getAttribute("light-theme-url");e.setAttribute(e.hasAttribute("data-delayed-url")?"data-delayed-url":"src",n)}(t,e))}(e),Kg=(e?"dark":"light").toUpperCase();No("theme-color",e?"#1b1f23":"#ffffff")}function Yg(e){localStorage.setItem("mobileWebTheme",e)}function Jg(){const e=ya("darkModeLixValue");if(!e||"control"===e)return;const t=p(window.location.href,"li_theme");if(t)return Vg("dark"===t),void Yg("dark"===t?"dark":"light");const n="on"===e?"system":"light",i=v("li_theme"),r=i&&Gg.includes(i)?i:n;"system"===r?function(){if(window.matchMedia){Vg(window.matchMedia("(prefers-color-scheme:dark)").matches);try{window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",e=>Vg(e.matches))}catch(e){window.matchMedia("(prefers-color-scheme:dark)").addListener(e=>Vg(e.matches))}}}():Vg("dark"===r),Yg(r),function(e,t){let n="app";const i=v("li_theme_set");i&&Wg.includes(i)?n=i:("on"===e&&"system"!==t||"enabled-light"===e&&"light"!==t)&&(n="user"),Lo("li_theme_set",n,15552e6)}(e,r)}const Qg=()=>{const e=window.location.href;window.addEventListener("popstate",t=>{if(t.state&&t.state.action&&"reload"===t.state.action){e===window.location.href||Oo()}})};function Xg(e){return{isVoyagerAndroidAppInstalled:e.indexOf("com.linkedin.android")>-1,appTypesInstalled:e}}function Zg(e){o(()=>{!function(e){const t=[],n=navigator.getInstalledRelatedApps&&"function"==typeof navigator.getInstalledRelatedApps;if(n)window.appDetection.then(i=>{i.forEach(e=>{t.push(e.id)});const r=Xg(t);e(n,r)});else{const i=Xg(t);e(n,i)}}(e)})}const $g={PRIMARY_ACTION:"PRIMARY_ACTION",SECONDARY_ACTION:"SECONDARY_ACTION",SKIP:"SKIP",DISMISS:"DISMISS"},ev={PAGE_IMPRESSION:"PAGE_IMPRESSION",WIDGET_IMPRESSION:"WIDGET_IMPRESSION",WIDGET_ACTION:"WIDGET_ACTION"},tv={LEGO_PAGE_IMPRESSION_EVENT:"/mwlite/lego/sendPageImpressionEvent/",LEGO_WIDGET_IMPRESSION_EVENT:"/mwlite/lego/sendWidgetImpressionEvent/",LEGO_WIDGET_ACTION_EVENT:"/mwlite/lego/sendWidgetActionEvent/"};function nv(e,t){ne(e,{method:"POST",postData:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch(()=>{})}var iv=Object.freeze({__proto__:null,ACTION_CATEGORY:$g,EVENT_TYPE:ev,LEGO_TRACKING_URLS:tv,fireLegoEvent:nv});class rv extends Ra{constructor(){super(...arguments)}execute(e){let{eventType:t,trackingToken:n,widgetActionCategory:i}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:rv.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Le(rv,"query","48f4c814e38d5689b7c83a29c9676972");let ov,sv;function av(e){const t=e.target.closest("[data-tracking-id]");if(t){var n,i;window.tracking.then(e=>{e.fireControlInteractionEvent(t.dataset.trackingId)});const e=null===(n=t.dataset)||void 0===n?void 0:n.action,r=document.querySelector("#app-upsell-container"),o=null==r||null===(i=r.dataset)||void 0===i?void 0:i.legoTrackingId;e&&(document.body.classList.remove("lock-screen"),!o||"upsell-app"!==e&&"custom-upsell-app"!==e?o&&"dismiss"===e&&(nv(tv.LEGO_WIDGET_ACTION_EVENT,{trackingToken:o,actionCategory:$g.DISMISS}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):nv(tv.LEGO_WIDGET_ACTION_EVENT,{trackingToken:o,actionCategory:$g.PRIMARY_ACTION})),ov(),r.remove()}}function cv(e){let{target:t,currentTarget:n}=e;const i=t.closest("[data-action]");if(i){var r,o;const e=null===(r=i.dataset)||void 0===r?void 0:r.action,t=null==n||null===(o=n.dataset)||void 0===o?void 0:o.legoTrackingId;e&&(document.body.classList.remove("no-scroll"),!t||"upsell-app"!==e&&"custom-upsell-app"!==e?t&&"dismiss"===e&&(sv.execute({eventType:ev.WIDGET_ACTION,trackingToken:t,widgetActionCategory:$g.DISMISS}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):sv.execute({eventType:ev.WIDGET_ACTION,trackingToken:t,widgetActionCategory:$g.PRIMARY_ACTION})),ov(),n.remove()}}function lv(){var e;const t=document.querySelector("#app-upsell-container");var n,i;ov=da({el:t,focusElement:document.querySelector("#app-upsell-container .primary")}),t&&t.addEventListener("click",av),(n=null==t||null===(e=t.dataset)||void 0===e?void 0:e.legoTrackingId)&&(nv(tv.LEGO_PAGE_IMPRESSION_EVENT,{trackingToken:n}),nv(tv.LEGO_WIDGET_IMPRESSION_EVENT,{trackingToken:n})),null===(i=window.tracking)||void 0===i||i.then(e=>{Hr(e,"half","p_mwlite_app_upsell_lego")})}function uv(){sv=new rv(function(){const e=document.querySelector('meta[name="queryEndpoint"]');return null==e?void 0:e.getAttribute("content")}());const e=document.querySelector("#promo-upsell");var t,n;e&&(document.body.classList.add("no-scroll"),lo(e),ov=da({el:e,focusElement:document.querySelector("#promo-upsell .promo__action")}),e.addEventListener("click",cv),(t=e.dataset.legoTrackingId)&&(sv.execute({eventType:ev.PAGE_IMPRESSION,trackingToken:t}),sv.execute({eventType:ev.WIDGET_IMPRESSION,trackingToken:t})),null===(n=window.tracking)||void 0===n||n.then(e=>{Hr(e,"half","p_mwlite_app_upsell_lego")}))}function dv(e,t){if(ya("disableAppUpsellPrompt"))return;const{isVoyagerAndroidAppInstalled:n,appTypesInstalled:i}=t;if(e&&t&&n)return;if(ya("isSSRHalfPageUpsellEnabled"))return void uv();const r=ya("vanityName");let o="/mwlite/get-deep-link/";e&&(o=m(o,"isRelatedAppsApiAvailable",e,!0),i.length&&(o=m(o,"relatedAppId",i[0],!0))),r&&(o=m(o,"member",r,!0)),ne(o).then(e=>{if(e.responseText&&204!==e.status){const t=xs(null,e.responseText,{ADD_ATTR:["category"]});document.body.appendChild(t),document.body.classList.add("lock-screen"),lv()}})}function hv(){document.querySelectorAll("#app-upsell-container").forEach(e=>e.parentNode.removeChild(e)),Zg(dv)}function pv(){new Promise(e=>{window.addEventListener("DOMContentLoaded",()=>{var e;e=Om(),window.addEventListener("offline",()=>Dg(!0,e)),window.addEventListener("online",()=>Dg(!1,e)),ko()}),window.addEventListener("load",()=>{u(document.querySelectorAll("li-icon.artdeco-global-alert__icon--dismissed")).map(Ug),zg(),Io("#overlay_"),Jg(),Mg(),xg(),l.getInstance().addPagehideCallback(()=>{sessionStorage.setItem("previousPage",window.location.href)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=()=>{const t=document.location.href,n=document.title,i={action:"reload",landingPage:t};window.history.replaceState(i,"",e),window.history.pushState(i,n,t)};Ro()&&t(),Qg()}(),Rm(),hv(),Io("#mobile-nav-search"),setTimeout(()=>{var t;null===(t=window.tracking)||void 0===t||t.then(t=>{Co()&&Hr(t,Uu.AJAX,"p_mwlite_launched_from_homescreen"),e()})})})})}Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const fv=document.querySelector("#share-modal .textarea"),mv=document.querySelector(".image-preview-wrapper"),gv=document.querySelector("#share-modal .modal-content .reshare-section"),vv=document.querySelector(".post-button"),yv=document.querySelector("#comments-enabled"),bv=document.querySelector("#share-with-public"),Ev=document.querySelector(".post-settings-wrapper"),_v=document.querySelector('input[name="share-with"]:checked'),wv=document.querySelector("#share-modal .close-button"),Tv=document.querySelector("#visibility-settings-modal"),Sv=document.querySelector("#visibility-header-back .close-button"),kv=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),Cv=document.querySelector("#discard-post-modal-wrapper"),Iv=document.querySelector("#share-modal"),Av=document.querySelector(".modal-spinner"),Lv=document.querySelector("#share-modal .textarea"),Ov=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const Rv=document.querySelector("#share-with-network");class Nv extends qa{updatePostButtonStatus(){var e;const t=null===(e=fv.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===mv.getAttribute("data-image-load-state"),i=gv.children.length;t||n||i?go(vv):mo(vv)}clearModalContentBase(){gv&&(gv.textContent=""),fv&&(fv.textContent=""),yv&&(yv.checked=!0),bv&&(bv.checked=!0,Ev.setAttribute("data-post-visibility",_v.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),wv.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat("data-control-action","]"))||t.querySelector("[".concat("data-control-action","]"));n&&window.tracking.then(e=>{e.fireControlInteractionEvent(n.getAttribute("data-control-action"))})}Tv.addEventListener("close",()=>{Ev.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),Sv.addEventListener("click",()=>window.history.back()),kv.addEventListener("click",t=>e(t)),kv.addEventListener("keydown",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}),vo()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class Pv extends Nv{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=ya("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new qa(Tv,{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=g(this.updatePostButtonStatus,300);Lv.addEventListener("input",e)}bindShareModalEvents(){const e=new xu(Cv,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});Iv.addEventListener("open",()=>{fv.focus()}),Iv.addEventListener("close",()=>{this.clearModalContentBase(),co(Av)}),vv.addEventListener("click",()=>{this.processPostData()}),wv.addEventListener("click",()=>{vv.disabled?this.close():e.modal.open()}),Ev.addEventListener("click",this.postSettingsClickHandler.bind(this)),Ev.addEventListener("keydown",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(),yo()&&window.scrollTo(0,0),n&&(Lv.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("#share-modal .modal-content .reshare-section");e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=Lv.textContent,this.shareData.visibility="PUBLIC",Ov&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Ov.value),Rv.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){lo(Av),this.composePostData(),Oa({endpoint:this.endpoint,queryId:Pv.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=>{Hr(e,"ajax","post_success_page_key")}),Om().trigger("success",ya("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:ya("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{Hr(e,"ajax","post_failure_page_key")}),Om().trigger("error",ya("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())}}Le(Pv,"query","971e319c05beaf333e94125db8c4f942");const xv={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};Du({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:xv}),Du({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:xv}),Du({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:xv});class Mv extends Ra{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Mv.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Le(Mv,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class Dv extends Ra{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Dv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Le(Dv,"query","a628cd3be2c138c07fc69c2413b23fb6");class Uv extends Ra{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Uv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Le(Uv,"query","a0ff03a6b1cbe44862cb2054f0612078");class Bv extends Ra{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Bv.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Le(Bv,"query","ad184ece0303620a9753eca249efd99f");class Fv extends Ra{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Fv.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Le(Fv,"query","7edd5b8a4513caf8180a64ecde871630");class qv extends Ra{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:qv.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Le(qv,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Hv extends Ra{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Hv.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Le(Hv,"query","85c85c121bf7eaabd2388b9143f94546");const jv={legoTrackingUtils:iv,getPageInstance:Gr,getEventBody:jr,firePageViewEvent:Hr,fireViewModuleImpressionEvent:zr,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 di(f),g=new bi(m,Ae({customTransporterHosts:p,preTransporter:e=>Ae(Ae({},e),{},{meta:Kr(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h},u));return g}}}).call(this,n(2),n(3).Buffer)},function(e,t,n){"use strict";(function(e,i){function r(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 o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return Tu})),n.d(t,"b",(function(){return uu})),n.d(t,"c",(function(){return Rs})),n.d(t,"d",(function(){return Xl})),n.d(t,"e",(function(){return ku})),n.d(t,"f",(function(){return wu})),n.d(t,"g",(function(){return Rl})),n.d(t,"h",(function(){return $})),n.d(t,"i",(function(){return Tr})),n.d(t,"j",(function(){return As})),n.d(t,"k",(function(){return la})),n.d(t,"l",(function(){return Ul})),n.d(t,"m",(function(){return Vr})),n.d(t,"n",(function(){return Fl})),n.d(t,"o",(function(){return su})),n.d(t,"p",(function(){return ks})),n.d(t,"q",(function(){return w}));class s{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 a=function(){let e;return{getInstance:function(){return e||(e=new s),e}}}();class c{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 l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();function u(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function d(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 h(){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 p(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function f(e,t){return m(e,"trk",t)}function m(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=p(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 g(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 v(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(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 E(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function _(e){return"string"!=typeof e?null:e.split("?")[0]}var w=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:a,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:p,addTrackingCode:f,addQueryParam:m,debounce:g,getCookie:v,dispatchCustomEvent:y,getDeferredPromise:b,isDocumentHidden:E,stripQueryParams:_,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=m(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 T(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 S(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function k(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function C(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function I(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const A={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},L={Down:A.ARROW_DOWN,Right:A.ARROW_RIGHT,Left:A.ARROW_LEFT,Up:A.ARROW_UP,Esc:A.ESCAPE,Spacebar:A.SPACEBAR,Tab:A.TAB};function O(e){return L[e]||e}class R{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("keydown",e=>this._onKeyDown(e)),this.mainButton.addEventListener("click",e=>this.closeButton?this._open(e):this._toggle(e)),this.mainButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.closeButton&&(this.closeButton.addEventListener("click",()=>this.close()),this.closeButton.addEventListener("keydown",e=>this._onButtonKeyDown(e)),this.buttons.push(this.closeButton))}get isList(){return this._isList}_toggle(e){this.isOpen?this.close():this._open(e)}_onButtonKeyDown(e){switch(O(e.key)){case A.ENTER:case A.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case A.ARROW_UP:this.isOpen||this._open(e);break;case A.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){O(e.key)===A.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=O(e.key);if(t===A.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case A.SPACEBAR:y(e.target,"click");break;case A.ARROW_LEFT:case A.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case A.ARROW_RIGHT:case A.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(i,"focusEl")}}}_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)),y(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)),y(this.el,"close"),e&&this.mainButton.focus())}}let N,P;const x=['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^="-"])'],M=[...x,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),D=[...x,"[tabindex]:not([disabled])"].join(",");function U(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function B(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?!U(e):i&&i.get(e)?i.get(e):(U(e)?t=!1:e.parentNode&&(t=B(e.parentNode,n,i)),i&&i.set(e,t),t)}const F={POLITE:"polite",ASSERTIVE:"assertive"};function q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.POLITE;N&&(N.removeAttribute("aria-hidden"),N.setAttribute("aria-live",F.POLITE),N.textContent="",N.textContent=e,N.setAttribute("aria-live",t),clearTimeout(P),P=setTimeout(()=>{N.removeAttribute("aria-live"),N.setAttribute("aria-hidden","true")},1e4))}class H{constructor(e){if(!e)throw new Error("An element must be passed in to Disable Background Navigation");this._container=e,this._hiddenElements=[]}disableBackground(){let e=this._container;for(;e&&e!==document.body&&e.parentElement;)this._hiddenElements=this._hiddenElements.concat([...e.parentElement.children].filter(t=>t!==e&&"true"!==t.getAttribute("aria-hidden")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const j=["class","disabled","style","tabindex","type"];class z{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 H(this._container)}init(){this._observer.observe(this._container,{attributeFilter:j,attributes:!0,childList:!0,subtree:!0}),this._setFirstAndLastFocusableEls(this._container),this._container.addEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.disableBackground()}tearDown(){this._observer.disconnect(),this._container.removeEventListener("keydown",this._handleKeyDown),this._backgroundNavigationDisabler.enableBackground()}_focusTrap(e){const{key:t,target:n}=e,i=O(t),r=i===A.TAB&&e.shiftKey;!r&&i===A.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(M)],n=new Map;let i,r,o=0,s=t.length-1;for(;(!i||!r)&&o<=s;){if(!i){const r=t[o];i=B(r,e,n)&&r,o++}if(!r){const i=t[s];r=B(i,e,n)&&i,s--}}return r=r||i,[i,r]}}const G=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function W(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&G.test(e)}const K=".".concat("collapsible-dropdown","__list"),V=".".concat("collapsible-dropdown","__button"),Y=".".concat("collapsible-dropdown","__close-button");class J{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(M)),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(K),this._closeButton=this.el.querySelector(Y),this._isMobile=W();const o=this.dropdownContentEl.closest(".".concat("collapsible-dropdown"));if(this._isMobile&&o&&(this._focusTrap=new z(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(M),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(V),this.hideClass="hidden",this.collapsible=new R(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("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),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 Q(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=v("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",I(e))}c.send(o)});return s&&(a.length?X(l,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),l}function X(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?Z(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 Z(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 ${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 J(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=I(v("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}(C(document));return Q("".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 ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},te=(parseInt,"object"==typeof ee&&ee&&ee.Object===Object&&ee),ne="object"==typeof self&&self&&self.Object===Object&&self;te||ne||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function ie(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(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 ae="light",ce="dark";function le(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?ce:ae:void 0}var ue;function de(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)||ye(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 he(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ye(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 pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fe(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 me(e,t,n){return t&&fe(e.prototype,t),n&&fe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ve(e){return function(e){if(Array.isArray(e))return be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ye(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 ye(e,t){if(e){if("string"==typeof e)return be(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)?be(e,t):void 0}}function be(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 Ee(e){return(Ee="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 _e,we=new Uint8Array(16);function Te(){if(!_e&&!(_e="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 _e(we)}var Se=/^(?:[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 ke(e){return"string"==typeof e&&Se.test(e)}for(var Ce=[],Ie=0;Ie<256;++Ie)Ce.push((Ie+256).toString(16).substr(1));function Ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Ce[e[t+0]]+Ce[e[t+1]]+Ce[e[t+2]]+Ce[e[t+3]]+"-"+Ce[e[t+4]]+Ce[e[t+5]]+"-"+Ce[e[t+6]]+Ce[e[t+7]]+"-"+Ce[e[t+8]]+Ce[e[t+9]]+"-"+Ce[e[t+10]]+Ce[e[t+11]]+Ce[e[t+12]]+Ce[e[t+13]]+Ce[e[t+14]]+Ce[e[t+15]]).toLowerCase();if(!ke(n))throw TypeError("Stringified UUID is invalid");return n}function Le(e){if(!ke(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 Oe(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=Le(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 Ae(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Re(e){return 14+(e+64>>>9<<4)+1}function Ne(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Pe(e,t,n,i,r,o){return Ne((s=Ne(Ne(t,e),Ne(i,o)))<<(a=r)|s>>>32-a,n);var s,a}function xe(e,t,n,i,r,o,s){return Pe(t&n|~t&i,e,t,r,o,s)}function Me(e,t,n,i,r,o,s){return Pe(t&i|n&~i,e,t,r,o,s)}function De(e,t,n,i,r,o,s){return Pe(t^n^i,e,t,r,o,s)}function Ue(e,t,n,i,r,o,s){return Pe(n^(t|~i),e,t,r,o,s)}function Be(e,t,n){var i=(e=e||{}).random||(e.rng||Te)();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 Ae(i)}function Fe(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:return t^n^i;case 2:return t&n^t&i^n&i;case 3:return t^n^i}}function qe(e,t){return e<<t|e>>>32-t}Oe("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[Re(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=xe(n,i,r,o,e[s],7,-680876936),o=xe(o,n,i,r,e[s+1],12,-389564586),r=xe(r,o,n,i,e[s+2],17,606105819),i=xe(i,r,o,n,e[s+3],22,-1044525330),n=xe(n,i,r,o,e[s+4],7,-176418897),o=xe(o,n,i,r,e[s+5],12,1200080426),r=xe(r,o,n,i,e[s+6],17,-1473231341),i=xe(i,r,o,n,e[s+7],22,-45705983),n=xe(n,i,r,o,e[s+8],7,1770035416),o=xe(o,n,i,r,e[s+9],12,-1958414417),r=xe(r,o,n,i,e[s+10],17,-42063),i=xe(i,r,o,n,e[s+11],22,-1990404162),n=xe(n,i,r,o,e[s+12],7,1804603682),o=xe(o,n,i,r,e[s+13],12,-40341101),r=xe(r,o,n,i,e[s+14],17,-1502002290),n=Me(n,i=xe(i,r,o,n,e[s+15],22,1236535329),r,o,e[s+1],5,-165796510),o=Me(o,n,i,r,e[s+6],9,-1069501632),r=Me(r,o,n,i,e[s+11],14,643717713),i=Me(i,r,o,n,e[s],20,-373897302),n=Me(n,i,r,o,e[s+5],5,-701558691),o=Me(o,n,i,r,e[s+10],9,38016083),r=Me(r,o,n,i,e[s+15],14,-660478335),i=Me(i,r,o,n,e[s+4],20,-405537848),n=Me(n,i,r,o,e[s+9],5,568446438),o=Me(o,n,i,r,e[s+14],9,-1019803690),r=Me(r,o,n,i,e[s+3],14,-187363961),i=Me(i,r,o,n,e[s+8],20,1163531501),n=Me(n,i,r,o,e[s+13],5,-1444681467),o=Me(o,n,i,r,e[s+2],9,-51403784),r=Me(r,o,n,i,e[s+7],14,1735328473),n=De(n,i=Me(i,r,o,n,e[s+12],20,-1926607734),r,o,e[s+5],4,-378558),o=De(o,n,i,r,e[s+8],11,-2022574463),r=De(r,o,n,i,e[s+11],16,1839030562),i=De(i,r,o,n,e[s+14],23,-35309556),n=De(n,i,r,o,e[s+1],4,-1530992060),o=De(o,n,i,r,e[s+4],11,1272893353),r=De(r,o,n,i,e[s+7],16,-155497632),i=De(i,r,o,n,e[s+10],23,-1094730640),n=De(n,i,r,o,e[s+13],4,681279174),o=De(o,n,i,r,e[s],11,-358537222),r=De(r,o,n,i,e[s+3],16,-722521979),i=De(i,r,o,n,e[s+6],23,76029189),n=De(n,i,r,o,e[s+9],4,-640364487),o=De(o,n,i,r,e[s+12],11,-421815835),r=De(r,o,n,i,e[s+15],16,530742520),n=Ue(n,i=De(i,r,o,n,e[s+2],23,-995338651),r,o,e[s],6,-198630844),o=Ue(o,n,i,r,e[s+7],10,1126891415),r=Ue(r,o,n,i,e[s+14],15,-1416354905),i=Ue(i,r,o,n,e[s+5],21,-57434055),n=Ue(n,i,r,o,e[s+12],6,1700485571),o=Ue(o,n,i,r,e[s+3],10,-1894986606),r=Ue(r,o,n,i,e[s+10],15,-1051523),i=Ue(i,r,o,n,e[s+1],21,-2054922799),n=Ue(n,i,r,o,e[s+8],6,1873313359),o=Ue(o,n,i,r,e[s+15],10,-30611744),r=Ue(r,o,n,i,e[s+6],15,-1560198380),i=Ue(i,r,o,n,e[s+13],21,1309151649),n=Ue(n,i,r,o,e[s+4],6,-145523070),o=Ue(o,n,i,r,e[s+11],10,-1120210379),r=Ue(r,o,n,i,e[s+2],15,718787259),i=Ue(i,r,o,n,e[s+9],21,-343485551),n=Ne(n,a),i=Ne(i,c),r=Ne(r,l),o=Ne(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Re(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))})),Oe("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]=qe(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],b=n[4],E=0;E<80;++E){var _=Math.floor(E/20),w=qe(m,5)+Fe(_,g,v,y)+b+t[_]+h[E]>>>0;b=y,y=v,v=qe(g,30)>>>0,g=m,m=w}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]+b>>>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 He=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var je=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(je){var ze=new Uint8Array(256),Ge=ze.length;He={rng:function(){return Ge>ze.length-16&&(je.randomFillSync(ze),Ge=0),ze.slice(Ge,Ge+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ee(crypto))&&crypto.randomUUID;function We(){return Be(He,new Array(16),0)}function Ke(e){return ve(e).map((function(e){return String.fromCharCode(e)})).join("")}function Ve(){return Ke(We())}var Ye=/^[a-zA-Z0-9/+]+[=]+$/;function Je(e,t){return{pageUrn:Xe(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("")}(We())}}function Qe(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Xe(e){return"urn:li:page:".concat(e)}function Ze(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 et(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function tt(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 nt(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function it(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var rt,ot,st=(rt=new Map,ot=new Map,{on:function(e,t){nt(rt,e,t)},before:function(e,t){nt(ot,e,t)},off:function(e,t){it(rt,e,t)},offBefore:function(e,t){it(ot,e,t)},emit:function(e,t){(ot.get(e)||[]).concat(rt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){ot.clear(),rt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var at=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||st.emit("internal:hide",e)};document.addEventListener("visibilitychange",at),window.addEventListener("pagehide",at)}var ct=Uint8Array,lt=Uint16Array,ut=Uint32Array,dt=new ct([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]),ht=new ct([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]),pt=new ct([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ft=function(e,t){for(var n=new lt(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new ut(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]},mt=ft(dt,2),gt=mt[0],vt=mt[1];gt[28]=258,vt[258]=28;for(var yt=ft(ht,0)[1],bt=new lt(32768),Et=0;Et<32768;++Et){var _t=(43690&Et)>>>1|(21845&Et)<<1;_t=(61680&(_t=(52428&_t)>>>2|(13107&_t)<<2))>>>4|(3855&_t)<<4,bt[Et]=((65280&_t)>>>8|(255&_t)<<8)>>>1}var wt=function(e,t,n){for(var i=e.length,r=0,o=new lt(t);r<i;++r)e[r]&&++o[e[r]-1];var s,a=new lt(t);for(r=0;r<t;++r)a[r]=a[r-1]+o[r-1]<<1;if(n){s=new lt(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[bt[d]>>>c]=l}else for(s=new lt(i),r=0;r<i;++r)e[r]&&(s[r]=bt[a[e[r]-1]++]>>>15-e[r]);return s},Tt=new ct(288);for(Et=0;Et<144;++Et)Tt[Et]=8;for(Et=144;Et<256;++Et)Tt[Et]=9;for(Et=256;Et<280;++Et)Tt[Et]=7;for(Et=280;Et<288;++Et)Tt[Et]=8;var St=new ct(32);for(Et=0;Et<32;++Et)St[Et]=5;var kt=wt(Tt,9,0),Ct=wt(St,5,0),It=function(e){return(e+7)/8|0},At=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Lt=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},Ot=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[Ut,0];if(1==r){var s=new ct(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 lt(h+1),f=Rt(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 b=o[i].s;p[b]<t?m-=1<<t-p[b]++-1:++i}for(;i>=0&&m;--i){var E=o[i].s;p[E]==t&&(--p[E],++m)}f=t}return[new ct(p),f]},Rt=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},Nt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new lt(++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]},Pt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},xt=function(e,t,n){var i=n.length,r=It(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)},Mt=function(e,t,n,i,r,o,s,a,c,l,u){At(t,u++,n),++r[256];for(var d=Ot(r,15),h=d[0],p=d[1],f=Ot(o,15),m=f[0],g=f[1],v=Nt(h),y=v[0],b=v[1],E=Nt(m),_=E[0],w=E[1],T=new lt(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<_.length;++S)T[31&_[S]]++;for(var k=Ot(T,7),C=k[0],I=k[1],A=19;A>4&&!C[pt[A-1]];--A);var L,O,R,N,P=l+5<<3,x=Pt(r,Tt)+Pt(o,St)+s,M=Pt(r,h)+Pt(o,m)+s+14+3*A+Pt(T,C)+(2*T[16]+3*T[17]+7*T[18]);if(P<=x&&P<=M)return xt(t,u,e.subarray(c,c+l));if(At(t,u,1+(M<x)),u+=2,M<x){L=wt(h,p,0),O=h,R=wt(m,g,0),N=m;var D=wt(C,I,0);for(At(t,u,b-257),At(t,u+5,w-1),At(t,u+10,A-4),u+=14,S=0;S<A;++S)At(t,u+3*S,C[pt[S]]);u+=3*A;for(var U=[y,_],B=0;B<2;++B){var F=U[B];for(S=0;S<F.length;++S){var q=31&F[S];At(t,u,D[q]),u+=C[q],q>15&&(At(t,u,F[S]>>>5&127),u+=F[S]>>>12)}}}else L=kt,O=Tt,R=Ct,N=St;for(S=0;S<a;++S)if(i[S]>255){q=i[S]>>>18&31,Lt(t,u,L[q+257]),u+=O[q+257],q>7&&(At(t,u,i[S]>>>23&31),u+=dt[q]);var H=31&i[S];Lt(t,u,R[H]),u+=N[H],H>3&&(Lt(t,u,i[S]>>>5&8191),u+=ht[H])}else Lt(t,u,L[i[S]]),u+=O[i[S]];return Lt(t,u,L[256]),u+O[256]},Dt=new ut([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ut=new ct(0),Bt=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}(),Ft=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function qt(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=Bt[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 ct(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=xt(c,l+1,e.subarray(u,d))}else{for(var h=Dt[t-1],p=h>>>13,f=8191&h,m=(1<<n)-1,g=new lt(32768),v=new lt(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},_=new ut(25e3),w=new lt(288),T=new lt(32),S=0,k=0,C=(u=0,0),I=0,A=0;u<s;++u){var L=E(u),O=32767&u,R=v[L];if(g[O]=R,v[L]=O,I<=u){var N=s-u;if((S>7e3||C>24576)&&N>423){l=Mt(e,c,0,_,w,T,k,C,A,u-A,l),C=S=k=0,A=u;for(var P=0;P<286;++P)w[P]=0;for(P=0;P<30;++P)T[P]=0}var x=2,M=0,D=f,U=O-R&32767;if(N>2&&L==E(u-U))for(var B=Math.min(p,N)-1,F=Math.min(32767,u),q=Math.min(258,N);U<=F&&--D&&O!=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),z=0;for(P=0;P<j;++P){var G=u-U+P+32768&32767,W=G-g[G]+32768&32767;W>z&&(z=W,R=G)}}}U+=(O=R)-(R=g[O])+32768&32767}if(M){_[C++]=268435456|vt[x]<<18|yt[M];var K=31&vt[x],V=31&yt[M];k+=dt[K]+ht[V],++w[257+K],++T[V],I=u+x,++S}else _[C++]=e[u],++w[e[u]]}}l=Mt(e,c,o,_,w,T,k,C,A,u-A,l),!o&&7&l&&(l=xt(c,l+1,Ut))}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?lt:4==e.BYTES_PER_ELEMENT?ut:ct)(n-t);return i.set(e.subarray(t,n)),i}(a,0,i+It(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&&Ft(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),Ft(a,c-8,n.d()),Ft(a,c-4,i),a}var Ht="undefined"!=typeof TextDecoder&&new TextDecoder;try{Ht.decode(Ut,{stream:!0})}catch(Li){}function jt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function zt(){try{return jt()&&"keepalive"in new Request("")}catch(e){return!1}}function Gt(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 Wt(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=qt((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Kt(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Vt,Yt="undefined"!=typeof navigator&&"sendBeacon"in navigator,Jt=zt()?function(e,t,n,i){return new Promise((function(r){fetch(e,Wt({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Wt({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:Kt(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Yt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Wt({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:Kt(e)})}))}))};function Qt(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 Xt(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 Zt(){return Vt||(Vt=Xt("idb-queue","default")),Vt}function $t(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))},Qt(e.transaction)}function en(){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]:Zt();return t("readwrite",(function(t){return $t(t,e)}))}var tn=!1;function nn(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]:Zt();return n("readwrite",(function(n){return n.put(e),Qt(n.count()).then((function(e){if(!(e<=t.maxNumber))return $t(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return en(t,n)}))}function rn(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]:Zt();return tn?Promise.resolve():nn(e,t,n)}function on(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())},Qt(t.transaction).then((function(){return i}))}))}function sn(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())},Qt(t.transaction).then((function(){return i}))}))}function an(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zt();return sn(e,t,"next")}function cn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zt();return sn(e,t,"prev")}function ln(){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 un(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function dn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function hn(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 pn(e,t){var n=0;return{throttledFn:function(){var i=Date.now();i-n>t&&(un((function(){return"[throttle] Run fn() at "+String(i)})),e(),n=i)},resetThrottle:function(){n=0}}}var fn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];pe(this,e),ge(this,"config",void 0),ge(this,"compress",void 0),ge(this,"throttleControl",void 0),ge(this,"withStore",void 0),ge(this,"disablePersistence",!1),this.config=t,this.compress=i;var r=t.measureIDB;r&&performance.mark(r.createStartMark),this.withStore=Xt(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=pn(this.replayEntries.bind(this),t.throttleWait)}return me(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){un((function(){return"Persisting to DB "+e.url})),rn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),un((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,dn((function(){return"push failed"}))}))};this.config.useIdle?hn(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]:Zt();return tn=!0,e("readwrite",(function(e){return e.clear(),Qt(e.transaction).finally((function(){return tn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,dn((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([]):an(t,this.withStore).catch((function(){return e.disablePersistence=!0,dn((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([]):cn(t,this.withStore).catch((function(){return e.disablePersistence=!0,dn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){un((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]:Zt();return on(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 un((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,s),Jt(o,s,ln(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 un((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),un((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),rn({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&&dn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?hn(t):t()}}}]),e}(),mn=function(){function e(){pe(this,e)}return me(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}(),gn=function(){function e(t,n){pe(this,e),ge(this,"queue",void 0),ge(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new fn(t,n.compress):new mn}return me(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}();ge(gn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var vn=[502,504],yn=[429,503],bn=function(){function e(t,n,i,r){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];pe(this,e),ge(this,"url",void 0),ge(this,"body",void 0),ge(this,"config",void 0),ge(this,"persistenceConfig",void 0),ge(this,"compress",void 0),ge(this,"timestamp",void 0),ge(this,"isClearQueuePending",!1),ge(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 me(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 Jt(e.url,e.body,t,e.compress)}),n,t).finally((function(){un((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(ln(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(un((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 un((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 En(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&&zt()&&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:vn,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:yn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new gn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,s){var a;return jt()?new bn(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||yn},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){st.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){st.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var _n=function(){function e(t){pe(this,e),ge(this,"host",void 0),this.host=t}return me(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&&En(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){st.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();zt()&&"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){st.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||!jt()||"undefined"==typeof Promise?Gt(e,JSON.stringify(t),{headers:n}):Jt(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}(),wn="undefined"!=typeof window&&"undefined"!=typeof document,Tn=/JSESSIONID="?([^";]+)"?/,Sn="",kn=0;function Cn(){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?Tn:i;if(!Sn||Date.now()-kn>n){var o=wn&&document.cookie.match(r);Sn=o&&o[1]||"",kn=Date.now()}return Sn}var In=function(){function e(t){pe(this,e),ge(this,"networkTransporter",void 0),ge(this,"inactive",void 0),ge(this,"mpName",void 0),ge(this,"endpoint",void 0),ge(this,"debug",void 0),this.networkTransporter=new _n(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=Ln;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=An;break;case"https://www.linkedin-ei.com/li/track":t=An;break;default:n=!0,t=An}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return me(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":Cn(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),An="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Ln="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function On(e){return"string"==typeof e}function Rn(e){return On(e)?e:e.topicName||e.eventName}function Nn(e){return On(e)?e:e.eventName}var Pn,xn,Mn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pe(this,e),ge(this,"host",void 0),ge(this,"cmoTransporter",void 0),ge(this,"clientMonitoringInstanceId",Ve()),ge(this,"currentContext",Bn()),ge(this,"appState",{}),ge(this,"estimatedFragmentSize",0),ge(this,"fragmentSizeLimit",void 0),ge(this,"activeFragmentEvent",void 0),ge(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new In(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Un(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return me(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=he(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:Nn(t),eventTopic:Rn(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=Un(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=Fn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Fn(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 Dn(e){return Pn||(Pn=new Mn(e)),{getCurrentInstanceId:function(){return Pn.getCurrentInstanceId()},logEventGenerated:function(e){return Pn.logEventGenerated(e)},logEventReadyToSend:function(e){Pn.logEventReadyToSend(e)},logEventSent:function(e){Pn.logEventSent(e)},logPersistedEventSent:function(e,t){Pn.logEventSent(t,e)},logNetworkResponseCode:function(e){Pn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Pn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Pn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Pn.logFailedEvent(t,n,i,r,e)},flush:function(){Pn.flush()},destroy:function(){Pn=void 0},isDestroyed:function(){return void 0===Pn},setCurrentContext:function(e){Pn.setCurrentContext(e)},updateAppState:function(e){Pn.updateAppState(e)}}}function Un(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 Bn(){return{pageKey:"unknown",pageInstance:Je("unknown")}}function Fn(e){return Array.isArray(e)?Ke(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Ye)}(e)?atob(e):Ke(function(e){return Le(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"}(xn||(xn={}));var qn="PageViewEvent",Hn=function(){function e(t){var n=this;pe(this,e),ge(this,"host",void 0),ge(this,"queue",void 0),ge(this,"preContextQueue",void 0),ge(this,"debounceTimer",void 0),ge(this,"unloadHandlers",void 0),ge(this,"maxQueueSize",void 0),ge(this,"flushDebounceTime",void 0),ge(this,"trackingEventListeners",[]),ge(this,"onHideHandler",(function(){n.forceFlush()})),ge(this,"networkTransporter",void 0),ge(this,"clientMonitoringConn",void 0),ge(this,"clientSequenceNumberCounter",void 0),ge(this,"isTimerRunning",void 0),ge(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,st.on("internal:hide",this.onHideHandler),this.networkTransporter=new _n(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Dn(t)),this.enableSequenceNumberLix=this.isLixEnabled("tracking.data-loss-web.sequence-number"),this.enableSequenceNumberLix&&(this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1)}return me(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(xn.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,xn.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(Rn(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,st.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:Je("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;tt("read").then((function(t){e.clientSequenceNumberCounter=t||0})).catch((function(e){st.emit("internal:error",{tags:["core-web-tracking:sequence-number:idb-read"],reason:e})}))}},{key:"updateSequenceNumberToIDB",value:function(){tt("update",this.clientSequenceNumberCounter).catch((function(e){st.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=Ze(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===qn:e.eventName===qn}(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(xn.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 jn,zn=function(){function e(t,n){pe(this,e),this.clientBreadcrumbType=t,this.id=n}return me(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 Gn(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 Wn(e){return"retryConfig"in e.host}!function(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION"}(jn||(jn={}));var Kn,Vn,Yn;!function(){function e(t,n){var i,r;if(pe(this,e),ge(this,"transporter",void 0),ge(this,"delegate",void 0),ge(this,"currentContext",void 0),ge(this,"appState",void 0),ge(this,"previousAppContext",void 0),ge(this,"customTransporters",void 0),ge(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 Hn(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=Dn(t.host))}me(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){Wn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Wn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Ze(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,Gn(t));if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Ze(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Ze(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=Qe(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=Rn(e),o=void 0===t?"undefined":null===t?"null":Ee(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(xn.MISSING_REQUIRED_PROPERTIES,e,s,a)}throw new Error(s)}var c=i||[];if(c.length>0){var l=c.map((function(e){return zn.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(On(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=Rn(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(xn.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 Je(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),st.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 Qe((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&&Ze(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 Jn(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;pe(this,e),ge(this,"core",void 0),ge(this,"protocol",void 0),ge(this,"throttleKeySet",new Set),ge(this,"config",void 0),ge(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},st.on("internal:error",this.reportTransporterError)}me(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,b=this.core.host,E=b.appId,_=b.appVersion,w=b.service,T=b.serviceInstance,S=b.treeID,k=void 0===S?"":S,C=b.api,I=C.Promise,A=C.location,L=A.host,O=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:E,e:{c:y,l:g,m:l,s:h,t:u,u:f},h:P,l:n.protocol,o:L,p:O,pageKey:e.pageKey,q:R,service:w,serviceInstance:T,serviceVersion:_,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:s,responseTraceHeaders:t}}))};if(this.config.throttleTime<0)return M();var D=Jn(u+l+h+i.join("")+s);return this.throttleKeySet.has(D)?I.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(),st.off("internal:error",this.reportTransporterError)}}])}();var Qn=function(){function e(){pe(this,e),ge(this,"userTimingEntries",[]),ge(this,"longTasks",[]),ge(this,"resourceTimingEntries",[]),ge(this,"cdnData",void 0)}return me(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(Zn),cdnData:this.cdnData}}}]),e}(),Xn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Zn(e){return Xn.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function $n(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};Vn=Object.assign(Object.assign({},n),t),Yn=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Vn.root,n);var i=ei(e,Kn.All,(function(){return ei(e,Kn.Two,(function(){return ei(e,Kn.One)}))}));if(i){var r=li(function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},r=[];if(t.length>2&&t.length>Vn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>Vn.maxNumberOfTries)return r;i.counter+=1;var s=ve(t);s.splice(o,1);var a=ni(s);if(i.visited.has(a))return r;ri(s)&&ui(s,n)&&(r.push(s),i.visited.set(a,!0),r=r.concat(e(s,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),ni(i)}throw new Error("Selector was not found.")}function ei(e,t,n){for(var i=null,r=[],o=e,s=0,a=function(){var e=ai(function(e){var t=e.getAttribute("id");return t&&Vn.idName(t)?{name:"#"+gi(t,{isIdentifier:!0}),penalty:0}:null}(o))||ai.apply(void 0,ve(function(e){return Array.from(e.attributes).filter((function(e){return Vn.attr(e.name,e.value)})).map((function(e){return{name:"["+gi(e.name,{isIdentifier:!0})+'="'+gi(e.value)+'"]',penalty:.5}}))}(o)))||ai.apply(void 0,ve(function(e){return Array.from(e.classList).filter(Vn.className).map((function(e){return{name:"."+gi(e,{isIdentifier:!0}),penalty:1}}))}(o)))||ai(function(e){var t=e.tagName.toLowerCase();return Vn.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===Kn.All)a&&(e=e.concat(e.filter(si).map((function(e){return oi(e,a)}))));else if(t===Kn.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(si).map((function(e){return oi(e,a)}))));else if(t===Kn.One){var c=de(e=e.slice(0,1),1)[0];a&&si(c)&&(e=[oi(c,a)])}var l,u=he(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>=Vn.seedMinLength&&(i=ti(r,n)))return"break";o=o.parentElement,s++};o&&o!==Vn.root.parentElement&&"break"!==a(););return i||(i=ti(r,n)),i}function ti(e,t){var n=li(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=he(t[0]);try{for(o.s();!(i=o.n()).done;){var s=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>Vn.threshold)return t?t():null;var i,r=he(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 ni(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 ii(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function ri(e){switch(Yn.querySelectorAll(ni(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ni(e)));case 1:return!0;default:return!1}}function oi(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function si(e){return"html"!==e.name&&!e.name.startsWith("#")}function ai(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(ci);return i.length>0?i:null}function ci(e){return null!=e}function li(e){return Array.from(e).sort((function(e,t){return ii(e)-ii(t)}))}function ui(e,t){return Yn.querySelector(ni(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Kn||(Kn={}));var di,hi=/[ -,\.\/:-@\[-\^`\{-~]/,pi=/[ -,\.\/:-@\[\]\^`\{-~]/,fi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function gi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},mi),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&&pi.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(fi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+s+i:s}function vi(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 yi(e){var t=e||performance;return Math.round(t.now())}function bi(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return $n(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=bi(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Ei(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 _i(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var wi,Ti=function(){function e(t){pe(this,e),ge(this,"hostApis",void 0),ge(this,"hostnameProperties",void 0),ge(this,"usedHostnames",void 0),ge(this,"abortController",void 0),ge(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 me(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return et(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(et(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,(di=di||i.createElement("a")).href=n,di.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}(),Si=function(){function e(t,n,i,r){pe(this,e),ge(this,"hostApis",void 0),ge(this,"statics",void 0),ge(this,"options",void 0),ge(this,"allowTimingOrigin",void 0),ge(this,"collectResourceTimings",void 0),ge(this,"collectCdnData",void 0),ge(this,"perfObserver",void 0),ge(this,"renderTimings",new Map),ge(this,"urlToTreeId",new Map),ge(this,"cdnDataProvider",void 0),ge(this,"observables",new Qn),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 Ti(t))}return me(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(di=di||t.createElement("a")).href=e,di.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:vi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||vi(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=Ei(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,ki.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=Ei(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:_i(this.renderTimings),networkInformationMetrics:Ci(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),ki=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Ci(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"}(wi||(wi={}));var Ii=(ge(ue={},"web-ui-framework","EMBER"),ge(ue,"app-id","linkedin.rum.tracking"),ge(ue,"app-version","unknown"),ge(ue,"is-single-page-app",!0),ge(ue,"user-timing-mark-enabled",!1),ge(ue,"user-timing-measure-enabled",!0),ge(ue,"beacon-source","apps"),ge(ue,"enable-rs-timing",!0),ge(ue,"enable-cdn-tracking",!1),ge(ue,"async-plugins-timeout",5e3),ge(ue,"beacon-timeout",3e4),ge(ue,"enable-memory-measurement",!1),ge(ue,"pageKeyPrefix",""),ue),Ai=function(){function e(t,n,i){pe(this,e),ge(this,"featureName",void 0),ge(this,"trackingCore",void 0),ge(this,"rumConfig",void 0),ge(this,"observing",!1),ge(this,"basePageTreeId",void 0),ge(this,"startPageInstance",void 0),ge(this,"startMemory",void 0),ge(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return me(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)||Je("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:yi(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}();ge(Ai,"checkpoints",[1,3,10,30,90,180,300]);var Li,Oi,Ri,Ni,Pi,xi=me((function e(t,n,i){pe(this,e),ge(this,"webUIFramework",void 0),ge(this,"timeSource",void 0),ge(this,"isSinglePageApp",void 0),ge(this,"appRenderMode",void 0),ge(this,"isAppRenderFailed",void 0),ge(this,"pageLoadMode","INITIAL"),ge(this,"isSSL",void 0),ge(this,"treeId",void 0),ge(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})),Mi=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)}},Di=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){}},Ui=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)},Bi=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Fi=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)))}},qi=-1,Hi=function(){return"hidden"===document.visibilityState?0:1/0},ji=function(){Ui((function(e){var t=e.timeStamp;qi=t}),!0)},zi=function(){return qi<0&&(qi=Hi(),ji(),Bi((function(){setTimeout((function(){qi=Hi(),ji()}),0)}))),{get firstHiddenTime(){return qi}}},Gi=!1,Wi=-1,Ki=function(e,t){Gi||(function(e,t){var n,i=zi(),r=Mi("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:Di("paint",o);(s||a)&&(n=Fi(e,r,t),s&&o(s),Bi((function(i){r=Mi("FCP"),n=Fi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Wi=e.value})),Gi=!0);var n,i=function(t){Wi>-1&&e(t)},r=Mi("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=Di("layout-shift",a);c&&(n=Fi(i,r,t),Ui((function(){c.takeRecords().map(a),n(!0)})),Bi((function(){o=0,Wi=-1,r=Mi("CLS",0),n=Fi(i,r,t)})))},Vi={passive:!0,capture:!0},Yi=new Date,Ji=function(e,t){Li||(Li=t,Oi=e,Ri=new Date,Zi(removeEventListener),Qi())},Qi=function(){if(Oi>=0&&Oi<Ri-Yi){var e={entryType:"first-input",name:Li.type,target:Li.target,cancelable:Li.cancelable,startTime:Li.timeStamp,processingStart:Li.timeStamp+Oi};Ni.forEach((function(t){t(e)})),Ni=[]}},Xi=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(){Ji(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,Vi),removeEventListener("pointercancel",i,Vi)};addEventListener("pointerup",n,Vi),addEventListener("pointercancel",i,Vi)}(t,e):Ji(t,e)}},Zi=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Xi,Vi)}))},$i=function(e,t){var n,i=zi(),r=Mi("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},s=Di("first-input",o);n=Fi(e,r,t),s&&Ui((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&Bi((function(){var i;r=Mi("FID"),n=Fi(e,r,t),Ni=[],Oi=-1,Li=null,Zi(addEventListener),i=o,Ni.push(i),Qi()}))},er={},tr=function(e,t){var n,i=zi(),r=Mi("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e)),n()},s=Di("largest-contentful-paint",o);if(s){n=Fi(e,r,t);var a=function(){er[r.id]||(s.takeRecords().map(o),s.disconnect(),er[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),Ui(a,!0),Bi((function(i){r=Mi("LCP"),n=Fi(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,er[r.id]=!0,n(!0)}))}))}))}},nr=["LCP","FID","CLS"],ir={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},rr={},or=function(){var e;if(!wn)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}(),sr=!1,ar=[],cr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function lr(){var e=!0===window.__test__resetWebVitalsState;if(!sr||e){e&&(ar=[]),nr.forEach(ur);var t=Symbol();Pi=t,[tr,$i,Ki].forEach((function(e){return e(dr.bind(null,t),!0)})),[tr,$i,Ki].forEach((function(e){return e(hr.bind(null,t))})),sr=!0}}function ur(e){rr[e]={name:e,value:-1,updateHistory:[]};var t=cr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(rr[e].value=-2)}function dr(e,t){if(e===Pi){var n=rr[t.name],i=yi();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),ar.forEach((function(e){return e(t,i,!1)}))}}function hr(e,t){e===Pi&&ar.forEach((function(e){return e(t,yi(),!0)}))}var pr=function(){function e(t,n){pe(this,e),ge(this,"basePageTreeId",void 0),ge(this,"basePageKey",void 0),ge(this,"observing",!1),ge(this,"appContextMap",new Map),ge(this,"rumConfig",void 0),ge(this,"trackingCore",void 0),this.trackingCore=t,this.rumConfig=n}return me(e,[{key:"startObserving",value:function(){var e,t,n=this;lr(),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",nr.forEach((function(e){var t;-2===(null===(t=rr[e])||void 0===t?void 0:t.value)&&n.reportMetric(e)})),t=this.onMetricUpdate.bind(this),ar.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=rr[e],n={name:ir[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=rr[e];if(i){var r=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:or},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:bi(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:bi(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":bi(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;pe(this,e),ge(this,"core",void 0),ge(this,"config",void 0),ge(this,"collector",void 0),ge(this,"boomerangStart",-1),ge(this,"webVitalsObserver",void 0),ge(this,"appMemoryObserver",void 0),ge(this,"pageMemoryObserver",void 0),ge(this,"liveTokens",new Set),ge(this,"stateWM",new WeakMap),ge(this,"activeToken",void 0),ge(this,"isInitial",void 0),ge(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({},Ii),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 Si(i.host.api,new xi(t,this.config,i.host),this.config,s),this.collector.startObserving(),st.before("internal:hide",this.beforeHideHandlerBound)}me(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:vi(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 Ai("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Ai("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new pr(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=vi(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 st.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;st.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 fr="undefined"!=typeof window&&"undefined"!=typeof performance,mr="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function gr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",vr(n,t))}function vr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=S(document),i=k(document),r=le();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 yr(e,t){const n=k(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function br(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Er(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),"".concat(t.pageUrn,";").concat(n)}function Er(e){return"string"==typeof e&&"=="===e.slice(-2)}!function(){function e(t,n){pe(this,e),ge(this,"featureKey",void 0),ge(this,"productName",void 0),ge(this,"endPageInstance",void 0),ge(this,"startPageInstance",void 0),ge(this,"isCanceled",!1),ge(this,"featureIdentifier",void 0),ge(this,"name",void 0),ge(this,"startTime",void 0),ge(this,"duration",void 0),ge(this,"marks",[]),ge(this,"spanStarts",new Map),ge(this,"spans",[]),ge(this,"isSpanContainer",!1),ge(this,"basePageTreeId",void 0),ge(this,"isClosed",!1),this.featureKey=t,this.productName=n;var i=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(i),this.name=t}me(e,[{key:"start",value:function(e){this.startPageInstance=e,fr&&(this.startTime=yi(),mr&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){fr&&(this.marks.push({name:e,startTime:yi()}),mr&&(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){fr&&(this.spanStarts.set(e,yi()),mr&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(fr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:yi()-n}),mr&&(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,fr&&(this.duration=yi()-this.startTime,mr&&!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(fr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||Je("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(fr){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:_r,ESCAPE:wr}=A;class Tr{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 z(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];if(!t.length)throw new Error("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e));return t}_getTopLevelContainer(){const e=document.querySelector(".".concat("top-level-modal-container"));if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=O(e.key),n=t===_r&&document.activeElement===this._exitButtonEl;(t===wr||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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{gr(e,"ajax",this._pageKey||"".concat(this._el.id))}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(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("modal__overlay--visible"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),y(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("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}}function Sr(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 kr=/ /g,Cr=/[\s\u0000<>"]|%00/,Ir=/\\/,Ar=/([.]|%2e){2}/i;let Lr=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 Or(e){let t;if("string"!=typeof e)return Sr("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(Sr("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(kr,"+")),!Lr.test(t))return Sr("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(Cr.test(t))return Sr("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,i=t.split("?")[0],r=!1;try{n=decodeURI(i)}catch(e){r=!0}return r?(Sr("jSecure Error: malformed url path detected: "+i),"invalid://"):Ir.test(i)||Ar.test(i)||Ar.test(n)?(Sr("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const Rr={redirect(e){window&&(window.location.href=e)}};function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function Pr(e){return e.scrollHeight>e.offsetHeight}function xr(e,t){const n=u(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Mr(e){Ur([e])}function Dr(e){Br([e])}function Ur(e){xr(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Br(e){xr(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Fr(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function qr(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Hr(){return document.documentElement.classList.contains("safari")}function jr(){return document.documentElement.classList.contains("ios")}function zr(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}function Gr(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&&Pr(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 Wr="prev",Kr="next";class Vr{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("slide-list__indicator-button-container")),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?(Dr(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Mr(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(M).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Wr?this.prev():n===Kr&&this.next())}_fireScrollEvent(){y(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("slide-list__indicator--selected"),e.setAttribute("aria-current",!1));const t=this._el.querySelector(".".concat("slide-list__indicator-button-container"," > :nth-child(").concat(this._currentPage+1,")"));t.classList.add("slide-list__indicator--selected"),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("slide-list__list--dragging"),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("slide-list__list--dragging")}_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(){y(this._el,"pagechange",{pageNumber:this._currentPage})}}var Yr=Object.hasOwnProperty,Jr=Object.setPrototypeOf,Qr=Object.isFrozen,Xr=Object.getPrototypeOf,Zr=Object.getOwnPropertyDescriptor,$r=Object.freeze,eo=Object.seal,to=Object.create,no="undefined"!=typeof Reflect&&Reflect,io=no.apply,ro=no.construct;io||(io=function(e,t,n){return e.apply(t,n)}),$r||($r=function(e){return e}),eo||(eo=function(e){return e}),ro||(ro=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 oo,so=vo(Array.prototype.forEach),ao=vo(Array.prototype.pop),co=vo(Array.prototype.push),lo=vo(String.prototype.toLowerCase),uo=vo(String.prototype.match),ho=vo(String.prototype.replace),po=vo(String.prototype.indexOf),fo=vo(String.prototype.trim),mo=vo(RegExp.prototype.test),go=(oo=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ro(oo,t)});function vo(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 io(e,t,i)}}function yo(e,t){Jr&&Jr(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=lo(i);r!==i&&(Qr(t)||(t[n]=r),i=r)}e[i]=!0}return e}function bo(e){var t=to(null),n=void 0;for(n in e)io(Yr,e,[n])&&(t[n]=e[n]);return t}function Eo(e,t){for(;null!==e;){var n=Zr(e,t);if(n){if(n.get)return vo(n.get);if("function"==typeof n.value)return vo(n.value)}e=Xr(e)}return function(e){return console.warn("fallback value for",e),null}}var _o=$r(["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"]),wo=$r(["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"]),To=$r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),So=$r(["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"]),ko=$r(["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"]),Co=$r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Io=$r(["#text"]),Ao=$r(["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"]),Lo=$r(["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"]),Oo=$r(["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"]),Ro=$r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),No=eo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Po=eo(/<%[\s\S]*|[\s\S]*%>/gm),xo=eo(/^data-[\-\w.\u00B7-\uFFFF]/),Mo=eo(/^aria-[\-\w]+$/),Do=eo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Uo=eo(/^(?:\w+script|data):/i),Bo=eo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fo="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 qo(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 Ho=function(){return"undefined"==typeof window?null:window},jo=function(e,t){if("object"!==(void 0===e?"undefined":Fo(e))||"function"!=typeof e.createPolicy)return null;var n=null;t.currentScript&&t.currentScript.hasAttribute("data-tt-policy-suffix")&&(n=t.currentScript.getAttribute("data-tt-policy-suffix"));var i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var zo=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ho(),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=Eo(m,"cloneNode"),v=Eo(m,"nextSibling"),y=Eo(m,"childNodes"),b=Eo(m,"parentNode");if("function"==typeof s){var E=r.createElement("template");E.content&&E.content.ownerDocument&&(r=E.content.ownerDocument)}var _=jo(f,i),w=_?_.createHTML(""):"",T=r,S=T.implementation,k=T.createNodeIterator,C=T.createDocumentFragment,I=T.getElementsByTagName,A=i.importNode,L={};try{L=bo(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof b&&S&&void 0!==S.createHTMLDocument&&9!==L;var R=No,N=Po,P=xo,x=Mo,M=Uo,D=Bo,U=Do,B=null,F=yo({},[].concat(qo(_o),qo(wo),qo(To),qo(ko),qo(Io))),q=null,H=yo({},[].concat(qo(Ao),qo(Lo),qo(Oo),qo(Ro))),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}})),z=null,G=null,W=!0,K=!0,V=!1,Y=!1,J=!1,Q=!1,X=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,se=yo({},["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=yo({},["audio","video","img","source","image","track"]),le=null,ue=yo({},["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",be=void 0,Ee=null,_e=r.createElement("form"),we=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":Fo(e))||(e={}),e=bo(e),B="ALLOWED_TAGS"in e?yo({},e.ALLOWED_TAGS):F,q="ALLOWED_ATTR"in e?yo({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?yo(bo(ue),e.ADD_URI_SAFE_ATTR):ue,ae="ADD_DATA_URI_TAGS"in e?yo(bo(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?yo({},e.FORBID_CONTENTS):se,z="FORBID_TAGS"in e?yo({},e.FORBID_TAGS):{},G="FORBID_ATTR"in e?yo({},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,J=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,X=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&&we(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&we(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,be="application/xhtml+xml"===ge?function(e){return e}:lo,Y&&(K=!1),$&&(Z=!0),re&&(B=yo({},[].concat(qo(Io))),q=[],!0===re.html&&(yo(B,_o),yo(q,Ao)),!0===re.svg&&(yo(B,wo),yo(q,Lo),yo(q,Ro)),!0===re.svgFilters&&(yo(B,To),yo(q,Lo),yo(q,Ro)),!0===re.mathMl&&(yo(B,ko),yo(q,Oo),yo(q,Ro))),e.ADD_TAGS&&(B===F&&(B=bo(B)),yo(B,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=bo(q)),yo(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&yo(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=bo(oe)),yo(oe,e.FORBID_CONTENTS)),ne&&(B["#text"]=!0),J&&yo(B,["html","head","body"]),B.table&&(yo(B,["tbody"]),delete z.tbody),$r&&$r(e),Ee=e)},Se=yo({},["mi","mo","mn","ms","mtext"]),ke=yo({},["foreignobject","desc","title","annotation-xml"]),Ce=yo({},wo);yo(Ce,To),yo(Ce,So);var Ie=yo({},ko);yo(Ie,Co);var Ae=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=lo(e.tagName),i=lo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ce[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&ke[i]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!ke[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=yo({},["title","style","font","a","script"]);return!Ie[n]&&(r[n]||!Ce[n])}return!1},Le=function(e){co(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=w}catch(t){e.remove()}}},Oe=function(e,t){try{co(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){co(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if(Z||$)try{Le(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Re=function(e){var t=void 0,n=void 0;if(X)e="<remove></remove>"+e;else{var i=uo(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=_?_.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?I.call(t,J?"html":"body")[0]:J?t.documentElement:s},Ne=function(e){return k.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":Fo(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Fo(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Me=function(e,t,i){O[e]&&so(O[e],(function(e){e.call(n,t,i,Ee)}))},De=function(e){var t=void 0;if(Me("beforeSanitizeElements",e,null),Pe(e))return Le(e),!0;if(uo(e.nodeName,/[\u0080-\uFFFF]/))return Le(e),!0;var i=be(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:i,allowedTags:B}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&mo(/<[/\w]/g,e.innerHTML)&&mo(/<[/\w]/g,e.textContent))return Le(e),!0;if("select"===i&&mo(/<template/i,e.innerHTML))return Le(e),!0;if(!B[i]||z[i]){if(ne&&!oe[i]){var r=b(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(!z[i]&&Be(i)){if(j.tagNameCheck instanceof RegExp&&mo(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return Le(e),!0}return e instanceof c&&!Ae(e)?(Le(e),!0):"noscript"!==i&&"noembed"!==i||!mo(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(t=e.textContent,t=ho(t,R," "),t=ho(t,N," "),e.textContent!==t&&(co(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in _e))return!1;if(K&&!G[t]&&mo(P,t));else if(W&&mo(x,t));else if(!q[t]||G[t]){if(!(Be(e)&&(j.tagNameCheck instanceof RegExp&&mo(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&mo(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&mo(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(mo(U,ho(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==po(n,"data:")||!ae[e]){if(V&&!mo(M,ho(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=fo(t.value),r=be(l),a.attrName=r,a.attrValue=i,a.keepAttr=!0,a.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,a),i=a.attrValue,!a.forceKeepAttr&&(Oe(l,e),a.keepAttr))if(mo(/\/>/i,i))Oe(l,e);else{Y&&(i=ho(i,R," "),i=ho(i,N," "));var d=be(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),ao(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 go("toString is not a function");if("string"!=typeof(e=e.toString()))throw go("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Fo(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(Q||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=be(e.nodeName);if(!B[h]||z[h])throw go("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&&!J&&-1===e.indexOf("<"))return _&&ee?_.createHTML(e):e;if(!(s=Re(e)))return Z?null:ee?w:""}s&&X&&Le(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=C.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=J?s.outerHTML:s.innerHTML;return Y&&(f=ho(f,R," "),f=ho(f,N," ")),_&&ee?_.createHTML(f):f},n.setConfig=function(e){Te(e),Q=!0},n.clearConfig=function(){Ee=null,Q=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});var i=be(e),r=be(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],co(O[e],t))},n.removeHook=function(e){O[e]&&ao(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Go={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Wo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ko(null,e,t);return n.innerHTML}function Ko(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=re({},Go);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=zo.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Vo="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Yo=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Jo=["b","del","em","i","s","strong","sub","sup"],Qo=Jo.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"]),Xo=[Vo,"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 Zo(){}var $o,es,ts=(es=/[&<>"'\u0000\\=]/g,$o={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(es,(function(e){return $o[e]}))}),ns=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[Yo],i[a]=c,c)):o||s?t(parseInt(o||s,o?16:10)||65533):"�";var a,c}))}}();var is=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function rs(e){return/[<&]/.test(e)}var os,ss=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)};function as(e){e=is(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",ss(e,(function(e,s){t=e.tags||Qo,n=e.attrs||Xo,i=e.checkUrlAttrs||!1,0!==s&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",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 cs(e){return as({tags:e=e||Qo,checkUrlAttrs:!0})}function ls(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!cs(n).test(e):i?!ls.R_UNSAFE_CUSTOM_ELEMENT.test(e):!ls.R_UNSAFE_HTML.test(e)}function us(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function ds(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 Zo||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?ts(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return rs(i)&&!ls(i,n)&&(i=us(i),Sr("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function hs(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}ls.R_UNSAFE_HTML=cs(),ls.R_UNSAFE_CUSTOM_ELEMENT=as([{tags:Qo,checkUrlAttrs:!0},{tags:[(os={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Vo,os.attrs].join("|"),checkUrlAttrs:!1}]);var ps={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,"",""]};ps.optgroup=ps.option,ps.tbody=ps.tfoot=ps.colgroup=ps.caption=ps.thead,ps.th=ps.td;var fs=/<([\w:]+)/;function ms(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=(fs.exec(o)||["",""])[1].toLowerCase(),ys(r,(i=ps[n]||ps._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);hs(u,r.childNodes),(r=l.firstChild).textContent=""}else hs(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var gs=ds,vs=ds;function ys(e,t,n){var i=ds(t,n);return rs(i)?e.innerHTML=i:e[Yo]=i,i}function bs(e,t){if(!(this instanceof bs))return new bs(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}bs.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Zo,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(ls(e,this._options)||(n=e,e=us(e),Sr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var Es={ALLOWED_TAGS:Qo,FORMATTING_TAGS:Jo,htmlEncode:ts,htmlUnencode:ns,log:Sr,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 bs?r:ts(r))})),vs(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=ms([e],t);else{if(!is(e))return e;n=ms(e,t)}return hs([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:gs,reEncode:function(e){return ts(ns(e))},_redirector:Rr,redirect:function(e){const t=Or(e);t===e&&Rr.redirect(t)},sanitizeHTML:vs,sanitizeUrl:Or,setElementContent:ys,text:function(e){return Sr("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),ts(e)},unsafe:function(e){return e},UnsafeString:bs};function _s(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 ws=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Ts{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(ws).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(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const t=r(e.target,".toast__dismiss-btn");if(t){const e=r(t,".toast");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(".toast__message");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===ws.CAUTION?c="text-color-text-caution":e===ws.ERROR?c="text-color-text-negative":e===ws.SUCCESS&&(c="text-color-text-positive"),a.classList.add(c),Ko(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",Es.sanitizeUrl(f(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(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),_s(t)}),500),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),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()})}}oe(Ts,"TOAST_TYPES",ws);const Ss={};function ks(e){const t=document.getElementById(e);if(!t&&void 0!==Ss[e])return Ss[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Ss[e]=null,Ss[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):(Ss[e]=n,t.parentNode.removeChild(t),Ss[e])}const Cs={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Cs).map(e=>Cs[e]);const Is=["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(Is,"i");class As{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.tracking,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window.lazyloader;const{sources:r,posterUrl:o,digitalmediaAssetUrn:s,trackingId:a,captionsUrl:c}=e.dataset,l=JSON.parse(r);if(!l.length)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");e.hasAttribute("autoplay")&&(t.autoplay=!0),this._mediaPlayerInstancePromise=this._createPlayer(e,a,s,t,i).then(e=>(o&&e.poster(o),e.src(l),c&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"showing",src:c}),this._bindTracking(e,n),e))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,s=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",a=re({errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{posterBackground:!0}},i);return a.plugins.tracking={mediaUrn:n,trackingId:t},a.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:s}},o(e,a)})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n)})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o=re({header:{},requestHeader:{}},r);delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=T(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}}class Ls{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:s=!1,marginApplied:a=!1,debounceDelay:c=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=s,this._scrollListener=g(this._onScroll.bind(this),c),this.marginApplied=a,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this._setupResizeListener(),o(()=>{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(){W()||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"),y(this.el,"show")}hide(){this.el.classList.remove("show"),y(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 Os=[];for(let e=0;e<256;++e)Os.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);"".concat("tooltip__popup","--show");class Rs{constructor(e){if(!e)throw new Error("No element passed in");this._el=e,this._imgEl=this._el.querySelector(".cover-img__image"),this._imgEl&&(this.cropInfo=ks(this._imgEl.dataset.embedId),this.ratio=0,this._imgEl.classList.contains(".lazy-loaded")&&this._initCalc(),this._bindEvents())}_bindEvents(){window.addEventListener("resize",this._handleWindowResize.bind(this)),this._imgEl.addEventListener("load",this._initCalc.bind(this))}_handleWindowResize(){this._isResizing||(this._isResizing=!0,window.requestAnimationFrame(this._initCalc.bind(this)))}_initCalc(){const e=this._el.clientWidth,t=this._el.clientHeight,n=this._imgEl.naturalWidth,i=this._imgEl.naturalHeight,r=this.cropInfo?this.cropInfo.y:0,o=this.cropInfo?this.cropInfo.x:0,s=n-o,a=i-r,c=e/s,l=t/a,u=s*l>=e,d=a*c>=t;let h=0;d&&u?h=Math.min(c,l):d?h=c:u&&(h=l);let p=Math.max(h*n,e),f=Math.max(h*i,t);h!==this.ratio&&(this.ratio=h,this._imgEl.style.width="".concat(p,"px"),this._imgEl.style.height="".concat(f,"px"),this._imgEl.style.top="-".concat(r*this.ratio,"px"),this._imgEl.style.left="-".concat(o*this.ratio,"px")),this._isResizing=!1}}const Ns=["endpoint","headers","queryId","variables","pageKey"];function Ps(){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=se(e,Ns);return Q(t,re({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:o})},s))}class xs{constructor(e,t,n){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e,n&&(this.pageKey=n)}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return Ps({endpoint:this.endpoint,queryId:n,variables:t,pageKey:this.pageKey,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class Ms extends xs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Ms.query,variables:{allowedCommentersScope:e.allowedCommentersScope,text:e.text,visibility:e.visibility||"PUBLIC",reshareUrn:e.reshareUrn,attributedShareUrn:e.attributedShareUrn,articleInput:e.articleInput,imagePostInput:e.imagePostInput,attributes:e.attributes,containerEntity:e.containerEntity},successCallback:t,failureCallback:n})}}oe(Ms,"query","2849bb08e3a3bbd23c96c0e758c018b7");class Ds extends xs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Ds.query,variables:{url:e},successCallback:t,failureCallback:n})}}oe(Ds,"query","bece320b5f70fe4357082fe84eca6c56");const Us="loader--absolute",Bs="loader--show",Fs="loader--full-screen",qs="no-scroll",Hs="loader-wrapper";class js{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(Us),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(Bs),this.el.classList.contains(Fs)&&document.body.classList.add(qs),this.isAbsoluteVariant&&this.wrapperEl.classList.add(Hs)}hide(){this.el.classList.remove(Bs),document.body.classList.remove(qs),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(Hs)}}const zs="dismissable-input",Gs="dismissable-input--focus",Ws="dismissable-input__button",Ks="dismissable-input__button--show",Vs="dismissable-input__input";class Ys{constructor(e){this.el=e,this._input=this.el.querySelector(".".concat(Vs)),this._dismissButtonEl=this.el.querySelector(".".concat(Ws)),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(Gs),this._updateDismissButton(),y(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(Ks)}_showDismissButton(){this._dismissButtonEl.classList.add(Ks)}_onInputBlur(){this.el.classList.remove(Gs)}clear(){this._input.value="",this._updateDismissButton(""),this._input.focus(),y(this.el,"clear")}}const Js={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"},Qs="i18n_aria_live_text_no-suggestions",Xs="i18n_aria_live_text_one-suggestion",Zs="i18n_aria_live_text_multiple-suggestions",$s=500;class ea{constructor(e,t){let{createDismissableInput:n,elementClasses:i=Js,generateApiUrl:r,liveTextEl:o,liveTextClearTime:s=$s,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(Vs)),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 Ys(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=g(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(O(e.key)){case A.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case A.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case A.ESCAPE:this._closeOnEscape&&this._hideList();break;case A.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 Q(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=u(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=ks(Qs),this._liveTextOneSuggestion=ks(Xs),this._liveTextMultipleSuggestions=ks(Zs)}_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))}}class ta{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 z(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target: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;r(t,".".concat(Js.block))||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&Nr()){return!this.expandedEl.contains(document.activeElement)}return!1}}class na extends ea{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 ia={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"},ra="i18n_aria_live_text_recent-searches-one-suggestion",oa="i18n_aria_live_text_recent-searches-multiple-suggestions",sa="i18n_aria_live_text_recent-searches-cleared";class aa extends ea{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:ia,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector(".".concat(ia.dropdown)),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=u(this.dropdownContainerEl.querySelectorAll(".".concat(ia.listItem))),this._clearBtnItem=e.querySelector(".".concat(ia.listItemClearButton)),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector(".".concat(Ws))}_attachEventListeners(){this._clearBtn=this.el.querySelector(".".concat(ia.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(ia.listItemLink));n?this._redirect(n):t.classList.contains(ia.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(ia.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=ks(ra),this._liveTextMultipleSuggestions=ks(oa),this._liveTextClearedSuggestions=ks(sa)}_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(){Q(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class ca{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 J(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("hidden"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add("hidden")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button")&&!e.target.classList.contains("switcher-tabs__tab"))return;const t=r(e.target,".".concat("switcher-tabs__tab")),n=t.querySelector(".".concat("switcher-tabs__button")).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("tab-selected"));if(r(t,".".concat("switcher-tabs__tab"))&&(t.setAttribute("aria-selected","false"),t.classList.remove("tab-selected")),e.classList.contains("switcher-tabs__tab")){const t=e.querySelector(".".concat("switcher-tabs__button"));t.classList.add("tab-selected"),t.setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".".concat("tab-selected"));e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class la{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=u(this.el.querySelectorAll(".".concat("base-search-bar"))).reduce((e,t)=>{const n=new ta(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 na(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:s,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector(".".concat(ia.dropdown))&&new aa(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s}),new na(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(zs,".search-input"))).forEach(e=>{new Ys(e);e.querySelector(".".concat(ia.dropdown))&&new aa(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:s})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll(".".concat(zs))).forEach(e=>new Ys(e));o&&(this.switcher=new ca(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(T(document),"-").concat(t)})})})}}class ua extends Tr{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("overlay_").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("overlay_").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);T(document);String.fromCharCode(32);class da{constructor(e,t){let{isShown:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw Error("An element must be provided to the dismissable element");if(!t)throw Error("A dismiss button must be provided to the dismissable element");this.el=e,this.dismissBtn=t,this._dismissEvent=e=>this.dismiss(e),n&&this.show()}show(){this.el.classList.add("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),y(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),y(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function ha(){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 pa(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 fa(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}const ma={session_key:[ha(),pa(3),fa(128)],session_password:[ha(),pa(6),fa(400)]};function ga(e,t){const n=ma[e];if(!n)throw new Error("No validation rules for element named ".concat(e));for(let e=0;e<n.length;e++)if(n[e](t))return n[e].errorMessageSuffix}var va=window||e;const ya=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/;function ba(){const e=va.location?va.location.hostname:"";return ya.test(e)}function Ea(){return ba()?_a()?"platform.linkedin.cn":"platform.linkedin.com":_a()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function _a(){const e=va.location?va.location.hostname:"";return/\.cn$/.test(e)}function wa(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 va.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 Ta(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ka,Ca,Ia,Aa,La={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Oa="GUEST",Ra="MEMBER",Na=0,Pa=1,xa=2,Ma=(Sa(ka={},Oa,"li_gc"),Sa(ka,Ra,"li_mc"),ka),Da=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 Ta(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},La)t[o]=t[o]||Na,t[o]!==Na&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Pa||t[o]===Na&&r===Pa},Ua=(Ca=[La.ADVERTISING,La.ANALYTICS_AND_RESEARCH,La.FUNCTIONAL],Ia=[Na,Pa,xa,Na],Aa=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),{parseConsentBody:function(e,t){var n=e.match(Aa);if(!n)return{error:"Invalid consent body encoding",consent:new Da};for(var i=parseInt(n[1],10),r={},o=0;o<Ca.length;o++)r[Ca[o]]=Ia[i>>2*o&3];var s=new Date(1e3*parseInt(n[2],10)),a=parseInt(n[3],10),c=Na;return a>=0&&a<=3&&(c=Ia[a]),{error:null,consent:new Da(r,s,t,c)}}}),Ba=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Fa=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},qa=function(e,t){var n=Fa(Ma[e],t);return n?ja(n,e):Fa(Ma[Oa],t)||Fa(Ma[Ra],t)?Ha(xa):Ha(Pa)},Ha=function(e){var t={};for(var n in La)t[n]=e;return{error:null,consent:new Da(t,null,null,e)}};var ja=function(e,t){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var n,r=null;try{r=(n=e,"undefined"==typeof atob&&void 0!==i?i.from(n,"base64").toString("binary"):atob(n)).match(Ba)}catch(e){}if(!r)return{error:"Invalid consent encoding",consent:new Da};var o=parseInt(r[1],10),s=r[2];switch(o){case 1:return Ua.parseConsentBody(s,t);default:return{error:"Invalid encoded consent version ".concat(o),consent:new Da}}},za=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.cookie;return e||(e=Fa("liap",t)?Fa(Ma[Ra],t)?Ra:Oa:Fa(Ma[Oa],t)?Oa:Ra),qa(e,t)};function Ga(e){return function(){let e=za();return!e||e.consent.optedInConsentMap.ADVERTISING}()&&function(e){return e["compliance.isGDPROptIn"]}(e)}function Wa(e){return function(){let e=za();return!e||e.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}()}function Ka(e){return function(){let e=za();return!e||e.consent.optedInConsentMap.FUNCTIONAL}()}function Va(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 Ya(e){const t=new va.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function Ja(){return/utagdb=[^;]+/.test(va.document.cookie)}let Qa;const Xa={},Za={};function $a(){return"https://".concat(ba()?_a()?"www.linkedin.cn":"www.linkedin.com":_a()?"www.linkedin-ei.cn":"www.linkedin-ei.com").concat("/litms/api/metadata/user")}function ec(){return function(e){let t=Va({},e);return t["compliance.isAdvertisingOptIn"]=Ga(t),t["compliance.isAnalyticsAndResearchOptIn"]=Wa(),t["compliance.isFunctionalOptIn"]=Ka(),t}(Xa)}function tc(e){if(!Za[e]){const t=function(e){return"https://".concat(Ea(),"/litms/allowlist/").concat(encodeURIComponent(e))}(e),n=new Promise((e,n)=>{wa(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});Za[e]=n}return Za[e]}va.utag_data||(va.utag_data={});const nc="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let ic;function rc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n="https://".concat(Ea(),"/litms/utag/").concat(e,"/utag.js?cb=").concat(Ya(t))),n}function oc(){return function(){if(void 0===ic&&nc){const e=va.document.cookie.match(/litms_utag_override=([^;]+)/);ic=e?e[1]:""}return ic}().length>0}function sc(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Va({},t,ec());e.view(r),Ja()&&va.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function ac(e,t,n,i){e.onLoadRulesRunOnce(n);let r=Va({},t,ec());e.link(r),Ja()&&va.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function cc(e,t,n){if(function(e){va.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?ac(e,i.data,i.callback,n):sc(e,i.data,i.callback,n)}}}function lc(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 uc(e,t){return"urn:li:externalMarketingTag:(".concat(function(e){const t=e.data["ut.profile"],n=e.cfg.v;return"urn:li:tagManagementSystemProfile:(".concat("tealium",",").concat(t,",").concat(n,")")}(e),",").concat(parseInt(t),")")}function dc(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:uc(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}va.utag_cfg_ovrd=va.utag_cfg_ovrd||{},va.trackingEventDebugData=va.trackingEventDebugData||[],va.utag_cfg_ovrd.noview=!0,va.utag_cfg_ovrd.nocookie=!0;const hc=nc&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(va.navigator.userAgent),pc={};let fc,mc,gc,vc={};class yc{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=tc(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&&(pc[this.profileName]=this),this.initializePromise):Promise.resolve()}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_loadContainerTag(e,t){void 0!==va.utag&&(va.utag=void 0),void 0!==va.utag_data&&(va.utag_data=void 0);const n=function(){if(!Qa){const e=$a();Qa=new Promise((t,n)=>{wa(e,e=>{try{t(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),n(e)}},e=>{n(e)})})}return Qa}().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=>{Xa[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 oc()?ic:rc(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=va.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,va.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=va.utag,function(e){const t=[];e.onLoadRulesRunOnce=function(e){t.push(e)};const n=e.loader.initcfg;e.loader.initcfg=function(){if(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&&lc(this.tracking2Instance,t),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!hc}_shouldProcessEvent(e){return hc?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?cc(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(){const e=dc(this._uTag);return void 0!==this.tracking2Instance&&void 0!==e&&lc(this.tracking2Instance,e),e}_createCallbackForAuditEvent(e){const t=this;return function(){const n=t._fireAuditEvent();"function"==typeof e&&e(n)}}_checkForCookieConsent(){za().consent.consentAvailable&&!mc?this._refireTracking():fc=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){vc.payloads&&vc.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(nc){mc=!1;const{payloads:n=[],url:i}=vc,r=location.href,o={data:e,callback:t},s=r!==i?[]:n;s.push(o),vc={url:r,payloads:s},fc||(fc=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){return za().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 bc(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 Ec{constructor(e){if(this.trackingInstance=e,this.pageKey=T(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 yc({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>bc({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||bc({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(re({pageKey:n},t))}}!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 _c="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",wc={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Tc={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Sc,GOOGLE_USER_FETCHED:kc,INITIALIZED:Cc}=wc,{INITIALIZATION:Ic,AUTHENTICATION:Ac}=Tc;class Lc extends EventTarget{constructor(e){let{libSrcPath:t,el:n,clientId:i=_c}=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(Cc);this.dispatchEvent(t)}).catch(e=>{const t={type:Ic,message:e.error},n=new CustomEvent(Sc,{detail:t});this.dispatchEvent(n)})}_attachSignIn(){this.auth2.attachClickHandler(this.el,{},e=>{const t=new CustomEvent(kc,{detail:this._getGoogleUserInformation(e)});this.dispatchEvent(t)},e=>{const t={type:Ac,message:e.error},n=new CustomEvent(Sc,{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 Oc={exports:{}};function Rc(e){this.message=e}Rc.prototype=new Error,Rc.prototype.name="InvalidCharacterError";var Nc="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Rc("'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 Pc=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(Nc(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 Nc(t)}};function xc(e){this.message=e}xc.prototype=new Error,xc.prototype.name="InvalidTokenError",Oc.exports=function(e,t){if("string"!=typeof e)throw new xc("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Pc(e.split(".")[n]))}catch(e){throw new xc("Invalid token specified: "+e.message)}},Oc.exports.InvalidTokenError=xc;const Mc=wc,Dc=Tc;function Uc(){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{GOOGLE_USER_FETCHED:Bc,GOOGLE_ERROR:Fc,INITIALIZED:qc}=Mc,{INITIALIZATION:Hc}=Dc;class jc{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 js(this.loaderEl),window.tracking&&window.tracking.then(e=>{const t=T(document,{skipSuffix:!0}),n="".concat(t,"-").concat(this.btnEl.dataset.trackingControlName),i=br(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 Lc({el:this.btnEl}),this.initSuccess&&"function"==typeof this.initSuccess&&this.googleSignInInstance.addEventListener(qc,this.initSuccess),this.googleSignInInstance.addEventListener(Bc,e=>{this._submitWithGoogle(e.detail)}),this.googleSignInInstance.addEventListener(Fc,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===Hc&&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),ks("prefill-bugfix-enabled")&&(this._createHiddenInputElement("googleGivenName",o),this._createHiddenInputElement("googleFamilyName",r),this._createHiddenInputElement("googleImageUrl",i),this._createHiddenInputElement("googleEmail",t)),this._createHiddenInputElement("apfc",Uc()),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}}const zc='[data-js-module-id="guest-input"]';class Gc{constructor(e){let{customValidate:t,fireTrackingOnInit:n=!0,initSuccess:i,initFailure:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in form");this.el=e,this._customValidate=t,this._fireTrackingOnInit=n,this.initSuccess=i,this.initFailure=r,this.showText=ks("i18n_sign_in_form_show_text"),this.showLabelText=ks("i18n_sign_in_form_show_label"),this.hideText=ks("i18n_sign_in_form_hide_text"),this.hideLabelText=ks("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=".concat("session_key","]")),this.passwordEl=this.el.querySelector("input[name=".concat("session_password","]")),this.usernameElId=this.usernameEl.id,this.passwordElId=this.passwordEl.id,this.usernameMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="').concat(this.usernameElId,'"]')),this.passwordMsgEl=this.el.querySelector("".concat('[data-js-module-id="guest-input__message"]','[for="').concat(this.passwordElId,'"]')),this.sessionRedirectEl=this.el.querySelector("input[name=".concat("session_redirect","]")),this.passwordVisibilityToggle=this.el.querySelector("".concat('[data-id="sign-in-form__password-visibility-toggle"]')),this.anonymousLoginToggleInput=this.el.querySelector(".anonymous-login-toggle input"),this.passwordVisibilityToggle.addEventListener("click",this._togglePasswordVisibility.bind(this));const o=this.el.nextElementSibling;null!=o&&o.classList.contains("google-sign-in-cta-widget")&&(this.googleSignInCta=new jc(o,{initSuccess:this.initSuccess,initFailure:this.initFailure})),this.el.addEventListener("submit",e=>{if(e.preventDefault(),!this._validate()){if(this._customValidate)return this._customValidate(this.el);if(this.el.appendChild(this._createHiddenInputElement("apfc",Uc())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const t=this.sessionRedirectEl.value,n=m("/public-profile/settings/anonymousLogin","csrfToken",I(v("JSESSIONID")));this.sessionRedirectEl.value=m(n,"originalSessionRedirect",t);try{localStorage.setItem("voyager-web:anonymous-login",Date.now())}catch(e){}}this.el.submit()}}),window.tracking&&window.tracking.then(e=>{const t=T(document,{skipSuffix:!0}),n=t+"_login-form",i=this.el.querySelector('[data-id="sign-in-form__submit-btn"]'),r="".concat(t,"-").concat(i.dataset.trackingControlName),o=br(e),s=this._createHiddenInputElement("pageInstance",o),a=this._createHiddenInputElement("controlId",r);this.el.appendChild(a),this.el.appendChild(s),this._fireTrackingOnInit&&this.fireTracking(e,n)})}fireTracking(e,t){gr(e,"ajax",t),function(e){if(!gc){if(!e)throw new Error("No trackingInstance passed in!");gc=new Ec(e)}return gc}(e).trackPageView({pageKey:t})}setUsernameInputValue(e){this.usernameEl.value=e}resetFormState(){this.usernameEl.value="",this.passwordEl.value="","text"===this.passwordEl.getAttribute("type")&&this._togglePasswordVisibility()}_createHiddenInputElement(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}_togglePasswordVisibility(){"password"===this.passwordEl.getAttribute("type")?(this.passwordEl.setAttribute("type","text"),this.passwordVisibilityToggle.innerText=this.hideText,this.passwordVisibilityToggle.setAttribute("aria-label",this.hideLabelText)):(this.passwordEl.setAttribute("type","password"),this.passwordVisibilityToggle.innerText=this.showText,this.passwordVisibilityToggle.setAttribute("aria-label",this.showLabelText))}_validate(){const e=ga(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(zc).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="".concat("i18n_username","_").concat(e);return this.usernameMsgEl.innerText=ks(t),this.usernameEl.focus(),!0}this.usernameEl.closest(zc).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=ga(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(zc).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="".concat("i18n_password","_").concat(t);return this.passwordMsgEl.innerText=ks(e),this.passwordEl.focus(),!0}this.passwordEl.closest(zc).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}const Wc={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Kc{constructor(e,t){let{threshold:n=.9,root:i=null,rootMargin:r="0px",componentList:o=[],impressionEventCallback:s=(()=>{}),onImpression:a=(()=>{}),onObservation:c=(()=>{}),onUnobservation:l=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return Wc;this.root=i,this.threshold=n,this.rootMargin=r,this.trackingInstance=t,this.impressionEventCallback=s,this._onImpression=a,this._onObservation=c,this._onUnobservation=l;const u={root:this.root,rootMargin:this.rootMargin,threshold:this.threshold};this.intersectionObserverInstance=new e(this._handleObservedNodes.bind(this),u),this.observeComponents(o)}observeComponents(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.forEach(e=>{this.intersectionObserverInstance.observe(e),this._onObservation(e)})}unobserveComponents(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(e=>{this.intersectionObserverInstance.unobserve(e),this._onUnobservation(e)})}_isNodeVisible(e){return e.intersectionRatio>=this.threshold}_handleObservedNodes(e){if(this.intersectionObserverInstance){const t=e.filter(e=>this._isNodeVisible(e)).map(e=>{let{target:t}=e;return t});t.length>0&&(this._onImpression({trackingInstance:this.trackingInstance,visibleElements:t}),this.impressionEventCallback({trackingInstance:this.trackingInstance,queuedImpressions:t}),this.unobserveComponents(t))}}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.intersectionObserverInstance&&e.length>0&&this.observeComponents(e)}}function Vc(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Yc(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 Jc(e,t){return Math.round(e-t)}var Qc,Xc=(Qc=function(e,t){return(Qc=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)},function(e,t){function n(){this.constructor=e}Qc(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Zc=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}(),$c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xc(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Zc),el=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xc(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Zc),tl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xc(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}(Zc),nl=function(){return 0},il=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),rl=il&&!!window.requestAnimationFrame,ol={hasDOM:il,hasRAF:rl,getScrollTop:nl,getScrollLeft:nl,getHeight:nl,getWidth:nl,rAF:rl?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:nl,get isDirty(){return ol.version!==ol.lastVersion},document:window.document,IntersectionObserver:il&&window.IntersectionObserver,performance:il&&window.performance};function sl(){++ol.version}function al(){var e=null!=document.scrollingElement;ol.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},ol.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}il&&(ol.getHeight=function(){return window.innerHeight},ol.getWidth=function(){return window.innerWidth},ol.updateMeta=function(){ol.meta.height=ol.getHeight(),ol.meta.width=ol.getWidth(),ol.meta.scrollLeft=ol.getScrollLeft(),ol.meta.scrollTop=ol.getScrollTop(),ol.lastVersion=ol.version},ol.updateMeta(),"loading"!==document.readyState?al():document.addEventListener("DOMContentLoaded",al),window.addEventListener("resize",sl,!1),window.addEventListener("scroll",sl,!1));var cl=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,ol.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}(),ll=null;var ul=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])})(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)}}(),dl="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),hl=0,pl=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 ol.isDirty&&ol.updateMeta(),e===window||e===document?(n.height=ol.meta.height,n.width=ol.meta.width,n.scrollLeft=ol.meta.scrollLeft,n.scrollTop=ol.meta.scrollTop,n):(t=Yc(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 fl(){return hl+++dl}var ml=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(ll||(ll=new cl)),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(pl.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=Yc(e),i=pl.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}(),gl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new $c,t}return ul(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=fl();return this.queue.push({callback:e,id:t}),t},t}(ml),vl=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return ul(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(gl),yl=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=ol.version,r.queue=new tl,r.ALLOW_CACHED_SCHEDULER=i,r}return ul(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return ol.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=Yc(r)),i(e,o,s)}this.lastVersion=ol.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||fl();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(ml),bl=null;var El=function(){function e(){this.queue=new el}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}(),_l=function(){function e(e){this.scheduler=new vl(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=pl.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),wl=null;function Tl(e,t){var n=(wl||(wl={scroll:new _l((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new _l((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new El,beforeunload:new El,hide:new El,show:new El}))[e];n&&n.listen(t)}function Sl(e,t){if(wl){var n=wl[e];n&&n.unlisten(t)}}function kl(e,t){if(wl){var n=wl[e];n&&n.trigger(t)}}function Cl(e){(bl||(bl=new gl)).scheduleWork(e)}function Il(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}}ol.hasDOM&&(window.addEventListener("beforeunload",(function(){kl("beforeunload"),kl("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?kl("show"):kl("hide")})));var Al=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 yl(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||fl();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:Ll(),intersectionRatio:0,intersectionRect:Ll(),isIntersecting:!1,rootBounds:Ll(),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:Vc({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Il(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 Ll(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Ol={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&&!!ol.IntersectionObserver;var h=this.usingNativeIo?ol.IntersectionObserver:Al;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),ol.hasDOM&&(Tl("beforeunload",this.onWindowClosed),Tl("hide",this.onTabHidden),Tl("show",this.onTabShown),c&&(this.paused="visible"!==ol.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((ol.performance.timeOrigin||ol.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:Ol,boundingClientRect:o||Ol,intersectionRect:Ol,visibleTime:r.lastVisible.unixTime,duration:Jc(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=Jc(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:Vc(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=Jc(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(),ol.hasDOM&&(Sl("beforeunload",this.onWindowClosed),Sl("hide",this.onTabHidden),Sl("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),Cl((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||fl();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}}();ol.IntersectionObserver&&ol.IntersectionObserver;class Rl{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._impressionTracking=new Kc(e,t,re({componentList:this._componentList,onImpression:this._onImpression.bind(this)},n))}get _componentList(){return[...document.querySelectorAll(".main-job-card, .aside-job-card")]}_onImpression(e){let{trackingInstance:t,visibleElements:n}=e;const i=n.filter(e=>{const{entityUrn:t,referenceId:n,trackingId:i}=e.dataset;return Boolean(t&&n&&i)}).map(e=>{const{entityUrn:t,referenceId:n,trackingId:i}=e.dataset;return{jobPostingUrn:t,referenceId:n,trackingId:i}});i.length>0&&function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0===t.length)return;const n=T(document),{header:i,requestHeader:r}=vr(n),{referenceId:o}=t[0],s=t.map((function(){let{jobPostingUrn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e})),a=t.map((function(){let{jobPostingUrn:e,trackingId:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{objectUrn:e,trackingId:t}})),c={header:i,requestHeader:r,referenceId:o,jobPostingUrns:s,impressedJobPostings:a};e.fireTrackingEvent("JobViewportImpressionEvent",c)}(t,i)}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._impressionTracking.handleDynamicElements(e)}}const Nl=".".concat("show-more-less","__list"),Pl=".".concat("show-more-less","__more-button"),xl=".".concat("show-more-less","__less-button"),Ml="".concat("show-more-less","__list--hide-after"),Dl="".concat("show-more-less","__button--hide");class Ul{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(D);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(Nl),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="".concat(Ml,"-").concat(this.maxNumToShow),this.showMoreButton=this.el.querySelector(Pl),this.showLessButton=this.el.querySelector(xl),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new R(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(Dl),this.showMoreButton.classList.remove(Dl)):(this.showLessButton.classList.remove(Dl),this.showMoreButton.classList.add(Dl))}}".".concat("accordion-item__trigger");const Bl=350;class Fl{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=Bl}=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(Nr()){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===ks("isClsFixActive")||document.body.classList.add("body--sticky-header"),this.stickyElement=new Ls(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("sticky-header--disabled"),document.body.classList.remove("body--sticky-header-disabled"),this.stickyElement?this.stickyElement.reactivate():this.instantiateStickyElement()):(this.stickyHeader.classList.add("sticky-header--disabled"),document.body.classList.add("body--sticky-header-disabled"),null===(t=this.stickyElement)||void 0===t||t.deactivate())}}const ql=["options","optionsV2"];function Hl(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const jl=Hl("action"),zl=Hl("openpage"),Gl=Hl("openlink"),Wl=e=>jl(e)&&"BLOCK_PROFILE"===e.action.actionType;function Kl(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]:re({},e[t]),type:n}}class Vl{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=se(t,ql);if(n&&!(this.optionStack.length>=r.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=n.find(e=>jl(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const t=[e];return this.optionStack.push(re({options:t.map(e=>Kl(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(zl(n))return re(re({},n),r);const i=re({options:n[n.type].options.map(e=>Kl(e))},r);n[n.type].heading&&(i.heading=n[n.type].heading),this.optionStack.push(i)}else n=[...n,...i],this.optionStack.push(re({options:n.map(e=>Kl(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=>jl(t)&&t[t.type].title===e);return n&&n.action}}const Yl="hidden";class Jl extends Tr{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(Yl)}showFooter(){this.footer.classList.remove(Yl)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(Yl)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(Yl)}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 Ql{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 Jl(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=r(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=r(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&&(zl(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open())}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e)}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=r(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 Vl(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;Gl(o)&&!i&&(i=!0),jl(o)&&(n||(n=!1===o[s].nonRadioOptionEnabled),s=Wl(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),jl(o)){if(Wl(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 f(e,this.semaphoreTrackingPrefix)}sendAction(e){return Q(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}makeSemaphoreRequest(e,t,n,i){let r=m("/psettings/flagging-menu","entityUrn",e);return r=m(r,"contentSource",t),n?r=m(r,"authorProfileId",n):i&&(r=m(r,"authorUrn",i)),Q(r).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class Xl{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 J(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new Ql('[data-item-type="semaphore"]',t))}}const Zl="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var $l;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}($l||($l={}));const eu=new Set(Object.values($l));class tu extends Error{constructor(e){super(e),Object.setPrototypeOf(this,tu.prototype)}}function nu(e){return 0===e.length||!e.trim()}function iu(e){if("string"!=typeof e)throw new tu("Keys must be strings. ".concat(Zl,"."));if(nu(e))throw new tu("Keys should not be blank. ".concat(Zl,"."));if(/[^a-z0-9-]/.test(e))throw new tu("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat(Zl,"."));return e}class ru{constructor(e,t,n){if(this._featureKey=iu(e),this._degradationKey=iu(t),!n)return this._untrackedResponseCodes=[],void(this._trackedResponseCodes=[]);if("object"!=typeof n)throw new tu("DegradationTrackingMetadata options should be an object. ".concat(Zl,"."));const i=n.productName;i&&(this._productName=function(e){if("string"!=typeof e)throw new tu("The product name must be a string. ".concat(Zl,"."));if(nu(e))throw new tu("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat(Zl,"."));return e}(i));const r=n.untrackedResponseCodes,o=n.trackedResponseCodes;if(r&&o)throw new tu("You may only specify one of the options: ".concat($l.UntrackedResponseCodes," or ")+"".concat($l.TrackedResponseCodes," to exclude or include response codes from counting ")+"as the degraded state. ".concat(Zl,"."));!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new tu("Please only specify positive integer response codes between 1 and 999 for the ".concat(t," option. ")+"".concat(e," was specified. ").concat(Zl,"."));var n;if(429===e||999===e)throw new tu("PEM does not consider 429 and 999 API responses indications of the real member experience because it represents LinkedIn throttling abusive requests. We drop 429s and 999s by default, so please remove them "+"from your ".concat(t," options."));if(t===$l.UntrackedResponseCodes&&(e<500||e>=600))throw new tu("For server responses that have a status code, PEM does not consider non-5xx as degradations by default "+"anymore. ".concat(e," is not considered a degradation unless you explicitly add it to the ")+"".concat($l.TrackedResponseCodes," option. Please remove ").concat(e," from the ")+"".concat($l.UntrackedResponseCodes," option. ").concat(Zl,"."))};if(void 0!==e&&!Array.isArray(e))throw new tu("Please specify an array of positive integer response codes between 1 and 999 for the response codes that "+"shouldn't be counted as degraded for the ".concat($l.UntrackedResponseCodes," option. ")+"".concat(Zl,"."));if(void 0!==t&&!Array.isArray(t))throw new tu("Please specify an array of positive integer response codes between 1 and 999 for the response codes that should only be considered as the degraded state(s) for the "+"".concat($l.TrackedResponseCodes," option. ").concat(Zl,"."));e&&e.forEach(e=>n(e,$l.UntrackedResponseCodes));t&&t.forEach(e=>n(e,$l.TrackedResponseCodes))}(r,o),this._untrackedResponseCodes=r||[],this._trackedResponseCodes=o||[],this._clientSensorGroupName=n.clientSensorGroupName,function(e){Object.keys(e).forEach(e=>{if(!eu.has(e))throw new tu("An unsupported degradation tracking option '".concat(e,"' was provided. Please fix or remove it. ")+"".concat(Zl))})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(ru.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get degradationKey(){return this._degradationKey}get productName(){return this._productName}get untrackedResponseCodes(){return this._untrackedResponseCodes}get trackedResponseCodes(){return this._trackedResponseCodes}get clientSensorGroupName(){return this._clientSensorGroupName}}var ou;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(ou||(ou={})),new Set(Object.values(ou));class su{constructor(e){let{isShown:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to WindowsAppUpsell");this.el=e,this.dismissBtn=this.el.querySelector(".windows-app-upsell .cta-modal__dismiss-btn"),this.dismissable=new da(this.el,this.dismissBtn,{isShown:t}),this.showDeeplinkToApp()}showDeeplinkToApp(){window.appDetection&&window.appDetection.then(e=>{if(e.some(e=>"windows"===(null==e?void 0:e.platform)&&"7EE7776C.LinkedInforWindows_w1wdnht996qgy!App"===(null==e?void 0:e.id))){const e=this.el.querySelector(".windows-app-upsell .windows-app-upsell__cta");e&&e.setAttribute("href","linkedin://".concat(window.location.pathname).concat(window.location.search))}})}}const au=10;class cu{constructor(e){let{minutesCoolOff:t=au,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed into to sign in modal");this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.coolOffPeriod=60*t*1e3,this.modalEl=this.el.querySelector(".".concat("modal"));const i=this.el.querySelector('[data-id="sign-in-form"]');i&&(this.signInForm=new Gc(i,{fireTrackingOnInit:!1,initFailure:this._onGoogleSignInInitFailure.bind(this)})),this.modal=new Tr(this.modalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n}),this.modalEl.addEventListener("close",()=>{this._setCoolOff()})}_onGoogleSignInInitFailure(){const e=this.el.querySelector(".google-sign-in-cta-widget");e&&e.parentNode.removeChild(e)}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem("sign-in-modal-cool-off-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("sign-in-modal-cool-off-hidden"),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem("sign-in-modal-cool-off-hidden",Date.now())}catch(e){return""}}}const lu=10;class uu{constructor(e){let{minutesCoolOff:t=lu,triggerByOutletEl:n=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to contextual sign in card");this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.coolOffPeriod=60*t*1e3,this.signInModalEl=this.el.querySelector(".".concat("sign-in-modal")),this.signInModalEl&&(this.signInModal=new cu(this.signInModalEl)),this.contextualModalEl=this.el.querySelector(".".concat("modal--contextual-sign-in")),this.contextualModalEl&&(this.contextualModal=new Tr(this.contextualModalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n})),this.googleSignInCtaEl=this.el.querySelector(".".concat("contextual-sign-in-modal__google-sign-in-cta-widget")),this.googleSignInCtaEl&&new jc(this.googleSignInCtaEl,{initFailure:this._onGoogleSignInInitFailure.bind(this)}),this.anonymousLoginToggleInput=this.contextualModalEl.querySelector(".anonymous-login-toggle input"),this.signInModal.modalEl.addEventListener("open",()=>{this._syncToggleStates(this.signInModal.signInForm.anonymousLoginToggleInput,this.anonymousLoginToggleInput),this.contextualModal.close(),localStorage.removeItem("contextual-sign-in-modal-cool-off-hidden"),this.signInModal.modal.noScroll()}),this.signInModal.modalEl.addEventListener("close",()=>{this._syncToggleStates(this.anonymousLoginToggleInput,this.signInModal.signInForm.anonymousLoginToggleInput),this._setCoolOff()}),this.contextualModalEl.addEventListener("close",()=>{this._setCoolOff()})}_syncToggleStates(e,t){e&&t&&(e.checked=t.checked)}_onGoogleSignInInitFailure(){const e=this.el.querySelector(".".concat("contextual-sign-in-modal__google-sign-in-cta-widget"));e&&e.parentNode.removeChild(e)}_shouldHideModal(){if(!this.coolOffEnabled)return!1;try{const e=localStorage.getItem("contextual-sign-in-modal-cool-off-hidden");if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem("contextual-sign-in-modal-cool-off-hidden"),!1)}}catch(e){return!1}}_setCoolOff(){if(this.coolOffEnabled&&!this._shouldHideModal())try{localStorage.setItem("contextual-sign-in-modal-cool-off-hidden",Date.now())}catch(e){return""}}}var du={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,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&&c(e,t)}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(){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 u(e,t,n){return(u=l()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&c(r,n.prototype),r}).apply(null,arguments)}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(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 u(e,arguments,a(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),c(n,e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?h(e):t}function f(e){return function(){var t,n=a(e);if(l()){var i=a(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function m(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function g(e,t){var 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){}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 v="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",y={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},E={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},w={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"}},T={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},S={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},k=y.GOOGLE_ERROR,C=y.GOOGLE_USER_FETCHED,I=y.INITIALIZED,A=b.INITIALIZATION,L=b.AUTHENTICATION,O=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.el,a=e.clientId,c=void 0===a?v: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.");m((function(){g(o,i._initializeGoogleAuth.bind(h(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(I);e.dispatchEvent(n)})).catch((function(t){var n={type:A,message:t.error},i=new CustomEvent(k,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(C,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:L,message:t.error},i=new CustomEvent(k,{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}(d(EventTarget)),R=y.GOOGLE_USER_FETCHED,N=y.PROMPT_MOMENT,P=function(e){s(r,e);var n=f(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?v:u,p=e.cancelOnTapOutside,f=void 0===p||p;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=f,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");m((function(){g(a,i._onGoogleApiLoad.bind(h(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===E.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(R,{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:w.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(N,{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(N,{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}(d(EventTarget)),x={exports:{}};function M(e){this.message=e}M.prototype=new Error,M.prototype.name="InvalidCharacterError";var D="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new M("'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},U=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(D(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 D(t)}};function B(e){this.message=e}B.prototype=new Error,B.prototype.name="InvalidTokenError",x.exports=function(e,t){if("string"!=typeof e)throw new B("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(U(e.split(".")[n]))}catch(e){throw new B("Invalid token specified: "+e.message)}},x.exports.InvalidTokenError=B;var F=x.exports,q=y.GOOGLE_USER_FETCHED,H=y.PROMPT_MOMENT,j=function(e){s(a,e);var n=f(a);function a(e){var i,r,o,s,c=e.autoSelect,l=void 0!==c&&c,u=e.buttonParentEl,d=e.cancelOnTapOutside,p=void 0===d||d,f=e.clientId,y=void 0===f?v:f,b=e.context,E=void 0===b?"signin":b,_=e.gsiButtonConfig,w=void 0===_?{}:_,T=e.libSrcPath,S=e.hasContentAbove,k=void 0!==S&&S,C=e.promptParentId,I=e.showOneTap,A=void 0===I||I;if(t(this,a),(i=n.call(this)).autoSelect=l,i.buttonParentEl=u,i.cancelOnTapOutside=p,i.clientId=y,i.context=E,i.gsiButtonConfig=w,i.isLibraryLoaded=((s=new Promise((function(e,t){r=e,o=t}))).resolve=r,s.reject=o,s),i.libSrcPath=T,i.hasContentAbove=k,i.promptParentId=C,i.showOneTap=A,window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!T)throw TypeError("GSI lib is not already loaded on the page. libSrcPath is required to load the library");m((function(){g(T,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(a,[{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:S[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.locale,r=void 0===i?"en_US":i,o=t.logo_alignment,s=void 0===o?"center":o,a=t.shape,c=void 0===a?"pill":a,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,m=void 0===f?"400px":f;return this.isLibraryLoaded.then((function(){var t=d||S[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:s,shape:c,size:u,text:t,theme:h,type:p,width:m})}))}},{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(H,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=F(t),s=function(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}({},this._getBasicProfile(i),{idToken:t,selectedBy:n});if(s){var a=new CustomEvent(q,{detail:s});this.dispatchEvent(a)}}},{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")}}}]),a}(d(EventTarget)),z=T.DISMISSED,G=T.INITIALIZED,W=T.SNAPPLE_USER_FETCHED,K=function(e){s(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,s=e.snappleCTA,a=e.clientId,c=void 0===a?"com.linkedin.LinkedIn.service":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");m((function(){g(o,i._onSnappleLibLoad.bind(h(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(G);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(W,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(z,{detail:{type:z,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),V={CLIENT_ID:v,EVENTS:y,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:b,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:E,GOT_PROMPT_MOMENT_REASONS:w,GOT_PROMPT_MOMENT_TYPES:_};e.GoogleGsi=j,e.GoogleOneTap=P,e.GoogleSignIn=O,e.GoogleSignInConstants=V,e.SnappleAuth=K,e.SnappleEvents=T,Object.defineProperty(e,"__esModule",{value:!0})})(du.exports);const{EVENTS:hu,GOT_CONTEXTS:pu,GOT_PROMPT_MOMENT_REASONS:fu,GOT_PROMPT_MOMENT_TYPES:mu}=du.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:gu,PROMPT_MOMENT:vu}=hu,{SIGN_IN:yu}=pu,bu=[fu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,fu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,fu.NOT_DISPLAYED.SUPPRESSED_BY_USER],Eu=[fu.SKIPPED.AUTO_CANCEL,fu.SKIPPED.TAP_OUTSIDE,fu.SKIPPED.USER_CANCEL],_u=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"});class wu{constructor(e){let{clientId:t,globalWindow:n=window,onNotDisplayed:i,onSkipped:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buttons=Array.from(document.querySelectorAll(".google-auth-button__placeholder")),this.clientId=t,this.isLinkedInAppWebView=!0===ks("isLinkedInAppWebView"),this.el=e,this.showOneTap=ks("google-one-tap-enabled")&&!this.isLinkedInAppWebView,(this.buttons.length||this.showOneTap&&this.el)&&(this.useAutoSelect=!0===ks("enableGoogleAutoSelect")&&this._shouldAutologin(),this.isTermsAndConditionsSkipEnabledOneTap=ks("isTermsAndConditionsSkipEnabledOneTap"),this.isTermsAndConditionsSkipEnabledAuthButton=ks("isTermsAndConditionsSkipEnabledAuthButton"),this.window=n,this.onNotDisplayed=i,this.onSkipped=r,this.loader=new js(this.el.querySelector(".loader"),this.el),this._initGoogleAuth())}_initGoogleAuth(){return this.window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-gsi-lib")).then(()=>{const e=ks("googleAuthLibraryPath");if(e)return this.googleGsiInstance=new du.exports.GoogleGsi({autoSelect:this.useAutoSelect,cancelOnTapOutside:!1,clientId:this.clientId,context:yu,hasContentAbove:this.isTermsAndConditionsSkipEnabledOneTap,libSrcPath:Es.sanitizeUrl(e),promptParentId:this.showOneTap?"google-one-tap__container":void 0,showOneTap:this.showOneTap}),this._initButtons(),this.googleGsiInstance.addEventListener(gu,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("apfc",Uc());const l=c===_u.BUTTON?"google-sign-in--account-selected":"google-one-tap--account-selected";this._fireControlInteractionEvent(l),this._conditionalIncludeTermsAndConditionsSkip(l),this.el.submit()}),this.googleGsiInstance.addEventListener(vu,e=>{let{detail:t}=e;const{reason:n,type:i}=t;let r="google-one-tap-moment--".concat(i);r=n?"".concat(r,"-").concat(n):r,this._fireControlInteractionEvent(r);const o=this.el.querySelector(".google-one-tap__module");if(n){if(this._fireCounterIngraphMetric(i,n),i===mu.SKIPPED){if(n===fu.SKIPPED.USER_CANCEL&&(null==o||o.classList.add("hidden"),this._fireControlInteractionEvent("google-one-tap--user-dismissed")),this.onSkipped)this.onSkipped(t);else if(-1===Eu.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else if(i===mu.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===bu.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else i===mu.DISPLAY&&(null==o||o.classList.remove("hidden"),this._fireViewModuleImpressionEvent("google-one-tap"))}),this.googleGsiInstance})}_fireCounterIngraphMetric(e,t){let n="";e===mu.DISPLAY&&t===fu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(Eu.indexOf(t)>=0||bu.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=>{yr(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 _u.ONE_TAP_AUTO_LOGIN;case e.indexOf("user")>-1:return _u.ONE_TAP;default:return _u.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!==v("li_g_recent_logout"))}_conditionalIncludeTermsAndConditionsSkip(e){"google-one-tap--account-selected"===e?ks("termsAndConditionsRendered")&&this._addGoogleFieldToForm("termsAndConditionsSkip",!0):"google-sign-in--account-selected"===e&&this.isTermsAndConditionsSkipEnabledAuthButton&&this._addGoogleFieldToForm("termsAndConditionsSkip",!0)}}".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");class Tu{constructor(e){var t;let{isShown:n=!1,bannerDismissedLocalStorageKey:i=""}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to the banner element");if(this.el=e,this.dismissBtnEl=this.el.querySelector(".banner__dismiss-button"),this.isBottom="true"===(null===(t=this.el.dataset)||void 0===t?void 0:t.isBottom),this.dismissBtnEl)if(i){let t;try{t=window.localStorage.getItem(i)}catch(e){t=!0}const n=!t;if(this.bannerDismissable=new da(this.el,this.dismissBtnEl,{isShown:n}),n)try{e.addEventListener("dismiss",()=>{window.localStorage.setItem(i,"true")})}catch(e){}}else this.bannerDismissable=new da(this.el,this.dismissBtnEl,{isShown:n});this.isBottom&&new Ls(this.el)}}class Su{constructor(e,t){if(!e)throw new Error("Linkster el required");this._el=e,this._trackingInstance=t,this._entityId=e.dataset.entityId,this._moduleName=e.dataset.moduleName,this._crossLinks=this._getCrossLinks(),this._crossLinks.length&&this.fireLinksterImpressionEvent(this._crossLinks)}_getCrossLinks(){return[...this._el.querySelectorAll('[data-js-module-id="link-column-link"]')].map(e=>({url:_(e.getAttribute("href"))}))}fireLinksterImpressionEvent(e){this._trackingInstance.fireLinksterImpressionEvent&&this._trackingInstance.fireLinksterImpressionEvent(this._moduleName,this._entityId,e)}}class ku{constructor(e,t){if(!e)throw new Error("ExpandableLinkster el required");this._showMoreLessEl=e.querySelector(".show-more-less"),new Ul(this._showMoreLessEl),this._linksterForTrackingEl=e.querySelector('[data-js-module-id="linkster"][data-entity-id][data-module-name]'),this._linksterForTrackingEl&&t&&new Su(this._linksterForTrackingEl,t)}}class Cu{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("modal")),this.modal=new ua(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 Iu(e){let{featureName:t,featureMappingToDegradationConfig:n,productName:i}=e;return n[t].map(e=>function(e,t,n){const{degradationKey:i,trackedResponseCodes:r,untrackedResponseCodes:o}=n,s=e;let a={productName:t};return r?a=re(re({},a),{},{trackedResponseCodes:r}):o&&(a=re(re({},a),{},{untrackedResponseCodes:o})),new ru(s,i,a)}(t,i,e))}class Au extends xs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Au.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}oe(Au,"query","20f8e9934e7df62932fd167d87c19b27");var Lu=function(){this.__data__=[],this.size=0};var Ou=function(e,t){return e===t||e!=e&&t!=t},Ru=Ou;var Nu=function(e,t){for(var n=e.length;n--;)if(Ru(e[n][0],t))return n;return-1},Pu=Nu,xu=Array.prototype.splice;var Mu=Nu;var Du=Nu;var Uu=Nu;var Bu=Lu,Fu=function(e){var t=this.__data__,n=Pu(t,e);return!(n<0)&&(n==t.length-1?t.pop():xu.call(t,n,1),--this.size,!0)},qu=function(e){var t=this.__data__,n=Mu(t,e);return n<0?void 0:t[n][1]},Hu=function(e){return Du(this.__data__,e)>-1},ju=function(e,t){var n=this.__data__,i=Uu(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function zu(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])}}zu.prototype.clear=Bu,zu.prototype.delete=Fu,zu.prototype.get=qu,zu.prototype.has=Hu,zu.prototype.set=ju;var Gu=zu,Wu=Gu;var Ku=function(){this.__data__=new Wu,this.size=0};var Vu=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Yu=function(e){return this.__data__.get(e)};var Ju=function(e){return this.__data__.has(e)},Qu="object"==typeof ee&&ee&&ee.Object===Object&&ee,Xu=Qu,Zu="object"==typeof self&&self&&self.Object===Object&&self,$u=Xu||Zu||Function("return this")(),ed=$u.Symbol,td=ed,nd=Object.prototype,id=nd.hasOwnProperty,rd=nd.toString,od=td?td.toStringTag:void 0;var sd=function(e){var t=id.call(e,od),n=e[od];try{e[od]=void 0;var i=!0}catch(e){}var r=rd.call(e);return i&&(t?e[od]=n:delete e[od]),r},ad=Object.prototype.toString;var cd=sd,ld=function(e){return ad.call(e)},ud=ed?ed.toStringTag:void 0;var dd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ud&&ud in Object(e)?cd(e):ld(e)};var hd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},pd=dd,fd=hd;var md,gd=function(e){if(!fd(e))return!1;var t=pd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},vd=$u["__core-js_shared__"],yd=(md=/[^.]+$/.exec(vd&&vd.keys&&vd.keys.IE_PROTO||""))?"Symbol(src)_1."+md:"";var bd=function(e){return!!yd&&yd in e},Ed=Function.prototype.toString;var _d=gd,wd=bd,Td=hd,Sd=function(e){if(null!=e){try{return Ed.call(e)}catch(e){}try{return e+""}catch(e){}}return""},kd=/^\[object .+?Constructor\]$/,Cd=Function.prototype,Id=Object.prototype,Ad=Cd.toString,Ld=Id.hasOwnProperty,Od=RegExp("^"+Ad.call(Ld).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Rd=function(e){return!(!Td(e)||wd(e))&&(_d(e)?Od:kd).test(Sd(e))},Nd=function(e,t){return null==e?void 0:e[t]};var Pd=function(e,t){var n=Nd(e,t);return Rd(n)?n:void 0},xd=Pd($u,"Map"),Md=Pd(Object,"create"),Dd=Md;var Ud=function(){this.__data__=Dd?Dd(null):{},this.size=0};var Bd=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Fd=Md,qd=Object.prototype.hasOwnProperty;var Hd=function(e){var t=this.__data__;if(Fd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return qd.call(t,e)?t[e]:void 0},jd=Md,zd=Object.prototype.hasOwnProperty;var Gd=Md;var Wd=Ud,Kd=Bd,Vd=Hd,Yd=function(e){var t=this.__data__;return jd?void 0!==t[e]:zd.call(t,e)},Jd=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Gd&&void 0===t?"__lodash_hash_undefined__":t,this};function Qd(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])}}Qd.prototype.clear=Wd,Qd.prototype.delete=Kd,Qd.prototype.get=Vd,Qd.prototype.has=Yd,Qd.prototype.set=Jd;var Xd=Qd,Zd=Gu,$d=xd;var eh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var th=function(e,t){var n=e.__data__;return eh(t)?n["string"==typeof t?"string":"hash"]:n.map},nh=th;var ih=th;var rh=th;var oh=th;var sh=function(){this.size=0,this.__data__={hash:new Xd,map:new($d||Zd),string:new Xd}},ah=function(e){var t=nh(this,e).delete(e);return this.size-=t?1:0,t},ch=function(e){return ih(this,e).get(e)},lh=function(e){return rh(this,e).has(e)},uh=function(e,t){var n=oh(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function dh(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])}}dh.prototype.clear=sh,dh.prototype.delete=ah,dh.prototype.get=ch,dh.prototype.has=lh,dh.prototype.set=uh;var hh=Gu,ph=xd,fh=dh;var mh=Gu,gh=Ku,vh=Vu,yh=Yu,bh=Ju,Eh=function(e,t){var n=this.__data__;if(n instanceof hh){var i=n.__data__;if(!ph||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new fh(i)}return n.set(e,t),this.size=n.size,this};function _h(e){var t=this.__data__=new mh(e);this.size=t.size}_h.prototype.clear=gh,_h.prototype.delete=vh,_h.prototype.get=yh,_h.prototype.has=bh,_h.prototype.set=Eh;var wh=_h,Th=Pd,Sh=function(){try{var e=Th(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),kh=Sh;var Ch=function(e,t,n){"__proto__"==t&&kh?kh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ih=Ch,Ah=Ou;var Lh=function(e,t,n){(void 0!==n&&!Ah(e[t],n)||void 0===n&&!(t in e))&&Ih(e,t,n)};var Oh=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}}(),Rh={exports:{}};!function(e,t){var n=$u,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}}(Rh,Rh.exports);var Nh=$u.Uint8Array;var Ph=function(e){var t=new e.constructor(e.byteLength);return new Nh(t).set(new Nh(e)),t};var xh=function(e,t){var n=t?Ph(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Mh=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Dh=hd,Uh=Object.create,Bh=function(){function e(){}return function(t){if(!Dh(t))return{};if(Uh)return Uh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Fh=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),qh=Object.prototype;var Hh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||qh)},jh=Bh,zh=Fh,Gh=Hh;var Wh=function(e){return"function"!=typeof e.constructor||Gh(e)?{}:jh(zh(e))};var Kh=function(e){return null!=e&&"object"==typeof e},Vh=dd,Yh=Kh;var Jh=function(e){return Yh(e)&&"[object Arguments]"==Vh(e)},Qh=Kh,Xh=Object.prototype,Zh=Xh.hasOwnProperty,$h=Xh.propertyIsEnumerable,ep=Jh(function(){return arguments}())?Jh:function(e){return Qh(e)&&Zh.call(e,"callee")&&!$h.call(e,"callee")},tp=Array.isArray;var np=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ip=gd,rp=np;var op=function(e){return null!=e&&rp(e.length)&&!ip(e)},sp=op,ap=Kh;var cp=function(e){return ap(e)&&sp(e)},lp={exports:{}};var up=function(){return!1};!function(e,t){var n=$u,i=up,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}(lp,lp.exports);var dp=dd,hp=Fh,pp=Kh,fp=Function.prototype,mp=Object.prototype,gp=fp.toString,vp=mp.hasOwnProperty,yp=gp.call(Object);var bp=function(e){if(!pp(e)||"[object Object]"!=dp(e))return!1;var t=hp(e);if(null===t)return!0;var n=vp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&gp.call(n)==yp},Ep=dd,_p=np,wp=Kh,Tp={};Tp["[object Float32Array]"]=Tp["[object Float64Array]"]=Tp["[object Int8Array]"]=Tp["[object Int16Array]"]=Tp["[object Int32Array]"]=Tp["[object Uint8Array]"]=Tp["[object Uint8ClampedArray]"]=Tp["[object Uint16Array]"]=Tp["[object Uint32Array]"]=!0,Tp["[object Arguments]"]=Tp["[object Array]"]=Tp["[object ArrayBuffer]"]=Tp["[object Boolean]"]=Tp["[object DataView]"]=Tp["[object Date]"]=Tp["[object Error]"]=Tp["[object Function]"]=Tp["[object Map]"]=Tp["[object Number]"]=Tp["[object Object]"]=Tp["[object RegExp]"]=Tp["[object Set]"]=Tp["[object String]"]=Tp["[object WeakMap]"]=!1;var Sp=function(e){return wp(e)&&_p(e.length)&&!!Tp[Ep(e)]};var kp=function(e){return function(t){return e(t)}},Cp={exports:{}};!function(e,t){var n=Qu,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}(Cp,Cp.exports);var Ip=Sp,Ap=kp,Lp=Cp.exports,Op=Lp&&Lp.isTypedArray,Rp=Op?Ap(Op):Ip;var Np=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Pp=Ch,xp=Ou,Mp=Object.prototype.hasOwnProperty;var Dp=function(e,t,n){var i=e[t];Mp.call(e,t)&&xp(i,n)&&(void 0!==n||t in e)||Pp(e,t,n)},Up=Ch;var Bp=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?Up(n,a,c):Dp(n,a,c)}return n};var Fp=/^(?:0|[1-9]\d*)$/;var qp=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Fp.test(e))&&e>-1&&e%1==0&&e<t},Hp=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},jp=ep,zp=tp,Gp=lp.exports,Wp=qp,Kp=Rp,Vp=Object.prototype.hasOwnProperty;var Yp=function(e,t){var n=zp(e),i=!n&&jp(e),r=!n&&!i&&Gp(e),o=!n&&!i&&!r&&Kp(e),s=n||i||r||o,a=s?Hp(e.length,String):[],c=a.length;for(var l in e)!t&&!Vp.call(e,l)||s&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Wp(l,c))||a.push(l);return a};var Jp=hd,Qp=Hh,Xp=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Zp=Object.prototype.hasOwnProperty;var $p=Yp,ef=function(e){if(!Jp(e))return Xp(e);var t=Qp(e),n=[];for(var i in e)("constructor"!=i||!t&&Zp.call(e,i))&&n.push(i);return n},tf=op;var nf=function(e){return tf(e)?$p(e,!0):ef(e)},rf=Bp,of=nf;var sf=Lh,af=Rh.exports,cf=xh,lf=Mh,uf=Wh,df=ep,hf=tp,pf=cp,ff=lp.exports,mf=gd,gf=hd,vf=bp,yf=Rp,bf=Np,Ef=function(e){return rf(e,of(e))};var _f=wh,wf=Lh,Tf=Oh,Sf=function(e,t,n,i,r,o,s){var a=bf(e,n),c=bf(t,n),l=s.get(c);if(l)sf(e,n,l);else{var u=o?o(a,c,n+"",e,t,s):void 0,d=void 0===u;if(d){var h=hf(c),p=!h&&ff(c),f=!h&&!p&&yf(c);u=c,h||p||f?hf(a)?u=a:pf(a)?u=lf(a):p?(d=!1,u=af(c,!0)):f?(d=!1,u=cf(c,!0)):u=[]:vf(c)||df(c)?(u=a,df(a)?u=Ef(a):gf(a)&&!mf(a)||(u=uf(c))):d=!1}d&&(s.set(c,u),r(u,c,i,o,s),s.delete(c)),sf(e,n,u)}},kf=hd,Cf=nf,If=Np;var Af=function e(t,n,i,r,o){t!==n&&Tf(n,(function(s,a){if(o||(o=new _f),kf(s))Sf(t,n,a,i,e,r,o);else{var c=r?r(If(t,a),s,a+"",t,n,o):void 0;void 0===c&&(c=s),wf(t,a,c)}}),Cf)};var Lf=function(e){return e};var Of=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)},Rf=Math.max;var Nf=function(e,t,n){return t=Rf(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Rf(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),Of(e,this,a)}};var Pf=function(e){return function(){return e}},xf=Sh,Mf=xf?function(e,t){return xf(e,"toString",{configurable:!0,enumerable:!1,value:Pf(t),writable:!0})}:Lf,Df=Date.now;var Uf=function(e){var t=0,n=0;return function(){var i=Df(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Mf),Bf=Lf,Ff=Nf,qf=Uf;var Hf=Ou,jf=op,zf=qp,Gf=hd;var Wf=function(e,t){return qf(Ff(e,t,Bf),e+"")},Kf=function(e,t,n){if(!Gf(n))return!1;var i=typeof t;return!!("number"==i?jf(n)&&zf(t,n.length):"string"==i&&t in n)&&Hf(n[t],e)};var Vf=Af;Yf=function(e,t,n){Vf(e,t,n)},Wf((function(e,t){var n=-1,i=t.length,r=i>1?t[i-1]:void 0,o=i>2?t[2]:void 0;for(r=Yf.length>3&&"function"==typeof r?(i--,r):void 0,o&&Kf(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var s=t[n];s&&Yf(e,s,n,r)}return e}));var Yf;function Jf(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 Qf(e,t,n){const i=Jf(e),r=Jf(t),o=Jf(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}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const Xf="data-draggable-initialized",Zf="touchstart",$f="touchmove",em="touchend";class tm{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;tm.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(Zf,t),this.draggableElementEl.setAttribute(Xf,!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=Qf(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($f,t),document.addEventListener(em,(function e(){document.removeEventListener($f,t),document.removeEventListener(em,e)}))}moveTo(e,t){const n=Qf(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)}}tm.isDraggable=function(e){return!!e.getAttribute(Xf)};const nm="data-zoomable-initialized",im="touchstart",rm="touchmove",om="touchend";class sm{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;sm.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(im,t),this.zoomableElement.setAttribute(nm,!0))}scaleElement(e,t){if(1===e)return;this.limits=Qf(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(rm,t),document.addEventListener(om,(function e(){document.removeEventListener(rm,t),document.removeEventListener(om,e)}))}}let am;sm.isZoomable=function(e){return!!e.getAttribute(nm)};a.getInstance().addUnloadCallback(()=>{am&&am.close(),Mr(document.querySelector("#discard-post-modal")),Mr(document.querySelector("#visibility-settings-modal")),Mr(document.querySelector("#max-images-prompt-modal")),Mr(document.querySelector("#retry-upload-modal"))});class cm{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=ks("feedLastUpdatedTime")}resetBadges(){Ur(this.badgeCountEls),Ur(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return Q(e?m("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);y(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const i=zr();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(()=>{y(window,"badgesreceived",{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,Dr(e)):t!==n&&(t>0?(e.textContent=t,Dr(e),e.classList.toggle("singular",t<=1)):Mr(e))}_setBadge(e,t){e&&(t>0?(Dr(e),e.classList.add("badge-with-no-count")):Mr(e))}_updateCacheBustUrl(e){ks("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Wo(e?m(t.href,"pwa","noCache"):_(t.href))})}}!function(){let e}();class lm{constructor(e){this.storage=void 0===e?localStorage:e}read(e){try{const t=this.storage.getItem(e);if(t)return JSON.parse(t)}catch(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+"_lastUpdatedAt");return n&&(new Date).getTime()-n<t?this.read(e):(this.removeWithExpiry(e),null)}writeWithExpiry(e,t){this.write(e,t),this.write(e+"_lastUpdatedAt",(new Date).getTime())}removeWithExpiry(e){this.remove(e),this.remove(e+"_lastUpdatedAt")}}(function(){try{lm.instance||(lm.instance=new lm(localStorage)),lm.instance}catch(e){}})(),function(){try{lm.sessionInstance||(lm.sessionInstance=new lm(sessionStorage)),lm.sessionInstance}catch(e){}}();let um;function dm(){return um||(um=new Ts),um}function hm(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function pm(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",hm),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(pm)}}function fm(e){const t=e.currentTarget.parentElement.querySelector("input");t.value="",t.classList.remove("selected"),t.focus(),y(t,"input:cleared"),y(t,"change")}function mm(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",mm)}function gm(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function vm(e){if(e){const{id:t,labelText:n}=e.dataset;if(!t||!n)throw new Error("mandatory fields missing.");const i=e.querySelector("input"),r=e.querySelector(".right");i.addEventListener("change",gm),i.addEventListener("focus",mm),r&&r.addEventListener("click",fm)}else{document.querySelectorAll(".input-container").forEach(vm)}}const ym="MinLength",bm="MaxLength",Em="Regex",_m="Required",wm="RegexAllow",Tm={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"}},Sm="EMAIL_ADDRESS",km="PHONE_NUMBER",Cm="OTHER",Im="consentUnchecked",Am={INPUT:"INPUT",SELECT:"SELECT"},Lm="text",Om="checkbox";function Rm(e){return Object.keys(Am).includes(e.tagName)}function Nm(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Cm:n&&t.push({type:ym,MinLength:n}),i&&t.push({type:bm,MaxLength:i});break;case Sm:t.push({type:wm,RegexAllow:[Tm.EMAIL]});break;case km:o=e.value.replace(/ /g,""),t.push({type:wm,RegexAllow:[Tm.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 _m:if(0===n.length)return _m;break;case ym:if(n.length<e[ym])return ym;break;case bm:if(n.length>e[bm])return bm;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 wm:for(let t=0;t<e[wm].length;t++)if(!e[wm][t].pattern.test(n))return wm+e[wm][t].errorCode}})(e,n)).filter(e=>!!e)}function Pm(e,t){return t&&!e?Im:null}const xm=(e,t)=>parseInt(t.split(e)[1]),Mm=(e,t)=>t.split(e)[1];function Dm(e,t){return document.querySelector("#".concat(e.id,"-strings")).dataset["str".concat(t)]}const Um=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Bm=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),Fm=(e,t)=>({question:e,answerDetails:{options:[t]}});function qm(e){const t=e.id+"_",n=t+"q",i=t+"c",r=ks("hasDecoratedLeadGenFormData");return new Promise((t,o)=>{const s=[];let a,c;const{urn:l,creativeUrn:u,legalInfoUrn:d}=e.dataset;c=e.dataset.leadTrackingParams,c||(a=e.closest("[data-lead-tracking-params]"),c=a.dataset.leadTrackingParams);const h={formResponse:{adFormUrn:l,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:c,trackingAction:"LEAD_FORM_CLICK"},p={associatedEntity:u,form:l,legalInfoUrn:d,leadType:"SPONSORED",formResponse:{answers:[],consentResponses:[]},leadTrackingParams:c,submittedAt:Date.now(),submitter:ks("memberUrn")};return Array.from(e).filter(Rm).forEach(e=>{let t;if(e.tagName===Am.SELECT)t=((e,t,n)=>{const i=n?Mm(e,t.id):xm(e,t.id),r=t.selectedIndex;return{response:n?Fm(i,r):Bm(i,r)}})(n,e,r),r?p.formResponse.answers.push(t.response):h.formResponse.answers.push(t.response);else if(e.type===Lm)if(t=((e,t,n)=>{const i=n?Mm(e,t.id):xm(e,t.id),r=Nm(t);return 0!==r.length?{errors:r}:{response:n?(o=i,s=t.value,{question:o,answerDetails:{answer:s}}):Um(i,t.value)};var o,s})(n,e,r),t.response)r?p.formResponse.answers.push(t.response):h.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===Om&&(t=((e,t,n,i,r)=>{const o=xm(e,t),s=Pm(n,i);return s?{errors:s}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(i,e.id,e.checked,e.required,r),t.response?r?p.formResponse.consentResponses.push(t.response):h.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?t(r?p:h):o(s)})}class Hm{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");vm(),pm(),Gr("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 ua(i,{triggerByOutletEl:n,shouldMoveToTopContainer:!1}),t?this.showForm():this._bindEvents()}showForm(){this.modal.open()}hideForm(){this.modal.close()}_clearFormErrors(){Array.from(this.formEl).filter(Rm).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),qm(this.formEl).then(e=>{y(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();q(Dm(t.element,t.errorType),F.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(".lead-gen-input-container"),n=t.querySelector(".error-text");Mr(n),t.classList.remove("input-error"),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_setAndShowError(e,t){if(e){const n=Dm(e,t),i=e.closest(".lead-gen-input-container"),r=i.querySelector(".error-text");r.innerText=n,Dr(r),i.classList.add("input-error"),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Om)t=Pm(e.checked,e.required);else if(e.type===Lm){const n=Nm(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindEvents(){this.formEl.addEventListener("click",e=>{e.target.classList.contains("checkbox-input")&&this._handleInputError(e.target)}),this.formEl.addEventListener("input:cleared",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("click",e=>{e.preventDefault(),e.stopPropagation(),this._submitForm()})}}oe(Hm,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class jm{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 jm}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 zm="#push-notification-prompt";document.querySelector(zm);class Gm{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 Ps({endpoint:this.endpoint,queryId:Gm.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)}}oe(Gm,"query","cbed571fffd8cea15209aed8d44e6759");const Wm=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.freeze(Object.values(Wm));const Km="CREATE",Vm="UPDATE";class Ym{constructor(e,t){if(!e)throw Error("Missing ReactionMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),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:Ym.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Km&&n!==Vm||(o.variables.reactionType=e),Ps(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}oe(Ym,"query","070ee23fd6fb77f92ac08f964ae1df29");Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});HTMLElement;"light".toUpperCase();class Jm extends xs{constructor(){super(...arguments)}execute(e){let{eventType:t,trackingToken:n,widgetActionCategory:i}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Jm.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}oe(Jm,"query","48f4c814e38d5689b7c83a29c9676972");Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const Qm=document.querySelector("#share-modal .textarea"),Xm=document.querySelector(".image-preview-wrapper"),Zm=document.querySelector("#share-modal .modal-content .reshare-section"),$m=document.querySelector(".post-button"),eg=document.querySelector("#comments-enabled"),tg=document.querySelector("#share-with-public"),ng=document.querySelector(".post-settings-wrapper"),ig=document.querySelector('input[name="share-with"]:checked'),rg=document.querySelector("#share-modal .close-button"),og=document.querySelector("#visibility-settings-modal"),sg=document.querySelector("#visibility-header-back .close-button"),ag=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),cg=document.querySelector("#discard-post-modal-wrapper"),lg=document.querySelector("#share-modal"),ug=document.querySelector(".modal-spinner"),dg=document.querySelector("#share-modal .textarea"),hg=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const pg=document.querySelector("#share-with-network");class fg extends ua{updatePostButtonStatus(){var e;const t=null===(e=Qm.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===Xm.getAttribute("data-image-load-state"),i=Zm.children.length;t||n||i?qr($m):Fr($m)}clearModalContentBase(){Zm&&(Zm.textContent=""),Qm&&(Qm.textContent=""),eg&&(eg.checked=!0),tg&&(tg.checked=!0,ng.setAttribute("data-post-visibility",ig.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),rg.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[".concat("data-control-action","]"))||t.querySelector("[".concat("data-control-action","]"));n&&window.tracking.then(e=>{e.fireControlInteractionEvent(n.getAttribute("data-control-action"))})}og.addEventListener("close",()=>{ng.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),sg.addEventListener("click",()=>window.history.back()),ag.addEventListener("click",t=>e(t)),ag.addEventListener("keydown",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}),Hr()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class mg extends fg{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=ks("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new ua(og,{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=g(this.updatePostButtonStatus,300);dg.addEventListener("input",e)}bindShareModalEvents(){const e=new Cu(cg,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});lg.addEventListener("open",()=>{Qm.focus()}),lg.addEventListener("close",()=>{this.clearModalContentBase(),Mr(ug)}),$m.addEventListener("click",()=>{this.processPostData()}),rg.addEventListener("click",()=>{$m.disabled?this.close():e.modal.open()}),ng.addEventListener("click",this.postSettingsClickHandler.bind(this)),ng.addEventListener("keydown",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(),jr()&&window.scrollTo(0,0),n&&(dg.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("#share-modal .modal-content .reshare-section");e.children.length?this.shareArticleNodeChild=e.children[0].cloneNode(!0):e.appendChild(this.shareArticleNodeChild)}composePostData(){this.shareData.text=dg.textContent,this.shareData.visibility="PUBLIC",hg&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=hg.value),pg.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Dr(ug),this.composePostData(),Ps({endpoint:this.endpoint,queryId:mg.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=>{gr(e,"ajax","post_success_page_key")}),dm().trigger("success",ks("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:ks("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{gr(e,"ajax","post_failure_page_key")}),dm().trigger("error",ks("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())}}oe(mg,"query","971e319c05beaf333e94125db8c4f942");const gg={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};Iu({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:gg}),Iu({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:gg}),Iu({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:gg});class vg extends xs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:vg.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}oe(vg,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class yg extends xs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:yg.query,variables:{skills:e},successCallback:t,failureCallback:n})}}oe(yg,"query","a628cd3be2c138c07fc69c2413b23fb6");class bg extends xs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:bg.query,variables:{skills:e},successCallback:t,failureCallback:n})}}oe(bg,"query","a0ff03a6b1cbe44862cb2054f0612078");class Eg extends xs{constructor(){super(...arguments)}execute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Eg.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}oe(Eg,"query","ad184ece0303620a9753eca249efd99f");class _g extends xs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:_g.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}oe(_g,"query","7edd5b8a4513caf8180a64ecde871630");class wg extends xs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:wg.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}oe(wg,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Tg extends xs{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Tg.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}oe(Tg,"query","85c85c121bf7eaabd2388b9143f94546")}).call(this,n(2),n(3).Buffer)},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";(function(e){var i=n(6),r=n(7),o=n(8);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|f(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|p(t.length);return 0===(e=a(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=a(e,t<0?0:0|p(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function f(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return q(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return L(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return I(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var o,s=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var d=!0,h=0;h<c;h++)if(l(e,o+h)!==l(t,h)){d=!1;break}if(d)return o}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");i>o/2&&(i=o/2);for(var s=0;s<i;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[n+s]=a}return s}function E(e,t,n,i){return j(q(t,e.length-n),e,n,i)}function _(e,t,n,i){return j(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function w(e,t,n,i){return _(e,t,n,i)}function T(e,t,n,i){return j(H(t),e,n,i)}function S(e,t,n,i){return j(function(e,t){for(var n,i,r,o=[],s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function k(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,s,a,c,l=e[r],u=null,d=l>239?4:l>223?3:l>191?2:1;if(r+d<=n)switch(d){case 1:l<128&&(u=l);break;case 2:128==(192&(o=e[r+1]))&&(c=(31&l)<<6|63&o)>127&&(u=c);break;case 3:o=e[r+1],s=e[r+2],128==(192&o)&&128==(192&s)&&(c=(15&l)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[r+1],s=e[r+2],a=e[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?a(e,t):void 0!==n?"string"==typeof i?a(e,t).fill(n,i):a(e,t).fill(n):a(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,o=Math.min(n,i);r<o;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=c.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!c.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},c.byteLength=f,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,i,r){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),l=this.slice(i,r),u=e.slice(t,n),d=0;d<a;++d)if(l[d]!==u[d]){o=l[d],s=u[d];break}return o<s?-1:s<o?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var o=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return w(this,e,t,n);case"base64":return T(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function L(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",o=t;o<n;++o)r+=F(e[o]);return r}function O(e,t,n){for(var i=e.slice(t,n),r="",o=0;o<i.length;o+=2)r+=String.fromCharCode(i[o]+256*i[o+1]);return r}function R(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,i,r,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<o)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function P(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,o=Math.min(e.length-n,2);r<o;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function x(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,o=Math.min(e.length-n,4);r<o;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function M(e,t,n,i,r,o){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,i,o){return o||M(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,o){return o||M(e,0,n,8),r.write(e,t,n,i,52,8),n+8}c.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var r=t-e;n=new c(r,void 0);for(var o=0;o<r;++o)n[o]=this[o+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},c.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=this[e],r=1,o=0;++o<t&&(r*=256);)i+=this[e+o]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var i=t,r=1,o=this[e+--i];i>0&&(r*=256);)o+=this[e+--i]*r;return o>=(r*=128)&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),r.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,o=0;for(this[t]=255&e;++o<n&&(r*=256);)this[t+o]=e/r&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,o=1;for(this[t+r]=255&e;--r>=0&&(o*=256);)this[t+r]=e/o&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):x(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):P(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):P(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):x(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):x(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,o=i-n;if(this===e&&n<t&&t<i)for(r=o-1;r>=0;--r)e[r+t]=this[r+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(r=0;r<o;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+o),t);return o},c.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var s=c.isBuffer(e)?e:q(new c(e,i).toString()),a=s.length;for(o=0;o<n-t;++o)this[o+t]=s[o%a]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var i=e.length,r=null,o=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&o.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&o.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(B,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i={AJAX:"ajax",HALF:"half",FULL:"full"},r={SEARCH:"p_mwlite_blended_search_typeahead",PEOPLE_SEARCH:"p_mwlite_typeahead_people",RECENT_PEOPLE_SEARCHES:"p_mwlite_search_history",RECENT_JOBS_SEARCHES:"p_mwlite_jobs_search_history"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var i=n(0),r="/organization-guest/api/runQuery";function o(e){var t=e?{endpoint:r}:{},n=e?{deleteEntity:null,disableComment:null,enableComment:null,followConfig:{endpoint:r}}:{},o=e?{endpoint:r}:{};Array.from(document.querySelectorAll('[data-id="main-feed-card"]')).forEach((r,s)=>{r.getAttribute("data-is-initialized-feed-item")||(new i.h(r,{isLoggedIn:e,reactionsMenuConfig:t,controlMenuConfig:n,followButtonConfig:o}),r.setAttribute("data-is-initialized-feed-item","true")),r.dataset.feedItemListPosition=s+1})}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,i=l(e),s=i[0],a=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),u=0,d=a>0?s-4:s;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,r=n%3,o=[],s=0,a=n-r;s<a;s+=16383)o.push(u(e,s,s+16383>a?a:s+16383));1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"="));return o.join("")};for(var i=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a<c;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var r,o,s=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,s,a=8*r-i-1,c=(1<<a)-1,l=c>>1,u=-7,d=n?r-1:0,h=n?-1:1,p=e[t+d];for(d+=h,o=p&(1<<-u)-1,p>>=-u,u+=a;u>0;o=256*o+e[t+d],d+=h,u-=8);for(s=o&(1<<-u)-1,o>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),o-=l}return(p?-1:1)*s*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var s,a,c,l=8*o-r-1,u=(1<<l)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:o-1,f=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(s++,c/=2),s+d>=u?(a=0,s=u):s+d>=1?(a=(t*c-1)*Math.pow(2,r),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+p]=255&a,p+=f,a/=256,r-=8);for(s=s<<r|a,l+=r;l>0;e[n+p]=255&s,p+=f,s/=256,l-=8);e[n+p-f]|=128*m}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){e.exports=function(){"use strict";function e(t){return(e="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})(t)}function t(e,n){return(t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,n)}function n(){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}}function i(e,r,o){return(i=n()?Reflect.construct:function(e,n,i){var r=[null];r.push.apply(r,n);var o=new(Function.bind.apply(e,r));return i&&t(o,i.prototype),o}).apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(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)?o(e,t):void 0}}(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 o(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}var s=Object.hasOwnProperty,a=Object.setPrototypeOf,c=Object.isFrozen,l=Object.getPrototypeOf,u=Object.getOwnPropertyDescriptor,d=Object.freeze,h=Object.seal,p=Object.create,f="undefined"!=typeof Reflect&&Reflect,m=f.apply,g=f.construct;m||(m=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),h||(h=function(e){return e}),g||(g=function(e,t){return i(e,r(t))});var v,y=A(Array.prototype.forEach),b=A(Array.prototype.pop),E=A(Array.prototype.push),_=A(String.prototype.toLowerCase),w=A(String.prototype.match),T=A(String.prototype.replace),S=A(String.prototype.indexOf),k=A(String.prototype.trim),C=A(RegExp.prototype.test),I=(v=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(v,t)});function A(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return m(e,t,i)}}function L(e,t,n){n=n||_,a&&a(e,null);for(var i=t.length;i--;){var r=t[i];if("string"==typeof r){var o=n(r);o!==r&&(c(t)||(t[i]=o),r=o)}e[r]=!0}return e}function O(e){var t,n=p(null);for(t in e)m(s,e,[t])&&(n[t]=e[t]);return n}function R(e,t){for(;null!==e;){var n=u(e,t);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}e=l(e)}return function(e){return console.warn("fallback value for",e),null}}var N=d(["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"]),P=d(["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"]),x=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=d(["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"]),D=d(["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"]),U=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),B=d(["#text"]),F=d(["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"]),q=d(["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"]),H=d(["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"]),j=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=h(/\{\{[\w\W]*|[\w\W]*\}\}/gm),G=h(/<%[\w\W]*|[\w\W]*%>/gm),W=h(/^data-[\-\w.\u00B7-\uFFFF]/),K=h(/^aria-[\-\w]+$/),V=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=h(/^(?:\w+script|data):/i),J=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=h(/^html$/i),X=function(){return"undefined"==typeof window?null:window},Z=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var i=null;n.currentScript&&n.currentScript.hasAttribute("data-tt-policy-suffix")&&(i=n.currentScript.getAttribute("data-tt-policy-suffix"));var r="dompurify"+(i?"#"+i:"");try{return t.createPolicy(r,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X(),i=function(e){return t(e)};if(i.version="2.4.0",i.removed=[],!n||!n.document||9!==n.document.nodeType)return i.isSupported=!1,i;var o=n.document,s=n.document,a=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,u=n.Element,h=n.NodeFilter,p=n.NamedNodeMap,f=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,g=n.DOMParser,v=n.trustedTypes,A=u.prototype,$=R(A,"cloneNode"),ee=R(A,"nextSibling"),te=R(A,"childNodes"),ne=R(A,"parentNode");if("function"==typeof c){var ie=s.createElement("template");ie.content&&ie.content.ownerDocument&&(s=ie.content.ownerDocument)}var re=Z(v,o),oe=re?re.createHTML(""):"",se=s,ae=se.implementation,ce=se.createNodeIterator,le=se.createDocumentFragment,ue=se.getElementsByTagName,de=o.importNode,he={};try{he=O(s).documentMode?s.documentMode:{}}catch(e){}var pe={};i.isSupported="function"==typeof ne&&ae&&void 0!==ae.createHTMLDocument&&9!==he;var fe,me,ge=z,ve=G,ye=W,be=K,Ee=Y,_e=J,we=V,Te=null,Se=L({},[].concat(r(N),r(P),r(x),r(D),r(B))),ke=null,Ce=L({},[].concat(r(F),r(q),r(H),r(j))),Ie=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}})),Ae=null,Le=null,Oe=!0,Re=!0,Ne=!1,Pe=!1,xe=!1,Me=!1,De=!1,Ue=!1,Be=!1,Fe=!1,qe=!0,He=!1,je="user-content-",ze=!0,Ge=!1,We={},Ke=null,Ve=L({},["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"]),Ye=null,Je=L({},["audio","video","img","source","image","track"]),Qe=null,Xe=L({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ze="http://www.w3.org/1998/Math/MathML",$e="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml",tt=et,nt=!1,it=["application/xhtml+xml","text/html"],rt="text/html",ot=null,st=s.createElement("form"),at=function(e){return e instanceof RegExp||e instanceof Function},ct=function(t){ot&&ot===t||(t&&"object"===e(t)||(t={}),t=O(t),fe=fe=-1===it.indexOf(t.PARSER_MEDIA_TYPE)?rt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===fe?function(e){return e}:_,Te="ALLOWED_TAGS"in t?L({},t.ALLOWED_TAGS,me):Se,ke="ALLOWED_ATTR"in t?L({},t.ALLOWED_ATTR,me):Ce,Qe="ADD_URI_SAFE_ATTR"in t?L(O(Xe),t.ADD_URI_SAFE_ATTR,me):Xe,Ye="ADD_DATA_URI_TAGS"in t?L(O(Je),t.ADD_DATA_URI_TAGS,me):Je,Ke="FORBID_CONTENTS"in t?L({},t.FORBID_CONTENTS,me):Ve,Ae="FORBID_TAGS"in t?L({},t.FORBID_TAGS,me):{},Le="FORBID_ATTR"in t?L({},t.FORBID_ATTR,me):{},We="USE_PROFILES"in t&&t.USE_PROFILES,Oe=!1!==t.ALLOW_ARIA_ATTR,Re=!1!==t.ALLOW_DATA_ATTR,Ne=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Pe=t.SAFE_FOR_TEMPLATES||!1,xe=t.WHOLE_DOCUMENT||!1,Ue=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Fe=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,qe=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,ze=!1!==t.KEEP_CONTENT,Ge=t.IN_PLACE||!1,we=t.ALLOWED_URI_REGEXP||we,tt=t.NAMESPACE||et,t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Ie.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&at(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Ie.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Ie.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pe&&(Re=!1),Be&&(Ue=!0),We&&(Te=L({},r(B)),ke=[],!0===We.html&&(L(Te,N),L(ke,F)),!0===We.svg&&(L(Te,P),L(ke,q),L(ke,j)),!0===We.svgFilters&&(L(Te,x),L(ke,q),L(ke,j)),!0===We.mathMl&&(L(Te,D),L(ke,H),L(ke,j))),t.ADD_TAGS&&(Te===Se&&(Te=O(Te)),L(Te,t.ADD_TAGS,me)),t.ADD_ATTR&&(ke===Ce&&(ke=O(ke)),L(ke,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&L(Qe,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(Ke===Ve&&(Ke=O(Ke)),L(Ke,t.FORBID_CONTENTS,me)),ze&&(Te["#text"]=!0),xe&&L(Te,["html","head","body"]),Te.table&&(L(Te,["tbody"]),delete Ae.tbody),d&&d(t),ot=t)},lt=L({},["mi","mo","mn","ms","mtext"]),ut=L({},["foreignobject","desc","title","annotation-xml"]),dt=L({},["title","style","font","a","script"]),ht=L({},P);L(ht,x),L(ht,M);var pt=L({},D);L(pt,U);var ft=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:et,tagName:"template"});var n=_(e.tagName),i=_(t.tagName);return e.namespaceURI===$e?t.namespaceURI===et?"svg"===n:t.namespaceURI===Ze?"svg"===n&&("annotation-xml"===i||lt[i]):Boolean(ht[n]):e.namespaceURI===Ze?t.namespaceURI===et?"math"===n:t.namespaceURI===$e?"math"===n&&ut[i]:Boolean(pt[n]):e.namespaceURI===et&&!(t.namespaceURI===$e&&!ut[i])&&!(t.namespaceURI===Ze&&!lt[i])&&!pt[n]&&(dt[n]||!ht[n])},mt=function(e){E(i.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=oe}catch(t){e.remove()}}},gt=function(e,t){try{E(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!ke[e])if(Ue||Be)try{mt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var i=w(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===fe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var r=re?re.createHTML(e):e;if(tt===et)try{t=(new g).parseFromString(r,fe)}catch(e){}if(!t||!t.documentElement){t=ae.createDocument(tt,"template",null);try{t.documentElement.innerHTML=nt?"":r}catch(e){}}var o=t.body||t.documentElement;return e&&n&&o.insertBefore(s.createTextNode(n),o.childNodes[0]||null),tt===et?ue.call(t,xe?"html":"body")[0]:xe?t.documentElement:o},yt=function(e){return ce.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},bt=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof f)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},Et=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){pe[e]&&y(pe[e],(function(e){e.call(i,t,n,ot)}))},wt=function(e){var t;if(_t("beforeSanitizeElements",e,null),bt(e))return mt(e),!0;if(C(/[\u0080-\uFFFF]/,e.nodeName))return mt(e),!0;var n=me(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:Te}),e.hasChildNodes()&&!Et(e.firstElementChild)&&(!Et(e.content)||!Et(e.content.firstElementChild))&&C(/<[/\w]/g,e.innerHTML)&&C(/<[/\w]/g,e.textContent))return mt(e),!0;if("select"===n&&C(/<template/i,e.innerHTML))return mt(e),!0;if(!Te[n]||Ae[n]){if(!Ae[n]&&St(n)){if(Ie.tagNameCheck instanceof RegExp&&C(Ie.tagNameCheck,n))return!1;if(Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))return!1}if(ze&&!Ke[n]){var r=ne(e)||e.parentNode,o=te(e)||e.childNodes;if(o&&r)for(var s=o.length-1;s>=0;--s)r.insertBefore($(o[s],!0),ee(e))}return mt(e),!0}return e instanceof u&&!ft(e)?(mt(e),!0):"noscript"!==n&&"noembed"!==n||!C(/<\/no(script|embed)/i,e.innerHTML)?(Pe&&3===e.nodeType&&(t=e.textContent,t=T(t,ge," "),t=T(t,ve," "),e.textContent!==t&&(E(i.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(mt(e),!0)},Tt=function(e,t,n){if(qe&&("id"===t||"name"===t)&&(n in s||n in st))return!1;if(Re&&!Le[t]&&C(ye,t));else if(Oe&&C(be,t));else if(!ke[t]||Le[t]){if(!(St(e)&&(Ie.tagNameCheck instanceof RegExp&&C(Ie.tagNameCheck,e)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(e))&&(Ie.attributeNameCheck instanceof RegExp&&C(Ie.attributeNameCheck,t)||Ie.attributeNameCheck instanceof Function&&Ie.attributeNameCheck(t))||"is"===t&&Ie.allowCustomizedBuiltInElements&&(Ie.tagNameCheck instanceof RegExp&&C(Ie.tagNameCheck,n)||Ie.tagNameCheck instanceof Function&&Ie.tagNameCheck(n))))return!1}else if(Qe[t]);else if(C(we,T(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Ye[e])if(Ne&&!C(Ee,T(n,_e,"")));else if(n)return!1;return!0},St=function(e){return e.indexOf("-")>0},kt=function(t){var n,r,o,s;_t("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke};for(s=a.length;s--;){var l=n=a[s],u=l.name,d=l.namespaceURI;if(r="value"===u?n.value:k(n.value),o=me(u),c.attrName=o,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,c),r=c.attrValue,!c.forceKeepAttr&&(gt(u,t),c.keepAttr))if(C(/\/>/i,r))gt(u,t);else{Pe&&(r=T(r,ge," "),r=T(r,ve," "));var h=me(t.nodeName);if(Tt(h,o,r)){if(!He||"id"!==o&&"name"!==o||(gt(u,t),r=je+r),re&&"object"===e(v)&&"function"==typeof v.getAttributeType)if(d);else switch(v.getAttributeType(h,o)){case"TrustedHTML":r=re.createHTML(r);break;case"TrustedScriptURL":r=re.createScriptURL(r)}try{d?t.setAttributeNS(d,u,r):t.setAttribute(u,r),b(i.removed)}catch(e){}}}}_t("afterSanitizeAttributes",t,null)}},Ct=function e(t){var n,i=yt(t);for(_t("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)_t("uponSanitizeShadowNode",n,null),wt(n)||(n.content instanceof a&&e(n.content),kt(n));_t("afterSanitizeShadowDOM",t,null)};return i.sanitize=function(t){var r,s,c,u,d,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((nt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!Et(t)){if("function"!=typeof t.toString)throw I("toString is not a function");if("string"!=typeof(t=t.toString()))throw I("dirty is not a string, aborting")}if(!i.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(Et(t))return n.toStaticHTML(t.outerHTML)}return t}if(Me||ct(h),i.removed=[],"string"==typeof t&&(Ge=!1),Ge){if(t.nodeName){var p=me(t.nodeName);if(!Te[p]||Ae[p])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(s=(r=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===s.nodeName||"HTML"===s.nodeName?r=s:r.appendChild(s);else{if(!Ue&&!Pe&&!xe&&-1===t.indexOf("<"))return re&&Fe?re.createHTML(t):t;if(!(r=vt(t)))return Ue?null:Fe?oe:""}r&&De&&mt(r.firstChild);for(var f=yt(Ge?t:r);c=f.nextNode();)3===c.nodeType&&c===u||wt(c)||(c.content instanceof a&&Ct(c.content),kt(c),u=c);if(u=null,Ge)return t;if(Ue){if(Be)for(d=le.call(r.ownerDocument);r.firstChild;)d.appendChild(r.firstChild);else d=r;return ke.shadowroot&&(d=de.call(o,d,!0)),d}var m=xe?r.outerHTML:r.innerHTML;return xe&&Te["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&C(Q,r.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+m),Pe&&(m=T(m,ge," "),m=T(m,ve," ")),re&&Fe?re.createHTML(m):m},i.setConfig=function(e){ct(e),Me=!0},i.clearConfig=function(){ot=null,Me=!1},i.isValidAttribute=function(e,t,n){ot||ct({});var i=me(e),r=me(t);return Tt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&(pe[e]=pe[e]||[],E(pe[e],t))},i.removeHook=function(e){if(pe[e])return b(pe[e])},i.removeHooks=function(e){pe[e]&&(pe[e]=[])},i.removeAllHooks=function(){pe={}},i}()}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return j}));var i=n(0);const r="one_tap",o="one-tap-auto-login";function s(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}function a(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 c="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",l={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},u={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},d={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},h={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},p={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:f,GOOGLE_USER_FETCHED:m,INITIALIZED:g}=l,{INITIALIZATION:v,AUTHENTICATION:y}=u;EventTarget;const{GOOGLE_USER_FETCHED:b,PROMPT_MOMENT:E}=l;class _ extends EventTarget{constructor({autoSelect:e=!1,libSrcPath:t,containerId:n,context:i,clientId:r=c,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");s(()=>{a(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===d.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;const t=new CustomEvent(b,{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:p.SKIPPED.ISSUING_FAILED,type:h.SKIPPED},n=new CustomEvent(E,{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(E,{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 w={exports:{}};function T(e){this.message=e}T.prototype=new Error,T.prototype.name="InvalidCharacterError";var S="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new T("'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 k=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(S(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 S(t)}};function C(e){this.message=e}C.prototype=new Error,C.prototype.name="InvalidTokenError",w.exports=function(e,t){if("string"!=typeof e)throw new C("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(k(e.split(".")[n]))}catch(e){throw new C("Invalid token specified: "+e.message)}},w.exports.InvalidTokenError=C;const I={CLIENT_ID:c,EVENTS:l,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:u,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:d,GOT_PROMPT_MOMENT_REASONS:p,GOT_PROMPT_MOMENT_TYPES:h};function A(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}const L=i.w.getPageKey(document).replace("_jsbeacon","");function O(e,t,n){window.tracking&&window.tracking.then(r=>{if(t&&e.appendChild(function(e){return A("controlId","".concat(L,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){return A("pageInstance",i.z.getPageInstance(e))}(r)),n){const e="".concat(L,"_").concat(n);i.z.firePageViewEvent(r,"ajax",e),Object(i.o)(r).trackPageView({pageKey:e})}})}function R(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}function N(e){window.tracking&&window.tracking.then(t=>{i.z.fireViewModuleImpressionEvent(t,[e])})}const{EVENTS:P,GOT_CONTEXTS:x,GOT_PROMPT_MOMENT_REASONS:M,GOT_PROMPT_MOMENT_TYPES:D}=I,{GOOGLE_USER_FETCHED:U,PROMPT_MOMENT:B}=P,{SIGN_IN:F}=x,q=[M.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,M.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,M.NOT_DISPLAYED.SUPPRESSED_BY_USER],H=[M.SKIPPED.AUTO_CANCEL,M.SKIPPED.TAP_OUTSIDE,M.SKIPPED.USER_CANCEL];class j{constructor(e,{onNotDisplayed:t,onSkipped:n,isAutoSelectEnabled:r=!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.isAutoSelectEnabled=r,this.containerEl=this.el.querySelector(".google-one-tap__container"),this.loaderEl=this.el.querySelector(".loader"),this.loader=this.loaderEl&&new i.f(this.loaderEl),O(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new _({autoSelect:this.isAutoSelectEnabled,cancelOnTapOutside:!1,context:F}),this.googleOneTapInstance.addEventListener(U,({detail:e})=>{const{idToken:t,selectedBy:n}=e;R("google-one-tap--account-selected");const i=this.googleOneTapInstance._getBasicProfile(t);this._submitWithGoogle(n,i)}),this.googleOneTapInstance.addEventListener(B,({detail:e})=>{const{reason:t,type:n}=e;if(t){if(this._fireCounterIngraphMetric(n,t),n===D.SKIPPED){if(t===M.SKIPPED.USER_CANCEL&&R("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(e);else if(-1===H.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else if(n===D.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(e);else if(-1===q.indexOf(t))throw Error("GoogleOneTapError ".concat(n,": ").concat(t))}else n===D.DISPLAY&&N("google-one-tap")}),this.googleOneTapInstance))}_fireCounterIngraphMetric(e,t){let n="";e===D.DISPLAY&&t===M.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(H.indexOf(t)>=0||q.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:n})})}_submitWithGoogle(e,t={}){const{email:n,idToken:i,imageUrl:s,familyName:a,givenName:c}=t;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=A("googleIdToken",i),this.el.appendChild(A("googleGivenName",c)),this.el.appendChild(A("googleFamilyName",a)),this.el.appendChild(A("googleImageUrl",s)),this.el.appendChild(A("googleEmail",n));const l="auto"===e?o:r;this.el.appendChild(A("soogleLoginRequestType",l)),this.el.appendChild(this.googleIdTokenInput),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:z,GOOGLE_ERROR:G,INITIALIZED:W}=I.EVENTS,{INITIALIZATION:K,AUTHENTICATION:V}=I.GSI_ERROR_TYPES,{INIT_FAILED:Y,POPUP_CLOSED_BY_USER:J}=I.GSI_ERROR_MESSAGES;"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e||"undefined"!=typeof self&&self;!function(e,t,n){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}((function(e,t){e.exports=function(){var e="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",t="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",n=["b","del","em","i","s","strong","sub","sup"],i=n.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"]),r=[e,"alt|checked|colgroup|cols|colspan|disabled|height|hidden|maxlength|method|multiple|name|placeholder|readonly|rel|required|rows|rowspan|spellcheck|target|title|width","border|caption|color|controls|coords|hreflang|label|lang|loop|marginheight|marginwidth|preload|reversed|type|usemap|clear|headers|ismap|start|datetime|accept|max|min|size|step|style|cellspacing|cellpadding"].join("|");function o(){}function s(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 a,c,l=(c=/[&<>"'\u0000\\=]/g,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(c,(function(e){return a[e]}))}),u=function(){var e,n,i=/&(?:([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:'"'};return n="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(o){return null==o?null:(o+"").replace(i,(function(i,o,s,a){return o?(c=o,r.hasOwnProperty(c)?r[c]:(e.innerHTML="&"+c+";",l=e[t],r[c]=l,l)):s||a?n(parseInt(s||a,s?16:10)||65533):"�";var c,l}))}}(),d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function h(e){return/[<&]/.test(e)}var p,f=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)};function m(e){e=d(e)?e:[e];var t,n,o,s=0,a="<(?!/?";return a+="(?:",f(e,(function(e,c){t=e.tags||i,n=e.attrs||r,o=e.checkUrlAttrs||!1,0!==c&&(a+="|"),a+="(?:"+t.join("|")+")",a+="(?:",a+="[ \t\r\n]*",a+="|[ \t\r\n]+",a+="(?:(?:",a+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++s+")?",o&&(a+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++s),a+=")[ \t\r\n]*)+",a+=")"})),a+=")",a+="/?>)",new RegExp(a,"i")}function g(e){return m({tags:e=e||i,checkUrlAttrs:!0})}function v(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!g(n).test(e):i?!v.R_UNSAFE_CUSTOM_ELEMENT.test(e):!v.R_UNSAFE_HTML.test(e)}function y(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function b(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,s=e;if(n.hasOwnProperty(i))return n[i];if(t.hasOwnProperty(i)){if(!((r="string"==typeof(s=t[i]))||s instanceof o||"number"==typeof s))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");s=r?l(s):s.toString()}return n[i]=s,s}))}(e,t):e,r=e;return h(i)&&!v(i,n)&&(i=y(i),s("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function E(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}v.R_UNSAFE_HTML=g(),v.R_UNSAFE_CUSTOM_ELEMENT=m([{tags:i,checkUrlAttrs:!0},{tags:[(p={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[e,p.attrs].join("|"),checkUrlAttrs:!1}]);var _={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,"",""]};_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td;var w=/<([\w:]+)/;function T(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=(w.exec(o)||["",""])[1].toLowerCase(),C(r,(i=_[n]||_._default)[1]+o+i[2]),a=i[0];a--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);E(u,r.childNodes),(r=l.firstChild).textContent=""}else E(u,o.nodeType?[o]:o);for(l.textContent="",o=u[s=0];o;)l.appendChild(o),o=u[++s];return l}var S=b,k=b;function C(e,n,i){var r=b(n,i);return h(r)?e.innerHTML=r:e[t]=r,r}function I(e,t){if(!(this instanceof I))return new I(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}I.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new o,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(v(e,this._options)||(n=e,e=y(e),s("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var A=/ /g,L=/[\s\u0000<>"]|%00/,O=/\\/,R=/([.]|%2e){2}/i,N=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 P(e){var t=void 0;if("string"!=typeof e)return s("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(s("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(A,"+")),!N.test(t))return s("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(L.test(t))return s("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n=t.split("?")[0];return O.test(n)||R.test(n)||R.test(decodeURI(n))?(s("jSecure Error: malicious data found in url path: "+n,"error"),"invalid://"):e}var x={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:i,FORMATTING_TAGS:n,htmlEncode:l,htmlUnencode:u,log:s,mk:function(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 I?o:l(o))})),k(r)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=T([e],t);else{if(!d(e))return e;n=T(e,t)}return E([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:S,reEncode:function(e){return l(u(e))},_redirector:x,redirect:function(e){var t=P(e);t===e&&x.redirect(t)},sanitizeHTML:k,sanitizeUrl:P,setElementContent:C,text:function(e){return s("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),l(e)},unsafe:function(e){return e},UnsafeString:I}}()}));const Q=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,X=/(.)\1{3}/,Z=/linkedin/i,$=/\d\d/,ee=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]+)?(/.*)?"),te=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,ne=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,ie=/^[ぁ-ゔゞ゛゜ー]*$/,re=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,oe=e=>{const t=(t="")=>t.length<=e;return t.errorMessagePrefix="i18n_tooLong_",t},se=e=>{const t=(t="")=>t.length>=e;return t.errorMessagePrefix="i18n_tooShort_",t},ae=(e="")=>!$.test(e);ae.errorMessagePrefix="i18n_noConsecutiveDigits_";const ce=(e="")=>!Q.test(e);ce.errorMessagePrefix="i18n_noForbiddenCharacters_";const le=(e="")=>!X.test(e);le.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const ue=(e="")=>!Z.test(e);ue.errorMessagePrefix="i18n_noLinkedIn_";const de=(e="")=>!ee.test(e);de.errorMessagePrefix="i18n_noUrl_";const he=(e="")=>ne.test(e);he.errorMessagePrefix="i18n_onlyChinese_";const pe=(e="")=>ie.test(e);pe.errorMessagePrefix="i18n_onlyPhonetic_";const fe=(e="")=>""!==e.trim();fe.errorMessagePrefix="i18n_required_";const me=(e="")=>te.test(e);me.errorMessagePrefix="i18n_invalidFormat_";const ge=(e="")=>re.test(e);ge.errorMessagePrefix="i18n_invalidFormat_";const ve=(e="")=>te.test(e)||re.test(e);ve.errorMessagePrefix="i18n_invalidFormat_";const ye=[oe(50),ce,ae,le,ue,de],be=[fe].concat(ye),Ee=[pe,oe(50),le];oe(4),se(2),oe(128),oe(128),oe(128),(e=>{const t=(t="")=>""===t||e(t);t.errorMessagePrefix=e.errorMessagePrefix})(me),se(8),oe(200);const{GOT_PROMPT_MOMENT_REASONS:_e,GOT_PROMPT_MOMENT_TYPES:we}=I;const{GOOGLE_ERROR:Te,GOOGLE_USER_FETCHED:Se,INITIALIZED:ke}=I.EVENTS;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);var Ce;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes"}(Ce||(Ce={}));new Set(Object.values(Ce));Error;const{EVENTS:Ie,GOT_CONTEXTS:Ae,GOT_PROMPT_MOMENT_TYPES:Le}=I,{GOOGLE_USER_FETCHED:Oe,PROMPT_MOMENT:Re}=Ie}).call(this,n(2))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(0),r=n(9),o=n.n(r),s={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"]};var a=n(5),c=n(4);class l{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.globalWindow,r=void 0===n?window:n,o=t.paginationToken,s=t.requestUrl,a=t.feedLoadLimit,c=void 0===a?6:a,l=t.threshold,u=void 0===l?2:l,d=t.isLoggedIn,h=void 0!==d&&d,p=t.onStopCallback,f=void 0===p?()=>{}:p;if(!e)throw new Error("No element passed in");if(!o)throw new Error("No paginationToken passed in");if(!s)throw new Error("No requestUrl passed in");this.el=e,this.loaderEl=document.querySelector(".updates-loader"),this.window=r,this.threshold=u,this.feedLoadLimit=c,this.requestUrl=s,this.paginationToken=o,this.paginationStart=10,this.areAllFeedUpdatesLoaded=!1,this.isLoggedIn=h,this.onStopCallback=f,this.loadResults=()=>{if(!this.areAllFeedUpdatesLoaded)return this.requestUrl.searchParams.set("paginationStart",this.paginationStart),this.requestUrl.searchParams.set("paginationToken",this.paginationToken),Object(i.x)(this.requestUrl,{sendCookies:!1}).then(e=>{var t=e.status,n=e.responseText;200===t?this.onSuccess(n):this.onFail()}).catch(()=>{this.onFail()}).finally(()=>{this.paginationStart+=10,this.isLoggedIn&&this.fireFeedPageViewEvent(),!this.isLoggedIn&&this.paginationStart>10*this.feedLoadLimit&&this._stopFeedUpdatesLoader()})},this.infiniteScroller=new i.e(this.window,{loaderEl:this.loaderEl,threshold:this.threshold,loadResults:this.loadResults,scrollLoadLimit:9999,useDebounce:!0,listEl:this.el})}fireFeedPageViewEvent(){var e;null===(e=this.window.tracking)||void 0===e||e.then(e=>{i.z.firePageViewEvent(e,c.b.AJAX,"p_mwlite_feed_updates")})}onSuccess(e){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.a.sanitize(e,Object.assign({},s,t))}(e);t?(this.el.insertAdjacentHTML("beforeend",t),Object(a.a)(this.isLoggedIn),this.window.lazyloader.then(e=>e.refreshLoader())):this._stopFeedUpdatesLoader()}onFail(){this._stopFeedUpdatesLoader()}_stopFeedUpdatesLoader(){this.onStopCallback(),this.infiniteScroller.removeInfiniteScroller(),this.areAllFeedUpdatesLoaded=!0}}},,,function(e,t,n){"use strict";var i=n(1),r=n(10);new i.h(document.querySelector(".language-selector"));var o=document.querySelector(".search-bar");o&&new i.k(o,{typeaheadApiBaseUrl:"/organization-guest/api/typeaheadHits"});var s=document.querySelector(".banner");s&&new i.a(s);var a=document.querySelector(".sticky-header");a&&new i.n(a);var c=document.querySelector(".cover-img");c&&new i.c(c);var l,u=document.querySelector(".windows-app-upsell");u&&new i.o(u),!(l=document.querySelector(".strong-conversion-modal"))||"true"!==l.dataset.shouldShow&&"true"!==l.dataset.aggressiveUpsell||new i.b(l,{triggerByOutletEl:!1}).contextualModal.open();(e=>{var t=document.querySelector(".google-one-tap");if(t){var n=null===i.q.getCookie("li_g_recent_logout");new r.a(t,{onNotDisplayed:e,isAutoSelectEnabled:n})}})();var d=document.querySelector(".google-auth");new i.f(d);var h=e=>e.querySelector("a");Array.from(document.querySelectorAll(".show-more-less")).forEach(e=>new i.l(e,h)),Array.from(document.querySelectorAll(".ellipsis-menu")).forEach(e=>new i.d(e)),Array.from(document.querySelectorAll(".modal:not(.modal--contextual-sign-in)")).forEach(e=>new i.i(e))},,,,function(e,t,n){"use strict";n.r(t);n(14);var i=n(1),r=n(11);if(Array.from(document.querySelectorAll(".share-native-video__node")).forEach(e=>new i.j(e)),document.querySelector(".updates-loader")){var o=document.querySelector(".updates__list"),s=Object(i.p)("feedUpdatesBaseUrl"),a=Object(i.p)("isMobile"),c=Object(i.p)("paginationToken");new r.a(o,{feedLoadLimit:a?3:6,onStopCallback:()=>{var e=document.querySelector('[data-id="conversion-prompt"]');null==e||e.classList.remove("hidden")},paginationToken:c,requestUrl:new URL("".concat(window.location.origin).concat(s)),threshold:a?4:2})}var l=document.querySelector('[data-js-module-id="products__slide-list"]');l&&new i.m(l);var u=document.querySelector('[data-js-module-id="more-searches"]');u&&window.tracking&&window.tracking.then(e=>{new i.e(u,e)})}]);