/*! 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=17)}([function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return rl})),n.d(t,"b",(function(){return Xf})),n.d(t,"c",(function(){return pf})),n.d(t,"d",(function(){return Hg})),n.d(t,"e",(function(){return Pw})),n.d(t,"f",(function(){return Ff})),n.d(t,"g",(function(){return Bf})),n.d(t,"h",(function(){return Te})),n.d(t,"i",(function(){return fl})),n.d(t,"j",(function(){return a_})),n.d(t,"k",(function(){return pg})),n.d(t,"l",(function(){return dg})),n.d(t,"m",(function(){return Og})),n.d(t,"n",(function(){return wb})),n.d(t,"o",(function(){return Qo})),n.d(t,"p",(function(){return Xp})),n.d(t,"q",(function(){return $p})),n.d(t,"r",(function(){return s_})),n.d(t,"s",(function(){return Kp})),n.d(t,"t",(function(){return Oc})),n.d(t,"u",(function(){return Wl})),n.d(t,"v",(function(){return Fa})),n.d(t,"w",(function(){return Xh})),n.d(t,"x",(function(){return q_})),n.d(t,"y",(function(){return Xs})),n.d(t,"z",(function(){return ag})),n.d(t,"A",(function(){return Ma})),n.d(t,"B",(function(){return T})),n.d(t,"C",(function(){return L})),n.d(t,"D",(function(){return Z})),n.d(t,"E",(function(){return qT}));const r=["Googlebot","bingbot","botify"];function o(e,t){const{userAgent:n}=navigator;if(!t||!n||r.some(e=>n.includes(e)))return e;const i=e.startsWith("/"),o=i?window.location.origin:void 0,a=new URL(e,o);return a.searchParams.set("trk",t),i?a.pathname+a.search+a.hash:a.toString()}function a(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function s(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}class c{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();class u{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 d=function(){let e;return{getInstance:function(){return e||(e=new u),e}}}();function h(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function p(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 f(){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 g(e,t,n){const i=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function v(e,t,n,i){if(!e||!t)throw new Error(`Required param of addQueryParam missing: url = ${e},  key = ${t}`);t=encodeURIComponent(t),n=encodeURIComponent(n);const r=g(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),a="&";return i<0?a="?":i===e.length-1&&(a=""),o&&(o="#"+o),`${r}${a}${t}=${n}${o||""}`}}function m(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const c=()=>{r=null,n||e.apply(i,a)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,a)}}function y(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function E(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 w(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 T=Object.freeze({__proto__:null,addTrackingCode:o,closest:a,onload:s,UnloadHandler:l,PagehideHandler:d,makeArray:h,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:p,hasElementScrolledToThreshold:f,getQueryParam:g,addQueryParam:v,debounce:m,getCookie:y,dispatchCustomEvent:E,getDeferredPromise:b,isDocumentHidden:w,stripQueryParams:_,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=v(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},stripHtmlFromString:function(e){return null==e?void 0:e.replace(/(<([^>]+)>)/gi,"")},replaceNonBreakingSpaces:function(e){return e.replace(/\u00a0/gi," ")}});function S(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?`${n.content}${r||t.skipSuffix?"":"_jsbeacon"}`:""}function C(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function I(){return y("li_sugr")}function k(){var e,t;const n=null===(e=window.atob(y("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function A(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function x(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function O(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var L=Object.freeze({__proto__:null,getPageKey:S,getPageTag:C,getLiSugrCookie:I,getGuestRetargetingOptOut:k,getLocale:A,getDomain:x,trimDoubleQuotes:O});const R={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},N={Down:R.ARROW_DOWN,Right:R.ARROW_RIGHT,Left:R.ARROW_LEFT,Up:R.ARROW_UP,Esc:R.ESCAPE,Spacebar:R.SPACEBAR,Tab:R.TAB};function P(e){return N[e]||e}class D{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:a=!1}=o;this.isOpen=a,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(P(e.key)){case R.ENTER:case R.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case R.ARROW_UP:this.isOpen||this._open(e);break;case R.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){P(e.key)===R.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=P(e.key);if(t===R.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case R.SPACEBAR:E(e.target,"click");break;case R.ARROW_LEFT:case R.ARROW_UP:n=a(e.target,"li");let t=n.previousElementSibling;t&&E(t,"focusEl");break;case R.ARROW_RIGHT:case R.ARROW_DOWN:n=a(e.target,"li");let i=n.nextElementSibling;i&&E(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)),E(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)),E(this.el,"close"),e&&setTimeout(()=>{this.mainButton.focus()},250))}}let M,U;const F=['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=[...F,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),q=[...F,"[tabindex]:not([disabled])"].join(",");function H(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function j(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?!H(e):i&&i.get(e)?i.get(e):(H(e)?t=!1:e.parentNode&&(t=j(e.parentNode,n,i)),i&&i.set(e,t),t)}const G=["CODE","TEMPLATE","SCRIPT"],W={POLITE:"polite",ASSERTIVE:"assertive"};function z(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:W.POLITE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;M&&(M.removeAttribute("aria-hidden"),M.setAttribute("aria-live",t),M.textContent=e,clearTimeout(U),U=setTimeout(()=>{M.textContent=""},n))}function K(){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"),e.classList.add("sr-only"),document.body.appendChild(e)),e}()}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.classList.contains("top-level-modal-container")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const X=["class","disabled","style","tabindex","type"];class Y{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:X,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=P(t),r=i===R.TAB&&e.shiftKey;!r&&i===R.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,a=t.length-1;for(;(!i||!r)&&o<=a;){if(!i){const r=t[o];i=j(r,e,n)&&r,o++}if(!r){const i=t[a];r=j(i,e,n)&&i,a--}}return r=r||i,[i,r]}}const J=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&J.test(e)}class ${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(".collapsible-dropdown__list"),this._closeButton=this.el.querySelector(".collapsible-dropdown__close-button"),this._isMobile=Q();const o=this.dropdownContentEl.closest(".collapsible-dropdown");if(this._isMobile&&o&&(this._focusTrap=new Y(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(".collapsible-dropdown__button"),this.hideClass="hidden",this.collapsible=new D(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){const t=e.target;if(!this.el.contains(t)){if("IFRAME"===t.tagName){const e=t.closest(".collapsible-dropdown");if(e&&this.el.contains(e))return}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);const t=null!==this.dropdownContentEl.querySelector("iframe");t||this.elementToFocus.focus();const{key:n}=e&&e.detail;var i;(n?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick),this._isMobile)?t||null===(i=this._focusTrap)||void 0===i||i.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){if(e.relatedTarget&&this.el.contains(e.relatedTarget))return;const t=null!==this.dropdownContentEl.querySelector("iframe");!e.relatedTarget&&t||this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}_leaveWindow(){null!==this.dropdownContentEl.querySelector("iframe")||this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}shouldReturnFocusToTrigger(e){this._shouldReturnFocusToTrigger=e}close(){this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}}function Z(e){var t;let{method:n="GET",headers:i={},sendCookies:r=!0,skipCsrfToken:o=!1,postData:a,isPemEnabled:s=!1,pemDegradationTrackingMetadata:c=[],pemEntityIds:l=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u={method:n,headers:i,body:null};if(!o){const e=y("JSESSIONID");e&&(u.headers["Csrf-Token"]=O(e))}let d;r&&(u.credentials="include"),"POST"!==u.method&&"PUT"!==u.method||(u.body=a);const h=document.getElementById("config");d="true"===(null==h||null===(t=h.dataset)||void 0===t?void 0:t.sequenceAutoRedirectBeforeRequestEnabled)&&window.appRedirectCompleted?window.appRedirectCompleted.then(()=>fetch(e,u)).catch(()=>{var t;return null===(t=window.ingraphTracking)||void 0===t||t.then(e=>{e.fireCounterIngraphMetric({metricsType:"AppRedirectPromiseRejected"})}),fetch(e,u)}):fetch(e,u);const p=d.then(t=>t.ok||304===t.status?t.text().then(e=>(t.responseText=e,t)):t.text().then(i=>{const r=new Error(`${n} request for ${e} has failed with status code ${t.status}`);return t.responseText=i,r.response=t,Promise.reject(r)}));return s&&(c.length?ee(d,e,l,c):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),p}function ee(e,t,n,i){try{window.tracking.then(r=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)})})}catch(e){}}class te{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 $(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=O(y("bcookie")||"");return Z(`${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}(x(document))}/psettings/update-language/cors?csrfToken=${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 ne="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},ie=/^\s+|\s+$/g,re=/^[-+]0x[0-9a-f]+$/i,oe=/^0b[01]+$/i,ae=/^0o[0-7]+$/i,se=parseInt,ce="object"==typeof ne&&ne&&ne.Object===Object&&ne,le="object"==typeof self&&self&&self.Object===Object&&self,ue=ce||le||Function("return this")(),de=Object.prototype.toString,he=Math.max,pe=Math.min,fe=function(){return ue.Date.now()};function ge(e,t,n){var i,r,o,a,s,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,a=e.apply(o,n)}function f(e){return l=e,s=setTimeout(v,t),u?p(e):a}function g(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=o}function v(){var e=fe();if(g(e))return m(e);s=setTimeout(v,function(e){var n=t-(e-c);return d?pe(n,o-(e-l)):n}(e))}function m(e){return s=void 0,h&&i?p(e):(i=r=void 0,a)}function y(){var e=fe(),n=g(e);if(i=arguments,r=this,c=e,n){if(void 0===s)return f(c);if(d)return s=setTimeout(v,t),p(c)}return void 0===s&&(s=setTimeout(v,t)),a}return t=me(t)||0,ve(n)&&(u=!!n.leading,o=(d="maxWait"in n)?he(me(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),l=0,i=c=r=s=void 0},y.flush=function(){return void 0===s?a:m(fe())},y}function ve(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function me(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==de.call(e)}(e))return NaN;if(ve(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ve(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=oe.test(e);return n||ae.test(e)?se(e.slice(2),n?2:8):re.test(e)?NaN:+e}var ye=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ve(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),ge(e,t,{leading:i,maxWait:t,trailing:r})};const Ee=".loader",be=".infinite-scroller__show-more-button",we=0,_e=10;class Te{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,{threshold:t=we,scrollLoadLimit:n=_e,useDebounce:i=!1,wait:r=1e3,loadResults:o,onLoading:a=this._defaultOnLoading,onDoneLoading:s=this._defaultOnDoneLoading,loaderEl:c=document.querySelector(Ee),showMoreButtonEl:l=document.querySelector(be),isReverse:u=!1,listEl:d,getFocusItemFromListItem:h=(e=>e.querySelector(q))}=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=a,this.onDoneLoading=s,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?m(this._onScroll,this.wait):ye(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&&f(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),E(this.el,"infinite-scroller-removed")}_attachScrollEventListener(){this.el.addEventListener("scroll",this._scrollListener)}}const Se="light",Ce="dark";function Ie(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Ce:Se:void 0}var ke,Ae=["transporterKeys"],xe=["breadcrumb"],Oe=["$type"],Le=["requestStart"],Re=["requestTime","viewNames","requestType","requestTag"],Ne=["requestStart"],Pe=["requestStart"],De=["requestTime","viewNames","requestType"];function Me(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 Ue(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Me(Object(n),!0).forEach((function(t){Ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fe(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,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Ve(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t,n){return t=He(t),function(e,t){if(t&&("object"===Ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],He(e).constructor):t.apply(e,n))}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function je(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ge(e,t)}function Ge(e,t){return(Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function We(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}function ze(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ve(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ke(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Ve(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 Ve(e,t){if(e){if("string"==typeof e)return Xe(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)?Xe(e,t):void 0}}function Xe(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 Ye(e){return(Ye="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)}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qe(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,et(i.key),i)}}function $e(e,t,n){return t&&Qe(e.prototype,t),n&&Qe(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ze(e,t,n){return(t=et(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function et(e){var t=function(e,t){if("object"!=Ye(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Ye(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ye(t)?t:String(t)}var tt,nt="unknown",it=new Uint8Array(16);function rt(){if(!tt&&!(tt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tt(it)}var ot=/^(?:[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 at(e){return"string"==typeof e&&ot.test(e)}for(var st=[],ct=0;ct<256;++ct)st.push((ct+256).toString(16).slice(1));function lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(st[e[t+0]]+st[e[t+1]]+st[e[t+2]]+st[e[t+3]]+"-"+st[e[t+4]]+st[e[t+5]]+"-"+st[e[t+6]]+st[e[t+7]]+"-"+st[e[t+8]]+st[e[t+9]]+"-"+st[e[t+10]]+st[e[t+11]]+st[e[t+12]]+st[e[t+13]]+st[e[t+14]]+st[e[t+15]]).toLowerCase()}function ut(e){if(!at(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 dt(e,t,n){function i(e,i,r,o){var a;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=ut(i)),16!==(null===(a=i)||void 0===a?void 0:a.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 c=0;c<16;++c)r[o+c]=s[c];return r}return lt(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function ht(e){return 14+(e+64>>>9<<4)+1}function pt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function ft(e,t,n,i,r,o){return pt((a=pt(pt(t,e),pt(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function gt(e,t,n,i,r,o,a){return ft(t&n|~t&i,e,t,r,o,a)}function vt(e,t,n,i,r,o,a){return ft(t&i|n&~i,e,t,r,o,a)}function mt(e,t,n,i,r,o,a){return ft(t^n^i,e,t,r,o,a)}function yt(e,t,n,i,r,o,a){return ft(n^(t|~i),e,t,r,o,a)}dt("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,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[ht(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,l=r,u=o;n=gt(n,i,r,o,e[a],7,-680876936),o=gt(o,n,i,r,e[a+1],12,-389564586),r=gt(r,o,n,i,e[a+2],17,606105819),i=gt(i,r,o,n,e[a+3],22,-1044525330),n=gt(n,i,r,o,e[a+4],7,-176418897),o=gt(o,n,i,r,e[a+5],12,1200080426),r=gt(r,o,n,i,e[a+6],17,-1473231341),i=gt(i,r,o,n,e[a+7],22,-45705983),n=gt(n,i,r,o,e[a+8],7,1770035416),o=gt(o,n,i,r,e[a+9],12,-1958414417),r=gt(r,o,n,i,e[a+10],17,-42063),i=gt(i,r,o,n,e[a+11],22,-1990404162),n=gt(n,i,r,o,e[a+12],7,1804603682),o=gt(o,n,i,r,e[a+13],12,-40341101),r=gt(r,o,n,i,e[a+14],17,-1502002290),n=vt(n,i=gt(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=vt(o,n,i,r,e[a+6],9,-1069501632),r=vt(r,o,n,i,e[a+11],14,643717713),i=vt(i,r,o,n,e[a],20,-373897302),n=vt(n,i,r,o,e[a+5],5,-701558691),o=vt(o,n,i,r,e[a+10],9,38016083),r=vt(r,o,n,i,e[a+15],14,-660478335),i=vt(i,r,o,n,e[a+4],20,-405537848),n=vt(n,i,r,o,e[a+9],5,568446438),o=vt(o,n,i,r,e[a+14],9,-1019803690),r=vt(r,o,n,i,e[a+3],14,-187363961),i=vt(i,r,o,n,e[a+8],20,1163531501),n=vt(n,i,r,o,e[a+13],5,-1444681467),o=vt(o,n,i,r,e[a+2],9,-51403784),r=vt(r,o,n,i,e[a+7],14,1735328473),n=mt(n,i=vt(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=mt(o,n,i,r,e[a+8],11,-2022574463),r=mt(r,o,n,i,e[a+11],16,1839030562),i=mt(i,r,o,n,e[a+14],23,-35309556),n=mt(n,i,r,o,e[a+1],4,-1530992060),o=mt(o,n,i,r,e[a+4],11,1272893353),r=mt(r,o,n,i,e[a+7],16,-155497632),i=mt(i,r,o,n,e[a+10],23,-1094730640),n=mt(n,i,r,o,e[a+13],4,681279174),o=mt(o,n,i,r,e[a],11,-358537222),r=mt(r,o,n,i,e[a+3],16,-722521979),i=mt(i,r,o,n,e[a+6],23,76029189),n=mt(n,i,r,o,e[a+9],4,-640364487),o=mt(o,n,i,r,e[a+12],11,-421815835),r=mt(r,o,n,i,e[a+15],16,530742520),n=yt(n,i=mt(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=yt(o,n,i,r,e[a+7],10,1126891415),r=yt(r,o,n,i,e[a+14],15,-1416354905),i=yt(i,r,o,n,e[a+5],21,-57434055),n=yt(n,i,r,o,e[a+12],6,1700485571),o=yt(o,n,i,r,e[a+3],10,-1894986606),r=yt(r,o,n,i,e[a+10],15,-1051523),i=yt(i,r,o,n,e[a+1],21,-2054922799),n=yt(n,i,r,o,e[a+8],6,1873313359),o=yt(o,n,i,r,e[a+15],10,-30611744),r=yt(r,o,n,i,e[a+6],15,-1560198380),i=yt(i,r,o,n,e[a+13],21,1309151649),n=yt(n,i,r,o,e[a+4],6,-145523070),o=yt(o,n,i,r,e[a+11],10,-1120210379),r=yt(r,o,n,i,e[a+2],15,718787259),i=yt(i,r,o,n,e[a+9],21,-343485551),n=pt(n,s),i=pt(i,c),r=pt(r,l),o=pt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(ht(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}));var Et={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function bt(e,t,n){if(Et.randomUUID&&!t&&!e)return Et.randomUUID();var i=(e=e||{}).random||(e.rng||rt)();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 lt(i)}function wt(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function _t(e,t){return e<<t|e>>>32-t}dt("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,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++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];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[d][p];for(var f=16;f<80;++f)h[f]=_t(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],v=n[1],m=n[2],y=n[3],E=n[4],b=0;b<80;++b){var w=Math.floor(b/20),_=_t(g,5)+wt(w,v,m,y)+E+t[w]+h[b]>>>0;E=y,y=m,m=_t(v,30)>>>0,v=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Tt=Uint8Array,St=Uint16Array,Ct=Uint32Array,It=new Tt([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]),kt=new Tt([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]),At=new Tt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xt=function(e,t){for(var n=new St(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Ct(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]},Ot=xt(It,2),Lt=Ot[0],Rt=Ot[1];Lt[28]=258,Rt[258]=28;for(var Nt=xt(kt,0)[1],Pt=new St(32768),Dt=0;Dt<32768;++Dt){var Mt=(43690&Dt)>>>1|(21845&Dt)<<1;Mt=(61680&(Mt=(52428&Mt)>>>2|(13107&Mt)<<2))>>>4|(3855&Mt)<<4,Pt[Dt]=((65280&Mt)>>>8|(255&Mt)<<8)>>>1}var Ut=function(e,t,n){for(var i=e.length,r=0,o=new St(t);r<i;++r)e[r]&&++o[e[r]-1];var a,s=new St(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;if(n){a=new St(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=s[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[Pt[d]>>>c]=l}else for(a=new St(i),r=0;r<i;++r)e[r]&&(a[r]=Pt[s[e[r]-1]++]>>>15-e[r]);return a},Ft=new Tt(288);for(Dt=0;Dt<144;++Dt)Ft[Dt]=8;for(Dt=144;Dt<256;++Dt)Ft[Dt]=9;for(Dt=256;Dt<280;++Dt)Ft[Dt]=7;for(Dt=280;Dt<288;++Dt)Ft[Dt]=8;var Bt=new Tt(32);for(Dt=0;Dt<32;++Dt)Bt[Dt]=5;var qt=Ut(Ft,9,0),Ht=Ut(Bt,5,0),jt=function(e){return(e+7)/8|0},Gt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Wt=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},zt=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[$t,0];if(1==r){var a=new Tt(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=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:s.f+c.f,l:s,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new St(h+1),f=Kt(n[u-1],p,0);if(f>t){i=0;var g=0,v=f-t,m=1<<v;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;g+=m-(1<<f-p[y]),p[y]=t}for(g>>>=v;g>0;){var E=o[i].s;p[E]<t?g-=1<<t-p[E]++-1:++i}for(;i>=0&&g;--i){var b=o[i].s;p[b]==t&&(--p[b],++g)}f=t}return[new Tt(p),f]},Kt=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},Vt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new St(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r);o=1,r=e[s]}return[n.subarray(0,i),t]},Xt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Yt=function(e,t,n){var i=n.length,r=jt(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)},Jt=function(e,t,n,i,r,o,a,s,c,l,u){Gt(t,u++,n),++r[256];for(var d=zt(r,15),h=d[0],p=d[1],f=zt(o,15),g=f[0],v=f[1],m=Vt(h),y=m[0],E=m[1],b=Vt(g),w=b[0],_=b[1],T=new St(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var C=zt(T,7),I=C[0],k=C[1],A=19;A>4&&!I[At[A-1]];--A);var x,O,L,R,N=l+5<<3,P=Xt(r,Ft)+Xt(o,Bt)+a,D=Xt(r,h)+Xt(o,g)+a+14+3*A+Xt(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(N<=P&&N<=D)return Yt(t,u,e.subarray(c,c+l));if(Gt(t,u,1+(D<P)),u+=2,D<P){x=Ut(h,p,0),O=h,L=Ut(g,v,0),R=g;var M=Ut(I,k,0);for(Gt(t,u,E-257),Gt(t,u+5,_-1),Gt(t,u+10,A-4),u+=14,S=0;S<A;++S)Gt(t,u+3*S,I[At[S]]);u+=3*A;for(var U=[y,w],F=0;F<2;++F){var B=U[F];for(S=0;S<B.length;++S){var q=31&B[S];Gt(t,u,M[q]),u+=I[q],q>15&&(Gt(t,u,B[S]>>>5&127),u+=B[S]>>>12)}}}else x=qt,O=Ft,L=Ht,R=Bt;for(S=0;S<s;++S)if(i[S]>255){q=i[S]>>>18&31,Wt(t,u,x[q+257]),u+=O[q+257],q>7&&(Gt(t,u,i[S]>>>23&31),u+=It[q]);var H=31&i[S];Wt(t,u,L[H]),u+=R[H],H>3&&(Wt(t,u,i[S]>>>5&8191),u+=kt[H])}else Wt(t,u,x[i[S]]),u+=O[i[S]];return Wt(t,u,x[256]),u+O[256]},Qt=new Ct([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$t=new Tt(0),Zt=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}(),en=function(e,t,n,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new Tt(i+a+5*(1+Math.ceil(a/7e3))+r),c=s.subarray(i,s.length-r),l=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535;d>=a&&(c[l>>3]=o),l=Yt(c,l+1,e.subarray(u,d))}else{for(var h=Qt[t-1],p=h>>>13,f=8191&h,g=(1<<n)-1,v=new St(32768),m=new St(g+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&g},w=new Ct(25e3),_=new St(288),T=new St(32),S=0,C=0,I=(u=0,0),k=0,A=0;u<a;++u){var x=b(u),O=32767&u,L=m[x];if(v[O]=L,m[x]=O,k<=u){var R=a-u;if((S>7e3||I>24576)&&R>423){l=Jt(e,c,0,w,_,T,C,I,A,u-A,l),I=S=C=0,A=u;for(var N=0;N<286;++N)_[N]=0;for(N=0;N<30;++N)T[N]=0}var P=2,D=0,M=f,U=O-L&32767;if(R>2&&x==b(u-U))for(var F=Math.min(p,R)-1,B=Math.min(32767,u),q=Math.min(258,R);U<=B&&--M&&O!=L;){if(e[u+P]==e[u+P-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>P){if(P=H,D=U,H>F)break;var j=Math.min(U,H-2),G=0;for(N=0;N<j;++N){var W=u-U+N+32768&32767,z=W-v[W]+32768&32767;z>G&&(G=z,L=W)}}}U+=(O=L)-(L=v[O])+32768&32767}if(D){w[I++]=268435456|Rt[P]<<18|Nt[D];var K=31&Rt[P],V=31&Nt[D];C+=It[K]+kt[V],++_[257+K],++T[V],k=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=Jt(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=Yt(c,l+1,$t))}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?St:4==e.BYTES_PER_ELEMENT?Ct:Tt)(n-t);return i.set(e.subarray(t,n)),i}(s,0,i+jt(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},tn=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},nn="undefined"!=typeof TextDecoder&&new TextDecoder;try{nn.decode($t,{stream:!0})}catch(jr){}function rn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function on(){try{return rn()&&"keepalive"in new Request("")}catch(e){return!1}}function an(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=function(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=Zt[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=en(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=r.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&&tn(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)}}(r,t),tn(r,o-8,n.d()),tn(r,o-4,i),r}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function sn(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var cn,ln="undefined"!=typeof navigator&&"sendBeacon"in navigator,un=on()?function(e,t,n,i){return new Promise((function(r){fetch(e,an({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,an({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:sn(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(ln){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,an({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:sn(e)})}))}))};function dn(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 hn(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 pn(){return cn||(cn=hn("idb-queue","default")),cn}function fn(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))},dn(e.transaction)}var gn=!1;function vn(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]:pn();return n("readwrite",(function(n){return n.put(e),dn(n.count()).then((function(e){if(!(e<=t.maxNumber))return fn(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn())("readwrite",(function(t){return fn(t,e)}))}(t,n)}))}function mn(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]:pn();return gn?Promise.resolve():vn(e,t,n)}function yn(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())},dn(t.transaction).then((function(){return i}))}))}function En(){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 bn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function wn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function _n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var Tn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Je(this,e),Ze(this,"config",void 0),Ze(this,"compress",void 0),Ze(this,"throttleControl",void 0),Ze(this,"withStore",void 0),Ze(this,"disablePersistence",!1),this.config=t,this.compress=i;var r,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=hn(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(r=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now();e-a>o&&(bn((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return $e(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){bn((function(){return"Persisting to DB "+e.url})),mn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),bn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,wn((function(){return"push failed"}))}))};this.config.useIdle?_n(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]:pn();return gn=!0,e("readwrite",(function(e){return e.clear(),dn(e.transaction).finally((function(){return gn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,wn((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([]):function(){return yn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,wn((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([]):function(){return yn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,wn((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){bn((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[];return t.openCursor(null,"next").onsuccess=function(){var t=this.result;t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},dn(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:pn())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return bn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),un(o,a,En(s,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,a),e.replayEntries()}else{var r,s,d,h,p,f;if(u+1>e.config.attemptLimit)return bn((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a));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,a),bn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),mn({url:o,body:a,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,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&wn((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?_n(t):t()}}}]),e}(),Sn=function(){function e(){Je(this,e)}return $e(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}(),Cn=function(){function e(t,n){Je(this,e),Ze(this,"queue",void 0),Ze(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Tn(t,n.compress):new Sn}return $e(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}();Ze(Cn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var In=[502,504],kn=[429,503],An=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Je(this,e),Ze(this,"url",void 0),Ze(this,"body",void 0),Ze(this,"config",void 0),Ze(this,"persistenceConfig",void 0),Ze(this,"compress",void 0),Ze(this,"timestamp",void 0),Ze(this,"isClearQueuePending",!1),Ze(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return $e(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 un(e.url,e.body,t,e.compress)}),n,t).finally((function(){bn((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(En(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i;else if(bn((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)}),s={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 bn((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)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{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}(),xn="internal:hide",On="internal:error";function Ln(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Rn(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Nn,Pn,Dn=(Nn=new Map,Pn=new Map,{on:function(e,t){Ln(Nn,e,t)},before:function(e,t){Ln(Pn,e,t)},off:function(e,t){Rn(Nn,e,t)},offBefore:function(e,t){Rn(Pn,e,t)},emit:function(e,t){(Pn.get(e)||[]).concat(Nn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Pn.clear(),Nn.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Mn=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Dn.emit(xn,e)};document.addEventListener("visibilitychange",Mn),window.addEventListener("pagehide",Mn)}var Un=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Fn=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Fn){var Bn=new Uint8Array(256),qn=Bn.length;Un={rng:function(){return qn>Bn.length-16&&(Fn.randomFillSync(Bn),qn=0),Bn.slice(qn,qn+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ye(crypto))&&crypto.randomUUID;function Hn(){return bt(Un,new Array(16),0)}function jn(e){return Ke(e).map((function(e){return String.fromCharCode(e)})).join("")}function Gn(){return jn(Hn())}var Wn=/^[a-zA-Z0-9/+]+[=]+$/;function zn(e){return ut(e)}function Kn(e,t){return{pageUrn:Xn(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)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(a){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("")}(Hn())}}function Vn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Xn(e){return"urn:li:page:".concat(e)}function Yn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Jn(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 Qn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function $n(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i,r="sequenceNumber";try{i=window.indexedDB.open(r)}catch(e){return Promise.resolve(null)}return new Promise((function(o,a){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(r)||e.createObjectStore(r,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,c=s.transaction(r,"readwrite"),l=c.objectStore(r),u=l.get(1);u.onsuccess=function(){var i=u.result;if(i){if("read"===e)return o(i);if("update"!==e)return o(null);var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e];r>i&&(s[e]=r,c=!0)})),c){var h=l.put(s,1);h.onsuccess=function(){return o(null)},h.onerror=function(){a(h.error)}}}else{var p={sequenceNumber:0};n&&Object.keys(n).forEach((function(e){p[e]=0}));var f=l.add(p);f.onsuccess=function(){return o(0)},f.onerror=function(){a(f.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},i.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Zn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!rn()||"undefined"==typeof Promise}function ei(e,t,n,i){var r=["core-web-tracking:".concat(e)];null==i||i.forEach((function(e){return r.push(e)})),Dn.emit(On,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function ti(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}var ni=function(){function e(t){Je(this,e),Ze(this,"heap",void 0),Ze(this,"comparator",void 0),this.comparator=t,this.heap=[]}return $e(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=Ke(this.heap);return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]];this.heap[0]=t[0],this.heap[e-1]=t[1];for(var n=this.heap.pop(),i=0;2*i+1<this.heap.length;){var r=2*i+1,o=2*i+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[r])?o:r;if(!this.comparator(this.heap[a],this.heap[i]))break;var s=[this.heap[i],this.heap[a]];this.heap[a]=s[0],this.heap[i]=s[1],i=a}return n}},{key:"heapPush",value:function(e){this.heap.push(e);for(var t=this.heap.length-1;t>0;){var n=Math.floor((t-1)/2);if(!this.comparator(this.heap[t],this.heap[n]))break;var i=[this.heap[n],this.heap[t]];this.heap[t]=i[0],this.heap[n]=i[1],t=n}}}]),e}();var ii=function(e){if(!oi(e))return[];for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];"default"!==r&&t.push(r)}return t},ri=function(e,t){var n={},i=[];if(0===e.length)return[n,e];if(0===t.length)return[n,e];var r,o=ze(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transporterKeys,c=We(a,Ae);if(s&&s.length>0){var l,u=ze(s);try{for(u.s();!(l=u.n()).done;){var d,h=l.value;t.includes(h)?(null!==(d=n[h])&&void 0!==d||(n[h]=[]),n[h].push(c)):i.push(c)}}catch(e){u.e(e)}finally{u.f()}}else i.push(c)}}catch(e){o.e(e)}finally{o.f()}return[n,i]};var oi=function(e){return e&&void 0!==e&&Object.keys(e).length>0},ai=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},si="beacons";function ci(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&on()&&t&&n}function li(e,t,n,i,r){"control"!==i&&e.retryConfig&&ci()&&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)}}))}(si);var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{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:si,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:In,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:kn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new Cn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s;return rn()?new An(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||kn},n).send(a):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){ei("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){ei("retry:setup",e)}))}var ui=function(){function e(t){Je(this,e),Ze(this,"host",void 0),this.host=t}return $e(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&&li(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){ei("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();on()&&"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){ei("retry:beacon",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;(!Array.isArray(t)||t.length>0)&&(Zn()?function(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 a=o[r];i.setRequestHeader(a,n.headers[a])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):un(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}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t;return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&ci()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),di="undefined"!=typeof window&&"undefined"!=typeof document,hi=/JSESSIONID="?([^";]+)"?/,pi="",fi=0;function gi(){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?hi:i;if(!pi||Date.now()-fi>n){var o=di&&document.cookie.match(r);pi=o&&o[1]||"",fi=Date.now()}return pi}var vi={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},mi=function(){function e(t){Je(this,e),Ze(this,"networkTransporter",void 0),Ze(this,"inactive",void 0),Ze(this,"mpName",void 0),Ze(this,"endpoint",void 0),Ze(this,"debug",void 0),this.networkTransporter=new ui(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return vi.prod.pattern.test(e)?t=vi.prod.monitorEndpoint:vi.eiValidate.pattern.test(e)?(n=!0,t=vi.eiValidate.monitorEndpoint):vi.ei.pattern.test(e)?t=vi.ei.monitorEndpoint:(t=vi.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return $e(e,[{key:"fireFragment",value:function(e){var t;if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":gi(),"x-restli-protocol-version":"2.0.0"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,Ke(t.failures)),e}),[]);[].concat(Ke(o),Ke(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader;i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}));var s={clientTrackingFailures:i,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function yi(e){return"string"==typeof e}function Ei(e){return yi(e)?e:e.topicName||e.eventName}function bi(e){return yi(e)?e:e.eventName}var wi,_i,Ti=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je(this,e),Ze(this,"host",void 0),Ze(this,"cmoTransporter",void 0),Ze(this,"clientMonitoringInstanceId",Gn()),Ze(this,"currentContext",{pageKey:nt,pageInstance:Kn(nt)}),Ze(this,"appState",{}),Ze(this,"estimatedFragmentSize",0),Ze(this,"fragmentSizeLimit",void 0),Ze(this,"activeFragmentEvent",void 0),Ze(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new mi(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Ci(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return $e(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=ze(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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:bi(t),eventTopic:Ei(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(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0;var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent;i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Ci(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{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=Ii(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Ii(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:Gn(),memberId:0}}}}]),e}();function Si(e){return wi||(wi=new Ti(e)),{getCurrentInstanceId:function(){return wi.getCurrentInstanceId()},logEventGenerated:function(e){return wi.logEventGenerated(e)},logEventReadyToSend:function(e){wi.logEventReadyToSend(e)},logEventSent:function(e){wi.logEventSent(e)},logPersistedEventSent:function(e,t){wi.logEventSent(t,e)},logNetworkResponseCode:function(e){wi.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=wi)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){wi.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){wi.logFailedEvent(t,n,i,r,e)},flush:function(){wi.flush()},destroy:function(){wi=void 0},isDestroyed:function(){return void 0===wi},setCurrentContext:function(e){wi.setCurrentContext(e)},updateAppState:function(e){wi.updateAppState(e)}}}function Ci(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 Ii(e){return Array.isArray(e)?jn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Wn)}(e)?atob(e):jn(zn(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"}(_i||(_i={}));var ki=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Ai="PageViewEvent",xi=function(){function e(t){var n,i,r,o=this;Je(this,e),Ze(this,"host",void 0),Ze(this,"queue",void 0),Ze(this,"preContextQueue",void 0),Ze(this,"debounceTimer",void 0),Ze(this,"unloadHandlers",void 0),Ze(this,"maxQueueSize",void 0),Ze(this,"flushDebounceTime",void 0),Ze(this,"trackingEventListeners",[]),Ze(this,"onHideHandler",(function(){o.forceFlush()})),Ze(this,"networkTransporter",void 0),Ze(this,"clientMonitoringConn",void 0),Ze(this,"clientGlobalSequenceNumberCounter",void 0),Ze(this,"clientTopicLocalSequenceNumberCountersMap",{}),Ze(this,"isTimerRunning",void 0),Ze(this,"trackingEndpoint",void 0),Ze(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track";this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,Dn.on(xn,this.onHideHandler),this.networkTransporter=new ui(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Si(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return $e(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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logFailedEvent(_i.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logPersistedFailedEvent(r,_i.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,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(Ei(e.id)));var n=this.host,i=n.api.Promise,r=n.batching;if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t);return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n;this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,Dn.off(xn,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:Kn(nt),pageKey:nt}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():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;$n("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,ki.forEach((function(n){var i;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){ei("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){$n("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){ei("sequence-number:idb-update",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=Yn(e.meta.context,this.host.api);return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={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(a,{clientBreadcrumbs:n}),a}},{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,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===Ai:e.eventName===Ai}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=e.meta.requestHeader||{referer:s.referrer,path:"".concat(a.pathname).concat(a.search)},f=p.referer,g=p.path,v=null;"string"!=typeof r&&null!==this.host.locale||(v=r);var m={interfaceLocale:v,pageKey:h,referer:f,path:g,isFlushOnCloseBrowserTabEnabled:!Zn()&&(on()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:Gn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=Ei(e.id);if(ki.includes(E)){var b=this.clientTopicLocalSequenceNumberCountersMap[E];"number"==typeof b&&c(y,{clientTopicLocalSequenceNumber:b})}var w={header:c(y,e.meta.header||{}),requestHeader:c(m,e.meta.requestHeader||{})},_=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber;return _&&c(w.header,{clientMonitoringInstanceId:_,clientMonitoringInstanceEventNumber:T}),c(e.body,w)}},{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(0)}),{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(void 0,!0):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(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var r=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=r||i)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,r)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[]);if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3));var o,a,s=[],c=[];t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i);n.trigger(r,e.meta);var o=r.eventInfo.eventName;"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?s.push(r):c.push(r),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var a=Ei(e.id);ki.includes(a)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[a]&&n.clientTopicLocalSequenceNumberCountersMap[a]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(s.length+c.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,r="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(r)].join(", ");null==a||a.logFailedEvent(_i.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,s,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,c,void 0,o))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}();var Oi,Li=function(){function e(t,n){Je(this,e),this.clientBreadcrumbType=t,this.id=n}return $e(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(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL",e.SPONSORED_UPDATE_SERVED="SPONSORED_UPDATE_SERVED",e.GUIDE_ENTRYPOINT="GUIDE_ENTRYPOINT",e.GUIDE_FEEDBACK="GUIDE_FEEDBACK"}(Oi||(Oi={}));var Ri=function(e){function t(){return Je(this,t),Be(this,t,[Oi.FEED_UPDATE_SERVED,Gn()])}return je(t,Li),$e(t)}(),Ni=function(e){function t(){var e;return Je(this,t),Ze(qe(e=Be(this,t,[Oi.UNKNOWN,Gn()])),"content",void 0),Ze(qe(e),"featureBreadcrumbType",void 0),e}return je(t,Li),$e(t)}(),Pi=function(e){function t(){return Je(this,t),Be(this,t,[Oi.SPONSORED_UPDATE_SERVED,Gn()])}return je(t,Li),$e(t)}();function Di(e,t){var n;switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new Ri).builder;break;case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new Pi).builder;break;case"proto.sdui.tracking.TrackingBreadcrumb":n=(new Ni).builder;var i,r=e;try{if(void 0!==r.content.type)i=(new TextDecoder).decode(new Uint8Array(r.content.data));else{if(!(r.content instanceof Uint8Array))throw new Error("Invalid breadcrumb content type");i=(new TextDecoder).decode(r.content)}for(var o=null==e?void 0:e.breadcrumbType,a={content:JSON.parse(i),breadcrumbType:o},s=0,c=Object.entries(a);s<c.length;s++){var l=Fe(c[s],2),u=l[0],d=l[1];oi(d)&&n[u](d)}return n.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}break;default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!n)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));for(var h in e){var p=e[h];null!=p&&n[h](p)}return n.build()}function Mi(e){var t,n=[],i=[],r=ze(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=We(o,xe);if(i.push(s),a){var c=a.$type,l=Di(We(a,Oe),c);n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}function Ui(e){var t,n=new Set,i=[],r=ze(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName);n.has(a)||(n.add(a),i.push(o))}}catch(e){r.e(e)}finally{r.f()}var s=Mi(i);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}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,o=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi);if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=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 s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}var Bi=Object.freeze({__proto__:null,voyagerTransporterConfig:{sponsored:{endpoint:"li/tscp/sct",batching:!1,disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}},default:{endpoint:"li/track",batching:{evenBatchEnabled:!0,maxSize:29},disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}}}});function qi(e){return"retryConfig"in e.host}function Hi(e){return"location"in e.api}var ji,Gi=function(){function e(t,n,i,r,o,a,s,c){var l,u,d,h;if(Je(this,e),Ze(this,"transporter",void 0),Ze(this,"delegate",void 0),Ze(this,"viewSpecs",void 0),Ze(this,"transportConfig",void 0),Ze(this,"dynamicTransporterSupportLixKey",void 0),Ze(this,"domain",void 0),Ze(this,"trackingAppName",void 0),Ze(this,"dynamicTransporterSupportLixValue",void 0),Ze(this,"currentContext",void 0),Ze(this,"appState",void 0),Ze(this,"referrer",void 0),Ze(this,"previousAppContext",void 0),Ze(this,"customTransporters",void 0),Ze(this,"clientMonitoringConn",void 0),Ze(this,"dynamicTransporterSupportEnabled",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=i,this.transportConfig=r,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,o?this.dynamicTransporterSupportEnabled=function(e){return!(!e||"control"===e)}(null===(d=(h=t.host).__getLixTreatment)||void 0===d?void 0:d.call(h,o)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var p=null==Bi?void 0:Bi["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];oi(p)?this.transportConfig=p:this.transportConfig=r}if(n&&n.customTransporterHosts)for(var f in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,f)){var g=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[f]=new xi(this.transporter.host.api.assign(g,n.customTransporterHosts[f]))}if(this.dynamicTransporterSupportEnabled&&oi(this.transportConfig))for(var v=0,m=Object.entries(this.transportConfig);v<m.length;v++){var y,E,b=Fe(m[v],2),w=b[0],_=b[1];_=Ue(Ue({},_),{},{endpoint:a&&null!==(y=_)&&void 0!==y&&y.endpoint?"".concat(ai(a,null===(E=_)||void 0===E?void 0:E.endpoint)):"https://linkedin.com/li/track"});var T=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[w]=new xi(this.transporter.host.api.assign(T,_))}"enabled"===(null===(l=(u=t.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&Hi(t.host)&&(this.clientMonitoringConn=Si(t.host)),oi(i)&&(this.viewSpecs=i)}return $e(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){Dn.before(xn,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){Dn.offBefore(xn,e)}},{key:"checkAndEnablePersistentRetry",value:function(){qi(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=qi(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Yn(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),null==n?void 0:n.pageInstanceTrackingId);if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Yn(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Yn(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=Vn(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),a}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-name]");if(i){var r=i.getAttribute("data-view-name");r&&t.push(r)}n=null==i?void 0:i.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-tracking-scope]");if(i){var r=i.getAttribute("data-view-tracking-scope");if(r)try{var o=JSON.parse(r);o&&o.length&&t.push.apply(t,Ke(o))}catch(e){ei("getViewTrackingScope","Error parsing trackingScope ".concat(r))}}n=null==i?void 0:i.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,i=e.interactionType,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.verticalPosition,u=e.horizontalPosition,d=e.controlUrn,h=void 0===d?"":d,p=e.actionType,f=e.contentTrackingId,g=void 0===f?void 0:f,v=e.clientBreadcrumbs,m=void 0===v?[]:v,y=e.isShadowEvent,E=e.cooloffToken,b=e.testId,w=e.mediaStateInfo,_=r?this.getViewHierarchy(r):[],T=_.length>0?_:a;0!==T.length&&(!this.viewSpecs||null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==T[0]})))||console.warn("No viewHierarchy provided or found from element.");var S=c.length>0?c:this.getViewTrackingScope(r);if(this.dynamicTransporterSupportEnabled){var C=ii(this.transportConfig),I=Fe(ri(S,C),2),k=I[0],A=I[1],x="GenericActionEvent",O={verticalPosition:l,horizontalPosition:u,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:E,mediaStateInfo:w};if(oi(k)){for(var L=0,R=Object.entries(k);L<R.length;L++){var N=Fe(R[L],2),P=N[0],D=Ui(N[1]),M=D.breadcrumbs,U=D.trackingScopes;this.fireEvent(x,Ue(Ue({},O),{},{trackingScopeHierarchy:{entries:U}}),{header:{viewHierarchy:T,testId:b},transporterKey:P},M,y)}if(0===A.length)return Promise.resolve(!0)}var F=Ui(A),B=F.breadcrumbs,q=F.trackingScopes;return this.fireEvent(x,{verticalPosition:l,horizontalPosition:u,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:q},mediaStateInfo:w},{header:{viewHierarchy:T,testId:b}},[].concat(Ke(m),Ke(B)),y)}var H=Ui(S),j=H.breadcrumbs,G=H.trackingScopes;return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:u,controlUrn:h||"",interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:G},mediaStateInfo:w},{header:{viewHierarchy:T,testId:b}},[].concat(Ke(m),Ke(j)),y)}},{key:"fireImpression",value:function(e,t){var n,i=e.manualFireReason,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.viewDurationInMilliseconds,u=void 0===l?0:l,d=e.contentViewFraction,h=void 0===d?1:d,p=e.width,f=void 0===p?-1:p,g=e.height,v=void 0===g?-1:g,m=e.verticalPosition,y=e.horizontalPosition,E=e.impressionTime,b=e.contentTrackingId,w=e.clientBreadcrumbs,_=void 0===w?[]:w,T=e.isShadowEvent,S=e.cooloffToken,C=e.testId,I=e.mediaStateInfo,k=r?this.getViewHierarchy(r):[],A=k.length>0?k:a;0!==A.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==A[0]})))||console.warn("No viewHierarchy provided or found from element.");var x=c.length>0?c:this.getViewTrackingScope(r);if(this.dynamicTransporterSupportEnabled){var O=ii(this.transportConfig),L=Fe(ri(x,O),2),R=L[0],N=L[1],P="GenericImpressionEvent",D={viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:v,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:i,cooloffToken:S,mediaStateInfo:I},M={header:{viewHierarchy:A,testId:C},context:null==t?void 0:t.context};if(oi(R)){for(var U=0,F=Object.entries(R);U<F.length;U++){var B=Fe(F[U],2),q=B[0],H=Ui(B[1]),j=H.breadcrumbs,G=H.trackingScopes;this.fireEvent(P,Ue(Ue({},D),{},{trackingScopeHierarchy:{entries:G}}),Ue(Ue({},M),{},{transporterKey:q}),j,T)}if(0===N.length)return Promise.resolve(!0)}var W=Ui(N),z=W.breadcrumbs,K=W.trackingScopes;return this.fireEvent(P,{viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:v,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:K},mediaStateInfo:I},M,[].concat(Ke(_),Ke(z)),T)}var V=Ui(x),X=V.breadcrumbs,Y=V.trackingScopes,J={header:{viewHierarchy:A,testId:C},context:null==t?void 0:t.context};return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:v,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:Y},mediaStateInfo:I},J,[].concat(Ke(_),Ke(X)),T)}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this;if(!t){var a=Ei(e),s=void 0===t?"undefined":null===t?"null":Ye(t),c='Firing tracking event "'.concat(a,'" with invalid body, you fired "').concat(s,'"');if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(_i.MISSING_REQUIRED_PROPERTIES,e,c,l)}throw new Error(c)}var u=i||[];if(u.length>0){var d=(u=u.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return Li.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:d})}var h=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,r):this.generateEnvelope(e,t,n,r);return this.fireEnvelope(h)}},{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=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.generateEnvelope(e,t,n,r);return i.length>0?this.addBreadcrumbsToEnvelope(o,i):o}},{key:"transformBreadcrumb",value:function(e){try{if(oi(e.content))return Ue({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),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(yi(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,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s=Ei(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(_i.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Kn(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{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),Dn.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 Vn((t||this.currentContext||{pageKey:nt}).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,n){var i="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:i,topicName:"InboundNavigationEvent"}:i;return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||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 a=i&&i.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n,i,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&Yn(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},Hi(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(i=this.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(r=this.host.api.document)||void 0===r?void 0:r.referrer:null===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}]),e}();!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(ji||(ji={}));var Wi,zi,Ki="otel-origin-jet-tag";!function(){function e(t,n){var i,r,o=this;Je(this,e),Ze(this,"core",void 0),Ze(this,"protocol",void 0),Ze(this,"throttleKeySet",new Set),Ze(this,"config",void 0),Ze(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),o.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t;var a=this.core.host.api.location.protocol;this.protocol=a.substring(0,a.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100,useOTel:null!==(r=null==n?void 0:n.useOTel)&&void 0!==r&&r},Dn.on(On,this.reportTransporterError)}$e(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,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=r.sduiScreenId,u=r.componentKey,d=e.message,h=e.name,p=e.stack,f=void 0===p?"":p,g=e.fileName,v=void 0===g?"":g,m=e.lineNumber,y=void 0===m?0:m,E=e.columnNumber,b=void 0===E?0:E,w=this.core.host,_=w.appId,T=w.appVersion,S=w.service,C=w.serviceInstance,I=w.treeID,k=void 0===I?"":I,A=w.api,x=A.Promise,O=A.location,L=O.host,R=O.pathname,N=O.search,P=O.hash,D=void 0===P?"":P;if(this.config.useOTel&&!i.includes(Ki)&&Dn.emit(ji.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={};var M=new Map;Object.keys(c).forEach((function(e){M.set(e.toLowerCase(),c[e])})),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var U=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:_,e:{c:b,l:y,m:d,s:f,t:h,u:v},h:D,l:n.protocol,o:L,p:R,pageKey:e.pageKey,q:N,service:S,serviceInstance:C,serviceVersion:T,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))};if(this.config.throttleTime<0)return U();var F=(h+d+f+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(F)?x.resolve(!1):(this.throttleKeySet.add(F),setTimeout((function(){return n.throttleKeySet.delete(F)}),this.config.throttleTime),U())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Dn.off(On,this.reportTransporterError)}}])}(),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",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(Wi||(Wi={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(zi||(zi={}));var Vi,Xi,Yi,Ji,Qi,$i,Zi,er=(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(Ze(ke={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),Ze(Ze(Ze(Ze(Ze(Ze(ke,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),tr=-1,nr=-2,ir=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],rr={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},or={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},ar="pageLoadId does not exist",sr="rum token passed is invalid",cr=new RegExp(/batch-(\d+)$|enabled$/),lr=function(){function e(){Je(this,e),Ze(this,"userTimingEntries",[]),Ze(this,"longTasks",[]),Ze(this,"resourceTimingEntries",[]),Ze(this,"cdnData",void 0)}return $e(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(dr),cdnData:this.cdnData}}}]),e}(),ur=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function dr(e){return ur.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function hr(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};$i=Object.assign(Object.assign({},n),t),Zi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}($i.root,n);var i=pr(e,Qi.All,(function(){return pr(e,Qi.Two,(function(){return pr(e,Qi.One)}))}));if(i){var r=_r(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>$i.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>$i.maxNumberOfTries)return r;i.counter+=1;var a=Ke(t);a.splice(o,1);var s=gr(a);if(i.visited.has(s))return r;mr(a)&&Tr(a,n)&&(r.push(a),i.visited.set(s,!0),r=r.concat(e(a,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),gr(i)}throw new Error("Selector was not found.")}function pr(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=br(function(e){var t=e.getAttribute("id");return t&&$i.idName(t)?{name:"#"+Ar(t,{isIdentifier:!0}),penalty:0}:null}(o))||br.apply(void 0,Ke(function(e){return Array.from(e.attributes).filter((function(e){return $i.attr(e.name,e.value)})).map((function(e){return{name:"["+Ar(e.name,{isIdentifier:!0})+'="'+Ar(e.value)+'"]',penalty:.5}}))}(o)))||br.apply(void 0,Ke(function(e){return Array.from(e.classList).filter($i.className).map((function(e){return{name:"."+Ar(e,{isIdentifier:!0}),penalty:1}}))}(o)))||br(function(e){var t=e.tagName.toLowerCase();return $i.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=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===Qi.All)s&&(e=e.concat(e.filter(Er).map((function(e){return yr(e,s)}))));else if(t===Qi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Er).map((function(e){return yr(e,s)}))));else if(t===Qi.One){var c=Fe(e=e.slice(0,1),1)[0];s&&Er(c)&&(e=[yr(c,s)])}var l,u=ze(e);try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=$i.seedMinLength&&(i=fr(r,n)))return 1;o=o.parentElement,a++};o&&o!==$i.root.parentElement&&!s(););return i||(i=fr(r,n)),i}function fr(e,t){var n=_r(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=ze(t[0]);try{for(o.s();!(i=o.n()).done;){var a=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(a)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>$i.threshold)return t?t():null;var i,r=ze(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(mr(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function gr(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 vr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function mr(e){switch(Zi.querySelectorAll(gr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(gr(e)));case 1:return!0;default:return!1}}function yr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Er(e){return"html"!==e.name&&!e.name.startsWith("#")}function br(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(wr);return i.length>0?i:null}function wr(e){return null!=e}function _r(e){return Array.from(e).sort((function(e,t){return vr(e)-vr(t)}))}function Tr(e,t){return Zi.querySelector(gr(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(Vi||(Vi={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(Xi||(Xi={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(Yi||(Yi={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Ji||(Ji={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Qi||(Qi={}));var Sr=/[ -,\.\/:-@\[-\^`\{-~]/,Cr=/[ -,\.\/:-@\[\]\^`\{-~]/,Ir=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,kr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Ar(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},kr),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var l=e.charAt(s++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&s<c){var h=e.charCodeAt(s++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:s--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Sr.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&&Cr.test(l)?"\\"+l:l;a+=d}return r&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Ir,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var xr,Or=[{strToFilter:"https://dms.licdn.com/playlist",excludeUrl:["https://dms.licdn.com/playlist/C4D05AQGiUFPvMk-NyQ/mp4-720p-30fp-crf28/0/1670518159491?e=1683741600&v=beta&t=3Wr_tdLLkQDX1kBQKEZW6NERypEqTi2mgZDDxFStjuI"],includeUrl:["https://media.licdn.com/dms/image/C4E0DAQF2IPL6XzFxlw/learning-public-crop_288_512/0/1593208644948?e=1681236000&v=beta&t=YpZr5ZaVoveJv_I6JKHTTZMsysttvKnT364PwDvjJHU"]},{strToFilter:"/sensorCollect/?action=reportMetrics",excludeUrl:["https://www.linkedin.com/sensorCollect/?action=reportMetrics","https://www.linkedin-ei.com/sensorCollect/?action=reportMetrics"],includeUrl:["https://www.linkedin.com/voyager/api/relationships/connectionsSummary/"]},{strToFilter:"/voyager/api/voyagerContentcreationDashGuiderPrompts",excludeUrl:["https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=test&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%C2%90b%C2%A9%C2%87%C3%A8%C3%A2By%C2%8798x%C2%B0%03%C2%9Ft","https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=Subestimar%20la%20necesidad%20de%20la%20estrategia%20de%20comunicaci%C3%B3n%20es%20un%20peligroso%20error%20que%20comenten%20constantemente%20las%20empresas&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%5C%C3%99t%C2%A2%1EZIM%C2%A4%09%13%27%C2%B91C%15"],includeUrl:["https://www.linkedin.com/voyager/api/voyager","https://www.linkedin.com/voyager/api/voyagerContentcreationDashSharebox?action=fetchShareboxWithDraft&decorationId=com.linkedin.voyager.dash.deco.contentcreation.sharebox-26"]},{strToFilter:"/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat",excludeUrl:["https://www.linkedin.com/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"/realtime/connect?rc=1",excludeUrl:["https://www.linkedin.com/realtime/connect?rc=1"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"li/tscp/sct",excludeUrl:["https://www.linkedin.com/li/tscp/sct"]}];function Lr(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 Rr(e){var t=e||performance;return Math.round(t.now())}function Nr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return hr(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Nr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Pr(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,r=e.duration;i.push({entryType:"MEASURE",name:t,startTime:n,duration:r})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,r=e.duration;i.push({entryType:"MARK",name:t,startTime:n,duration:r})})),n&&(e.clearMeasures(),e.clearMarks())),i}function Dr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Mr=function(){function e(t){Je(this,e),Ze(this,"hostApis",void 0),Ze(this,"hostnameProperties",void 0),Ze(this,"usedHostnames",void 0),Ze(this,"abortController",void 0),Ze(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 $e(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Qn(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=Jn(Qn(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(a),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,(xr=xr||i.createElement("a")).href=n,xr.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}));this.pendingPromises.add(a)}}}},{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}();!function(){var e=function(){function e(){Je(this,e)}return $e(e,null,[{key:"x64Add",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Multiply",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}},{key:"x64Xor",value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:"x64Fmix",value:function(t){return t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}},{key:"x64hash128",value:function(t,n){n=n||0;var i,r=(t=t||"").length%16,o=t.length-r,a=[0,n],s=[0,n],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167];for(i=0;i<o;i+=16)c=[255&t.charCodeAt(i+4)|(255&t.charCodeAt(i+5))<<8|(255&t.charCodeAt(i+6))<<16|(255&t.charCodeAt(i+7))<<24,255&t.charCodeAt(i)|(255&t.charCodeAt(i+1))<<8|(255&t.charCodeAt(i+2))<<16|(255&t.charCodeAt(i+3))<<24],l=[255&t.charCodeAt(i+12)|(255&t.charCodeAt(i+13))<<8|(255&t.charCodeAt(i+14))<<16|(255&t.charCodeAt(i+15))<<24,255&t.charCodeAt(i+8)|(255&t.charCodeAt(i+9))<<8|(255&t.charCodeAt(i+10))<<16|(255&t.charCodeAt(i+11))<<24],c=e.x64Multiply(c,u),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c),a=e.x64Rotl(a,27),a=e.x64Add(a,s),a=e.x64Add(e.x64Multiply(a,[0,5]),[0,1390208809]),l=e.x64Multiply(l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e.x64Xor(s,l),s=e.x64Rotl(s,31),s=e.x64Add(s,a),s=e.x64Add(e.x64Multiply(s,[0,5]),[0,944331445]);switch(c=[0,0],l=[0,0],r){case 15:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+14)],48));case 14:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+13)],40));case 13:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+12)],32));case 12:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+11)],24));case 11:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+10)],16));case 10:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+9)],8));case 9:l=e.x64Xor(l,[0,t.charCodeAt(i+8)]),l=e.x64Multiply(l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e.x64Xor(s,l);case 8:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+7)],56));case 7:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+6)],48));case 6:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+5)],40));case 5:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+4)],32));case 4:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+3)],24));case 3:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+2)],16));case 2:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+1)],8));case 1:c=e.x64Xor(c,[0,t.charCodeAt(i)]),c=e.x64Multiply(c,u),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c)}return a=e.x64Xor(a,[0,t.length]),s=e.x64Xor(s,[0,t.length]),a=e.x64Add(a,s),s=e.x64Add(s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e.x64Add(a,s),s=e.x64Add(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}}]),e}(),t=function(){function t(){Je(this,t),this.components=[{key:"webrtc",getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:"enumerateDevices",getData:t.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:t.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:t.productKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"productSub",getData:t.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"cpuClass",getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"oscpu",getData:t.oscpuKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"hardwareConcurrency",getData:t.hardwareConcurrencyKey,alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezone",getData:t.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t.UserAgent,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"webdriver",getData:t.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:"doNotTrack",getData:t.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t.pixelDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"availableScreenResolution",getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:t.localStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t.addBehaviorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"canvas",getData:t.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:t.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:t.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"networkInfo",getData:t.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"audio",getData:t.audioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:t.pluginsComponent,shouldEnforceDataLimit:!0,dataLimit:17e3},{key:"mimetyps",getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t.jsFontsKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return $e(t,[{key:"getFeatures",value:function(e,t){if("function"==typeof e){if(!t)return e({error:"Options not provided"});var n={data:{latency:{acq_time:{}},errors:{}}},i=Date.now(),r={},o=0,a=0;this.components.forEach((function(s){if(!t.excludes[s.key]){var c=s.key;void 0!==s.alias&&null!==s.alias&&s.alias.length>0&&(c=s.alias),o++;var l=function(){r[c]=Date.now();try{s.getData((function(t){if(!1!==s.shouldEnforceDataLimit){var l=s.hasOwnProperty("dataLimit")&&"number"==typeof s.dataLimit?s.dataLimit:1e3,u=JSON.stringify(t).length;u>l&&(n.data.errors[c]="Exceeded current data limit:"+l+" Data length for:"+c+" was found to be:"+u,t={})}n.data[c]=t,n.data.latency.acq_time[c]=Date.now()-r[c],++a>=o&&(n.data.latency.acq_time.allFeatures=Date.now()-i,n.data.allFeaturesCollectionAt=Date.now(),e(n.data,!0))}),t)}catch(e){n.data.errors[c]=String(e)}};"function"==typeof window.requestIdleCallback&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(l):l()}})),n.data.latency.acq_time.allFeatures=Date.now()-i,e(n.data,!1)}}}],[{key:"each",value:function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t(e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}},{key:"map",value:function(e,n){var i=[];return null==e?i:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,r){i.push(n(e,t,r))})),i)}},{key:"getIPs",value:function(e,t){var n={},i=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{optional:[{RtpDataChannels:!0}]}),r=function(e){if(null!==e)try{var t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(e)[1];n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0;var e=i.localDescription;null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||r(e)})),t(Object.keys(n))}};i.onicecandidate=function(e){e.candidate&&r(e.candidate.candidate)},i.onicegatheringstatechange=function(e){"complete"===i.iceGatheringState&&a()},i.createDataChannel("bl");try{i.createOffer().then((function(e){i.setLocalDescription(e)}))}catch(e){i.createOffer((function(e){i.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:"automationKey",value:function(e,n){if(t.getHasLiedBrowser())e("undetected, fake browser");else{var i=t.getBrowserNameAndVersion().split(" ")[0];"Chrome"!==i||!0!==navigator.webdriver?"Firefox"===i&&window.document.documentElement.getAttribute("webdriver")||"_Selenium_IDE_Recorder"in window||"__webdriver_script_fn"in document?e("Selenium"):window.callPhantom||window._phantom?e("PhantomJS"):e(n.NOT_AVAILABLE):e("Selenium")}}},{key:"webRtcKey",value:function(e,n){try{t.getIPs(n,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}},{key:"enumerateDevicesKey",value:function(e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){var t={};return t.id=e.deviceId,t.gid=e.groupId,t.kind=e.kind,t.label=e.label,t})))})).catch((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices}},{key:"audioKey",value:function(e,n){var i=n.audio;if(i.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED);var r=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==r)return e(n.NOT_AVAILABLE);var o=new r(1,44100,44100),a=o.createOscillator();a.type="triangle",a.frequency.setValueAtTime(1e4,o.currentTime);var s=o.createDynamicsCompressor();t.each([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==s[e[0]]&&"function"==typeof s[e[0]].setValueAtTime&&s[e[0]].setValueAtTime(e[1],o.currentTime)})),a.connect(s),s.connect(o.destination),a.start(0),o.startRendering();var c=setTimeout((function(){return o.oncomplete=function(){},o=null,e("audioTimeout")}),i.timeout);o.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),a.disconnect(),s.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"UserAgent",value:function(e){e(navigator.userAgent)}},{key:"webdriver",value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"languageKey",value:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepthKey",value:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemoryKey",value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE;n!==t.NOT_AVAILABLE&&(n+=" GB"),e(n)}},{key:"pixelDepthKey",value:function(e,t){e(window.screen.pixelDepth||t.NOT_AVAILABLE)}},{key:"pixelRatioKey",value:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"screenResolutionKey",value:function(e,n){e(t.getScreenResolution(n))}},{key:"screenOrientationKey",value:function(e,t){if(t.screen.detectScreenOrientation){var n={};n.Enabled=void 0!==screen.orientation,n.Orientation=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,e(n)}else e(t.EXCLUDED)}},{key:"getScreenResolution",value:function(){return{w:window.screen.width,h:window.screen.height}}},{key:"availableScreenResolutionKey",value:function(e,n){e(t.getAvailableScreenResolution(n))}},{key:"getAvailableScreenResolution",value:function(e){return window.screen.availWidth&&window.screen.availHeight?{w:window.screen.availWidth,h:window.screen.availHeight}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date).getTimezoneOffset()/60)}},{key:"timezone",value:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,n){e(t.hasSessionStorage(n))}},{key:"localStorageKey",value:function(e,n){e(t.hasLocalStorage(n))}},{key:"indexedDbKey",value:function(e,n){e(t.hasIndexedDB(n))}},{key:"addBehaviorKey",value:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabaseKey",value:function(e){e(!!window.openDatabase)}},{key:"cpuClassKey",value:function(e,n){e(t.getNavigatorCpuClass(n))}},{key:"oscpuKey",value:function(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t.NOT_AVAILABLE)}},{key:"appVersionKey",value:function(e,t){e(navigator.appVersion||t.NOT_AVAILABLE)}},{key:"appCodeNameKey",value:function(e,t){e(navigator.appCodeName||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date.now())}},{key:"platformKey",value:function(e,n){e(t.getNavigatorPlatform(n))}},{key:"productKey",value:function(e,t){e(navigator.product||t.NOT_AVAILABLE)}},{key:"productSubKey",value:function(e,t){e(navigator.productSub||t.NOT_AVAILABLE)}},{key:"vendorKey",value:function(e,t){e(navigator.vendor||t.NOT_AVAILABLE)}},{key:"vendorSubKey",value:function(e,t){e(navigator.vendorSub||t.NOT_AVAILABLE)}},{key:"doNotTrackKey",value:function(e,n){e(t.getDoNotTrack(n))}},{key:"incognitoKey",value:function(e,n){var i=t.getBrowserNameAndVersion().split(" "),r=i[0],o=i[1],a=n.NOT_AVAILABLE;if("Chrome"===r)if(parseInt(o)<=74){var s=window.RequestFileSystem||window.webkitRequestFileSystem;s?s(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(a)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then((function(t){var n=t.quota;e(a=n<125829120)})):e(a);else if("Safari"===r){if(a=!1,window.safariIncognito)a=!0;else{try{window.openDatabase(null,null,null,null)}catch(e){a=!0}try{window.localStorage.setItem("test",1)}catch(e){a=!0}}void 0===a&&(a=!1,window.localStorage.removeItem("test")),e(a)}else if("Firefox"===r){var c=indexedDB.open("test");c.onerror=function(){e(!0)},c.onsuccess=function(){e(!1)}}else e("IE"===r||"EDGE"===r?!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent):a)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))}},{key:"canvasKey",value:function(e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n.NOT_AVAILABLE)}},{key:"webglKey",value:function(e,n){t.isWebGlSupported()?e(t.getWebglFp(n)):e(n.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document.scripts||null===document.scripts)return e(t.NOT_AVAILABLE);e([])}},{key:"locationKey",value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location.host||t.NOT_AVAILABLE,hostname:location.hostname||t.NOT_AVAILABLE,href:location.href||t.NOT_AVAILABLE,origin:location.origin||t.NOT_AVAILABLE,pathname:location.pathname||t.NOT_AVAILABLE,port:location.port||t.NOT_AVAILABLE,protocol:location.protocol||t.NOT_AVAILABLE})}},{key:"signalsKey",value:function(e){e(t.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return t.getAdBlock()},liedLanguages:function(){return t.getHasLiedLanguages()},liedResolution:function(){return t.getHasLiedResolution()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];n[i]=r(i)}return n}},{key:"flashFontsKey",value:function(e,n){return t.hasSwfObjectLoaded()?t.hasMinFlashInstalled()?n.fonts.swfPath?void t.loadSwfAndDetectFonts((function(t){e(t)}),n):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")}},{key:"jsFontsKey",value:function(t,n){var i=["monospace","sans-serif","serif"],r=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];void 0!==n.fonts&&void 0!==n.fonts.extendedJsFonts&&(r=r.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(r=r.concat(n.fonts.userDefinedFonts)),r=r.filter((function(e,t){return r.indexOf(e)===t}));var o=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},l={},u=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.textContent="mmmmmmmmmmlli",e},d=function(e,t){var n=u();return n.style.fontFamily="'"+e+"',"+t,n},h=function(e){for(var t=!1,n=0;n<i.length;n++)if(t=e[n].offsetWidth!==c[i[n]]||e[n].offsetHeight!==l[i[n]])return t;return t},p=function(){for(var e=[],t=0,n=i.length;t<n;t++){var r=u();r.style.fontFamily=i[t],a.appendChild(r),e.push(r)}return e}();o.appendChild(a);for(var f=0,g=i.length;f<g;f++)c[i[f]]=p[f].offsetWidth,l[i[f]]=p[f].offsetHeight;var v=function(){for(var e={},t=0,n=r.length;t<n;t++){for(var o=[],a=0,c=i.length;a<c;a++){var l=d(r[t],i[a]);s.appendChild(l),o.push(l)}e[r[t]]=o}return e}();o.appendChild(s);for(var m=[],y=0,E=r.length;y<E;y++)h(v[r[y]])&&m.push(r[y]);o.removeChild(s),o.removeChild(a);var b={};b.fontsHash=e.x64hash128(m.join(),23),n.fonts.hashOnly||(b.lists=m),t(b)}},{key:"mimetypesComponent",value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator.mimeTypes){for(var n=navigator.mimeTypes,i=[],r=0;r<n.length;r++){var o={};o.type=n[r].type,o.suffixes=n[r].suffixes,o.description=n[r].description,i.push(o)}e(i)}else e(t.NOT_AVAILABLE)}},{key:"pluginsComponent",value:function(e,n){t.isIE()?n.plugins.excludeIE?e(n.EXCLUDED):e(t.getIEPlugins(n)):e(t.getRegularPlugins(n))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator.plugins||null===navigator.plugins)return e.NOT_AVAILABLE;for(var n=[],i=0,r=navigator.plugins.length;i<r;i++)navigator.plugins[i]&&n.push(navigator.plugins[i]);return n.length>0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),t.map(n,(function(e){var n=t.map(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,n]}))}},{key:"getIEPlugins",value:function(e){var n=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?n=t.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):n.push(e.NOT_AVAILABLE),navigator.plugins&&(n=n.concat(t.getRegularPlugins(e))),n}},{key:"pluginsShouldBeSorted",value:function(e){for(var t=!1,n=0,i=e.plugins.sortPluginsFor.length;n<i;n++){var r=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(r)){t=!0;break}}return t}},{key:"batteryKey",value:function(e,t){void 0!==navigator.getBattery?navigator.getBattery().then((function(t){var n={};n.level=t.level,n.charging=t.charging,n.chargingTime=t.chargingTime,n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}},{key:"networkInfoKey",value:function(e,t){var n=navigator.connection;e(void 0!==n?{downlink:n.downlink,downlinkMax:n.downlinkMax,type:n.type,effectiveType:n.effectiveType,rtt:n.rtt,saveData:n.saveData}:t.NOT_AVAILABLE)}},{key:"touchSupportKey",value:function(e){e(t.getTouchSupport())}},{key:"hardwareConcurrencyKey",value:function(e,n){e(t.getHardwareConcurrency(n))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}},{key:"hasLocalStorage",value:function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}},{key:"hasIndexedDB",value:function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}},{key:"getHardwareConcurrency",value:function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}},{key:"getNavigatorCpuClass",value:function(e){return navigator.cpuClass||e.NOT_AVAILABLE}},{key:"getNavigatorPlatform",value:function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}},{key:"getDoNotTrack",value:function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}}},{key:"getCanvasFp",value:function(t){var n={},i=document.createElement("canvas");i.width=2e3,i.height=200,i.style.display="inline";var r=i.getContext("2d");return r.rect(0,0,10,10),r.rect(2,2,6,6),n.canvasWinding=!1===r.isPointInPath(5,5,"evenodd")?"yes":"no",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",t.dontUseFakeFontInCanvas?r.font="11pt Arial":r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),i.toDataURL&&(n.canvasHash=e.x64hash128(i.toDataURL(),23)),n}},{key:"getWebglFp",value:function(n){var i,r=function(e){return i.clearColor(0,0,0,1),i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(i=t.getWebglCanvas()))return null;var o={},a=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,a);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);i.bufferData(i.ARRAY_BUFFER,s,i.STATIC_DRAW),a.itemSize=3,a.numItems=3;var c=i.createProgram(),l=i.createShader(i.VERTEX_SHADER);i.shaderSource(l,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),i.compileShader(l);var u=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(u,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),i.compileShader(u),i.attachShader(c,l),i.attachShader(c,u),i.linkProgram(c),i.useProgram(c),c.vertexPosAttrib=i.getAttribLocation(c,"attrVertex"),c.offsetUniform=i.getUniformLocation(c,"uniformOffset"),i.enableVertexAttribArray(c.vertexPosArray),i.vertexAttribPointer(c.vertexPosAttrib,a.itemSize,i.FLOAT,!1,0,0),i.uniform2f(c.offsetUniform,1,1),i.drawArrays(i.TRIANGLE_STRIP,0,a.numItems);try{o.webglHash=e.x64hash128(i.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o;o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=i.getSupportedExtensions()||[],o["webgl aliased line width range"]=r(i.getParameter(i.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=r(i.getParameter(i.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=i.getParameter(i.ALPHA_BITS),o["webgl antialiasing"]=i.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=i.getParameter(i.BLUE_BITS),o["webgl depth bits"]=i.getParameter(i.DEPTH_BITS),o["webgl green bits"]=i.getParameter(i.GREEN_BITS),o["webgl max anisotropy"]=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(i),o["webgl max combined texture image units"]=i.getParameter(i.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=i.getParameter(i.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=i.getParameter(i.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=i.getParameter(i.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=i.getParameter(i.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=r(i.getParameter(i.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=i.getParameter(i.RED_BITS),o["webgl renderer"]=i.getParameter(i.RENDERER),o["webgl shading language version"]=i.getParameter(i.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=i.getParameter(i.STENCIL_BITS),o["webgl vendor"]=i.getParameter(i.VENDOR),o["webgl version"]=i.getParameter(i.VERSION);try{var d=i.getExtension("WEBGL_debug_renderer_info");d&&(o["webgl unmasked vendor"]=i.getParameter(d.UNMASKED_VENDOR_WEBGL),o["webgl unmasked renderer"]=i.getParameter(d.UNMASKED_RENDERER_WEBGL))}catch(e){}return i.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(r){t.each(["precision","rangeMin","rangeMax"],(function(t){var a=i.getShaderPrecisionFormat(i[n+"_SHADER"],i[r+"_"+e])[t];"precision"!==t&&(t="precision "+t);var s=["webgl ",n.toLowerCase()," shader ",r.toLowerCase()," ",e.toLowerCase()," ",t].join("");o[s]=a}))}))}))})),o):o}},{key:"getWebglVendorAndRenderer",value:function(){try{var e=t.getWebglCanvas(),n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}},{key:"getAdBlock",value:function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}},{key:"getHasLiedLanguages",value:function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}},{key:"getHasLiedResolution",value:function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight}},{key:"getHasLiedOs",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,i=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return i.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(i.indexOf("linux")>=0||i.indexOf("android")>=0||i.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(i.indexOf("mac")>=0||i.indexOf("ipad")>=0||i.indexOf("ipod")>=0||i.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(i.indexOf("win")<0&&i.indexOf("linux")<0&&i.indexOf("mac")<0&&i.indexOf("iphone")<0&&i.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var i,r=eval.toString().length;if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===r&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(t){try{t.toSource(),i=!0}catch(t){i=!1}}return i&&"Firefox"!==e&&"Other"!==e}},{key:"isCanvasSupported",value:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}},{key:"isWebGlSupported",value:function(){if(!t.isCanvasSupported())return!1;var e=t.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e}},{key:"isIE",value:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))}},{key:"hasSwfObjectLoaded",value:function(){return void 0!==window.swfobject}},{key:"hasMinFlashInstalled",value:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")}},{key:"addFlashDivNode",value:function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,n){window.___fp_swf_loaded=function(t){e(t)};var i=n.fonts.swfContainerId;t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,i,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}},{key:"getWebglCanvas",value:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}}]),t}(),n={getItem:function(e){var t=this.getCookieString().match(this._cookieRegEx(e));return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t<e.length;t++){var n=e[t].split("=");if(n.length>1&&"bcookie"===n[0]){var i=n[n.length-1];return i.substring(2,i.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain(),r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/";if(n){var o=["".concat(e,"=").concat(t,"; path=").concat(r,"; secure=true")];"string"==typeof i&&i.length>0&&o.push("domain="+i),o.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=o.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0)),this.setItem(e,"",new Date(0),"");var t=this.getDomain().split(".");t.length>2&&(t=t.slice(t.length-2));var n=t.join(".");this.setItem(e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+"=([^;]*)")},getCookieString:function(){return document.cookie},getDomain:function(){return window.location?window.location.hostname:""}},r="HUMAN",o="DFP_WEB",a="RECAPTCHA_V3_WEB";function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=n?n.querySelector("#"+e):document.getElementById(e);if(i){var r=i.firstChild.nodeValue;if(t&&i.parentNode.removeChild(i),r)try{return JSON.parse(r)}catch(e){return}}}function c(e,t,n){var i=new XMLHttpRequest,r=n?"https://www.linkedin.com":"https://www.linkedin-ei.com";r+=String(t),i.open("POST",r),i.setRequestHeader("Content-Type","application/json"),i.send(e)}function l(e){var t=document.getElementsByClassName(e);return void 0!==t&&t.length>=1}var u=function(){function e(){Je(this,e)}return $e(e,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode.apply(null,e))}},{key:"importPk",value:function(t,n,i){var r=window.atob(n),o=e.str2ab(r);return window.crypto.subtle.importKey(t,o,{name:"RSA-OAEP",hash:"SHA-256"},!0,i)}},{key:"wrap",value:function(t,n){return e.importPk("spki",n,["wrapKey"]).then((function(e){return window.crypto.subtle.wrapKey("raw",t,e,{name:"RSA-OAEP"})})).then((function(t){return e.encode(new Uint8Array(t))}))}},{key:"wrapErrorResult",value:function(e){var t={a:null,b:null,c:null};return t.error=e,t}},{key:"encryptWithKey",value:function(t,n,i){var r={a:null,b:null,c:null};try{var o=Date.now();if("string"!=typeof n||"number"!=typeof i)throw new Error("ec1");var a=window.crypto.getRandomValues(new Uint8Array(16));r.a=e.encode(a);var s=(new TextEncoder).encode(t),c="AES-CBC";return window.crypto.subtle.generateKey({name:c,length:256},!0,["encrypt","decrypt"]).then((function(t){return window.crypto.subtle.encrypt({name:c,iv:a},t,s).then((function(a){return e.wrap(t,n).then((function(t){return r.b=t,r.c=e.encode(new Uint8Array(a)),r.d=Date.now()-o,r.e=i,r}))}))})).catch((function(e){return r.error=String(e),r}))}catch(t){return r.error=String(t),Promise.resolve(r)}}},{key:"encryptWithKeyIds",value:function(t,n,i,r){if("string"!=typeof n||"string"!=typeof i)return Promise.resolve(e.wrapErrorResult("Error: ec2"));var o=s(n),a=parseInt(s(i));return(""===o||"string"!=typeof o||"number"!=typeof a||Number.isNaN(a))&&(o=r?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB",a=r?2:1),e.encryptWithKey(t,o,a)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,i,r,o){return null!=r&&"string"==typeof r.publicKey&&"number"==typeof r.publicKeyVersion?e.encryptWithKey(t,r.publicKey,r.publicKeyVersion):e.encryptWithKeyIds(t,n,i,o)}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return("00"+e.toString(16)).slice(-2)})).join("")})).catch((function(){return""}))}}]),e}(),d=function(){var e={compressToBase64:function(t){if(null==t)return"";var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v==t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0==--d&&(d=Math.pow(2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v==t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0==--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v==t-1){f.push(n(g));break}v++}return f.join("")}};return e}(),h={apfcTypes:1,collectionType:2,trackingId:3},p={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},f={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},g={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},v={type:1,description:2,suffixes:3},m={canvasHash:1,canvasWinding:2},y={label:1,gid:2,id:3,kind:4},E={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},w={charging:1,dischargingTime:2,level:3,chargingTime:4},_={touchStart:1,touchEvent:2,maxTouchPoints:3},T={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},S={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},C={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},I={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47};function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(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 x=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),O=/^fs_/;var L,R,N=/(?![^(]*\)),/,P=function e(t){var n=function(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+Ye(e)+".");var t,n,i=x.exec(e);return i&&(t=i[1].replace(O,""),n=i[2]),{id:n,type:t}}(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(N),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o},D=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},M={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},U="GUEST",F="MEMBER",B="ENTERPRISE_UNBOUND",q=(k(L={},U,"li_gc"),k(L,F,"li_mc"),k(L,B,"li_ec"),L);k(R={},U,"mypreferences/g/guest-cookies"),k(R,F,"settings/member-cookies"),k(R,B,"mypreferences/e/enterprise-cookies");var H,j,G,W,z=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 function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},M)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===r},K=(H=[M.ADVERTISING,M.ANALYTICS_AND_RESEARCH,M.FUNCTIONAL],j=[0,1,2,0],G=function(e){for(var t={},n=0;n<H.length;n++)t[H[n]]=j[e>>2*n&3];return t},W=function(e){var t=0;return e>=0&&e<=3&&(t=j[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),i=e.match(n);if(!i)return{error:"Invalid consent body encoding",consent:new z};var r=G(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=W(parseInt(i[3],10));return{error:null,consent:new z(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=P(e);if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t);if(!i)return{error:"Invalid enterprise profile urn provided",consent:new z};var r=i.enterpriseAccountId,o=i.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a);if(!s)return{error:"Invalid consent body encoding",consent:new z};var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),4!==n.length);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,4);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)?A(e,4):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),i=t[1],a=t[2],s=t[3];return i===r&&a===o&&s===n}))[0];if(!c)return{error:null,consent:new z};var l=G(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=W(parseInt(s[3],10));return{error:null,consent:new z(l,u,B,d)}}}),V=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),X=function(e){var t={};for(var n in M)t[n]=e;return{error:null,consent:new z(t,null,null,e)}},Y=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var o,a=null;try{a=(o=e,"undefined"==typeof atob&&void 0!==i?i.from(o,"base64").toString("binary"):atob(o)).match(V)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new z};var s=parseInt(a[1],10),c=a[2];return 1===s?t===B?K.parseConsentBodyEnterpriseUnbound(c,n,r):K.parseConsentBody(c,t):{error:"Invalid encoded consent version ".concat(s),consent:new z}},J=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]);function Q(e){var t;try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var $=function(){function e(t,n){Je(this,e),this.callback=t,this.config=n,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return $e(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this;window.fetch=function(n,i){try{var r=Q(n);t.runActionInterceptorLogic(r)}catch(e){}return e(n,i)}}},{key:"setupInterceptorForOpen",value:function(){var e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send,n=this;XMLHttpRequest.prototype.open=function(t,n){try{this._sanitizedPath=Q(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=J.get(e),n=this.callback;void 0!==t&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute&&window.grecaptcha.enterprise.ready((function(){var e=t||"default";window.grecaptcha.enterprise.execute("6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",{action:e}).then((function(t){var i={token:t,expectedAction:e};n(a,JSON.stringify(i))})).catch((function(e){var t={error:e};n(a,JSON.stringify(t))}))}))}}}]),e}(),Z={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:"/apfc/collect",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:"n/a",ERROR:"err",EXCLUDED:"excluded",useRequestIdleCallBack:!0},ee=!1;try{var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.enterpriseProfileUrn,r=n.enterpriseAppInstanceId;if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new z};t=document.cookie}if(i&&!r||!i&&r)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new z};if(!(e!==B||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new z};if(!e){var o=D(q[B],t);if(o&&i&&r){var a=Y(o,B,i,r);if(a.consent.userMode===B||a.error)return a}e=D("liap",t)?D(q[F],t)?F:U:D(q[U],t)?U:F}return function(e,t,n,i){var r=D(q[e],t);return r?Y(r,e,n,i):D(q[U],t)||D(q[F],t)||D(q[B],t)?X(2):X(1)}(e,t,i,r)}().consent.optedInConsentMap;ee=te[M.FUNCTIONAL]}catch(e){}var ne=function(){function e(t,n,i){var r=this;if(Je(this,e),void 0!==n&&void 0!==t&&"enabled"===t.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(n,i):window.addEventListener("load",(function(){r.initializeGlobalIntegration(n,i)}));else if(void 0!==t){var o=JSON.parse(JSON.stringify(Z));l("settings-iframe")||l("setting-headline")||(o.useRequestIdleCallBack=!1),this.initialize(o,t)}else{var a=JSON.parse(JSON.stringify(Z));l("settings-iframe")||l("setting-headline")||(a.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(a):window.addEventListener("load",(function(){r.initialize(a)}))}}return $e(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new $(e,t),globalThis.apfcInterceptorInitialized=!0),this.checkConfigAndInitializeAllIntegration(e,t)}},{key:"isDfCollectionRequired",value:function(e){return"number"!=typeof e.samplingTimeWindowInMillis||e.samplingTimeWindowInMillis<=0||""===n.getItem("df_ts")}},{key:"checkConfigAndInitializeAllIntegration",value:function(e,t){!0!==globalThis.pauseApfc&&(globalThis.pauseApfc=!0,setTimeout((function(){globalThis.pauseApfc=!1}),3e4),!0===t.enableOnDemandMode?(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t)):(this.deleteDfCookieIfRequired(t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this.addDfCookieIfRequired(t))))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes("DNA")||!0===t.dnaIntegrationEnabled&&!0!==globalThis.dnaIntegrationCompleted)&&this.intializeGlobalIntegration(Z,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(a)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(),globalThis.reCaptchaV3InitializationComplete=!0),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(r)||!0===t.humanIntegrationEnabled&&!0!==globalThis.humanIntegrationCompleted)&&this.initializeHumanIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this.intializeDfpIntegration(e,t)}},{key:"deleteDfCookieIfRequired",value:function(e){var t="number"!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis;if(""!==n.getItem("df_ts")){var i=Date.now(),r=Number(n.getItem("df_ts"));(!1===ee||i-r>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ee&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){var t=Date.now(),i=new Date;i.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,i)}}},{key:"initialize",value:function(e,n){if(null!=n||null!=s("apfcDfPK")){var i=this.reqid,r=this.pageInstance,o=this.isProd();return(new t).getFeatures((function(t,a){t.reqid=i,t.pageInstance=r,t.fullFeatureCollection=a,u.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then((function(t){globalThis.apfcDf=t,!0===a&&c(JSON.stringify(t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(i,r,o){var a=this.isProd();return(new t).getFeatures((function(t,s){if(!0===s){if(e.prototype.populateFpDataCookie(t,o),!0===o.isSyncEnabledWithHeaders){var l=JSON.stringify(function(e){var t={};return function(e){var t=e.webgl,n={};if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){for(var i=t.extensions,r=[],o=0;o<i.length;o++){var a=i[o];r[o]=S.hasOwnProperty(a)?S[a]:a}t.extensions=r}null!=t&&(Object.keys(T).forEach((function(e){n[T[e]]=t[e]})),e.webgl=n)}(e),function(e){var t=e.touchSupport,n={};null!=t&&(Object.keys(_).forEach((function(e){n[_[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e.battery,n={};null!=t&&(Object.keys(w).forEach((function(e){n[w[e]]=t[e]})),e.battery=n)}(e),function(e){var t=e.screenOrientation,n={};null!=t&&(Object.keys(b).forEach((function(e){n[b[e]]=t[e]})),e.screenOrientation=n)}(e),function(e){var t=e.fonts,n={};if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){for(var i=t.lists,r=[],o=0;o<i.length;o++){var a=i[o];r[o]=C.hasOwnProperty(a)?C[a]:a}t.lists=r}null!=t&&(Object.keys(E).forEach((function(e){n[E[e]]=t[e]})),e.fonts=n)}(e),function(e){var t=e.enumerateDevices,n=[];if(null!=t){for(var i=function(){var e=t[r],i={};Object.keys(y).forEach((function(t){i[y[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i();e.enumerateDevices=n}}(e),function(e){var t=e.canvas,n={};null!=t&&(Object.keys(m).forEach((function(e){n[m[e]]=t[e]})),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[];if(null!=t){for(var i=function(){var e=t[r],i={};Object.keys(v).forEach((function(t){i[v[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i();e.mimetyps=n}}(e),function(e){var t=e.signals,n={};null!=t&&(Object.keys(g).forEach((function(e){n[g[e]]=t[e]})),e.signals=n)}(e),function(e){var t=e.networkInfo,n={};null!=t&&(Object.keys(f).forEach((function(e){n[f[e]]=t[e]})),e.networkInfo=n)}(e),function(e){var t=e.location,n={};null!=t&&(Object.keys(p).forEach((function(e){n[p[e]]=t[e]})),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={};null!=t&&(Object.keys(h).forEach((function(e){n[h[e]]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(I).forEach((function(n){t[I[n]]=e[n]})),t}(t));globalThis.apfcDfH=(k=l,d.compressToBase64(k))}u.encryptWithKeyIds(JSON.stringify(t),"apfcDfPK","apfcDfPKV").then((function(e){if(globalThis.apfcDf=e,!0===o.isSyncEnabledWithHeaders||!0===o.isSyncEnabledWithCb){var t=function(e){var t={};t[btoa("DNA_ENCRYPTED")]=e;var i={};return i.payload=t,i.browserId=n.getBcookie(),i}(e);c(JSON.stringify(t),i.gloablIntegrationDataCollectionPath,a)}r("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}var k}),i)}},{key:"intializeDfpIntegration",value:function(t,i){var r=n.getBcookie(),a=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a";try{if(RegExp("^[\\w-]*$").test(r)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(r,"&instanceId=").concat(a),c=document.createElement("script");c.setAttribute("src",s),c.setAttribute("id","dfpIframeScript"),c.addEventListener("load",(function(){return window.dfp.doFpt(document)})),document.getElementsByTagName("head")[0].appendChild(c);var l={sessionId:r,instanceId:a};e.prototype.populateFpDataCookie(l,i),t(o,JSON.stringify(l))}else{var u={error:"Invalid session_id: "+r};t(o,JSON.stringify(u))}}catch(i){var d={error:i};t(o,JSON.stringify(d))}globalThis.dfpIntegrationCompleted=!0}},{key:"initializeHumanIntegration",value:function(t,i){var o=i.treeId,a=Date.now(),s=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",c=n.getBcookie(),l="https://li.protechts.net/index.html?ts="+a+"&r_id="+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping";u.generateSha256HashOrDefault(c).then((function(n){""!==(c=n)&&(l+="&d_id="+c);try{var u=document.createElement("iframe");u.setAttribute("id","humanThirdPartyIframe"),u.setAttribute("src",l),u.setAttribute("sandbox","allow-same-origin allow-scripts"),u.setAttribute("aria-hidden","true"),u.style.height="0px",u.style.width="0px",u.style.border="none",u.style.position="absolute",u.style.left="-9999px",document.body.appendChild(u);var d={app_id:s,ts:a,d_id:c,r_id:o,uc:"scraping"};e.prototype.populateFpDataCookie(d,i),t(r,JSON.stringify(d))}catch(e){var h={error:e};t(r,JSON.stringify(h))}})),globalThis.humanIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(){var e=document.createElement("script");e.src="https://www.google.com/recaptcha/enterprise.js?render=6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",document.head.appendChild(e)}}]),e}();ne.prototype.reentry=function(e){globalThis.triggerApfc=null,new ne(e)},ne.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new ne({globalIntegration:"enabled"},e,t)},ne.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=ne.prototype.extractDataCookie();!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),ne.prototype.reentryGlobalIntegration(e,t))}},ne.prototype.extractDataCookie=function(){var e=n.getItem("li_apfcdc");if(n.deleteItem("li_apfcdc"),!e||""===e)return null;var t=(e=atob(e)).split(":::");if(t.length<5)return null;var i={};return i.trackingId=t[0],i.memberId=t[1],i.sessionUrn=t[2],i.collectionType=t[3],i.apfcTypes=t[4].split(","),i},ne.prototype.populateFpDataCookie=function(e,t){"object"==Ye(e)&&"object"==Ye(t)&&(e.FPDataCookie=t.fpDataCookie)},ne.prototype.isProd=function(){var e=location&&location.host;return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")},ne.prototype.isEmpty=function(e){return e&&0===Object.keys(e).length},"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&(void 0===globalThis.triggerDnaApfcEvent&&(globalThis.triggerDnaApfcEvent=ne.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=ne.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||2>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=2,globalThis.triggerDnaApfcEventOnDemandVersioned=ne.prototype.reentryGlobalIntegrationOnDemand),new ne)}();var Ur=function(){function e(){Je(this,e)}return $e(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemandVersioned&&globalThis.triggerDnaApfcEventOnDemandVersioned(t,e)}catch(e){}}}]),e}(),Fr=function(){function e(t,n,i,r,o,a,s,c,l,u){Je(this,e),Ze(this,"hostApis",void 0),Ze(this,"statics",void 0),Ze(this,"options",void 0),Ze(this,"allowTimingOrigin",void 0),Ze(this,"fireResourceLoadEvent",void 0),Ze(this,"isTracerEnabled",void 0),Ze(this,"responseRleCache",void 0),Ze(this,"fireApfcEvent",void 0),Ze(this,"abuseDeviceSignalCollectionConfig",void 0),Ze(this,"trackingEndpoint",void 0),Ze(this,"collectResourceTimings",void 0),Ze(this,"collectCdnData",void 0),Ze(this,"perfObserver",void 0),Ze(this,"renderTimings",new Map),Ze(this,"urlToTreeId",new Map),Ze(this,"cdnDataProvider",void 0),Ze(this,"observables",new lr),Ze(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireResourceLoadEvent=o,this.isTracerEnabled=a,this.responseRleCache=s,this.fireApfcEvent=c,this.abuseDeviceSignalCollectionConfig=l,this.trackingEndpoint=u,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Mr(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return $e(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(xr=xr||t.createElement("a")).href=e,xr.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:Lr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e);if(i&&(i.renderEnd=i.renderEnd||Lr(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void ei("ViewLoadEvent",ar)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):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:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null);i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics;var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId;return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var i=e.isInitial,r=e.immediate,o=this.hostApis.assign;if(i){var a=qr(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,ir.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var h=this.collectAsynchronousData(!0);return o(t.cdnData,h.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,l={};l.resourceKey=n,l.isNetwork=!!i&&0!==i,l.loadType=r||"unknown",l.timeOrigin=t;var u=[];Object.keys(rr).forEach((function(t){var n;t in Yi&&void 0!==e[t]&&u.push({resourceProgressType:rr[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=or[o];d.nextHopProtocol=null!=h?h:"UNKNOWN",d.transferSize=i,d.encodedBodySize=a,d.decodedBodySize=s,l.resourceNetworkContext=d,l.requestStart=c;try{var p,f,g=new URL(n),v=g.pathname+g.search+g.hash;return null===(p=this.responseRleCache)||void 0===p||p.offerResourceLoadEvent(v,l),null===(f=this.responseRleCache)||void 0===f?void 0:f.flushCacheByUrl(v)}catch(e){var m,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n);return e instanceof Error?(e.message="".concat(y," ").concat(e.message),ei("ResourceLoadEvent",e)):ei("ResourceLoadEvent",y),null===(m=this.responseRleCache)||void 0===m?void 0:m.flushCacheByUrl()}}},{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=Pr(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,qr(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?Jn(r,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;try{var n=this.abuseDeviceSignalCollectionConfig||{},i=n.isDnaIntegrationLixEnabled,r=n.isHumanIntegrationLixEnabled,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled,u=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled;if(r||o||i||c||l||u||d){var h,p,f={treeId:null!==(h=null===(p=this.statics.treeId)||void 0===p?void 0:p.toString())&&void 0!==h?h:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l,recaptchaV3IntegrationEnabled:u,enableNetworkInterceptor:d};(!t||t&&s||c||l)&&Ur.collectFeatures(f,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var i=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;i&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var r=e.entryType,o=e.name,a=e.startTime,s=e.duration;"resource"===r?n.processSingleResourceTiming(e,t):"mark"===r?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),"mark_meaningful_paint_end"!==o||i||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===r?n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}):"longtask"===r&&n.observables.longTasks.push({duration:s,name:o,startTime:a})}))})),this.observables.userTimingEntries=Pr(this.hostApis.performance,this.options,!1);var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{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(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this;if(this.collectResourceTimings){this.options["enable-otel"]&&Dn.emit(ji.INTERNAL_OTEL_RESOURCE,{resourceTiming:e}),this.observables.resourceTimingEntries.push(e);var i=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!i&&!function(e){for(var t=0,n=Or;t<n.length;t++){var i=n[t];if(i.strToFilter&&-1!==e.indexOf(i.strToFilter))return!0;if(i.pattern&&i.pattern.test(e))return!0}return!1}(e.name)){var r=this.collectResourceLoadEvent(e,t);r&&r.forEach((function(e){return n.fireResourceLoadEvent(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:Dr(this.renderTimings),networkInformationMetrics:Br(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function Br(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 qr(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,ir.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var Hr=function(){function e(t,n,i){Je(this,e),Ze(this,"featureName",void 0),Ze(this,"trackingCore",void 0),Ze(this,"rumConfig",void 0),Ze(this,"observing",!1),Ze(this,"basePageTreeId",void 0),Ze(this,"startPageInstance",void 0),Ze(this,"startMemory",void 0),Ze(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return $e(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)||Kn(nt),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:Rr(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}();Ze(Hr,"checkpoints",[1,3,10,30,90,180,300]);var jr,Gr,Wr,zr,Kr,Vr=$e((function e(t,n,i){Je(this,e),Ze(this,"webUIFramework",void 0),Ze(this,"timeSource",void 0),Ze(this,"isSinglePageApp",void 0),Ze(this,"appRenderMode",void 0),Ze(this,"isAppRenderFailed",void 0),Ze(this,"pageLoadMode","INITIAL"),Ze(this,"isSSL",void 0),Ze(this,"treeId",void 0),Ze(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})),Xr=function(){function e(t){Je(this,e),Ze(this,"isPEMTracerEnabled",void 0),Ze(this,"responseContextMap",new Map),Ze(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return $e(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n;null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new ni((function(e,t){return e.requestTime<t.requestTime}));i.heapPush(t),this.responseContextMap.set(e,i)}}},{key:"offerResourceLoadEvent",value:function(e,t){if(this.resourceLoadEventsMap.has(e)){var n;null===(n=this.resourceLoadEventsMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new ni((function(e,t){return e.requestStart<t.requestStart}));i.heapPush(t),this.resourceLoadEventsMap.set(e,i)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),i=null==t?void 0:t.heappop(),r=null==n?void 0:n.heappop();return this.mergeRleAndRes(i,r)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart;var n=We(e,Le),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=We(t,Re);return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=Ue(Ue({},n.resourceNetworkContext),a),ti(n)}}},{key:"deleteEntryByRequestUrl",value:function(e){this.resourceLoadEventsMap.delete(e),this.responseContextMap.delete(e)}},{key:"canFlush",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e);return n&&t&&n.heapsize()>0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[];if(e){var n,i=ze(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=[].concat(Ke(t),Ke(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=ze(o);try{for(s.s();!(a=s.n()).done;){var c,l=a.value,u=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear();u&&(t=[].concat(Ke(t),Ke(u.map((function(e){return e.requestStart,ti(We(e,Ne))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[];if(!e)return n;if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,ti(We(e,Pe))})))||n;if(this.canFlush(e)){for(var i=this.responseContextMap.get(e);i&&i.heapsize()>0;){var r=this.mergeAndConsume(e);r&&n.push(r)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),Yr=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)}},Jr=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){}},Qr=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)},$r=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Zr=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)))}},eo=-1,to=function(){return"hidden"===document.visibilityState?0:1/0},no=function(){Qr((function(e){var t=e.timeStamp;eo=t}),!0)},io=function(){return eo<0&&(eo=to(),no(),$r((function(){setTimeout((function(){eo=to(),no()}),0)}))),{get firstHiddenTime(){return eo}}},ro=!1,oo=-1,ao=function(e,t){ro||(function(e,t){var n,i=io(),r=Yr("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:Jr("paint",o);(a||s)&&(n=Zr(e,r,t),a&&o(a),$r((function(i){r=Yr("FCP"),n=Zr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){oo=e.value})),ro=!0);var n,i=function(t){oo>-1&&e(t)},r=Yr("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=Jr("layout-shift",s);c&&(n=Zr(i,r,t),Qr((function(){c.takeRecords().map(s),n(!0)})),$r((function(){o=0,oo=-1,r=Yr("CLS",0),n=Zr(i,r,t)})))},so={passive:!0,capture:!0},co=new Date,lo=function(e,t){jr||(jr=t,Gr=e,Wr=new Date,po(removeEventListener),uo())},uo=function(){if(Gr>=0&&Gr<Wr-co){var e={entryType:"first-input",name:jr.type,target:jr.target,cancelable:jr.cancelable,startTime:jr.timeStamp,processingStart:jr.timeStamp+Gr};zr.forEach((function(t){t(e)})),zr=[]}},ho=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(){lo(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,so),removeEventListener("pointercancel",i,so)};addEventListener("pointerup",n,so),addEventListener("pointercancel",i,so)}(t,e):lo(t,e)}},po=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,ho,so)}))},fo=function(e,t){var n,i=io(),r=Yr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=Jr("first-input",o);n=Zr(e,r,t),a&&Qr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&$r((function(){var i;r=Yr("FID"),n=Zr(e,r,t),zr=[],Gr=-1,jr=null,po(addEventListener),i=o,zr.push(i),uo()}))},go={},vo=function(e,t){var n,i=io(),r=Yr("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=Jr("largest-contentful-paint",o);if(a){n=Zr(e,r,t);var s=function(){go[r.id]||(a.takeRecords().map(o),a.disconnect(),go[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Qr(s,!0),$r((function(i){r=Yr("LCP"),n=Zr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,go[r.id]=!0,n(!0)}))}))}))}},mo=["LCP","FID","CLS"],yo={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},Eo={},bo=function(){var e;if(!di)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}(),wo=!1,_o=new Set,To={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function So(){var e=!0===window.__test__resetWebVitalsState;if(!wo||e){e&&(_o=new Set),mo.forEach(Co);var t=Symbol();Kr=t,[vo,fo,ao].forEach((function(e){return e(Io.bind(null,t),!0)})),[vo,fo,ao].forEach((function(e){return e(ko.bind(null,t))})),wo=!0}}function Co(e){Eo[e]={name:e,verboseName:yo[e]||e,value:tr,updateHistory:[]};var t=To[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(Eo[e].value=nr)}function Io(e,t){if(e===Kr){var n=Eo[t.name],i=Rr();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),_o.forEach((function(e){return e(t,i,!1)}))}}function ko(e,t){e===Kr&&_o.forEach((function(e){return e(t,Rr(),!0)}))}var Ao,xo=function(){function e(t,n){var i=this;Je(this,e),Ze(this,"basePageTreeId",void 0),Ze(this,"basePageKey",void 0),Ze(this,"observing",!1),Ze(this,"appContextMap",new Map),Ze(this,"rumConfig",void 0),Ze(this,"trackingCore",void 0),Ze(this,"onMetricUpdate",(function(e,t,n){var r;i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return $e(e,[{key:"startObserving",value:function(){var e,t,n=this;So(),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",mo.forEach((function(e){var t;(null===(t=Eo[e])||void 0===t?void 0:t.value)===nr&&n.reportMetric(e)})),t=this.onMetricUpdate,_o.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,_o.delete(e)}},{key:"reportMetric",value:function(e){var t=Eo[e];if(t){var n={name:yo[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:bo},a=null;switch(n.name){case"LCP":a=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],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Nr(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(a.url=o.url),a}(n,i);break;case"FID":a=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:Nr(o.target)}}(n,i);break;case"CLS":a=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 a,s=t.get(r.time);return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":Nr(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={};return r(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,t,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}(i);var r={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:i};Dn.emit(ji.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i};Dn.emit(ji.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i};Dn.emit(ji.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Oo="x-li-uuid",Lo="x-li-pop",Ro="x-msedge-ref",No="x-li-fabric",Po="x-li-pem-resp-meta",Do="content-type",Mo="x-cache",Uo=function(){function e(t){Je(this,e),Ze(this,"_callTreeId",void 0),Ze(this,"_fabric",void 0),Ze(this,"_msEdgeRef",void 0),Ze(this,"_pointOfPresenceId",void 0),Ze(this,"_responseMetadata",void 0),Ze(this,"_contentType",void 0),Ze(this,"_cdnCacheMetadata",void 0),Ze(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(Oo)||null,this._pointOfPresenceId=n.get(Lo)||null,this._msEdgeRef=n.get(Ro)||null,this._fabric=n.get(No)||null,this._responseMetadata=n.get(Po)||null,this._contentType=n.get(Do)||null,this._cdnCacheMetadata=n.get(Mo)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=ze(e.split(","));try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=",2);if(2===i.length&&"availability"===i[0]){var r=parseFloat(i[1]);if(r>=0&&r<=1)return r}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return $e(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}();!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(Ao||(Ao={}));function Fo(e,t,n,i,r){var o=new Uo(i),a=function(e,t,n){if(t){if(429===t||999===t)return Ao.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Ao.BLOCKED_BY_CLIENT_PROXY;if((i=t)>=400&&i<500)return Ao.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Ao.SERVER_ERROR;if(e.pointOfPresenceId)return Ao.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return Ao.TRAFFIC_AFD_TO_LI_POP_ERROR}return Ao.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Ao.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var i;if(n instanceof Error){if("AbortError"===n.name)return Ao.CLIENT_ABORTED;if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return Ao.NETWORK_ERROR}else if(function(e){return!!e&&("string"==typeof e.statusText||"number"==typeof e.status||"number"==typeof e.readyState)}(n)){if("timeout"===n.statusText)return Ao.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return Ao.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return Ao.NETWORK_ERROR}return Ao.UNCLASSIFIED}(o,n,r),s=null;return a&&(s={errorType:a},a===Ao.UNCLASSIFIED&&r&&(s.errorMessage=r.message,function(e,t,n){var i=["tracer-unclassified-error"];null==n||n.forEach((function(e){return i.push("target-view-name-".concat(e))})),ei("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),i)}(r,i,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}!function(){function e(t,n,i){var r,o,a,s,c,l,u=this;Je(this,e),Ze(this,"core",void 0),Ze(this,"config",void 0),Ze(this,"collector",void 0),Ze(this,"boomerangStart",-1),Ze(this,"webVitalsObserver",void 0),Ze(this,"appMemoryObserver",void 0),Ze(this,"pageMemoryObserver",void 0),Ze(this,"liveTokens",new Set),Ze(this,"stateWM",new WeakMap),Ze(this,"activeToken",void 0),Ze(this,"isInitial",void 0),Ze(this,"pageLoadId",void 0),Ze(this,"initialResourcesEvents",[]),Ze(this,"responseRleCache",void 0),Ze(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),Ze(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),Ze(this,"isTracerEnabled",void 0),Ze(this,"isPEMTracerEnabled",void 0),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({},er),n);var d="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),h=this.getAbuseDeviceSignalCollectionConfig(i),p=null===(a=(s=i.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.generic-tracers"),f=!!p&&cr.test(p);this.isTracerEnabled=f||this.config["enable-tracking-3"];var g="enabled"===(null===(c=(l=i.host).__getLixTreatment)||void 0===c?void 0:c.call(l,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=g||this.config["enable-pem-tracking-3"],this.responseRleCache=new Xr(this.isPEMTracerEnabled),this.collector=new Fr(i.host.api,new Vr(t,this.config,i.host),this.config,d,(function(e){return u.fireResourceLoadEvent(e,u.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,h,i.host.endpoint),this.collector.startObserving(),Dn.before(xn,this.beforeHideHandlerBound)}$e(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){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,i=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);i&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},i)}},{key:"provisionNetworkResponse",value:function(e,t){var n,i,r=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var o=null===(i=this.responseRleCache)||void 0===i?void 0:i.flushCacheByUrl(e);null==o||o.forEach((function(e){r.fireResourceLoadEvent(e,r.activeToken)}))}},{key:"start",value:function(e){var t,n;!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,r=Object.create(null),o="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=r,this.liveTokens.add(r),this.isTracerEnabled?(this.stateWM.set(r,{isInitial:this.isInitial,startTime:Lr(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:Lr(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Hr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Hr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new xo(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 a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=Lr(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o);var l=this.activeToken,u=this.isTracerEnabled?5e3:this.config["beacon-timeout"];a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerEnabled){i.flushResourceLoadEvents(l);var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial});"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial});"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),u),this.activeToken=void 0}else ei("rum-end",sr)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=Fo(t,n,i,r,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,Ue({nextHopProtocol:Vi.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){ei("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){var t=this.stateWM.get(e);this.pageLoadId=Gn(),t.pageLoadId=this.pageLoadId;var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey});n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else ei("PageLoadStartEvent",sr)}},{key:"destroy",value:function(){var e,t,n;Dn.offBefore(xn,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.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{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){if(e.isTracerEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(i,t),e.flushResourceLoadEvents(t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,i=this,r=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==r||r.map((function(t){i.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",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,a=i.pageLoadId,s=i.pageKey;if(o){var c=o.renderCompleteTime,l=o.isImpactedByHiddenWindow;if(a?e.pageLoadId=a:ei("PageLoadEndEvent",ar),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=l),e.navigationTiming){var u,d=null===(u=e.navigationTiming)||void 0===u?void 0:u.navigationStart,h=this.boomerangStart=d||this.boomerangStart,p=d||r,f=c-p;e.navigationTiming.boomerangStart=h,e.navigationTiming.timeDone=f,e.navigationTiming.navigationStart=p,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)}))}else this.abort(t)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this;if(this.isTracerEnabled){var i,r=null!==(i=this.getPageLoadIdFromState(t))&&void 0!==i?i:this.pageLoadId;if(!r)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=r,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{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 a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-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:s,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,i=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),r={issueTime:0,browserId:""};try{r=function(e){var t,n={issueTime:0,browserId:""},i=ze(e);try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=");if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50);return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,i=t.viewNames,r=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:i||[],loadType:"serversideresponse",resourceNetworkContext:Ue({},We(t,De)),resourceProgressStates:[],timeOrigin:n};return r&&(o.loadType=r),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,i,r,o,a,s,c,l,u,d,h,p,f,g,v,m,y,E,b,w,_,T,S,C,I,k,A,x,O=null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"),L=!1,R=!1,N=!1,P=!1,D=!1,M=!1;if("enabled"===O)L=!0;else if(null!=O&&O.startsWith("v2:")){var U=O.split(":");if(2===U.length){var F=new Set(U[1].split(","));L=F.has("a"),P=F.has("b"),D=F.has("c"),R=F.has("d"),N=F.has("e"),M=F.has("f")}}return{isDnaIntegrationLixEnabled:L=L||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.webviewDnaMemberLixTreatment)||"enabled"===(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:R=R||"enabled"===(null===(o=(a=e.host).__getLixTreatment)||void 0===o?void 0:o.call(a,"pemberly.tracking.human.integration"))||"enabled"===(null===(s=e.host.abuseDeviceSignalCollectionConfig)||void 0===s?void 0:s.webviewHumanMemberLixTreatment)||"enabled"===(null===(c=e.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.humanMemberLixTreatment),isDfpIntegrationLixEnabled:N=N||"enabled"===(null===(l=(u=e.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.webviewDfpMemberLixTreatment)||"enabled"===(null===(h=e.host.abuseDeviceSignalCollectionConfig)||void 0===h?void 0:h.dfpMemberLixTreatment),disablePerfMarkerOptimization:e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(p=(f=e.host).__getLixTreatment)||void 0===p?void 0:p.call(f,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(g=e.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:M=M||"enabled"===(null===(v=(m=e.host).__getLixTreatment)||void 0===v?void 0:v.call(m,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(y=(E=e.host).__getLixTreatment)||void 0===y?void 0:y.call(E,"sync.apfc.headers"))||"enabled"===(null===(b=e.host.abuseDeviceSignalCollectionConfig)||void 0===b?void 0:b.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(w=(_=e.host).__getLixTreatment)||void 0===w?void 0:w.call(_,"sync.apfc.couchbase"))||"enabled"===(null===(T=e.host.abuseDeviceSignalCollectionConfig)||void 0===T?void 0:T.syncFingerprintingEnabledWithCbLixTreatment),isRecaptchaV3IntegrationEnabled:P=P||"enabled"===(null===(S=(C=e.host).__getLixTreatment)||void 0===S?void 0:S.call(C,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(I=e.host.abuseDeviceSignalCollectionConfig)||void 0===I?void 0:I.recaptchaV3IntegrationLixValue),isNetworkInterceptorEnabled:D=D||"enabled"===(null===(k=(A=e.host).__getLixTreatment)||void 0===k?void 0:k.call(A,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(x=e.host.abuseDeviceSignalCollectionConfig)||void 0===x?void 0:x.networkInterceptorLixValue)}}}])}();var Bo,qo="undefined"!=typeof window&&"undefined"!=typeof performance,Ho="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Go(n,t))}function Go(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=C(document),i=A(document),r=Ie();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 Wo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e||null==t||!t.length)throw new Error("Invalid input to fireViewModuleImpressionEvent");const n=A(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function zo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Ko(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),`${t.pageUrn};${n}`}function Ko(e){return"string"==typeof e&&"=="===e.slice(-2)}function Vo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...e},n=g(window.location.href,"originalReferer")||g(window.location.href,"original_referer");return n&&(t.requestHeader={...t.requestHeader,referer:n}),Xo(t)}function Xo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...e},n=Ie();return n&&(t.requestHeader={...t.requestHeader,theme:n.toUpperCase()}),t}!function(){function e(t,n){Je(this,e),Ze(this,"trackingCore",void 0),Ze(this,"endPageInstance",void 0),Ze(this,"startPageInstance",void 0),Ze(this,"featureIdentifier",void 0),Ze(this,"marks",[]),Ze(this,"spans",[]),Ze(this,"spanStarts",new Map),Ze(this,"started",!1),Ze(this,"ended",!1),Ze(this,"featureKey",void 0),Ze(this,"productName",void 0),Ze(this,"flushOnEnd",void 0),Ze(this,"basePageTreeId",void 0),Ze(this,"debounceFlush",void 0),Ze(this,"disableAutoFlush",void 0),Ze(this,"isCanceled",!1),Ze(this,"isClosed",!1),this.trackingCore=t;var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd;this.featureKey=i,this.productName=r,this.flushOnEnd=a;var s=r?"::".concat(r):"";this.featureIdentifier="".concat(i).concat(s);var c=void 0!==o?o:3e3;c>0&&(this.debounceFlush=function(e,t,n){var i,r,o;void 0===t&&(t=50),void 0===n&&(n={});var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[];function d(){if(void 0!==c){var e=Date.now()-l;if(e+t>=c)return c-e}return t}var h=function(){var t=[].slice.call(arguments),n=this;return new Promise((function(i,r){var c=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t);s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var h=e.apply(n,t);return s&&s(h),i(h)}u.push({resolve:i,reject:r})}))};return h.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},h}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}$e(e,[{key:"start",value:function(e){var t;if(qo){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"));this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t;if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));if(qo){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"));this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){qo&&(this.marks.push({name:e,startTime:Rr()}),Ho&&(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))),this.handleNewData())}},{key:"spanStart",value:function(e){qo&&(this.spanStarts.set(e,Rr()),Ho&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(qo&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e;this.spans.push({name:i,startTime:n,duration:Rr()-n}),Ho&&(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"))),this.handleNewData()}}},{key:"clearSpan",value:function(e){qo&&this.spanStarts.has(e)&&this.spanStarts.delete(e)}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return Rr()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}};this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||Kn(nt),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans};return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(qo){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'))}}}])}(),function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(Bo||(Bo={}));const{ENTER:Yo,ESCAPE:Jo}=R;class Qo{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:a,pageKey:s,onClose:c}=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(".modal__wrapper"),this._overlayEl=this._el.querySelector(".modal__overlay"),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".modal__dismiss"),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=s,this._shouldHideModal=n,this._shouldMoveToTopContainer=r,this.onClose=c;this._el.querySelector("[id='modalNoDismiss']")&&(this._isModalNonDismissible=!0),this._focusElement=a,i&&this._outletEls.forEach(e=>{e.addEventListener("click",e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.getAttribute("data-no-cool-off");this.open({noCoolOff:n})})}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new Y(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll(`[data-modal="${e}"]`)];return t.length||console.warn("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param "+e),t}_getTopLevelContainer(){const e=document.querySelector(".top-level-modal-container");if(!e){const e=document.createElement("div");return e.className="top-level-modal-container",document.body.appendChild(e)}return e}_handleOverlayClick(e){e.target===this._wrapperEl||this._wrapperEl.contains(e.target)||this.close()}_onKeyDown(e){const t=P(e.key),n=t===Yo&&document.activeElement===this._exitButtonEl;(t===Jo||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e,noCoolOff:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t||!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","false"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),E(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{jo(e,"ajax",this._pageKey||""+this._el.id)}):(E(this._wrapperEl,"afterOpen"),Promise.resolve());E(this._el,"didNotOpen")}async close(){var e,t,n,i,r;this._events.onBeforeClose&&await(null===(n=this._events)||void 0===n||null===(i=n.onBeforeClose)||void 0===i?void 0:i.call(n,this._wrapperEl));this.isOpen&&(null===(r=this.onClose)||void 0===r||r.call(this));this._overlayEl.classList.remove("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","true"),this._shouldMoveToTopContainer&&(this.setFocus(),this._parentNode.appendChild(this._el)),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),E(this._el,"close"),null!==(e=this._focusElement)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("ellipsis-menu__trigger")?(this.setFocus(),this._focusTrap.tearDown()):setTimeout(()=>{this.setFocus(),this._focusTrap.tearDown()},150)}setFocus(){const e=this._focusElement||this._previouslyFocusedEl;null==e||e.focus()}noScroll(){document.body.classList.add("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}get isOpen(){return this._overlayEl.classList.contains("modal__overlay--visible")}}class $o{constructor(e){if(!e)throw Error("An element must be provided to SidePanel");this.el=e,this.modalEl=this.el.querySelector(".modal"),this.modal=new Qo(this.modalEl,{events:this._events()}),this._onAfterOpen()}_onAfterOpen(){this.modalEl.addEventListener("afterOpen",e=>{e.target.classList.remove("translate-x-full")})}_events(){return{onBeforeClose:e=>new Promise(t=>{e.classList.add("translate-x-full"),setTimeout(()=>{t()},330)})}}}class Zo{constructor(){const e=document.querySelector(".member-nav-menu");if(!e)throw Error("The member header should have a dropdown element");const t=document.querySelector('[data-id="member-nav-header__link-item-me"]');this.collapsibleDropdown=new $(e,{dropdownTriggerEl:t}),this.searchEl=document.querySelector('[data-id="member-nav-header__search"]'),this.searchEl&&(this.searchEl.addEventListener("focusin",()=>this.searchEl.classList.add("member-nav-header__search--focused")),this.searchEl.addEventListener("focusout",()=>this.searchEl.classList.remove("member-nav-header__search--focused"))),this.sidePanelEl=document.querySelector(".sidepanel-menu"),this.sidePanelEl&&(this.sidePanel=new $o(this.sidePanelEl))}}function ea(e,t){return e&&t?`urn:li:control:${t}-${e}`:null}function ta(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 na=/ /g,ia=/[\s\u0000<>"]|%00/,ra=/\\/,oa=/([.]|%2e){2}/i;let aa=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 sa(e){let t;if("string"!=typeof e)return ta("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(ta("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(na,"+")),!aa.test(t))return ta("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(ia.test(t))return ta("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?(ta("jSecure Error: malformed url path detected: "+i),"invalid://"):ra.test(i)||oa.test(i)||oa.test(n)?(ta("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const ca={redirect(e){window&&(window.location.href=e)}};function la(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function ua(e){return e.scrollHeight>e.offsetHeight}function da(e,t){const n=h(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function ha(e){return e.classList.contains("hidden")}function pa(e){ga([e])}function fa(e){va([e])}function ga(e){da(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function va(e){da(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function ma(e){if(!e)return"";return e.split("").map(e=>String.fromCharCode(e.charCodeAt(0)+17)).join("")}function ya(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Ea(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function ba(){return document.documentElement.classList.contains("safari")}function wa(){return document.documentElement.classList.contains("ios")}const _a={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Ta(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function Sa(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=S(document),r=Ta();return window.tracking.then(o=>(t=o.generateTrackingId(),Z(e,{...n,method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[_a.EFFECTIVE_CONNECTION_TYPE]:r,"X-Requested-With":"XMLHttpRequest","x-tracking-id":t,"x-referer-pagekey":i,"X-li-page-instance":`urn:li:page:${i};${t}`}})))}function Ca(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector("."+e);if(i&&ua(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 Ia(e,t){return e.replace(new RegExp(t+"=[^&]*&?"),"").replace(new RegExp("[&?]$"),"")}function ka(){if(!g(window.location.href,"pwa"))return;const e=Ia(window.location.href,"pwa");window.history.replaceState({},document.title,e)}function Aa(){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 xa(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 Oa(e){e&&(document.cookie=e+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;")}function La(e,t,n,i){let r="";if(n){const e=new Date;e.setTime(e.getTime()+n),r="expires="+e.toUTCString()}y(e)&&Oa(e);const o=`${e}=${t};${r};path=/;${i?"domain=."+i:""}`,a=o+";secure;samesite=none";document.cookie=a,y(e)||(document.cookie=o)}function Ra(){const e=v(window.location.href,"pwa","noCache",!0);window.location.replace(e)}function Na(){let e=!1;try{(null===sessionStorage.getItem("previousPage")||1===window.history.length)&&(e=!0)}catch(e){}return e}function Pa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;const n=t.querySelector(`meta[name="${e}"]`);if(n)return n.getAttribute("content")}function Da(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=n.querySelector(`meta[name="${e}"]`);i&&i.setAttribute("content",t)}var Ma=Object.freeze({__proto__:null,PREVIOUS_PAGE_KEY:"previousPage",NO_CACHE_PARAM_KEY:"pwa",NO_CACHE_PARAM_VALUE:"noCache",LAUNCHED_FROM_HOME_SCREEN:"launchedFromHomeScreen",isElementHidden:ha,hideElement:pa,showElement:fa,hideElements:ga,showElements:va,conceal:ma,getCsrfToken:function(){let e=y("JSESSIONID");return e&&(e=e.replace(/(^"|"$)/g,"")),e||""},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:ya,enableButton:Ea,isSafari:ba,isIOS:wa,isMobile:function(){return document.documentElement.classList.contains("android")||wa()},getCurrentPage:function(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""},HEADERS:_a,getEffectiveConnectionType:Ta,requestJSONWithDefaultHeaders:Sa,initExpandButton:Ca,removeQueryParameter:Ia,removeNoCacheParam:ka,isLaunchedFromHomeScreen:Aa,removeHashFromUrl:xa,deleteCookie:Oa,setCookie:La,hardReloadPage:Ra,isFirstPageOfSession:Na,getMetaTagContent:Pa,setMetaTagContent:Da,convertIdToUrn:function(e,t){return Boolean(e)&&Boolean(t)&&`urn:li:${t}:${e}`}});const Ua={};function Fa(e){const t=document.getElementById(e);if(!t&&void 0!==Ua[e])return Ua[e];if(!t)return console.warn(`Element with id: ${e} not found`),Ua[e]=null,Ua[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: ${e}. Use embedJson helper to embed this content`),null):(Ua[e]=n,t.parentNode.removeChild(t),Ua[e])}const Ba="prev",qa="next";class Ha{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('.slide-list__nav-button[data-direction="prev"]'),this._nextButton=e.querySelector('.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(".slide-list__header-nav--minimal"),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".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._slideListContainer=this._el.querySelector(".slide-list__container"),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?(fa(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(pa(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],a=[];let s=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(a.push(h),this._isRtl&&u>=0)l.add(this._items[t]);else if(0===h&&0===n||0===s)s=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?s:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);s=p}}return r.push(i),a.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=a(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Ba?this.prev():n===qa&&this.next())}_fireScrollEvent(){E(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.querySelector(".current-slide").textContent="");const t=this._el.querySelector(`.slide-list__indicator-button-container > :nth-child(${this._currentPage+1})`);t.classList.add("slide-list__indicator--selected"),t.querySelector(".current-slide").textContent=Fa("i18n_slide_list_current_slide_aria_label")}}_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"),e.setAttribute("aria-hidden","false"),setTimeout(()=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")},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(${e||0}px, ${t||0}px, 0px)`}_dispatchPageChangeEvent(){var e;E(this._el,"pagechange",{pageNumber:this._currentPage}),null===(e=this._slideListContainer)||void 0===e||e.focus()}}function ja(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ga(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,za(e,t,"get"))}function Wa(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,za(e,t,"set"),n),n}function za(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Ka(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Va(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xa(e,t,n){Va(e,t),t.set(e,n)}function Ya(e,t){Va(e,t),t.add(e)}var Ja=Object.hasOwnProperty,Qa=Object.setPrototypeOf,$a=Object.isFrozen,Za=Object.getPrototypeOf,es=Object.getOwnPropertyDescriptor,ts=Object.freeze,ns=Object.seal,is=Object.create,rs="undefined"!=typeof Reflect&&Reflect,os=rs.apply,as=rs.construct;os||(os=function(e,t,n){return e.apply(t,n)}),ts||(ts=function(e){return e}),ns||(ns=function(e){return e}),as||(as=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 ss,cs=ys(Array.prototype.forEach),ls=ys(Array.prototype.pop),us=ys(Array.prototype.push),ds=ys(String.prototype.toLowerCase),hs=ys(String.prototype.match),ps=ys(String.prototype.replace),fs=ys(String.prototype.indexOf),gs=ys(String.prototype.trim),vs=ys(RegExp.prototype.test),ms=(ss=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return as(ss,t)});function ys(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 os(e,t,i)}}function Es(e,t){Qa&&Qa(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=ds(i);r!==i&&($a(t)||(t[n]=r),i=r)}e[i]=!0}return e}function bs(e){var t=is(null),n=void 0;for(n in e)os(Ja,e,[n])&&(t[n]=e[n]);return t}function ws(e,t){for(;null!==e;){var n=es(e,t);if(n){if(n.get)return ys(n.get);if("function"==typeof n.value)return ys(n.value)}e=Za(e)}return function(e){return console.warn("fallback value for",e),null}}var _s=ts(["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"]),Ts=ts(["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"]),Ss=ts(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cs=ts(["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"]),Is=ts(["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"]),ks=ts(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),As=ts(["#text"]),xs=ts(["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"]),Os=ts(["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"]),Ls=ts(["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"]),Rs=ts(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ns=ns(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Ps=ns(/<%[\s\S]*|[\s\S]*%>/gm),Ds=ns(/^data-[\-\w.\u00B7-\uFFFF]/),Ms=ns(/^aria-[\-\w]+$/),Us=ns(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Fs=ns(/^(?:\w+script|data):/i),Bs=ns(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qs="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 Hs(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 js=function(){return"undefined"==typeof window?null:window},Gs=function(e,t){if("object"!==(void 0===e?"undefined":qs(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 Ws=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:js(),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,a=t.HTMLTemplateElement,s=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,g=c.prototype,v=ws(g,"cloneNode"),m=ws(g,"nextSibling"),y=ws(g,"childNodes"),E=ws(g,"parentNode");if("function"==typeof a){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=Gs(f,i),_=w?w.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,I=T.createDocumentFragment,k=T.getElementsByTagName,A=i.importNode,x={};try{x=bs(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==x;var L=Ns,R=Ps,N=Ds,P=Ms,D=Fs,M=Bs,U=Us,F=null,B=Es({},[].concat(Hs(_s),Hs(Ts),Hs(Ss),Hs(Is),Hs(As))),q=null,H=Es({},[].concat(Hs(xs),Hs(Os),Hs(Ls),Hs(Rs))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,W=null,z=!0,K=!0,V=!1,X=!1,Y=!1,J=!1,Q=!1,$=!1,Z=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,ae=Es({},["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"]),se=null,ce=Es({},["audio","video","img","source","image","track"]),le=null,ue=Es({},["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,ge=!1,ve=void 0,me=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=r.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":qs(e))||(e={}),e=bs(e),F="ALLOWED_TAGS"in e?Es({},e.ALLOWED_TAGS):B,q="ALLOWED_ATTR"in e?Es({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?Es(bs(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?Es(bs(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?Es({},e.FORBID_CONTENTS):ae,G="FORBID_TAGS"in e?Es({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?Es({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,z=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,$=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===me.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ve?function(e){return e}:ds,X&&(K=!1),Z&&($=!0),re&&(F=Es({},[].concat(Hs(As))),q=[],!0===re.html&&(Es(F,_s),Es(q,xs)),!0===re.svg&&(Es(F,Ts),Es(q,Os),Es(q,Rs)),!0===re.svgFilters&&(Es(F,Ss),Es(q,Os),Es(q,Rs)),!0===re.mathMl&&(Es(F,Is),Es(q,Ls),Es(q,Rs))),e.ADD_TAGS&&(F===B&&(F=bs(F)),Es(F,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=bs(q)),Es(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&Es(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=bs(oe)),Es(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),Y&&Es(F,["html","head","body"]),F.table&&(Es(F,["tbody"]),delete G.tbody),ts&&ts(e),be=e)},Se=Es({},["mi","mo","mn","ms","mtext"]),Ce=Es({},["foreignobject","desc","title","annotation-xml"]),Ie=Es({},Ts);Es(Ie,Ss),Es(Ie,Cs);var ke=Es({},Is);Es(ke,ks);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ds(e.tagName),i=ds(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(ke[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=Es({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},xe=function(e){us(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{us(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){us(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if($||Z)try{xe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(Q)e="<remove></remove>"+e;else{var i=hs(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=ge?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),fe===pe?k.call(t,Y?"html":"body")[0]:Y?t.documentElement:a},Re=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ne=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)},Pe=function(e){return"object"===(void 0===s?"undefined":qs(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":qs(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,i){O[e]&&cs(O[e],(function(e){e.call(n,t,i,be)}))},Me=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ne(e))return xe(e),!0;if(hs(e.nodeName,/[\u0080-\uFFFF]/))return xe(e),!0;var i=Ee(e.nodeName);if(De("uponSanitizeElement",e,{tagName:i,allowedTags:F}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&vs(/<[/\w]/g,e.innerHTML)&&vs(/<[/\w]/g,e.textContent))return xe(e),!0;if("select"===i&&vs(/<template/i,e.innerHTML))return xe(e),!0;if(!F[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var a=o.length-1;a>=0;--a)r.insertBefore(v(o[a],!0),m(e))}if(!G[i]&&Fe(i)){if(j.tagNameCheck instanceof RegExp&&vs(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return xe(e),!0}return e instanceof c&&!Ae(e)?(xe(e),!0):"noscript"!==i&&"noembed"!==i||!vs(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=ps(t,L," "),t=ps(t,R," "),e.textContent!==t&&(us(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(xe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(K&&!W[t]&&vs(N,t));else if(z&&vs(P,t));else if(!q[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&vs(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&vs(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&vs(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(vs(U,ps(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==fs(n,"data:")||!se[e]){if(V&&!vs(D,ps(n,M,"")));else if(n)return!1}else;return!0},Fe=function(e){return e.indexOf("-")>0},Be=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;De("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=a.length;o--;){var c=t=a[o],l=c.name,u=c.namespaceURI;if(i=gs(t.value),r=Ee(l),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,s),i=s.attrValue,!s.forceKeepAttr&&(Oe(l,e),s.keepAttr))if(vs(/\/>/i,i))Oe(l,e);else{X&&(i=ps(i,L," "),i=ps(i,R," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),ls(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Re(t);for(De("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)De("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof o&&e(n.content),Be(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var a=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((ge=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw ms("toString is not a function");if("string"!=typeof(e=e.toString()))throw ms("dirty is not a string, aborting")}if(!n.isSupported){if("object"===qs(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!F[h]||G[h])throw ms("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(c=(a=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!$&&!X&&!Y&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(a=Le(e)))return $?null:ee?_:""}a&&Q&&xe(a.firstChild);for(var p=Re(ie?e:a);l=p.nextNode();)3===l.nodeType&&l===u||Me(l)||(l.content instanceof o&&qe(l.content),Be(l),u=l);if(u=null,ie)return e;if($){if(Z)for(d=I.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=Y?a.outerHTML:a.innerHTML;return X&&(f=ps(f,L," "),f=ps(f,R," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){be=null,J=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],us(O[e],t))},n.removeHook=function(e){O[e]&&ls(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const zs={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Vs(null,e,t);return n.innerHTML}function Vs(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...zs};r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Ws.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Xs=Object.freeze({__proto__:null,sanitizedMarkupOptions:zs,getSanitizedMarkup:Ks,setSanitizedMarkup:Vs}),Ys="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Js=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Qs=["b","del","em","i","s","strong","sub","sup"],$s=Qs.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),Zs=[Ys,"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 ec(){}var tc,nc,ic=(nc=/[&<>"'\u0000\\=]/g,tc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(nc,(function(e){return tc[e]}))}),rc=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,a){return r?(s=r,i.hasOwnProperty(s)?i[s]:(e.innerHTML="&"+s+";",c=e[Js],i[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var oc=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function ac(e){return/[<&]/.test(e)}var sc,cc=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 lc(e){e=oc(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",cc(e,(function(e,a){t=e.tags||$s,n=e.attrs||Zs,i=e.checkUrlAttrs||!1,0!==a&&(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 uc(e){return lc({tags:e=e||$s,checkUrlAttrs:!0})}function dc(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!uc(n).test(e):i?!dc.R_UNSAFE_CUSTOM_ELEMENT.test(e):!dc.R_UNSAFE_HTML.test(e)}function hc(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function pc(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 ec||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?ic(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return ac(i)&&!dc(i,n)&&(i=hc(i),ta("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function fc(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}dc.R_UNSAFE_HTML=uc(),dc.R_UNSAFE_CUSTOM_ELEMENT=lc([{tags:$s,checkUrlAttrs:!0},{tags:[(sc={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Ys,sc.attrs].join("|"),checkUrlAttrs:!1}]);var gc={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,"",""]};gc.optgroup=gc.option,gc.tbody=gc.tfoot=gc.colgroup=gc.caption=gc.thead,gc.th=gc.td;var vc=/<([\w:]+)/;function mc(e,t){var n,i,r,o,a,s,c,l=t.createDocumentFragment(),u=[];for(a=0,c=e.length;a<c;a++)if((o=e[a])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(vc.exec(o)||["",""])[1].toLowerCase(),bc(r,(i=gc[n]||gc._default)[1]+o+i[2]),s=i[0];s--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);fc(u,r.childNodes),(r=l.firstChild).textContent=""}else fc(u,o.nodeType?[o]:o);for(l.textContent="",o=u[a=0];o;)l.appendChild(o),o=u[++a];return l}var yc=pc,Ec=pc;function bc(e,t,n){var i=pc(t,n);return ac(i)?e.innerHTML=i:e[Js]=i,i}function wc(e,t){if(!(this instanceof wc))return new wc(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}wc.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new ec,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(dc(e,this._options)||(n=e,e=hc(e),ta("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var _c={ALLOWED_TAGS:$s,FORMATTING_TAGS:Qs,htmlEncode:ic,htmlUnencode:rc,log:ta,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="",a=n.length;return e&&e.forEach((function(e,t){o+=e,t<a&&(r=n[t],o+=r instanceof wc?r:ic(r))})),Ec(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=mc([e],t);else{if(!oc(e))return e;n=mc(e,t)}return fc([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:yc,reEncode:function(e){return ic(rc(e))},_redirector:ca,redirect:function(e){const t=sa(e);t===e&&ca.redirect(t)},sanitizeHTML:Ec,sanitizeUrl:sa,setElementContent:bc,text:function(e){return ta("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),ic(e)},unsafe:function(e){return e},UnsafeString:wc};const Tc='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 Sc(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&&kc(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");z(function(e){let t="";const n=e.getAttribute("role"),i=e.getAttribute("aria-labelledby"),r=e.getAttribute("aria-describedby"),o=e.dataset.primaryActionLabel,a=e.dataset.secondaryActionLabel;if("dialog"===n&&(i||r)){const n=i&&e.querySelector("#"+i),s=r&&e.querySelector("#"+r),c=n&&n.textContent,l=s&&s.textContent;c&&(t+=c),l&&(t+=l),a&&(t=`${t} ${a}`),o&&(t=`${t} ${o}`)}return t.trim()}(t),W.ASSERTIVE),Cc(r,!0);const o=t.querySelectorAll(Tc);let a;if(o.length>0){const e=o[0],r=o[o.length-1];Ic(i||e),a=function(t){t.key===R.TAB?t.shiftKey&&document.activeElement===e?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),e.focus()):t.key===R.ESCAPE&&n&&n(t)},t.addEventListener("keydown",a)}return function(){a&&t.removeEventListener("keydown",a),z(),Cc(r)}}function Cc(){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 Ic(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")||t){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 kc(e){return G.indexOf(e.nodeName.toUpperCase())<0&&!e.getAttribute("aria-live")&&"true"!==e.getAttribute("aria-hidden")}const Ac=".toast",xc=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Oc{constructor(){let{removeToastCallback:e=(()=>{}),visibleToastCallback:t=(()=>{}),customToastSelector:n=Ac}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=document.getElementById("toasts");if(!i)throw new Error("No toasts element");this._el=i,this._position=i.getAttribute("type"),this.visibleToastCallback=t,this.removeToastCallback=e,this.bindEvents(n)}trigger(e,t,n,i){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e||!Object.values(xc).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 o=n?`${n}_toast-${e}`:"toast-"+e,a=this._createToastEl(e,t,o,i);return this._addToast(a,r)}clearAllToasts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ac;let t=this._el.querySelectorAll(e);Array.from(t).forEach(e=>{this._removeToast(e)})}bindEvents(e){this._el.addEventListener("click",t=>{const n=a(t.target,".toast__dismiss-btn");if(n){const t=a(n,e);t&&this._removeToast(t)}})}_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),a=document.querySelector("#toast-icon-"+e).content.firstElementChild.cloneNode(!0);if(!r||!a)throw new Error("Toast templates are missing");r.classList.add("toast--"+e),r.setAttribute("type",e);const s=r.querySelector(".toast__message");s.insertBefore(a,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name",n+"_dismiss");const c=r.querySelector(".toast__message-content");let l="text-color-text-neutral";if(e===xc.CAUTION?l="text-color-text-caution":e===xc.ERROR?l="text-color-text-negative":e===xc.SUCCESS&&(l="text-color-text-positive"),c.classList.add(l),Vs(c,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",_c.sanitizeUrl(o(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(l),e.append(t)}return r}_addToast(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._el.appendChild(e);const n=this._el.querySelector(".toast__message");return this._hasToast()&&(this._el.classList.remove("invisible"),this._el.classList.add("animate")),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),t&&Ic(n)}),this.TOAST_ADD_TIMEOUT),setTimeout(()=>{this._refreshLazyLoader()},400),this.visibleToastCallback(),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),setTimeout(()=>{e.remove(),this._hasToast()||(t.classList.add("invisible"),t.classList.remove("animate")),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()})}}ja(Oc,"TOAST_TYPES",xc),ja(Oc,"TOAST_ADD_TIMEOUT",500);const Lc={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},Rc=Object.keys(Lc).map(e=>Lc[e]);class Nc{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:a(n,"."+t);i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){this.checkAndUpdateUtm(e);const t={linkedin:`https://www.${x(this.document)}/shareArticle?mini=true&url=${this._encodedShareUrl}&title=${this._encodedShareMessage}`,twitter:`https://twitter.com/intent/tweet?url=${this._encodedShareUrl}&text=${this._encodedShareMessage}`,facebook:"https://www.facebook.com/sharer/sharer.php?u="+this._encodedShareUrl};return Fa("disableLinkedinShareRedirectLink")&&"linkedin"===e?Fa("isGuest")?(this.window.location.href=this._updateSignInUrlWithParams(Fa("signInUrl")),""):"":t[e]||""}_updateSignInUrlWithParams(e){const t=new URL(e),n=t.searchParams,i=v(n.get("session_redirect"),"openShareModal",!0);return n.set("session_redirect",i),t.toString()}share(e){if(Rc.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 Oc({removeToastCallback:this.removeToastCallback.bind(this)});i.clearAllToasts();const r=t?"error":"success";i.trigger(r,Fa("i18n_copy_cta_message_"+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=`${this._nonEncodedShareUrl}&utm_campaign=${e}`,this._encodedShareUrl=this.window.encodeURIComponent(this._nonEncodedShareUrl))}removeToastCallback(){var e;this.collapsibleDropdown.shouldReturnFocusToTrigger(),null===(e=this.shareTriggerElement)||void 0===e||e.focus()}}class Pc extends Nc{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="social-share__item",this.collapsibleDropdown=new $(e,{dropdownTriggerEl:this.socialShareButton}),super.init(this.dropdown,this.itemClassName)}}const Dc=["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(Dc,"i");const Mc=Object.freeze({VERTICAL:"4:5",HORIZONTAL:"16:9",SQUARED:"1:1"});var Uc=new WeakMap,Fc=new WeakMap,Bc=new WeakMap,qc=new WeakMap,Hc=new WeakSet,jc=new WeakSet,Gc=new WeakMap,Wc=new WeakSet,zc=new WeakMap,Kc=new WeakMap;class Vc{get shouldAutoplay(){return Ga(this,Uc).hasAttribute("data-is-autoplay-enabled")}get shouldAutoloop(){return this.shouldAutoplay&&Ga(this,Uc).hasAttribute("data-is-autoloop-enabled")}get isVideoSponsored(){return Ga(this,Uc).hasAttribute("data-is-video-sponsored")}get autoPlayExposeRatio(){return this.isVideoSponsored?.5:.25}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,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.IntersectionObserver;Ya(this,Wc),Ya(this,jc),Ya(this,Hc),Xa(this,Uc,{writable:!0,value:void 0}),Xa(this,Fc,{writable:!0,value:void 0}),Xa(this,Bc,{writable:!0,value:0}),Xa(this,qc,{writable:!0,value:0}),Xa(this,Gc,{writable:!0,value:(e,t)=>{const{autoPlayExposeRatio:n}=this,i=e=>e.forEach(e=>{e.intersectionRatio>=n?Ga(this,zc).call(this):Ga(this,Kc).call(this)}),r={threshold:n};e&&t&&(this.intersectionObserverInstance&&this.intersectionObserverInstance.disconnect(),this.intersectionObserverInstance=new e(i,r),this.intersectionObserverInstance.observe(t))}}),Xa(this,zc,{writable:!0,value:()=>{var e;null===(e=Ga(this,Fc))||void 0===e||e.play()}}),Xa(this,Kc,{writable:!0,value:()=>{var e;null===(e=Ga(this,Fc))||void 0===e||e.pause(),Wa(this,qc,0)}});const{sources:o,posterUrl:a,digitalmediaAssetUrn:s,trackingId:c,captionsUrl:l,aspectRatio:u,adaptiveAspectRatio:d}=e.dataset,h=o?JSON.parse(o):[],p=parseFloat(e.getAttribute("currentTime"));if(!h.length&&!s)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");if(e.hasAttribute("autoplay")&&(t.autoplay=!0),u&&d){const e=function(e){return"number"!=typeof(e=parseFloat(e))||isNaN(e)||e<=0?null:e<1?Mc.VERTICAL:e>1?Mc.HORIZONTAL:Mc.SQUARED}(u);e&&(t.aspectRatio=e)}Wa(this,Uc,e),this._mediaPlayerInstancePromise=this._createPlayer(e,c,s,t,i).then(e=>(a&&e.poster(a),h.length>0&&e.src(h),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"hidden",src:l}),p&&e.currentTime(p),this._bindTracking(e,n),e)),this._mediaPlayerInstancePromise&&(this._setupAutoPlayPromise=Ka(this,Hc,Xc).call(this,r))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,a=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",s={errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{posterBackground:!0},...i};s.plugins.tracking={mediaUrn:n,trackingId:t},s.plugins.controlInteraction={},s.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:a}},s.plugins.a11yNotification={enabled:!0},e.closest("[data-is-sponsored]")&&(s.plugins.moat={pageContext:"FEED"});const c=o(e,s);return this._initializeCaptionBehavior(c),this._initializeInplayerCtaBanner(c),c})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n),e.controlInteraction().on("track",(e,n)=>{let{controlName:i}=n;t.fireControlInteractionEvent(i)})})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o={header:{},requestHeader:{},...r};delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=S(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}getSetupAutoPlayPromise(){return this._setupAutoPlayPromise}_initializeInplayerCtaBanner(e){var t;const n=e.el(),i=(null==n?void 0:n.closest(".share-native-video"))||(null===(t=Ga(this,Uc))||void 0===t?void 0:t.closest(".share-native-video"));if(!i)return;const r=i.querySelector(".inplayer-cta-banner");if(!r)return;n&&!n.contains(r)&&n.appendChild(r);const o=()=>{const t=e.el();if(!t)return;const n=t.classList.contains("vjs-user-inactive"),i=!e.paused()&&!e.ended()&&n;r.style.bottom=i?"16px":"64px"};e.on("fullscreenchange",()=>{e.isFullscreen()?(r.classList.remove("hidden"),o()):r.classList.add("hidden")}),e.on("userinactive",o),e.on("useractive",o),e.on("pause",o),e.on("ended",o)}_initializeCaptionBehavior(e){var t,n;const i=null==e||null===(t=e.el())||void 0===t?void 0:t.querySelector("video");if(!i)return;const r=e=>{e.mode="hidden"===e.mode?"showing":"hidden",e.isUserEnabled="showing"===e.mode};Array.from(i.textTracks).forEach(r),i.textTracks.onaddtrack=e=>r(e.track),null===(n=e.controlBar.captionsToggle)||void 0===n||n.on("click",()=>{Array.from(i.textTracks).forEach(r)})}}function Xc(e){return this.getPlayerPromise().then(t=>{Wa(this,Fc,t),this.shouldAutoplay&&(t.muted(!0),Ga(this,Gc).call(this,e,t.el()),Ka(this,Wc,Jc).call(this)),this.shouldAutoloop&&Ka(this,jc,Yc).call(this,t)})}function Yc(e){e.on("durationchange",()=>{var t;const n=null===(t=e.duration)||void 0===t?void 0:t.call(e);isNaN(n)||Wa(this,Bc,n)}),e.on("ended",()=>{Wa(this,qc,Ga(this,qc)+Ga(this,Bc)),Ga(this,Bc)&&Ga(this,qc)<30&&e.play()})}function Jc(){this.document&&this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState?Ga(this,zc).call(this):Ga(this,Kc).call(this)})}class Qc{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:o=!1,marginApplied:a=!1,debounceDelay:c=100,isPositionSticky:l=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n&&i)throw new Error("hideOnScrollBack & hideOnScrollDown cannot both be true at the same time");this.el=e,this.scrollThreshold=t,this.hideOnScrollBack=n,this.hideOnScrollDown=i,this.isBottom=r,this.exposeStickyState=o,this._scrollListener=m(this._onScroll.bind(this),c),this.marginApplied=a,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this.isPositionSticky=l,this._setupResizeListener(),s(()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()})}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){Q()||this.isPositionSticky||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.isPositionSticky||(this.isBottom?this._setBottomSpacing():this.hideOnScrollBack||this.hideOnScrollDown||(this._setTopSpacing(),e&&this.show()))}_resetSpacing(){this.isPositionSticky||(this.marginApplied?(document.body.style.marginTop="0px",document.body.style.marginBottom="0px"):(document.body.style.marginTop=this.originalMarginTop+"px",document.body.style.marginBottom=this.originalMarginBottom+"px"))}_setBottomSpacing(){let e=this.el.clientHeight;document.body.style.marginBottom&&!this.marginApplied&&(e+=this.originalMarginBottom),document.body.style.marginBottom=e+"px"}_setTopSpacing(){let e=this.el.clientHeight;document.body.style.marginTop&&!this.marginApplied&&(e+=this.originalMarginTop),document.body.style.marginTop=e+"px"}show(){this.el.classList.add("show"),E(this.el,"show")}hide(){this.el.classList.remove("show"),E(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}}let $c;const Zc=new Uint8Array(16);function el(){if(!$c&&($c="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$c))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $c(Zc)}const tl=[];for(let e=0;e<256;++e)tl.push((e+256).toString(16).slice(1));var nl={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function il(e,t,n){if(nl.randomUUID&&!t&&!e)return nl.randomUUID();const i=(e=e||{}).random||(e.rng||el)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=i[e];return t}return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(tl[e[t+0]]+tl[e[t+1]]+tl[e[t+2]]+tl[e[t+3]]+"-"+tl[e[t+4]]+tl[e[t+5]]+"-"+tl[e[t+6]]+tl[e[t+7]]+"-"+tl[e[t+8]]+tl[e[t+9]]+"-"+tl[e[t+10]]+tl[e[t+11]]+tl[e[t+12]]+tl[e[t+13]]+tl[e[t+14]]+tl[e[t+15]]).toLowerCase()}(i)}class rl{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=Fa(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,a=n-o,s=i-r,c=e/a,l=t/s,u=a*l>=e,d=s*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=p+"px",this._imgEl.style.height=f+"px",this._imgEl.style.top=`-${r*this.ratio}px`,this._imgEl.style.left=`-${o*this.ratio}px`),this._isResizing=!1}}function ol(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:i={},...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=S(document);if(!o)throw new Error("Missing pageKey for graphQL request from browser");return Z(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:i,pageKey:o}),...r})}class al{constructor(e,t){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return ol({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class sl extends al{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:sl.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})}}ja(sl,"query","2849bb08e3a3bbd23c96c0e758c018b7");class cl extends al{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:cl.query,variables:{url:e},successCallback:t,failureCallback:n})}}ja(cl,"query","bece320b5f70fe4357082fe84eca6c56");const ll="loader--absolute",ul="loader--show",dl="loader--full-screen",hl="no-scroll",pl="loader-wrapper";class fl{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(ll),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(ul),this.el.classList.contains(dl)&&document.body.classList.add(hl),this.isAbsoluteVariant&&this.wrapperEl.classList.add(pl)}hide(){this.el.classList.remove(ul),document.body.classList.remove(hl),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(pl)}}const gl="dismissable-input",vl="dismissable-input--focus",ml="dismissable-input__button",yl="dismissable-input__button--show",El="dismissable-input__input";class bl{constructor(e){this.el=e,this._input=this.el.querySelector("."+El),this._dismissButtonEl=this.el.querySelector("."+ml),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(vl),this._updateDismissButton(),E(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(yl)}_showDismissButton(){this._dismissButtonEl.classList.add(yl)}_onInputBlur(){this.el.classList.remove(vl)}clear(){this._input.value="",setTimeout(()=>{this._input.focus()},300),E(this.el,"clear")}}const wl={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"},_l="i18n_aria_live_text_no-suggestions",Tl="i18n_aria_live_text_one-suggestion",Sl="i18n_aria_live_text_multiple-suggestions",Cl=500;class Il{constructor(e,t){let{createDismissableInput:n,elementClasses:i=wl,generateApiUrl:r,liveTextEl:o,liveTextClearTime:a=Cl,onSelect:s,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h,closeOnEscape:p=!1,debounceTime:f=Cl}=t;this.el=e,this._liveTextClearTime=a,this._elementClasses=i,this._closeOnEscape=p,this._input=l||this.el.querySelector("."+El),this._dropdownContainerEl=u||this.el.querySelector("."+this._elementClasses.dropdown),this._dropdownListEl=d||this.el.querySelector("."+this._elementClasses.dropdownList),this._listId=this._dropdownListEl.id,this._generateApiUrl=r,this._onSelect=s,this._onInput=c,this._typeaheadItemTemplate=this.el.querySelector("."+this._elementClasses.template),this._boundClickOutsideToCloseHandler=this._clickOutsideToCloseHandler.bind(this),this._liveTextEl=o||this.el.querySelector("."+this._elementClasses.liveText),n&&(this.dismissableInput=new bl(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=m(this._getAndApplyResults.bind(this),f)}_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(P(e.key)){case R.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case R.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case R.ESCAPE:this._closeOnEscape&&this._hideList();break;case R.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let n=null===this._highlighted.index?t:this._highlighted.index+e;n<0&&(n=this._dropdownListItemEls.length-1),n>=this._dropdownListItemEls.length&&(n=0),this._setHighlightedEl(n)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return Z(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_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("."+this._elementClasses.listItem),r=i.querySelector("."+this._elementClasses.dropdownText);i.id=`${this._input.name}-${t+1}`,r.textContent=e.displayName,r.dataset.id=e.id,this._dropdownListEl.appendChild(n)}),this._dropdownListItemEls=h(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("."+this._elementClasses.dropdownText)||t.closest("."+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=Fa(_l),this._liveTextOneSuggestion=Fa(Tl),this._liveTextMultipleSuggestions=Fa(Sl)}_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 kl{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 Y(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;a(t,"."+wl.block)||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&la()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Al extends Il{constructor(e,t){let{generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:a,liveTextClearTime:s=Cl,debounceTime:c=Cl}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:i,liveTextClearTime:s,onSelect:r,onInput:o,isFullPageTypeahead:a,debounceTime:c})}}const xl={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"},Ol="i18n_aria_live_text_recent-searches-one-suggestion",Ll="i18n_aria_live_text_recent-searches-multiple-suggestions",Rl="i18n_aria_live_text_recent-searches-cleared";class Nl extends Il{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:xl,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector("."+xl.dropdown),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=h(this.dropdownContainerEl.querySelectorAll("."+xl.listItem)),this._clearBtnItem=e.querySelector("."+xl.listItemClearButton),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector("."+ml)}_attachEventListeners(){this._clearBtn=this.el.querySelector("."+xl.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("."+xl.listItemLink);n?this._redirect(n):t.classList.contains(xl.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(xl.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=Fa(Ol),this._liveTextMultipleSuggestions=Fa(Ll),this._liveTextClearedSuggestions=Fa(Rl)}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){Z(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class Pl{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(".switcher-tabs__trigger-and-tabs"),this.switcherTabs=this.el.querySelector(".switcher-tabs"),this.dropdownList=this.el.querySelector(".switcher-tabs__list"),this.dropdownTrigger=this.el.querySelector(".switcher-tabs__placeholder"),this.dropdownPlaceholderText=this.el.querySelector(".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(".switcher-tabs__cancel-btn"),this.cancelBtn.addEventListener("click",e=>{e.preventDefault(),this.baseSearchBarsMap[this.currentType].hideExpandedSearch()})}_initCollapsibleSwitcher(){this.collapsibleSwitcher=new $(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=a(e.target,".switcher-tabs__tab"),n=t.querySelector(".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(".tab-selected");if(a(t,".switcher-tabs__tab")&&(t.setAttribute("aria-selected","false"),t.classList.remove("tab-selected")),e.classList.contains("switcher-tabs__tab")){const t=e.querySelector(".switcher-tabs__button");t.classList.add("tab-selected"),t.setAttribute("aria-selected","true")}}_updatePlaceholderText(){let e=this.el.querySelector(".tab-selected");e&&(this.dropdownPlaceholderText.textContent=e.textContent)}}class Dl{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 a=this.el.querySelector(".search-bar__live-text");this.shouldSearchOnSelect=i,this.placeholderEl=this.el.querySelector(".search-bar__placeholder");const s=!!this.el.querySelector(".search-bar__mobile-wrapper");if(this.baseSearchBarsMap=h(this.el.querySelectorAll(".base-search-bar")).reduce((e,t)=>{const n=new kl(t,this.el,this.placeholderEl,{onCloseExpandedSearch:r,isMobileDevice:s});return e[n.type]=n,e},{}),t){this.baseSearchBarFormEl=this.baseSearchBarsMap.JOBS.el.querySelector(".base-search-bar__form"),this.geoIdInputEl=this.el.querySelector('input[name="geoId"]');const e=this.el.querySelector(".keywords-typeahead-input");new Al(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:a,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector("."+xl.dropdown)&&new Nl(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:a}),new Al(this.el.querySelector(".location-typeahead-input"),{generateApiUrl:this._generateLocationTypeaheadApiUrl.bind(this),liveTextEl:a,onSelect:this._onLocationTypeaheadSelect.bind(this),onInput:this._onLocationTypeaheadInput.bind(this)}),Array.from(this.el.querySelectorAll(`.${gl}.search-input`)).forEach(e=>{new bl(e);e.querySelector("."+xl.dropdown)&&new Nl(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:a})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll("."+gl)).forEach(e=>new bl(e));o&&(this.switcher=new Pl(e,this.baseSearchBarsMap,this.placeholderEl)),this.setupSearchInputFocusTracking()}_generateKeywordsTypeaheadApiUrl(e){return`${this.typeaheadApiBaseUrl}?query=${window.encodeURIComponent(e)}`}_generateLocationTypeaheadApiUrl(e){return`${this.typeaheadApiBaseUrl}?query=${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:${S(document)}-${t}`})})})}}class Ml extends Qo{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:a,pageKey:s}=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:a,pageKey:s}),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==="overlay_"+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","#overlay_"+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 Ul(e){return Z(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 Fl(e){let{jsUrl:t,cssUrl:n}=e;const i=[];return t&&i.push(function(e){return Ul(e).then(()=>{const t=document.createElement("script");return t.setAttribute("type","text/javascript"),new Promise(n=>{t.onload=()=>n(),t.src=Ks(e),document.body.appendChild(t)})})}(t)),n&&i.push(function(e){return Ul(e).then(e=>{if(e.length>0){const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}})}(n)),Promise.all(i)}function Bl(e){return Fl(e)}const ql={};function Hl(e){return ql[e]?Promise.resolve(ql[e]):Z("/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("_");ql[t]={...ql[t],[n]:e.getAttribute("content")}});const i=n.getElementById(e+"_jsUrl"),r=n.getElementById(e+"_cssUrl");return{jsUrl:i&&i.getAttribute("content"),cssUrl:r&&r.getAttribute("content")}}).catch(e=>{throw e})}function jl(){const e=window.blendedTypeaheadModule;return e?Promise.resolve(e):Hl("blendedTypeahead").then(e=>{let{jsUrl:t,cssUrl:n}=e;return Bl({jsUrl:t,cssUrl:n}).then(()=>window.blendedTypeaheadModule)})}document.querySelector.bind(document);String.fromCharCode(32);S(document);String.fromCharCode(32);class Gl{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),E(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),E(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function Wl(){let{counterMetricEndpoint:e,metricsType:t,pageKey:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||!t||!n)throw new Error("counterMetricEndpoint, metricsType and pageKey are required");const i=JSON.stringify({pageKey:n,metricsType:t});Z(e,{method:"POST",headers:{"Content-Type":"application/json"},postData:i})}const zl=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,Kl=/(.)\1{3}/,Vl=/linkedin/i,Xl=/\d\d/,Yl=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]+)?(/.*)?"),Jl=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Ql=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,$l=/^[ぁ-ゔゞ゛゜ー]*$/,Zl=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,eu=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},tu=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},nu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Xl.test(e)};nu.errorMessagePrefix="i18n_noConsecutiveDigits_";const iu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!zl.test(e)};iu.errorMessagePrefix="i18n_noForbiddenCharacters_";const ru=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Kl.test(e)};ru.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const ou=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Vl.test(e)};ou.errorMessagePrefix="i18n_noLinkedIn_";const au=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Yl.test(e)};au.errorMessagePrefix="i18n_noUrl_";const su=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ql.test(e)};su.errorMessagePrefix="i18n_onlyChinese_";const cu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $l.test(e)};cu.errorMessagePrefix="i18n_onlyPhonetic_";const lu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};lu.errorMessagePrefix="i18n_required_";const uu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Jl.test(e)};uu.errorMessagePrefix="i18n_invalidFormat_";const du=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Zl.test(e)};du.errorMessagePrefix="i18n_invalidFormat_";const hu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Jl.test(e)||Zl.test(e)};hu.errorMessagePrefix="i18n_invalidFormat_";const pu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};pu.errorMessagePrefix="i18n_required_";const fu=[eu(50),iu,nu,ru,ou,au],gu=[lu].concat(fu),vu=[cu,eu(50),ru];eu(4),tu(2),eu(128),eu(128),eu(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(uu),tu(6),eu(200);!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 mu="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",yu={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Eu={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},bu={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},wu={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},_u={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:Tu,GOOGLE_USER_FETCHED:Su,INITIALIZED:Cu}=yu,{INITIALIZATION:Iu,AUTHENTICATION:ku}=Eu;EventTarget;const{GOOGLE_USER_FETCHED:Au,PROMPT_MOMENT:xu,GOOGLE_ERROR:Ou}=yu;EventTarget;var Lu={exports:{}};function Ru(e){this.message=e}Ru.prototype=new Error,Ru.prototype.name="InvalidCharacterError";var Nu="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Ru("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};var Pu=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(Nu(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 Nu(t)}};function Du(e){this.message=e}Du.prototype=new Error,Du.prototype.name="InvalidTokenError",Lu.exports=function(e,t){if("string"!=typeof e)throw new Du("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Pu(e.split(".")[n]))}catch(e){throw new Du("Invalid token specified: "+e.message)}},Lu.exports.InvalidTokenError=Du;Lu.exports;const{GOOGLE_USER_FETCHED:Mu,PROMPT_MOMENT:Uu,GOOGLE_ERROR:Fu}=yu;EventTarget;const Bu={CLIENT_ID:mu,EVENTS:yu,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:Eu,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GSI_SELECT_BY:{AUTO:"auto",USER:"user",FEDCM:"fedcm",FECM_AUTO:"fecm_auto",USER_1TAP:"user_1tap",USER_2TAP:"user_2tap",BTN:"btn",BTN_CONFIRM:"btn_confirm",BTN_ADD_SESSION:"btn_add_session",BTN_CONFIRM_ADD_SESSION:"btn_confirm_add_session",ITP_ADD_SESSION:"itp_add_session"},GOT_CONTEXTS:bu,GOT_PROMPT_MOMENT_REASONS:_u,GOT_PROMPT_MOMENT_TYPES:wu},{GOT_PROMPT_MOMENT_REASONS:qu,GOT_PROMPT_MOMENT_TYPES:Hu}=Bu;const{EVENTS:{GOOGLE_ERROR:ju,GOOGLE_USER_FETCHED:Gu,INITIALIZED:Wu,PROMPT_MOMENT:zu},GOT_PROMPT_MOMENT_REASONS:Ku,GOT_PROMPT_MOMENT_TYPES:Vu}=Bu;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);const Xu="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var Yu;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(Yu||(Yu={}));const Ju=new Set(Object.values(Yu));class Qu extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Qu.prototype)}}function $u(e){return 0===e.length||!e.trim()}function Zu(e){if("string"!=typeof e)throw new Qu(`Keys must be strings. ${Xu}.`);if($u(e))throw new Qu(`Keys should not be blank. ${Xu}.`);if(/[^a-z0-9-]/.test(e))throw new Qu(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Xu}.`);return e}class ed{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Zu(e),this._defaultDegradationKey=Zu(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new Qu(`DegradationTrackingMetadata options should be an object. ${Xu}.`);const a=n.productName;a&&(this._productName=function(e){if("string"!=typeof e)throw new Qu(`The product name must be a string. ${Xu}.`);if($u(e))throw new Qu(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Xu}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new Qu(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Xu}.`);return e}(a));const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new Qu(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Xu}.`);var n;if(429===e||999===e)throw new Qu(`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 ${t} options.`);if(t===Yu.NonDegradedResponseCodes&&e>=400&&e<500)throw new Qu(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${Yu.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${Yu.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`)};if(void 0!==e&&!Array.isArray(e))throw new Qu(`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 ${Yu.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`);if(void 0!==t&&!Array.isArray(t))throw new Qu(`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 ${Yu.AdditionalDegradedResponseCodes} option. ${Xu}.`);null==e||e.forEach(e=>n(e,Yu.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,Yu.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new Qu(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Xu}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach(e=>{if(!Ju.has(e))throw new Qu(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions`)})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(ed.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}var td=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},nd=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),id=function(){function e(){td(this,e),this.EventType={};this.EventType[this.EventType.DomContentLoaded=0]="DomContentLoaded";this.EventType[this.EventType.Load=1]="Load";this.EventType[this.EventType.FullSnapshot=2]="FullSnapshot";this.EventType[this.EventType.IncrementalSnapshot=3]="IncrementalSnapshot";this.EventType[this.EventType.Meta=4]="Meta";this.EventType[this.EventType.Global=5]="Global",this.IncrementalSource={};this.IncrementalSource[this.IncrementalSource.MouseMove=1]="MouseMove";this.IncrementalSource[this.IncrementalSource.MouseInteraction=2]="MouseInteraction";this.IncrementalSource[this.IncrementalSource.Scroll=3]="Scroll";this.IncrementalSource[this.IncrementalSource.ViewportResize=4]="ViewportResize";this.IncrementalSource[this.IncrementalSource.Input=5]="Input";this.IncrementalSource[this.IncrementalSource.TouchMove=6]="TouchMove",this.MouseInteractions={};this.MouseInteractions[this.MouseInteractions.MouseUp=0]="MouseUp";this.MouseInteractions[this.MouseInteractions.MouseDown=1]="MouseDown";this.MouseInteractions[this.MouseInteractions.Click=2]="Click";this.MouseInteractions[this.MouseInteractions.ContextMenu=3]="ContextMenu";this.MouseInteractions[this.MouseInteractions.DblClick=4]="DblClick";this.MouseInteractions[this.MouseInteractions.Focus=5]="Focus";this.MouseInteractions[this.MouseInteractions.Blur=6]="Blur";this.MouseInteractions[this.MouseInteractions.TouchStart=7]="TouchStart";this.MouseInteractions[this.MouseInteractions.touchEnd=8]="touchEnd",this.isCtrlDown=!1}return nd(e,[{key:"_assign",value:function(){var e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};return e.apply(this,arguments)}},{key:"_spread",value:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(arguments[t]);return e}},{key:"hookSetter",value:function(e,t,n,i){var r=Object.getOwnPropertyDescriptor(e,t),o=this;return Object.defineProperty(e,t,i?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),r&&r.set&&r.set.call(t,e)}}),function(){return o.hookSetter(e,t,r||{},!0)}}},{key:"on",value:function(e,t,n){null==n&&(n=document);var i={capture:!0,passive:!0};return n.addEventListener(e,t,i),function(){return n.removeEventListener(e,t,i)}}},{key:"throttle",value:function(e,t,n){null==n&&(n={});var i=null,r=0;return function(o){var a=Date.now();r||!1!==n.leading||(r=a);var s=t-(a-r),c=this,l=arguments;s<=0||s>t?(i&&(window.clearTimeout(i),i=null),r=a,e.apply(c,l)):i||!1===n.trailing||(i=window.setTimeout((function(){r=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),s))}}},{key:"getWindowHeight",value:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}},{key:"getWindowWidth",value:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}},{key:"isTouchEvent",value:function(e){return Boolean(e.changedTouches)}},{key:"polyfill",value:function(){"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}},{key:"convertObjectChildrenToString",value:function(e){var t={};return e&&Object.keys(e).forEach((function(n){try{e[n]&&(t[n]=e[n].toString())}catch(e){}})),t}},{key:"initKeyboardObserver",value:function(e){var t=this;function n(e){(void 0===e.key||"meta"!==e.key.toLowerCase()&&"control"!==e.key.toLowerCase())&&(void 0===e.keyCode||91!==e.keyCode&&17!==e.keyCode)||(t.isCtrlDown=!1)}function i(n){var i=!1,r=!1,o=!1;if(t.isCtrlDown)if(void 0!==n.key){var a=n.key.toLowerCase();"x"===a&&(i=!0),"c"===a?r=!0:"v"===a&&(o=!0)}else void 0!==n.keyCode&&(88===keyPressed&&(i=!0),67===keyPressed?r=!0:86===keyPressed&&(o=!0));else(void 0===n.key||"meta"!==n.key.toLowerCase()&&"control"!==n.key.toLowerCase())&&(void 0===n.keyCode||91!==n.keyCode&&17!==n.keyCode)||(t.isCtrlDown=!0);var s=n.target.classList;void 0===s&&(s={}),s=JSON.parse(JSON.stringify(s)),e({inputClassList:s,isCut:i,isCopy:r,isPaste:o})}var r=["keydown","keyup"].map((function(e){return"keydown"===e?t.on(e,i):t.on(e,n)})),o=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),a=[[HTMLInputElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return o&&o.set&&r.push.apply(r,t._spread(a.map((function(e){return t.hookSetter(e[0],e[1],{set:function(){eventHandler({target:this})}})})))),function(){r.forEach((function(e){return e()}))}}},{key:"initMoveObserver",value:function(e,t){var n=[],i=void 0,r=this,o=r.throttle((function(t){var o=Date.now()-i;e(n.map((function(e){return e.timeOffset-=o,e})),t?r.IncrementalSource.TouchMove:r.IncrementalSource.MouseMove),n=[],i=null}),500),a=r.throttle((function(e){var t=r.isTouchEvent(e)?e.changedTouches[0]:e,a=t.clientX,s=t.clientY;i||(i=Date.now()),n.push({x:a,y:s,timeOffset:Date.now()-i}),o(r.isTouchEvent(e))}),t,{trailing:!1}),s=[r.on("mousemove",a),r.on("touchmove",a)];return function(){s.forEach((function(e){return e()}))}}},{key:"initMouseInteractionObserver",value:function(e){var t=this,n=[];return Object.keys(t.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")})).forEach((function(i){var r=i.toLowerCase(),o=function(n){return function(i){var r=t.isTouchEvent(i)?i.changedTouches[0]:i,o=r.clientX,a=r.clientY;e({type:t.MouseInteractions[n],x:o,y:a})}}(i);n.push(t.on(r,o))})),function(){n.forEach((function(e){return e()}))}}},{key:"initScrollObserver",value:function(e){var t=this.throttle((function(t){if(t.target)if(t.target===document){var n=document.scrollingElement||document.documentElement;e({x:n.scrollLeft,y:n.scrollTop})}else e({x:t.target.scrollLeft,y:t.target.scrollTop})}),100);return this.on("scroll",t)}},{key:"initViewportResizeObserver",value:function(e){var t=this,n=t.throttle((function(){var n=t.getWindowHeight(),i=t.getWindowWidth();e({width:Number(i),height:Number(n)})}),200);return this.on("resize",n,window)}},{key:"mergeHooks",value:function(e,t){var n=this,i=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb;e.mousemoveCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mousemove&&t.mousemove.apply(t,n._spread(e)),i.apply(null,n._spread(e))},e.mouseInteractionCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.mouseInteraction&&t.mouseInteraction.apply(t,n._spread(e)),r.apply(null,n._spread(e))},e.scrollCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.scroll&&t.scroll.apply(t,n._spread(e)),o.apply(null,n._spread(e))},e.viewportResizeCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.viewportResize&&t.viewportResize.apply(t,n._spread(e)),a.apply(null,n._spread(e))},e.inputCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.input&&t.input.apply(t,n._spread(e)),s.apply(null,n._spread(e))}}},{key:"initObservers",value:function(e,t){null==t&&(t={}),this.mergeHooks(e,t);var n=this.initMoveObserver(e.mousemoveCb,e.mousemoveWait),i=this.initMouseInteractionObserver(e.mouseInteractionCb),r=this.initScrollObserver(e.scrollCb),o=this.initViewportResizeObserver(e.viewportResizeCb),a=this.initKeyboardObserver(e.keyboardCb);return function(){n(),i(),r(),o(),a()}}},{key:"wrapEvent",value:function(e){return this._assign(this._assign({},e),{timestamp:Date.now()})}},{key:"record",value:function(e){null==e&&(e={});var t=e.emit,n=e.checkoutEveryNms,i=e.hooks,r=50;if(void 0!==e.mousemoveWait&&(r=e.mousemoveWait),!t)throw new Error("emit function is required");this.polyfill();var o=void 0,a=this;function s(e,i){if(t(e,i),e.type===a.EventType.FullSnapshot)o=e;else if(e.type===a.EventType.IncrementalSnapshot){n&&e.timestamp-o.timestamp>n&&c(!0)}}function c(e){null==e&&(e=!1),s(a.wrapEvent({type:a.EventType.Meta,data:{href:window.location.href,width:a.getWindowWidth(),height:a.getWindowHeight()}}),e),s(a.wrapEvent({type:a.EventType.FullSnapshot,data:{node:{type:"Document"},initialOffset:{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}})),s(a.wrapEvent({type:a.EventType.Global,data:{globalValues:a.convertObjectChildrenToString(window)}}))}try{var l=[];l.push(a.on("DOMContentLoaded",(function(){s(a.wrapEvent({type:a.EventType.DomContentLoaded,data:{}}))})));var u=function(){c(),l.push(a.initObservers({mousemoveCb:function(e,t){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.MouseInteraction},e)}))},scrollCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Scroll},e)}))},viewportResizeCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.ViewportResize},e)}))},keyboardCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Input},e)}))},mousemoveWait:r},i))};return"interactive"===document.readyState||"complete"===document.readyState?u():l.push(a.on("load",(function(){s(a.wrapEvent({type:a.EventType.Load,data:{}})),u()}),window)),function(){l.forEach((function(e){return e()}))}}catch(e){console.log(e)}}}]),e}(),rd=function(){function e(){td(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return nd(e,[{key:"getBaseValue",value:function(e,t){if(!this.t[e]){this.t[e]={};for(var n=0;n<e.length;n++)this.t[e][e.charAt(n)]=n}return this.t[e][t]}},{key:"compressToBase64",value:function(e){if(null===e)return"";var t=this,n=this._compress(e,6,(function(e){return t.n.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}}},{key:"decompressFromBase64",value:function(e){if(null===e)return"";if(""===e)return null;var t=this;return this._decompress(e.length,32,(function(n){return t.getBaseValue(t.n,e.charAt(n))}))}},{key:"compress",value:function(e){var t=this;return this._compress(e,16,(function(e){return t.f(e)}))}},{key:"_compress",value:function(e,t,n){if(null===e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v===t-1){f.push(n(g));break}v++}return f.join("")}},{key:"decompress",value:function(e){return null===e?"":""===e?null:this._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))}},{key:"_decompress",value:function(e,t,n){var i=[],r=4,o=4,a=3,s="",c=[],l=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,v={val:n(0),position:t,index:1};for(l=0;l<3;l+=1)i[l]=l;for(d=0,p=Math.pow(2,2),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 2:return""}for(i[3]=g,u=g,c.push(g);;){if(v.index>e)return"";for(d=0,p=Math.pow(2,a),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(g=d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 2:return c.join("")}if(0===r&&(r=Math.pow(2,a),a++),i[g])s=i[g];else{if(g!==o)return null;s=u+u.charAt(0)}c.push(s),i[o++]=u+s.charAt(0),u=s,0===--r&&(r=Math.pow(2,a),a++)}}}]),e}(),od=function(){function e(){td(this,e),this.PREFIX="dcts-",this.CPR=new rd}return nd(e,[{key:"compressAndSplitEvent",value:function(e){if(null==e)return[];var t=this.CPR.compressToBase64(JSON.stringify(e)),n=Math.floor(t.length/3)+1;return t.match(new RegExp(".{1,"+n+"}","g"))}},{key:"processTelemetry",value:function(e,t,n){var i=this.compressAndSplitEvent(e);if(null!=i){for(var r={},o=0;o<i.length;o++)r[this.PREFIX+o]=i[o];return r["x-f-uc"]=t,r.csrf_token=n,JSON.stringify(r)}return null}},{key:"getParamPrefix",value:function(){return this.PREFIX}}]),e}();!function(){function e(){td(this,e),this.processor=new od,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new id,this.workerThread=null,this.events=[]}nd(e,[{key:"init",value:function(e,t,n,i,r,o){var a=this;if(this.isExist(o)&&""!==o&&window.Worker){var s=this.convertWorkerUrl(o);null!==s&&(this.workerThread=new Worker(s),this.workerThread.onmessage=function(t){a.sendTelemetry(t.data,e)})}this.isExist(e)||(e=this.DEFAULT_URL);var c=0,l=6;null===i||isNaN(i)||(l=i);var u=this.timestone.record({emit:function(n,i){i&&a.events.length>0&&c<l?(a.collect(e,t,a.events,r),c+=1,a.events.splice(0,a.events.length)):c>=l&&(u(),a.isExist(a.workerThread)&&a.workerThread.terminate()),a.events.push(n)},checkoutEveryNms:n})}},{key:"collect",value:function(e,t,n,i){if(this.isExist(i)||(i=""),this.isExist(t)||(t="undefined-uc"),this.isExist(this.workerThread))this.workerThread.postMessage({events:n,useCase:t,csrfToken:i});else{var r=this.processor.processTelemetry(n,t,i);null!==r&&this.sendTelemetry(r,e)}}},{key:"collectFinalTelemetry",value:function(e,t,n){if(this.isExist(e)||(e=this.DEFAULT_URL),this.isExist(n)||(n=""),this.isExist(t)||(t="undefined-uc"),this.events.length>0)if(navigator.sendBeacon&&this.isExist(FormData)){var i=new FormData;i.append("x-f-uc",t),i.append("csrf_token",n);for(var r=this.processor.compressAndSplitEvent(this.events),o=0;o<r.length;o++)i.append(this.processor.getParamPrefix()+o,r[o]);navigator.sendBeacon(e,i)}else this.collect(e,t,this.events,"")}},{key:"sendTelemetry",value:function(e,t){var n=new XMLHttpRequest;n.open("POST",t),n.setRequestHeader("Content-Type","application/json"),n.send(e)}},{key:"isExist",value:function(e){return null!=e}},{key:"convertWorkerUrl",value:function(e){var t="https://"+window.location.host;if(0===e.indexOf(t)||0===e.indexOf("/"))return e;if(-1===e.indexOf(t)){var n=e.split(".com/");if(2===n.length)return"/"+n[1]}return null}}])}();const{EVENTS:ad,GOT_CONTEXTS:sd,GOT_PROMPT_MOMENT_TYPES:cd}=Bu,{GOOGLE_USER_FETCHED:ld,PROMPT_MOMENT:ud}=ad;function dd(){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 hd(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 pd(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 fd={session_key:[dd(),hd(3),pd(128)],session_password:[dd(),hd(6),pd(400)]};function gd(e,t){const n=fd[e];if(!n)throw new Error("No validation rules for element named "+e);for(let e=0;e<n.length;e++)if(n[e](t))return n[e].errorMessageSuffix}var vd="undefined"!=typeof window&&window||e;const md=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,yd=["twclid","clickid","fbclid"];function Ed(){const e=vd.location?vd.location.hostname:"";return md.test(e)}function bd(){return Ed()?_d()?"platform.linkedin.cn":"platform.linkedin.com":_d()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function wd(){return Ed()?_d()?"www.linkedin.cn":"www.linkedin.com":_d()?"www.linkedin-ei.cn":"www.linkedin-ei.com"}function _d(){const e=vd.location?vd.location.hostname:"";return/\.cn$/.test(e)}function Td(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if("function"!=typeof t||"function"!=typeof n)throw new TypeError("One of the specified callbacks is not a function.");const o=new vd.XMLHttpRequest;o.withCredentials=i,o.open("GET",e,!0),Object.keys(r).forEach(e=>{o.setRequestHeader(e,r[e])}),o.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof t?t(this.responseText):n(this))},o.send()}function Sd(e,t,n,i){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};if("function"!=typeof n||"function"!=typeof i)throw new TypeError("One of the specified callbacks is not a function.");const a=new vd.XMLHttpRequest;a.withCredentials=r,a.open("POST",e,!0);const s={"Content-Type":"application/json","Csrf-Token":Cd()},c=Object.assign({},s,o);Object.keys(c).forEach(e=>{const t=c[e];t&&a.setRequestHeader(e,t)}),a.onreadystatechange=function(){this.readyState===this.DONE&&(200===this.status&&"function"==typeof n?n(this.responseText):i(this))};const l="string"==typeof t?t:JSON.stringify(t);a.send(l)}function Cd(){const e=document.cookie.match(/JSESSIONID="?([^";]+)"?/);return e&&e[1]||""}function Id(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function kd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ad(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,Rd(i.key),i)}}function xd(e,t,n){return t&&Ad(e.prototype,t),n&&Ad(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Od(e,t,n){return(t=Rd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ld(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,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Id(e,t);var n={}.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)?Id(e,t):void 0}}(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 Rd(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Nd(e){return(Nd="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 Pd=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Dd=/^fs_/;function Md(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+Nd(e)+".");var t,n,i=Pd.exec(e);return i&&(t=i[1].replace(Dd,""),n=i[2]),{id:n,type:t}}var Ud=/(?![^(]*\)),/;var Fd={checkForEntityId:function(e){var t=Pd.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:Md,urnToObject:function e(t){var n=Md(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Ud),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}},Bd=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null};var qd={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Hd="GUEST",jd="MEMBER",Gd="ENTERPRISE_UNBOUND",Wd=0,zd=1,Kd=2,Vd=Od(Od(Od({},Hd,"li_gc"),jd,"li_mc"),Gd,"li_ec");Od(Od(Od({},Hd,"mypreferences/g/guest-cookies"),jd,"settings/member-cookies"),Gd,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var Xd,Yd,Jd,Qd,$d=xd((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 kd(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},qd)t[o]=t[o]||Wd,t[o]!==Wd&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===zd||t[o]===Wd&&r===zd})),Zd=(Xd=[qd.ADVERTISING,qd.ANALYTICS_AND_RESEARCH,qd.FUNCTIONAL],Yd=[Wd,zd,Kd,Wd],Jd=function(e){for(var t={},n=0;n<Xd.length;n++)t[Xd[n]]=Yd[e>>2*n&3];return t},Qd=function(e){var t=Wd;return e>=0&&e<=3&&(t=Yd[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),i=e.match(n);if(!i)return{error:"Invalid consent body encoding",consent:new $d};var r=Jd(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=Qd(parseInt(i[3],10));return{error:null,consent:new $d(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=Fd.urnToObject(e);if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t);if(!i)return{error:"Invalid enterprise profile urn provided",consent:new $d};var r=i.enterpriseAccountId,o=i.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a);if(!s)return{error:"Invalid consent body encoding",consent:new $d};var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=Ld(e,4),i=t[1],a=t[2],s=t[3];return i===r&&a===o&&s===n}))[0];if(!c)return{error:null,consent:new $d};var l=Jd(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=Qd(parseInt(s[3],10));return{error:null,consent:new $d(l,u,Gd,d)}}}),eh=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),th=function(e,t,n,i){var r=Bd(Vd[e],t);return r?rh(r,e,n,i):Bd(Vd[Hd],t)||Bd(Vd[jd],t)||Bd(Vd[Gd],t)?nh(Kd):nh(zd)},nh=function(e){var t={};for(var n in qd)t[n]=e;return{error:null,consent:new $d(t,null,null,e)}},ih=function(){return"undefined"==typeof document},rh=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var o,a=null;try{a=(o=e,"undefined"==typeof atob&&void 0!==i?i.from(o,"base64").toString("binary"):atob(o)).match(eh)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new $d};var s=parseInt(a[1],10),c=a[2];switch(s){case 1:return t===Gd?Zd.parseConsentBodyEnterpriseUnbound(c,n,r):Zd.parseConsentBody(c,t);default:return{error:"Invalid encoded consent version ".concat(s),consent:new $d}}},oh=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.enterpriseProfileUrn,r=n.enterpriseAppInstanceId;if("string"!=typeof t){if(ih())return{error:"cookie string must be provided in SSR mode",consent:new $d};t=document.cookie}if(i&&!r||!i&&r)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new $d};if(!(e!==Gd||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new $d};if(!e){var o=Bd(Vd[Gd],t);if(o&&i&&r){var a=rh(o,Gd,i,r),s=a.consent.userMode===Gd;if(s||a.error)return a}e=Bd("liap",t)?Bd(Vd[jd],t)?jd:Hd:Bd(Vd[Hd],t)?Hd:jd}return th(e,t,i,r)},ah={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},sh=0,ch=1;function lh(e){let{userSettings:t,enterpriseContext:n={}}=e;return function(e){let t=oh(null,void 0,e);return!t||t.consent.optedInConsentMap.ADVERTISING}(n)&&function(e){return e["compliance.isGDPROptIn"]}(t)}function uh(e){let{userSettings:t,enterpriseContext:n={}}=e;return function(e){let t=oh(null,void 0,e);return!t||t.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}(n)}function dh(e){let{userSettings:t,enterpriseContext:n={}}=e;return function(e){let t=oh(null,void 0,e);return!t||t.consent.optedInConsentMap.FUNCTIONAL}(n)}function hh(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 ph(e){const t=new vd.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function fh(){return/utagdb=[^;]+/.test(vd.document.cookie)}let gh;xd((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,i=void 0===n?null:n,r=t.issuedAt,o=void 0===r?null:r,a=t.defaultConsent,s=void 0===a?sh:a;for(var c in kd(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},ah)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===ch}));const vh={},mh={},yh={};function Eh(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;const n=new URLSearchParams;e&&n.append("isEnterprise",!0),t&&n.append("includePersonalizationData",!0);const i=n.toString()?"?"+n.toString():"";return`https://${wd()}/litms/api/metadata/user${i}`}function bh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=`${t}.${t}`;return e[n+".isEnterpriseUser"]||e[t+".isEnterpriseUser"]}function wh(e,t){const n=`${t}.${t}`;return{enterpriseProfileUrn:e[n+".enterpriseProfile"]||e[t+".enterpriseProfile"],enterpriseAppInstanceId:e[n+".enterpriseAppInstanceId"]||e[t+".enterpriseAppInstanceId"]}}function _h(e,t){let n=hh({},e);const i={userSettings:n,enterpriseContext:wh(e,t)};return n["compliance.isAdvertisingOptIn"]=!function(e,t){const n=e[`${t}.${t}`+".isBoundUser"]||e[t+".isBoundUser"];return bh(e,t)&&!n}(e,t)&&lh(i),n["compliance.isAnalyticsAndResearchOptIn"]=uh(i),n["compliance.isFunctionalOptIn"]=dh(i),n}function Th(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;const n=e[t+".xLiTrack"],i=e[t+".xLiIdentity"],r=e[t+".enterpriseAppInstanceId"],o={"X-LI-Track":n,"x-li-identity":i,"x-li-enterprise-app-instance-id":r};return Object.keys(o).reduce((e,t)=>(o[t]&&(e[t]=o[t]),e),{})}function Sh(e){return _h(vh,e)}function Ch(e){if(!mh[e]){const t=function(e){return`https://${bd()}/litms/allowlist/${encodeURIComponent(e)}`}(e),n=new Promise((e,n)=>{Td(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});mh[e]=n}return mh[e]}vd.utag_data||(vd.utag_data={});const Ih="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let kh;function Ah(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n=`https://${bd()}/litms/utag/${e}/utag.js?cb=${ph(t)}`),n}function xh(){return function(){if(void 0===kh&&Ih){const e=vd.document.cookie.match(/litms_utag_override=([^;]+)/);kh=e?e[1]:""}return kh}().length>0}function Oh(e,t,n,i){e.onLoadRulesRunOnce(n);let r=hh({},t,Sh(i));e.view(r),fh()&&vd.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function Lh(e,t,n,i){e.onLoadRulesRunOnce(n);let r=hh({},t,Sh(i));e.link(r),fh()&&vd.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Rh(e,t,n){if(function(e){vd.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?Lh(e,i.data,i.callback,n):Oh(e,i.data,i.callback,n)}}}function Nh(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}function Ph(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 Dh(e,t){return`urn:li:externalMarketingTag:(${function(e){const t=e.data["ut.profile"],n=e.cfg.v;return`urn:li:tagManagementSystemProfile:(tealium,${t},${n})`}(e)},${parseInt(t)})`}function Mh(e){const t=Nh(e).map(t=>function(e,t){return{tagUrn:Dh(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}function Uh(e,t){const n=e.data["ut.profile"],i=function(e,t){return{profileName:e.data["ut.profile"],version:e.cfg.v,eventSource:t}}(e,t);Sd(`https://${wd()}/litms/api/events/tms-load`,i,e=>{console.debug("TMS load event sent successfully:",e)},e=>{console.warn("Failed to send TMS load event:",e.status,e.statusText)},!0,Th(e.data,n))}function Fh(e,t,n){const i=e.data["ut.profile"],r=function(e,t,n){const i=e.data["ut.profile"],r=Nh(e).map((function(t){return{tagId:t,version:e.loader.cfg[t].v}}));return 0===r.length?null:{profileName:i,tags:r,eventType:n.eventType,eventSource:t,pageKey:n.pageKey||e.data["meta.pageKey"],controlUrn:n.controlUrn||e.data["meta.controlUrn"]}}(e,t,n);if(!r)return;Sd(`https://${wd()}/litms/api/events/ext-tag-load`,r,e=>{console.debug("External tag load event sent successfully:",e)},e=>{console.warn("Failed to send external tag load event:",e.status,e.statusText)},!0,Th(e.data,i))}vd.utag_cfg_ovrd=vd.utag_cfg_ovrd||{},vd.trackingEventDebugData=vd.trackingEventDebugData||[],vd.utag_cfg_ovrd.noview=!0,vd.utag_cfg_ovrd.nocookie=!0;const Bh=Ih&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(vd.navigator.userAgent),qh={};let Hh,jh,Gh,Wh={};class zh{constructor(){let{profileName:e,tracking2Instance:t,enableAllowlisting:n=!1,cacheBusterInterval:i,includePersonalizationData:r=!1,eventSource:o="microsite"}=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,this.landingPageUrl,this.includePersonalizationData=r,this.eventSource=o}initialize(){if(!this._shouldInitialize())return Promise.resolve();if(this.isInitialized)return console.warn("Initialize should not be called more that once"),this.initializePromise.then();if(Ih){sessionStorage.getItem("utagLandingPage")&&sessionStorage.removeItem("utagLandingPage"),this.landingPageUrl=vd.location.href}return this.isInitialized=!0,this.initializePromise=new Promise((e,t)=>{this.enableAllowlisting?(this.isAllowlistingEnabled=!0,this._onInitializeSuccessCallback=e,this._onInitializeFailureCallback=t,this._allowlistReadyPromise=Ch(this.profileName).then(e=>this._processAllowlistResult(e)).catch(e=>console.error("Unable to retrieve allowlists for profile : "+this.profileName,e))):this._loadContainerTag(e,t)}),this.profileName&&(qh[this.profileName]=this),this.initializePromise}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_setLandingPageCookie(){const e=Sh(this.profileName),t={userSettings:e,enterpriseContext:wh(e,this.profileName)};if(this.landingPageUrl&&lh(t)&&yd.find(e=>this.landingPageUrl.includes(e))){const e=Ed()?".linkedin.com":"linkedin-ei.com";vd.document.cookie=`l_page=${this.landingPageUrl};domain=${e};path=/;max-age=15780000`}}_loadContainerTag(e,t){void 0!==vd.utag&&(vd.utag=void 0),void 0!==vd.utag_data&&(vd.utag_data=void 0);const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!gh){const i=Eh(bh(e,t),n);gh=new Promise((n,r)=>{Td(i,e=>{try{n(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),r(e)}},e=>{r(e)},!0,Th(e,t))})}return gh}(vh,this.profileName,this.includePersonalizationData).then(e=>{var t;Object.keys(e).forEach(t=>{!function(e,t){const n="string"!=typeof t?"":t+".";"object"==typeof e&&Object.keys(e).forEach(t=>{vh[n+t]=e[t]})}(e[t],t)}),this.includePersonalizationData&&(t=e)&&"object"==typeof t&&(yh.personalizationData=t.personalizationData||{}),Ih&&this._setLandingPageCookie()}).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 xh()?kh:Ah(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=vd.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,vd.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=vd.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&&Ph(this.tracking2Instance,t),Uh(this._uTag,this.eventSource),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Bh}_shouldProcessEvent(e){return Bh?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?Rh(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(e){const t=Mh(this._uTag);return void 0!==this.tracking2Instance&&void 0!==t&&Ph(this.tracking2Instance,t),Fh(this._uTag,this.eventSource,e),t}_createCallbackForAuditEvent(e,t){const n=this;return function(){const i=n._fireAuditEvent(t);"function"==typeof e&&e(i)}}_checkForCookieConsent(){const e=wh(vh,this.profileName);oh(null,void 0,e).consent.consentAvailable&&!jh?!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return!!Array.isArray(e)&&e.some(e=>{let{data:t}=e;const n=t["entity.refreshOnCookieConsent"];return"boolean"==typeof n?n:"string"==typeof n&&"true"===n.toLowerCase()})}(Wh.payloads)?this._refireTracking():location.reload():Hh=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){Wh.payloads&&Wh.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(Ih){jh=!1;const{payloads:n=[],url:i}=Wh,r=location.href,o={data:e,callback:t},a=r!==i?[]:n;a.push(o),Wh={url:r,payloads:a},Hh||(Hh=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){const n=wh(vh,this.profileName);return oh(null,void 0,n).consent.consentAvailable||this._savePayloadForRefire(e,t),this._shouldProcessEvent(e).then(n=>{if(n){const n=Object.assign({},e,{eventType:e.eventType||"PageViewEvent"});this._queue.push({isControlInteraction:!1,data:e,callback:this._createCallbackForAuditEvent(t,n)}),this._processQueuedEvents()}})}trackControlInteraction(e,t){return this._shouldProcessEvent(e).then(n=>{if(n){const n=Object.assign({},e,{eventType:e.eventType||"ControlInteractionEvent"});this._queue.push({isControlInteraction:!0,data:e,callback:this._createCallbackForAuditEvent(t,n)}),this._processQueuedEvents()}})}getPersonalizationData(){return yh.personalizationData||{}}}function Kh(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:${i}-${r}`})}class Vh{constructor(e){if(this.trackingInstance=e,this.pageKey=S(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 zh({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>Kh({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||Kh({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({pageKey:n,...t})}}function Xh(e){if(!Gh){if(!e)throw new Error("No trackingInstance passed in!");Gh=new Vh(e)}return Gh}function Yh(){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 Jh='[data-js-module-id="guest-input"]';class Qh{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=Fa("i18n_sign_in_form_show_text"),this.showLabelText=Fa("i18n_sign_in_form_show_label"),this.hideText=Fa("i18n_sign_in_form_hide_text"),this.hideLabelText=Fa("i18n_sign_in_form_hide_label"),this.usernameEl=this.el.querySelector("input[name=session_key]"),this.passwordEl=this.el.querySelector("input[name=session_password]"),this.usernameElId=this.usernameEl.id,this.passwordElId=this.passwordEl.id,this.usernameMsgEl=this.el.querySelector(`[data-js-module-id="guest-input__message"][for="${this.usernameElId}"]`),this.passwordMsgEl=this.el.querySelector(`[data-js-module-id="guest-input__message"][for="${this.passwordElId}"]`),this.sessionRedirectEl=this.el.querySelector("input[name=session_redirect]"),this.passwordVisibilityToggle=this.el.querySelector('[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)),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",Yh())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const t=this.sessionRedirectEl.value,n=v("/public-profile/settings/anonymousLogin","csrfToken",O(y("JSESSIONID")));this.sessionRedirectEl.value=v(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=S(document,{skipSuffix:!0}),n=t+"_login-form",i=`${t}-${this.el.querySelector('[data-id="sign-in-form__submit-btn"]').dataset.trackingControlName}`,r=zo(e),o=this._createHiddenInputElement("pageInstance",r),a=this._createHiddenInputElement("controlId",i);this.el.appendChild(a),this.el.appendChild(o),this._fireTrackingOnInit&&this.fireTracking(e,n)})}fireTracking(e,t){jo(e,"ajax",t),Xh(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=gd(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(Jh).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="i18n_username_"+e;return this.usernameMsgEl.innerText=Fa(t),this.usernameEl.focus(),!0}this.usernameEl.closest(Jh).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=gd(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(Jh).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="i18n_password_"+t;return this.passwordMsgEl.innerText=Fa(e),this.passwordEl.focus(),!0}this.passwordEl.closest(Jh).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}const $h=30,Zh="cta-modal";class ep{constructor(e){let{daysCoolOff:t=$h,dismissOnOutsideClick:n=!0,dismissOnScroll:i=!1,dismissBtnEl:r,coolOffKey:o=Zh}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to cta modal");this.el=e,this.coolOffPeriod=24*t*60*60*1e3,this.coolOffKey=o,this.dismissBtnEl=r||this.el.querySelector(".cta-modal__dismiss-btn"),this._dismissEvent=e=>this._dismiss(e),this._interactionEvent=e=>this._interactionListener(e),this.dismissOnOutsideClick=n,this.dismissOnScroll=i,this._hideModal()?E(this.el,"didNotOpen"):(this.dismissable=new Gl(this.el,this.dismissBtnEl,{isShown:!1}),this.dismissable.show(),this._addEventListeners())}_addEventListeners(){this.el.addEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.addEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.addEventListener("scroll",this._interactionEvent)}_dismiss(e){this._hardDismissal(e)&&this._setCoolOff(e),this._removeEventListeners()}_removeEventListeners(){this.el.removeEventListener("dismiss",this._dismissEvent),this.dismissOnOutsideClick&&document.body.removeEventListener("click",this._interactionEvent),this.dismissOnScroll&&window.removeEventListener("scroll",this._interactionEvent)}_interactionListener(e){this.el.contains(e.target)||this.dismissable.dismiss()}_setCoolOff(){try{localStorage.setItem(this.coolOffKey,Date.now())}catch(e){return""}}_hideModal(){try{const e=localStorage.getItem(this.coolOffKey);if(e){return Date.now()-e<this.coolOffPeriod||(localStorage.removeItem(this.coolOffKey),!1)}}catch(e){return!1}}_hardDismissal(e){return e.detail&&this.dismissBtnEl.contains(e.detail.target)}}const tp="sign-in-card";class np{constructor(e){let{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:r,coolOffKey:o=tp}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to sign in card");this.el=e,this.dismissBtnEl=r;const a=this.el.querySelector('[data-id="sign-in-form"]');a&&new Qh(a),this.ctaModal=new ep(this.el,{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:this.dismissBtnEl,coolOffKey:o})}}const{GOOGLE_USER_FETCHED:ip,GOOGLE_ERROR:rp,INITIALIZED:op}=Bu.EVENTS,{INITIALIZATION:ap}=Bu.GSI_ERROR_TYPES;function sp(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function cp(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 lp(e,t){return Math.round(e-t)}var up,dp=(up=function(e,t){return(up=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}up(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),hp=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}(),pp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dp(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(hp),fp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dp(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(hp),gp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dp(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}(hp),vp=function(){return 0},mp=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),yp=mp&&!!window.requestAnimationFrame,Ep={hasDOM:mp,hasRAF:yp,getScrollTop:vp,getScrollLeft:vp,getHeight:vp,getWidth:vp,rAF:yp?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:vp,get isDirty(){return Ep.version!==Ep.lastVersion},document:window.document,IntersectionObserver:mp&&window.IntersectionObserver,performance:mp&&window.performance};function bp(){++Ep.version}function wp(){var e=null!=document.scrollingElement;Ep.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Ep.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}mp&&(Ep.getHeight=function(){return window.innerHeight},Ep.getWidth=function(){return window.innerWidth},Ep.updateMeta=function(){Ep.meta.height=Ep.getHeight(),Ep.meta.width=Ep.getWidth(),Ep.meta.scrollLeft=Ep.getScrollLeft(),Ep.meta.scrollTop=Ep.getScrollTop(),Ep.lastVersion=Ep.version},Ep.updateMeta(),"loading"!==document.readyState?wp():document.addEventListener("DOMContentLoaded",wp),window.addEventListener("resize",bp,!1),window.addEventListener("scroll",bp,!1));var _p=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,Ep.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}(),Tp=null;var Sp=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)}}(),Cp="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Ip=0,kp=function(){function e(e,t,n,i,r,o,a,s,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=a,this.y=s,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 Ep.isDirty&&Ep.updateMeta(),e===window||e===document?(n.height=Ep.meta.height,n.width=Ep.meta.width,n.scrollLeft=Ep.meta.scrollLeft,n.scrollTop=Ep.meta.scrollTop,n):(t=cp(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 Ap(){return Ip+++Cp}var xp=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Tp||(Tp=new _p)),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(kp.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=cp(e),i=kp.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}(),Op=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new pp,t}return Sp(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=Ap();return this.queue.push({callback:e,id:t}),t},t}(xp),Lp=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return Sp(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Op),Rp=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=Ep.version,r.queue=new gp,r.ALLOW_CACHED_SCHEDULER=i,r}return Sp(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Ep.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,a=n.clientRect;!this.isDirty&&a&&this.ALLOW_CACHED_SCHEDULER||(a=this.queue.items[t].clientRect=cp(r)),i(e,o,a)}this.lastVersion=Ep.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Ap();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(xp),Np=null;var Pp=function(){function e(){this.queue=new fp}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}(),Dp=function(){function e(e){this.scheduler=new Lp(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=kp.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Mp=null;function Up(e,t){var n=(Mp||(Mp={scroll:new Dp((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Dp((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Pp,beforeunload:new Pp,hide:new Pp,show:new Pp}))[e];n&&n.listen(t)}function Fp(e,t){if(Mp){var n=Mp[e];n&&n.unlisten(t)}}function Bp(e,t){if(Mp){var n=Mp[e];n&&n.trigger(t)}}function qp(e){(Np||(Np=new Op)).scheduleWork(e)}function Hp(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}}Ep.hasDOM&&(window.addEventListener("beforeunload",(function(){Bp("beforeunload"),Bp("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Bp("show"):Bp("hide")})));var jp=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 Rp(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||Ap();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),a=o.numSatisfiedThresholds,s=o.entry,c=this.records[t]||(this.records[t]={entry:s,numSatisfiedThresholds:0});a===c.numSatisfiedThresholds&&s.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=a,c.entry=s,this.scheduler.scheduleWork((function(){r.callback([s])})))},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:Gp(),intersectionRatio:0,intersectionRect:Gp(),isIntersecting:!1,rootBounds:Gp(),target:n};var r=t.bottom,o=t.right,a=e.left+i.left,s=e.top+i.top,c={left:a,top:s,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:s,x:a},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,g={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,a=e.target,s=r.height*r.width,c=s>0?o.width*o.height/s:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:a,intersectionRatio:c,isIntersecting:sp({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Hp(t),intersectionRect:g})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];r.intersectionRatio>=a&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function Gp(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Wp={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};var zp=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,a=i.threshold,s=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=a.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:s};this.usingNativeIo=!!l&&!!Ep.IntersectionObserver;var h=this.usingNativeIo?Ep.IntersectionObserver:jp;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),Ep.hasDOM&&(Up("beforeunload",this.onWindowClosed),Up("hide",this.onTabHidden),Up("show",this.onTabShown),c&&(this.paused="visible"!==Ep.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,a=r.boundingClientRect,s=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:a,time:n,highResTime:t,isIntersecting:l,rootBounds:s,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,a=e.isIntersecting,s=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((Ep.performance.timeOrigin||Ep.performance.timing.navigationStart)+s):s,d=this.usingNativeIo?s:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:a,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:a?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:Wp,boundingClientRect:o||Wp,intersectionRect:Wp,visibleTime:r.lastVisible.unixTime,duration:lp(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=lp(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,a="boolean"==typeof r.isIntersecting?r.isIntersecting:sp(e),s=o&&a;if(s!=n.lastSatisfied){if(s)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=lp(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=s}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),Ep.hasDOM&&(Fp("beforeunload",this.onWindowClosed),Fp("hide",this.onTabHidden),Fp("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),qp((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||Ap();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}();Ep.IntersectionObserver&&Ep.IntersectionObserver;class Kp{constructor(e){let{thresholds:t,root:n=null,rootMargin:i="0px",componentList:r=[],observeOnce:o=!1,trailingTrackingEnabled:a=!1,deferInitialTracking:s=!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=a,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 zp(this._handleObservedNodes.bind(this),h),!s&&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,r){let o=e.payload||{};o.visibleTime=e.time-e.duration,o.duration=e.duration,o.size={width:e.boundingClientRect.width,height:e.boundingClientRect.height},o=i?i(o,r):o,t.fireTrackingEvent(n,o)}}const Vp="show-more-less__button--hide";class Xp{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(q);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(".show-more-less__list"),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="show-more-less__list--hide-after-"+this.maxNumToShow,this.showMoreButton=this.el.querySelector(".show-more-less__more-button"),this.showLessButton=this.el.querySelector(".show-more-less__less-button"),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new D(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(Vp),this.showMoreButton.classList.remove(Vp)):(this.showLessButton.classList.remove(Vp),this.showMoreButton.classList.add(Vp))}}const Yp=".show-more-less-html__markup",Jp=".show-more-less-html__button--less",Qp=".show-more-less-html__button--more";class $p{constructor(e){let{showMoreButtonSelector:t=Qp,showLessButtonSelector:n=Jp,baseMarkupElementSelector:i=Yp}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to ShowMoreLessHtml");this.el=e,this.markupEl=this.el.querySelector(i),this.showMoreButtonEl=this.el.querySelector(t),this.showLessButtonEl=this.el.querySelector(n),this._checkForRequiredChildrenElements([this.markupEl,this.showMoreButtonEl,this.showLessButtonEl]),this._isClamped()?(this.clampClass="show-more-less-html__markup--clamp-after-"+this.el.getAttribute("data-max-lines"),this._attachEventListeners()):this.el.classList.add("show-more-less-html--hide-buttons")}_checkForRequiredChildrenElements(e){const t=["Markup","ShowMoreLessHtmlButton 'More'","ShowMoreLessHtmlButton 'Less'"];e.forEach((e,n)=>{if(!e)throw Error(t[n]+" element is missing")})}_isClamped(){return ua(this.markupEl)}_attachEventListeners(){this.showMoreButtonEl&&this.showLessButtonEl&&(this.showMoreButtonEl.addEventListener("click",()=>{this.el.classList.add("show-more-less-html--more"),this.markupEl.classList.remove(this.clampClass),this.showLessButtonEl.focus()}),this.showLessButtonEl.addEventListener("click",()=>{this.el.classList.remove("show-more-less-html--more"),this.markupEl.classList.add(this.clampClass),this.showMoreButtonEl.focus()}))}}const Zp=350,ef=575;class tf{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".sticky-header"),{disableUnderMinimumViewportHeight:t=!1,minimumViewportHeight:n=Zp,disableUnderMinimumViewportWidth:i=!1,minimumViewportWidth:r=ef}=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 o=8;if(la()){const t=e.querySelector(".search-bar");t&&(o=t.getBoundingClientRect().height)}this.stickyHeader=e,this.stickyElementOptions={exposeStickyState:!0,isBottom:!1,isPositionSticky:!0,scrollThreshold:o};const a=t&&n>0,s=i&&r>0;return a||s?(a&&this.setupDisableUnderMinimumViewportHeight(n),s&&this.setupDisableUnderMinimumViewportWidth(r)):this.instantiateStickyElement(),this.stickyElement}instantiateStickyElement(){this.stickyElement=new Qc(this.stickyHeader,this.stickyElementOptions)}setupDisableUnderMinimumViewportHeight(e){const t=`(min-height: ${e}px)`,n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}setupDisableUnderMinimumViewportWidth(e){const t=`(min-width: ${e}px)`,n=window.matchMedia(t);n.addEventListener("change",this.handleMediaQueryChange.bind(this)),this.handleMediaQueryChange(n)}handleMediaQueryChange(e){e.matches?(this.stickyHeader.classList.remove("sticky-header--disabled"),this.stickyElement||this.instantiateStickyElement()):this.stickyHeader.classList.add("sticky-header--disabled")}}function nf(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const rf=nf("action"),of=nf("openpage"),af=nf("openlink"),sf=e=>rf(e)&&"BLOCK_PROFILE"===e.action.actionType;function cf(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]:{...e[t]},type:n}}class lf{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]:"",{options:t,optionsV2:n,...i}=this.semaphoreJson;if(t&&!(this.optionStack.length>=i.numberOfSteps)){if("BLOCK_PROFILE"===e){let e=t.find(e=>rf(e)&&"BLOCK_PROFILE"===e.action.type);if(!e)return;e=JSON.parse(JSON.stringify(e)),e.action.actionType="BLOCK_PROFILE";const n=[e];return this.optionStack.push({options:n.map(e=>cf(e)),heading:i.blockConfirmationScreen.heading,...i}),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(of(n))return{...n,...i};const r={options:n[n.type].options.map(e=>cf(e)),...i};n[n.type].heading&&(r.heading=n[n.type].heading),this.optionStack.push(r)}else t=[...t,...n],this.optionStack.push({options:t.map(e=>cf(e)),...i});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=>rf(t)&&t[t.type].title===e);return n&&n.action}}const uf="hidden";class df extends Qo{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(uf)}showFooter(){this.footer.classList.remove(uf)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(uf)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(uf)}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 hf{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,this.previousTrackingControlName=null;const r=this.parentContainer.querySelector(e);if(r){this.semaphoreTrackingPrefix=r.dataset.semaphoreTrackingPrefix;const e=this.parentContainer.querySelector("#semaphore-modal");e&&(this.semaphoreModal=new df(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=a(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();if(e){if(this.renderSemaphoreOptions(e),this.refreshLazyLoader(),this.semaphoreModal.open(),this.previousTrackingControlName){const e=document.querySelector(`.top-level-modal-container [data-tracking-control-name="${this.previousTrackingControlName}"]`);e&&"function"==typeof e.focus&&e.focus()}}else this.semaphoreModal.close();return}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=a(e.target,"[data-semaphore-item]");if(n&&"action"!==n.dataset.semaphoreItem){const t=n.querySelector('[data-attr="title"]');if(this.previousTrackingControlName=n.querySelector("[data-semaphore-input]").dataset.trackingControlName,t){const n=this.semaphoreConfigParser.getNextStep(t.textContent);if(n){of(n)?(this.renderThanks(n.resultScreen),this.submitActionCallBack(e)):this.renderSemaphoreOptions(n),this.refreshLazyLoader(),this.semaphoreModal.open();const t=document.querySelector(".top-level-modal-container [data-semaphore-input]");null==t||t.focus()}}}else{if(n&&"BLOCK_PROFILE"===n.dataset.semaphoreType){this.previousTrackingControlName=n.querySelector("[data-semaphore-input]").dataset.trackingControlName;const e=this.semaphoreConfigParser.getNextStep("BLOCK_PROFILE");e&&this.renderSemaphoreOptions(e);const t=document.querySelector(".top-level-modal-container .semaphore-modal__title");null==t||t.focus()}this.parentContainer||this.semaphoreClickHandler(e)}}semaphoreClickHandler(e){let t=a(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,t.dataset.semaphoreParentUrn,t.dataset.semaphoreReporterProfileUrn,"true"===t.dataset.semaphoreShouldSendXLiTrack,"true"===t.dataset.semaphoreShouldSendAuthorUrn).then(async e=>{this.semaphoreConfigParser=new lf(e);const t=this.semaphoreConfigParser.getNextStep();if(t){this.renderSemaphoreOptions(t),this.refreshLazyLoader(),await this.semaphoreModal.open();const e=document.querySelector(".top-level-modal-container .modal__wrapper");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 a=o.type;af(o)&&!i&&(i=!0),rf(o)&&(n||(n=!1===o[a].nonRadioOptionEnabled),a=sf(o)?"block":o[a].nonRadioOptionEnabled?a:a+"-radio");const s=this.parentContainer.querySelector(`#semaphore-${a}-template`).content.firstElementChild.cloneNode(!0),c=o[o.type],l=il();s.querySelector("[data-semaphore-input]").id=l;const u=s.querySelector("[data-semaphore-label]");u&&(u.htmlFor=l);const d=s.querySelector('[data-attr="title"]');if(d&&(d.textContent=c.title),c.type&&(s.dataset.semaphoreType=c.type),rf(o)){if(sf(o)){r=!0;const t=`${e.blockConfirmationScreen.firstLine} \n ${e.blockConfirmationScreen.secondLine}`;s.querySelector('[data-attr="block-content"]').textContent=t}s.querySelector("[data-semaphore-input]").value=c.title}const h=s.querySelector('[data-attr="body"]');h&&(c.body?h.textContent=c.body:h.remove()),c.url&&(s.querySelector("[data-semaphore-input]").href=c.url),s.querySelector("[data-semaphore-input]").dataset.trackingControlName=c.trackingId,t.appendChild(s)}),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 o(e,this.semaphoreTrackingPrefix)}sendAction(e){return Z(e.actionUrl,{method:e.actionUrlRequestType,postData:e.actionPostData})}getLiTrackHeaders(){var e;const t=(null===(e=document.getElementById("config"))||void 0===e?void 0:e.dataset)||{},{appVersion:n,multiproductName:i}=t;return{mpName:i,mpVersion:n,timezoneOffset:(new Date).getTimezoneOffset(),deviceFormFactor:"PHONE",displayHeight:screen.height,displayWidth:screen.width}}makeSemaphoreRequest(e,t,n,i,r,o,a,s){let c=v("/psettings/flagging-menu","entityUrn",e);c=v(c,"contentSource",t),r&&(c=v(c,"parentUrn",r)),o&&(c=v(c,"reporterProfileUrn",o)),n&&!s?c=v(c,"authorProfileId",n):i&&(c=v(c,"authorUrn",i));return Z(c,a?{headers:{"x-li-track":JSON.stringify(this.getLiTrackHeaders())}}:{}).then(e=>200===e.status?e.responseText:"{}").catch(()=>"{}")}refreshLazyLoader(){window.lazyloader&&window.lazyloader.then(e=>{e.refreshLoader()})}}class pf{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 $(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new hf('[data-item-type="semaphore"]',t))}}function ff(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})}function gf(e){var t;null===(t=window.appDetection)||void 0===t||t.then(t=>{t.some(e=>"windows"===(null==e?void 0:e.platform)&&"7EE7776C.LinkedInforWindows_w1wdnht996qgy!App"===(null==e?void 0:e.id))&&e()})}class vf{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 Gl(this.el,this.dismissBtn,{isShown:t}),gf(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".windows-app-upsell .windows-app-upsell__cta");e&&e.setAttribute("href","linkedin://")}}class mf extends al{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:mf.query,variables:{handleString:e},successCallback:t,failureCallback:n})}}ja(mf,"query","77715b456915324f44eb5c5ae5981169");const yf=10;class Ef{constructor(e){let{minutesCoolOff:t=yf,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.showOnPageLoad=this.el.hasAttribute("data-show-on-page-load"),this.modalEl=this.el.querySelector(".modal");const i=this.el.querySelector('[data-id="sign-in-form"]');i&&(null!==Fa("joinUrl")?this.signInForm=new Qh(i,{customValidate:this._onSubmitValidate.bind(this),fireTrackingOnInit:!1}):this.signInForm=new Qh(i,{fireTrackingOnInit:!1})),this.modal=new Qo(this.modalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n}),this.modalEl.addEventListener("close",()=>{this._setCoolOff()}),this.showOnPageLoad&&this.modal.open()}_onSubmitValidate(e){var t,n=this;const i=(null===(t=e.querySelector("input[name=session_key]"))||void 0===t?void 0:t.value)||"";new mf("/ssr-login/api/runQuery").execute(i,(function(){var t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"UNKNOWN"!==(null==r||null===(t=r.handleVerification)||void 0===t?void 0:t.handleVerificationStatus)?e.submit():n._signUpRedirect(i)}),()=>{this._signUpRedirect(i)})}_signUpRedirect(e){const t=document.createElement("form"),n=document.querySelector('input[name="loginCsrfParam"]').value;t.classList.add("hidden"),t.method="post",t.action=v(Fa("joinUrl")?Fa("joinUrl"):"/signup/cold-join","csrfToken",n),document.body.appendChild(t);const i=document.createElement("input");i.name="username",i.value=e,t.appendChild(i);const r=document.createElement("input");r.name="csrfToken",r.value=n,t.appendChild(r),t.submit()}_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""}}}class bf{constructor(e){var t;this.el=e,this.mergeSignInSignUpContainer=null,this._onSubmitValidate=this._onSubmitValidate.bind(this),this._goBackToValidationForm=this._goBackToValidationForm.bind(this),document.querySelectorAll(".merge-sign-in-sign-up__validation-form").forEach(e=>{null==e||e.addEventListener("submit",e=>{e.preventDefault(),this.mergeSignInSignUpContainer=e.target.closest(".merge-sign-in-sign-up__container"),this._onSubmitValidate(e)})}),null===(t=this.el.querySelector(".merge-sign-in-sign-up__back"))||void 0===t||t.addEventListener("click",this._goBackToValidationForm)}_onSubmitValidate(e){var t;const n=(null===(t=e.target.querySelector("#username"))||void 0===t?void 0:t.value)||"";if(!n)return;return new mf("/ssr-login/api/runQuery").execute(n,this._onValidationSucceeeded.bind(this),this._onValidationFailed.bind(this))}_onValidationSucceeeded(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};"UNKNOWN"===(null==t||null===(e=t.handleVerification)||void 0===e?void 0:e.handleVerificationStatus)?this._showJoinForm():this._showSignInForm()}_onValidationFailed(){this._showJoinForm()}_hideValidationForm(){const e=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__validation-form"),t=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__entity-image");this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__back").classList.remove("hidden"),null==t||t.classList.add("hidden"),e.classList.add("hidden")}_showSignInForm(){const e=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__sign-in-form");this._hideValidationForm(),e.classList.remove("hidden")}_signUpRedirect(e){const t=document.createElement("form"),n=document.querySelector('input[name="loginCsrfParam"]').value;t.classList.add("hidden"),t.method="post",t.action=v(Fa("joinUrl")?Fa("joinUrl"):"/signup/cold-join","csrfToken",n),document.body.appendChild(t);const i=document.createElement("input");i.name="username",i.value=e,t.appendChild(i);const r=document.createElement("input");r.name="csrfToken",r.value=n,t.appendChild(r),t.submit()}_showJoinForm(){const e=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__join-form");this._hideValidationForm(),e.classList.remove("hidden"),this._signUpRedirect()}_goBackToValidationForm(){const e=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__sign-in-form"),t=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__join-form"),n=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__validation-form"),i=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__back"),r=this.mergeSignInSignUpContainer.querySelector(".merge-sign-in-sign-up__entity-image");i.classList.add("hidden"),e.classList.add("hidden"),t.classList.add("hidden"),n.classList.remove("hidden"),null==r||r.classList.remove("hidden")}}const wf=10;class _f{constructor(e){let{minutesCoolOff:t=wf,triggerByOutletEl:n=!0,onNotOpenedOnInit:i=(()=>{})}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to contextual sign in card");if(this.el=e,this.coolOffEnabled=this.el.hasAttribute("data-cool-off-enabled"),this.showOnPageLoad=this.el.hasAttribute("data-show-on-page-load"),this.coolOffPeriod=60*t*1e3,this.signInModalEl=this.el.querySelector(".sign-in-modal"),this.signInModalEl&&(this.signInModal=new Ef(this.signInModalEl)),Fa("isMergeSignInSignUpV2Enabled")&&(this.mergeSignInSignUp=new bf(this.el)),null===Fa("mergeSignInSignUpLixValue")||"control"===Fa("mergeSignInSignUpLixValue")){var r,o,a;this.contextualModalEl=this.el.querySelector(".modal--contextual-sign-in"),this.contextualModalEl&&(this.anonymousLoginToggleInput=this.contextualModalEl.querySelector(".anonymous-login-toggle input"),this.contextualModal=new Qo(this.contextualModalEl,{enablePageViewTracking:!0,shouldHideModal:this._shouldHideModal.bind(this),triggerByOutletEl:n}));const e=this.el.querySelector(".contextual-sign-in-modal__sign-in-form");e&&(this.signInForm=new Qh(e,{fireTrackingOnInit:!1})),null===(r=this.signInModal)||void 0===r||r.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()}),null===(o=this.signInModal)||void 0===o||o.modalEl.addEventListener("close",()=>{this._syncToggleStates(this.anonymousLoginToggleInput,this.signInModal.signInForm.anonymousLoginToggleInput),this._setCoolOff()});const t=this.el.querySelector(".contextual-sign-in-modal__sign-in-with-email-cta"),s=this.el.querySelector(".contextual-sign-in-modal__sign-in-form"),c=this.el.querySelector(".contextual-sign-in-modal__google-sign-in-primary"),l=this.el.querySelector(".contextual-sign-in-modal__google-sign-in-secondary");null==t||t.addEventListener("click",()=>{t.classList.add("hidden"),s.classList.remove("hidden"),c.classList.add("hidden"),l.classList.remove("contextual-sign-in-modal__google-sign-in-secondary--hidden")}),this.contextualModalEl.addEventListener("close",()=>{this._setCoolOff()}),this.showOnPageLoad&&this.contextualModal.open(),null!==(a=this.contextualModal)&&void 0!==a&&a.isOpen||i()}}_syncToggleStates(e,t){e&&t&&(e.checked=t.checked)}_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 Tf={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 a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function s(e){return(s=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,s(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=s(e);if(l()){var i=s(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function g(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function m(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;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 y="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",E={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},w={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},T={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"}},S={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},C={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},I=E.GOOGLE_ERROR,k=E.GOOGLE_USER_FETCHED,A=E.INITIALIZED,x=b.INITIALIZATION,O=b.AUTHENTICATION,L=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,a=e.el,s=e.clientId,c=void 0===s?y:s;if(t(this,r),i=n.call(this),!a)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=a,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.");g((function(){v(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(A);e.dispatchEvent(n)})).catch((function(t){var n={type:x,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(k,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:O,message:t.error},i=new CustomEvent(I,{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));function R(e,t){return e?t.getDismissedReason():t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()}var N=E.GOOGLE_USER_FETCHED,P=E.PROMPT_MOMENT,D=E.GOOGLE_ERROR,M=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,a=void 0!==o&&o,s=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?y:u,p=e.cancelOnTapOutside,f=void 0===p||p,E=e.itpSupport,b=e.useFedCM,w=void 0!==b&&b;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=a,i.libSrcPath=s,i.containerId=c,i.cancelOnTapOutside=f,i.clientId=d,i.context=l,i.itpSupport=E,i.useFedCM=w,i.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!s)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(s,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this._initGoogleApi(),this.isInitialized.then((function(){var t=new CustomEvent(E.INITIALIZED);e.dispatchEvent(t),e.promptOneTap()})).catch((function(t){var n=new CustomEvent(D,{detail:{type:b.INITIALIZATION,error:t}});e.dispatchEvent(n)}))}},{key:"_initGoogleApi",value:function(){var e={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,use_fedcm_for_prompt:this.useFedCM};void 0!==this.itpSupport&&(e.itp_support=this.itpSupport);try{window.google.accounts.id.initialize(e)}catch(e){this.isInitialized.reject(e)}this.isInitialized.resolve()}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===w.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(N,{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:T.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:R(e.useFedCM,t)},i=new CustomEvent(P,{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)),U={exports:{}};function F(e){this.message=e}F.prototype=new Error,F.prototype.name="InvalidCharacterError";var B="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new F("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a},q=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(B(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 B(t)}};function H(e){this.message=e}H.prototype=new Error,H.prototype.name="InvalidTokenError",U.exports=function(e,t){if("string"!=typeof e)throw new H("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(q(e.split(".")[n]))}catch(e){throw new H("Invalid token specified: "+e.message)}},U.exports.InvalidTokenError=H;var j=U.exports,G=E.GOOGLE_USER_FETCHED,W=E.PROMPT_MOMENT,z=E.GOOGLE_ERROR,K=function(e){a(s,e);var n=f(s);function s(e){var i,r=e.autoSelect,o=void 0!==r&&r,a=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?y:u,p=e.context,f=void 0===p?"signin":p,E=e.gsiButtonConfig,b=void 0===E?{}:E,w=e.libSrcPath,_=e.hasContentAbove,T=void 0!==_&&_,S=e.promptParentId,C=e.showOneTap,I=void 0===C||C,k=e.itpSupport,A=e.useFedCM,x=void 0!==A&&A;if(t(this,s),(i=n.call(this)).autoSelect=o,i.buttonParentEl=a,i.cancelOnTapOutside=l,i.clientId=d,i.context=f,i.gsiButtonConfig=b,i.libSrcPath=w,i.hasContentAbove=T,i.promptParentId=S,i.showOneTap=I,i.itpSupport=k,i.useFedCM=x,i.isLibraryLoaded=m(),i.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!w)throw TypeError("GSI library is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(w,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(s,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),this._initGoogleApi(),this.isInitialized.then((function(){var t=new CustomEvent(E.INITIALIZED);e.dispatchEvent(t),e.showGsiUI()})).catch((function(t){var n=new CustomEvent(z,{detail:{type:b.INITIALIZATION,error:t}});e.dispatchEvent(n)}))}},{key:"_initGoogleApi",value:function(){var e={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:C[this.context].GOT,use_fedcm_for_prompt:this.useFedCM};void 0!==this.itpSupport&&(e.itp_support=this.itpSupport);try{window.google.accounts.id.initialize(e)}catch(e){this.isInitialized.reject(e)}this.isInitialized.resolve()}},{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,a=void 0===o?"center":o,s=t.shape,c=void 0===s?"pill":s,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,g=void 0===f?"400px":f;return this.isInitialized.then((function(){var t=d||C[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:a,shape:c,size:u,text:t,theme:h,type:p,width:g})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isInitialized.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:R(e.useFedCM,t)},i=new CustomEvent(W,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=j(t),a=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(a){var s=new CustomEvent(G,{detail:a});this.dispatchEvent(s)}}},{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")}}}]),s}(d(EventTarget)),V={PROD:"3fa91358-6f74-4525-b5df-da149652be36",LOCAL:"e5078fe9-f96f-4177-a256-a13b9bda6b1c"},X={MICROSOFT_ERROR:"microsoftError",USER_FETCHED:"microsoftUserFetched",PROMPT_MOMENT:"promptMomentNotification"},Y={signin:{MS_OT:"signin",MS_BUTTON:"signin_with"},signup:{MS_OT:"signup",MS_BUTTON:"signup_with"},use:{MS_OT:"use",MS_BUTTON:"continue_with"}},J=X.MICROSOFT_ERROR,Q=X.PROMPT_MOMENT,$=X.USER_FETCHED,Z=function(e){a(r,e);var n=f(r);function r(e){var i,o,a,s=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?V.PROD:u,p=e.context,f=void 0===p?"use":p,y=e.globalWindow,E=void 0===y?window:y,b=e.libSrcPath,w=e.locale,_=e.malButtonConfig,T=void 0===_?{}:_,S=e.oneTapPosition,C=void 0===S?"right":S,I=e.redirectState,k=e.redirectURI,A=e.showOneTap,x=void 0!==A&&A;if(t(this,r),(a=n.call(this)).buttonParentEl=s,a.cancelOnTapOutside=l,a.clientId=d,a.context=f,a.libSrcPath=b,a.locale=(w||"en-US").replace("_","-"),a.malButtonConfig=T,a.oneTapPosition=C,a.redirectState=I,a.window=E,a.redirectURI=k||a._getRedirectURI(),a.showOneTap=x,a.isLibraryLoaded=m(),null===(i=a.window.ms)||void 0===i||null===(o=i.auth)||void 0===o?void 0:o.initialize)a._onMicrosoftAuthLibLoad();else{if(!b)throw TypeError("MAL lib is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(b,a._onMicrosoftAuthLibLoad.bind(h(a)))}))}return a}return i(r,[{key:"_getRedirectURI",value:function(){var e,t,n;return(null===(e=this.window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.origin)||void 0===n?void 0:n.includes("linkedin.com"))?"https://www.linkedin.com/microsoft-login/handler":"https://www.linkedin-ei.com/microsoft-login/handler"}},{key:"_onMicrosoftAuthLibLoad",value:function(){var e=this;this.isLibraryLoaded.resolve();var t=this.window.ms.auth.initialize({auto_prompt:this.showOneTap,client_id:this.clientId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context,locale:this.locale,redirect_state:this.redirectState,redirect_uri:this.redirectURI,ux_mode:"redirect"});if("success"===t.result)return Promise.resolve().then((function(){return e.showMALUI()}));console.error("MAL failed to init",t.result)}},{key:"showMALUI",value:function(){this.buttonParentEl&&this.renderMALButton(this.buttonParentEl,this.malButtonConfig),this.showOneTap&&this.promptMSOneTap()}},{key:"renderMALButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.height,a=void 0===o?42:o,s=t.shape,c=void 0===s?"pill":s,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=void 0===h?"light":h,f=t.type,g=t.width,v=void 0===g?600:g;return this.isLibraryLoaded.then((function(){var t=d||Y[n.context].MS_BUTTON;n.window.ms.auth.renderSignInButton(e,{logo_alignment:r,height:a,shape:c,size:u,text:t,theme:p,type:f,width:v})}))}},{key:"promptMSOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){e.window.ms.auth.prompt(e.oneTapPosition,(function(t){var n={type:t.type,reason:t.reason},i=new CustomEvent(Q,{detail:n});e.dispatchEvent(i)}))}))}},{key:"_handleCredentialResponse",value:function(e,t){if(e){var n=e.authCode,i=e.email,r=e.givenName,o=e.surname,a=e.id,s=e.idToken,c=e.photoUrl,l=new CustomEvent($,{detail:{authCode:n,email:i,familyName:o,givenName:r,id:a,idToken:s,imageUrl:c}});this.dispatchEvent(l)}else if(t){var u=new CustomEvent(J,{detail:t});this.dispatchEvent(u)}}},{key:"hideOneTap",value:function(){this.window.ms.auth.cancel()}}]),r}(d(EventTarget)),ee=S.DISMISSED,te=S.INITIALIZED,ne=S.SNAPPLE_USER_FETCHED,ie=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,a=e.snappleCTA,s=e.clientId,c=void 0===s?"com.linkedin.LinkedIn.service":s,l=e.redirectURI;if(t(this,r),i=n.call(this),!a)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=a,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");g((function(){v(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(te);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(ne,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ee,{detail:{type:ee,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),re={CLIENT_ID:y,EVENTS:E,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"},GSI_SELECT_BY:{AUTO:"auto",USER:"user",FEDCM:"fedcm",FECM_AUTO:"fecm_auto",USER_1TAP:"user_1tap",USER_2TAP:"user_2tap",BTN:"btn",BTN_CONFIRM:"btn_confirm",BTN_ADD_SESSION:"btn_add_session",BTN_CONFIRM_ADD_SESSION:"btn_confirm_add_session",ITP_ADD_SESSION:"itp_add_session"},GOT_CONTEXTS:w,GOT_PROMPT_MOMENT_REASONS:T,GOT_PROMPT_MOMENT_TYPES:_},oe={CLIENT_IDS:V,CONTEXTS:Y,EVENTS:X,PROMPT_MOMENT_TYPES:{DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},PROMPT_MOMENT_REASONS:{DISPLAY:{ANOTHER_PROMPT_RUNNING:"another_prompt_running",BROWSER_NOT_SUPPORTED:"browser_not_supported",IN_COOLDOWN_PERIOD:"in_cooldown_period",NON_MSA_PROFILE:"non_msa_profile",UNKNOWN:"unknown"},SKIPPED:{TAP_OUTSIDE:"tap_outside",UNKNOWN:"unknown",USER_CANCELLED:"user_canceled"},DISMISSED:{CANCEL_CALLED:"cancel_called",CREDENTIAL_RETURNED:"credential_returned",CREDENTIAL_OBTAINED_FAILED:"credential_obtained_failed",FLOW_RESTARTED:"flow_restarted"}}};e.GoogleGsi=K,e.GoogleOneTap=M,e.GoogleSignIn=L,e.GoogleSignInConstants=re,e.MicrosoftAuth=Z,e.MicrosoftSignInConstants=oe,e.SnappleAuth=ie,e.SnappleEvents=S,Object.defineProperty(e,"__esModule",{value:!0})})(Tf.exports);const{EVENTS:Sf,GOT_CONTEXTS:Cf,GOT_PROMPT_MOMENT_REASONS:If,GOT_PROMPT_MOMENT_TYPES:kf,GSI_ERROR_TYPES:Af}=Tf.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:xf,PROMPT_MOMENT:Of,GOOGLE_ERROR:Lf}=Sf,{SIGN_IN:Rf}=Cf,Nf=[If.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,If.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,If.NOT_DISPLAYED.SUPPRESSED_BY_USER],Pf=[If.SKIPPED.AUTO_CANCEL,If.SKIPPED.TAP_OUTSIDE,If.SKIPPED.USER_CANCEL],Df=Object.freeze({GOOGLE_AUTH_INITIALIZED:"google-auth--initialized",GOOGLE_ONE_TAP_DISPLAYED:"google-one-tap--displayed",GOOGLE_ONE_TAP_ACCOUNT_SELECTED:"google-one-tap--account-selected",GOOGLE_ONE_TAP_USER_DISMISSED:"google-one-tap--user-dismissed",GOOGLE_SIGN_IN_ACCOUNT_SELECTED:"google-sign-in--account-selected"}),Mf=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"}),Uf=Object.freeze({GOOGLE_AUTH_NO_SESSION:"GoogleAuthDisabledOrNoSessionError",GOOGLE_AUTH_MISC_ERROR:"GoogleAuthMiscError",GOOGLE_AUTH_INITIALIZATION_ERROR:"GoogleAuthLibraryInitializationError",GOOGLE_AUTH_AUTHENTICATION_ERROR:"GoogleAuthFetchUserInfoError",GOOGLE_AUTH_ONE_TAP_DISPLAYED:"GoogleAuthOneTapShown",GOOGLE_AUTH_ONE_TAP_ACCOUNT_SELECTED:"GoogleAuthOneTapAccountSelected",GOOGLE_AUTH_ONE_TAP_COOLDOWN:"GoogleAuthOneTapOnCooldown",GOOGLE_AUTH_BUTTON_ACCOUNT_SELECTED:"GoogleAuthButtonAccountSelected"});class Ff{constructor(e){var t;let{clientId:n,globalWindow:i=window,onNotDisplayed:r,onSkipped:o,showOneTapOnInit:a=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.buttons=Array.from(document.querySelectorAll(".google-auth-button__placeholder")),this.clientId=n,this.isLinkedInAppWebView=!0===Fa("isLinkedInAppWebView"),this.el=e,this.showOneTapOnInit=a,this.canShowOneTap=!this.isLinkedInAppWebView,(this.buttons.length||this.canShowOneTap&&this.el)&&(this.useAutoSelect=this._shouldAutologin(),this.shouldRemoveUndefinedValues=Fa("shouldRemoveUndefinedValues"),this.window=i,this.onNotDisplayed=r,this.onSkipped=o,this.loader=new fl(this.el.querySelector(".loader"),this.el),this._isMobile=Q(),this.isFedCmBrowser=!!this.window.FederatedCredential,this.tncFlow=Fa("tncFlow"),this.useFedCM=this.isFedCmBrowser&&"fedcm"===this.tncFlow,this.useItpSupport=!this.useFedCM&&Fa("isItpSupportEnabled"),this.buttonsSafeToSkipTncRedirect=this.buttons.every(e=>e.hasAttribute("data-safe-to-skip-tnc-redirect")),this.oneTapShouldShowTermsAndConditions=!this.useFedCM&&"control"===this.tncFlow,this.googleOneTapModuleEl=this.useFedCM?null:this.el.querySelector(".google-one-tap__module"),this.tncEl=this.oneTapShouldShowTermsAndConditions&&(null===(t=this.googleOneTapModuleEl)||void 0===t?void 0:t.querySelector(".google-auth__tnc-container ")),this.useDirectGsiLoad=!0===Fa("useDirectGoogleGsiLoad"),this.googleGsiLibPromise=null,this.isInitialized=this._initGoogleAuth().catch(e=>{this._fireCounterIngraphMetric(Uf.GOOGLE_AUTH_INITIALIZATION_ERROR),this._throwGoogleAuthError(e,"constructor--"+Uf.GOOGLE_AUTH_INITIALIZATION_ERROR)}))}_initGoogleAuth(){return this._waitForGoogleGsiLib().then(()=>{var e,t;this.googleGsiInstance=new Tf.exports.GoogleGsi({autoSelect:this.useAutoSelect,cancelOnTapOutside:!1,clientId:this.clientId,context:Rf,hasContentAbove:this.oneTapShouldShowTermsAndConditions,promptParentId:null===(e=this.googleOneTapModuleEl)||void 0===e||null===(t=e.querySelector("#google-one-tap__container"))||void 0===t?void 0:t.id,showOneTap:this.canShowOneTap&&this.showOneTapOnInit,itpSupport:this.useItpSupport,useFedCM:this.useFedCM}),this._addEventListeners()})}_addEventListeners(){this.googleGsiInstance.addEventListener(Sf.INITIALIZED,()=>{this._fireControlInteractionEvent(Df.GOOGLE_AUTH_INITIALIZED),this._initButtons()}),this.googleGsiInstance.addEventListener(xf,e=>{let{detail:t}=e;const{email:n,familyName:i,givenName:r,idToken:o,imageUrl:a,selectedBy:s}=t;this.loader.show();const c=Ff._getRequestType(s);this._addGoogleFieldToForm("googleGivenName",r),this._addGoogleFieldToForm("googleIdToken",o),this._addGoogleFieldToForm("googleFamilyName",i),this._addGoogleFieldToForm("googleImageUrl",a),this._addGoogleFieldToForm("googleEmail",n),this._addGoogleFieldToForm("soogleLoginRequestType",c),this._addGoogleFieldToForm("apfc",Yh());const l=c===Mf.BUTTON?Df.GOOGLE_SIGN_IN_ACCOUNT_SELECTED:Df.GOOGLE_ONE_TAP_ACCOUNT_SELECTED;this._fireControlInteractionEvent(l),this._conditionalIncludeTermsAndConditionsSkip(l),this._fireCounterIngraphMetricForAccountSelected(c),this.el.submit()}),this.googleGsiInstance.addEventListener(Of,e=>{let{detail:t}=e;if(!this.useFedCM&&Fa("isGoogleAuthButtonLocaleSupportEnabled")){const e=this._isMobile?document.querySelector("#credential_picker_iframe"):document.querySelector("#credential_picker_container iframe"),t=Fa("gsiLocale");e&&t&&(e.src=v(e.src,"hl",t))}const{reason:n,type:i}=t;let r="google-one-tap-moment--"+i;r=n?`${r}-${n}`:r,this._fireControlInteractionEvent(r);const o=this._getIngraphMetricTypeForPrompts(i,n);if(o&&this._fireCounterIngraphMetric(o),n){if(i===kf.SKIPPED){if(n===If.SKIPPED.USER_CANCEL&&(this._toggleGoogleOneTapModule(!1),this._fireControlInteractionEvent(Df.GOOGLE_ONE_TAP_USER_DISMISSED)),this.onSkipped)this.onSkipped(t);else if(-1===Pf.indexOf(n))throw Error(`GoogleOneTapError ${i}: ${n}`)}else if(i===kf.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===Nf.indexOf(n))throw Error(`GoogleOneTapError ${i}: ${n}`)}else if(i===kf.DISPLAY){if(this._isMobile){const e=document.querySelector("#credential_picker_iframe");if(e){new ResizeObserver(e=>{for(let t of e)this.googleOneTapModuleEl&&(0===t.contentRect.height?this._toggleGoogleOneTapModule(!1):(this._toggleGoogleOneTapModule(!0),this.googleOneTapModuleEl.style.bottom=t.contentRect.height+"px"))}).observe(e)}}else this._toggleGoogleOneTapModule(!0);this._fireViewModuleImpressionEvent("google-one-tap")}}),this.googleGsiInstance.addEventListener(Lf,e=>{let{detail:t}=e;const{type:n,error:i}=t,r=this._getIngraphMetricTypeForGoogleError(n);r&&this._fireCounterIngraphMetric(r);const o=r||"unknown-error-type--"+(n||"no-type");this._throwGoogleAuthError(i,"library--"+o)})}_toggleGoogleOneTapModule(e){var t,n;null===(t=this.googleOneTapModuleEl)||void 0===t||t.classList.toggle("hidden",!e),null===(n=this.tncEl)||void 0===n||n.classList.toggle("hidden",!e)}_fireCounterIngraphMetric(e){this.window.ingraphTracking&&this.window.ingraphTracking.then(t=>{t.fireCounterIngraphMetric({metricsType:e})})}_getIngraphMetricTypeForPrompts(e,t){return e||t?e!==kf.DISPLAY||t?e===kf.DISPLAY&&t===If.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?Uf.GOOGLE_AUTH_NO_SESSION:e===kf.DISPLAY&&t===If.NOT_DISPLAYED.SUPPRESSED_BY_USER?Uf.GOOGLE_AUTH_ONE_TAP_COOLDOWN:Pf.indexOf(t)>=0||Nf.indexOf(t)>=0?Uf.GOOGLE_AUTH_MISC_ERROR:void 0:Uf.GOOGLE_AUTH_ONE_TAP_DISPLAYED:null}_getIngraphMetricTypeForGoogleError(e){return e?e===Af.AUTHENTICATION?Uf.GOOGLE_AUTH_AUTHENTICATION_ERROR:e===Af.INITIALIZATION?Uf.GOOGLE_AUTH_INITIALIZATION_ERROR:void 0:null}_waitForGoogleGsiLib(){return this.useDirectGsiLoad?this._waitForDirectGoogleGsiLib():this.window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-gsi-lib"))}_waitForDirectGoogleGsiLib(){if(this.googleGsiLibPromise)return this.googleGsiLibPromise;if(this._isDirectLoadReady())return this.googleGsiLibPromise=Promise.resolve(this._resolveGoogleGsiLibFromWindow()),this.googleGsiLibPromise;const e=this._getDirectLoadScriptElement();return e?(this.googleGsiLibPromise=new Promise((t,n)=>{const i=()=>{t(this._resolveGoogleGsiLibFromWindow())};e.addEventListener("load",i,{once:!0}),e.addEventListener("error",()=>{n(new Error("google-auth--direct-load: failed to load google-gsi-lib script"))},{once:!0}),this._isDirectLoadReady()&&i()}),this.googleGsiLibPromise):(this.googleGsiLibPromise=Promise.reject(new Error("google-auth--direct-load: google-gsi-lib script element was not found on the page")),this.googleGsiLibPromise)}_getDirectLoadScriptElement(){var e;return(null===(e=this.window.document)||void 0===e?void 0:e.querySelector('script[data-module-id="google-gsi-lib"]'))||null}_isDirectLoadReady(){return Boolean(this._resolveGoogleGsiLibFromWindow())}_resolveGoogleGsiLibFromWindow(){var e,t;return this.window["google-gsi-lib"]||(null===(e=this.window.google)||void 0===e||null===(t=e.accounts)||void 0===t?void 0:t.id)}_fireCounterIngraphMetricForAccountSelected(e){switch(e){case Mf.BUTTON:return void this._fireCounterIngraphMetric(Uf.GOOGLE_AUTH_BUTTON_ACCOUNT_SELECTED);default:return void this._fireCounterIngraphMetric(Uf.GOOGLE_AUTH_ONE_TAP_ACCOUNT_SELECTED)}}_fireViewModuleImpressionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{Wo(t,[e])})}_fireControlInteractionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}_throwGoogleAuthError(e,t){const n="google-auth--"+t,i=(null==e?void 0:e.message)||e||"Error occurred without error object";throw new Error(`${n}: ${i}`)}_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._addGoogleIframeMutationObserver(e),this.googleGsiInstance.renderGSIButton(e,this._getButtonConfig(e))}))}_addGoogleIframeMutationObserver(e){const t=new MutationObserver((function(t,n){for(const i of t)"childList"===i.type&&i.addedNodes.forEach(t=>{if("IFRAME"===t.tagName?t:t.querySelector("iframe")){const t=e.closest(".google-auth-button");t&&(t.dataset.googleAuthIframeInitialized=""),n.disconnect()}})}));return t.observe(e,{childList:!0,subtree:!0}),t}_getButtonConfig(e){if(e){const t=e.clientWidth&&e.clientWidth+"px"||e.style.maxWidth||"0px",{logoAlignment:n,text:i,theme:r,locale:o}=e.dataset,a={text:i||"continue_with",width:t};return n&&(a.logo_alignment=n),r&&(a.theme=r),o&&(a.locale=o),a}return{}}static _getRequestType(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";switch(!0){case"auto"===e:case"fedcm_auto"===e:return Mf.ONE_TAP_AUTO_LOGIN;case e.indexOf("user")>-1:case e.indexOf("fedcm")>-1:case e.indexOf("itp")>-1:return Mf.ONE_TAP;default:return Mf.BUTTON}}_addGoogleFieldToForm(e,t){if(this.shouldRemoveUndefinedValues&&void 0===t)return;const n=document.createElement("input");n.type="hidden",n.name=e,n.id=e,n.value=t,this.el.appendChild(n)}_shouldAutologin(){return!(null!==y("li_g_recent_logout"))}_conditionalIncludeTermsAndConditionsSkip(e){(e===Df.GOOGLE_ONE_TAP_ACCOUNT_SELECTED&&this.googleOneTapModuleEl&&this.tncEl&&!this.tncEl.classList.contains("hidden")||e===Df.GOOGLE_SIGN_IN_ACCOUNT_SELECTED&&this.buttonsSafeToSkipTncRedirect)&&this._addGoogleFieldToForm("termsAndConditionsSkip",!0)}promptOneTap(){this.canShowOneTap&&this.isInitialized.then(()=>{this.googleGsiInstance.promptOneTap()})}}class Bf{constructor(){let{isDev:e=!1,googleAuthConfig:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.disableOneTapOnInitIfCsm=Fa("disableOneTapOnInitIfCsm"),this.googleAuth;const n=document.querySelector(".base-google-auth");if(n){const i={...t,showOneTapOnInit:!this.disableOneTapOnInitIfCsm,...e&&{clientId:"858594933940-drrbstpmpgu7oqc7498bpkdn2b5prc73.apps.googleusercontent.com"}};this.googleAuth=new Ff(n,i)}const i=document.querySelector(".base-contextual-sign-in-modal");if(i){const e={triggerByOutletEl:!0,onNotOpenedOnInit:()=>{this.googleAuth&&this.disableOneTapOnInitIfCsm&&this.googleAuth.promptOneTap()}};this.baseContextualSignInModal=new _f(i,e)}const r=document.querySelector(".windows-app-upsell");r&&(this.windowsAppUpsell=new vf(r))}openContextualSignInModal(){this.baseContextualSignInModal.contextualModal.open()}openSignInModal(){this.baseContextualSignInModal.signInModal.open()}}const{EVENTS:qf,PROMPT_MOMENT_REASONS:Hf,PROMPT_MOMENT_TYPES:jf}=Tf.exports.MicrosoftSignInConstants,{USER_FETCHED:Gf,PROMPT_MOMENT:Wf}=qf;Hf.DISPLAY.ANOTHER_PROMPT_RUNNING,Hf.DISPLAY.BROWSER_NOT_SUPPORTED,Hf.DISPLAY.IN_COOLDOWN_PERIOD,Hf.DISPLAY.NON_MSA_PROFILE,Hf.SKIPPED.TAP_OUTSIDE,Hf.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class zf{constructor(){const e=document.querySelector(".language-selector");e&&(this.languageSelector=new te(e))}}class Kf{constructor(e){if(!e)throw Error("An element must be provided to TopNavMenu");this.el=e,gf(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".top-nav-link[data-tracking-control-name$=_windows]");e&&e.setAttribute("href","linkedin://")}}class Vf{constructor(e){let{searchBarOptions:t,signInCardOptions:n,signInModalOptions:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to Nav");this.el=e;const r=this.el.querySelector(".search-bar");r&&new Dl(r,t);const o=this.el.querySelector(".sign-in-card");o&&new np(o,n);const a=this.el.querySelector(".sign-in-modal");a&&new Ef(a,i);const s=this.el.querySelector(".top-nav-menu");s&&new Kf(s);const c=this.el.querySelector(".nav__cta-dropdown"),l=this.el.querySelector(".nav__cta-dropdown-main-button");c&&new $(c,{dropdownTriggerEl:l})}}class Xf{constructor(){let{navOptions:e,stickyHeaderOptions:t,guestUpsellsOptions:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new zf;document.querySelector(".detail-page__guest-upsells.guest-upsells")&&new Bf(n);const i=document.querySelector(".sticky-header");i&&new tf(i,t),document.querySelector(".member-nav-menu")&&new Zo;const r=document.querySelector(".nav");r&&new Vf(r,e)}}class Yf{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:a,pageKey:s}=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(".modal"),this.modal=new Ml(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:a,pageKey:s}),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()}}let Jf;function Qf(){return Jf||(Jf=new Oc),Jf}function $f(){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&&(Qf().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{}}())}catch{}}class Zf{constructor(){let{shouldShowSuccessToast:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=document.querySelector("#toasts");if(this.shouldShowSuccessToast=e||"saved"===g(window.location.href,"lidirect"),t&&this.shouldShowSuccessToast){const e=Fa("ad_choice_toast_trk");Qf().trigger(xc.SUCCESS,Fa("i18n_ad_choice_toast_message"),e);const t=new URL(window.location.href);null==t||t.searchParams.delete("lidirect"),window.history.replaceState(null,"",t.toString())}}}function eg(e,t){Vs(e,t,{ADD_TAGS:["link"]})}class tg{constructor(){let{bottomSheetEl:e,pushState:t=!0,enablePageViewTracking:n,pageKey:i,shouldHideModal:r,onClose:o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.bottomSheetEl=e||document.querySelector("#bottom-sheet"),!this.bottomSheetEl)throw new Error("Cannot instantiate bottom sheet without container");this._headerEl=this.bottomSheetEl.querySelector(".header-section"),this._titleEl=this.bottomSheetEl.querySelector(".title"),this._contentEl=this.bottomSheetEl.querySelector(".content"),this._footerEl=this.bottomSheetEl.querySelector(".footer"),this.modalInstance=new Ml(this.bottomSheetEl,{enablePageViewTracking:n,pageKey:i,shouldHideModal:r,pushState:t,triggerByOutletEl:!1}),this._hideBottomSheet=this._hideBottomSheet.bind(this),this._attachEventListeners(),this.onClose=o}_hideBottomSheet(){pa(this.bottomSheetEl),this.bottomSheetEl.removeEventListener("transitionend",this._hideBottomSheet)}_attachEventListeners(){this.bottomSheetEl.addEventListener("click",e=>{const t=e.target.closest("[data-action]");"close-bottom-sheet"===(t&&t.dataset.action)&&this.close()}),this.bottomSheetEl.addEventListener("close",()=>{this.isOpen()&&setTimeout(()=>{this.bottomSheetEl.setAttribute("aria-hidden",!0),this.bottomSheetEl.addEventListener("transitionend",this._hideBottomSheet),this.bottomSheetEl.classList.remove("bottom-sheet-open")},0)}),this.bottomSheetEl.addEventListener("open",()=>{this.bottomSheetEl.setAttribute("aria-hidden",!1),fa(this.bottomSheetEl),window.requestAnimationFrame(()=>this.bottomSheetEl.classList.add("bottom-sheet-open"))}),l.getInstance().addUnloadCallback(()=>{this.close()})}setHeader(e){this._headerEl&&eg(this._headerEl,e)}setTitle(e){this._titleEl&&(this._titleEl.textContent=e)}setContent(e){eg(this._contentEl,e)}setFooter(e){this._footerEl&&eg(this._footerEl,e)}isOpen(){return this.bottomSheetEl.classList.contains("bottom-sheet-open")}open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!this.isOpen()&&this.modalInstance.open(e)}close(){var e;this.isOpen()&&(null===(e=this.onClose)||void 0===e||e.call(this));this.isOpen()&&this.modalInstance.close()}}class ng{constructor(e,t){if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to C2paButton");this._el=e,this._feedItemEl=t,this._handleClickAction()}_handleClickAction(){this._el.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),E(this._el,"c2paClick",{c2paCtaEl:this._el,feedItemEl:this._feedItemEl})})}}class ig{constructor(e){let{enablePageViewTracking:t=!0,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!1,shouldMoveToTopContainer:r=!0,focusElement:o,pageKey:a}=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 Ml(this.el,{enablePageViewTracking:t,shouldHideModal:n,triggerByOutletEl:i,shouldMoveToTopContainer:r,focusElement:o,pageKey:a||"p_mwlite_image_viewer"});const s=this.el.querySelector(".slide-list");this.slideList=new Ha(s),null==s||s.addEventListener("click",this._handleImageClick.bind(this));const c=this.el.querySelectorAll(".c2pa-button");null==c||c.forEach(e=>new ng(e))}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")}}const rg={LOAD_INFINITE_SCROLL:"load-infinite-scroll"};function og(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,a=e;let s={productName:t};return r?s={...s,trackedResponseCodes:r}:o&&(s={...s,untrackedResponseCodes:o}),new ed(a,i,s)}(t,i,e))}var ag=Object.freeze({__proto__:null,FEATURE_NAMES:rg,getPemDegradationTrackingMetadataArray:og,firePemTrackingEvent:function(e){let{pageUrl:t,requestPromise:n,featureName:i,featureMappingToDegradationConfig:r,productName:o,urlEntityIdsToRemove:a=[]}=e;if(!t)throw new Error("No pageUrl passed to firePemTrackingEvent function");if(!n)throw new Error("No requestPromise passed to firePemTrackingEvent function");if(!i)throw new Error("No featureName passed to firePemTrackingEvent function");if(!r||!Object.keys(r).length)throw new Error("Mapping of each feature to its corresponding degradation config is mandatory for firePemTrackingEvent function");if(!o)throw new Error("No product name passed to firePemTrackingEvent function");if(Object.keys(r).indexOf(i)>=0)return Promise.all([window.pemTracking,window.tracking]).then(e=>{let[s,c]=e;const l=og({featureName:i,featureMappingToDegradationConfig:r,productName:o});s.trackFeatureDegradationsForFetch(t,a,l,n,c.state.currentPageInstance)})}});const sg={AJAX:"ajax",HALF:"half",FULL:"full",ERROR:"error"};function cg(e,t){var n;return null===(n=window.tracking)||void 0===n?void 0:n.then(n=>{const i=n.generateEnvelope(e,t,{transporterKey:"sponsoredTransporter"});return n.fireEnvelope(i)})}let lg=e=>!e||!e.count||e.start+e.count>=e.total;function ug(e){const{fetchUrl:t,parentListEl:n,pemDegradationTrackingMetadataParams:i,paginationPageKey:r}=e;return function(){const e=document.querySelector("#paginationMetaData")&&Fa("paginationMetaData"),o=t(e),a=n.querySelector(".highlighted-comment"),s=a?a.getAttribute("data-id"):null;if(e&&0!==e.count&&o&&((null==e||!e.total)&&!1!==this.hasMoreContent||!lg(e))){const e=Z(o,{isPemEnabled:!0,pemDegradationTrackingMetadata:og({featureName:i.featureName||rg.LOAD_INFINITE_SCROLL,featureMappingToDegradationConfig:i.featureMappingToDegradationConfig,productName:i.productName})});return e.then(e=>{var t;this.hasMoreContent=!!e.responseText;const i=Vs(null,e.responseText,{ADD_ATTR:["category"]}),o=Array.from(i.childNodes).filter(e=>{if(e.nodeType!==Node.ELEMENT_NODE||!e.hasAttribute)return!0;const t=e.getAttribute("data-id");return!t||t!==s});n.append(...o),null===(t=window.tracking)||void 0===t||t.then(e=>{window.lazyloader.then(e=>e.refreshLoader()),r&&jo(e,sg.AJAX,r)})}).catch(()=>{var e;r&&(null===(e=window.tracking)||void 0===e||e.then(e=>{jo(e,sg.ERROR,r)}));this.removeInfiniteScroller()}),e}return this.removeInfiniteScroller(),Promise.resolve()}}class dg extends Te{constructor(e){if(!e)throw new Error("options object needs to be passed");const t=[];if(e.loadResults||(e.fetchUrl||t.push("fetchUrl"),e.parentListEl||t.push("parentListEl")),t.length)throw new Error(t.join(",")+" must be passed to the component");lg=e.isLastPage||lg;const n={scrollLoadLimit:1e4,wait:300,loaderEl:document.querySelector(".loader--scroller"),...e,loadResults:e.loadResults||ug(e)};super(e.el,n),this.hasMoreContent=!0}}const hg=document.querySelector("#full-page-header-back-button");class pg{constructor(){this.backButton=document.querySelector("#full-page-header-back-button"),this._attachEventListeners()}_attachEventListeners(){this.backButton&&this.backButton.addEventListener("click",()=>history.back())}}window.onload=()=>{null==hg||hg.focus()};class fg{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{fg.instance||(fg.instance=new fg(localStorage)),fg.instance}catch{}}();const gg=function(){try{return fg.sessionInstance||(fg.sessionInstance=new fg(sessionStorage)),fg.sessionInstance}catch{}}();class vg{constructor(e){var t;let{globalWindow:n=window}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw Error("An element must be provided to NonBlockingAppUpsell");this.el=e,this.window=n,this.storageKey=this.el.dataset.storageKey,this.fireIngraphModuleImpression="true"===this.el.dataset.ingraphModuleImpression;let i=864e5;const r=null===(t=this.el.dataset)||void 0===t?void 0:t.coolOffTime;"0"===r||0===r?i=0:r&&!isNaN(r)&&(i=Number(r));"DISMISSED"===gg.readWithExpiry(this.storageKey,i)?this.el.remove():this.initiateUpsell()}initiateUpsell(){var e;(this.dismissBtn=this.el.querySelector('[data-tracking-control-name="non-blocking-upsell__dismiss"]'),this.dismissBtn&&(this.dismissable=new Gl(this.el,this.dismissBtn,{isShown:!0})),this.el.addEventListener("dismiss",this.onUpsellDismiss.bind(this)),this.storageKey)&&(null===(e=this.window.tracking)||void 0===e||e.then(e=>{Wo(e,[this.storageKey])}),this.fireIngraphModuleImpression&&this.window.ingraphTracking&&this.window.ingraphTracking.then(e=>{e.fireModuleImpressionMetric(this.storageKey)}),gg.writeWithExpiry(this.storageKey,"DISPLAY"))}onUpsellDismiss(){this.el.remove(),gg.writeWithExpiry(this.storageKey,"DISMISSED")}}class mg{constructor(e){var t;let{scrollingTargetElementSelector:n=".scroll-counter",scrollingCounterTargetNumber:i=0,counterSpeed:r=100,counterCallback:o=(()=>{}),globalWindow:a=window}=e;if(this.globalWindow=a,this.elements=document.querySelectorAll(n),!this.elements)throw Error("Target Elements for Scrolling counter are not found");!i||0===i||(null===(t=this.elements)||void 0===t?void 0:t.length)<=i?console.error("scrolling counter target number should be greater than total number of elements"):(this.isTriggeredOnce=!1,this.scrollingCount=0,this.scrollingCounterLimitNumber=i,this.counterSpeed=r,this.counterCallback=o,this.resetScrollingCounter())}updateCounter(){this.scrollingCount=this.scrollingCount+1,this.scrollingCount>this.scrollingCounterLimitNumber&&!this.isTriggeredOnce&&(this.isTriggeredOnce=!0,this.counterCallback&&this.counterCallback())}isElementVisible(e){const t=this.globalWindow.scrollY||this.globalWindow.pageYOffset,n=e.getBoundingClientRect().top+t,i=t,r=t+this.globalWindow.innerHeight,o=n,a=n+e.clientHeight;return a>=i&&a<=r||o<=r&&o>=i}handleScroll(){this.elements.forEach(e=>{e.counterAlreadyFired||this.isElementVisible(e)&&(this.updateCounter(),e.counterAlreadyFired=!0)})}resetScrollingCounter(){this.scrollingCount=0,this.elements.forEach(e=>{e.counterAlreadyFired=!1}),this.globalWindow.addEventListener("scroll",ye(this.handleScroll.bind(this),this.counterSpeed))}}const yg="scrolling-counter",Eg="click";var bg=new WeakSet,wg=new WeakSet,_g=new WeakSet,Tg=new WeakSet;class Sg{constructor(e){var t,n,i,r;let{globalWindow:o=window}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ya(this,Tg),Ya(this,_g),Ya(this,wg),Ya(this,bg),!e)throw Error("An element must be provided to BlockingAppUpsell");this.el=e,this.window=o,this.storageKey=null===(t=this.el.dataset)||void 0===t?void 0:t.storageKey,this.fireIngraphModuleImpression="true"===this.el.dataset.ingraphModuleImpression,this.triggerType=null===(n=this.el.dataset)||void 0===n?void 0:n.triggerType,this.elementSelector=null===(i=this.el.dataset)||void 0===i?void 0:i.elementSelector,this.counterTargetNumber=null===(r=this.el.dataset)||void 0===r?void 0:r.counterTargetNumber,Ka(this,wg,Ig).call(this)}openUpsell(e){if(!("DISMISSED"===gg.readWithExpiry(this.storageKey,Ka(this,bg,Cg).call(this)))){if(this.triggerType===yg)new mg({counterCallback:()=>e.open(),scrollingTargetElementSelector:this.elementSelector,scrollingCounterTargetNumber:Number(this.counterTargetNumber)});else if(this.triggerType===Eg){var t;null===(t=document.querySelector(this.elementSelector))||void 0===t||t.addEventListener("click",()=>e.open(),!1)}else null==e||e.open();Ka(this,Tg,Ag).call(this,"DISPLAY"),Ka(this,_g,kg).call(this)}}onClose(){Ka(this,Tg,Ag).call(this,"DISMISSED")}}function Cg(){var e;let t=6048e5;const n=null===(e=this.el.dataset)||void 0===e?void 0:e.coolOffTime;return"0"===n||0===n?t=0:n&&!isNaN(n)&&(t=Number(n)),t}function Ig(){if("DISMISSED"===gg.readWithExpiry(this.storageKey,Ka(this,bg,Cg).call(this)))return;const e=document.querySelector(".blocking-upsell-bottom-sheet"),t=document.querySelector("#blocking-upsell-modal");let n;e?n=new tg({bottomSheetEl:e,onClose:this.onClose.bind(this)}):t&&(n=new Qo(t,{onClose:this.onClose.bind(this)})),n?this.openUpsell(n):Ka(this,_g,kg).call(this)}function kg(){var e;this.storageKey&&(null===(e=this.window.tracking)||void 0===e||e.then(e=>{Wo(e,[this.storageKey])}),this.fireIngraphModuleImpression&&this.window.ingraphTracking&&this.window.ingraphTracking.then(e=>{e.fireModuleImpressionMetric(this.storageKey)}))}function Ag(e){this.storageKey&&e&&gg.writeWithExpiry(this.storageKey,e)}class xg{constructor(){this.nonBlockingUpsellEl=document.querySelector(".non-blocking-upsell"),this.blockingUpsellEl=document.querySelector(".blocking-upsell"),this.blockingUpsellFullPageEl=document.querySelector(".blocking-upsell-full-page"),this.nonBlockingUpsellEl?new vg(this.nonBlockingUpsellEl):this.blockingUpsellEl?new Sg(this.blockingUpsellEl):this.blockingUpsellFullPageEl&&new Sg(this.blockingUpsellFullPageEl)}}class Og{constructor(){let{shouldShowSuccessToast:e=!1,globalWindow:t=window}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.window=t,this.shouldShowSuccessToast=e,this._init()}_init(){new Zf({shouldShowSuccessToast:this.shouldShowSuccessToast}),this.checkAdChoiceConsentRequirement(),new xg}checkAdChoiceConsentRequirement(){if(!Fa("adChoiceConsentRequirement"))return;const e=this.window.location.href,t="https://www.linkedin.com/connect-services",n="GDPR"===Fa("adChoiceConsentRequirementVariant")?`${t}?page=ads_experience&sessionRedirect=${e}`:`${t}?sessionRedirect=${e}`;this.window.location.href=n}}class Lg extends al{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:Lg.query,variables:{postUrn:e},successCallback:t,failureCallback:n})}}let Rg;ja(Lg,"query","cb99e660f3455cad5185a1d9543e6bce");function Ng(e){var t;const n=Fa("gdpr_notice_share"),i=Fa("gdprLearnMoreLabel"),r=document.querySelector(".modal-spinner");fa(r),n&&i&&ff({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;Rg=n(o,{shouldHideModal:()=>!1,triggerByOutletEl:!1,pushState:!0,historyUpdateUrl:e.historyUpdateUrl}),pa(r),Rg.open(e)}).catch(()=>{pa(r)})}function Pg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.preventDefault(),Ng(t)}l.getInstance().addUnloadCallback(()=>{Rg&&Rg.close(),pa(document.querySelector("#discard-post-modal")),pa(document.querySelector("#visibility-settings-modal")),pa(document.querySelector("#max-images-prompt-modal")),pa(document.querySelector("#retry-upload-modal"))});const Dg={OK_200:"OK_200",CREATED_201:"CREATED_201",NO_CONTENT_204:"NO_CONTENT_204"};Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});const Mg="[data-feed-control]",Ug='[data-id="main-feed-card"]',Fg={PRODUCT_NAME:"Lite-feed",routeMappingToDegradationConfig:{FEED_REPOST:{"publish-repost":[{degradationKey:"publish-repost-failed"}]}}};og({featureName:"publish-repost",productName:Fg.PRODUCT_NAME,featureMappingToDegradationConfig:Fg.routeMappingToDegradationConfig.FEED_REPOST});function Bg(e,t,n){var i,r,o,a,s;const c=null==e||null===(i=e.target)||void 0===i?void 0:i.closest(Mg),l=null==e||null===(r=e.target)||void 0===r?void 0:r.closest(Ug),u=t||(null==l?void 0:l.dataset),d="true"===(null===(o=document.getElementById("config"))||void 0===o||null===(a=o.dataset)||void 0===a?void 0:a.isFeedSponsoredTrackingKillSwitchEnabled),h=Boolean((null==l||null===(s=l.dataset)||void 0===s?void 0:s.isSponsored)||(null==l?void 0:l.hasAttribute("data-is-sponsored")));if(!c&&!n||!u||h&&d)return;const p={...null==c?void 0:c.dataset,...n},{accessoryEntityUrn:f,feedControl:g,feedActionCategory:v,feedActionType:m,interactorUrn:y}=p,{activityUrn:E,feedItemTrackingId:b}=u;window.tracking&&window.tracking.then(e=>{let t;const n=Fa("trackingModuleKey"),i=S(document),r=Go(i);t={...f?{accessoryEntityUrn:f}:{},...y?{interactorUrn:y}:{},actionCategory:(null==v?void 0:v.toUpperCase())||"",actionType:m,controlUrn:ea(g,i),updateUrn:E,trackingId:b||e.generateBase64UUID(),moduleKey:n||"lite-feed:phone",requestId:"",isSponsored:h,...r};try{var o,a;(null===(o=t)||void 0===o?void 0:o.actionCategory)&&(null===(a=t)||void 0===a?void 0:a.actionType)&&e.fireTrackingEvent("FeedActionEvent",t)}catch(e){}})}const qg=Object.freeze({NEW_REPOST_SUCCESS_EVENT:"Repost:newRepost:success",NEW_REPOST_FAIL_EVENT:"Repost:newRepost:fail"});class Hg{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No bottom sheet element passed into Feed Reshare Menu");if(this.el=e,this.reshareDescEl=this.el.querySelector(".reshare-desc"),this.repostDescEl=this.el.querySelector(".repost-desc"),this.sendPrivatelyDescEl=this.el.querySelector(".send-privately-desc"),this.closeBottomSheetBtnEl=this.el.querySelector('[data-action="close-bottom-sheet"] > button'),this.reshareBottomSheet=new tg({bottomSheetEl:this.el,pushState:!1}),t&&t.endpoint){const{endpoint:e,pemDegradationTrackingMetadata:n}=t;this.createRepostMutation=new Lg(e,n)}this.registerEvents(),this.boundCreateRepostSuccessCallback=this.createRepostSuccessCallback.bind(this),this.boundCreateRepostFailureCallback=this.createRepostFailureCallback.bind(this)}openBottomSheet(){let{socialActionShareEl:e,feedItemEl:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e||!t)return;this.reshareDescEl.textContent=e.getAttribute("data-reshare-desc"),this.repostDescEl.textContent=e.getAttribute("data-repost-desc"),this.currentFeedItem=t;const n=this.el.querySelector('[data-feed-action="reshare-with-commentary"]'),i=this.el.querySelector('[data-feed-action="reshare-as-is"]'),r=this.el.querySelector('[data-feed-action="submitMessage"]');t.dataset.sponsoredTrackingUrl?(n.setAttribute("data-sponsored-tracking-url",t.dataset.sponsoredTrackingUrl),i.setAttribute("data-sponsored-tracking-url",t.dataset.sponsoredTrackingUrl),r&&r.setAttribute("data-sponsored-tracking-url",t.dataset.sponsoredTrackingUrl)):(n.removeAttribute("data-sponsored-tracking-url"),i.removeAttribute("data-sponsored-tracking-url"),r&&r.removeAttribute("data-sponsored-tracking-url")),r&&r.setAttribute("data-send-privately-url",e.getAttribute("data-send-privately-url")),this.reshareBottomSheet.open({focusElement:e}),this.closeBottomSheetBtnEl.focus()}registerEvents(){document.body.addEventListener("feedItemShared",e=>{const{socialActionShareEl:t,feedItemEl:n}=e.detail;this.openBottomSheet({socialActionShareEl:t,feedItemEl:n})}),this.el.addEventListener("click",e=>{if(e.target.closest('[data-action="close-bottom-sheet"]'))return;const t=e.target.closest('[data-feed-action="reshare-with-commentary"]'),n=e.target.closest('[data-feed-action="reshare-as-is"]'),i=e.target.closest('[data-feed-action="submitMessage"]'),r=this.currentFeedItem,{activityUrn:o,feedItemTrackingId:a}=r.dataset;let s={activityUrn:o,feedItemTrackingId:a};if(this.reshareBottomSheet.close(),t)Pg(e,{feedItemToShare:r.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"]}),Bg(e,{...s,...t.dataset}),E(this.el,"FeedItemReshared",{feedItemToShare:r,reshareBtnEl:t});else if(n){var c;const t=r.getAttribute("data-attributed-urn"),i=r.querySelector('[data-id="social-actions__reposts"]');this.entityUrn=null==i?void 0:i.dataset.entityUrn,null===(c=this.createRepostMutation)||void 0===c||c.execute(t,this.boundCreateRepostSuccessCallback,this.boundCreateRepostFailureCallback),Bg(e,{...s,...n.dataset}),E(this.el,"FeedItemReshared",{feedItemToShare:r,repostBtnEl:n})}else if(i){Bg(e,{...s,...i.dataset});const t=i.getAttribute("data-send-privately-url");window.location.assign(t)}})}createRepostSuccessCallback(e){if(e.createRepost.responseCode!==Dg.OK_200)return Qf().trigger(xc.ERROR,Fa("repostFailureMessage"),"repost-error-toast"),E(document.body,qg.NEW_REPOST_FAIL_EVENT,{entityUrn:this.entityUrn}),void(this.entityUrn="");let t="/mwlite/feed/update/activity:"+e.createRepost.activityUrn.split(":").pop();Qf().trigger(xc.SUCCESS,Fa("repostSuccessMessage"),"repost-success-toast",{url:t,trk:"repost-success",text:Fa("repostSuccessViewPost"),target:"_self"}),E(document.body,qg.NEW_REPOST_SUCCESS_EVENT,{entityUrn:this.entityUrn}),this.entityUrn=""}createRepostFailureCallback(){Qf().trigger(xc.ERROR,Fa("repostFailureMessage"),"repost-error-toast"),E(document.body,qg.NEW_REPOST_FAIL_EVENT,{entityUrn:this.entityUrn}),this.entityUrn=""}}class jg extends al{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:jg.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}ja(jg,"query","20f8e9934e7df62932fd167d87c19b27");var Gg=function(){this.__data__=[],this.size=0};var Wg=function(e,t){return e===t||e!=e&&t!=t},zg=Wg;var Kg=function(e,t){for(var n=e.length;n--;)if(zg(e[n][0],t))return n;return-1},Vg=Kg,Xg=Array.prototype.splice;var Yg=Kg;var Jg=Kg;var Qg=Kg;var $g=Gg,Zg=function(e){var t=this.__data__,n=Vg(t,e);return!(n<0)&&(n==t.length-1?t.pop():Xg.call(t,n,1),--this.size,!0)},ev=function(e){var t=this.__data__,n=Yg(t,e);return n<0?void 0:t[n][1]},tv=function(e){return Jg(this.__data__,e)>-1},nv=function(e,t){var n=this.__data__,i=Qg(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function iv(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])}}iv.prototype.clear=$g,iv.prototype.delete=Zg,iv.prototype.get=ev,iv.prototype.has=tv,iv.prototype.set=nv;var rv=iv,ov=rv;var av=function(){this.__data__=new ov,this.size=0};var sv=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var cv=function(e){return this.__data__.get(e)};var lv=function(e){return this.__data__.has(e)},uv="object"==typeof ne&&ne&&ne.Object===Object&&ne,dv=uv,hv="object"==typeof self&&self&&self.Object===Object&&self,pv=dv||hv||Function("return this")(),fv=pv.Symbol,gv=fv,vv=Object.prototype,mv=vv.hasOwnProperty,yv=vv.toString,Ev=gv?gv.toStringTag:void 0;var bv=function(e){var t=mv.call(e,Ev),n=e[Ev];try{e[Ev]=void 0;var i=!0}catch(e){}var r=yv.call(e);return i&&(t?e[Ev]=n:delete e[Ev]),r},wv=Object.prototype.toString;var _v=bv,Tv=function(e){return wv.call(e)},Sv=fv?fv.toStringTag:void 0;var Cv=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Sv&&Sv in Object(e)?_v(e):Tv(e)};var Iv=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},kv=Cv,Av=Iv;var xv,Ov=function(e){if(!Av(e))return!1;var t=kv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Lv=pv["__core-js_shared__"],Rv=(xv=/[^.]+$/.exec(Lv&&Lv.keys&&Lv.keys.IE_PROTO||""))?"Symbol(src)_1."+xv:"";var Nv=function(e){return!!Rv&&Rv in e},Pv=Function.prototype.toString;var Dv=Ov,Mv=Nv,Uv=Iv,Fv=function(e){if(null!=e){try{return Pv.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Bv=/^\[object .+?Constructor\]$/,qv=Function.prototype,Hv=Object.prototype,jv=qv.toString,Gv=Hv.hasOwnProperty,Wv=RegExp("^"+jv.call(Gv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var zv=function(e){return!(!Uv(e)||Mv(e))&&(Dv(e)?Wv:Bv).test(Fv(e))},Kv=function(e,t){return null==e?void 0:e[t]};var Vv=function(e,t){var n=Kv(e,t);return zv(n)?n:void 0},Xv=Vv(pv,"Map"),Yv=Vv(Object,"create"),Jv=Yv;var Qv=function(){this.__data__=Jv?Jv(null):{},this.size=0};var $v=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Zv=Yv,em=Object.prototype.hasOwnProperty;var tm=function(e){var t=this.__data__;if(Zv){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return em.call(t,e)?t[e]:void 0},nm=Yv,im=Object.prototype.hasOwnProperty;var rm=Yv;var om=Qv,am=$v,sm=tm,cm=function(e){var t=this.__data__;return nm?void 0!==t[e]:im.call(t,e)},lm=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rm&&void 0===t?"__lodash_hash_undefined__":t,this};function um(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])}}um.prototype.clear=om,um.prototype.delete=am,um.prototype.get=sm,um.prototype.has=cm,um.prototype.set=lm;var dm=um,hm=rv,pm=Xv;var fm=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var gm=function(e,t){var n=e.__data__;return fm(t)?n["string"==typeof t?"string":"hash"]:n.map},vm=gm;var mm=gm;var ym=gm;var Em=gm;var bm=function(){this.size=0,this.__data__={hash:new dm,map:new(pm||hm),string:new dm}},wm=function(e){var t=vm(this,e).delete(e);return this.size-=t?1:0,t},_m=function(e){return mm(this,e).get(e)},Tm=function(e){return ym(this,e).has(e)},Sm=function(e,t){var n=Em(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Cm(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])}}Cm.prototype.clear=bm,Cm.prototype.delete=wm,Cm.prototype.get=_m,Cm.prototype.has=Tm,Cm.prototype.set=Sm;var Im=rv,km=Xv,Am=Cm;var xm=rv,Om=av,Lm=sv,Rm=cv,Nm=lv,Pm=function(e,t){var n=this.__data__;if(n instanceof Im){var i=n.__data__;if(!km||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Am(i)}return n.set(e,t),this.size=n.size,this};function Dm(e){var t=this.__data__=new xm(e);this.size=t.size}Dm.prototype.clear=Om,Dm.prototype.delete=Lm,Dm.prototype.get=Rm,Dm.prototype.has=Nm,Dm.prototype.set=Pm;var Mm=Dm,Um=Vv,Fm=function(){try{var e=Um(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Bm=Fm;var qm=function(e,t,n){"__proto__"==t&&Bm?Bm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Hm=qm,jm=Wg;var Gm=function(e,t,n){(void 0!==n&&!jm(e[t],n)||void 0===n&&!(t in e))&&Hm(e,t,n)};var Wm=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(o[c],c,o))break}return t}}(),zm={exports:{}};!function(e,t){var n=pv,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(zm,zm.exports);var Km=pv.Uint8Array;var Vm=function(e){var t=new e.constructor(e.byteLength);return new Km(t).set(new Km(e)),t};var Xm=function(e,t){var n=t?Vm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Ym=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Jm=Iv,Qm=Object.create,$m=function(){function e(){}return function(t){if(!Jm(t))return{};if(Qm)return Qm(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Zm=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),ey=Object.prototype;var ty=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ey)},ny=$m,iy=Zm,ry=ty;var oy=function(e){return"function"!=typeof e.constructor||ry(e)?{}:ny(iy(e))};var ay=function(e){return null!=e&&"object"==typeof e},sy=Cv,cy=ay;var ly=function(e){return cy(e)&&"[object Arguments]"==sy(e)},uy=ay,dy=Object.prototype,hy=dy.hasOwnProperty,py=dy.propertyIsEnumerable,fy=ly(function(){return arguments}())?ly:function(e){return uy(e)&&hy.call(e,"callee")&&!py.call(e,"callee")},gy=Array.isArray;var vy=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},my=Ov,yy=vy;var Ey=function(e){return null!=e&&yy(e.length)&&!my(e)},by=Ey,wy=ay;var _y=function(e){return wy(e)&&by(e)},Ty={exports:{}};var Sy=function(){return!1};!function(e,t){var n=pv,i=Sy,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(Ty,Ty.exports);var Cy=Cv,Iy=Zm,ky=ay,Ay=Function.prototype,xy=Object.prototype,Oy=Ay.toString,Ly=xy.hasOwnProperty,Ry=Oy.call(Object);var Ny=function(e){if(!ky(e)||"[object Object]"!=Cy(e))return!1;var t=Iy(e);if(null===t)return!0;var n=Ly.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Oy.call(n)==Ry},Py=Cv,Dy=vy,My=ay,Uy={};Uy["[object Float32Array]"]=Uy["[object Float64Array]"]=Uy["[object Int8Array]"]=Uy["[object Int16Array]"]=Uy["[object Int32Array]"]=Uy["[object Uint8Array]"]=Uy["[object Uint8ClampedArray]"]=Uy["[object Uint16Array]"]=Uy["[object Uint32Array]"]=!0,Uy["[object Arguments]"]=Uy["[object Array]"]=Uy["[object ArrayBuffer]"]=Uy["[object Boolean]"]=Uy["[object DataView]"]=Uy["[object Date]"]=Uy["[object Error]"]=Uy["[object Function]"]=Uy["[object Map]"]=Uy["[object Number]"]=Uy["[object Object]"]=Uy["[object RegExp]"]=Uy["[object Set]"]=Uy["[object String]"]=Uy["[object WeakMap]"]=!1;var Fy=function(e){return My(e)&&Dy(e.length)&&!!Uy[Py(e)]};var By=function(e){return function(t){return e(t)}},qy={exports:{}};!function(e,t){var n=uv,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(qy,qy.exports);var Hy=Fy,jy=By,Gy=qy.exports,Wy=Gy&&Gy.isTypedArray,zy=Wy?jy(Wy):Hy;var Ky=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Vy=qm,Xy=Wg,Yy=Object.prototype.hasOwnProperty;var Jy=function(e,t,n){var i=e[t];Yy.call(e,t)&&Xy(i,n)&&(void 0!==n||t in e)||Vy(e,t,n)},Qy=qm;var $y=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),r?Qy(n,s,c):Jy(n,s,c)}return n};var Zy=/^(?:0|[1-9]\d*)$/;var eE=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Zy.test(e))&&e>-1&&e%1==0&&e<t},tE=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},nE=fy,iE=gy,rE=Ty.exports,oE=eE,aE=zy,sE=Object.prototype.hasOwnProperty;var cE=function(e,t){var n=iE(e),i=!n&&nE(e),r=!n&&!i&&rE(e),o=!n&&!i&&!r&&aE(e),a=n||i||r||o,s=a?tE(e.length,String):[],c=s.length;for(var l in e)!t&&!sE.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||oE(l,c))||s.push(l);return s};var lE=Iv,uE=ty,dE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},hE=Object.prototype.hasOwnProperty;var pE=cE,fE=function(e){if(!lE(e))return dE(e);var t=uE(e),n=[];for(var i in e)("constructor"!=i||!t&&hE.call(e,i))&&n.push(i);return n},gE=Ey;var vE=function(e){return gE(e)?pE(e,!0):fE(e)},mE=$y,yE=vE;var EE=Gm,bE=zm.exports,wE=Xm,_E=Ym,TE=oy,SE=fy,CE=gy,IE=_y,kE=Ty.exports,AE=Ov,xE=Iv,OE=Ny,LE=zy,RE=Ky,NE=function(e){return mE(e,yE(e))};var PE=Mm,DE=Gm,ME=Wm,UE=function(e,t,n,i,r,o,a){var s=RE(e,n),c=RE(t,n),l=a.get(c);if(l)EE(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=CE(c),p=!h&&kE(c),f=!h&&!p&&LE(c);u=c,h||p||f?CE(s)?u=s:IE(s)?u=_E(s):p?(d=!1,u=bE(c,!0)):f?(d=!1,u=wE(c,!0)):u=[]:OE(c)||SE(c)?(u=s,SE(s)?u=NE(s):xE(s)&&!AE(s)||(u=TE(c))):d=!1}d&&(a.set(c,u),r(u,c,i,o,a),a.delete(c)),EE(e,n,u)}},FE=Iv,BE=vE,qE=Ky;var HE=function e(t,n,i,r,o){t!==n&&ME(n,(function(a,s){if(o||(o=new PE),FE(a))UE(t,n,s,i,e,r,o);else{var c=r?r(qE(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),DE(t,s,c)}}),BE)};var jE=function(e){return e};var GE=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)},WE=Math.max;var zE=function(e,t,n){return t=WE(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=WE(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),GE(e,this,s)}};var KE=function(e){return function(){return e}},VE=Fm,XE=VE?function(e,t){return VE(e,"toString",{configurable:!0,enumerable:!1,value:KE(t),writable:!0})}:jE,YE=Date.now;var JE=function(e){var t=0,n=0;return function(){var i=YE(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(XE),QE=jE,$E=zE,ZE=JE;var eb=Wg,tb=Ey,nb=eE,ib=Iv;var rb=function(e,t){return ZE($E(e,t,QE),e+"")},ob=function(e,t,n){if(!ib(n))return!1;var i=typeof t;return!!("number"==i?tb(n)&&nb(t,n.length):"string"==i&&t in n)&&eb(n[t],e)};var ab=HE;sb=function(e,t,n){ab(e,t,n)},rb((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=sb.length>3&&"function"==typeof r?(i--,r):void 0,o&&ob(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&sb(e,a,n,r)}return e}));var sb;function cb(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:a,height:s,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:a,height:s,x:c,y:l}}function lb(e,t,n){const i=cb(e),r=cb(t),o=cb(n),a=i.top-o.top-n.clientTop-r.height+i.height,s=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:a,leftMinLimit:s,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:a-i.height+r.height,leftMaxLimit:s-i.width+r.width}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const ub="data-draggable-initialized",db="touchstart",hb="touchmove",pb="touchend";class fb{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;fb.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(db,t),this.draggableElementEl.setAttribute(ub,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r=n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),o=t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t);this.draggableElementEl.style.left=o+"px",this.draggableElementEl.style.top=r+"px",this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-o-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r-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=lb(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(hb,t),document.addEventListener(pb,(function e(){document.removeEventListener(hb,t),document.removeEventListener(pb,e)}))}moveTo(e,t){const n=lb(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)}}fb.isDraggable=function(e){return!!e.getAttribute(ub)};const gb="data-zoomable-initialized",vb="touchstart",mb="touchmove",yb="touchend";class Eb{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;Eb.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(vb,t),this.zoomableElement.setAttribute(gb,!0))}scaleElement(e,t){if(1===e)return;this.limits=lb(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 a=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),s=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<a?r=a:r>s&&(r=s),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=r+"px",this.zoomableElement.style.top=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(mb,t),document.addEventListener(yb,(function e(){document.removeEventListener(mb,t),document.removeEventListener(yb,e)}))}}Eb.isZoomable=function(e){return!!e.getAttribute(gb)};let bb;class wb{constructor(e){var t;if(!e)throw Error("An element must be provided to Nav");this.el=e,this.activeSearchType="",this.defaultSearchType="",this.activeTypeahead=null,this.registeredSearchTypes={},null===(t=window.mWebBlendedTypeaheadPromise)||void 0===t||t.then(e=>{bb=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.typeaheadInstance.toggleClearEl(),this.getSearchExpandedClass()&&document.body.classList.add(this.getSearchExpandedClass()),E(this.navSearchEl,"navbar:expand"))}collapseSearchBar(){document.body.classList.remove("search-expanded"),this.typeaheadInstance.hideClearEl(),this.getSearchExpandedClass()&&document.body.classList.remove(this.getSearchExpandedClass()),E(this.navSearchEl,"navbar:collapse")}initializeBlendedTypeahead(){this.navSearchEl=this.el.querySelector("#nav-search"),this.typeaheadInstance=new bb(this.navSearchEl),this.typeaheadInstance.hideClearEl(),this.registerSearchType("people",{isDefault:!0})}initSecondaryNavScroll(e){new Qc(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")})}setupEventListeners(){const e=this.el.querySelector("[data-action-type=OPEN_SHARE_MODAL] a"),t=document.querySelector("#share-modal"),n=this.el.querySelector("#secondary-nav");var i;(e&&t&&e.addEventListener("click",(function(e){e.preventDefault(),Pg(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),l.getInstance().addUnloadCallback(()=>{this.activeTypeahead&&(this.typeaheadInstance.closeSearchTypeahead(),clearTimeout(this.collapseTimeoutID),this.collapseTimeoutID=null,this.collapseSearchBar(),window.location.hash&&window.history.back())}),null===(i=document.querySelector(".active-nav a"))||void 0===i||i.focus())}getActiveSearchType(){return this.activeSearchType||this.defaultSearchType}registerSearchType(e,t){this.registeredSearchTypes[e]||(this.registeredSearchTypes[e]=t||{},t&&t.isDefault&&(this.defaultSearchType=e))}}class _b extends al{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:_b.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}ja(_b,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class Tb extends al{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]:()=>{};return this.executeAction({queryId:Tb.query,successCallback:e,failureCallback:t})}}ja(Tb,"query","da4a9ce2de842c1abe01ca37ea9271ee");function Sb(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function Cb(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",Sb),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(Cb)}}function Ib(e){const t=e.currentTarget.parentElement,n=t.querySelector("input"),i=t.querySelector("label");n.value="",n.classList.remove("selected"),n.focus();const r=null==i?void 0:i.textContent,o=r&&wa()?Fa("i18n_aria_live_text_input_cleared").replace("{:label}",r):Fa("i18n_input_cleared"),a=wa()?"assertive":"polite";o&&(K(),z(o,a)),E(n,"input:cleared"),E(n,"change")}function kb(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",kb)}function Ab(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function xb(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",Ab),i.addEventListener("focus",kb),r&&r.addEventListener("click",Ib)}else{document.querySelectorAll(".input-container").forEach(xb)}}const Ob=/^\d{4,15}$/,Lb=/[-\s+().]/g,Rb=/^\S+@\S+\.\S+$/,Nb=/[,]|.*@.*@/,Pb="MinLength",Db="MaxLength",Mb="Regex",Ub="Required",Fb="RegexAllow",Bb=e=>e&&Rb.test(e)&&!Nb.test(e),qb={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{errorCode:"Email",validate:Bb},WORK_EMAIL:{errorCode:"WorkEmail",validate:e=>Bb(e)&&!["gmail","hotmail","yahoo","qq","outlook","aol","mail","icloud","163"].some(t=>e.includes(`@${t}.`))},PHONE_NUMBER:{errorCode:"PhoneNumber",validate(e){const t=e.replace(Lb,"");return!(!t||!Ob.test(t))}}},Hb="EMAIL_ADDRESS",jb="PHONE_NUMBER",Gb="WORK_EMAIL",Wb="consentUnchecked",zb={INPUT:"INPUT",SELECT:"SELECT"},Kb="text",Vb="checkbox";function Xb(e){return Object.keys(zb).includes(e.tagName)}function Yb(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Hb:t.push({type:Fb,RegexAllow:[qb.EMAIL]});break;case Gb:t.push({type:Fb,RegexAllow:[qb.WORK_EMAIL]});break;case jb:o=e.value.replace(/ /g,""),t.push({type:Fb,RegexAllow:[qb.PHONE_NUMBER]})}return e.required&&t.push({type:Ub}),n&&t.push({type:Pb,MinLength:n}),i&&t.push({type:Db,MaxLength:i}),{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 Ub:if(0===n.length)return Ub;break;case Pb:if(n.length<e[Pb])return Pb;break;case Db:if(n.length>e[Db])return Db;break;case Mb:for(let t=0;t<e[Mb].length;t++){var i,r,o,a;if(!0===(null===(i=e[Mb][t])||void 0===i||null===(r=i.validate)||void 0===r?void 0:r.call(i,n))||!0===(null===(o=e[Mb][t])||void 0===o||null===(a=o.pattern)||void 0===a?void 0:a.test(n)))return Mb+e[Mb][t].errorCode}break;case Fb:for(let t=0;t<e[Fb].length;t++){var s,c,l,u;if(!1===(null===(s=e[Fb][t])||void 0===s||null===(c=s.validate)||void 0===c?void 0:c.call(s,n))||!1===(null===(l=e[Fb][t])||void 0===l||null===(u=l.pattern)||void 0===u?void 0:u.test(n)))return Fb+e[Fb][t].errorCode}}})(e,n)).filter(e=>!!e)}function Jb(e,t){return t&&!e?Wb:null}const Qb=(e,t)=>parseInt(t.split(e)[1]);function $b(e,t){return document.getElementById(e.id+"-strings").dataset["str"+t]}const Zb=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),ew=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),tw=(e,t)=>({question:e,multipleChoiceAnswer:{options:[t]}});function nw(e,t){const n=e.id+"_",i=n+"q",r=n+"c",o=Fa("hasDecoratedLeadGenFormData");return new Promise((n,a)=>{const s=[];let c,l;const{urn:u,legalInfoUrn:d,leadType:h,associatedEntityUrn:p,ownerUrn:f,submitter:g}=e.dataset;l=t?`lTrk=${t}&action=leadFormSubmit&activityType=sponsored`:e.dataset.leadTrackingParams,l||(c=e.closest("[data-lead-tracking-params]"),l=c.dataset.leadTrackingParams);const v={formResponse:{adFormUrn:u,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:l,trackingAction:"LEAD_FORM_CLICK"},m={associatedEntity:p,form:u,legalInfoUrn:d,leadType:h,owner:f,formResponse:{answers:[],consentResponses:[]},leadTrackingParams:l,submittedAt:Date.now(),...null!=g&&g.length?{submitter:g}:{}};return Array.from(e).filter(Xb).forEach(e=>{let t;if(e.tagName===zb.SELECT)t=((e,t,n)=>{const i=Qb(e,t.id),r=t.selectedIndex;return{response:n?tw(i,r):ew(i,r)}})(i,e,o),o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else if(e.type===Kb)if(t=((e,t,n)=>{const i=Qb(e,t.id),r=Yb(t);return 0!==r.length?{errors:r}:{response:n?(o=i,a=t.value,{question:o,textQuestionAnswer:{answer:a}}):Zb(i,t.value)};var o,a})(i,e,o),t.response)o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===Vb&&(t=((e,t,n,i,r)=>{const o=Qb(e,t),a=Jb(n,i);return a?{errors:a}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(r,e.id,e.checked,e.required,o),t.response?o?m.formResponse.consentResponses.push(t.response):v.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?n(o?m:v):a(s)})}class iw extends al{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:iw.query,variables:e,successCallback:t,failureCallback:n})}}ja(iw,"query","0a321276f8bcd90441cffeb1ab648fa1");const rw="VIEW_FORM",ow=".lead-gen-input-container",aw=".error-text",sw=".submit-btn",cw="input-error",lw="checkbox-input",uw="inputbox-input";class dw{constructor(e){let{isLivePreview:t=!1,encodedLeadGenFormTrackingContext:n,encryptedTrackingData:i,pemDegradationTrackingMetadata:r,persistFormOnSubmit:o,responseEndpoint:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Ca("lead-gen-form__description-content-truncated",".lead-gen-form__description-btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form"),this.formContentEl=e.querySelector(".lead-gen-form__content"),this.postSubmissionInfoEl=e.querySelector(".lead-gen-form__post-submission"),this.submitBtn=this.formEl.querySelector(sw),this.persistFormOnSubmit=o,this.encryptedTrackingData=i,this.encodedLeadGenFormTrackingContext=n,a&&(this.leadGenResponseMutation=new iw(a,r)),t||this._bindInputHandlers(),this.encodedLeadGenFormTrackingContext&&!t&&(this._initClickTracking(),this._initViewTracking())}showPostSubmissionInfo(){pa(this.formContentEl),this.postSubmissionInfoEl&&fa(this.postSubmissionInfoEl)}hideForm(){pa(this.formContentEl)}enableSubmit(){Ea(this.submitBtn)}_clearFormErrors(){Array.from(this.formEl).filter(Xb).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),nw(this.formEl,this.encryptedTrackingData).then(e=>{if(ya(this.submitBtn),this.leadGenResponseMutation){const t=this.leadGenResponseMutation.execute(e);E(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,t)}else E(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e);this.persistFormOnSubmit||this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();z($b(t.element,t.errorType),W.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(ow),n=t.querySelector(aw);pa(n),t.classList.remove(cw),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(ow))||void 0===t?void 0:t.classList.contains(cw)}_setAndShowError(e,t){if(e){const n=$b(e,t),i=e.closest(ow),r=i.querySelector(aw);r.innerText=n,fa(r),i.classList.add(cw),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Vb)t=Jb(e.checked,e.required);else if(e.type===Kb){const n=Yb(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindInputHandlers(){this.formEl.addEventListener("click",e=>{e.target.classList.contains(lw)&&this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(uw)&&this._handleInputError(e.target)}),this.submitBtn.addEventListener("click",e=>{e.preventDefault(),this._submitForm()})}fireInFormLeadGenTracking(e,t){!this.encryptedTrackingData&&t||function(e){let{actionType:t,serializedLeadGenFormTrackingContext:n,encryptedTrackingData:i}=e;const r=S(document,{skipSuffix:!0}),o=`${r}-${null==t?void 0:t.toLowerCase()}`,a=Go(r);i?cg("LeadGenFormClientActionEvent",{...a,sponsoredTrackingInfo:{sponsoredEventHeader:{encryptedTrackingData:i}},actionType:t,controlUrn:o,serializedLeadGenFormTrackingContext:n}):window.tracking.then(e=>{e.fireTrackingEvent("LeadGenFormClientActionEvent",{...a,actionType:t,controlUrn:o,serializedLeadGenFormTrackingContext:n})})}({actionType:e,serializedLeadGenFormTrackingContext:this.encodedLeadGenFormTrackingContext,encryptedTrackingData:this.encryptedTrackingData})}_initViewTracking(){const e=rw,t=this.containerEl.closest('[data-id="main-feed-card"]');this.fireInFormLeadGenTracking(e,t)}_initClickTracking(){this.containerEl.addEventListener("click",e=>{const t=e.target.closest("[data-lgf-action-type]"),n=e.target.closest('[data-id="main-feed-card"]');if(t){const i=t.dataset.lgfActionType;if(n&&("consent_link"===e.target.dataset.feedControl||"legal_disclaimer_link"===e.target.dataset.feedControl))return;this.fireInFormLeadGenTracking(i,n)}})}}ja(dw,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");const hw=".bottom-sheet",pw=".lead-gen-modal";class fw extends dw{constructor(e){let{isLivePreview:t=!1,encodedLeadGenFormTrackingContext:n,encryptedTrackingData:i,pemDegradationTrackingMetadata:r,persistFormOnSubmit:o,responseEndpoint:a,triggerByOutletEl:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{isLivePreview:t,encodedLeadGenFormTrackingContext:n,encryptedTrackingData:i,pemDegradationTrackingMetadata:r,persistFormOnSubmit:o,responseEndpoint:a});const c=document.querySelector(hw);c&&(this.bottomSheet=new tg({bottomSheetEl:c,pushState:!1})),this._initModal(s),t&&this.showForm()}_initModal(e){const t=this.containerEl.querySelector(pw);this.modal=new Qo(t,{triggerByOutletEl:e,shouldMoveToTopContainer:!1})}showForm(){this.modal.open()}hideForm(){this.modal.close()}showPostSubmissionInfo(){this.bottomSheet?(this.modal.close(),this.bottomSheet.open()):this.postSubmissionInfoEl?(pa(this.formContentEl),fa(this.postSubmissionInfoEl)):this.modal.close()}_initViewTracking(){const e=this.containerEl.dataset.lgfViewActionType,t=this.containerEl.querySelector(pw).dataset.outlet,n=document.querySelector(`[data-modal="${t}"]`);null==n||n.addEventListener("click",t=>{const n=t.target.closest('[data-id="main-feed-card"]');this.fireInFormLeadGenTracking(e,n)})}}class gw extends fw{constructor(e){let{isLivePreview:t=!1,triggerByOutletEl:n=!0,customEmailValidationFn:i,customEmailValidationPath:r,enableTracking:o=!1,encodedLeadGenFormTrackingContext:a,encryptedTrackingData:s,persistFormOnSubmit:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e,{isLivePreview:t,triggerByOutletEl:n,customEmailValidationFn:i,customEmailValidationPath:r,enableTracking:o,encodedLeadGenFormTrackingContext:a,encryptedTrackingData:s,persistFormOnSubmit:c}),Cb(),xb()}_bindEvents(){super._bindEvents(),this.formEl.addEventListener("input:cleared",e=>{this._handleInputError(e.target)})}_initModal(e){const t=this.containerEl.querySelector(".lead-gen-modal");this.modal=new Ml(t,{triggerByOutletEl:e,shouldMoveToTopContainer:!1})}}class vw{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=Fa("share-via-text"),r=Fa("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 Qo(this.shareViaModalEl)),this.bindEvents()}modalClickHandler(e){const t=a(e.target,"[data-action-copy-to-clipboard]");t?(this.onSelect(e,t),this.copyToClipboard.call(this,e)):this.onSelect(e,a(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 mw="FOLLOW_ACTIVE",yw="UNFOLLOW";class Ew{constructor(e,t){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}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 ol({endpoint:this.endpoint,queryId:Ew.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}ja(Ew,"query","cbed571fffd8cea15209aed8d44e6759");class bw{constructor(e){var t,n;let{deleteEntity:i=(()=>{}),disableComment:r=(()=>{}),enableComment:o=(()=>{}),followConfig:a={},semaphoreConfig:s={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Control menu element is required");this._el=e,this.followConfig=a,this.semaphoreConfig=s,this.ellipsisMenu=new pf(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 Ew(this.followConfig.endpoint)),this._enableComment=o,document.getElementById("toasts")&&(this.toasts=new Oc);const c=e.querySelector(".collapsible-dropdown__list"),l=c.querySelector('[data-feed-action="control-menu-semaphore"]');l&&new hf('[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 vw(u,{onClipboardCopy:e=>{var t,n;e?null===(t=this.toasts)||void 0===t||t.trigger("success",Fa("i18n_copy_to_clipboard_success")):null===(n=this.toasts)||void 0===n||n.trigger("error",Fa("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 Yf(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 Yf(e,e=>r(e,this.feedCardEl),()=>{},{triggerByOutletEl:!1,focusElement:this.ellipsisMenuTriggerEl})}this._initListeners(e),c.addEventListener("click",this.handleControlMenuActions.bind(this))}_initListeners(e){const t=()=>{[e.dataset.feedActionTypeFlip,e.dataset.feedActionType]=[e.dataset.feedActionType,e.dataset.feedActionTypeFlip],[e.dataset.feedActionCategoryFlip,e.dataset.feedActionCategory]=[e.dataset.feedActionCategory,e.dataset.feedActionCategoryFlip]};e.addEventListener("open",t),e.addEventListener("close",t)}_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(".post-removed-card-template__undo-follow-button");r&&r.focus()}_handleSemaphoreSubmitAction(){var e,t;pa(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-template__container");t.querySelector(".post-removed-card-template__undo-follow-button").addEventListener("click",n=>{var i,r,o;const{activityUrn:a,feedItemTrackingId:s}=this.feedCardEl.dataset;Bg(n,{activityUrn:a,feedItemTrackingId:s}),null===(i=this.toasts)||void 0===i||i.clearAllToasts(),t.remove(),fa(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(mw,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();z(r.getAttribute("data-unfollow-ally-text")),pa(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(yw,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)}E(this._el,"close")}}}const ww=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(ww));const _w="CREATE",Tw="DELETE",Sw="UPDATE";class Cw{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:Cw.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==_w&&n!==Sw||(o.variables.reactionType=e),ol(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}ja(Cw,"query","070ee23fd6fb77f92ac08f964ae1df29");const Iw="REACT",kw="UNREACT",Aw={LIKE:"Like",PRAISE:"Celebrate",APPRECIATION:"Support",ENTERTAINMENT:"Funny",EMPATHY:"Love",INTEREST:"Insightful",MAYBE:"Curious"};var xw=new WeakSet;class Ow{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:".reactions-menu__trigger",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,{endpoint:n,beforeReaction:i,onReaction:r,pemDegradationTrackingMetadata:o,onReactionSuccess:a=(()=>{}),onReactionError:s=(()=>{}),shouldStopPropagation:c=!0,reactionsMenuPageViewEvent:l,fireLoggedInReactionTracking:u=!1,isContribution:d=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(Ya(this,xw),this.triggerSelector=e,this.a11yTriggerSelector=e+"--a11y",this.parentContainerElement=t,this._mutationInstance=new Cw(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=a,this.onReactionError=s,this.shouldStopPropagation=c,this.reactionsMenuPageViewEvent=l,this.triggers=t.querySelectorAll(this.triggerSelector),this.reactionsMenuClickHandler=this.handleReactionsClick.bind(this),this.reactionsMenuBlurHandler=this.reactionsMenuBlurHandler.bind(this),this.isTouchActive=!1,this.isA11yTriggerActive=!1,this.fireLoggedInReactionTracking=u,this.isContribution=d,this.bindEvents()}bindEvents(){this.triggers.forEach(e=>{Q()?(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",m(this.showReactions.bind(this),300)),e.addEventListener("mouseleave",m(()=>{!e.parentElement.matches(":hover")&&this.hideReactions.call(this)},500)))}),this.parentContainerElement.addEventListener("keydown",e=>{var t;"Escape"===e.key&&this.isReactionMenuVisible()&&(e.stopPropagation(),this.hideReactions(),null===(t=this.a11yTriggerElement())||void 0===t||t.focus())}),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?_w:Tw,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 a(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=>{jo(e,"half",this.reactionsMenuPageViewEvent)})),Q()&&(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),this.isA11yTriggerActive&&this.activeReactionMenuEl.removeEventListener("blur",this.reactionsMenuBlurHandler,!0),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}Q()&&!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?Sw:null:t?_w:Tw}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,Bg(n)}else Bg(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),a=this.getCurrentReactionType(o),s=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(a,c),l)null===(p=this.onReaction)||void 0===p||p.call(this,e,c,s),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))}reactionsMenuBlurHandler(e){this.activeReactionMenuEl.contains(e.relatedTarget)||(this.hideReactions(),setTimeout(()=>{var e;null===(e=this.a11yTriggerElement())||void 0===e||e.focus()},300))}renderReactionsMenu(e){if(!e)return;const t=e.querySelector('[data-id="reactions-menu"]');t.classList.remove("hidden"),t.addEventListener("click",this.reactionsMenuClickHandler),this.isA11yTriggerActive&&t.addEventListener("blur",this.reactionsMenuBlurHandler,!0),this.activeReactionMenuEl=t}maybeHideReactions(e){a(e.target,"[data-reaction-type]")||this.hideReactions()}setReaction(e,t){var n,i,r;const o=".selected-reaction--"+e,a=this.selectedReactionTemplate.content.querySelector(o).cloneNode(!0),s=t.querySelector(".selected-reaction"),c=t.querySelector(".like-button-default"),l=null===(n=t.querySelector(this.triggerSelector))||void 0===n||null===(i=n.dataset)||void 0===i?void 0:i.socialReaction;l&&t.querySelector("#selected-reaction-icon--"+l).setAttribute("aria-pressed","false"),t.querySelector("#selected-reaction-icon--"+e).setAttribute("aria-pressed","true"),s?s.remove():c.classList.add("hidden"),e&&Ka(this,xw,Lw).call(this,t,e,"Selected"),a.classList.add("selected-reaction"),c.parentElement.insertBefore(a,c),null===(r=window.lazyloader)||void 0===r||r.then(e=>e.refreshLoader()),this.postReactionChangeCallback(e,t)}toggleReaction(e){const t=e.querySelector(".selected-reaction"),n=e.querySelector(".like-button-default");if(t){var i,r;t.remove();const o=null===(i=e.querySelector(this.triggerSelector))||void 0===i||null===(r=i.dataset)||void 0===r?void 0:r.socialReaction;o&&e.querySelector("#selected-reaction-icon--"+o).setAttribute("aria-pressed","false"),e.querySelector(this.triggerSelector).setAttribute("aria-pressed","false");const a=this.getCurrentReactionType(e);return a&&Ka(this,xw,Lw).call(this,e,a),n.classList.remove("hidden"),void this.postReactionChangeCallback("",e)}this.setReaction(ww.LIKE,e)}postReactionChangeCallback(e,t){const n=(e?"un"+e:""+ww.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?kw:Iw)}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(`${this.triggerSelector}[data-parent-urn="${e}"]`);return null==t?void 0:t.closest(".reactions-menu")}a11yTriggerElement(){return this.parentContainerElement.querySelector(this.a11yTriggerSelector)}}function Lw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Unselected";const i=Fa("i18n_reaction_selection_state").replace("%reactionType%",Aw[t]).replace("%selectionState%",n);e.querySelector(this.triggerSelector).setAttribute("aria-label",i)}const Rw=new Set(["attributed-text-segment-list__content-truncated","attributed-text-segment-list__content-truncated-10","attributed-text-segment-list__content-truncated-20"]);class Nw{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"),ua(this._el)&&this._truncationButton&&(this._truncationButton.classList.remove("invisible"),this._truncationButton.addEventListener("click",this._handleSeeMoreAction.bind(this)))}_handleSeeMoreAction(){this._removeTruncationClasses(),this._truncationButton.classList.add("hidden")}_removeTruncationClasses(){Rw.forEach(e=>{this._el.classList.remove(e)})}}class Pw{constructor(e){let{endpoint:t,errorCallback:n=(()=>{}),globalWindow:i=window,onFollowSuccess:r=(()=>{}),onUnfollowSuccess:o=(()=>{}),pemDegradationTrackingMetadata:a,unfollowPemDegradationTrackingMetadata:s,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 Ew(t,a,c),this._unfollowMutationInstance=new Ew(t,s,l),this._entityUrn=e.getAttribute("data-entity-urn"),this._initEventListeners()}_initEventListeners(){this._followButtonEl.addEventListener("click",e=>{e.preventDefault(),this._showFollowingButton(),this._mutationInstance.execute(mw,this._entityUrn,e=>{this._successCallbackForFollow(e)},e=>{this._hideFollowingButton(),this._errorCallback(e)})}),this._followingButtonEl.addEventListener("click",e=>{e.preventDefault(),this._hideFollowingButton(),this._unfollowMutationInstance.execute(yw,this._entityUrn,e=>{this._successCallbackForUnfollow(e)},e=>{this._showFollowingButton(),this._errorCallback(e)})})}_showFollowingButton(){var e,t,n,i;null===(e=this._followButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followingButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followingButtonEl.focus()}_hideFollowingButton(){var e,t,n,i;null===(e=this._followingButtonEl)||void 0===e||null===(t=e.classList)||void 0===t||t.add("hidden"),null===(n=this._followButtonEl)||void 0===n||null===(i=n.classList)||void 0===i||i.remove("hidden"),this._followButtonEl.focus()}}const Dw="video_thumbnail_play",Mw="video_toolbar_play_pause",Uw="video_toolbar_mute_unmute",Fw="video_toolbar_volume_slider",Bw="video_toolbar_fullscreen_toggle",qw="video_toolbar_scrubber",Hw="video_toolbar_replay",jw="video_toolbar_back_to_start",Gw="playVideo",Ww="pauseVideo",zw="replayVideo",Kw="muteVideo",Vw="unmuteVideo",Xw="seekVideo",Yw="fullscreenVideo",Jw="unfullscreenVideo",Qw="changeVolume",$w="moveToVideoStart",Zw="PLAY",e_="PAUSE",t_="MUTE",n_="EXPAND",i_="UNDO",r_="VIEW";class o_{constructor(e){let{isLoggedIn:t=!1,isAccuratePreview:n=!1,reactionsMenuConfig:i={},newsletterConfig:r={},controlMenuConfig:o={},followButtonConfig:a={},customEmailValidationPath:s,customEmailValidationFn:c,encodedLeadGenFormTrackingContext:l}=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._isAccuratePreview=n,this._controlMenuConfig=o,this.customEmailValidationPath=s,this.customEmailValidationFn=c,this.encodedLeadGenFormTrackingContext=l,this._controlMenu=this._initControlMenu(),this._nativeVideo=this._initNativeVideo(),this._reactionsMenuConfig=this._getReactionsMenuConfig(i),this._socialActionBar=this._initSocialActionBarMenu(),this._followButtons=this._initFollowButton(a),this._initPaginatedDocument(),this._socialShare=this._initSocialShare(),this._sponsoredContent=this._initSponsoredContent(),this._initImageViewer(),this._initFeedAttributedTextSegmentList(),this._initNewsletterSubscribe(r),this._initShowMoreLessHtml(),this._isMobile=Fa("is-mobile"),this._handleShareAction(),this._initC2paButton(),this._handleFeedClick()}_initC2paButton(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".c2pa-button");e&&(this.c2paButton=new ng(e,this._el))}_initFeedAttributedTextSegmentList(){this._el.querySelectorAll(".attributed-text-segment-list__content").forEach(e=>new Nw(e))}_initControlMenu(){const e=this._el.querySelector(".ellipsis-menu");return!e||this._isAccuratePreview?null:this._isLoggedIn?void new bw(e,this._controlMenuConfig):new pf(e)}_handleShareAction(){this._isLoggedIn&&this._isMobile&&this._el.addEventListener("click",e=>{const t=e.target.closest('[data-feed-action="share"]');t&&E(this._el,"feedItemShared",{socialActionShareEl:t,feedItemEl:this._el})})}_initSocialActionBarMenu(){if(this._isLoggedIn&&this._el.querySelector('[data-id="reactions-menu"]'))return{reactionsMenu:new Ow(".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 Pw(t,e))}_getReactionsMenuConfig(e){const t=this._synchronizeReactionState(null==e?void 0:e.onReaction),n=this._isLoggedIn;return{...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,a=Array.from(t._el.querySelectorAll(".reactions-menu")).filter(e=>i?i!==this.getCurrentReactionType(e):Boolean(this.getCurrentReactionType(e)));a.forEach(e=>{i?o.setReaction(i,e):o.toggleReaction(e)})}}_initNativeVideo(){const e=this._el.querySelector(".share-native-video__node"),t=e&&new Vc(e);var n;t&&this._isLoggedIn&&(null===(n=t.getPlayerPromise())||void 0===n||n.then(e=>{e.removeAttribute("tabindex"),e.controlInteraction().on("track",(t,n)=>{let{controlName:i}=n;Bg(null,this._el.dataset,function(e,t){switch(e){case Mw:return{feedActionType:t.paused()?Ww:Gw,feedActionCategory:t.paused()?e_:Zw,feedControl:e};case Dw:return{feedActionType:Gw,feedActionCategory:Zw,feedControl:e};case Uw:return{feedActionType:t.muted()?Kw:Vw,feedActionCategory:t.muted()?t_:n_,feedControl:e};case Bw:return{feedActionType:t.isFullscreen()?Yw:Jw,feedActionCategory:t.isFullscreen()?n_:i_,feedControl:e};case qw:return{feedActionType:Xw,feedActionCategory:n_,feedControl:e};case Fw:return{feedActionType:Qw,feedActionCategory:n_,feedControl:e};case Hw:return{feedActionType:zw,feedActionCategory:Zw,feedControl:e};case jw:return{feedActionType:$w,feedActionCategory:r_,feedControl:e};default:return null}}(i,e))})}));return t}_initImageViewer(){const e=this._el.querySelector("#feed-image-viewer-modal-wrapper");if(!(this._isLoggedIn||null!=e&&e.classList.contains("enabled-image-viewer")))return;const t=this._el.querySelector(".feed-images-content"),n=this._el.querySelector("#feed-image-viewer-modal");t&&n&&(this.imageViewerModal=new ig(n,{shouldMoveToTopContainer:!1}),t.addEventListener("click",e=>{if(e.lgfTriggered)return;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 gw(e,{customEmailValidationPath:this.customEmailValidationPath,customEmailValidationFn:this.customEmailValidationFn,encodedLeadGenFormTrackingContext:this.encodedLeadGenFormTrackingContext})}_initSocialShare(){const e=this._el.querySelectorAll(".social-share");return Array.from(e).map(e=>new Pc(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 Pw(i,e)}_handleFeedClick(){this._isLoggedIn&&this._el.addEventListener("click",e=>{var t;e.target.closest(".social-action-bar")||(Bg(e),!this._sponsoredContent||null!==(t=e.target.classList)&&void 0!==t&&t.contains("c2pa-button__credential-icon")||!(e.target.closest(".feed-article-content")||e.target.closest(".feed-images-content")||e.target.closest(".sponsored-video-footer"))||(this._sponsoredContent.showForm(),e.preventDefault(),e.lgfTriggered=!0))},!0)}_initShowMoreLessHtml(){const e=this._el.querySelector(".show-more-less-html");e&&new $p(e)}getNativeVideo(){return this._nativeVideo}}class a_{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(ja(this,"_handleFocusIn",()=>{var e;null===(e=this._overlayLinkEl)||void 0===e||e.classList.add("!z-0")}),ja(this,"_handleFocusOut",()=>{var e;null===(e=this._overlayLinkEl)||void 0===e||e.classList.remove("!z-0")}),(null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE)throw new Error("Invalid element argument passed to MainFeedCard");this._el=e,this._options=n,this._overlayLinkEl=(null===(t=this._el.previousElementSibling)||void 0===t?void 0:t.classList.contains("main-feed-card__overlay-link"))&&this._el.previousElementSibling,this._ellipsisMenuEl=this._el.querySelector(".ellipsis-menu__trigger"),this._mainFeedActivityCard=this._initMainFeedActivityCard()}_initMainFeedActivityCard(){var e,t;if(null===(e=this._ellipsisMenuEl)||void 0===e||e.addEventListener("focusin",this._handleFocusIn),null===(t=this._ellipsisMenuEl)||void 0===t||t.addEventListener("focusout",this._handleFocusOut),this._el.classList.contains("main-feed-activity-card"))return new o_(this._el,this._options)}getMainFeedActivityCard(){return this._mainFeedActivityCard}}Object.freeze({NEW_COMMENT_CREATE_EVENT:"Comment:newComment:create",NEW_COMMENT_SUCCESS_EVENT:"Comment:newComment:success",NEW_COMMENT_FAIL_EVENT:"Comment:newComment:fail"});class s_{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:'[data-id="social-actions__reactions"]',t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'[data-id="social-actions__comments"]',n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'[data-id="social-actions__reposts"]';this.reactionsSelector=e,this.commentsSelector=t,this.repostSelector=n,this.bindEvents()}bindEvents(){this.commentCountEventHandler("Comment:newComment:success"),this.commentCountEventHandler("Comment:deleteComment:success"),this.reactionCountEventHandler("Reaction:newReaction:success"),this.reactionCountEventHandler("Reaction:deleteReaction:success"),this.repostCountEventHandler("Repost:newRepost:success"),this.repostCountEventHandler("Repost:deleteRepost:success")}commentCountEventHandler(e){document.body.addEventListener(e,t=>{const{entityUrn:n}=t.detail;if(n){const t=document.querySelectorAll(`${this.commentsSelector}[data-entity-urn="${n}"]`);null!=t&&t.length&&t.forEach(t=>{this.maybeInitPluralRules(t);let n=parseInt(t.dataset.numComments,10);"Comment:newComment:success"===e?n+=1:"Comment:deleteComment:success"===e&&n&&(n-=1);const i=this.plRules.select(n),r=this.plMap[i];if(t.dataset.numComments=n,t.textContent=n?r.replace("%numComments%",(new Intl.NumberFormat).format(n)):"",n>0&&!t.classList.contains("my-1")){const e=t.parentElement.querySelector(this.repostSelector);if(e){const t=parseInt(e.dataset.numReposts,10),i=1===n&&t>0?"before:middot":"";e.classList.add(i)}t.classList.add("my-1")}else!n&&t.classList.contains("my-1")&&t.classList.remove("my-1")})}})}repostCountEventHandler(e){document.body.addEventListener(e,t=>{const{entityUrn:n}=t.detail;if(n){const t=document.querySelectorAll(`${this.repostSelector}[data-entity-urn="${n}"]`);t.length&&t.forEach(t=>{this.maybeInitPluralRules(t);let n=parseInt(t.dataset.numReposts,10);"Repost:newRepost:success"===e?n+=1:"Repost:deleteRepost:success"===e&&n&&(n-=1);const i=this.plRules.select(n),r=this.plMap[i];if(t.dataset.numReposts=n,t.textContent=n?r.replace("%numReposts%",(new Intl.NumberFormat).format(n)):"",n>0&&!t.classList.contains("my-1")){const e=t.parentElement.querySelector(this.commentsSelector),i=parseInt(e.dataset.numComments,10),r=1===n&&i>0?["before:middot","my-1"]:["my-1"];t.classList.add(...r)}else!n&&t.classList.contains("my-1")&&t.classList.remove("before:middot","my-1")})}})}reactionCountEventHandler(e){document.body.addEventListener(e,t=>{const{entityUrn:n}=t.detail;if(!n)return;const i=document.querySelectorAll(`${this.reactionsSelector}[data-entity-urn="${n}"]`);null!=i&&i.length&&i.forEach(n=>{this.updateReactionCount(e,n),this.updateSocialActionImage(t,n),this.updateDotBetweenReactionAndCommentCount(t,n);const i=this.getNumReactions(n);i>0&&!n.classList.contains("my-1")?n.classList.add("my-1"):!i&&n.classList.contains("my-1")&&n.classList.remove("my-1")})})}getNumReactions(e){return parseInt(e.dataset.numReactions,10)}updateReactionCount(e,t){this.maybeInitPluralRules(t);let n=this.getNumReactions(t);"Reaction:newReaction:success"===e&&"true"!==t.dataset.isSelfReaction?(n+=1,t.dataset.isSelfReaction="true"):"Reaction:deleteReaction:success"===e&&n&&(n-=1,delete t.dataset.isSelfReaction);const i=this.plRules.select(n),r=this.plMap[i];t.dataset.numReactions=n;const o=n?(new Intl.NumberFormat).format(n):"",a=n>1?Fa("i18n_reactions_plural").replace("%numReactions%",o):1===n?Fa("i18n_reaction_singular").replace("%numReactions%",o):"";t.setAttribute("aria-label",a),t.querySelector("span").textContent=n?r.replace("%numReactions%",(new Intl.NumberFormat).format(n)):""}updateSocialActionImage(e,t){const n=e.type,{reactionType:i}=e.detail,r=t.querySelectorAll("img"),o=t.querySelector("[data-single-self-reaction]");if("Reaction:newReaction:success"===n&&r.length<3&&!t.querySelector(`img[data-reaction-type="${i}"]`)){null==o||o.remove();const e=t.querySelector("span"),n=document.createElement("img");n.dataset.delayedUrl=Fa("social-actions__reaction-image-"+i),n.dataset.reactionType=i,n.dataset.singleSelfReaction="true",n.setAttribute("height","16px"),n.setAttribute("width","16px"),e.parentElement.insertBefore(n,e),window.lazyloader.then(e=>e.refreshLoader())}else"Reaction:deleteReaction:success"===n&&(null==o||o.remove())}updateDotBetweenReactionAndCommentCount(e,t){const n=e.type,{entityUrn:i}=e.detail;let r=this.getNumReactions(t);if("Reaction:newReaction:success"===n&&1===r){const e=t.parentElement.querySelector(`${this.commentsSelector}[data-entity-urn="${i}"]`);"true"!==(null==e?void 0:e.dataset.separateCtas)&&(null==e||e.classList.add("before:middot"))}else if("Reaction:deleteReaction:success"===n&&0===r){const e=t.parentElement.querySelector(`${this.commentsSelector}[data-entity-urn="${i}"]`);"true"!==(null==e?void 0:e.dataset.separateCtas)&&(null==e||e.classList.remove("before:middot"))}}maybeInitPluralRules(e){this.plRules=new Intl.PluralRules,this.plMap={one:e.dataset.singular,other:e.dataset.plural}}}const c_="https://radar.cedexis.com/1/11326/radar.html",l_="https://platform.linkedin.com/js/thirdPartyJSDelegatorFrame.html?type=dyndns";function u_(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 d_(){u_(l_)}function h_(){u_(c_)}Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});function p_(e,t){const n=Fa("offline-text");t.clearAllToasts(),e&&t.trigger(xc.NOTIFY,n,"offline")}function f_(e){e&&(e.setAttribute("category","system-icons"),e.setAttribute("type","close-small"))}const g_=["category","type"];let v_;const m_=e=>{const t=e.getAttribute("type");t&&0===t.indexOf("large-")&&e.classList.add("large-icon")},y_=(e,t,n)=>{for(;e.firstChild;)e.removeChild(e.firstChild);const i=t&&n&&((e,t)=>{const n=v_.querySelector(`#${e} #${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 E_ extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),m_(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){g_.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||m_(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||y_(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 b_(){var e;const t=null===(e=document.getElementById("icons-svg"))||void 0===e?void 0:e.getAttribute("content");t&&Z(t,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e.responseText).then(e=>{const t=(new DOMParser).parseFromString(e,"application/xml").firstChild;t&&(v_=t,customElements.define("li-icon",E_))})}const w_=["light","dark","system"],__=["app","user"];let T_="light".toUpperCase();function S_(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),T_=(e?"dark":"light").toUpperCase();Da("theme-color",e?"#1b1f23":"#ffffff")}function C_(e){localStorage.setItem("mobileWebTheme",e)}function I_(){const e=Fa("darkModeLixValue");if(!e||"control"===e)return;const t=g(window.location.href,"li_theme");if(t)return S_("dark"===t),void C_("dark"===t?"dark":"light");const n="on"===e?"system":"light",i=y("li_theme"),r=i&&w_.includes(i)?i:n;"system"===r?function(){if(window.matchMedia){S_(window.matchMedia("(prefers-color-scheme:dark)").matches);try{window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",e=>S_(e.matches))}catch(e){window.matchMedia("(prefers-color-scheme:dark)").addListener(e=>S_(e.matches))}}}():S_("dark"===r),C_(r),function(e,t){let n="app";const i=y("li_theme_set");i&&__.includes(i)?n=i:("on"===e&&"system"!==t||"enabled-light"===e&&"light"!==t)&&(n="user"),La("li_theme_set",n,15552e6)}(e,r)}const k_=()=>{const e=window.location.href;window.addEventListener("popstate",t=>{if(t.state&&t.state.action&&"reload"===t.state.action){e===window.location.href||Ra()}})};function A_(e){return{isVoyagerAndroidAppInstalled:e.indexOf("com.linkedin.android")>-1,appTypesInstalled:e}}function x_(e){s(()=>{!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=A_(t);e(n,r)});else{const i=A_(t);e(n,i)}}(e)})}const O_={PRIMARY_ACTION:"PRIMARY_ACTION",SECONDARY_ACTION:"SECONDARY_ACTION",SKIP:"SKIP",DISMISS:"DISMISS"},L_={PAGE_IMPRESSION:"PAGE_IMPRESSION",WIDGET_IMPRESSION:"WIDGET_IMPRESSION",WIDGET_ACTION:"WIDGET_ACTION"};var R_=Object.freeze({__proto__:null,ACTION_CATEGORY:O_,EVENT_TYPE:L_,LEGO_TRACKING_URLS:{LEGO_PAGE_IMPRESSION_EVENT:"/mwlite/lego/sendPageImpressionEvent/",LEGO_WIDGET_IMPRESSION_EVENT:"/mwlite/lego/sendWidgetImpressionEvent/",LEGO_WIDGET_ACTION_EVENT:"/mwlite/lego/sendWidgetActionEvent/"},fireLegoEvent:function(e,t){Z(e,{method:"POST",postData:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch(()=>{})}});class N_ extends al{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:N_.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}ja(N_,"query","48f4c814e38d5689b7c83a29c9676972");let P_,D_;function M_(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&&(D_.execute({eventType:L_.WIDGET_ACTION,trackingToken:t,widgetActionCategory:O_.DISMISS}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):D_.execute({eventType:L_.WIDGET_ACTION,trackingToken:t,widgetActionCategory:O_.PRIMARY_ACTION})),P_(),n.remove()}}function U_(){const e=document.querySelector("#promo-upsell");var t,n;e&&(D_=new N_(function(){const e=document.querySelector('meta[name="queryEndpoint"]');return null==e?void 0:e.getAttribute("content")}()),document.body.classList.add("no-scroll"),fa(e),P_=Sc({el:e,focusElement:document.querySelector("#promo-upsell .promo__action")}),e.addEventListener("click",M_),(t=e.dataset.legoTrackingId)&&(D_.execute({eventType:L_.PAGE_IMPRESSION,trackingToken:t}),D_.execute({eventType:L_.WIDGET_IMPRESSION,trackingToken:t})),null===(n=window.tracking)||void 0===n||n.then(e=>{jo(e,"half","p_mwlite_app_upsell_lego")}))}function F_(e,t){if(Fa("disableAppUpsellPrompt"))return;const{isVoyagerAndroidAppInstalled:n}=t;e&&t&&n||U_()}function B_(){document.querySelectorAll("#app-upsell-container").forEach(e=>e.parentNode.removeChild(e)),x_(F_)}function q_(){new Promise(e=>{window.mWebBlendedTypeaheadPromise=jl(),window.addEventListener("DOMContentLoaded",()=>{var e,t,n;e=Qf(),window.addEventListener("offline",()=>p_(!0,e)),window.addEventListener("online",()=>p_(!1,e)),ka(),null===(t=navigator)||void 0===t||null===(n=t.serviceWorker)||void 0===n||n.getRegistrations().then((function(e){for(let t of e)t.unregister()}))}),window.addEventListener("load",()=>{h(document.querySelectorAll("li-icon.artdeco-global-alert__icon--dismissed")).map(f_),b_(),xa("#overlay_"),I_(),h_(),d_(),d.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)};Na()&&t(),k_()}(),$f(),B_(),xa("#mobile-nav-search"),setTimeout(()=>{var t;null===(t=window.tracking)||void 0===t||t.then(t=>{Aa()&&jo(t,sg.AJAX,"p_mwlite_launched_from_homescreen"),e()})})})})}function H_(e,t){(null==t||t>e.length)&&e.length;for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function j_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G_(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,V_(i.key),i)}}function W_(e,t,n){return t&&G_(e.prototype,t),n&&G_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function z_(e,t,n){return(t=V_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K_(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,a,s=[],c=!0,l=!1;try{if(n.call(e).next,0===t){if(Object(n)!==n)return;!1}else for(;!o.call(n).done&&(s.push(i.value),s.length!==t);!0);}catch(e){!0,e}finally{try{if(!c&&null!=n.return&&(n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return H_(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&e.constructor.name,"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?H_(e,t):void 0}}(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 V_(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function X_(e){return(X_="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 Y_=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var J_=/^fs_/;function Q_(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+X_(e)+".");var t,n,i=Y_.exec(e);return i&&(t=i[1].replace(J_,""),n=i[2]),{id:n,type:t}}var $_=/(?![^(]*\)),/;var Z_={checkForEntityId:function(e){var t=Y_.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:Q_,urnToObject:function e(t){var n=Q_(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split($_),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}};var eT={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},tT="GUEST",nT="MEMBER",iT="ENTERPRISE_UNBOUND",rT=0,oT=1,aT=2;z_(z_(z_({},tT,"li_gc"),nT,"li_mc"),iT,"li_ec");z_(z_(z_({},tT,"mypreferences/g/guest-cookies"),nT,"settings/member-cookies"),iT,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var sT=W_((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 j_(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},eT)t[o]=t[o]||rT,t[o]!==rT&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===oT||t[o]===rT&&r===oT})),cT=(function(){var e=[eT.ADVERTISING,eT.ANALYTICS_AND_RESEARCH,eT.FUNCTIONAL],t=[rT,oT,aT,rT],n=function(n){for(var i={},r=0;r<e.length;r++){i[e[r]]=t[n>>2*r&3]}return i},i=function(e){var n=rT;return e>=0&&e<=3&&(n=t[e]),n}}(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),lT=0,uT=1;W_((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,i=void 0===n?null:n,r=t.issuedAt,o=void 0===r?null:r,a=t.defaultConsent,s=void 0===a?lT:a;for(var c in j_(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},cT)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===uT}));Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const dT=document.querySelector("#share-modal .textarea"),hT=document.querySelector(".image-preview-wrapper"),pT=document.querySelector("#share-modal .modal-content .reshare-section"),fT=document.querySelector(".post-button"),gT=document.querySelector("#comments-enabled"),vT=document.querySelector("#share-with-public"),mT=document.querySelector(".post-settings-wrapper"),yT=document.querySelector('input[name="share-with"]:checked'),ET=document.querySelector("#share-modal .close-button"),bT=document.querySelector("#visibility-settings-modal"),wT=document.querySelector("#visibility-header-back .close-button"),_T=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),TT=document.querySelector("#discard-post-modal-wrapper"),ST=document.querySelector("#share-modal"),CT=document.querySelector(".modal-spinner"),IT=document.querySelector("#share-modal .textarea"),kT=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const AT=document.querySelector("#share-with-network");class xT extends Ml{updatePostButtonStatus(){var e;const t=null===(e=dT.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===hT.getAttribute("data-image-load-state"),i=pT.children.length;t||n||i?Ea(fT):ya(fT)}clearModalContentBase(){pT&&(pT.textContent=""),dT&&(dT.textContent=""),gT&&(gT.checked=!0),vT&&(vT.checked=!0,mT.setAttribute("data-post-visibility",yT.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),ET.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[data-control-action]")||t.querySelector("[data-control-action]");n&&window.tracking.then(e=>{e.fireControlInteractionEvent(n.getAttribute("data-control-action"))})}bT.addEventListener("close",()=>{mT.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),wT.addEventListener("click",()=>window.history.back()),_T.addEventListener("click",t=>e(t)),_T.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}),ba()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class OT extends xT{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:a=!1,historyUpdateUrl:s}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:a}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=s,this.postUrn=Fa("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new Ml(bT,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=m(this.updatePostButtonStatus,300);IT.addEventListener("input",e)}bindShareModalEvents(){const e=new Yf(TT,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});ST.addEventListener("open",()=>{dT.focus()}),ST.addEventListener("close",()=>{this.clearModalContentBase(),pa(CT)}),fT.addEventListener("click",()=>{this.processPostData()}),ET.addEventListener("click",()=>{fT.disabled?this.close():e.modal.open()}),mT.addEventListener("click",this.postSettingsClickHandler.bind(this)),mT.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(),wa()&&window.scrollTo(0,0),n&&(IT.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=IT.textContent,this.shareData.visibility="PUBLIC",kT&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=kT.value),AT.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){fa(CT),this.composePostData(),ol({endpoint:this.endpoint,queryId:OT.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=>{jo(e,"ajax","post_success_page_key")}),Qf().trigger("success",Fa("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:Fa("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{jo(e,"ajax","post_failure_page_key")}),Qf().trigger("error",Fa("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())}}ja(OT,"query","971e319c05beaf333e94125db8c4f942");const LT={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};og({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:LT}),og({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:LT}),og({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:LT});class RT extends al{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:RT.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}ja(RT,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class NT extends al{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:NT.query,variables:{skills:e},successCallback:t,failureCallback:n})}}ja(NT,"query","a628cd3be2c138c07fc69c2413b23fb6");class PT extends al{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:PT.query,variables:{skills:e},successCallback:t,failureCallback:n})}}ja(PT,"query","a0ff03a6b1cbe44862cb2054f0612078");class DT extends al{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:DT.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}ja(DT,"query","ad184ece0303620a9753eca249efd99f");class MT extends al{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:MT.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}ja(MT,"query","7edd5b8a4513caf8180a64ecde871630");class UT extends al{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:UT.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}ja(UT,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class FT extends al{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:FT.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}ja(FT,"query","85c85c121bf7eaabd2388b9143f94546");class BT extends al{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:BT.query,variables:{assetUrn:e},successCallback:t,failureCallback:n})}}ja(BT,"query","886ab48d89d7bb06bd1a5d5454286645");const qT={legoTrackingUtils:R_,getPageInstance:zo,getEventBody:Go,firePageViewEvent:jo,fireViewModuleImpressionEvent:Wo,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:a="li/track",maxSize:s=10,debounceTime:c=50,disableCompression:l=!1,customDelegate:u={},retryConfig:d=null,isLoggedIn:h=!1,abuseDeviceSignalCollectionConfig:p={},customTransporterHosts:f}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const g={appId:e,appVersion:t,locale:n,multiproduct:i,service:r,endpoint:a,disableCompression:l,abuseDeviceSignalCollectionConfig:p,retryConfig:d,api:{AbortController,location:window.location,document,performance,PerformanceObserver,Promise,assign:Object.assign,fetch,sendBeacon:navigator.sendBeacon.bind(navigator)},batching:{maxSize:s,debounceTime:c}};g.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization=!0,o&&(g.treeID=o);const v=new xi(g),m=new Gi(v,{customTransporterHosts:f,preTransporter:e=>({...e,meta:Vo(e.meta)}),shouldAnonymizeMemberId:()=>!!d&&!h,...u});return m},getApplicationViewerUrn:function(e){let{browserId:t,memberId:n,isLoggedIn:i=!1}=e;return i?"urn:li:member:"+n:"urn:li:guest:"+t},getTrackingId:function(e){let t,{pageInstance:n,service:i}=e;if(n&&n.split(";").length>=2)t=Uint8Array.from(window.atob(n.split(";")[1]),e=>e.charCodeAt(0)),t=Array.from(t);else{t=[];for(let e=0;e<16;e++){let n=i.charCodeAt(e);isNaN(n)&&(n=0),t.push(n)}}return t}}}).call(this,n(1),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";n.d(t,"a",(function(){return o}));var i=n(0),r="/organization-guest/api/runQuery";function o(e){var t,n=e?{endpoint:r}:{},o=e?{deleteEntity:null,disableComment:null,enableComment:null,followConfig:{endpoint:r}}:{},a=e?{endpoint:r}:{},s=null===(t=Array.from(document.querySelectorAll('[data-id="main-feed-card__full-link"]')).find(e=>!!e.getAttribute("aria-label")))||void 0===t?void 0:t.getAttribute("aria-label");Array.from(document.querySelectorAll('[data-id="main-feed-card"]')).forEach((t,r)=>{var c;t.getAttribute("data-is-initialized-feed-item")||(new i.j(t,{isLoggedIn:e,reactionsMenuConfig:n,controlMenuConfig:o,followButtonConfig:a}),t.setAttribute("data-is-initialized-feed-item","true"));var l=r+1;t.dataset.feedItemListPosition=l;var u=(null===(c=t.previousElementSibling)||void 0===c?void 0:c.classList.contains("main-feed-card__overlay-link"))&&t.previousElementSibling;null==u||u.setAttribute("aria-label",(null==s?void 0:s.replace(/\d+/,l))||"")})}},function(e,t,n){"use strict";(function(e){var i=n(4),r=n(5),o=n(6);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<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=s(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=s(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?s(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=s(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=s(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().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 g(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 x(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(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 v(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(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,a=1,s=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;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(r){var u=-1;for(o=n;o<s;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*a}else-1!==u&&(o-=o-u),u=-1}else for(n+c>s&&(n=s-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 E(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 a=0;a<i;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,i){return j(q(t,e.length-n),e,n,i)}function w(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 _(e,t,n,i){return w(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=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),i=n>>8,r=n%256,o.push(r),o.push(i);return o}(t,e.length-n),e,n,i)}function C(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var o,a,s,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],a=e[r+2],128==(192&o)&&128==(192&a)&&(c=(15&l)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:o=e[r+1],a=e[r+2],s=e[r+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>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=a(),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?s(e,t):void 0!==n?"string"==typeof i?s(e,t).fill(n,i):s(e,t).fill(n):s(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 a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,r),r+=a.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)v(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)v(this,t,t+3),v(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)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?I(this,0,e):g.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),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(i,r),u=e.slice(t,n),d=0;d<s;++d)if(l[d]!==u[d]){o=l[d],a=u[d];break}return o<a?-1:a<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 m(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return m(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 E(this,e,t,n);case"utf8":case"utf-8":return b(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return _(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 k(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 x(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+=B(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 L(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 R(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 N(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 P(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 D(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 M(e,t,n,i,o){return o||D(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,o){return o||D(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||L(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||L(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||L(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||L(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||L(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||L(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||L(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||L(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||L(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||L(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||L(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||L(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||L(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||L(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||L(e,4,this.length),r.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||L(e,4,this.length),r.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||L(e,8,this.length),r.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||L(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)||R(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)||R(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||R(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||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(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):P(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(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):P(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);R(this,e,t,n,r-1,-r)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&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);R(this,e,t,n,r-1,-r)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(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||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(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):P(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(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):P(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return M(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 a=c.isBuffer(e)?e:q(new c(e,i).toString()),s=a.length;for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function B(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=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+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(F,"")).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(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),a=i[0],s=i[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),u=0,d=s>0?a-4:a;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===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===s&&(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=[],a=0,s=n-r;a<s;a+=16383)o.push(u(e,a,a+16383>s?s:a+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,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)i[s]=a[s],r[a.charCodeAt(s)]=s;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,a=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(i[(o=r)>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,i,r){var o,a,s=8*r-i-1,c=(1<<s)-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+=s;u>0;o=256*o+e[t+d],d+=h,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=i;u>0;a=256*a+e[t+d],d+=h,u-=8);if(0===o)o=1-l;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),o-=l}return(p?-1:1)*a*Math.pow(2,o-i)},t.write=function(e,t,n,i,r,o){var a,s,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,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?h/c:h*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=u?(s=0,a=u):a+d>=1?(s=(t*c-1)*Math.pow(2,r),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,r),a=0));r>=8;e[n+p]=255&s,p+=f,s/=256,r-=8);for(a=a<<r|s,l+=r;l>0;e[n+p]=255&a,p+=f,a/=256,l-=8);e[n+p-f]|=128*g}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(e,i){n.d(t,"a",(function(){return id})),n.d(t,"b",(function(){return Mu})),n.d(t,"c",(function(){return Us})),n.d(t,"d",(function(){return qo})),n.d(t,"e",(function(){return Uo})),n.d(t,"f",(function(){return T}));const r=["Googlebot","bingbot","botify"];function o(e,t){const{userAgent:n}=navigator;if(!t||!n||r.some(e=>n.includes(e)))return e;const i=e.startsWith("/"),o=i?window.location.origin:void 0,a=new URL(e,o);return a.searchParams.set("trk",t),i?a.pathname+a.search+a.hash:a.toString()}function a(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function s(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}class c{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}const l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();class u{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 d=function(){let e;return{getInstance:function(){return e||(e=new u),e}}}();function h(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function p(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 f(){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 g(e,t,n){const i=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function v(e,t,n,i){if(!e||!t)throw new Error(`Required param of addQueryParam missing: url = ${e},  key = ${t}`);t=encodeURIComponent(t),n=encodeURIComponent(n);const r=g(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),a="&";return i<0?a="?":i===e.length-1&&(a=""),o&&(o="#"+o),`${r}${a}${t}=${n}${o||""}`}}function m(e,t,n){var i=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let r;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const c=()=>{r=null,n||e.apply(i,a)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,a)}}function y(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function E(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 w(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 T=Object.freeze({__proto__:null,addTrackingCode:o,closest:a,onload:s,UnloadHandler:l,PagehideHandler:d,makeArray:h,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:p,hasElementScrolledToThreshold:f,getQueryParam:g,addQueryParam:v,debounce:m,getCookie:y,dispatchCustomEvent:E,getDeferredPromise:b,isDocumentHidden:w,stripQueryParams:_,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=v(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},stripHtmlFromString:function(e){return null==e?void 0:e.replace(/(<([^>]+)>)/gi,"")},replaceNonBreakingSpaces:function(e){return e.replace(/\u00a0/gi," ")}});function S(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?`${n.content}${r||t.skipSuffix?"":"_jsbeacon"}`:""}function C(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function I(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function k(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"},x={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 x[e]||e}class L{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:a=!1}=o;this.isOpen=a,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:E(e.target,"click");break;case A.ARROW_LEFT:case A.ARROW_UP:n=a(e.target,"li");let t=n.previousElementSibling;t&&E(t,"focusEl");break;case A.ARROW_RIGHT:case A.ARROW_DOWN:n=a(e.target,"li");let i=n.nextElementSibling;i&&E(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)),E(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)),E(this.el,"close"),e&&setTimeout(()=>{this.mainButton.focus()},250))}}let R,N;const P=['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^="-"])'],D=[...P,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),M=[...P,"[tabindex]:not([disabled])"].join(",");function U(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function F(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=F(e.parentNode,n,i)),i&&i.set(e,t),t)}const B={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]:B.POLITE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;R&&(R.removeAttribute("aria-hidden"),R.setAttribute("aria-live",t),R.textContent=e,clearTimeout(N),N=setTimeout(()=>{R.textContent=""},n))}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.classList.contains("top-level-modal-container")&&(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 G{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(D)],n=new Map;let i,r,o=0,a=t.length-1;for(;(!i||!r)&&o<=a;){if(!i){const r=t[o];i=F(r,e,n)&&r,o++}if(!r){const i=t[a];r=F(i,e,n)&&i,a--}}return r=r||i,[i,r]}}function W(e){var t;let{method:n="GET",headers:i={},sendCookies:r=!0,skipCsrfToken:o=!1,postData:a,isPemEnabled:s=!1,pemDegradationTrackingMetadata:c=[],pemEntityIds:l=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u={method:n,headers:i,body:null};if(!o){const e=y("JSESSIONID");e&&(u.headers["Csrf-Token"]=k(e))}let d;r&&(u.credentials="include"),"POST"!==u.method&&"PUT"!==u.method||(u.body=a);const h=document.getElementById("config");d="true"===(null==h||null===(t=h.dataset)||void 0===t?void 0:t.sequenceAutoRedirectBeforeRequestEnabled)&&window.appRedirectCompleted?window.appRedirectCompleted.then(()=>fetch(e,u)).catch(()=>{var t;return null===(t=window.ingraphTracking)||void 0===t||t.then(e=>{e.fireCounterIngraphMetric({metricsType:"AppRedirectPromiseRejected"})}),fetch(e,u)}):fetch(e,u);const p=d.then(t=>t.ok||304===t.status?t.text().then(e=>(t.responseText=e,t)):t.text().then(i=>{const r=new Error(`${n} request for ${e} has failed with status code ${t.status}`);return t.responseText=i,r.response=t,Promise.reject(r)}));return s&&(c.length?z(d,e,l,c):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),p}function z(e,t,n,i){try{window.tracking.then(r=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)})})}catch(e){}}var K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},V=(parseInt,"object"==typeof K&&K&&K.Object===Object&&K),X="object"==typeof self&&self&&self.Object===Object&&self;V||X||Function("return this")(),Object.prototype.toString,Math.max,Math.min;const Y="light",J="dark";function Q(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?J:Y:void 0}var $,Z=["transporterKeys"],ee=["breadcrumb"],te=["$type"],ne=["requestStart"],ie=["requestTime","viewNames","requestType","requestTag"],re=["requestStart"],oe=["requestStart"],ae=["requestTime","viewNames","requestType"];function se(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?se(Object(n),!0).forEach((function(t){Se(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(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,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(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 ue(e,t,n){return t=he(t),function(e,t){if(t&&("object"===be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return de(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function de(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fe(e,t)}function fe(e,t){return(fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ge(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}function ve(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function me(e){return function(e){if(Array.isArray(e))return Ee(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 Ee(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)?Ee(e,t):void 0}}function Ee(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 be(e){return(be="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)}function we(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _e(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,Ce(i.key),i)}}function Te(e,t,n){return t&&_e(e.prototype,t),n&&_e(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Se(e,t,n){return(t=Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ce(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=be(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==be(t)?t:String(t)}var Ie,ke="unknown",Ae=new Uint8Array(16);function xe(){if(!Ie&&!(Ie="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ie(Ae)}var Oe=/^(?:[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 Le(e){return"string"==typeof e&&Oe.test(e)}for(var Re=[],Ne=0;Ne<256;++Ne)Re.push((Ne+256).toString(16).slice(1));function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(Re[e[t+0]]+Re[e[t+1]]+Re[e[t+2]]+Re[e[t+3]]+"-"+Re[e[t+4]]+Re[e[t+5]]+"-"+Re[e[t+6]]+Re[e[t+7]]+"-"+Re[e[t+8]]+Re[e[t+9]]+"-"+Re[e[t+10]]+Re[e[t+11]]+Re[e[t+12]]+Re[e[t+13]]+Re[e[t+14]]+Re[e[t+15]]).toLowerCase()}function De(e){if(!Le(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 Me(e,t,n){function i(e,i,r,o){var a;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=De(i)),16!==(null===(a=i)||void 0===a?void 0:a.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 c=0;c<16;++c)r[o+c]=s[c];return r}return Pe(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Ue(e){return 14+(e+64>>>9<<4)+1}function Fe(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Be(e,t,n,i,r,o){return Fe((a=Fe(Fe(t,e),Fe(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function qe(e,t,n,i,r,o,a){return Be(t&n|~t&i,e,t,r,o,a)}function He(e,t,n,i,r,o,a){return Be(t&i|n&~i,e,t,r,o,a)}function je(e,t,n,i,r,o,a){return Be(t^n^i,e,t,r,o,a)}function Ge(e,t,n,i,r,o,a){return Be(n^(t|~i),e,t,r,o,a)}Me("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,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Ue(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,l=r,u=o;n=qe(n,i,r,o,e[a],7,-680876936),o=qe(o,n,i,r,e[a+1],12,-389564586),r=qe(r,o,n,i,e[a+2],17,606105819),i=qe(i,r,o,n,e[a+3],22,-1044525330),n=qe(n,i,r,o,e[a+4],7,-176418897),o=qe(o,n,i,r,e[a+5],12,1200080426),r=qe(r,o,n,i,e[a+6],17,-1473231341),i=qe(i,r,o,n,e[a+7],22,-45705983),n=qe(n,i,r,o,e[a+8],7,1770035416),o=qe(o,n,i,r,e[a+9],12,-1958414417),r=qe(r,o,n,i,e[a+10],17,-42063),i=qe(i,r,o,n,e[a+11],22,-1990404162),n=qe(n,i,r,o,e[a+12],7,1804603682),o=qe(o,n,i,r,e[a+13],12,-40341101),r=qe(r,o,n,i,e[a+14],17,-1502002290),n=He(n,i=qe(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=He(o,n,i,r,e[a+6],9,-1069501632),r=He(r,o,n,i,e[a+11],14,643717713),i=He(i,r,o,n,e[a],20,-373897302),n=He(n,i,r,o,e[a+5],5,-701558691),o=He(o,n,i,r,e[a+10],9,38016083),r=He(r,o,n,i,e[a+15],14,-660478335),i=He(i,r,o,n,e[a+4],20,-405537848),n=He(n,i,r,o,e[a+9],5,568446438),o=He(o,n,i,r,e[a+14],9,-1019803690),r=He(r,o,n,i,e[a+3],14,-187363961),i=He(i,r,o,n,e[a+8],20,1163531501),n=He(n,i,r,o,e[a+13],5,-1444681467),o=He(o,n,i,r,e[a+2],9,-51403784),r=He(r,o,n,i,e[a+7],14,1735328473),n=je(n,i=He(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=je(o,n,i,r,e[a+8],11,-2022574463),r=je(r,o,n,i,e[a+11],16,1839030562),i=je(i,r,o,n,e[a+14],23,-35309556),n=je(n,i,r,o,e[a+1],4,-1530992060),o=je(o,n,i,r,e[a+4],11,1272893353),r=je(r,o,n,i,e[a+7],16,-155497632),i=je(i,r,o,n,e[a+10],23,-1094730640),n=je(n,i,r,o,e[a+13],4,681279174),o=je(o,n,i,r,e[a],11,-358537222),r=je(r,o,n,i,e[a+3],16,-722521979),i=je(i,r,o,n,e[a+6],23,76029189),n=je(n,i,r,o,e[a+9],4,-640364487),o=je(o,n,i,r,e[a+12],11,-421815835),r=je(r,o,n,i,e[a+15],16,530742520),n=Ge(n,i=je(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=Ge(o,n,i,r,e[a+7],10,1126891415),r=Ge(r,o,n,i,e[a+14],15,-1416354905),i=Ge(i,r,o,n,e[a+5],21,-57434055),n=Ge(n,i,r,o,e[a+12],6,1700485571),o=Ge(o,n,i,r,e[a+3],10,-1894986606),r=Ge(r,o,n,i,e[a+10],15,-1051523),i=Ge(i,r,o,n,e[a+1],21,-2054922799),n=Ge(n,i,r,o,e[a+8],6,1873313359),o=Ge(o,n,i,r,e[a+15],10,-30611744),r=Ge(r,o,n,i,e[a+6],15,-1560198380),i=Ge(i,r,o,n,e[a+13],21,1309151649),n=Ge(n,i,r,o,e[a+4],6,-145523070),o=Ge(o,n,i,r,e[a+11],10,-1120210379),r=Ge(r,o,n,i,e[a+2],15,718787259),i=Ge(i,r,o,n,e[a+9],21,-343485551),n=Fe(n,s),i=Fe(i,c),r=Fe(r,l),o=Fe(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ue(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}));var We={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function ze(e,t,n){if(We.randomUUID&&!t&&!e)return We.randomUUID();var i=(e=e||{}).random||(e.rng||xe)();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 Pe(i)}function Ke(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function Ve(e,t){return e<<t|e>>>32-t}Me("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,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++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];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[d][p];for(var f=16;f<80;++f)h[f]=Ve(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],v=n[1],m=n[2],y=n[3],E=n[4],b=0;b<80;++b){var w=Math.floor(b/20),_=Ve(g,5)+Ke(w,v,m,y)+E+t[w]+h[b]>>>0;E=y,y=m,m=Ve(v,30)>>>0,v=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Xe=Uint8Array,Ye=Uint16Array,Je=Uint32Array,Qe=new Xe([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]),$e=new Xe([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]),Ze=new Xe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),et=function(e,t){for(var n=new Ye(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Je(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]},tt=et(Qe,2),nt=tt[0],it=tt[1];nt[28]=258,it[258]=28;for(var rt=et($e,0)[1],ot=new Ye(32768),at=0;at<32768;++at){var st=(43690&at)>>>1|(21845&at)<<1;st=(61680&(st=(52428&st)>>>2|(13107&st)<<2))>>>4|(3855&st)<<4,ot[at]=((65280&st)>>>8|(255&st)<<8)>>>1}var ct=function(e,t,n){for(var i=e.length,r=0,o=new Ye(t);r<i;++r)e[r]&&++o[e[r]-1];var a,s=new Ye(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;if(n){a=new Ye(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=s[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[ot[d]>>>c]=l}else for(a=new Ye(i),r=0;r<i;++r)e[r]&&(a[r]=ot[s[e[r]-1]++]>>>15-e[r]);return a},lt=new Xe(288);for(at=0;at<144;++at)lt[at]=8;for(at=144;at<256;++at)lt[at]=9;for(at=256;at<280;++at)lt[at]=7;for(at=280;at<288;++at)lt[at]=8;var ut=new Xe(32);for(at=0;at<32;++at)ut[at]=5;var dt=ct(lt,9,0),ht=ct(ut,5,0),pt=function(e){return(e+7)/8|0},ft=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},gt=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},vt=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[Tt,0];if(1==r){var a=new Xe(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=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:s.f+c.f,l:s,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new Ye(h+1),f=mt(n[u-1],p,0);if(f>t){i=0;var g=0,v=f-t,m=1<<v;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;g+=m-(1<<f-p[y]),p[y]=t}for(g>>>=v;g>0;){var E=o[i].s;p[E]<t?g-=1<<t-p[E]++-1:++i}for(;i>=0&&g;--i){var b=o[i].s;p[b]==t&&(--p[b],++g)}f=t}return[new Xe(p),f]},mt=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},yt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ye(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r);o=1,r=e[s]}return[n.subarray(0,i),t]},Et=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},bt=function(e,t,n){var i=n.length,r=pt(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)},wt=function(e,t,n,i,r,o,a,s,c,l,u){ft(t,u++,n),++r[256];for(var d=vt(r,15),h=d[0],p=d[1],f=vt(o,15),g=f[0],v=f[1],m=yt(h),y=m[0],E=m[1],b=yt(g),w=b[0],_=b[1],T=new Ye(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var C=vt(T,7),I=C[0],k=C[1],A=19;A>4&&!I[Ze[A-1]];--A);var x,O,L,R,N=l+5<<3,P=Et(r,lt)+Et(o,ut)+a,D=Et(r,h)+Et(o,g)+a+14+3*A+Et(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(N<=P&&N<=D)return bt(t,u,e.subarray(c,c+l));if(ft(t,u,1+(D<P)),u+=2,D<P){x=ct(h,p,0),O=h,L=ct(g,v,0),R=g;var M=ct(I,k,0);for(ft(t,u,E-257),ft(t,u+5,_-1),ft(t,u+10,A-4),u+=14,S=0;S<A;++S)ft(t,u+3*S,I[Ze[S]]);u+=3*A;for(var U=[y,w],F=0;F<2;++F){var B=U[F];for(S=0;S<B.length;++S){var q=31&B[S];ft(t,u,M[q]),u+=I[q],q>15&&(ft(t,u,B[S]>>>5&127),u+=B[S]>>>12)}}}else x=dt,O=lt,L=ht,R=ut;for(S=0;S<s;++S)if(i[S]>255){q=i[S]>>>18&31,gt(t,u,x[q+257]),u+=O[q+257],q>7&&(ft(t,u,i[S]>>>23&31),u+=Qe[q]);var H=31&i[S];gt(t,u,L[H]),u+=R[H],H>3&&(gt(t,u,i[S]>>>5&8191),u+=$e[H])}else gt(t,u,x[i[S]]),u+=O[i[S]];return gt(t,u,x[256]),u+O[256]},_t=new Je([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Tt=new Xe(0),St=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}(),Ct=function(e,t,n,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new Xe(i+a+5*(1+Math.ceil(a/7e3))+r),c=s.subarray(i,s.length-r),l=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535;d>=a&&(c[l>>3]=o),l=bt(c,l+1,e.subarray(u,d))}else{for(var h=_t[t-1],p=h>>>13,f=8191&h,g=(1<<n)-1,v=new Ye(32768),m=new Ye(g+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&g},w=new Je(25e3),_=new Ye(288),T=new Ye(32),S=0,C=0,I=(u=0,0),k=0,A=0;u<a;++u){var x=b(u),O=32767&u,L=m[x];if(v[O]=L,m[x]=O,k<=u){var R=a-u;if((S>7e3||I>24576)&&R>423){l=wt(e,c,0,w,_,T,C,I,A,u-A,l),I=S=C=0,A=u;for(var N=0;N<286;++N)_[N]=0;for(N=0;N<30;++N)T[N]=0}var P=2,D=0,M=f,U=O-L&32767;if(R>2&&x==b(u-U))for(var F=Math.min(p,R)-1,B=Math.min(32767,u),q=Math.min(258,R);U<=B&&--M&&O!=L;){if(e[u+P]==e[u+P-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>P){if(P=H,D=U,H>F)break;var j=Math.min(U,H-2),G=0;for(N=0;N<j;++N){var W=u-U+N+32768&32767,z=W-v[W]+32768&32767;z>G&&(G=z,L=W)}}}U+=(O=L)-(L=v[O])+32768&32767}if(D){w[I++]=268435456|it[P]<<18|rt[D];var K=31&it[P],V=31&rt[D];C+=Qe[K]+$e[V],++_[257+K],++T[V],k=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=wt(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=bt(c,l+1,Tt))}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?Ye:4==e.BYTES_PER_ELEMENT?Je:Xe)(n-t);return i.set(e.subarray(t,n)),i}(s,0,i+pt(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},It=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},kt="undefined"!=typeof TextDecoder&&new TextDecoder;try{kt.decode(Tt,{stream:!0})}catch(hr){}function At(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function xt(){try{return At()&&"keepalive"in new Request("")}catch(e){return!1}}function Ot(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=function(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=St[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=Ct(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=r.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&&It(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)}}(r,t),It(r,o-8,n.d()),It(r,o-4,i),r}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function Lt(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Rt,Nt="undefined"!=typeof navigator&&"sendBeacon"in navigator,Pt=xt()?function(e,t,n,i){return new Promise((function(r){fetch(e,Ot({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,Ot({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:Lt(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Nt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,Ot({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:Lt(e)})}))}))};function Dt(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 Mt(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 Ut(){return Rt||(Rt=Mt("idb-queue","default")),Rt}function Ft(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))},Dt(e.transaction)}var Bt=!1;function qt(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]:Ut();return n("readwrite",(function(n){return n.put(e),Dt(n.count()).then((function(e){if(!(e<=t.maxNumber))return Ft(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ut())("readwrite",(function(t){return Ft(t,e)}))}(t,n)}))}function Ht(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]:Ut();return Bt?Promise.resolve():qt(e,t,n)}function jt(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())},Dt(t.transaction).then((function(){return i}))}))}function Gt(){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 Wt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function zt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var Vt=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];we(this,e),Se(this,"config",void 0),Se(this,"compress",void 0),Se(this,"throttleControl",void 0),Se(this,"withStore",void 0),Se(this,"disablePersistence",!1),this.config=t,this.compress=i;var r,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=Mt(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(r=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now();e-a>o&&(Wt((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return Te(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Wt((function(){return"Persisting to DB "+e.url})),Ht(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Wt((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,zt((function(){return"push failed"}))}))};this.config.useIdle?Kt(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]:Ut();return Bt=!0,e("readwrite",(function(e){return e.clear(),Dt(e.transaction).finally((function(){return Bt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,zt((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([]):function(){return jt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ut(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,zt((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([]):function(){return jt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ut(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,zt((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Wt((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[];return t.openCursor(null,"next").onsuccess=function(){var t=this.result;t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},Dt(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ut())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return Wt((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),Pt(o,a,Gt(s,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,a),e.replayEntries()}else{var r,s,d,h,p,f;if(u+1>e.config.attemptLimit)return Wt((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a));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,a),Wt((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),Ht({url:o,body:a,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,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&zt((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Kt(t):t()}}}]),e}(),Xt=function(){function e(){we(this,e)}return Te(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}(),Yt=function(){function e(t,n){we(this,e),Se(this,"queue",void 0),Se(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Vt(t,n.compress):new Xt}return Te(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}();Se(Yt,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Jt=[502,504],Qt=[429,503],$t=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];we(this,e),Se(this,"url",void 0),Se(this,"body",void 0),Se(this,"config",void 0),Se(this,"persistenceConfig",void 0),Se(this,"compress",void 0),Se(this,"timestamp",void 0),Se(this,"isClearQueuePending",!1),Se(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Te(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 Pt(e.url,e.body,t,e.compress)}),n,t).finally((function(){Wt((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(Gt(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i;else if(Wt((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)}),s={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 Wt((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)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{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}(),Zt="internal:hide",en="internal:error";function tn(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function nn(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var rn,on,an=(rn=new Map,on=new Map,{on:function(e,t){tn(rn,e,t)},before:function(e,t){tn(on,e,t)},off:function(e,t){nn(rn,e,t)},offBefore:function(e,t){nn(on,e,t)},emit:function(e,t){(on.get(e)||[]).concat(rn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){on.clear(),rn.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var sn=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||an.emit(Zt,e)};document.addEventListener("visibilitychange",sn),window.addEventListener("pagehide",sn)}var cn=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var ln=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(ln){var un=new Uint8Array(256),dn=un.length;cn={rng:function(){return dn>un.length-16&&(ln.randomFillSync(un),dn=0),un.slice(dn,dn+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":be(crypto))&&crypto.randomUUID;function hn(){return ze(cn,new Array(16),0)}function pn(e){return me(e).map((function(e){return String.fromCharCode(e)})).join("")}function fn(){return pn(hn())}var gn=/^[a-zA-Z0-9/+]+[=]+$/;function vn(e){return De(e)}function mn(e,t){return{pageUrn:En(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)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(a){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("")}(hn())}}function yn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function En(e){return"urn:li:page:".concat(e)}function bn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function wn(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 _n(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Tn(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i,r="sequenceNumber";try{i=window.indexedDB.open(r)}catch(e){return Promise.resolve(null)}return new Promise((function(o,a){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(r)||e.createObjectStore(r,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,c=s.transaction(r,"readwrite"),l=c.objectStore(r),u=l.get(1);u.onsuccess=function(){var i=u.result;if(i){if("read"===e)return o(i);if("update"!==e)return o(null);var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e];r>i&&(s[e]=r,c=!0)})),c){var h=l.put(s,1);h.onsuccess=function(){return o(null)},h.onerror=function(){a(h.error)}}}else{var p={sequenceNumber:0};n&&Object.keys(n).forEach((function(e){p[e]=0}));var f=l.add(p);f.onsuccess=function(){return o(0)},f.onerror=function(){a(f.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},i.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Sn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!At()||"undefined"==typeof Promise}function Cn(e,t,n,i){var r=["core-web-tracking:".concat(e)];null==i||i.forEach((function(e){return r.push(e)})),an.emit(en,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function In(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}var kn=function(){function e(t){we(this,e),Se(this,"heap",void 0),Se(this,"comparator",void 0),this.comparator=t,this.heap=[]}return Te(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=me(this.heap);return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]];this.heap[0]=t[0],this.heap[e-1]=t[1];for(var n=this.heap.pop(),i=0;2*i+1<this.heap.length;){var r=2*i+1,o=2*i+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[r])?o:r;if(!this.comparator(this.heap[a],this.heap[i]))break;var s=[this.heap[i],this.heap[a]];this.heap[a]=s[0],this.heap[i]=s[1],i=a}return n}},{key:"heapPush",value:function(e){this.heap.push(e);for(var t=this.heap.length-1;t>0;){var n=Math.floor((t-1)/2);if(!this.comparator(this.heap[t],this.heap[n]))break;var i=[this.heap[n],this.heap[t]];this.heap[t]=i[0],this.heap[n]=i[1],t=n}}}]),e}();var An=function(e){if(!On(e))return[];for(var t=[],n=0,i=Object.keys(e);n<i.length;n++){var r=i[n];"default"!==r&&t.push(r)}return t},xn=function(e,t){var n={},i=[];if(0===e.length)return[n,e];if(0===t.length)return[n,e];var r,o=ve(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transporterKeys,c=ge(a,Z);if(s&&s.length>0){var l,u=ve(s);try{for(u.s();!(l=u.n()).done;){var d,h=l.value;t.includes(h)?(null!==(d=n[h])&&void 0!==d||(n[h]=[]),n[h].push(c)):i.push(c)}}catch(e){u.e(e)}finally{u.f()}}else i.push(c)}}catch(e){o.e(e)}finally{o.f()}return[n,i]};var On=function(e){return e&&void 0!==e&&Object.keys(e).length>0},Ln=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},Rn="beacons";function Nn(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&xt()&&t&&n}function Pn(e,t,n,i,r){"control"!==i&&e.retryConfig&&Nn()&&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)}}))}(Rn);var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{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:Rn,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:Jt,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:Qt,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new Yt(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s;return At()?new $t(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Qt},n).send(a):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){Cn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Cn("retry:setup",e)}))}var Dn=function(){function e(t){we(this,e),Se(this,"host",void 0),this.host=t}return Te(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&&Pn(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){Cn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();xt()&&"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){Cn("retry:beacon",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;(!Array.isArray(t)||t.length>0)&&(Sn()?function(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 a=o[r];i.setRequestHeader(a,n.headers[a])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):Pt(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}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t;return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&Nn()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),Mn="undefined"!=typeof window&&"undefined"!=typeof document,Un=/JSESSIONID="?([^";]+)"?/,Fn="",Bn=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?Un:i;if(!Fn||Date.now()-Bn>n){var o=Mn&&document.cookie.match(r);Fn=o&&o[1]||"",Bn=Date.now()}return Fn}var Hn={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},jn=function(){function e(t){we(this,e),Se(this,"networkTransporter",void 0),Se(this,"inactive",void 0),Se(this,"mpName",void 0),Se(this,"endpoint",void 0),Se(this,"debug",void 0),this.networkTransporter=new Dn(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return Hn.prod.pattern.test(e)?t=Hn.prod.monitorEndpoint:Hn.eiValidate.pattern.test(e)?(n=!0,t=Hn.eiValidate.monitorEndpoint):Hn.ei.pattern.test(e)?t=Hn.ei.monitorEndpoint:(t=Hn.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Te(e,[{key:"fireFragment",value:function(e){var t;if(!this.inactive){var n={"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"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,me(t.failures)),e}),[]);[].concat(me(o),me(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader;i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}));var s={clientTrackingFailures:i,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function Gn(e){return"string"==typeof e}function Wn(e){return Gn(e)?e:e.topicName||e.eventName}function zn(e){return Gn(e)?e:e.eventName}var Kn,Vn,Xn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};we(this,e),Se(this,"host",void 0),Se(this,"cmoTransporter",void 0),Se(this,"clientMonitoringInstanceId",fn()),Se(this,"currentContext",{pageKey:ke,pageInstance:mn(ke)}),Se(this,"appState",{}),Se(this,"estimatedFragmentSize",0),Se(this,"fragmentSizeLimit",void 0),Se(this,"activeFragmentEvent",void 0),Se(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new jn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Jn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Te(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=ve(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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:zn(t),eventTopic:Wn(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(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0;var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent;i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Jn(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{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=Qn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Qn(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:fn(),memberId:0}}}}]),e}();function Yn(e){return Kn||(Kn=new Xn(e)),{getCurrentInstanceId:function(){return Kn.getCurrentInstanceId()},logEventGenerated:function(e){return Kn.logEventGenerated(e)},logEventReadyToSend:function(e){Kn.logEventReadyToSend(e)},logEventSent:function(e){Kn.logEventSent(e)},logPersistedEventSent:function(e,t){Kn.logEventSent(t,e)},logNetworkResponseCode:function(e){Kn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Kn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Kn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Kn.logFailedEvent(t,n,i,r,e)},flush:function(){Kn.flush()},destroy:function(){Kn=void 0},isDestroyed:function(){return void 0===Kn},setCurrentContext:function(e){Kn.setCurrentContext(e)},updateAppState:function(e){Kn.updateAppState(e)}}}function Jn(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 Qn(e){return Array.isArray(e)?pn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(gn)}(e)?atob(e):pn(vn(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"}(Vn||(Vn={}));var $n=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Zn="PageViewEvent",ei=function(){function e(t){var n,i,r,o=this;we(this,e),Se(this,"host",void 0),Se(this,"queue",void 0),Se(this,"preContextQueue",void 0),Se(this,"debounceTimer",void 0),Se(this,"unloadHandlers",void 0),Se(this,"maxQueueSize",void 0),Se(this,"flushDebounceTime",void 0),Se(this,"trackingEventListeners",[]),Se(this,"onHideHandler",(function(){o.forceFlush()})),Se(this,"networkTransporter",void 0),Se(this,"clientMonitoringConn",void 0),Se(this,"clientGlobalSequenceNumberCounter",void 0),Se(this,"clientTopicLocalSequenceNumberCountersMap",{}),Se(this,"isTimerRunning",void 0),Se(this,"trackingEndpoint",void 0),Se(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track";this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,an.on(Zt,this.onHideHandler),this.networkTransporter=new Dn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Yn(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return Te(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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logFailedEvent(Vn.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logPersistedFailedEvent(r,Vn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,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(Wn(e.id)));var n=this.host,i=n.api.Promise,r=n.batching;if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t);return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n;this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,an.off(Zt,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:mn(ke),pageKey:ke}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():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;Tn("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,$n.forEach((function(n){var i;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Cn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Tn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Cn("sequence-number:idb-update",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=bn(e.meta.context,this.host.api);return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={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(a,{clientBreadcrumbs:n}),a}},{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,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===Zn:e.eventName===Zn}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=e.meta.requestHeader||{referer:s.referrer,path:"".concat(a.pathname).concat(a.search)},f=p.referer,g=p.path,v=null;"string"!=typeof r&&null!==this.host.locale||(v=r);var m={interfaceLocale:v,pageKey:h,referer:f,path:g,isFlushOnCloseBrowserTabEnabled:!Sn()&&(xt()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled(),clientDeviceType:"DESKTOP",timeZoneOffsetMinutes:-1*(new Date).getTimezoneOffset()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:fn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=Wn(e.id);if($n.includes(E)){var b=this.clientTopicLocalSequenceNumberCountersMap[E];"number"==typeof b&&c(y,{clientTopicLocalSequenceNumber:b})}var w={header:c(y,e.meta.header||{}),requestHeader:c(m,e.meta.requestHeader||{})},_=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber;return _&&c(w.header,{clientMonitoringInstanceId:_,clientMonitoringInstanceEventNumber:T}),c(e.body,w)}},{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(0)}),{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(void 0,!0):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(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var r=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=r||i)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,r)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[]);if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3));var o,a,s=[],c=[];t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i);n.trigger(r,e.meta);var o=r.eventInfo.eventName;"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?s.push(r):c.push(r),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var a=Wn(e.id);$n.includes(a)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[a]&&n.clientTopicLocalSequenceNumberCountersMap[a]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(s.length+c.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,r="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(r)].join(", ");null==a||a.logFailedEvent(Vn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,s,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,c,void 0,o))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}();var ti,ni=function(){function e(t,n){we(this,e),this.clientBreadcrumbType=t,this.id=n}return Te(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(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL",e.SPONSORED_UPDATE_SERVED="SPONSORED_UPDATE_SERVED",e.GUIDE_ENTRYPOINT="GUIDE_ENTRYPOINT",e.GUIDE_FEEDBACK="GUIDE_FEEDBACK"}(ti||(ti={}));var ii=function(e){function t(){return we(this,t),ue(this,t,[ti.FEED_UPDATE_SERVED,fn()])}return pe(t,ni),Te(t)}(),ri=function(e){function t(){var e;return we(this,t),Se(de(e=ue(this,t,[ti.UNKNOWN,fn()])),"content",void 0),Se(de(e),"featureBreadcrumbType",void 0),e}return pe(t,ni),Te(t)}(),oi=function(e){function t(){return we(this,t),ue(this,t,[ti.SPONSORED_UPDATE_SERVED,fn()])}return pe(t,ni),Te(t)}();function ai(e,t){var n;switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new ii).builder;break;case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new oi).builder;break;case"proto.sdui.tracking.TrackingBreadcrumb":n=(new ri).builder;var i,r=e;try{if(void 0!==r.content.type)i=(new TextDecoder).decode(new Uint8Array(r.content.data));else{if(!(r.content instanceof Uint8Array))throw new Error("Invalid breadcrumb content type");i=(new TextDecoder).decode(r.content)}for(var o=null==e?void 0:e.breadcrumbType,a={content:JSON.parse(i),breadcrumbType:o},s=0,c=Object.entries(a);s<c.length;s++){var l=le(c[s],2),u=l[0],d=l[1];On(d)&&n[u](d)}return n.build()}catch(e){throw new Error("Error parsing breadcrumb content: ".concat(e))}break;default:throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."))}if(!n)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));for(var h in e){var p=e[h];null!=p&&n[h](p)}return n.build()}function si(e){var t,n=[],i=[],r=ve(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=ge(o,ee);if(i.push(s),a){var c=a.$type,l=ai(ge(a,te),c);n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}function ci(e){var t,n=new Set,i=[],r=ve(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName);n.has(a)||(n.add(a),i.push(o))}}catch(e){r.e(e)}finally{r.f()}var s=si(i);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function li(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,o=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi);if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=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 s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}var ui=Object.freeze({__proto__:null,voyagerTransporterConfig:{sponsored:{endpoint:"li/tscp/sct",batching:!1,disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}},default:{endpoint:"li/track",batching:{evenBatchEnabled:!0,maxSize:29},disableCompression:!1,retryConfig:{persist:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]},inMemory:{attemptLimit:4,statusCodes:[429,431,401,403,404,500,405,501,406,502,407,503,408,504,409,505,506,507,508,413,509,510,511]}}}}});function di(e){return"retryConfig"in e.host}function hi(e){return"location"in e.api}var pi;!function(){function e(t,n,i,r,o,a,s,c){var l,u,d,h;if(we(this,e),Se(this,"transporter",void 0),Se(this,"delegate",void 0),Se(this,"viewSpecs",void 0),Se(this,"transportConfig",void 0),Se(this,"dynamicTransporterSupportLixKey",void 0),Se(this,"domain",void 0),Se(this,"trackingAppName",void 0),Se(this,"dynamicTransporterSupportLixValue",void 0),Se(this,"currentContext",void 0),Se(this,"appState",void 0),Se(this,"referrer",void 0),Se(this,"previousAppContext",void 0),Se(this,"customTransporters",void 0),Se(this,"clientMonitoringConn",void 0),Se(this,"dynamicTransporterSupportEnabled",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=i,this.transportConfig=r,this.dynamicTransporterSupportLixKey=o,this.domain=a,this.trackingAppName=s,this.dynamicTransporterSupportLixValue=c,this.appState={},this.customTransporters={},this.transportConfig={},this.dynamicTransporterSupportEnabled=!1,o?this.dynamicTransporterSupportEnabled=function(e){return!(!e||"control"===e)}(null===(d=(h=t.host).__getLixTreatment)||void 0===d?void 0:d.call(h,o)):c&&(this.dynamicTransporterSupportEnabled=!!s&&c),this.dynamicTransporterSupportEnabled){var p=null==ui?void 0:ui["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];On(p)?this.transportConfig=p:this.transportConfig=r}if(n&&n.customTransporterHosts)for(var f in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,f)){var g=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[f]=new ei(this.transporter.host.api.assign(g,n.customTransporterHosts[f]))}if(this.dynamicTransporterSupportEnabled&&On(this.transportConfig))for(var v=0,m=Object.entries(this.transportConfig);v<m.length;v++){var y,E,b=le(m[v],2),w=b[0],_=b[1];_=ce(ce({},_),{},{endpoint:a&&null!==(y=_)&&void 0!==y&&y.endpoint?"".concat(Ln(a,null===(E=_)||void 0===E?void 0:E.endpoint)):"https://linkedin.com/li/track"});var T=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[w]=new ei(this.transporter.host.api.assign(T,_))}"enabled"===(null===(l=(u=t.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&hi(t.host)&&(this.clientMonitoringConn=Yn(t.host)),On(i)&&(this.viewSpecs=i)}Te(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){an.before(Zt,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){an.offBefore(Zt,e)}},{key:"checkAndEnablePersistentRetry",value:function(){di(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=di(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return bn(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,li(t),null==n?void 0:n.pageInstanceTrackingId);if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=bn(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(bn(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=yn(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),a}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-name]");if(i){var r=i.getAttribute("data-view-name");r&&t.push(r)}n=null==i?void 0:i.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-tracking-scope]");if(i){var r=i.getAttribute("data-view-tracking-scope");if(r)try{var o=JSON.parse(r);o&&o.length&&t.push.apply(t,me(o))}catch(e){Cn("getViewTrackingScope","Error parsing trackingScope ".concat(r))}}n=null==i?void 0:i.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,i=e.interactionType,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.verticalPosition,u=e.horizontalPosition,d=e.controlUrn,h=void 0===d?"":d,p=e.actionType,f=e.contentTrackingId,g=void 0===f?void 0:f,v=e.clientBreadcrumbs,m=void 0===v?[]:v,y=e.isShadowEvent,E=e.cooloffToken,b=e.testId,w=e.mediaStateInfo,_=r?this.getViewHierarchy(r):[],T=_.length>0?_:a;0!==T.length&&(!this.viewSpecs||null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==T[0]})))||console.warn("No viewHierarchy provided or found from element.");var S=c.length>0?c:this.getViewTrackingScope(r);if(this.dynamicTransporterSupportEnabled){var C=An(this.transportConfig),I=le(xn(S,C),2),k=I[0],A=I[1],x="GenericActionEvent",O={verticalPosition:l,horizontalPosition:u,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:E,mediaStateInfo:w};if(On(k)){for(var L=0,R=Object.entries(k);L<R.length;L++){var N=le(R[L],2),P=N[0],D=ci(N[1]),M=D.breadcrumbs,U=D.trackingScopes;this.fireEvent(x,ce(ce({},O),{},{trackingScopeHierarchy:{entries:U}}),{header:{viewHierarchy:T,testId:b},transporterKey:P},M,y)}if(0===A.length)return Promise.resolve(!0)}var F=ci(A),B=F.breadcrumbs,q=F.trackingScopes;return this.fireEvent(x,{verticalPosition:l,horizontalPosition:u,controlUrn:h,interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:q},mediaStateInfo:w},{header:{viewHierarchy:T,testId:b}},[].concat(me(m),me(B)),y)}var H=ci(S),j=H.breadcrumbs,G=H.trackingScopes;return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:u,controlUrn:h||"",interactionType:i,actionType:p,contentTrackingId:""===g?void 0:g,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:G},mediaStateInfo:w},{header:{viewHierarchy:T,testId:b}},[].concat(me(m),me(j)),y)}},{key:"fireImpression",value:function(e,t){var n,i=e.manualFireReason,r=e.targetView,o=e.viewHierarchy,a=void 0===o?[]:o,s=e.viewTrackingScope,c=void 0===s?[]:s,l=e.viewDurationInMilliseconds,u=void 0===l?0:l,d=e.contentViewFraction,h=void 0===d?1:d,p=e.width,f=void 0===p?-1:p,g=e.height,v=void 0===g?-1:g,m=e.verticalPosition,y=e.horizontalPosition,E=e.impressionTime,b=e.contentTrackingId,w=e.clientBreadcrumbs,_=void 0===w?[]:w,T=e.isShadowEvent,S=e.cooloffToken,C=e.testId,I=e.mediaStateInfo,k=r?this.getViewHierarchy(r):[],A=k.length>0?k:a;0!==A.length&&(!this.viewSpecs||null!==(n=this.viewSpecs)&&void 0!==n&&n.some((function(e){return e.viewName==A[0]})))||console.warn("No viewHierarchy provided or found from element.");var x=c.length>0?c:this.getViewTrackingScope(r);if(this.dynamicTransporterSupportEnabled){var O=An(this.transportConfig),L=le(xn(x,O),2),R=L[0],N=L[1],P="GenericImpressionEvent",D={viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:v,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:i,cooloffToken:S,mediaStateInfo:I},M={header:{viewHierarchy:A,testId:C},context:null==t?void 0:t.context};if(On(R)){for(var U=0,F=Object.entries(R);U<F.length;U++){var B=le(F[U],2),q=B[0],H=ci(B[1]),j=H.breadcrumbs,G=H.trackingScopes;this.fireEvent(P,ce(ce({},D),{},{trackingScopeHierarchy:{entries:G}}),ce(ce({},M),{},{transporterKey:q}),j,T)}if(0===N.length)return Promise.resolve(!0)}var W=ci(N),z=W.breadcrumbs,K=W.trackingScopes;return this.fireEvent(P,{viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:v,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:K},mediaStateInfo:I},M,[].concat(me(_),me(z)),T)}var V=ci(x),X=V.breadcrumbs,Y=V.trackingScopes,J={header:{viewHierarchy:A,testId:C},context:null==t?void 0:t.context};return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:v,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:i,cooloffToken:S,trackingScopeHierarchy:{entries:Y},mediaStateInfo:I},J,[].concat(me(_),me(X)),T)}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this;if(!t){var a=Wn(e),s=void 0===t?"undefined":null===t?"null":be(t),c='Firing tracking event "'.concat(a,'" with invalid body, you fired "').concat(s,'"');if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(Vn.MISSING_REQUIRED_PROPERTIES,e,c,l)}throw new Error(c)}var u=i||[];if(u.length>0){var d=(u=u.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return ni.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:d})}var h=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,r):this.generateEnvelope(e,t,n,r);return this.fireEnvelope(h)}},{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=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.generateEnvelope(e,t,n,r);return i.length>0?this.addBreadcrumbsToEnvelope(o,i):o}},{key:"transformBreadcrumb",value:function(e){try{if(On(e.content))return ce({id:e.id,clientBreadcrumbType:e.breadcrumbType},e.content)}catch(e){console.error("Error transforming breadcrumb:",e)}return e}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),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(Gn(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,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s=Wn(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(Vn.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return mn(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{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),an.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 yn((t||this.currentContext||{pageKey:ke}).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,n){var i="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:i,topicName:"InboundNavigationEvent"}:i;return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||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 a=i&&i.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n,i,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&bn(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},hi(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(i=this.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(r=this.host.api.document)||void 0===r?void 0:r.referrer:null===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}])}();!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(pi||(pi={}));var fi,gi,vi="otel-origin-jet-tag";!function(){function e(t,n){var i,r,o=this;we(this,e),Se(this,"core",void 0),Se(this,"protocol",void 0),Se(this,"throttleKeySet",new Set),Se(this,"config",void 0),Se(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),o.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t;var a=this.core.host.api.location.protocol;this.protocol=a.substring(0,a.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100,useOTel:null!==(r=null==n?void 0:n.useOTel)&&void 0!==r&&r},an.on(en,this.reportTransporterError)}Te(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,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=r.sduiScreenId,u=r.componentKey,d=e.message,h=e.name,p=e.stack,f=void 0===p?"":p,g=e.fileName,v=void 0===g?"":g,m=e.lineNumber,y=void 0===m?0:m,E=e.columnNumber,b=void 0===E?0:E,w=this.core.host,_=w.appId,T=w.appVersion,S=w.service,C=w.serviceInstance,I=w.treeID,k=void 0===I?"":I,A=w.api,x=A.Promise,O=A.location,L=O.host,R=O.pathname,N=O.search,P=O.hash,D=void 0===P?"":P;if(this.config.useOTel&&!i.includes(vi)&&an.emit(pi.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={};var M=new Map;Object.keys(c).forEach((function(e){M.set(e.toLowerCase(),c[e])})),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var U=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:_,e:{c:b,l:y,m:d,s:f,t:h,u:v},h:D,l:n.protocol,o:L,p:R,pageKey:e.pageKey,q:N,service:S,serviceInstance:C,serviceVersion:T,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))};if(this.config.throttleTime<0)return U();var F=(h+d+f+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(F)?x.resolve(!1):(this.throttleKeySet.add(F),setTimeout((function(){return n.throttleKeySet.delete(F)}),this.config.throttleTime),U())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),an.off(en,this.reportTransporterError)}}])}(),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",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(fi||(fi={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(gi||(gi={}));var mi,yi,Ei,bi,wi,_i,Ti,Si=(Se(Se(Se(Se(Se(Se(Se(Se(Se(Se($={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),Se(Se(Se(Se(Se(Se($,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Ci=-1,Ii=-2,ki=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Ai={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},xi={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Oi="pageLoadId does not exist",Li="rum token passed is invalid",Ri=new RegExp(/batch-(\d+)$|enabled$/),Ni=function(){function e(){we(this,e),Se(this,"userTimingEntries",[]),Se(this,"longTasks",[]),Se(this,"resourceTimingEntries",[]),Se(this,"cdnData",void 0)}return Te(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(Di),cdnData:this.cdnData}}}]),e}(),Pi=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Di(e){return Pi.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Mi(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};_i=Object.assign(Object.assign({},n),t),Ti=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(_i.root,n);var i=Ui(e,wi.All,(function(){return Ui(e,wi.Two,(function(){return Ui(e,wi.One)}))}));if(i){var r=Ki(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>_i.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>_i.maxNumberOfTries)return r;i.counter+=1;var a=me(t);a.splice(o,1);var s=Bi(a);if(i.visited.has(s))return r;Hi(a)&&Vi(a,n)&&(r.push(a),i.visited.set(s,!0),r=r.concat(e(a,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),Bi(i)}throw new Error("Selector was not found.")}function Ui(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=Wi(function(e){var t=e.getAttribute("id");return t&&_i.idName(t)?{name:"#"+$i(t,{isIdentifier:!0}),penalty:0}:null}(o))||Wi.apply(void 0,me(function(e){return Array.from(e.attributes).filter((function(e){return _i.attr(e.name,e.value)})).map((function(e){return{name:"["+$i(e.name,{isIdentifier:!0})+'="'+$i(e.value)+'"]',penalty:.5}}))}(o)))||Wi.apply(void 0,me(function(e){return Array.from(e.classList).filter(_i.className).map((function(e){return{name:"."+$i(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Wi(function(e){var t=e.tagName.toLowerCase();return _i.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=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===wi.All)s&&(e=e.concat(e.filter(Gi).map((function(e){return ji(e,s)}))));else if(t===wi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Gi).map((function(e){return ji(e,s)}))));else if(t===wi.One){var c=le(e=e.slice(0,1),1)[0];s&&Gi(c)&&(e=[ji(c,s)])}var l,u=ve(e);try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=_i.seedMinLength&&(i=Fi(r,n)))return 1;o=o.parentElement,a++};o&&o!==_i.root.parentElement&&!s(););return i||(i=Fi(r,n)),i}function Fi(e,t){var n=Ki(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=ve(t[0]);try{for(o.s();!(i=o.n()).done;){var a=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(a)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>_i.threshold)return t?t():null;var i,r=ve(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Hi(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Bi(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 qi(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Hi(e){switch(Ti.querySelectorAll(Bi(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Bi(e)));case 1:return!0;default:return!1}}function ji(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Gi(e){return"html"!==e.name&&!e.name.startsWith("#")}function Wi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(zi);return i.length>0?i:null}function zi(e){return null!=e}function Ki(e){return Array.from(e).sort((function(e,t){return qi(e)-qi(t)}))}function Vi(e,t){return Ti.querySelector(Bi(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(mi||(mi={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(yi||(yi={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(Ei||(Ei={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(bi||(bi={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(wi||(wi={}));var Xi=/[ -,\.\/:-@\[-\^`\{-~]/,Yi=/[ -,\.\/:-@\[\]\^`\{-~]/,Ji=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Qi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function $i(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),a="",s=0,c=e.length;s<c;){var l=e.charAt(s++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&s<c){var h=e.charCodeAt(s++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:s--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?Xi.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&&Yi.test(l)?"\\"+l:l;a+=d}return r&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Ji,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var Zi,er=[{strToFilter:"https://dms.licdn.com/playlist",excludeUrl:["https://dms.licdn.com/playlist/C4D05AQGiUFPvMk-NyQ/mp4-720p-30fp-crf28/0/1670518159491?e=1683741600&v=beta&t=3Wr_tdLLkQDX1kBQKEZW6NERypEqTi2mgZDDxFStjuI"],includeUrl:["https://media.licdn.com/dms/image/C4E0DAQF2IPL6XzFxlw/learning-public-crop_288_512/0/1593208644948?e=1681236000&v=beta&t=YpZr5ZaVoveJv_I6JKHTTZMsysttvKnT364PwDvjJHU"]},{strToFilter:"/sensorCollect/?action=reportMetrics",excludeUrl:["https://www.linkedin.com/sensorCollect/?action=reportMetrics","https://www.linkedin-ei.com/sensorCollect/?action=reportMetrics"],includeUrl:["https://www.linkedin.com/voyager/api/relationships/connectionsSummary/"]},{strToFilter:"/voyager/api/voyagerContentcreationDashGuiderPrompts",excludeUrl:["https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=test&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%C2%90b%C2%A9%C2%87%C3%A8%C3%A2By%C2%8798x%C2%B0%03%C2%9Ft","https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=Subestimar%20la%20necesidad%20de%20la%20estrategia%20de%20comunicaci%C3%B3n%20es%20un%20peligroso%20error%20que%20comenten%20constantemente%20las%20empresas&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%5C%C3%99t%C2%A2%1EZIM%C2%A4%09%13%27%C2%B91C%15"],includeUrl:["https://www.linkedin.com/voyager/api/voyager","https://www.linkedin.com/voyager/api/voyagerContentcreationDashSharebox?action=fetchShareboxWithDraft&decorationId=com.linkedin.voyager.dash.deco.contentcreation.sharebox-26"]},{strToFilter:"/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat",excludeUrl:["https://www.linkedin.com/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"/realtime/connect?rc=1",excludeUrl:["https://www.linkedin.com/realtime/connect?rc=1"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"li/tscp/sct",excludeUrl:["https://www.linkedin.com/li/tscp/sct"]}];function tr(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 nr(e){var t=e||performance;return Math.round(t.now())}function ir(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Mi(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=ir(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function rr(e,t,n){var i=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,r=e.duration;i.push({entryType:"MEASURE",name:t,startTime:n,duration:r})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,r=e.duration;i.push({entryType:"MARK",name:t,startTime:n,duration:r})})),n&&(e.clearMeasures(),e.clearMarks())),i}function or(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var ar=function(){function e(t){we(this,e),Se(this,"hostApis",void 0),Se(this,"hostnameProperties",void 0),Se(this,"usedHostnames",void 0),Se(this,"abortController",void 0),Se(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 Te(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return _n(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=wn(_n(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(a),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,(Zi=Zi||i.createElement("a")).href=n,Zi.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}));this.pendingPromises.add(a)}}}},{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}();!function(){var e=function(){function e(){we(this,e)}return Te(e,null,[{key:"x64Add",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Multiply",value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:"x64Rotl",value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}},{key:"x64LeftShift",value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}},{key:"x64Xor",value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:"x64Fmix",value:function(t){return t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[4283543511,3981806797]),t=e.x64Xor(t,[0,t[0]>>>1]),t=e.x64Multiply(t,[3301882366,444984403]),e.x64Xor(t,[0,t[0]>>>1])}},{key:"x64hash128",value:function(t,n){n=n||0;var i,r=(t=t||"").length%16,o=t.length-r,a=[0,n],s=[0,n],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167];for(i=0;i<o;i+=16)c=[255&t.charCodeAt(i+4)|(255&t.charCodeAt(i+5))<<8|(255&t.charCodeAt(i+6))<<16|(255&t.charCodeAt(i+7))<<24,255&t.charCodeAt(i)|(255&t.charCodeAt(i+1))<<8|(255&t.charCodeAt(i+2))<<16|(255&t.charCodeAt(i+3))<<24],l=[255&t.charCodeAt(i+12)|(255&t.charCodeAt(i+13))<<8|(255&t.charCodeAt(i+14))<<16|(255&t.charCodeAt(i+15))<<24,255&t.charCodeAt(i+8)|(255&t.charCodeAt(i+9))<<8|(255&t.charCodeAt(i+10))<<16|(255&t.charCodeAt(i+11))<<24],c=e.x64Multiply(c,u),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c),a=e.x64Rotl(a,27),a=e.x64Add(a,s),a=e.x64Add(e.x64Multiply(a,[0,5]),[0,1390208809]),l=e.x64Multiply(l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e.x64Xor(s,l),s=e.x64Rotl(s,31),s=e.x64Add(s,a),s=e.x64Add(e.x64Multiply(s,[0,5]),[0,944331445]);switch(c=[0,0],l=[0,0],r){case 15:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+14)],48));case 14:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+13)],40));case 13:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+12)],32));case 12:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+11)],24));case 11:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+10)],16));case 10:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(i+9)],8));case 9:l=e.x64Xor(l,[0,t.charCodeAt(i+8)]),l=e.x64Multiply(l,d),l=e.x64Rotl(l,33),l=e.x64Multiply(l,u),s=e.x64Xor(s,l);case 8:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+7)],56));case 7:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+6)],48));case 6:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+5)],40));case 5:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+4)],32));case 4:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+3)],24));case 3:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+2)],16));case 2:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(i+1)],8));case 1:c=e.x64Xor(c,[0,t.charCodeAt(i)]),c=e.x64Multiply(c,u),c=e.x64Rotl(c,31),c=e.x64Multiply(c,d),a=e.x64Xor(a,c)}return a=e.x64Xor(a,[0,t.length]),s=e.x64Xor(s,[0,t.length]),a=e.x64Add(a,s),s=e.x64Add(s,a),a=e.x64Fmix(a),s=e.x64Fmix(s),a=e.x64Add(a,s),s=e.x64Add(s,a),("00000000"+(a[0]>>>0).toString(16)).slice(-8)+("00000000"+(a[1]>>>0).toString(16)).slice(-8)+("00000000"+(s[0]>>>0).toString(16)).slice(-8)+("00000000"+(s[1]>>>0).toString(16)).slice(-8)}}]),e}(),t=function(){function t(){we(this,t),this.components=[{key:"webrtc",getData:t.webRtcKey,shouldEnforceDataLimit:!0,dataLimit:1e3},{key:"enumerateDevices",getData:t.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:"appName",getData:t.appNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"tsSeed",getData:t.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"appVersion",getData:t.appVersionKey,shouldEnforceDataLimit:!0,dataLimit:300},{key:"appCodeName",getData:t.appCodeNameKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"location",getData:t.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"javascripts",getData:t.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:"platform",getData:t.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:t.productKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"productSub",getData:t.productSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"cpuClass",getData:t.cpuClassKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"oscpu",getData:t.oscpuKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"hardwareConcurrency",getData:t.hardwareConcurrencyKey,alias:"numOfCores",shouldEnforceDataLimit:!0,dataLimit:100},{key:"deviceMemory",getData:t.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendor",getData:t.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"vendorSub",getData:t.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"language",getData:t.languageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezoneOffset",getData:t.timezoneOffset,shouldEnforceDataLimit:!0,dataLimit:100},{key:"timezone",getData:t.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:t.UserAgent,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"webdriver",getData:t.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:"doNotTrack",getData:t.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:t.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"colorDepth",getData:t.colorDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelDepth",getData:t.pixelDepthKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:t.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenResolution",getData:t.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"screenOrientation",getData:t.screenOrientationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"availableScreenResolution",getData:t.availableScreenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"sessionStorage",getData:t.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"localStorage",getData:t.localStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"indexedDb",getData:t.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"addBehavior",getData:t.addBehaviorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:t.openDatabaseKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"canvas",getData:t.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"webgl",getData:t.webglKey,shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:t.signalsKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"touchSupport",getData:t.touchSupportKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"networkInfo",getData:t.networkInfoKey,shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:t.batteryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"audio",getData:t.audioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"automation",getData:t.automationKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:t.pluginsComponent,shouldEnforceDataLimit:!0,dataLimit:17e3},{key:"mimetyps",getData:t.mimetypesComponent,shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:t.jsFontsKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:"fontsFlash",getData:t.flashFontsKey,shouldEnforceDataLimit:!0,dataLimit:100}]}return Te(t,[{key:"getFeatures",value:function(e,t){if("function"==typeof e){if(!t)return e({error:"Options not provided"});var n={data:{latency:{acq_time:{}},errors:{}}},i=Date.now(),r={},o=0,a=0;this.components.forEach((function(s){if(!t.excludes[s.key]){var c=s.key;void 0!==s.alias&&null!==s.alias&&s.alias.length>0&&(c=s.alias),o++;var l=function(){r[c]=Date.now();try{s.getData((function(t){if(!1!==s.shouldEnforceDataLimit){var l=s.hasOwnProperty("dataLimit")&&"number"==typeof s.dataLimit?s.dataLimit:1e3,u=JSON.stringify(t).length;u>l&&(n.data.errors[c]="Exceeded current data limit:"+l+" Data length for:"+c+" was found to be:"+u,t={})}n.data[c]=t,n.data.latency.acq_time[c]=Date.now()-r[c],++a>=o&&(n.data.latency.acq_time.allFeatures=Date.now()-i,n.data.allFeaturesCollectionAt=Date.now(),e(n.data,!0))}),t)}catch(e){n.data.errors[c]=String(e)}};"function"==typeof window.requestIdleCallback&&!1!==t.useRequestIdleCallBack?window.requestIdleCallback(l):l()}})),n.data.latency.acq_time.allFeatures=Date.now()-i,e(n.data,!1)}}}],[{key:"each",value:function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach)e.forEach(t);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t(e[n],n,e);else for(var r in e)e.hasOwnProperty(r)&&t(e[r],r,e)}},{key:"map",value:function(e,n){var i=[];return null==e?i:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,r){i.push(n(e,t,r))})),i)}},{key:"getIPs",value:function(e,t){var n={},i=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{optional:[{RtpDataChannels:!0}]}),r=function(e){if(null!==e)try{var t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(e)[1];n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0;var e=i.localDescription;null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||r(e)})),t(Object.keys(n))}};i.onicecandidate=function(e){e.candidate&&r(e.candidate.candidate)},i.onicegatheringstatechange=function(e){"complete"===i.iceGatheringState&&a()},i.createDataChannel("bl");try{i.createOffer().then((function(e){i.setLocalDescription(e)}))}catch(e){i.createOffer((function(e){i.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:"automationKey",value:function(e,n){if(t.getHasLiedBrowser())e("undetected, fake browser");else{var i=t.getBrowserNameAndVersion().split(" ")[0];"Chrome"!==i||!0!==navigator.webdriver?"Firefox"===i&&window.document.documentElement.getAttribute("webdriver")||"_Selenium_IDE_Recorder"in window||"__webdriver_script_fn"in document?e("Selenium"):window.callPhantom||window._phantom?e("PhantomJS"):e(n.NOT_AVAILABLE):e("Selenium")}}},{key:"webRtcKey",value:function(e,n){try{t.getIPs(n,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}},{key:"enumerateDevicesKey",value:function(e,n){if(!t.isEnumerateDevicesSupported())return e(n.NOT_AVAILABLE);navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){var t={};return t.id=e.deviceId,t.gid=e.groupId,t.kind=e.kind,t.label=e.label,t})))})).catch((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices}},{key:"audioKey",value:function(e,n){var i=n.audio;if(i.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED);var r=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==r)return e(n.NOT_AVAILABLE);var o=new r(1,44100,44100),a=o.createOscillator();a.type="triangle",a.frequency.setValueAtTime(1e4,o.currentTime);var s=o.createDynamicsCompressor();t.each([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){void 0!==s[e[0]]&&"function"==typeof s[e[0]].setValueAtTime&&s[e[0]].setValueAtTime(e[1],o.currentTime)})),a.connect(s),s.connect(o.destination),a.start(0),o.startRendering();var c=setTimeout((function(){return o.oncomplete=function(){},o=null,e("audioTimeout")}),i.timeout);o.oncomplete=function(t){var n;try{clearTimeout(c),n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString(),a.disconnect(),s.disconnect()}catch(t){return void e(t)}e(n)}}},{key:"UserAgent",value:function(e){e(navigator.userAgent)}},{key:"webdriver",value:function(e,t){e(void 0===navigator.webdriver||null===navigator.webdriver?t.NOT_AVAILABLE:navigator.webdriver)}},{key:"languageKey",value:function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)}},{key:"colorDepthKey",value:function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)}},{key:"deviceMemoryKey",value:function(e,t){var n=navigator.deviceMemory||t.NOT_AVAILABLE;n!==t.NOT_AVAILABLE&&(n+=" GB"),e(n)}},{key:"pixelDepthKey",value:function(e,t){e(window.screen.pixelDepth||t.NOT_AVAILABLE)}},{key:"pixelRatioKey",value:function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)}},{key:"screenResolutionKey",value:function(e,n){e(t.getScreenResolution(n))}},{key:"screenOrientationKey",value:function(e,t){if(t.screen.detectScreenOrientation){var n={};n.Enabled=void 0!==screen.orientation,n.Orientation=screen.msOrientation||screen.mozOrientation||(screen.orientation||{}).type,e(n)}else e(t.EXCLUDED)}},{key:"getScreenResolution",value:function(){return{w:window.screen.width,h:window.screen.height}}},{key:"availableScreenResolutionKey",value:function(e,n){e(t.getAvailableScreenResolution(n))}},{key:"getAvailableScreenResolution",value:function(e){return window.screen.availWidth&&window.screen.availHeight?{w:window.screen.availWidth,h:window.screen.availHeight}:e.NOT_AVAILABLE}},{key:"timezoneOffset",value:function(e){e((new Date).getTimezoneOffset()/60)}},{key:"timezone",value:function(e,t){window.Intl&&window.Intl.DateTimeFormat?e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone):e(t.NOT_AVAILABLE)}},{key:"sessionStorageKey",value:function(e,n){e(t.hasSessionStorage(n))}},{key:"localStorageKey",value:function(e,n){e(t.hasLocalStorage(n))}},{key:"indexedDbKey",value:function(e,n){e(t.hasIndexedDB(n))}},{key:"addBehaviorKey",value:function(e){e(!(!document.body||!document.body.addBehavior))}},{key:"openDatabaseKey",value:function(e){e(!!window.openDatabase)}},{key:"cpuClassKey",value:function(e,n){e(t.getNavigatorCpuClass(n))}},{key:"oscpuKey",value:function(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}},{key:"appNameKey",value:function(e,t){e(navigator.appName||t.NOT_AVAILABLE)}},{key:"appVersionKey",value:function(e,t){e(navigator.appVersion||t.NOT_AVAILABLE)}},{key:"appCodeNameKey",value:function(e,t){e(navigator.appCodeName||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date.now())}},{key:"platformKey",value:function(e,n){e(t.getNavigatorPlatform(n))}},{key:"productKey",value:function(e,t){e(navigator.product||t.NOT_AVAILABLE)}},{key:"productSubKey",value:function(e,t){e(navigator.productSub||t.NOT_AVAILABLE)}},{key:"vendorKey",value:function(e,t){e(navigator.vendor||t.NOT_AVAILABLE)}},{key:"vendorSubKey",value:function(e,t){e(navigator.vendorSub||t.NOT_AVAILABLE)}},{key:"doNotTrackKey",value:function(e,n){e(t.getDoNotTrack(n))}},{key:"incognitoKey",value:function(e,n){var i=t.getBrowserNameAndVersion().split(" "),r=i[0],o=i[1],a=n.NOT_AVAILABLE;if("Chrome"===r)if(parseInt(o)<=74){var s=window.RequestFileSystem||window.webkitRequestFileSystem;s?s(window.TEMPORARY,100,(function(t){e(!1)}),(function(t){e(!0)})):e(a)}else"storage"in navigator&&"estimate"in navigator.storage?navigator.storage.estimate().then((function(t){var n=t.quota;e(a=n<125829120)})):e(a);else if("Safari"===r){if(a=!1,window.safariIncognito)a=!0;else{try{window.openDatabase(null,null,null,null)}catch(e){a=!0}try{window.localStorage.setItem("test",1)}catch(e){a=!0}}void 0===a&&(a=!1,window.localStorage.removeItem("test")),e(a)}else if("Firefox"===r){var c=indexedDB.open("test");c.onerror=function(){e(!0)},c.onsuccess=function(){e(!1)}}else e("IE"===r||"EDGE"===r?!window.indexedDB&&(window.PointerEvent||window.MSPointerEvent):a)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator.userAgent,n=t.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i.test(n[1])?"IE "+((e=/\brv[ :]+(\d+)/g.exec(t)||[])[1]||""):"Chrome"===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e.slice(1).join(" ").replace("OPR","Opera"):(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(e=t.match(/version\/(\d+)/i))&&n.splice(1,1,e[1]),n.join(" "))}},{key:"canvasKey",value:function(e,n){t.isCanvasSupported()?e(t.getCanvasFp(n)):e(n.NOT_AVAILABLE)}},{key:"webglKey",value:function(e,n){t.isWebGlSupported()?e(t.getWebglFp(n)):e(n.NOT_AVAILABLE)}},{key:"javascriptsKey",value:function(e,t){if(void 0===document.scripts||null===document.scripts)return e(t.NOT_AVAILABLE);e([])}},{key:"locationKey",value:function(e,t){e({hash:location.hash||t.NOT_AVAILABLE,host:location.host||t.NOT_AVAILABLE,hostname:location.hostname||t.NOT_AVAILABLE,href:location.href||t.NOT_AVAILABLE,origin:location.origin||t.NOT_AVAILABLE,pathname:location.pathname||t.NOT_AVAILABLE,port:location.port||t.NOT_AVAILABLE,protocol:location.protocol||t.NOT_AVAILABLE})}},{key:"signalsKey",value:function(e){e(t.getSignals())}},{key:"getSignals",value:function(){var e={adBlockInstalled:function(){return t.getAdBlock()},liedLanguages:function(){return t.getHasLiedLanguages()},liedResolution:function(){return t.getHasLiedResolution()},liedOS:function(){return t.getHasLiedOs()},liedBrowser:function(){return t.getHasLiedBrowser()}},n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];n[i]=r(i)}return n}},{key:"flashFontsKey",value:function(e,n){return t.hasSwfObjectLoaded()?t.hasMinFlashInstalled()?n.fonts.swfPath?void t.loadSwfAndDetectFonts((function(t){e(t)}),n):e("missing options.fonts.swfPath"):e("flash not installed"):e("swf object not loaded")}},{key:"jsFontsKey",value:function(t,n){var i=["monospace","sans-serif","serif"],r=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];void 0!==n.fonts&&void 0!==n.fonts.extendedJsFonts&&(r=r.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(r=r.concat(n.fonts.userDefinedFonts)),r=r.filter((function(e,t){return r.indexOf(e)===t}));var o=document.getElementsByTagName("body")[0],a=document.createElement("div"),s=document.createElement("div"),c={},l={},u=function(){var e=document.createElement("span");return e.style.position="absolute",e.style.left="-9999px",e.style.fontSize="72px",e.style.fontStyle="normal",e.style.fontWeight="normal",e.style.letterSpacing="normal",e.style.lineBreak="auto",e.style.lineHeight="normal",e.style.textTransform="none",e.style.textAlign="left",e.style.textDecoration="none",e.style.textShadow="none",e.style.whiteSpace="normal",e.style.wordBreak="normal",e.style.wordSpacing="normal",e.textContent="mmmmmmmmmmlli",e},d=function(e,t){var n=u();return n.style.fontFamily="'"+e+"',"+t,n},h=function(e){for(var t=!1,n=0;n<i.length;n++)if(t=e[n].offsetWidth!==c[i[n]]||e[n].offsetHeight!==l[i[n]])return t;return t},p=function(){for(var e=[],t=0,n=i.length;t<n;t++){var r=u();r.style.fontFamily=i[t],a.appendChild(r),e.push(r)}return e}();o.appendChild(a);for(var f=0,g=i.length;f<g;f++)c[i[f]]=p[f].offsetWidth,l[i[f]]=p[f].offsetHeight;var v=function(){for(var e={},t=0,n=r.length;t<n;t++){for(var o=[],a=0,c=i.length;a<c;a++){var l=d(r[t],i[a]);s.appendChild(l),o.push(l)}e[r[t]]=o}return e}();o.appendChild(s);for(var m=[],y=0,E=r.length;y<E;y++)h(v[r[y]])&&m.push(r[y]);o.removeChild(s),o.removeChild(a);var b={};b.fontsHash=e.x64hash128(m.join(),23),n.fonts.hashOnly||(b.lists=m),t(b)}},{key:"mimetypesComponent",value:function(e,t){if(void 0!==navigator.mimeTypes&&null!==navigator.mimeTypes){for(var n=navigator.mimeTypes,i=[],r=0;r<n.length;r++){var o={};o.type=n[r].type,o.suffixes=n[r].suffixes,o.description=n[r].description,i.push(o)}e(i)}else e(t.NOT_AVAILABLE)}},{key:"pluginsComponent",value:function(e,n){t.isIE()?n.plugins.excludeIE?e(n.EXCLUDED):e(t.getIEPlugins(n)):e(t.getRegularPlugins(n))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator.plugins||null===navigator.plugins)return e.NOT_AVAILABLE;for(var n=[],i=0,r=navigator.plugins.length;i<r;i++)navigator.plugins[i]&&n.push(navigator.plugins[i]);return n.length>0&&t.pluginsShouldBeSorted(e)&&(n=n.sort((function(e,t){return e.name>t.name?1:e.name<t.name?-1:0}))),t.map(n,(function(e){var n=t.map(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,n]}))}},{key:"getIEPlugins",value:function(e){var n=[];return Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window?n=t.map(["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"],(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e.ERROR}})):n.push(e.NOT_AVAILABLE),navigator.plugins&&(n=n.concat(t.getRegularPlugins(e))),n}},{key:"pluginsShouldBeSorted",value:function(e){for(var t=!1,n=0,i=e.plugins.sortPluginsFor.length;n<i;n++){var r=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(r)){t=!0;break}}return t}},{key:"batteryKey",value:function(e,t){void 0!==navigator.getBattery?navigator.getBattery().then((function(t){var n={};n.level=t.level,n.charging=t.charging,n.chargingTime=t.chargingTime,n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}},{key:"networkInfoKey",value:function(e,t){var n=navigator.connection;e(void 0!==n?{downlink:n.downlink,downlinkMax:n.downlinkMax,type:n.type,effectiveType:n.effectiveType,rtt:n.rtt,saveData:n.saveData}:t.NOT_AVAILABLE)}},{key:"touchSupportKey",value:function(e){e(t.getTouchSupport())}},{key:"hardwareConcurrencyKey",value:function(e,n){e(t.getHardwareConcurrency(n))}},{key:"hasSessionStorage",value:function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}}},{key:"hasLocalStorage",value:function(e){try{return!!window.localStorage}catch(t){return e.ERROR}}},{key:"hasIndexedDB",value:function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}}},{key:"getHardwareConcurrency",value:function(e){return navigator.hardwareConcurrency?navigator.hardwareConcurrency:e.NOT_AVAILABLE}},{key:"getNavigatorCpuClass",value:function(e){return navigator.cpuClass||e.NOT_AVAILABLE}},{key:"getNavigatorPlatform",value:function(e){return navigator.platform?navigator.platform:e.NOT_AVAILABLE}},{key:"getDoNotTrack",value:function(e){return navigator.doNotTrack?navigator.doNotTrack:navigator.msDoNotTrack?navigator.msDoNotTrack:window.doNotTrack?window.doNotTrack:e.NOT_AVAILABLE}},{key:"getTouchSupport",value:function(){var e,t=0;void 0!==navigator.maxTouchPoints?t=navigator.maxTouchPoints:void 0!==navigator.msMaxTouchPoints&&(t=navigator.msMaxTouchPoints);try{document.createEvent("TouchEvent"),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:"ontouchstart"in window}}},{key:"getCanvasFp",value:function(t){var n={},i=document.createElement("canvas");i.width=2e3,i.height=200,i.style.display="inline";var r=i.getContext("2d");return r.rect(0,0,10,10),r.rect(2,2,6,6),n.canvasWinding=!1===r.isPointInPath(5,5,"evenodd")?"yes":"no",r.textBaseline="alphabetic",r.fillStyle="#f60",r.fillRect(125,1,62,20),r.fillStyle="#069",t.dontUseFakeFontInCanvas?r.font="11pt Arial":r.font="11pt no-real-font-123",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),r.fillStyle="rgba(102, 204, 0, 0.2)",r.font="18pt Arial",r.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),r.globalCompositeOperation="multiply",r.fillStyle="rgb(255,0,255)",r.beginPath(),r.arc(50,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(0,255,255)",r.beginPath(),r.arc(100,50,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,255,0)",r.beginPath(),r.arc(75,100,50,0,2*Math.PI,!0),r.closePath(),r.fill(),r.fillStyle="rgb(255,0,255)",r.arc(75,75,75,0,2*Math.PI,!0),r.arc(75,75,25,0,2*Math.PI,!0),r.fill("evenodd"),i.toDataURL&&(n.canvasHash=e.x64hash128(i.toDataURL(),23)),n}},{key:"getWebglFp",value:function(n){var i,r=function(e){return i.clearColor(0,0,0,1),i.enable(i.DEPTH_TEST),i.depthFunc(i.LEQUAL),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(i=t.getWebglCanvas()))return null;var o={},a=i.createBuffer();i.bindBuffer(i.ARRAY_BUFFER,a);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);i.bufferData(i.ARRAY_BUFFER,s,i.STATIC_DRAW),a.itemSize=3,a.numItems=3;var c=i.createProgram(),l=i.createShader(i.VERTEX_SHADER);i.shaderSource(l,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),i.compileShader(l);var u=i.createShader(i.FRAGMENT_SHADER);i.shaderSource(u,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),i.compileShader(u),i.attachShader(c,l),i.attachShader(c,u),i.linkProgram(c),i.useProgram(c),c.vertexPosAttrib=i.getAttribLocation(c,"attrVertex"),c.offsetUniform=i.getUniformLocation(c,"uniformOffset"),i.enableVertexAttribArray(c.vertexPosArray),i.vertexAttribPointer(c.vertexPosAttrib,a.itemSize,i.FLOAT,!1,0,0),i.uniform2f(c.offsetUniform,1,1),i.drawArrays(i.TRIANGLE_STRIP,0,a.numItems);try{o.webglHash=e.x64hash128(i.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o;o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=i.getSupportedExtensions()||[],o["webgl aliased line width range"]=r(i.getParameter(i.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=r(i.getParameter(i.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=i.getParameter(i.ALPHA_BITS),o["webgl antialiasing"]=i.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=i.getParameter(i.BLUE_BITS),o["webgl depth bits"]=i.getParameter(i.DEPTH_BITS),o["webgl green bits"]=i.getParameter(i.GREEN_BITS),o["webgl max anisotropy"]=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);return 0===n&&(n=2),n}return null}(i),o["webgl max combined texture image units"]=i.getParameter(i.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=i.getParameter(i.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=i.getParameter(i.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=i.getParameter(i.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=i.getParameter(i.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=i.getParameter(i.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=i.getParameter(i.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=i.getParameter(i.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=i.getParameter(i.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=i.getParameter(i.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=r(i.getParameter(i.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=i.getParameter(i.RED_BITS),o["webgl renderer"]=i.getParameter(i.RENDERER),o["webgl shading language version"]=i.getParameter(i.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=i.getParameter(i.STENCIL_BITS),o["webgl vendor"]=i.getParameter(i.VENDOR),o["webgl version"]=i.getParameter(i.VERSION);try{var d=i.getExtension("WEBGL_debug_renderer_info");d&&(o["webgl unmasked vendor"]=i.getParameter(d.UNMASKED_VENDOR_WEBGL),o["webgl unmasked renderer"]=i.getParameter(d.UNMASKED_RENDERER_WEBGL))}catch(e){}return i.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(r){t.each(["precision","rangeMin","rangeMax"],(function(t){var a=i.getShaderPrecisionFormat(i[n+"_SHADER"],i[r+"_"+e])[t];"precision"!==t&&(t="precision "+t);var s=["webgl ",n.toLowerCase()," shader ",r.toLowerCase()," ",e.toLowerCase()," ",t].join("");o[s]=a}))}))}))})),o):o}},{key:"getWebglVendorAndRenderer",value:function(){try{var e=t.getWebglCanvas(),n=e.getExtension("WEBGL_debug_renderer_info");return e.getParameter(n.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(n.UNMASKED_RENDERER_WEBGL)}catch(e){return null}}},{key:"getAdBlock",value:function(){var e=document.createElement("div");e.innerHTML="&nbsp;",e.className="adsbox";var t=!1;try{document.body.appendChild(e),t=0===document.getElementsByClassName("adsbox")[0].offsetHeight,document.body.removeChild(e)}catch(e){t=!1}return t}},{key:"getHasLiedLanguages",value:function(){if(void 0!==navigator.languages)try{if(navigator.languages[0].substr(0,2)!==navigator.language.substr(0,2))return!0}catch(e){return!0}return!1}},{key:"getHasLiedResolution",value:function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight}},{key:"getHasLiedOs",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.oscpu,i=navigator.platform.toLowerCase();if(e=t.indexOf("windows phone")>=0?"Windows Phone":t.indexOf("win")>=0?"Windows":t.indexOf("android")>=0?"Android":t.indexOf("linux")>=0||t.indexOf("cros")>=0?"Linux":t.indexOf("iphone")>=0||t.indexOf("ipad")>=0?"iOS":t.indexOf("mac")>=0?"Mac":"Other",("ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0)&&"Windows Phone"!==e&&"Android"!==e&&"iOS"!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase()).indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e)return!0;if(n.indexOf("linux")>=0&&"Linux"!==e&&"Android"!==e)return!0;if(n.indexOf("mac")>=0&&"Mac"!==e&&"iOS"!==e)return!0;if((-1===n.indexOf("win")&&-1===n.indexOf("linux")&&-1===n.indexOf("mac"))!=("Other"===e))return!0}return i.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(i.indexOf("linux")>=0||i.indexOf("android")>=0||i.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(i.indexOf("mac")>=0||i.indexOf("ipad")>=0||i.indexOf("ipod")>=0||i.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(i.indexOf("win")<0&&i.indexOf("linux")<0&&i.indexOf("mac")<0&&i.indexOf("iphone")<0&&i.indexOf("ipad")<0)!=("Other"===e)||void 0===navigator.plugins&&"Windows"!==e&&"Windows Phone"!==e}},{key:"getHasLiedBrowser",value:function(){var e,t=navigator.userAgent.toLowerCase(),n=navigator.productSub;if(("Chrome"==(e=t.indexOf("firefox")>=0?"Firefox":t.indexOf("opera")>=0||t.indexOf("opr")>=0?"Opera":t.indexOf("chrome")>=0?"Chrome":t.indexOf("safari")>=0?"Safari":t.indexOf("trident")>=0?"Internet Explorer":"Other")||"Safari"===e||"Opera"===e)&&"20030107"!==n)return!0;var i,r=eval.toString().length;if(37===r&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===r&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===r&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(t){try{t.toSource(),i=!0}catch(t){i=!1}}return i&&"Firefox"!==e&&"Other"!==e}},{key:"isCanvasSupported",value:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))}},{key:"isWebGlSupported",value:function(){if(!t.isCanvasSupported())return!1;var e=t.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e}},{key:"isIE",value:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))}},{key:"hasSwfObjectLoaded",value:function(){return void 0!==window.swfobject}},{key:"hasMinFlashInstalled",value:function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")}},{key:"addFlashDivNode",value:function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,n){window.___fp_swf_loaded=function(t){e(t)};var i=n.fonts.swfContainerId;t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,i,"1","1","9.0.0",!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:"always",menu:"false"},{})}},{key:"getWebglCanvas",value:function(){var e=document.createElement("canvas"),t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}return t||(t=null),t}}]),t}(),n={getItem:function(e){var t=this.getCookieString().match(this._cookieRegEx(e));return t?t[1].replace(/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t<e.length;t++){var n=e[t].split("=");if(n.length>1&&"bcookie"===n[0]){var i=n[n.length-1];return i.substring(2,i.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain(),r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/";if(n){var o=["".concat(e,"=").concat(t,"; path=").concat(r,"; secure=true")];"string"==typeof i&&i.length>0&&o.push("domain="+i),o.push("expires="+(n instanceof Date?n.toUTCString():n)),document.cookie=o.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0)),this.setItem(e,"",new Date(0),"");var t=this.getDomain().split(".");t.length>2&&(t=t.slice(t.length-2));var n=t.join(".");this.setItem(e,"",new Date(0),n)},_cookieRegEx:function(e){return new RegExp(e+"=([^;]*)")},getCookieString:function(){return document.cookie},getDomain:function(){return window.location?window.location.hostname:""}},r="HUMAN",o="DFP_WEB",a="RECAPTCHA_V3_WEB";function s(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,i=n?n.querySelector("#"+e):document.getElementById(e);if(i){var r=i.firstChild.nodeValue;if(t&&i.parentNode.removeChild(i),r)try{return JSON.parse(r)}catch(e){return}}}function c(e,t,n){var i=new XMLHttpRequest,r=n?"https://www.linkedin.com":"https://www.linkedin-ei.com";r+=String(t),i.open("POST",r),i.setRequestHeader("Content-Type","application/json"),i.send(e)}function l(e){var t=document.getElementsByClassName(e);return void 0!==t&&t.length>=1}var u=function(){function e(){we(this,e)}return Te(e,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0,r=e.length;i<r;i++)n[i]=e.charCodeAt(i);return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode.apply(null,e))}},{key:"importPk",value:function(t,n,i){var r=window.atob(n),o=e.str2ab(r);return window.crypto.subtle.importKey(t,o,{name:"RSA-OAEP",hash:"SHA-256"},!0,i)}},{key:"wrap",value:function(t,n){return e.importPk("spki",n,["wrapKey"]).then((function(e){return window.crypto.subtle.wrapKey("raw",t,e,{name:"RSA-OAEP"})})).then((function(t){return e.encode(new Uint8Array(t))}))}},{key:"wrapErrorResult",value:function(e){var t={a:null,b:null,c:null};return t.error=e,t}},{key:"encryptWithKey",value:function(t,n,i){var r={a:null,b:null,c:null};try{var o=Date.now();if("string"!=typeof n||"number"!=typeof i)throw new Error("ec1");var a=window.crypto.getRandomValues(new Uint8Array(16));r.a=e.encode(a);var s=(new TextEncoder).encode(t),c="AES-CBC";return window.crypto.subtle.generateKey({name:c,length:256},!0,["encrypt","decrypt"]).then((function(t){return window.crypto.subtle.encrypt({name:c,iv:a},t,s).then((function(a){return e.wrap(t,n).then((function(t){return r.b=t,r.c=e.encode(new Uint8Array(a)),r.d=Date.now()-o,r.e=i,r}))}))})).catch((function(e){return r.error=String(e),r}))}catch(t){return r.error=String(t),Promise.resolve(r)}}},{key:"encryptWithKeyIds",value:function(t,n,i,r){if("string"!=typeof n||"string"!=typeof i)return Promise.resolve(e.wrapErrorResult("Error: ec2"));var o=s(n),a=parseInt(s(i));return(""===o||"string"!=typeof o||"number"!=typeof a||Number.isNaN(a))&&(o=r?"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB":"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB",a=r?2:1),e.encryptWithKey(t,o,a)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,i,r,o){return null!=r&&"string"==typeof r.publicKey&&"number"==typeof r.publicKeyVersion?e.encryptWithKey(t,r.publicKey,r.publicKeyVersion):e.encryptWithKeyIds(t,n,i,o)}},{key:"uuidv4",value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(function(e){return(e^window.crypto.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder).encode(e);return crypto.subtle.digest("SHA-256",t).then((function(e){return Array.from(new Uint8Array(e)).map((function(e){return("00"+e.toString(16)).slice(-2)})).join("")})).catch((function(){return""}))}}]),e}(),d=function(){var e={compressToBase64:function(t){if(null==t)return"";var n=e._compress(t,6,(function(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v==t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0==--d&&(d=Math.pow(2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v==t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0==--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v==t-1){f.push(n(g));break}v++}return f.join("")}};return e}(),h={apfcTypes:1,collectionType:2,trackingId:3},p={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},f={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},g={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},v={type:1,description:2,suffixes:3},m={canvasHash:1,canvasWinding:2},y={label:1,gid:2,id:3,kind:4},E={lists:1,fontsHash:2},b={Orientation:1,Enabled:2},w={charging:1,dischargingTime:2,level:3,chargingTime:4},_={touchStart:1,touchEvent:2,maxTouchPoints:3},T={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},S={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},C={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},I={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47};function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(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 x=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),O=/^fs_/;var L,R,N=/(?![^(]*\)),/,P=function e(t){var n=function(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+be(e)+".");var t,n,i=x.exec(e);return i&&(t=i[1].replace(O,""),n=i[2]),{id:n,type:t}}(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(N),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o},D=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},M={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},U="GUEST",F="MEMBER",B="ENTERPRISE_UNBOUND",q=(k(L={},U,"li_gc"),k(L,F,"li_mc"),k(L,B,"li_ec"),L);k(R={},U,"mypreferences/g/guest-cookies"),k(R,F,"settings/member-cookies"),k(R,B,"mypreferences/e/enterprise-cookies");var H,j,G,W,z=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 function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},M)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===r},K=(H=[M.ADVERTISING,M.ANALYTICS_AND_RESEARCH,M.FUNCTIONAL],j=[0,1,2,0],G=function(e){for(var t={},n=0;n<H.length;n++)t[H[n]]=j[e>>2*n&3];return t},W=function(e){var t=0;return e>=0&&e<=3&&(t=j[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),i=e.match(n);if(!i)return{error:"Invalid consent body encoding",consent:new z};var r=G(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=W(parseInt(i[3],10));return{error:null,consent:new z(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=P(e);if(t&&t.enterpriseProfile&&t.enterpriseProfile.length>=2&&t.enterpriseProfile[0].enterpriseAccount)return{enterpriseAccountId:parseInt(t.enterpriseProfile[0].enterpriseAccount,10),enterpriseProfileId:parseInt(t.enterpriseProfile[1],10)}}catch(e){return null}return null}(t);if(!i)return{error:"Invalid enterprise profile urn provided",consent:new z};var r=i.enterpriseAccountId,o=i.enterpriseProfileId,a=new RegExp(["^((?:\\d+,\\d+,\\d+,\\d+,\\d+)(?:\\|(?:\\d+,\\d+,\\d+,\\d+,\\d+))*)","(\\d+)","(\\d+)","(?:(?:.|\\s)+)$"].join(";")),s=e.match(a);if(!s)return{error:"Invalid consent body encoding",consent:new z};var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),4!==n.length);i=!0);}catch(e){r=!0,o=e}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return A(e,4);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)?A(e,4):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e),i=t[1],a=t[2],s=t[3];return i===r&&a===o&&s===n}))[0];if(!c)return{error:null,consent:new z};var l=G(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=W(parseInt(s[3],10));return{error:null,consent:new z(l,u,B,d)}}}),V=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),X=function(e){var t={};for(var n in M)t[n]=e;return{error:null,consent:new z(t,null,null,e)}},Y=function(e,t,n,r){e&&e.length>1&&'"'==e.charAt(0)&&'"'==e.charAt(e.length-1)&&(e=e.substring(1,e.length-1));var o,a=null;try{a=(o=e,"undefined"==typeof atob&&void 0!==i?i.from(o,"base64").toString("binary"):atob(o)).match(V)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new z};var s=parseInt(a[1],10),c=a[2];return 1===s?t===B?K.parseConsentBodyEnterpriseUnbound(c,n,r):K.parseConsentBody(c,t):{error:"Invalid encoded consent version ".concat(s),consent:new z}},J=new Map([["/voyager/api/voyagerSocialDashNormComments","createComment"],["/signup/cold-join","createAccount"],["/signup/api/createAccount","createAccount"],["/signup/api/cors/createAccount","createAccount"]]);function Q(e){var t;try{t=new URL(e)}catch(n){t=new URL(e,window.location.origin)}return t.pathname}var $=function(){function e(t,n){we(this,e),this.callback=t,this.config=n,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return Te(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this;window.fetch=function(n,i){try{var r=Q(n);t.runActionInterceptorLogic(r)}catch(e){}return e(n,i)}}},{key:"setupInterceptorForOpen",value:function(){var e=XMLHttpRequest.prototype.open,t=XMLHttpRequest.prototype.send,n=this;XMLHttpRequest.prototype.open=function(t,n){try{this._sanitizedPath=Q(n)}catch(e){}e.apply(this,arguments)},XMLHttpRequest.prototype.send=function(e){try{n.runActionInterceptorLogic(this._sanitizedPath)}catch(e){}t.apply(this,arguments)}}},{key:"runActionInterceptorLogic",value:function(e){if(e){var t=J.get(e),n=this.callback;void 0!==t&&window.grecaptcha&&window.grecaptcha.enterprise&&window.grecaptcha.enterprise.ready&&window.grecaptcha.enterprise.execute&&window.grecaptcha.enterprise.ready((function(){var e=t||"default";window.grecaptcha.enterprise.execute("6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",{action:e}).then((function(t){var i={token:t,expectedAction:e};n(a,JSON.stringify(i))})).catch((function(e){var t={error:e};n(a,JSON.stringify(t))}))}))}}}]),e}(),Z={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:"apfcDf",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},telemetryCollectPath:"/platform-telemetry/li/apfcDf",gloablIntegrationDataCollectionPath:"/apfc/collect",extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:"n/a",ERROR:"err",EXCLUDED:"excluded",useRequestIdleCallBack:!0},ee=!1;try{var te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.enterpriseProfileUrn,r=n.enterpriseAppInstanceId;if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new z};t=document.cookie}if(i&&!r||!i&&r)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new z};if(!(e!==B||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new z};if(!e){var o=D(q[B],t);if(o&&i&&r){var a=Y(o,B,i,r);if(a.consent.userMode===B||a.error)return a}e=D("liap",t)?D(q[F],t)?F:U:D(q[U],t)?U:F}return function(e,t,n,i){var r=D(q[e],t);return r?Y(r,e,n,i):D(q[U],t)||D(q[F],t)||D(q[B],t)?X(2):X(1)}(e,t,i,r)}().consent.optedInConsentMap;ee=te[M.FUNCTIONAL]}catch(e){}var ne=function(){function e(t,n,i){var r=this;if(we(this,e),void 0!==n&&void 0!==t&&"enabled"===t.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(n,i):window.addEventListener("load",(function(){r.initializeGlobalIntegration(n,i)}));else if(void 0!==t){var o=JSON.parse(JSON.stringify(Z));l("settings-iframe")||l("setting-headline")||(o.useRequestIdleCallBack=!1),this.initialize(o,t)}else{var a=JSON.parse(JSON.stringify(Z));l("settings-iframe")||l("setting-headline")||(a.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(a):window.addEventListener("load",(function(){r.initialize(a)}))}}return Te(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new $(e,t),globalThis.apfcInterceptorInitialized=!0),this.checkConfigAndInitializeAllIntegration(e,t)}},{key:"isDfCollectionRequired",value:function(e){return"number"!=typeof e.samplingTimeWindowInMillis||e.samplingTimeWindowInMillis<=0||""===n.getItem("df_ts")}},{key:"checkConfigAndInitializeAllIntegration",value:function(e,t){!0!==globalThis.pauseApfc&&(globalThis.pauseApfc=!0,setTimeout((function(){globalThis.pauseApfc=!1}),3e4),!0===t.enableOnDemandMode?(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t)):(this.deleteDfCookieIfRequired(t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this.addDfCookieIfRequired(t))))}},{key:"checkConfigAndInitializeGlobalIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes("DNA")||!0===t.dnaIntegrationEnabled&&!0!==globalThis.dnaIntegrationCompleted)&&this.intializeGlobalIntegration(Z,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(a)||!0===t.recaptchaV3IntegrationEnabled&&!0!==globalThis.reCaptchaV3InitializationComplete)&&(this.initializeReCaptchaV3Integration(),globalThis.reCaptchaV3InitializationComplete=!0),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(r)||!0===t.humanIntegrationEnabled&&!0!==globalThis.humanIntegrationCompleted)&&this.initializeHumanIntegration(e,t),(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!0===t.dfpIntegrationEnabled&&!0!==globalThis.dfpIntegrationCompleted)&&this.intializeDfpIntegration(e,t)}},{key:"deleteDfCookieIfRequired",value:function(e){var t="number"!=typeof e.samplingTimeWindowInMillis?0:e.samplingTimeWindowInMillis;if(""!==n.getItem("df_ts")){var i=Date.now(),r=Number(n.getItem("df_ts"));(!1===ee||i-r>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===ee&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){var t=Date.now(),i=new Date;i.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,i)}}},{key:"initialize",value:function(e,n){if(null!=n||null!=s("apfcDfPK")){var i=this.reqid,r=this.pageInstance,o=this.isProd();return(new t).getFeatures((function(t,a){t.reqid=i,t.pageInstance=r,t.fullFeatureCollection=a,u.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then((function(t){globalThis.apfcDf=t,!0===a&&c(JSON.stringify(t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(i,r,o){var a=this.isProd();return(new t).getFeatures((function(t,s){if(!0===s){if(e.prototype.populateFpDataCookie(t,o),!0===o.isSyncEnabledWithHeaders){var l=JSON.stringify(function(e){var t={};return function(e){var t=e.webgl,n={};if(void 0!==t&&void 0!==t.extensions&&null!==t&&null!==t.extensions){for(var i=t.extensions,r=[],o=0;o<i.length;o++){var a=i[o];r[o]=S.hasOwnProperty(a)?S[a]:a}t.extensions=r}null!=t&&(Object.keys(T).forEach((function(e){n[T[e]]=t[e]})),e.webgl=n)}(e),function(e){var t=e.touchSupport,n={};null!=t&&(Object.keys(_).forEach((function(e){n[_[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e.battery,n={};null!=t&&(Object.keys(w).forEach((function(e){n[w[e]]=t[e]})),e.battery=n)}(e),function(e){var t=e.screenOrientation,n={};null!=t&&(Object.keys(b).forEach((function(e){n[b[e]]=t[e]})),e.screenOrientation=n)}(e),function(e){var t=e.fonts,n={};if(void 0!==t&&void 0!==t.lists&&null!==t&&null!==t.lists){for(var i=t.lists,r=[],o=0;o<i.length;o++){var a=i[o];r[o]=C.hasOwnProperty(a)?C[a]:a}t.lists=r}null!=t&&(Object.keys(E).forEach((function(e){n[E[e]]=t[e]})),e.fonts=n)}(e),function(e){var t=e.enumerateDevices,n=[];if(null!=t){for(var i=function(){var e=t[r],i={};Object.keys(y).forEach((function(t){i[y[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i();e.enumerateDevices=n}}(e),function(e){var t=e.canvas,n={};null!=t&&(Object.keys(m).forEach((function(e){n[m[e]]=t[e]})),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[];if(null!=t){for(var i=function(){var e=t[r],i={};Object.keys(v).forEach((function(t){i[v[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i();e.mimetyps=n}}(e),function(e){var t=e.signals,n={};null!=t&&(Object.keys(g).forEach((function(e){n[g[e]]=t[e]})),e.signals=n)}(e),function(e){var t=e.networkInfo,n={};null!=t&&(Object.keys(f).forEach((function(e){n[f[e]]=t[e]})),e.networkInfo=n)}(e),function(e){var t=e.location,n={};null!=t&&(Object.keys(p).forEach((function(e){n[p[e]]=t[e]})),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={};null!=t&&(Object.keys(h).forEach((function(e){n[h[e]]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(I).forEach((function(n){t[I[n]]=e[n]})),t}(t));globalThis.apfcDfH=(k=l,d.compressToBase64(k))}u.encryptWithKeyIds(JSON.stringify(t),"apfcDfPK","apfcDfPKV").then((function(e){if(globalThis.apfcDf=e,!0===o.isSyncEnabledWithHeaders||!0===o.isSyncEnabledWithCb){var t=function(e){var t={};t[btoa("DNA_ENCRYPTED")]=e;var i={};return i.payload=t,i.browserId=n.getBcookie(),i}(e);c(JSON.stringify(t),i.gloablIntegrationDataCollectionPath,a)}r("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}var k}),i)}},{key:"intializeDfpIntegration",value:function(t,i){var r=n.getBcookie(),a=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a";try{if(RegExp("^[\\w-]*$").test(r)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(r,"&instanceId=").concat(a),c=document.createElement("script");c.setAttribute("src",s),c.setAttribute("id","dfpIframeScript"),c.addEventListener("load",(function(){return window.dfp.doFpt(document)})),document.getElementsByTagName("head")[0].appendChild(c);var l={sessionId:r,instanceId:a};e.prototype.populateFpDataCookie(l,i),t(o,JSON.stringify(l))}else{var u={error:"Invalid session_id: "+r};t(o,JSON.stringify(u))}}catch(i){var d={error:i};t(o,JSON.stringify(d))}globalThis.dfpIntegrationCompleted=!0}},{key:"initializeHumanIntegration",value:function(t,i){var o=i.treeId,a=Date.now(),s=this.isProd()?"PXdOjV695v":"PXgoH0hfKu",c=n.getBcookie(),l="https://li.protechts.net/index.html?ts="+a+"&r_id="+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping";u.generateSha256HashOrDefault(c).then((function(n){""!==(c=n)&&(l+="&d_id="+c);try{var u=document.createElement("iframe");u.setAttribute("id","humanThirdPartyIframe"),u.setAttribute("src",l),u.setAttribute("sandbox","allow-same-origin allow-scripts"),u.setAttribute("aria-hidden","true"),u.style.height="0px",u.style.width="0px",u.style.border="none",u.style.position="absolute",u.style.left="-9999px",document.body.appendChild(u);var d={app_id:s,ts:a,d_id:c,r_id:o,uc:"scraping"};e.prototype.populateFpDataCookie(d,i),t(r,JSON.stringify(d))}catch(e){var h={error:e};t(r,JSON.stringify(h))}})),globalThis.humanIntegrationCompleted=!0}},{key:"initializeReCaptchaV3Integration",value:function(){var e=document.createElement("script");e.src="https://www.google.com/recaptcha/enterprise.js?render=6LcIy_MqAAAAAMKiupFSbmzW3xjGSlIfRzNWYMjC",document.head.appendChild(e)}}]),e}();ne.prototype.reentry=function(e){globalThis.triggerApfc=null,new ne(e)},ne.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new ne({globalIntegration:"enabled"},e,t)},ne.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=ne.prototype.extractDataCookie();!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),ne.prototype.reentryGlobalIntegration(e,t))}},ne.prototype.extractDataCookie=function(){var e=n.getItem("li_apfcdc");if(n.deleteItem("li_apfcdc"),!e||""===e)return null;var t=(e=atob(e)).split(":::");if(t.length<5)return null;var i={};return i.trackingId=t[0],i.memberId=t[1],i.sessionUrn=t[2],i.collectionType=t[3],i.apfcTypes=t[4].split(","),i},ne.prototype.populateFpDataCookie=function(e,t){"object"==be(e)&&"object"==be(t)&&(e.FPDataCookie=t.fpDataCookie)},ne.prototype.isProd=function(){var e=location&&location.host;return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")},ne.prototype.isEmpty=function(e){return e&&0===Object.keys(e).length},"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&(void 0===globalThis.triggerDnaApfcEvent&&(globalThis.triggerDnaApfcEvent=ne.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=ne.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||2>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=2,globalThis.triggerDnaApfcEventOnDemandVersioned=ne.prototype.reentryGlobalIntegrationOnDemand),new ne)}();var sr=function(){function e(){we(this,e)}return Te(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemandVersioned&&globalThis.triggerDnaApfcEventOnDemandVersioned(t,e)}catch(e){}}}]),e}(),cr=function(){function e(t,n,i,r,o,a,s,c,l,u){we(this,e),Se(this,"hostApis",void 0),Se(this,"statics",void 0),Se(this,"options",void 0),Se(this,"allowTimingOrigin",void 0),Se(this,"fireResourceLoadEvent",void 0),Se(this,"isTracerEnabled",void 0),Se(this,"responseRleCache",void 0),Se(this,"fireApfcEvent",void 0),Se(this,"abuseDeviceSignalCollectionConfig",void 0),Se(this,"trackingEndpoint",void 0),Se(this,"collectResourceTimings",void 0),Se(this,"collectCdnData",void 0),Se(this,"perfObserver",void 0),Se(this,"renderTimings",new Map),Se(this,"urlToTreeId",new Map),Se(this,"cdnDataProvider",void 0),Se(this,"observables",new Ni),Se(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireResourceLoadEvent=o,this.isTracerEnabled=a,this.responseRleCache=s,this.fireApfcEvent=c,this.abuseDeviceSignalCollectionConfig=l,this.trackingEndpoint=u,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new ar(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return Te(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Zi=Zi||t.createElement("a")).href=e,Zi.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:tr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e);if(i&&(i.renderEnd=i.renderEnd||tr(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Cn("ViewLoadEvent",Oi)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):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:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null);i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics;var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId;return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var i=e.isInitial,r=e.immediate,o=this.hostApis.assign;if(i){var a=ur(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,ki.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var h=this.collectAsynchronousData(!0);return o(t.cdnData,h.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,l={};l.resourceKey=n,l.isNetwork=!!i&&0!==i,l.loadType=r||"unknown",l.timeOrigin=t;var u=[];Object.keys(Ai).forEach((function(t){var n;t in Ei&&void 0!==e[t]&&u.push({resourceProgressType:Ai[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=xi[o];d.nextHopProtocol=null!=h?h:"UNKNOWN",d.transferSize=i,d.encodedBodySize=a,d.decodedBodySize=s,l.resourceNetworkContext=d,l.requestStart=c;try{var p,f,g=new URL(n),v=g.pathname+g.search+g.hash;return null===(p=this.responseRleCache)||void 0===p||p.offerResourceLoadEvent(v,l),null===(f=this.responseRleCache)||void 0===f?void 0:f.flushCacheByUrl(v)}catch(e){var m,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n);return e instanceof Error?(e.message="".concat(y," ").concat(e.message),Cn("ResourceLoadEvent",e)):Cn("ResourceLoadEvent",y),null===(m=this.responseRleCache)||void 0===m?void 0:m.flushCacheByUrl()}}},{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=rr(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,ur(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?wn(r,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;try{var n=this.abuseDeviceSignalCollectionConfig||{},i=n.isDnaIntegrationLixEnabled,r=n.isHumanIntegrationLixEnabled,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled,u=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled;if(r||o||i||c||l||u||d){var h,p,f={treeId:null!==(h=null===(p=this.statics.treeId)||void 0===p?void 0:p.toString())&&void 0!==h?h:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l,recaptchaV3IntegrationEnabled:u,enableNetworkInterceptor:d};(!t||t&&s||c||l)&&sr.collectFeatures(f,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var i=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;i&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var r=e.entryType,o=e.name,a=e.startTime,s=e.duration;"resource"===r?n.processSingleResourceTiming(e,t):"mark"===r?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),"mark_meaningful_paint_end"!==o||i||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===r?n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}):"longtask"===r&&n.observables.longTasks.push({duration:s,name:o,startTime:a})}))})),this.observables.userTimingEntries=rr(this.hostApis.performance,this.options,!1);var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{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(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this;if(this.collectResourceTimings){this.options["enable-otel"]&&an.emit(pi.INTERNAL_OTEL_RESOURCE,{resourceTiming:e}),this.observables.resourceTimingEntries.push(e);var i=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!i&&!function(e){for(var t=0,n=er;t<n.length;t++){var i=n[t];if(i.strToFilter&&-1!==e.indexOf(i.strToFilter))return!0;if(i.pattern&&i.pattern.test(e))return!0}return!1}(e.name)){var r=this.collectResourceLoadEvent(e,t);r&&r.forEach((function(e){return n.fireResourceLoadEvent(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:or(this.renderTimings),networkInformationMetrics:lr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function lr(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 ur(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}var dr=function(){function e(t,n,i){we(this,e),Se(this,"featureName",void 0),Se(this,"trackingCore",void 0),Se(this,"rumConfig",void 0),Se(this,"observing",!1),Se(this,"basePageTreeId",void 0),Se(this,"startPageInstance",void 0),Se(this,"startMemory",void 0),Se(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Te(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)||mn(ke),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:nr(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}();Se(dr,"checkpoints",[1,3,10,30,90,180,300]);var hr,pr,fr,gr,vr,mr=Te((function e(t,n,i){we(this,e),Se(this,"webUIFramework",void 0),Se(this,"timeSource",void 0),Se(this,"isSinglePageApp",void 0),Se(this,"appRenderMode",void 0),Se(this,"isAppRenderFailed",void 0),Se(this,"pageLoadMode","INITIAL"),Se(this,"isSSL",void 0),Se(this,"treeId",void 0),Se(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})),yr=function(){function e(t){we(this,e),Se(this,"isPEMTracerEnabled",void 0),Se(this,"responseContextMap",new Map),Se(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return Te(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n;null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new kn((function(e,t){return e.requestTime<t.requestTime}));i.heapPush(t),this.responseContextMap.set(e,i)}}},{key:"offerResourceLoadEvent",value:function(e,t){if(this.resourceLoadEventsMap.has(e)){var n;null===(n=this.resourceLoadEventsMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new kn((function(e,t){return e.requestStart<t.requestStart}));i.heapPush(t),this.resourceLoadEventsMap.set(e,i)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),i=null==t?void 0:t.heappop(),r=null==n?void 0:n.heappop();return this.mergeRleAndRes(i,r)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart;var n=ge(e,ne),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=ge(t,ie);return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=ce(ce({},n.resourceNetworkContext),a),In(n)}}},{key:"deleteEntryByRequestUrl",value:function(e){this.resourceLoadEventsMap.delete(e),this.responseContextMap.delete(e)}},{key:"canFlush",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e);return n&&t&&n.heapsize()>0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[];if(e){var n,i=ve(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=[].concat(me(t),me(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=ve(o);try{for(s.s();!(a=s.n()).done;){var c,l=a.value,u=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear();u&&(t=[].concat(me(t),me(u.map((function(e){return e.requestStart,In(ge(e,re))})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[];if(!e)return n;if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){return e.requestStart,In(ge(e,oe))})))||n;if(this.canFlush(e)){for(var i=this.responseContextMap.get(e);i&&i.heapsize()>0;){var r=this.mergeAndConsume(e);r&&n.push(r)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),Er=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)}},br=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){}},wr=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)},_r=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Tr=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)))}},Sr=-1,Cr=function(){return"hidden"===document.visibilityState?0:1/0},Ir=function(){wr((function(e){var t=e.timeStamp;Sr=t}),!0)},kr=function(){return Sr<0&&(Sr=Cr(),Ir(),_r((function(){setTimeout((function(){Sr=Cr(),Ir()}),0)}))),{get firstHiddenTime(){return Sr}}},Ar=!1,xr=-1,Or=function(e,t){Ar||(function(e,t){var n,i=kr(),r=Er("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:br("paint",o);(a||s)&&(n=Tr(e,r,t),a&&o(a),_r((function(i){r=Er("FCP"),n=Tr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){xr=e.value})),Ar=!0);var n,i=function(t){xr>-1&&e(t)},r=Er("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=br("layout-shift",s);c&&(n=Tr(i,r,t),wr((function(){c.takeRecords().map(s),n(!0)})),_r((function(){o=0,xr=-1,r=Er("CLS",0),n=Tr(i,r,t)})))},Lr={passive:!0,capture:!0},Rr=new Date,Nr=function(e,t){hr||(hr=t,pr=e,fr=new Date,Mr(removeEventListener),Pr())},Pr=function(){if(pr>=0&&pr<fr-Rr){var e={entryType:"first-input",name:hr.type,target:hr.target,cancelable:hr.cancelable,startTime:hr.timeStamp,processingStart:hr.timeStamp+pr};gr.forEach((function(t){t(e)})),gr=[]}},Dr=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(){Nr(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,Lr),removeEventListener("pointercancel",i,Lr)};addEventListener("pointerup",n,Lr),addEventListener("pointercancel",i,Lr)}(t,e):Nr(t,e)}},Mr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Dr,Lr)}))},Ur=function(e,t){var n,i=kr(),r=Er("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=br("first-input",o);n=Tr(e,r,t),a&&wr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&_r((function(){var i;r=Er("FID"),n=Tr(e,r,t),gr=[],pr=-1,hr=null,Mr(addEventListener),i=o,gr.push(i),Pr()}))},Fr={},Br=function(e,t){var n,i=kr(),r=Er("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=br("largest-contentful-paint",o);if(a){n=Tr(e,r,t);var s=function(){Fr[r.id]||(a.takeRecords().map(o),a.disconnect(),Fr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),wr(s,!0),_r((function(i){r=Er("LCP"),n=Tr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Fr[r.id]=!0,n(!0)}))}))}))}},qr=["LCP","FID","CLS"],Hr={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},jr={},Gr=function(){var e;if(!Mn)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}(),Wr=!1,zr=new Set,Kr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Vr(){var e=!0===window.__test__resetWebVitalsState;if(!Wr||e){e&&(zr=new Set),qr.forEach(Xr);var t=Symbol();vr=t,[Br,Ur,Or].forEach((function(e){return e(Yr.bind(null,t),!0)})),[Br,Ur,Or].forEach((function(e){return e(Jr.bind(null,t))})),Wr=!0}}function Xr(e){jr[e]={name:e,verboseName:Hr[e]||e,value:Ci,updateHistory:[]};var t=Kr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(jr[e].value=Ii)}function Yr(e,t){if(e===vr){var n=jr[t.name],i=nr();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),zr.forEach((function(e){return e(t,i,!1)}))}}function Jr(e,t){e===vr&&zr.forEach((function(e){return e(t,nr(),!0)}))}var Qr,$r=function(){function e(t,n){var i=this;we(this,e),Se(this,"basePageTreeId",void 0),Se(this,"basePageKey",void 0),Se(this,"observing",!1),Se(this,"appContextMap",new Map),Se(this,"rumConfig",void 0),Se(this,"trackingCore",void 0),Se(this,"onMetricUpdate",(function(e,t,n){var r;i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return Te(e,[{key:"startObserving",value:function(){var e,t,n=this;Vr(),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",qr.forEach((function(e){var t;(null===(t=jr[e])||void 0===t?void 0:t.value)===Ii&&n.reportMetric(e)})),t=this.onMetricUpdate,zr.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,zr.delete(e)}},{key:"reportMetric",value:function(e){var t=jr[e];if(t){var n={name:Hr[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Gr},a=null;switch(n.name){case"LCP":a=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],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:ir(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(a.url=o.url),a}(n,i);break;case"FID":a=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:ir(o.target)}}(n,i);break;case"CLS":a=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 a,s=t.get(r.time);return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":ir(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={};return r(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,t,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}(i);var r={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:i};an.emit(pi.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i};an.emit(pi.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i};an.emit(pi.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Zr="x-li-uuid",eo="x-li-pop",to="x-msedge-ref",no="x-li-fabric",io="x-li-pem-resp-meta",ro="content-type",oo="x-cache",ao=function(){function e(t){we(this,e),Se(this,"_callTreeId",void 0),Se(this,"_fabric",void 0),Se(this,"_msEdgeRef",void 0),Se(this,"_pointOfPresenceId",void 0),Se(this,"_responseMetadata",void 0),Se(this,"_contentType",void 0),Se(this,"_cdnCacheMetadata",void 0),Se(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(Zr)||null,this._pointOfPresenceId=n.get(eo)||null,this._msEdgeRef=n.get(to)||null,this._fabric=n.get(no)||null,this._responseMetadata=n.get(io)||null,this._contentType=n.get(ro)||null,this._cdnCacheMetadata=n.get(oo)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=ve(e.split(","));try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=",2);if(2===i.length&&"availability"===i[0]){var r=parseFloat(i[1]);if(r>=0&&r<=1)return r}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return Te(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}();!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(Qr||(Qr={}));function so(e,t,n,i,r){var o=new ao(i),a=function(e,t,n){if(t){if(429===t||999===t)return Qr.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Qr.BLOCKED_BY_CLIENT_PROXY;if((i=t)>=400&&i<500)return Qr.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Qr.SERVER_ERROR;if(e.pointOfPresenceId)return Qr.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return Qr.TRAFFIC_AFD_TO_LI_POP_ERROR}return Qr.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Qr.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var i;if(n instanceof Error){if("AbortError"===n.name)return Qr.CLIENT_ABORTED;if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return Qr.NETWORK_ERROR}else if(function(e){return!!e&&("string"==typeof e.statusText||"number"==typeof e.status||"number"==typeof e.readyState)}(n)){if("timeout"===n.statusText)return Qr.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return Qr.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return Qr.NETWORK_ERROR}return Qr.UNCLASSIFIED}(o,n,r),s=null;return a&&(s={errorType:a},a===Qr.UNCLASSIFIED&&r&&(s.errorMessage=r.message,function(e,t,n){var i=["tracer-unclassified-error"];null==n||n.forEach((function(e){return i.push("target-view-name-".concat(e))})),Cn("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),i)}(r,i,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}!function(){function e(t,n,i){var r,o,a,s,c,l,u=this;we(this,e),Se(this,"core",void 0),Se(this,"config",void 0),Se(this,"collector",void 0),Se(this,"boomerangStart",-1),Se(this,"webVitalsObserver",void 0),Se(this,"appMemoryObserver",void 0),Se(this,"pageMemoryObserver",void 0),Se(this,"liveTokens",new Set),Se(this,"stateWM",new WeakMap),Se(this,"activeToken",void 0),Se(this,"isInitial",void 0),Se(this,"pageLoadId",void 0),Se(this,"initialResourcesEvents",[]),Se(this,"responseRleCache",void 0),Se(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),Se(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),Se(this,"isTracerEnabled",void 0),Se(this,"isPEMTracerEnabled",void 0),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({},Si),n);var d="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),h=this.getAbuseDeviceSignalCollectionConfig(i),p=null===(a=(s=i.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.generic-tracers"),f=!!p&&Ri.test(p);this.isTracerEnabled=f||this.config["enable-tracking-3"];var g="enabled"===(null===(c=(l=i.host).__getLixTreatment)||void 0===c?void 0:c.call(l,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=g||this.config["enable-pem-tracking-3"],this.responseRleCache=new yr(this.isPEMTracerEnabled),this.collector=new cr(i.host.api,new mr(t,this.config,i.host),this.config,d,(function(e){return u.fireResourceLoadEvent(e,u.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,h,i.host.endpoint),this.collector.startObserving(),an.before(Zt,this.beforeHideHandlerBound)}Te(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){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,i=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);i&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},i)}},{key:"provisionNetworkResponse",value:function(e,t){var n,i,r=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var o=null===(i=this.responseRleCache)||void 0===i?void 0:i.flushCacheByUrl(e);null==o||o.forEach((function(e){r.fireResourceLoadEvent(e,r.activeToken)}))}},{key:"start",value:function(e){var t,n;!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,r=Object.create(null),o="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=r,this.liveTokens.add(r),this.isTracerEnabled?(this.stateWM.set(r,{isInitial:this.isInitial,startTime:tr(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:tr(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new dr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new dr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new $r(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 a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=tr(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o);var l=this.activeToken,u=this.isTracerEnabled?5e3:this.config["beacon-timeout"];a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerEnabled){i.flushResourceLoadEvents(l);var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial});"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial});"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),u),this.activeToken=void 0}else Cn("rum-end",Li)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=so(t,n,i,r,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,ce({nextHopProtocol:mi.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){Cn("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){var t=this.stateWM.get(e);this.pageLoadId=fn(),t.pageLoadId=this.pageLoadId;var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey});n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else Cn("PageLoadStartEvent",Li)}},{key:"destroy",value:function(){var e,t,n;an.offBefore(Zt,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.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{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){if(e.isTracerEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(i,t),e.flushResourceLoadEvents(t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,i=this,r=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==r||r.map((function(t){i.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",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,a=i.pageLoadId,s=i.pageKey;if(o){var c=o.renderCompleteTime,l=o.isImpactedByHiddenWindow;if(a?e.pageLoadId=a:Cn("PageLoadEndEvent",Oi),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=l),e.navigationTiming){var u,d=null===(u=e.navigationTiming)||void 0===u?void 0:u.navigationStart,h=this.boomerangStart=d||this.boomerangStart,p=d||r,f=c-p;e.navigationTiming.boomerangStart=h,e.navigationTiming.timeDone=f,e.navigationTiming.navigationStart=p,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)}))}else this.abort(t)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this;if(this.isTracerEnabled){var i,r=null!==(i=this.getPageLoadIdFromState(t))&&void 0!==i?i:this.pageLoadId;if(!r)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=r,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{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 a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-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:s,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,i=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),r={issueTime:0,browserId:""};try{r=function(e){var t,n={issueTime:0,browserId:""},i=ve(e);try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=");if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50);return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,i=t.viewNames,r=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:i||[],loadType:"serversideresponse",resourceNetworkContext:ce({},ge(t,ae)),resourceProgressStates:[],timeOrigin:n};return r&&(o.loadType=r),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,i,r,o,a,s,c,l,u,d,h,p,f,g,v,m,y,E,b,w,_,T,S,C,I,k,A,x,O=null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"),L=!1,R=!1,N=!1,P=!1,D=!1,M=!1;if("enabled"===O)L=!0;else if(null!=O&&O.startsWith("v2:")){var U=O.split(":");if(2===U.length){var F=new Set(U[1].split(","));L=F.has("a"),P=F.has("b"),D=F.has("c"),R=F.has("d"),N=F.has("e"),M=F.has("f")}}return{isDnaIntegrationLixEnabled:L=L||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.webviewDnaMemberLixTreatment)||"enabled"===(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:R=R||"enabled"===(null===(o=(a=e.host).__getLixTreatment)||void 0===o?void 0:o.call(a,"pemberly.tracking.human.integration"))||"enabled"===(null===(s=e.host.abuseDeviceSignalCollectionConfig)||void 0===s?void 0:s.webviewHumanMemberLixTreatment)||"enabled"===(null===(c=e.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.humanMemberLixTreatment),isDfpIntegrationLixEnabled:N=N||"enabled"===(null===(l=(u=e.host).__getLixTreatment)||void 0===l?void 0:l.call(u,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(d=e.host.abuseDeviceSignalCollectionConfig)||void 0===d?void 0:d.webviewDfpMemberLixTreatment)||"enabled"===(null===(h=e.host.abuseDeviceSignalCollectionConfig)||void 0===h?void 0:h.dfpMemberLixTreatment),disablePerfMarkerOptimization:e.host.abuseDeviceSignalCollectionConfig&&e.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(p=(f=e.host).__getLixTreatment)||void 0===p?void 0:p.call(f,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(g=e.host.abuseDeviceSignalCollectionConfig)||void 0===g?void 0:g.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:M=M||"enabled"===(null===(v=(m=e.host).__getLixTreatment)||void 0===v?void 0:v.call(m,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(y=(E=e.host).__getLixTreatment)||void 0===y?void 0:y.call(E,"sync.apfc.headers"))||"enabled"===(null===(b=e.host.abuseDeviceSignalCollectionConfig)||void 0===b?void 0:b.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(w=(_=e.host).__getLixTreatment)||void 0===w?void 0:w.call(_,"sync.apfc.couchbase"))||"enabled"===(null===(T=e.host.abuseDeviceSignalCollectionConfig)||void 0===T?void 0:T.syncFingerprintingEnabledWithCbLixTreatment),isRecaptchaV3IntegrationEnabled:P=P||"enabled"===(null===(S=(C=e.host).__getLixTreatment)||void 0===S?void 0:S.call(C,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(I=e.host.abuseDeviceSignalCollectionConfig)||void 0===I?void 0:I.recaptchaV3IntegrationLixValue),isNetworkInterceptorEnabled:D=D||"enabled"===(null===(k=(A=e.host).__getLixTreatment)||void 0===k?void 0:k.call(A,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(x=e.host.abuseDeviceSignalCollectionConfig)||void 0===x?void 0:x.networkInterceptorLixValue)}}}])}();var co,lo="undefined"!=typeof window&&"undefined"!=typeof performance,uo="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function ho(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",po(n,t))}function po(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=C(document),i=I(document),r=Q();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}!function(){function e(t,n){we(this,e),Se(this,"trackingCore",void 0),Se(this,"endPageInstance",void 0),Se(this,"startPageInstance",void 0),Se(this,"featureIdentifier",void 0),Se(this,"marks",[]),Se(this,"spans",[]),Se(this,"spanStarts",new Map),Se(this,"started",!1),Se(this,"ended",!1),Se(this,"featureKey",void 0),Se(this,"productName",void 0),Se(this,"flushOnEnd",void 0),Se(this,"basePageTreeId",void 0),Se(this,"debounceFlush",void 0),Se(this,"disableAutoFlush",void 0),Se(this,"isCanceled",!1),Se(this,"isClosed",!1),this.trackingCore=t;var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd;this.featureKey=i,this.productName=r,this.flushOnEnd=a;var s=r?"::".concat(r):"";this.featureIdentifier="".concat(i).concat(s);var c=void 0!==o?o:3e3;c>0&&(this.debounceFlush=function(e,t,n){var i,r,o;void 0===t&&(t=50),void 0===n&&(n={});var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[];function d(){if(void 0!==c){var e=Date.now()-l;if(e+t>=c)return c-e}return t}var h=function(){var t=[].slice.call(arguments),n=this;return new Promise((function(i,r){var c=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t);s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var h=e.apply(n,t);return s&&s(h),i(h)}u.push({resolve:i,reject:r})}))};return h.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},h}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}Te(e,[{key:"start",value:function(e){var t;if(lo){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"));this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t;if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));if(lo){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"));this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){lo&&(this.marks.push({name:e,startTime:nr()}),uo&&(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))),this.handleNewData())}},{key:"spanStart",value:function(e){lo&&(this.spanStarts.set(e,nr()),uo&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(lo&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e;this.spans.push({name:i,startTime:n,duration:nr()-n}),uo&&(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"))),this.handleNewData()}}},{key:"clearSpan",value:function(e){lo&&this.spanStarts.has(e)&&this.spanStarts.delete(e)}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return nr()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}};this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||mn(ke),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans};return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(lo){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'))}}}])}(),function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(co||(co={}));const{ENTER:fo,ESCAPE:go}=A;class vo{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:a,pageKey:s,onClose:c}=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(".modal__wrapper"),this._overlayEl=this._el.querySelector(".modal__overlay"),o&&(this._events=o),i&&(this._outletEls=this._getOutletEls()),this._exitButtonEl=this._el.querySelector(".modal__dismiss"),this._onKeyDownEvent=e=>this._onKeyDown(e),this._enablePageViewTracking=t,this._pageKey=s,this._shouldHideModal=n,this._shouldMoveToTopContainer=r,this.onClose=c;this._el.querySelector("[id='modalNoDismiss']")&&(this._isModalNonDismissible=!0),this._focusElement=a,i&&this._outletEls.forEach(e=>{e.addEventListener("click",e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.getAttribute("data-no-cool-off");this.open({noCoolOff:n})})}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new G(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll(`[data-modal="${e}"]`)];return t.length||console.warn("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param "+e),t}_getTopLevelContainer(){const e=document.querySelector(".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===fo&&document.activeElement===this._exitButtonEl;(t===go||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e,noCoolOff:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t||!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","false"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),E(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{ho(e,"ajax",this._pageKey||""+this._el.id)}):(E(this._wrapperEl,"afterOpen"),Promise.resolve());E(this._el,"didNotOpen")}async close(){var e,t,n,i,r;this._events.onBeforeClose&&await(null===(n=this._events)||void 0===n||null===(i=n.onBeforeClose)||void 0===i?void 0:i.call(n,this._wrapperEl));this.isOpen&&(null===(r=this.onClose)||void 0===r||r.call(this));this._overlayEl.classList.remove("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","true"),this._shouldMoveToTopContainer&&(this.setFocus(),this._parentNode.appendChild(this._el)),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),E(this._el,"close"),null!==(e=this._focusElement)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("ellipsis-menu__trigger")?(this.setFocus(),this._focusTrap.tearDown()):setTimeout(()=>{this.setFocus(),this._focusTrap.tearDown()},150)}setFocus(){const e=this._focusElement||this._previouslyFocusedEl;null==e||e.focus()}noScroll(){document.body.classList.add("overflow-hidden")}removeNoScroll(){document.body.classList.remove("overflow-hidden")}get isOpen(){return this._overlayEl.classList.contains("modal__overlay--visible")}}function mo(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 yo=/ /g,Eo=/[\s\u0000<>"]|%00/,bo=/\\/,wo=/([.]|%2e){2}/i;let _o=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 To(e){let t;if("string"!=typeof e)return mo("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(mo("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(yo,"+")),!_o.test(t))return mo("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(Eo.test(t))return mo("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?(mo("jSecure Error: malformed url path detected: "+i),"invalid://"):bo.test(i)||wo.test(i)||wo.test(n)?(mo("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const So={redirect(e){window&&(window.location.href=e)}};function Co(e){return e.scrollHeight>e.offsetHeight}function Io(e,t){const n=h(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function ko(e){xo([e])}function Ao(e){Oo([e])}function xo(e){Io(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Oo(e){Io(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Lo(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Ro(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function No(){return document.documentElement.classList.contains("safari")}function Po(){return document.documentElement.classList.contains("ios")}function Do(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const i=null==n?void 0:n.querySelector("."+e);if(i&&Co(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 Mo={};function Uo(e){const t=document.getElementById(e);if(!t&&void 0!==Mo[e])return Mo[e];if(!t)return console.warn(`Element with id: ${e} not found`),Mo[e]=null,Mo[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: ${e}. Use embedJson helper to embed this content`),null):(Mo[e]=n,t.parentNode.removeChild(t),Mo[e])}const Fo="prev",Bo="next";class qo{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('.slide-list__nav-button[data-direction="prev"]'),this._nextButton=e.querySelector('.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(".slide-list__header-nav--minimal"),this._prevTabIndexMap=new Map,this._boundFireScrollEvent=this._fireScrollEvent.bind(this),this._indicatorElement=e.querySelector(".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._slideListContainer=this._el.querySelector(".slide-list__container"),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?(Ao(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(ko(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],a=[];let s=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(a.push(h),this._isRtl&&u>=0)l.add(this._items[t]);else if(0===h&&0===n||0===s)s=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?s:h)-n),o.push(new Set([this._items[t]]))}else l.add(this._items[t]);s=p}}return r.push(i),a.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(D).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=a(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Fo?this.prev():n===Bo&&this.next())}_fireScrollEvent(){E(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.querySelector(".current-slide").textContent="");const t=this._el.querySelector(`.slide-list__indicator-button-container > :nth-child(${this._currentPage+1})`);t.classList.add("slide-list__indicator--selected"),t.querySelector(".current-slide").textContent=Uo("i18n_slide_list_current_slide_aria_label")}}_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"),e.setAttribute("aria-hidden","false"),setTimeout(()=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")},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(${e||0}px, ${t||0}px, 0px)`}_dispatchPageChangeEvent(){var e;E(this._el,"pagechange",{pageNumber:this._currentPage}),null===(e=this._slideListContainer)||void 0===e||e.focus()}}function Ho(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jo(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Wo(e,t,"get"))}function Go(e,t,n){return function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}(e,Wo(e,t,"set"),n),n}function Wo(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function zo(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Ko(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Vo(e,t,n){Ko(e,t),t.set(e,n)}function Xo(e,t){Ko(e,t),t.add(e)}var Yo=Object.hasOwnProperty,Jo=Object.setPrototypeOf,Qo=Object.isFrozen,$o=Object.getPrototypeOf,Zo=Object.getOwnPropertyDescriptor,ea=Object.freeze,ta=Object.seal,na=Object.create,ia="undefined"!=typeof Reflect&&Reflect,ra=ia.apply,oa=ia.construct;ra||(ra=function(e,t,n){return e.apply(t,n)}),ea||(ea=function(e){return e}),ta||(ta=function(e){return e}),oa||(oa=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 aa,sa=ma(Array.prototype.forEach),ca=ma(Array.prototype.pop),la=ma(Array.prototype.push),ua=ma(String.prototype.toLowerCase),da=ma(String.prototype.match),ha=ma(String.prototype.replace),pa=ma(String.prototype.indexOf),fa=ma(String.prototype.trim),ga=ma(RegExp.prototype.test),va=(aa=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return oa(aa,t)});function ma(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 ra(e,t,i)}}function ya(e,t){Jo&&Jo(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=ua(i);r!==i&&(Qo(t)||(t[n]=r),i=r)}e[i]=!0}return e}function Ea(e){var t=na(null),n=void 0;for(n in e)ra(Yo,e,[n])&&(t[n]=e[n]);return t}function ba(e,t){for(;null!==e;){var n=Zo(e,t);if(n){if(n.get)return ma(n.get);if("function"==typeof n.value)return ma(n.value)}e=$o(e)}return function(e){return console.warn("fallback value for",e),null}}var wa=ea(["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"]),_a=ea(["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"]),Ta=ea(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Sa=ea(["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"]),Ca=ea(["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"]),Ia=ea(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ka=ea(["#text"]),Aa=ea(["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"]),xa=ea(["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"]),Oa=ea(["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"]),La=ea(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ra=ta(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Na=ta(/<%[\s\S]*|[\s\S]*%>/gm),Pa=ta(/^data-[\-\w.\u00B7-\uFFFF]/),Da=ta(/^aria-[\-\w]+$/),Ma=ta(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ua=ta(/^(?:\w+script|data):/i),Fa=ta(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ba="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 qa(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 Ha=function(){return"undefined"==typeof window?null:window},ja=function(e,t){if("object"!==(void 0===e?"undefined":Ba(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 Ga=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ha(),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,a=t.HTMLTemplateElement,s=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,g=c.prototype,v=ba(g,"cloneNode"),m=ba(g,"nextSibling"),y=ba(g,"childNodes"),E=ba(g,"parentNode");if("function"==typeof a){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=ja(f,i),_=w?w.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,I=T.createDocumentFragment,k=T.getElementsByTagName,A=i.importNode,x={};try{x=Ea(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==x;var L=Ra,R=Na,N=Pa,P=Da,D=Ua,M=Fa,U=Ma,F=null,B=ya({},[].concat(qa(wa),qa(_a),qa(Ta),qa(Ca),qa(ka))),q=null,H=ya({},[].concat(qa(Aa),qa(xa),qa(Oa),qa(La))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,W=null,z=!0,K=!0,V=!1,X=!1,Y=!1,J=!1,Q=!1,$=!1,Z=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,ae=ya({},["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"]),se=null,ce=ya({},["audio","video","img","source","image","track"]),le=null,ue=ya({},["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,ge=!1,ve=void 0,me=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=r.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":Ba(e))||(e={}),e=Ea(e),F="ALLOWED_TAGS"in e?ya({},e.ALLOWED_TAGS):B,q="ALLOWED_ATTR"in e?ya({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?ya(Ea(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?ya(Ea(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ya({},e.FORBID_CONTENTS):ae,G="FORBID_TAGS"in e?ya({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?ya({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,z=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,$=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===me.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ve?function(e){return e}:ua,X&&(K=!1),Z&&($=!0),re&&(F=ya({},[].concat(qa(ka))),q=[],!0===re.html&&(ya(F,wa),ya(q,Aa)),!0===re.svg&&(ya(F,_a),ya(q,xa),ya(q,La)),!0===re.svgFilters&&(ya(F,Ta),ya(q,xa),ya(q,La)),!0===re.mathMl&&(ya(F,Ca),ya(q,Oa),ya(q,La))),e.ADD_TAGS&&(F===B&&(F=Ea(F)),ya(F,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=Ea(q)),ya(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ya(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=Ea(oe)),ya(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),Y&&ya(F,["html","head","body"]),F.table&&(ya(F,["tbody"]),delete G.tbody),ea&&ea(e),be=e)},Se=ya({},["mi","mo","mn","ms","mtext"]),Ce=ya({},["foreignobject","desc","title","annotation-xml"]),Ie=ya({},_a);ya(Ie,Ta),ya(Ie,Sa);var ke=ya({},Ca);ya(ke,Ia);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ua(e.tagName),i=ua(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(ke[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=ya({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},xe=function(e){la(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{la(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){la(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if($||Z)try{xe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(Q)e="<remove></remove>"+e;else{var i=da(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=ge?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),fe===pe?k.call(t,Y?"html":"body")[0]:Y?t.documentElement:a},Re=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ne=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)},Pe=function(e){return"object"===(void 0===s?"undefined":Ba(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Ba(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,i){O[e]&&sa(O[e],(function(e){e.call(n,t,i,be)}))},Me=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ne(e))return xe(e),!0;if(da(e.nodeName,/[\u0080-\uFFFF]/))return xe(e),!0;var i=Ee(e.nodeName);if(De("uponSanitizeElement",e,{tagName:i,allowedTags:F}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&ga(/<[/\w]/g,e.innerHTML)&&ga(/<[/\w]/g,e.textContent))return xe(e),!0;if("select"===i&&ga(/<template/i,e.innerHTML))return xe(e),!0;if(!F[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var a=o.length-1;a>=0;--a)r.insertBefore(v(o[a],!0),m(e))}if(!G[i]&&Fe(i)){if(j.tagNameCheck instanceof RegExp&&ga(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return xe(e),!0}return e instanceof c&&!Ae(e)?(xe(e),!0):"noscript"!==i&&"noembed"!==i||!ga(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=ha(t,L," "),t=ha(t,R," "),e.textContent!==t&&(la(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(xe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(K&&!W[t]&&ga(N,t));else if(z&&ga(P,t));else if(!q[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&ga(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&ga(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&ga(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(ga(U,ha(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==pa(n,"data:")||!se[e]){if(V&&!ga(D,ha(n,M,"")));else if(n)return!1}else;return!0},Fe=function(e){return e.indexOf("-")>0},Be=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;De("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=a.length;o--;){var c=t=a[o],l=c.name,u=c.namespaceURI;if(i=fa(t.value),r=Ee(l),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,s),i=s.attrValue,!s.forceKeepAttr&&(Oe(l,e),s.keepAttr))if(ga(/\/>/i,i))Oe(l,e);else{X&&(i=ha(i,L," "),i=ha(i,R," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),ca(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Re(t);for(De("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)De("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof o&&e(n.content),Be(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var a=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((ge=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw va("toString is not a function");if("string"!=typeof(e=e.toString()))throw va("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Ba(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!F[h]||G[h])throw va("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(c=(a=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!$&&!X&&!Y&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(a=Le(e)))return $?null:ee?_:""}a&&Q&&xe(a.firstChild);for(var p=Re(ie?e:a);l=p.nextNode();)3===l.nodeType&&l===u||Me(l)||(l.content instanceof o&&qe(l.content),Be(l),u=l);if(u=null,ie)return e;if($){if(Z)for(d=I.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=Y?a.outerHTML:a.innerHTML;return X&&(f=ha(f,L," "),f=ha(f,R," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){be=null,J=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],la(O[e],t))},n.removeHook=function(e){O[e]&&ca(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Wa={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function za(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...Wa};r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Ga.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Ka="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Va=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Xa=["b","del","em","i","s","strong","sub","sup"],Ya=Xa.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"]),Ja=[Ka,"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 Qa(){}var $a,Za,es=(Za=/[&<>"'\u0000\\=]/g,$a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Za,(function(e){return $a[e]}))}),ts=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,a){return r?(s=r,i.hasOwnProperty(s)?i[s]:(e.innerHTML="&"+s+";",c=e[Va],i[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var ns=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function is(e){return/[<&]/.test(e)}var rs,os=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=ns(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",os(e,(function(e,a){t=e.tags||Ya,n=e.attrs||Ja,i=e.checkUrlAttrs||!1,0!==a&&(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 ss(e){return as({tags:e=e||Ya,checkUrlAttrs:!0})}function cs(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!ss(n).test(e):i?!cs.R_UNSAFE_CUSTOM_ELEMENT.test(e):!cs.R_UNSAFE_HTML.test(e)}function ls(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function us(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 Qa||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?es(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return is(i)&&!cs(i,n)&&(i=ls(i),mo("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ds(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}cs.R_UNSAFE_HTML=ss(),cs.R_UNSAFE_CUSTOM_ELEMENT=as([{tags:Ya,checkUrlAttrs:!0},{tags:[(rs={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Ka,rs.attrs].join("|"),checkUrlAttrs:!1}]);var hs={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,"",""]};hs.optgroup=hs.option,hs.tbody=hs.tfoot=hs.colgroup=hs.caption=hs.thead,hs.th=hs.td;var ps=/<([\w:]+)/;function fs(e,t){var n,i,r,o,a,s,c,l=t.createDocumentFragment(),u=[];for(a=0,c=e.length;a<c;a++)if((o=e[a])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(ps.exec(o)||["",""])[1].toLowerCase(),ms(r,(i=hs[n]||hs._default)[1]+o+i[2]),s=i[0];s--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ds(u,r.childNodes),(r=l.firstChild).textContent=""}else ds(u,o.nodeType?[o]:o);for(l.textContent="",o=u[a=0];o;)l.appendChild(o),o=u[++a];return l}var gs=us,vs=us;function ms(e,t,n){var i=us(t,n);return is(i)?e.innerHTML=i:e[Va]=i,i}function ys(e,t){if(!(this instanceof ys))return new ys(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}ys.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Qa,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(cs(e,this._options)||(n=e,e=ls(e),mo("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var Es={ALLOWED_TAGS:Ya,FORMATTING_TAGS:Xa,htmlEncode:es,htmlUnencode:ts,log:mo,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="",a=n.length;return e&&e.forEach((function(e,t){o+=e,t<a&&(r=n[t],o+=r instanceof ys?r:es(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=fs([e],t);else{if(!ns(e))return e;n=fs(e,t)}return ds([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:gs,reEncode:function(e){return es(ts(e))},_redirector:So,redirect:function(e){const t=To(e);t===e&&So.redirect(t)},sanitizeHTML:vs,sanitizeUrl:To,setElementContent:ms,text:function(e){return mo("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),es(e)},unsafe:function(e){return e},UnsafeString:ys};function bs(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")||t){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=".toast",_s=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Ts{constructor(){let{removeToastCallback:e=(()=>{}),visibleToastCallback:t=(()=>{}),customToastSelector:n=ws}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=document.getElementById("toasts");if(!i)throw new Error("No toasts element");this._el=i,this._position=i.getAttribute("type"),this.visibleToastCallback=t,this.removeToastCallback=e,this.bindEvents(n)}trigger(e,t,n,i){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e||!Object.values(_s).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 o=n?`${n}_toast-${e}`:"toast-"+e,a=this._createToastEl(e,t,o,i);return this._addToast(a,r)}clearAllToasts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ws;let t=this._el.querySelectorAll(e);Array.from(t).forEach(e=>{this._removeToast(e)})}bindEvents(e){this._el.addEventListener("click",t=>{const n=a(t.target,".toast__dismiss-btn");if(n){const t=a(n,e);t&&this._removeToast(t)}})}_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),a=document.querySelector("#toast-icon-"+e).content.firstElementChild.cloneNode(!0);if(!r||!a)throw new Error("Toast templates are missing");r.classList.add("toast--"+e),r.setAttribute("type",e);const s=r.querySelector(".toast__message");s.insertBefore(a,s.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name",n+"_dismiss");const c=r.querySelector(".toast__message-content");let l="text-color-text-neutral";if(e===_s.CAUTION?l="text-color-text-caution":e===_s.ERROR?l="text-color-text-negative":e===_s.SUCCESS&&(l="text-color-text-positive"),c.classList.add(l),za(c,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(o(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(l),e.append(t)}return r}_addToast(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._el.appendChild(e);const n=this._el.querySelector(".toast__message");return this._hasToast()&&(this._el.classList.remove("invisible"),this._el.classList.add("animate")),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),t&&bs(n)}),this.TOAST_ADD_TIMEOUT),setTimeout(()=>{this._refreshLazyLoader()},400),this.visibleToastCallback(),e}_removeToast(e){let t=this._el;e.classList.add("toast--hidden"),setTimeout(()=>{e.remove(),this._hasToast()||(t.classList.add("invisible"),t.classList.remove("animate")),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()})}}Ho(Ts,"TOAST_TYPES",_s),Ho(Ts,"TOAST_ADD_TIMEOUT",500);const Ss={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Ss).map(e=>Ss[e]);const Cs=["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(Cs,"i");const Is=Object.freeze({VERTICAL:"4:5",HORIZONTAL:"16:9",SQUARED:"1:1"});var ks=new WeakMap,As=new WeakMap,xs=new WeakMap,Os=new WeakMap,Ls=new WeakSet,Rs=new WeakSet,Ns=new WeakMap,Ps=new WeakSet,Ds=new WeakMap,Ms=new WeakMap;class Us{get shouldAutoplay(){return jo(this,ks).hasAttribute("data-is-autoplay-enabled")}get shouldAutoloop(){return this.shouldAutoplay&&jo(this,ks).hasAttribute("data-is-autoloop-enabled")}get isVideoSponsored(){return jo(this,ks).hasAttribute("data-is-video-sponsored")}get autoPlayExposeRatio(){return this.isVideoSponsored?.5:.25}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,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.IntersectionObserver;Xo(this,Ps),Xo(this,Rs),Xo(this,Ls),Vo(this,ks,{writable:!0,value:void 0}),Vo(this,As,{writable:!0,value:void 0}),Vo(this,xs,{writable:!0,value:0}),Vo(this,Os,{writable:!0,value:0}),Vo(this,Ns,{writable:!0,value:(e,t)=>{const{autoPlayExposeRatio:n}=this,i=e=>e.forEach(e=>{e.intersectionRatio>=n?jo(this,Ds).call(this):jo(this,Ms).call(this)}),r={threshold:n};e&&t&&(this.intersectionObserverInstance&&this.intersectionObserverInstance.disconnect(),this.intersectionObserverInstance=new e(i,r),this.intersectionObserverInstance.observe(t))}}),Vo(this,Ds,{writable:!0,value:()=>{var e;null===(e=jo(this,As))||void 0===e||e.play()}}),Vo(this,Ms,{writable:!0,value:()=>{var e;null===(e=jo(this,As))||void 0===e||e.pause(),Go(this,Os,0)}});const{sources:o,posterUrl:a,digitalmediaAssetUrn:s,trackingId:c,captionsUrl:l,aspectRatio:u,adaptiveAspectRatio:d}=e.dataset,h=o?JSON.parse(o):[],p=parseFloat(e.getAttribute("currentTime"));if(!h.length&&!s)throw new Error("Please pass video sources in correct Array string format inside data-sources attribute");if(e.hasAttribute("autoplay")&&(t.autoplay=!0),u&&d){const e=function(e){return"number"!=typeof(e=parseFloat(e))||isNaN(e)||e<=0?null:e<1?Is.VERTICAL:e>1?Is.HORIZONTAL:Is.SQUARED}(u);e&&(t.aspectRatio=e)}Go(this,ks,e),this._mediaPlayerInstancePromise=this._createPlayer(e,c,s,t,i).then(e=>(a&&e.poster(a),h.length>0&&e.src(h),l&&e.addRemoteTextTrack({kind:"captions",label:"English",srclang:"en",mode:"hidden",src:l}),p&&e.currentTime(p),this._bindTracking(e,n),e)),this._mediaPlayerInstancePromise&&(this._setupAutoPlayPromise=zo(this,Ls,Fs).call(this,r))}_createPlayer(e,t,n,i,r){return r.then(e=>e.getLazyLoadedJavascriptModule("media-player")).then(r=>{const{createPlayer:o}=r,a=i.plugins&&i.plugins.rum&&i.plugins.rum.mediaHeader&&i.plugins.rum.mediaHeader.mediaSource||"ugc",s={errorDisplay:!1,controlBar:{fullscreenToggle:!0,backToStartButton:!0,captionsToggle:{selected:!0}},plugins:{posterBackground:!0},...i};s.plugins.tracking={mediaUrn:n,trackingId:t},s.plugins.controlInteraction={},s.plugins.rum={mediaUrn:n,trackingId:t,mediaHeader:{mediaSource:a}},s.plugins.a11yNotification={enabled:!0},e.closest("[data-is-sponsored]")&&(s.plugins.moat={pageContext:"FEED"});const c=o(e,s);return this._initializeCaptionBehavior(c),this._initializeInplayerCtaBanner(c),c})}_bindTracking(e,t){t.then(t=>{const n=this._getMediaPlayerTrackingEventHandler(t);e.tracking().on("track",n),e.rum().on("track",n),e.controlInteraction().on("track",(e,n)=>{let{controlName:i}=n;t.fireControlInteractionEvent(i)})})}_getMediaPlayerTrackingEventHandler(e){return function(t,n){let{eventName:i,eventData:r}=n,o={header:{},requestHeader:{},...r};delete o.name,delete o.plugin,delete o.instance,o.requestHeader.pageKey||(o.requestHeader.pageKey=S(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}getSetupAutoPlayPromise(){return this._setupAutoPlayPromise}_initializeInplayerCtaBanner(e){var t;const n=e.el(),i=(null==n?void 0:n.closest(".share-native-video"))||(null===(t=jo(this,ks))||void 0===t?void 0:t.closest(".share-native-video"));if(!i)return;const r=i.querySelector(".inplayer-cta-banner");if(!r)return;n&&!n.contains(r)&&n.appendChild(r);const o=()=>{const t=e.el();if(!t)return;const n=t.classList.contains("vjs-user-inactive"),i=!e.paused()&&!e.ended()&&n;r.style.bottom=i?"16px":"64px"};e.on("fullscreenchange",()=>{e.isFullscreen()?(r.classList.remove("hidden"),o()):r.classList.add("hidden")}),e.on("userinactive",o),e.on("useractive",o),e.on("pause",o),e.on("ended",o)}_initializeCaptionBehavior(e){var t,n;const i=null==e||null===(t=e.el())||void 0===t?void 0:t.querySelector("video");if(!i)return;const r=e=>{e.mode="hidden"===e.mode?"showing":"hidden",e.isUserEnabled="showing"===e.mode};Array.from(i.textTracks).forEach(r),i.textTracks.onaddtrack=e=>r(e.track),null===(n=e.controlBar.captionsToggle)||void 0===n||n.on("click",()=>{Array.from(i.textTracks).forEach(r)})}}function Fs(e){return this.getPlayerPromise().then(t=>{Go(this,As,t),this.shouldAutoplay&&(t.muted(!0),jo(this,Ns).call(this,e,t.el()),zo(this,Ps,qs).call(this)),this.shouldAutoloop&&zo(this,Rs,Bs).call(this,t)})}function Bs(e){e.on("durationchange",()=>{var t;const n=null===(t=e.duration)||void 0===t?void 0:t.call(e);isNaN(n)||Go(this,xs,n)}),e.on("ended",()=>{Go(this,Os,jo(this,Os)+jo(this,xs)),jo(this,xs)&&jo(this,Os)<30&&e.play()})}function qs(){this.document&&this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState?jo(this,Ds).call(this):jo(this,Ms).call(this)})}new Uint8Array(16);const Hs=[];for(let e=0;e<256;++e)Hs.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function js(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:i={},...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=S(document);if(!o)throw new Error("Missing pageKey for graphQL request from browser");return W(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:i,pageKey:o}),...r})}class Gs{constructor(e,t){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return js({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class Ws extends Gs{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:Ws.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})}}Ho(Ws,"query","2849bb08e3a3bbd23c96c0e758c018b7");class zs extends Gs{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:zs.query,variables:{url:e},successCallback:t,failureCallback:n})}}Ho(zs,"query","bece320b5f70fe4357082fe84eca6c56");class Ks extends vo{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:a,pageKey:s}=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:a,pageKey:s}),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==="overlay_"+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","#overlay_"+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);S(document);String.fromCharCode(32);const Vs=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,Xs=/(.)\1{3}/,Ys=/linkedin/i,Js=/\d\d/,Qs=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]+)?(/.*)?"),$s=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Zs=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,ec=/^[ぁ-ゔゞ゛゜ー]*$/,tc=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,nc=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},ic=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},rc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Js.test(e)};rc.errorMessagePrefix="i18n_noConsecutiveDigits_";const oc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Vs.test(e)};oc.errorMessagePrefix="i18n_noForbiddenCharacters_";const ac=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Xs.test(e)};ac.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const sc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Ys.test(e)};sc.errorMessagePrefix="i18n_noLinkedIn_";const cc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Qs.test(e)};cc.errorMessagePrefix="i18n_noUrl_";const lc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Zs.test(e)};lc.errorMessagePrefix="i18n_onlyChinese_";const uc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ec.test(e)};uc.errorMessagePrefix="i18n_onlyPhonetic_";const dc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};dc.errorMessagePrefix="i18n_required_";const hc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $s.test(e)};hc.errorMessagePrefix="i18n_invalidFormat_";const pc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return tc.test(e)};pc.errorMessagePrefix="i18n_invalidFormat_";const fc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $s.test(e)||tc.test(e)};fc.errorMessagePrefix="i18n_invalidFormat_";const gc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};gc.errorMessagePrefix="i18n_required_";const vc=[nc(50),oc,rc,ac,sc,cc],mc=[dc].concat(vc),yc=[uc,nc(50),ac];nc(4),ic(2),nc(128),nc(128),nc(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(hc),ic(6),nc(200);!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 Ec="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",bc={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},wc={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},_c={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},Tc={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},Sc={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:Cc,GOOGLE_USER_FETCHED:Ic,INITIALIZED:kc}=bc,{INITIALIZATION:Ac,AUTHENTICATION:xc}=wc;EventTarget;const{GOOGLE_USER_FETCHED:Oc,PROMPT_MOMENT:Lc,GOOGLE_ERROR:Rc}=bc;EventTarget;var Nc={exports:{}};function Pc(e){this.message=e}Pc.prototype=new Error,Pc.prototype.name="InvalidCharacterError";var Dc="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Pc("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};var Mc=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(Dc(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 Dc(t)}};function Uc(e){this.message=e}Uc.prototype=new Error,Uc.prototype.name="InvalidTokenError",Nc.exports=function(e,t){if("string"!=typeof e)throw new Uc("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Mc(e.split(".")[n]))}catch(e){throw new Uc("Invalid token specified: "+e.message)}},Nc.exports.InvalidTokenError=Uc;Nc.exports;const{GOOGLE_USER_FETCHED:Fc,PROMPT_MOMENT:Bc,GOOGLE_ERROR:qc}=bc;EventTarget;const Hc={CLIENT_ID:Ec,EVENTS:bc,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:wc,GSI_ERROR_MESSAGES:{INIT_FAILED:"idpiframe_initialization_failed",POPUP_CLOSED_BY_USER:"popup_closed_by_user",ACCESS_DENIED:"access_denied",IMMEDIATE_FAILED:"immediate_failed"},GSI_SELECT_BY:{AUTO:"auto",USER:"user",FEDCM:"fedcm",FECM_AUTO:"fecm_auto",USER_1TAP:"user_1tap",USER_2TAP:"user_2tap",BTN:"btn",BTN_CONFIRM:"btn_confirm",BTN_ADD_SESSION:"btn_add_session",BTN_CONFIRM_ADD_SESSION:"btn_confirm_add_session",ITP_ADD_SESSION:"itp_add_session"},GOT_CONTEXTS:_c,GOT_PROMPT_MOMENT_REASONS:Sc,GOT_PROMPT_MOMENT_TYPES:Tc},{GOT_PROMPT_MOMENT_REASONS:jc,GOT_PROMPT_MOMENT_TYPES:Gc}=Hc;const{EVENTS:{GOOGLE_ERROR:Wc,GOOGLE_USER_FETCHED:zc,INITIALIZED:Kc,PROMPT_MOMENT:Vc},GOT_PROMPT_MOMENT_REASONS:Xc,GOT_PROMPT_MOMENT_TYPES:Yc}=Hc;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);const Jc="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var Qc;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(Qc||(Qc={}));const $c=new Set(Object.values(Qc));class Zc extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Zc.prototype)}}function el(e){return 0===e.length||!e.trim()}function tl(e){if("string"!=typeof e)throw new Zc(`Keys must be strings. ${Jc}.`);if(el(e))throw new Zc(`Keys should not be blank. ${Jc}.`);if(/[^a-z0-9-]/.test(e))throw new Zc(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Jc}.`);return e}class nl{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=tl(e),this._defaultDegradationKey=tl(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new Zc(`DegradationTrackingMetadata options should be an object. ${Jc}.`);const a=n.productName;a&&(this._productName=function(e){if("string"!=typeof e)throw new Zc(`The product name must be a string. ${Jc}.`);if(el(e))throw new Zc(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Jc}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new Zc(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Jc}.`);return e}(a));const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!function(e,t){const n=(e,t)=>{if("number"!=typeof(n=e)||!isFinite(n)||Math.floor(n)!==n||e<=0||e>999)throw new Zc(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Jc}.`);var n;if(429===e||999===e)throw new Zc(`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 ${t} options.`);if(t===Qc.NonDegradedResponseCodes&&e>=400&&e<500)throw new Zc(`For server responses that have a status code, PEM does not consider 4xx as degraded. ${e} is not considered a degradation unless you explicitly add it to the ${Qc.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${Qc.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`)};if(void 0!==e&&!Array.isArray(e))throw new Zc(`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 ${Qc.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`);if(void 0!==t&&!Array.isArray(t))throw new Zc(`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 ${Qc.AdditionalDegradedResponseCodes} option. ${Jc}.`);null==e||e.forEach(e=>n(e,Qc.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,Qc.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new Zc(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Jc}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach(e=>{if(!$c.has(e))throw new Zc(`An unsupported degradation tracking option '${e}' was provided. Please fix or remove it. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions`)})}(n)}static isDegradationTrackingMetadata(e){return null!=e&&Object.getOwnPropertyNames(nl.prototype).every(t=>Object.hasOwnProperty.call(Object.getPrototypeOf(e),t))}get featureKey(){return this._featureKey}get defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}var il=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},rl=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),ol=function(){function e(){il(this,e),this.EventType={};this.EventType[this.EventType.DomContentLoaded=0]="DomContentLoaded";this.EventType[this.EventType.Load=1]="Load";this.EventType[this.EventType.FullSnapshot=2]="FullSnapshot";this.EventType[this.EventType.IncrementalSnapshot=3]="IncrementalSnapshot";this.EventType[this.EventType.Meta=4]="Meta";this.EventType[this.EventType.Global=5]="Global",this.IncrementalSource={};this.IncrementalSource[this.IncrementalSource.MouseMove=1]="MouseMove";this.IncrementalSource[this.IncrementalSource.MouseInteraction=2]="MouseInteraction";this.IncrementalSource[this.IncrementalSource.Scroll=3]="Scroll";this.IncrementalSource[this.IncrementalSource.ViewportResize=4]="ViewportResize";this.IncrementalSource[this.IncrementalSource.Input=5]="Input";this.IncrementalSource[this.IncrementalSource.TouchMove=6]="TouchMove",this.MouseInteractions={};this.MouseInteractions[this.MouseInteractions.MouseUp=0]="MouseUp";this.MouseInteractions[this.MouseInteractions.MouseDown=1]="MouseDown";this.MouseInteractions[this.MouseInteractions.Click=2]="Click";this.MouseInteractions[this.MouseInteractions.ContextMenu=3]="ContextMenu";this.MouseInteractions[this.MouseInteractions.DblClick=4]="DblClick";this.MouseInteractions[this.MouseInteractions.Focus=5]="Focus";this.MouseInteractions[this.MouseInteractions.Blur=6]="Blur";this.MouseInteractions[this.MouseInteractions.TouchStart=7]="TouchStart";this.MouseInteractions[this.MouseInteractions.touchEnd=8]="touchEnd",this.isCtrlDown=!1}return rl(e,[{key:"_assign",value:function(){var e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};return e.apply(this,arguments)}},{key:"_spread",value:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(arguments[t]);return e}},{key:"hookSetter",value:function(e,t,n,i){var r=Object.getOwnPropertyDescriptor(e,t),o=this;return Object.defineProperty(e,t,i?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),r&&r.set&&r.set.call(t,e)}}),function(){return o.hookSetter(e,t,r||{},!0)}}},{key:"on",value:function(e,t,n){null==n&&(n=document);var i={capture:!0,passive:!0};return n.addEventListener(e,t,i),function(){return n.removeEventListener(e,t,i)}}},{key:"throttle",value:function(e,t,n){null==n&&(n={});var i=null,r=0;return function(o){var a=Date.now();r||!1!==n.leading||(r=a);var s=t-(a-r),c=this,l=arguments;s<=0||s>t?(i&&(window.clearTimeout(i),i=null),r=a,e.apply(c,l)):i||!1===n.trailing||(i=window.setTimeout((function(){r=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),s))}}},{key:"getWindowHeight",value:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}},{key:"getWindowWidth",value:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}},{key:"isTouchEvent",value:function(e){return Boolean(e.changedTouches)}},{key:"polyfill",value:function(){"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}},{key:"convertObjectChildrenToString",value:function(e){var t={};return e&&Object.keys(e).forEach((function(n){try{e[n]&&(t[n]=e[n].toString())}catch(e){}})),t}},{key:"initKeyboardObserver",value:function(e){var t=this;function n(e){(void 0===e.key||"meta"!==e.key.toLowerCase()&&"control"!==e.key.toLowerCase())&&(void 0===e.keyCode||91!==e.keyCode&&17!==e.keyCode)||(t.isCtrlDown=!1)}function i(n){var i=!1,r=!1,o=!1;if(t.isCtrlDown)if(void 0!==n.key){var a=n.key.toLowerCase();"x"===a&&(i=!0),"c"===a?r=!0:"v"===a&&(o=!0)}else void 0!==n.keyCode&&(88===keyPressed&&(i=!0),67===keyPressed?r=!0:86===keyPressed&&(o=!0));else(void 0===n.key||"meta"!==n.key.toLowerCase()&&"control"!==n.key.toLowerCase())&&(void 0===n.keyCode||91!==n.keyCode&&17!==n.keyCode)||(t.isCtrlDown=!0);var s=n.target.classList;void 0===s&&(s={}),s=JSON.parse(JSON.stringify(s)),e({inputClassList:s,isCut:i,isCopy:r,isPaste:o})}var r=["keydown","keyup"].map((function(e){return"keydown"===e?t.on(e,i):t.on(e,n)})),o=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),a=[[HTMLInputElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return o&&o.set&&r.push.apply(r,t._spread(a.map((function(e){return t.hookSetter(e[0],e[1],{set:function(){eventHandler({target:this})}})})))),function(){r.forEach((function(e){return e()}))}}},{key:"initMoveObserver",value:function(e,t){var n=[],i=void 0,r=this,o=r.throttle((function(t){var o=Date.now()-i;e(n.map((function(e){return e.timeOffset-=o,e})),t?r.IncrementalSource.TouchMove:r.IncrementalSource.MouseMove),n=[],i=null}),500),a=r.throttle((function(e){var t=r.isTouchEvent(e)?e.changedTouches[0]:e,a=t.clientX,s=t.clientY;i||(i=Date.now()),n.push({x:a,y:s,timeOffset:Date.now()-i}),o(r.isTouchEvent(e))}),t,{trailing:!1}),s=[r.on("mousemove",a),r.on("touchmove",a)];return function(){s.forEach((function(e){return e()}))}}},{key:"initMouseInteractionObserver",value:function(e){var t=this,n=[];return Object.keys(t.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")})).forEach((function(i){var r=i.toLowerCase(),o=function(n){return function(i){var r=t.isTouchEvent(i)?i.changedTouches[0]:i,o=r.clientX,a=r.clientY;e({type:t.MouseInteractions[n],x:o,y:a})}}(i);n.push(t.on(r,o))})),function(){n.forEach((function(e){return e()}))}}},{key:"initScrollObserver",value:function(e){var t=this.throttle((function(t){if(t.target)if(t.target===document){var n=document.scrollingElement||document.documentElement;e({x:n.scrollLeft,y:n.scrollTop})}else e({x:t.target.scrollLeft,y:t.target.scrollTop})}),100);return this.on("scroll",t)}},{key:"initViewportResizeObserver",value:function(e){var t=this,n=t.throttle((function(){var n=t.getWindowHeight(),i=t.getWindowWidth();e({width:Number(i),height:Number(n)})}),200);return this.on("resize",n,window)}},{key:"mergeHooks",value:function(e,t){var n=this,i=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb;e.mousemoveCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mousemove&&t.mousemove.apply(t,n._spread(e)),i.apply(null,n._spread(e))},e.mouseInteractionCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.mouseInteraction&&t.mouseInteraction.apply(t,n._spread(e)),r.apply(null,n._spread(e))},e.scrollCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.scroll&&t.scroll.apply(t,n._spread(e)),o.apply(null,n._spread(e))},e.viewportResizeCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.viewportResize&&t.viewportResize.apply(t,n._spread(e)),a.apply(null,n._spread(e))},e.inputCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.input&&t.input.apply(t,n._spread(e)),s.apply(null,n._spread(e))}}},{key:"initObservers",value:function(e,t){null==t&&(t={}),this.mergeHooks(e,t);var n=this.initMoveObserver(e.mousemoveCb,e.mousemoveWait),i=this.initMouseInteractionObserver(e.mouseInteractionCb),r=this.initScrollObserver(e.scrollCb),o=this.initViewportResizeObserver(e.viewportResizeCb),a=this.initKeyboardObserver(e.keyboardCb);return function(){n(),i(),r(),o(),a()}}},{key:"wrapEvent",value:function(e){return this._assign(this._assign({},e),{timestamp:Date.now()})}},{key:"record",value:function(e){null==e&&(e={});var t=e.emit,n=e.checkoutEveryNms,i=e.hooks,r=50;if(void 0!==e.mousemoveWait&&(r=e.mousemoveWait),!t)throw new Error("emit function is required");this.polyfill();var o=void 0,a=this;function s(e,i){if(t(e,i),e.type===a.EventType.FullSnapshot)o=e;else if(e.type===a.EventType.IncrementalSnapshot){n&&e.timestamp-o.timestamp>n&&c(!0)}}function c(e){null==e&&(e=!1),s(a.wrapEvent({type:a.EventType.Meta,data:{href:window.location.href,width:a.getWindowWidth(),height:a.getWindowHeight()}}),e),s(a.wrapEvent({type:a.EventType.FullSnapshot,data:{node:{type:"Document"},initialOffset:{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}})),s(a.wrapEvent({type:a.EventType.Global,data:{globalValues:a.convertObjectChildrenToString(window)}}))}try{var l=[];l.push(a.on("DOMContentLoaded",(function(){s(a.wrapEvent({type:a.EventType.DomContentLoaded,data:{}}))})));var u=function(){c(),l.push(a.initObservers({mousemoveCb:function(e,t){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.MouseInteraction},e)}))},scrollCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Scroll},e)}))},viewportResizeCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.ViewportResize},e)}))},keyboardCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Input},e)}))},mousemoveWait:r},i))};return"interactive"===document.readyState||"complete"===document.readyState?u():l.push(a.on("load",(function(){s(a.wrapEvent({type:a.EventType.Load,data:{}})),u()}),window)),function(){l.forEach((function(e){return e()}))}}catch(e){console.log(e)}}}]),e}(),al=function(){function e(){il(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return rl(e,[{key:"getBaseValue",value:function(e,t){if(!this.t[e]){this.t[e]={};for(var n=0;n<e.length;n++)this.t[e][e.charAt(n)]=n}return this.t[e][t]}},{key:"compressToBase64",value:function(e){if(null===e)return"";var t=this,n=this._compress(e,6,(function(e){return t.n.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}}},{key:"decompressFromBase64",value:function(e){if(null===e)return"";if(""===e)return null;var t=this;return this._decompress(e.length,32,(function(n){return t.getBaseValue(t.n,e.charAt(n))}))}},{key:"compress",value:function(e){var t=this;return this._compress(e,16,(function(e){return t.f(e)}))}},{key:"_compress",value:function(e,t,n){if(null===e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v===t-1){f.push(n(g));break}v++}return f.join("")}},{key:"decompress",value:function(e){return null===e?"":""===e?null:this._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))}},{key:"_decompress",value:function(e,t,n){var i=[],r=4,o=4,a=3,s="",c=[],l=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,v={val:n(0),position:t,index:1};for(l=0;l<3;l+=1)i[l]=l;for(d=0,p=Math.pow(2,2),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 2:return""}for(i[3]=g,u=g,c.push(g);;){if(v.index>e)return"";for(d=0,p=Math.pow(2,a),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(g=d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 2:return c.join("")}if(0===r&&(r=Math.pow(2,a),a++),i[g])s=i[g];else{if(g!==o)return null;s=u+u.charAt(0)}c.push(s),i[o++]=u+s.charAt(0),u=s,0===--r&&(r=Math.pow(2,a),a++)}}}]),e}(),sl=function(){function e(){il(this,e),this.PREFIX="dcts-",this.CPR=new al}return rl(e,[{key:"compressAndSplitEvent",value:function(e){if(null==e)return[];var t=this.CPR.compressToBase64(JSON.stringify(e)),n=Math.floor(t.length/3)+1;return t.match(new RegExp(".{1,"+n+"}","g"))}},{key:"processTelemetry",value:function(e,t,n){var i=this.compressAndSplitEvent(e);if(null!=i){for(var r={},o=0;o<i.length;o++)r[this.PREFIX+o]=i[o];return r["x-f-uc"]=t,r.csrf_token=n,JSON.stringify(r)}return null}},{key:"getParamPrefix",value:function(){return this.PREFIX}}]),e}();!function(){function e(){il(this,e),this.processor=new sl,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new ol,this.workerThread=null,this.events=[]}rl(e,[{key:"init",value:function(e,t,n,i,r,o){var a=this;if(this.isExist(o)&&""!==o&&window.Worker){var s=this.convertWorkerUrl(o);null!==s&&(this.workerThread=new Worker(s),this.workerThread.onmessage=function(t){a.sendTelemetry(t.data,e)})}this.isExist(e)||(e=this.DEFAULT_URL);var c=0,l=6;null===i||isNaN(i)||(l=i);var u=this.timestone.record({emit:function(n,i){i&&a.events.length>0&&c<l?(a.collect(e,t,a.events,r),c+=1,a.events.splice(0,a.events.length)):c>=l&&(u(),a.isExist(a.workerThread)&&a.workerThread.terminate()),a.events.push(n)},checkoutEveryNms:n})}},{key:"collect",value:function(e,t,n,i){if(this.isExist(i)||(i=""),this.isExist(t)||(t="undefined-uc"),this.isExist(this.workerThread))this.workerThread.postMessage({events:n,useCase:t,csrfToken:i});else{var r=this.processor.processTelemetry(n,t,i);null!==r&&this.sendTelemetry(r,e)}}},{key:"collectFinalTelemetry",value:function(e,t,n){if(this.isExist(e)||(e=this.DEFAULT_URL),this.isExist(n)||(n=""),this.isExist(t)||(t="undefined-uc"),this.events.length>0)if(navigator.sendBeacon&&this.isExist(FormData)){var i=new FormData;i.append("x-f-uc",t),i.append("csrf_token",n);for(var r=this.processor.compressAndSplitEvent(this.events),o=0;o<r.length;o++)i.append(this.processor.getParamPrefix()+o,r[o]);navigator.sendBeacon(e,i)}else this.collect(e,t,this.events,"")}},{key:"sendTelemetry",value:function(e,t){var n=new XMLHttpRequest;n.open("POST",t),n.setRequestHeader("Content-Type","application/json"),n.send(e)}},{key:"isExist",value:function(e){return null!=e}},{key:"convertWorkerUrl",value:function(e){var t="https://"+window.location.host;if(0===e.indexOf(t)||0===e.indexOf("/"))return e;if(-1===e.indexOf(t)){var n=e.split(".com/");if(2===n.length)return"/"+n[1]}return null}}])}();const{EVENTS:cl,GOT_CONTEXTS:ll,GOT_PROMPT_MOMENT_TYPES:ul}=Hc,{GOOGLE_USER_FETCHED:dl,PROMPT_MOMENT:hl}=cl;function pl(){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 fl(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 gl(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}pl(),fl(3),gl(128),pl(),fl(6),gl(400);var vl="undefined"!=typeof window&&window||e;function ml(e,t){(null==t||t>e.length)&&e.length;for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function yl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function El(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,Tl(i.key),i)}}function bl(e,t,n){return t&&El(e.prototype,t),n&&El(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wl(e,t,n){return(t=Tl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _l(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,a,s=[],c=!0,l=!1;try{if(n.call(e).next,0===t){if(Object(n)!==n)return;!1}else for(;!o.call(n).done&&(s.push(i.value),s.length!==t);!0);}catch(e){!0,e}finally{try{if(!c&&null!=n.return&&(n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ml(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&e.constructor.name,"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ml(e,t):void 0}}(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 Tl(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Sl(e){return(Sl="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 Cl=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Il=/^fs_/;function kl(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+Sl(e)+".");var t,n,i=Cl.exec(e);return i&&(t=i[1].replace(Il,""),n=i[2]),{id:n,type:t}}var Al=/(?![^(]*\)),/;var xl={checkForEntityId:function(e){var t=Cl.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:kl,urnToObject:function e(t){var n=kl(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Al),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}};var Ol={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Ll="GUEST",Rl="MEMBER",Nl="ENTERPRISE_UNBOUND",Pl=0,Dl=1,Ml=2;wl(wl(wl({},Ll,"li_gc"),Rl,"li_mc"),Nl,"li_ec");wl(wl(wl({},Ll,"mypreferences/g/guest-cookies"),Rl,"settings/member-cookies"),Nl,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var Ul,Fl,Bl,ql,Hl=bl((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 yl(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Ol)t[o]=t[o]||Pl,t[o]!==Pl&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Dl||t[o]===Pl&&r===Dl})),jl=(Ul=[Ol.ADVERTISING,Ol.ANALYTICS_AND_RESEARCH,Ol.FUNCTIONAL],Fl=[Pl,Dl,Ml,Pl],Bl=function(e){for(var t={},n=0;n<Ul.length;n++)t[Ul[n]]=Fl[e>>2*n&3];return t},ql=function(e){var t=Pl;return e>=0&&e<=3&&(t=Fl[e]),t},new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),Gl=0,Wl=1;bl((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,i=void 0===n?null:n,r=t.issuedAt,o=void 0===r?null:r,a=t.defaultConsent,s=void 0===a?Gl:a;for(var c in yl(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},jl)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===Wl}));vl.utag_data||(vl.utag_data={});const zl="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;vl.utag_cfg_ovrd=vl.utag_cfg_ovrd||{},vl.trackingEventDebugData=vl.trackingEventDebugData||[],vl.utag_cfg_ovrd.noview=!0,vl.utag_cfg_ovrd.nocookie=!0;zl&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(vl.navigator.userAgent);const{GOOGLE_USER_FETCHED:Kl,GOOGLE_ERROR:Vl,INITIALIZED:Xl}=Hc.EVENTS,{INITIALIZATION:Yl}=Hc.GSI_ERROR_TYPES;const Jl={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Ql{constructor(e,t){let{threshold:n=.9,root:i=null,rootMargin:r="0px",componentList:o=[],impressionEventCallback:a=(()=>{}),onImpression:s=(()=>{}),onObservation:c=(()=>{}),onUnobservation:l=(()=>{})}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("IntersectionObserver"in window))return Jl;this.root=i,this.threshold=n,this.rootMargin=r,this.trackingInstance=t,this.impressionEventCallback=a,this._onImpression=s,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 $l(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Zl(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 eu(e,t){return Math.round(e-t)}var tu,nu=(tu=function(e,t){return(tu=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}tu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),iu=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}(),ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nu(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(iu),ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nu(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(iu),au=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nu(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}(iu),su=function(){return 0},cu=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),lu=cu&&!!window.requestAnimationFrame,uu={hasDOM:cu,hasRAF:lu,getScrollTop:su,getScrollLeft:su,getHeight:su,getWidth:su,rAF:lu?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:su,get isDirty(){return uu.version!==uu.lastVersion},document:window.document,IntersectionObserver:cu&&window.IntersectionObserver,performance:cu&&window.performance};function du(){++uu.version}function hu(){var e=null!=document.scrollingElement;uu.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},uu.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}cu&&(uu.getHeight=function(){return window.innerHeight},uu.getWidth=function(){return window.innerWidth},uu.updateMeta=function(){uu.meta.height=uu.getHeight(),uu.meta.width=uu.getWidth(),uu.meta.scrollLeft=uu.getScrollLeft(),uu.meta.scrollTop=uu.getScrollTop(),uu.lastVersion=uu.version},uu.updateMeta(),"loading"!==document.readyState?hu():document.addEventListener("DOMContentLoaded",hu),window.addEventListener("resize",du,!1),window.addEventListener("scroll",du,!1));var pu=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,uu.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}(),fu=null;var gu=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)}}(),vu="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),mu=0,yu=function(){function e(e,t,n,i,r,o,a,s,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=a,this.y=s,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 uu.isDirty&&uu.updateMeta(),e===window||e===document?(n.height=uu.meta.height,n.width=uu.meta.width,n.scrollLeft=uu.meta.scrollLeft,n.scrollTop=uu.meta.scrollTop,n):(t=Zl(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 Eu(){return mu+++vu}var bu=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(fu||(fu=new pu)),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(yu.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=Zl(e),i=yu.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}(),wu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new ru,t}return gu(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=Eu();return this.queue.push({callback:e,id:t}),t},t}(bu),_u=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return gu(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(wu),Tu=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=uu.version,r.queue=new au,r.ALLOW_CACHED_SCHEDULER=i,r}return gu(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return uu.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,a=n.clientRect;!this.isDirty&&a&&this.ALLOW_CACHED_SCHEDULER||(a=this.queue.items[t].clientRect=Zl(r)),i(e,o,a)}this.lastVersion=uu.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Eu();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(bu),Su=null;var Cu=function(){function e(){this.queue=new ou}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}(),Iu=function(){function e(e){this.scheduler=new _u(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=yu.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),ku=null;function Au(e,t){var n=(ku||(ku={scroll:new Iu((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Iu((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Cu,beforeunload:new Cu,hide:new Cu,show:new Cu}))[e];n&&n.listen(t)}function xu(e,t){if(ku){var n=ku[e];n&&n.unlisten(t)}}function Ou(e,t){if(ku){var n=ku[e];n&&n.trigger(t)}}function Lu(e){(Su||(Su=new wu)).scheduleWork(e)}function Ru(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}}uu.hasDOM&&(window.addEventListener("beforeunload",(function(){Ou("beforeunload"),Ou("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Ou("show"):Ou("hide")})));var Nu=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 Tu(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||Eu();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),a=o.numSatisfiedThresholds,s=o.entry,c=this.records[t]||(this.records[t]={entry:s,numSatisfiedThresholds:0});a===c.numSatisfiedThresholds&&s.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=a,c.entry=s,this.scheduler.scheduleWork((function(){r.callback([s])})))},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:Pu(),intersectionRatio:0,intersectionRect:Pu(),isIntersecting:!1,rootBounds:Pu(),target:n};var r=t.bottom,o=t.right,a=e.left+i.left,s=e.top+i.top,c={left:a,top:s,bottom:i.bottom,right:i.right,width:e.width-(i.right+i.left),height:e.height-(i.bottom+i.top),y:s,x:a},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,g={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,a=e.target,s=r.height*r.width,c=s>0?o.width*o.height/s:0;return{time:t,highResTime:n,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:a,intersectionRatio:c,isIntersecting:$l({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Ru(t),intersectionRect:g})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];r.intersectionRatio>=a&&i++}return{numSatisfiedThresholds:i,entry:r}},e}();function Pu(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Du={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!function(){function e(e,t){var n=this;this.paused=!1,this.queuedEntries=[],this.recordStore={},this.callback=e;var i=t||{threshold:[]},r=i.root,o=i.rootMargin,a=i.threshold,s=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=a.sort((function(e){return e.ratio}));var d={root:r,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:s};this.usingNativeIo=!!l&&!!uu.IntersectionObserver;var h=this.usingNativeIo?uu.IntersectionObserver:Nu;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),uu.hasDOM&&(Au("beforeunload",this.onWindowClosed),Au("hide",this.onTabHidden),Au("show",this.onTabShown),c&&(this.paused="visible"!==uu.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,a=r.boundingClientRect,s=r.rootBounds,c=r.intersectionRect,l=r.isIntersecting,u=r.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:a,time:n,highResTime:t,isIntersecting:l,rootBounds:s,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,a=e.isIntersecting,s=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((uu.performance.timeOrigin||uu.performance.timing.navigationStart)+s):s,d=this.usingNativeIo?s:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:a,unixTime:u,time:u,highResTime:d,rootBounds:i,boundingClientRect:r,intersectionRect:o,target:c,duration:0,visibleTime:a?u:-1,entering:!1,payload:l.payload,label:t.threshold.label,threshold:t.threshold}},e.prototype.handleRecordExiting=function(e){var t=this,n=Date.now(),i=performance.now();e.thresholdStates.forEach((function(r){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:i,payload:e.payload,label:r.threshold.label,threshold:r.threshold,entering:!1,rootBounds:Du,boundingClientRect:o||Du,intersectionRect:Du,visibleTime:r.lastVisible.unixTime,duration:eu(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=eu(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,a="boolean"==typeof r.isIntersecting?r.isIntersecting:$l(e),s=o&&a;if(s!=n.lastSatisfied){if(s)if(r.entering=!0,n.lastVisible={highResTime:r.highResTime,unixTime:r.unixTime},i){var c=Number(setTimeout((function(){n.visible=!0,r.duration=eu(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=s}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),uu.hasDOM&&(xu("beforeunload",this.onWindowClosed),xu("hide",this.onTabHidden),xu("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),Lu((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||Eu();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}}();uu.IntersectionObserver&&uu.IntersectionObserver;class Mu{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._impressionTracking=new Ql(e,t,{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=S(document),{header:i,requestHeader:r}=po(n),{referenceId:o}=t[0],a=t.map((function(){let{jobPostingUrn:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e})),s=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:a,impressedJobPostings:s};e.fireTrackingEvent("JobViewportImpressionEvent",c)}(t,i)}handleDynamicElements(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._impressionTracking.handleDynamicElements(e)}}const Uu="show-more-less__button--hide";class Fu{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(M);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(".show-more-less__list"),this._getFocusItemFromListItem=t,this.maxNumToShow=parseInt(this.listEl.getAttribute("data-max-num-to-show")),this.hideClass="show-more-less__list--hide-after-"+this.maxNumToShow,this.showMoreButton=this.el.querySelector(".show-more-less__more-button"),this.showLessButton=this.el.querySelector(".show-more-less__less-button"),this._attachEventListeners(),this.firstHiddenListItem=this.listEl.children[this.maxNumToShow],this.isExpanded=!this.listEl.classList.contains(this.hideClass),new L(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(Uu),this.showMoreButton.classList.remove(Uu)):(this.showLessButton.classList.remove(Uu),this.showMoreButton.classList.add(Uu))}}function Bu(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Bu("action"),Bu("openpage"),Bu("openlink");class qu extends Gs{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:qu.query,variables:{handleString:e},successCallback:t,failureCallback:n})}}Ho(qu,"query","77715b456915324f44eb5c5ae5981169");var Hu={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 a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function s(e){return(s=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,s(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=s(e);if(l()){var i=s(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function g(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function m(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;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 y="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",E={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},w={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},T={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"}},S={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},C={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},I=E.GOOGLE_ERROR,k=E.GOOGLE_USER_FETCHED,A=E.INITIALIZED,x=b.INITIALIZATION,O=b.AUTHENTICATION,L=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,a=e.el,s=e.clientId,c=void 0===s?y:s;if(t(this,r),i=n.call(this),!a)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=a,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.");g((function(){v(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(A);e.dispatchEvent(n)})).catch((function(t){var n={type:x,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(k,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:O,message:t.error},i=new CustomEvent(I,{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));function R(e,t){return e?t.getDismissedReason():t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()}var N=E.GOOGLE_USER_FETCHED,P=E.PROMPT_MOMENT,D=E.GOOGLE_ERROR,M=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,a=void 0!==o&&o,s=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?y:u,p=e.cancelOnTapOutside,f=void 0===p||p,E=e.itpSupport,b=e.useFedCM,w=void 0!==b&&b;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=a,i.libSrcPath=s,i.containerId=c,i.cancelOnTapOutside=f,i.clientId=d,i.context=l,i.itpSupport=E,i.useFedCM=w,i.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!s)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(s,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this._initGoogleApi(),this.isInitialized.then((function(){var t=new CustomEvent(E.INITIALIZED);e.dispatchEvent(t),e.promptOneTap()})).catch((function(t){var n=new CustomEvent(D,{detail:{type:b.INITIALIZATION,error:t}});e.dispatchEvent(n)}))}},{key:"_initGoogleApi",value:function(){var e={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,use_fedcm_for_prompt:this.useFedCM};void 0!==this.itpSupport&&(e.itp_support=this.itpSupport);try{window.google.accounts.id.initialize(e)}catch(e){this.isInitialized.reject(e)}this.isInitialized.resolve()}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===w.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(N,{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:T.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:R(e.useFedCM,t)},i=new CustomEvent(P,{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)),U={exports:{}};function F(e){this.message=e}F.prototype=new Error,F.prototype.name="InvalidCharacterError";var B="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new F("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a},q=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(B(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 B(t)}};function H(e){this.message=e}H.prototype=new Error,H.prototype.name="InvalidTokenError",U.exports=function(e,t){if("string"!=typeof e)throw new H("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(q(e.split(".")[n]))}catch(e){throw new H("Invalid token specified: "+e.message)}},U.exports.InvalidTokenError=H;var j=U.exports,G=E.GOOGLE_USER_FETCHED,W=E.PROMPT_MOMENT,z=E.GOOGLE_ERROR,K=function(e){a(s,e);var n=f(s);function s(e){var i,r=e.autoSelect,o=void 0!==r&&r,a=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?y:u,p=e.context,f=void 0===p?"signin":p,E=e.gsiButtonConfig,b=void 0===E?{}:E,w=e.libSrcPath,_=e.hasContentAbove,T=void 0!==_&&_,S=e.promptParentId,C=e.showOneTap,I=void 0===C||C,k=e.itpSupport,A=e.useFedCM,x=void 0!==A&&A;if(t(this,s),(i=n.call(this)).autoSelect=o,i.buttonParentEl=a,i.cancelOnTapOutside=l,i.clientId=d,i.context=f,i.gsiButtonConfig=b,i.libSrcPath=w,i.hasContentAbove=T,i.promptParentId=S,i.showOneTap=I,i.itpSupport=k,i.useFedCM=x,i.isLibraryLoaded=m(),i.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!w)throw TypeError("GSI library is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(w,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(s,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),this._initGoogleApi(),this.isInitialized.then((function(){var t=new CustomEvent(E.INITIALIZED);e.dispatchEvent(t),e.showGsiUI()})).catch((function(t){var n=new CustomEvent(z,{detail:{type:b.INITIALIZATION,error:t}});e.dispatchEvent(n)}))}},{key:"_initGoogleApi",value:function(){var e={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:C[this.context].GOT,use_fedcm_for_prompt:this.useFedCM};void 0!==this.itpSupport&&(e.itp_support=this.itpSupport);try{window.google.accounts.id.initialize(e)}catch(e){this.isInitialized.reject(e)}this.isInitialized.resolve()}},{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,a=void 0===o?"center":o,s=t.shape,c=void 0===s?"pill":s,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,g=void 0===f?"400px":f;return this.isInitialized.then((function(){var t=d||C[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:a,shape:c,size:u,text:t,theme:h,type:p,width:g})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isInitialized.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:R(e.useFedCM,t)},i=new CustomEvent(W,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=j(t),a=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(a){var s=new CustomEvent(G,{detail:a});this.dispatchEvent(s)}}},{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")}}}]),s}(d(EventTarget)),V={PROD:"3fa91358-6f74-4525-b5df-da149652be36",LOCAL:"e5078fe9-f96f-4177-a256-a13b9bda6b1c"},X={MICROSOFT_ERROR:"microsoftError",USER_FETCHED:"microsoftUserFetched",PROMPT_MOMENT:"promptMomentNotification"},Y={signin:{MS_OT:"signin",MS_BUTTON:"signin_with"},signup:{MS_OT:"signup",MS_BUTTON:"signup_with"},use:{MS_OT:"use",MS_BUTTON:"continue_with"}},J=X.MICROSOFT_ERROR,Q=X.PROMPT_MOMENT,$=X.USER_FETCHED,Z=function(e){a(r,e);var n=f(r);function r(e){var i,o,a,s=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?V.PROD:u,p=e.context,f=void 0===p?"use":p,y=e.globalWindow,E=void 0===y?window:y,b=e.libSrcPath,w=e.locale,_=e.malButtonConfig,T=void 0===_?{}:_,S=e.oneTapPosition,C=void 0===S?"right":S,I=e.redirectState,k=e.redirectURI,A=e.showOneTap,x=void 0!==A&&A;if(t(this,r),(a=n.call(this)).buttonParentEl=s,a.cancelOnTapOutside=l,a.clientId=d,a.context=f,a.libSrcPath=b,a.locale=(w||"en-US").replace("_","-"),a.malButtonConfig=T,a.oneTapPosition=C,a.redirectState=I,a.window=E,a.redirectURI=k||a._getRedirectURI(),a.showOneTap=x,a.isLibraryLoaded=m(),null===(i=a.window.ms)||void 0===i||null===(o=i.auth)||void 0===o?void 0:o.initialize)a._onMicrosoftAuthLibLoad();else{if(!b)throw TypeError("MAL lib is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(b,a._onMicrosoftAuthLibLoad.bind(h(a)))}))}return a}return i(r,[{key:"_getRedirectURI",value:function(){var e,t,n;return(null===(e=this.window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.origin)||void 0===n?void 0:n.includes("linkedin.com"))?"https://www.linkedin.com/microsoft-login/handler":"https://www.linkedin-ei.com/microsoft-login/handler"}},{key:"_onMicrosoftAuthLibLoad",value:function(){var e=this;this.isLibraryLoaded.resolve();var t=this.window.ms.auth.initialize({auto_prompt:this.showOneTap,client_id:this.clientId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context,locale:this.locale,redirect_state:this.redirectState,redirect_uri:this.redirectURI,ux_mode:"redirect"});if("success"===t.result)return Promise.resolve().then((function(){return e.showMALUI()}));console.error("MAL failed to init",t.result)}},{key:"showMALUI",value:function(){this.buttonParentEl&&this.renderMALButton(this.buttonParentEl,this.malButtonConfig),this.showOneTap&&this.promptMSOneTap()}},{key:"renderMALButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.height,a=void 0===o?42:o,s=t.shape,c=void 0===s?"pill":s,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=void 0===h?"light":h,f=t.type,g=t.width,v=void 0===g?600:g;return this.isLibraryLoaded.then((function(){var t=d||Y[n.context].MS_BUTTON;n.window.ms.auth.renderSignInButton(e,{logo_alignment:r,height:a,shape:c,size:u,text:t,theme:p,type:f,width:v})}))}},{key:"promptMSOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){e.window.ms.auth.prompt(e.oneTapPosition,(function(t){var n={type:t.type,reason:t.reason},i=new CustomEvent(Q,{detail:n});e.dispatchEvent(i)}))}))}},{key:"_handleCredentialResponse",value:function(e,t){if(e){var n=e.authCode,i=e.email,r=e.givenName,o=e.surname,a=e.id,s=e.idToken,c=e.photoUrl,l=new CustomEvent($,{detail:{authCode:n,email:i,familyName:o,givenName:r,id:a,idToken:s,imageUrl:c}});this.dispatchEvent(l)}else if(t){var u=new CustomEvent(J,{detail:t});this.dispatchEvent(u)}}},{key:"hideOneTap",value:function(){this.window.ms.auth.cancel()}}]),r}(d(EventTarget)),ee=S.DISMISSED,te=S.INITIALIZED,ne=S.SNAPPLE_USER_FETCHED,ie=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,a=e.snappleCTA,s=e.clientId,c=void 0===s?"com.linkedin.LinkedIn.service":s,l=e.redirectURI;if(t(this,r),i=n.call(this),!a)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=a,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");g((function(){v(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(te);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(ne,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ee,{detail:{type:ee,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),re={CLIENT_ID:y,EVENTS:E,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"},GSI_SELECT_BY:{AUTO:"auto",USER:"user",FEDCM:"fedcm",FECM_AUTO:"fecm_auto",USER_1TAP:"user_1tap",USER_2TAP:"user_2tap",BTN:"btn",BTN_CONFIRM:"btn_confirm",BTN_ADD_SESSION:"btn_add_session",BTN_CONFIRM_ADD_SESSION:"btn_confirm_add_session",ITP_ADD_SESSION:"itp_add_session"},GOT_CONTEXTS:w,GOT_PROMPT_MOMENT_REASONS:T,GOT_PROMPT_MOMENT_TYPES:_},oe={CLIENT_IDS:V,CONTEXTS:Y,EVENTS:X,PROMPT_MOMENT_TYPES:{DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},PROMPT_MOMENT_REASONS:{DISPLAY:{ANOTHER_PROMPT_RUNNING:"another_prompt_running",BROWSER_NOT_SUPPORTED:"browser_not_supported",IN_COOLDOWN_PERIOD:"in_cooldown_period",NON_MSA_PROFILE:"non_msa_profile",UNKNOWN:"unknown"},SKIPPED:{TAP_OUTSIDE:"tap_outside",UNKNOWN:"unknown",USER_CANCELLED:"user_canceled"},DISMISSED:{CANCEL_CALLED:"cancel_called",CREDENTIAL_RETURNED:"credential_returned",CREDENTIAL_OBTAINED_FAILED:"credential_obtained_failed",FLOW_RESTARTED:"flow_restarted"}}};e.GoogleGsi=K,e.GoogleOneTap=M,e.GoogleSignIn=L,e.GoogleSignInConstants=re,e.MicrosoftAuth=Z,e.MicrosoftSignInConstants=oe,e.SnappleAuth=ie,e.SnappleEvents=S,Object.defineProperty(e,"__esModule",{value:!0})})(Hu.exports);const{EVENTS:ju,GOT_CONTEXTS:Gu,GOT_PROMPT_MOMENT_REASONS:Wu,GOT_PROMPT_MOMENT_TYPES:zu,GSI_ERROR_TYPES:Ku}=Hu.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Vu,PROMPT_MOMENT:Xu,GOOGLE_ERROR:Yu}=ju,{SIGN_IN:Ju}=Gu;Wu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,Wu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,Wu.NOT_DISPLAYED.SUPPRESSED_BY_USER,Wu.SKIPPED.AUTO_CANCEL,Wu.SKIPPED.TAP_OUTSIDE,Wu.SKIPPED.USER_CANCEL,Object.freeze({GOOGLE_AUTH_INITIALIZED:"google-auth--initialized",GOOGLE_ONE_TAP_DISPLAYED:"google-one-tap--displayed",GOOGLE_ONE_TAP_ACCOUNT_SELECTED:"google-one-tap--account-selected",GOOGLE_ONE_TAP_USER_DISMISSED:"google-one-tap--user-dismissed",GOOGLE_SIGN_IN_ACCOUNT_SELECTED:"google-sign-in--account-selected"}),Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"}),Object.freeze({GOOGLE_AUTH_NO_SESSION:"GoogleAuthDisabledOrNoSessionError",GOOGLE_AUTH_MISC_ERROR:"GoogleAuthMiscError",GOOGLE_AUTH_INITIALIZATION_ERROR:"GoogleAuthLibraryInitializationError",GOOGLE_AUTH_AUTHENTICATION_ERROR:"GoogleAuthFetchUserInfoError",GOOGLE_AUTH_ONE_TAP_DISPLAYED:"GoogleAuthOneTapShown",GOOGLE_AUTH_ONE_TAP_ACCOUNT_SELECTED:"GoogleAuthOneTapAccountSelected",GOOGLE_AUTH_ONE_TAP_COOLDOWN:"GoogleAuthOneTapOnCooldown",GOOGLE_AUTH_BUTTON_ACCOUNT_SELECTED:"GoogleAuthButtonAccountSelected"});const{EVENTS:Qu,PROMPT_MOMENT_REASONS:$u,PROMPT_MOMENT_TYPES:Zu}=Hu.exports.MicrosoftSignInConstants,{USER_FETCHED:ed,PROMPT_MOMENT:td}=Qu;$u.DISPLAY.ANOTHER_PROMPT_RUNNING,$u.DISPLAY.BROWSER_NOT_SUPPORTED,$u.DISPLAY.IN_COOLDOWN_PERIOD,$u.DISPLAY.NON_MSA_PROFILE,$u.SKIPPED.TAP_OUTSIDE,$u.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class nd{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 id{constructor(e,t){if(!e)throw new Error("ExpandableLinkster el required");this._showMoreLessEl=e.querySelector(".show-more-less"),new Fu(this._showMoreLessEl),this._linksterForTrackingEl=e.querySelector('[data-js-module-id="linkster"][data-entity-id][data-module-name]'),this._linksterForTrackingEl&&t&&new nd(this._linksterForTrackingEl,t)}}class rd{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:a,pageKey:s}=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(".modal"),this.modal=new Ks(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:a,pageKey:s}),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()}}let od;function ad(){return od||(od=new Ts),od}function sd(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,a=e;let s={productName:t};return r?s={...s,trackedResponseCodes:r}:o&&(s={...s,untrackedResponseCodes:o}),new nl(a,i,s)}(t,i,e))}function cd(e,t){var n;return null===(n=window.tracking)||void 0===n?void 0:n.then(n=>{const i=n.generateEnvelope(e,t,{transporterKey:"sponsoredTransporter"});return n.fireEnvelope(i)})}const ld=document.querySelector("#full-page-header-back-button");window.onload=()=>{null==ld||ld.focus()};class ud{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{ud.instance||(ud.instance=new ud(localStorage)),ud.instance}catch{}})(),function(){try{ud.sessionInstance||(ud.sessionInstance=new ud(sessionStorage)),ud.sessionInstance}catch{}}();class dd extends Gs{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:dd.query,variables:{postUrn:e},successCallback:t,failureCallback:n})}}let hd;Ho(dd,"query","cb99e660f3455cad5185a1d9543e6bce");l.getInstance().addUnloadCallback(()=>{hd&&hd.close(),ko(document.querySelector("#discard-post-modal")),ko(document.querySelector("#visibility-settings-modal")),ko(document.querySelector("#max-images-prompt-modal")),ko(document.querySelector("#retry-upload-modal"))});Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});const pd={PRODUCT_NAME:"Lite-feed",routeMappingToDegradationConfig:{FEED_REPOST:{"publish-repost":[{degradationKey:"publish-repost-failed"}]}}};sd({featureName:"publish-repost",productName:pd.PRODUCT_NAME,featureMappingToDegradationConfig:pd.routeMappingToDegradationConfig.FEED_REPOST});Object.freeze({NEW_REPOST_SUCCESS_EVENT:"Repost:newRepost:success",NEW_REPOST_FAIL_EVENT:"Repost:newRepost:fail"});class fd extends Gs{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:fd.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Ho(fd,"query","20f8e9934e7df62932fd167d87c19b27");var gd=function(){this.__data__=[],this.size=0};var vd=function(e,t){return e===t||e!=e&&t!=t},md=vd;var yd=function(e,t){for(var n=e.length;n--;)if(md(e[n][0],t))return n;return-1},Ed=yd,bd=Array.prototype.splice;var wd=yd;var _d=yd;var Td=yd;var Sd=gd,Cd=function(e){var t=this.__data__,n=Ed(t,e);return!(n<0)&&(n==t.length-1?t.pop():bd.call(t,n,1),--this.size,!0)},Id=function(e){var t=this.__data__,n=wd(t,e);return n<0?void 0:t[n][1]},kd=function(e){return _d(this.__data__,e)>-1},Ad=function(e,t){var n=this.__data__,i=Td(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function xd(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])}}xd.prototype.clear=Sd,xd.prototype.delete=Cd,xd.prototype.get=Id,xd.prototype.has=kd,xd.prototype.set=Ad;var Od=xd,Ld=Od;var Rd=function(){this.__data__=new Ld,this.size=0};var Nd=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Pd=function(e){return this.__data__.get(e)};var Dd=function(e){return this.__data__.has(e)},Md="object"==typeof K&&K&&K.Object===Object&&K,Ud=Md,Fd="object"==typeof self&&self&&self.Object===Object&&self,Bd=Ud||Fd||Function("return this")(),qd=Bd.Symbol,Hd=qd,jd=Object.prototype,Gd=jd.hasOwnProperty,Wd=jd.toString,zd=Hd?Hd.toStringTag:void 0;var Kd=function(e){var t=Gd.call(e,zd),n=e[zd];try{e[zd]=void 0;var i=!0}catch(e){}var r=Wd.call(e);return i&&(t?e[zd]=n:delete e[zd]),r},Vd=Object.prototype.toString;var Xd=Kd,Yd=function(e){return Vd.call(e)},Jd=qd?qd.toStringTag:void 0;var Qd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Jd&&Jd in Object(e)?Xd(e):Yd(e)};var $d=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Zd=Qd,eh=$d;var th,nh=function(e){if(!eh(e))return!1;var t=Zd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ih=Bd["__core-js_shared__"],rh=(th=/[^.]+$/.exec(ih&&ih.keys&&ih.keys.IE_PROTO||""))?"Symbol(src)_1."+th:"";var oh=function(e){return!!rh&&rh in e},ah=Function.prototype.toString;var sh=nh,ch=oh,lh=$d,uh=function(e){if(null!=e){try{return ah.call(e)}catch(e){}try{return e+""}catch(e){}}return""},dh=/^\[object .+?Constructor\]$/,hh=Function.prototype,ph=Object.prototype,fh=hh.toString,gh=ph.hasOwnProperty,vh=RegExp("^"+fh.call(gh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var mh=function(e){return!(!lh(e)||ch(e))&&(sh(e)?vh:dh).test(uh(e))},yh=function(e,t){return null==e?void 0:e[t]};var Eh=function(e,t){var n=yh(e,t);return mh(n)?n:void 0},bh=Eh(Bd,"Map"),wh=Eh(Object,"create"),_h=wh;var Th=function(){this.__data__=_h?_h(null):{},this.size=0};var Sh=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ch=wh,Ih=Object.prototype.hasOwnProperty;var kh=function(e){var t=this.__data__;if(Ch){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ih.call(t,e)?t[e]:void 0},Ah=wh,xh=Object.prototype.hasOwnProperty;var Oh=wh;var Lh=Th,Rh=Sh,Nh=kh,Ph=function(e){var t=this.__data__;return Ah?void 0!==t[e]:xh.call(t,e)},Dh=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Oh&&void 0===t?"__lodash_hash_undefined__":t,this};function Mh(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])}}Mh.prototype.clear=Lh,Mh.prototype.delete=Rh,Mh.prototype.get=Nh,Mh.prototype.has=Ph,Mh.prototype.set=Dh;var Uh=Mh,Fh=Od,Bh=bh;var qh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Hh=function(e,t){var n=e.__data__;return qh(t)?n["string"==typeof t?"string":"hash"]:n.map},jh=Hh;var Gh=Hh;var Wh=Hh;var zh=Hh;var Kh=function(){this.size=0,this.__data__={hash:new Uh,map:new(Bh||Fh),string:new Uh}},Vh=function(e){var t=jh(this,e).delete(e);return this.size-=t?1:0,t},Xh=function(e){return Gh(this,e).get(e)},Yh=function(e){return Wh(this,e).has(e)},Jh=function(e,t){var n=zh(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Qh(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])}}Qh.prototype.clear=Kh,Qh.prototype.delete=Vh,Qh.prototype.get=Xh,Qh.prototype.has=Yh,Qh.prototype.set=Jh;var $h=Od,Zh=bh,ep=Qh;var tp=Od,np=Rd,ip=Nd,rp=Pd,op=Dd,ap=function(e,t){var n=this.__data__;if(n instanceof $h){var i=n.__data__;if(!Zh||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ep(i)}return n.set(e,t),this.size=n.size,this};function sp(e){var t=this.__data__=new tp(e);this.size=t.size}sp.prototype.clear=np,sp.prototype.delete=ip,sp.prototype.get=rp,sp.prototype.has=op,sp.prototype.set=ap;var cp=sp,lp=Eh,up=function(){try{var e=lp(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),dp=up;var hp=function(e,t,n){"__proto__"==t&&dp?dp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},pp=hp,fp=vd;var gp=function(e,t,n){(void 0!==n&&!fp(e[t],n)||void 0===n&&!(t in e))&&pp(e,t,n)};var vp=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(o[c],c,o))break}return t}}(),mp={exports:{}};!function(e,t){var n=Bd,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(mp,mp.exports);var yp=Bd.Uint8Array;var Ep=function(e){var t=new e.constructor(e.byteLength);return new yp(t).set(new yp(e)),t};var bp=function(e,t){var n=t?Ep(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var wp=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},_p=$d,Tp=Object.create,Sp=function(){function e(){}return function(t){if(!_p(t))return{};if(Tp)return Tp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Cp=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Ip=Object.prototype;var kp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ip)},Ap=Sp,xp=Cp,Op=kp;var Lp=function(e){return"function"!=typeof e.constructor||Op(e)?{}:Ap(xp(e))};var Rp=function(e){return null!=e&&"object"==typeof e},Np=Qd,Pp=Rp;var Dp=function(e){return Pp(e)&&"[object Arguments]"==Np(e)},Mp=Rp,Up=Object.prototype,Fp=Up.hasOwnProperty,Bp=Up.propertyIsEnumerable,qp=Dp(function(){return arguments}())?Dp:function(e){return Mp(e)&&Fp.call(e,"callee")&&!Bp.call(e,"callee")},Hp=Array.isArray;var jp=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Gp=nh,Wp=jp;var zp=function(e){return null!=e&&Wp(e.length)&&!Gp(e)},Kp=zp,Vp=Rp;var Xp=function(e){return Vp(e)&&Kp(e)},Yp={exports:{}};var Jp=function(){return!1};!function(e,t){var n=Bd,i=Jp,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(Yp,Yp.exports);var Qp=Qd,$p=Cp,Zp=Rp,ef=Function.prototype,tf=Object.prototype,nf=ef.toString,rf=tf.hasOwnProperty,of=nf.call(Object);var af=function(e){if(!Zp(e)||"[object Object]"!=Qp(e))return!1;var t=$p(e);if(null===t)return!0;var n=rf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&nf.call(n)==of},sf=Qd,cf=jp,lf=Rp,uf={};uf["[object Float32Array]"]=uf["[object Float64Array]"]=uf["[object Int8Array]"]=uf["[object Int16Array]"]=uf["[object Int32Array]"]=uf["[object Uint8Array]"]=uf["[object Uint8ClampedArray]"]=uf["[object Uint16Array]"]=uf["[object Uint32Array]"]=!0,uf["[object Arguments]"]=uf["[object Array]"]=uf["[object ArrayBuffer]"]=uf["[object Boolean]"]=uf["[object DataView]"]=uf["[object Date]"]=uf["[object Error]"]=uf["[object Function]"]=uf["[object Map]"]=uf["[object Number]"]=uf["[object Object]"]=uf["[object RegExp]"]=uf["[object Set]"]=uf["[object String]"]=uf["[object WeakMap]"]=!1;var df=function(e){return lf(e)&&cf(e.length)&&!!uf[sf(e)]};var hf=function(e){return function(t){return e(t)}},pf={exports:{}};!function(e,t){var n=Md,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(pf,pf.exports);var ff=df,gf=hf,vf=pf.exports,mf=vf&&vf.isTypedArray,yf=mf?gf(mf):ff;var Ef=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},bf=hp,wf=vd,_f=Object.prototype.hasOwnProperty;var Tf=function(e,t,n){var i=e[t];_f.call(e,t)&&wf(i,n)&&(void 0!==n||t in e)||bf(e,t,n)},Sf=hp;var Cf=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),r?Sf(n,s,c):Tf(n,s,c)}return n};var If=/^(?:0|[1-9]\d*)$/;var kf=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&If.test(e))&&e>-1&&e%1==0&&e<t},Af=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},xf=qp,Of=Hp,Lf=Yp.exports,Rf=kf,Nf=yf,Pf=Object.prototype.hasOwnProperty;var Df=function(e,t){var n=Of(e),i=!n&&xf(e),r=!n&&!i&&Lf(e),o=!n&&!i&&!r&&Nf(e),a=n||i||r||o,s=a?Af(e.length,String):[],c=s.length;for(var l in e)!t&&!Pf.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Rf(l,c))||s.push(l);return s};var Mf=$d,Uf=kp,Ff=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Bf=Object.prototype.hasOwnProperty;var qf=Df,Hf=function(e){if(!Mf(e))return Ff(e);var t=Uf(e),n=[];for(var i in e)("constructor"!=i||!t&&Bf.call(e,i))&&n.push(i);return n},jf=zp;var Gf=function(e){return jf(e)?qf(e,!0):Hf(e)},Wf=Cf,zf=Gf;var Kf=gp,Vf=mp.exports,Xf=bp,Yf=wp,Jf=Lp,Qf=qp,$f=Hp,Zf=Xp,eg=Yp.exports,tg=nh,ng=$d,ig=af,rg=yf,og=Ef,ag=function(e){return Wf(e,zf(e))};var sg=cp,cg=gp,lg=vp,ug=function(e,t,n,i,r,o,a){var s=og(e,n),c=og(t,n),l=a.get(c);if(l)Kf(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=$f(c),p=!h&&eg(c),f=!h&&!p&&rg(c);u=c,h||p||f?$f(s)?u=s:Zf(s)?u=Yf(s):p?(d=!1,u=Vf(c,!0)):f?(d=!1,u=Xf(c,!0)):u=[]:ig(c)||Qf(c)?(u=s,Qf(s)?u=ag(s):ng(s)&&!tg(s)||(u=Jf(c))):d=!1}d&&(a.set(c,u),r(u,c,i,o,a),a.delete(c)),Kf(e,n,u)}},dg=$d,hg=Gf,pg=Ef;var fg=function e(t,n,i,r,o){t!==n&&lg(n,(function(a,s){if(o||(o=new sg),dg(a))ug(t,n,s,i,e,r,o);else{var c=r?r(pg(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),cg(t,s,c)}}),hg)};var gg=function(e){return e};var vg=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)},mg=Math.max;var yg=function(e,t,n){return t=mg(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=mg(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),vg(e,this,s)}};var Eg=function(e){return function(){return e}},bg=up,wg=bg?function(e,t){return bg(e,"toString",{configurable:!0,enumerable:!1,value:Eg(t),writable:!0})}:gg,_g=Date.now;var Tg=function(e){var t=0,n=0;return function(){var i=_g(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(wg),Sg=gg,Cg=yg,Ig=Tg;var kg=vd,Ag=zp,xg=kf,Og=$d;var Lg=function(e,t){return Ig(Cg(e,t,Sg),e+"")},Rg=function(e,t,n){if(!Og(n))return!1;var i=typeof t;return!!("number"==i?Ag(n)&&xg(t,n.length):"string"==i&&t in n)&&kg(n[t],e)};var Ng=fg;Pg=function(e,t,n){Ng(e,t,n)},Lg((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=Pg.length>3&&"function"==typeof r?(i--,r):void 0,o&&Rg(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&Pg(e,a,n,r)}return e}));var Pg;function Dg(e){const t=e.getBoundingClientRect();let{top:n,left:i}=t;const{right:r,bottom:o,width:a,height:s,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:a,height:s,x:c,y:l}}function Mg(e,t,n){const i=Dg(e),r=Dg(t),o=Dg(n),a=i.top-o.top-n.clientTop-r.height+i.height,s=i.left-o.left-n.clientLeft-r.width+i.width;return{boundingCoordinates:i,elementCoordinates:r,elemOffsetParentCoordinates:o,topMinLimit:a,leftMinLimit:s,elemTop:r.top-o.top,elemLeft:r.left-o.left,topMaxLimit:a-i.height+r.height,leftMaxLimit:s-i.width+r.width}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const Ug="data-draggable-initialized",Fg="touchstart",Bg="touchmove",qg="touchend";class Hg{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;Hg.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(Fg,t),this.draggableElementEl.setAttribute(Ug,!0)}dragElement(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const r=n>0?Math.min(e.topMaxLimit,e.elemTop+n):Math.max(e.topMinLimit,e.elemTop+n),o=t>0?Math.min(e.leftMaxLimit,e.elemLeft+t):Math.max(e.leftMinLimit,e.elemLeft+t);this.draggableElementEl.style.left=o+"px",this.draggableElementEl.style.top=r+"px",this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-o-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-r-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=Mg(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(Bg,t),document.addEventListener(qg,(function e(){document.removeEventListener(Bg,t),document.removeEventListener(qg,e)}))}moveTo(e,t){const n=Mg(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)}}Hg.isDraggable=function(e){return!!e.getAttribute(Ug)};const jg="data-zoomable-initialized",Gg="touchstart",Wg="touchmove",zg="touchend";class Kg{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;Kg.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(Gg,t),this.zoomableElement.setAttribute(jg,!0))}scaleElement(e,t){if(1===e)return;this.limits=Mg(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 a=this.limits.leftMinLimit-this.zoomableElement.offsetWidth*(e-1),s=this.limits.leftMaxLimit,c=this.limits.topMinLimit-this.zoomableElement.offsetHeight*(e-1),l=this.limits.topMaxLimit;r<a?r=a:r>s&&(r=s),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=r+"px",this.zoomableElement.style.top=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(Wg,t),document.addEventListener(zg,(function e(){document.removeEventListener(Wg,t),document.removeEventListener(zg,e)}))}}Kg.isZoomable=function(e){return!!e.getAttribute(jg)};class Vg extends Gs{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:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Ho(Vg,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class Xg extends Gs{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]:()=>{};return this.executeAction({queryId:Xg.query,successCallback:e,failureCallback:t})}}Ho(Xg,"query","da4a9ce2de842c1abe01ca37ea9271ee");const Yg=/^\d{4,15}$/,Jg=/[-\s+().]/g,Qg=/^\S+@\S+\.\S+$/,$g=/[,]|.*@.*@/,Zg="MinLength",ev="MaxLength",tv="Regex",nv="Required",iv="RegexAllow",rv=e=>e&&Qg.test(e)&&!$g.test(e),ov={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{errorCode:"Email",validate:rv},WORK_EMAIL:{errorCode:"WorkEmail",validate:e=>rv(e)&&!["gmail","hotmail","yahoo","qq","outlook","aol","mail","icloud","163"].some(t=>e.includes(`@${t}.`))},PHONE_NUMBER:{errorCode:"PhoneNumber",validate(e){const t=e.replace(Jg,"");return!(!t||!Yg.test(t))}}},av="EMAIL_ADDRESS",sv="PHONE_NUMBER",cv="WORK_EMAIL",lv="consentUnchecked",uv={INPUT:"INPUT",SELECT:"SELECT"},dv="text",hv="checkbox";function pv(e){return Object.keys(uv).includes(e.tagName)}function fv(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case av:t.push({type:iv,RegexAllow:[ov.EMAIL]});break;case cv:t.push({type:iv,RegexAllow:[ov.WORK_EMAIL]});break;case sv:o=e.value.replace(/ /g,""),t.push({type:iv,RegexAllow:[ov.PHONE_NUMBER]})}return e.required&&t.push({type:nv}),n&&t.push({type:Zg,MinLength:n}),i&&t.push({type:ev,MaxLength:i}),{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 nv:if(0===n.length)return nv;break;case Zg:if(n.length<e[Zg])return Zg;break;case ev:if(n.length>e[ev])return ev;break;case tv:for(let t=0;t<e[tv].length;t++){var i,r,o,a;if(!0===(null===(i=e[tv][t])||void 0===i||null===(r=i.validate)||void 0===r?void 0:r.call(i,n))||!0===(null===(o=e[tv][t])||void 0===o||null===(a=o.pattern)||void 0===a?void 0:a.test(n)))return tv+e[tv][t].errorCode}break;case iv:for(let t=0;t<e[iv].length;t++){var s,c,l,u;if(!1===(null===(s=e[iv][t])||void 0===s||null===(c=s.validate)||void 0===c?void 0:c.call(s,n))||!1===(null===(l=e[iv][t])||void 0===l||null===(u=l.pattern)||void 0===u?void 0:u.test(n)))return iv+e[iv][t].errorCode}}})(e,n)).filter(e=>!!e)}function gv(e,t){return t&&!e?lv:null}const vv=(e,t)=>parseInt(t.split(e)[1]);function mv(e,t){return document.getElementById(e.id+"-strings").dataset["str"+t]}const yv=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Ev=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),bv=(e,t)=>({question:e,multipleChoiceAnswer:{options:[t]}});function wv(e,t){const n=e.id+"_",i=n+"q",r=n+"c",o=Uo("hasDecoratedLeadGenFormData");return new Promise((n,a)=>{const s=[];let c,l;const{urn:u,legalInfoUrn:d,leadType:h,associatedEntityUrn:p,ownerUrn:f,submitter:g}=e.dataset;l=t?`lTrk=${t}&action=leadFormSubmit&activityType=sponsored`:e.dataset.leadTrackingParams,l||(c=e.closest("[data-lead-tracking-params]"),l=c.dataset.leadTrackingParams);const v={formResponse:{adFormUrn:u,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:l,trackingAction:"LEAD_FORM_CLICK"},m={associatedEntity:p,form:u,legalInfoUrn:d,leadType:h,owner:f,formResponse:{answers:[],consentResponses:[]},leadTrackingParams:l,submittedAt:Date.now(),...null!=g&&g.length?{submitter:g}:{}};return Array.from(e).filter(pv).forEach(e=>{let t;if(e.tagName===uv.SELECT)t=((e,t,n)=>{const i=vv(e,t.id),r=t.selectedIndex;return{response:n?bv(i,r):Ev(i,r)}})(i,e,o),o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else if(e.type===dv)if(t=((e,t,n)=>{const i=vv(e,t.id),r=fv(t);return 0!==r.length?{errors:r}:{response:n?(o=i,a=t.value,{question:o,textQuestionAnswer:{answer:a}}):yv(i,t.value)};var o,a})(i,e,o),t.response)o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===hv&&(t=((e,t,n,i,r)=>{const o=vv(e,t),a=gv(n,i);return a?{errors:a}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(r,e.id,e.checked,e.required,o),t.response?o?m.formResponse.consentResponses.push(t.response):v.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?n(o?m:v):a(s)})}class _v extends Gs{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:_v.query,variables:e,successCallback:t,failureCallback:n})}}Ho(_v,"query","0a321276f8bcd90441cffeb1ab648fa1");const Tv="VIEW_FORM",Sv=".lead-gen-input-container",Cv=".error-text",Iv=".submit-btn",kv="input-error",Av="checkbox-input",xv="inputbox-input";class Ov{constructor(e){let{isLivePreview:t=!1,encodedLeadGenFormTrackingContext:n,encryptedTrackingData:i,pemDegradationTrackingMetadata:r,persistFormOnSubmit:o,responseEndpoint:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Do("lead-gen-form__description-content-truncated",".lead-gen-form__description-btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form"),this.formContentEl=e.querySelector(".lead-gen-form__content"),this.postSubmissionInfoEl=e.querySelector(".lead-gen-form__post-submission"),this.submitBtn=this.formEl.querySelector(Iv),this.persistFormOnSubmit=o,this.encryptedTrackingData=i,this.encodedLeadGenFormTrackingContext=n,a&&(this.leadGenResponseMutation=new _v(a,r)),t||this._bindInputHandlers(),this.encodedLeadGenFormTrackingContext&&!t&&(this._initClickTracking(),this._initViewTracking())}showPostSubmissionInfo(){ko(this.formContentEl),this.postSubmissionInfoEl&&Ao(this.postSubmissionInfoEl)}hideForm(){ko(this.formContentEl)}enableSubmit(){Ro(this.submitBtn)}_clearFormErrors(){Array.from(this.formEl).filter(pv).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),wv(this.formEl,this.encryptedTrackingData).then(e=>{if(Lo(this.submitBtn),this.leadGenResponseMutation){const t=this.leadGenResponseMutation.execute(e);E(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,t)}else E(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e);this.persistFormOnSubmit||this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();q(mv(t.element,t.errorType),B.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(Sv),n=t.querySelector(Cv);ko(n),t.classList.remove(kv),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(Sv))||void 0===t?void 0:t.classList.contains(kv)}_setAndShowError(e,t){if(e){const n=mv(e,t),i=e.closest(Sv),r=i.querySelector(Cv);r.innerText=n,Ao(r),i.classList.add(kv),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===hv)t=gv(e.checked,e.required);else if(e.type===dv){const n=fv(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindInputHandlers(){this.formEl.addEventListener("click",e=>{e.target.classList.contains(Av)&&this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(xv)&&this._handleInputError(e.target)}),this.submitBtn.addEventListener("click",e=>{e.preventDefault(),this._submitForm()})}fireInFormLeadGenTracking(e,t){!this.encryptedTrackingData&&t||function(e){let{actionType:t,serializedLeadGenFormTrackingContext:n,encryptedTrackingData:i}=e;const r=S(document,{skipSuffix:!0}),o=`${r}-${null==t?void 0:t.toLowerCase()}`,a=po(r);i?cd("LeadGenFormClientActionEvent",{...a,sponsoredTrackingInfo:{sponsoredEventHeader:{encryptedTrackingData:i}},actionType:t,controlUrn:o,serializedLeadGenFormTrackingContext:n}):window.tracking.then(e=>{e.fireTrackingEvent("LeadGenFormClientActionEvent",{...a,actionType:t,controlUrn:o,serializedLeadGenFormTrackingContext:n})})}({actionType:e,serializedLeadGenFormTrackingContext:this.encodedLeadGenFormTrackingContext,encryptedTrackingData:this.encryptedTrackingData})}_initViewTracking(){const e=Tv,t=this.containerEl.closest('[data-id="main-feed-card"]');this.fireInFormLeadGenTracking(e,t)}_initClickTracking(){this.containerEl.addEventListener("click",e=>{const t=e.target.closest("[data-lgf-action-type]"),n=e.target.closest('[data-id="main-feed-card"]');if(t){const i=t.dataset.lgfActionType;if(n&&("consent_link"===e.target.dataset.feedControl||"legal_disclaimer_link"===e.target.dataset.feedControl))return;this.fireInFormLeadGenTracking(i,n)}})}}Ho(Ov,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class Lv{constructor(e,t){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}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 js({endpoint:this.endpoint,queryId:Lv.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}Ho(Lv,"query","cbed571fffd8cea15209aed8d44e6759");const Rv=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(Rv));const Nv="CREATE",Pv="UPDATE";class Dv{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:Dv.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Nv&&n!==Pv||(o.variables.reactionType=e),js(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Ho(Dv,"query","070ee23fd6fb77f92ac08f964ae1df29");new Set(["attributed-text-segment-list__content-truncated","attributed-text-segment-list__content-truncated-10","attributed-text-segment-list__content-truncated-20"]);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 Mv extends Gs{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:Mv.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Ho(Mv,"query","48f4c814e38d5689b7c83a29c9676972");function Uv(e,t){(null==t||t>e.length)&&e.length;for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Fv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bv(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,Gv(i.key),i)}}function qv(e,t,n){return t&&Bv(e.prototype,t),n&&Bv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hv(e,t,n){return(t=Gv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jv(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,a,s=[],c=!0,l=!1;try{if(n.call(e).next,0===t){if(Object(n)!==n)return;!1}else for(;!o.call(n).done&&(s.push(i.value),s.length!==t);!0);}catch(e){!0,e}finally{try{if(!c&&null!=n.return&&(n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Uv(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&e.constructor.name,"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uv(e,t):void 0}}(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 Gv(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Wv(e){return(Wv="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 zv=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Kv=/^fs_/;function Vv(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+Wv(e)+".");var t,n,i=zv.exec(e);return i&&(t=i[1].replace(Kv,""),n=i[2]),{id:n,type:t}}var Xv=/(?![^(]*\)),/;var Yv={checkForEntityId:function(e){var t=zv.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:Vv,urnToObject:function e(t){var n=Vv(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Xv),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}};var Jv={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Qv="GUEST",$v="MEMBER",Zv="ENTERPRISE_UNBOUND",em=0,tm=1,nm=2;Hv(Hv(Hv({},Qv,"li_gc"),$v,"li_mc"),Zv,"li_ec");Hv(Hv(Hv({},Qv,"mypreferences/g/guest-cookies"),$v,"settings/member-cookies"),Zv,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var im=qv((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 Fv(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Jv)t[o]=t[o]||em,t[o]!==em&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===tm||t[o]===em&&r===tm})),rm=(function(){var e=[Jv.ADVERTISING,Jv.ANALYTICS_AND_RESEARCH,Jv.FUNCTIONAL],t=[em,tm,nm,em],n=function(n){for(var i={},r=0;r<e.length;r++){i[e[r]]=t[n>>2*r&3]}return i},i=function(e){var n=em;return e>=0&&e<=3&&(n=t[e]),n}}(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),om=0,am=1;qv((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,i=void 0===n?null:n,r=t.issuedAt,o=void 0===r?null:r,a=t.defaultConsent,s=void 0===a?om:a;for(var c in Fv(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},rm)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===am}));Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const sm=document.querySelector("#share-modal .textarea"),cm=document.querySelector(".image-preview-wrapper"),lm=document.querySelector("#share-modal .modal-content .reshare-section"),um=document.querySelector(".post-button"),dm=document.querySelector("#comments-enabled"),hm=document.querySelector("#share-with-public"),pm=document.querySelector(".post-settings-wrapper"),fm=document.querySelector('input[name="share-with"]:checked'),gm=document.querySelector("#share-modal .close-button"),vm=document.querySelector("#visibility-settings-modal"),mm=document.querySelector("#visibility-header-back .close-button"),ym=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),Em=document.querySelector("#discard-post-modal-wrapper"),bm=document.querySelector("#share-modal"),wm=document.querySelector(".modal-spinner"),_m=document.querySelector("#share-modal .textarea"),Tm=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const Sm=document.querySelector("#share-with-network");class Cm extends Ks{updatePostButtonStatus(){var e;const t=null===(e=sm.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===cm.getAttribute("data-image-load-state"),i=lm.children.length;t||n||i?Ro(um):Lo(um)}clearModalContentBase(){lm&&(lm.textContent=""),sm&&(sm.textContent=""),dm&&(dm.checked=!0),hm&&(hm.checked=!0,pm.setAttribute("data-post-visibility",fm.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),gm.click())}bindVisibilityModalEvents(){function e(e){const t=e.target,n=t.closest("[data-control-action]")||t.querySelector("[data-control-action]");n&&window.tracking.then(e=>{e.fireControlInteractionEvent(n.getAttribute("data-control-action"))})}vm.addEventListener("close",()=>{pm.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),mm.addEventListener("click",()=>window.history.back()),ym.addEventListener("click",t=>e(t)),ym.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}),No()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class Im extends Cm{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:a=!1,historyUpdateUrl:s}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:a}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=s,this.postUrn=Uo("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new Ks(vm,{triggerByOutletEl:!1}),this.handleOpenByUrl()}bindPublishingShareEvents(){this.shareTextEvents(),this.bindShareModalEvents(),this.bindVisibilityModalEvents()}_checkIfOpenShareModalByLink(){const e=new URL(location.href);return!0===Boolean(e.searchParams.get("openShareModal"))}handleOpenByUrl(){this.openShareModalByLink&&this.open()}shareTextEvents(){const e=m(this.updatePostButtonStatus,300);_m.addEventListener("input",e)}bindShareModalEvents(){const e=new rd(Em,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});bm.addEventListener("open",()=>{sm.focus()}),bm.addEventListener("close",()=>{this.clearModalContentBase(),ko(wm)}),um.addEventListener("click",()=>{this.processPostData()}),gm.addEventListener("click",()=>{um.disabled?this.close():e.modal.open()}),pm.addEventListener("click",this.postSettingsClickHandler.bind(this)),pm.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(),Po()&&window.scrollTo(0,0),n&&(_m.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=_m.textContent,this.shareData.visibility="PUBLIC",Tm&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Tm.value),Sm.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Ao(wm),this.composePostData(),js({endpoint:this.endpoint,queryId:Im.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=>{ho(e,"ajax","post_success_page_key")}),ad().trigger("success",Uo("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:Uo("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{ho(e,"ajax","post_failure_page_key")}),ad().trigger("error",Uo("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())}}Ho(Im,"query","971e319c05beaf333e94125db8c4f942");const km={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};sd({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:km}),sd({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:km}),sd({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:km});class Am extends Gs{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:Am.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Ho(Am,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class xm extends Gs{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:xm.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Ho(xm,"query","a628cd3be2c138c07fc69c2413b23fb6");class Om extends Gs{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:Om.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Ho(Om,"query","a0ff03a6b1cbe44862cb2054f0612078");class Lm extends Gs{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:Lm.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Ho(Lm,"query","ad184ece0303620a9753eca249efd99f");class Rm extends Gs{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:Rm.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Ho(Rm,"query","7edd5b8a4513caf8180a64ecde871630");class Nm extends Gs{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:Nm.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Ho(Nm,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Pm extends Gs{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:Pm.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Ho(Pm,"query","85c85c121bf7eaabd2388b9143f94546");class Dm extends Gs{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:Dm.query,variables:{assetUrn:e},successCallback:t,failureCallback:n})}}Ho(Dm,"query","886ab48d89d7bb06bd1a5d5454286645")}).call(this,n(1),n(3).Buffer)},function(e,t,n){e.exports=function(){"use strict";const{entries:e,setPrototypeOf:t,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:r}=Object;let{freeze:o,seal:a,create:s}=Object,{apply:c,construct:l}="undefined"!=typeof Reflect&&Reflect;o||(o=function(e){return e}),a||(a=function(e){return e}),c||(c=function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return e.apply(t,i)}),l||(l=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];return new e(...n)});const u=C(Array.prototype.forEach),d=C(Array.prototype.lastIndexOf),h=C(Array.prototype.pop),p=C(Array.prototype.push),f=C(Array.prototype.splice),g=C(String.prototype.toLowerCase),v=C(String.prototype.toString),m=C(String.prototype.match),y=C(String.prototype.replace),E=C(String.prototype.indexOf),b=C(String.prototype.trim),w=C(Object.prototype.hasOwnProperty),_=C(RegExp.prototype.test),T=(S=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return l(S,t)});var S;function C(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return c(e,t,i)}}function I(e,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;t&&t(e,null);let o=i.length;for(;o--;){let t=i[o];if("string"==typeof t){const e=r(t);e!==t&&(n(i)||(i[o]=e),t=e)}e[t]=!0}return e}function k(e){for(let t=0;t<e.length;t++)w(e,t)||(e[t]=null);return e}function A(t){const n=s(null);for(const[i,r]of e(t))w(t,i)&&(Array.isArray(r)?n[i]=k(r):r&&"object"==typeof r&&r.constructor===Object?n[i]=A(r):n[i]=r);return n}function x(e,t){for(;null!==e;){const n=r(e,t);if(n){if(n.get)return C(n.get);if("function"==typeof n.value)return C(n.value)}e=i(e)}return function(){return null}}const O=o(["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","search","section","select","shadow","slot","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"]),L=o(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),R=o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),N=o(["animate","color-profile","cursor","discard","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"]),P=o(["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","mprescripts"]),D=o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),M=o(["#text"]),U=o(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),F=o(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","mask-type","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","slope","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","tablevalues","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"]),B=o(["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"]),q=o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),j=a(/<%[\w\W]*|[\w\W]*%>/gm),G=a(/\$\{[\w\W]*/gm),W=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),z=a(/^aria-[\-\w]+$/),K=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=a(/^(?:\w+script|data):/i),X=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Y=a(/^html$/i),J=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var Q=Object.freeze({__proto__:null,ARIA_ATTR:z,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:J,DATA_ATTR:W,DOCTYPE_NAME:Y,ERB_EXPR:j,IS_ALLOWED_URI:K,IS_SCRIPT_OR_DATA:V,MUSTACHE_EXPR:H,TMPLIT_EXPR:G});const $=1,Z=3,ee=7,te=8,ne=9,ie=function(){return"undefined"==typeof window?null:window},re=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;t&&t.hasAttribute("data-tt-policy-suffix")&&(n=t.getAttribute("data-tt-policy-suffix"));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ie();const i=e=>t(e);if(i.version="3.3.0",i.removed=[],!n||!n.document||n.document.nodeType!==ne||!n.Element)return i.isSupported=!1,i;let{document:r}=n;const a=r,c=a.currentScript,{DocumentFragment:l,HTMLTemplateElement:S,Node:C,Element:k,NodeFilter:H,NamedNodeMap:j=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:G,DOMParser:W,trustedTypes:z}=n,V=k.prototype,X=x(V,"cloneNode"),J=x(V,"remove"),oe=x(V,"nextSibling"),ae=x(V,"childNodes"),se=x(V,"parentNode");if("function"==typeof S){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ce,le="";const{implementation:ue,createNodeIterator:de,createDocumentFragment:he,getElementsByTagName:pe}=r,{importNode:fe}=a;let ge={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof e&&"function"==typeof se&&ue&&void 0!==ue.createHTMLDocument;const{MUSTACHE_EXPR:ve,ERB_EXPR:me,TMPLIT_EXPR:ye,DATA_ATTR:Ee,ARIA_ATTR:be,IS_SCRIPT_OR_DATA:we,ATTR_WHITESPACE:_e,CUSTOM_ELEMENT:Te}=Q;let{IS_ALLOWED_URI:Se}=Q,Ce=null;const Ie=I({},[...O,...L,...R,...P,...M]);let ke=null;const Ae=I({},[...U,...F,...B,...q]);let xe=Object.seal(s(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}})),Oe=null,Le=null;const Re=Object.seal(s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ne=!0,Pe=!0,De=!1,Me=!0,Ue=!1,Fe=!0,Be=!1,qe=!1,He=!1,je=!1,Ge=!1,We=!1,ze=!0,Ke=!1;const Ve="user-content-";let Xe=!0,Ye=!1,Je={},Qe=null;const $e=I({},["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"]);let Ze=null;const et=I({},["audio","video","img","source","image","track"]);let tt=null;const nt=I({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),it="http://www.w3.org/1998/Math/MathML",rt="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let at=ot,st=!1,ct=null;const lt=I({},[it,rt,ot],v);let ut=I({},["mi","mo","mn","ms","mtext"]),dt=I({},["annotation-xml"]);const ht=I({},["title","style","font","a","script"]);let pt=null;const ft=["application/xhtml+xml","text/html"],gt="text/html";let vt=null,mt=null;const yt=r.createElement("form"),Et=function(e){return e instanceof RegExp||e instanceof Function},bt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!mt||mt!==e){if(e&&"object"==typeof e||(e={}),e=A(e),pt=-1===ft.indexOf(e.PARSER_MEDIA_TYPE)?gt:e.PARSER_MEDIA_TYPE,vt="application/xhtml+xml"===pt?v:g,Ce=w(e,"ALLOWED_TAGS")?I({},e.ALLOWED_TAGS,vt):Ie,ke=w(e,"ALLOWED_ATTR")?I({},e.ALLOWED_ATTR,vt):Ae,ct=w(e,"ALLOWED_NAMESPACES")?I({},e.ALLOWED_NAMESPACES,v):lt,tt=w(e,"ADD_URI_SAFE_ATTR")?I(A(nt),e.ADD_URI_SAFE_ATTR,vt):nt,Ze=w(e,"ADD_DATA_URI_TAGS")?I(A(et),e.ADD_DATA_URI_TAGS,vt):et,Qe=w(e,"FORBID_CONTENTS")?I({},e.FORBID_CONTENTS,vt):$e,Oe=w(e,"FORBID_TAGS")?I({},e.FORBID_TAGS,vt):A({}),Le=w(e,"FORBID_ATTR")?I({},e.FORBID_ATTR,vt):A({}),Je=!!w(e,"USE_PROFILES")&&e.USE_PROFILES,Ne=!1!==e.ALLOW_ARIA_ATTR,Pe=!1!==e.ALLOW_DATA_ATTR,De=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ue=e.SAFE_FOR_TEMPLATES||!1,Fe=!1!==e.SAFE_FOR_XML,Be=e.WHOLE_DOCUMENT||!1,je=e.RETURN_DOM||!1,Ge=e.RETURN_DOM_FRAGMENT||!1,We=e.RETURN_TRUSTED_TYPE||!1,He=e.FORCE_BODY||!1,ze=!1!==e.SANITIZE_DOM,Ke=e.SANITIZE_NAMED_PROPS||!1,Xe=!1!==e.KEEP_CONTENT,Ye=e.IN_PLACE||!1,Se=e.ALLOWED_URI_REGEXP||K,at=e.NAMESPACE||ot,ut=e.MATHML_TEXT_INTEGRATION_POINTS||ut,dt=e.HTML_INTEGRATION_POINTS||dt,xe=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Et(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Et(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ue&&(Pe=!1),Ge&&(je=!0),Je&&(Ce=I({},M),ke=[],!0===Je.html&&(I(Ce,O),I(ke,U)),!0===Je.svg&&(I(Ce,L),I(ke,F),I(ke,q)),!0===Je.svgFilters&&(I(Ce,R),I(ke,F),I(ke,q)),!0===Je.mathMl&&(I(Ce,P),I(ke,B),I(ke,q))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Re.tagCheck=e.ADD_TAGS:(Ce===Ie&&(Ce=A(Ce)),I(Ce,e.ADD_TAGS,vt))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Re.attributeCheck=e.ADD_ATTR:(ke===Ae&&(ke=A(ke)),I(ke,e.ADD_ATTR,vt))),e.ADD_URI_SAFE_ATTR&&I(tt,e.ADD_URI_SAFE_ATTR,vt),e.FORBID_CONTENTS&&(Qe===$e&&(Qe=A(Qe)),I(Qe,e.FORBID_CONTENTS,vt)),Xe&&(Ce["#text"]=!0),Be&&I(Ce,["html","head","body"]),Ce.table&&(I(Ce,["tbody"]),delete Oe.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw T('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ce=e.TRUSTED_TYPES_POLICY,le=ce.createHTML("")}else void 0===ce&&(ce=re(z,c)),null!==ce&&"string"==typeof le&&(le=ce.createHTML(""));o&&o(e),mt=e}},wt=I({},[...L,...R,...N]),_t=I({},[...P,...D]),Tt=function(e){let t=se(e);t&&t.tagName||(t={namespaceURI:at,tagName:"template"});const n=g(e.tagName),i=g(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===rt?t.namespaceURI===ot?"svg"===n:t.namespaceURI===it?"svg"===n&&("annotation-xml"===i||ut[i]):Boolean(wt[n]):e.namespaceURI===it?t.namespaceURI===ot?"math"===n:t.namespaceURI===rt?"math"===n&&dt[i]:Boolean(_t[n]):e.namespaceURI===ot?!(t.namespaceURI===rt&&!dt[i])&&!(t.namespaceURI===it&&!ut[i])&&!_t[n]&&(ht[n]||!wt[n]):!("application/xhtml+xml"!==pt||!ct[e.namespaceURI]))},St=function(e){p(i.removed,{element:e});try{se(e).removeChild(e)}catch(t){J(e)}},Ct=function(e,t){try{p(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){p(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(je||Ge)try{St(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},It=function(e){let t=null,n=null;if(He)e="<remove></remove>"+e;else{const t=m(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===pt&&at===ot&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=ce?ce.createHTML(e):e;if(at===ot)try{t=(new W).parseFromString(i,pt)}catch(e){}if(!t||!t.documentElement){t=ue.createDocument(at,"template",null);try{t.documentElement.innerHTML=st?le:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),at===ot?pe.call(t,Be?"html":"body")[0]:Be?t.documentElement:o},kt=function(e){return de.call(e.ownerDocument||e,e,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},At=function(e){return e instanceof G&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof j)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},xt=function(e){return"function"==typeof C&&e instanceof C};function Ot(e,t,n){u(e,e=>{e.call(i,t,n,mt)})}const Lt=function(e){let t=null;if(Ot(ge.beforeSanitizeElements,e,null),At(e))return St(e),!0;const n=vt(e.nodeName);if(Ot(ge.uponSanitizeElement,e,{tagName:n,allowedTags:Ce}),Fe&&e.hasChildNodes()&&!xt(e.firstElementChild)&&_(/<[/\w!]/g,e.innerHTML)&&_(/<[/\w!]/g,e.textContent))return St(e),!0;if(e.nodeType===ee)return St(e),!0;if(Fe&&e.nodeType===te&&_(/<[/\w]/g,e.data))return St(e),!0;if(!(Re.tagCheck instanceof Function&&Re.tagCheck(n))&&(!Ce[n]||Oe[n])){if(!Oe[n]&&Nt(n)){if(xe.tagNameCheck instanceof RegExp&&_(xe.tagNameCheck,n))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))return!1}if(Xe&&!Qe[n]){const t=se(e)||e.parentNode,n=ae(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=X(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,oe(e))}}return St(e),!0}return e instanceof k&&!Tt(e)?(St(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ue&&e.nodeType===Z&&(t=e.textContent,u([ve,me,ye],e=>{t=y(t,e," ")}),e.textContent!==t&&(p(i.removed,{element:e.cloneNode()}),e.textContent=t)),Ot(ge.afterSanitizeElements,e,null),!1):(St(e),!0)},Rt=function(e,t,n){if(ze&&("id"===t||"name"===t)&&(n in r||n in yt))return!1;if(Pe&&!Le[t]&&_(Ee,t));else if(Ne&&_(be,t));else if(Re.attributeCheck instanceof Function&&Re.attributeCheck(t,e));else if(!ke[t]||Le[t]){if(!(Nt(e)&&(xe.tagNameCheck instanceof RegExp&&_(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&_(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t,e))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&_(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(tt[t]);else if(_(Se,y(n,_e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==E(n,"data:")||!Ze[e])if(De&&!_(we,y(n,_e,"")));else if(n)return!1;return!0},Nt=function(e){return"annotation-xml"!==e&&m(e,Te)},Pt=function(e){Ot(ge.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||At(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ke,forceKeepAttr:void 0};let r=t.length;for(;r--;){const o=t[r],{name:a,namespaceURI:s,value:c}=o,l=vt(a),d=c;let p="value"===a?d:b(d);if(n.attrName=l,n.attrValue=p,n.keepAttr=!0,n.forceKeepAttr=void 0,Ot(ge.uponSanitizeAttribute,e,n),p=n.attrValue,!Ke||"id"!==l&&"name"!==l||(Ct(a,e),p=Ve+p),Fe&&_(/((--!?|])>)|<\/(style|title|textarea)/i,p)){Ct(a,e);continue}if("attributename"===l&&m(p,"href")){Ct(a,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Ct(a,e);continue}if(!Me&&_(/\/>/i,p)){Ct(a,e);continue}Ue&&u([ve,me,ye],e=>{p=y(p,e," ")});const f=vt(e.nodeName);if(Rt(f,l,p)){if(ce&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(f,l)){case"TrustedHTML":p=ce.createHTML(p);break;case"TrustedScriptURL":p=ce.createScriptURL(p)}if(p!==d)try{s?e.setAttributeNS(s,a,p):e.setAttribute(a,p),At(e)?St(e):h(i.removed)}catch(t){Ct(a,e)}}else Ct(a,e)}Ot(ge.afterSanitizeAttributes,e,null)},Dt=function e(t){let n=null;const i=kt(t);for(Ot(ge.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)Ot(ge.uponSanitizeShadowNode,n,null),Lt(n),Pt(n),n.content instanceof l&&e(n.content);Ot(ge.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,s=null;if(st=!e,st&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)){if("function"!=typeof e.toString)throw T("toString is not a function");if("string"!=typeof(e=e.toString()))throw T("dirty is not a string, aborting")}if(!i.isSupported)return e;if(qe||bt(t),i.removed=[],"string"==typeof e&&(Ye=!1),Ye){if(e.nodeName){const t=vt(e.nodeName);if(!Ce[t]||Oe[t])throw T("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof C)n=It("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===$&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!je&&!Ue&&!Be&&-1===e.indexOf("<"))return ce&&We?ce.createHTML(e):e;if(n=It(e),!n)return je?null:We?le:""}n&&He&&St(n.firstChild);const c=kt(Ye?e:n);for(;o=c.nextNode();)Lt(o),Pt(o),o.content instanceof l&&Dt(o.content);if(Ye)return e;if(je){if(Ge)for(s=he.call(n.ownerDocument);n.firstChild;)s.appendChild(n.firstChild);else s=n;return(ke.shadowroot||ke.shadowrootmode)&&(s=fe.call(a,s,!0)),s}let d=Be?n.outerHTML:n.innerHTML;return Be&&Ce["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&_(Y,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Ue&&u([ve,me,ye],e=>{d=y(d,e," ")}),ce&&We?ce.createHTML(d):d},i.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};bt(e),qe=!0},i.clearConfig=function(){mt=null,qe=!1},i.isValidAttribute=function(e,t,n){mt||bt({});const i=vt(e),r=vt(t);return Rt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&p(ge[e],t)},i.removeHook=function(e,t){if(void 0!==t){const n=d(ge[e],t);return-1===n?void 0:f(ge[e],n,1)[0]}return h(ge[e])},i.removeHooks=function(e){ge[e]=[]},i.removeAllHooks=function(){ge={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}()}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),r=n(10),o=n(2);class a{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;new i.b({navOptions:{searchBarOptions:{typeaheadApiBaseUrl:"/organization-guest/api/typeaheadHits"},signInCardOptions:{dismissOnOutsideClick:!1}}});var t=document.querySelector(".cover-img");t&&new i.a(t);var n=document.querySelector(".show-more-less-html");n&&new i.q(n),document.querySelector(".guest-upsells")&&new i.g;(e=>{var t=document.querySelector(".google-one-tap");if(t){var n=null===i.B.getCookie("li_g_recent_logout");new r.a(t,{onNotDisplayed:e,isAutoSelectEnabled:n})}})();var a=document.querySelector(".google-auth");new i.f(a);var s=e=>e.querySelector("a");Array.from(document.querySelectorAll(".show-more-less")).forEach(e=>new i.p(e,s)),Array.from(document.querySelectorAll(".ellipsis-menu")).forEach(e=>new i.c(e)),Object(o.a)(!1),Array.from(document.querySelectorAll(".modal:not(.modal--contextual-sign-in)")).forEach(e=>new i.o(e)),i.B.onload(()=>{var t,n=Object(i.v)("flagshipOrganizationTracking");n&&(null===(t=e.tracking)||void 0===t||t.then(e=>{n.organization.trackingId=e.generateBase64UUID(),e.fireEnvelope(e.generateEnvelope("FlagshipOrganizationViewEvent",n,{header:{viewerUrn:n.viewerUrn}}))}))})}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return z}));var i=n(0);const r="one_tap",o="one-tap-auto-login";function a(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{e()})}function s(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:g,INITIALIZED:v}=l,{INITIALIZATION:m,AUTHENTICATION:y}=u;EventTarget;const{GOOGLE_USER_FETCHED:E,PROMPT_MOMENT:b}=l;class w extends EventTarget{constructor(e){let{autoSelect:t=!1,libSrcPath:n,containerId:i,context:r,clientId:o=c,cancelOnTapOutside:l=!0}=e;if(super(),!r)throw TypeError("context param is required to determine the message to show in Google One Tap");if(this.autoSelect=t,this.libSrcPath=n,this.containerId=i,this.cancelOnTapOutside=l,this.clientId=o,this.context=r,window.google&&window.google.accounts&&window.google.accounts.id)this._onGoogleApiLoad();else{if(!n)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");a(()=>{s(n,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(E,{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(b,{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(b,{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 _={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,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};var C=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 I(e){this.message=e}I.prototype=new Error,I.prototype.name="InvalidTokenError",_.exports=function(e,t){if("string"!=typeof e)throw new I("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(C(e.split(".")[n]))}catch(e){throw new I("Invalid token specified: "+e.message)}},_.exports.InvalidTokenError=I;_.exports;const{GOOGLE_USER_FETCHED:k,PROMPT_MOMENT:A}=l;EventTarget;const x={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 O(e,t){const n=document.createElement("input");return n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),n}const L=i.C.getPageKey(document).replace("_jsbeacon","");function R(e,t,n){window.tracking&&window.tracking.then(r=>{if(t&&e.appendChild(function(e){return O("controlId","".concat(L,"-").concat(e.dataset.trackingControlName))}(t)),e.appendChild(function(e){return O("pageInstance",i.E.getPageInstance(e))}(r)),n){const e="".concat(L,"_").concat(n);i.E.firePageViewEvent(r,"ajax",e),Object(i.w)(r).trackPageView({pageKey:e})}})}function N(e){window.tracking&&window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}function P(e){window.tracking&&window.tracking.then(t=>{i.E.fireViewModuleImpressionEvent(t,[e])})}function D(){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{EVENTS:M,GOT_CONTEXTS:U,GOT_PROMPT_MOMENT_REASONS:F,GOT_PROMPT_MOMENT_TYPES:B}=x,{GOOGLE_USER_FETCHED:q,PROMPT_MOMENT:H}=M,{SIGN_IN:j}=U,G=[F.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,F.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,F.NOT_DISPLAYED.SUPPRESSED_BY_USER],W=[F.SKIPPED.AUTO_CANCEL,F.SKIPPED.TAP_OUTSIDE,F.SKIPPED.USER_CANCEL];class z{constructor(e){let{onNotDisplayed:t,onSkipped:n,isAutoSelectEnabled:r=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[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.i(this.loaderEl),R(this.el,this.containerEl),this.googleOneTapPromise=this._createGoogleOneTap()}_createGoogleOneTap(){return window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-one-tap-lib")).then(()=>(this.googleOneTapInstance=new w({autoSelect:this.isAutoSelectEnabled,cancelOnTapOutside:!1,context:j}),this.googleOneTapInstance.addEventListener(q,e=>{let{detail:t}=e;const{idToken:n,selectedBy:i}=t;N("google-one-tap--account-selected");const r=this.googleOneTapInstance._getBasicProfile(n);this._submitWithGoogle(i,r)}),this.googleOneTapInstance.addEventListener(H,e=>{let{detail:t}=e;const{reason:n,type:i}=t;if(n){if(this._fireCounterIngraphMetric(i,n),i===B.SKIPPED){if(n===F.SKIPPED.USER_CANCEL&&N("google-one-tap--user-dismissed"),this.onSkipped)this.onSkipped(t);else if(-1===W.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else if(i===B.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===G.indexOf(n))throw Error("GoogleOneTapError ".concat(i,": ").concat(n))}else i===B.DISPLAY&&P("google-one-tap")}),this.googleOneTapInstance))}_fireCounterIngraphMetric(e,t){let n="";e===B.DISPLAY&&t===F.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?n="GoogleAuthDisabledOrNoSessionError":(W.indexOf(t)>=0||G.indexOf(t)>=0)&&(n="GoogleAuthMiscError"),n&&window.ingraphTracking.then(e=>{e.fireCounterIngraphMetric({metricsType:n})})}_submitWithGoogle(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{email:n,idToken:i,imageUrl:a,familyName:s,givenName:c}=t;this.googleIdTokenInput&&this.el.removeChild(this.googleIdTokenInput),this.googleIdTokenInput=O("googleIdToken",i),this.el.appendChild(O("googleGivenName",c)),this.el.appendChild(O("googleFamilyName",s)),this.el.appendChild(O("googleImageUrl",a)),this.el.appendChild(O("googleEmail",n));const l="auto"===e?o:r;this.el.appendChild(O("soogleLoginRequestType",l)),this.el.appendChild(O("googleImageUrl",a)),this.el.appendChild(O("googleEmail",n)),this.el.appendChild(this.googleIdTokenInput),this.el.appendChild(O("apfc",D())),this.loader&&this.loader.show(),this.el.submit()}}const{GOOGLE_USER_FETCHED:K,GOOGLE_ERROR:V,INITIALIZED:X}=x.EVENTS,{INITIALIZATION:Y,AUTHENTICATION:J}=x.GSI_ERROR_TYPES,{INIT_FAILED:Q,POPUP_CLOSED_BY_USER:$}=x.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(){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,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),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function s(){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 c(e,t,n){return(c=s()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&a(r,n.prototype),r}).apply(null,arguments)}function l(e){var t="function"==typeof Map?new Map:void 0;return(l=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 c(e,arguments,o(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),a(n,e)})(e)}function u(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){var t=s();return function(){var n,i=o(e);if(t){var r=o(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return u(this,n)}}function h(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=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(o.push(i.value),!t||o.length!==t);a=!0);}catch(e){s=!0,r=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(e,t)||f(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 p(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(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 f(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}function g(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 v="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",m="undefined"==typeof document||"textContent"in document.createElement("div")?"textContent":"innerText",y=["b","del","em","i","s","strong","sub","sup"],E=y.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"]),b=[v,"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|attributionsrc"].join("|"),w=i((function e(){t(this,e)}));function _(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var T,S,C,I=(T=/[&<>"'\u0000\\=]/g,S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(T,(function(e){return function(e){return e in S}(e)?S[e]:e}))}),k=function(){var e,t="undefined"!=typeof document?document.createElement("div"):null,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi,i={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};function r(e){if(function(e){return _(i,e)}(e))return i[e];if(!t)return e;t.innerHTML="&".concat(e,";");var n=t[m];return i[e]=n,n}return e="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(t){return null==t?null:(t+"").replace(n,(function(t,n,i,o){return n?r(n):i||o?e(parseInt(i||o,i?16:10)||65533):"�"}))}}();function A(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"log",n="undefined"!=typeof window;if(n&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}function x(e){return/[<&]/.test(e)}function O(e){e=Array.isArray(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",e.forEach((function(e,a){t=e.tags||E,n=e.attrs||b,i=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:".concat(n,")(?:=([\"'])[^'\"<>]*\\").concat(++r,")?"),i&&(o+="|(?:".concat("href|src",")=([\"'])(?:(?:").concat("https?|ftp|mailto|invalid",")(?::|&#(?:58|x3a);)|(?:").concat("data:image/(?:gif|jpg|jpeg|png);base64,",")|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\").concat(++r)),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function L(e){return O({tags:e=e||E,checkUrlAttrs:!0})}function R(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n&&n.length>0?!L(n).test(e):i?!R.R_UNSAFE_CUSTOM_ELEMENT.test(e):!R.R_UNSAFE_HTML.test(e)}function N(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}R.R_UNSAFE_HTML=L(),R.R_UNSAFE_CUSTOM_ELEMENT=O([{tags:E,checkUrlAttrs:!0},{tags:[(C={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[v,C.attrs].join("|"),checkUrlAttrs:!1}]);var P={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,"",""]},D=/<([\w:]+)/;function M(e,t){var n,i,r,o,a,s=t.createDocumentFragment(),c=[];for(r=0,a=e.length;r<a;r++)if(i=e[r])if("string"==typeof i){n=n||s.appendChild(t.createElement("div"));var l=h(D.exec(i)||["",""],2)[1];if(void 0!==l){var u=l.toLowerCase(),d=u in P&&P[u]||P._default;for(q(n,d[1]+i+d[2]),o=d[0];o--;)n&&n.lastChild&&n.lastChild.nodeType===Node.ELEMENT_NODE&&(n=n.lastChild);c.push.apply(c,p(Array.from(n.childNodes))),(n=s.firstChild)&&(n.textContent="")}}else i instanceof Node&&c.push(i);for(s.textContent="",i=c[r=0];i;)s.appendChild(i),i=c[++r];return s}function U(e,t,n){e=e.toString();var i=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,i){if(_(n,i))return n[i];if(_(t,i)){var r=t[i],o="string"==typeof r;if(!(o||r instanceof w||"number"==typeof r))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");return r?(r=o?"".concat(I(r)):r.toString(),n[i]=r,r):e}return e}))}(e,t):e,r=e;return x(i)&&!R(i,n)&&(i=N(i),A("Content contains tags or attributes that are not allowed:\nContent: "+r,"error")),i}var F=U,B=U;function q(e,t,n){var i=U(t,n);return i&&x(i)?e.innerHTML=i:i&&(e[m]=i),i}var H,j,G=function(e){r(o,e);var n=d(o);function o(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t(this,o),(i=n.call(this)).options=r,i.tags=i.options.allowTags?i.options.allowTags.flat():[],i.str=e,i}return i(o,[{key:"toString",value:function(){var e=this.str,t=this.strValue,n=e;return void 0!==t?t:(R(e,{allowTags:this.tags,hasCustomElementMarkup:this.options.hasCustomElementMarkup})||(n=e,e=N(e),A("UnsafeString contains tags or attributes that are not allowed.\nString: "+n,"error")),this.strValue=e,e)}}]),o}(w),W=function(){if("undefined"!=typeof window){var e=window.trustedTypes;if(e&&e.createPolicy&&e.isHTML)return e}}();if(W){var z=W.createPolicy("jSecure",{createHTML:function(e){return e}});H=function(e){return z.createHTML(e)},j=function(e){return W.isHTML(e)}}else{var K=function(e){r(o,e);var n=d(o);function o(){return t(this,o),n.apply(this,arguments)}return i(o,[{key:"toHTML",value:function(){return this.toString()}}]),o}(l(String));H=function(e){return new K(e)},j=function(t){return null!==t&&"object"===e(t)&&"toHTML"in t&&"function"==typeof t.toHTML}}function V(e,t){return Array.isArray(e)&&Object.prototype.hasOwnProperty.call(e,"raw")&&Object.isFrozen(e)&&e.length===t.length+1}function X(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String(null!=e?e:"").replace(/(^[\0- ]*j\s*a\s*v\s*a\s*s\s*c\s*r\s*i\s*p\s*t\s*):/i,"$1​:")}function Y(e){return e.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"");return j(e)&&(t=k(t)),I(X(t))}))}function J(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return H(t.map((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=String(null!=e?e:"");return j(e)?t:B(t)})).join(""))}function Q(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return V(e,n)?String.raw.apply(String,[{raw:e}].concat(p(Y(n)))):J.apply(void 0,[e].concat(n))}var $=/ /g,Z=/[\s\u0000<>"]|%00/,ee=/\\/,te=/([/\\]|^)([.]|%2e){2}([/\\]|$)/i,ne=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 ie(e){var t;if("string"!=typeof e)return A("jSecure Warning: url must be a string","error"),"invalid://";if((t=e.trim()).indexOf(" ")>-1&&(A("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace($,"+")),!ne.test(t))return A("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(Z.test(t))return A("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";var n,i=t.split("?")[0],r=!1;if(i){try{if(n=decodeURI(i),te.test(n))return A("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"}catch(e){r=!0}if(r)return A("jSecure Error: malformed url path detected: "+i),"invalid://";if(ee.test(i)||te.test(i))return A("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"}return e}var re={redirect:function(e){window&&(window.location.href=e)}};return{ALLOWED_TAGS:E,FORMATTING_TAGS:y,html: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];return J(Q.apply(void 0,[e].concat(n)))},htmlEncode:I,htmlUnencode:k,log:A,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r,o="",a=n.length;return e&&e.forEach((function(e,t){o+=e,t<a&&(r=n[t],o+=r instanceof G?r:I(r))})),"".concat(B(o))},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=M([e],t);else{if(!Array.isArray(e))return e;n=M(e,t)}return Array.from(n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:F,reEncode:function(e){return I(k(e))},_redirector:re,redirect:function(e){var t=ie(e);t===e&&re.redirect(t)},sanitizeHTML:B,sanitizeUrl:ie,setElementContent:q,unsafe:function(e){return e},UnsafeString:function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this instanceof e||console.warn("Calling 'UnsafeString' without the 'new' keword is deprecated"),new G(t,n)},unsanitizedHTML: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];return H(Q.apply(void 0,[e].concat(n)))}}}()}));const Z=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,ee=/(.)\1{3}/,te=/linkedin/i,ne=/\d\d/,ie=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]+)?(/.*)?"),re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,oe=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,ae=/^[ぁ-ゔゞ゛゜ー]*$/,se=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,ce=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},le=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},ue=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ne.test(e)};ue.errorMessagePrefix="i18n_noConsecutiveDigits_";const de=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Z.test(e)};de.errorMessagePrefix="i18n_noForbiddenCharacters_";const he=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ee.test(e)};he.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const pe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!te.test(e)};pe.errorMessagePrefix="i18n_noLinkedIn_";const fe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ie.test(e)};fe.errorMessagePrefix="i18n_noUrl_";const ge=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return oe.test(e)};ge.errorMessagePrefix="i18n_onlyChinese_";const ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ae.test(e)};ve.errorMessagePrefix="i18n_onlyPhonetic_";const me=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};me.errorMessagePrefix="i18n_required_";const ye=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return re.test(e)};ye.errorMessagePrefix="i18n_invalidFormat_";const Ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return se.test(e)};Ee.errorMessagePrefix="i18n_invalidFormat_";const be=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return re.test(e)||se.test(e)};be.errorMessagePrefix="i18n_invalidFormat_";const we=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};we.errorMessagePrefix="i18n_required_";const _e=[ce(50),de,ue,he,pe,fe],Te=[me].concat(_e),Se=[ve,ce(50),he];ce(4),le(2),ce(128),ce(128),ce(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(ye),le(6),ce(200);const{GOT_PROMPT_MOMENT_REASONS:Ce,GOT_PROMPT_MOMENT_TYPES:Ie}=x;const{EVENTS:{GOOGLE_ERROR:ke,GOOGLE_USER_FETCHED:Ae,INITIALIZED:xe,PROMPT_MOMENT:Oe},GOT_PROMPT_MOMENT_REASONS:Le,GOT_PROMPT_MOMENT_TYPES:Re}=x;function Ne(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(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 De(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(n),!0).forEach((function(t){Ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t){if(null==e)return{};var n,i,r=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);var Ue;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(Ue||(Ue={}));new Set(Object.values(Ue));Error;var Fe;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Fe||(Fe={}));new Set(Object.values(Fe));var Be=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},qe=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),He=function(){function e(){Be(this,e),this.EventType={};this.EventType[this.EventType.DomContentLoaded=0]="DomContentLoaded";this.EventType[this.EventType.Load=1]="Load";this.EventType[this.EventType.FullSnapshot=2]="FullSnapshot";this.EventType[this.EventType.IncrementalSnapshot=3]="IncrementalSnapshot";this.EventType[this.EventType.Meta=4]="Meta";this.EventType[this.EventType.Global=5]="Global",this.IncrementalSource={};this.IncrementalSource[this.IncrementalSource.MouseMove=1]="MouseMove";this.IncrementalSource[this.IncrementalSource.MouseInteraction=2]="MouseInteraction";this.IncrementalSource[this.IncrementalSource.Scroll=3]="Scroll";this.IncrementalSource[this.IncrementalSource.ViewportResize=4]="ViewportResize";this.IncrementalSource[this.IncrementalSource.Input=5]="Input";this.IncrementalSource[this.IncrementalSource.TouchMove=6]="TouchMove",this.MouseInteractions={};this.MouseInteractions[this.MouseInteractions.MouseUp=0]="MouseUp";this.MouseInteractions[this.MouseInteractions.MouseDown=1]="MouseDown";this.MouseInteractions[this.MouseInteractions.Click=2]="Click";this.MouseInteractions[this.MouseInteractions.ContextMenu=3]="ContextMenu";this.MouseInteractions[this.MouseInteractions.DblClick=4]="DblClick";this.MouseInteractions[this.MouseInteractions.Focus=5]="Focus";this.MouseInteractions[this.MouseInteractions.Blur=6]="Blur";this.MouseInteractions[this.MouseInteractions.TouchStart=7]="TouchStart";this.MouseInteractions[this.MouseInteractions.touchEnd=8]="touchEnd",this.isCtrlDown=!1}return qe(e,[{key:"_assign",value:function(){var e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};return e.apply(this,arguments)}},{key:"_spread",value:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(arguments[t]);return e}},{key:"hookSetter",value:function(e,t,n,i){var r=Object.getOwnPropertyDescriptor(e,t),o=this;return Object.defineProperty(e,t,i?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),r&&r.set&&r.set.call(t,e)}}),function(){return o.hookSetter(e,t,r||{},!0)}}},{key:"on",value:function(e,t,n){null==n&&(n=document);var i={capture:!0,passive:!0};return n.addEventListener(e,t,i),function(){return n.removeEventListener(e,t,i)}}},{key:"throttle",value:function(e,t,n){null==n&&(n={});var i=null,r=0;return function(o){var a=Date.now();r||!1!==n.leading||(r=a);var s=t-(a-r),c=this,l=arguments;s<=0||s>t?(i&&(window.clearTimeout(i),i=null),r=a,e.apply(c,l)):i||!1===n.trailing||(i=window.setTimeout((function(){r=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),s))}}},{key:"getWindowHeight",value:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}},{key:"getWindowWidth",value:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}},{key:"isTouchEvent",value:function(e){return Boolean(e.changedTouches)}},{key:"polyfill",value:function(){"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}},{key:"convertObjectChildrenToString",value:function(e){var t={};return e&&Object.keys(e).forEach((function(n){try{e[n]&&(t[n]=e[n].toString())}catch(e){}})),t}},{key:"initKeyboardObserver",value:function(e){var t=this;function n(e){(void 0===e.key||"meta"!==e.key.toLowerCase()&&"control"!==e.key.toLowerCase())&&(void 0===e.keyCode||91!==e.keyCode&&17!==e.keyCode)||(t.isCtrlDown=!1)}function i(n){var i=!1,r=!1,o=!1;if(t.isCtrlDown)if(void 0!==n.key){var a=n.key.toLowerCase();"x"===a&&(i=!0),"c"===a?r=!0:"v"===a&&(o=!0)}else void 0!==n.keyCode&&(88===keyPressed&&(i=!0),67===keyPressed?r=!0:86===keyPressed&&(o=!0));else(void 0===n.key||"meta"!==n.key.toLowerCase()&&"control"!==n.key.toLowerCase())&&(void 0===n.keyCode||91!==n.keyCode&&17!==n.keyCode)||(t.isCtrlDown=!0);var s=n.target.classList;void 0===s&&(s={}),s=JSON.parse(JSON.stringify(s)),e({inputClassList:s,isCut:i,isCopy:r,isPaste:o})}var r=["keydown","keyup"].map((function(e){return"keydown"===e?t.on(e,i):t.on(e,n)})),o=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),a=[[HTMLInputElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return o&&o.set&&r.push.apply(r,t._spread(a.map((function(e){return t.hookSetter(e[0],e[1],{set:function(){eventHandler({target:this})}})})))),function(){r.forEach((function(e){return e()}))}}},{key:"initMoveObserver",value:function(e,t){var n=[],i=void 0,r=this,o=r.throttle((function(t){var o=Date.now()-i;e(n.map((function(e){return e.timeOffset-=o,e})),t?r.IncrementalSource.TouchMove:r.IncrementalSource.MouseMove),n=[],i=null}),500),a=r.throttle((function(e){var t=r.isTouchEvent(e)?e.changedTouches[0]:e,a=t.clientX,s=t.clientY;i||(i=Date.now()),n.push({x:a,y:s,timeOffset:Date.now()-i}),o(r.isTouchEvent(e))}),t,{trailing:!1}),s=[r.on("mousemove",a),r.on("touchmove",a)];return function(){s.forEach((function(e){return e()}))}}},{key:"initMouseInteractionObserver",value:function(e){var t=this,n=[];return Object.keys(t.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")})).forEach((function(i){var r=i.toLowerCase(),o=function(n){return function(i){var r=t.isTouchEvent(i)?i.changedTouches[0]:i,o=r.clientX,a=r.clientY;e({type:t.MouseInteractions[n],x:o,y:a})}}(i);n.push(t.on(r,o))})),function(){n.forEach((function(e){return e()}))}}},{key:"initScrollObserver",value:function(e){var t=this.throttle((function(t){if(t.target)if(t.target===document){var n=document.scrollingElement||document.documentElement;e({x:n.scrollLeft,y:n.scrollTop})}else e({x:t.target.scrollLeft,y:t.target.scrollTop})}),100);return this.on("scroll",t)}},{key:"initViewportResizeObserver",value:function(e){var t=this,n=t.throttle((function(){var n=t.getWindowHeight(),i=t.getWindowWidth();e({width:Number(i),height:Number(n)})}),200);return this.on("resize",n,window)}},{key:"mergeHooks",value:function(e,t){var n=this,i=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb;e.mousemoveCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mousemove&&t.mousemove.apply(t,n._spread(e)),i.apply(null,n._spread(e))},e.mouseInteractionCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.mouseInteraction&&t.mouseInteraction.apply(t,n._spread(e)),r.apply(null,n._spread(e))},e.scrollCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.scroll&&t.scroll.apply(t,n._spread(e)),o.apply(null,n._spread(e))},e.viewportResizeCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.viewportResize&&t.viewportResize.apply(t,n._spread(e)),a.apply(null,n._spread(e))},e.inputCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.input&&t.input.apply(t,n._spread(e)),s.apply(null,n._spread(e))}}},{key:"initObservers",value:function(e,t){null==t&&(t={}),this.mergeHooks(e,t);var n=this.initMoveObserver(e.mousemoveCb,e.mousemoveWait),i=this.initMouseInteractionObserver(e.mouseInteractionCb),r=this.initScrollObserver(e.scrollCb),o=this.initViewportResizeObserver(e.viewportResizeCb),a=this.initKeyboardObserver(e.keyboardCb);return function(){n(),i(),r(),o(),a()}}},{key:"wrapEvent",value:function(e){return this._assign(this._assign({},e),{timestamp:Date.now()})}},{key:"record",value:function(e){null==e&&(e={});var t=e.emit,n=e.checkoutEveryNms,i=e.hooks,r=50;if(void 0!==e.mousemoveWait&&(r=e.mousemoveWait),!t)throw new Error("emit function is required");this.polyfill();var o=void 0,a=this;function s(e,i){if(t(e,i),e.type===a.EventType.FullSnapshot)o=e;else if(e.type===a.EventType.IncrementalSnapshot){n&&e.timestamp-o.timestamp>n&&c(!0)}}function c(e){null==e&&(e=!1),s(a.wrapEvent({type:a.EventType.Meta,data:{href:window.location.href,width:a.getWindowWidth(),height:a.getWindowHeight()}}),e),s(a.wrapEvent({type:a.EventType.FullSnapshot,data:{node:{type:"Document"},initialOffset:{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}})),s(a.wrapEvent({type:a.EventType.Global,data:{globalValues:a.convertObjectChildrenToString(window)}}))}try{var l=[];l.push(a.on("DOMContentLoaded",(function(){s(a.wrapEvent({type:a.EventType.DomContentLoaded,data:{}}))})));var u=function(){c(),l.push(a.initObservers({mousemoveCb:function(e,t){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.MouseInteraction},e)}))},scrollCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Scroll},e)}))},viewportResizeCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.ViewportResize},e)}))},keyboardCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Input},e)}))},mousemoveWait:r},i))};return"interactive"===document.readyState||"complete"===document.readyState?u():l.push(a.on("load",(function(){s(a.wrapEvent({type:a.EventType.Load,data:{}})),u()}),window)),function(){l.forEach((function(e){return e()}))}}catch(e){console.log(e)}}}]),e}(),je=function(){function e(){Be(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return qe(e,[{key:"getBaseValue",value:function(e,t){if(!this.t[e]){this.t[e]={};for(var n=0;n<e.length;n++)this.t[e][e.charAt(n)]=n}return this.t[e][t]}},{key:"compressToBase64",value:function(e){if(null===e)return"";var t=this,n=this._compress(e,6,(function(e){return t.n.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}}},{key:"decompressFromBase64",value:function(e){if(null===e)return"";if(""===e)return null;var t=this;return this._decompress(e.length,32,(function(n){return t.getBaseValue(t.n,e.charAt(n))}))}},{key:"compress",value:function(e){var t=this;return this._compress(e,16,(function(e){return t.f(e)}))}},{key:"_compress",value:function(e,t,n){if(null===e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v===t-1){f.push(n(g));break}v++}return f.join("")}},{key:"decompress",value:function(e){return null===e?"":""===e?null:this._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))}},{key:"_decompress",value:function(e,t,n){var i=[],r=4,o=4,a=3,s="",c=[],l=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,v={val:n(0),position:t,index:1};for(l=0;l<3;l+=1)i[l]=l;for(d=0,p=Math.pow(2,2),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 2:return""}for(i[3]=g,u=g,c.push(g);;){if(v.index>e)return"";for(d=0,p=Math.pow(2,a),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(g=d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 2:return c.join("")}if(0===r&&(r=Math.pow(2,a),a++),i[g])s=i[g];else{if(g!==o)return null;s=u+u.charAt(0)}c.push(s),i[o++]=u+s.charAt(0),u=s,0===--r&&(r=Math.pow(2,a),a++)}}}]),e}(),Ge=function(){function e(){Be(this,e),this.PREFIX="dcts-",this.CPR=new je}return qe(e,[{key:"compressAndSplitEvent",value:function(e){if(null==e)return[];var t=this.CPR.compressToBase64(JSON.stringify(e)),n=Math.floor(t.length/3)+1;return t.match(new RegExp(".{1,"+n+"}","g"))}},{key:"processTelemetry",value:function(e,t,n){var i=this.compressAndSplitEvent(e);if(null!=i){for(var r={},o=0;o<i.length;o++)r[this.PREFIX+o]=i[o];return r["x-f-uc"]=t,r.csrf_token=n,JSON.stringify(r)}return null}},{key:"getParamPrefix",value:function(){return this.PREFIX}}]),e}();!function(){function e(){Be(this,e),this.processor=new Ge,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new He,this.workerThread=null,this.events=[]}qe(e,[{key:"init",value:function(e,t,n,i,r,o){var a=this;if(this.isExist(o)&&""!==o&&window.Worker){var s=this.convertWorkerUrl(o);null!==s&&(this.workerThread=new Worker(s),this.workerThread.onmessage=function(t){a.sendTelemetry(t.data,e)})}this.isExist(e)||(e=this.DEFAULT_URL);var c=0,l=6;null===i||isNaN(i)||(l=i);var u=this.timestone.record({emit:function(n,i){i&&a.events.length>0&&c<l?(a.collect(e,t,a.events,r),c+=1,a.events.splice(0,a.events.length)):c>=l&&(u(),a.isExist(a.workerThread)&&a.workerThread.terminate()),a.events.push(n)},checkoutEveryNms:n})}},{key:"collect",value:function(e,t,n,i){if(this.isExist(i)||(i=""),this.isExist(t)||(t="undefined-uc"),this.isExist(this.workerThread))this.workerThread.postMessage({events:n,useCase:t,csrfToken:i});else{var r=this.processor.processTelemetry(n,t,i);null!==r&&this.sendTelemetry(r,e)}}},{key:"collectFinalTelemetry",value:function(e,t,n){if(this.isExist(e)||(e=this.DEFAULT_URL),this.isExist(n)||(n=""),this.isExist(t)||(t="undefined-uc"),this.events.length>0)if(navigator.sendBeacon&&this.isExist(FormData)){var i=new FormData;i.append("x-f-uc",t),i.append("csrf_token",n);for(var r=this.processor.compressAndSplitEvent(this.events),o=0;o<r.length;o++)i.append(this.processor.getParamPrefix()+o,r[o]);navigator.sendBeacon(e,i)}else this.collect(e,t,this.events,"")}},{key:"sendTelemetry",value:function(e,t){var n=new XMLHttpRequest;n.open("POST",t),n.setRequestHeader("Content-Type","application/json"),n.send(e)}},{key:"isExist",value:function(e){return null!=e}},{key:"convertWorkerUrl",value:function(e){var t="https://"+window.location.host;if(0===e.indexOf(t)||0===e.indexOf("/"))return e;if(-1===e.indexOf(t)){var n=e.split(".com/");if(2===n.length)return"/"+n[1]}return null}}])}();const We=new URL("/legal/privacy-policy",window.location.origin);new URL("#data",We),new URL("#share",We);i.o;const{EVENTS:ze,GOT_CONTEXTS:Ke,GOT_PROMPT_MOMENT_TYPES:Ve}=x,{GOOGLE_USER_FETCHED:Xe,PROMPT_MOMENT:Ye}=ze;const Je=["endpoint","headers","queryId","variables"];function Qe(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}class $e{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 Ze=function(){let e;return{getInstance:function(){return e||(e=new $e),e}}}();function et(e,t){return function(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=function(e,t,n){const i=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}(e,t,!0);if(r)return i?e.replace(r,n):e;{const i=e.indexOf("?");let[r,o]=e.split("#"),a="&";return i<0?a="?":i===e.length-1&&(a=""),o&&(o="#".concat(o)),"".concat(r).concat(a).concat(t,"=").concat(n).concat(o||"")}}(e,"trk",t)}function tt(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function nt(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 it(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 rt(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function ot(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function at(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const st={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},ct={Down:st.ARROW_DOWN,Right:st.ARROW_RIGHT,Left:st.ARROW_LEFT,Up:st.ARROW_UP,Esc:st.ESCAPE,Spacebar:st.SPACEBAR,Tab:st.TAB};function lt(e){return ct[e]||e}const ut=['a[href]:not([tabindex^="-"])','area[href]:not([tabindex^="-"])','input:not([disabled]):not([tabindex^="-"]):not([type="hidden"])','select:not([disabled]):not([tabindex^="-"])','textarea:not([disabled]):not([tabindex^="-"])','button:not([disabled]):not([tabindex^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");function dt(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function ht(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?!dt(e):i&&i.get(e)?i.get(e):(dt(e)?t=!1:e.parentNode&&(t=ht(e.parentNode,n,i)),i&&i.set(e,t),t)}class pt{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.classList.contains("top-level-modal-container")&&(t.setAttribute("aria-hidden",!0),!0))),e=e.parentElement}enableBackground(){this._hiddenElements.forEach(e=>{e.removeAttribute("aria-hidden")}),this._hiddenElements=[]}}const ft=["class","disabled","style","tabindex","type"];class gt{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 pt(this._container)}init(){this._observer.observe(this._container,{attributeFilter:ft,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=lt(t),r=i===st.TAB&&e.shiftKey;!r&&i===st.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(ut)],n=new Map;let i,r,o=0,a=t.length-1;for(;(!i||!r)&&o<=a;){if(!i){const r=t[o];i=ht(r,e,n)&&r,o++}if(!r){const i=t[a];r=ht(i,e,n)&&i,a--}}return r=r||i,[i,r]}}function vt(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled:a=!1,pemDegradationTrackingMetadata:s=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l={method:t,headers:n,body:null};if(!r){const e=tt("JSESSIONID");e&&(l.headers["Csrf-Token"]=at(e))}i&&(l.credentials="include"),"POST"!==l.method&&"PUT"!==l.method||(l.body=o);const u=fetch(e,l),d=u.then(n=>n.ok||304===n.status?n.text().then(e=>(n.responseText=e,n)):n.text().then(i=>{const r=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(n.status));return n.responseText=i,r.response=n,Promise.reject(r)}));return a&&(s.length?mt(u,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function mt(e,t,n,i){try{window.tracking.then(r=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,i,e,r.state.currentPageInstance)})})}catch(e){}}var yt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},Et="object"==typeof yt&&yt&&yt.Object===Object&&yt,bt="object"==typeof self&&self&&self.Object===Object&&self;Et||bt||Function("return this")();const wt="light",_t="dark";function Tt(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?_t:wt:void 0}var St,Ct=["breadcrumb"],It=["$type"],kt=["requestStart"],At=["requestTime","viewNames","requestType","requestTag"],xt=["requestStart"],Ot=["requestStart"],Lt=["requestTime","viewNames","requestType"],Rt=["basePageTreeId"];function Nt(){return(Nt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ht(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(this,arguments)}function Pt(){Pt=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new x(i||[]);return r(a,"_invoke",{value:C(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",p="executing",f="completed",g={};function v(){}function m(){}function y(){}var E={};l(E,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(O([])));w&&w!==n&&i.call(w,a)&&(E=w);var _=y.prototype=v.prototype=Object.create(E);function T(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(r,o,a,s){var c=d(e[r],e,o);if("throw"!==c.type){var l=c.arg,u=l.value;return u&&"object"==Xt(u)&&i.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;r(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return o=o?o.then(r,r):r()}})}function C(t,n,i){var r=h;return function(o,a){if(r===p)throw new Error("Generator is already running");if(r===f){if("throw"===o)throw a;return{value:e,done:!0}}for(i.method=o,i.arg=a;;){var s=i.delegate;if(s){var c=I(s,i);if(c){if(c===g)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=f,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=p;var l=d(t,n,i);if("normal"===l.type){if(r=i.done?f:"suspendedYield",l.arg===g)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(r=f,i.method="throw",i.arg=l.arg)}}}function I(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,I(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var o=d(r,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return o.next=o}}throw new TypeError(Xt(t)+" is not iterable")}return m.prototype=y,r(_,"constructor",{value:y,configurable:!0}),r(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,c,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},T(S.prototype),l(S.prototype,s,(function(){return this})),t.AsyncIterator=S,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new S(u(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(_),l(_,c,"Generator"),l(_,a,(function(){return this})),l(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=O,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function Dt(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}function Mt(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 Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){$t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ft(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}function Bt(e,t,n){return t=Ht(t),function(e,t){if(t&&("object"===Xt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qt(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Ht(e).constructor):t.apply(e,n))}function qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ht(e){return(Ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gt(e,t)}function Gt(e,t){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Kt(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,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zt(e){return function(e){if(Array.isArray(e))return Vt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Kt(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 Kt(e,t){if(e){if("string"==typeof e)return Vt(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)?Vt(e,t):void 0}}function Vt(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 Xt(e){return(Xt="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)}function Yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jt(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,Zt(i.key),i)}}function Qt(e,t,n){return t&&Jt(e.prototype,t),n&&Jt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $t(e,t,n){return(t=Zt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zt(e){var t=function(e,t){if("object"!=Xt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Xt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Xt(t)?t:String(t)}var en,tn="unknown",nn=new Uint8Array(16);function rn(){if(!en&&!(en="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return en(nn)}var on=/^(?:[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 an(e){return"string"==typeof e&&on.test(e)}for(var sn=[],cn=0;cn<256;++cn)sn.push((cn+256).toString(16).slice(1));function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(sn[e[t+0]]+sn[e[t+1]]+sn[e[t+2]]+sn[e[t+3]]+"-"+sn[e[t+4]]+sn[e[t+5]]+"-"+sn[e[t+6]]+sn[e[t+7]]+"-"+sn[e[t+8]]+sn[e[t+9]]+"-"+sn[e[t+10]]+sn[e[t+11]]+sn[e[t+12]]+sn[e[t+13]]+sn[e[t+14]]+sn[e[t+15]]).toLowerCase()}function un(e){if(!an(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 dn(e,t,n){function i(e,i,r,o){var a;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=un(i)),16!==(null===(a=i)||void 0===a?void 0:a.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 c=0;c<16;++c)r[o+c]=s[c];return r}return ln(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function hn(e){return 14+(e+64>>>9<<4)+1}function pn(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function fn(e,t,n,i,r,o){return pn((a=pn(pn(t,e),pn(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function gn(e,t,n,i,r,o,a){return fn(t&n|~t&i,e,t,r,o,a)}function vn(e,t,n,i,r,o,a){return fn(t&i|n&~i,e,t,r,o,a)}function mn(e,t,n,i,r,o,a){return fn(t^n^i,e,t,r,o,a)}function yn(e,t,n,i,r,o,a){return fn(n^(t|~i),e,t,r,o,a)}dn("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,a=parseInt(i.charAt(o>>>4&15)+i.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[hn(t)-1]=t;for(var n=1732584193,i=-271733879,r=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=i,l=r,u=o;n=gn(n,i,r,o,e[a],7,-680876936),o=gn(o,n,i,r,e[a+1],12,-389564586),r=gn(r,o,n,i,e[a+2],17,606105819),i=gn(i,r,o,n,e[a+3],22,-1044525330),n=gn(n,i,r,o,e[a+4],7,-176418897),o=gn(o,n,i,r,e[a+5],12,1200080426),r=gn(r,o,n,i,e[a+6],17,-1473231341),i=gn(i,r,o,n,e[a+7],22,-45705983),n=gn(n,i,r,o,e[a+8],7,1770035416),o=gn(o,n,i,r,e[a+9],12,-1958414417),r=gn(r,o,n,i,e[a+10],17,-42063),i=gn(i,r,o,n,e[a+11],22,-1990404162),n=gn(n,i,r,o,e[a+12],7,1804603682),o=gn(o,n,i,r,e[a+13],12,-40341101),r=gn(r,o,n,i,e[a+14],17,-1502002290),n=vn(n,i=gn(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=vn(o,n,i,r,e[a+6],9,-1069501632),r=vn(r,o,n,i,e[a+11],14,643717713),i=vn(i,r,o,n,e[a],20,-373897302),n=vn(n,i,r,o,e[a+5],5,-701558691),o=vn(o,n,i,r,e[a+10],9,38016083),r=vn(r,o,n,i,e[a+15],14,-660478335),i=vn(i,r,o,n,e[a+4],20,-405537848),n=vn(n,i,r,o,e[a+9],5,568446438),o=vn(o,n,i,r,e[a+14],9,-1019803690),r=vn(r,o,n,i,e[a+3],14,-187363961),i=vn(i,r,o,n,e[a+8],20,1163531501),n=vn(n,i,r,o,e[a+13],5,-1444681467),o=vn(o,n,i,r,e[a+2],9,-51403784),r=vn(r,o,n,i,e[a+7],14,1735328473),n=mn(n,i=vn(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=mn(o,n,i,r,e[a+8],11,-2022574463),r=mn(r,o,n,i,e[a+11],16,1839030562),i=mn(i,r,o,n,e[a+14],23,-35309556),n=mn(n,i,r,o,e[a+1],4,-1530992060),o=mn(o,n,i,r,e[a+4],11,1272893353),r=mn(r,o,n,i,e[a+7],16,-155497632),i=mn(i,r,o,n,e[a+10],23,-1094730640),n=mn(n,i,r,o,e[a+13],4,681279174),o=mn(o,n,i,r,e[a],11,-358537222),r=mn(r,o,n,i,e[a+3],16,-722521979),i=mn(i,r,o,n,e[a+6],23,76029189),n=mn(n,i,r,o,e[a+9],4,-640364487),o=mn(o,n,i,r,e[a+12],11,-421815835),r=mn(r,o,n,i,e[a+15],16,530742520),n=yn(n,i=mn(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=yn(o,n,i,r,e[a+7],10,1126891415),r=yn(r,o,n,i,e[a+14],15,-1416354905),i=yn(i,r,o,n,e[a+5],21,-57434055),n=yn(n,i,r,o,e[a+12],6,1700485571),o=yn(o,n,i,r,e[a+3],10,-1894986606),r=yn(r,o,n,i,e[a+10],15,-1051523),i=yn(i,r,o,n,e[a+1],21,-2054922799),n=yn(n,i,r,o,e[a+8],6,1873313359),o=yn(o,n,i,r,e[a+15],10,-30611744),r=yn(r,o,n,i,e[a+6],15,-1560198380),i=yn(i,r,o,n,e[a+13],21,1309151649),n=yn(n,i,r,o,e[a+4],6,-145523070),o=yn(o,n,i,r,e[a+11],10,-1120210379),r=yn(r,o,n,i,e[a+2],15,718787259),i=yn(i,r,o,n,e[a+9],21,-343485551),n=pn(n,s),i=pn(i,c),r=pn(r,l),o=pn(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(hn(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}));var En={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function bn(e,t,n){if(En.randomUUID&&!t&&!e)return En.randomUUID();var i=(e=e||{}).random||(e.rng||rn)();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 ln(i)}function wn(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function _n(e,t){return e<<t|e>>>32-t}dn("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,a=Math.ceil(o/16),s=new Array(a),c=0;c<a;++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];s[c]=l}s[a-1][14]=8*(e.length-1)/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=8*(e.length-1)&4294967295;for(var d=0;d<a;++d){for(var h=new Uint32Array(80),p=0;p<16;++p)h[p]=s[d][p];for(var f=16;f<80;++f)h[f]=_n(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var g=n[0],v=n[1],m=n[2],y=n[3],E=n[4],b=0;b<80;++b){var w=Math.floor(b/20),_=_n(g,5)+wn(w,v,m,y)+E+t[w]+h[b]>>>0;E=y,y=m,m=_n(v,30)>>>0,v=g,g=_}n[0]=n[0]+g>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+y>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Tn=Uint8Array,Sn=Uint16Array,Cn=Uint32Array,In=new Tn([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]),kn=new Tn([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]),An=new Tn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),xn=function(e,t){for(var n=new Sn(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Cn(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]},On=xn(In,2),Ln=On[0],Rn=On[1];Ln[28]=258,Rn[258]=28;for(var Nn=xn(kn,0)[1],Pn=new Sn(32768),Dn=0;Dn<32768;++Dn){var Mn=(43690&Dn)>>>1|(21845&Dn)<<1;Mn=(61680&(Mn=(52428&Mn)>>>2|(13107&Mn)<<2))>>>4|(3855&Mn)<<4,Pn[Dn]=((65280&Mn)>>>8|(255&Mn)<<8)>>>1}var Un=function(e,t,n){for(var i=e.length,r=0,o=new Sn(t);r<i;++r)e[r]&&++o[e[r]-1];var a,s=new Sn(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;if(n){a=new Sn(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=s[e[r]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[Pn[d]>>>c]=l}else for(a=new Sn(i),r=0;r<i;++r)e[r]&&(a[r]=Pn[s[e[r]-1]++]>>>15-e[r]);return a},Fn=new Tn(288);for(Dn=0;Dn<144;++Dn)Fn[Dn]=8;for(Dn=144;Dn<256;++Dn)Fn[Dn]=9;for(Dn=256;Dn<280;++Dn)Fn[Dn]=7;for(Dn=280;Dn<288;++Dn)Fn[Dn]=8;var Bn=new Tn(32);for(Dn=0;Dn<32;++Dn)Bn[Dn]=5;var qn=Un(Fn,9,0),Hn=Un(Bn,5,0),jn=function(e){return(e+7)/8|0},Gn=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},Wn=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},zn=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[$n,0];if(1==r){var a=new Tn(n[0].s+1);return a[n[0].s]=1,[a,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var s=n[0],c=n[1],l=0,u=1,d=2;for(n[0]={s:-1,f:s.f+c.f,l:s,r:c};u!=r-1;)s=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:s.f+c.f,l:s,r:c};var h=o[0].s;for(i=1;i<r;++i)o[i].s>h&&(h=o[i].s);var p=new Sn(h+1),f=Kn(n[u-1],p,0);if(f>t){i=0;var g=0,v=f-t,m=1<<v;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;g+=m-(1<<f-p[y]),p[y]=t}for(g>>>=v;g>0;){var E=o[i].s;p[E]<t?g-=1<<t-p[E]++-1:++i}for(;i>=0&&g;--i){var b=o[i].s;p[b]==t&&(--p[b],++g)}f=t}return[new Tn(p),f]},Kn=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},Vn=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Sn(++t),i=0,r=e[0],o=1,a=function(e){n[i++]=e},s=1;s<=t;++s)if(e[s]==r&&s!=t)++o;else{if(!r&&o>2){for(;o>138;o-=138)a(32754);o>2&&(a(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(a(r),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(r);o=1,r=e[s]}return[n.subarray(0,i),t]},Xn=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Yn=function(e,t,n){var i=n.length,r=jn(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)},Jn=function(e,t,n,i,r,o,a,s,c,l,u){Gn(t,u++,n),++r[256];for(var d=zn(r,15),h=d[0],p=d[1],f=zn(o,15),g=f[0],v=f[1],m=Vn(h),y=m[0],E=m[1],b=Vn(g),w=b[0],_=b[1],T=new Sn(19),S=0;S<y.length;++S)T[31&y[S]]++;for(S=0;S<w.length;++S)T[31&w[S]]++;for(var C=zn(T,7),I=C[0],k=C[1],A=19;A>4&&!I[An[A-1]];--A);var x,O,L,R,N=l+5<<3,P=Xn(r,Fn)+Xn(o,Bn)+a,D=Xn(r,h)+Xn(o,g)+a+14+3*A+Xn(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(N<=P&&N<=D)return Yn(t,u,e.subarray(c,c+l));if(Gn(t,u,1+(D<P)),u+=2,D<P){x=Un(h,p,0),O=h,L=Un(g,v,0),R=g;var M=Un(I,k,0);for(Gn(t,u,E-257),Gn(t,u+5,_-1),Gn(t,u+10,A-4),u+=14,S=0;S<A;++S)Gn(t,u+3*S,I[An[S]]);u+=3*A;for(var U=[y,w],F=0;F<2;++F){var B=U[F];for(S=0;S<B.length;++S){var q=31&B[S];Gn(t,u,M[q]),u+=I[q],q>15&&(Gn(t,u,B[S]>>>5&127),u+=B[S]>>>12)}}}else x=qn,O=Fn,L=Hn,R=Bn;for(S=0;S<s;++S)if(i[S]>255){q=i[S]>>>18&31,Wn(t,u,x[q+257]),u+=O[q+257],q>7&&(Gn(t,u,i[S]>>>23&31),u+=In[q]);var H=31&i[S];Wn(t,u,L[H]),u+=R[H],H>3&&(Wn(t,u,i[S]>>>5&8191),u+=kn[H])}else Wn(t,u,x[i[S]]),u+=O[i[S]];return Wn(t,u,x[256]),u+O[256]},Qn=new Cn([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),$n=new Tn(0),Zn=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}(),ei=function(e,t,n,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new Tn(i+a+5*(1+Math.ceil(a/7e3))+r),c=s.subarray(i,s.length-r),l=0;if(!t||a<8)for(var u=0;u<=a;u+=65535){var d=u+65535;d>=a&&(c[l>>3]=o),l=Yn(c,l+1,e.subarray(u,d))}else{for(var h=Qn[t-1],p=h>>>13,f=8191&h,g=(1<<n)-1,v=new Sn(32768),m=new Sn(g+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&g},w=new Cn(25e3),_=new Sn(288),T=new Sn(32),S=0,C=0,I=(u=0,0),k=0,A=0;u<a;++u){var x=b(u),O=32767&u,L=m[x];if(v[O]=L,m[x]=O,k<=u){var R=a-u;if((S>7e3||I>24576)&&R>423){l=Jn(e,c,0,w,_,T,C,I,A,u-A,l),I=S=C=0,A=u;for(var N=0;N<286;++N)_[N]=0;for(N=0;N<30;++N)T[N]=0}var P=2,D=0,M=f,U=O-L&32767;if(R>2&&x==b(u-U))for(var F=Math.min(p,R)-1,B=Math.min(32767,u),q=Math.min(258,R);U<=B&&--M&&O!=L;){if(e[u+P]==e[u+P-U]){for(var H=0;H<q&&e[u+H]==e[u+H-U];++H);if(H>P){if(P=H,D=U,H>F)break;var j=Math.min(U,H-2),G=0;for(N=0;N<j;++N){var W=u-U+N+32768&32767,z=W-v[W]+32768&32767;z>G&&(G=z,L=W)}}}U+=(O=L)-(L=v[O])+32768&32767}if(D){w[I++]=268435456|Rn[P]<<18|Nn[D];var K=31&Rn[P],V=31&Nn[D];C+=In[K]+kn[V],++_[257+K],++T[V],k=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=Jn(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=Yn(c,l+1,$n))}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?Sn:4==e.BYTES_PER_ELEMENT?Cn:Tn)(n-t);return i.set(e.subarray(t,n)),i}(s,0,i+jn(l)+r)}(e,null==t.level?6:t.level,null==t.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):12+t.mem,n,i,!r)},ti=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ni="undefined"!=typeof TextDecoder&&new TextDecoder;try{ni.decode($n,{stream:!0})}catch(Mo){}function ii(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function ri(){try{return ii()&&"keepalive"in new Request("")}catch(e){return!1}}function oi(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=function(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=Zn[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=ei(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=r.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&&ti(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)}}(r,t),ti(r,o-8,n.d()),ti(r,o-4,i),r}((new TextEncoder).encode(t)),i["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:i,method:"POST",mode:"cors"}}function ai(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var si,ci="undefined"!=typeof navigator&&"sendBeacon"in navigator,li=ri()?function(e,t,n,i){return new Promise((function(r){fetch(e,oi({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,oi({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:ai(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(ci){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,oi({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:ai(e)})}))}))};function ui(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 di(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 hi(){return si||(si=di("idb-queue","default")),si}function pi(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))},ui(e.transaction)}var fi=!1;function gi(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]:hi();return n("readwrite",(function(n){return n.put(e),ui(n.count()).then((function(e){if(!(e<=t.maxNumber))return pi(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:hi())("readwrite",(function(t){return pi(t,e)}))}(t,n)}))}function vi(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]:hi();return fi?Promise.resolve():gi(e,t,n)}function mi(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())},ui(t.transaction).then((function(){return i}))}))}function yi(){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 Ei(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function bi(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function wi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};"undefined"==typeof requestIdleCallback?setTimeout(e,t.fallbackTimeout||10):function n(){requestIdleCallback((function(i){i.timeRemaining()>t.timeRemaining||i.didTimeout?e():n()}),{timeout:t.timeout})}()}var _i=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Yt(this,e),$t(this,"config",void 0),$t(this,"compress",void 0),$t(this,"throttleControl",void 0),$t(this,"withStore",void 0),$t(this,"disablePersistence",!1),this.config=t,this.compress=i;var r,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=di(t.idbName,"beacons","timestamp",{onSuccess:function(){s&&performance.measure(s.createSuccessMeasure,s.createStartMark)},onError:function(){s&&performance.measure(s.createFailMeasure,s.createStartMark),n.disablePersistence=!0}}),this.throttleControl=(r=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now();e-a>o&&(Ei((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return Qt(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Ei((function(){return"Persisting to DB "+e.url})),vi(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Ei((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,bi((function(){return"push failed"}))}))};this.config.useIdle?wi(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]:hi();return fi=!0,e("readwrite",(function(e){return e.clear(),ui(e.transaction).finally((function(){return fi=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,bi((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([]):function(){return mi(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:hi(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,bi((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([]):function(){return mi(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:hi(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,bi((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Ei((function(){return"Replaying entry: shift from store"})),function(){return function(e,t,n){return t("readwrite",(function(t){var n=[];return t.openCursor(null,"next").onsuccess=function(){var t=this.result;t&&(n.push(t.value),t.delete(),(e<0||n.length<e)&&t.continue())},ui(t.transaction).then((function(){return n}))}))}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:hi())}(1,e.withStore).then((function(t){if(t.length>0){var n,i,r=t[0],o=r.url,a=r.body,s=r.headers,c=r.timestamp,l=r.statusCode,u=r.attemptCount;return Ei((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),li(o,a,yi(s,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,a),e.replayEntries()}else{var r,s,d,h,p,f;if(u+1>e.config.attemptLimit)return Ei((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(r=(s=e.config).onResult)||void 0===r||r.call(s,t,a));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,a),Ei((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),vi({url:o,body:a,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,a)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&bi((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?wi(t):t()}}}]),e}(),Ti=function(){function e(){Yt(this,e)}return Qt(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}(),Si=function(){function e(t,n){Yt(this,e),$t(this,"queue",void 0),$t(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new _i(t,n.compress):new Ti}return Qt(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}();$t(Si,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Ci=[502,504],Ii=[429,503],ki=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Yt(this,e),$t(this,"url",void 0),$t(this,"body",void 0),$t(this,"config",void 0),$t(this,"persistenceConfig",void 0),$t(this,"compress",void 0),$t(this,"timestamp",void 0),$t(this,"isClearQueuePending",!1),$t(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Qt(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 li(e.url,e.body,t,e.compress)}),n,t).finally((function(){Ei((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(yi(n,this.config.headerName,o,i)).then((function(i){var o,a,s,c;if(i.drop=!1,"unknown"===i.type||"success"===i.type)r.isClearQueuePending||r.persistenceConfig.disabled||r.persistenceConfig.db.notifyQueue(),s=i;else if(Ei((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)}),s={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 Ei((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)}))}(s=i).drop=!0}return null===(o=(a=r.config).onIntermediateResult)||void 0===o||o.call(a,s,r.body),s}))}},{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}(),Ai="internal:hide",xi="internal:error";function Oi(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function Li(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Ri,Ni,Pi=(Ri=new Map,Ni=new Map,{on:function(e,t){Oi(Ri,e,t)},before:function(e,t){Oi(Ni,e,t)},off:function(e,t){Li(Ri,e,t)},offBefore:function(e,t){Li(Ni,e,t)},emit:function(e,t){(Ni.get(e)||[]).concat(Ri.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Ni.clear(),Ri.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Di=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Pi.emit(Ai,e)};document.addEventListener("visibilitychange",Di),window.addEventListener("pagehide",Di)}var Mi=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Ui=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Ui){var Fi=new Uint8Array(256),Bi=Fi.length;Mi={rng:function(){return Bi>Fi.length-16&&(Ui.randomFillSync(Fi),Bi=0),Fi.slice(Bi,Bi+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Xt(crypto))&&crypto.randomUUID;function qi(){return bn(Mi,new Array(16),0)}function Hi(e){return zt(e).map((function(e){return String.fromCharCode(e)})).join("")}function ji(){return Hi(qi())}var Gi=/^[a-zA-Z0-9/+]+[=]+$/;function Wi(e,t){return{pageUrn:Ki(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=[],r=0,o=e.length,a=o%3,s=o-a;r<s;)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(a){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("")}(qi())}}function zi(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function Ki(e){return"urn:li:page:".concat(e)}function Vi(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Xi(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 Yi(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Ji(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var i,r="sequenceNumber";try{i=window.indexedDB.open(r)}catch(e){return Promise.resolve(null)}return new Promise((function(o,a){i.onupgradeneeded=function(){var e=i.result;e.objectStoreNames.contains(r)||e.createObjectStore(r,{autoIncrement:!0})},i.onsuccess=function(){var s=i.result,c=s.transaction(r,"readwrite"),l=c.objectStore(r),u=l.get(1);u.onsuccess=function(){var i=u.result;if(i){if("read"===e)return o(i);if("update"!==e)return o(null);var r,s=Object.assign({},i),c=!1,d=null!==(r=s.sequenceNumber)&&void 0!==r?r:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,i=null!==(t=s[e])&&void 0!==t?t:0,r=n[e];r>i&&(s[e]=r,c=!0)})),c){var h=l.put(s,1);h.onsuccess=function(){return o(null)},h.onerror=function(){a(h.error)}}}else{var p={sequenceNumber:0};n&&Object.keys(n).forEach((function(e){p[e]=0}));var f=l.add(p);f.onsuccess=function(){return o(0)},f.onerror=function(){a(f.error)}}},u.onerror=function(){return s.close(),a(new Error("Error: get sequence number from indexedDB ".concat(String(u.error))))},c.oncomplete=function(){return s.close()}},i.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function Qi(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!ii()||"undefined"==typeof Promise}function $i(e,t,n,i){var r=["core-web-tracking:".concat(e)];null==i||i.forEach((function(e){return r.push(e)})),Pi.emit(xi,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}var Zi=function(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))},er=function(){function e(t){Yt(this,e),$t(this,"heap",void 0),$t(this,"comparator",void 0),this.comparator=t,this.heap=[]}return Qt(e,[{key:"heapsize",value:function(){return this.heap.length}},{key:"peak",value:function(){return this.heap[0]}},{key:"heapArray",get:function(){return this.heap}},{key:"heapClear",value:function(){var e=zt(this.heap);return this.heap=[],e}},{key:"heappop",value:function(){var e=this.heap.length,t=[this.heap[e-1],this.heap[0]];this.heap[0]=t[0],this.heap[e-1]=t[1];for(var n=this.heap.pop(),i=0;2*i+1<this.heap.length;){var r=2*i+1,o=2*i+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[r])?o:r;if(!this.comparator(this.heap[a],this.heap[i]))break;var s=[this.heap[i],this.heap[a]];this.heap[a]=s[0],this.heap[i]=s[1],i=a}return n}},{key:"heapPush",value:function(e){this.heap.push(e);for(var t=this.heap.length-1;t>0;){var n=Math.floor((t-1)/2);if(!this.comparator(this.heap[t],this.heap[n]))break;var i=[this.heap[n],this.heap[t]];this.heap[t]=i[0],this.heap[n]=i[1],t=n}}}]),e}();var tr="beacons";function nr(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&ri()&&t&&n}function ir(e,t,n,i,r){"control"!==i&&e.retryConfig&&nr()&&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)}}))}(tr);var a,s,c=null!==(a=e.retryConfig.inMemory)&&void 0!==a?a:{attemptLimit:4,statusCodes:[502,504]},l=null!==(s=e.retryConfig.persist)&&void 0!==s?s:{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:tr,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:Ci,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:Ii,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new Si(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s;return ii()?new ki(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Ii},n).send(a):Promise.resolve({type:"unknown",drop:!0})},database:e}}(u),h=d.beacon,p=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:p},"enabled"===i?(e.retryBeacon.shouldRetry=!1,!u.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?p.peekQueue(1).then((function(e){if(Array.isArray(e)&&e[0]){var t=JSON.parse(e[0].body);if(Array.isArray(t)&&t.some((function(e){return!e.eventInfo.shouldAnonymizeMemberId})))return p.clearQueue()}}),(function(){return p.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){$i("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){$i("retry:setup",e)}))}var rr=function(){function e(t){Yt(this,e),$t(this,"host",void 0),this.host=t}return Qt(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&&ir(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){$i("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();ri()&&"control"!==o&&null!==(r=this.host.retryBeacon)&&void 0!==r&&r.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,i)}},{key:"sendPayloadWithRetry",value:function(e,t,n){(!Array.isArray(t)||t.length>0)&&this.host.retryBeacon.beacon(e,JSON.stringify(t),n).catch((function(e){$i("retry:beacon",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;(!Array.isArray(t)||t.length>0)&&(Qi()?function(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 a=o[r];i.setRequestHeader(a,n.headers[a])}i.send(t)}}(e,JSON.stringify(t),{headers:n}):li(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}},{key:"isBrowserPersistentRetryEnabled",value:function(){var e,t;return"control"!==this.getRetryTreatment()&&null!==(e=null===(t=this.host.retryBeacon)||void 0===t?void 0:t.shouldRetry)&&void 0!==e&&e&&nr()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),or="undefined"!=typeof window&&"undefined"!=typeof document,ar=/JSESSIONID="?([^";]+)"?/,sr="",cr=0;function lr(){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?ar:i;if(!sr||Date.now()-cr>n){var o=or&&document.cookie.match(r);sr=o&&o[1]||"",cr=Date.now()}return sr}var ur={prod:{pattern:new RegExp(/https: \/\/www.linkedin.com\/.+|https:\/\/www.linkedin.com\/li\/track$/),monitorEndpoint:"https://www.linkedin.com/trackingMonitoring/?action=reportClientFailures"},ei:{pattern:new RegExp(/https: \/\/www.linkedin-ei.com\/.+|https:\/\/www.linkedin-ei.com\/li\/track$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"},eiValidate:{pattern:new RegExp(/https:\/\/www\.linkedin-ei\.com\/.+\/validate$/),monitorEndpoint:"https://www.linkedin-ei.com/trackingMonitoring/?action=reportClientFailures"}},dr=function(){function e(t){Yt(this,e),$t(this,"networkTransporter",void 0),$t(this,"inactive",void 0),$t(this,"mpName",void 0),$t(this,"endpoint",void 0),$t(this,"debug",void 0),this.networkTransporter=new rr(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return ur.prod.pattern.test(e)?t=ur.prod.monitorEndpoint:ur.eiValidate.pattern.test(e)?(n=!0,t=ur.eiValidate.monitorEndpoint):ur.ei.pattern.test(e)?t=ur.ei.monitorEndpoint:(t=ur.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Qt(e,[{key:"fireFragment",value:function(e){var t;if(!this.inactive){var n={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":lr(),"x-restli-protocol-version":"2.0.0"},i=[],r=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=r.failures,a=r.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,zt(t.failures)),e}),[]);[].concat(zt(o),zt(a)).forEach((function(e){var t=e.reason,n=e.rawError,r=e.eventTopic,o=e.header,a=e.requestHeader;i.push({reason:t,rawError:n,failedTopicName:r,header:o,requestHeader:a})}));var s={clientTrackingFailures:i,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function hr(e){return"string"==typeof e}function pr(e){return hr(e)?e:e.topicName||e.eventName}function fr(e){return hr(e)?e:e.eventName}var gr,vr,mr=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Yt(this,e),$t(this,"host",void 0),$t(this,"cmoTransporter",void 0),$t(this,"clientMonitoringInstanceId",ji()),$t(this,"currentContext",{pageKey:tn,pageInstance:Wi(tn)}),$t(this,"appState",{}),$t(this,"estimatedFragmentSize",0),$t(this,"fragmentSizeLimit",void 0),$t(this,"activeFragmentEvent",void 0),$t(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new dr(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Er(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Qt(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=Wt(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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,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(),a=o.header,s=o.requestHeader,c={header:Object.assign(a,{memberId:-1}),requestHeader:s,instanceId:r,instanceEventNumber:i,reason:e,rawError:n,eventName:fr(t),eventTopic:pr(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(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.fragmentIsFull()){this.debounceTimer=void 0;var e=this.getEventHeaders(),t=e.header,n=e.requestHeader,i=this.activeFragmentEvent;i.header=t,i.requestHeader=n,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=Er(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,e)}}},{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=br(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=br(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:ji(),memberId:0}}}}]),e}();function yr(e){return gr||(gr=new mr(e)),{getCurrentInstanceId:function(){return gr.getCurrentInstanceId()},logEventGenerated:function(e){return gr.logEventGenerated(e)},logEventReadyToSend:function(e){gr.logEventReadyToSend(e)},logEventSent:function(e){gr.logEventSent(e)},logPersistedEventSent:function(e,t){gr.logEventSent(t,e)},logNetworkResponseCode:function(e){gr.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=gr)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){gr.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){gr.logFailedEvent(t,n,i,r,e)},flush:function(){gr.flush()},destroy:function(){gr=void 0},isDestroyed:function(){return void 0===gr},setCurrentContext:function(e){gr.setCurrentContext(e)},updateAppState:function(e){gr.updateAppState(e)}}}function Er(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 br(e){return Array.isArray(e)?Hi(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(Gi)}(e)?atob(e):Hi(function(e){return un(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"}(vr||(vr={}));var wr=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],_r="PageViewEvent",Tr=function(){function e(t){var n,i,r,o=this;Yt(this,e),$t(this,"host",void 0),$t(this,"queue",void 0),$t(this,"preContextQueue",void 0),$t(this,"debounceTimer",void 0),$t(this,"unloadHandlers",void 0),$t(this,"maxQueueSize",void 0),$t(this,"flushDebounceTime",void 0),$t(this,"trackingEventListeners",[]),$t(this,"onHideHandler",(function(){o.forceFlush()})),$t(this,"networkTransporter",void 0),$t(this,"clientMonitoringConn",void 0),$t(this,"clientGlobalSequenceNumberCounter",void 0),$t(this,"clientTopicLocalSequenceNumberCountersMap",{}),$t(this,"isTimerRunning",void 0),$t(this,"trackingEndpoint",void 0),$t(this,"isEvenBatchEnabled",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var a=t.batching,s=null!==(n=null==a?void 0:a.evenBatchEnabled)&&void 0!==n&&n,c="development"===t.environment||(null===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i||null===(i=i.host)||void 0===i?void 0:i.indexOf("-ei."))>-1?"https://www.linkedin-ei.com/li/track/validate":t.endpoint||"https://www.linkedin.com/li/track";this.trackingEndpoint=function(e,t){return/linkedin(?:-ei)?\.cn/.test(t)?e.replace(/\/\/(\S+?)\.linkedin(-ei)?\.com/,"//$1.linkedin$2.cn"):e}(c,null===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r?void 0:r.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,Pi.on(Ai,this.onHideHandler),this.networkTransporter=new rr(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=yr(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return Qt(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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logFailedEvent(vr.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},s,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,a="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(a)].join(", ");t.logPersistedFailedEvent(r,vr.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,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(pr(e.id)));var n=this.host,i=n.api.Promise,r=n.batching;if(function(e){return!!e.meta.context}(t)){var o,a=this.prepareCompleteEnvelopeQueue(t);return null===(o=this.clientMonitoringConn)||void 0===o||o.logEventReadyToSend(1),this.queue.push(a),r?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))}return this.preContextQueue.push(t),i.resolve(!0)}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){var e,t,n;this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,Pi.off(Ai,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:Wi(tn),pageKey:tn}).forEach((function(t){e.queue.push(t)})),this.isEvenBatchEnabled?1===t?this.sendPayload(void 0,!0):this.sendPayload():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;Ji("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,wr.forEach((function(n){var i;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){$i("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Ji("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){$i("sequence-number:idb-update",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=Vi(e.meta.context,this.host.api);return"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),e}},{key:"envelop",value:function(e,t,n){var i=this.host,r=i.appId,o=i.api,a={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(a,{clientBreadcrumbs:n}),a}},{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,a=o.location,s=o.document,c=o.assign,l=e.meta.context,u=l.pageKey,d=l.pageInstance,h=function(e){return"string"==typeof e?e===_r:e.eventName===_r}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||u,p=e.meta.requestHeader||{referer:s.referrer,path:"".concat(a.pathname).concat(a.search)},f=p.referer,g=p.path,v=null;"string"!=typeof r&&null!==this.host.locale||(v=r);var m={interfaceLocale:v,pageKey:h,referer:f,path:g,isFlushOnCloseBrowserTabEnabled:!Qi()&&(ri()||"undefined"!=typeof navigator&&"sendBeacon"in navigator),isBrowserPersistentRetryEnabled:this.networkTransporter.isBrowserPersistentRetryEnabled()},y={pageInstance:d,time:e.meta.time,version:i,server:"",service:"",guid:ji(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=pr(e.id);if(wr.includes(E)){var b=this.clientTopicLocalSequenceNumberCountersMap[E];"number"==typeof b&&c(y,{clientTopicLocalSequenceNumber:b})}var w={header:c(y,e.meta.header||{}),requestHeader:c(m,e.meta.requestHeader||{})},_=e.meta.clientMonitoringInstanceId,T=e.meta.clientMonitoringInstanceEventNumber;return _&&c(w.header,{clientMonitoringInstanceId:_,clientMonitoringInstanceEventNumber:T}),c(e.body,w)}},{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(0)}),{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(void 0,!0):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(e){var t,n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var r=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=r||i)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,r)}else Array.isArray(e)&&e.length>0?t=e:(t=this.queue,this.queue=[]);if(0!==t.length){"undefined"!=typeof window&&!1===this.isTimerRunning&&(this.isTimerRunning=!0,setInterval((function(){n.updateSequenceNumberToIDB()}),5e3));var o,a,s=[],c=[];t.forEach((function(e){var t=n.getGenericEventBody(e),i=n.getBreadcrumbs(e),r=n.envelop(e.id,t,i);n.trigger(r,e.meta);var o=r.eventInfo.eventName;"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?s.push(r):c.push(r),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var a=pr(e.id);wr.includes(a)&&"number"==typeof n.clientTopicLocalSequenceNumberCountersMap[a]&&n.clientTopicLocalSequenceNumberCountersMap[a]++})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(s.length+c.length),a=this.clientMonitoringConn,o={onResult:function(e,t){a&&!a.isDestroyed()&&(e.statusCode&&a.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,r="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(r)].join(", ");null==a||a.logFailedEvent(vr.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},o,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.trackingEndpoint,s,void 0,o),this.networkTransporter.sendPayload(this.trackingEndpoint,c,void 0,o))}}},{key:"getTrackingEndpoint",value:function(){return this.trackingEndpoint}}]),e}();var Sr,Cr=function(){function e(t,n){Yt(this,e),this.clientBreadcrumbType=t,this.id=n}return Qt(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(e){e.UNKNOWN="UNKNOWN",e.ME_NOTIFICATION="ME_NOTIFICATION",e.ME_NOTIFICATION_ACTION="ME_NOTIFICATION_ACTION",e.JOB_VIEW="JOB_VIEW",e.MEDIA="MEDIA",e.FEED_UPDATE_SERVED="FEED_UPDATE_SERVED",e.MESSAGE_SEND_CLIENT_SUCCESS="MESSAGE_SEND_CLIENT_SUCCESS",e.MESSAGE_SEND_CLIENT_FAILURE="MESSAGE_SEND_CLIENT_FAILURE",e.MESSAGE_SEND_FUNNEL="MESSAGE_SEND_FUNNEL"}(Sr||(Sr={}));var Ir=function(e){function t(){return Yt(this,t),Bt(this,t,[Sr.FEED_UPDATE_SERVED,ji()])}return jt(t,Cr),Qt(t)}();function kr(e,t){var n;if("proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb"!==t)throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));if(!(n=(new Ir).builder))throw new Error("breadcrumb class ".concat(t," needs to be defined in core-web-tracking."));for(var i in e){var r=e[i];null!=r&&n[i](r)}return n.build()}function Ar(e){var t,n=[],i=[],r=Wt(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=Ft(o,Ct);if(i.push(s),a){var c=a.$type,l=kr(Ft(a,It),c);n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}function xr(e){var t,n=new Set,i=[],r=Wt(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName);n.has(a)||(n.add(a),i.push(o))}}catch(e){r.e(e)}finally{r.f()}var s=Ar(i);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function Or(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,o=e.lipi&&function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi);if(o?r={pageInstance:o,pageKey:t}:t&&(r={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);r={pageInstance:{pageUrn:"urn:li:externalPage:".concat(a),trackingId:e.external_page_instance},pageKey:a},n=!0}var s=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 s&&((r=r||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:r,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:i}}function Lr(e){return"retryConfig"in e.host}function Rr(e){return"location"in e.api}var Nr,Pr,Dr;!function(){function e(t,n){var i,r;if(Yt(this,e),$t(this,"transporter",void 0),$t(this,"delegate",void 0),$t(this,"currentContext",void 0),$t(this,"appState",void 0),$t(this,"referrer",void 0),$t(this,"previousAppContext",void 0),$t(this,"customTransporters",void 0),$t(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 a=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new Tr(this.transporter.host.api.assign(a,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&&Rr(t.host)&&(this.clientMonitoringConn=yr(t.host))}Qt(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){Pi.before(Ai,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){Pi.offBefore(Ai,e)}},{key:"checkAndEnablePersistentRetry",value:function(){Lr(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Lr(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Vi(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,Or(t),null==n?void 0:n.pageInstanceTrackingId);if(this.setCurrentContext(i.to),!n.suppressEventsFiring)return this.fireNavEvents(i)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Vi(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Vi(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=zi(n.pageKey,e),a={controlTrackingId:i,controlUrn:o,interactionType:t};return r&&r(o),a}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-name]");if(i){var r=i.getAttribute("data-view-name");r&&t.push(r)}n=null==i?void 0:i.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var i=n.closest("[data-view-tracking-scope]");if(i){var r=i.getAttribute("data-view-tracking-scope");if(r)try{var o=JSON.parse(r);o&&o.length&&t.push.apply(t,zt(o))}catch(e){$i("getViewTrackingScope","Error parsing trackingScope ".concat(r))}}n=null==i?void 0:i.parentElement}return t}},{key:"fireInteraction",value:function(e){var t=e.manualFireReason,n=e.interactionType,i=e.targetView,r=e.viewHierarchy,o=e.viewTrackingScope,a=e.verticalPosition,s=e.horizontalPosition,c=e.controlUrn,l=e.actionType,u=e.contentTrackingId,d=e.clientBreadcrumbs,h=void 0===d?[]:d,p=e.isShadowEvent,f=e.cooloffToken,g=i?this.getViewHierarchy(i):[],v=g.length>0?g:r||[],m=o||this.getViewTrackingScope(i);0===v.length&&console.warn("No viewHierarchy provided or found from element.");var y=xr(m),E=y.breadcrumbs,b=y.trackingScopes;return this.fireEvent("GenericActionEvent",{verticalPosition:a,horizontalPosition:s,controlUrn:c||"",interactionType:n,actionType:l,contentTrackingId:""===u?void 0:u,manualFireReason:t,cooloffToken:f,trackingScopeHierarchy:{entries:b}},{header:{viewHierarchy:v}},[].concat(zt(h),zt(E)),p)}},{key:"fireImpression",value:function(e,t){var n=e.manualFireReason,i=e.targetView,r=e.viewHierarchy,o=e.viewTrackingScope,a=e.viewDurationInMilliseconds,s=void 0===a?0:a,c=e.contentViewFraction,l=void 0===c?1:c,u=e.width,d=void 0===u?-1:u,h=e.height,p=void 0===h?-1:h,f=e.verticalPosition,g=e.horizontalPosition,v=e.impressionTime,m=e.contentTrackingId,y=e.clientBreadcrumbs,E=void 0===y?[]:y,b=e.isShadowEvent,w=e.cooloffToken,_=i?this.getViewHierarchy(i):[],T=_.length>0?_:r||[],S=o||this.getViewTrackingScope(i);0===T.length&&console.warn("No viewHierarchy provided or found from element.");var C=xr(S),I=C.breadcrumbs,k=C.trackingScopes,A={header:{viewHierarchy:T},context:null==t?void 0:t.context};return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:s,contentViewFraction:l,width:d,height:p,verticalPosition:f,horizontalPosition:g,impressionTime:v,contentTrackingId:""===m?void 0:m,manualFireReason:n,cooloffToken:w,trackingScopeHierarchy:{entries:k}},A,[].concat(zt(E),zt(I)),b)}},{key:"fireEvent",value:function(e,t,n,i,r){if(!t){var o=pr(e),a=void 0===t?"undefined":null===t?"null":Xt(t),s='Firing tracking event "'.concat(o,'" with invalid body, you fired "').concat(a,'"');if(this.clientMonitoringConn){var c=this.clientMonitoringConn.logEventGenerated(o);this.clientMonitoringConn.logFailedEvent(vr.MISSING_REQUIRED_PROPERTIES,e,s,c)}throw new Error(s)}var l=i||[];if(l.length>0){var u=l.map((function(e){return Cr.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:u})}var d=l.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,l,r):this.generateEnvelope(e,t,n,r);return this.fireEnvelope(d)}},{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=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.generateEnvelope(e,t,n,r);return i.length>0?this.addBreadcrumbsToEnvelope(o,i):o}},{key:"addBreadcrumbsToEnvelope",value:function(e,t){return this.host.api.assign(e,{clientBreadcrumbs:t}),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(hr(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,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s=pr(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(vr.UNKNOWN_EXECUTION_ERROR,r.id,c,l)}throw new Error(c)}return a.fireEvent(r)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return Wi(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{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),Pi.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 zi((t||this.currentContext||{pageKey:tn}).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,n){var i="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:i,topicName:"InboundNavigationEvent"}:i;return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,n||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 a=i&&i.applicationInstance;return a&&(o.meta.header.clientApplicationInstance=a),this.host.api.Promise.all([this._firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n,i,r,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],c={directive:a.directive,transporterKey:a.transporterKey,context:a.context||this.currentContext&&Vi(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},Rr(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(i=this.host).__getLixTreatment)||void 0===n?void 0:n.call(i,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(r=this.host.api.document)||void 0===r?void 0:r.referrer:null===(o=this.host.api.document)||void 0===o?void 0:o.referrer}:{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance,isShadowEvent:s},a.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:c}}}])}();!function(e){e.INTERNAL_OTEL_JET_EVENT="internal:otel:jet",e.INTERNAL_OTEL_RESOURCE="internal:otel:resource",e.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT="internal:otel:lcp",e.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT="internal:otel:cls",e.INTERNAL_OTEL_FIRST_INPUT_DELAY="internal:otel:fid"}(Nr||(Nr={})),function(){function e(t,n){var i,r,o=this;Yt(this,e),$t(this,"core",void 0),$t(this,"protocol",void 0),$t(this,"throttleKeySet",new Set),$t(this,"config",void 0),$t(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),o.reportError(e.reason,e.tags.concat(["info"]),{responseHeaders:e.responseHeaders}).catch((function(){}))})),this.core=t;var a=this.core.host.api.location.protocol;this.protocol=a.substring(0,a.length-1),this.config={throttleTime:null!==(i=null==n?void 0:n.throttleTime)&&void 0!==i?i:100,useOTel:null!==(r=null==n?void 0:n.useOTel)&&void 0!==r&&r},Pi.on(xi,this.reportTransporterError)}Qt(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,a=void 0===o?"":o,s=r.responseHeaders,c=void 0===s?{}:s,l=r.sduiScreenId,u=r.componentKey,d=e.message,h=e.name,p=e.stack,f=void 0===p?"":p,g=e.fileName,v=void 0===g?"":g,m=e.lineNumber,y=void 0===m?0:m,E=e.columnNumber,b=void 0===E?0:E,w=this.core.host,_=w.appId,T=w.appVersion,S=w.service,C=w.serviceInstance,I=w.treeID,k=void 0===I?"":I,A=w.api,x=A.Promise,O=A.location,L=O.host,R=O.pathname,N=O.search,P=O.hash,D=void 0===P?"":P;if(this.config.useOTel&&Pi.emit(Nr.INTERNAL_OTEL_JET_EVENT,{error:e,tags:i,callTreeId:a,responseHeaders:c}),c){t={};var M=new Map;Object.keys(c).forEach((function(e){M.set(e.toLowerCase(),c[e])})),t.callTreeId=M.get("x-li-uuid"),t.microsoftEdgeReference=M.get("x-msedge-ref"),t.pointOfPresenceId=M.get("x-li-pop"),t.fabric=M.get("x-li-fabric")}var U=function(){return n.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:_,e:{c:b,l:y,m:d,s:f,t:h,u:v},h:D,l:n.protocol,o:L,p:R,pageKey:e.pageKey,q:N,service:S,serviceInstance:C,serviceVersion:T,t:i,trackingID:e.pageInstance.trackingId,treeID:k,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))};if(this.config.throttleTime<0)return U();var F=(h+d+f+i.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(F)?x.resolve(!1):(this.throttleKeySet.add(F),setTimeout((function(){return n.throttleKeySet.delete(F)}),this.config.throttleTime),U())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Pi.off(xi,this.reportTransporterError)}}])}(),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",e.ENABLE_T_3="enable-tracking-3",e.ENABLE_PEM_T_3="enable-pem-tracking-3",e.ENABLE_OTEL="enable-otel"}(Pr||(Pr={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.CustomMeasureEvent="CustomMeasureEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(Dr||(Dr={}));var Mr,Ur,Fr,Br,qr,Hr,jr,Gr=($t($t($t($t($t($t($t($t($t($t(St={},"web-ui-framework","EMBER"),"app-id","linkedin.rum.tracking"),"app-version","unknown"),"is-single-page-app",!0),"user-timing-mark-enabled",!1),"user-timing-measure-enabled",!0),"beacon-source","apps"),"enable-rs-timing",!0),"enable-cdn-tracking",!1),"async-plugins-timeout",5e3),$t($t($t($t($t($t(St,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Wr=-1,zr=-2,Kr=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Vr={redirectStart:"REDIRECT_START",redirectEnd:"REDIRECT_END",fetchStart:"FETCH_START",domainLookupStart:"DOMAIN_LOOKUP_START",domainLookupEnd:"DOMAIN_LOOKUP_END",connectStart:"CONNECT_START",connectEnd:"CONNECT_END",secureConnectionStart:"SECURE_CONNECTION_START",requestStart:"REQUEST_START",responseStart:"RESPONSE_START",responseEnd:"RESPONSE_END",workerStart:"WORKER_START"},Xr={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Yr="pageLoadId does not exist",Jr="rum token passed is invalid",Qr=new RegExp(/batch-(\d+)$|enabled$/),$r=function(){function e(){Yt(this,e),$t(this,"userTimingEntries",[]),$t(this,"longTasks",[]),$t(this,"resourceTimingEntries",[]),$t(this,"cdnData",void 0)}return Qt(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(eo),cdnData:this.cdnData}}}]),e}(),Zr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function eo(e){return Zr.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function to(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};Hr=Object.assign(Object.assign({},n),t),jr=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Hr.root,n);var i=no(e,qr.All,(function(){return no(e,qr.Two,(function(){return no(e,qr.One)}))}));if(i){var r=ho(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>Hr.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>Hr.maxNumberOfTries)return r;i.counter+=1;var a=zt(t);a.splice(o,1);var s=ro(a);if(i.visited.has(s))return r;ao(a)&&po(a,n)&&(r.push(a),i.visited.set(s,!0),r=r.concat(e(a,n,i)))}return r}(i,e));return r.length>0&&(i=r[0]),ro(i)}throw new Error("Selector was not found.")}function no(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=lo(function(e){var t=e.getAttribute("id");return t&&Hr.idName(t)?{name:"#"+yo(t,{isIdentifier:!0}),penalty:0}:null}(o))||lo.apply(void 0,zt(function(e){return Array.from(e.attributes).filter((function(e){return Hr.attr(e.name,e.value)})).map((function(e){return{name:"["+yo(e.name,{isIdentifier:!0})+'="'+yo(e.value)+'"]',penalty:.5}}))}(o)))||lo.apply(void 0,zt(function(e){return Array.from(e.classList).filter(Hr.className).map((function(e){return{name:"."+yo(e,{isIdentifier:!0}),penalty:1}}))}(o)))||lo(function(e){var t=e.tagName.toLowerCase();return Hr.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],s=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===qr.All)s&&(e=e.concat(e.filter(co).map((function(e){return so(e,s)}))));else if(t===qr.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(co).map((function(e){return so(e,s)}))));else if(t===qr.One){var c=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,o,a,s=[],c=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=o.call(n)).done)&&(s.push(i.value),s.length!==t);c=!0);}catch(e){l=!0,r=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(e,t)||Kt(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e=e.slice(0,1),1)[0];s&&co(c)&&(e=[so(c,s)])}var l,u=Wt(e);try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(r.push(e),r.length>=Hr.seedMinLength&&(i=io(r,n)))return 1;o=o.parentElement,a++};o&&o!==Hr.root.parentElement&&!s(););return i||(i=io(r,n)),i}function io(e,t){var n=ho(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=Wt(t[0]);try{for(o.s();!(i=o.n()).done;){var a=i.value;r=r.concat(e(t.slice(1,t.length),n.concat(a)))}}catch(t){o.e(t)}finally{o.f()}return r}return[n]}(e));if(n.length>Hr.threshold)return t?t():null;var i,r=Wt(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(ao(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function ro(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 oo(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function ao(e){switch(jr.querySelectorAll(ro(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(ro(e)));case 1:return!0;default:return!1}}function so(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function co(e){return"html"!==e.name&&!e.name.startsWith("#")}function lo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(uo);return i.length>0?i:null}function uo(e){return null!=e}function ho(e){return Array.from(e).sort((function(e,t){return oo(e)-oo(t)}))}function po(e,t){return jr.querySelector(ro(e))===t}!function(e){e.HTTP0_9="HTTP0_9",e.HTTP1_0="HTTP1_0",e.HTTP1_1="HTTP1_1",e.HTTP2="HTTP2",e.UNKNOWN="UNKNOWN"}(Mr||(Mr={})),function(e){e.REDIRECT_START="REDIRECT_START",e.REDIRECT_END="REDIRECT_END",e.FETCH_START="FETCH_START",e.DOMAIN_LOOKUP_START="DOMAIN_LOOKUP_START",e.DOMAIN_LOOKUP_END="DOMAIN_LOOKUP_END",e.CONNECT_START="CONNECT_START",e.CONNECT_END="CONNECT_END",e.SECURE_CONNECTION_START="SECURE_CONNECTION_START",e.REQUEST_START="REQUEST_START",e.RESPONSE_START="RESPONSE_START",e.RESPONSE_END="RESPONSE_END",e.WORKER_START="WORKER_START"}(Ur||(Ur={})),function(e){e.redirectStart="redirectStart",e.redirectEnd="redirectEnd",e.fetchStart="fetchStart",e.domainLookupStart="domainLookupStart",e.domainLookupEnd="domainLookupEnd",e.connectStart="connectStart",e.connectEnd="connectEnd",e.secureConnectionStart="secureConnectionStart",e.requestStart="requestStart",e.responseStart="responseStart",e.responseEnd="responseEnd",e.workerStart="workerStart"}(Fr||(Fr={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Br||(Br={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(qr||(qr={}));var fo=/[ -,\.\/:-@\[-\^`\{-~]/,go=/[ -,\.\/:-@\[\]\^`\{-~]/,vo=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,mo={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function yo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},mo),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var i="double"==n.quotes?'"':"'",r=n.isIdentifier,o=e.charAt(0),a="",s=0,c=e.length;s<c;){var l=e.charAt(s++),u=l.charCodeAt(0),d=void 0;if(u<32||u>126){if(u>=55296&&u<=56319&&s<c){var h=e.charCodeAt(s++);56320==(64512&h)?u=((1023&u)<<10)+(1023&h)+65536:s--}d="\\"+u.toString(16).toUpperCase()+" "}else d=n.escapeEverything?fo.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&&go.test(l)?"\\"+l:l;a+=d}return r&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(vo,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var Eo,bo=[{strToFilter:"https://dms.licdn.com/playlist",excludeUrl:["https://dms.licdn.com/playlist/C4D05AQGiUFPvMk-NyQ/mp4-720p-30fp-crf28/0/1670518159491?e=1683741600&v=beta&t=3Wr_tdLLkQDX1kBQKEZW6NERypEqTi2mgZDDxFStjuI"],includeUrl:["https://media.licdn.com/dms/image/C4E0DAQF2IPL6XzFxlw/learning-public-crop_288_512/0/1593208644948?e=1681236000&v=beta&t=YpZr5ZaVoveJv_I6JKHTTZMsysttvKnT364PwDvjJHU"]},{strToFilter:"/sensorCollect/?action=reportMetrics",excludeUrl:["https://www.linkedin.com/sensorCollect/?action=reportMetrics","https://www.linkedin-ei.com/sensorCollect/?action=reportMetrics"],includeUrl:["https://www.linkedin.com/voyager/api/relationships/connectionsSummary/"]},{strToFilter:"/voyager/api/voyagerContentcreationDashGuiderPrompts",excludeUrl:["https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=test&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%C2%90b%C2%A9%C2%87%C3%A8%C3%A2By%C2%8798x%C2%B0%03%C2%9Ft","https://www.linkedin.com/voyager/api/voyagerContentcreationDashGuiderPrompts?decorationId=com.linkedin.voyager.dash.deco.contentcreation.GuiderPrompt-10&commentary=Subestimar%20la%20necesidad%20de%20la%20estrategia%20de%20comunicaci%C3%B3n%20es%20un%20peligroso%20error%20que%20comenten%20constantemente%20las%20empresas&disableGoldGuider=true&hasAttachment=false&q=highestPriorityTriggeredPrompt&shareBoxSessionId=%5C%C3%99t%C2%A2%1EZIM%C2%A4%09%13%27%C2%B91C%15"],includeUrl:["https://www.linkedin.com/voyager/api/voyager","https://www.linkedin.com/voyager/api/voyagerContentcreationDashSharebox?action=fetchShareboxWithDraft&decorationId=com.linkedin.voyager.dash.deco.contentcreation.sharebox-26"]},{strToFilter:"/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat",excludeUrl:["https://www.linkedin.com/realtime/realtimeFrontendClientConnectivityTracking?action=sendHeartbeat"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"/realtime/connect?rc=1",excludeUrl:["https://www.linkedin.com/realtime/connect?rc=1"],includeUrl:["https://www.linkedin.com/realtime/realtimeFrontendTimestamp","https://www.linkedin.com/realtime/realtimeFrontendSubscriptions?ids=List((clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5YWGUB4hwl054jtklqpx2VjPbbVo7Gh74),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAACdkULEBbkw8xk4H_KA5SxqK3TCxyxk9_Wk),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAAD5g-3IBNIABcinpNPrjErVw8282O5xXDVA),(clientConnectionId:8d5bf314-1345-416e-9ec3-013bf22ec8a6,topic:urn%3Ali-realtime%3ApresenceStatusTopic%3Aurn%3Ali%3Afsd_profile%3AACoAADUWTR8BJhjL3YT-_tt80GpZ-7AHUlrE6qA))"]},{strToFilter:"li/tscp/sct",excludeUrl:["https://www.linkedin.com/li/tscp/sct"]}];function wo(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 _o(e){var t=e||performance;return Math.round(t.now())}function To(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return to(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=To(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function So(e,t,n,i){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration;r.push({entryType:"MEASURE",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:t,timestamp:n,duration:o}]})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,o=e.duration;r.push({entryType:"MARK",name:t,startTime:n,duration:o}),null==i||i({measurementName:t,measurementType:"MARK",measureProgressStates:[{measureProgressName:t,timestamp:n}]})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Co(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Io,ko,Ao=function(){function e(t){Yt(this,e),$t(this,"hostApis",void 0),$t(this,"hostnameProperties",void 0),$t(this,"usedHostnames",void 0),$t(this,"abortController",void 0),$t(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 Qt(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Yi(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=Xi(Yi(this.pendingPromises),r),a=setTimeout((function(){t.abortController.abort(),t.abortController=new i}),e);return o.then((function(){return clearTimeout(a),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,(Eo=Eo||i.createElement("a")).href=n,Eo.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=r({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(a),n}));this.pendingPromises.add(a)}}}},{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}(),xo=["latency","acq_time","allFeatures","requestIdleCallback","getCookieString","_cookieRegEx","bcookie","substring","getDomain","; path=","string","domain=","expires=","toUTCString","cookie","=([^;]*)","DNA","HUMAN","DFP_WEB","querySelector","nodeValue","https://www.linkedin.com","https://www.linkedin-ei.com","POST","setRequestHeader","application/json","send","getElementsByClassName","str2ab","btoa","fromCharCode","importPk","atob","crypto","subtle","importKey","RSA-OAEP","SHA-256","wrap","spki","wrapKey","raw","encode","wrapErrorResult","error","encryptWithKey","number","getRandomValues","AES-CBC","generateKey","encrypt","decrypt","resolve","encryptWithKeyIds","Error: ec2","isNaN","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqyVTa3Pi5twlDxHc34nl3MlTHOweIenIid6hDqVlh5/wcHzIxvB9nZjObW3HWfwqejGM+n2ZGbo9x8R7ByS3/V4qRgAs1z4aB6F5+HcXsx8uVrQfwigK0+u7d3g1s7H8qUaguMPHxNnyj5EisTJBh2jf9ODp8TpWnhAQHCCSZcDM4JIoIlsVdGmv+dGlzZzmf1if26U4KJqFdrqS83r3nGWcEpXWiQB+mx/EX4brbrhOFCvfPovvsLEjMTm0UC68Bvki3UsB/vkkMPW9cxNiiJJdnDkOEEdQPuFmPug+sqhACl3IIHLVBFM7vO0ca14rcCNSbSDaaKOY6BQoW1A30wIDAQAB","MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtw/ArJ9dD6hi+jrX6ZpRqwk2Mm5v3EElQGhzSngYHAm7gvdcAEj6sbU4HhrXs3+TZamDV+RHwL+rDT+TtD8ZJBaVbA+wRDdIezECZT+WNZw2SMkjAsX0OynAT/wowGfE72zMhYc4byGfQmtAQrUL2iJ19KIJj0aZ4m41kvnBHMZbwO52+ceyQhqAzB7bn6U//QHJySHgjaOsgkpPnuxZUz6ly+FrKveQp+bNIfh8R5GO2ABRoeBL4c3jip/UjmmnfYE3xdzubni1a6WQ6YTTb6ZEJSgQTp/Rc+o/btcKkTIqDcXvGbO0iAxev8EXV7GtkRguqgfwaURAaps9Nes5NwIDAQAB","encryptWithKeyFromDifferentSources","publicKey","publicKeyVersion","uuidv4","from","_compress","ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=","charAt","===","call","pow","battery","signals","FPDataCookie","apfcDf","flash/compiled/FontList.swf","/platform-telemetry/li/apfcDf","/apfc/collect","n/a","err","excluded","enabled","globalIntegration","complete","checkConfigAndInitializeAllIntegration","load","parse","useRequestIdleCallBack","settings-iframe","setting-headline","addEventListener","samplingTimeWindowInMillis","getItem","df_ts","enableOnDemandMode","pauseApfc","checkConfigAndInitializeGlobalIntegration","checkConfigAndInitializeThirdPartyIntegration","deleteItem","li_apfcdc","deleteDfCookieIfRequired","addDfCookieIfRequired","fpDataCookie","apfcTypes","dnaIntegrationEnabled","dnaIntegrationCompleted","intializeGlobalIntegration","includes","humanIntegrationEnabled","humanIntegrationCompleted","initializeHumanIntegration","dfpIntegrationEnabled","dfpIntegrationCompleted","intializeDfpIntegration","initialize","apfcDfPK","reentry","placePonfBeacon","reqid","pageInstance","isProd","fullFeatureCollection","populateFpDataCookie","apfcDfH","compressToBase64","apfcDfPKV","isSyncEnabledWithCb","payload","getBcookie","fb6bbd47-fa7c-4264-b4e9-b25948407586","ee078acd-0704-4344-9e5b-6b84b480c30a","https://merchantpool1.linkedin.com/mdt.js?session_id=","setAttribute","src","dfpIframeScript","doFpt","getElementsByTagName","PXdOjV695v","PXgoH0hfKu","https://li.protechts.net/index.html?ts=","&app_id=","&uc=scraping","generateSha256HashOrDefault","iframe","humanThirdPartyIframe","allow-same-origin allow-scripts","aria-hidden","true","0px","border","scraping","triggerApfc","reentryGlobalIntegration","reentryGlobalIntegrationOnDemand","extractDataCookie","onlyOnDemandFlow",":::","trackingId","memberId","sessionUrn","object","pemberly","isEmpty","div_bc","noscript","parseFromString","text/html","getAttribute","class","ponfUrl","searchParams","get","getElementById","bc_context",".linkedin-ei.com","undefined","triggerDnaApfcEvent","triggerDnaApfcEventOnDemand","x64Add","x64Multiply","x64Rotl","x64LeftShift","x64Fmix","x64Xor","x64hash128","length","charCodeAt","slice","00000000","toString","each","prototype","forEach","hasOwnProperty","map","push","getIPs","webkitRTCPeerConnection","stun:stun.l.google.com:19302","localDescription","sdp","split","indexOf","a=candidate:","c=IN","keys","candidate","iceGatheringState","createOffer","then","setLocalDescription","automationKey","undetected, fake browser","getBrowserNameAndVersion","webdriver","Firefox","document","documentElement","__webdriver_script_fn","Selenium","callPhantom","_phantom","NOT_AVAILABLE","webRtcKey","enumerateDevicesKey","isEnumerateDevicesSupported","mediaDevices","enumerateDevices","gid","groupId","kind","label","catch","audioKey","audio","excludeIOS11","userAgent","webkitOfflineAudioContext","type","triangle","frequency","setValueAtTime","currentTime","createDynamicsCompressor","threshold","knee","reduction","attack","release","function","connect","destination","startRendering","oncomplete","audioTimeout","timeout","renderedBuffer","getChannelData","reduce","abs","disconnect","UserAgent","language","userLanguage","systemLanguage","colorDepthKey","screen","colorDepth","deviceMemoryKey","deviceMemory"," GB","pixelDepthKey","pixelDepth","pixelRatioKey","devicePixelRatio","getScreenResolution","screenOrientationKey","detectScreenOrientation","Enabled","orientation","Orientation","msOrientation","mozOrientation","width","height","getAvailableScreenResolution","availWidth","availHeight","getTimezoneOffset","timezone","Intl","DateTimeFormat","resolvedOptions","sessionStorageKey","hasSessionStorage","localStorageKey","hasLocalStorage","indexedDbKey","addBehaviorKey","body","addBehavior","openDatabaseKey","openDatabase","cpuClassKey","getNavigatorCpuClass","oscpuKey","appNameKey","appName","appVersionKey","appVersion","appCodeNameKey","appCodeName","now","platformKey","getNavigatorPlatform","productKey","productSubKey","vendorKey","vendorSubKey","vendorSub","doNotTrackKey","incognitoKey","Chrome","RequestFileSystem","webkitRequestFileSystem","TEMPORARY","storage","estimate","Safari","localStorage","setItem","test","removeItem","open","onsuccess","EDGE","PointerEvent","MSPointerEvent","match","IE ","join","replace","OPR","splice","getWebglFp","javascriptsKey","scripts","locationKey","hash","host","hostname","href","origin","pathname","port","protocol","getSignals","getAdBlock","getHasLiedResolution","getHasLiedOs","getHasLiedBrowser","flashFontsKey","hasSwfObjectLoaded","hasMinFlashInstalled","swfPath","loadSwfAndDetectFonts","flash not installed","jsFontsKey","sans-serif","Andale Mono","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier New","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Console","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MYRIAD","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Trebuchet MS","Verdana","Wingdings","Wingdings 3","fonts","extendedJsFonts","concat","userDefinedFonts","filter","createElement","div","style","position","absolute","left","-9999px","fontSize","72px","normal","fontWeight","letterSpacing","lineBreak","lineHeight","textTransform","none","textAlign","textDecoration","textShadow","wordBreak","wordSpacing","textContent","mmmmmmmmmmlli","offsetWidth","offsetHeight","fontFamily","appendChild","removeChild","fontsHash","lists","mimetypesComponent","mimeTypes","suffixes","description","pluginsComponent","isIE","excludeIE","getIEPlugins","getRegularPlugins","plugins","pluginsShouldBeSorted","sort","name","getOwnPropertyDescriptor","ActiveXObject","AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control.1","ERROR","batteryKey","getBattery","level","charging","chargingTime","connection","downlink","downlinkMax","effectiveType","rtt","saveData","touchSupportKey","getTouchSupport","hardwareConcurrencyKey","getHardwareConcurrency","hasIndexedDB","hardwareConcurrency","cpuClass","getDoNotTrack","doNotTrack","msDoNotTrack","maxTouchPoints","msMaxTouchPoints","createEvent","TouchEvent","ontouchstart","canvas","inline","getContext","rect","canvasWinding","yes","textBaseline","fillStyle","#f60","dontUseFakeFontInCanvas","11pt Arial","font","fillText","Cwm fjordbank glyphs vext quiz, 😃","18pt Arial","multiply","beginPath","closePath","fill","arc","rgb(255,0,255)","evenodd","toDataURL","canvasHash","clearColor","enable","DEPTH_TEST","depthFunc","LEQUAL","clear","DEPTH_BUFFER_BIT","getWebglCanvas","createBuffer","bindBuffer","ARRAY_BUFFER","STATIC_DRAW","itemSize","numItems","createProgram","createShader","attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}","shaderSource","precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}","compileShader","attachShader","useProgram","vertexPosAttrib","getAttribLocation","attrVertex","offsetUniform","getUniformLocation","enableVertexAttribArray","vertexPosArray","vertexAttribPointer","FLOAT","uniform2f","drawArrays","TRIANGLE_STRIP","webgl","hashOnly","vendorAndRenderer","getWebglVendorAndRenderer","extensions","getSupportedExtensions","webgl aliased line width range","getParameter","ALIASED_LINE_WIDTH_RANGE","webgl aliased point size range","webgl alpha bits","antialias","BLUE_BITS","webgl depth bits","DEPTH_BITS","webgl green bits","GREEN_BITS","webgl max anisotropy","getExtension","EXT_texture_filter_anisotropic","MOZ_EXT_texture_filter_anisotropic","MAX_TEXTURE_MAX_ANISOTROPY_EXT","webgl max combined texture image units","MAX_COMBINED_TEXTURE_IMAGE_UNITS","webgl max cube map texture size","webgl max fragment uniform vectors","MAX_FRAGMENT_UNIFORM_VECTORS","webgl max render buffer size","MAX_RENDERBUFFER_SIZE","webgl max texture image units","MAX_TEXTURE_IMAGE_UNITS","webgl max varying vectors","MAX_VARYING_VECTORS","webgl max vertex texture image units","MAX_VERTEX_TEXTURE_IMAGE_UNITS","MAX_VERTEX_UNIFORM_VECTORS","webgl max viewport dims","MAX_VIEWPORT_DIMS","webgl red bits","RED_BITS","webgl renderer","webgl shading language version","SHADING_LANGUAGE_VERSION","webgl stencil bits","STENCIL_BITS","webgl vendor","VENDOR","WEBGL_debug_renderer_info","UNMASKED_VENDOR_WEBGL","webgl unmasked renderer","UNMASKED_RENDERER_WEBGL","getShaderPrecisionFormat","INT","VERTEX","FRAGMENT","HIGH","LOW","precision","rangeMax","_SHADER","precision ","webgl ","toLowerCase"," shader ","innerHTML","&nbsp;","className","adsbox","getHasLiedLanguages","languages","substr","platform","windows phone","win","Windows","Android","linux","cros","Linux","iphone","ipad","mac","Other","Windows Phone","iOS","pike","ipod","Mac","productSub","opr","Opera","chrome","safari","trident","Internet Explorer","20030107","toSource","isCanvasSupported","Microsoft Internet Explorer","Netscape","swfobject","hasFlashPlayerVersion","9.0.0","addFlashDivNode","swfContainerId","embedSWF","always","false","components","webrtc","tsSeed","location","javascripts","oscpu","numOfCores","vendor","languageKey","timezoneOffset","screenResolution","screenOrientation","availableScreenResolution","availableScreenResolutionKey","sessionStorage","indexedDb","webglKey","signalsKey","touchSupport","networkInfo","networkInfoKey","automation","mimetyps","fontsFlash","getFeatures","excludes","key","alias","getData","shouldEnforceDataLimit","dataLimit","stringify","data","errors"," Data length for:"," was found to be:"];Io=xo,ko=176,function(e){for(;--e;)Io.push(Io.shift())}(++ko);var Oo=function(e,t){return xo[e-=0]};!function(){var e=function(e,t,n,i,r,o){function a(){Yt(this,a)}return Qt(a,null,[{key:Oo("0x0"),value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]+t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]+t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]+t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]+t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:Oo("0x1"),value:function(e,t){e=[e[0]>>>16,65535&e[0],e[1]>>>16,65535&e[1]],t=[t[0]>>>16,65535&t[0],t[1]>>>16,65535&t[1]];var n=[0,0,0,0];return n[3]+=e[3]*t[3],n[2]+=n[3]>>>16,n[3]&=65535,n[2]+=e[2]*t[3],n[1]+=n[2]>>>16,n[2]&=65535,n[2]+=e[3]*t[2],n[1]+=n[2]>>>16,n[2]&=65535,n[1]+=e[1]*t[3],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[2]*t[2],n[0]+=n[1]>>>16,n[1]&=65535,n[1]+=e[3]*t[1],n[0]+=n[1]>>>16,n[1]&=65535,n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0],n[0]&=65535,[n[0]<<16|n[1],n[2]<<16|n[3]]}},{key:Oo("0x2"),value:function(e,t){return 32==(t%=64)?[e[1],e[0]]:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]:(t-=32,[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t])}},{key:Oo("0x3"),value:function(e,t){return 0==(t%=64)?e:t<32?[e[0]<<t|e[1]>>>32-t,e[1]<<t]:[e[1]<<t-32,0]}},{key:"x64Xor",value:function(e,t){return[e[0]^t[0],e[1]^t[1]]}},{key:Oo("0x4"),value:function(e){return e=a[Oo("0x5")](e,[0,e[0]>>>1]),e=a[Oo("0x1")](e,[4283543511,3981806797]),e=a[Oo("0x5")](e,[0,e[0]>>>1]),e=a[Oo("0x1")](e,[3301882366,444984403]),a[Oo("0x5")](e,[0,e[0]>>>1])}},{key:Oo("0x6"),value:function(e,t){t=t||0;var n,i=(e=e||"")[Oo("0x7")]%16,r=e[Oo("0x7")]-i,o=[0,t],s=[0,t],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167];for(n=0;n<r;n+=16)c=[255&e[Oo("0x8")](n+4)|(255&e[Oo("0x8")](n+5))<<8|(255&e[Oo("0x8")](n+6))<<16|(255&e[Oo("0x8")](n+7))<<24,255&e.charCodeAt(n)|(255&e[Oo("0x8")](n+1))<<8|(255&e[Oo("0x8")](n+2))<<16|(255&e[Oo("0x8")](n+3))<<24],l=[255&e[Oo("0x8")](n+12)|(255&e[Oo("0x8")](n+13))<<8|(255&e[Oo("0x8")](n+14))<<16|(255&e[Oo("0x8")](n+15))<<24,255&e.charCodeAt(n+8)|(255&e[Oo("0x8")](n+9))<<8|(255&e[Oo("0x8")](n+10))<<16|(255&e[Oo("0x8")](n+11))<<24],c=a[Oo("0x1")](c,u),c=a.x64Rotl(c,31),c=a.x64Multiply(c,d),o=a.x64Xor(o,c),o=a[Oo("0x2")](o,27),o=a[Oo("0x0")](o,s),o=a[Oo("0x0")](a.x64Multiply(o,[0,5]),[0,1390208809]),l=a[Oo("0x1")](l,d),l=a[Oo("0x2")](l,33),l=a.x64Multiply(l,u),s=a.x64Xor(s,l),s=a[Oo("0x2")](s,31),s=a[Oo("0x0")](s,o),s=a[Oo("0x0")](a[Oo("0x1")](s,[0,5]),[0,944331445]);switch(c=[0,0],l=[0,0],i){case 15:l=a[Oo("0x5")](l,a.x64LeftShift([0,e[Oo("0x8")](n+14)],48));case 14:l=a[Oo("0x5")](l,a[Oo("0x3")]([0,e.charCodeAt(n+13)],40));case 13:l=a.x64Xor(l,a[Oo("0x3")]([0,e[Oo("0x8")](n+12)],32));case 12:l=a[Oo("0x5")](l,a.x64LeftShift([0,e[Oo("0x8")](n+11)],24));case 11:l=a[Oo("0x5")](l,a[Oo("0x3")]([0,e[Oo("0x8")](n+10)],16));case 10:l=a[Oo("0x5")](l,a[Oo("0x3")]([0,e[Oo("0x8")](n+9)],8));case 9:l=a.x64Xor(l,[0,e[Oo("0x8")](n+8)]),l=a.x64Multiply(l,d),l=a.x64Rotl(l,33),l=a[Oo("0x1")](l,u),s=a[Oo("0x5")](s,l);case 8:c=a.x64Xor(c,a.x64LeftShift([0,e.charCodeAt(n+7)],56));case 7:c=a[Oo("0x5")](c,a[Oo("0x3")]([0,e[Oo("0x8")](n+6)],48));case 6:c=a[Oo("0x5")](c,a[Oo("0x3")]([0,e[Oo("0x8")](n+5)],40));case 5:c=a[Oo("0x5")](c,a.x64LeftShift([0,e[Oo("0x8")](n+4)],32));case 4:c=a.x64Xor(c,a[Oo("0x3")]([0,e.charCodeAt(n+3)],24));case 3:c=a[Oo("0x5")](c,a[Oo("0x3")]([0,e[Oo("0x8")](n+2)],16));case 2:c=a[Oo("0x5")](c,a[Oo("0x3")]([0,e.charCodeAt(n+1)],8));case 1:c=a[Oo("0x5")](c,[0,e[Oo("0x8")](n)]),c=a[Oo("0x1")](c,u),c=a[Oo("0x2")](c,31),c=a[Oo("0x1")](c,d),o=a[Oo("0x5")](o,c)}return o=a[Oo("0x5")](o,[0,e[Oo("0x7")]]),s=a[Oo("0x5")](s,[0,e[Oo("0x7")]]),o=a[Oo("0x0")](o,s),s=a[Oo("0x0")](s,o),o=a[Oo("0x4")](o),s=a.x64Fmix(s),o=a.x64Add(o,s),s=a[Oo("0x0")](s,o),("00000000"+(o[0]>>>0).toString(16))[Oo("0x9")](-8)+(Oo("0xa")+(o[1]>>>0)[Oo("0xb")](16)).slice(-8)+("00000000"+(s[0]>>>0)[Oo("0xb")](16)).slice(-8)+(Oo("0xa")+(s[1]>>>0)[Oo("0xb")](16))[Oo("0x9")](-8)}}]),a}(),t=function(t,n,i,r,o,a,s,c,l,u,d,h,p,f,g,v,m,y,E,b,w,_,T,S,C,I,k,A,x,O,L,R,N,P,D,M,U,F,B,q,H,j,G,W,z,K,V,X,Y,J,Q,$,Z,ee,te,ne,ie,re,oe,ae,se,ce,le,ue){function de(){Yt(this,de),this[Oo("0x1f8")]=[{key:Oo("0x1f9"),getData:de[Oo("0x2d")],shouldEnforceDataLimit:!0,dataLimit:1e3},{key:Oo("0x31"),getData:de.enumerateDevicesKey,shouldEnforceDataLimit:!0,dataLimit:22e3},{key:Oo("0x81"),getData:de[Oo("0x80")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x1fa"),getData:de.seedKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x83"),getData:de[Oo("0x82")],shouldEnforceDataLimit:!0,dataLimit:300},{key:Oo("0x85"),getData:de[Oo("0x84")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x1fb"),getData:de.locationKey,shouldEnforceDataLimit:!0,dataLimit:1500},{key:Oo("0x1fc"),getData:de.javascriptsKey,shouldEnforceDataLimit:!0,dataLimit:2200},{key:Oo("0x1d3"),getData:de.platformKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"product",getData:de[Oo("0x89")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x1e4"),getData:de[Oo("0x8a")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x149"),getData:de[Oo("0x7d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x1fd"),getData:de[Oo("0x7f")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x148"),getData:de[Oo("0x145")],alias:Oo("0x1fe"),shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x5b"),getData:de.deviceMemoryKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x1ff"),getData:de.vendorKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x8d"),getData:de.vendorSubKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x54"),getData:de[Oo("0x200")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x201"),getData:de[Oo("0x201")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x6f"),getData:de.timezone,shouldEnforceDataLimit:!0,dataLimit:100},{key:"userAgent",getData:de[Oo("0x53")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Oo("0x24"),getData:de.webdriver,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x14b"),getData:de.doNotTrackKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:"incognito",getData:de.incognitoKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x59"),getData:de[Oo("0x57")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x5e"),getData:de[Oo("0x5d")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"pixelRatio",getData:de.pixelRatioKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x202"),getData:de.screenResolutionKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x203"),getData:de[Oo("0x62")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x204"),getData:de[Oo("0x205")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x206"),getData:de.sessionStorageKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x97"),getData:de[Oo("0x75")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x207"),getData:de.indexedDbKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x7a"),getData:de[Oo("0x78")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"openDatabase",getData:de[Oo("0x7b")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x152"),getData:de.canvasKey,shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x18c"),getData:de[Oo("0x208")],shouldEnforceDataLimit:!0,dataLimit:6e3},{key:"signals",getData:de[Oo("0x209")],shouldEnforceDataLimit:!0,dataLimit:150},{key:Oo("0x20a"),getData:de[Oo("0x143")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x20b"),getData:de[Oo("0x20c")],shouldEnforceDataLimit:!0,dataLimit:150},{key:"battery",getData:de[Oo("0x138")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x38"),getData:de[Oo("0x37")],shouldEnforceDataLimit:!0,dataLimit:100},{key:Oo("0x20d"),getData:de[Oo("0x21")],shouldEnforceDataLimit:!0,dataLimit:100},{key:"plugins",getData:de[Oo("0x119")],shouldEnforceDataLimit:!0,dataLimit:17e3},{key:Oo("0x20e"),getData:de[Oo("0x115")],shouldEnforceDataLimit:!0,dataLimit:27e3},{key:"fonts",getData:de[Oo("0xbd")],shouldEnforceDataLimit:!0,dataLimit:1500},{key:Oo("0x20f"),getData:de[Oo("0xb7")],shouldEnforceDataLimit:!0,dataLimit:100}]}return Qt(de,[{key:Oo("0x210"),value:function(e,t){if(Oo("0x47")==Xt(e)){if(!t)return e({error:"Options not provided"});var n={data:{latency:{acq_time:{}},errors:{}}},i=Date[Oo("0x86")](),r={},o=0,a=0;this[Oo("0x1f8")][Oo("0xe")]((function(s){if(!t[Oo("0x211")][s[Oo("0x212")]]){var c=s[Oo("0x212")];void 0!==s.alias&&null!==s[Oo("0x213")]&&s[Oo("0x213")][Oo("0x7")]>0&&(c=s.alias),o++;var l=function(){r[c]=Date[Oo("0x86")]();try{s[Oo("0x214")]((function(t){if(!1!==s[Oo("0x215")]){var l=s[Oo("0xf")](Oo("0x216"))&&"number"==typeof s.dataLimit?s[Oo("0x216")]:1e3,u=JSON[Oo("0x217")](t)[Oo("0x7")];u>l&&(n[Oo("0x218")][Oo("0x219")][c]="Exceeded current data limit:"+l+Oo("0x21a")+c+Oo("0x21b")+u,t={})}n.data[c]=t,n[Oo("0x218")][Oo("0x21c")].acq_time[c]=Date[Oo("0x86")]()-r[c],++a>=o&&(n.data.latency[Oo("0x21d")][Oo("0x21e")]=Date.now()-i,n[Oo("0x218")].allFeaturesCollectionAt=Date.now(),e(n[Oo("0x218")],!0))}),t)}catch(e){n[Oo("0x218")][Oo("0x219")][c]=String(e)}};"function"==typeof window[Oo("0x21f")]&&!1!==t.useRequestIdleCallBack?window[Oo("0x21f")](l):l()}})),n[Oo("0x218")][Oo("0x21c")][Oo("0x21d")][Oo("0x21e")]=Date[Oo("0x86")]()-i,e(n[Oo("0x218")],!1)}}}],[{key:t,value:function(e,t){if(Array[Oo("0xd")][Oo("0xe")]&&e[Oo("0xe")]===Array[Oo("0xd")][Oo("0xe")])e[Oo("0xe")](t);else if(e[Oo("0x7")]===+e[Oo("0x7")])for(var n=0,i=e.length;n<i;n++)t(e[n],n,e);else for(var r in e)e[Oo("0xf")](r)&&t(e[r],r,e)}},{key:n,value:function(e,t){var n=[];return null==e?n:Array.prototype[Oo("0x10")]&&e.map===Array[Oo("0xd")][Oo("0x10")]?e.map(t):(de[Oo("0xc")](e,(function(e,i,r){n[Oo("0x11")](t(e,i,r))})),n)}},{key:i,value:function(e,t){var n={},i=new(window.RTCPeerConnection||window[Oo("0x13")]||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:Oo("0x14")}]},{optional:[{RtpDataChannels:!0}]}),r=function(e){if(null!==e)try{var t=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(e)[1];n[t]=!0}catch(e){}},o=!1,a=function(){if(!0!==o){o=!0;var e=i[Oo("0x15")];null!==e&&e[Oo("0x16")][Oo("0x17")]("\n").forEach((function(e){0!==e[Oo("0x18")](Oo("0x19"))&&0!==e[Oo("0x18")](Oo("0x1a"))||r(e)})),t(Object[Oo("0x1b")](n))}};i.onicecandidate=function(e){e[Oo("0x1c")]&&r(e[Oo("0x1c")].candidate)},i.onicegatheringstatechange=function(e){"complete"===i[Oo("0x1d")]&&a()},i.createDataChannel("bl");try{i[Oo("0x1e")]()[Oo("0x1f")]((function(e){i[Oo("0x20")](e)}))}catch(e){i[Oo("0x1e")]((function(e){i[Oo("0x20")](e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:r,value:function(e,t){if(de.getHasLiedBrowser())e(Oo("0x22"));else{var n=de[Oo("0x23")]()[Oo("0x17")](" ")[0];"Chrome"!==n||!0!==navigator[Oo("0x24")]?Oo("0x25")===n&&window[Oo("0x26")][Oo("0x27")].getAttribute(Oo("0x24"))||"_Selenium_IDE_Recorder"in window||Oo("0x28")in document?e(Oo("0x29")):window[Oo("0x2a")]||window[Oo("0x2b")]?e("PhantomJS"):e(t[Oo("0x2c")]):e(Oo("0x29"))}}},{key:o,value:function(e,t){try{de[Oo("0x12")](t,(function(t){e({ips:t})}))}catch(t){e({exception:{name:t.name,message:t.message}})}}},{key:a,value:function(e,t){if(!de[Oo("0x2f")]())return e(t.NOT_AVAILABLE);navigator[Oo("0x30")][Oo("0x31")]().then((function(t){e(t[Oo("0x10")]((function(e){var t={};return t.id=e.deviceId,t[Oo("0x32")]=e[Oo("0x33")],t[Oo("0x34")]=e[Oo("0x34")],t.label=e[Oo("0x35")],t})))}))[Oo("0x36")]((function(t){e(t)}))}},{key:"isEnumerateDevicesSupported",value:function(){return navigator[Oo("0x30")]&&navigator[Oo("0x30")].enumerateDevices}},{key:s,value:function(e,t){var n=t[Oo("0x38")];if(n[Oo("0x39")]&&navigator[Oo("0x3a")].match(/OS 11.+Version\/11.+Safari/))return e(t.EXCLUDED);var i=window.OfflineAudioContext||window[Oo("0x3b")];if(null==i)return e(t[Oo("0x2c")]);var r=new i(1,44100,44100),o=r.createOscillator();o[Oo("0x3c")]=Oo("0x3d"),o[Oo("0x3e")][Oo("0x3f")](1e4,r[Oo("0x40")]);var a=r[Oo("0x41")]();de[Oo("0xc")]([[Oo("0x42"),-50],[Oo("0x43"),40],["ratio",12],[Oo("0x44"),-20],[Oo("0x45"),0],[Oo("0x46"),.25]],(function(e){void 0!==a[e[0]]&&Oo("0x47")==Xt(a[e[0]][Oo("0x3f")])&&a[e[0]][Oo("0x3f")](e[1],r.currentTime)})),o[Oo("0x48")](a),a[Oo("0x48")](r[Oo("0x49")]),o.start(0),r[Oo("0x4a")]();var s=setTimeout((function(){return r[Oo("0x4b")]=function(){},r=null,e(Oo("0x4c"))}),n[Oo("0x4d")]);r[Oo("0x4b")]=function(t){var n;try{clearTimeout(s),n=t[Oo("0x4e")][Oo("0x4f")](0)[Oo("0x9")](4500,5e3)[Oo("0x50")]((function(e,t){return e+Math[Oo("0x51")](t)}),0)[Oo("0xb")](),o[Oo("0x52")](),a[Oo("0x52")]()}catch(t){return void e(t)}e(n)}}},{key:c,value:function(e){e(navigator[Oo("0x3a")])}},{key:l,value:function(e,t){e(void 0===navigator[Oo("0x24")]||null===navigator[Oo("0x24")]?t.NOT_AVAILABLE:navigator[Oo("0x24")])}},{key:"languageKey",value:function(e,t){e(navigator[Oo("0x54")]||navigator[Oo("0x55")]||navigator.browserLanguage||navigator[Oo("0x56")]||t.NOT_AVAILABLE)}},{key:u,value:function(e,t){e(window[Oo("0x58")][Oo("0x59")]||t[Oo("0x2c")])}},{key:d,value:function(e,t){var n=navigator[Oo("0x5b")]||t[Oo("0x2c")];n!==t[Oo("0x2c")]&&(n+=Oo("0x5c")),e(n)}},{key:h,value:function(e,t){e(window[Oo("0x58")][Oo("0x5e")]||t[Oo("0x2c")])}},{key:p,value:function(e,t){e(window[Oo("0x60")]||t[Oo("0x2c")])}},{key:"screenResolutionKey",value:function(e,t){e(de[Oo("0x61")](t))}},{key:f,value:function(e,t){if(t[Oo("0x58")][Oo("0x63")]){var n={};n[Oo("0x64")]=void 0!==screen[Oo("0x65")],n[Oo("0x66")]=screen[Oo("0x67")]||screen[Oo("0x68")]||(screen.orientation||{})[Oo("0x3c")],e(n)}else e(t.EXCLUDED)}},{key:"getScreenResolution",value:function(){return{w:window[Oo("0x58")][Oo("0x69")],h:window.screen[Oo("0x6a")]}}},{key:"availableScreenResolutionKey",value:function(e,t){e(de.getAvailableScreenResolution(t))}},{key:g,value:function(e){return window.screen[Oo("0x6c")]&&window[Oo("0x58")][Oo("0x6d")]?{w:window[Oo("0x58")][Oo("0x6c")],h:window[Oo("0x58")].availHeight}:e[Oo("0x2c")]}},{key:"timezoneOffset",value:function(e){e((new Date)[Oo("0x6e")]()/60)}},{key:v,value:function(e,t){window[Oo("0x70")]&&window[Oo("0x70")][Oo("0x71")]?e((new window.Intl.DateTimeFormat)[Oo("0x72")]().timeZone):e(t.NOT_AVAILABLE)}},{key:m,value:function(e,t){e(de[Oo("0x74")](t))}},{key:y,value:function(e,t){e(de[Oo("0x76")](t))}},{key:E,value:function(e,t){e(de.hasIndexedDB(t))}},{key:b,value:function(e){e(!(!document[Oo("0x79")]||!document[Oo("0x79")][Oo("0x7a")]))}},{key:w,value:function(e){e(!!window[Oo("0x7c")])}},{key:_,value:function(e,t){e(de[Oo("0x7e")](t))}},{key:T,value:function(e,t){e(navigator.oscpu||t.NOT_AVAILABLE)}},{key:S,value:function(e,t){e(navigator[Oo("0x81")]||t[Oo("0x2c")])}},{key:C,value:function(e,t){e(navigator[Oo("0x83")]||t.NOT_AVAILABLE)}},{key:I,value:function(e,t){e(navigator[Oo("0x85")]||t.NOT_AVAILABLE)}},{key:"seedKey",value:function(e,t){e(Date[Oo("0x86")]())}},{key:k,value:function(e,t){e(de[Oo("0x88")](t))}},{key:A,value:function(e,t){e(navigator.product||t.NOT_AVAILABLE)}},{key:x,value:function(e,t){e(navigator.productSub||t[Oo("0x2c")])}},{key:O,value:function(e,t){e(navigator.vendor||t[Oo("0x2c")])}},{key:L,value:function(e,t){e(navigator[Oo("0x8d")]||t[Oo("0x2c")])}},{key:R,value:function(e,t){e(de.getDoNotTrack(t))}},{key:N,value:function(e,t){var n=de[Oo("0x23")]()[Oo("0x17")](" "),i=n[0],r=n[1],o=t[Oo("0x2c")];if(Oo("0x90")===i)if(parseInt(r)<=74){var a=window[Oo("0x91")]||window[Oo("0x92")];a?a(window[Oo("0x93")],100,(function(t){e(!1)}),(function(t){e(!0)})):e(o)}else"storage"in navigator&&"estimate"in navigator[Oo("0x94")]?navigator[Oo("0x94")][Oo("0x95")]().then((function(t){var n=t.quota;e(o=n<125829120)})):e(o);else if(Oo("0x96")===i){if(o=!1,window.safariIncognito)o=!0;else{try{window[Oo("0x7c")](null,null,null,null)}catch(e){o=!0}try{window[Oo("0x97")][Oo("0x98")](Oo("0x99"),1)}catch(e){o=!0}}void 0===o&&(o=!1,window[Oo("0x97")][Oo("0x9a")](Oo("0x99"))),e(o)}else if(Oo("0x25")===i){var s=indexedDB[Oo("0x9b")](Oo("0x99"));s.onerror=function(){e(!0)},s[Oo("0x9c")]=function(){e(!1)}}else e("IE"===i||Oo("0x9d")===i?!window.indexedDB&&(window[Oo("0x9e")]||window[Oo("0x9f")]):o)}},{key:"getBrowserNameAndVersion",value:function(){var e,t=navigator[Oo("0x3a")],n=t[Oo("0xa0")](/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[];return/trident/i[Oo("0x99")](n[1])?(e=/\brv[ :]+(\d+)/g.exec(t)||[],Oo("0xa1")+(e[1]||"")):Oo("0x90")===n[1]&&null!=(e=t.match(/\b(OPR|Edge)\/(\d+)/))?e[Oo("0x9")](1)[Oo("0xa2")](" ")[Oo("0xa3")](Oo("0xa4"),"Opera"):(n=n[2]?[n[1],n[2]]:[navigator[Oo("0x81")],navigator[Oo("0x83")],"-?"],null!=(e=t[Oo("0xa0")](/version\/(\d+)/i))&&n[Oo("0xa5")](1,1,e[1]),n.join(" "))}},{key:"canvasKey",value:function(e,t){de.isCanvasSupported()?e(de.getCanvasFp(t)):e(t[Oo("0x2c")])}},{key:"webglKey",value:function(e,t){de.isWebGlSupported()?e(de[Oo("0xa6")](t)):e(t[Oo("0x2c")])}},{key:P,value:function(e,t){if(void 0===document[Oo("0xa8")]||null===document.scripts)return e(t[Oo("0x2c")]);e([])}},{key:D,value:function(e,t){e({hash:location[Oo("0xaa")]||t[Oo("0x2c")],host:location[Oo("0xab")]||t[Oo("0x2c")],hostname:location[Oo("0xac")]||t.NOT_AVAILABLE,href:location[Oo("0xad")]||t[Oo("0x2c")],origin:location[Oo("0xae")]||t[Oo("0x2c")],pathname:location[Oo("0xaf")]||t[Oo("0x2c")],port:location[Oo("0xb0")]||t[Oo("0x2c")],protocol:location[Oo("0xb1")]||t[Oo("0x2c")]})}},{key:"signalsKey",value:function(e){e(de.getSignals())}},{key:M,value:function(){var e={adBlockInstalled:function(){return de[Oo("0xb3")]()},liedLanguages:function(){return de.getHasLiedLanguages()},liedResolution:function(){return de[Oo("0xb4")]()},liedOS:function(){return de[Oo("0xb5")]()},liedBrowser:function(){return de[Oo("0xb6")]()}},t={};for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];t[n]=i(n)}return t}},{key:U,value:function(e,t){return de[Oo("0xb8")]()?de[Oo("0xb9")]()?t.fonts[Oo("0xba")]?void de[Oo("0xbb")]((function(t){e(t)}),t):e("missing options.fonts.swfPath"):e(Oo("0xbc")):e("swf object not loaded")}},{key:F,value:function(t,n){var i=["monospace",Oo("0xbe"),"serif"],r=[Oo("0xbf"),"Arial","Arial Black",Oo("0xc0"),Oo("0xc1"),Oo("0xc2"),Oo("0xc3"),Oo("0xc4"),Oo("0xc5"),Oo("0xc6"),Oo("0xc7"),"Calibri",Oo("0xc8"),Oo("0xc9"),Oo("0xca"),Oo("0xcb"),Oo("0xcc"),Oo("0xcd"),Oo("0xce"),Oo("0xcf"),"Courier",Oo("0xd0"),"Geneva","Georgia",Oo("0xd1"),Oo("0xd2"),Oo("0xd3"),Oo("0xd4"),"Lucida Calligraphy",Oo("0xd5"),"Lucida Fax",Oo("0xd6"),Oo("0xd7"),Oo("0xd8"),Oo("0xd9"),Oo("0xda"),Oo("0xdb"),Oo("0xdc"),Oo("0xdd"),"MS Gothic",Oo("0xde"),Oo("0xdf"),Oo("0xe0"),Oo("0xe1"),"MS Serif",Oo("0xe2"),"MYRIAD PRO",Oo("0xe3"),Oo("0xe4"),Oo("0xe5"),Oo("0xe6"),Oo("0xe7"),Oo("0xe8"),Oo("0xe9"),Oo("0xea"),Oo("0xeb"),Oo("0xec"),Oo("0xed"),"Times New Roman PS",Oo("0xee"),Oo("0xef"),Oo("0xf0"),"Wingdings 2",Oo("0xf1")];void 0!==n[Oo("0xf2")]&&void 0!==n[Oo("0xf2")][Oo("0xf3")]&&(r=r[Oo("0xf4")](n.fonts[Oo("0xf3")])),void 0!==n[Oo("0xf2")]&&void 0!==n[Oo("0xf2")][Oo("0xf5")]&&(r=r[Oo("0xf4")](n[Oo("0xf2")].userDefinedFonts)),r=r[Oo("0xf6")]((function(e,t){return r[Oo("0x18")](e)===t}));var o=document.getElementsByTagName(Oo("0x79"))[0],a=document[Oo("0xf7")](Oo("0xf8")),s=document[Oo("0xf7")](Oo("0xf8")),c={},l={},u=function(){var e=document[Oo("0xf7")]("span");return e[Oo("0xf9")][Oo("0xfa")]=Oo("0xfb"),e.style[Oo("0xfc")]=Oo("0xfd"),e[Oo("0xf9")][Oo("0xfe")]=Oo("0xff"),e.style.fontStyle=Oo("0x100"),e[Oo("0xf9")][Oo("0x101")]=Oo("0x100"),e[Oo("0xf9")][Oo("0x102")]=Oo("0x100"),e.style[Oo("0x103")]="auto",e[Oo("0xf9")][Oo("0x104")]=Oo("0x100"),e[Oo("0xf9")][Oo("0x105")]=Oo("0x106"),e[Oo("0xf9")][Oo("0x107")]=Oo("0xfc"),e[Oo("0xf9")][Oo("0x108")]=Oo("0x106"),e.style[Oo("0x109")]=Oo("0x106"),e[Oo("0xf9")].whiteSpace="normal",e[Oo("0xf9")][Oo("0x10a")]=Oo("0x100"),e[Oo("0xf9")][Oo("0x10b")]=Oo("0x100"),e[Oo("0x10c")]=Oo("0x10d"),e},d=function(e,t){var n=u();return n[Oo("0xf9")].fontFamily="'"+e+"',"+t,n},h=function(e){for(var t=!1,n=0;n<i[Oo("0x7")];n++)if(t=e[n][Oo("0x10e")]!==c[i[n]]||e[n][Oo("0x10f")]!==l[i[n]])return t;return t},p=function(){for(var e=[],t=0,n=i[Oo("0x7")];t<n;t++){var r=u();r[Oo("0xf9")][Oo("0x110")]=i[t],a[Oo("0x111")](r),e[Oo("0x11")](r)}return e}();o[Oo("0x111")](a);for(var f=0,g=i[Oo("0x7")];f<g;f++)c[i[f]]=p[f].offsetWidth,l[i[f]]=p[f][Oo("0x10f")];var v=function(){for(var e={},t=0,n=r[Oo("0x7")];t<n;t++){for(var o=[],a=0,c=i[Oo("0x7")];a<c;a++){var l=d(r[t],i[a]);s[Oo("0x111")](l),o[Oo("0x11")](l)}e[r[t]]=o}return e}();o[Oo("0x111")](s);for(var m=[],y=0,E=r[Oo("0x7")];y<E;y++)h(v[r[y]])&&m[Oo("0x11")](r[y]);o[Oo("0x112")](s),o.removeChild(a);var b={};b[Oo("0x113")]=e.x64hash128(m[Oo("0xa2")](),23),n.fonts.hashOnly||(b[Oo("0x114")]=m),t(b)}},{key:B,value:function(e,t){if(void 0!==navigator[Oo("0x116")]&&null!==navigator.mimeTypes){for(var n=navigator.mimeTypes,i=[],r=0;r<n[Oo("0x7")];r++){var o={};o.type=n[r].type,o[Oo("0x117")]=n[r].suffixes,o[Oo("0x118")]=n[r][Oo("0x118")],i[Oo("0x11")](o)}e(i)}else e(t[Oo("0x2c")])}},{key:q,value:function(e,t){de[Oo("0x11a")]()?t.plugins[Oo("0x11b")]?e(t.EXCLUDED):e(de[Oo("0x11c")](t)):e(de[Oo("0x11d")](t))}},{key:"getRegularPlugins",value:function(e){if(void 0===navigator[Oo("0x11e")]||null===navigator[Oo("0x11e")])return e[Oo("0x2c")];for(var t=[],n=0,i=navigator[Oo("0x11e")][Oo("0x7")];n<i;n++)navigator.plugins[n]&&t[Oo("0x11")](navigator[Oo("0x11e")][n]);return t[Oo("0x7")]>0&&de[Oo("0x11f")](e)&&(t=t[Oo("0x120")]((function(e,t){return e[Oo("0x121")]>t.name?1:e.name<t[Oo("0x121")]?-1:0}))),de.map(t,(function(e){var t=de[Oo("0x10")](e,(function(e){return[e[Oo("0x3c")],e.suffixes]}));return[e.name,e[Oo("0x118")],t]}))}},{key:"getIEPlugins",value:function(e){var t=[];if(Object[Oo("0x122")]&&Object[Oo("0x122")](window,Oo("0x123"))||Oo("0x123")in window){var n=[Oo("0x124"),Oo("0x125"),Oo("0x126"),Oo("0x127"),Oo("0x128"),Oo("0x129"),Oo("0x12a"),Oo("0x12b"),Oo("0x12c"),"QuickTimeCheckObject.QuickTimeCheck.1",Oo("0x12d"),Oo("0x12e"),Oo("0x12f"),Oo("0x130"),"SWCtl.SWCtl",Oo("0x131"),Oo("0x132"),Oo("0x133"),Oo("0x134"),Oo("0x135"),"rmocx.RealPlayer G2 Control",Oo("0x136")];t=de.map(n,(function(t){try{return new window.ActiveXObject(t),t}catch(t){return e[Oo("0x137")]}}))}else t[Oo("0x11")](e[Oo("0x2c")]);return navigator[Oo("0x11e")]&&(t=t[Oo("0xf4")](de[Oo("0x11d")](e))),t}},{key:H,value:function(e){for(var t=!1,n=0,i=e.plugins.sortPluginsFor[Oo("0x7")];n<i;n++){var r=e.plugins.sortPluginsFor[n];if(navigator[Oo("0x3a")][Oo("0xa0")](r)){t=!0;break}}return t}},{key:j,value:function(e,t){void 0!==navigator.getBattery?navigator[Oo("0x139")]().then((function(t){var n={};n[Oo("0x13a")]=t.level,n[Oo("0x13b")]=t.charging,n.chargingTime=t[Oo("0x13c")],n.dischargingTime=t.dischargingTime,e(n)})):e(t.NOT_AVAILABLE)}},{key:"networkInfoKey",value:function(e,t){var n=navigator[Oo("0x13d")];e(void 0!==n?{downlink:n[Oo("0x13e")],downlinkMax:n[Oo("0x13f")],type:n[Oo("0x3c")],effectiveType:n[Oo("0x140")],rtt:n[Oo("0x141")],saveData:n[Oo("0x142")]}:t[Oo("0x2c")])}},{key:G,value:function(e){e(de[Oo("0x144")]())}},{key:W,value:function(e,t){e(de[Oo("0x146")](t))}},{key:z,value:function(e){try{return!!window.sessionStorage}catch(t){return e[Oo("0x137")]}}},{key:K,value:function(e){try{return!!window.localStorage}catch(t){return e[Oo("0x137")]}}},{key:V,value:function(e){try{return!!window.indexedDB}catch(t){return e[Oo("0x137")]}}},{key:"getHardwareConcurrency",value:function(e){return navigator[Oo("0x148")]?navigator[Oo("0x148")]:e[Oo("0x2c")]}},{key:X,value:function(e){return navigator[Oo("0x149")]||e[Oo("0x2c")]}},{key:"getNavigatorPlatform",value:function(e){return navigator.platform?navigator.platform:e[Oo("0x2c")]}},{key:Y,value:function(e){return navigator.doNotTrack?navigator[Oo("0x14b")]:navigator[Oo("0x14c")]?navigator[Oo("0x14c")]:window[Oo("0x14b")]?window[Oo("0x14b")]:e[Oo("0x2c")]}},{key:J,value:function(){var e,t=0;void 0!==navigator[Oo("0x14d")]?t=navigator[Oo("0x14d")]:void 0!==navigator[Oo("0x14e")]&&(t=navigator[Oo("0x14e")]);try{document[Oo("0x14f")](Oo("0x150")),e=!0}catch(t){e=!1}return{maxTouchPoints:t,touchEvent:e,touchStart:Oo("0x151")in window}}},{key:"getCanvasFp",value:function(t){var n={},i=document.createElement(Oo("0x152"));i.width=2e3,i.height=200,i.style.display=Oo("0x153");var r=i[Oo("0x154")]("2d");return r[Oo("0x155")](0,0,10,10),r[Oo("0x155")](2,2,6,6),n[Oo("0x156")]=!1===r.isPointInPath(5,5,"evenodd")?Oo("0x157"):"no",r[Oo("0x158")]="alphabetic",r[Oo("0x159")]=Oo("0x15a"),r.fillRect(125,1,62,20),r[Oo("0x159")]="#069",t[Oo("0x15b")]?r.font=Oo("0x15c"):r[Oo("0x15d")]="11pt no-real-font-123",r[Oo("0x15e")](Oo("0x15f"),2,15),r[Oo("0x159")]="rgba(102, 204, 0, 0.2)",r[Oo("0x15d")]=Oo("0x160"),r[Oo("0x15e")](Oo("0x15f"),4,45),r.globalCompositeOperation=Oo("0x161"),r.fillStyle="rgb(255,0,255)",r[Oo("0x162")](),r.arc(50,50,50,0,2*Math.PI,!0),r[Oo("0x163")](),r[Oo("0x164")](),r[Oo("0x159")]="rgb(0,255,255)",r[Oo("0x162")](),r[Oo("0x165")](100,50,50,0,2*Math.PI,!0),r.closePath(),r[Oo("0x164")](),r.fillStyle="rgb(255,255,0)",r.beginPath(),r[Oo("0x165")](75,100,50,0,2*Math.PI,!0),r[Oo("0x163")](),r[Oo("0x164")](),r[Oo("0x159")]=Oo("0x166"),r[Oo("0x165")](75,75,75,0,2*Math.PI,!0),r[Oo("0x165")](75,75,25,0,2*Math.PI,!0),r[Oo("0x164")](Oo("0x167")),i[Oo("0x168")]&&(n[Oo("0x169")]=e[Oo("0x6")](i[Oo("0x168")](),23)),n}},{key:Q,value:function(t){var n,i=function(e){return n[Oo("0x16a")](0,0,0,1),n[Oo("0x16b")](n[Oo("0x16c")]),n[Oo("0x16d")](n[Oo("0x16e")]),n[Oo("0x16f")](n.COLOR_BUFFER_BIT|n[Oo("0x170")]),"["+e[0]+", "+e[1]+"]"};if(!(n=de[Oo("0x171")]()))return null;var r={},o=n[Oo("0x172")]();n[Oo("0x173")](n[Oo("0x174")],o);var a=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);n.bufferData(n[Oo("0x174")],a,n[Oo("0x175")]),o[Oo("0x176")]=3,o[Oo("0x177")]=3;var s=n[Oo("0x178")](),c=n[Oo("0x179")](n.VERTEX_SHADER);n.shaderSource(c,Oo("0x17a")),n.compileShader(c);var l=n[Oo("0x179")](n.FRAGMENT_SHADER);n[Oo("0x17b")](l,Oo("0x17c")),n[Oo("0x17d")](l),n[Oo("0x17e")](s,c),n.attachShader(s,l),n.linkProgram(s),n[Oo("0x17f")](s),s[Oo("0x180")]=n[Oo("0x181")](s,Oo("0x182")),s[Oo("0x183")]=n[Oo("0x184")](s,"uniformOffset"),n[Oo("0x185")](s[Oo("0x186")]),n[Oo("0x187")](s[Oo("0x180")],o[Oo("0x176")],n[Oo("0x188")],!1,0,0),n[Oo("0x189")](s[Oo("0x183")],1,1),n[Oo("0x18a")](n[Oo("0x18b")],0,o.numItems);try{r.webglHash=e[Oo("0x6")](n[Oo("0x152")].toDataURL(),23)}catch(e){}if(t[Oo("0x18c")][Oo("0x18d")])return r;r[Oo("0x18e")]=de[Oo("0x18f")](),r[Oo("0x190")]=n[Oo("0x191")]()||[],r[Oo("0x192")]=i(n[Oo("0x193")](n[Oo("0x194")])),r[Oo("0x195")]=i(n[Oo("0x193")](n.ALIASED_POINT_SIZE_RANGE)),r[Oo("0x196")]=n.getParameter(n.ALPHA_BITS),r["webgl antialiasing"]=n.getContextAttributes()[Oo("0x197")]?"yes":"no",r["webgl blue bits"]=n.getParameter(n[Oo("0x198")]),r[Oo("0x199")]=n[Oo("0x193")](n[Oo("0x19a")]),r[Oo("0x19b")]=n[Oo("0x193")](n[Oo("0x19c")]),r[Oo("0x19d")]=function(e){var t=e[Oo("0x19e")](Oo("0x19f"))||e[Oo("0x19e")]("WEBKIT_EXT_texture_filter_anisotropic")||e[Oo("0x19e")](Oo("0x1a0"));if(t){var n=e.getParameter(t[Oo("0x1a1")]);return 0===n&&(n=2),n}return null}(n),r[Oo("0x1a2")]=n[Oo("0x193")](n[Oo("0x1a3")]),r[Oo("0x1a4")]=n.getParameter(n.MAX_CUBE_MAP_TEXTURE_SIZE),r[Oo("0x1a5")]=n[Oo("0x193")](n[Oo("0x1a6")]),r[Oo("0x1a7")]=n[Oo("0x193")](n[Oo("0x1a8")]),r[Oo("0x1a9")]=n[Oo("0x193")](n[Oo("0x1aa")]),r["webgl max texture size"]=n[Oo("0x193")](n.MAX_TEXTURE_SIZE),r[Oo("0x1ab")]=n[Oo("0x193")](n[Oo("0x1ac")]),r["webgl max vertex attribs"]=n[Oo("0x193")](n.MAX_VERTEX_ATTRIBS),r[Oo("0x1ad")]=n[Oo("0x193")](n[Oo("0x1ae")]),r["webgl max vertex uniform vectors"]=n[Oo("0x193")](n[Oo("0x1af")]),r[Oo("0x1b0")]=i(n[Oo("0x193")](n[Oo("0x1b1")])),r[Oo("0x1b2")]=n.getParameter(n[Oo("0x1b3")]),r[Oo("0x1b4")]=n[Oo("0x193")](n.RENDERER),r[Oo("0x1b5")]=n[Oo("0x193")](n[Oo("0x1b6")]),r[Oo("0x1b7")]=n[Oo("0x193")](n[Oo("0x1b8")]),r[Oo("0x1b9")]=n.getParameter(n[Oo("0x1ba")]),r["webgl version"]=n[Oo("0x193")](n.VERSION);try{var u=n.getExtension(Oo("0x1bb"));u&&(r["webgl unmasked vendor"]=n[Oo("0x193")](u[Oo("0x1bc")]),r[Oo("0x1bd")]=n[Oo("0x193")](u[Oo("0x1be")]))}catch(e){}return n[Oo("0x1bf")]?(de[Oo("0xc")]([Oo("0x188"),Oo("0x1c0")],(function(e){de[Oo("0xc")]([Oo("0x1c1"),Oo("0x1c2")],(function(t){de[Oo("0xc")]([Oo("0x1c3"),"MEDIUM",Oo("0x1c4")],(function(i){de.each([Oo("0x1c5"),"rangeMin",Oo("0x1c6")],(function(o){var a=n[Oo("0x1bf")](n[t+Oo("0x1c7")],n[i+"_"+e])[o];"precision"!==o&&(o=Oo("0x1c8")+o);var s=[Oo("0x1c9"),t[Oo("0x1ca")](),Oo("0x1cb"),i[Oo("0x1ca")]()," ",e[Oo("0x1ca")]()," ",o].join("");r[s]=a}))}))}))})),r):r}},{key:$,value:function(){try{var e=de[Oo("0x171")](),t=e[Oo("0x19e")]("WEBGL_debug_renderer_info");return e[Oo("0x193")](t[Oo("0x1bc")])+"~"+e[Oo("0x193")](t[Oo("0x1be")])}catch(e){return null}}},{key:Z,value:function(){var e=document.createElement("div");e[Oo("0x1cc")]=Oo("0x1cd"),e[Oo("0x1ce")]=Oo("0x1cf");var t=!1;try{document[Oo("0x79")][Oo("0x111")](e),t=0===document.getElementsByClassName(Oo("0x1cf"))[0][Oo("0x10f")],document[Oo("0x79")][Oo("0x112")](e)}catch(e){t=!1}return t}},{key:ee,value:function(){if(void 0!==navigator[Oo("0x1d1")])try{if(navigator[Oo("0x1d1")][0][Oo("0x1d2")](0,2)!==navigator[Oo("0x54")][Oo("0x1d2")](0,2))return!0}catch(e){return!0}return!1}},{key:te,value:function(){return window[Oo("0x58")][Oo("0x69")]<window[Oo("0x58")][Oo("0x6c")]||window.screen[Oo("0x6a")]<window[Oo("0x58")].availHeight}},{key:ne,value:function(){var e,t=navigator[Oo("0x3a")][Oo("0x1ca")](),n=navigator.oscpu,i=navigator[Oo("0x1d3")][Oo("0x1ca")]();if(e=t[Oo("0x18")](Oo("0x1d4"))>=0?"Windows Phone":t[Oo("0x18")](Oo("0x1d5"))>=0?Oo("0x1d6"):t[Oo("0x18")]("android")>=0?Oo("0x1d7"):t.indexOf(Oo("0x1d8"))>=0||t[Oo("0x18")](Oo("0x1d9"))>=0?Oo("0x1da"):t[Oo("0x18")](Oo("0x1db"))>=0||t.indexOf(Oo("0x1dc"))>=0?"iOS":t[Oo("0x18")](Oo("0x1dd"))>=0?"Mac":Oo("0x1de"),("ontouchstart"in window||navigator.maxTouchPoints>0||navigator[Oo("0x14e")]>0)&&Oo("0x1df")!==e&&Oo("0x1d7")!==e&&Oo("0x1e0")!==e&&"Other"!==e)return!0;if(void 0!==n){if((n=n.toLowerCase())[Oo("0x18")]("win")>=0&&"Windows"!==e&&Oo("0x1df")!==e)return!0;if(n[Oo("0x18")](Oo("0x1d8"))>=0&&Oo("0x1da")!==e&&Oo("0x1d7")!==e)return!0;if(n.indexOf(Oo("0x1dd"))>=0&&"Mac"!==e&&Oo("0x1e0")!==e)return!0;if((-1===n[Oo("0x18")](Oo("0x1d5"))&&-1===n[Oo("0x18")](Oo("0x1d8"))&&-1===n[Oo("0x18")](Oo("0x1dd")))!=("Other"===e))return!0}return i[Oo("0x18")](Oo("0x1d5"))>=0&&Oo("0x1d6")!==e&&Oo("0x1df")!==e||(i.indexOf(Oo("0x1d8"))>=0||i[Oo("0x18")]("android")>=0||i.indexOf(Oo("0x1e1"))>=0)&&Oo("0x1da")!==e&&"Android"!==e||(i[Oo("0x18")](Oo("0x1dd"))>=0||i[Oo("0x18")](Oo("0x1dc"))>=0||i[Oo("0x18")](Oo("0x1e2"))>=0||i.indexOf(Oo("0x1db"))>=0)&&Oo("0x1e3")!==e&&Oo("0x1e0")!==e||(i[Oo("0x18")]("win")<0&&i[Oo("0x18")](Oo("0x1d8"))<0&&i[Oo("0x18")](Oo("0x1dd"))<0&&i[Oo("0x18")](Oo("0x1db"))<0&&i[Oo("0x18")](Oo("0x1dc"))<0)!=(Oo("0x1de")===e)||void 0===navigator[Oo("0x11e")]&&Oo("0x1d6")!==e&&"Windows Phone"!==e}},{key:ie,value:function(){var e,t=navigator[Oo("0x3a")][Oo("0x1ca")](),n=navigator[Oo("0x1e4")];if(e=t[Oo("0x18")]("firefox")>=0?Oo("0x25"):t[Oo("0x18")]("opera")>=0||t[Oo("0x18")](Oo("0x1e5"))>=0?Oo("0x1e6"):t[Oo("0x18")](Oo("0x1e7"))>=0?"Chrome":t[Oo("0x18")](Oo("0x1e8"))>=0?Oo("0x96"):t[Oo("0x18")](Oo("0x1e9"))>=0?Oo("0x1ea"):Oo("0x1de"),(Oo("0x90")===e||"Safari"===e||Oo("0x1e6")===e)&&Oo("0x1eb")!==n)return!0;var i,r=eval[Oo("0xb")]()[Oo("0x7")];if(37===r&&Oo("0x96")!==e&&"Firefox"!==e&&Oo("0x1de")!==e)return!0;if(39===r&&"Internet Explorer"!==e&&Oo("0x1de")!==e)return!0;if(33===r&&Oo("0x90")!==e&&Oo("0x1e6")!==e&&Oo("0x1de")!==e)return!0;try{throw"a"}catch(e){try{e[Oo("0x1ec")](),i=!0}catch(e){i=!1}}return i&&Oo("0x25")!==e&&"Other"!==e}},{key:re,value:function(){var e=document[Oo("0xf7")](Oo("0x152"));return!(!e.getContext||!e[Oo("0x154")]("2d"))}},{key:"isWebGlSupported",value:function(){if(!de[Oo("0x1ed")]())return!1;var e=de.getWebglCanvas();return!!window.WebGLRenderingContext&&!!e}},{key:oe,value:function(){return Oo("0x1ee")===navigator[Oo("0x81")]||!(Oo("0x1ef")!==navigator[Oo("0x81")]||!/Trident/[Oo("0x99")](navigator.userAgent))}},{key:ae,value:function(){return void 0!==window[Oo("0x1f0")]}},{key:se,value:function(){return window[Oo("0x1f0")][Oo("0x1f1")](Oo("0x1f2"))}},{key:ce,value:function(e){var t=document.createElement(Oo("0xf8"));t.setAttribute("id",e[Oo("0xf2")][Oo("0x1f4")]),document.body.appendChild(t)}},{key:"loadSwfAndDetectFonts",value:function(e,t){window.___fp_swf_loaded=function(t){e(t)};var n=t[Oo("0xf2")].swfContainerId;de[Oo("0x1f3")](),window[Oo("0x1f0")][Oo("0x1f5")](t[Oo("0xf2")].swfPath,n,"1","1",Oo("0x1f2"),!1,{onReady:"___fp_swf_loaded"},{allowScriptAccess:Oo("0x1f6"),menu:Oo("0x1f7")},{})}},{key:le,value:function(){var e=document[Oo("0xf7")](Oo("0x152")),t=null;try{t=e.getContext(Oo("0x18c"))||e[Oo("0x154")]("experimental-webgl")}catch(e){}return t||(t=null),t}}]),de}(Oo("0xc"),Oo("0x10"),Oo("0x12"),Oo("0x21"),Oo("0x2d"),Oo("0x2e"),Oo("0x37"),Oo("0x53"),Oo("0x24"),Oo("0x57"),Oo("0x5a"),Oo("0x5d"),Oo("0x5f"),Oo("0x62"),Oo("0x6b"),Oo("0x6f"),Oo("0x73"),Oo("0x75"),Oo("0x77"),Oo("0x78"),Oo("0x7b"),Oo("0x7d"),Oo("0x7f"),Oo("0x80"),Oo("0x82"),Oo("0x84"),Oo("0x87"),Oo("0x89"),Oo("0x8a"),Oo("0x8b"),Oo("0x8c"),Oo("0x8e"),Oo("0x8f"),Oo("0xa7"),Oo("0xa9"),Oo("0xb2"),Oo("0xb7"),Oo("0xbd"),Oo("0x115"),Oo("0x119"),Oo("0x11f"),Oo("0x138"),Oo("0x143"),Oo("0x145"),Oo("0x74"),Oo("0x76"),Oo("0x147"),Oo("0x7e"),Oo("0x14a"),Oo("0x144"),Oo("0xa6"),Oo("0x18f"),Oo("0xb3"),Oo("0x1d0"),Oo("0xb4"),Oo("0xb5"),Oo("0xb6"),Oo("0x1ed"),Oo("0x11a"),Oo("0xb8"),Oo("0xb9"),Oo("0x1f3"),Oo("0x171")),n={getItem:function(e){var t=this[Oo("0x220")]().match(this[Oo("0x221")](e));return t?t[1][Oo("0xa3")](/^"(.*)"$/,"$1"):""},getBcookie:function(){try{for(var e=document.cookie.split(/\s*;\s*/),t=0;t<e[Oo("0x7")];t++){var n=e[t].split("=");if(n[Oo("0x7")]>1&&Oo("0x222")===n[0]){var i=n[n[Oo("0x7")]-1];return i[Oo("0x223")](2,i[Oo("0x7")]-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var i=arguments[Oo("0x7")]>3&&void 0!==arguments[3]?arguments[3]:this[Oo("0x224")]();if(n){var r=[e+"="+t+Oo("0x225")+(arguments[Oo("0x7")]>4&&void 0!==arguments[4]?arguments[4]:"/")+"; secure=true"];Oo("0x226")==Xt(i)&&i.length>0&&r[Oo("0x11")](Oo("0x227")+i),r.push(Oo("0x228")+(n instanceof Date?n[Oo("0x229")]():n)),document[Oo("0x22a")]=r.join("; ")}},deleteItem:function(e){this.setItem(e,"",new Date(0))},_cookieRegEx:function(e){return new RegExp(e+Oo("0x22b"))},getCookieString:function(){return document[Oo("0x22a")]},getDomain:function(){return window[Oo("0x1fb")]?window.location.hostname:""}},i=Oo("0x22c"),r=Oo("0x22d"),o=Oo("0x22e");function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[Oo("0x22f")]("#"+e):document.getElementById(e);if(i){var r=i.firstChild[Oo("0x230")];if(t&&i.parentNode[Oo("0x112")](i),r)try{return JSON.parse(r)}catch(e){return}}}function s(e,t,n){var i=new XMLHttpRequest,r=Oo(n?"0x231":"0x232");r+=String(t),i[Oo("0x9b")](Oo("0x233"),r),i[Oo("0x234")]("Content-Type",Oo("0x235")),i[Oo("0x236")](e)}function c(e){var t=document[Oo("0x237")](e);return void 0!==t&&t[Oo("0x7")]>=1}var l=function(e,t,n,i,r,o,s,c){function l(){Yt(this,l)}return Qt(l,null,[{key:Oo("0x238"),value:function(e){for(var t=new ArrayBuffer(e[Oo("0x7")]),n=new Uint8Array(t),i=0,r=e[Oo("0x7")];i<r;i++)n[i]=e[Oo("0x8")](i);return t}},{key:"encode",value:function(e){return window[Oo("0x239")](String[Oo("0x23a")].apply(null,e))}},{key:Oo("0x23b"),value:function(e,t,n){var i=window[Oo("0x23c")](t),r=l[Oo("0x238")](i);return window[Oo("0x23d")][Oo("0x23e")][Oo("0x23f")](e,r,{name:Oo("0x240"),hash:Oo("0x241")},!0,n)}},{key:Oo("0x242"),value:function(e,t){return l[Oo("0x23b")](Oo("0x243"),t,[Oo("0x244")])[Oo("0x1f")]((function(t){return window[Oo("0x23d")].subtle[Oo("0x244")](Oo("0x245"),e,t,{name:"RSA-OAEP"})}))[Oo("0x1f")]((function(e){return l[Oo("0x246")](new Uint8Array(e))}))}},{key:Oo("0x247"),value:function(e){var t={a:null,b:null,c:null};return t[Oo("0x248")]=e,t}},{key:Oo("0x249"),value:function(e,t,n){var i={a:null,b:null,c:null};try{var r=Date[Oo("0x86")]();if(Oo("0x226")!=Xt(t)||Oo("0x24a")!=Xt(n))throw new Error("ec1");var o=window.crypto[Oo("0x24b")](new Uint8Array(16));i.a=l[Oo("0x246")](o);var a=(new TextEncoder)[Oo("0x246")](e),s=Oo("0x24c");return window[Oo("0x23d")].subtle[Oo("0x24d")]({name:s,length:256},!0,[Oo("0x24e"),Oo("0x24f")])[Oo("0x1f")]((function(e){return window.crypto[Oo("0x23e")][Oo("0x24e")]({name:s,iv:o},e,a)[Oo("0x1f")]((function(o){return l[Oo("0x242")](e,t)[Oo("0x1f")]((function(e){return i.b=e,i.c=l[Oo("0x246")](new Uint8Array(o)),i.d=Date[Oo("0x86")]()-r,i.e=n,i}))}))}))[Oo("0x36")]((function(e){return i[Oo("0x248")]=String(e),i}))}catch(e){return i[Oo("0x248")]=String(e),Promise[Oo("0x250")](i)}}},{key:Oo("0x251"),value:function(e,t,n,i){if("string"!=typeof t||Oo("0x226")!=Xt(n))return Promise[Oo("0x250")](l[Oo("0x247")](Oo("0x252")));var r=a(t),o=parseInt(a(n));return(""===r||Oo("0x226")!=Xt(r)||Oo("0x24a")!=Xt(o)||Number[Oo("0x253")](o))&&(r=Oo(i?"0x254":"0x255"),o=i?2:1),l[Oo("0x249")](e,r,o)}},{key:Oo("0x256"),value:function(e,t,n,i,r){return null!=i&&Oo("0x226")==Xt(i[Oo("0x257")])&&"number"==typeof i[Oo("0x258")]?l[Oo("0x249")](e,i.publicKey,i[Oo("0x258")]):l[Oo("0x251")](e,t,n,r)}},{key:Oo("0x259"),value:function(){return([1e7]+-1e3+-4e3+-8e3+-1e11)[Oo("0xa3")](/[018]/g,(function(e){return(e^window[Oo("0x23d")][Oo("0x24b")](new Uint8Array(1))[0]&15>>e/4)[Oo("0xb")](16)}))}},{key:"generateSha256HashOrDefault",value:function(e){var t=(new TextEncoder)[Oo("0x246")](e);return crypto.subtle.digest(Oo("0x241"),t)[Oo("0x1f")]((function(e){return Array[Oo("0x25a")](new Uint8Array(e)).map((function(e){return("00"+e[Oo("0xb")](16))[Oo("0x9")](-2)})).join("")}))[Oo("0x36")]((function(){return""}))}}]),l}(),u=function(){var e={compressToBase64:function(t){if(null==t)return"";var n=e[Oo("0x25b")](t,6,(function(e){return Oo("0x25c")[Oo("0x25d")](e)}));switch(n[Oo("0x7")]%4){default:case 0:return n;case 1:return n+Oo("0x25e");case 2:return n+"==";case 3:return n+"="}},_compress:function(e,t,n){if(null==e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e[Oo("0x7")];o+=1)if(c=e[Oo("0x25d")](o),Object.prototype[Oo("0xf")].call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype[Oo("0xf")][Oo("0x25f")](a,l))u=l;else{if(Object[Oo("0xd")][Oo("0xf")][Oo("0x25f")](s,u)){if(u[Oo("0x8")](0)<256){for(i=0;i<p;i++)g<<=1,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r=0;for(r=u[Oo("0x8")](0),i=0;i<16;i++)g=g<<1|1&r,v==t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0==--d&&(d=Math[Oo("0x260")](2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r>>=1;0==--d&&(d=Math[Oo("0x260")](2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object[Oo("0xd")][Oo("0xf")][Oo("0x25f")](s,u)){if(u[Oo("0x8")](0)<256){for(i=0;i<p;i++)g<<=1,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++;for(r=u[Oo("0x8")](0),i=0;i<8;i++)g=g<<1|1&r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r=0;for(r=u[Oo("0x8")](0),i=0;i<16;i++)g=g<<1|1&r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r>>=1;0==--d&&(d=Math[Oo("0x260")](2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v==t-1?(v=0,f[Oo("0x11")](n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v==t-1){f.push(n(g));break}v++}return f[Oo("0xa2")]("")}};return e}(),d={apfcTypes:1,collectionType:2,trackingId:3},h={protocol:1,hostname:2,port:3,origin:4,host:5,href:6,hash:7,pathname:8},p={saveData:1,effectiveType:2,rtt:3,downlink:4,downlinkMax:5,type:6},f={liedOS:1,liedBrowser:2,liedResolution:3,adBlockInstalled:4,liedLanguages:5},g={type:1,description:2,suffixes:3},v={canvasHash:1,canvasWinding:2},m={label:1,gid:2,id:3,kind:4},y={lists:1,fontsHash:2},E={Orientation:1,Enabled:2},b={charging:1,dischargingTime:2,level:3,chargingTime:4},w={touchStart:1,touchEvent:2,maxTouchPoints:3},_={"webgl stencil bits":1,"webgl vertex shader high float precision rangeMax":2,"webgl antialiasing":3,"webgl max vertex texture image units":4,"webgl fragment shader medium int precision rangeMax":5,"webgl fragment shader low int precision rangeMin":6,"webgl max vertex uniform vectors":7,"webgl renderer":8,"webgl vertex shader high float precision":9,"webgl green bits":10,"webgl fragment shader medium int precision rangeMin":11,"webgl fragment shader low int precision rangeMax":12,"webgl fragment shader medium int precision":13,"webgl blue bits":14,"webgl max viewport dims":15,"webgl unmasked vendor":16,"webgl vertex shader medium float precision":17,"webgl fragment shader low int precision":18,"webgl vertex shader high int precision":19,"webgl vertex shader medium int precision rangeMax":20,"webgl unmasked renderer":21,"webgl fragment shader high int precision":22,"webgl aliased point size range":23,"webgl vertex shader medium float precision rangeMax":24,"webgl vertex shader low int precision rangeMax":25,"webgl fragment shader low float precision":26,"webgl fragment shader high int precision rangeMin":27,"webgl vertex shader high float precision rangeMin":28,"webgl red bits":29,vendorAndRenderer:30,"webgl vertex shader medium int precision rangeMin":31,"webgl vertex shader low float precision":32,"webgl vertex shader medium int precision":33,"webgl fragment shader medium float precision rangeMax":34,"webgl max texture image units":35,"webgl vertex shader medium float precision rangeMin":36,"webgl fragment shader high float precision rangeMin":37,"webgl fragment shader high int precision rangeMax":38,"webgl vertex shader high int precision rangeMax":39,webglHash:40,"webgl max varying vectors":41,"webgl fragment shader medium float precision rangeMin":42,"webgl vertex shader low int precision":43,"webgl fragment shader low float precision rangeMin":44,"webgl aliased line width range":45,"webgl max combined texture image units":46,"webgl shading language version":47,"webgl vertex shader high int precision rangeMin":48,"webgl max anisotropy":49,"webgl max render buffer size":50,"webgl vendor":51,"webgl vertex shader low int precision rangeMin":52,"webgl max fragment uniform vectors":53,"webgl fragment shader high float precision rangeMax":54,"webgl version":55,"webgl fragment shader high float precision":56,"webgl max texture size":57,"webgl max cube map texture size":58,"webgl fragment shader medium float precision":59,"webgl vertex shader low float precision rangeMin":60,"webgl max vertex attribs":61,"webgl alpha bits":62,"webgl vertex shader low float precision rangeMax":63,"webgl fragment shader low float precision rangeMax":64,"webgl depth bits":65,extensions:66},T={ANGLE_instanced_arrays:67,EXT_blend_minmax:68,EXT_clip_control:69,EXT_color_buffer_float:70,EXT_color_buffer_half_float:71,EXT_conservative_depth:72,EXT_depth_clamp:73,EXT_disjoint_timer_query:74,EXT_disjoint_timer_query_webgl2:75,EXT_float_blend:76,EXT_frag_depth:77,EXT_polygon_offset_clamp:78,EXT_render_snorm:79,EXT_shader_texture_lod:80,EXT_texture_compression_bptc:81,EXT_texture_compression_rgtc:82,EXT_texture_filter_anisotropic:83,EXT_texture_mirror_clamp_to_edge:84,EXT_texture_norm16:85,EXT_sRGB:86,KHR_parallel_shader_compile:87,NV_shader_noperspective_interpolation:88,OES_draw_buffers_indexed:89,OES_element_index_uint:90,OES_fbo_render_mipmap:91,OES_sample_variables:92,OES_shader_multisample_interpolation:93,OVR_multiview2:94,OES_standard_derivatives:95,OES_texture_float:96,OES_texture_float_linear:97,OES_texture_half_float:98,OES_texture_half_float_linear:99,OES_vertex_array_object:100,WEBGL_blend_func_extended:101,WEBGL_clip_cull_distance:102,WEBGL_color_buffer_float:103,WEBGL_compressed_texture_astc:104,WEBGL_compressed_texture_etc:105,WEBGL_compressed_texture_etc1:106,WEBGL_compressed_texture_pvrtc:107,WEBGL_compressed_texture_s3tc:108,WEBGL_compressed_texture_s3tc_srgb:109,WEBGL_debug_renderer_info:110,WEBGL_debug_shaders:111,WEBGL_depth_texture:112,WEBGL_draw_buffers:113,WEBGL_lose_context:114,WEBGL_multi_draw:115,WEBGL_polygon_mode:116,WEBGL_provoking_vertex:117,WEBGL_render_shared_exponent:118,WEBGL_stencil_texturing:119},S={"American Typewriter":1,"Andale Mono":2,Arial:3,"Arial Black":4,"Arial Hebrew":5,"Arial Narrow":6,"Arial Rounded MT Bold":7,"Arial Unicode MS":8,Avenir:9,"Avenir Next":10,"Avenir Next Condensed":11,Bahnschrift:12,Baskerville:13,"Big Caslon":14,"Bodoni 72":15,"Bodoni 72 Oldstyle":16,"Bodoni 72 Smallcaps":17,"Bradley Hand":18,"Brush Script MT":19,Calibri:20,Cambria:21,"Cambria Math":22,Candara:23,Chalkboard:24,"Chalkboard SE":25,Chalkduster:26,Charter:27,Cochin:28,"Comic Sans MS":29,Consolas:30,Constantia:31,Corbel:32,Copperplate:33,Courier:34,"Courier New":35,Didot:36,"DIN Alternate":37,"DIN Condensed":38,Ebrima:39,"Franklin Gothic Medium":40,Futura:41,Gabriola:42,Gadugi:43,Geneva:44,Georgia:45,"Gill Sans":46,Helvetica:47,"Helvetica Neue":48,Herculanum:49,"Hoefler Text":50,"HoloLens MDL2 Assets":51,Impact:52,"Ink Free":53,"Javanese Text":54,"Leelawadee UI":55,"Lucida Console":56,"LUCIDA GRANDE":57,"Lucida Grande":58,"Lucida Sans Unicode":59,Luminari:60,"Malgun Gothic":61,"Marker Felt":62,Marlett:63,Menlo:64,"Microsoft Himalaya":65,"Microsoft JhengHei":66,"Microsoft New Tai Lue":67,"Microsoft PhagsPa":68,"Microsoft Sans Serif":69,"Microsoft Tai Le":70,"Microsoft YaHei":71,"Microsoft Yi Baiti":72,"MingLiU-ExtB":73,Monaco:74,"Mongolian Baiti":75,"MS Gothic":76,"MV Boli":77,"Myanmar Text":78,"Nirmala UI":79,Noteworthy:80,Optima:81,Palatino:82,"Palatino Linotype":83,Papyrus:84,Phosphate:85,Rockwell:86,"Savoye LET":87,"Segoe MDL2 Assets":88,"Segoe Print":89,"Segoe Script":90,"Segoe UI":91,"Segoe UI Historic":92,"Segoe UI Emoji":93,"Segoe UI Symbol":94,SignPainter:95,SimSun:96,Sitka:97,Skia:98,"Snell Roundhand":99,Sylfaen:100,Symbol:101,Tahoma:102,Times:103,"Times New Roman":104,Trattatello:105,"Trebuchet MS":106,Verdana:107,Webdings:108,Wingdings:109,"Wingdings 2":110,"Wingdings 3":111,"Yu Gothic":112,Zapfino:113},C={appVersion:1,numOfCores:2,webrtc:3,touchSupport:4,webgl:5,timezone:6,plugins:7,localStorage:8,incognito:9,language:10,appCodeName:11,battery:12,platform:13,javascripts:14,automation:15,pixelDepth:16,screenOrientation:17,availableScreenResolution:18,timezoneOffset:19,oscpu:20,fonts:21,vendor:22,sessionStorage:23,webdriver:24,audio:25,openDatabase:26,screenResolution:27,vendorSub:28,enumerateDevices:29,product:30,canvas:31,appName:32,mimetyps:33,cpuClass:34,indexedDb:35,userAgent:36,deviceMemory:37,productSub:38,addBehavior:39,signals:40,networkInfo:41,location:42,colorDepth:43,FPDataCookie:44,tsSeed:45,errors:46,pixelRatio:47};function I(e){var t={};return function(e){var t=e[Oo("0x18c")],n={};if(void 0!==t&&void 0!==t[Oo("0x190")]){for(var i=t[Oo("0x190")],r=[],o=0;o<i[Oo("0x7")];o++){var a=i[o];r[o]=T[Oo("0xf")](a)?T[a]:a}t[Oo("0x190")]=r}void 0!==t&&(Object[Oo("0x1b")](_)[Oo("0xe")]((function(e){n[_[e]]=t[e]})),e[Oo("0x18c")]=n)}(e),function(e){var t=e[Oo("0x20a")],n={};void 0!==t&&(Object[Oo("0x1b")](w)[Oo("0xe")]((function(e){n[w[e]]=t[e]})),e[Oo("0x20a")]=n)}(e),function(e){var t=e.battery,n={};void 0!==t&&(Object[Oo("0x1b")](b)[Oo("0xe")]((function(e){n[b[e]]=t[e]})),e[Oo("0x261")]=n)}(e),function(e){var t=e[Oo("0x203")],n={};void 0!==t&&(Object.keys(E)[Oo("0xe")]((function(e){n[E[e]]=t[e]})),e.screenOrientation=n)}(e),function(e){var t=e.fonts,n={};if(void 0!==t&&void 0!==t.lists){for(var i=t[Oo("0x114")],r=[],o=0;o<i.length;o++){var a=i[o];r[o]=S[Oo("0xf")](a)?S[a]:a}t.lists=r}void 0!==t&&(Object[Oo("0x1b")](y)[Oo("0xe")]((function(e){n[y[e]]=t[e]})),e[Oo("0xf2")]=n)}(e),function(e){var t=e[Oo("0x31")],n=[];if(void 0!==e[Oo("0x31")]){for(var i=function(){var e=t[r],i={};Object[Oo("0x1b")](m)[Oo("0xe")]((function(t){i[m[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i();e[Oo("0x31")]=n}}(e),function(e){var t=e[Oo("0x152")],n={};void 0!==t&&(Object[Oo("0x1b")](v)[Oo("0xe")]((function(e){n[v[e]]=t[e]})),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[];if(void 0!==t){for(var i=function(){var e=t[r],i={};Object.keys(g)[Oo("0xe")]((function(t){i[g[t]]=e[t]})),n[r]=i},r=0;r<t.length;r++)i();e.mimetyps=n}}(e),function(e){var t=e.signals,n={};void 0!==t&&(Object.keys(f)[Oo("0xe")]((function(e){n[f[e]]=t[e]})),e[Oo("0x262")]=n)}(e),function(e){var t=e.networkInfo,n={};void 0!==t&&(Object[Oo("0x1b")](p)[Oo("0xe")]((function(e){n[p[e]]=t[e]})),e[Oo("0x20b")]=n)}(e),function(e){var t=e[Oo("0x1fb")],n={};void 0!==t&&(Object[Oo("0x1b")](h)[Oo("0xe")]((function(e){n[h[e]]=t[e]})),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={};void 0!==t&&(Object[Oo("0x1b")](d)[Oo("0xe")]((function(e){n[d[e]]=t[e]})),e[Oo("0x263")]=n)}(e),Object[Oo("0x1b")](C)[Oo("0xe")]((function(n){t[C[n]]=e[n]})),t}var k={preprocessor:null,audio:{timeout:1e3,excludeIOS11:!0},fonts:{swfContainerId:Oo("0x264"),swfPath:Oo("0x265"),userDefinedFonts:[],extendedJsFonts:void 0,hashOnly:!1},screen:{detectScreenOrientation:!0},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:!1},webgl:{hashOnly:!1},ponfUrl:"https://ponf.linkedin.com/pixel/tracking.png",telemetryCollectPath:Oo("0x266"),gloablIntegrationDataCollectionPath:Oo("0x267"),extraComponents:[],excludes:{pixelRatio:!0,doNotTrack:!0,fontsFlash:!0},debug:!1,NOT_AVAILABLE:Oo("0x268"),ERROR:Oo("0x269"),EXCLUDED:Oo("0x26a"),useRequestIdleCallBack:!0},A=function(e,d,h,p,f,g,v){function m(e,t,n){var i=this;if(Yt(this,m),void 0!==t&&void 0!==e&&Oo("0x26b")===e[Oo("0x26c")])Oo("0x26d")===document.readyState?this[Oo("0x26e")](t,n):window.addEventListener(Oo("0x26f"),(function(){i[Oo("0x26e")](t,n)}));else if(void 0!==e){var r=JSON[Oo("0x270")](JSON[Oo("0x217")](k));c("settings-iframe")||c("setting-headline")||(r[Oo("0x271")]=!1),this.initialize(r,e)}else{var o=JSON[Oo("0x270")](JSON[Oo("0x217")](k));c(Oo("0x272"))||c(Oo("0x273"))||(o.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(o):window[Oo("0x274")](Oo("0x26f"),(function(){i.initialize(o)}))}}return Qt(m,[{key:"isDfCollectionRequired",value:function(e){return"number"!=typeof e.samplingTimeWindowInMillis||e[Oo("0x275")]<=0||""===n[Oo("0x276")](Oo("0x277"))}},{key:Oo("0x26e"),value:function(e,t){!0===t[Oo("0x278")]&&!0!==globalThis.pauseApfc?(globalThis[Oo("0x279")]=!0,setTimeout((function(){globalThis[Oo("0x279")]=!1}),3e4),this[Oo("0x27a")](e,t),this[Oo("0x27b")](e,t),n[Oo("0x27c")](Oo("0x27d"))):(this[Oo("0x27e")](t),this.isDfCollectionRequired(t)&&(this.checkConfigAndInitializeGlobalIntegration(e,t),this.checkConfigAndInitializeThirdPartyIntegration(e,t),this[Oo("0x27f")](t)))}},{key:Oo("0x27a"),value:function(e,t){(!0===t[Oo("0x278")]&&t[Oo("0x280")][Oo("0x281")].includes(i)||!0===t[Oo("0x282")]&&!0!==globalThis[Oo("0x283")])&&this[Oo("0x284")](k,e,t)}},{key:Oo("0x27b"),value:function(e,t){(!0===t[Oo("0x278")]&&t[Oo("0x280")][Oo("0x281")][Oo("0x285")](r)||!0===t[Oo("0x286")]&&!0!==globalThis[Oo("0x287")])&&this[Oo("0x288")](e,t),(!0===t[Oo("0x278")]&&t[Oo("0x280")][Oo("0x281")].includes(o)||!0===t[Oo("0x289")]&&!0!==globalThis[Oo("0x28a")])&&this[Oo("0x28b")](e,t)}},{key:"deleteDfCookieIfRequired",value:function(e){var t=Oo("0x24a")!=Xt(e[Oo("0x275")])?0:e.samplingTimeWindowInMillis;""!==n[Oo("0x276")](Oo("0x277"))&&Date[Oo("0x86")]()-Number(n.getItem(Oo("0x277")))>t&&n[Oo("0x27c")](Oo("0x277"))}},{key:Oo("0x27f"),value:function(e){if("number"==typeof e[Oo("0x275")]&&e.samplingTimeWindowInMillis>0){var t=Date[Oo("0x86")](),i=new Date;i.setTime(t+e[Oo("0x275")]),n[Oo("0x98")](Oo("0x277"),t,i)}}},{key:Oo("0x28c"),value:function(e,n){if(null!=n||null!=a(Oo("0x28d"))){this[Oo("0x28f")](e,n);var i=this[Oo("0x290")],r=this[Oo("0x291")],o=this[Oo("0x292")]();return(new t)[Oo("0x210")]((function(t,a){t.reqid=i,t[Oo("0x291")]=r,t[Oo("0x293")]=a,l[Oo("0x256")](JSON[Oo("0x217")](t),"apfcDfPK","apfcDfPKV",n,o)[Oo("0x1f")]((function(t){globalThis.apfcDf=t,!0===a&&s(JSON[Oo("0x217")](t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this[Oo("0x28e")]}},{key:"intializeGlobalIntegration",value:function(e,r,o){var a=this.isProd();return(new t).getFeatures((function(t,c){var d;!0===c&&(m[Oo("0xd")][Oo("0x294")](t,o),!0===o.isSyncEnabledWithHeaders&&(globalThis[Oo("0x295")]=(d=I(t),u[Oo("0x296")](d))),l[Oo("0x251")](JSON[Oo("0x217")](t),Oo("0x28d"),Oo("0x297"))[Oo("0x1f")]((function(t){if(globalThis.apfcDf=t,!0===o.isSyncEnabledWithHeaders||!0===o[Oo("0x298")]){var c=function(e){var t={};t[btoa("DNA_ENCRYPTED")]=e;var i={};return i[Oo("0x299")]=t,i.browserId=n[Oo("0x29a")](),i}(t);s(JSON[Oo("0x217")](c),e.gloablIntegrationDataCollectionPath,a)}r(i,JSON.stringify(t))})),globalThis[Oo("0x283")]=!0)}),e)}},{key:Oo("0x28b"),value:function(e,t){var i=n[Oo("0x29a")](),r=this.isProd()?Oo("0x29b"):Oo("0x29c");try{if(RegExp("^[\\w-]*$")[Oo("0x99")](i)){var a=Oo("0x29d")+i+"&instanceId="+r,s=document[Oo("0xf7")]("script");s[Oo("0x29e")](Oo("0x29f"),a),s[Oo("0x29e")]("id",Oo("0x2a0")),s[Oo("0x274")](Oo("0x26f"),(function(){return window.dfp[Oo("0x2a1")](document)})),document[Oo("0x2a2")]("head")[0][Oo("0x111")](s);var c={sessionId:i,instanceId:r};m[Oo("0xd")][Oo("0x294")](c,t),e(o,JSON[Oo("0x217")](c))}else{var l={error:"Invalid session_id: "+i};e(o,JSON.stringify(l))}}catch(t){var u={error:t};e(o,JSON.stringify(u))}globalThis[Oo("0x28a")]=!0}},{key:Oo("0x288"),value:function(e,t){var i=t.treeId,o=Date.now(),a=this.isProd()?Oo("0x2a3"):Oo("0x2a4"),s=n[Oo("0x29a")](),c=Oo("0x2a5")+o+"&r_id="+encodeURIComponent(i)+Oo("0x2a6")+a+Oo("0x2a7");l[Oo("0x2a8")](s)[Oo("0x1f")]((function(n){""!==(s=n)&&(c+="&d_id="+s);try{var l=document.createElement(Oo("0x2a9"));l.setAttribute("id",Oo("0x2aa")),l[Oo("0x29e")](Oo("0x29f"),c),l[Oo("0x29e")]("sandbox",Oo("0x2ab")),l[Oo("0x29e")](Oo("0x2ac"),Oo("0x2ad")),l.style.height=Oo("0x2ae"),l.style[Oo("0x69")]="0px",l[Oo("0xf9")][Oo("0x2af")]=Oo("0x106"),l[Oo("0xf9")][Oo("0xfa")]=Oo("0xfb"),l[Oo("0xf9")].left=Oo("0xfd"),document[Oo("0x79")][Oo("0x111")](l);var u={app_id:a,ts:o,d_id:s,r_id:i,uc:Oo("0x2b0")};m[Oo("0xd")][Oo("0x294")](u,t),e(r,JSON.stringify(u))}catch(t){var d={error:t};e(r,JSON[Oo("0x217")](d))}})),globalThis[Oo("0x287")]=!0}}]),m}();A[Oo("0xd")][Oo("0x28e")]=function(e){globalThis[Oo("0x2b1")]=null,new A(e)},A[Oo("0xd")][Oo("0x2b2")]=function(e,t){globalThis.triggerDnaApfcEvent=null,new A({globalIntegration:Oo("0x26b")},e,t)},A[Oo("0xd")][Oo("0x2b3")]=function(e,t){if(void 0!==t&&void 0!==e){var n=A[Oo("0xd")][Oo("0x2b4")]();!0===t[Oo("0x2b5")]&&null===n||(t[Oo("0x280")]=n,null!==n&&(t[Oo("0x278")]=!0),A[Oo("0xd")][Oo("0x2b2")](e,t))}},A[Oo("0xd")].extractDataCookie=function(){var e=n[Oo("0x276")](Oo("0x27d"));if(!e||""===e)return null;var t=(e=atob(e))[Oo("0x17")](Oo("0x2b6"));if(t[Oo("0x7")]<5)return null;var i={};return i[Oo("0x2b7")]=t[0],i[Oo("0x2b8")]=t[1],i[Oo("0x2b9")]=t[2],i.collectionType=t[3],i.apfcTypes=t[4][Oo("0x17")](","),i},A[Oo("0xd")][Oo("0x294")]=function(e,t){Oo("0x2ba")==Xt(e)&&Oo("0x2ba")==Xt(t)&&(e[Oo("0x263")]=t.fpDataCookie)},A[Oo("0xd")].isProd=function(){var e=location&&location.host;return e&&e[Oo("0x18")](".linkedin.com")>-1&&!e.startsWith(Oo("0x2bb"))},A[Oo("0xd")][Oo("0x2bc")]=function(e){return e&&0===Object[Oo("0x1b")](e).length},A[Oo("0xd")].getUrlFromNoscriptBeacon=function(){var e=[];return zt(document[Oo("0x237")](Oo("0x2bd")))[Oo("0xe")]((function(t){zt(t[Oo("0x2a2")](Oo("0x2be")))[Oo("0xe")]((function(t){var n=t.innerHTML;if(n){var i=(new DOMParser)[Oo("0x2bf")](n,Oo("0x2c0"));i&&zt(i.getElementsByClassName("bc")).forEach((function(t){e[Oo("0x11")]({src:t[Oo("0x2c1")](Oo("0x29f")),style:t[Oo("0x2c1")](Oo("0xf9")),class:t.getAttribute(Oo("0x2c2")),width:t[Oo("0x2c1")](Oo("0x69")),height:t[Oo("0x2c1")](Oo("0x6a"))})}))}}))})),0===e[Oo("0x7")]?null:e[0]},A[Oo("0xd")][Oo("0x28f")]=function(e,t){if(null!=e){var n,i,r="bc",o="display:none;",a="1",s="1",c=e[Oo("0x2c3")];if(this.reqid=null,this[Oo("0x291")]=null,null!==(n=this.getUrlFromNoscriptBeacon())){r=n[Oo("0x2c2")],o=n.style,a=n[Oo("0x69")],s=n[Oo("0x6a")];var u=new URL(n.src);c=u[Oo("0xb1")]+"//"+u[Oo("0xab")]+u[Oo("0xaf")],this[Oo("0x290")]=u[Oo("0x2c4")][Oo("0x2c5")](Oo("0x290")),this[Oo("0x291")]=u[Oo("0x2c4")][Oo("0x2c5")](Oo("0x291"))}else if(void 0!==(i=function(e){var t=arguments[Oo("0x7")]>1&&void 0!==arguments[1]&&arguments[1],n=arguments[2],i=n?n[Oo("0x22f")]("#"+e):document[Oo("0x2c6")](e);if(i){var r=i.firstChild.nodeValue;if(t&&i.parentNode[Oo("0x112")](i),r)try{var o=r;return"'"!==o[Oo("0x25d")](0)&&'"'!==o[Oo("0x25d")](0)||(o=o[Oo("0x223")](1,o.length-1)),JSON.parse(o)}catch(e){return}}}(Oo("0x2c7"))))this[Oo("0x290")]=void 0===i[Oo("0x290")]?null:i.reqid,this[Oo("0x291")]=i[Oo("0x291")];else{if(void 0===t)return;this[Oo("0x291")]=t[Oo("0x291")]}this.isProd()||(c=c.replace(/\.linkedin\.com/,Oo("0x2c8"))),null===this[Oo("0x290")]&&(this[Oo("0x290")]=l[Oo("0x259")]());var d=c+"?"+new URLSearchParams({reqid:this[Oo("0x290")],pageInstance:this[Oo("0x291")],js:Oo("0x26b")}).toString(),h=document[Oo("0x237")](Oo("0x2bd"))[0];null==h&&((h=document[Oo("0xf7")]("div")).setAttribute("id",this[Oo("0x290")]),document[Oo("0x79")][Oo("0x111")](h));var p=document[Oo("0xf7")]("img");p[Oo("0x29f")]=d,p[Oo("0xf9")]=o,p[Oo("0x1ce")]=r,p.width=a,p[Oo("0x6a")]=s,h[Oo("0x111")](p)}},Oo("0x2c9")!=("undefined"==typeof globalThis?"undefined":Xt(globalThis))&&Oo("0x2c9")!=("undefined"==typeof document?"undefined":Xt(document))&&Oo("0x2c9")!=("undefined"==typeof window?"undefined":Xt(window))&&(globalThis[Oo("0x2ca")]=A[Oo("0xd")][Oo("0x2b2")],globalThis[Oo("0x2cb")]=A[Oo("0xd")][Oo("0x2b3")],new A)}();var Lo=function(){function e(){Yt(this,e)}return Qt(e,null,[{key:"collectFeatures",value:function(e,t){try{"undefined"!=typeof globalThis&&"undefined"!=typeof document&&"undefined"!=typeof window&&"undefined"!==globalThis.triggerDnaApfcEventOnDemand&&globalThis.triggerDnaApfcEventOnDemand(t,e)}catch(e){}}}]),e}(),Ro=function(){function e(t,n,i,r,o,a,s,c,l,u,d){Yt(this,e),$t(this,"hostApis",void 0),$t(this,"statics",void 0),$t(this,"options",void 0),$t(this,"allowTimingOrigin",void 0),$t(this,"fireCustomMeasureEvent",void 0),$t(this,"fireResourceLoadEvent",void 0),$t(this,"isTracerEnabled",void 0),$t(this,"responseRleCache",void 0),$t(this,"fireApfcEvent",void 0),$t(this,"abuseDeviceSignalCollectionConfig",void 0),$t(this,"trackingEndpoint",void 0),$t(this,"collectResourceTimings",void 0),$t(this,"collectCdnData",void 0),$t(this,"perfObserver",void 0),$t(this,"renderTimings",new Map),$t(this,"urlToTreeId",new Map),$t(this,"cdnDataProvider",void 0),$t(this,"observables",new $r),$t(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=i,this.allowTimingOrigin=r,this.fireCustomMeasureEvent=o,this.fireResourceLoadEvent=a,this.isTracerEnabled=s,this.responseRleCache=c,this.fireApfcEvent=l,this.abuseDeviceSignalCollectionConfig=u,this.trackingEndpoint=d,this.collectResourceTimings=i["enable-rs-timing"],this.collectCdnData=i["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new Ao(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return Qt(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Eo=Eo||t.createElement("a")).href=e,Eo.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:wo(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e);if(i&&(i.renderEnd=i.renderEnd||wo(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void $i("ViewLoadEvent",Yr)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,i=e.renderEnd,r=void 0===i?-1:i,o=e.renderStart,a=void 0===o?-1:o,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:r}),{parentPageLoadId:t,viewHierarchy:[n],viewProgressStates:s}}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t,n.timeOrigin):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:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,i=Object.create(null);i.pageKey=n,i.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",i.networkInformationMetrics=this.snapshot.networkInformationMetrics;var r=this.statics,o=r.webUIFramework,a=r.timeSource,s=r.isSinglePageApp,c=r.appRenderMode,l=r.isAppRenderFailed,u=r.isFromServiceWorker,d=r.treeId;return i.treeId=d,i.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},i}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var i=e.isInitial,r=e.immediate,o=this.hostApis.assign;if(i){var a=Po(this.hostApis.performance),s=a.htmlMetrics,c=a.redirectCount,l=a.navigationType,u=a.workerStart;s&&(t.browserPageLoadEndContext.htmlMetrics=Object.create(null),o(t.browserPageLoadEndContext.htmlMetrics,s)),Object.prototype.hasOwnProperty.call(a,"redirectCount")&&(n.redirectCount=c),Object.prototype.hasOwnProperty.call(a,"navigationType")&&(n.navigationType=l),n.workerStart=null!=u?u:0,Kr.forEach((function(e){Object.prototype.hasOwnProperty.call(a,e)&&(n[e]=a[e])})),o(t.navigationTiming,n)}if(!r){var d=this.collectAsynchronousData();if("then"in d)return d.then((function(e){return o(t.cdnData,e.cdnData),t}))}var h=this.collectAsynchronousData(!0);return o(t.cdnData,h.cdnData),t}},{key:"collectResourceLoadEvent",value:function(e,t){var n=e.name,i=e.transferSize,r=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,l={};l.resourceKey=n,l.isNetwork=!!i&&0!==i,l.loadType=r||"unknown",l.timeOrigin=t;var u=[];Object.keys(Vr).forEach((function(t){var n;t in Fr&&void 0!==e[t]&&u.push({resourceProgressType:Vr[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=Xr[o];d.nextHopProtocol=null!=h?h:"UNKNOWN",d.transferSize=i,d.encodedBodySize=a,d.decodedBodySize=s,l.resourceNetworkContext=d,l.requestStart=c;try{var p,f,g=new URL(n),v=g.pathname+g.search+g.hash;return null===(p=this.responseRleCache)||void 0===p||p.offerResourceLoadEvent(v,l),null===(f=this.responseRleCache)||void 0===f?void 0:f.flushCacheByUrl(v)}catch(e){var m,y="".concat("Invalid url from ResourceLoadEvent"," request url ").concat(n);return e instanceof Error?(e.message="".concat(y," ").concat(e.message),$i("ResourceLoadEvent",e)):$i("ResourceLoadEvent",y),null===(m=this.responseRleCache)||void 0===m?void 0:m.flushCacheByUrl()}}},{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=So(this.hostApis.performance,this.options,!0,this.fireCustomMeasureEvent),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(r,this.observables.getData(),this.snapshot,this.statics),e&&n(r,Po(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?Xi(r,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;try{var n=this.abuseDeviceSignalCollectionConfig||{},i=n.isDnaIntegrationLixEnabled,r=n.isHumanIntegrationLixEnabled,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled;if(r||o||i||c||l){var u,d,h={treeId:null!==(u=null===(d=this.statics.treeId)||void 0===d?void 0:d.toString())&&void 0!==u?u:"",humanIntegrationEnabled:r,dfpIntegrationEnabled:o,dnaIntegrationEnabled:i,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l};(!t||t&&s||c||l)&&Lo.collectFeatures(h,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var i=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;i&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var r=e.entryType,o=e.name,a=e.startTime,s=e.duration;"resource"===r?n.processSingleResourceTiming(e,t):"mark"===r?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"MARK",measureProgressStates:[{measureProgressName:o,timestamp:a}]}),"mark_meaningful_paint_end"!==o||i||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===r?(n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"MEASURE",measureProgressStates:[{measureProgressName:o,timestamp:a,duration:s}]})):"longtask"===r&&(n.observables.longTasks.push({duration:s,name:o,startTime:a}),n.fireCustomMeasureEvent({measurementName:o,measurementType:"LONG_TASK",measureProgressStates:[{measureProgressName:o,timestamp:a,duration:s}]}))}))})),this.observables.userTimingEntries=So(this.hostApis.performance,this.options,!1,this.fireCustomMeasureEvent);var i=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&i.push("resource"),this.options["user-timing-mark-enabled"]&&i.push("mark"),this.options["user-timing-measure-enabled"]&&i.push("measure"),this.perfObserver.observe({entryTypes:i})}},{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(n){return e.processSingleResourceTiming(n,t.timeOrigin)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e,t){var n=this;if(this.collectResourceTimings)if(this.options["enable-otel"])Pi.emit(Nr.INTERNAL_OTEL_RESOURCE,{resourceTiming:e});else{this.observables.resourceTimingEntries.push(e);var i=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!i&&!function(e){for(var t=0,n=bo;t<n.length;t++){var i=n[t];if(i.strToFilter&&-1!==e.indexOf(i.strToFilter))return!0;if(i.pattern&&i.pattern.test(e))return!0}return!1}(e.name)){var r=this.collectResourceLoadEvent(e,t);r&&r.forEach((function(e){return n.fireResourceLoadEvent(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:Co(this.renderTimings),networkInformationMetrics:No(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function No(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 Po(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,Kr.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var Do=function(){function e(t,n,i){Yt(this,e),$t(this,"featureName",void 0),$t(this,"trackingCore",void 0),$t(this,"rumConfig",void 0),$t(this,"observing",!1),$t(this,"basePageTreeId",void 0),$t(this,"startPageInstance",void 0),$t(this,"startMemory",void 0),$t(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Qt(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)||Wi(tn),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:_o(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}();$t(Do,"checkpoints",[1,3,10,30,90,180,300]);var Mo,Uo,Fo,Bo,qo,Ho=Qt((function e(t,n,i){Yt(this,e),$t(this,"webUIFramework",void 0),$t(this,"timeSource",void 0),$t(this,"isSinglePageApp",void 0),$t(this,"appRenderMode",void 0),$t(this,"isAppRenderFailed",void 0),$t(this,"pageLoadMode","INITIAL"),$t(this,"isSSL",void 0),$t(this,"treeId",void 0),$t(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})),jo=function(){function e(t){Yt(this,e),$t(this,"isPEMTracerEnabled",void 0),$t(this,"responseContextMap",new Map),$t(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return Qt(e,[{key:"offerResponseContext",value:function(e,t){if(this.isPEMTracerEnabled)if(this.responseContextMap.has(e)){var n;null===(n=this.responseContextMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new er((function(e,t){return e.requestTime<t.requestTime}));i.heapPush(t),this.responseContextMap.set(e,i)}}},{key:"offerResourceLoadEvent",value:function(e,t){if(this.resourceLoadEventsMap.has(e)){var n;null===(n=this.resourceLoadEventsMap.get(e))||void 0===n||n.heapPush(t)}else{var i=new er((function(e,t){return e.requestStart<t.requestStart}));i.heapPush(t),this.resourceLoadEventsMap.set(e,i)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),i=null==t?void 0:t.heappop(),r=null==n?void 0:n.heappop();return this.mergeRleAndRes(i,r)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart;var n=Ft(e,kt),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=Ft(t,At);return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=Ut(Ut({},n.resourceNetworkContext),a),Zi(n)}}},{key:"deleteEntryByRequestUrl",value:function(e){this.resourceLoadEventsMap.delete(e),this.responseContextMap.delete(e)}},{key:"canFlush",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e);return n&&t&&n.heapsize()>0&&n.heapsize()===t.heapsize()}},{key:"clear",value:function(){this.resourceLoadEventsMap.clear(),this.responseContextMap.clear()}},{key:"flushCache",value:function(){var e=this.responseContextMap.keys(),t=[];if(e){var n,i=Wt(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=[].concat(zt(t),zt(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=Wt(o);try{for(s.s();!(a=s.n()).done;){var c,l=a.value,u=null===(c=this.resourceLoadEventsMap.get(l))||void 0===c?void 0:c.heapClear();u&&(t=[].concat(zt(t),zt(u.map((function(e){e.requestStart;var t=Ft(e,xt);return Zi(t)})))))}}catch(e){s.e(e)}finally{s.f()}}return t}},{key:"flushCacheByUrl",value:function(e){var t,n=[];if(!e)return n;if(!this.isPEMTracerEnabled)return(null===(t=this.resourceLoadEventsMap)||void 0===t||null===(t=t.get(e))||void 0===t||null===(t=t.heapClear())||void 0===t?void 0:t.map((function(e){e.requestStart;var t=Ft(e,Ot);return Zi(t)})))||n;if(this.canFlush(e)){for(var i=this.responseContextMap.get(e);i&&i.heapsize()>0;){var r=this.mergeAndConsume(e);r&&n.push(r)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),Go=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)}},Wo=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){}},zo=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)},Ko=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Vo=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)))}},Xo=-1,Yo=function(){return"hidden"===document.visibilityState?0:1/0},Jo=function(){zo((function(e){var t=e.timeStamp;Xo=t}),!0)},Qo=function(){return Xo<0&&(Xo=Yo(),Jo(),Ko((function(){setTimeout((function(){Xo=Yo(),Jo()}),0)}))),{get firstHiddenTime(){return Xo}}},$o=!1,Zo=-1,ea=function(e,t){$o||(function(e,t){var n,i=Qo(),r=Go("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<i.firstHiddenTime&&(r.value=e.startTime,r.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:Wo("paint",o);(a||s)&&(n=Vo(e,r,t),a&&o(a),Ko((function(i){r=Go("FCP"),n=Vo(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){Zo=e.value})),$o=!0);var n,i=function(t){Zo>-1&&e(t)},r=Go("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],i=a[a.length-1];o&&e.startTime-i.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>r.value&&(r.value=o,r.entries=a,n())}},c=Wo("layout-shift",s);c&&(n=Vo(i,r,t),zo((function(){c.takeRecords().map(s),n(!0)})),Ko((function(){o=0,Zo=-1,r=Go("CLS",0),n=Vo(i,r,t)})))},ta={passive:!0,capture:!0},na=new Date,ia=function(e,t){Mo||(Mo=t,Uo=e,Fo=new Date,aa(removeEventListener),ra())},ra=function(){if(Uo>=0&&Uo<Fo-na){var e={entryType:"first-input",name:Mo.type,target:Mo.target,cancelable:Mo.cancelable,startTime:Mo.timeStamp,processingStart:Mo.timeStamp+Uo};Bo.forEach((function(t){t(e)})),Bo=[]}},oa=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(){ia(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,ta),removeEventListener("pointercancel",i,ta)};addEventListener("pointerup",n,ta),addEventListener("pointercancel",i,ta)}(t,e):ia(t,e)}},aa=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,oa,ta)}))},sa=function(e,t){var n,i=Qo(),r=Go("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=Wo("first-input",o);n=Vo(e,r,t),a&&zo((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Ko((function(){var i;r=Go("FID"),n=Vo(e,r,t),Bo=[],Uo=-1,Mo=null,aa(addEventListener),i=o,Bo.push(i),ra()}))},ca={},la=function(e,t){var n,i=Qo(),r=Go("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=Wo("largest-contentful-paint",o);if(a){n=Vo(e,r,t);var s=function(){ca[r.id]||(a.takeRecords().map(o),a.disconnect(),ca[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),zo(s,!0),Ko((function(i){r=Go("LCP"),n=Vo(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,ca[r.id]=!0,n(!0)}))}))}))}},ua=["LCP","FID","CLS"],da={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},ha={},pa=function(){var e;if(!or)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}(),fa=!1,ga=new Set,va={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function ma(){var e=!0===window.__test__resetWebVitalsState;if(!fa||e){e&&(ga=new Set),ua.forEach(ya);var t=Symbol();qo=t,[la,sa,ea].forEach((function(e){return e(Ea.bind(null,t),!0)})),[la,sa,ea].forEach((function(e){return e(ba.bind(null,t))})),fa=!0}}function ya(e){ha[e]={name:e,verboseName:da[e]||e,value:Wr,updateHistory:[]};var t=va[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(ha[e].value=zr)}function Ea(e,t){if(e===qo){var n=ha[t.name],i=_o();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),ga.forEach((function(e){return e(t,i,!1)}))}}function ba(e,t){e===qo&&ga.forEach((function(e){return e(t,_o(),!0)}))}var wa,_a=function(){function e(t,n){var i=this;Yt(this,e),$t(this,"basePageTreeId",void 0),$t(this,"basePageKey",void 0),$t(this,"observing",!1),$t(this,"appContextMap",new Map),$t(this,"rumConfig",void 0),$t(this,"trackingCore",void 0),$t(this,"onMetricUpdate",(function(e,t,n){var r;i.observing&&(n?i.reportMetric(e.name):i.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=i.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return Qt(e,[{key:"startObserving",value:function(){var e,t,n=this;ma(),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",ua.forEach((function(e){var t;(null===(t=ha[e])||void 0===t?void 0:t.value)===zr&&n.reportMetric(e)})),t=this.onMetricUpdate,ga.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,ga.delete(e)}},{key:"reportMetric",value:function(e){var t=ha[e];if(t){var n={name:da[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var i=function(e,t,n,i,r){var o={basePageTreeId:e,basePageKey:t,basePageUrl:pa},a=null;switch(n.name){case"LCP":a=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],a={pageKey:(null===(n=t.get(i.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:To(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(a.url=o.url),a}(n,i);break;case"FID":a=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:To(o.target)}}(n,i);break;case"CLS":a=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 a,s=t.get(r.time);return o&&s?{shiftCount:n.length,"largestShift.value":i.value,"largestShift.hadRecentInput":i.hadRecentInput,"largestShift.largestSource.node":To(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(i.startTime)}:null}(n,i)}if(a){var s={};return r(s,o,a),s}return o}(this.basePageTreeId,this.basePageKey,t,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}(i);var r={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},r),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:i};Pi.emit(Nr.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i};Pi.emit(Nr.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i};Pi.emit(Nr.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Ta="x-li-uuid",Sa="x-li-pop",Ca="x-msedge-ref",Ia="x-li-fabric",ka="x-li-pem-resp-meta",Aa="content-type",xa="x-cache",Oa=function(){function e(t){Yt(this,e),$t(this,"_callTreeId",void 0),$t(this,"_fabric",void 0),$t(this,"_msEdgeRef",void 0),$t(this,"_pointOfPresenceId",void 0),$t(this,"_responseMetadata",void 0),$t(this,"_contentType",void 0),$t(this,"_cdnCacheMetadata",void 0),$t(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(Ta)||null,this._pointOfPresenceId=n.get(Sa)||null,this._msEdgeRef=n.get(Ca)||null,this._fabric=n.get(Ia)||null,this._responseMetadata=n.get(ka)||null,this._contentType=n.get(Aa)||null,this._cdnCacheMetadata=n.get(xa)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=Wt(e.split(","));try{for(n.s();!(t=n.n()).done;){var i=t.value.split("=",2);if(2===i.length&&"availability"===i[0]){var r=parseFloat(i[1]);if(r>=0&&r<=1)return r}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return Qt(e,[{key:"callTreeId",get:function(){return this._callTreeId}},{key:"pointOfPresenceId",get:function(){return this._pointOfPresenceId}},{key:"microsoftEdgeReference",get:function(){return this._msEdgeRef}},{key:"fabric",get:function(){return this._fabric}},{key:"contentType",get:function(){return this._contentType}},{key:"cdnCacheMetadata",get:function(){return this._cdnCacheMetadata}},{key:"responseMetadata",get:function(){return this._responseMetadata}},{key:"downstreamAvailability",get:function(){return this._downstreamAvailability}},{key:"hasAnyLinkedInHeaders",value:function(){return!!(this._fabric||this._pointOfPresenceId||this._msEdgeRef||this._callTreeId)}}]),e}();!function(e){e.CLIENT_TIMEOUT="CLIENT_TIMEOUT",e.CLIENT_ABORTED="CLIENT_ABORTED",e.SERVER_ERROR="SERVER_ERROR",e.NETWORK_ERROR="NETWORK_ERROR",e.UNCLASSIFIED="UNCLASSIFIED",e.TOO_MANY_REQUESTS="TOO_MANY_REQUESTS",e.CLIENT_ERROR="CLIENT_ERROR",e.GRAPHQL_FULL_FAILURE="GRAPHQL_FULL_FAILURE",e.BLOCKED_BY_CLIENT_PROXY="BLOCKED_BY_CLIENT_PROXY",e.DOWNSTREAM_GRACEFUL_DEGRADATION="DOWNSTREAM_GRACEFUL_DEGRADATION",e.TRAFFIC_AFD_TO_LI_POP_ERROR="TRAFFIC_AFD_TO_LI_POP_ERROR",e.TRAFFIC_LI_POP_TO_DC_ERROR="TRAFFIC_LI_POP_TO_DC_ERROR"}(wa||(wa={}));function La(e,t,n,i,r){var o=new Oa(i),a=function(e,t,n){if(t){if(429===t||999===t)return wa.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return wa.BLOCKED_BY_CLIENT_PROXY;if((i=t)>=400&&i<500)return wa.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return wa.SERVER_ERROR;if(e.pointOfPresenceId)return wa.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return wa.TRAFFIC_AFD_TO_LI_POP_ERROR}return wa.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return wa.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var i;if(n instanceof Error){if("AbortError"===n.name)return wa.CLIENT_ABORTED;if(n instanceof TypeError&&(n.message.indexOf("Network request failed")>=0||n.message.indexOf("NetworkError when attempting to fetch resource")>=0||n.message.indexOf("Failed to fetch")>=0))return wa.NETWORK_ERROR}else if(function(e){return!!e&&("string"==typeof e.statusText||"number"==typeof e.status||"number"==typeof e.readyState)}(n)){if("timeout"===n.statusText)return wa.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return wa.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return wa.NETWORK_ERROR}return wa.UNCLASSIFIED}(o,n,r),s=null;return a&&(s={errorType:a},a===wa.UNCLASSIFIED&&r&&(s.errorMessage=r.message,function(e,t,n){var i=["tracer-unclassified-error"];null==n||n.forEach((function(e){return i.push("target-view-name-".concat(e))})),$i("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),i)}(r,i,t))),{cdnCache:o.cdnCacheMetadata||void 0,contentType:o.contentType||void 0,fabric:o.fabric||void 0,msEdgeReference:o.microsoftEdgeReference||void 0,pointOfPresenceId:o.pointOfPresenceId||void 0,resourceTreeId:o.callTreeId?o.callTreeId:void 0,responseStatusCode:n||void 0,networkResourceError:s||void 0,viewNames:t||[],requestTime:e,responseMetadata:o.responseMetadata||void 0}}!function(){function e(t,n,i){var r,o,a,s,c,l,u,d,h,p,f,g,v,m,y,E,b,w,_,T,S,C,I,k,A,x,O,L,R,N=this;Yt(this,e),$t(this,"core",void 0),$t(this,"config",void 0),$t(this,"collector",void 0),$t(this,"boomerangStart",-1),$t(this,"webVitalsObserver",void 0),$t(this,"appMemoryObserver",void 0),$t(this,"pageMemoryObserver",void 0),$t(this,"liveTokens",new Set),$t(this,"stateWM",new WeakMap),$t(this,"activeToken",void 0),$t(this,"isInitial",void 0),$t(this,"shouldTrackCustomMeasureEvent",void 0),$t(this,"pageLoadId",void 0),$t(this,"initialResourcesEvents",[]),$t(this,"initialCustomMeasureEvents",[]),$t(this,"responseRleCache",void 0),$t(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),$t(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),$t(this,"isTracerEnabled",void 0),$t(this,"isPEMTracerEnabled",void 0),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({},Gr),n);var P="enabled"===(null===(r=(o=i.host).__getLixTreatment)||void 0===r?void 0:r.call(o,"pemberly.tracking.time-origin-epoch-time")),D={isDnaIntegrationLixEnabled:"enabled"===(null===(a=(s=i.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.fireApfcEvent"))||"enabled"===(null===(c=i.host.abuseDeviceSignalCollectionConfig)||void 0===c?void 0:c.webviewDnaMemberLixTreatment)||"enabled"===(null===(l=i.host.abuseDeviceSignalCollectionConfig)||void 0===l?void 0:l.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:"enabled"===(null===(u=(d=i.host).__getLixTreatment)||void 0===u?void 0:u.call(d,"pemberly.tracking.human.integration"))||"enabled"===(null===(h=i.host.abuseDeviceSignalCollectionConfig)||void 0===h?void 0:h.webviewHumanMemberLixTreatment)||"enabled"===(null===(p=i.host.abuseDeviceSignalCollectionConfig)||void 0===p?void 0:p.humanMemberLixTreatment),isDfpIntegrationLixEnabled:"enabled"===(null===(f=(g=i.host).__getLixTreatment)||void 0===f?void 0:f.call(g,"pemberly.tracking.dfp.integration"))||"enabled"===(null===(v=i.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.webviewDfpMemberLixTreatment)||"enabled"===(null===(m=i.host.abuseDeviceSignalCollectionConfig)||void 0===m?void 0:m.dfpMemberLixTreatment),disablePerfMarkerOptimization:i.host.abuseDeviceSignalCollectionConfig&&i.host.abuseDeviceSignalCollectionConfig.disablePerfMarkerOptimization||"enabled"===(null===(y=(E=i.host).__getLixTreatment)||void 0===y?void 0:y.call(E,"fingerprinting.collection.skip.performance.marker.check")),samplingTimeWindowInMillis:null===(b=i.host.abuseDeviceSignalCollectionConfig)||void 0===b?void 0:b.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:"enabled"===(null===(w=(_=i.host).__getLixTreatment)||void 0===w?void 0:w.call(_,"pemberly.web.ondemand")),isSyncFingerprintingWithHeadersLixEnabled:"enabled"===(null===(T=(S=i.host).__getLixTreatment)||void 0===T?void 0:T.call(S,"sync.apfc.headers"))||"enabled"===(null===(C=i.host.abuseDeviceSignalCollectionConfig)||void 0===C?void 0:C.syncFingerprintingEnabledWithHeadersLixTreatment),isSyncFingerprintingWithCbLixEnabled:"enabled"===(null===(I=(k=i.host).__getLixTreatment)||void 0===I?void 0:I.call(k,"sync.apfc.couchbase"))||"enabled"===(null===(A=i.host.abuseDeviceSignalCollectionConfig)||void 0===A?void 0:A.syncFingerprintingEnabledWithCbLixTreatment)},M=null===(x=(O=i.host).__getLixTreatment)||void 0===x?void 0:x.call(O,"pemberly.tracking.generic-tracers"),U=!!M&&Qr.test(M);this.isTracerEnabled=U||this.config["enable-tracking-3"];var F="enabled"===(null===(L=(R=i.host).__getLixTreatment)||void 0===L?void 0:L.call(R,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=F||this.config["enable-pem-tracking-3"],this.responseRleCache=new jo(this.isPEMTracerEnabled),this.collector=new Ro(i.host.api,new Ho(t,this.config,i.host),this.config,P,(function(e){return N.fireCustomMeasureEvent(e)}),(function(e){return N.fireResourceLoadEvent(e,N.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,D,i.host.endpoint),this.collector.startObserving(),Pi.before(Ai,this.beforeHideHandlerBound)}Qt(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){var t,n=null!==(t=this.getPageLoadIdFromState())&&void 0!==t?t:this.pageLoadId,i=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);i&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},i)}},{key:"provisionNetworkResponse",value:function(e,t){var n,i,r=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var o=null===(i=this.responseRleCache)||void 0===i?void 0:i.flushCacheByUrl(e);null==o||o.forEach((function(e){r.fireResourceLoadEvent(e,r.activeToken)}))}},{key:"start",value:function(e){var t,n;!this.isTracerEnabled&&this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.isInitial=void 0===this.isInitial,this.isInitial||this.collector.reset();var i,r=Object.create(null),o="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time"));return this.activeToken=r,this.liveTokens.add(r),this.isTracerEnabled?(this.stateWM.set(r,{isInitial:this.isInitial,startTime:wo(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:wo(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Do("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Do("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new _a(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 a=this.stateWM.get(e),s="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),c=wo(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:r,rumKey:o},this.isTracerEnabled&&o&&(a.pageKey=o);var l=this.activeToken,u=this.isTracerEnabled?5e3:this.config["beacon-timeout"];a.fireRumEventTimeout=setTimeout((function(){if(i.isTracerEnabled){i.flushResourceLoadEvents(l);var e=i.collector.collectPageLoadEndData({isInitial:a.isInitial});"then"in e?e.then((function(e){i.firePageLoadEndEvent(e,l)})):i.firePageLoadEndEvent(e,l)}var t=i.collector.collect({isInitial:a.isInitial});"then"in t?t.then((function(e){i.fireRumEvent(e,l)})):i.fireRumEvent(t,l)}),u),this.activeToken=void 0}else $i("rum-end",Jr)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=La(t,n,i,r,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,Ut({nextHopProtocol:Mr.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){$i("rum-oops",e,Object.fromEntries(t||[]),["oops-page"])}},{key:"firePageLoadStartEvent",value:function(e){if(e&&this.activeToken&&this.activeToken===e){this.shouldTrackCustomMeasureEvent=!0;var t=this.stateWM.get(e);this.pageLoadId=ji(),t.pageLoadId=this.pageLoadId;var n=this.collector.collectPageLoadStartData({isInitial:t.isInitial,rumKey:t.pageKey});n.pageLoadId=t.pageLoadId,this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadStartEvent"},n)}else $i("PageLoadStartEvent",Jr)}},{key:"destroy",value:function(){var e,t,n;Pi.offBefore(Ai,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.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{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){if(e.isTracerEnabled){var i=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(i,t),e.flushResourceLoadEvents(t)}var r=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(r,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,i=this,r=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==r||r.map((function(t){i.fireResourceLoadEvent(t,e)})),null===(n=this.responseRleCache)||void 0===n||n.clear()}},{key:"firePageLoadEndEvent",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,a=i.pageLoadId,s=i.pageKey;if(o){var c=o.renderCompleteTime,l=o.isImpactedByHiddenWindow;if(a?e.pageLoadId=a:$i("PageLoadEndEvent",Yr),e.browserPageLoadEndContext&&(e.browserPageLoadEndContext.isImpactedByHiddenWindow=l),e.navigationTiming){var u,d=null===(u=e.navigationTiming)||void 0===u?void 0:u.navigationStart,h=this.boomerangStart=d||this.boomerangStart,p=d||r,f=c-p;e.navigationTiming.boomerangStart=h,e.navigationTiming.timeDone=f,e.navigationTiming.navigationStart=p,void 0===e.navigationTiming.workerStart&&(e.navigationTiming.workerStart=0)}this.core.fireEvent({appId:this.config["app-id"],eventName:"PageLoadEndEvent"},(function(t){return n({pageKey:s||t.pageKey},e)})),this.shouldTrackCustomMeasureEvent=!1}else this.abort(t)}}},{key:"fireCustomMeasureEvent",value:function(e){var t=this;if(this.isTracerEnabled&&this.shouldTrackCustomMeasureEvent){var n,i=null!==(n=this.getPageLoadIdFromState())&&void 0!==n?n:this.pageLoadId;if(!i)return void this.initialCustomMeasureEvents.push(e);this.initialCustomMeasureEvents.length>0&&(this.initialCustomMeasureEvents.forEach((function(e){e.parentPageLoadId=i,t.core.fireEvent({appId:t.config["app-id"],eventName:"CustomMeasureEvent"},e)})),this.initialCustomMeasureEvents=[]),e.parentPageLoadId=i,this.core.fireEvent({appId:this.config["app-id"],eventName:"CustomMeasureEvent"},e)}}},{key:"fireResourceLoadEvent",value:function(e,t){var n=this;if(this.isTracerEnabled){var i,r=null!==(i=this.getPageLoadIdFromState(t))&&void 0!==i?i:this.pageLoadId;if(!r)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=r,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=r,this.core.fireEvent({appId:this.config["app-id"],eventName:"ResourceLoadEvent"},e)}}},{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 a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||r,d=a-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:s,appVersion:h,timeDone:d,navigationStart:u,boomerangStart:l,renderCompleteTime:a},e)})),i.fireRumEventTimeout&&clearTimeout(i.fireRumEventTimeout),this.liveTokens.delete(t),this.stateWM.delete(t)}else this.abort(t)}}},{key:"beforeHideHandler",value:function(){this.flushEndedSessions()}},{key:"fireApfcEvent",value:function(e,t){var n,i=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),r={issueTime:0,browserId:""};try{r=function(e){var t,n={issueTime:0,browserId:""},i=Wt(e);try{for(i.s();!(t=i.n()).done;){var r=t.value.split("=");if(r.length>1&&"bscookie"===r[0]){var o=decodeURIComponent(r[1]),a=Number(o.substring(4,18)),s=isNaN(a)?0:a,c=o.substring(18,50);return n.browserId=c,n.issueTime=s,n}}}catch(e){i.e(e)}finally{i.f()}return n}(i)}catch(e){}var o={type:e,bsCookieInfo:r,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,i=t.viewNames,r=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:i||[],loadType:"serversideresponse",resourceNetworkContext:Ut({},Ft(t,Lt)),resourceProgressStates:[],timeOrigin:n};return r&&(o.loadType=r),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}}])}();var Ra,Na="undefined"!=typeof window&&"undefined"!=typeof performance,Pa="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");!function(){function e(t,n){Yt(this,e),$t(this,"trackingCore",void 0),$t(this,"endPageInstance",void 0),$t(this,"startPageInstance",void 0),$t(this,"featureIdentifier",void 0),$t(this,"marks",[]),$t(this,"spans",[]),$t(this,"spanStarts",new Map),$t(this,"started",!1),$t(this,"ended",!1),$t(this,"featureKey",void 0),$t(this,"productName",void 0),$t(this,"flushOnEnd",void 0),$t(this,"basePageTreeId",void 0),$t(this,"debounceFlush",void 0),$t(this,"disableAutoFlush",void 0),$t(this,"isCanceled",!1),$t(this,"isClosed",!1),this.trackingCore=t;var i=n.featureKey,r=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd;this.featureKey=i,this.productName=r,this.flushOnEnd=a;var s=r?"::".concat(r):"";this.featureIdentifier="".concat(i).concat(s);var c=void 0!==o?o:3e3;c>0&&(this.debounceFlush=function(e,t,n){var i,r,o;void 0===t&&(t=50),void 0===n&&(n={});var a=null!=(i=n.isImmediate)&&i,s=null!=(r=n.callback)&&r,c=n.maxWait,l=Date.now(),u=[];function d(){if(void 0!==c){var e=Date.now()-l;if(e+t>=c)return c-e}return t}var h=function(){var t=[].slice.call(arguments),n=this;return new Promise((function(i,r){var c=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var i=e.apply(n,t);s&&s(i),u.forEach((function(e){return(0,e.resolve)(i)})),u=[]}}),d()),c){var h=e.apply(n,t);return s&&s(h),i(h)}u.push({resolve:i,reject:r})}))};return h.cancel=function(e){void 0!==o&&clearTimeout(o),u.forEach((function(t){return(0,t.reject)(e)})),u=[]},h}(this.flush.bind(this),c)),this.disableAutoFlush=c<0}Qt(e,[{key:"start",value:function(e){var t;if(Na){if(this.started)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") cannot be started twice"));this.startPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanStart("load"),this.started=!0}}},{key:"end",value:function(e){var t;if(!this.isClosed){if(this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));if(Na){if(this.ended)throw new Error("Same PerfMeasurement (".concat(this.featureIdentifier,") should not be ended twice"));this.endPageInstance=e||(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance),this.spanEnd("load"),this.ended=!0,this.flushOnEnd&&this.flush()}}}},{key:"mark",value:function(e){Na&&(this.marks.push({name:e,startTime:_o()}),Pa&&(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))),this.handleNewData())}},{key:"spanStart",value:function(e){Na&&(this.spanStarts.set(e,_o()),Pa&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Na&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e;this.spans.push({name:i,startTime:n,duration:_o()-n}),Pa&&(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"))),this.handleNewData()}}},{key:"clearSpan",value:function(e){Na&&this.spanStarts.has(e)&&this.spanStarts.delete(e)}},{key:"addSpan",value:function(e){this.spans.push(e),this.handleNewData()}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"getTimestamp",value:function(){return _o()}},{key:"flush",value:function(){0===this.marks.length&&0===this.spans.length||(this.fireEvent(),this.marks=[],this.spans=[],this.debounceFlush&&this.debounceFlush.cancel())}},{key:"handleNewData",value:function(){this.debounceFlush?this.debounceFlush().catch((function(e){})):this.disableAutoFlush||this.flush()}},{key:"fireEvent",value:function(){var e=this,t=this.endPageInstance&&{header:{pageInstance:this.endPageInstance}};this.trackingCore.fireEvent("FeaturePerformanceMeasurementEvent",(function(t){var n=e.startPageInstance||t.pageInstance||Wi(tn),i={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans};return e.productName&&(i.productName=e.productName),e.basePageTreeId&&(i.basePageTreeId=e.basePageTreeId),i}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(Na){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'))}}}])}(),function(e){e[e.BATCH=0]="BATCH",e[e.FLUSH_ALL=1]="FLUSH_ALL"}(Ra||(Ra={}));var Da,Ma,Ua="http.response.",Fa="lifespan";!function(e){e._SPAN_TYPE="li.mo.spanType",e.HTTP_RESPONSE_STATUS_CODE="http.response.status_code"}(Da||(Da={})),function(e){e.DEFAULT="DEFAULT",e.APPLICATION="APPLICATION",e.PAGE="PAGE"}(Ma||(Ma={}));var Ba,qa,Ha,ja,Ga=function(){function e(t,n){var i=this;Yt(this,e),$t(this,"syncAttributes",void 0),$t(this,"resourceType",Ma.DEFAULT),$t(this,"asyncAttributes",void 0),$t(this,"asyncAttributesPending",void 0),$t(this,"asyncAttributesResolvedPromise",void 0),$t(this,"resolveAsyncAttributesPromise",void 0),this.syncAttributes=t,null!=n&&n.waitForAsyncAttributes?(this.asyncAttributesPending=!0,this.asyncAttributesResolvedPromise=new Promise((function(e){i.resolveAsyncAttributesPromise=e}))):(this.asyncAttributesPending=!1,this.resolveAsyncAttributesPromise=function(){})}var t,n;return Qt(e,[{key:"resolveAsyncAttributes",value:function(e){this.asyncAttributesPending&&(this.asyncAttributes=e,this.asyncAttributesPending=!1,this.resolveAsyncAttributesPromise())}},{key:"waitForAsyncAttributes",value:(t=Pt().mark((function e(){return Pt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.asyncAttributesPending){e.next=3;break}return e.next=3,this.asyncAttributesResolvedPromise;case 3:case"end":return e.stop()}}),e,this)})),n=function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(e){Dt(o,i,r,a,s,"next",e)}function s(e){Dt(o,i,r,a,s,"throw",e)}a(void 0)}))},function(){return n.apply(this,arguments)})},{key:"attributes",get:function(){if(this.asyncAttributesPending)throw new Error("Resource attributes are not ready yet - async attributes still pending.");var e={resourceType:this.resourceType};return Object.assign({},e,this.syncAttributes,this.asyncAttributes)}}]),e}(),Wa=Qt((function e(){Yt(this,e)})),za={string:"stringValue",boolean:"boolValue",int:"intValue",double:"doubleValue"},Ka=new(function(e){function t(){return Yt(this,t),Bt(this,t,arguments)}return jt(t,Wa),Qt(t,[{key:"adapt",value:function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=e[n],r=this.getFieldName(i);r?t.push({key:n,value:{value:$t({},r,i)}}):console.warn("Attribute '".concat(n,"' of type '").concat(Xt(i),"' could not be converted to a proto attribute."))}return t}},{key:"getFieldName",value:function(e){var t=Xt(e);return"number"==typeof e&&(t=Number.isInteger(e)?"int":"double"),t in za?za[t]:void 0}}]),t}()),Va=new(function(e){function t(){return Yt(this,t),Bt(this,t,arguments)}return jt(t,Wa),Qt(t,[{key:"adapt",value:function(e){var t=1e3*(window.performance.timeOrigin+e);return Math.round(t)}}]),t}()),Xa=new(function(e){function t(){return Yt(this,t),Bt(this,t,arguments)}return jt(t,Wa),Qt(t,[{key:"adapt",value:function(e){return{timeUnixNano:Va.adapt(e.time),name:e.name,attributes:Ka.adapt(e.attributes)}}}]),t}()),Ya=new(function(e){function t(){return Yt(this,t),Bt(this,t,arguments)}return jt(t,Wa),Qt(t,[{key:"adapt",value:function(e){return{traceId:e.traceId,spanId:e.spanId,traceState:e.traceState,attributes:Ka.adapt(e.attributes),flags:e.flags}}}]),t}()),Ja=new(function(){function e(){Yt(this,e)}return Qt(e,[{key:"adapt",value:function(e){var t;return{traceId:e.spanContext.traceId,spanId:e.spanContext.spanId,traceState:e.spanContext.traceState,parentSpanId:null===(t=e.parentSpan)||void 0===t?void 0:t.spanContext.spanId,flags:e.spanContext.traceFlags,name:e.name,kind:e.kind,startTimeUnixNano:Va.adapt(e.startTime),endTimeUnixNano:Va.adapt(e.endTime),attributes:Ka.adapt(e.attributes),events:e.events.map(Xa.adapt),links:e.links.map(Ya.adapt),status:e.status}}}]),e}()),Qa=function(){function e(t){Yt(this,e),$t(this,"trackingCore",void 0),this.trackingCore=t}return Qt(e,[{key:"export",value:function(e){var t=Ja.adapt(e),n={attributes:Ka.adapt(e.parentTracer.parentTracerProvider.resource.attributes)},i={traceId:e.spanContext.traceId,pageForestId:e.spanContext.traceId,resourceSpans:{resource:n,scopeSpans:[{scope:e.parentTracer.scope,spans:[t]}]}};this.trackingCore.fireEvent("OtelPilotClientTraceEvent",i)}}]),e}(),$a=function(){function e(t){Yt(this,e),$t(this,"DEBUG_QUERY_PARAM","__LI_OTEL_DEBUG"),$t(this,"enabled",!1),$t(this,"globalWindow",void 0),$t(this,"exportedSpans",void 0);var n=t;if(void 0!==n.location){var i=new URLSearchParams(n.location.search);this.enabled=null!==i.get(this.DEBUG_QUERY_PARAM)}this.enabled&&(this.globalWindow="undefined"!=typeof window?window:{},this.exportedSpans=this.globalWindow.__li_otelSpans||[],this.globalWindow.__li_otelSpans=this.exportedSpans)}return Qt(e,[{key:"export",value:function(e){this.exportedSpans&&this.exportedSpans.push(e)}}]),e}(),Za=new(function(e){function t(){return Yt(this,t),Bt(this,t,arguments)}return jt(t,Wa),Qt(t,[{key:"adapt",value:function(e,t){var n={"pageInstance.pageUrn":e.pageInstance.pageUrn,"pageInstance.trackingId":e.pageInstance.trackingId,pageKey:e.pageKey};e.applicationInstance&&(n["applicationInstance.version"]=e.applicationInstance.version,n["applicationInstance.applicationUrn"]=e.applicationInstance.applicationUrn,n["applicationInstance.trackingId"]=JSON.stringify(e.applicationInstance.trackingId));var i=(null==t?void 0:t.prefix)||"";return Object.keys(n).reduce((function(e,t){return e[i+t]=n[t],e}),{})}}]),t}()),es=function(){function e(t){Yt(this,e),$t(this,"trackingCore",void 0),this.trackingCore=t}return Qt(e,[{key:"onStart",value:function(e){if(e.startTrackingContext){var t=e.startTrackingContext||this.trackingCore.getCurrentContext(),n=Za.adapt(t,{prefix:"trackingCtx.start."});Object.assign(e.attributes,n)}}},{key:"onEnd",value:function(e){if(e.endTrackingContext){var t=e.endTrackingContext||this.trackingCore.getCurrentContext(),n=Za.adapt(t,{prefix:"trackingCtx.end."});Object.assign(e.attributes,n)}}}]),e}(),ts=function(){function e(){Yt(this,e)}return Qt(e,[{key:"onStart",value:function(e){}},{key:"onEnd",value:function(e){e.attributes[Da._SPAN_TYPE]=e.spanType}}]),e}();function ns(e){for(var t="",n=0;n<e;n++)t+="0123456789abcdef".charAt(Math.floor(16*Math.random()));return t}function is(){return ns(16)}!function(e){e[e.CREATED=0]="CREATED",e[e.STARTED=1]="STARTED",e[e.ENDED=2]="ENDED"}(Ba||(Ba={})),function(e){e.UNKNOWN="UNKNOWN",e.OK="OK",e.ERROR="ERROR"}(qa||(qa={})),function(e){e.SERVER="SERVER",e.CLIENT="CLIENT",e.INTERNAL="INTERNAL"}(Ha||(Ha={})),function(e){e.DEFAULT="DEFAULT",e.INFINITE="INFINITE",e.EVENT_WRAPPER="EVENT_WRAPPER"}(ja||(ja={}));var rs=function(){function e(t,n,i){var r,o,a,s;Yt(this,e),$t(this,"name",void 0),$t(this,"parentTracer",void 0),$t(this,"status",{code:qa.UNKNOWN,message:""}),$t(this,"attributes",{}),$t(this,"events",[]),$t(this,"kind",Ha.INTERNAL),$t(this,"links",[]),$t(this,"spanContext",void 0),$t(this,"spanType",void 0),$t(this,"startTime",void 0),$t(this,"endTime",void 0),$t(this,"startTrackingContext",void 0),$t(this,"endTrackingContext",void 0),$t(this,"parentSpan",void 0),$t(this,"state",Ba.CREATED),this.name=t,this.parentTracer=n,this.spanType=ja.DEFAULT;var c=null==i||null===(r=i.parentSpan)||void 0===r?void 0:r.spanContext;this.spanContext={traceId:(null==i||null===(o=i.spanContext)||void 0===o?void 0:o.traceId)||(null==c?void 0:c.traceId)||ns(32),spanId:(null==i||null===(a=i.spanContext)||void 0===a?void 0:a.spanId)||is(),traceState:(null==i||null===(s=i.spanContext)||void 0===s?void 0:s.traceState)||(null==c?void 0:c.traceState)||""},this.parentSpan=null==i?void 0:i.parentSpan,null!=i&&i.links&&(this.links=i.links)}return Qt(e,[{key:"start",value:function(e){return this.state!==Ba.CREATED?(this.warn("Can't start a span that has already been started"),this):(this.startTime="number"==typeof(null==e?void 0:e.startTime)?e.startTime:performance.now(),this.startTrackingContext=null==e?void 0:e.trackingContext,this.state=Ba.STARTED,this.parentTracer.handleSpanStart(this),this)}},{key:"end",value:function(e){var t="number"==typeof(null==e?void 0:e.endTime)?e.endTime:performance.now();this.state===Ba.STARTED?t<this.startTime?this.warn("Can't end a span with endTime < startTime"):(this.name=(null==e?void 0:e.name)||this.name,this.endTime=t,this.endTrackingContext=null==e?void 0:e.trackingContext,this.state=Ba.ENDED,this.parentTracer.handleSpanEnd(this)):this.warn("Can't end a span that either has not been started or has already ended.")}},{key:"addEvent",value:function(e,t){var n={name:e,time:"number"==typeof(null==t?void 0:t.time)?t.time:performance.now(),attributes:(null==t?void 0:t.attributes)||{}},i=this.parentTracer.parentTracerProvider.config.spanEventCountLimit;this.events.length>=i?this.warn("Can't add event, because span event limit (".concat(i,") has been reached")):(this.events.push(n),this.state!==Ba.STARTED&&this.warn("Added a span event to a span that either has not been started or has already ended."),n.time<this.startTime&&this.warn("Added a span event with event.time < span.startTime"))}},{key:"warn",value:function(e){this.parentTracer.parentTracerProvider.warn(e)}}]),e}(),os=function(e){function t(e,n,i,r){var o,a,s,c,l;Yt(this,t),(l=Bt(this,t,["li.mo.event-wrapper",n,i])).spanType=ja.EVENT_WRAPPER;var u="number"==typeof(null===(o=r)||void 0===o?void 0:o.time)?r.time:performance.now();return r=Object.assign({},r,{time:u}),Nt((a=qt(l),Ht(t.prototype)),"start",a).call(a,{startTime:u}),Nt((s=qt(l),Ht(t.prototype)),"addEvent",s).call(s,e,r),Nt((c=qt(l),Ht(t.prototype)),"end",c).call(c,{endTime:u}),l}return jt(t,rs),Qt(t,[{key:"start",value:function(){return this.warn(this.getMethodNotSupportedMessage("start")),this}},{key:"end",value:function(){this.warn(this.getMethodNotSupportedMessage("end"))}},{key:"addEvent",value:function(){this.warn(this.getMethodNotSupportedMessage("addEvent"))}},{key:"getMethodNotSupportedMessage",value:function(e){return"EventWrapperSpan doesn't support explicit '".concat(e,"' operation. This '").concat(e,"' call will have no effect.")}}]),t}(),as=function(e){function t(e,n,i){var r;return Yt(this,t),(r=Bt(this,t,[e,n,i])).spanType=ja.INFINITE,r}return jt(t,rs),Qt(t,[{key:"start",value:function(e){return this.state!==Ba.CREATED?(this.warn("Can't start an infinite span that has already been started"),this):(Nt(Ht(t.prototype),"start",this).call(this,e),Nt(Ht(t.prototype),"end",this).call(this,{endTime:this.startTime}),this.state=Ba.STARTED,this)}},{key:"end",value:function(){this.warn("InfiniteSpan object doesn't support an end() operation. This 'end()' call will have no effect.")}},{key:"addEvent",value:function(e,n){var i=this.parentTracer.parentTracerProvider.config.spanEventCountLimit;if(this.events.length>=i)this.warn("Can't add event, because span event limit (".concat(i,") has been reached"));else{Nt(Ht(t.prototype),"addEvent",this).call(this,e,n);var r={parentSpan:this};new os(e,this.parentTracer,r,n)}}}]),t}(),ss=function(){function e(t,n){Yt(this,e),$t(this,"scope",void 0),$t(this,"parentTracerProvider",void 0),this.scope=t,this.parentTracerProvider=n}return Qt(e,[{key:"createSpan",value:function(e,t,n){var i=null==t?void 0:t.parentSpan;if((null==i?void 0:i.spanType)!==ja.EVENT_WRAPPER)return((null==n?void 0:n.spanType)||ja.DEFAULT)===ja.INFINITE?new as(e,this,t):new rs(e,this,t);this.parentTracerProvider.warn("Can't create span with parentSpan of type EventWrapperSpan.")}},{key:"handleSpanStart",value:function(e){this.parentTracerProvider.handleSpanStart(e)}},{key:"handleSpanEnd",value:function(e){this.parentTracerProvider.handleSpanEnd(e)}}]),e}(),cs=function(){function e(){Yt(this,e),$t(this,"endedSpanCount",0)}return Qt(e,[{key:"onStart",value:function(){}},{key:"onEnd",value:function(e){e.attributes["li.globalSequenceNumber"]=this.endedSpanCount,this.endedSpanCount++}}]),e}(),ls={spanCountLimit:500,spanEventCountLimit:128},us=function(){function e(t,n){var i=this;Yt(this,e),$t(this,"resource",void 0),$t(this,"config",void 0),$t(this,"tracers",{}),$t(this,"spanExporters",[]),$t(this,"spanProcessors",[]),$t(this,"spanExportQueue",[]),$t(this,"waitForResourceAsyncAttributes",!0),$t(this,"spanCount",0),this.resource=t,this.config=Object.assign({},ls,n),this.addSpanProcessor(new cs),t.waitForAsyncAttributes().then((function(){i.waitForResourceAsyncAttributes=!1,i.flushSpanQueue()}))}return Qt(e,[{key:"getTracer",value:function(e){var t=this.getScopeKey(e);return void 0===this.tracers[t]&&(this.tracers[t]=new ss(e,this)),this.tracers[t]}},{key:"addSpanExporter",value:function(e){this.spanExporters.push(e)}},{key:"addSpanProcessor",value:function(e){this.spanProcessors.push(e)}},{key:"handleSpanStart",value:function(e){this.spanProcessors.forEach((function(t){t.onStart(e)}))}},{key:"handleSpanEnd",value:function(e){this.spanProcessors.forEach((function(t){t.onEnd(e)})),this.spanExportQueue.push(e),this.waitForResourceAsyncAttributes||this.flushSpanQueue()}},{key:"warn",value:function(e){this.config.logger&&this.config.logger.warn(e)}},{key:"getScopeKey",value:function(e){return"".concat(e.name,"@").concat(e.version||"")}},{key:"flushSpanQueue",value:function(){var e=this;this.spanExportQueue.forEach((function(t){e.spanCount++,e.spanCount>e.config.spanCountLimit?e.spanCount===e.config.spanCountLimit+1&&e.warn("Resource reached span count limit (".concat(e.config.spanCountLimit,") and won't export any more spans.")):e.spanExporters.forEach((function(e){e.export(t)}))})),this.spanExportQueue=[]}}]),e}(),ds=function(e){function t(){var e;Yt(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return $t(qt(e=Bt(this,t,[].concat(i))),"resourceType",Ma.APPLICATION),e}return jt(t,Ga),Qt(t)}(),hs=function(e){function t(){var e;Yt(this,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return $t(qt(e=Bt(this,t,[].concat(i))),"resourceType",Ma.PAGE),e}return jt(t,Ga),Qt(t)}(),ps=function(){function e(t,n){Yt(this,e),$t(this,"trackingCore",void 0),$t(this,"INSTRUMENTATION_NAME","tracking-context-instrumentation"),$t(this,"activeContext",void 0),$t(this,"initialApplicationTraceId",void 0),this.trackingCore=t,this.initialApplicationTraceId=null==n?void 0:n.initialApplicationTraceId}return Qt(e,[{key:"enable",value:function(){var e=this.startApplicationSpan(),t=this.startPageSpan(0,e);this.activeContext={application:{applicationSpan:e,applicationResource:e.parentTracer.parentTracerProvider.resource},page:{pageSpan:t,pageResource:t.parentTracer.parentTracerProvider.resource}}}},{key:"disable",value:function(){}},{key:"handleNavigationStart",value:function(){var e=this.startPageSpan(performance.now(),this.activeContext.application.applicationSpan);this.activeContext.page={pageSpan:e,pageResource:e.parentTracer.parentTracerProvider.resource,pageContext:void 0}}},{key:"handleTransitionEnd",value:function(){var e=this.trackingCore.getCurrentContext();this.validateTransition(e);var t=Ut(Ut({},e.applicationInstance),{},{appId:this.trackingCore.host.appId}),n={"application.name":t.appId,"application.urn":t.applicationUrn,"application.version":t.version,"application.instanceId":t.trackingId};this.activeContext.application.applicationContext=t,this.activeContext.application.applicationResource.resolveAsyncAttributes(n);var i=Ut(Ut({},e.pageInstance),{},{pageKey:e.pageKey});this.activeContext.page.pageContext=i,this.activeContext.page.pageResource.resolveAsyncAttributes(Ut(Ut({},n),{},{"page.urn":i.pageUrn,"page.pageKey":i.pageKey,"page.instanceId":i.trackingId}))}},{key:"getApplicationSpan",value:function(){return this.activeContext.application.applicationSpan}},{key:"getCurrentPageSpan",value:function(){return this.activeContext.page.pageSpan}},{key:"startApplicationSpan",value:function(){var e=new ds({platform:"WEB"},{waitForAsyncAttributes:!0}),t={};"undefined"!=typeof window&&(t.logger=window.console);var n=new us(e,t);this.setupTracerProvider(n);var i=n.getTracer({name:this.INSTRUMENTATION_NAME}),r={};this.initialApplicationTraceId&&(r.spanContext={traceId:this.initialApplicationTraceId});var o=i.createSpan(Fa,r,{spanType:ja.INFINITE});return o.start({startTime:0}),o}},{key:"startPageSpan",value:function(e,t){var n=new hs({platform:"WEB"},{waitForAsyncAttributes:!0}),i={};"undefined"!=typeof window&&(i.logger=window.console);var r=new us(n,i);this.setupTracerProvider(r);var o=r.getTracer({name:this.INSTRUMENTATION_NAME}),a={links:[Object.assign({attributes:{}},t.spanContext)]},s=o.createSpan(Fa,a,{spanType:ja.INFINITE});return s.start({startTime:e}),s}},{key:"validateTransition",value:function(e){if(!e)throw new Error("Bad transition: new context is missing.");if(!e.applicationInstance)throw new Error("Bad transition: invalid application instance.");if(!e.applicationInstance.trackingId||0==e.applicationInstance.trackingId.length)throw new Error("Bad transition: invalid application instance trackingId.");var t=this.activeContext.application.applicationContext;if(t&&e.applicationInstance.trackingId!==t.trackingId)throw new Error("Bad transition: new application id differs from the active application id.");var n=this.activeContext.page.pageContext;if(n&&e.pageInstance.trackingId===n.trackingId)throw new Error("Bad transition: new page id is the same as the active page id.")}},{key:"setupTracerProvider",value:function(e){e.addSpanProcessor(new ts),e.addSpanProcessor(new es(this.trackingCore)),e.addSpanExporter(new Qa(this.trackingCore)),e.addSpanExporter(new $a(this.trackingCore.host.api))}}]),e}(),fs=function(){function e(){Yt(this,e),$t(this,"initialized",!1),$t(this,"instrumentations",[]),$t(this,"trackingContextInst",void 0)}return Qt(e,[{key:"init",value:function(e,t){this.initialized||(this.trackingContextInst=new ps(e,{initialApplicationTraceId:null==t?void 0:t.htmlFetchTraceId}),this.trackingContextInst.enable(),this.instrumentations.forEach((function(e){return e.enable()})),this.initialized=!0)}},{key:"addInstrumentation",value:function(e){this.instrumentations.push(e),this.initialized&&e.enable()}},{key:"handleNavigationStart",value:function(){this.trackingContextInst.handleNavigationStart()}},{key:"handleTransitionEnd",value:function(){this.trackingContextInst.handleTransitionEnd()}},{key:"getApplicationSpan",value:function(){return this.trackingContextInst.getApplicationSpan()}},{key:"getCurrentPageSpan",value:function(){return this.trackingContextInst.getCurrentPageSpan()}}],[{key:"getInstance",value:function(){return e.instance||(e.instance=new e),e.instance}}]),e}();$t(fs,"instance",void 0);var gs=new(function(e){function t(){return Yt(this,t),Bt(this,t,arguments)}return jt(t,Wa),Qt(t,[{key:"adapt",value:function(e){var t=e.error,n=t.name,i=t.message,r=t.stack,o=void 0===r?"":r,a=t.fileName,s=void 0===a?"":a,c=t.lineNumber,l=void 0===c?-1:c,u=t.columnNumber,d={"error.name":n,"error.message":i,"error.stack":o,"error.fileName":s,"error.lineNumber":l,"error.columnNumber":void 0===u?-1:u,"error.callTreeId":e.callTreeId},h=e.responseHeaders;if(h){var p={};Object.keys(h).forEach((function(e){p["error.response.headers.".concat(e)]=h[e]})),Object.assign(d,p)}return d}}]),t}());function vs(e,t,n){var i=t in e&&e.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:i,writable:!0,value:n})}function ms(e,t){return Object.keys(e).reduce((function(n,i){return n[t+i]=e[i],n}),{})}function ys(e,t){var n=e.entryType,i=e.redirectStart,r=e.redirectEnd,o=e.workerStart,a=e.fetchStart,s=e.domainLookupStart,c=e.domainLookupEnd,l=e.connectStart,u=e.secureConnectionStart,d=e.connectEnd,h=e.requestStart,p=e.responseStart,f=e.responseEnd,g=e.decodedBodySize,v=e.encodedBodySize,m=e.initiatorType,y=e.nextHopProtocol,E=e.transferSize,b=e.deliveryType,w=e.firstInterimResponseStart,_=e.renderBlockingStatus,T=e.responseStatus;i>0&&r>i&&(t.addEvent("redirectStart",{time:i}),t.addEvent("redirectEnd",{time:r})),o>0&&t.addEvent("workerStart",{time:o}),t.addEvent("fetchStart",{time:a}),s>0&&c>s&&(t.addEvent("domainLookupStart",{time:s}),t.addEvent("domainLookupEnd",{time:c})),l>0&&d>l&&(t.addEvent("connectStart",{time:l}),u>0&&t.addEvent("secureConnectionStart",{time:u}),t.addEvent("connectEnd",{time:d})),function(e){return e.requestStart>0&&e.responseEnd>e.requestStart}(e)&&(t.addEvent("requestStart",{time:h}),t.addEvent("responseStart",{time:p}),t.addEvent("responseEnd",{time:f}));var S={decodedBodySize:g,encodedBodySize:v,initiatorType:m,nextHopProtocol:y,transferSize:E,deliveryType:b,firstInterimResponseStart:w,renderBlockingStatus:_,responseStatus:T},C=ms({entryType:n},"performance.entry."),I=ms(S,"performance.resource.timing.");Object.assign(t.attributes,C,I)}!function(){function e(){Yt(this,e),$t(this,"handleErrorBound",this.handleError.bind(this))}Qt(e,[{key:"enable",value:function(){Pi.on(Nr.INTERNAL_OTEL_JET_EVENT,this.handleErrorBound)}},{key:"disable",value:function(){Pi.off(Nr.INTERNAL_OTEL_JET_EVENT,this.handleErrorBound)}},{key:"handleError",value:function(e){if(e){var t=gs.adapt(e);fs.getInstance().getCurrentPageSpan().addEvent("error",{attributes:t})}}}])}();var Es="X-Li-Traceparent",bs="X-Li-Tracestate";function ws(e){var t={};return e instanceof Headers?e.forEach((function(e,n){return t[n]=e})):Array.isArray(e)?e.forEach((function(e){if(Array.isArray(e)){var n=e.length>0?e[0]:String(void 0),i=e.length>1?e[1]:String(void 0);t[n]=i}})):"object"===Xt(e)&&(t=Ut({},e)),t}function _s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",Ts(n,t))}function Ts(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=rt(document),i=ot(document),r=Tt();let o={};return r&&(o.theme=r.toUpperCase()),i&&(o.interfaceLocale=i),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}!function(){function e(t){Yt(this,e),$t(this,"transporter",void 0),$t(this,"handleResourceTimingBound",this.handleResourceTiming.bind(this)),$t(this,"resourceInfoMap",new Map),$t(this,"locationApi",void 0),$t(this,"trackingEndpoint",void 0),this.transporter=t,this.transporter instanceof Tr?(this.trackingEndpoint=this.transporter.getTrackingEndpoint(),this.locationApi=this.transporter.host.api.location):this.trackingEndpoint=this.transporter.host.endpoint}Qt(e,[{key:"enable",value:function(){this.wrapFetch(),this.wrapXmlHttpRequest(),Pi.on(Nr.INTERNAL_OTEL_RESOURCE,this.handleResourceTimingBound)}},{key:"disable",value:function(){Pi.off(Nr.INTERNAL_OTEL_RESOURCE,this.handleResourceTimingBound)}},{key:"wrapFetch",value:function(){var e=this;!function(e,t,n){var i=void 0;try{i=e[t]}catch(e){}if("function"!=typeof i)throw new Error("Property ".concat(t," of the provided object is not a function"));var r=n(i);vs(e,t,r),vs(r,"__wrapped",!0),vs(r,"__original",i)}(window,"fetch",(function(t){return e.fetchWrapper.bind(e,t)}))}},{key:"wrapXmlHttpRequest",value:function(){}},{key:"fetchWrapper",value:function(e,t,n){var i=this,r=function(e){var t="__default";if(e instanceof Request)t=e.url;else if(e instanceof URL)t=e.href;else if("string"==typeof e)try{t=new URL(e,location.origin).href}catch(e){}return t}(t);if(!this.shouldWrapFetch(r))return e.apply(window,[t,n]);var o=fs.getInstance().getCurrentPageSpan(),a=is(),s=n,c=null==n?void 0:n.headers;try{c=function(e,t,n){var i,r=function(e,t){return"".concat("00","-").concat(e,"-").concat(t,"-").concat("00")}(t,n),o=function(e){return"".concat("LinkedIn","=").concat(e)}(n);if((e=null!==(i=e)&&void 0!==i?i:{})instanceof Headers){var a=new Headers(e);return a.append(Es,r),a.append(bs,o),a}return Array.isArray(e)?[].concat(zt(e),[[Es,r],[bs,o]]):"object"===Xt(e)?Ut(Ut({},e),{},$t($t({},Es,r),bs,o)):e}(null==n?void 0:n.headers,o.spanContext.traceId,a),s=Ut(Ut({},n),{},{headers:c})}catch(e){}var l={spanId:a,parentSpan:o,startTime:performance.now(),endTime:performance.now(),request:{url:r,headers:ws(c)}};return e.apply(window,[t,s]).then((function(e){var t={headers:{},ok:e.ok,redirected:e.redirected,status:e.status,statusText:e.statusText,type:e.type,url:e.url};return e.headers.forEach((function(e,n){t.headers[n]=e})),l.response=t,e})).catch((function(e){throw l.error={name:e.name,message:e.message,stack:e.stack},e})).finally((function(){l.endTime=performance.now();var e=i.resourceInfoMap.get(r)||[];e.push(l),i.resourceInfoMap.set(r,e)}))}},{key:"handleResourceTiming",value:function(e){if(e&&this.shouldTraceResourceTiming(e.resourceTiming.name)){var t,n=this.resourceInfoMap.get(e.resourceTiming.name);n&&(t=n[0],n.length>1?(console.warn("Multiple wrapped request info objects found for URL '".concat(e.resourceTiming.name,"'.")),n.shift()):this.resourceInfoMap.delete(e.resourceTiming.name)),this.traceResource(e.resourceTiming,t)}}},{key:"traceResource",value:function(e,t){var n=e.name,i=e.startTime,r=i+e.duration,o=(null==t?void 0:t.parentSpan)||fs.getInstance().getCurrentPageSpan(),a=o.parentTracer.parentTracerProvider.getTracer({name:"w3c-resource-instrumentation"}),s=void 0;t&&(s={traceId:t.parentSpan.spanContext.traceId,spanId:t.spanId,traceState:""});var c={parentSpan:o};s&&(c.spanContext=s);var l=a.createSpan(n,c).start({startTime:i});ys(e,l),t&&this.addWrappedRequestInfoAttributes(l,t),l.end({endTime:r})}},{key:"addWrappedRequestInfoAttributes",value:function(e,t){var n=ms(ws(t.request.headers),"http.request.header.");if(Object.assign(e.attributes,n),t.response){var i=ms(ws(t.response.headers),"http.response.header."),r=ms({status:t.response.status,statusText:t.response.statusText,ok:t.response.ok,redirected:t.response.redirected,type:t.response.type,url:t.response.url},Ua);Object.assign(e.attributes,i,r)}}},{key:"isTrackingEndpoint",value:function(e,t){return function(e,t,n){var i=new URL(e,n.href),r=new URL(t,n.href);return i.href===r.href}(e,this.trackingEndpoint,t)}},{key:"isRealtimeTelemetryRequest",value:function(e,t){return new URL(e,t.href).pathname.indexOf("/realtime/")>-1}},{key:"isSameOriginRequest",value:function(e,t){var n=new URL(e,t.href);return n.protocol===t.protocol&&n.host===t.host}},{key:"shouldWrapFetch",value:function(e){return!!this.locationApi&&this.isSameOriginRequest(e,this.locationApi)&&!this.isTrackingEndpoint(e,this.locationApi)&&!this.isRealtimeTelemetryRequest(e,this.locationApi)}},{key:"shouldTraceResourceTiming",value:function(e){return!!this.locationApi&&!this.isTrackingEndpoint(e,this.locationApi)&&!this.isRealtimeTelemetryRequest(e,this.locationApi)}}])}(),function(){function e(t){Yt(this,e),$t(this,"handleLoadEventBound",this.handleLoadEvent.bind(this)),$t(this,"navigationSpanId",void 0),$t(this,"globalWindow",void 0),this.navigationSpanId=null==t?void 0:t.navigationSpanId,"undefined"!=typeof window&&(this.globalWindow=window)}Qt(e,[{key:"enable",value:function(){var e;"complete"===document.readyState?this.handleLoadEventEnd():null===(e=this.globalWindow)||void 0===e||e.addEventListener("load",this.handleLoadEventBound)}},{key:"disable",value:function(){var e;null===(e=this.globalWindow)||void 0===e||e.removeEventListener("load",this.handleLoadEventBound)}},{key:"handleLoadEvent",value:function(){var e,t=this;setTimeout((function(){t.handleLoadEventEnd()}),0),null===(e=this.globalWindow)||void 0===e||e.removeEventListener("load",this.handleLoadEventBound)}},{key:"handleLoadEventEnd",value:function(){var e=performance.getEntriesByType("navigation");if(!(e.length<1)){var t=e[0],n=fs.getInstance().getCurrentPageSpan();this.traceNavigation(t,n)}}},{key:"traceNavigation",value:function(e,t){var n=e.name,i=e.startTime,r=i+e.duration,o=t.parentTracer.parentTracerProvider.getTracer({name:"w3c-navigation-instrumentation"}),a=e.toJSON(),s=a.domComplete,c=a.domContentLoadedEventEnd,l=a.domContentLoadedEventStart,u=a.domInteractive,d=a.loadEventEnd,h=a.loadEventStart,p=a.redirectCount,f=a.type,g=a.unloadEventEnd,v=a.unloadEventStart,m={parentSpan:t,spanContext:this.navigationSpanId?{spanId:this.navigationSpanId}:void 0},y=o.createSpan(n,m).start({startTime:i});ys(e,y),v>0&&g>v&&o.createSpan("unloadEvent",{parentSpan:y}).start({startTime:v}).end({endTime:g});var E=o.createSpan("dom-processing",{parentSpan:y}).start({startTime:u});o.createSpan("domContentLoadedEvent",{parentSpan:E}).start({startTime:l}).end({endTime:c}),E.end({endTime:s}),o.createSpan("loadEvent",{parentSpan:y}).start({startTime:h}).end({endTime:d});var b=ms({type:f,redirectCount:p},"performance.navigation.timing.");Object.assign(y.attributes,b),y.end({endTime:r})}}])}(),function(){function e(){Yt(this,e),$t(this,"handleLCPUpdateBound",this.handleWebVitalsMetricUpdate.bind(this,"LargestContentfulPaint")),$t(this,"handleCLSUpdateBound",this.handleWebVitalsMetricUpdate.bind(this,"CumulativeLayoutShift")),$t(this,"handleFIDUpdateBound",this.handleWebVitalsMetricUpdate.bind(this,"FirstInputDelay"))}Qt(e,[{key:"enable",value:function(){Pi.on(Nr.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,this.handleLCPUpdateBound),Pi.on(Nr.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,this.handleCLSUpdateBound),Pi.on(Nr.INTERNAL_OTEL_FIRST_INPUT_DELAY,this.handleFIDUpdateBound)}},{key:"disable",value:function(){Pi.off(Nr.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,this.handleLCPUpdateBound),Pi.off(Nr.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,this.handleCLSUpdateBound),Pi.off(Nr.INTERNAL_OTEL_FIRST_INPUT_DELAY,this.handleFIDUpdateBound)}},{key:"handleWebVitalsMetricUpdate",value:function(e,t){if(t){var n=t.value,i=t.metadata,r=i.basePageTreeId,o=Ft(i,Rt);fs.getInstance().getCurrentPageSpan().addEvent(e,{attributes:Ut({value:n,basePageTreeId:"string"==typeof r?r:JSON.stringify(r)},o)})}}}])}();const{ENTER:Ss,ESCAPE:Cs}=st;class Is{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,shouldMoveToTopContainer:r=!0,events:o={},focusElement:a,pageKey:s,onClose:c}=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=s,this._shouldHideModal=n,this._shouldMoveToTopContainer=r,this.onClose=c;this._el.querySelector("[id='".concat("modalNoDismiss","']"))&&(this._isModalNonDismissible=!0),this._focusElement=a,i&&this._outletEls.forEach(e=>{e.addEventListener("click",e=>{var t;const n=null===(t=e.target)||void 0===t?void 0:t.getAttribute("data-no-cool-off");this.open({noCoolOff:n})})}),this._isModalNonDismissible||(this._exitButtonEl&&this._exitButtonEl.addEventListener("click",()=>this.close()),this._overlayEl.addEventListener("click",this._handleOverlayClick.bind(this))),this._focusTrap=new gt(this._wrapperEl)}_getOutletEls(){const e=this._el.dataset.outlet,t=[...("default-outlet"===e?this._parentNode:document).querySelectorAll('[data-modal="'.concat(e,'"]'))];return t.length||console.warn("No outlet was found with a data-modal attribute equal to the provided dataCustomOutlet param ".concat(e)),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=lt(e.key),n=t===Ss&&document.activeElement===this._exitButtonEl;(t===Cs||n)&&(this._isModalNonDismissible||this.close(),e.preventDefault())}open(){let{focusElement:e,noCoolOff:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(t||!this._shouldHideModal())return this._focusElement=e||this._focusElement,this._previouslyFocusedEl=document.activeElement,this._overlayEl.classList.add("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","false"),this._shouldMoveToTopContainer&&this._topLevelContainer.appendChild(this._el),this.noScroll(),document.addEventListener("keydown",this._onKeyDownEvent),nt(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{_s(e,"ajax",this._pageKey||"".concat(this._el.id))}):(nt(this._wrapperEl,"afterOpen"),Promise.resolve());nt(this._el,"didNotOpen")}async close(){var e,t,n,i,r,o;this._events.onBeforeClose&&await(null===(n=this._events)||void 0===n||null===(i=n.onBeforeClose)||void 0===i?void 0:i.call(n,this._wrapperEl));this.isOpen&&(null===(r=this.onClose)||void 0===r||r.call(this));(this._overlayEl.classList.remove("modal__overlay--visible"),this._overlayEl.setAttribute("aria-hidden","true"),this._shouldMoveToTopContainer&&this._parentNode.appendChild(this._el),this.removeNoScroll(),document.removeEventListener("keydown",this._onKeyDownEvent),nt(this._el,"close"),null!==(e=this._focusElement)&&void 0!==e&&null!==(t=e.classList)&&void 0!==t&&t.contains("ellipsis-menu__trigger"))?(null===(o=this._focusElement)||void 0===o?void 0:o.focus())||this._previouslyFocusedEl.focus():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")}get isOpen(){return this._overlayEl.classList.contains("modal__overlay--visible")}}function ks(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 As=/ /g,xs=/[\s\u0000<>"]|%00/,Os=/\\/,Ls=/([.]|%2e){2}/i;let Rs=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 Ns(e){let t;if("string"!=typeof e)return ks("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(ks("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(As,"+")),!Rs.test(t))return ks("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(xs.test(t))return ks("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?(ks("jSecure Error: malformed url path detected: "+i),"invalid://"):Os.test(i)||Ls.test(i)||Ls.test(n)?(ks("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const Ps={redirect(e){window&&(window.location.href=e)}};function Ds(e){return e.scrollHeight>e.offsetHeight}function Ms(e,t){const n=null==(i=e)||"object"!=typeof i?[]:Array.prototype.slice.call(i);var i;for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Us(e){Ms([e],e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Fs(e){Ms([e],e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function Bs(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function qs(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}const Hs={};function js(e){const t=document.getElementById(e);if(!t&&void 0!==Hs[e])return Hs[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Hs[e]=null,Hs[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):(Hs[e]=n,t.parentNode.removeChild(t),Hs[e])}function Gs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ws=Object.hasOwnProperty,zs=Object.setPrototypeOf,Ks=Object.isFrozen,Vs=Object.getPrototypeOf,Xs=Object.getOwnPropertyDescriptor,Ys=Object.freeze,Js=Object.seal,Qs=Object.create,$s="undefined"!=typeof Reflect&&Reflect,Zs=$s.apply,ec=$s.construct;Zs||(Zs=function(e,t,n){return e.apply(t,n)}),Ys||(Ys=function(e){return e}),Js||(Js=function(e){return e}),ec||(ec=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 tc,nc=hc(Array.prototype.forEach),ic=hc(Array.prototype.pop),rc=hc(Array.prototype.push),oc=hc(String.prototype.toLowerCase),ac=hc(String.prototype.match),sc=hc(String.prototype.replace),cc=hc(String.prototype.indexOf),lc=hc(String.prototype.trim),uc=hc(RegExp.prototype.test),dc=(tc=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ec(tc,t)});function hc(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 Zs(e,t,i)}}function pc(e,t){zs&&zs(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=oc(i);r!==i&&(Ks(t)||(t[n]=r),i=r)}e[i]=!0}return e}function fc(e){var t=Qs(null),n=void 0;for(n in e)Zs(Ws,e,[n])&&(t[n]=e[n]);return t}function gc(e,t){for(;null!==e;){var n=Xs(e,t);if(n){if(n.get)return hc(n.get);if("function"==typeof n.value)return hc(n.value)}e=Vs(e)}return function(e){return console.warn("fallback value for",e),null}}var vc=Ys(["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"]),mc=Ys(["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"]),yc=Ys(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Ec=Ys(["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"]),bc=Ys(["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"]),wc=Ys(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),_c=Ys(["#text"]),Tc=Ys(["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"]),Sc=Ys(["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"]),Cc=Ys(["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"]),Ic=Ys(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kc=Js(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Ac=Js(/<%[\s\S]*|[\s\S]*%>/gm),xc=Js(/^data-[\-\w.\u00B7-\uFFFF]/),Oc=Js(/^aria-[\-\w]+$/),Lc=Js(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Rc=Js(/^(?:\w+script|data):/i),Nc=Js(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Pc="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 Dc(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 Mc=function(){return"undefined"==typeof window?null:window},Uc=function(e,t){if("object"!==(void 0===e?"undefined":Pc(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 Fc=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mc(),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,a=t.HTMLTemplateElement,s=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,g=c.prototype,v=gc(g,"cloneNode"),m=gc(g,"nextSibling"),y=gc(g,"childNodes"),E=gc(g,"parentNode");if("function"==typeof a){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=Uc(f,i),_=w?w.createHTML(""):"",T=r,S=T.implementation,C=T.createNodeIterator,I=T.createDocumentFragment,k=T.getElementsByTagName,A=i.importNode,x={};try{x=fc(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==x;var L=kc,R=Ac,N=xc,P=Oc,D=Rc,M=Nc,U=Lc,F=null,B=pc({},[].concat(Dc(vc),Dc(mc),Dc(yc),Dc(bc),Dc(_c))),q=null,H=pc({},[].concat(Dc(Tc),Dc(Sc),Dc(Cc),Dc(Ic))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,W=null,z=!0,K=!0,V=!1,X=!1,Y=!1,J=!1,Q=!1,$=!1,Z=!1,ee=!1,te=!0,ne=!0,ie=!1,re={},oe=null,ae=pc({},["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"]),se=null,ce=pc({},["audio","video","img","source","image","track"]),le=null,ue=pc({},["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,ge=!1,ve=void 0,me=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=r.createElement("form"),_e=function(e){return e instanceof RegExp||e instanceof Function},Te=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":Pc(e))||(e={}),e=fc(e),F="ALLOWED_TAGS"in e?pc({},e.ALLOWED_TAGS):B,q="ALLOWED_ATTR"in e?pc({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?pc(fc(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?pc(fc(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?pc({},e.FORBID_CONTENTS):ae,G="FORBID_TAGS"in e?pc({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?pc({},e.FORBID_ATTR):{},re="USE_PROFILES"in e&&e.USE_PROFILES,z=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,X=e.SAFE_FOR_TEMPLATES||!1,Y=e.WHOLE_DOCUMENT||!1,$=e.RETURN_DOM||!1,Z=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,ie=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_e(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===me.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ve?function(e){return e}:oc,X&&(K=!1),Z&&($=!0),re&&(F=pc({},[].concat(Dc(_c))),q=[],!0===re.html&&(pc(F,vc),pc(q,Tc)),!0===re.svg&&(pc(F,mc),pc(q,Sc),pc(q,Ic)),!0===re.svgFilters&&(pc(F,yc),pc(q,Sc),pc(q,Ic)),!0===re.mathMl&&(pc(F,bc),pc(q,Cc),pc(q,Ic))),e.ADD_TAGS&&(F===B&&(F=fc(F)),pc(F,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=fc(q)),pc(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&pc(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=fc(oe)),pc(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),Y&&pc(F,["html","head","body"]),F.table&&(pc(F,["tbody"]),delete G.tbody),Ys&&Ys(e),be=e)},Se=pc({},["mi","mo","mn","ms","mtext"]),Ce=pc({},["foreignobject","desc","title","annotation-xml"]),Ie=pc({},mc);pc(Ie,yc),pc(Ie,Ec);var ke=pc({},bc);pc(ke,wc);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=oc(e.tagName),i=oc(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===i||Se[i]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[i]:Boolean(ke[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[i])return!1;if(t.namespaceURI===de&&!Se[i])return!1;var r=pc({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},xe=function(e){rc(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{rc(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){rc(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!q[e])if($||Z)try{xe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(Q)e="<remove></remove>"+e;else{var i=ac(e,/^[\r\n\t ]+/);n=i&&i[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=ge?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),fe===pe?k.call(t,Y?"html":"body")[0]:Y?t.documentElement:a},Re=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Ne=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)},Pe=function(e){return"object"===(void 0===s?"undefined":Pc(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Pc(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,i){O[e]&&nc(O[e],(function(e){e.call(n,t,i,be)}))},Me=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),Ne(e))return xe(e),!0;if(ac(e.nodeName,/[\u0080-\uFFFF]/))return xe(e),!0;var i=Ee(e.nodeName);if(De("uponSanitizeElement",e,{tagName:i,allowedTags:F}),!Pe(e.firstElementChild)&&(!Pe(e.content)||!Pe(e.content.firstElementChild))&&uc(/<[/\w]/g,e.innerHTML)&&uc(/<[/\w]/g,e.textContent))return xe(e),!0;if("select"===i&&uc(/<template/i,e.innerHTML))return xe(e),!0;if(!F[i]||G[i]){if(ne&&!oe[i]){var r=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&r)for(var a=o.length-1;a>=0;--a)r.insertBefore(v(o[a],!0),m(e))}if(!G[i]&&Fe(i)){if(j.tagNameCheck instanceof RegExp&&uc(j.tagNameCheck,i))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(i))return!1}return xe(e),!0}return e instanceof c&&!Ae(e)?(xe(e),!0):"noscript"!==i&&"noembed"!==i||!uc(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=sc(t,L," "),t=sc(t,R," "),e.textContent!==t&&(rc(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(xe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in r||n in we))return!1;if(K&&!W[t]&&uc(N,t));else if(z&&uc(P,t));else if(!q[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&uc(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&uc(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&uc(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(uc(U,sc(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==cc(n,"data:")||!se[e]){if(V&&!uc(D,sc(n,M,"")));else if(n)return!1}else;return!0},Fe=function(e){return e.indexOf("-")>0},Be=function(e){var t=void 0,i=void 0,r=void 0,o=void 0;De("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};for(o=a.length;o--;){var c=t=a[o],l=c.name,u=c.namespaceURI;if(i=lc(t.value),r=Ee(l),s.attrName=r,s.attrValue=i,s.keepAttr=!0,s.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,s),i=s.attrValue,!s.forceKeepAttr&&(Oe(l,e),s.keepAttr))if(uc(/\/>/i,i))Oe(l,e);else{X&&(i=sc(i,L," "),i=sc(i,R," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),ic(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},qe=function e(t){var n=void 0,i=Re(t);for(De("beforeSanitizeShadowDOM",t,null);n=i.nextNode();)De("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof o&&e(n.content),Be(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,r){var a=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((ge=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Pe(e)){if("function"!=typeof e.toString)throw dc("toString is not a function");if("string"!=typeof(e=e.toString()))throw dc("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Pc(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Pe(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||Te(r),n.removed=[],"string"==typeof e&&(ie=!1),ie){if(e.nodeName){var h=Ee(e.nodeName);if(!F[h]||G[h])throw dc("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(c=(a=Le("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!$&&!X&&!Y&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(a=Le(e)))return $?null:ee?_:""}a&&Q&&xe(a.firstChild);for(var p=Re(ie?e:a);l=p.nextNode();)3===l.nodeType&&l===u||Me(l)||(l.content instanceof o&&qe(l.content),Be(l),u=l);if(u=null,ie)return e;if($){if(Z)for(d=I.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return q.shadowroot&&(d=A.call(i,d,!0)),d}var f=Y?a.outerHTML:a.innerHTML;return X&&(f=sc(f,L," "),f=sc(f,R," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){Te(e),J=!0},n.clearConfig=function(){be=null,J=!1},n.isValidAttribute=function(e,t,n){be||Te({});var i=Ee(e),r=Ee(t);return Ue(i,r,n)},n.addHook=function(e,t){"function"==typeof t&&(O[e]=O[e]||[],rc(O[e],t))},n.removeHook=function(e){O[e]&&ic(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Bc={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};var qc="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Hc=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",jc=["b","del","em","i","s","strong","sub","sup"],Gc=jc.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"]),Wc=[qc,"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 zc(){}var Kc,Vc,Xc=(Vc=/[&<>"'\u0000\\=]/g,Kc={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Vc,(function(e){return Kc[e]}))}),Yc=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,a){return r?(s=r,i.hasOwnProperty(s)?i[s]:(e.innerHTML="&"+s+";",c=e[Hc],i[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var Jc=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Qc(e){return/[<&]/.test(e)}var $c,Zc=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 el(e){e=Jc(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",Zc(e,(function(e,a){t=e.tags||Gc,n=e.attrs||Wc,i=e.checkUrlAttrs||!1,0!==a&&(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 tl(e){return el({tags:e=e||Gc,checkUrlAttrs:!0})}function nl(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!tl(n).test(e):i?!nl.R_UNSAFE_CUSTOM_ELEMENT.test(e):!nl.R_UNSAFE_HTML.test(e)}function il(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function rl(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 zc||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Xc(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return Qc(i)&&!nl(i,n)&&(i=il(i),ks("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ol(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}nl.R_UNSAFE_HTML=tl(),nl.R_UNSAFE_CUSTOM_ELEMENT=el([{tags:Gc,checkUrlAttrs:!0},{tags:[($c={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[qc,$c.attrs].join("|"),checkUrlAttrs:!1}]);var al={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,"",""]};al.optgroup=al.option,al.tbody=al.tfoot=al.colgroup=al.caption=al.thead,al.th=al.td;var sl=/<([\w:]+)/;function cl(e,t){var n,i,r,o,a,s,c,l=t.createDocumentFragment(),u=[];for(a=0,c=e.length;a<c;a++)if((o=e[a])||0===o)if("string"==typeof o){for(r=r||l.appendChild(t.createElement("div")),n=(sl.exec(o)||["",""])[1].toLowerCase(),dl(r,(i=al[n]||al._default)[1]+o+i[2]),s=i[0];s--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ol(u,r.childNodes),(r=l.firstChild).textContent=""}else ol(u,o.nodeType?[o]:o);for(l.textContent="",o=u[a=0];o;)l.appendChild(o),o=u[++a];return l}var ll=rl,ul=rl;function dl(e,t,n){var i=rl(t,n);return Qc(i)?e.innerHTML=i:e[Hc]=i,i}function hl(e,t){if(!(this instanceof hl))return new hl(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}hl.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new zc,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(nl(e,this._options)||(n=e,e=il(e),ks("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var pl={ALLOWED_TAGS:Gc,FORMATTING_TAGS:jc,htmlEncode:Xc,htmlUnencode:Yc,log:ks,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="",a=n.length;return e&&e.forEach((function(e,t){o+=e,t<a&&(r=n[t],o+=r instanceof hl?r:Xc(r))})),ul(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=cl([e],t);else{if(!Jc(e))return e;n=cl(e,t)}return ol([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ll,reEncode:function(e){return Xc(Yc(e))},_redirector:Ps,redirect:function(e){const t=Ns(e);t===e&&Ps.redirect(t)},sanitizeHTML:ul,sanitizeUrl:Ns,setElementContent:dl,text:function(e){return ks("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Xc(e)},unsafe:function(e){return e},UnsafeString:hl};const fl=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class gl{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){let r=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e||!Object.values(fl).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 o=n?"".concat(n,"_toast-").concat(e):"toast-".concat(e),a=this._createToastEl(e,t,o,i);return this._addToast(a,r)}clearAllToasts(){let e=this._el.querySelectorAll(".toast");Array.from(e).forEach(e=>{this._removeToast(e)})}bindEvents(){this._el.addEventListener("click",e=>{const t=Qe(e.target,".toast__dismiss-btn");if(t){const e=Qe(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 a=r.querySelector(".toast__message");a.insertBefore(o,a.firstElementChild);r.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name","".concat(n,"_dismiss"));const s=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===fl.CAUTION?c="text-color-text-caution":e===fl.ERROR?c="text-color-text-negative":e===fl.SUCCESS&&(c="text-color-text-positive"),s.classList.add(c),function(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=De({},Bc);r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Fc.sanitize(t,r);e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes))}(s,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",pl.sanitizeUrl(et(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._el.appendChild(e);const n=this._el.querySelector(".toast__message");return this._hasToast()&&this._el.classList.remove("invisible"),this._refreshLazyLoader(),setTimeout((function(){e.classList.remove("toast--hidden"),t&&function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e instanceof HTMLElement)if(document.documentElement.classList.contains("ios")||t){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()}(n)}),this.TOAST_ADD_TIMEOUT),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()})}}Gs(gl,"TOAST_TYPES",fl),Gs(gl,"TOAST_ADD_TIMEOUT",500);const vl={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},ml=(Object.keys(vl).map(e=>vl[e]),Object.freeze({VERTICAL:"4:5",HORIZONTAL:"16:9",SQUARED:"1:1"}),[]);for(let e=0;e<256;++e)ml.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function yl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{endpoint:t,headers:n={"Content-Type":"application/json"},queryId:i,variables:r={}}=e,o=Me(e,Je);const a=it(document);if(!a)throw new Error("Missing pageKey for graphQL request from browser");return vt(t,De({method:"POST",headers:n,postData:JSON.stringify({queryId:i,variables:r,pageKey:a})},o))}class El{constructor(e,t){if(!e)throw Error("Missing endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}executeAction(e){let{variables:t,queryId:n,successCallback:i=(()=>{}),failureCallback:r=(()=>{})}=e;return yl({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return i(JSON.parse(t).graphQL)}).catch(r)}}class bl extends El{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:bl.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})}}Gs(bl,"query","2849bb08e3a3bbd23c96c0e758c018b7");class wl extends El{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:wl.query,variables:{url:e},successCallback:t,failureCallback:n})}}Gs(wl,"query","bece320b5f70fe4357082fe84eca6c56");class _l extends Is{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:i=!0,pushState:r=!0,shouldMoveToTopContainer:o=!0,focusElement:a,pageKey:s}=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:a,pageKey:s}),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);it(document);const Tl=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,Sl=/(.)\1{3}/,Cl=/linkedin/i,Il=/\d\d/,kl=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]+)?(/.*)?"),Al=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,xl=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,Ol=/^[ぁ-ゔゞ゛゜ー]*$/,Ll=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,Rl=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length<=e};return t.errorMessagePrefix="i18n_tooLong_",t},Nl=e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.length>=e};return t.errorMessagePrefix="i18n_tooShort_",t},Pl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Il.test(e)};Pl.errorMessagePrefix="i18n_noConsecutiveDigits_";const Dl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Tl.test(e)};Dl.errorMessagePrefix="i18n_noForbiddenCharacters_";const Ml=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Sl.test(e)};Ml.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const Ul=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Cl.test(e)};Ul.errorMessagePrefix="i18n_noLinkedIn_";const Fl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!kl.test(e)};Fl.errorMessagePrefix="i18n_noUrl_";const Bl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return xl.test(e)};Bl.errorMessagePrefix="i18n_onlyChinese_";const ql=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ol.test(e)};ql.errorMessagePrefix="i18n_onlyPhonetic_";const Hl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};Hl.errorMessagePrefix="i18n_required_";const jl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Al.test(e)};jl.errorMessagePrefix="i18n_invalidFormat_";const Gl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ll.test(e)};Gl.errorMessagePrefix="i18n_invalidFormat_";const Wl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Al.test(e)||Ll.test(e)};Wl.errorMessagePrefix="i18n_invalidFormat_";const zl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};zl.errorMessagePrefix="i18n_required_";const Kl=[Rl(50),Dl,Pl,Ml,Ul,Fl];[Hl].concat(Kl),Rl(50),Rl(4),Nl(2),Rl(128),Rl(128),Rl(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(jl),Nl(6),Rl(200);!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}();var Vl={exports:{}};function Xl(e){this.message=e}Xl.prototype=new Error,Xl.prototype.name="InvalidCharacterError";var Yl="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Xl("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a};var Jl=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(Yl(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 Yl(t)}};function Ql(e){this.message=e}Ql.prototype=new Error,Ql.prototype.name="InvalidTokenError",Vl.exports=function(e,t){if("string"!=typeof e)throw new Ql("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Jl(e.split(".")[n]))}catch(e){throw new Ql("Invalid token specified: "+e.message)}},Vl.exports.InvalidTokenError=Ql;const $l="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var Zl;!function(e){e.ProductName="productName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides",e.ClientSensorGroupName="clientSensorGroupName",e.EnablePerformanceMeasurement="enablePerformanceMeasurement",e.CustomTrackingId="customTrackingId",e.DisableAvailabilityCalculation="disableAvailabilityCalculation",e.EnableSessionRecording="enableSessionRecording"}(Zl||(Zl={}));const eu=new Set(Object.values(Zl));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($l,"."));if(nu(e))throw new tu("Keys should not be blank. ".concat($l,"."));if(/[^a-z0-9-]/.test(e))throw new tu("'".concat(e,"' can only contain lowercase alphanumeric characters and dashes (-). ").concat($l,"."));return e}class ru{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=iu(e),this._defaultDegradationKey=iu(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new tu("DegradationTrackingMetadata options should be an object. ".concat($l,"."));const a=n.productName;a&&(this._productName=function(e){if("string"!=typeof e)throw new tu("The product name must be a string. ".concat($l,"."));if(nu(e))throw new tu("No product name was specified. Please configure a defaultProductName or specify it per instrumented API "+"call. ".concat($l,"."));if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new tu("Product name '".concat(e,"' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ").concat($l,"."));return e}(a));const s=n.additionalDegradedResponseCodes,c=n.nonDegradedResponseCodes;!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($l,"."));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===Zl.NonDegradedResponseCodes&&e>=400&&e<500)throw new tu("For server responses that have a status code, PEM does not consider 4xx as degraded. ".concat(e," is not ")+"considered a degradation unless you explicitly add it to the ".concat(Zl.AdditionalDegradedResponseCodes," option")+". Please remove ".concat(e," from the ").concat(Zl.NonDegradedResponseCodes," option. ")+"".concat($l,"."))};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(Zl.NonDegradedResponseCodes," option. ")+"".concat($l,"."));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(Zl.AdditionalDegradedResponseCodes," option. ").concat($l,"."));null==e||e.forEach(e=>n(e,Zl.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,Zl.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new tu("Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes "+"don't have any overlapping response codes. ".concat($l,"."))}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(i=n.enablePerformanceMeasurement)&&void 0!==i&&i,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(r=n.disableAvailabilityCalculation)&&void 0!==r&&r,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,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($l))})}(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 defaultDegradationKey(){return this._defaultDegradationKey}get degradationKey(){return this._defaultDegradationKey}get productName(){return this._productName}get additionalDegradedResponseCodes(){return this._additionalDegradedResponseCodes}get nonDegradedResponseCodes(){return this._nonDegradedResponseCodes}get degradationKeyOverrides(){return this._degradationKeyOverrides}get clientSensorGroupName(){return this._clientSensorGroupName}get shouldEnablePerformanceMeasurement(){return this._shouldEnablePerformanceMeasurement}get customTrackingId(){return this._customTrackingId}get shouldDisableAvailabilityCalculation(){return this._shouldDisableAvailabilityCalculation}get shouldRecordSession(){return this._shouldRecordSession}}var ou=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},au=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),su=function(){function e(){ou(this,e),this.EventType={};this.EventType[this.EventType.DomContentLoaded=0]="DomContentLoaded";this.EventType[this.EventType.Load=1]="Load";this.EventType[this.EventType.FullSnapshot=2]="FullSnapshot";this.EventType[this.EventType.IncrementalSnapshot=3]="IncrementalSnapshot";this.EventType[this.EventType.Meta=4]="Meta";this.EventType[this.EventType.Global=5]="Global",this.IncrementalSource={};this.IncrementalSource[this.IncrementalSource.MouseMove=1]="MouseMove";this.IncrementalSource[this.IncrementalSource.MouseInteraction=2]="MouseInteraction";this.IncrementalSource[this.IncrementalSource.Scroll=3]="Scroll";this.IncrementalSource[this.IncrementalSource.ViewportResize=4]="ViewportResize";this.IncrementalSource[this.IncrementalSource.Input=5]="Input";this.IncrementalSource[this.IncrementalSource.TouchMove=6]="TouchMove",this.MouseInteractions={};this.MouseInteractions[this.MouseInteractions.MouseUp=0]="MouseUp";this.MouseInteractions[this.MouseInteractions.MouseDown=1]="MouseDown";this.MouseInteractions[this.MouseInteractions.Click=2]="Click";this.MouseInteractions[this.MouseInteractions.ContextMenu=3]="ContextMenu";this.MouseInteractions[this.MouseInteractions.DblClick=4]="DblClick";this.MouseInteractions[this.MouseInteractions.Focus=5]="Focus";this.MouseInteractions[this.MouseInteractions.Blur=6]="Blur";this.MouseInteractions[this.MouseInteractions.TouchStart=7]="TouchStart";this.MouseInteractions[this.MouseInteractions.touchEnd=8]="touchEnd",this.isCtrlDown=!1}return au(e,[{key:"_assign",value:function(){var e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};return e.apply(this,arguments)}},{key:"_spread",value:function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(arguments[t]);return e}},{key:"hookSetter",value:function(e,t,n,i){var r=Object.getOwnPropertyDescriptor(e,t),o=this;return Object.defineProperty(e,t,i?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),r&&r.set&&r.set.call(t,e)}}),function(){return o.hookSetter(e,t,r||{},!0)}}},{key:"on",value:function(e,t,n){null==n&&(n=document);var i={capture:!0,passive:!0};return n.addEventListener(e,t,i),function(){return n.removeEventListener(e,t,i)}}},{key:"throttle",value:function(e,t,n){null==n&&(n={});var i=null,r=0;return function(o){var a=Date.now();r||!1!==n.leading||(r=a);var s=t-(a-r),c=this,l=arguments;s<=0||s>t?(i&&(window.clearTimeout(i),i=null),r=a,e.apply(c,l)):i||!1===n.trailing||(i=window.setTimeout((function(){r=!1===n.leading?0:Date.now(),i=null,e.apply(c,l)}),s))}}},{key:"getWindowHeight",value:function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}},{key:"getWindowWidth",value:function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}},{key:"isTouchEvent",value:function(e){return Boolean(e.changedTouches)}},{key:"polyfill",value:function(){"NodeList"in window&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach)}},{key:"convertObjectChildrenToString",value:function(e){var t={};return e&&Object.keys(e).forEach((function(n){try{e[n]&&(t[n]=e[n].toString())}catch(e){}})),t}},{key:"initKeyboardObserver",value:function(e){var t=this;function n(e){(void 0===e.key||"meta"!==e.key.toLowerCase()&&"control"!==e.key.toLowerCase())&&(void 0===e.keyCode||91!==e.keyCode&&17!==e.keyCode)||(t.isCtrlDown=!1)}function i(n){var i=!1,r=!1,o=!1;if(t.isCtrlDown)if(void 0!==n.key){var a=n.key.toLowerCase();"x"===a&&(i=!0),"c"===a?r=!0:"v"===a&&(o=!0)}else void 0!==n.keyCode&&(88===keyPressed&&(i=!0),67===keyPressed?r=!0:86===keyPressed&&(o=!0));else(void 0===n.key||"meta"!==n.key.toLowerCase()&&"control"!==n.key.toLowerCase())&&(void 0===n.keyCode||91!==n.keyCode&&17!==n.keyCode)||(t.isCtrlDown=!0);var s=n.target.classList;void 0===s&&(s={}),s=JSON.parse(JSON.stringify(s)),e({inputClassList:s,isCut:i,isCopy:r,isPaste:o})}var r=["keydown","keyup"].map((function(e){return"keydown"===e?t.on(e,i):t.on(e,n)})),o=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),a=[[HTMLInputElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return o&&o.set&&r.push.apply(r,t._spread(a.map((function(e){return t.hookSetter(e[0],e[1],{set:function(){eventHandler({target:this})}})})))),function(){r.forEach((function(e){return e()}))}}},{key:"initMoveObserver",value:function(e,t){var n=[],i=void 0,r=this,o=r.throttle((function(t){var o=Date.now()-i;e(n.map((function(e){return e.timeOffset-=o,e})),t?r.IncrementalSource.TouchMove:r.IncrementalSource.MouseMove),n=[],i=null}),500),a=r.throttle((function(e){var t=r.isTouchEvent(e)?e.changedTouches[0]:e,a=t.clientX,s=t.clientY;i||(i=Date.now()),n.push({x:a,y:s,timeOffset:Date.now()-i}),o(r.isTouchEvent(e))}),t,{trailing:!1}),s=[r.on("mousemove",a),r.on("touchmove",a)];return function(){s.forEach((function(e){return e()}))}}},{key:"initMouseInteractionObserver",value:function(e){var t=this,n=[];return Object.keys(t.MouseInteractions).filter((function(e){return Number.isNaN(Number(e))&&!e.endsWith("_Departed")})).forEach((function(i){var r=i.toLowerCase(),o=function(n){return function(i){var r=t.isTouchEvent(i)?i.changedTouches[0]:i,o=r.clientX,a=r.clientY;e({type:t.MouseInteractions[n],x:o,y:a})}}(i);n.push(t.on(r,o))})),function(){n.forEach((function(e){return e()}))}}},{key:"initScrollObserver",value:function(e){var t=this.throttle((function(t){if(t.target)if(t.target===document){var n=document.scrollingElement||document.documentElement;e({x:n.scrollLeft,y:n.scrollTop})}else e({x:t.target.scrollLeft,y:t.target.scrollTop})}),100);return this.on("scroll",t)}},{key:"initViewportResizeObserver",value:function(e){var t=this,n=t.throttle((function(){var n=t.getWindowHeight(),i=t.getWindowWidth();e({width:Number(i),height:Number(n)})}),200);return this.on("resize",n,window)}},{key:"mergeHooks",value:function(e,t){var n=this,i=e.mousemoveCb,r=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb;e.mousemoveCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mousemove&&t.mousemove.apply(t,n._spread(e)),i.apply(null,n._spread(e))},e.mouseInteractionCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.mouseInteraction&&t.mouseInteraction.apply(t,n._spread(e)),r.apply(null,n._spread(e))},e.scrollCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.scroll&&t.scroll.apply(t,n._spread(e)),o.apply(null,n._spread(e))},e.viewportResizeCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.viewportResize&&t.viewportResize.apply(t,n._spread(e)),a.apply(null,n._spread(e))},e.inputCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.input&&t.input.apply(t,n._spread(e)),s.apply(null,n._spread(e))}}},{key:"initObservers",value:function(e,t){null==t&&(t={}),this.mergeHooks(e,t);var n=this.initMoveObserver(e.mousemoveCb,e.mousemoveWait),i=this.initMouseInteractionObserver(e.mouseInteractionCb),r=this.initScrollObserver(e.scrollCb),o=this.initViewportResizeObserver(e.viewportResizeCb),a=this.initKeyboardObserver(e.keyboardCb);return function(){n(),i(),r(),o(),a()}}},{key:"wrapEvent",value:function(e){return this._assign(this._assign({},e),{timestamp:Date.now()})}},{key:"record",value:function(e){null==e&&(e={});var t=e.emit,n=e.checkoutEveryNms,i=e.hooks,r=50;if(void 0!==e.mousemoveWait&&(r=e.mousemoveWait),!t)throw new Error("emit function is required");this.polyfill();var o=void 0,a=this;function s(e,i){if(t(e,i),e.type===a.EventType.FullSnapshot)o=e;else if(e.type===a.EventType.IncrementalSnapshot){n&&e.timestamp-o.timestamp>n&&c(!0)}}function c(e){null==e&&(e=!1),s(a.wrapEvent({type:a.EventType.Meta,data:{href:window.location.href,width:a.getWindowWidth(),height:a.getWindowHeight()}}),e),s(a.wrapEvent({type:a.EventType.FullSnapshot,data:{node:{type:"Document"},initialOffset:{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}})),s(a.wrapEvent({type:a.EventType.Global,data:{globalValues:a.convertObjectChildrenToString(window)}}))}try{var l=[];l.push(a.on("DOMContentLoaded",(function(){s(a.wrapEvent({type:a.EventType.DomContentLoaded,data:{}}))})));var u=function(){c(),l.push(a.initObservers({mousemoveCb:function(e,t){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:{source:t,positions:e}}))},mouseInteractionCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.MouseInteraction},e)}))},scrollCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Scroll},e)}))},viewportResizeCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.ViewportResize},e)}))},keyboardCb:function(e){return s(a.wrapEvent({type:a.EventType.IncrementalSnapshot,data:a._assign({source:a.IncrementalSource.Input},e)}))},mousemoveWait:r},i))};return"interactive"===document.readyState||"complete"===document.readyState?u():l.push(a.on("load",(function(){s(a.wrapEvent({type:a.EventType.Load,data:{}})),u()}),window)),function(){l.forEach((function(e){return e()}))}}catch(e){console.log(e)}}}]),e}(),cu=function(){function e(){ou(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return au(e,[{key:"getBaseValue",value:function(e,t){if(!this.t[e]){this.t[e]={};for(var n=0;n<e.length;n++)this.t[e][e.charAt(n)]=n}return this.t[e][t]}},{key:"compressToBase64",value:function(e){if(null===e)return"";var t=this,n=this._compress(e,6,(function(e){return t.n.charAt(e)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}}},{key:"decompressFromBase64",value:function(e){if(null===e)return"";if(""===e)return null;var t=this;return this._decompress(e.length,32,(function(n){return t.getBaseValue(t.n,e.charAt(n))}))}},{key:"compress",value:function(e){var t=this;return this._compress(e,16,(function(e){return t.f(e)}))}},{key:"_compress",value:function(e,t,n){if(null===e)return"";var i,r,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],g=0,v=0;for(o=0;o<e.length;o+=1)if(c=e.charAt(o),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=h++,s[c]=!0),l=u+c,Object.prototype.hasOwnProperty.call(a,l))u=l;else{if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++),a[l]=h++,u=String(c)}if(""!==u){if(Object.prototype.hasOwnProperty.call(s,u)){if(u.charCodeAt(0)<256){for(i=0;i<p;i++)g<<=1,v===t-1?(v=0,f.push(n(g)),g=0):v++;for(r=u.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r=0;for(r=u.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(r=a[u],i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;0===--d&&(d=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,v===t-1?(v=0,f.push(n(g)),g=0):v++,r>>=1;for(;;){if(g<<=1,v===t-1){f.push(n(g));break}v++}return f.join("")}},{key:"decompress",value:function(e){return null===e?"":""===e?null:this._decompress(e.length,32768,(function(t){return e.charCodeAt(t)}))}},{key:"_decompress",value:function(e,t,n){var i=[],r=4,o=4,a=3,s="",c=[],l=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0,v={val:n(0),position:t,index:1};for(l=0;l<3;l+=1)i[l]=l;for(d=0,p=Math.pow(2,2),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;g=this.f(d);break;case 2:return""}for(i[3]=g,u=g,c.push(g);;){if(v.index>e)return"";for(d=0,p=Math.pow(2,a),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;switch(g=d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=v.val&v.position,v.position>>=1,0===v.position&&(v.position=t,v.val=n(v.index++)),d|=(h>0?1:0)*f,f<<=1;i[o++]=this.f(d),g=o-1,r--;break;case 2:return c.join("")}if(0===r&&(r=Math.pow(2,a),a++),i[g])s=i[g];else{if(g!==o)return null;s=u+u.charAt(0)}c.push(s),i[o++]=u+s.charAt(0),u=s,0===--r&&(r=Math.pow(2,a),a++)}}}]),e}(),lu=function(){function e(){ou(this,e),this.PREFIX="dcts-",this.CPR=new cu}return au(e,[{key:"compressAndSplitEvent",value:function(e){if(null==e)return[];var t=this.CPR.compressToBase64(JSON.stringify(e)),n=Math.floor(t.length/3)+1;return t.match(new RegExp(".{1,"+n+"}","g"))}},{key:"processTelemetry",value:function(e,t,n){var i=this.compressAndSplitEvent(e);if(null!=i){for(var r={},o=0;o<i.length;o++)r[this.PREFIX+o]=i[o];return r["x-f-uc"]=t,r.csrf_token=n,JSON.stringify(r)}return null}},{key:"getParamPrefix",value:function(){return this.PREFIX}}]),e}(),uu=(function(){function e(){ou(this,e),this.processor=new lu,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new su,this.workerThread=null,this.events=[]}au(e,[{key:"init",value:function(e,t,n,i,r,o){var a=this;if(this.isExist(o)&&""!==o&&window.Worker){var s=this.convertWorkerUrl(o);null!==s&&(this.workerThread=new Worker(s),this.workerThread.onmessage=function(t){a.sendTelemetry(t.data,e)})}this.isExist(e)||(e=this.DEFAULT_URL);var c=0,l=6;null===i||isNaN(i)||(l=i);var u=this.timestone.record({emit:function(n,i){i&&a.events.length>0&&c<l?(a.collect(e,t,a.events,r),c+=1,a.events.splice(0,a.events.length)):c>=l&&(u(),a.isExist(a.workerThread)&&a.workerThread.terminate()),a.events.push(n)},checkoutEveryNms:n})}},{key:"collect",value:function(e,t,n,i){if(this.isExist(i)||(i=""),this.isExist(t)||(t="undefined-uc"),this.isExist(this.workerThread))this.workerThread.postMessage({events:n,useCase:t,csrfToken:i});else{var r=this.processor.processTelemetry(n,t,i);null!==r&&this.sendTelemetry(r,e)}}},{key:"collectFinalTelemetry",value:function(e,t,n){if(this.isExist(e)||(e=this.DEFAULT_URL),this.isExist(n)||(n=""),this.isExist(t)||(t="undefined-uc"),this.events.length>0)if(navigator.sendBeacon&&this.isExist(FormData)){var i=new FormData;i.append("x-f-uc",t),i.append("csrf_token",n);for(var r=this.processor.compressAndSplitEvent(this.events),o=0;o<r.length;o++)i.append(this.processor.getParamPrefix()+o,r[o]);navigator.sendBeacon(e,i)}else this.collect(e,t,this.events,"")}},{key:"sendTelemetry",value:function(e,t){var n=new XMLHttpRequest;n.open("POST",t),n.setRequestHeader("Content-Type","application/json"),n.send(e)}},{key:"isExist",value:function(e){return null!=e}},{key:"convertWorkerUrl",value:function(e){var t="https://"+window.location.host;if(0===e.indexOf(t)||0===e.indexOf("/"))return e;if(-1===e.indexOf(t)){var n=e.split(".com/");if(2===n.length)return"/"+n[1]}return null}}])}(),window||e);function du(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hu,pu="MEMBER";du(hu={},"GUEST","li_gc"),du(hu,pu,"li_mc");uu.utag_data||(uu.utag_data={});const fu="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;uu.utag_cfg_ovrd=uu.utag_cfg_ovrd||{},uu.trackingEventDebugData=uu.trackingEventDebugData||[],uu.utag_cfg_ovrd.noview=!0,uu.utag_cfg_ovrd.nocookie=!0;fu&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(uu.navigator.userAgent);function gu(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}}var vu,mu=(vu=function(e,t){return(vu=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}vu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),yu=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}(),Eu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mu(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(yu),bu=(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}mu(t,e),t.prototype.removePredicate=function(e,t){return t===e}}(yu),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return mu(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}(yu)),wu=function(){return 0},_u=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Tu=_u&&!!window.requestAnimationFrame,Su={hasDOM:_u,hasRAF:Tu,getScrollTop:wu,getScrollLeft:wu,getHeight:wu,getWidth:wu,rAF:Tu?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:wu,get isDirty(){return Su.version!==Su.lastVersion},document:window.document,IntersectionObserver:_u&&window.IntersectionObserver,performance:_u&&window.performance};function Cu(){++Su.version}function Iu(){var e=null!=document.scrollingElement;Su.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Su.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}_u&&(Su.getHeight=function(){return window.innerHeight},Su.getWidth=function(){return window.innerWidth},Su.updateMeta=function(){Su.meta.height=Su.getHeight(),Su.meta.width=Su.getWidth(),Su.meta.scrollLeft=Su.getScrollLeft(),Su.meta.scrollTop=Su.getScrollTop(),Su.lastVersion=Su.version},Su.updateMeta(),"loading"!==document.readyState?Iu():document.addEventListener("DOMContentLoaded",Iu),window.addEventListener("resize",Cu,!1),window.addEventListener("scroll",Cu,!1));var ku=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,Su.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}(),Au=null;var xu,Ou=(xu=function(e,t){return(xu=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}xu(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Lu="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Ru=0,Nu=function(){function e(e,t,n,i,r,o,a,s,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=i,this.width=r,this.height=o,this.x=a,this.y=s,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 Su.isDirty&&Su.updateMeta(),e===window||e===document?(n.height=Su.meta.height,n.width=Su.meta.width,n.scrollLeft=Su.meta.scrollLeft,n.scrollTop=Su.meta.scrollTop,n):(t=gu(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 Pu(){return Ru+++Lu}var Du=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Au||(Au=new ku)),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(Nu.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=gu(e),i=Nu.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}();(function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}Ou(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)}})(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new Eu,t}return Ou(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=Pu();return this.queue.push({callback:e,id:t}),t},t}(Du)),function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=Su.version,r.queue=new bu,r.ALLOW_CACHED_SCHEDULER=i,r}Ou(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Su.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,a=n.clientRect;!this.isDirty&&a&&this.ALLOW_CACHED_SCHEDULER||(a=this.queue.items[t].clientRect=gu(r)),i(e,o,a)}this.lastVersion=Su.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Pu();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n}}(Du);Su.hasDOM&&(window.addEventListener("beforeunload",(function(){})),document.addEventListener("visibilitychange",(function(){})));var Mu={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 a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}function s(e){return(s=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,s(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=s(e);if(l()){var i=s(this).constructor;t=Reflect.construct(n,arguments,i)}else t=n.apply(this,arguments);return p(this,t)}}function g(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function v(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function m(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}(function(){if("function"==typeof window.CustomEvent)return!1;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 y="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",E={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},b={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},w={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},_={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},T={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"}},S={DISMISSED:"DISMISSED",INITIALIZED:"INITIALIZED",SNAPPLE_USER_FETCHED:"SNAPPLE_USER_FETCHED"},C={signin:{GOT:"signin",GSI_BUTTON:"signin_with"},signup:{GOT:"signup",GSI_BUTTON:"signup_with"},use:{GOT:"use",GSI_BUTTON:"continue_with"}},I=E.GOOGLE_ERROR,k=E.GOOGLE_USER_FETCHED,A=E.INITIALIZED,x=b.INITIALIZATION,O=b.AUTHENTICATION,L=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,a=e.el,s=e.clientId,c=void 0===s?y:s;if(t(this,r),i=n.call(this),!a)throw TypeError("DOM element for Sign In button is required");if(i.libSrcPath=o,i.el=a,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.");g((function(){v(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(A);e.dispatchEvent(n)})).catch((function(t){var n={type:x,message:t.error},i=new CustomEvent(I,{detail:n});e.dispatchEvent(i)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(k,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:O,message:t.error},i=new CustomEvent(I,{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));function R(e,t){return e?t.getDismissedReason():t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()}var N=E.GOOGLE_USER_FETCHED,P=E.PROMPT_MOMENT,D=E.GOOGLE_ERROR,M=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.autoSelect,a=void 0!==o&&o,s=e.libSrcPath,c=e.containerId,l=e.context,u=e.clientId,d=void 0===u?y:u,p=e.cancelOnTapOutside,f=void 0===p||p,E=e.itpSupport,b=e.useFedCM,w=void 0!==b&&b;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=a,i.libSrcPath=s,i.containerId=c,i.cancelOnTapOutside=f,i.clientId=d,i.context=l,i.itpSupport=E,i.useFedCM=w,i.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!s)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(s,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(r,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this._initGoogleApi(),this.isInitialized.then((function(){var t=new CustomEvent(E.INITIALIZED);e.dispatchEvent(t),e.promptOneTap()})).catch((function(t){var n=new CustomEvent(D,{detail:{type:b.INITIALIZATION,error:t}});e.dispatchEvent(n)}))}},{key:"_initGoogleApi",value:function(){var e={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,use_fedcm_for_prompt:this.useFedCM};void 0!==this.itpSupport&&(e.itp_support=this.itpSupport);try{window.google.accounts.id.initialize(e)}catch(e){this.isInitialized.reject(e)}this.isInitialized.resolve()}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=this.context===w.SIGN_UP?this._getBasicProfile(t):{idToken:t};if(n){n.selectedBy=e.select_by;var i=new CustomEvent(N,{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:T.SKIPPED.ISSUING_FAILED,type:_.SKIPPED},n=new CustomEvent(P,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:R(e.useFedCM,t)},i=new CustomEvent(P,{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)),U={exports:{}};function F(e){this.message=e}F.prototype=new Error,F.prototype.name="InvalidCharacterError";var B="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new F("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,a="";i=t.charAt(o++);~i&&(n=r%4?64*n+i:i,r++%4)?a+=String.fromCharCode(255&n>>(-2*r&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return a},q=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(B(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 B(t)}};function H(e){this.message=e}H.prototype=new Error,H.prototype.name="InvalidTokenError",U.exports=function(e,t){if("string"!=typeof e)throw new H("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(q(e.split(".")[n]))}catch(e){throw new H("Invalid token specified: "+e.message)}},U.exports.InvalidTokenError=H;var j=U.exports,G=E.GOOGLE_USER_FETCHED,W=E.PROMPT_MOMENT,z=E.GOOGLE_ERROR,K=function(e){a(s,e);var n=f(s);function s(e){var i,r=e.autoSelect,o=void 0!==r&&r,a=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?y:u,p=e.context,f=void 0===p?"signin":p,E=e.gsiButtonConfig,b=void 0===E?{}:E,w=e.libSrcPath,_=e.hasContentAbove,T=void 0!==_&&_,S=e.promptParentId,C=e.showOneTap,I=void 0===C||C,k=e.itpSupport,A=e.useFedCM,x=void 0!==A&&A;if(t(this,s),(i=n.call(this)).autoSelect=o,i.buttonParentEl=a,i.cancelOnTapOutside=l,i.clientId=d,i.context=f,i.gsiButtonConfig=b,i.libSrcPath=w,i.hasContentAbove=T,i.promptParentId=S,i.showOneTap=I,i.itpSupport=k,i.useFedCM=x,i.isLibraryLoaded=m(),i.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)i._onGoogleApiLoad();else{if(!w)throw TypeError("GSI library is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(w,i._onGoogleApiLoad.bind(h(i)))}))}return i}return i(s,[{key:"_onGoogleApiLoad",value:function(){var e=this;return this.isLibraryLoaded.resolve(),this._initGoogleApi(),this.isInitialized.then((function(){var t=new CustomEvent(E.INITIALIZED);e.dispatchEvent(t),e.showGsiUI()})).catch((function(t){var n=new CustomEvent(z,{detail:{type:b.INITIALIZATION,error:t}});e.dispatchEvent(n)}))}},{key:"_initGoogleApi",value:function(){var e={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:C[this.context].GOT,use_fedcm_for_prompt:this.useFedCM};void 0!==this.itpSupport&&(e.itp_support=this.itpSupport);try{window.google.accounts.id.initialize(e)}catch(e){this.isInitialized.reject(e)}this.isInitialized.resolve()}},{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,a=void 0===o?"center":o,s=t.shape,c=void 0===s?"pill":s,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=t.type,f=t.width,g=void 0===f?"400px":f;return this.isInitialized.then((function(){var t=d||C[n.context].GSI_BUTTON;window.google.accounts.id.renderButton(e,{locale:r,logo_alignment:a,shape:c,size:u,text:t,theme:h,type:p,width:g})}))}},{key:"promptOneTap",value:function(){var e=this;return this.isInitialized.then((function(){window.google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:R(e.useFedCM,t)},i=new CustomEvent(W,{detail:n});e.dispatchEvent(i),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,i=j(t),a=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(a){var s=new CustomEvent(G,{detail:a});this.dispatchEvent(s)}}},{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")}}}]),s}(d(EventTarget)),V={PROD:"3fa91358-6f74-4525-b5df-da149652be36",LOCAL:"e5078fe9-f96f-4177-a256-a13b9bda6b1c"},X={MICROSOFT_ERROR:"microsoftError",USER_FETCHED:"microsoftUserFetched",PROMPT_MOMENT:"promptMomentNotification"},Y={signin:{MS_OT:"signin",MS_BUTTON:"signin_with"},signup:{MS_OT:"signup",MS_BUTTON:"signup_with"},use:{MS_OT:"use",MS_BUTTON:"continue_with"}},J=X.MICROSOFT_ERROR,Q=X.PROMPT_MOMENT,$=X.USER_FETCHED,Z=function(e){a(r,e);var n=f(r);function r(e){var i,o,a,s=e.buttonParentEl,c=e.cancelOnTapOutside,l=void 0===c||c,u=e.clientId,d=void 0===u?V.PROD:u,p=e.context,f=void 0===p?"use":p,y=e.globalWindow,E=void 0===y?window:y,b=e.libSrcPath,w=e.locale,_=e.malButtonConfig,T=void 0===_?{}:_,S=e.oneTapPosition,C=void 0===S?"right":S,I=e.redirectState,k=e.redirectURI,A=e.showOneTap,x=void 0!==A&&A;if(t(this,r),(a=n.call(this)).buttonParentEl=s,a.cancelOnTapOutside=l,a.clientId=d,a.context=f,a.libSrcPath=b,a.locale=(w||"en-US").replace("_","-"),a.malButtonConfig=T,a.oneTapPosition=C,a.redirectState=I,a.window=E,a.redirectURI=k||a._getRedirectURI(),a.showOneTap=x,a.isLibraryLoaded=m(),null===(i=a.window.ms)||void 0===i||null===(o=i.auth)||void 0===o?void 0:o.initialize)a._onMicrosoftAuthLibLoad();else{if(!b)throw TypeError("MAL lib is not already loaded on the page. libSrcPath is required to load the library");g((function(){v(b,a._onMicrosoftAuthLibLoad.bind(h(a)))}))}return a}return i(r,[{key:"_getRedirectURI",value:function(){var e,t,n;return(null===(e=this.window)||void 0===e||null===(t=e.location)||void 0===t||null===(n=t.origin)||void 0===n?void 0:n.includes("linkedin.com"))?"https://www.linkedin.com/microsoft-login/handler":"https://www.linkedin-ei.com/microsoft-login/handler"}},{key:"_onMicrosoftAuthLibLoad",value:function(){var e=this;this.isLibraryLoaded.resolve();var t=this.window.ms.auth.initialize({auto_prompt:this.showOneTap,client_id:this.clientId,callback:this._handleCredentialResponse.bind(this),cancel_on_tap_outside:this.cancelOnTapOutside,context:this.context,locale:this.locale,redirect_state:this.redirectState,redirect_uri:this.redirectURI,ux_mode:"redirect"});if("success"===t.result)return Promise.resolve().then((function(){return e.showMALUI()}));console.error("MAL failed to init",t.result)}},{key:"showMALUI",value:function(){this.buttonParentEl&&this.renderMALButton(this.buttonParentEl,this.malButtonConfig),this.showOneTap&&this.promptMSOneTap()}},{key:"renderMALButton",value:function(e,t){var n=this,i=t.logo_alignment,r=void 0===i?"center":i,o=t.height,a=void 0===o?42:o,s=t.shape,c=void 0===s?"pill":s,l=t.size,u=void 0===l?"large":l,d=t.text,h=t.theme,p=void 0===h?"light":h,f=t.type,g=t.width,v=void 0===g?600:g;return this.isLibraryLoaded.then((function(){var t=d||Y[n.context].MS_BUTTON;n.window.ms.auth.renderSignInButton(e,{logo_alignment:r,height:a,shape:c,size:u,text:t,theme:p,type:f,width:v})}))}},{key:"promptMSOneTap",value:function(){var e=this;return this.isLibraryLoaded.then((function(){e.window.ms.auth.prompt(e.oneTapPosition,(function(t){var n={type:t.type,reason:t.reason},i=new CustomEvent(Q,{detail:n});e.dispatchEvent(i)}))}))}},{key:"_handleCredentialResponse",value:function(e,t){if(e){var n=e.authCode,i=e.email,r=e.givenName,o=e.surname,a=e.id,s=e.idToken,c=e.photoUrl,l=new CustomEvent($,{detail:{authCode:n,email:i,familyName:o,givenName:r,id:a,idToken:s,imageUrl:c}});this.dispatchEvent(l)}else if(t){var u=new CustomEvent(J,{detail:t});this.dispatchEvent(u)}}},{key:"hideOneTap",value:function(){this.window.ms.auth.cancel()}}]),r}(d(EventTarget)),ee=S.DISMISSED,te=S.INITIALIZED,ne=S.SNAPPLE_USER_FETCHED,ie=function(e){a(r,e);var n=f(r);function r(e){var i,o=e.libSrcPath,a=e.snappleCTA,s=e.clientId,c=void 0===s?"com.linkedin.LinkedIn.service":s,l=e.redirectURI;if(t(this,r),i=n.call(this),!a)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=a,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");g((function(){v(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(te);return this.dispatchEvent(e),Promise.resolve(this._attachEvents())}},{key:"_attachEvents",value:function(){var e=this;this.snappleCTA.addEventListener("click",(function(){return window.AppleID.auth.signIn().then((function(t){var n=new CustomEvent(ne,{detail:t});e.dispatchEvent(n)})).catch((function(t){var n=new CustomEvent(ee,{detail:{type:ee,message:t}});e.dispatchEvent(n)}))}))}},{key:"_getRedirectURL",value:function(e){var t=window.location.host.indexOf("linkedin.com")>-1;return this.redirectURI?e:t?"https://www.linkedin.com/redirect":"https://www.linkedin-ei.com/redirect"}}]),r}(d(EventTarget)),re={CLIENT_ID:y,EVENTS:E,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"},GSI_SELECT_BY:{AUTO:"auto",USER:"user",FEDCM:"fedcm",FECM_AUTO:"fecm_auto",USER_1TAP:"user_1tap",USER_2TAP:"user_2tap",BTN:"btn",BTN_CONFIRM:"btn_confirm",BTN_ADD_SESSION:"btn_add_session",BTN_CONFIRM_ADD_SESSION:"btn_confirm_add_session",ITP_ADD_SESSION:"itp_add_session"},GOT_CONTEXTS:w,GOT_PROMPT_MOMENT_REASONS:T,GOT_PROMPT_MOMENT_TYPES:_},oe={CLIENT_IDS:V,CONTEXTS:Y,EVENTS:X,PROMPT_MOMENT_TYPES:{DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},PROMPT_MOMENT_REASONS:{DISPLAY:{ANOTHER_PROMPT_RUNNING:"another_prompt_running",BROWSER_NOT_SUPPORTED:"browser_not_supported",IN_COOLDOWN_PERIOD:"in_cooldown_period",NON_MSA_PROFILE:"non_msa_profile",UNKNOWN:"unknown"},SKIPPED:{TAP_OUTSIDE:"tap_outside",UNKNOWN:"unknown",USER_CANCELLED:"user_canceled"},DISMISSED:{CANCEL_CALLED:"cancel_called",CREDENTIAL_RETURNED:"credential_returned",CREDENTIAL_OBTAINED_FAILED:"credential_obtained_failed",FLOW_RESTARTED:"flow_restarted"}}};e.GoogleGsi=K,e.GoogleOneTap=M,e.GoogleSignIn=L,e.GoogleSignInConstants=re,e.MicrosoftAuth=Z,e.MicrosoftSignInConstants=oe,e.SnappleAuth=ie,e.SnappleEvents=S,Object.defineProperty(e,"__esModule",{value:!0})})(Mu.exports);const{EVENTS:Uu,GOT_CONTEXTS:Fu,GOT_PROMPT_MOMENT_REASONS:Bu,GOT_PROMPT_MOMENT_TYPES:qu,GSI_ERROR_TYPES:Hu}=Mu.exports.GoogleSignInConstants,{EVENTS:ju,PROMPT_MOMENT_REASONS:Gu,PROMPT_MOMENT_TYPES:Wu}=(Bu.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,Bu.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,Bu.NOT_DISPLAYED.SUPPRESSED_BY_USER,Bu.SKIPPED.AUTO_CANCEL,Bu.SKIPPED.TAP_OUTSIDE,Bu.SKIPPED.USER_CANCEL,Object.freeze({GOOGLE_AUTH_INITIALIZED:"google-auth--initialized",GOOGLE_ONE_TAP_DISPLAYED:"google-one-tap--displayed",GOOGLE_ONE_TAP_ACCOUNT_SELECTED:"google-one-tap--account-selected",GOOGLE_ONE_TAP_USER_DISMISSED:"google-one-tap--user-dismissed",GOOGLE_SIGN_IN_ACCOUNT_SELECTED:"google-sign-in--account-selected"}),Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"}),Object.freeze({GOOGLE_AUTH_NO_SESSION:"GoogleAuthDisabledOrNoSessionError",GOOGLE_AUTH_MISC_ERROR:"GoogleAuthMiscError",GOOGLE_AUTH_INITIALIZATION_ERROR:"GoogleAuthLibraryInitializationError",GOOGLE_AUTH_AUTHENTICATION_ERROR:"GoogleAuthFetchUserInfoError",GOOGLE_AUTH_ONE_TAP_DISPLAYED:"GoogleAuthOneTapShown",GOOGLE_AUTH_ONE_TAP_ACCOUNT_SELECTED:"GoogleAuthOneTapAccountSelected",GOOGLE_AUTH_ONE_TAP_COOLDOWN:"GoogleAuthOneTapOnCooldown",GOOGLE_AUTH_BUTTON_ACCOUNT_SELECTED:"GoogleAuthButtonAccountSelected"}),Mu.exports.MicrosoftSignInConstants);Gu.DISPLAY.ANOTHER_PROMPT_RUNNING,Gu.DISPLAY.BROWSER_NOT_SUPPORTED,Gu.DISPLAY.IN_COOLDOWN_PERIOD,Gu.DISPLAY.NON_MSA_PROFILE,Gu.SKIPPED.TAP_OUTSIDE,Gu.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class zu{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:a,pageKey:s}=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 _l(this.modalEl,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,focusElement:a,pageKey:s}),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()}}let Ku;function Vu(){return Ku||(Ku=new gl),Ku}function Xu(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,a=e;let s={productName:t};return r?s=De(De({},s),{},{trackedResponseCodes:r}):o&&(s=De(De({},s),{},{untrackedResponseCodes:o})),new ru(a,i,s)}(t,i,e))}const Yu=document.querySelector("#full-page-header-back-button");window.onload=()=>{null==Yu||Yu.focus()};class Ju{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{Ju.instance||(Ju.instance=new Ju(localStorage)),Ju.instance}catch(e){}})(),function(){try{Ju.sessionInstance||(Ju.sessionInstance=new Ju(sessionStorage)),Ju.sessionInstance}catch(e){}}();class Qu extends El{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:Qu.query,variables:{postUrn:e},successCallback:t,failureCallback:n})}}Gs(Qu,"query","cb99e660f3455cad5185a1d9543e6bce");Ze.getInstance().addUnloadCallback(()=>{Us(document.querySelector("#discard-post-modal")),Us(document.querySelector("#visibility-settings-modal")),Us(document.querySelector("#max-images-prompt-modal")),Us(document.querySelector("#retry-upload-modal"))});Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});const $u={PRODUCT_NAME:"Lite-feed",routeMappingToDegradationConfig:{FEED_REPOST:{"publish-repost":[{degradationKey:"publish-repost-failed"}]}}};Xu({featureName:"publish-repost",productName:$u.PRODUCT_NAME,featureMappingToDegradationConfig:$u.routeMappingToDegradationConfig.FEED_REPOST}),Object.freeze({NEW_REPOST_SUCCESS_EVENT:"Repost:newRepost:success",NEW_REPOST_FAIL_EVENT:"Repost:newRepost:fail"});class Zu extends El{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:Zu.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Gs(Zu,"query","20f8e9934e7df62932fd167d87c19b27");var ed=function(){this.__data__=[],this.size=0};var td=function(e,t){return e===t||e!=e&&t!=t},nd=td;var id=function(e,t){for(var n=e.length;n--;)if(nd(e[n][0],t))return n;return-1},rd=id,od=Array.prototype.splice;var ad=id;var sd=id;var cd=id;var ld=ed,ud=function(e){var t=this.__data__,n=rd(t,e);return!(n<0)&&(n==t.length-1?t.pop():od.call(t,n,1),--this.size,!0)},dd=function(e){var t=this.__data__,n=ad(t,e);return n<0?void 0:t[n][1]},hd=function(e){return sd(this.__data__,e)>-1},pd=function(e,t){var n=this.__data__,i=cd(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function fd(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])}}fd.prototype.clear=ld,fd.prototype.delete=ud,fd.prototype.get=dd,fd.prototype.has=hd,fd.prototype.set=pd;var gd=fd,vd=gd;var md=function(){this.__data__=new vd,this.size=0};var yd=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Ed=function(e){return this.__data__.get(e)};var bd=function(e){return this.__data__.has(e)},wd="object"==typeof yt&&yt&&yt.Object===Object&&yt,_d=wd,Td="object"==typeof self&&self&&self.Object===Object&&self,Sd=_d||Td||Function("return this")(),Cd=Sd.Symbol,Id=Cd,kd=Object.prototype,Ad=kd.hasOwnProperty,xd=kd.toString,Od=Id?Id.toStringTag:void 0;var Ld=function(e){var t=Ad.call(e,Od),n=e[Od];try{e[Od]=void 0;var i=!0}catch(e){}var r=xd.call(e);return i&&(t?e[Od]=n:delete e[Od]),r},Rd=Object.prototype.toString;var Nd=Ld,Pd=function(e){return Rd.call(e)},Dd=Cd?Cd.toStringTag:void 0;var Md=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Dd&&Dd in Object(e)?Nd(e):Pd(e)};var Ud=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Fd=Md,Bd=Ud;var qd,Hd=function(e){if(!Bd(e))return!1;var t=Fd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},jd=Sd["__core-js_shared__"],Gd=(qd=/[^.]+$/.exec(jd&&jd.keys&&jd.keys.IE_PROTO||""))?"Symbol(src)_1."+qd:"";var Wd=function(e){return!!Gd&&Gd in e},zd=Function.prototype.toString;var Kd=Hd,Vd=Wd,Xd=Ud,Yd=function(e){if(null!=e){try{return zd.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Jd=/^\[object .+?Constructor\]$/,Qd=Function.prototype,$d=Object.prototype,Zd=Qd.toString,eh=$d.hasOwnProperty,th=RegExp("^"+Zd.call(eh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var nh=function(e){return!(!Xd(e)||Vd(e))&&(Kd(e)?th:Jd).test(Yd(e))},ih=function(e,t){return null==e?void 0:e[t]};var rh=function(e,t){var n=ih(e,t);return nh(n)?n:void 0},oh=rh(Sd,"Map"),ah=rh(Object,"create"),sh=ah;var ch=function(){this.__data__=sh?sh(null):{},this.size=0};var lh=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},uh=ah,dh=Object.prototype.hasOwnProperty;var hh=function(e){var t=this.__data__;if(uh){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return dh.call(t,e)?t[e]:void 0},ph=ah,fh=Object.prototype.hasOwnProperty;var gh=ah;var vh=ch,mh=lh,yh=hh,Eh=function(e){var t=this.__data__;return ph?void 0!==t[e]:fh.call(t,e)},bh=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=gh&&void 0===t?"__lodash_hash_undefined__":t,this};function wh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}wh.prototype.clear=vh,wh.prototype.delete=mh,wh.prototype.get=yh,wh.prototype.has=Eh,wh.prototype.set=bh;var _h=wh,Th=gd,Sh=oh;var Ch=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ih=function(e,t){var n=e.__data__;return Ch(t)?n["string"==typeof t?"string":"hash"]:n.map},kh=Ih;var Ah=Ih;var xh=Ih;var Oh=Ih;var Lh=function(){this.size=0,this.__data__={hash:new _h,map:new(Sh||Th),string:new _h}},Rh=function(e){var t=kh(this,e).delete(e);return this.size-=t?1:0,t},Nh=function(e){return Ah(this,e).get(e)},Ph=function(e){return xh(this,e).has(e)},Dh=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 Mh(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])}}Mh.prototype.clear=Lh,Mh.prototype.delete=Rh,Mh.prototype.get=Nh,Mh.prototype.has=Ph,Mh.prototype.set=Dh;var Uh=gd,Fh=oh,Bh=Mh;var qh=gd,Hh=md,jh=yd,Gh=Ed,Wh=bd,zh=function(e,t){var n=this.__data__;if(n instanceof Uh){var i=n.__data__;if(!Fh||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bh(i)}return n.set(e,t),this.size=n.size,this};function Kh(e){var t=this.__data__=new qh(e);this.size=t.size}Kh.prototype.clear=Hh,Kh.prototype.delete=jh,Kh.prototype.get=Gh,Kh.prototype.has=Wh,Kh.prototype.set=zh;var Vh=Kh,Xh=rh,Yh=function(){try{var e=Xh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Jh=Yh;var Qh=function(e,t,n){"__proto__"==t&&Jh?Jh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},$h=Qh,Zh=td;var ep=function(e,t,n){(void 0!==n&&!Zh(e[t],n)||void 0===n&&!(t in e))&&$h(e,t,n)};var tp=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(o[c],c,o))break}return t}}(),np={exports:{}};!function(e,t){var n=Sd,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=a?a(n):new e.constructor(n);return e.copy(i),i}}(np,np.exports);var ip=Sd.Uint8Array;var rp=function(e){var t=new e.constructor(e.byteLength);return new ip(t).set(new ip(e)),t};var op=function(e,t){var n=t?rp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var ap=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},sp=Ud,cp=Object.create,lp=function(){function e(){}return function(t){if(!sp(t))return{};if(cp)return cp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var up=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),dp=Object.prototype;var hp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||dp)},pp=lp,fp=up,gp=hp;var vp=function(e){return"function"!=typeof e.constructor||gp(e)?{}:pp(fp(e))};var mp=function(e){return null!=e&&"object"==typeof e},yp=Md,Ep=mp;var bp=function(e){return Ep(e)&&"[object Arguments]"==yp(e)},wp=mp,_p=Object.prototype,Tp=_p.hasOwnProperty,Sp=_p.propertyIsEnumerable,Cp=bp(function(){return arguments}())?bp:function(e){return wp(e)&&Tp.call(e,"callee")&&!Sp.call(e,"callee")},Ip=Array.isArray;var kp=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Ap=Hd,xp=kp;var Op=function(e){return null!=e&&xp(e.length)&&!Ap(e)},Lp=Op,Rp=mp;var Np=function(e){return Rp(e)&&Lp(e)},Pp={exports:{}};var Dp=function(){return!1};!function(e,t){var n=Sd,i=Dp,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,a=o&&o.exports===r?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||i;e.exports=s}(Pp,Pp.exports);var Mp=Md,Up=up,Fp=mp,Bp=Function.prototype,qp=Object.prototype,Hp=Bp.toString,jp=qp.hasOwnProperty,Gp=Hp.call(Object);var Wp=function(e){if(!Fp(e)||"[object Object]"!=Mp(e))return!1;var t=Up(e);if(null===t)return!0;var n=jp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Hp.call(n)==Gp},zp=Md,Kp=kp,Vp=mp,Xp={};Xp["[object Float32Array]"]=Xp["[object Float64Array]"]=Xp["[object Int8Array]"]=Xp["[object Int16Array]"]=Xp["[object Int32Array]"]=Xp["[object Uint8Array]"]=Xp["[object Uint8ClampedArray]"]=Xp["[object Uint16Array]"]=Xp["[object Uint32Array]"]=!0,Xp["[object Arguments]"]=Xp["[object Array]"]=Xp["[object ArrayBuffer]"]=Xp["[object Boolean]"]=Xp["[object DataView]"]=Xp["[object Date]"]=Xp["[object Error]"]=Xp["[object Function]"]=Xp["[object Map]"]=Xp["[object Number]"]=Xp["[object Object]"]=Xp["[object RegExp]"]=Xp["[object Set]"]=Xp["[object String]"]=Xp["[object WeakMap]"]=!1;var Yp=function(e){return Vp(e)&&Kp(e.length)&&!!Xp[zp(e)]};var Jp=function(e){return function(t){return e(t)}},Qp={exports:{}};!function(e,t){var n=wd,i=t&&!t.nodeType&&t,r=i&&e&&!e.nodeType&&e,o=r&&r.exports===i&&n.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(Qp,Qp.exports);var $p=Yp,Zp=Jp,ef=Qp.exports,tf=ef&&ef.isTypedArray,nf=tf?Zp(tf):$p;var rf=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},of=Qh,af=td,sf=Object.prototype.hasOwnProperty;var cf=function(e,t,n){var i=e[t];sf.call(e,t)&&af(i,n)&&(void 0!==n||t in e)||of(e,t,n)},lf=Qh;var uf=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=i?i(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),r?lf(n,s,c):cf(n,s,c)}return n};var df=/^(?:0|[1-9]\d*)$/;var hf=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&df.test(e))&&e>-1&&e%1==0&&e<t},pf=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},ff=Cp,gf=Ip,vf=Pp.exports,mf=hf,yf=nf,Ef=Object.prototype.hasOwnProperty;var bf=function(e,t){var n=gf(e),i=!n&&ff(e),r=!n&&!i&&vf(e),o=!n&&!i&&!r&&yf(e),a=n||i||r||o,s=a?pf(e.length,String):[],c=s.length;for(var l in e)!t&&!Ef.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||mf(l,c))||s.push(l);return s};var wf=Ud,_f=hp,Tf=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Sf=Object.prototype.hasOwnProperty;var Cf=bf,If=function(e){if(!wf(e))return Tf(e);var t=_f(e),n=[];for(var i in e)("constructor"!=i||!t&&Sf.call(e,i))&&n.push(i);return n},kf=Op;var Af=function(e){return kf(e)?Cf(e,!0):If(e)},xf=uf,Of=Af;var Lf=ep,Rf=np.exports,Nf=op,Pf=ap,Df=vp,Mf=Cp,Uf=Ip,Ff=Np,Bf=Pp.exports,qf=Hd,Hf=Ud,jf=Wp,Gf=nf,Wf=rf,zf=function(e){return xf(e,Of(e))};var Kf=Vh,Vf=ep,Xf=tp,Yf=function(e,t,n,i,r,o,a){var s=Wf(e,n),c=Wf(t,n),l=a.get(c);if(l)Lf(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Uf(c),p=!h&&Bf(c),f=!h&&!p&&Gf(c);u=c,h||p||f?Uf(s)?u=s:Ff(s)?u=Pf(s):p?(d=!1,u=Rf(c,!0)):f?(d=!1,u=Nf(c,!0)):u=[]:jf(c)||Mf(c)?(u=s,Mf(s)?u=zf(s):Hf(s)&&!qf(s)||(u=Df(c))):d=!1}d&&(a.set(c,u),r(u,c,i,o,a),a.delete(c)),Lf(e,n,u)}},Jf=Ud,Qf=Af,$f=rf;var Zf=function e(t,n,i,r,o){t!==n&&Xf(n,(function(a,s){if(o||(o=new Kf),Jf(a))Yf(t,n,s,i,e,r,o);else{var c=r?r($f(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),Vf(t,s,c)}}),Qf)};var eg=function(e){return e};var tg=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)},ng=Math.max;var ig=function(e,t,n){return t=ng(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=ng(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),tg(e,this,s)}};var rg=function(e){return function(){return e}},og=Yh,ag=og?function(e,t){return og(e,"toString",{configurable:!0,enumerable:!1,value:rg(t),writable:!0})}:eg,sg=Date.now;var cg=function(e){var t=0,n=0;return function(){var i=sg(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ag),lg=eg,ug=ig,dg=cg;var hg=td,pg=Op,fg=hf,gg=Ud;var vg=function(e,t){return dg(ug(e,t,lg),e+"")},mg=function(e,t,n){if(!gg(n))return!1;var i=typeof t;return!!("number"==i?pg(n)&&fg(t,n.length):"string"==i&&t in n)&&hg(n[t],e)};var yg=Zf;Eg=function(e,t,n){yg(e,t,n)},vg((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=Eg.length>3&&"function"==typeof r?(i--,r):void 0,o&&mg(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&Eg(e,a,n,r)}return e}));var Eg;document.querySelector(".upload-progress"),document.querySelector("#progressVal");class bg extends El{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:bg.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Gs(bg,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class wg extends El{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]:()=>{};return this.executeAction({queryId:wg.query,successCallback:e,failureCallback:t})}}Gs(wg,"query","da4a9ce2de842c1abe01ca37ea9271ee");const _g=/^\d{4,15}$/,Tg=/[-\s+().]/g,Sg=/^\S+@\S+\.\S+$/,Cg=/[,]|.*@.*@/,Ig="MinLength",kg="MaxLength",Ag="Regex",xg="Required",Og="RegexAllow",Lg=e=>e&&Sg.test(e)&&!Cg.test(e),Rg={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{errorCode:"Email",validate:Lg},WORK_EMAIL:{errorCode:"WorkEmail",validate:e=>Lg(e)&&!["gmail","hotmail","yahoo","qq","outlook","aol","mail","icloud","163"].some(t=>e.includes("@".concat(t,".")))},PHONE_NUMBER:{errorCode:"PhoneNumber",validate(e){const t=e.replace(Tg,"");return!(!t||!_g.test(t))}}},Ng="EMAIL_ADDRESS",Pg="PHONE_NUMBER",Dg="WORK_EMAIL",Mg="consentUnchecked",Ug={INPUT:"INPUT",SELECT:"SELECT"},Fg="text",Bg="checkbox";function qg(e){return Object.keys(Ug).includes(e.tagName)}function Hg(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Ng:t.push({type:Og,RegexAllow:[Rg.EMAIL]});break;case Dg:t.push({type:Og,RegexAllow:[Rg.WORK_EMAIL]});break;case Pg:o=e.value.replace(/ /g,""),t.push({type:Og,RegexAllow:[Rg.PHONE_NUMBER]})}return e.required&&t.push({type:xg}),n&&t.push({type:Ig,MinLength:n}),i&&t.push({type:kg,MaxLength:i}),{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 xg:if(0===n.length)return xg;break;case Ig:if(n.length<e[Ig])return Ig;break;case kg:if(n.length>e[kg])return kg;break;case Ag:for(let t=0;t<e[Ag].length;t++){var i,r,o,a;if(!0===(null===(i=e[Ag][t])||void 0===i||null===(r=i.validate)||void 0===r?void 0:r.call(i,n))||!0===(null===(o=e[Ag][t])||void 0===o||null===(a=o.pattern)||void 0===a?void 0:a.test(n)))return Ag+e[Ag][t].errorCode}break;case Og:for(let t=0;t<e[Og].length;t++){var s,c,l,u;if(!1===(null===(s=e[Og][t])||void 0===s||null===(c=s.validate)||void 0===c?void 0:c.call(s,n))||!1===(null===(l=e[Og][t])||void 0===l||null===(u=l.pattern)||void 0===u?void 0:u.test(n)))return Og+e[Og][t].errorCode}}})(e,n)).filter(e=>!!e)}function jg(e,t){return t&&!e?Mg:null}const Gg=(e,t)=>parseInt(t.split(e)[1]);function Wg(e,t){return document.getElementById("".concat(e.id,"-strings")).dataset["str".concat(t)]}const zg=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Kg=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}});function Vg(e,t){const n=e.id+"_",i=n+"q",r=n+"c",o=js("hasDecoratedLeadGenFormData");return new Promise((n,a)=>{const s=[];let c,l;const{urn:u,legalInfoUrn:d,leadType:h,associatedEntityUrn:p,ownerUrn:f,submitter:g}=e.dataset;l=t?"lTrk=".concat(t,"&action=").concat("leadFormSubmit","&activityType=").concat("sponsored"):e.dataset.leadTrackingParams,l||(c=e.closest("[data-lead-tracking-params]"),l=c.dataset.leadTrackingParams);const v={formResponse:{adFormUrn:u,submittedAt:Date.now(),answers:[],consentResponses:[]},trackingUrl:l,trackingAction:"LEAD_FORM_CLICK"},m=De({associatedEntity:p,form:u,legalInfoUrn:d,leadType:h,owner:f,formResponse:{answers:[],consentResponses:[]},leadTrackingParams:l,submittedAt:Date.now()},null!=g&&g.length?{submitter:g}:{});return Array.from(e).filter(qg).forEach(e=>{let t;if(e.tagName===Ug.SELECT)t=((e,t,n)=>{const i=Gg(e,t.id),r=t.selectedIndex;return{response:n?(o=i,a=r,{question:o,multipleChoiceAnswer:{options:[a]}}):Kg(i,r)};var o,a})(i,e,o),o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else if(e.type===Fg)if(t=((e,t,n)=>{const i=Gg(e,t.id),r=Hg(t);return 0!==r.length?{errors:r}:{response:n?(o=i,a=t.value,{question:o,textQuestionAnswer:{answer:a}}):zg(i,t.value)};var o,a})(i,e,o),t.response)o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===Bg&&(t=((e,t,n,i,r)=>{const o=Gg(e,t),a=jg(n,i);return a?{errors:a}:{response:{[r?"consent":"consentId"]:o,accepted:n}}})(r,e.id,e.checked,e.required,o),t.response?o?m.formResponse.consentResponses.push(t.response):v.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?n(o?m:v):a(s)})}function Xg(e){let{actionType:t,serializedLeadGenFormTrackingContext:n,encryptedTrackingData:i}=e;const r=it(document,{skipSuffix:!0}),o="".concat(r,"-").concat(null==t?void 0:t.toLowerCase()),a=Ts(r);var s,c,l;i?(s="LeadGenFormClientActionEvent",c=De(De({},a),{},{sponsoredTrackingInfo:{sponsoredEventHeader:{encryptedTrackingData:i}},actionType:t,controlUrn:o,serializedLeadGenFormTrackingContext:n}),null===(l=window.tracking)||void 0===l||l.then(e=>{const t=e.generateEnvelope(s,c,{transporterKey:"sponsoredTransporter"});return e.fireEnvelope(t)})):window.tracking.then(e=>{e.fireTrackingEvent("LeadGenFormClientActionEvent",De(De({},a),{},{actionType:t,controlUrn:o,serializedLeadGenFormTrackingContext:n}))})}class Yg extends El{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:Yg.query,variables:e,successCallback:t,failureCallback:n})}}Gs(Yg,"query","0a321276f8bcd90441cffeb1ab648fa1");const Jg="VIEW_FORM",Qg=".lead-gen-input-container",$g=".error-text",Zg=".submit-btn",ev="input-error",tv="checkbox-input",nv="inputbox-input";Gs(class{constructor(e){let{isLivePreview:t=!1,encodedLeadGenFormTrackingContext:n,encryptedTrackingData:i,pemDegradationTrackingMetadata:r,persistFormOnSubmit:o,responseEndpoint:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");!function(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&&Ds(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")})}}("lead-gen-form__description-content-truncated",".lead-gen-form__description-btn-truncation",e),this.containerEl=e,this.formEl=e.querySelector("form"),this.formContentEl=e.querySelector(".lead-gen-form__content"),this.postSubmissionInfoEl=e.querySelector(".lead-gen-form__post-submission"),this.submitBtn=this.formEl.querySelector(Zg),this.persistFormOnSubmit=o,this.encryptedTrackingData=i,this.encodedLeadGenFormTrackingContext=n,a&&(this.leadGenResponseMutation=new Yg(a,r)),t||this._bindInputHandlers(),this.encodedLeadGenFormTrackingContext&&!t&&(this._initClickTracking(),this._initViewTracking())}showPostSubmissionInfo(){Us(this.formContentEl),this.postSubmissionInfoEl&&Fs(this.postSubmissionInfoEl)}hideForm(){Us(this.formContentEl)}enableSubmit(){qs(this.submitBtn)}_clearFormErrors(){Array.from(this.formEl).filter(qg).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Vg(this.formEl,this.encryptedTrackingData).then(e=>{if(Bs(this.submitBtn),this.leadGenResponseMutation){const t=this.leadGenResponseMutation.execute(e);nt(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,t)}else nt(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,e);this.persistFormOnSubmit||this.hideForm()}).catch(e=>{e.forEach(e=>this._setAndShowError(e.element,e.errorType));const t=e[0];if(t){t.element.focus();Wg(t.element,t.errorType)}})}_hideError(e){if(e){const t=e.closest(Qg),n=t.querySelector($g);Us(n),t.classList.remove(ev),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(Qg))||void 0===t?void 0:t.classList.contains(ev)}_setAndShowError(e,t){if(e){const n=Wg(e,t),i=e.closest(Qg),r=i.querySelector($g);r.innerText=n,Fs(r),i.classList.add(ev),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Bg)t=jg(e.checked,e.required);else if(e.type===Fg){const n=Hg(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindInputHandlers(){this.formEl.addEventListener("click",e=>{e.target.classList.contains(tv)&&this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(nv)&&this._handleInputError(e.target)}),this.submitBtn.addEventListener("click",e=>{e.preventDefault(),this._submitForm()})}fireInFormLeadGenTracking(e,t){!this.encryptedTrackingData&&t||Xg({actionType:e,serializedLeadGenFormTrackingContext:this.encodedLeadGenFormTrackingContext,encryptedTrackingData:this.encryptedTrackingData})}_initViewTracking(){const e=Jg,t=this.containerEl.closest('[data-id="main-feed-card"]');this.fireInFormLeadGenTracking(e,t)}_initClickTracking(){this.containerEl.addEventListener("click",e=>{const t=e.target.closest("[data-lgf-action-type]"),n=e.target.closest('[data-id="main-feed-card"]');if(t){const i=t.dataset.lgfActionType;if(n&&("consent_link"===e.target.dataset.feedControl||"legal_disclaimer_link"===e.target.dataset.feedControl))return;this.fireInFormLeadGenTracking(i,n)}})}},"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class iv{constructor(e,t){if(!e)throw Error("Missing FollowMutation endpoint");t&&(this.pemDegradationTrackingMetadata=t,this.isPemEnabled=!0),this.endpoint=e}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 yl({endpoint:this.endpoint,queryId:iv.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(i)}}Gs(iv,"query","cbed571fffd8cea15209aed8d44e6759");const rv=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(rv));const ov="CREATE",av="UPDATE";class sv{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:sv.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==ov&&n!==av||(o.variables.reactionType=e),yl(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Gs(sv,"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"});class cv extends El{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:cv.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Gs(cv,"query","48f4c814e38d5689b7c83a29c9676972");Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const lv=document.querySelector("#share-modal .textarea"),uv=document.querySelector(".image-preview-wrapper"),dv=document.querySelector("#share-modal .modal-content .reshare-section"),hv=document.querySelector(".post-button"),pv=document.querySelector("#comments-enabled"),fv=document.querySelector("#share-with-public"),gv=document.querySelector(".post-settings-wrapper"),vv=document.querySelector('input[name="share-with"]:checked'),mv=document.querySelector("#share-modal .close-button"),yv=document.querySelector("#visibility-settings-modal"),Ev=document.querySelector("#visibility-header-back .close-button"),bv=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),wv=document.querySelector("#discard-post-modal-wrapper"),_v=document.querySelector("#share-modal"),Tv=document.querySelector(".modal-spinner"),Sv=document.querySelector("#share-modal .textarea"),Cv=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const Iv=document.querySelector("#share-with-network");class kv extends _l{updatePostButtonStatus(){var e;const t=null===(e=lv.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===uv.getAttribute("data-image-load-state"),i=dv.children.length;t||n||i?qs(hv):Bs(hv)}clearModalContentBase(){dv&&(dv.textContent=""),lv&&(lv.textContent=""),pv&&(pv.checked=!0),fv&&(fv.checked=!0,gv.setAttribute("data-post-visibility",vv.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),mv.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"))})}yv.addEventListener("close",()=>{gv.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),Ev.addEventListener("click",()=>window.history.back()),bv.addEventListener("click",t=>e(t)),bv.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}),document.documentElement.classList.contains("safari")&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class Av extends kv{constructor(e,t){let{endpoint:n="",enablePageViewTracking:i=!1,shouldHideModal:r=(()=>!1),triggerByOutletEl:o=!1,pushState:a=!1,historyUpdateUrl:s}=t;super(e,{enablePageViewTracking:i,shouldHideModal:r,triggerByOutletEl:o,pushState:a}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=s,this.postUrn=js("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new _l(yv,{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=function(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,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const c=()=>{r=null,n||e.apply(i,a)},l=n&&!r;clearTimeout(r),r=setTimeout(c,t),l&&e.apply(i,a)}}(this.updatePostButtonStatus,300);Sv.addEventListener("input",e)}bindShareModalEvents(){const e=new zu(wv,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});_v.addEventListener("open",()=>{lv.focus()}),_v.addEventListener("close",()=>{this.clearModalContentBase(),Us(Tv)}),hv.addEventListener("click",()=>{this.processPostData()}),mv.addEventListener("click",()=>{hv.disabled?this.close():e.modal.open()}),gv.addEventListener("click",this.postSettingsClickHandler.bind(this)),gv.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(),document.documentElement.classList.contains("ios")&&window.scrollTo(0,0),n&&(Sv.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=Sv.textContent,this.shareData.visibility="PUBLIC",Cv&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Cv.value),Iv.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Fs(Tv),this.composePostData(),yl({endpoint:this.endpoint,queryId:Av.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=>{_s(e,"ajax","post_success_page_key")}),Vu().trigger("success",js("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:js("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{_s(e,"ajax","post_failure_page_key")}),Vu().trigger("error",js("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())}}Gs(Av,"query","971e319c05beaf333e94125db8c4f942");const xv={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};Xu({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:xv}),Xu({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:xv}),Xu({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:xv});class Ov extends El{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:Ov.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Gs(Ov,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class Lv extends El{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:Lv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Gs(Lv,"query","a628cd3be2c138c07fc69c2413b23fb6");class Rv extends El{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:Rv.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Gs(Rv,"query","a0ff03a6b1cbe44862cb2054f0612078");class Nv extends El{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:Nv.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Gs(Nv,"query","ad184ece0303620a9753eca249efd99f");class Pv extends El{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:Pv.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Gs(Pv,"query","7edd5b8a4513caf8180a64ecde871630");class Dv extends El{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:Dv.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Gs(Dv,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Mv extends El{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:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Gs(Mv,"query","85c85c121bf7eaabd2388b9143f94546");class Uv extends El{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:Uv.query,variables:{assetUrn:e},successCallback:t,failureCallback:n})}}Gs(Uv,"query","886ab48d89d7bb06bd1a5d5454286645")}).call(this,n(1))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(0),r=n(8),o=n.n(r),a={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"]};var s=n(2),c="ajax";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,a=t.requestUrl,s=t.feedLoadLimit,c=void 0===s?6:s,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(!a)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=a,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.D)(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.h(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.E.firePageViewEvent(e,c,"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({},a,t))}(e);t?(this.el.insertAdjacentHTML("beforeend",t),Object(s.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";n.r(t);var i=n(9),r=n(7),o=n(11);if(new i.a,Array.from(document.querySelectorAll(".share-native-video__node")).forEach(e=>new r.c(e)),document.querySelector(".updates-loader")){var a=document.querySelector(".updates__list"),s=Object(r.e)("feedUpdatesBaseUrl"),c=Object(r.e)("isMobile"),l=Object(r.e)("paginationToken");new o.a(a,{feedLoadLimit:c?3:6,onStopCallback:()=>{var e=document.querySelector('[data-id="conversion-prompt"]');null==e||e.classList.remove("hidden")},paginationToken:l,requestUrl:new URL("".concat(window.location.origin).concat(s)),threshold:c?4:2})}var u=document.querySelector('[data-js-module-id="products__slide-list"]');u&&new r.d(u);var d=document.querySelector('[data-js-module-id="more-searches"]');d&&window.tracking&&window.tracking.then(e=>{new r.a(d,e)})}]);