/*! 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){function r(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return el})),n.d(t,"b",(function(){return Wf})),n.d(t,"c",(function(){return lf})),n.d(t,"d",(function(){return Fg})),n.d(t,"e",(function(){return Lw})),n.d(t,"f",(function(){return Pf})),n.d(t,"g",(function(){return Df})),n.d(t,"h",(function(){return we})),n.d(t,"i",(function(){return ul})),n.d(t,"j",(function(){return i_})),n.d(t,"k",(function(){return lg})),n.d(t,"l",(function(){return sg})),n.d(t,"m",(function(){return Ig})),n.d(t,"n",(function(){return yb})),n.d(t,"o",(function(){return Xo})),n.d(t,"p",(function(){return Wp})),n.d(t,"q",(function(){return Xp})),n.d(t,"r",(function(){return r_})),n.d(t,"s",(function(){return jp})),n.d(t,"t",(function(){return Ic})),n.d(t,"u",(function(){return ql})),n.d(t,"v",(function(){return Pa})),n.d(t,"w",(function(){return Wh})),n.d(t,"x",(function(){return U_})),n.d(t,"y",(function(){return Ws})),n.d(t,"z",(function(){return ng})),n.d(t,"A",(function(){return Ra})),n.d(t,"B",(function(){return _})),n.d(t,"C",(function(){return x})),n.d(t,"D",(function(){return Q})),n.d(t,"E",(function(){return UT}));class a{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 s=function(){let e;return{getInstance:function(){return e||(e=new a),e}}}();class c{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)})}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}const l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();function u(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function d(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function h(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function p(e,t,n){const i=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function f(e,t){return g(e,"trk",t)}function g(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=p(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 v(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 m(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function E(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function b(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function w(e){return"string"!=typeof e?null:e.split("?")[0]}var _=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:s,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:p,addTrackingCode:f,addQueryParam:g,debounce:v,getCookie:m,dispatchCustomEvent:y,getDeferredPromise:E,isDocumentHidden:b,stripQueryParams:w,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=g(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 T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?`${n.content}${r||t.skipSuffix?"":"_jsbeacon"}`:""}function S(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function C(){var e,t;const n=null===(e=window.atob(m("li_gp")))||void 0===e||null===(t=e.split(";")[2])||void 0===t?void 0:t[0];return!!n&&!parseInt(n)}function I(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function k(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function A(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}var x=Object.freeze({__proto__:null,getPageKey:T,getPageTag:S,getLiSugrCookie:function(){return m("li_sugr")},getGuestRetargetingOptOut:C,getLocale:I,getDomain:k,trimDoubleQuotes:A});const O={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},L={Down:O.ARROW_DOWN,Right:O.ARROW_RIGHT,Left:O.ARROW_LEFT,Up:O.ARROW_UP,Esc:O.ESCAPE,Spacebar:O.SPACEBAR,Tab:O.TAB};function R(e){return L[e]||e}class N{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(R(e.key)){case O.ENTER:case O.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case O.ARROW_UP:this.isOpen||this._open(e);break;case O.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){R(e.key)===O.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=R(e.key);if(t===O.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case O.SPACEBAR:y(e.target,"click");break;case O.ARROW_LEFT:case O.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case O.ARROW_RIGHT:case O.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(i,"focusEl")}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),y(this.el,"open",{key:t})}}close(){let{shouldReturnFocusToTrigger:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),y(this.el,"close"),e&&setTimeout(()=>{this.mainButton.focus()},250))}}let P,D;const M=['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^="-"])'],U=[...M,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),F=[...M,"[tabindex]:not([disabled])"].join(",");function B(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function q(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?!B(e):i&&i.get(e)?i.get(e):(B(e)?t=!1:e.parentNode&&(t=q(e.parentNode,n,i)),i&&i.set(e,t),t)}const H=["CODE","TEMPLATE","SCRIPT"],j={POLITE:"polite",ASSERTIVE:"assertive"};function G(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j.POLITE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;P&&(P.removeAttribute("aria-hidden"),P.setAttribute("aria-live",t),P.textContent=e,clearTimeout(D),D=setTimeout(()=>{P.textContent=""},n))}function W(){P=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 z{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 K=["class","disabled","style","tabindex","type"];class V{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 z(this._container)}init(){this._observer.observe(this._container,{attributeFilter:K,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=R(t),r=i===O.TAB&&e.shiftKey;!r&&i===O.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):r&&n===this.firstFocusableEl&&(this.lastFocusableEl.focus(),e.preventDefault())}_setFirstAndLastFocusableEls(e){const[t,n]=this._getFirstAndLastFocusableEls(e);this.firstFocusableEl=t,this.lastFocusableEl=n,setTimeout(()=>{this._hasFocusBeenDropped()&&("-1"===e.getAttribute("tabindex")?e.focus():this.firstFocusableEl.focus())},100)}_hasFocusBeenDropped(){const e=document.activeElement;return!e||e===document.body}_getFirstAndLastFocusableEls(e){const t=[...e.querySelectorAll(U)],n=new Map;let i,r,o=0,a=t.length-1;for(;(!i||!r)&&o<=a;){if(!i){const r=t[o];i=q(r,e,n)&&r,o++}if(!r){const i=t[a];r=q(i,e,n)&&i,a--}}return r=r||i,[i,r]}}const X=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function Y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&X.test(e)}class J{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(U)),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=Y();const o=this.dropdownContentEl.closest(".collapsible-dropdown");if(this._isMobile&&o&&(this._focusTrap=new V(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(U),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 N(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){var e;this.el.addEventListener("open",e=>this._showDropdownList(e)),this.el.addEventListener("close",()=>this._hideDropdownList()),this.collapsible.isList&&this.dropdownContentEl.addEventListener("focusEl",e=>this._manageFocus(e)),null===(e=this._closeButton)||void 0===e||e.addEventListener("click",e=>this._handleCloseButtonClick(e))}_manageFocus(e){const{target:t}=e;if(t&&this._getFocusItemFromListItem){const e=this._getFocusItemFromListItem(t);e&&e.focus()}}_handleBodyClick(e){this.el.contains(e.target)||this.collapsible.close({shouldReturnFocusToTrigger:!1})}_handleCloseButtonClick(e){var t;null===(t=e.stopPropagation)||void 0===t||t.call(e),this.collapsible.close({shouldReturnFocusToTrigger:!0})}_showDropdownList(e){window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;var n;(t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick),this._isMobile)?null===(n=this._focusTrap)||void 0===n||n.init():this.el.addEventListener("focusout",this._focusOutsideDropdown)}_hideDropdownList(){var e;this._isMobile?null===(e=this._focusTrap)||void 0===e||e.tearDown():this.el.removeEventListener("focusout",this._focusOutsideDropdown);document.removeEventListener("mousedown",this._handleBodyClick),window.removeEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.add(this.hideClass)}_focusOutsideDropdown(e){e.relatedTarget&&!this.el.contains(e.relatedTarget)&&this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}shouldReturnFocusToTrigger(e){this._shouldReturnFocusToTrigger=e}close(){this.collapsible.close({shouldReturnFocusToTrigger:this._shouldReturnFocusToTrigger})}}function Q(e){let{method:t="GET",headers:n={},sendCookies:i=!0,skipCsrfToken:r=!1,postData:o,isPemEnabled: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=m("JSESSIONID");e&&(l.headers["Csrf-Token"]=A(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(`${t} request for ${e} has failed with status code ${n.status}`);return n.responseText=i,r.response=n,Promise.reject(r)}));return a&&(s.length?$(u,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function $(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 Z{constructor(e){if(!e)throw Error("An element must be provided to LanguageSelector");this._el=e,this.listEl=this._el.querySelector(".collapsible-dropdown__list"),this.dropdownTriggerEl=this._el.querySelector(".language-selector__button"),this.currentListItem=this.listEl.querySelector(".language-selector__link--selected"),this.collapsibleDropdown=new J(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=A(m("bcookie")||"");return Q(`${function(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}(k(document))}/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 ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},te=/^\s+|\s+$/g,ne=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,re=/^0o[0-7]+$/i,oe=parseInt,ae="object"==typeof ee&&ee&&ee.Object===Object&&ee,se="object"==typeof self&&self&&self.Object===Object&&self,ce=ae||se||Function("return this")(),le=Object.prototype.toString,ue=Math.max,de=Math.min,he=function(){return ce.Date.now()};function pe(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=he();if(g(e))return m(e);s=setTimeout(v,function(e){var n=t-(e-c);return d?de(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=he(),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=ge(t)||0,fe(n)&&(u=!!n.leading,o=(d="maxWait"in n)?ue(ge(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(he())},y}function fe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ge(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==le.call(e)}(e))return NaN;if(fe(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=fe(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(te,"");var n=ie.test(e);return n||re.test(e)?oe(e.slice(2),n?2:8):ne.test(e)?NaN:+e}var ve=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return fe(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),pe(e,t,{leading:i,maxWait:t,trailing:r})};const me=".loader",ye=".infinite-scroller__show-more-button",Ee=0,be=10;class we{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,{threshold:t=Ee,scrollLoadLimit:n=be,useDebounce:i=!1,wait:r=1e3,loadResults:o,onLoading:a=this._defaultOnLoading,onDoneLoading:s=this._defaultOnDoneLoading,loaderEl:c=document.querySelector(me),showMoreButtonEl:l=document.querySelector(ye),isReverse:u=!1,listEl:d,getFocusItemFromListItem:h=(e=>e.querySelector(F))}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!o)throw new Error("loadResults should be passed to the component");if(n<=0)throw new Error("scrollLoadLimit should be greater than 0, if you only need the button and not the scroller do not use this module");l&&!d&&console.error("A list element is required for accessibility focus if a showMoreButtonEl is present"),this.el=e,this.threshold=t,this.scrollLoadLimit=n,this.useDebounce=i,this.wait=r,this.loaderEl=c,this.onLoading=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?v(this._onScroll,this.wait):ve(this._onScroll,this.wait),this._attachScrollEventListener(),this._onScroll()}_defaultOnLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!0:this.loaderEl&&this.loaderEl.classList.add("loader--show")}_defaultOnDoneLoading(){this.isShowMoreButtonTheTrigger?this.showMoreButtonEl.disabled=!1:this.loaderEl&&this.loaderEl.classList.remove("loader--show")}_onScroll(){!this.isLoading&&h(this.el,this.threshold,this.isReverse)&&(this.isLoading=!0,this.onLoading(),this.loadResults().finally(()=>{this.onDoneLoading(),this.isLoading=!1,++this.loadNumber>=this.scrollLoadLimit&&(this.removeInfiniteScroller(),this.showMoreButtonEl&&this._switchToShowMoreButton())}))}_onClick(){var e,t;const n=(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)||0;this.onLoading(),this.loadResults().finally(()=>{var e,t;if(this.onDoneLoading(),(null===(e=this.listEl)||void 0===e||null===(t=e.children)||void 0===t?void 0:t.length)>n){var i,r;const e=null===(i=this.listEl)||void 0===i||null===(r=i.children)||void 0===r?void 0:r[n];let t=this._getFocusItemFromListItem(e);t&&t.focus()}})}_switchToShowMoreButton(){this.isShowMoreButtonTheTrigger=!0,this.showMoreButtonEl.classList.add("infinite-scroller__show-more-button--visible"),this.showMoreButtonEl.addEventListener("click",this._onClick)}removeInfiniteScroller(){this.isShowMoreButtonTheTrigger?(this.showMoreButtonEl.removeEventListener("click",this._onClick),this.showMoreButtonEl.classList.remove("infinite-scroller__show-more-button--visible")):this.el.removeEventListener("scroll",this._scrollListener),y(this.el,"infinite-scroller-removed")}_attachScrollEventListener(){this.el.addEventListener("scroll",this._scrollListener)}}const _e="light",Te="dark";function Se(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Te:_e:void 0}var Ce,Ie=["transporterKeys"],ke=["breadcrumb"],Ae=["$type"],xe=["requestStart"],Oe=["requestTime","viewNames","requestType","requestTag"],Le=["requestStart"],Re=["requestStart"],Ne=["requestTime","viewNames","requestType"];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){Qe(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){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)||ze(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ue(e,t,n){return t=Be(t),function(e,t){if(t&&("object"===Ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],Be(e).constructor):t.apply(e,n))}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qe(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&&He(e,t)}function He(e,t){return(He=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function je(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 Ge(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=ze(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,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 We(e){return function(e){if(Array.isArray(e))return Ke(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ze(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ze(e,t){if(e){if("string"==typeof e)return Ke(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)?Ke(e,t):void 0}}function Ke(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 Ve(e){return(Ve="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 Xe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(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,$e(i.key),i)}}function Je(e,t,n){return t&&Ye(e.prototype,t),n&&Ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qe(e,t,n){return(t=$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e){var t=function(e,t){if("object"!=Ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Ve(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ve(t)?t:String(t)}var Ze,et="unknown",tt=new Uint8Array(16);function nt(){if(!Ze&&!(Ze="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 Ze(tt)}var it=/^(?:[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 rt(e){return"string"==typeof e&&it.test(e)}for(var ot=[],at=0;at<256;++at)ot.push((at+256).toString(16).slice(1));function st(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase()}function ct(e){if(!rt(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 lt(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=ct(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 st(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function ut(e){return 14+(e+64>>>9<<4)+1}function dt(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function ht(e,t,n,i,r,o){return dt((a=dt(dt(t,e),dt(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function pt(e,t,n,i,r,o,a){return ht(t&n|~t&i,e,t,r,o,a)}function ft(e,t,n,i,r,o,a){return ht(t&i|n&~i,e,t,r,o,a)}function gt(e,t,n,i,r,o,a){return ht(t^n^i,e,t,r,o,a)}function vt(e,t,n,i,r,o,a){return ht(n^(t|~i),e,t,r,o,a)}lt("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[ut(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=pt(n,i,r,o,e[a],7,-680876936),o=pt(o,n,i,r,e[a+1],12,-389564586),r=pt(r,o,n,i,e[a+2],17,606105819),i=pt(i,r,o,n,e[a+3],22,-1044525330),n=pt(n,i,r,o,e[a+4],7,-176418897),o=pt(o,n,i,r,e[a+5],12,1200080426),r=pt(r,o,n,i,e[a+6],17,-1473231341),i=pt(i,r,o,n,e[a+7],22,-45705983),n=pt(n,i,r,o,e[a+8],7,1770035416),o=pt(o,n,i,r,e[a+9],12,-1958414417),r=pt(r,o,n,i,e[a+10],17,-42063),i=pt(i,r,o,n,e[a+11],22,-1990404162),n=pt(n,i,r,o,e[a+12],7,1804603682),o=pt(o,n,i,r,e[a+13],12,-40341101),r=pt(r,o,n,i,e[a+14],17,-1502002290),n=ft(n,i=pt(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=ft(o,n,i,r,e[a+6],9,-1069501632),r=ft(r,o,n,i,e[a+11],14,643717713),i=ft(i,r,o,n,e[a],20,-373897302),n=ft(n,i,r,o,e[a+5],5,-701558691),o=ft(o,n,i,r,e[a+10],9,38016083),r=ft(r,o,n,i,e[a+15],14,-660478335),i=ft(i,r,o,n,e[a+4],20,-405537848),n=ft(n,i,r,o,e[a+9],5,568446438),o=ft(o,n,i,r,e[a+14],9,-1019803690),r=ft(r,o,n,i,e[a+3],14,-187363961),i=ft(i,r,o,n,e[a+8],20,1163531501),n=ft(n,i,r,o,e[a+13],5,-1444681467),o=ft(o,n,i,r,e[a+2],9,-51403784),r=ft(r,o,n,i,e[a+7],14,1735328473),n=gt(n,i=ft(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=gt(o,n,i,r,e[a+8],11,-2022574463),r=gt(r,o,n,i,e[a+11],16,1839030562),i=gt(i,r,o,n,e[a+14],23,-35309556),n=gt(n,i,r,o,e[a+1],4,-1530992060),o=gt(o,n,i,r,e[a+4],11,1272893353),r=gt(r,o,n,i,e[a+7],16,-155497632),i=gt(i,r,o,n,e[a+10],23,-1094730640),n=gt(n,i,r,o,e[a+13],4,681279174),o=gt(o,n,i,r,e[a],11,-358537222),r=gt(r,o,n,i,e[a+3],16,-722521979),i=gt(i,r,o,n,e[a+6],23,76029189),n=gt(n,i,r,o,e[a+9],4,-640364487),o=gt(o,n,i,r,e[a+12],11,-421815835),r=gt(r,o,n,i,e[a+15],16,530742520),n=vt(n,i=gt(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=vt(o,n,i,r,e[a+7],10,1126891415),r=vt(r,o,n,i,e[a+14],15,-1416354905),i=vt(i,r,o,n,e[a+5],21,-57434055),n=vt(n,i,r,o,e[a+12],6,1700485571),o=vt(o,n,i,r,e[a+3],10,-1894986606),r=vt(r,o,n,i,e[a+10],15,-1051523),i=vt(i,r,o,n,e[a+1],21,-2054922799),n=vt(n,i,r,o,e[a+8],6,1873313359),o=vt(o,n,i,r,e[a+15],10,-30611744),r=vt(r,o,n,i,e[a+6],15,-1560198380),i=vt(i,r,o,n,e[a+13],21,1309151649),n=vt(n,i,r,o,e[a+4],6,-145523070),o=vt(o,n,i,r,e[a+11],10,-1120210379),r=vt(r,o,n,i,e[a+2],15,718787259),i=vt(i,r,o,n,e[a+9],21,-343485551),n=dt(n,s),i=dt(i,c),r=dt(r,l),o=dt(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(ut(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}));var mt={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function yt(e,t,n){if(mt.randomUUID&&!t&&!e)return mt.randomUUID();var i=(e=e||{}).random||(e.rng||nt)();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 st(i)}function Et(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 bt(e,t){return e<<t|e>>>32-t}lt("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]=bt(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),_=bt(g,5)+Et(w,v,m,y)+E+t[w]+h[b]>>>0;E=y,y=m,m=bt(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 wt=Uint8Array,_t=Uint16Array,Tt=Uint32Array,St=new wt([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]),Ct=new wt([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]),It=new wt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kt=function(e,t){for(var n=new _t(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Tt(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]},At=kt(St,2),xt=At[0],Ot=At[1];xt[28]=258,Ot[258]=28;for(var Lt=kt(Ct,0)[1],Rt=new _t(32768),Nt=0;Nt<32768;++Nt){var Pt=(43690&Nt)>>>1|(21845&Nt)<<1;Pt=(61680&(Pt=(52428&Pt)>>>2|(13107&Pt)<<2))>>>4|(3855&Pt)<<4,Rt[Nt]=((65280&Pt)>>>8|(255&Pt)<<8)>>>1}var Dt=function(e,t,n){for(var i=e.length,r=0,o=new _t(t);r<i;++r)e[r]&&++o[e[r]-1];var a,s=new _t(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;if(n){a=new _t(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[Rt[d]>>>c]=l}else for(a=new _t(i),r=0;r<i;++r)e[r]&&(a[r]=Rt[s[e[r]-1]++]>>>15-e[r]);return a},Mt=new wt(288);for(Nt=0;Nt<144;++Nt)Mt[Nt]=8;for(Nt=144;Nt<256;++Nt)Mt[Nt]=9;for(Nt=256;Nt<280;++Nt)Mt[Nt]=7;for(Nt=280;Nt<288;++Nt)Mt[Nt]=8;var Ut=new wt(32);for(Nt=0;Nt<32;++Nt)Ut[Nt]=5;var Ft=Dt(Mt,9,0),Bt=Dt(Ut,5,0),qt=function(e){return(e+7)/8|0},Ht=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},jt=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},Gt=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[Jt,0];if(1==r){var a=new wt(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 _t(h+1),f=Wt(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 wt(p),f]},Wt=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},zt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new _t(++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]},Kt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Vt=function(e,t,n){var i=n.length,r=qt(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)},Xt=function(e,t,n,i,r,o,a,s,c,l,u){Ht(t,u++,n),++r[256];for(var d=Gt(r,15),h=d[0],p=d[1],f=Gt(o,15),g=f[0],v=f[1],m=zt(h),y=m[0],E=m[1],b=zt(g),w=b[0],_=b[1],T=new _t(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=Gt(T,7),I=C[0],k=C[1],A=19;A>4&&!I[It[A-1]];--A);var x,O,L,R,N=l+5<<3,P=Kt(r,Mt)+Kt(o,Ut)+a,D=Kt(r,h)+Kt(o,g)+a+14+3*A+Kt(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(N<=P&&N<=D)return Vt(t,u,e.subarray(c,c+l));if(Ht(t,u,1+(D<P)),u+=2,D<P){x=Dt(h,p,0),O=h,L=Dt(g,v,0),R=g;var M=Dt(I,k,0);for(Ht(t,u,E-257),Ht(t,u+5,_-1),Ht(t,u+10,A-4),u+=14,S=0;S<A;++S)Ht(t,u+3*S,I[It[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];Ht(t,u,M[q]),u+=I[q],q>15&&(Ht(t,u,B[S]>>>5&127),u+=B[S]>>>12)}}}else x=Ft,O=Mt,L=Bt,R=Ut;for(S=0;S<s;++S)if(i[S]>255){q=i[S]>>>18&31,jt(t,u,x[q+257]),u+=O[q+257],q>7&&(Ht(t,u,i[S]>>>23&31),u+=St[q]);var H=31&i[S];jt(t,u,L[H]),u+=R[H],H>3&&(jt(t,u,i[S]>>>5&8191),u+=Ct[H])}else jt(t,u,x[i[S]]),u+=O[i[S]];return jt(t,u,x[256]),u+O[256]},Yt=new Tt([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Jt=new wt(0),Qt=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}(),$t=function(e,t,n,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new wt(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=Vt(c,l+1,e.subarray(u,d))}else{for(var h=Yt[t-1],p=h>>>13,f=8191&h,g=(1<<n)-1,v=new _t(32768),m=new _t(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 Tt(25e3),_=new _t(288),T=new _t(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=Xt(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|Ot[P]<<18|Lt[D];var K=31&Ot[P],V=31&Lt[D];C+=St[K]+Ct[V],++_[257+K],++T[V],k=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=Xt(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=Vt(c,l+1,Jt))}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?_t:4==e.BYTES_PER_ELEMENT?Tt:wt)(n-t);return i.set(e.subarray(t,n)),i}(s,0,i+qt(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)},Zt=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},en="undefined"!=typeof TextDecoder&&new TextDecoder;try{en.decode(Jt,{stream:!0})}catch(Br){}function tn(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function nn(){try{return tn()&&"keepalive"in new Request("")}catch(e){return!1}}function rn(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=Qt[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=$t(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&&Zt(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),Zt(r,o-8,n.d()),Zt(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 on(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var an,sn="undefined"!=typeof navigator&&"sendBeacon"in navigator,cn=nn()?function(e,t,n,i){return new Promise((function(r){fetch(e,rn({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,rn({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:on(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(sn){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,rn({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:on(e)})}))}))};function ln(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 un(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 dn(){return an||(an=un("idb-queue","default")),an}function hn(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))},ln(e.transaction)}var pn=!1;function fn(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]:dn();return n("readwrite",(function(n){return n.put(e),ln(n.count()).then((function(e){if(!(e<=t.maxNumber))return hn(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]:dn())("readwrite",(function(t){return hn(t,e)}))}(t,n)}))}function gn(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]:dn();return pn?Promise.resolve():fn(e,t,n)}function vn(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())},ln(t.transaction).then((function(){return i}))}))}function mn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:i})),e}function yn(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function En(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};"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 wn=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Xe(this,e),Qe(this,"config",void 0),Qe(this,"compress",void 0),Qe(this,"throttleControl",void 0),Qe(this,"withStore",void 0),Qe(this,"disablePersistence",!1),this.config=t,this.compress=i;var r,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=un(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&&(yn((function(){return"[throttle] Run fn() at "+String(e)})),r(),a=e)},resetThrottle:function(){a=0}})}return Je(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){yn((function(){return"Persisting to DB "+e.url})),gn(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),yn((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,En((function(){return"push failed"}))}))};this.config.useIdle?bn(n):n()}}},{key:"clear",value:function(){var e=this;return this.disablePersistence?Promise.resolve():function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dn();return pn=!0,e("readwrite",(function(e){return e.clear(),ln(e.transaction).finally((function(){return pn=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,En((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 vn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:dn(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,En((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 vn(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:dn(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,En((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){yn((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())},ln(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]:dn())}(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 yn((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),cn(o,a,mn(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 yn((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),yn((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),gn({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&&En((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?bn(t):t()}}}]),e}(),_n=function(){function e(){Xe(this,e)}return Je(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}(),Tn=function(){function e(t,n){Xe(this,e),Qe(this,"queue",void 0),Qe(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new wn(t,n.compress):new _n}return Je(e,[{key:"pushToQueue",value:function(e){this.queue.push(e)}},{key:"notifyQueue",value:function(){this.queue.onNotify()}},{key:"clearQueue",value:function(){return this.beaconListeners.forEach((function(e){return e()})),this.queue.clear()}},{key:"peekQueue",value:function(e){return this.queue.peek(e)}},{key:"peekBackQueue",value:function(e){return this.queue.peekBack(e)}},{key:"onClear",value:function(e){this.beaconListeners.add(e)}},{key:"removeOnClear",value:function(e){this.beaconListeners.delete(e)}}]),e}();Qe(Tn,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Sn=[502,504],Cn=[429,503],In=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];Xe(this,e),Qe(this,"url",void 0),Qe(this,"body",void 0),Qe(this,"config",void 0),Qe(this,"persistenceConfig",void 0),Qe(this,"compress",void 0),Qe(this,"timestamp",void 0),Qe(this,"isClearQueuePending",!1),Qe(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=i,this.persistenceConfig=r,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Je(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 cn(e.url,e.body,t,e.compress)}),n,t).finally((function(){yn((function(){return"beacon finished"})),e.persistenceConfig.db.removeOnClear(e.onClearCallback)}))}},{key:"retryLimit",get:function(){return this.config.attemptLimit}},{key:"getAttemptCount",value:function(e){return this.retryLimit-e+1}},{key:"retry",value:function(e,t,n,i){var r=this,o=this.getAttemptCount(t)-1;return e(mn(n,this.config.headerName,o,i)).then((function(i){var o,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(yn((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 yn((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}(),kn="internal:hide",An="internal:error";function xn(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function On(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var Ln,Rn,Nn=(Ln=new Map,Rn=new Map,{on:function(e,t){xn(Ln,e,t)},before:function(e,t){xn(Rn,e,t)},off:function(e,t){On(Ln,e,t)},offBefore:function(e,t){On(Rn,e,t)},emit:function(e,t){(Rn.get(e)||[]).concat(Ln.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Rn.clear(),Ln.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Pn=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Nn.emit(kn,e)};document.addEventListener("visibilitychange",Pn),window.addEventListener("pagehide",Pn)}var Dn=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var Mn=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(Mn){var Un=new Uint8Array(256),Fn=Un.length;Dn={rng:function(){return Fn>Un.length-16&&(Mn.randomFillSync(Un),Fn=0),Un.slice(Fn,Fn+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ve(crypto))&&crypto.randomUUID;function Bn(){return yt(Dn,new Array(16),0)}function qn(e){return We(e).map((function(e){return String.fromCharCode(e)})).join("")}function Hn(){return qn(Bn())}var jn=/^[a-zA-Z0-9/+]+[=]+$/;function Gn(e,t){return{pageUrn:zn(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("")}(Bn())}}function Wn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function zn(e){return"urn:li:page:".concat(e)}function Kn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function Vn(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 Xn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function Yn(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 Jn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!tn()||"undefined"==typeof Promise}function Qn(e,t,n,i){var r=["core-web-tracking:".concat(e)];null==i||i.forEach((function(e){return r.push(e)})),Nn.emit(An,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function $n(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}var Zn=function(){function e(t){Xe(this,e),Qe(this,"heap",void 0),Qe(this,"comparator",void 0),this.comparator=t,this.heap=[]}return Je(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=We(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 ei=function(e){if(!ni(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},ti=function(e,t){var n={},i=[];if(0===e.length)return[n,e];if(0===t.length)return[n,e];var r,o=Ge(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transporterKeys,c=je(a,Ie);if(s&&s.length>0){var l,u=Ge(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 ni=function(e){return e&&void 0!==e&&Object.keys(e).length>0},ii=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},ri="beacons";function oi(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&nn()&&t&&n}function ai(e,t,n,i,r){"control"!==i&&e.retryConfig&&oi()&&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)}}))}(ri);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:ri,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:Sn,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:Cn,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new Tn(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s;return tn()?new In(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Cn},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){Qn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Qn("retry:setup",e)}))}var si=function(){function e(t){Xe(this,e),Qe(this,"host",void 0),this.host=t}return Je(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&&ai(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){Qn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();nn()&&"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){Qn("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)&&(Jn()?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}):cn(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&&oi()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),ci="undefined"!=typeof window&&"undefined"!=typeof document,li=/JSESSIONID="?([^";]+)"?/,ui="",di=0;function hi(){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?li:i;if(!ui||Date.now()-di>n){var o=ci&&document.cookie.match(r);ui=o&&o[1]||"",di=Date.now()}return ui}var pi={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"}},fi=function(){function e(t){Xe(this,e),Qe(this,"networkTransporter",void 0),Qe(this,"inactive",void 0),Qe(this,"mpName",void 0),Qe(this,"endpoint",void 0),Qe(this,"debug",void 0),this.networkTransporter=new si(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return pi.prod.pattern.test(e)?t=pi.prod.monitorEndpoint:pi.eiValidate.pattern.test(e)?(n=!0,t=pi.eiValidate.monitorEndpoint):pi.ei.pattern.test(e)?t=pi.ei.monitorEndpoint:(t=pi.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Je(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":hi(),"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,We(t.failures)),e}),[]);[].concat(We(o),We(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 gi(e){return"string"==typeof e}function vi(e){return gi(e)?e:e.topicName||e.eventName}function mi(e){return gi(e)?e:e.eventName}var yi,Ei,bi=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Xe(this,e),Qe(this,"host",void 0),Qe(this,"cmoTransporter",void 0),Qe(this,"clientMonitoringInstanceId",Hn()),Qe(this,"currentContext",{pageKey:et,pageInstance:Gn(et)}),Qe(this,"appState",{}),Qe(this,"estimatedFragmentSize",0),Qe(this,"fragmentSizeLimit",void 0),Qe(this,"activeFragmentEvent",void 0),Qe(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new fi(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=_i(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Je(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=Ge(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:mi(t),eventTopic:vi(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=_i(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=Ti(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Ti(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:Hn(),memberId:0}}}}]),e}();function wi(e){return yi||(yi=new bi(e)),{getCurrentInstanceId:function(){return yi.getCurrentInstanceId()},logEventGenerated:function(e){return yi.logEventGenerated(e)},logEventReadyToSend:function(e){yi.logEventReadyToSend(e)},logEventSent:function(e){yi.logEventSent(e)},logPersistedEventSent:function(e,t){yi.logEventSent(t,e)},logNetworkResponseCode:function(e){yi.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=yi)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){yi.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){yi.logFailedEvent(t,n,i,r,e)},flush:function(){yi.flush()},destroy:function(){yi=void 0},isDestroyed:function(){return void 0===yi},setCurrentContext:function(e){yi.setCurrentContext(e)},updateAppState:function(e){yi.updateAppState(e)}}}function _i(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 Ti(e){return Array.isArray(e)?qn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(jn)}(e)?atob(e):qn(function(e){return ct(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"}(Ei||(Ei={}));var Si=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Ci="PageViewEvent",Ii=function(){function e(t){var n,i,r,o=this;Xe(this,e),Qe(this,"host",void 0),Qe(this,"queue",void 0),Qe(this,"preContextQueue",void 0),Qe(this,"debounceTimer",void 0),Qe(this,"unloadHandlers",void 0),Qe(this,"maxQueueSize",void 0),Qe(this,"flushDebounceTime",void 0),Qe(this,"trackingEventListeners",[]),Qe(this,"onHideHandler",(function(){o.forceFlush()})),Qe(this,"networkTransporter",void 0),Qe(this,"clientMonitoringConn",void 0),Qe(this,"clientGlobalSequenceNumberCounter",void 0),Qe(this,"clientTopicLocalSequenceNumberCountersMap",{}),Qe(this,"isTimerRunning",void 0),Qe(this,"trackingEndpoint",void 0),Qe(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,Nn.on(kn,this.onHideHandler),this.networkTransporter=new si(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=wi(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return Je(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(Ei.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,Ei.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(vi(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,Nn.off(kn,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:Gn(et),pageKey:et}).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;Yn("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Si.forEach((function(n){var i;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Qn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){Yn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Qn("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=Kn(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===Ci:e.eventName===Ci}(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:!Jn()&&(nn()||"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:Hn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=vi(e.id);if(Si.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=vi(e.id);Si.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(Ei.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 ki,Ai=function(){function e(t,n){Xe(this,e),this.clientBreadcrumbType=t,this.id=n}return Je(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"}(ki||(ki={}));var xi=function(e){function t(){return Xe(this,t),Ue(this,t,[ki.FEED_UPDATE_SERVED,Hn()])}return qe(t,Ai),Je(t)}(),Oi=function(e){function t(){var e;return Xe(this,t),Qe(Fe(e=Ue(this,t,[ki.UNKNOWN,Hn()])),"content",void 0),Qe(Fe(e),"featureBreadcrumbType",void 0),e}return qe(t,Ai),Je(t)}(),Li=function(e){function t(){return Xe(this,t),Ue(this,t,[ki.SPONSORED_UPDATE_SERVED,Hn()])}return qe(t,Ai),Je(t)}();function Ri(e,t){var n;switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new xi).builder;break;case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new Li).builder;break;case"proto.sdui.tracking.TrackingBreadcrumb":n=(new Oi).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=Me(c[s],2),u=l[0],d=l[1];ni(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 Ni(e){var t,n=[],i=[],r=Ge(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=je(o,ke);if(i.push(s),a){var c=a.$type,l=Ri(je(a,Ae),c);n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}function Pi(e){var t,n=new Set,i=[],r=Ge(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=Ni(i);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function Di(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 Mi=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 Ui(e){return"retryConfig"in e.host}function Fi(e){return"location"in e.api}var Bi,qi=function(){function e(t,n,i,r,o,a,s,c){var l,u,d,h;if(Xe(this,e),Qe(this,"transporter",void 0),Qe(this,"delegate",void 0),Qe(this,"viewSpecs",void 0),Qe(this,"transportConfig",void 0),Qe(this,"dynamicTransporterSupportLixKey",void 0),Qe(this,"domain",void 0),Qe(this,"trackingAppName",void 0),Qe(this,"dynamicTransporterSupportLixValue",void 0),Qe(this,"currentContext",void 0),Qe(this,"appState",void 0),Qe(this,"referrer",void 0),Qe(this,"previousAppContext",void 0),Qe(this,"customTransporters",void 0),Qe(this,"clientMonitoringConn",void 0),Qe(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==Mi?void 0:Mi["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];ni(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 Ii(this.transporter.host.api.assign(g,n.customTransporterHosts[f]))}if(this.dynamicTransporterSupportEnabled&&ni(this.transportConfig))for(var v=0,m=Object.entries(this.transportConfig);v<m.length;v++){var y,E,b=Me(m[v],2),w=b[0],_=b[1];_=De(De({},_),{},{endpoint:a&&null!==(y=_)&&void 0!==y&&y.endpoint?"".concat(ii(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 Ii(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&&Fi(t.host)&&(this.clientMonitoringConn=wi(t.host)),ni(i)&&(this.viewSpecs=i)}return Je(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){Nn.before(kn,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){Nn.offBefore(kn,e)}},{key:"checkAndEnablePersistentRetry",value:function(){Ui(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=Ui(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Kn(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,Di(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=Kn(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Kn(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=Wn(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,We(o))}catch(e){Qn("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=ei(this.transportConfig),I=Me(ti(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(ni(k)){for(var L=0,R=Object.entries(k);L<R.length;L++){var N=Me(R[L],2),P=N[0],D=Pi(N[1]),M=D.breadcrumbs,U=D.trackingScopes;this.fireEvent(x,De(De({},O),{},{trackingScopeHierarchy:{entries:U}}),{header:{viewHierarchy:T,testId:b},transporterKey:P},M,y)}if(0===A.length)return Promise.resolve(!0)}var F=Pi(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(We(m),We(B)),y)}var H=Pi(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(We(m),We(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=ei(this.transportConfig),L=Me(ti(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(ni(R)){for(var U=0,F=Object.entries(R);U<F.length;U++){var B=Me(F[U],2),q=B[0],H=Pi(B[1]),j=H.breadcrumbs,G=H.trackingScopes;this.fireEvent(P,De(De({},D),{},{trackingScopeHierarchy:{entries:G}}),De(De({},M),{},{transporterKey:q}),j,T)}if(0===N.length)return Promise.resolve(!0)}var W=Pi(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(We(_),We(z)),T)}var V=Pi(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(We(_),We(X)),T)}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this;if(!t){var a=vi(e),s=void 0===t?"undefined":null===t?"null":Ve(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(Ei.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 Ai.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(ni(e.content))return De({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(gi(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=vi(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(Ei.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 Gn(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),Nn.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 Wn((t||this.currentContext||{pageKey:et}).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&&Kn(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},Fi(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"}(Bi||(Bi={}));var Hi,ji,Gi="otel-origin-jet-tag";!function(){function e(t,n){var i,r,o=this;Xe(this,e),Qe(this,"core",void 0),Qe(this,"protocol",void 0),Qe(this,"throttleKeySet",new Set),Qe(this,"config",void 0),Qe(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),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},Nn.on(An,this.reportTransporterError)}Je(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(Gi)&&Nn.emit(Bi.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(),Nn.off(An,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"}(Hi||(Hi={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(ji||(ji={}));var Wi,zi,Ki,Vi,Xi,Yi,Ji,Qi=(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Qe(Ce={},"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),Qe(Qe(Qe(Qe(Qe(Qe(Ce,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),$i=-1,Zi=-2,er=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],tr={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"},nr={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},ir="pageLoadId does not exist",rr="rum token passed is invalid",or=new RegExp(/batch-(\d+)$|enabled$/),ar=function(){function e(){Xe(this,e),Qe(this,"userTimingEntries",[]),Qe(this,"longTasks",[]),Qe(this,"resourceTimingEntries",[]),Qe(this,"cdnData",void 0)}return Je(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(cr),cdnData:this.cdnData}}}]),e}(),sr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function cr(e){return sr.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function lr(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};Yi=Object.assign(Object.assign({},n),t),Ji=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(Yi.root,n);var i=ur(e,Xi.All,(function(){return ur(e,Xi.Two,(function(){return ur(e,Xi.One)}))}));if(i){var r=Er(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>Yi.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>Yi.maxNumberOfTries)return r;i.counter+=1;var a=We(t);a.splice(o,1);var s=hr(a);if(i.visited.has(s))return r;fr(a)&&br(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]),hr(i)}throw new Error("Selector was not found.")}function ur(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=mr(function(e){var t=e.getAttribute("id");return t&&Yi.idName(t)?{name:"#"+Cr(t,{isIdentifier:!0}),penalty:0}:null}(o))||mr.apply(void 0,We(function(e){return Array.from(e.attributes).filter((function(e){return Yi.attr(e.name,e.value)})).map((function(e){return{name:"["+Cr(e.name,{isIdentifier:!0})+'="'+Cr(e.value)+'"]',penalty:.5}}))}(o)))||mr.apply(void 0,We(function(e){return Array.from(e.classList).filter(Yi.className).map((function(e){return{name:"."+Cr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||mr(function(e){var t=e.tagName.toLowerCase();return Yi.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===Xi.All)s&&(e=e.concat(e.filter(vr).map((function(e){return gr(e,s)}))));else if(t===Xi.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(vr).map((function(e){return gr(e,s)}))));else if(t===Xi.One){var c=Me(e=e.slice(0,1),1)[0];s&&vr(c)&&(e=[gr(c,s)])}var l,u=Ge(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>=Yi.seedMinLength&&(i=dr(r,n)))return 1;o=o.parentElement,a++};o&&o!==Yi.root.parentElement&&!s(););return i||(i=dr(r,n)),i}function dr(e,t){var n=Er(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=Ge(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>Yi.threshold)return t?t():null;var i,r=Ge(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(fr(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function hr(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 pr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function fr(e){switch(Ji.querySelectorAll(hr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(hr(e)));case 1:return!0;default:return!1}}function gr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function vr(e){return"html"!==e.name&&!e.name.startsWith("#")}function mr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(yr);return i.length>0?i:null}function yr(e){return null!=e}function Er(e){return Array.from(e).sort((function(e,t){return pr(e)-pr(t)}))}function br(e,t){return Ji.querySelector(hr(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"}(Wi||(Wi={})),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"}(zi||(zi={})),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"}(Ki||(Ki={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(Vi||(Vi={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Xi||(Xi={}));var wr=/[ -,\.\/:-@\[-\^`\{-~]/,_r=/[ -,\.\/:-@\[\]\^`\{-~]/,Tr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Sr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Cr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Sr),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?wr.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&&_r.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(Tr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var Ir,kr=[{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 Ar(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 xr(e){var t=e||performance;return Math.round(t.now())}function Or(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return lr(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Or(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Lr(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 Rr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Nr=function(){function e(t){Xe(this,e),Qe(this,"hostApis",void 0),Qe(this,"hostnameProperties",void 0),Qe(this,"usedHostnames",void 0),Qe(this,"abortController",void 0),Qe(this,"pendingPromises",void 0),this.hostApis=t;var n=t.AbortController;this.hostnameProperties={},this.usedHostnames=new Set,this.abortController=new n,this.pendingPromises=new Set}return Je(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Xn(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=Vn(Xn(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,(Ir=Ir||i.createElement("a")).href=n,Ir.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(){Xe(this,e)}return Je(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(){Xe(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 Je(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(){Xe(this,e)}return Je(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 "+Ve(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){Xe(this,e),this.callback=t,this.config=n,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return Je(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(Xe(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 Je(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"==Ve(e)&&"object"==Ve(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 Pr=function(){function e(){Xe(this,e)}return Je(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}(),Dr=function(){function e(t,n,i,r,o,a,s,c,l,u){Xe(this,e),Qe(this,"hostApis",void 0),Qe(this,"statics",void 0),Qe(this,"options",void 0),Qe(this,"allowTimingOrigin",void 0),Qe(this,"fireResourceLoadEvent",void 0),Qe(this,"isTracerEnabled",void 0),Qe(this,"responseRleCache",void 0),Qe(this,"fireApfcEvent",void 0),Qe(this,"abuseDeviceSignalCollectionConfig",void 0),Qe(this,"trackingEndpoint",void 0),Qe(this,"collectResourceTimings",void 0),Qe(this,"collectCdnData",void 0),Qe(this,"perfObserver",void 0),Qe(this,"renderTimings",new Map),Qe(this,"urlToTreeId",new Map),Qe(this,"cdnDataProvider",void 0),Qe(this,"observables",new ar),Qe(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 Nr(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return Je(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Ir=Ir||t.createElement("a")).href=e,Ir.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:Ar(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e);if(i&&(i.renderEnd=i.renderEnd||Ar(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Qn("ViewLoadEvent",ir)}},{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,er.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(tr).forEach((function(t){var n;t in Ki&&void 0!==e[t]&&u.push({resourceProgressType:tr[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=nr[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),Qn("ResourceLoadEvent",e)):Qn("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=Lr(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?Vn(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)&&Pr.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=Lr(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"]&&Nn.emit(Bi.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=kr;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:Rr(this.renderTimings),networkInformationMetrics:Mr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function Mr(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,er.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var Fr=function(){function e(t,n,i){Xe(this,e),Qe(this,"featureName",void 0),Qe(this,"trackingCore",void 0),Qe(this,"rumConfig",void 0),Qe(this,"observing",!1),Qe(this,"basePageTreeId",void 0),Qe(this,"startPageInstance",void 0),Qe(this,"startMemory",void 0),Qe(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=i}return Je(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)||Gn(et),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:xr(this.trackingCore.host.api.performance),duration:0,startPageInstance:this.startPageInstance,marks:this.createMemoryMarks("-".concat(e,"min")),spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},t)}},{key:"createMemoryMarks",value:function(e){var t=this.getMemory(),n=["jsHeapSizeLimit","totalJSHeapSize","usedJSHeapSize"].map((function(n){return{name:n+e,startTime:t[n]}})),i=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(i<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(i)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();Qe(Fr,"checkpoints",[1,3,10,30,90,180,300]);var Br,qr,Hr,jr,Gr,Wr=Je((function e(t,n,i){Xe(this,e),Qe(this,"webUIFramework",void 0),Qe(this,"timeSource",void 0),Qe(this,"isSinglePageApp",void 0),Qe(this,"appRenderMode",void 0),Qe(this,"isAppRenderFailed",void 0),Qe(this,"pageLoadMode","INITIAL"),Qe(this,"isSSL",void 0),Qe(this,"treeId",void 0),Qe(this,"isFromServiceWorker",void 0),this.webUIFramework=n["web-ui-framework"],this.timeSource=n["beacon-source"],this.isSinglePageApp=n["is-single-page-app"],this.appRenderMode=t["app-render-mode"],this.isAppRenderFailed=t["is-app-render-failed"],this.isSSL="https:"===i.api.location.protocol?1:0,this.treeId=i.treeID,this.isFromServiceWorker=i.isFromServiceWorker})),zr=function(){function e(t){Xe(this,e),Qe(this,"isPEMTracerEnabled",void 0),Qe(this,"responseContextMap",new Map),Qe(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return Je(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 Zn((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 Zn((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=je(e,xe),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=je(t,Oe);return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=De(De({},n.resourceNetworkContext),a),$n(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=Ge(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=[].concat(We(t),We(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=Ge(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(We(t),We(u.map((function(e){return e.requestStart,$n(je(e,Le))})))))}}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,$n(je(e,Re))})))||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}(),Kr=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)}},Vr=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){}},Xr=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)},Yr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},Jr=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)))}},Qr=-1,$r=function(){return"hidden"===document.visibilityState?0:1/0},Zr=function(){Xr((function(e){var t=e.timeStamp;Qr=t}),!0)},eo=function(){return Qr<0&&(Qr=$r(),Zr(),Yr((function(){setTimeout((function(){Qr=$r(),Zr()}),0)}))),{get firstHiddenTime(){return Qr}}},to=!1,no=-1,io=function(e,t){to||(function(e,t){var n,i=eo(),r=Kr("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:Vr("paint",o);(a||s)&&(n=Jr(e,r,t),a&&o(a),Yr((function(i){r=Kr("FCP"),n=Jr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){no=e.value})),to=!0);var n,i=function(t){no>-1&&e(t)},r=Kr("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=Vr("layout-shift",s);c&&(n=Jr(i,r,t),Xr((function(){c.takeRecords().map(s),n(!0)})),Yr((function(){o=0,no=-1,r=Kr("CLS",0),n=Jr(i,r,t)})))},ro={passive:!0,capture:!0},oo=new Date,ao=function(e,t){Br||(Br=t,qr=e,Hr=new Date,lo(removeEventListener),so())},so=function(){if(qr>=0&&qr<Hr-oo){var e={entryType:"first-input",name:Br.type,target:Br.target,cancelable:Br.cancelable,startTime:Br.timeStamp,processingStart:Br.timeStamp+qr};jr.forEach((function(t){t(e)})),jr=[]}},co=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(){ao(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,ro),removeEventListener("pointercancel",i,ro)};addEventListener("pointerup",n,ro),addEventListener("pointercancel",i,ro)}(t,e):ao(t,e)}},lo=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,co,ro)}))},uo=function(e,t){var n,i=eo(),r=Kr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=Vr("first-input",o);n=Jr(e,r,t),a&&Xr((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&Yr((function(){var i;r=Kr("FID"),n=Jr(e,r,t),jr=[],qr=-1,Br=null,lo(addEventListener),i=o,jr.push(i),so()}))},ho={},po=function(e,t){var n,i=eo(),r=Kr("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=Vr("largest-contentful-paint",o);if(a){n=Jr(e,r,t);var s=function(){ho[r.id]||(a.takeRecords().map(o),a.disconnect(),ho[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Xr(s,!0),Yr((function(i){r=Kr("LCP"),n=Jr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,ho[r.id]=!0,n(!0)}))}))}))}},fo=["LCP","FID","CLS"],go={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},vo={},mo=function(){var e;if(!ci)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}(),yo=!1,Eo=new Set,bo={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function wo(){var e=!0===window.__test__resetWebVitalsState;if(!yo||e){e&&(Eo=new Set),fo.forEach(_o);var t=Symbol();Gr=t,[po,uo,io].forEach((function(e){return e(To.bind(null,t),!0)})),[po,uo,io].forEach((function(e){return e(So.bind(null,t))})),yo=!0}}function _o(e){vo[e]={name:e,verboseName:go[e]||e,value:$i,updateHistory:[]};var t=bo[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(vo[e].value=Zi)}function To(e,t){if(e===Gr){var n=vo[t.name],i=xr();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Eo.forEach((function(e){return e(t,i,!1)}))}}function So(e,t){e===Gr&&Eo.forEach((function(e){return e(t,xr(),!0)}))}var Co,Io=function(){function e(t,n){var i=this;Xe(this,e),Qe(this,"basePageTreeId",void 0),Qe(this,"basePageKey",void 0),Qe(this,"observing",!1),Qe(this,"appContextMap",new Map),Qe(this,"rumConfig",void 0),Qe(this,"trackingCore",void 0),Qe(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 Je(e,[{key:"startObserving",value:function(){var e,t,n=this;wo(),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",fo.forEach((function(e){var t;(null===(t=vo[e])||void 0===t?void 0:t.value)===Zi&&n.reportMetric(e)})),t=this.onMetricUpdate,Eo.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,Eo.delete(e)}},{key:"reportMetric",value:function(e){var t=vo[e];if(t){var n={name:go[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:mo},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:Or(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:Or(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":Or(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};Nn.emit(Bi.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i};Nn.emit(Bi.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i};Nn.emit(Bi.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),ko="x-li-uuid",Ao="x-li-pop",xo="x-msedge-ref",Oo="x-li-fabric",Lo="x-li-pem-resp-meta",Ro="content-type",No="x-cache",Po=function(){function e(t){Xe(this,e),Qe(this,"_callTreeId",void 0),Qe(this,"_fabric",void 0),Qe(this,"_msEdgeRef",void 0),Qe(this,"_pointOfPresenceId",void 0),Qe(this,"_responseMetadata",void 0),Qe(this,"_contentType",void 0),Qe(this,"_cdnCacheMetadata",void 0),Qe(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(ko)||null,this._pointOfPresenceId=n.get(Ao)||null,this._msEdgeRef=n.get(xo)||null,this._fabric=n.get(Oo)||null,this._responseMetadata=n.get(Lo)||null,this._contentType=n.get(Ro)||null,this._cdnCacheMetadata=n.get(No)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=Ge(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 Je(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"}(Co||(Co={}));function Do(e,t,n,i,r){var o=new Po(i),a=function(e,t,n){if(t){if(429===t||999===t)return Co.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Co.BLOCKED_BY_CLIENT_PROXY;if((i=t)>=400&&i<500)return Co.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Co.SERVER_ERROR;if(e.pointOfPresenceId)return Co.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return Co.TRAFFIC_AFD_TO_LI_POP_ERROR}return Co.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Co.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var i;if(n instanceof Error){if("AbortError"===n.name)return Co.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 Co.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 Co.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return Co.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return Co.NETWORK_ERROR}return Co.UNCLASSIFIED}(o,n,r),s=null;return a&&(s={errorType:a},a===Co.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))})),Qn("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;Xe(this,e),Qe(this,"core",void 0),Qe(this,"config",void 0),Qe(this,"collector",void 0),Qe(this,"boomerangStart",-1),Qe(this,"webVitalsObserver",void 0),Qe(this,"appMemoryObserver",void 0),Qe(this,"pageMemoryObserver",void 0),Qe(this,"liveTokens",new Set),Qe(this,"stateWM",new WeakMap),Qe(this,"activeToken",void 0),Qe(this,"isInitial",void 0),Qe(this,"pageLoadId",void 0),Qe(this,"initialResourcesEvents",[]),Qe(this,"responseRleCache",void 0),Qe(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),Qe(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),Qe(this,"isTracerEnabled",void 0),Qe(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({},Qi),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&&or.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 zr(this.isPEMTracerEnabled),this.collector=new Dr(i.host.api,new Wr(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(),Nn.before(kn,this.beforeHideHandlerBound)}Je(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:Ar(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:Ar(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Fr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Fr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Io(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=Ar(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 Qn("rum-end",rr)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=Do(t,n,i,r,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,De({nextHopProtocol:Wi.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){Qn("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=Hn(),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 Qn("PageLoadStartEvent",rr)}},{key:"destroy",value:function(){var e,t,n;Nn.offBefore(kn,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:Qn("PageLoadEndEvent",ir),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=Ge(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:De({},je(t,Ne)),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 Mo,Uo="undefined"!=typeof window&&"undefined"!=typeof performance,Fo="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Bo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",qo(n,t))}function qo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=S(document),i=I(document),r=Se();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 Ho(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=I(document),i={};n&&(i.interfaceLocale=n);const r={header:{},requestHeader:i,moduleNames:t};e.fireTrackingEvent("ViewModuleImpressionEvent",r)}function jo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.state&&e.state.currentPageInstance||{};let{trackingId:n}=t;return n&&!Go(n)&&e.convertUuidTrackingIdToBase64&&(n=e.convertUuidTrackingIdToBase64(n)),`${t.pageUrn};${n}`}function Go(e){return"string"==typeof e&&"=="===e.slice(-2)}function Wo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...e},n=p(window.location.href,"originalReferer")||p(window.location.href,"original_referer");return n&&(t.requestHeader={...t.requestHeader,referer:n}),zo(t)}function zo(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={...e},n=Se();return n&&(t.requestHeader={...t.requestHeader,theme:n.toUpperCase()}),t}!function(){function e(t,n){Xe(this,e),Qe(this,"trackingCore",void 0),Qe(this,"endPageInstance",void 0),Qe(this,"startPageInstance",void 0),Qe(this,"featureIdentifier",void 0),Qe(this,"marks",[]),Qe(this,"spans",[]),Qe(this,"spanStarts",new Map),Qe(this,"started",!1),Qe(this,"ended",!1),Qe(this,"featureKey",void 0),Qe(this,"productName",void 0),Qe(this,"flushOnEnd",void 0),Qe(this,"basePageTreeId",void 0),Qe(this,"debounceFlush",void 0),Qe(this,"disableAutoFlush",void 0),Qe(this,"isCanceled",!1),Qe(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}Je(e,[{key:"start",value:function(e){var t;if(Uo){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(Uo){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){Uo&&(this.marks.push({name:e,startTime:xr()}),Fo&&(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){Uo&&(this.spanStarts.set(e,xr()),Fo&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Uo&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e;this.spans.push({name:i,startTime:n,duration:xr()-n}),Fo&&(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){Uo&&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 xr()}},{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||Gn(et),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(Uo){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"}(Mo||(Mo={}));const{ENTER:Ko,ESCAPE:Vo}=O;class Xo{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 V(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=R(e.key),n=t===Ko&&document.activeElement===this._exitButtonEl;(t===Vo||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),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{Bo(e,"ajax",this._pageKey||""+this._el.id)}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(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),y(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 Yo{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 Xo(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 Jo{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 J(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 Yo(this.sidePanelEl))}}function Qo(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 $o=/ /g,Zo=/[\s\u0000<>"]|%00/,ea=/\\/,ta=/([.]|%2e){2}/i;let na=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 ia(e){let t;if("string"!=typeof e)return Qo("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(Qo("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace($o,"+")),!na.test(t))return Qo("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(Zo.test(t))return Qo("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?(Qo("jSecure Error: malformed url path detected: "+i),"invalid://"):ea.test(i)||ta.test(i)||ta.test(n)?(Qo("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const ra={redirect(e){window&&(window.location.href=e)}};function oa(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;return e.innerWidth<=769}function aa(e){return e.scrollHeight>e.offsetHeight}function sa(e,t){const n=u(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function ca(e){return e.classList.contains("hidden")}function la(e){da([e])}function ua(e){ha([e])}function da(e){sa(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function ha(e){sa(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function pa(e){if(!e)return"";return e.split("").map(e=>String.fromCharCode(e.charCodeAt(0)+17)).join("")}function fa(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function ga(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function va(){return document.documentElement.classList.contains("safari")}function ma(){return document.documentElement.classList.contains("ios")}const ya={EFFECTIVE_CONNECTION_TYPE:"x-effective-connection-type"};function Ea(){const e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return e&&e.effectiveType}function ba(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const i=T(document),r=Ea();return window.tracking.then(o=>(t=o.generateTrackingId(),Q(e,{...n,method:n.method||"GET",postData:"POST"===n.method&&n.postData?JSON.stringify(n.postData):null,headers:{"content-type":"application/json",[ya.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 wa(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&&aa(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 _a(e,t){return e.replace(new RegExp(t+"=[^&]*&?"),"").replace(new RegExp("[&?]$"),"")}function Ta(){if(!p(window.location.href,"pwa"))return;const e=_a(window.location.href,"pwa");window.history.replaceState({},document.title,e)}function Sa(){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 Ca(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 Ia(e){e&&(document.cookie=e+"=; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/;")}function ka(e,t,n,i){let r="";if(n){const e=new Date;e.setTime(e.getTime()+n),r="expires="+e.toUTCString()}m(e)&&Ia(e);const o=`${e}=${t};${r};path=/;${i?"domain=."+i:""}`,a=o+";secure;samesite=none";document.cookie=a,m(e)||(document.cookie=o)}function Aa(){const e=g(window.location.href,"pwa","noCache",!0);window.location.replace(e)}function xa(){let e=!1;try{(null===sessionStorage.getItem("previousPage")||1===window.history.length)&&(e=!0)}catch(e){}return e}function Oa(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 La(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 Ra=Object.freeze({__proto__:null,PREVIOUS_PAGE_KEY:"previousPage",NO_CACHE_PARAM_KEY:"pwa",NO_CACHE_PARAM_VALUE:"noCache",LAUNCHED_FROM_HOME_SCREEN:"launchedFromHomeScreen",isElementHidden:ca,hideElement:la,showElement:ua,hideElements:da,showElements:ha,conceal:pa,getCsrfToken:function(){let e=m("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:fa,enableButton:ga,isSafari:va,isIOS:ma,isMobile:function(){return document.documentElement.classList.contains("android")||ma()},getCurrentPage:function(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""},HEADERS:ya,getEffectiveConnectionType:Ea,requestJSONWithDefaultHeaders:ba,initExpandButton:wa,removeQueryParameter:_a,removeNoCacheParam:Ta,isLaunchedFromHomeScreen:Sa,removeHashFromUrl:Ca,deleteCookie:Ia,setCookie:ka,hardReloadPage:Aa,isFirstPageOfSession:xa,getMetaTagContent:Oa,setMetaTagContent:La,convertIdToUrn:function(e,t){return Boolean(e)&&Boolean(t)&&`urn:li:${t}:${e}`}});const Na={};function Pa(e){const t=document.getElementById(e);if(!t&&void 0!==Na[e])return Na[e];if(!t)return console.warn(`Element with id: ${e} not found`),Na[e]=null,Na[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):(Na[e]=n,t.parentNode.removeChild(t),Na[e])}const Da="prev",Ma="next";class Ua{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?(ua(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(la(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(U).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Da?this.prev():n===Ma&&this.next())}_fireScrollEvent(){y(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove("slide-list__indicator--selected"),e.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=Pa("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;y(this._el,"pagechange",{pageNumber:this._currentPage}),null===(e=this._slideListContainer)||void 0===e||e.focus()}}function Fa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ba(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,Ha(e,t,"get"))}function qa(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,Ha(e,t,"set"),n),n}function Ha(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function ja(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Ga(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wa(e,t,n){Ga(e,t),t.set(e,n)}function za(e,t){Ga(e,t),t.add(e)}var Ka=Object.hasOwnProperty,Va=Object.setPrototypeOf,Xa=Object.isFrozen,Ya=Object.getPrototypeOf,Ja=Object.getOwnPropertyDescriptor,Qa=Object.freeze,$a=Object.seal,Za=Object.create,es="undefined"!=typeof Reflect&&Reflect,ts=es.apply,ns=es.construct;ts||(ts=function(e,t,n){return e.apply(t,n)}),Qa||(Qa=function(e){return e}),$a||($a=function(e){return e}),ns||(ns=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 is,rs=fs(Array.prototype.forEach),os=fs(Array.prototype.pop),as=fs(Array.prototype.push),ss=fs(String.prototype.toLowerCase),cs=fs(String.prototype.match),ls=fs(String.prototype.replace),us=fs(String.prototype.indexOf),ds=fs(String.prototype.trim),hs=fs(RegExp.prototype.test),ps=(is=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ns(is,t)});function fs(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 ts(e,t,i)}}function gs(e,t){Va&&Va(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=ss(i);r!==i&&(Xa(t)||(t[n]=r),i=r)}e[i]=!0}return e}function vs(e){var t=Za(null),n=void 0;for(n in e)ts(Ka,e,[n])&&(t[n]=e[n]);return t}function ms(e,t){for(;null!==e;){var n=Ja(e,t);if(n){if(n.get)return fs(n.get);if("function"==typeof n.value)return fs(n.value)}e=Ya(e)}return function(e){return console.warn("fallback value for",e),null}}var ys=Qa(["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"]),Es=Qa(["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"]),bs=Qa(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),ws=Qa(["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"]),_s=Qa(["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"]),Ts=Qa(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ss=Qa(["#text"]),Cs=Qa(["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"]),Is=Qa(["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"]),ks=Qa(["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"]),As=Qa(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xs=$a(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Os=$a(/<%[\s\S]*|[\s\S]*%>/gm),Ls=$a(/^data-[\-\w.\u00B7-\uFFFF]/),Rs=$a(/^aria-[\-\w]+$/),Ns=$a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ps=$a(/^(?:\w+script|data):/i),Ds=$a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ms="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 Us(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 Fs=function(){return"undefined"==typeof window?null:window},Bs=function(e,t){if("object"!==(void 0===e?"undefined":Ms(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 qs=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fs(),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=ms(g,"cloneNode"),m=ms(g,"nextSibling"),y=ms(g,"childNodes"),E=ms(g,"parentNode");if("function"==typeof a){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=Bs(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=vs(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==x;var L=xs,R=Os,N=Ls,P=Rs,D=Ps,M=Ds,U=Ns,F=null,B=gs({},[].concat(Us(ys),Us(Es),Us(bs),Us(_s),Us(Ss))),q=null,H=gs({},[].concat(Us(Cs),Us(Is),Us(ks),Us(As))),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=gs({},["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=gs({},["audio","video","img","source","image","track"]),le=null,ue=gs({},["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":Ms(e))||(e={}),e=vs(e),F="ALLOWED_TAGS"in e?gs({},e.ALLOWED_TAGS):B,q="ALLOWED_ATTR"in e?gs({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?gs(vs(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?gs(vs(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?gs({},e.FORBID_CONTENTS):ae,G="FORBID_TAGS"in e?gs({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?gs({},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}:ss,X&&(K=!1),Z&&($=!0),re&&(F=gs({},[].concat(Us(Ss))),q=[],!0===re.html&&(gs(F,ys),gs(q,Cs)),!0===re.svg&&(gs(F,Es),gs(q,Is),gs(q,As)),!0===re.svgFilters&&(gs(F,bs),gs(q,Is),gs(q,As)),!0===re.mathMl&&(gs(F,_s),gs(q,ks),gs(q,As))),e.ADD_TAGS&&(F===B&&(F=vs(F)),gs(F,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=vs(q)),gs(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&gs(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=vs(oe)),gs(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),Y&&gs(F,["html","head","body"]),F.table&&(gs(F,["tbody"]),delete G.tbody),Qa&&Qa(e),be=e)},Se=gs({},["mi","mo","mn","ms","mtext"]),Ce=gs({},["foreignobject","desc","title","annotation-xml"]),Ie=gs({},Es);gs(Ie,bs),gs(Ie,ws);var ke=gs({},_s);gs(ke,Ts);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ss(e.tagName),i=ss(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=gs({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},xe=function(e){as(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{as(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){as(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=cs(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":Ms(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Ms(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,i){O[e]&&rs(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(cs(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))&&hs(/<[/\w]/g,e.innerHTML)&&hs(/<[/\w]/g,e.textContent))return xe(e),!0;if("select"===i&&hs(/<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&&hs(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||!hs(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=ls(t,L," "),t=ls(t,R," "),e.textContent!==t&&(as(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]&&hs(N,t));else if(z&&hs(P,t));else if(!q[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&hs(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&hs(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&hs(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(hs(U,ls(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==us(n,"data:")||!se[e]){if(V&&!hs(D,ls(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=ds(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(hs(/\/>/i,i))Oe(l,e);else{X&&(i=ls(i,L," "),i=ls(i,R," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),os(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 ps("toString is not a function");if("string"!=typeof(e=e.toString()))throw ps("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Ms(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 ps("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=ls(f,L," "),f=ls(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]||[],as(O[e],t))},n.removeHook=function(e){O[e]&&os(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const Hs={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function js(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Gs(null,e,t);return n.innerHTML}function Gs(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...Hs};r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=qs.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Ws=Object.freeze({__proto__:null,sanitizedMarkupOptions:Hs,getSanitizedMarkup:js,setSanitizedMarkup:Gs}),zs="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Ks=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Vs=["b","del","em","i","s","strong","sub","sup"],Xs=Vs.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"]),Ys=[zs,"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 Js(){}var Qs,$s,Zs=($s=/[&<>"'\u0000\\=]/g,Qs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace($s,(function(e){return Qs[e]}))}),ec=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[Ks],i[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var tc=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function nc(e){return/[<&]/.test(e)}var ic,rc=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 oc(e){e=tc(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",rc(e,(function(e,a){t=e.tags||Xs,n=e.attrs||Ys,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 ac(e){return oc({tags:e=e||Xs,checkUrlAttrs:!0})}function sc(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!ac(n).test(e):i?!sc.R_UNSAFE_CUSTOM_ELEMENT.test(e):!sc.R_UNSAFE_HTML.test(e)}function cc(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function lc(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 Js||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?Zs(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return nc(i)&&!sc(i,n)&&(i=cc(i),Qo("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function uc(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}sc.R_UNSAFE_HTML=ac(),sc.R_UNSAFE_CUSTOM_ELEMENT=oc([{tags:Xs,checkUrlAttrs:!0},{tags:[(ic={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[zs,ic.attrs].join("|"),checkUrlAttrs:!1}]);var dc={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,"",""]};dc.optgroup=dc.option,dc.tbody=dc.tfoot=dc.colgroup=dc.caption=dc.thead,dc.th=dc.td;var hc=/<([\w:]+)/;function pc(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=(hc.exec(o)||["",""])[1].toLowerCase(),vc(r,(i=dc[n]||dc._default)[1]+o+i[2]),s=i[0];s--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);uc(u,r.childNodes),(r=l.firstChild).textContent=""}else uc(u,o.nodeType?[o]:o);for(l.textContent="",o=u[a=0];o;)l.appendChild(o),o=u[++a];return l}var fc=lc,gc=lc;function vc(e,t,n){var i=lc(t,n);return nc(i)?e.innerHTML=i:e[Ks]=i,i}function mc(e,t){if(!(this instanceof mc))return new mc(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}mc.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Js,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(sc(e,this._options)||(n=e,e=cc(e),Qo("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var yc={ALLOWED_TAGS:Xs,FORMATTING_TAGS:Vs,htmlEncode:Zs,htmlUnencode:ec,log:Qo,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 mc?r:Zs(r))})),gc(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=pc([e],t);else{if(!tc(e))return e;n=pc(e,t)}return uc([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:fc,reEncode:function(e){return Zs(ec(e))},_redirector:ra,redirect:function(e){const t=ia(e);t===e&&ra.redirect(t)},sanitizeHTML:gc,sanitizeUrl:ia,setElementContent:vc,text:function(e){return Qo("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Zs(e)},unsafe:function(e){return e},UnsafeString:mc};const Ec='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 bc(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&&Tc(e)),r=n.concat(i);return t.parentElement===document.body?r:e(t.parentElement,r)}(t);if(!t)throw new Error("Could not initialize focus-trapping - Element Missing");if(n&&!(n instanceof Function))throw new Error("Could not initialize focus-trapping - `config.escCallback` is not a function");G(function(e){let t="";const n=e.getAttribute("role"),i=e.getAttribute("aria-labelledby"),r=e.getAttribute("aria-describedby"),o=e.dataset.primaryActionLabel,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),j.ASSERTIVE),wc(r,!0);const o=t.querySelectorAll(Ec);let a;if(o.length>0){const e=o[0],r=o[o.length-1];_c(i||e),a=function(t){t.key===O.TAB?t.shiftKey&&document.activeElement===e?(t.preventDefault(),r.focus()):t.shiftKey||document.activeElement!==r||(t.preventDefault(),e.focus()):t.key===O.ESCAPE&&n&&n(t)},t.addEventListener("keydown",a)}return function(){a&&t.removeEventListener("keydown",a),G(),wc(r)}}function wc(){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 _c(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 Tc(e){return H.indexOf(e.nodeName.toUpperCase())<0&&!e.getAttribute("aria-live")&&"true"!==e.getAttribute("aria-hidden")}const Sc=".toast",Cc=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class Ic{constructor(){let{removeToastCallback:e=(()=>{}),visibleToastCallback:t=(()=>{}),customToastSelector:n=Sc}=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(Cc).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]:Sc;let t=this._el.querySelectorAll(e);Array.from(t).forEach(e=>{this._removeToast(e)})}bindEvents(e){this._el.addEventListener("click",t=>{const n=r(t.target,".toast__dismiss-btn");if(n){const t=r(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),o=document.querySelector("#toast-icon-"+e).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--"+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",n+"_dismiss");const s=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===Cc.CAUTION?c="text-color-text-caution":e===Cc.ERROR?c="text-color-text-negative":e===Cc.SUCCESS&&(c="text-color-text-positive"),s.classList.add(c),Gs(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",yc.sanitizeUrl(f(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){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&&_c(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()})}}Fa(Ic,"TOAST_TYPES",Cc),Fa(Ic,"TOAST_ADD_TIMEOUT",500);const kc={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"},Ac=Object.keys(kc).map(e=>kc[e]);class xc{constructor(e){let{globalNavigator:t=navigator,globalWindow:n=window,globalDocument:i=document,shareTriggerElement:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No element passed in");this.navigator=t,this.window=n,this.document=i,this.shareTriggerElement=r,this.el=e,this._encodedShareMessage=this.window.encodeURIComponent(this.el.getAttribute("data-share-message"))||"",this._nonEncodedShareUrl=this.el.getAttribute("data-share-url")||this.window.location.href,this._encodedShareUrl=this._nonEncodedShareUrl&&this.window.encodeURIComponent(this._nonEncodedShareUrl)}init(e,t){e.addEventListener("click",e=>{let{target:n}=e;const i=n.classList.contains(t)?n:r(n,"."+t);i&&this.share(i.dataset.shareService)})}_getServiceUrl(e){this.checkAndUpdateUtm(e);const t={linkedin:`https://www.${k(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 Pa("disableLinkedinShareRedirectLink")&&"linkedin"===e?Pa("isGuest")?(this.window.location.href=this._updateSignInUrlWithParams(Pa("signInUrl")),""):"":t[e]||""}_updateSignInUrlWithParams(e){const t=new URL(e),n=t.searchParams,i=g(n.get("session_redirect"),"openShareModal",!0);return n.set("session_redirect",i),t.toString()}share(e){if(Ac.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 Ic({removeToastCallback:this.removeToastCallback.bind(this)});i.clearAllToasts();const r=t?"error":"success";i.trigger(r,Pa("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 Oc extends xc{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 J(e,{dropdownTriggerEl:this.socialShareButton}),super.init(this.dropdown,this.itemClassName)}}const Lc=["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(Lc,"i");const Rc=Object.freeze({VERTICAL:"4:5",HORIZONTAL:"16:9",SQUARED:"1:1"});var Nc=new WeakMap,Pc=new WeakMap,Dc=new WeakMap,Mc=new WeakMap,Uc=new WeakSet,Fc=new WeakSet,Bc=new WeakMap,qc=new WeakSet,Hc=new WeakMap,jc=new WeakMap;class Gc{get shouldAutoplay(){return Ba(this,Nc).hasAttribute("data-is-autoplay-enabled")}get shouldAutoloop(){return this.shouldAutoplay&&Ba(this,Nc).hasAttribute("data-is-autoloop-enabled")}get isVideoSponsored(){return Ba(this,Nc).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;za(this,qc),za(this,Fc),za(this,Uc),Wa(this,Nc,{writable:!0,value:void 0}),Wa(this,Pc,{writable:!0,value:void 0}),Wa(this,Dc,{writable:!0,value:0}),Wa(this,Mc,{writable:!0,value:0}),Wa(this,Bc,{writable:!0,value:(e,t)=>{const{autoPlayExposeRatio:n}=this,i=e=>e.forEach(e=>{e.intersectionRatio>=n?Ba(this,Hc).call(this):Ba(this,jc).call(this)}),r={threshold:n};e&&t&&(this.intersectionObserverInstance&&this.intersectionObserverInstance.disconnect(),this.intersectionObserverInstance=new e(i,r),this.intersectionObserverInstance.observe(t))}}),Wa(this,Hc,{writable:!0,value:()=>{var e;null===(e=Ba(this,Pc))||void 0===e||e.play()}}),Wa(this,jc,{writable:!0,value:()=>{var e;null===(e=Ba(this,Pc))||void 0===e||e.pause(),qa(this,Mc,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?Rc.VERTICAL:e>1?Rc.HORIZONTAL:Rc.SQUARED}(u);e&&(t.aspectRatio=e)}qa(this,Nc,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=ja(this,Uc,Wc).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),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=T(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}getSetupAutoPlayPromise(){return this._setupAutoPlayPromise}_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 Wc(e){return this.getPlayerPromise().then(t=>{qa(this,Pc,t),this.shouldAutoplay&&(t.muted(!0),Ba(this,Bc).call(this,e,t.el()),ja(this,qc,Kc).call(this)),this.shouldAutoloop&&ja(this,Fc,zc).call(this,t)})}function zc(e){e.on("durationchange",()=>{var t;const n=null===(t=e.duration)||void 0===t?void 0:t.call(e);isNaN(n)||qa(this,Dc,n)}),e.on("ended",()=>{qa(this,Mc,Ba(this,Mc)+Ba(this,Dc)),Ba(this,Dc)&&Ba(this,Mc)<30&&e.play()})}function Kc(){this.document&&this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState?Ba(this,Hc).call(this):Ba(this,jc).call(this)})}class Vc{constructor(e){let{scrollThreshold:t=50,hideOnScrollBack:n=!1,hideOnScrollDown:i=!1,isBottom:r=!0,exposeStickyState:a=!1,marginApplied:s=!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=a,this._scrollListener=v(this._onScroll.bind(this),c),this.marginApplied=s,this.previousScrollPosition=window.pageYOffset,this._setSpacingBound=this._setSpacing.bind(this),this.isPositionSticky=l,this._setupResizeListener(),o(()=>{this.originalMarginTop=parseInt(window.getComputedStyle(document.body).marginTop)||0,this.originalMarginBottom=parseInt(window.getComputedStyle(document.body).marginBottom)||0,this._setSpacing(!0),this._doesPageHaveEnoughScroll()?window.addEventListener("scroll",this._scrollListener):this.hideOnScrollBack||this.show()})}reactivate(){this._setupResizeListener(),this._setSpacing()}deactivate(){this._removeResizeListener(),this._resetSpacing()}_setupResizeListener(){Y()||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"),y(this.el,"show")}hide(){this.el.classList.remove("show"),y(this.el,"hide")}_onScroll(){const e=window.pageYOffset;e>this.scrollThreshold?(this.hideOnScrollBack||this.hideOnScrollDown||this.exposeStickyState||window.removeEventListener("scroll",this._scrollListener),this.hideOnScrollDown?this.hide():this.show(),this.exposeStickyState&&this.el.classList.add("stuck")):(this.hideOnScrollBack&&this.hide(),this.exposeStickyState&&this.el.classList.remove("stuck")),this.previousScrollPosition>e&&this.hideOnScrollDown&&this.show(),this.previousScrollPosition=e}}let Xc;const Yc=new Uint8Array(16);function Jc(){if(!Xc&&(Xc="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Xc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xc(Yc)}const Qc=[];for(let e=0;e<256;++e)Qc.push((e+256).toString(16).slice(1));var $c={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Zc(e,t,n){if($c.randomUUID&&!t&&!e)return $c.randomUUID();const i=(e=e||{}).random||(e.rng||Jc)();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(Qc[e[t+0]]+Qc[e[t+1]]+Qc[e[t+2]]+Qc[e[t+3]]+"-"+Qc[e[t+4]]+Qc[e[t+5]]+"-"+Qc[e[t+6]]+Qc[e[t+7]]+"-"+Qc[e[t+8]]+Qc[e[t+9]]+"-"+Qc[e[t+10]]+Qc[e[t+11]]+Qc[e[t+12]]+Qc[e[t+13]]+Qc[e[t+14]]+Qc[e[t+15]]).toLowerCase()}(i)}class el{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=Pa(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 tl(){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=T(document);if(!o)throw new Error("Missing pageKey for graphQL request from browser");return Q(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:i,pageKey:o}),...r})}class nl{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 tl({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 il extends nl{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:il.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})}}Fa(il,"query","2849bb08e3a3bbd23c96c0e758c018b7");class rl extends nl{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:rl.query,variables:{url:e},successCallback:t,failureCallback:n})}}Fa(rl,"query","bece320b5f70fe4357082fe84eca6c56");const ol="loader--absolute",al="loader--show",sl="loader--full-screen",cl="no-scroll",ll="loader-wrapper";class ul{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(ol),window.addEventListener("pagehide",e=>{let{persisted:t}=e;t&&this.hide()})}show(){this.el.classList.add(al),this.el.classList.contains(sl)&&document.body.classList.add(cl),this.isAbsoluteVariant&&this.wrapperEl.classList.add(ll)}hide(){this.el.classList.remove(al),document.body.classList.remove(cl),this.isAbsoluteVariant&&this.wrapperEl.classList.remove(ll)}}const dl="dismissable-input",hl="dismissable-input--focus",pl="dismissable-input__button",fl="dismissable-input__button--show",gl="dismissable-input__input";class vl{constructor(e){this.el=e,this._input=this.el.querySelector("."+gl),this._dismissButtonEl=this.el.querySelector("."+pl),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(hl),this._updateDismissButton(),y(this._input,"dismissableInputFocused")}_updateDismissButton(){this._isDismissable&&(this._input.value.length?(this._showDismissButton(),this._dismissButtonEl.disabled=!1):(this._hideDismissButton(),this._dismissButtonEl.disabled=!0))}_hideDismissButton(){this._dismissButtonEl.classList.remove(fl)}_showDismissButton(){this._dismissButtonEl.classList.add(fl)}_onInputBlur(){this.el.classList.remove(hl)}clear(){this._input.value="",setTimeout(()=>{this._input.focus()},300),y(this.el,"clear")}}const ml={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"},yl="i18n_aria_live_text_no-suggestions",El="i18n_aria_live_text_one-suggestion",bl="i18n_aria_live_text_multiple-suggestions",wl=500;class _l{constructor(e,t){let{createDismissableInput:n,elementClasses:i=ml,generateApiUrl:r,liveTextEl:o,liveTextClearTime:a=wl,onSelect:s,onInput:c=(()=>{}),inputEl:l,dropdownContainerEl:u,dropdownListEl:d,isFullPageTypeahead:h,closeOnEscape:p=!1,debounceTime:f=wl}=t;this.el=e,this._liveTextClearTime=a,this._elementClasses=i,this._closeOnEscape=p,this._input=l||this.el.querySelector("."+gl),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 vl(this.el)),this.isFullPageTypeahead=h,this._getLiveTextOptions(),this._resetState(),this._attachEventListeners(),this._requestHandler=v(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(R(e.key)){case O.ARROW_DOWN:e.preventDefault(),this._moveToResult(1);break;case O.ARROW_UP:e.preventDefault(),this._moveToResult(-1);break;case O.ESCAPE:this._closeOnEscape&&this._hideList();break;case O.ENTER:this._checkForListItemSelect(e)}}_moveToResult(e){if(0===this._dropdownListItemEls.length)return;const t=-1===e?-1:0;let n=null===this._highlighted.index?t:this._highlighted.index+e;n<0&&(n=this._dropdownListItemEls.length-1),n>=this._dropdownListItemEls.length&&(n=0),this._setHighlightedEl(n)}_setHighlightedEl(e){this._highlighted&&this._highlighted.el&&(this._highlighted.el.classList.remove(this._elementClasses.listItemFocus),this._highlighted.el.setAttribute("aria-selected",!1)),null===e?(this._highlighted={el:null,index:null},this._input.removeAttribute("aria-activedescendant")):(this._highlighted.el=this._dropdownListItemEls[e],this._highlighted.index=e,this._highlighted.el.setAttribute("aria-selected",!0),this._highlighted.el.classList.add(this._elementClasses.listItemFocus),this._input.setAttribute("aria-activedescendant",this._highlighted.el.id))}_isInputValid(){return this._input.value.length>0}_onUserInput(e){this._onInput(e),this._isInputValid()?this._requestHandler():this._hideList()}_getAndApplyResults(){if(this._isInputValid()){const e=this._input.value;this._makeTypeaheadRequest(e).then(e=>this._appendResults(e)).then(()=>this._showList())}}_makeTypeaheadRequest(e){return Q(this._generateApiUrl(e),{sendCookies:!1}).then(e=>e&&JSON.parse(e.responseText)||[])}_getItemEl(){return document.importNode(this._typeaheadItemTemplate.content,!0)}_appendResults(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._hideList(),e.forEach((e,t)=>{const n=this._getItemEl(),i=n.querySelector("."+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=u(this._dropdownListEl.children)}_shouldShowList(){return this._dropdownListItemEls.length>0&&this._isInputValid()}_showList(){this._shouldShowList()?(this._dropdownContainerEl.classList.add(this._elementClasses.showList),document.body.addEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!0)):(this._hideList(),this._setExpandedState(!1)),this._setLiveText()}_hideList(){if(this._isListActive()){for(;this._dropdownListEl.firstChild;)this._dropdownListEl.removeChild(this._dropdownListEl.firstChild);this._resetState(),this._dropdownContainerEl.classList.remove(this._elementClasses.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler)}}_onClear(){this.hideListHandler()}_checkForListItemSelect(e){if(!this._isListActive())return;const t="mousedown"===e.type?e.target:this._highlighted.el;if(!t)return;e.preventDefault();const n=t.classList.contains(this._elementClasses.dropdownText)?t:t.querySelector("."+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=Pa(yl),this._liveTextOneSuggestion=Pa(El),this._liveTextMultipleSuggestions=Pa(bl)}_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 Tl{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 V(this.expandedEl))}showExpandedSearch(){this.isExpanded=!0,this.isMobileDevice&&(this.focusTrap.init(),this.placeholderEl.classList.add("hidden")),this.placeholderEl.classList.remove("show-on-mobile"),this.placeholderEl.classList.add("hide-on-mobile"),this.expandedEl.classList.add("isExpanded"),document.body.classList.add("no-scroll"),this.isIOSDevice&&(document.body.classList.add("fixed"),this.expandedEl.addEventListener("touchstart",this._onIOSTouchStartEvent)),document.addEventListener("keyup",this._onKeyUpEvent.bind(this)),this.firstInput.focus()}hideExpandedSearch(){this.firstInput.blur(),this.isExpanded=!1,this.isMobileDevice&&(this.focusTrap.tearDown(),this.placeholderEl.classList.remove("hidden")),this.expandedEl.classList.remove("isExpanded"),this.placeholderEl.classList.remove("hide-on-mobile"),this.placeholderEl.classList.add("show-on-mobile"),document.body.classList.remove("no-scroll"),this.isIOSDevice&&(document.body.classList.remove("fixed"),this.expandedEl.removeEventListener("touchstart",this._onIOSTouchStartEvent)),document.removeEventListener("keyup",this._onKeyUpEvent),this.placeholderEl.focus(),this.onCloseExpandedSearch()}_onKeyUpEvent(e){const{key:t,target:n}=e,i="Escape"===t,r="INPUT"===n.tagName;i&&!r?(e.preventDefault(),this.hideExpandedSearch()):"Tab"===t&&this._userIsTabbedOut()&&this.hideExpandedSearch()}_onIOSTouchStartEvent(e){const{target:t}=e;r(t,"."+ml.block)||document.activeElement.blur()}_userIsTabbedOut(){if(this.expandedEl.classList.contains("isExpanded")&&oa()){return!this.expandedEl.contains(document.activeElement)}return!1}}class Sl extends _l{constructor(e,t){let{generateApiUrl:n,liveTextEl:i,onSelect:r,onInput:o,isFullPageTypeahead:a,liveTextClearTime:s=wl,debounceTime:c=wl}=t;super(e,{createDismissableInput:!0,generateApiUrl:n,liveTextEl:i,liveTextClearTime:s,onSelect:r,onInput:o,isFullPageTypeahead:a,debounceTime:c})}}const Cl={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"},Il="i18n_aria_live_text_recent-searches-one-suggestion",kl="i18n_aria_live_text_recent-searches-multiple-suggestions",Al="i18n_aria_live_text_recent-searches-cleared";class xl extends _l{constructor(e,t){let{liveTextEl:n,clearRecentSearchApiBaseUrl:i}=t;if(super(e,{liveTextEl:n,elementClasses:Cl,liveTextClearTime:1e3,closeOnEscape:!0}),!e)throw Error("An element must be provided to RecentSearches");if(this.dropdownContainerEl=e.querySelector("."+Cl.dropdown),!this.dropdownContainerEl)throw Error("A RecentSearches container element must be in the RecentSearches parent element");this._clearRecentSearchApiBaseUrl=i,this._dropdownListItemEls=u(this.dropdownContainerEl.querySelectorAll("."+Cl.listItem)),this._clearBtnItem=e.querySelector("."+Cl.listItemClearButton),this._dropdownListItemEls.push(this._clearBtnItem),this._dismissButtonEl=e.querySelector("."+pl)}_attachEventListeners(){this._clearBtn=this.el.querySelector("."+Cl.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("."+Cl.listItemLink);n?this._redirect(n):t.classList.contains(Cl.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(Cl.showList),document.body.removeEventListener("click",this._boundClickOutsideToCloseHandler),this._setExpandedState(!1),this._setHighlightedEl(null))}_getLiveTextOptions(){this._liveTextOneSuggestion=Pa(Il),this._liveTextMultipleSuggestions=Pa(kl),this._liveTextClearedSuggestions=Pa(Al)}_getLiveText(){let e;switch(this._informUserThatSearchesAreCleared?0:this._dropdownListItemEls.length){case 0:e=this._liveTextClearedSuggestions,this._informUserThatSearchesAreCleared=!1;break;case 2:e=this._liveTextOneSuggestion;break;default:e=this._liveTextMultipleSuggestions}return e}_clearRecentSearches(){Q(this._clearRecentSearchApiBaseUrl,{method:"DELETE"}).then(()=>{this._removeEventListeners(),this._informUserThatSearchesAreCleared=!0,super._hideList(),super._setLiveText()}).catch(e=>{throw e})}}class Ol{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 J(this.switcherTriggerAndTabs,{dropdownContentEl:this.dropdownList,dropdownTriggerEl:this.dropdownTrigger}),this.switcherTriggerAndTabs.addEventListener("open",()=>this._openSwitcher()),this.switcherTriggerAndTabs.addEventListener("close",()=>this._closeSwitcher()),this._updatePlaceholderText()}_openSwitcher(){this.dropdownList.addEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.remove("hidden"),this.dropdownList.querySelector("button").focus()}_closeSwitcher(){this.dropdownList.removeEventListener("click",this._handleSwitcherClick),this.switcherTabs.classList.add("hidden")}_handleSwitcherClick(e){if(!e.target.classList.contains("switcher-tabs__button")&&!e.target.classList.contains("switcher-tabs__tab"))return;const t=r(e.target,".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(r(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 Ll{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=u(this.el.querySelectorAll(".base-search-bar")).reduce((e,t)=>{const n=new Tl(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 Sl(e,{generateApiUrl:this._generateKeywordsTypeaheadApiUrl.bind(this),liveTextEl:a,onSelect:this._onKeywordsTypeaheadSelect.bind(this)});e.querySelector("."+Cl.dropdown)&&new xl(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:a}),new Sl(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(`.${dl}.search-input`)).forEach(e=>{new vl(e);e.querySelector("."+Cl.dropdown)&&new xl(e,{clearRecentSearchApiBaseUrl:n,liveTextEl:a})}),this._addCustomErrorStateHandler()}else Array.from(this.el.querySelectorAll("."+dl)).forEach(e=>new vl(e));o&&(this.switcher=new Ol(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:${T(document)}-${t}`})})})}}class Rl extends Xo{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 Nl(e){return Q(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 Pl(e){let{jsUrl:t,cssUrl:n}=e;const i=[];return t&&i.push(function(e){return Nl(e).then(()=>{const t=document.createElement("script");return t.setAttribute("type","text/javascript"),new Promise(n=>{t.onload=()=>n(),t.src=js(e),document.body.appendChild(t)})})}(t)),n&&i.push(function(e){return Nl(e).then(e=>{if(e.length>0){const t=document.createElement("style");t.textContent=e,document.head.appendChild(t)}})}(n)),Promise.all(i)}function Dl(e){return Pl(e)}const Ml={};function Ul(e){return Ml[e]?Promise.resolve(Ml[e]):Q("/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("_");Ml[t]={...Ml[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 Fl(){const e=window.blendedTypeaheadModule;return e?Promise.resolve(e):Ul("blendedTypeahead").then(e=>{let{jsUrl:t,cssUrl:n}=e;return Dl({jsUrl:t,cssUrl:n}).then(()=>window.blendedTypeaheadModule)})}document.querySelector.bind(document);String.fromCharCode(32);T(document);String.fromCharCode(32);class Bl{constructor(e,t){let{isShown:n=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e)throw Error("An element must be provided to the dismissable element");if(!t)throw Error("A dismiss button must be provided to the dismissable element");this.el=e,this.dismissBtn=t,this._dismissEvent=e=>this.dismiss(e),n&&this.show()}show(){this.el.classList.add("show"),this.el.classList.remove("dismiss"),this.dismissBtn.addEventListener("click",this._dismissEvent),y(this.el,"show")}dismiss(e){this.el.classList.remove("show"),this.el.classList.add("dismiss"),y(this.el,"dismiss",e),this.dismissBtn.removeEventListener("click",this._dismissEvent)}}function ql(){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});Q(e,{method:"POST",headers:{"Content-Type":"application/json"},postData:i})}const Hl=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,jl=/(.)\1{3}/,Gl=/linkedin/i,Wl=/\d\d/,zl=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]+)?(/.*)?"),Kl=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Vl=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,Xl=/^[ぁ-ゔゞ゛゜ー]*$/,Yl=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,Jl=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},Ql=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},$l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Wl.test(e)};$l.errorMessagePrefix="i18n_noConsecutiveDigits_";const Zl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Hl.test(e)};Zl.errorMessagePrefix="i18n_noForbiddenCharacters_";const eu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!jl.test(e)};eu.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const tu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Gl.test(e)};tu.errorMessagePrefix="i18n_noLinkedIn_";const nu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!zl.test(e)};nu.errorMessagePrefix="i18n_noUrl_";const iu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Vl.test(e)};iu.errorMessagePrefix="i18n_onlyChinese_";const ru=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Xl.test(e)};ru.errorMessagePrefix="i18n_onlyPhonetic_";const ou=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};ou.errorMessagePrefix="i18n_required_";const au=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Kl.test(e)};au.errorMessagePrefix="i18n_invalidFormat_";const su=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Yl.test(e)};su.errorMessagePrefix="i18n_invalidFormat_";const cu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Kl.test(e)||Yl.test(e)};cu.errorMessagePrefix="i18n_invalidFormat_";const lu=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};lu.errorMessagePrefix="i18n_required_";const uu=[Jl(50),Zl,$l,eu,tu,nu],du=[ou].concat(uu),hu=[ru,Jl(50),eu];Jl(4),Ql(2),Jl(128),Jl(128),Jl(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(au),Ql(6),Jl(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 pu="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",fu={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},gu={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},vu={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},mu={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},yu={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:Eu,GOOGLE_USER_FETCHED:bu,INITIALIZED:wu}=fu,{INITIALIZATION:_u,AUTHENTICATION:Tu}=gu;EventTarget;const{GOOGLE_USER_FETCHED:Su,PROMPT_MOMENT:Cu,GOOGLE_ERROR:Iu}=fu;EventTarget;var ku={exports:{}};function Au(e){this.message=e}Au.prototype=new Error,Au.prototype.name="InvalidCharacterError";var xu="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Au("'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 Ou=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(xu(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 xu(t)}};function Lu(e){this.message=e}Lu.prototype=new Error,Lu.prototype.name="InvalidTokenError",ku.exports=function(e,t){if("string"!=typeof e)throw new Lu("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Ou(e.split(".")[n]))}catch(e){throw new Lu("Invalid token specified: "+e.message)}},ku.exports.InvalidTokenError=Lu;ku.exports;const{GOOGLE_USER_FETCHED:Ru,PROMPT_MOMENT:Nu,GOOGLE_ERROR:Pu}=fu;EventTarget;const Du={CLIENT_ID:pu,EVENTS:fu,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:gu,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:vu,GOT_PROMPT_MOMENT_REASONS:yu,GOT_PROMPT_MOMENT_TYPES:mu},{GOT_PROMPT_MOMENT_REASONS:Mu,GOT_PROMPT_MOMENT_TYPES:Uu}=Du;const{EVENTS:{GOOGLE_ERROR:Fu,GOOGLE_USER_FETCHED:Bu,INITIALIZED:qu,PROMPT_MOMENT:Hu},GOT_PROMPT_MOMENT_REASONS:ju,GOT_PROMPT_MOMENT_TYPES:Gu}=Du;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);const Wu="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var zu;!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"}(zu||(zu={}));const Ku=new Set(Object.values(zu));class Vu extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Vu.prototype)}}function Xu(e){return 0===e.length||!e.trim()}function Yu(e){if("string"!=typeof e)throw new Vu(`Keys must be strings. ${Wu}.`);if(Xu(e))throw new Vu(`Keys should not be blank. ${Wu}.`);if(/[^a-z0-9-]/.test(e))throw new Vu(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Wu}.`);return e}class Ju{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Yu(e),this._defaultDegradationKey=Yu(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new Vu(`DegradationTrackingMetadata options should be an object. ${Wu}.`);const a=n.productName;a&&(this._productName=function(e){if("string"!=typeof e)throw new Vu(`The product name must be a string. ${Wu}.`);if(Xu(e))throw new Vu(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Wu}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new Vu(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Wu}.`);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 Vu(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Wu}.`);var n;if(429===e||999===e)throw new Vu(`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===zu.NonDegradedResponseCodes&&e>=400&&e<500)throw new Vu(`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 ${zu.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${zu.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`)};if(void 0!==e&&!Array.isArray(e))throw new Vu(`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 ${zu.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`);if(void 0!==t&&!Array.isArray(t))throw new Vu(`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 ${zu.AdditionalDegradedResponseCodes} option. ${Wu}.`);null==e||e.forEach(e=>n(e,zu.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,zu.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new Vu(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Wu}.`)}(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(!Ku.has(e))throw new Vu(`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(Ju.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 Qu=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$u=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}}(),Zu=function(){function e(){Qu(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 $u(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}(),ed=function(){function e(){Qu(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return $u(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}(),td=function(){function e(){Qu(this,e),this.PREFIX="dcts-",this.CPR=new ed}return $u(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(){Qu(this,e),this.processor=new td,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new Zu,this.workerThread=null,this.events=[]}$u(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:nd,GOT_CONTEXTS:id,GOT_PROMPT_MOMENT_TYPES:rd}=Du,{GOOGLE_USER_FETCHED:od,PROMPT_MOMENT:ad}=nd;function sd(){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 cd(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 ld(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 ud={session_key:[sd(),cd(3),ld(128)],session_password:[sd(),cd(6),ld(400)]};function dd(e,t){const n=ud[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 hd="undefined"!=typeof window&&window||e;const pd=/^((?!\.(stg|corp)).)*\.linkedin\.(com|cn)$/,fd=["twclid","clickid","fbclid"];function gd(){const e=hd.location?hd.location.hostname:"";return pd.test(e)}function vd(){return gd()?yd()?"platform.linkedin.cn":"platform.linkedin.com":yd()?"platform.linkedin-ei.cn":"platform.linkedin-ei.com"}function md(){return gd()?yd()?"www.linkedin.cn":"www.linkedin.com":yd()?"www.linkedin-ei.cn":"www.linkedin-ei.com"}function yd(){const e=hd.location?hd.location.hostname:"";return/\.cn$/.test(e)}function Ed(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 hd.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 bd(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 hd.XMLHttpRequest;a.withCredentials=r,a.open("POST",e,!0);const s={"Content-Type":"application/json","Csrf-Token":wd()},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 wd(){const e=document.cookie.match(/JSESSIONID="?([^";]+)"?/);return e&&e[1]||""}function _d(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 Td(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sd(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,Ad(i.key),i)}}function Cd(e,t,n){return t&&Sd(e.prototype,t),n&&Sd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Id(e,t,n){return(t=Ad(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kd(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){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 _d(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)?_d(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 Ad(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 xd(e){return(xd="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 Od=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Ld=/^fs_/;function Rd(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+xd(e)+".");var t,n,i=Od.exec(e);return i&&(t=i[1].replace(Ld,""),n=i[2]),{id:n,type:t}}var Nd=/(?![^(]*\)),/;var Pd={checkForEntityId:function(e){var t=Od.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:Rd,urnToObject:function e(t){var n=Rd(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Nd),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}},Dd=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null};var Md={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Ud="GUEST",Fd="MEMBER",Bd="ENTERPRISE_UNBOUND",qd=0,Hd=1,jd=2,Gd=Id(Id(Id({},Ud,"li_gc"),Fd,"li_mc"),Bd,"li_ec");Id(Id(Id({},Ud,"mypreferences/g/guest-cookies"),Fd,"settings/member-cookies"),Bd,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var Wd,zd,Kd,Vd,Xd=Cd((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 Td(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Md)t[o]=t[o]||qd,t[o]!==qd&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Hd||t[o]===qd&&r===Hd})),Yd=(Wd=[Md.ADVERTISING,Md.ANALYTICS_AND_RESEARCH,Md.FUNCTIONAL],zd=[qd,Hd,jd,qd],Kd=function(e){for(var t={},n=0;n<Wd.length;n++)t[Wd[n]]=zd[e>>2*n&3];return t},Vd=function(e){var t=qd;return e>=0&&e<=3&&(t=zd[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 Xd};var r=Kd(parseInt(i[1],10)),o=new Date(1e3*parseInt(i[2],10)),a=Vd(parseInt(i[3],10));return{error:null,consent:new Xd(r,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var i=function(e){try{var t=Pd.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 Xd};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 Xd};var c=s[1].split("|").map((function(e){return e.split(",").map((function(e){return parseInt(e,10)}))})).filter((function(e){var t=kd(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 Xd};var l=Kd(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=Vd(parseInt(s[3],10));return{error:null,consent:new Xd(l,u,Bd,d)}}}),Jd=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),Qd=function(e,t,n,i){var r=Dd(Gd[e],t);return r?eh(r,e,n,i):Dd(Gd[Ud],t)||Dd(Gd[Fd],t)||Dd(Gd[Bd],t)?$d(jd):$d(Hd)},$d=function(e){var t={};for(var n in Md)t[n]=e;return{error:null,consent:new Xd(t,null,null,e)}},Zd=function(){return"undefined"==typeof document},eh=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(Jd)}catch(e){}if(!a)return{error:"Invalid consent encoding",consent:new Xd};var s=parseInt(a[1],10),c=a[2];switch(s){case 1:return t===Bd?Yd.parseConsentBodyEnterpriseUnbound(c,n,r):Yd.parseConsentBody(c,t);default:return{error:"Invalid encoded consent version ".concat(s),consent:new Xd}}},th=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(Zd())return{error:"cookie string must be provided in SSR mode",consent:new Xd};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 Xd};if(!(e!==Bd||i&&r))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new Xd};if(!e){var o=Dd(Gd[Bd],t);if(o&&i&&r){var a=eh(o,Bd,i,r),s=a.consent.userMode===Bd;if(s||a.error)return a}e=Dd("liap",t)?Dd(Gd[Fd],t)?Fd:Ud:Dd(Gd[Ud],t)?Ud:Fd}return Qd(e,t,i,r)},nh={SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"},ih=0,rh=1;function oh(e){let{userSettings:t,enterpriseContext:n={}}=e;return function(e){let t=th(null,void 0,e);return!t||t.consent.optedInConsentMap.ADVERTISING}(n)&&function(e){return e["compliance.isGDPROptIn"]}(t)}function ah(e){let{userSettings:t,enterpriseContext:n={}}=e;return function(e){let t=th(null,void 0,e);return!t||t.consent.optedInConsentMap.ANALYTICS_AND_RESEARCH}(n)}function sh(e){let{userSettings:t,enterpriseContext:n={}}=e;return function(e){let t=th(null,void 0,e);return!t||t.consent.optedInConsentMap.FUNCTIONAL}(n)}function ch(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 lh(e){const t=new hd.Date;t.setSeconds(0),t.setMilliseconds(0);const n=Math.floor(t.getMinutes()/e)*e;return t.setMinutes(n),t.getTime()}function uh(){return/utagdb=[^;]+/.test(hd.document.cookie)}let dh;Cd((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?ih:a;for(var c in Td(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},nh)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===rh}));const hh={},ph={},fh={};function gh(){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://${md()}/litms/api/metadata/user${i}`}function vh(){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 mh(e,t){const n=`${t}.${t}`;return{enterpriseProfileUrn:e[n+".enterpriseProfile"]||e[t+".enterpriseProfile"],enterpriseAppInstanceId:e[n+".enterpriseAppInstanceId"]||e[t+".enterpriseAppInstanceId"]}}function yh(e,t){let n=ch({},e);const i={userSettings:n,enterpriseContext:mh(e,t)};return n["compliance.isAdvertisingOptIn"]=!function(e,t){const n=e[`${t}.${t}`+".isBoundUser"]||e[t+".isBoundUser"];return vh(e,t)&&!n}(e,t)&&oh(i),n["compliance.isAnalyticsAndResearchOptIn"]=ah(i),n["compliance.isFunctionalOptIn"]=sh(i),n}function Eh(){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 bh(e){return yh(hh,e)}function wh(e){if(!ph[e]){const t=function(e){return`https://${vd()}/litms/allowlist/${encodeURIComponent(e)}`}(e),n=new Promise((e,n)=>{Ed(t,t=>{e(JSON.parse(t))},e=>{n(e)},!1)});ph[e]=n}return ph[e]}hd.utag_data||(hd.utag_data={});const _h="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;let Th;function Sh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n=null;return"string"==typeof e&&(n=`https://${vd()}/litms/utag/${e}/utag.js?cb=${lh(t)}`),n}function Ch(){return function(){if(void 0===Th&&_h){const e=hd.document.cookie.match(/litms_utag_override=([^;]+)/);Th=e?e[1]:""}return Th}().length>0}function Ih(e,t,n,i){e.onLoadRulesRunOnce(n);let r=ch({},t,bh(i));e.view(r),uh()&&hd.trackingEventDebugData.push({profileName:i,eventType:"PV",trackingData:r})}function kh(e,t,n,i){e.onLoadRulesRunOnce(n);let r=ch({},t,bh(i));e.link(r),uh()&&hd.trackingEventDebugData.push({profileName:i,eventType:"CI",trackingData:r})}function Ah(e,t,n){if(function(e){hd.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?kh(e,i.data,i.callback,n):Ih(e,i.data,i.callback,n)}}}function xh(e){return Object.keys(e.loader.cfg).filter(t=>1===e.loader.cfg[t].send&&0!==e.loader.cfg[t].load)}function Oh(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 Lh(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 Rh(e){const t=xh(e).map(t=>function(e,t){return{tagUrn:Lh(e,t)}}(e,t));if(0!==t.length)return{info:{name:"ExternalMarketingTagFireEvent"},body:{header:{},requestHeader:{},tags:t}}}function Nh(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);bd(`https://${md()}/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,Eh(e.data,n))}function Ph(e,t,n){const i=e.data["ut.profile"],r=function(e,t,n){const i=e.data["ut.profile"],r=xh(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;bd(`https://${md()}/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,Eh(e.data,i))}hd.utag_cfg_ovrd=hd.utag_cfg_ovrd||{},hd.trackingEventDebugData=hd.trackingEventDebugData||[],hd.utag_cfg_ovrd.noview=!0,hd.utag_cfg_ovrd.nocookie=!0;const Dh=_h&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(hd.navigator.userAgent),Mh={};let Uh,Fh,Bh,qh={};class Hh{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(_h){sessionStorage.getItem("utagLandingPage")&&sessionStorage.removeItem("utagLandingPage"),this.landingPageUrl=hd.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=wh(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&&(Mh[this.profileName]=this),this.initializePromise}_processAllowlistResult(e){Object.keys(e).forEach(t=>this.addValuesToAllowlist(t,e[t]))}_setLandingPageCookie(){const e=bh(this.profileName),t={userSettings:e,enterpriseContext:mh(e,this.profileName)};if(this.landingPageUrl&&oh(t)&&fd.find(e=>this.landingPageUrl.includes(e))){const e=gd()?".linkedin.com":"linkedin-ei.com";hd.document.cookie=`l_page=${this.landingPageUrl};domain=${e};path=/;max-age=15780000`}}_loadContainerTag(e,t){void 0!==hd.utag&&(hd.utag=void 0),void 0!==hd.utag_data&&(hd.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(!dh){const i=gh(vh(e,t),n);dh=new Promise((n,r)=>{Ed(i,e=>{try{n(JSON.parse(e))}catch(e){console.error("Invalid JSON format of userSettings"),r(e)}},e=>{r(e)},!0,Eh(e,t))})}return dh}(hh,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=>{hh[n+t]=e[t]})}(e[t],t)}),this.includePersonalizationData&&(t=e)&&"object"==typeof t&&(fh.personalizationData=t.personalizationData||{}),_h&&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 Ch()?Th:Sh(e,t)}(this.profileName,this.cacheBusterInterval),new Promise(e=>{const t=hd.document.createElement("script");t.type="text/javascript",t.src=r,t.async=!0,t.onload=e,hd.document.getElementsByTagName("head")[0].appendChild(t)}));var r;Promise.all([n,i]).then(()=>{this.isContainerTagLoaded=!0,this._uTag=hd.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&&Oh(this.tracking2Instance,t),Nh(this._uTag,this.eventSource),e(t)}).catch(e=>{console.error("Unable to complete loading container tag",e),t()})}_shouldInitialize(){return!Dh}_shouldProcessEvent(e){return Dh?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?Ah(this._uTag,this._queue,this.profileName):this.isInitialized&&this.isAllowlistingEnabled&&this._loadContainerTag(this._onInitializeSuccessCallback,this._onInitializeFailureCallback)}_fireAuditEvent(e){const t=Rh(this._uTag);return void 0!==this.tracking2Instance&&void 0!==t&&Oh(this.tracking2Instance,t),Ph(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=mh(hh,this.profileName);th(null,void 0,e).consent.consentAvailable&&!Fh?!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()})}(qh.payloads)?this._refireTracking():location.reload():Uh=setTimeout(()=>{this._checkForCookieConsent()},2e3)}_refireTracking(){qh.payloads&&qh.payloads.forEach(e=>{const{data:t,callback:n}=e;t.cookieConsentGiven=!0,this.trackPageView(t,n)})}_savePayloadForRefire(e,t){if(_h){Fh=!1;const{payloads:n=[],url:i}=qh,r=location.href,o={data:e,callback:t},a=r!==i?[]:n;a.push(o),qh={url:r,payloads:a},Uh||(Uh=setTimeout(()=>{this._checkForCookieConsent()},2e3))}}trackPageView(e,t){const n=mh(hh,this.profileName);return th(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 fh.personalizationData||{}}}function jh(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 Gh{constructor(e){if(this.trackingInstance=e,this.pageKey=T(document),this.litmsProfileName=function(e){const t=e.querySelector('meta[name="litmsProfileName"]');return t?t.content:""}(document),!this.litmsProfileName)throw Error('Page missing "litmsProfileName" meta tag.');this.litmsInstance=new Hh({tracking2Instance:this.trackingInstance,profileName:this.litmsProfileName}),this.litmsInstance.initialize(),this.clickEventListener=e=>jh({event:e,litmsInstance:this.litmsInstance,pageKey:this.pageKey}),this.keydownEventListener=e=>{"Enter"!==e.key&&" "!==e.key&&"Spacebar"!==e.key||jh({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 Wh(e){if(!Bh){if(!e)throw new Error("No trackingInstance passed in!");Bh=new Gh(e)}return Bh}function zh(){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 Kh='[data-js-module-id="guest-input"]';class Vh{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=Pa("i18n_sign_in_form_show_text"),this.showLabelText=Pa("i18n_sign_in_form_show_label"),this.hideText=Pa("i18n_sign_in_form_hide_text"),this.hideLabelText=Pa("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",zh())),this.anonymousLoginToggleInput&&this.anonymousLoginToggleInput.checked){const t=this.sessionRedirectEl.value,n=g("/public-profile/settings/anonymousLogin","csrfToken",A(m("JSESSIONID")));this.sessionRedirectEl.value=g(n,"originalSessionRedirect",t);try{localStorage.setItem("voyager-web:anonymous-login",Date.now())}catch(e){}}this.el.submit()}}),window.tracking&&window.tracking.then(e=>{const t=T(document,{skipSuffix:!0}),n=t+"_login-form",i=`${t}-${this.el.querySelector('[data-id="sign-in-form__submit-btn"]').dataset.trackingControlName}`,r=jo(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){Bo(e,"ajax",t),Wh(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=dd(this.usernameEl.name,this.usernameEl.value);if(e){this.usernameEl.closest(Kh).classList.add("input-error"),this.usernameMsgEl.classList.remove("hidden");const t="i18n_username_"+e;return this.usernameMsgEl.innerText=Pa(t),this.usernameEl.focus(),!0}this.usernameEl.closest(Kh).classList.remove("input-error"),this.usernameMsgEl.classList.add("hidden");const t=dd(this.passwordEl.name,this.passwordEl.value);if(t){this.passwordEl.closest(Kh).classList.add("input-error"),this.passwordMsgEl.classList.remove("hidden");const e="i18n_password_"+t;return this.passwordMsgEl.innerText=Pa(e),this.passwordEl.focus(),!0}this.passwordEl.closest(Kh).classList.remove("input-error"),this.passwordMsgEl.classList.add("hidden")}}const Xh=30,Yh="cta-modal";class Jh{constructor(e){let{daysCoolOff:t=Xh,dismissOnOutsideClick:n=!0,dismissOnScroll:i=!1,dismissBtnEl:r,coolOffKey:o=Yh}=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()?y(this.el,"didNotOpen"):(this.dismissable=new Bl(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 Qh="sign-in-card";class $h{constructor(e){let{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:r,coolOffKey:o=Qh}=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 Vh(a),this.ctaModal=new Jh(this.el,{daysCoolOff:t,dismissOnOutsideClick:n,dismissOnScroll:i,dismissBtnEl:this.dismissBtnEl,coolOffKey:o})}}const{GOOGLE_USER_FETCHED:Zh,GOOGLE_ERROR:ep,INITIALIZED:tp}=Du.EVENTS,{INITIALIZATION:np}=Du.GSI_ERROR_TYPES;function ip(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function rp(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 op(e,t){return Math.round(e-t)}var ap,sp=(ap=function(e,t){return(ap=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}ap(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),cp=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}(),lp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sp(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(cp),up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sp(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(cp),dp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sp(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}(cp),hp=function(){return 0},pp=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),fp=pp&&!!window.requestAnimationFrame,gp={hasDOM:pp,hasRAF:fp,getScrollTop:hp,getScrollLeft:hp,getHeight:hp,getWidth:hp,rAF:fp?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:hp,get isDirty(){return gp.version!==gp.lastVersion},document:window.document,IntersectionObserver:pp&&window.IntersectionObserver,performance:pp&&window.performance};function vp(){++gp.version}function mp(){var e=null!=document.scrollingElement;gp.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},gp.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}pp&&(gp.getHeight=function(){return window.innerHeight},gp.getWidth=function(){return window.innerWidth},gp.updateMeta=function(){gp.meta.height=gp.getHeight(),gp.meta.width=gp.getWidth(),gp.meta.scrollLeft=gp.getScrollLeft(),gp.meta.scrollTop=gp.getScrollTop(),gp.lastVersion=gp.version},gp.updateMeta(),"loading"!==document.readyState?mp():document.addEventListener("DOMContentLoaded",mp),window.addEventListener("resize",vp,!1),window.addEventListener("scroll",vp,!1));var yp=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,gp.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}(),Ep=null;var bp=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)}}(),wp="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),_p=0,Tp=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 gp.isDirty&&gp.updateMeta(),e===window||e===document?(n.height=gp.meta.height,n.width=gp.meta.width,n.scrollLeft=gp.meta.scrollLeft,n.scrollTop=gp.meta.scrollTop,n):(t=rp(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 Sp(){return _p+++wp}var Cp=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Ep||(Ep=new yp)),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(Tp.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=rp(e),i=Tp.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}(),Ip=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new lp,t}return bp(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=Sp();return this.queue.push({callback:e,id:t}),t},t}(Cp),kp=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return bp(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Ip),Ap=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=gp.version,r.queue=new dp,r.ALLOW_CACHED_SCHEDULER=i,r}return bp(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return gp.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=rp(r)),i(e,o,a)}this.lastVersion=gp.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Sp();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Cp),xp=null;var Op=function(){function e(){this.queue=new up}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}(),Lp=function(){function e(e){this.scheduler=new kp(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Tp.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Rp=null;function Np(e,t){var n=(Rp||(Rp={scroll:new Lp((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Lp((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Op,beforeunload:new Op,hide:new Op,show:new Op}))[e];n&&n.listen(t)}function Pp(e,t){if(Rp){var n=Rp[e];n&&n.unlisten(t)}}function Dp(e,t){if(Rp){var n=Rp[e];n&&n.trigger(t)}}function Mp(e){(xp||(xp=new Ip)).scheduleWork(e)}function Up(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}}gp.hasDOM&&(window.addEventListener("beforeunload",(function(){Dp("beforeunload"),Dp("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Dp("show"):Dp("hide")})));var Fp=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 Ap(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||Sp();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:Bp(),intersectionRatio:0,intersectionRect:Bp(),isIntersecting:!1,rootBounds:Bp(),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:ip({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Up(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 Bp(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var qp={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};var Hp=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&&!!gp.IntersectionObserver;var h=this.usingNativeIo?gp.IntersectionObserver:Fp;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),gp.hasDOM&&(Np("beforeunload",this.onWindowClosed),Np("hide",this.onTabHidden),Np("show",this.onTabShown),c&&(this.paused="visible"!==gp.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((gp.performance.timeOrigin||gp.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:qp,boundingClientRect:o||qp,intersectionRect:qp,visibleTime:r.lastVisible.unixTime,duration:op(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=op(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:ip(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=op(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(),gp.hasDOM&&(Pp("beforeunload",this.onWindowClosed),Pp("hide",this.onTabHidden),Pp("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),Mp((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||Sp();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}();gp.IntersectionObserver&&gp.IntersectionObserver;class jp{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 Hp(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 Gp="show-more-less__button--hide";class Wp{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(F);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 N(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(Gp),this.showMoreButton.classList.remove(Gp)):(this.showLessButton.classList.remove(Gp),this.showMoreButton.classList.add(Gp))}}const zp=".show-more-less-html__markup",Kp=".show-more-less-html__button--less",Vp=".show-more-less-html__button--more";class Xp{constructor(e){let{showMoreButtonSelector:t=Vp,showLessButtonSelector:n=Kp,baseMarkupElementSelector:i=zp}=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 aa(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 Yp=350,Jp=575;class Qp{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.querySelector(".sticky-header"),{disableUnderMinimumViewportHeight:t=!1,minimumViewportHeight:n=Yp,disableUnderMinimumViewportWidth:i=!1,minimumViewportWidth:r=Jp}=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(oa()){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 Vc(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 $p(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}const Zp=$p("action"),ef=$p("openpage"),tf=$p("openlink"),nf=e=>Zp(e)&&"BLOCK_PROFILE"===e.action.actionType;function rf(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 of{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=>Zp(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=>rf(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(ef(n))return{...n,...i};const r={options:n[n.type].options.map(e=>rf(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=>rf(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=>Zp(t)&&t[t.type].title===e);return n&&n.action}}const af="hidden";class sf extends Xo{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(af)}showFooter(){this.footer.classList.remove(af)}enableSubmit(){this.submitBtn.disabled=!1}disableSubmit(){this.submitBtn.disabled=!0}hideSubmit(){this.disableSubmit(),this.submitBtn.classList.add(af)}showSubmit(){this.enableSubmit(),this.submitBtn.classList.remove(af)}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 cf{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 sf(e,{focusElement:i}),this.submitActionCallBack=n,this.parentContainer?(this.parentContainer.addEventListener("click",this.semaphoreClickHandler.bind(this)),e.addEventListener("click",this.clickHandler.bind(this))):(document.body.removeEventListener("click",this.clickHandler),document.body.addEventListener("click",this.clickHandler.bind(this))))}}clickHandler(e){const t=r(e.target,"[data-semaphore-input]");if(t){if(t.href)return e.preventDefault(),void window.open(t.href,"_blank");"semaphore-action"===t.name&&(this.semaphoreModal.showFooter(),this.semaphoreModal.showSubmit())}if("back"===e.target.dataset.semaphoreAction){const e=this.semaphoreConfigParser.getPreviousStep();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=r(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){ef(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=r(e.target,this.semaphoreSelector);t&&t.dataset.semaphoreContentType&&t.dataset.semaphoreContentUrn&&"true"===t.dataset.isLoggedIn&&(e.preventDefault(),this.makeSemaphoreRequest(t.dataset.semaphoreContentUrn,t.dataset.semaphoreContentType,t.dataset.semaphoreAuthorProfileId,t.dataset.semaphoreAuthorUrn,t.dataset.semaphoreParentUrn,t.dataset.semaphoreReporterProfileUrn,"true"===t.dataset.semaphoreShouldSendXLiTrack,"true"===t.dataset.semaphoreShouldSendAuthorUrn).then(async e=>{this.semaphoreConfigParser=new of(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;tf(o)&&!i&&(i=!0),Zp(o)&&(n||(n=!1===o[a].nonRadioOptionEnabled),a=nf(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=Zc();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),Zp(o)){if(nf(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 f(e,this.semaphoreTrackingPrefix)}sendAction(e){return Q(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=g("/psettings/flagging-menu","entityUrn",e);c=g(c,"contentSource",t),r&&(c=g(c,"parentUrn",r)),o&&(c=g(c,"reporterProfileUrn",o)),n&&!s?c=g(c,"authorProfileId",n):i&&(c=g(c,"authorUrn",i));return Q(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 lf{constructor(e){if(!e)throw new Error("EllipsisMenu el required");this._el=e,this.currentMenuItem=this._el.querySelector(".ellipsis-menu__item-button");const t=this._el.querySelector(".collapsible-dropdown");if(!t)throw new Error("A collapsible dropdown is required to instantiate an EllipsisMenu");this.collapsibleDropdown=new J(t,{elementToFocus:this.currentMenuItem});this._el.querySelector(".ellipsis-menu__semaphore")&&(this._semaphore=new cf('[data-item-type="semaphore"]',t))}}function uf(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 df(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 hf{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 Bl(this.el,this.dismissBtn,{isShown:t}),df(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".windows-app-upsell .windows-app-upsell__cta");e&&e.setAttribute("href","linkedin://")}}class pf extends nl{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:pf.query,variables:{handleString:e},successCallback:t,failureCallback:n})}}Fa(pf,"query","77715b456915324f44eb5c5ae5981169");const ff=10;class gf{constructor(e){let{minutesCoolOff:t=ff,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!==Pa("joinUrl")?this.signInForm=new Vh(i,{customValidate:this._onSubmitValidate.bind(this),fireTrackingOnInit:!1}):this.signInForm=new Vh(i,{fireTrackingOnInit:!1})),this.modal=new Xo(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 pf("/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=g(Pa("joinUrl")?Pa("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 vf{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 pf("/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=g(Pa("joinUrl")?Pa("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 mf=10;class yf{constructor(e){let{minutesCoolOff:t=mf,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 gf(this.signInModalEl)),Pa("isMergeSignInSignUpV2Enabled")&&(this.mergeSignInSignUp=new vf(this.el)),null===Pa("mergeSignInSignUpLixValue")||"control"===Pa("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 Xo(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 Vh(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 Ef={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})})(Ef.exports);const{EVENTS:bf,GOT_CONTEXTS:wf,GOT_PROMPT_MOMENT_REASONS:_f,GOT_PROMPT_MOMENT_TYPES:Tf,GSI_ERROR_TYPES:Sf}=Ef.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:Cf,PROMPT_MOMENT:If,GOOGLE_ERROR:kf}=bf,{SIGN_IN:Af}=wf,xf=[_f.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,_f.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,_f.NOT_DISPLAYED.SUPPRESSED_BY_USER],Of=[_f.SKIPPED.AUTO_CANCEL,_f.SKIPPED.TAP_OUTSIDE,_f.SKIPPED.USER_CANCEL],Lf=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"}),Rf=Object.freeze({ONE_TAP:"one_tap",ONE_TAP_AUTO_LOGIN:"one-tap-auto-login",BUTTON:"button"}),Nf=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 Pf{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===Pa("isLinkedInAppWebView"),this.el=e,this.showOneTapOnInit=a,this.canShowOneTap=!this.isLinkedInAppWebView,(this.buttons.length||this.canShowOneTap&&this.el)&&(this.useAutoSelect=this._shouldAutologin(),this.shouldRemoveUndefinedValues=Pa("shouldRemoveUndefinedValues"),this.window=i,this.onNotDisplayed=r,this.onSkipped=o,this.loader=new ul(this.el.querySelector(".loader"),this.el),this._isMobile=Y(),this.isFedCmBrowser=!!this.window.FederatedCredential,this.tncFlow=Pa("tncFlow"),this.useFedCM=this.isFedCmBrowser&&"fedcm"===this.tncFlow,this.useItpSupport=!this.useFedCM&&Pa("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.isInitialized=this._initGoogleAuth().catch(e=>{this._fireCounterIngraphMetric(Nf.GOOGLE_AUTH_INITIALIZATION_ERROR),this._throwGoogleAuthError(e,"constructor--"+Nf.GOOGLE_AUTH_INITIALIZATION_ERROR)}))}_initGoogleAuth(){return this.window.lazyloader.then(e=>e.getLazyLoadedJavascriptModule("google-gsi-lib")).then(()=>{var e,t;this.googleGsiInstance=new Ef.exports.GoogleGsi({autoSelect:this.useAutoSelect,cancelOnTapOutside:!1,clientId:this.clientId,context:Af,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(bf.INITIALIZED,()=>{this._fireControlInteractionEvent(Lf.GOOGLE_AUTH_INITIALIZED),this._initButtons()}),this.googleGsiInstance.addEventListener(Cf,e=>{let{detail:t}=e;const{email:n,familyName:i,givenName:r,idToken:o,imageUrl:a,selectedBy:s}=t;this.loader.show();const c=Pf._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",zh());const l=c===Rf.BUTTON?Lf.GOOGLE_SIGN_IN_ACCOUNT_SELECTED:Lf.GOOGLE_ONE_TAP_ACCOUNT_SELECTED;this._fireControlInteractionEvent(l),this._conditionalIncludeTermsAndConditionsSkip(l),this._fireCounterIngraphMetricForAccountSelected(c),this.el.submit()}),this.googleGsiInstance.addEventListener(If,e=>{let{detail:t}=e;if(!this.useFedCM&&Pa("isGoogleAuthButtonLocaleSupportEnabled")){const e=this._isMobile?document.querySelector("#credential_picker_iframe"):document.querySelector("#credential_picker_container iframe"),t=Pa("gsiLocale");e&&t&&(e.src=g(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===Tf.SKIPPED){if(n===_f.SKIPPED.USER_CANCEL&&(this._toggleGoogleOneTapModule(!1),this._fireControlInteractionEvent(Lf.GOOGLE_ONE_TAP_USER_DISMISSED)),this.onSkipped)this.onSkipped(t);else if(-1===Of.indexOf(n))throw Error(`GoogleOneTapError ${i}: ${n}`)}else if(i===Tf.DISPLAY)if(this.onNotDisplayed)this.onNotDisplayed(t);else if(-1===xf.indexOf(n))throw Error(`GoogleOneTapError ${i}: ${n}`)}else if(i===Tf.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(kf,e=>{let{detail:t}=e;const{type:n,error:i}=t,r=this._getIngraphMetricTypeForGoogleError(n);r&&(this._fireCounterIngraphMetric(r),i&&this._throwGoogleAuthError(i,"library--"+r))})}_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!==Tf.DISPLAY||t?e===Tf.DISPLAY&&t===_f.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION?Nf.GOOGLE_AUTH_NO_SESSION:e===Tf.DISPLAY&&t===_f.NOT_DISPLAYED.SUPPRESSED_BY_USER?Nf.GOOGLE_AUTH_ONE_TAP_COOLDOWN:Of.indexOf(t)>=0||xf.indexOf(t)>=0?Nf.GOOGLE_AUTH_MISC_ERROR:void 0:Nf.GOOGLE_AUTH_ONE_TAP_DISPLAYED:null}_getIngraphMetricTypeForGoogleError(e){return e?e===Sf.AUTHENTICATION?Nf.GOOGLE_AUTH_AUTHENTICATION_ERROR:e===Sf.INITIALIZATION?Nf.GOOGLE_AUTH_INITIALIZATION_ERROR:void 0:null}_fireCounterIngraphMetricForAccountSelected(e){switch(e){case Rf.BUTTON:return void this._fireCounterIngraphMetric(Nf.GOOGLE_AUTH_BUTTON_ACCOUNT_SELECTED);default:return void this._fireCounterIngraphMetric(Nf.GOOGLE_AUTH_ONE_TAP_ACCOUNT_SELECTED)}}_fireViewModuleImpressionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{Ho(t,[e])})}_fireControlInteractionEvent(e){this.window.tracking&&this.window.tracking.then(t=>{t.fireControlInteractionEvent(e)})}_throwGoogleAuthError(e,t){const n="google-auth--"+t;throw e.message=`${n}: ${e.message}`,e}_initButtons(){var e,t;null!==(e=this.buttons)&&void 0!==e&&e.length&&(this._fireViewModuleImpressionEvent("google-button-view"),null===(t=this.buttons)||void 0===t||t.forEach(e=>{this._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 Rf.ONE_TAP_AUTO_LOGIN;case e.indexOf("user")>-1:case e.indexOf("fedcm")>-1:case e.indexOf("itp")>-1:return Rf.ONE_TAP;default:return Rf.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!==m("li_g_recent_logout"))}_conditionalIncludeTermsAndConditionsSkip(e){(e===Lf.GOOGLE_ONE_TAP_ACCOUNT_SELECTED&&this.googleOneTapModuleEl&&this.tncEl&&!this.tncEl.classList.contains("hidden")||e===Lf.GOOGLE_SIGN_IN_ACCOUNT_SELECTED&&this.buttonsSafeToSkipTncRedirect)&&this._addGoogleFieldToForm("termsAndConditionsSkip",!0)}promptOneTap(){this.canShowOneTap&&this.isInitialized.then(()=>{this.googleGsiInstance.promptOneTap()})}}class Df{constructor(){let{isDev:e=!1,googleAuthConfig:t={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.disableOneTapOnInitIfCsm=Pa("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 Pf(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 yf(i,e)}const r=document.querySelector(".windows-app-upsell");r&&(this.windowsAppUpsell=new hf(r))}openContextualSignInModal(){this.baseContextualSignInModal.contextualModal.open()}openSignInModal(){this.baseContextualSignInModal.signInModal.open()}}const{EVENTS:Mf,PROMPT_MOMENT_REASONS:Uf,PROMPT_MOMENT_TYPES:Ff}=Ef.exports.MicrosoftSignInConstants,{USER_FETCHED:Bf,PROMPT_MOMENT:qf}=Mf;Uf.DISPLAY.ANOTHER_PROMPT_RUNNING,Uf.DISPLAY.BROWSER_NOT_SUPPORTED,Uf.DISPLAY.IN_COOLDOWN_PERIOD,Uf.DISPLAY.NON_MSA_PROFILE,Uf.SKIPPED.TAP_OUTSIDE,Uf.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class Hf{constructor(){const e=document.querySelector(".language-selector");e&&(this.languageSelector=new Z(e))}}class jf{constructor(e){if(!e)throw Error("An element must be provided to TopNavMenu");this.el=e,df(this.updateDeeplink.bind(this))}updateDeeplink(){const e=this.el.querySelector(".top-nav-link[data-tracking-control-name$=_windows]");e&&e.setAttribute("href","linkedin://")}}class Gf{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 Ll(r,t);const o=this.el.querySelector(".sign-in-card");o&&new $h(o,n);const a=this.el.querySelector(".sign-in-modal");a&&new gf(a,i);const s=this.el.querySelector(".top-nav-menu");s&&new jf(s)}}class Wf{constructor(){let{navOptions:e,stickyHeaderOptions:t,guestUpsellsOptions:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};new Hf;document.querySelector(".detail-page__guest-upsells.guest-upsells")&&new Df(n);const i=document.querySelector(".sticky-header");i&&new Qp(i,t),document.querySelector(".member-nav-menu")&&new Jo;const r=document.querySelector(".nav");r&&new Gf(r,e)}}class zf{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 Rl(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 Kf;function Vf(){return Kf||(Kf=new Ic),Kf}function Xf(){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&&(Vf().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 Yf{constructor(){let{shouldShowSuccessToast:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=document.querySelector("#toasts");if(this.shouldShowSuccessToast=e||"saved"===p(window.location.href,"lidirect"),t&&this.shouldShowSuccessToast){const e=Pa("ad_choice_toast_trk");Vf().trigger(Cc.SUCCESS,Pa("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 Jf(e,t){Gs(e,t,{ADD_TAGS:["link"]})}class Qf{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 Rl(this.bottomSheetEl,{enablePageViewTracking:n,pageKey:i,shouldHideModal:r,pushState:t,triggerByOutletEl:!1}),this._hideBottomSheet=this._hideBottomSheet.bind(this),this._attachEventListeners(),this.onClose=o}_hideBottomSheet(){la(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),ua(this.bottomSheetEl),window.requestAnimationFrame(()=>this.bottomSheetEl.classList.add("bottom-sheet-open"))}),s.getInstance().addUnloadCallback(()=>{this.close()})}setHeader(e){this._headerEl&&Jf(this._headerEl,e)}setTitle(e){this._titleEl&&(this._titleEl.textContent=e)}setContent(e){Jf(this._contentEl,e)}setFooter(e){this._footerEl&&Jf(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 $f{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(),y(this._el,"c2paClick",{c2paCtaEl:this._el,feedItemEl:this._feedItemEl})})}}class Zf{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 Rl(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 Ua(s),null==s||s.addEventListener("click",this._handleImageClick.bind(this));const c=this.el.querySelectorAll(".c2pa-button");null==c||c.forEach(e=>new $f(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 eg={LOAD_INFINITE_SCROLL:"load-infinite-scroll"};function tg(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 Ju(a,i,s)}(t,i,e))}var ng=Object.freeze({__proto__:null,FEATURE_NAMES:eg,getPemDegradationTrackingMetadataArray:tg,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=tg({featureName:i,featureMappingToDegradationConfig:r,productName:o});s.trackFeatureDegradationsForFetch(t,a,l,n,c.state.currentPageInstance)})}});const ig={AJAX:"ajax",HALF:"half",FULL:"full",ERROR:"error"};function rg(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 og=e=>!e||!e.count||e.start+e.count>=e.total;function ag(e){const{fetchUrl:t,parentListEl:n,pemDegradationTrackingMetadataParams:i,paginationPageKey:r}=e;return function(){const e=document.querySelector("#paginationMetaData")&&Pa("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||!og(e))){const e=Q(o,{isPemEnabled:!0,pemDegradationTrackingMetadata:tg({featureName:i.featureName||eg.LOAD_INFINITE_SCROLL,featureMappingToDegradationConfig:i.featureMappingToDegradationConfig,productName:i.productName})});return e.then(e=>{var t;this.hasMoreContent=!!e.responseText;const i=Gs(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&&Bo(e,ig.AJAX,r)})}).catch(()=>{var e;r&&(null===(e=window.tracking)||void 0===e||e.then(e=>{Bo(e,ig.ERROR,r)}));this.removeInfiniteScroller()}),e}return this.removeInfiniteScroller(),Promise.resolve()}}class sg extends we{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");og=e.isLastPage||og;const n={scrollLoadLimit:1e4,wait:300,loaderEl:document.querySelector(".loader--scroller"),...e,loadResults:e.loadResults||ag(e)};super(e.el,n),this.hasMoreContent=!0}}const cg=document.querySelector("#full-page-header-back-button");class lg{constructor(){this.backButton=document.querySelector("#full-page-header-back-button"),this._attachEventListeners()}_attachEventListeners(){this.backButton&&this.backButton.addEventListener("click",()=>history.back())}}window.onload=()=>{null==cg||cg.focus()};class ug{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{ug.instance||(ug.instance=new ug(localStorage)),ug.instance}catch{}}();const dg=function(){try{return ug.sessionInstance||(ug.sessionInstance=new ug(sessionStorage)),ug.sessionInstance}catch{}}();class hg{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"===dg.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 Bl(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=>{Ho(e,[this.storageKey])}),this.fireIngraphModuleImpression&&this.window.ingraphTracking&&this.window.ingraphTracking.then(e=>{e.fireModuleImpressionMetric(this.storageKey)}),dg.writeWithExpiry(this.storageKey,"DISPLAY"))}onUpsellDismiss(){this.el.remove(),dg.writeWithExpiry(this.storageKey,"DISMISSED")}}class pg{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",ve(this.handleScroll.bind(this),this.counterSpeed))}}const fg="scrolling-counter",gg="click";var vg=new WeakSet,mg=new WeakSet,yg=new WeakSet,Eg=new WeakSet;class bg{constructor(e){var t,n,i,r;let{globalWindow:o=window}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(za(this,Eg),za(this,yg),za(this,mg),za(this,vg),!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,ja(this,mg,_g).call(this)}openUpsell(e){if(!("DISMISSED"===dg.readWithExpiry(this.storageKey,ja(this,vg,wg).call(this)))){if(this.triggerType===fg)new pg({counterCallback:()=>e.open(),scrollingTargetElementSelector:this.elementSelector,scrollingCounterTargetNumber:Number(this.counterTargetNumber)});else if(this.triggerType===gg){var t;null===(t=document.querySelector(this.elementSelector))||void 0===t||t.addEventListener("click",()=>e.open(),!1)}else null==e||e.open();ja(this,Eg,Sg).call(this,"DISPLAY"),ja(this,yg,Tg).call(this)}}onClose(){ja(this,Eg,Sg).call(this,"DISMISSED")}}function wg(){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 _g(){if("DISMISSED"===dg.readWithExpiry(this.storageKey,ja(this,vg,wg).call(this)))return;const e=document.querySelector(".blocking-upsell-bottom-sheet"),t=document.querySelector("#blocking-upsell-modal");let n;e?n=new Qf({bottomSheetEl:e,onClose:this.onClose.bind(this)}):t&&(n=new Xo(t,{onClose:this.onClose.bind(this)})),n?this.openUpsell(n):ja(this,yg,Tg).call(this)}function Tg(){var e;this.storageKey&&(null===(e=this.window.tracking)||void 0===e||e.then(e=>{Ho(e,[this.storageKey])}),this.fireIngraphModuleImpression&&this.window.ingraphTracking&&this.window.ingraphTracking.then(e=>{e.fireModuleImpressionMetric(this.storageKey)}))}function Sg(e){this.storageKey&&e&&dg.writeWithExpiry(this.storageKey,e)}class Cg{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 hg(this.nonBlockingUpsellEl):this.blockingUpsellEl?new bg(this.blockingUpsellEl):this.blockingUpsellFullPageEl&&new bg(this.blockingUpsellFullPageEl)}}class Ig{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 Yf({shouldShowSuccessToast:this.shouldShowSuccessToast}),this.checkAdChoiceConsentRequirement(),new Cg}checkAdChoiceConsentRequirement(){if(!Pa("adChoiceConsentRequirement"))return;const e=this.window.location.href,t="https://www.linkedin.com/connect-services",n="GDPR"===Pa("adChoiceConsentRequirementVariant")?`${t}?page=ads_experience&sessionRedirect=${e}`:`${t}?sessionRedirect=${e}`;this.window.location.href=n}}class kg extends nl{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:kg.query,variables:{postUrn:e},successCallback:t,failureCallback:n})}}let Ag;Fa(kg,"query","cb99e660f3455cad5185a1d9543e6bce");function xg(e){var t;const n=Pa("gdpr_notice_share"),i=Pa("gdprLearnMoreLabel"),r=document.querySelector(".modal-spinner");ua(r),n&&i&&uf({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;Ag=n(o,{shouldHideModal:()=>!1,triggerByOutletEl:!1,pushState:!0,historyUpdateUrl:e.historyUpdateUrl}),la(r),Ag.open(e)}).catch(()=>{la(r)})}function Og(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e&&e.preventDefault(),xg(t)}s.getInstance().addUnloadCallback(()=>{Ag&&Ag.close(),la(document.querySelector("#discard-post-modal")),la(document.querySelector("#visibility-settings-modal")),la(document.querySelector("#max-images-prompt-modal")),la(document.querySelector("#retry-upload-modal"))});const Lg={OK_200:"OK_200",CREATED_201:"CREATED_201",NO_CONTENT_204:"NO_CONTENT_204"};Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});function Rg(e,t){return e&&t?`urn:li:control:${t}-${e}`:null}const Ng="[data-feed-control]",Pg='[data-id="main-feed-card"]',Dg={PRODUCT_NAME:"Lite-feed",routeMappingToDegradationConfig:{FEED_REPOST:{"publish-repost":[{degradationKey:"publish-repost-failed"}]}}};tg({featureName:"publish-repost",productName:Dg.PRODUCT_NAME,featureMappingToDegradationConfig:Dg.routeMappingToDegradationConfig.FEED_REPOST});function Mg(e,t,n){var i,r,o,a,s;const c=null==e||null===(i=e.target)||void 0===i?void 0:i.closest(Ng),l=null==e||null===(r=e.target)||void 0===r?void 0:r.closest(Pg),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=Pa("trackingModuleKey"),i=T(document),r=qo(i);t={...f?{accessoryEntityUrn:f}:{},...y?{interactorUrn:y}:{},actionCategory:(null==v?void 0:v.toUpperCase())||"",actionType:m,controlUrn:Rg(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 Ug=Object.freeze({NEW_REPOST_SUCCESS_EVENT:"Repost:newRepost:success",NEW_REPOST_FAIL_EVENT:"Repost:newRepost:fail"});class Fg{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 Qf({bottomSheetEl:this.el,pushState:!1}),t&&t.endpoint){const{endpoint:e,pemDegradationTrackingMetadata:n}=t;this.createRepostMutation=new kg(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)Og(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"]}),Mg(e,{...s,...t.dataset}),y(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),Mg(e,{...s,...n.dataset}),y(this.el,"FeedItemReshared",{feedItemToShare:r,repostBtnEl:n})}else if(i){Mg(e,{...s,...i.dataset});const t=i.getAttribute("data-send-privately-url");window.location.assign(t)}})}createRepostSuccessCallback(e){if(e.createRepost.responseCode!==Lg.OK_200)return Vf().trigger(Cc.ERROR,Pa("repostFailureMessage"),"repost-error-toast"),y(document.body,Ug.NEW_REPOST_FAIL_EVENT,{entityUrn:this.entityUrn}),void(this.entityUrn="");let t="/mwlite/feed/update/activity:"+e.createRepost.activityUrn.split(":").pop();Vf().trigger(Cc.SUCCESS,Pa("repostSuccessMessage"),"repost-success-toast",{url:t,trk:"repost-success",text:Pa("repostSuccessViewPost"),target:"_self"}),y(document.body,Ug.NEW_REPOST_SUCCESS_EVENT,{entityUrn:this.entityUrn}),this.entityUrn=""}createRepostFailureCallback(){Vf().trigger(Cc.ERROR,Pa("repostFailureMessage"),"repost-error-toast"),y(document.body,Ug.NEW_REPOST_FAIL_EVENT,{entityUrn:this.entityUrn}),this.entityUrn=""}}class Bg extends nl{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:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Fa(Bg,"query","20f8e9934e7df62932fd167d87c19b27");var qg=function(){this.__data__=[],this.size=0};var Hg=function(e,t){return e===t||e!=e&&t!=t},jg=Hg;var Gg=function(e,t){for(var n=e.length;n--;)if(jg(e[n][0],t))return n;return-1},Wg=Gg,zg=Array.prototype.splice;var Kg=Gg;var Vg=Gg;var Xg=Gg;var Yg=qg,Jg=function(e){var t=this.__data__,n=Wg(t,e);return!(n<0)&&(n==t.length-1?t.pop():zg.call(t,n,1),--this.size,!0)},Qg=function(e){var t=this.__data__,n=Kg(t,e);return n<0?void 0:t[n][1]},$g=function(e){return Vg(this.__data__,e)>-1},Zg=function(e,t){var n=this.__data__,i=Xg(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function ev(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])}}ev.prototype.clear=Yg,ev.prototype.delete=Jg,ev.prototype.get=Qg,ev.prototype.has=$g,ev.prototype.set=Zg;var tv=ev,nv=tv;var iv=function(){this.__data__=new nv,this.size=0};var rv=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var ov=function(e){return this.__data__.get(e)};var av=function(e){return this.__data__.has(e)},sv="object"==typeof ee&&ee&&ee.Object===Object&&ee,cv=sv,lv="object"==typeof self&&self&&self.Object===Object&&self,uv=cv||lv||Function("return this")(),dv=uv.Symbol,hv=dv,pv=Object.prototype,fv=pv.hasOwnProperty,gv=pv.toString,vv=hv?hv.toStringTag:void 0;var mv=function(e){var t=fv.call(e,vv),n=e[vv];try{e[vv]=void 0;var i=!0}catch(e){}var r=gv.call(e);return i&&(t?e[vv]=n:delete e[vv]),r},yv=Object.prototype.toString;var Ev=mv,bv=function(e){return yv.call(e)},wv=dv?dv.toStringTag:void 0;var _v=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":wv&&wv in Object(e)?Ev(e):bv(e)};var Tv=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Sv=_v,Cv=Tv;var Iv,kv=function(e){if(!Cv(e))return!1;var t=Sv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Av=uv["__core-js_shared__"],xv=(Iv=/[^.]+$/.exec(Av&&Av.keys&&Av.keys.IE_PROTO||""))?"Symbol(src)_1."+Iv:"";var Ov=function(e){return!!xv&&xv in e},Lv=Function.prototype.toString;var Rv=kv,Nv=Ov,Pv=Tv,Dv=function(e){if(null!=e){try{return Lv.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Mv=/^\[object .+?Constructor\]$/,Uv=Function.prototype,Fv=Object.prototype,Bv=Uv.toString,qv=Fv.hasOwnProperty,Hv=RegExp("^"+Bv.call(qv).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var jv=function(e){return!(!Pv(e)||Nv(e))&&(Rv(e)?Hv:Mv).test(Dv(e))},Gv=function(e,t){return null==e?void 0:e[t]};var Wv=function(e,t){var n=Gv(e,t);return jv(n)?n:void 0},zv=Wv(uv,"Map"),Kv=Wv(Object,"create"),Vv=Kv;var Xv=function(){this.__data__=Vv?Vv(null):{},this.size=0};var Yv=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Jv=Kv,Qv=Object.prototype.hasOwnProperty;var $v=function(e){var t=this.__data__;if(Jv){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Qv.call(t,e)?t[e]:void 0},Zv=Kv,em=Object.prototype.hasOwnProperty;var tm=Kv;var nm=Xv,im=Yv,rm=$v,om=function(e){var t=this.__data__;return Zv?void 0!==t[e]:em.call(t,e)},am=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tm&&void 0===t?"__lodash_hash_undefined__":t,this};function sm(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])}}sm.prototype.clear=nm,sm.prototype.delete=im,sm.prototype.get=rm,sm.prototype.has=om,sm.prototype.set=am;var cm=sm,lm=tv,um=zv;var dm=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var hm=function(e,t){var n=e.__data__;return dm(t)?n["string"==typeof t?"string":"hash"]:n.map},pm=hm;var fm=hm;var gm=hm;var vm=hm;var mm=function(){this.size=0,this.__data__={hash:new cm,map:new(um||lm),string:new cm}},ym=function(e){var t=pm(this,e).delete(e);return this.size-=t?1:0,t},Em=function(e){return fm(this,e).get(e)},bm=function(e){return gm(this,e).has(e)},wm=function(e,t){var n=vm(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function _m(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])}}_m.prototype.clear=mm,_m.prototype.delete=ym,_m.prototype.get=Em,_m.prototype.has=bm,_m.prototype.set=wm;var Tm=tv,Sm=zv,Cm=_m;var Im=tv,km=iv,Am=rv,xm=ov,Om=av,Lm=function(e,t){var n=this.__data__;if(n instanceof Tm){var i=n.__data__;if(!Sm||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Cm(i)}return n.set(e,t),this.size=n.size,this};function Rm(e){var t=this.__data__=new Im(e);this.size=t.size}Rm.prototype.clear=km,Rm.prototype.delete=Am,Rm.prototype.get=xm,Rm.prototype.has=Om,Rm.prototype.set=Lm;var Nm=Rm,Pm=Wv,Dm=function(){try{var e=Pm(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mm=Dm;var Um=function(e,t,n){"__proto__"==t&&Mm?Mm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Fm=Um,Bm=Hg;var qm=function(e,t,n){(void 0!==n&&!Bm(e[t],n)||void 0===n&&!(t in e))&&Fm(e,t,n)};var Hm=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}}(),jm={exports:{}};!function(e,t){var n=uv,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}}(jm,jm.exports);var Gm=uv.Uint8Array;var Wm=function(e){var t=new e.constructor(e.byteLength);return new Gm(t).set(new Gm(e)),t};var zm=function(e,t){var n=t?Wm(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Km=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Vm=Tv,Xm=Object.create,Ym=function(){function e(){}return function(t){if(!Vm(t))return{};if(Xm)return Xm(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Jm=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Qm=Object.prototype;var $m=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Qm)},Zm=Ym,ey=Jm,ty=$m;var ny=function(e){return"function"!=typeof e.constructor||ty(e)?{}:Zm(ey(e))};var iy=function(e){return null!=e&&"object"==typeof e},ry=_v,oy=iy;var ay=function(e){return oy(e)&&"[object Arguments]"==ry(e)},sy=iy,cy=Object.prototype,ly=cy.hasOwnProperty,uy=cy.propertyIsEnumerable,dy=ay(function(){return arguments}())?ay:function(e){return sy(e)&&ly.call(e,"callee")&&!uy.call(e,"callee")},hy=Array.isArray;var py=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},fy=kv,gy=py;var vy=function(e){return null!=e&&gy(e.length)&&!fy(e)},my=vy,yy=iy;var Ey=function(e){return yy(e)&&my(e)},by={exports:{}};var wy=function(){return!1};!function(e,t){var n=uv,i=wy,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}(by,by.exports);var _y=_v,Ty=Jm,Sy=iy,Cy=Function.prototype,Iy=Object.prototype,ky=Cy.toString,Ay=Iy.hasOwnProperty,xy=ky.call(Object);var Oy=function(e){if(!Sy(e)||"[object Object]"!=_y(e))return!1;var t=Ty(e);if(null===t)return!0;var n=Ay.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ky.call(n)==xy},Ly=_v,Ry=py,Ny=iy,Py={};Py["[object Float32Array]"]=Py["[object Float64Array]"]=Py["[object Int8Array]"]=Py["[object Int16Array]"]=Py["[object Int32Array]"]=Py["[object Uint8Array]"]=Py["[object Uint8ClampedArray]"]=Py["[object Uint16Array]"]=Py["[object Uint32Array]"]=!0,Py["[object Arguments]"]=Py["[object Array]"]=Py["[object ArrayBuffer]"]=Py["[object Boolean]"]=Py["[object DataView]"]=Py["[object Date]"]=Py["[object Error]"]=Py["[object Function]"]=Py["[object Map]"]=Py["[object Number]"]=Py["[object Object]"]=Py["[object RegExp]"]=Py["[object Set]"]=Py["[object String]"]=Py["[object WeakMap]"]=!1;var Dy=function(e){return Ny(e)&&Ry(e.length)&&!!Py[Ly(e)]};var My=function(e){return function(t){return e(t)}},Uy={exports:{}};!function(e,t){var n=sv,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}(Uy,Uy.exports);var Fy=Dy,By=My,qy=Uy.exports,Hy=qy&&qy.isTypedArray,jy=Hy?By(Hy):Fy;var Gy=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Wy=Um,zy=Hg,Ky=Object.prototype.hasOwnProperty;var Vy=function(e,t,n){var i=e[t];Ky.call(e,t)&&zy(i,n)&&(void 0!==n||t in e)||Wy(e,t,n)},Xy=Um;var Yy=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?Xy(n,s,c):Vy(n,s,c)}return n};var Jy=/^(?:0|[1-9]\d*)$/;var Qy=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Jy.test(e))&&e>-1&&e%1==0&&e<t},$y=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Zy=dy,eE=hy,tE=by.exports,nE=Qy,iE=jy,rE=Object.prototype.hasOwnProperty;var oE=function(e,t){var n=eE(e),i=!n&&Zy(e),r=!n&&!i&&tE(e),o=!n&&!i&&!r&&iE(e),a=n||i||r||o,s=a?$y(e.length,String):[],c=s.length;for(var l in e)!t&&!rE.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||nE(l,c))||s.push(l);return s};var aE=Tv,sE=$m,cE=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},lE=Object.prototype.hasOwnProperty;var uE=oE,dE=function(e){if(!aE(e))return cE(e);var t=sE(e),n=[];for(var i in e)("constructor"!=i||!t&&lE.call(e,i))&&n.push(i);return n},hE=vy;var pE=function(e){return hE(e)?uE(e,!0):dE(e)},fE=Yy,gE=pE;var vE=qm,mE=jm.exports,yE=zm,EE=Km,bE=ny,wE=dy,_E=hy,TE=Ey,SE=by.exports,CE=kv,IE=Tv,kE=Oy,AE=jy,xE=Gy,OE=function(e){return fE(e,gE(e))};var LE=Nm,RE=qm,NE=Hm,PE=function(e,t,n,i,r,o,a){var s=xE(e,n),c=xE(t,n),l=a.get(c);if(l)vE(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=_E(c),p=!h&&SE(c),f=!h&&!p&&AE(c);u=c,h||p||f?_E(s)?u=s:TE(s)?u=EE(s):p?(d=!1,u=mE(c,!0)):f?(d=!1,u=yE(c,!0)):u=[]:kE(c)||wE(c)?(u=s,wE(s)?u=OE(s):IE(s)&&!CE(s)||(u=bE(c))):d=!1}d&&(a.set(c,u),r(u,c,i,o,a),a.delete(c)),vE(e,n,u)}},DE=Tv,ME=pE,UE=Gy;var FE=function e(t,n,i,r,o){t!==n&&NE(n,(function(a,s){if(o||(o=new LE),DE(a))PE(t,n,s,i,e,r,o);else{var c=r?r(UE(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),RE(t,s,c)}}),ME)};var BE=function(e){return e};var qE=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)},HE=Math.max;var jE=function(e,t,n){return t=HE(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=HE(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),qE(e,this,s)}};var GE=function(e){return function(){return e}},WE=Dm,zE=WE?function(e,t){return WE(e,"toString",{configurable:!0,enumerable:!1,value:GE(t),writable:!0})}:BE,KE=Date.now;var VE=function(e){var t=0,n=0;return function(){var i=KE(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(zE),XE=BE,YE=jE,JE=VE;var QE=Hg,$E=vy,ZE=Qy,eb=Tv;var tb=function(e,t){return JE(YE(e,t,XE),e+"")},nb=function(e,t,n){if(!eb(n))return!1;var i=typeof t;return!!("number"==i?$E(n)&&ZE(t,n.length):"string"==i&&t in n)&&QE(n[t],e)};var ib=FE;rb=function(e,t,n){ib(e,t,n)},tb((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=rb.length>3&&"function"==typeof r?(i--,r):void 0,o&&nb(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&rb(e,a,n,r)}return e}));var rb;function ob(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 ab(e,t,n){const i=ob(e),r=ob(t),o=ob(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 sb="data-draggable-initialized",cb="touchstart",lb="touchmove",ub="touchend";class db{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;db.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(cb,t),this.draggableElementEl.setAttribute(sb,!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=ab(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(lb,t),document.addEventListener(ub,(function e(){document.removeEventListener(lb,t),document.removeEventListener(ub,e)}))}moveTo(e,t){const n=ab(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)}}db.isDraggable=function(e){return!!e.getAttribute(sb)};const hb="data-zoomable-initialized",pb="touchstart",fb="touchmove",gb="touchend";class vb{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;vb.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(pb,t),this.zoomableElement.setAttribute(hb,!0))}scaleElement(e,t){if(1===e)return;this.limits=ab(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(fb,t),document.addEventListener(gb,(function e(){document.removeEventListener(fb,t),document.removeEventListener(gb,e)}))}}vb.isZoomable=function(e){return!!e.getAttribute(hb)};let mb;class yb{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=>{mb=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()),y(this.navSearchEl,"navbar:expand"))}collapseSearchBar(){document.body.classList.remove("search-expanded"),this.typeaheadInstance.hideClearEl(),this.getSearchExpandedClass()&&document.body.classList.remove(this.getSearchExpandedClass()),y(this.navSearchEl,"navbar:collapse")}initializeBlendedTypeahead(){this.navSearchEl=this.el.querySelector("#nav-search"),this.typeaheadInstance=new mb(this.navSearchEl),this.typeaheadInstance.hideClearEl(),this.registerSearchType("people",{isDefault:!0})}initSecondaryNavScroll(e){new Vc(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(),Og(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),s.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 Eb extends nl{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:Eb.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Fa(Eb,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class bb extends nl{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:bb.query,successCallback:e,failureCallback:t})}}Fa(bb,"query","da4a9ce2de842c1abe01ca37ea9271ee");function wb(e){const t=e.target.value;e.target.classList.toggle("selected",t),e.target.focus()}function _b(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",wb),i.value&&i.classList.add("selected"))}else{document.querySelectorAll(".dropdown-container").forEach(_b)}}function Tb(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&&ma()?Pa("i18n_aria_live_text_input_cleared").replace("{:label}",r):Pa("i18n_input_cleared"),a=ma()?"assertive":"polite";o&&(W(),G(o,a)),y(n,"input:cleared"),y(n,"change")}function Sb(e){const t=e.currentTarget.parentElement,n=t.dataset.placeholder,i=t.querySelector("input");n&&i.setAttribute("placeholder",n),i.removeEventListener("focus",Sb)}function Cb(e){const t=e.target.value;e.target.classList.toggle("selected",t)}function Ib(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",Cb),i.addEventListener("focus",Sb),r&&r.addEventListener("click",Tb)}else{document.querySelectorAll(".input-container").forEach(Ib)}}const kb=/^\d{4,15}$/,Ab=/[-\s+().]/g,xb=/^\S+@\S+\.\S+$/,Ob=/[,]|.*@.*@/,Lb="MinLength",Rb="MaxLength",Nb="Regex",Pb="Required",Db="RegexAllow",Mb=e=>e&&xb.test(e)&&!Ob.test(e),Ub={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{errorCode:"Email",validate:Mb},WORK_EMAIL:{errorCode:"WorkEmail",validate:e=>Mb(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(Ab,"");return!(!t||!kb.test(t))}}},Fb="EMAIL_ADDRESS",Bb="PHONE_NUMBER",qb="WORK_EMAIL",Hb="consentUnchecked",jb={INPUT:"INPUT",SELECT:"SELECT"},Gb="text",Wb="checkbox";function zb(e){return Object.keys(jb).includes(e.tagName)}function Kb(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case Fb:t.push({type:Db,RegexAllow:[Ub.EMAIL]});break;case qb:t.push({type:Db,RegexAllow:[Ub.WORK_EMAIL]});break;case Bb:o=e.value.replace(/ /g,""),t.push({type:Db,RegexAllow:[Ub.PHONE_NUMBER]})}return e.required&&t.push({type:Pb}),n&&t.push({type:Lb,MinLength:n}),i&&t.push({type:Rb,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 Pb:if(0===n.length)return Pb;break;case Lb:if(n.length<e[Lb])return Lb;break;case Rb:if(n.length>e[Rb])return Rb;break;case Nb:for(let t=0;t<e[Nb].length;t++){var i,r,o,a;if(!0===(null===(i=e[Nb][t])||void 0===i||null===(r=i.validate)||void 0===r?void 0:r.call(i,n))||!0===(null===(o=e[Nb][t])||void 0===o||null===(a=o.pattern)||void 0===a?void 0:a.test(n)))return Nb+e[Nb][t].errorCode}break;case Db:for(let t=0;t<e[Db].length;t++){var s,c,l,u;if(!1===(null===(s=e[Db][t])||void 0===s||null===(c=s.validate)||void 0===c?void 0:c.call(s,n))||!1===(null===(l=e[Db][t])||void 0===l||null===(u=l.pattern)||void 0===u?void 0:u.test(n)))return Db+e[Db][t].errorCode}}})(e,n)).filter(e=>!!e)}function Vb(e,t){return t&&!e?Hb:null}const Xb=(e,t)=>parseInt(t.split(e)[1]);function Yb(e,t){return document.getElementById(e.id+"-strings").dataset["str"+t]}const Jb=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Qb=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),$b=(e,t)=>({question:e,multipleChoiceAnswer:{options:[t]}});function Zb(e,t){const n=e.id+"_",i=n+"q",r=n+"c",o=Pa("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(zb).forEach(e=>{let t;if(e.tagName===jb.SELECT)t=((e,t,n)=>{const i=Xb(e,t.id),r=t.selectedIndex;return{response:n?$b(i,r):Qb(i,r)}})(i,e,o),o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else if(e.type===Gb)if(t=((e,t,n)=>{const i=Xb(e,t.id),r=Kb(t);return 0!==r.length?{errors:r}:{response:n?(o=i,a=t.value,{question:o,textQuestionAnswer:{answer:a}}):Jb(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===Wb&&(t=((e,t,n,i,r)=>{const o=Xb(e,t),a=Vb(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 ew extends nl{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:ew.query,variables:e,successCallback:t,failureCallback:n})}}Fa(ew,"query","0a321276f8bcd90441cffeb1ab648fa1");const tw="VIEW_FORM",nw=".lead-gen-input-container",iw=".error-text",rw=".submit-btn",ow="input-error",aw="checkbox-input",sw="inputbox-input";class cw{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");wa("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(rw),this.persistFormOnSubmit=o,this.encryptedTrackingData=i,this.encodedLeadGenFormTrackingContext=n,a&&(this.leadGenResponseMutation=new ew(a,r)),t||this._bindInputHandlers(),this.encodedLeadGenFormTrackingContext&&!t&&(this._initClickTracking(),this._initViewTracking())}showPostSubmissionInfo(){la(this.formContentEl),this.postSubmissionInfoEl&&ua(this.postSubmissionInfoEl)}hideForm(){la(this.formContentEl)}enableSubmit(){ga(this.submitBtn)}_clearFormErrors(){Array.from(this.formEl).filter(zb).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Zb(this.formEl,this.encryptedTrackingData).then(e=>{if(fa(this.submitBtn),this.leadGenResponseMutation){const t=this.leadGenResponseMutation.execute(e);y(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,t)}else y(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();G(Yb(t.element,t.errorType),j.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(nw),n=t.querySelector(iw);la(n),t.classList.remove(ow),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(nw))||void 0===t?void 0:t.classList.contains(ow)}_setAndShowError(e,t){if(e){const n=Yb(e,t),i=e.closest(nw),r=i.querySelector(iw);r.innerText=n,ua(r),i.classList.add(ow),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===Wb)t=Vb(e.checked,e.required);else if(e.type===Gb){const n=Kb(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindInputHandlers(){this.formEl.addEventListener("click",e=>{e.target.classList.contains(aw)&&this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(sw)&&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=T(document,{skipSuffix:!0}),o=`${r}-${null==t?void 0:t.toLowerCase()}`,a=qo(r);i?rg("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=tw,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)}})}}Fa(cw,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");const lw=".bottom-sheet",uw=".lead-gen-modal";class dw extends cw{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(lw);c&&(this.bottomSheet=new Qf({bottomSheetEl:c,pushState:!1})),this._initModal(s),t&&this.showForm()}_initModal(e){const t=this.containerEl.querySelector(uw);this.modal=new Xo(t,{triggerByOutletEl:e,shouldMoveToTopContainer:!1})}showForm(){this.modal.open()}hideForm(){this.modal.close()}showPostSubmissionInfo(){this.bottomSheet?(this.modal.close(),this.bottomSheet.open()):this.postSubmissionInfoEl?(la(this.formContentEl),ua(this.postSubmissionInfoEl)):this.modal.close()}_initViewTracking(){const e=this.containerEl.dataset.lgfViewActionType,t=this.containerEl.querySelector(uw).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 hw extends dw{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}),_b(),Ib()}_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 Rl(t,{triggerByOutletEl:e,shouldMoveToTopContainer:!1})}}class pw{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=Pa("share-via-text"),r=Pa("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 Xo(this.shareViaModalEl)),this.bindEvents()}modalClickHandler(e){const t=r(e.target,"[data-action-copy-to-clipboard]");t?(this.onSelect(e,t),this.copyToClipboard.call(this,e)):this.onSelect(e,r(e.target,".share-via-action")),this.shareViaModal.close()}share(){navigator.canShare&&navigator.canShare(this.shareData)?navigator.share(this.shareData):this.shareViaModal&&this.shareViaModal.open()}copyToClipboard(){navigator.clipboard.writeText(this.shareData.url).then(()=>{this.onClipboardCopy(!0)}).catch(e=>{this.onClipboardCopy(!1,e)})}bindEvents(){this.shareViaActionEl.addEventListener("click",this.share.bind(this)),this.shareViaModalEl&&this.shareViaModalEl.addEventListener("click",this.modalClickHandler.bind(this))}}const fw="FOLLOW_ACTIVE",gw="UNFOLLOW";class vw{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 tl({endpoint:this.endpoint,queryId:vw.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)}}Fa(vw,"query","cbed571fffd8cea15209aed8d44e6759");class mw{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 lf(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 vw(this.followConfig.endpoint)),this._enableComment=o,document.getElementById("toasts")&&(this.toasts=new Ic);const c=e.querySelector(".collapsible-dropdown__list"),l=c.querySelector('[data-feed-action="control-menu-semaphore"]');l&&new cf('[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 pw(u,{onClipboardCopy:e=>{var t,n;e?null===(t=this.toasts)||void 0===t||t.trigger("success",Pa("i18n_copy_to_clipboard_success")):null===(n=this.toasts)||void 0===n||n.trigger("error",Pa("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 zf(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 zf(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;la(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;Mg(n,{activityUrn:a,feedItemTrackingId:s}),null===(i=this.toasts)||void 0===i||i.clearAllToasts(),t.remove(),ua(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(fw,e.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},t=>{var n,i,r;null===(n=this.toasts)||void 0===n||n.trigger("error",e.getAttribute("data-failure-message")),null===(i=this.followConfig)||void 0===i||null===(r=i.errorCallback)||void 0===r||r.call(i,t)})})}_handleFollowAction(e){var t,n,i;const r=e.target.closest("[data-feed-action]");null===(t=this.toasts)||void 0===t||t.clearAllToasts();G(r.getAttribute("data-unfollow-ally-text")),la(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(gw,r.getAttribute("data-entity-urn"),e=>{var t,n;null===(t=this.followConfig)||void 0===t||null===(n=t.successCallback)||void 0===n||n.call(t,e)},e=>{var t,n,i;null===(t=this.toasts)||void 0===t||t.trigger("error",r.getAttribute("data-unfollow-failure-message")),null===(n=this.followConfig)||void 0===n||null===(i=n.errorCallback)||void 0===i||i.call(n,e)})}handleControlMenuActions(e){const t=e.target.closest("[data-feed-action]"),n=e.target.closest('[data-id="main-feed-card"]');if(t&&t.getAttribute("data-feed-action")&&n){switch(t.getAttribute("data-feed-action")){case"control-menu-unfollow":this._handleFollowAction(e);break;case"control-menu-delete":this.deleteConfirmationModal.modal.open();break;case"control-menu-disable-comments":this.disableCommentsConfirmationModal.modal.open();break;case"control-menu-enable-comments":this._enableComment(e,n)}y(this._el,"close")}}}const yw=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(yw));const Ew="CREATE",bw="DELETE",ww="UPDATE";class _w{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:_w.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Ew&&n!==ww||(o.variables.reactionType=e),tl(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Fa(_w,"query","070ee23fd6fb77f92ac08f964ae1df29");const Tw="REACT",Sw="UNREACT",Cw={LIKE:"Like",PRAISE:"Celebrate",APPRECIATION:"Support",ENTERTAINMENT:"Funny",EMPATHY:"Love",INTEREST:"Insightful",MAYBE:"Curious"};var Iw=new WeakSet;class kw{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(za(this,Iw),this.triggerSelector=e,this.a11yTriggerSelector=e+"--a11y",this.parentContainerElement=t,this._mutationInstance=new _w(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=>{Y()?(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",v(this.showReactions.bind(this),300)),e.addEventListener("mouseleave",v(()=>{!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?Ew:bw,t=>{this.onReactionSuccess(t,e)},e=>{this.onReactionError(e)})}else e.target.closest(this.a11yTriggerSelector)&&(e.stopPropagation(),this.isA11yTriggerActive=!0,this.isReactionMenuVisible()?this.hideReactions(!1):this.showReactions(e))}),this.parentContainerElement.querySelectorAll(this.a11yTriggerSelector).forEach(e=>{e.addEventListener("focus",e=>{e.target.classList.remove("w-0")}),e.addEventListener("blur",e=>{!this.getContainerElement(e.target).querySelector('[data-id="reactions-menu"]')&&e.target.classList.add("w-0")})})}handleFocusForReactionEl(e){e?(e.focus(),e.classList.add("outline-none")):document.activeElement.blur()}getTouchEventTarget(e){const t=e.changedTouches[0];return r(document.elementFromPoint(t.clientX,t.clientY),"[data-reaction-type]")}showReactions(e){if(!this.isReactionMenuVisible()){var t,n;let i=e.target;if(!e.target.classList.contains("reaction-menu")&&(i=this.getContainerElement(e.target),!i))return;this.renderReactionsMenu(i),this.reactionsMenuPageViewEvent&&(null===(t=window.tracking)||void 0===t||t.then(e=>{Bo(e,"half",this.reactionsMenuPageViewEvent)})),Y()&&(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}Y()&&!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?ww:null:t?Ew:bw}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,Mg(n)}else Mg(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){r(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&&ja(this,Iw,Aw).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&&ja(this,Iw,Aw).call(this,e,a),n.classList.remove("hidden"),void this.postReactionChangeCallback("",e)}this.setReaction(yw.LIKE,e)}postReactionChangeCallback(e,t){const n=(e?"un"+e:""+yw.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?Sw:Tw)}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 Aw(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Unselected";const i=Pa("i18n_reaction_selection_state").replace("%reactionType%",Cw[t]).replace("%selectionState%",n);e.querySelector(this.triggerSelector).setAttribute("aria-label",i)}const xw=new Set(["attributed-text-segment-list__content-truncated","attributed-text-segment-list__content-truncated-10","attributed-text-segment-list__content-truncated-20"]);class Ow{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"),aa(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(){xw.forEach(e=>{this._el.classList.remove(e)})}}class Lw{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 vw(t,a,c),this._unfollowMutationInstance=new vw(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(fw,this._entityUrn,e=>{this._successCallbackForFollow(e)},e=>{this._hideFollowingButton(),this._errorCallback(e)})}),this._followingButtonEl.addEventListener("click",e=>{e.preventDefault(),this._hideFollowingButton(),this._unfollowMutationInstance.execute(gw,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 Rw="video_thumbnail_play",Nw="video_toolbar_play_pause",Pw="video_toolbar_mute_unmute",Dw="video_toolbar_volume_slider",Mw="video_toolbar_fullscreen_toggle",Uw="video_toolbar_scrubber",Fw="video_toolbar_replay",Bw="video_toolbar_back_to_start",qw="playVideo",Hw="pauseVideo",jw="replayVideo",Gw="muteVideo",Ww="unmuteVideo",zw="seekVideo",Kw="fullscreenVideo",Vw="unfullscreenVideo",Xw="changeVolume",Yw="moveToVideoStart",Jw="PLAY",Qw="PAUSE",$w="MUTE",Zw="EXPAND",e_="UNDO",t_="VIEW";class n_{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=Pa("is-mobile"),this._handleShareAction(),this._initC2paButton(),this._handleFeedClick()}_initC2paButton(){if(!this._isLoggedIn)return;const e=this._el.querySelector(".c2pa-button");e&&(this.c2paButton=new $f(e,this._el))}_initFeedAttributedTextSegmentList(){this._el.querySelectorAll(".attributed-text-segment-list__content").forEach(e=>new Ow(e))}_initControlMenu(){const e=this._el.querySelector(".ellipsis-menu");return!e||this._isAccuratePreview?null:this._isLoggedIn?void new mw(e,this._controlMenuConfig):new lf(e)}_handleShareAction(){this._isLoggedIn&&this._isMobile&&this._el.addEventListener("click",e=>{const t=e.target.closest('[data-feed-action="share"]');t&&y(this._el,"feedItemShared",{socialActionShareEl:t,feedItemEl:this._el})})}_initSocialActionBarMenu(){if(this._isLoggedIn&&this._el.querySelector('[data-id="reactions-menu"]'))return{reactionsMenu:new kw(".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 Lw(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 Gc(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;Mg(null,this._el.dataset,function(e,t){switch(e){case Nw:return{feedActionType:t.paused()?Hw:qw,feedActionCategory:t.paused()?Qw:Jw,feedControl:e};case Rw:return{feedActionType:qw,feedActionCategory:Jw,feedControl:e};case Pw:return{feedActionType:t.muted()?Gw:Ww,feedActionCategory:t.muted()?$w:Zw,feedControl:e};case Mw:return{feedActionType:t.isFullscreen()?Kw:Vw,feedActionCategory:t.isFullscreen()?Zw:e_,feedControl:e};case Uw:return{feedActionType:zw,feedActionCategory:Zw,feedControl:e};case Dw:return{feedActionType:Xw,feedActionCategory:Zw,feedControl:e};case Fw:return{feedActionType:jw,feedActionCategory:Jw,feedControl:e};case Bw:return{feedActionType:Yw,feedActionCategory:t_,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 Zf(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 hw(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 Oc(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 Lw(i,e)}_handleFeedClick(){this._isLoggedIn&&this._el.addEventListener("click",e=>{var t;e.target.closest(".social-action-bar")||(Mg(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 Xp(e)}getNativeVideo(){return this._nativeVideo}}class i_{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Fa(this,"_handleFocusIn",()=>{var e;null===(e=this._overlayLinkEl)||void 0===e||e.classList.add("!z-0")}),Fa(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 n_(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 r_{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?Pa("i18n_reactions_plural").replace("%numReactions%",o):1===n?Pa("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=Pa("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 o_="https://radar.cedexis.com/1/11326/radar.html",a_="https://platform.linkedin.com/js/thirdPartyJSDelegatorFrame.html?type=dyndns";function s_(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 c_(){s_(a_)}function l_(){s_(o_)}Object.freeze({HTML:"html",TEXT:"text",DATA:"data"}),Object.freeze({DESKTOP:"desktop",IOS:"ios",ANDROID:"android"});function u_(e,t){const n=Pa("offline-text");t.clearAllToasts(),e&&t.trigger(Cc.NOTIFY,n,"offline")}function d_(e){e&&(e.setAttribute("category","system-icons"),e.setAttribute("type","close-small"))}const h_=["category","type"];let p_;const f_=e=>{const t=e.getAttribute("type");t&&0===t.indexOf("large-")&&e.classList.add("large-icon")},g_=(e,t,n)=>{for(;e.firstChild;)e.removeChild(e.firstChild);const i=t&&n&&((e,t)=>{const n=p_.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 v_ extends HTMLElement{connectedCallback(){this.update(),this.syncA11yCaption(),this.setAttribute("aria-hidden","true"),f_(this)}disconnectedCallback(){this.removeA11yCaption()}static get observedAttributes(){return["a11y-text","type","class"]}attributeChangedCallback(e){h_.indexOf(e)>-1&&this.update(),"a11y-text"===e&&this.syncA11yCaption(),"type"!==e&&"class"!==e||f_(this)}update(){const e=this.getAttribute("type"),t=this.getAttribute("category")||"ui",n="true"===this.dataset.inlineSvg;(e||t)&&(n||g_(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 m_(){var e;const t=null===(e=document.getElementById("icons-svg"))||void 0===e?void 0:e.getAttribute("content");t&&Q(t,{skipCsrfToken:!0,sendCookies:!1}).then(e=>e.responseText).then(e=>{const t=(new DOMParser).parseFromString(e,"application/xml").firstChild;t&&(p_=t,customElements.define("li-icon",v_))})}const y_=["light","dark","system"],E_=["app","user"];let b_="light".toUpperCase();function w_(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),b_=(e?"dark":"light").toUpperCase();La("theme-color",e?"#1b1f23":"#ffffff")}function __(e){localStorage.setItem("mobileWebTheme",e)}function T_(){const e=Pa("darkModeLixValue");if(!e||"control"===e)return;const t=p(window.location.href,"li_theme");if(t)return w_("dark"===t),void __("dark"===t?"dark":"light");const n="on"===e?"system":"light",i=m("li_theme"),r=i&&y_.includes(i)?i:n;"system"===r?function(){if(window.matchMedia){w_(window.matchMedia("(prefers-color-scheme:dark)").matches);try{window.matchMedia("(prefers-color-scheme:dark)").addEventListener("change",e=>w_(e.matches))}catch(e){window.matchMedia("(prefers-color-scheme:dark)").addListener(e=>w_(e.matches))}}}():w_("dark"===r),__(r),function(e,t){let n="app";const i=m("li_theme_set");i&&E_.includes(i)?n=i:("on"===e&&"system"!==t||"enabled-light"===e&&"light"!==t)&&(n="user"),ka("li_theme_set",n,15552e6)}(e,r)}const S_=()=>{const e=window.location.href;window.addEventListener("popstate",t=>{if(t.state&&t.state.action&&"reload"===t.state.action){e===window.location.href||Aa()}})};function C_(e){return{isVoyagerAndroidAppInstalled:e.indexOf("com.linkedin.android")>-1,appTypesInstalled:e}}function I_(e){o(()=>{!function(e){const t=[],n=navigator.getInstalledRelatedApps&&"function"==typeof navigator.getInstalledRelatedApps;if(n)window.appDetection.then(i=>{i.forEach(e=>{t.push(e.id)});const r=C_(t);e(n,r)});else{const i=C_(t);e(n,i)}}(e)})}const k_={PRIMARY_ACTION:"PRIMARY_ACTION",SECONDARY_ACTION:"SECONDARY_ACTION",SKIP:"SKIP",DISMISS:"DISMISS"},A_={PAGE_IMPRESSION:"PAGE_IMPRESSION",WIDGET_IMPRESSION:"WIDGET_IMPRESSION",WIDGET_ACTION:"WIDGET_ACTION"};var x_=Object.freeze({__proto__:null,ACTION_CATEGORY:k_,EVENT_TYPE:A_,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){Q(e,{method:"POST",postData:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).catch(()=>{})}});class O_ extends nl{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:O_.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Fa(O_,"query","48f4c814e38d5689b7c83a29c9676972");let L_,R_;function N_(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&&(R_.execute({eventType:A_.WIDGET_ACTION,trackingToken:t,widgetActionCategory:k_.DISMISS}),window.tracking.then(e=>{e.fireControlInteractionEvent("app_upsell_dismiss")})):R_.execute({eventType:A_.WIDGET_ACTION,trackingToken:t,widgetActionCategory:k_.PRIMARY_ACTION})),L_(),n.remove()}}function P_(){const e=document.querySelector("#promo-upsell");var t,n;e&&(R_=new O_(function(){const e=document.querySelector('meta[name="queryEndpoint"]');return null==e?void 0:e.getAttribute("content")}()),document.body.classList.add("no-scroll"),ua(e),L_=bc({el:e,focusElement:document.querySelector("#promo-upsell .promo__action")}),e.addEventListener("click",N_),(t=e.dataset.legoTrackingId)&&(R_.execute({eventType:A_.PAGE_IMPRESSION,trackingToken:t}),R_.execute({eventType:A_.WIDGET_IMPRESSION,trackingToken:t})),null===(n=window.tracking)||void 0===n||n.then(e=>{Bo(e,"half","p_mwlite_app_upsell_lego")}))}function D_(e,t){if(Pa("disableAppUpsellPrompt"))return;const{isVoyagerAndroidAppInstalled:n}=t;e&&t&&n||P_()}function M_(){document.querySelectorAll("#app-upsell-container").forEach(e=>e.parentNode.removeChild(e)),I_(D_)}function U_(){new Promise(e=>{window.mWebBlendedTypeaheadPromise=Fl(),window.addEventListener("DOMContentLoaded",()=>{var e,t,n;e=Vf(),window.addEventListener("offline",()=>u_(!0,e)),window.addEventListener("online",()=>u_(!1,e)),Ta(),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",()=>{u(document.querySelectorAll("li-icon.artdeco-global-alert__icon--dismissed")).map(d_),m_(),Ca("#overlay_"),T_(),l_(),c_(),l.getInstance().addPagehideCallback(()=>{sessionStorage.setItem("previousPage",window.location.href)}),function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/";const t=()=>{const t=document.location.href,n=document.title,i={action:"reload",landingPage:t};window.history.replaceState(i,"",e),window.history.pushState(i,n,t)};xa()&&t(),S_()}(),Xf(),M_(),Ca("#mobile-nav-search"),setTimeout(()=>{var t;null===(t=window.tracking)||void 0===t||t.then(t=>{Sa()&&Bo(t,ig.AJAX,"p_mwlite_launched_from_homescreen"),e()})})})})}function F_(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 B_(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q_(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,W_(i.key),i)}}function H_(e,t,n){return t&&q_(e.prototype,t),n&&q_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j_(e,t,n){return(t=W_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G_(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 F_(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)?F_(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 W_(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 z_(e){return(z_="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 K_=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var V_=/^fs_/;function X_(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+z_(e)+".");var t,n,i=K_.exec(e);return i&&(t=i[1].replace(V_,""),n=i[2]),{id:n,type:t}}var Y_=/(?![^(]*\)),/;var J_={checkForEntityId:function(e){var t=K_.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:X_,urnToObject:function e(t){var n=X_(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Y_),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}};var Q_={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},$_="GUEST",Z_="MEMBER",eT="ENTERPRISE_UNBOUND",tT=0,nT=1,iT=2;j_(j_(j_({},$_,"li_gc"),Z_,"li_mc"),eT,"li_ec");j_(j_(j_({},$_,"mypreferences/g/guest-cookies"),Z_,"settings/member-cookies"),eT,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var rT=H_((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 B_(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Q_)t[o]=t[o]||tT,t[o]!==tT&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===nT||t[o]===tT&&r===nT})),oT=(function(){var e=[Q_.ADVERTISING,Q_.ANALYTICS_AND_RESEARCH,Q_.FUNCTIONAL],t=[tT,nT,iT,tT],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=tT;return e>=0&&e<=3&&(n=t[e]),n}}(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),aT=0,sT=1;H_((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?aT:a;for(var c in B_(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},oT)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===sT}));Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const cT=document.querySelector("#share-modal .textarea"),lT=document.querySelector(".image-preview-wrapper"),uT=document.querySelector("#share-modal .modal-content .reshare-section"),dT=document.querySelector(".post-button"),hT=document.querySelector("#comments-enabled"),pT=document.querySelector("#share-with-public"),fT=document.querySelector(".post-settings-wrapper"),gT=document.querySelector('input[name="share-with"]:checked'),vT=document.querySelector("#share-modal .close-button"),mT=document.querySelector("#visibility-settings-modal"),yT=document.querySelector("#visibility-header-back .close-button"),ET=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),bT=document.querySelector("#discard-post-modal-wrapper"),wT=document.querySelector("#share-modal"),_T=document.querySelector(".modal-spinner"),TT=document.querySelector("#share-modal .textarea"),ST=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const CT=document.querySelector("#share-with-network");class IT extends Rl{updatePostButtonStatus(){var e;const t=null===(e=cT.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===lT.getAttribute("data-image-load-state"),i=uT.children.length;t||n||i?ga(dT):fa(dT)}clearModalContentBase(){uT&&(uT.textContent=""),cT&&(cT.textContent=""),hT&&(hT.checked=!0),pT&&(pT.checked=!0,fT.setAttribute("data-post-visibility",gT.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),vT.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"))})}mT.addEventListener("close",()=>{fT.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),yT.addEventListener("click",()=>window.history.back()),ET.addEventListener("click",t=>e(t)),ET.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}),va()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class kT extends IT{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=Pa("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new Rl(mT,{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=v(this.updatePostButtonStatus,300);TT.addEventListener("input",e)}bindShareModalEvents(){const e=new zf(bT,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});wT.addEventListener("open",()=>{cT.focus()}),wT.addEventListener("close",()=>{this.clearModalContentBase(),la(_T)}),dT.addEventListener("click",()=>{this.processPostData()}),vT.addEventListener("click",()=>{dT.disabled?this.close():e.modal.open()}),fT.addEventListener("click",this.postSettingsClickHandler.bind(this)),fT.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(),ma()&&window.scrollTo(0,0),n&&(TT.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=TT.textContent,this.shareData.visibility="PUBLIC",ST&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=ST.value),CT.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){ua(_T),this.composePostData(),tl({endpoint:this.endpoint,queryId:kT.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=>{Bo(e,"ajax","post_success_page_key")}),Vf().trigger("success",Pa("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:Pa("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{Bo(e,"ajax","post_failure_page_key")}),Vf().trigger("error",Pa("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())}}Fa(kT,"query","971e319c05beaf333e94125db8c4f942");const AT={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};tg({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:AT}),tg({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:AT}),tg({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:AT});class xT extends nl{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:xT.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Fa(xT,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class OT extends nl{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:OT.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Fa(OT,"query","a628cd3be2c138c07fc69c2413b23fb6");class LT extends nl{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:LT.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Fa(LT,"query","a0ff03a6b1cbe44862cb2054f0612078");class RT extends nl{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:RT.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Fa(RT,"query","ad184ece0303620a9753eca249efd99f");class NT extends nl{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:NT.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Fa(NT,"query","7edd5b8a4513caf8180a64ecde871630");class PT extends nl{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:PT.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Fa(PT,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class DT extends nl{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:DT.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Fa(DT,"query","85c85c121bf7eaabd2388b9143f94546");class MT extends nl{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:{assetUrn:e},successCallback:t,failureCallback:n})}}Fa(MT,"query","886ab48d89d7bb06bd1a5d5454286645");const UT={legoTrackingUtils:x_,getPageInstance:jo,getEventBody:qo,firePageViewEvent:Bo,fireViewModuleImpressionEvent:Ho,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 Ii(g),m=new qi(v,{customTransporterHosts:f,preTransporter:e=>({...e,meta:Wo(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){function r(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}function o(e){"complete"===document.readyState?e():window.addEventListener("load",()=>{setTimeout(e)})}n.d(t,"a",(function(){return td})),n.d(t,"b",(function(){return Pu})),n.d(t,"c",(function(){return Ds})),n.d(t,"d",(function(){return Fo})),n.d(t,"e",(function(){return Do})),n.d(t,"f",(function(){return _}));class a{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 s=function(){let e;return{getInstance:function(){return e||(e=new a),e}}}();class c{constructor(){this._pagehideCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("pagehide",e=>{for(let t=0;t<this._pagehideCallbacks.length;t++)this._pagehideCallbacks[t].call(null,e)})}addPagehideCallback(e){e instanceof Function&&this._pagehideCallbacks.push(e)}}const l=function(){let e;return{getInstance:function(){return e||(e=new c),e}}}();function u(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function d(e){const t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth,r=t.top<=n&&t.top+t.height>=0,o=t.left<=i&&t.left+t.width>=0;return r&&o}function h(){let{scrollTop:e=scrollY,clientHeight:t=window.innerHeight,scrollHeight:n=document.body.scrollHeight}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0;return r?e<=t*i:e>=n-(t+t*i)}function p(e,t,n){const i=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return i&&(n?i[2]:decodeURIComponent(i[2]))}function f(e,t){return g(e,"trk",t)}function g(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=p(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 v(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 m(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=document.createEvent("CustomEvent");i.initCustomEvent(t,!0,!0,n),e.dispatchEvent(i)}function E(){let e,t;const n=new Promise((n,i)=>{e=n,t=i});return n.resolve=e,n.reject=t,n}function b(e){return void 0!==e.msHidden?e.msHidden:void 0!==e.hidden?e.hidden:void 0}function w(e){return"string"!=typeof e?null:e.split("?")[0]}var _=Object.freeze({__proto__:null,closest:r,onload:o,UnloadHandler:s,PagehideHandler:l,makeArray:u,outerWidth:function(e){let t=e.offsetWidth,n=getComputedStyle(e);return t+=(parseInt(n.marginLeft,10)||0)+(parseInt(n.marginRight,10)||0),t},elementInViewport:d,hasElementScrolledToThreshold:h,getQueryParam:p,addTrackingCode:f,addQueryParam:g,debounce:v,getCookie:m,dispatchCustomEvent:y,getDeferredPromise:E,isDocumentHidden:b,stripQueryParams:w,getUrlWithQueryParamObject:function(e,t){if(!e||!t)return e;let n=e;for(const e of Object.keys(t))n=g(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 T(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),i=e.getElementById("config"),r=i&&"true"===i.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?`${n.content}${r||t.skipSuffix?"":"_jsbeacon"}`:""}function S(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function C(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function I(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const k={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},A={Down:k.ARROW_DOWN,Right:k.ARROW_RIGHT,Left:k.ARROW_LEFT,Up:k.ARROW_UP,Esc:k.ESCAPE,Spacebar:k.SPACEBAR,Tab:k.TAB};function x(e){return A[e]||e}class O{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(x(e.key)){case k.ENTER:case k.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case k.ARROW_UP:this.isOpen||this._open(e);break;case k.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){x(e.key)===k.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=x(e.key);if(t===k.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case k.SPACEBAR:y(e.target,"click");break;case k.ARROW_LEFT:case k.ARROW_UP:n=r(e.target,"li");let t=n.previousElementSibling;t&&y(t,"focusEl");break;case k.ARROW_RIGHT:case k.ARROW_DOWN:n=r(e.target,"li");let i=n.nextElementSibling;i&&y(i,"focusEl")}}}_open(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isOpen){const{key:t}=e;this.isOpen=!0,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),y(this.el,"open",{key:t})}}close(){let{shouldReturnFocusToTrigger:e=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isOpen&&(this.isOpen=!1,this.buttons.forEach(e=>e.setAttribute("aria-expanded",this.isOpen)),y(this.el,"close"),e&&setTimeout(()=>{this.mainButton.focus()},250))}}let L,R;const N=['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^="-"])'],P=[...N,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(","),D=[...N,"[tabindex]:not([disabled])"].join(",");function M(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function U(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?!M(e):i&&i.get(e)?i.get(e):(M(e)?t=!1:e.parentNode&&(t=U(e.parentNode,n,i)),i&&i.set(e,t),t)}const F={POLITE:"polite",ASSERTIVE:"assertive"};function B(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:F.POLITE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;L&&(L.removeAttribute("aria-hidden"),L.setAttribute("aria-live",t),L.textContent=e,clearTimeout(R),R=setTimeout(()=>{L.textContent=""},n))}class q{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 H=["class","disabled","style","tabindex","type"];class j{constructor(e){if(!e)throw new Error("FocusTrap: No focus trap container passed in");this._container=e,this._observer=new MutationObserver(()=>this._setFirstAndLastFocusableEls(this._container)),this._handleKeyDown=this._focusTrap.bind(this),this._backgroundNavigationDisabler=new q(this._container)}init(){this._observer.observe(this._container,{attributeFilter:H,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=x(t),r=i===k.TAB&&e.shiftKey;!r&&i===k.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(P)],n=new Map;let i,r,o=0,a=t.length-1;for(;(!i||!r)&&o<=a;){if(!i){const r=t[o];i=U(r,e,n)&&r,o++}if(!r){const i=t[a];r=U(i,e,n)&&i,a--}}return r=r||i,[i,r]}}function G(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=m("JSESSIONID");e&&(l.headers["Csrf-Token"]=I(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(`${t} request for ${e} has failed with status code ${n.status}`);return n.responseText=i,r.response=n,Promise.reject(r)}));return a&&(s.length?W(u,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),d}function W(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 z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},K=(parseInt,"object"==typeof z&&z&&z.Object===Object&&z),V="object"==typeof self&&self&&self.Object===Object&&self;K||V||Function("return this")(),Object.prototype.toString,Math.max,Math.min;const X="light",Y="dark";function J(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?Y:X:void 0}var Q,$=["transporterKeys"],Z=["breadcrumb"],ee=["$type"],te=["requestStart"],ne=["requestTime","viewNames","requestType","requestTag"],ie=["requestStart"],re=["requestStart"],oe=["requestTime","viewNames","requestType"];function ae(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 se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){Te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ce(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)||me(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 le(e,t,n){return t=de(t),function(e,t){if(t&&("object"===Ee(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ue(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],de(e).constructor):t.apply(e,n))}function ue(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function de(e){return(de=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function he(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&&pe(e,t)}function pe(e,t){return(pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fe(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 ge(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=me(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 ve(e){return function(e){if(Array.isArray(e))return ye(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||me(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 me(e,t){if(e){if("string"==typeof e)return ye(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)?ye(e,t):void 0}}function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Ee(e){return(Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function we(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,Se(i.key),i)}}function _e(e,t,n){return t&&we(e.prototype,t),n&&we(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Te(e,t,n){return(t=Se(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Se(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t);if("object"!=Ee(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==Ee(t)?t:String(t)}var Ce,Ie="unknown",ke=new Uint8Array(16);function Ae(){if(!Ce&&!(Ce="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 Ce(ke)}var xe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Oe(e){return"string"==typeof e&&xe.test(e)}for(var Le=[],Re=0;Re<256;++Re)Le.push((Re+256).toString(16).slice(1));function Ne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(Le[e[t+0]]+Le[e[t+1]]+Le[e[t+2]]+Le[e[t+3]]+"-"+Le[e[t+4]]+Le[e[t+5]]+"-"+Le[e[t+6]]+Le[e[t+7]]+"-"+Le[e[t+8]]+Le[e[t+9]]+"-"+Le[e[t+10]]+Le[e[t+11]]+Le[e[t+12]]+Le[e[t+13]]+Le[e[t+14]]+Le[e[t+15]]).toLowerCase()}function Pe(e){if(!Oe(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 De(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=Pe(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 Ne(s)}try{i.name=e}catch(e){}return i.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",i.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",i}function Me(e){return 14+(e+64>>>9<<4)+1}function Ue(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Fe(e,t,n,i,r,o){return Ue((a=Ue(Ue(t,e),Ue(i,o)))<<(s=r)|a>>>32-s,n);var a,s}function Be(e,t,n,i,r,o,a){return Fe(t&n|~t&i,e,t,r,o,a)}function qe(e,t,n,i,r,o,a){return Fe(t&i|n&~i,e,t,r,o,a)}function He(e,t,n,i,r,o,a){return Fe(t^n^i,e,t,r,o,a)}function je(e,t,n,i,r,o,a){return Fe(n^(t|~i),e,t,r,o,a)}De("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[Me(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=Be(n,i,r,o,e[a],7,-680876936),o=Be(o,n,i,r,e[a+1],12,-389564586),r=Be(r,o,n,i,e[a+2],17,606105819),i=Be(i,r,o,n,e[a+3],22,-1044525330),n=Be(n,i,r,o,e[a+4],7,-176418897),o=Be(o,n,i,r,e[a+5],12,1200080426),r=Be(r,o,n,i,e[a+6],17,-1473231341),i=Be(i,r,o,n,e[a+7],22,-45705983),n=Be(n,i,r,o,e[a+8],7,1770035416),o=Be(o,n,i,r,e[a+9],12,-1958414417),r=Be(r,o,n,i,e[a+10],17,-42063),i=Be(i,r,o,n,e[a+11],22,-1990404162),n=Be(n,i,r,o,e[a+12],7,1804603682),o=Be(o,n,i,r,e[a+13],12,-40341101),r=Be(r,o,n,i,e[a+14],17,-1502002290),n=qe(n,i=Be(i,r,o,n,e[a+15],22,1236535329),r,o,e[a+1],5,-165796510),o=qe(o,n,i,r,e[a+6],9,-1069501632),r=qe(r,o,n,i,e[a+11],14,643717713),i=qe(i,r,o,n,e[a],20,-373897302),n=qe(n,i,r,o,e[a+5],5,-701558691),o=qe(o,n,i,r,e[a+10],9,38016083),r=qe(r,o,n,i,e[a+15],14,-660478335),i=qe(i,r,o,n,e[a+4],20,-405537848),n=qe(n,i,r,o,e[a+9],5,568446438),o=qe(o,n,i,r,e[a+14],9,-1019803690),r=qe(r,o,n,i,e[a+3],14,-187363961),i=qe(i,r,o,n,e[a+8],20,1163531501),n=qe(n,i,r,o,e[a+13],5,-1444681467),o=qe(o,n,i,r,e[a+2],9,-51403784),r=qe(r,o,n,i,e[a+7],14,1735328473),n=He(n,i=qe(i,r,o,n,e[a+12],20,-1926607734),r,o,e[a+5],4,-378558),o=He(o,n,i,r,e[a+8],11,-2022574463),r=He(r,o,n,i,e[a+11],16,1839030562),i=He(i,r,o,n,e[a+14],23,-35309556),n=He(n,i,r,o,e[a+1],4,-1530992060),o=He(o,n,i,r,e[a+4],11,1272893353),r=He(r,o,n,i,e[a+7],16,-155497632),i=He(i,r,o,n,e[a+10],23,-1094730640),n=He(n,i,r,o,e[a+13],4,681279174),o=He(o,n,i,r,e[a],11,-358537222),r=He(r,o,n,i,e[a+3],16,-722521979),i=He(i,r,o,n,e[a+6],23,76029189),n=He(n,i,r,o,e[a+9],4,-640364487),o=He(o,n,i,r,e[a+12],11,-421815835),r=He(r,o,n,i,e[a+15],16,530742520),n=je(n,i=He(i,r,o,n,e[a+2],23,-995338651),r,o,e[a],6,-198630844),o=je(o,n,i,r,e[a+7],10,1126891415),r=je(r,o,n,i,e[a+14],15,-1416354905),i=je(i,r,o,n,e[a+5],21,-57434055),n=je(n,i,r,o,e[a+12],6,1700485571),o=je(o,n,i,r,e[a+3],10,-1894986606),r=je(r,o,n,i,e[a+10],15,-1051523),i=je(i,r,o,n,e[a+1],21,-2054922799),n=je(n,i,r,o,e[a+8],6,1873313359),o=je(o,n,i,r,e[a+15],10,-30611744),r=je(r,o,n,i,e[a+6],15,-1560198380),i=je(i,r,o,n,e[a+13],21,1309151649),n=je(n,i,r,o,e[a+4],6,-145523070),o=je(o,n,i,r,e[a+11],10,-1120210379),r=je(r,o,n,i,e[a+2],15,718787259),i=je(i,r,o,n,e[a+9],21,-343485551),n=Ue(n,s),i=Ue(i,c),r=Ue(r,l),o=Ue(o,u)}return[n,i,r,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Me(t)),i=0;i<t;i+=8)n[i>>5]|=(255&e[i/8])<<i%32;return n}(e),8*e.length))}));var Ge={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function We(e,t,n){if(Ge.randomUUID&&!t&&!e)return Ge.randomUUID();var i=(e=e||{}).random||(e.rng||Ae)();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 Ne(i)}function ze(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 Ke(e,t){return e<<t|e>>>32-t}De("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]=Ke(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),_=Ke(g,5)+ze(w,v,m,y)+E+t[w]+h[b]>>>0;E=y,y=m,m=Ke(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 Ve=Uint8Array,Xe=Uint16Array,Ye=Uint32Array,Je=new Ve([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]),Qe=new Ve([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]),$e=new Ve([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ze=function(e,t){for(var n=new Xe(31),i=0;i<31;++i)n[i]=t+=1<<e[i-1];var r=new Ye(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]},et=Ze(Je,2),tt=et[0],nt=et[1];tt[28]=258,nt[258]=28;for(var it=Ze(Qe,0)[1],rt=new Xe(32768),ot=0;ot<32768;++ot){var at=(43690&ot)>>>1|(21845&ot)<<1;at=(61680&(at=(52428&at)>>>2|(13107&at)<<2))>>>4|(3855&at)<<4,rt[ot]=((65280&at)>>>8|(255&at)<<8)>>>1}var st=function(e,t,n){for(var i=e.length,r=0,o=new Xe(t);r<i;++r)e[r]&&++o[e[r]-1];var a,s=new Xe(t);for(r=0;r<t;++r)s[r]=s[r-1]+o[r-1]<<1;if(n){a=new Xe(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[rt[d]>>>c]=l}else for(a=new Xe(i),r=0;r<i;++r)e[r]&&(a[r]=rt[s[e[r]-1]++]>>>15-e[r]);return a},ct=new Ve(288);for(ot=0;ot<144;++ot)ct[ot]=8;for(ot=144;ot<256;++ot)ct[ot]=9;for(ot=256;ot<280;++ot)ct[ot]=7;for(ot=280;ot<288;++ot)ct[ot]=8;var lt=new Ve(32);for(ot=0;ot<32;++ot)lt[ot]=5;var ut=st(ct,9,0),dt=st(lt,5,0),ht=function(e){return(e+7)/8|0},pt=function(e,t,n){n<<=7&t;var i=t/8|0;e[i]|=n,e[i+1]|=n>>>8},ft=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},gt=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 Ve(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 Xe(h+1),f=vt(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 Ve(p),f]},vt=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},mt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Xe(++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]},yt=function(e,t){for(var n=0,i=0;i<t.length;++i)n+=e[i]*t[i];return n},Et=function(e,t,n){var i=n.length,r=ht(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)},bt=function(e,t,n,i,r,o,a,s,c,l,u){pt(t,u++,n),++r[256];for(var d=gt(r,15),h=d[0],p=d[1],f=gt(o,15),g=f[0],v=f[1],m=mt(h),y=m[0],E=m[1],b=mt(g),w=b[0],_=b[1],T=new Xe(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=gt(T,7),I=C[0],k=C[1],A=19;A>4&&!I[$e[A-1]];--A);var x,O,L,R,N=l+5<<3,P=yt(r,ct)+yt(o,lt)+a,D=yt(r,h)+yt(o,g)+a+14+3*A+yt(T,I)+(2*T[16]+3*T[17]+7*T[18]);if(N<=P&&N<=D)return Et(t,u,e.subarray(c,c+l));if(pt(t,u,1+(D<P)),u+=2,D<P){x=st(h,p,0),O=h,L=st(g,v,0),R=g;var M=st(I,k,0);for(pt(t,u,E-257),pt(t,u+5,_-1),pt(t,u+10,A-4),u+=14,S=0;S<A;++S)pt(t,u+3*S,I[$e[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];pt(t,u,M[q]),u+=I[q],q>15&&(pt(t,u,B[S]>>>5&127),u+=B[S]>>>12)}}}else x=ut,O=ct,L=dt,R=lt;for(S=0;S<s;++S)if(i[S]>255){q=i[S]>>>18&31,ft(t,u,x[q+257]),u+=O[q+257],q>7&&(pt(t,u,i[S]>>>23&31),u+=Je[q]);var H=31&i[S];ft(t,u,L[H]),u+=R[H],H>3&&(ft(t,u,i[S]>>>5&8191),u+=Qe[H])}else ft(t,u,x[i[S]]),u+=O[i[S]];return ft(t,u,x[256]),u+O[256]},wt=new Ye([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),_t=new Ve(0),Tt=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}(),St=function(e,t,n,i,r){return function(e,t,n,i,r,o){var a=e.length,s=new Ve(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=Et(c,l+1,e.subarray(u,d))}else{for(var h=wt[t-1],p=h>>>13,f=8191&h,g=(1<<n)-1,v=new Xe(32768),m=new Xe(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 Ye(25e3),_=new Xe(288),T=new Xe(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=bt(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|nt[P]<<18|it[D];var K=31&nt[P],V=31&it[D];C+=Je[K]+Qe[V],++_[257+K],++T[V],k=u+P,++S}else w[I++]=e[u],++_[e[u]]}}l=bt(e,c,o,w,_,T,C,I,A,u-A,l),!o&&7&l&&(l=Et(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?Xe:4==e.BYTES_PER_ELEMENT?Ye:Ve)(n-t);return i.set(e.subarray(t,n)),i}(s,0,i+ht(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)},Ct=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},It="undefined"!=typeof TextDecoder&&new TextDecoder;try{It.decode(_t,{stream:!0})}catch(ur){}function kt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function At(){try{return kt()&&"keepalive"in new Request("")}catch(e){return!1}}function xt(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=Tt[255&n^t[i]]^n>>>8;e=n},d:function(){return~e}}}(),i=e.length;n.p(e);var r=St(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&&Ct(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),Ct(r,o-8,n.d()),Ct(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 Ot(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Lt,Rt="undefined"!=typeof navigator&&"sendBeacon"in navigator,Nt=At()?function(e,t,n,i){return new Promise((function(r){fetch(e,xt({body:t,keepalive:!0,headers:n,compress:i})).catch((function(){return fetch(e,xt({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:Ot(e)})}))}))}:function(e,t,n,i){return new Promise((function(r){if(Rt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void r({type:"unknown",drop:!1})}fetch(e,xt({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:Ot(e)})}))}))};function Pt(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 Dt(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 Mt(){return Lt||(Lt=Dt("idb-queue","default")),Lt}function Ut(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))},Pt(e.transaction)}var Ft=!1;function Bt(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]:Mt();return n("readwrite",(function(n){return n.put(e),Pt(n.count()).then((function(e){if(!(e<=t.maxNumber))return Ut(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]:Mt())("readwrite",(function(t){return Ut(t,e)}))}(t,n)}))}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]:Mt();return Ft?Promise.resolve():Bt(e,t,n)}function Ht(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())},Pt(t.transaction).then((function(){return i}))}))}function jt(){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 Gt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Wt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function zt(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 Kt=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];be(this,e),Te(this,"config",void 0),Te(this,"compress",void 0),Te(this,"throttleControl",void 0),Te(this,"withStore",void 0),Te(this,"disablePersistence",!1),this.config=t,this.compress=i;var r,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=Dt(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&&(Gt((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(){Gt((function(){return"Persisting to DB "+e.url})),qt(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Gt((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Wt((function(){return"push failed"}))}))};this.config.useIdle?zt(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]:Mt();return Ft=!0,e("readwrite",(function(e){return e.clear(),Pt(e.transaction).finally((function(){return Ft=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Wt((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 Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Wt((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 Ht(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Mt(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Wt((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Gt((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())},Pt(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]:Mt())}(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 Gt((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(i=e.config).onBeforeRetry)||void 0===n||n.call(i,a),Nt(o,a,jt(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 Gt((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),Gt((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),qt({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&&Wt((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?zt(t):t()}}}]),e}(),Vt=function(){function e(){be(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}(),Xt=function(){function e(t,n){be(this,e),Te(this,"queue",void 0),Te(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Kt(t,n.compress):new Vt}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}();Te(Xt,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Yt=[502,504],Jt=[429,503],Qt=function(){function e(t,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];be(this,e),Te(this,"url",void 0),Te(this,"body",void 0),Te(this,"config",void 0),Te(this,"persistenceConfig",void 0),Te(this,"compress",void 0),Te(this,"timestamp",void 0),Te(this,"isClearQueuePending",!1),Te(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 Nt(e.url,e.body,t,e.compress)}),n,t).finally((function(){Gt((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(jt(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(Gt((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 Gt((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}(),$t="internal:hide",Zt="internal:error";function en(e,t,n){var i=e.get(t);i&&i.push(n)||e.set(t,[n])}function tn(e,t,n){var i=e.get(t);i&&i.splice(i.indexOf(n)>>>0,1)}var nn,rn,on=(nn=new Map,rn=new Map,{on:function(e,t){en(nn,e,t)},before:function(e,t){en(rn,e,t)},off:function(e,t){tn(nn,e,t)},offBefore:function(e,t){tn(rn,e,t)},emit:function(e,t){(rn.get(e)||[]).concat(nn.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){rn.clear(),nn.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var an=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||on.emit($t,e)};document.addEventListener("visibilitychange",an),window.addEventListener("pagehide",an)}var sn=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var cn=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(cn){var ln=new Uint8Array(256),un=ln.length;sn={rng:function(){return un>ln.length-16&&(cn.randomFillSync(ln),un=0),ln.slice(un,un+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":Ee(crypto))&&crypto.randomUUID;function dn(){return We(sn,new Array(16),0)}function hn(e){return ve(e).map((function(e){return String.fromCharCode(e)})).join("")}function pn(){return hn(dn())}var fn=/^[a-zA-Z0-9/+]+[=]+$/;function gn(e,t){return{pageUrn:mn(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("")}(dn())}}function vn(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function mn(e){return"urn:li:page:".concat(e)}function yn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function En(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 bn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function wn(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 _n(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!kt()||"undefined"==typeof Promise}function Tn(e,t,n,i){var r=["core-web-tracking:".concat(e)];null==i||i.forEach((function(e){return r.push(e)})),on.emit(Zt,{tags:r,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function Sn(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}var Cn=function(){function e(t){be(this,e),Te(this,"heap",void 0),Te(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=ve(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 In=function(e){if(!An(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},kn=function(e,t){var n={},i=[];if(0===e.length)return[n,e];if(0===t.length)return[n,e];var r,o=ge(e);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.transporterKeys,c=fe(a,$);if(s&&s.length>0){var l,u=ge(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 An=function(e){return e&&void 0!==e&&Object.keys(e).length>0},xn=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},On="beacons";function Ln(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&At()&&t&&n}function Rn(e,t,n,i,r){"control"!==i&&e.retryConfig&&Ln()&&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)}}))}(On);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:On,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:Yt,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:Jt,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);r.headerName=r.headerName||i.headerName,e=new Xt(r,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(r,o,a){var s;return kt()?new Qt(r,o,i,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Jt},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){Tn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Tn("retry:setup",e)}))}var Nn=function(){function e(t){be(this,e),Te(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&&Rn(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){Tn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,i){var r,o=this.getRetryTreatment();At()&&"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){Tn("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)&&(_n()?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}):Nt(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&&Ln()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),Pn="undefined"!=typeof window&&"undefined"!=typeof document,Dn=/JSESSIONID="?([^";]+)"?/,Mn="",Un=0;function Fn(){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?Dn:i;if(!Mn||Date.now()-Un>n){var o=Pn&&document.cookie.match(r);Mn=o&&o[1]||"",Un=Date.now()}return Mn}var Bn={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"}},qn=function(){function e(t){be(this,e),Te(this,"networkTransporter",void 0),Te(this,"inactive",void 0),Te(this,"mpName",void 0),Te(this,"endpoint",void 0),Te(this,"debug",void 0),this.networkTransporter=new Nn(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return Bn.prod.pattern.test(e)?t=Bn.prod.monitorEndpoint:Bn.eiValidate.pattern.test(e)?(n=!0,t=Bn.eiValidate.monitorEndpoint):Bn.ei.pattern.test(e)?t=Bn.ei.monitorEndpoint:(t=Bn.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":Fn(),"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,ve(t.failures)),e}),[]);[].concat(ve(o),ve(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 Hn(e){return"string"==typeof e}function jn(e){return Hn(e)?e:e.topicName||e.eventName}function Gn(e){return Hn(e)?e:e.eventName}var Wn,zn,Kn=function(){function e(t){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};be(this,e),Te(this,"host",void 0),Te(this,"cmoTransporter",void 0),Te(this,"clientMonitoringInstanceId",pn()),Te(this,"currentContext",{pageKey:Ie,pageInstance:gn(Ie)}),Te(this,"appState",{}),Te(this,"estimatedFragmentSize",0),Te(this,"fragmentSizeLimit",void 0),Te(this,"activeFragmentEvent",void 0),Te(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=i.cmoTransporter||new qn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Xn(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=ge(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:Gn(t),eventTopic:jn(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=Xn(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=Yn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=Yn(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:pn(),memberId:0}}}}]),e}();function Vn(e){return Wn||(Wn=new Kn(e)),{getCurrentInstanceId:function(){return Wn.getCurrentInstanceId()},logEventGenerated:function(e){return Wn.logEventGenerated(e)},logEventReadyToSend:function(e){Wn.logEventReadyToSend(e)},logEventSent:function(e){Wn.logEventSent(e)},logPersistedEventSent:function(e,t){Wn.logEventSent(t,e)},logNetworkResponseCode:function(e){Wn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Wn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,i){Wn.logFailedEvent(e,t,n,i)},logPersistedFailedEvent:function(e,t,n,i,r){Wn.logFailedEvent(t,n,i,r,e)},flush:function(){Wn.flush()},destroy:function(){Wn=void 0},isDestroyed:function(){return void 0===Wn},setCurrentContext:function(e){Wn.setCurrentContext(e)},updateAppState:function(e){Wn.updateAppState(e)}}}function Xn(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 Yn(e){return Array.isArray(e)?hn(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(fn)}(e)?atob(e):hn(function(e){return Pe(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"}(zn||(zn={}));var Jn=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Qn="PageViewEvent",$n=function(){function e(t){var n,i,r,o=this;be(this,e),Te(this,"host",void 0),Te(this,"queue",void 0),Te(this,"preContextQueue",void 0),Te(this,"debounceTimer",void 0),Te(this,"unloadHandlers",void 0),Te(this,"maxQueueSize",void 0),Te(this,"flushDebounceTime",void 0),Te(this,"trackingEventListeners",[]),Te(this,"onHideHandler",(function(){o.forceFlush()})),Te(this,"networkTransporter",void 0),Te(this,"clientMonitoringConn",void 0),Te(this,"clientGlobalSequenceNumberCounter",void 0),Te(this,"clientTopicLocalSequenceNumberCountersMap",{}),Te(this,"isTimerRunning",void 0),Te(this,"trackingEndpoint",void 0),Te(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,on.on($t,this.onHideHandler),this.networkTransporter=new Nn(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Vn(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(zn.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,zn.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(jn(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,on.off($t,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:gn(Ie),pageKey:Ie}).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;wn("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Jn.forEach((function(n){var i;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(i=null==t?void 0:t[n])&&void 0!==i?i:0}))})).catch((function(e){Tn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){wn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){Tn("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===Qn:e.eventName===Qn}(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:!_n()&&(At()||"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:pn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=jn(e.id);if(Jn.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=jn(e.id);Jn.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(zn.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 Zn,ei=function(){function e(t,n){be(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"}(Zn||(Zn={}));var ti=function(e){function t(){return be(this,t),le(this,t,[Zn.FEED_UPDATE_SERVED,pn()])}return he(t,ei),_e(t)}(),ni=function(e){function t(){var e;return be(this,t),Te(ue(e=le(this,t,[Zn.UNKNOWN,pn()])),"content",void 0),Te(ue(e),"featureBreadcrumbType",void 0),e}return he(t,ei),_e(t)}(),ii=function(e){function t(){return be(this,t),le(this,t,[Zn.SPONSORED_UPDATE_SERVED,pn()])}return he(t,ei),_e(t)}();function ri(e,t){var n;switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new ti).builder;break;case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new ii).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=ce(c[s],2),u=l[0],d=l[1];An(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 oi(e){var t,n=[],i=[],r=ge(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.breadcrumb,s=fe(o,Z);if(i.push(s),a){var c=a.$type,l=ri(fe(a,ee),c);n.push(l)}}}catch(e){r.e(e)}finally{r.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:i}}function ai(e){var t,n=new Set,i=[],r=ge(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=oi(i);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function si(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 ci=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 li(e){return"retryConfig"in e.host}function ui(e){return"location"in e.api}var di;!function(){function e(t,n,i,r,o,a,s,c){var l,u,d,h;if(be(this,e),Te(this,"transporter",void 0),Te(this,"delegate",void 0),Te(this,"viewSpecs",void 0),Te(this,"transportConfig",void 0),Te(this,"dynamicTransporterSupportLixKey",void 0),Te(this,"domain",void 0),Te(this,"trackingAppName",void 0),Te(this,"dynamicTransporterSupportLixValue",void 0),Te(this,"currentContext",void 0),Te(this,"appState",void 0),Te(this,"referrer",void 0),Te(this,"previousAppContext",void 0),Te(this,"customTransporters",void 0),Te(this,"clientMonitoringConn",void 0),Te(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==ci?void 0:ci["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];An(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 $n(this.transporter.host.api.assign(g,n.customTransporterHosts[f]))}if(this.dynamicTransporterSupportEnabled&&An(this.transportConfig))for(var v=0,m=Object.entries(this.transportConfig);v<m.length;v++){var y,E,b=ce(m[v],2),w=b[0],_=b[1];_=se(se({},_),{},{endpoint:a&&null!==(y=_)&&void 0!==y&&y.endpoint?"".concat(xn(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 $n(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&&ui(t.host)&&(this.clientMonitoringConn=Vn(t.host)),An(i)&&(this.viewSpecs=i)}_e(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){on.before($t,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){on.offBefore($t,e)}},{key:"checkAndEnablePersistentRetry",value:function(){li(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=li(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,si(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,ve(o))}catch(e){Tn("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=In(this.transportConfig),I=ce(kn(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(An(k)){for(var L=0,R=Object.entries(k);L<R.length;L++){var N=ce(R[L],2),P=N[0],D=ai(N[1]),M=D.breadcrumbs,U=D.trackingScopes;this.fireEvent(x,se(se({},O),{},{trackingScopeHierarchy:{entries:U}}),{header:{viewHierarchy:T,testId:b},transporterKey:P},M,y)}if(0===A.length)return Promise.resolve(!0)}var F=ai(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(ve(m),ve(B)),y)}var H=ai(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(ve(m),ve(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=In(this.transportConfig),L=ce(kn(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(An(R)){for(var U=0,F=Object.entries(R);U<F.length;U++){var B=ce(F[U],2),q=B[0],H=ai(B[1]),j=H.breadcrumbs,G=H.trackingScopes;this.fireEvent(P,se(se({},D),{},{trackingScopeHierarchy:{entries:G}}),se(se({},M),{},{transporterKey:q}),j,T)}if(0===N.length)return Promise.resolve(!0)}var W=ai(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(ve(_),ve(z)),T)}var V=ai(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(ve(_),ve(X)),T)}},{key:"fireEvent",value:function(e,t,n,i,r){var o=this;if(!t){var a=jn(e),s=void 0===t?"undefined":null===t?"null":Ee(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(zn.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 ei.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(An(e.content))return se({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(Hn(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=jn(r.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(zn.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 gn(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),on.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:Ie}).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||{},ui(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"}(di||(di={}));var hi,pi,fi="otel-origin-jet-tag";!function(){function e(t,n){var i,r,o=this;be(this,e),Te(this,"core",void 0),Te(this,"protocol",void 0),Te(this,"throttleKeySet",new Set),Te(this,"config",void 0),Te(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},on.on(Zt,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(fi)&&on.emit(di.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(),on.off(Zt,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"}(hi||(hi={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(pi||(pi={}));var gi,vi,mi,yi,Ei,bi,wi,_i=(Te(Te(Te(Te(Te(Te(Te(Te(Te(Te(Q={},"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),Te(Te(Te(Te(Te(Te(Q,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),Ti=-1,Si=-2,Ci=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],Ii={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"},ki={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Ai="pageLoadId does not exist",xi="rum token passed is invalid",Oi=new RegExp(/batch-(\d+)$|enabled$/),Li=function(){function e(){be(this,e),Te(this,"userTimingEntries",[]),Te(this,"longTasks",[]),Te(this,"resourceTimingEntries",[]),Te(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(Ni),cdnData:this.cdnData}}}]),e}(),Ri=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Ni(e){return Ri.reduce((function(t,n){var i=e[n];return void 0!==i&&(t[n]=i),t}),{})}function Pi(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};bi=Object.assign(Object.assign({},n),t),wi=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(bi.root,n);var i=Di(e,Ei.All,(function(){return Di(e,Ei.Two,(function(){return Di(e,Ei.One)}))}));if(i){var r=Wi(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>bi.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(i.counter>bi.maxNumberOfTries)return r;i.counter+=1;var a=ve(t);a.splice(o,1);var s=Ui(a);if(i.visited.has(s))return r;Bi(a)&&zi(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]),Ui(i)}throw new Error("Selector was not found.")}function Di(e,t,n){for(var i=null,r=[],o=e,a=0,s=function(){var e=ji(function(e){var t=e.getAttribute("id");return t&&bi.idName(t)?{name:"#"+Ji(t,{isIdentifier:!0}),penalty:0}:null}(o))||ji.apply(void 0,ve(function(e){return Array.from(e.attributes).filter((function(e){return bi.attr(e.name,e.value)})).map((function(e){return{name:"["+Ji(e.name,{isIdentifier:!0})+'="'+Ji(e.value)+'"]',penalty:.5}}))}(o)))||ji.apply(void 0,ve(function(e){return Array.from(e.classList).filter(bi.className).map((function(e){return{name:"."+Ji(e,{isIdentifier:!0}),penalty:1}}))}(o)))||ji(function(e){var t=e.tagName.toLowerCase();return bi.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===Ei.All)s&&(e=e.concat(e.filter(Hi).map((function(e){return qi(e,s)}))));else if(t===Ei.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Hi).map((function(e){return qi(e,s)}))));else if(t===Ei.One){var c=ce(e=e.slice(0,1),1)[0];s&&Hi(c)&&(e=[qi(c,s)])}var l,u=ge(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>=bi.seedMinLength&&(i=Mi(r,n)))return 1;o=o.parentElement,a++};o&&o!==bi.root.parentElement&&!s(););return i||(i=Mi(r,n)),i}function Mi(e,t){var n=Wi(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var i,r=[],o=ge(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>bi.threshold)return t?t():null;var i,r=ge(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(Bi(o))return o}}catch(e){r.e(e)}finally{r.f()}return null}function Ui(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 Fi(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Bi(e){switch(wi.querySelectorAll(Ui(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Ui(e)));case 1:return!0;default:return!1}}function qi(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Hi(e){return"html"!==e.name&&!e.name.startsWith("#")}function ji(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.filter(Gi);return i.length>0?i:null}function Gi(e){return null!=e}function Wi(e){return Array.from(e).sort((function(e,t){return Fi(e)-Fi(t)}))}function zi(e,t){return wi.querySelector(Ui(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"}(gi||(gi={})),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"}(vi||(vi={})),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"}(mi||(mi={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(yi||(yi={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(Ei||(Ei={}));var Ki=/[ -,\.\/:-@\[-\^`\{-~]/,Vi=/[ -,\.\/:-@\[\]\^`\{-~]/,Xi=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Yi={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Ji(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Yi),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?Ki.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&&Vi.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(Xi,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!r&&n.wrap?i+a+i:a}var Qi,$i=[{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 Zi(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 er(e){var t=e||performance;return Math.round(t.now())}function tr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Pi(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=tr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function nr(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 ir(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var rr=function(){function e(t){be(this,e),Te(this,"hostApis",void 0),Te(this,"hostnameProperties",void 0),Te(this,"usedHostnames",void 0),Te(this,"abortController",void 0),Te(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 bn(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=En(bn(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,(Qi=Qi||i.createElement("a")).href=n,Qi.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(){be(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(){be(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(){be(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 "+Ee(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){be(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(be(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"==Ee(e)&&"object"==Ee(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 or=function(){function e(){be(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}(),ar=function(){function e(t,n,i,r,o,a,s,c,l,u){be(this,e),Te(this,"hostApis",void 0),Te(this,"statics",void 0),Te(this,"options",void 0),Te(this,"allowTimingOrigin",void 0),Te(this,"fireResourceLoadEvent",void 0),Te(this,"isTracerEnabled",void 0),Te(this,"responseRleCache",void 0),Te(this,"fireApfcEvent",void 0),Te(this,"abuseDeviceSignalCollectionConfig",void 0),Te(this,"trackingEndpoint",void 0),Te(this,"collectResourceTimings",void 0),Te(this,"collectCdnData",void 0),Te(this,"perfObserver",void 0),Te(this,"renderTimings",new Map),Te(this,"urlToTreeId",new Map),Te(this,"cdnDataProvider",void 0),Te(this,"observables",new Li),Te(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 rr(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(Qi=Qi||t.createElement("a")).href=e,Qi.href}(t,this.hostApis.document),e)}},{key:"recordRenderStart",value:function(e,t){this.renderTimings.has(e)||this.renderTimings.set(e,{renderName:t,viewId:e,renderStart:Zi(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var i=this.renderTimings.get(e);if(i&&(i.renderEnd=i.renderEnd||Zi(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(i,n):void Tn("ViewLoadEvent",Ai)}},{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=cr(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,Ci.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(Ii).forEach((function(t){var n;t in mi&&void 0!==e[t]&&u.push({resourceProgressType:Ii[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=ki[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),Tn("ResourceLoadEvent",e)):Tn("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=nr(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,cr(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?En(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)&&or.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=nr(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"]&&on.emit(di.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=$i;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:ir(this.renderTimings),networkInformationMetrics:sr(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function sr(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 cr(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,Ci.forEach((function(e){e in i&&(t[e]=i[e])})),t.navigationType=r.type,t.redirectCount=r.redirectCount):t.navigationTimingApi=!1,t}var lr=function(){function e(t,n,i){be(this,e),Te(this,"featureName",void 0),Te(this,"trackingCore",void 0),Te(this,"rumConfig",void 0),Te(this,"observing",!1),Te(this,"basePageTreeId",void 0),Te(this,"startPageInstance",void 0),Te(this,"startMemory",void 0),Te(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)||gn(Ie),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:er(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}();Te(lr,"checkpoints",[1,3,10,30,90,180,300]);var ur,dr,hr,pr,fr,gr=_e((function e(t,n,i){be(this,e),Te(this,"webUIFramework",void 0),Te(this,"timeSource",void 0),Te(this,"isSinglePageApp",void 0),Te(this,"appRenderMode",void 0),Te(this,"isAppRenderFailed",void 0),Te(this,"pageLoadMode","INITIAL"),Te(this,"isSSL",void 0),Te(this,"treeId",void 0),Te(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})),vr=function(){function e(t){be(this,e),Te(this,"isPEMTracerEnabled",void 0),Te(this,"responseContextMap",new Map),Te(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 Cn((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 Cn((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=fe(e,te),i=(t.requestTime,t.viewNames),r=t.requestType,o=t.requestTag,a=fe(t,ne);return n.targetViewNames=i||[],r&&(n.requestType=r),o&&(n.requestTag=o),n.resourceNetworkContext=se(se({},n.resourceNetworkContext),a),Sn(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=ge(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t=[].concat(ve(t),ve(this.flushCacheByUrl(r)))}}catch(e){i.e(e)}finally{i.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=ge(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(ve(t),ve(u.map((function(e){return e.requestStart,Sn(fe(e,ie))})))))}}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,Sn(fe(e,re))})))||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}(),mr=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)}},yr=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){}},Er=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)},br=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},wr=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)))}},_r=-1,Tr=function(){return"hidden"===document.visibilityState?0:1/0},Sr=function(){Er((function(e){var t=e.timeStamp;_r=t}),!0)},Cr=function(){return _r<0&&(_r=Tr(),Sr(),br((function(){setTimeout((function(){_r=Tr(),Sr()}),0)}))),{get firstHiddenTime(){return _r}}},Ir=!1,kr=-1,Ar=function(e,t){Ir||(function(e,t){var n,i=Cr(),r=mr("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:yr("paint",o);(a||s)&&(n=wr(e,r,t),a&&o(a),br((function(i){r=mr("FCP"),n=wr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,n(!0)}))}))})))}((function(e){kr=e.value})),Ir=!0);var n,i=function(t){kr>-1&&e(t)},r=mr("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=yr("layout-shift",s);c&&(n=wr(i,r,t),Er((function(){c.takeRecords().map(s),n(!0)})),br((function(){o=0,kr=-1,r=mr("CLS",0),n=wr(i,r,t)})))},xr={passive:!0,capture:!0},Or=new Date,Lr=function(e,t){ur||(ur=t,dr=e,hr=new Date,Pr(removeEventListener),Rr())},Rr=function(){if(dr>=0&&dr<hr-Or){var e={entryType:"first-input",name:ur.type,target:ur.target,cancelable:ur.cancelable,startTime:ur.timeStamp,processingStart:ur.timeStamp+dr};pr.forEach((function(t){t(e)})),pr=[]}},Nr=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(){Lr(e,t),r()},i=function(){r()},r=function(){removeEventListener("pointerup",n,xr),removeEventListener("pointercancel",i,xr)};addEventListener("pointerup",n,xr),addEventListener("pointercancel",i,xr)}(t,e):Lr(t,e)}},Pr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Nr,xr)}))},Dr=function(e,t){var n,i=Cr(),r=mr("FID"),o=function(e){e.startTime<i.firstHiddenTime&&(r.value=e.processingStart-e.startTime,r.entries.push(e),n(!0))},a=yr("first-input",o);n=wr(e,r,t),a&&Er((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&br((function(){var i;r=mr("FID"),n=wr(e,r,t),pr=[],dr=-1,ur=null,Pr(addEventListener),i=o,pr.push(i),Rr()}))},Mr={},Ur=function(e,t){var n,i=Cr(),r=mr("LCP"),o=function(e){var t=e.startTime;t<i.firstHiddenTime&&(r.value=t,r.entries.push(e),n())},a=yr("largest-contentful-paint",o);if(a){n=wr(e,r,t);var s=function(){Mr[r.id]||(a.takeRecords().map(o),a.disconnect(),Mr[r.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),Er(s,!0),br((function(i){r=mr("LCP"),n=wr(e,r,t),requestAnimationFrame((function(){requestAnimationFrame((function(){r.value=performance.now()-i.timeStamp,Mr[r.id]=!0,n(!0)}))}))}))}},Fr=["LCP","FID","CLS"],Br={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},qr={},Hr=function(){var e;if(!Pn)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}(),jr=!1,Gr=new Set,Wr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function zr(){var e=!0===window.__test__resetWebVitalsState;if(!jr||e){e&&(Gr=new Set),Fr.forEach(Kr);var t=Symbol();fr=t,[Ur,Dr,Ar].forEach((function(e){return e(Vr.bind(null,t),!0)})),[Ur,Dr,Ar].forEach((function(e){return e(Xr.bind(null,t))})),jr=!0}}function Kr(e){qr[e]={name:e,verboseName:Br[e]||e,value:Ti,updateHistory:[]};var t=Wr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(qr[e].value=Si)}function Vr(e,t){if(e===fr){var n=qr[t.name],i=er();n&&(n.updateHistory.push({time:i,data:t}),n.value=t.value),Gr.forEach((function(e){return e(t,i,!1)}))}}function Xr(e,t){e===fr&&Gr.forEach((function(e){return e(t,er(),!0)}))}var Yr,Jr=function(){function e(t,n){var i=this;be(this,e),Te(this,"basePageTreeId",void 0),Te(this,"basePageKey",void 0),Te(this,"observing",!1),Te(this,"appContextMap",new Map),Te(this,"rumConfig",void 0),Te(this,"trackingCore",void 0),Te(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;zr(),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",Fr.forEach((function(e){var t;(null===(t=qr[e])||void 0===t?void 0:t.value)===Si&&n.reportMetric(e)})),t=this.onMetricUpdate,Gr.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,Gr.delete(e)}},{key:"reportMetric",value:function(e){var t=qr[e];if(t){var n={name:Br[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:Hr},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:tr(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:tr(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":tr(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};on.emit(di.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:i};on.emit(di.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:i};on.emit(di.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Qr="x-li-uuid",$r="x-li-pop",Zr="x-msedge-ref",eo="x-li-fabric",to="x-li-pem-resp-meta",no="content-type",io="x-cache",ro=function(){function e(t){be(this,e),Te(this,"_callTreeId",void 0),Te(this,"_fabric",void 0),Te(this,"_msEdgeRef",void 0),Te(this,"_pointOfPresenceId",void 0),Te(this,"_responseMetadata",void 0),Te(this,"_contentType",void 0),Te(this,"_cdnCacheMetadata",void 0),Te(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(Qr)||null,this._pointOfPresenceId=n.get($r)||null,this._msEdgeRef=n.get(Zr)||null,this._fabric=n.get(eo)||null,this._responseMetadata=n.get(to)||null,this._contentType=n.get(no)||null,this._cdnCacheMetadata=n.get(io)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=ge(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"}(Yr||(Yr={}));function oo(e,t,n,i,r){var o=new ro(i),a=function(e,t,n){if(t){if(429===t||999===t)return Yr.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return Yr.BLOCKED_BY_CLIENT_PROXY;if((i=t)>=400&&i<500)return Yr.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return Yr.SERVER_ERROR;if(e.pointOfPresenceId)return Yr.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return Yr.TRAFFIC_AFD_TO_LI_POP_ERROR}return Yr.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return Yr.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var i;if(n instanceof Error){if("AbortError"===n.name)return Yr.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 Yr.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 Yr.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return Yr.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return Yr.NETWORK_ERROR}return Yr.UNCLASSIFIED}(o,n,r),s=null;return a&&(s={errorType:a},a===Yr.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))})),Tn("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;be(this,e),Te(this,"core",void 0),Te(this,"config",void 0),Te(this,"collector",void 0),Te(this,"boomerangStart",-1),Te(this,"webVitalsObserver",void 0),Te(this,"appMemoryObserver",void 0),Te(this,"pageMemoryObserver",void 0),Te(this,"liveTokens",new Set),Te(this,"stateWM",new WeakMap),Te(this,"activeToken",void 0),Te(this,"isInitial",void 0),Te(this,"pageLoadId",void 0),Te(this,"initialResourcesEvents",[]),Te(this,"responseRleCache",void 0),Te(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),Te(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),Te(this,"isTracerEnabled",void 0),Te(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({},_i),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&&Oi.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 vr(this.isPEMTracerEnabled),this.collector=new ar(i.host.api,new gr(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(),on.before($t,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:Zi(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(r)):this.stateWM.set(r,{isInitial:this.isInitial,startTime:Zi(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new lr("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new lr("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),r}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Jr(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0;if(e&&this.activeToken&&this.activeToken===e){var 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=Zi(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 Tn("rum-end",xi)}},{key:"onDataResponse",value:function(e,t,n,i,r,o,a){var s=oo(t,n,i,r,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,se({nextHopProtocol:gi.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){Tn("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=pn(),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 Tn("PageLoadStartEvent",xi)}},{key:"destroy",value:function(){var e,t,n;on.offBefore($t,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:Tn("PageLoadEndEvent",Ai),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=ge(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:se({},fe(t,oe)),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 ao,so="undefined"!=typeof window&&"undefined"!=typeof performance,co="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function lo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",uo(n,t))}function uo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=S(document),i=C(document),r=J();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){be(this,e),Te(this,"trackingCore",void 0),Te(this,"endPageInstance",void 0),Te(this,"startPageInstance",void 0),Te(this,"featureIdentifier",void 0),Te(this,"marks",[]),Te(this,"spans",[]),Te(this,"spanStarts",new Map),Te(this,"started",!1),Te(this,"ended",!1),Te(this,"featureKey",void 0),Te(this,"productName",void 0),Te(this,"flushOnEnd",void 0),Te(this,"basePageTreeId",void 0),Te(this,"debounceFlush",void 0),Te(this,"disableAutoFlush",void 0),Te(this,"isCanceled",!1),Te(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(so){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(so){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){so&&(this.marks.push({name:e,startTime:er()}),co&&(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){so&&(this.spanStarts.set(e,er()),co&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(so&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),i=t||e;this.spans.push({name:i,startTime:n,duration:er()-n}),co&&(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){so&&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 er()}},{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||gn(Ie),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(so){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"}(ao||(ao={}));const{ENTER:ho,ESCAPE:po}=k;class fo{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 j(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=x(e.key),n=t===ho&&document.activeElement===this._exitButtonEl;(t===po||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),y(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{lo(e,"ajax",this._pageKey||""+this._el.id)}):(y(this._wrapperEl,"afterOpen"),Promise.resolve());y(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),y(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 go(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 vo=/ /g,mo=/[\s\u0000<>"]|%00/,yo=/\\/,Eo=/([.]|%2e){2}/i;let bo=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 wo(e){let t;if("string"!=typeof e)return go("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(go("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(vo,"+")),!bo.test(t))return go("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(mo.test(t))return go("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?(go("jSecure Error: malformed url path detected: "+i),"invalid://"):yo.test(i)||Eo.test(i)||Eo.test(n)?(go("jSecure Error: malicious data found in url path: "+i,"error"),"invalid://"):e}const _o={redirect(e){window&&(window.location.href=e)}};function To(e){return e.scrollHeight>e.offsetHeight}function So(e,t){const n=u(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Co(e){ko([e])}function Io(e){Ao([e])}function ko(e){So(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Ao(e){So(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function xo(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function Oo(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Lo(){return document.documentElement.classList.contains("safari")}function Ro(){return document.documentElement.classList.contains("ios")}function No(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&&To(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 Po={};function Do(e){const t=document.getElementById(e);if(!t&&void 0!==Po[e])return Po[e];if(!t)return console.warn(`Element with id: ${e} not found`),Po[e]=null,Po[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):(Po[e]=n,t.parentNode.removeChild(t),Po[e])}const Mo="prev",Uo="next";class Fo{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?(Io(this._indicatorElement),this._indicatorElement.isActive=!0,this._indicatorElement.addEventListener("click",this._indicatorClickHandler)):(Co(this._indicatorElement),this._indicatorElement.isActive=!1,this._indicatorElement.removeEventListener("click",this._indicatorClickHandler)))}_initCalc(){this._pageTranslates=this._getPageTranslates(),this._pageTranslates[this._currentPage]||(this._currentPage=0),this._updateIndicator(),this._updateSlideButtons(!0),this._updateListPosition(),this._isResizing=!1,this._updateFocusableElements()}_getPageTranslates(){const e=this._listEl.offsetWidth,t=this._listEl.scrollWidth,n=this._isRtl?e-this._items[0].offsetLeft-this._items[0].offsetWidth:this._items[0].offsetLeft,i=t-e;let r=[0];const o=[new Set],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(P).forEach(e=>{const t=e.getAttribute("tabindex");this._prevTabIndexMap.set(e,t),e.setAttribute("tabindex","-1")})}}_handleScrollAction(e){const t=r(e.target,".slide-list__nav-button"),n=t&&t.dataset.direction;n&&(this._listEl.addEventListener("transitionend",this._boundFireScrollEvent),n===Mo?this.prev():n===Uo&&this.next())}_fireScrollEvent(){y(window,"scroll"),this._listEl.removeEventListener("transitionend",this._boundFireScrollEvent)}_updateListPosition(){this._updateTranslateXY(this._isRtl?this._pageTranslates[this._currentPage]:-this._pageTranslates[this._currentPage],0)}_updateIndicatorButtons(){if(this._indicatorElement&&this._indicatorElement.isActive){const e=this._el.querySelector(".slide-list__indicator-button-container > .slide-list__indicator--selected");e&&(e.classList.remove("slide-list__indicator--selected"),e.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=Do("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;y(this._el,"pagechange",{pageNumber:this._currentPage}),null===(e=this._slideListContainer)||void 0===e||e.focus()}}function Bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){return function(e,t){if(t.get)return t.get.call(e);return t.value}(e,jo(e,t,"get"))}function Ho(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,jo(e,t,"set"),n),n}function jo(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Go(e,t,n){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return n}function Wo(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function zo(e,t,n){Wo(e,t),t.set(e,n)}function Ko(e,t){Wo(e,t),t.add(e)}var Vo=Object.hasOwnProperty,Xo=Object.setPrototypeOf,Yo=Object.isFrozen,Jo=Object.getPrototypeOf,Qo=Object.getOwnPropertyDescriptor,$o=Object.freeze,Zo=Object.seal,ea=Object.create,ta="undefined"!=typeof Reflect&&Reflect,na=ta.apply,ia=ta.construct;na||(na=function(e,t,n){return e.apply(t,n)}),$o||($o=function(e){return e}),Zo||(Zo=function(e){return e}),ia||(ia=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 ra,oa=ga(Array.prototype.forEach),aa=ga(Array.prototype.pop),sa=ga(Array.prototype.push),ca=ga(String.prototype.toLowerCase),la=ga(String.prototype.match),ua=ga(String.prototype.replace),da=ga(String.prototype.indexOf),ha=ga(String.prototype.trim),pa=ga(RegExp.prototype.test),fa=(ra=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return ia(ra,t)});function ga(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 na(e,t,i)}}function va(e,t){Xo&&Xo(e,null);for(var n=t.length;n--;){var i=t[n];if("string"==typeof i){var r=ca(i);r!==i&&(Yo(t)||(t[n]=r),i=r)}e[i]=!0}return e}function ma(e){var t=ea(null),n=void 0;for(n in e)na(Vo,e,[n])&&(t[n]=e[n]);return t}function ya(e,t){for(;null!==e;){var n=Qo(e,t);if(n){if(n.get)return ga(n.get);if("function"==typeof n.value)return ga(n.value)}e=Jo(e)}return function(e){return console.warn("fallback value for",e),null}}var Ea=$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","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"]),ba=$o(["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"]),wa=$o(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_a=$o(["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"]),Ta=$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"]),Sa=$o(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ca=$o(["#text"]),Ia=$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","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"]),ka=$o(["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"]),Aa=$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"]),xa=$o(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Oa=Zo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),La=Zo(/<%[\s\S]*|[\s\S]*%>/gm),Ra=Zo(/^data-[\-\w.\u00B7-\uFFFF]/),Na=Zo(/^aria-[\-\w]+$/),Pa=Zo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Da=Zo(/^(?:\w+script|data):/i),Ma=Zo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ua="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 Fa(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 Ba=function(){return"undefined"==typeof window?null:window},qa=function(e,t){if("object"!==(void 0===e?"undefined":Ua(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 Ha=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ba(),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=ya(g,"cloneNode"),m=ya(g,"nextSibling"),y=ya(g,"childNodes"),E=ya(g,"parentNode");if("function"==typeof a){var b=r.createElement("template");b.content&&b.content.ownerDocument&&(r=b.content.ownerDocument)}var w=qa(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=ma(r).documentMode?r.documentMode:{}}catch(e){}var O={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==x;var L=Oa,R=La,N=Ra,P=Na,D=Da,M=Ma,U=Pa,F=null,B=va({},[].concat(Fa(Ea),Fa(ba),Fa(wa),Fa(Ta),Fa(Ca))),q=null,H=va({},[].concat(Fa(Ia),Fa(ka),Fa(Aa),Fa(xa))),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=va({},["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=va({},["audio","video","img","source","image","track"]),le=null,ue=va({},["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":Ua(e))||(e={}),e=ma(e),F="ALLOWED_TAGS"in e?va({},e.ALLOWED_TAGS):B,q="ALLOWED_ATTR"in e?va({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?va(ma(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?va(ma(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?va({},e.FORBID_CONTENTS):ae,G="FORBID_TAGS"in e?va({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?va({},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}:ca,X&&(K=!1),Z&&($=!0),re&&(F=va({},[].concat(Fa(Ca))),q=[],!0===re.html&&(va(F,Ea),va(q,Ia)),!0===re.svg&&(va(F,ba),va(q,ka),va(q,xa)),!0===re.svgFilters&&(va(F,wa),va(q,ka),va(q,xa)),!0===re.mathMl&&(va(F,Ta),va(q,Aa),va(q,xa))),e.ADD_TAGS&&(F===B&&(F=ma(F)),va(F,e.ADD_TAGS)),e.ADD_ATTR&&(q===H&&(q=ma(q)),va(q,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&va(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=ma(oe)),va(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),Y&&va(F,["html","head","body"]),F.table&&(va(F,["tbody"]),delete G.tbody),$o&&$o(e),be=e)},Se=va({},["mi","mo","mn","ms","mtext"]),Ce=va({},["foreignobject","desc","title","annotation-xml"]),Ie=va({},ba);va(Ie,wa),va(Ie,_a);var ke=va({},Ta);va(ke,Sa);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=ca(e.tagName),i=ca(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=va({},["title","style","font","a","script"]);return!ke[n]&&(r[n]||!Ie[n])}return!1},xe=function(e){sa(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=_}catch(t){e.remove()}}},Oe=function(e,t){try{sa(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){sa(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=la(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":Ua(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":Ua(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,i){O[e]&&oa(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(la(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))&&pa(/<[/\w]/g,e.innerHTML)&&pa(/<[/\w]/g,e.textContent))return xe(e),!0;if("select"===i&&pa(/<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&&pa(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||!pa(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=ua(t,L," "),t=ua(t,R," "),e.textContent!==t&&(sa(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]&&pa(N,t));else if(z&&pa(P,t));else if(!q[t]||W[t]){if(!(Fe(e)&&(j.tagNameCheck instanceof RegExp&&pa(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&pa(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&pa(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(le[t]);else if(pa(U,ua(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==da(n,"data:")||!se[e]){if(V&&!pa(D,ua(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=ha(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(pa(/\/>/i,i))Oe(l,e);else{X&&(i=ua(i,L," "),i=ua(i,R," "));var d=Ee(e.nodeName);if(Ue(d,r,i))try{u?e.setAttributeNS(u,l,i):e.setAttribute(l,i),aa(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 fa("toString is not a function");if("string"!=typeof(e=e.toString()))throw fa("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Ua(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 fa("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=ua(f,L," "),f=ua(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]||[],sa(O[e],t))},n.removeHook=function(e){O[e]&&aa(O[e])},n.removeHooks=function(e){O[e]&&(O[e]=[])},n.removeAllHooks=function(){O={}},n}();const ja={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ga(e,t){let{ADD_TAGS:n=[],ADD_ATTR:i=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r={...ja};r.ADD_TAGS=[...r.ADD_TAGS,...n],r.ADD_ATTR=[...r.ADD_ATTR,...i];const o=Ha.sanitize(t,r);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Wa="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",za=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Ka=["b","del","em","i","s","strong","sub","sup"],Va=Ka.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"]),Xa=[Wa,"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 Ya(){}var Ja,Qa,$a=(Qa=/[&<>"'\u0000\\=]/g,Ja={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Qa,(function(e){return Ja[e]}))}),Za=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[za],i[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var es=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function ts(e){return/[<&]/.test(e)}var ns,is=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 rs(e){e=es(e)?e:[e];var t,n,i,r=0,o="<(?!/?";return o+="(?:",is(e,(function(e,a){t=e.tags||Va,n=e.attrs||Xa,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 os(e){return rs({tags:e=e||Va,checkUrlAttrs:!0})}function as(e,t){var n=(t=t||{}).allowTags,i=!1!==t.hasCustomElementMarkup;return n?!os(n).test(e):i?!as.R_UNSAFE_CUSTOM_ELEMENT.test(e):!as.R_UNSAFE_HTML.test(e)}function ss(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function cs(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 Ya||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=r?$a(o):o.toString()}return n[i]=o,o}))}(e,t):e,r=e;return ts(i)&&!as(i,n)&&(i=ss(i),go("Content contains non-whitelisted tags or attributes:\nContent: "+r,"error")),i}function ls(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e}as.R_UNSAFE_HTML=os(),as.R_UNSAFE_CUSTOM_ELEMENT=rs([{tags:Va,checkUrlAttrs:!0},{tags:[(ns={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Wa,ns.attrs].join("|"),checkUrlAttrs:!1}]);var us={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,"",""]};us.optgroup=us.option,us.tbody=us.tfoot=us.colgroup=us.caption=us.thead,us.th=us.td;var ds=/<([\w:]+)/;function hs(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=(ds.exec(o)||["",""])[1].toLowerCase(),gs(r,(i=us[n]||us._default)[1]+o+i[2]),s=i[0];s--;)r.lastChild&&r.lastChild.nodeType===Node.ELEMENT_NODE&&(r=r.lastChild);ls(u,r.childNodes),(r=l.firstChild).textContent=""}else ls(u,o.nodeType?[o]:o);for(l.textContent="",o=u[a=0];o;)l.appendChild(o),o=u[++a];return l}var ps=cs,fs=cs;function gs(e,t,n){var i=cs(t,n);return ts(i)?e.innerHTML=i:e[za]=i,i}function vs(e,t){if(!(this instanceof vs))return new vs(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}vs.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Ya,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(as(e,this._options)||(n=e,e=ss(e),go("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var ms={ALLOWED_TAGS:Va,FORMATTING_TAGS:Ka,htmlEncode:$a,htmlUnencode:Za,log:go,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 vs?r:$a(r))})),fs(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=hs([e],t);else{if(!es(e))return e;n=hs(e,t)}return ls([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:ps,reEncode:function(e){return $a(Za(e))},_redirector:_o,redirect:function(e){const t=wo(e);t===e&&_o.redirect(t)},sanitizeHTML:fs,sanitizeUrl:wo,setElementContent:gs,text:function(e){return go("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),$a(e)},unsafe:function(e){return e},UnsafeString:vs};function ys(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 Es=".toast",bs=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class ws{constructor(){let{removeToastCallback:e=(()=>{}),visibleToastCallback:t=(()=>{}),customToastSelector:n=Es}=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(bs).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]:Es;let t=this._el.querySelectorAll(e);Array.from(t).forEach(e=>{this._removeToast(e)})}bindEvents(e){this._el.addEventListener("click",t=>{const n=r(t.target,".toast__dismiss-btn");if(n){const t=r(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),o=document.querySelector("#toast-icon-"+e).content.firstElementChild.cloneNode(!0);if(!r||!o)throw new Error("Toast templates are missing");r.classList.add("toast--"+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",n+"_dismiss");const s=r.querySelector(".toast__message-content");let c="text-color-text-neutral";if(e===bs.CAUTION?c="text-color-text-caution":e===bs.ERROR?c="text-color-text-negative":e===bs.SUCCESS&&(c="text-color-text-positive"),s.classList.add(c),Ga(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",ms.sanitizeUrl(f(i.url,i.trk))),t.setAttribute("target",n),t.textContent=i.text,e.classList.add(c),e.append(t)}return r}_addToast(e){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&&ys(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()})}}Bo(ws,"TOAST_TYPES",bs),Bo(ws,"TOAST_ADD_TIMEOUT",500);const _s={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(_s).map(e=>_s[e]);const Ts=["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(Ts,"i");const Ss=Object.freeze({VERTICAL:"4:5",HORIZONTAL:"16:9",SQUARED:"1:1"});var Cs=new WeakMap,Is=new WeakMap,ks=new WeakMap,As=new WeakMap,xs=new WeakSet,Os=new WeakSet,Ls=new WeakMap,Rs=new WeakSet,Ns=new WeakMap,Ps=new WeakMap;class Ds{get shouldAutoplay(){return qo(this,Cs).hasAttribute("data-is-autoplay-enabled")}get shouldAutoloop(){return this.shouldAutoplay&&qo(this,Cs).hasAttribute("data-is-autoloop-enabled")}get isVideoSponsored(){return qo(this,Cs).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;Ko(this,Rs),Ko(this,Os),Ko(this,xs),zo(this,Cs,{writable:!0,value:void 0}),zo(this,Is,{writable:!0,value:void 0}),zo(this,ks,{writable:!0,value:0}),zo(this,As,{writable:!0,value:0}),zo(this,Ls,{writable:!0,value:(e,t)=>{const{autoPlayExposeRatio:n}=this,i=e=>e.forEach(e=>{e.intersectionRatio>=n?qo(this,Ns).call(this):qo(this,Ps).call(this)}),r={threshold:n};e&&t&&(this.intersectionObserverInstance&&this.intersectionObserverInstance.disconnect(),this.intersectionObserverInstance=new e(i,r),this.intersectionObserverInstance.observe(t))}}),zo(this,Ns,{writable:!0,value:()=>{var e;null===(e=qo(this,Is))||void 0===e||e.play()}}),zo(this,Ps,{writable:!0,value:()=>{var e;null===(e=qo(this,Is))||void 0===e||e.pause(),Ho(this,As,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?Ss.VERTICAL:e>1?Ss.HORIZONTAL:Ss.SQUARED}(u);e&&(t.aspectRatio=e)}Ho(this,Cs,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=Go(this,xs,Ms).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),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=T(document)),e.fireTrackingEvent(i,o)}}getPlayerPromise(){return this._mediaPlayerInstancePromise}getSetupAutoPlayPromise(){return this._setupAutoPlayPromise}_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 Ms(e){return this.getPlayerPromise().then(t=>{Ho(this,Is,t),this.shouldAutoplay&&(t.muted(!0),qo(this,Ls).call(this,e,t.el()),Go(this,Rs,Fs).call(this)),this.shouldAutoloop&&Go(this,Os,Us).call(this,t)})}function Us(e){e.on("durationchange",()=>{var t;const n=null===(t=e.duration)||void 0===t?void 0:t.call(e);isNaN(n)||Ho(this,ks,n)}),e.on("ended",()=>{Ho(this,As,qo(this,As)+qo(this,ks)),qo(this,ks)&&qo(this,As)<30&&e.play()})}function Fs(){this.document&&this.document.addEventListener("visibilitychange",()=>{"visible"===this.document.visibilityState?qo(this,Ns).call(this):qo(this,Ps).call(this)})}new Uint8Array(16);const Bs=[];for(let e=0;e<256;++e)Bs.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function qs(){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=T(document);if(!o)throw new Error("Missing pageKey for graphQL request from browser");return G(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:i,pageKey:o}),...r})}class Hs{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 qs({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 js extends Hs{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:js.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})}}Bo(js,"query","2849bb08e3a3bbd23c96c0e758c018b7");class Gs extends Hs{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:Gs.query,variables:{url:e},successCallback:t,failureCallback:n})}}Bo(Gs,"query","bece320b5f70fe4357082fe84eca6c56");class Ws extends fo{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);T(document);String.fromCharCode(32);const zs=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,Ks=/(.)\1{3}/,Vs=/linkedin/i,Xs=/\d\d/,Ys=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]+)?(/.*)?"),Js=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,Qs=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,$s=/^[ぁ-ゔゞ゛゜ー]*$/,Zs=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,ec=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},tc=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},nc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Xs.test(e)};nc.errorMessagePrefix="i18n_noConsecutiveDigits_";const ic=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!zs.test(e)};ic.errorMessagePrefix="i18n_noForbiddenCharacters_";const rc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Ks.test(e)};rc.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const oc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Vs.test(e)};oc.errorMessagePrefix="i18n_noLinkedIn_";const ac=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!Ys.test(e)};ac.errorMessagePrefix="i18n_noUrl_";const sc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Qs.test(e)};sc.errorMessagePrefix="i18n_onlyChinese_";const cc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return $s.test(e)};cc.errorMessagePrefix="i18n_onlyPhonetic_";const lc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};lc.errorMessagePrefix="i18n_required_";const uc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Js.test(e)};uc.errorMessagePrefix="i18n_invalidFormat_";const dc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Zs.test(e)};dc.errorMessagePrefix="i18n_invalidFormat_";const hc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Js.test(e)||Zs.test(e)};hc.errorMessagePrefix="i18n_invalidFormat_";const pc=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};pc.errorMessagePrefix="i18n_required_";const fc=[ec(50),ic,nc,rc,oc,ac],gc=[lc].concat(fc),vc=[cc,ec(50),rc];ec(4),tc(2),ec(128),ec(128),ec(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(uc),tc(6),ec(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 mc="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",yc={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Ec={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},bc={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},wc={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},_c={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:Tc,GOOGLE_USER_FETCHED:Sc,INITIALIZED:Cc}=yc,{INITIALIZATION:Ic,AUTHENTICATION:kc}=Ec;EventTarget;const{GOOGLE_USER_FETCHED:Ac,PROMPT_MOMENT:xc,GOOGLE_ERROR:Oc}=yc;EventTarget;var Lc={exports:{}};function Rc(e){this.message=e}Rc.prototype=new Error,Rc.prototype.name="InvalidCharacterError";var Nc="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new Rc("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,i,r=0,o=0,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 Pc=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(Nc(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return Nc(t)}};function Dc(e){this.message=e}Dc.prototype=new Error,Dc.prototype.name="InvalidTokenError",Lc.exports=function(e,t){if("string"!=typeof e)throw new Dc("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(Pc(e.split(".")[n]))}catch(e){throw new Dc("Invalid token specified: "+e.message)}},Lc.exports.InvalidTokenError=Dc;Lc.exports;const{GOOGLE_USER_FETCHED:Mc,PROMPT_MOMENT:Uc,GOOGLE_ERROR:Fc}=yc;EventTarget;const Bc={CLIENT_ID:mc,EVENTS:yc,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:Ec,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:bc,GOT_PROMPT_MOMENT_REASONS:_c,GOT_PROMPT_MOMENT_TYPES:wc},{GOT_PROMPT_MOMENT_REASONS:qc,GOT_PROMPT_MOMENT_TYPES:Hc}=Bc;const{EVENTS:{GOOGLE_ERROR:jc,GOOGLE_USER_FETCHED:Gc,INITIALIZED:Wc,PROMPT_MOMENT:zc},GOT_PROMPT_MOMENT_REASONS:Kc,GOT_PROMPT_MOMENT_TYPES:Vc}=Bc;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);const Xc="See https://go/pem/degradation-tracking-user-guide for instrumentation instructions";var Yc;!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"}(Yc||(Yc={}));const Jc=new Set(Object.values(Yc));class Qc extends Error{constructor(e){super(e),Object.setPrototypeOf(this,Qc.prototype)}}function $c(e){return 0===e.length||!e.trim()}function Zc(e){if("string"!=typeof e)throw new Qc(`Keys must be strings. ${Xc}.`);if($c(e))throw new Qc(`Keys should not be blank. ${Xc}.`);if(/[^a-z0-9-]/.test(e))throw new Qc(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${Xc}.`);return e}class el{constructor(e,t,n){var i,r,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Zc(e),this._defaultDegradationKey=Zc(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new Qc(`DegradationTrackingMetadata options should be an object. ${Xc}.`);const a=n.productName;a&&(this._productName=function(e){if("string"!=typeof e)throw new Qc(`The product name must be a string. ${Xc}.`);if($c(e))throw new Qc(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${Xc}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new Qc(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${Xc}.`);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 Qc(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${Xc}.`);var n;if(429===e||999===e)throw new Qc(`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===Yc.NonDegradedResponseCodes&&e>=400&&e<500)throw new Qc(`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 ${Yc.AdditionalDegradedResponseCodes} option. Please remove ${e} from the ${Yc.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`)};if(void 0!==e&&!Array.isArray(e))throw new Qc(`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 ${Yc.NonDegradedResponseCodes} option. See https://go/pem/degradation-tracking-user-guide for instrumentation instructions.`);if(void 0!==t&&!Array.isArray(t))throw new Qc(`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 ${Yc.AdditionalDegradedResponseCodes} option. ${Xc}.`);null==e||e.forEach(e=>n(e,Yc.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,Yc.AdditionalDegradedResponseCodes));const i=new Set(t),r=new Set(e);if([...i].some(e=>r.has(e)))throw new Qc(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${Xc}.`)}(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(!Jc.has(e))throw new Qc(`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(el.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 tl=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},nl=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}}(),il=function(){function e(){tl(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 nl(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}(),rl=function(){function e(){tl(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return nl(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}(),ol=function(){function e(){tl(this,e),this.PREFIX="dcts-",this.CPR=new rl}return nl(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(){tl(this,e),this.processor=new ol,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new il,this.workerThread=null,this.events=[]}nl(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:al,GOT_CONTEXTS:sl,GOT_PROMPT_MOMENT_TYPES:cl}=Bc,{GOOGLE_USER_FETCHED:ll,PROMPT_MOMENT:ul}=al;function dl(){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 hl(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 pl(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}dl(),hl(3),pl(128),dl(),hl(6),pl(400);var fl="undefined"!=typeof window&&window||e;function gl(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 vl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ml(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,wl(i.key),i)}}function yl(e,t,n){return t&&ml(e.prototype,t),n&&ml(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function El(e,t,n){return(t=wl(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bl(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 gl(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)?gl(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 wl(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 _l(e){return(_l="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 Tl=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Sl=/^fs_/;function Cl(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+_l(e)+".");var t,n,i=Tl.exec(e);return i&&(t=i[1].replace(Sl,""),n=i[2]),{id:n,type:t}}var Il=/(?![^(]*\)),/;var kl={checkForEntityId:function(e){var t=Tl.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:Cl,urnToObject:function e(t){var n=Cl(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Il),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}};var Al={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},xl="GUEST",Ol="MEMBER",Ll="ENTERPRISE_UNBOUND",Rl=0,Nl=1,Pl=2;El(El(El({},xl,"li_gc"),Ol,"li_mc"),Ll,"li_ec");El(El(El({},xl,"mypreferences/g/guest-cookies"),Ol,"settings/member-cookies"),Ll,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var Dl,Ml,Ul,Fl,Bl=yl((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 vl(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Al)t[o]=t[o]||Rl,t[o]!==Rl&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Nl||t[o]===Rl&&r===Nl})),ql=(Dl=[Al.ADVERTISING,Al.ANALYTICS_AND_RESEARCH,Al.FUNCTIONAL],Ml=[Rl,Nl,Pl,Rl],Ul=function(e){for(var t={},n=0;n<Dl.length;n++)t[Dl[n]]=Ml[e>>2*n&3];return t},Fl=function(e){var t=Rl;return e>=0&&e<=3&&(t=Ml[e]),t},new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),Hl=0,jl=1;yl((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?Hl:a;for(var c in vl(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},ql)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===jl}));fl.utag_data||(fl.utag_data={});const Gl="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;fl.utag_cfg_ovrd=fl.utag_cfg_ovrd||{},fl.trackingEventDebugData=fl.trackingEventDebugData||[],fl.utag_cfg_ovrd.noview=!0,fl.utag_cfg_ovrd.nocookie=!0;Gl&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(fl.navigator.userAgent);const{GOOGLE_USER_FETCHED:Wl,GOOGLE_ERROR:zl,INITIALIZED:Kl}=Bc.EVENTS,{INITIALIZATION:Vl}=Bc.GSI_ERROR_TYPES;const Xl={observeComponents:()=>{},unobserveComponents:()=>{},handleDynamicElements:()=>{}};class Yl{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 Xl;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 Jl(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function Ql(e){try{return e.getBoundingClientRect()}catch(e){if("object"==typeof e&&null!==e&&16389==(65535&e.number))return{top:0,bottom:0,left:0,width:0,height:0,right:0,x:0,y:0};throw e}}function $l(e,t){return Math.round(e-t)}var Zl,eu=(Zl=function(e,t){return(Zl=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}Zl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),tu=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}(),nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(tu),iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(tu),ru=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return eu(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}(tu),ou=function(){return 0},au=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),su=au&&!!window.requestAnimationFrame,cu={hasDOM:au,hasRAF:su,getScrollTop:ou,getScrollLeft:ou,getHeight:ou,getWidth:ou,rAF:su?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:ou,get isDirty(){return cu.version!==cu.lastVersion},document:window.document,IntersectionObserver:au&&window.IntersectionObserver,performance:au&&window.performance};function lu(){++cu.version}function uu(){var e=null!=document.scrollingElement;cu.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},cu.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}au&&(cu.getHeight=function(){return window.innerHeight},cu.getWidth=function(){return window.innerWidth},cu.updateMeta=function(){cu.meta.height=cu.getHeight(),cu.meta.width=cu.getWidth(),cu.meta.scrollLeft=cu.getScrollLeft(),cu.meta.scrollTop=cu.getScrollTop(),cu.lastVersion=cu.version},cu.updateMeta(),"loading"!==document.readyState?uu():document.addEventListener("DOMContentLoaded",uu),window.addEventListener("resize",lu,!1),window.addEventListener("scroll",lu,!1));var du=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,cu.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}(),hu=null;var pu=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)}}(),fu="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),gu=0,vu=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 cu.isDirty&&cu.updateMeta(),e===window||e===document?(n.height=cu.meta.height,n.width=cu.meta.width,n.scrollLeft=cu.meta.scrollLeft,n.scrollTop=cu.meta.scrollTop,n):(t=Ql(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 mu(){return gu+++fu}var yu=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(hu||(hu=new du)),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(vu.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=Ql(e),i=vu.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}(),Eu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new nu,t}return pu(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=mu();return this.queue.push({callback:e,id:t}),t},t}(yu),bu=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return pu(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Eu),wu=function(e){function t(t,n,i){void 0===i&&(i=!1);var r=e.call(this,t,n)||this;return r.lastVersion=cu.version,r.queue=new ru,r.ALLOW_CACHED_SCHEDULER=i,r}return pu(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return cu.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=Ql(r)),i(e,o,a)}this.lastVersion=cu.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||mu();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(yu),_u=null;var Tu=function(){function e(){this.queue=new iu}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}(),Su=function(){function e(e){this.scheduler=new bu(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=vu.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Cu=null;function Iu(e,t){var n=(Cu||(Cu={scroll:new Su((function(e){var t=this.state,n=t.scrollTop,i=t.scrollLeft;return this.state=e,n!==e.scrollTop||i!==e.scrollLeft})),resize:new Su((function(e){var t=this.state,n=t.width,i=t.height;return this.state=e,i!==e.height||n!==e.width})),destroy:new Tu,beforeunload:new Tu,hide:new Tu,show:new Tu}))[e];n&&n.listen(t)}function ku(e,t){if(Cu){var n=Cu[e];n&&n.unlisten(t)}}function Au(e,t){if(Cu){var n=Cu[e];n&&n.trigger(t)}}function xu(e){(_u||(_u=new Eu)).scheduleWork(e)}function Ou(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}}cu.hasDOM&&(window.addEventListener("beforeunload",(function(){Au("beforeunload"),Au("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Au("show"):Au("hide")})));var Lu=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new wu(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,i=n.__spanielId=n.__spanielId||mu();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:Ru(),intersectionRatio:0,intersectionRect:Ru(),isIntersecting:!1,rootBounds:Ru(),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:Jl({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Ou(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 Ru(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Nu={x:0,y:0,width:0,height:0,bottom:0,left:0,top:0,right:0};!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&&!!cu.IntersectionObserver;var h=this.usingNativeIo?cu.IntersectionObserver:Lu;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),cu.hasDOM&&(Iu("beforeunload",this.onWindowClosed),Iu("hide",this.onTabHidden),Iu("show",this.onTabShown),c&&(this.paused="visible"!==cu.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((cu.performance.timeOrigin||cu.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:Nu,boundingClientRect:o||Nu,intersectionRect:Nu,visibleTime:r.lastVisible.unixTime,duration:$l(i,r.lastVisible.highResTime),target:e.target},r),r.lastSatisfied=!1,r.visible=!1,r.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,i=!!t.threshold.time;t.lastSatisfied&&(!i||i&&t.visible)&&(e.duration=$l(n,t.lastVisible.highResTime),e.visibleTime=t.lastVisible.unixTime,e.entering=!1,t.visible=!1,this.queuedEntries.push(e)),clearTimeout(t.timeoutId)},e.prototype.handleObserverEntry=function(e){var t=this,n=e.target,i=this.recordStore[n.__spanielId];i&&(i.lastSeenEntry=e,this.paused||(i.thresholdStates.forEach((function(n){var i=!!n.threshold.time,r=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,a="boolean"==typeof r.isIntersecting?r.isIntersecting:Jl(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=$l(performance.now(),n.lastVisible.highResTime),r.visibleTime=n.lastVisible.unixTime,t.callback([r])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,r.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(r);else t.handleThresholdExiting(r,n);n.lastEntry=e,n.lastSatisfied=s}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),cu.hasDOM&&(ku("beforeunload",this.onWindowClosed),ku("hide",this.onTabHidden),ku("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),xu((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,i=n.__spanielId=n.__spanielId||mu();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}}();cu.IntersectionObserver&&cu.IntersectionObserver;class Pu{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this._impressionTracking=new Yl(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=T(document),{header:i,requestHeader:r}=uo(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 Du="show-more-less__button--hide";class Mu{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e.querySelector(D);if(!e)throw Error("An element must be provided to ShowMoreLess");this.el=e,this.listEl=this.el.querySelector(".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 O(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(Du),this.showMoreButton.classList.remove(Du)):(this.showLessButton.classList.remove(Du),this.showMoreButton.classList.add(Du))}}function Uu(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}Uu("action"),Uu("openpage"),Uu("openlink");class Fu extends Hs{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:Fu.query,variables:{handleString:e},successCallback:t,failureCallback:n})}}Bo(Fu,"query","77715b456915324f44eb5c5ae5981169");var Bu={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})})(Bu.exports);const{EVENTS:qu,GOT_CONTEXTS:Hu,GOT_PROMPT_MOMENT_REASONS:ju,GOT_PROMPT_MOMENT_TYPES:Gu,GSI_ERROR_TYPES:Wu}=Bu.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:zu,PROMPT_MOMENT:Ku,GOOGLE_ERROR:Vu}=qu,{SIGN_IN:Xu}=Hu;ju.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,ju.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,ju.NOT_DISPLAYED.SUPPRESSED_BY_USER,ju.SKIPPED.AUTO_CANCEL,ju.SKIPPED.TAP_OUTSIDE,ju.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:Yu,PROMPT_MOMENT_REASONS:Ju,PROMPT_MOMENT_TYPES:Qu}=Bu.exports.MicrosoftSignInConstants,{USER_FETCHED:$u,PROMPT_MOMENT:Zu}=Yu;Ju.DISPLAY.ANOTHER_PROMPT_RUNNING,Ju.DISPLAY.BROWSER_NOT_SUPPORTED,Ju.DISPLAY.IN_COOLDOWN_PERIOD,Ju.DISPLAY.NON_MSA_PROFILE,Ju.SKIPPED.TAP_OUTSIDE,Ju.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class ed{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:w(e.getAttribute("href"))}))}fireLinksterImpressionEvent(e){this._trackingInstance.fireLinksterImpressionEvent&&this._trackingInstance.fireLinksterImpressionEvent(this._moduleName,this._entityId,e)}}class td{constructor(e,t){if(!e)throw new Error("ExpandableLinkster el required");this._showMoreLessEl=e.querySelector(".show-more-less"),new Mu(this._showMoreLessEl),this._linksterForTrackingEl=e.querySelector('[data-js-module-id="linkster"][data-entity-id][data-module-name]'),this._linksterForTrackingEl&&t&&new ed(this._linksterForTrackingEl,t)}}class nd{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 Ws(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 id;function rd(){return id||(id=new ws),id}function od(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 el(a,i,s)}(t,i,e))}function ad(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 sd=document.querySelector("#full-page-header-back-button");window.onload=()=>{null==sd||sd.focus()};class cd{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{cd.instance||(cd.instance=new cd(localStorage)),cd.instance}catch{}})(),function(){try{cd.sessionInstance||(cd.sessionInstance=new cd(sessionStorage)),cd.sessionInstance}catch{}}();class ld extends Hs{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:ld.query,variables:{postUrn:e},successCallback:t,failureCallback:n})}}let ud;Bo(ld,"query","cb99e660f3455cad5185a1d9543e6bce");s.getInstance().addUnloadCallback(()=>{ud&&ud.close(),Co(document.querySelector("#discard-post-modal")),Co(document.querySelector("#visibility-settings-modal")),Co(document.querySelector("#max-images-prompt-modal")),Co(document.querySelector("#retry-upload-modal"))});Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});const dd={PRODUCT_NAME:"Lite-feed",routeMappingToDegradationConfig:{FEED_REPOST:{"publish-repost":[{degradationKey:"publish-repost-failed"}]}}};od({featureName:"publish-repost",productName:dd.PRODUCT_NAME,featureMappingToDegradationConfig:dd.routeMappingToDegradationConfig.FEED_REPOST});Object.freeze({NEW_REPOST_SUCCESS_EVENT:"Repost:newRepost:success",NEW_REPOST_FAIL_EVENT:"Repost:newRepost:fail"});class hd extends Hs{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:hd.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Bo(hd,"query","20f8e9934e7df62932fd167d87c19b27");var pd=function(){this.__data__=[],this.size=0};var fd=function(e,t){return e===t||e!=e&&t!=t},gd=fd;var vd=function(e,t){for(var n=e.length;n--;)if(gd(e[n][0],t))return n;return-1},md=vd,yd=Array.prototype.splice;var Ed=vd;var bd=vd;var wd=vd;var _d=pd,Td=function(e){var t=this.__data__,n=md(t,e);return!(n<0)&&(n==t.length-1?t.pop():yd.call(t,n,1),--this.size,!0)},Sd=function(e){var t=this.__data__,n=Ed(t,e);return n<0?void 0:t[n][1]},Cd=function(e){return bd(this.__data__,e)>-1},Id=function(e,t){var n=this.__data__,i=wd(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function kd(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])}}kd.prototype.clear=_d,kd.prototype.delete=Td,kd.prototype.get=Sd,kd.prototype.has=Cd,kd.prototype.set=Id;var Ad=kd,xd=Ad;var Od=function(){this.__data__=new xd,this.size=0};var Ld=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Rd=function(e){return this.__data__.get(e)};var Nd=function(e){return this.__data__.has(e)},Pd="object"==typeof z&&z&&z.Object===Object&&z,Dd=Pd,Md="object"==typeof self&&self&&self.Object===Object&&self,Ud=Dd||Md||Function("return this")(),Fd=Ud.Symbol,Bd=Fd,qd=Object.prototype,Hd=qd.hasOwnProperty,jd=qd.toString,Gd=Bd?Bd.toStringTag:void 0;var Wd=function(e){var t=Hd.call(e,Gd),n=e[Gd];try{e[Gd]=void 0;var i=!0}catch(e){}var r=jd.call(e);return i&&(t?e[Gd]=n:delete e[Gd]),r},zd=Object.prototype.toString;var Kd=Wd,Vd=function(e){return zd.call(e)},Xd=Fd?Fd.toStringTag:void 0;var Yd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Xd&&Xd in Object(e)?Kd(e):Vd(e)};var Jd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Qd=Yd,$d=Jd;var Zd,eh=function(e){if(!$d(e))return!1;var t=Qd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},th=Ud["__core-js_shared__"],nh=(Zd=/[^.]+$/.exec(th&&th.keys&&th.keys.IE_PROTO||""))?"Symbol(src)_1."+Zd:"";var ih=function(e){return!!nh&&nh in e},rh=Function.prototype.toString;var oh=eh,ah=ih,sh=Jd,ch=function(e){if(null!=e){try{return rh.call(e)}catch(e){}try{return e+""}catch(e){}}return""},lh=/^\[object .+?Constructor\]$/,uh=Function.prototype,dh=Object.prototype,hh=uh.toString,ph=dh.hasOwnProperty,fh=RegExp("^"+hh.call(ph).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var gh=function(e){return!(!sh(e)||ah(e))&&(oh(e)?fh:lh).test(ch(e))},vh=function(e,t){return null==e?void 0:e[t]};var mh=function(e,t){var n=vh(e,t);return gh(n)?n:void 0},yh=mh(Ud,"Map"),Eh=mh(Object,"create"),bh=Eh;var wh=function(){this.__data__=bh?bh(null):{},this.size=0};var _h=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Th=Eh,Sh=Object.prototype.hasOwnProperty;var Ch=function(e){var t=this.__data__;if(Th){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Sh.call(t,e)?t[e]:void 0},Ih=Eh,kh=Object.prototype.hasOwnProperty;var Ah=Eh;var xh=wh,Oh=_h,Lh=Ch,Rh=function(e){var t=this.__data__;return Ih?void 0!==t[e]:kh.call(t,e)},Nh=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ah&&void 0===t?"__lodash_hash_undefined__":t,this};function Ph(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])}}Ph.prototype.clear=xh,Ph.prototype.delete=Oh,Ph.prototype.get=Lh,Ph.prototype.has=Rh,Ph.prototype.set=Nh;var Dh=Ph,Mh=Ad,Uh=yh;var Fh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Bh=function(e,t){var n=e.__data__;return Fh(t)?n["string"==typeof t?"string":"hash"]:n.map},qh=Bh;var Hh=Bh;var jh=Bh;var Gh=Bh;var Wh=function(){this.size=0,this.__data__={hash:new Dh,map:new(Uh||Mh),string:new Dh}},zh=function(e){var t=qh(this,e).delete(e);return this.size-=t?1:0,t},Kh=function(e){return Hh(this,e).get(e)},Vh=function(e){return jh(this,e).has(e)},Xh=function(e,t){var n=Gh(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Yh(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])}}Yh.prototype.clear=Wh,Yh.prototype.delete=zh,Yh.prototype.get=Kh,Yh.prototype.has=Vh,Yh.prototype.set=Xh;var Jh=Ad,Qh=yh,$h=Yh;var Zh=Ad,ep=Od,tp=Ld,np=Rd,ip=Nd,rp=function(e,t){var n=this.__data__;if(n instanceof Jh){var i=n.__data__;if(!Qh||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new $h(i)}return n.set(e,t),this.size=n.size,this};function op(e){var t=this.__data__=new Zh(e);this.size=t.size}op.prototype.clear=ep,op.prototype.delete=tp,op.prototype.get=np,op.prototype.has=ip,op.prototype.set=rp;var ap=op,sp=mh,cp=function(){try{var e=sp(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),lp=cp;var up=function(e,t,n){"__proto__"==t&&lp?lp(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},dp=up,hp=fd;var pp=function(e,t,n){(void 0!==n&&!hp(e[t],n)||void 0===n&&!(t in e))&&dp(e,t,n)};var fp=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}}(),gp={exports:{}};!function(e,t){var n=Ud,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}}(gp,gp.exports);var vp=Ud.Uint8Array;var mp=function(e){var t=new e.constructor(e.byteLength);return new vp(t).set(new vp(e)),t};var yp=function(e,t){var n=t?mp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Ep=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},bp=Jd,wp=Object.create,_p=function(){function e(){}return function(t){if(!bp(t))return{};if(wp)return wp(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Tp=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),Sp=Object.prototype;var Cp=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Sp)},Ip=_p,kp=Tp,Ap=Cp;var xp=function(e){return"function"!=typeof e.constructor||Ap(e)?{}:Ip(kp(e))};var Op=function(e){return null!=e&&"object"==typeof e},Lp=Yd,Rp=Op;var Np=function(e){return Rp(e)&&"[object Arguments]"==Lp(e)},Pp=Op,Dp=Object.prototype,Mp=Dp.hasOwnProperty,Up=Dp.propertyIsEnumerable,Fp=Np(function(){return arguments}())?Np:function(e){return Pp(e)&&Mp.call(e,"callee")&&!Up.call(e,"callee")},Bp=Array.isArray;var qp=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},Hp=eh,jp=qp;var Gp=function(e){return null!=e&&jp(e.length)&&!Hp(e)},Wp=Gp,zp=Op;var Kp=function(e){return zp(e)&&Wp(e)},Vp={exports:{}};var Xp=function(){return!1};!function(e,t){var n=Ud,i=Xp,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}(Vp,Vp.exports);var Yp=Yd,Jp=Tp,Qp=Op,$p=Function.prototype,Zp=Object.prototype,ef=$p.toString,tf=Zp.hasOwnProperty,nf=ef.call(Object);var rf=function(e){if(!Qp(e)||"[object Object]"!=Yp(e))return!1;var t=Jp(e);if(null===t)return!0;var n=tf.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ef.call(n)==nf},of=Yd,af=qp,sf=Op,cf={};cf["[object Float32Array]"]=cf["[object Float64Array]"]=cf["[object Int8Array]"]=cf["[object Int16Array]"]=cf["[object Int32Array]"]=cf["[object Uint8Array]"]=cf["[object Uint8ClampedArray]"]=cf["[object Uint16Array]"]=cf["[object Uint32Array]"]=!0,cf["[object Arguments]"]=cf["[object Array]"]=cf["[object ArrayBuffer]"]=cf["[object Boolean]"]=cf["[object DataView]"]=cf["[object Date]"]=cf["[object Error]"]=cf["[object Function]"]=cf["[object Map]"]=cf["[object Number]"]=cf["[object Object]"]=cf["[object RegExp]"]=cf["[object Set]"]=cf["[object String]"]=cf["[object WeakMap]"]=!1;var lf=function(e){return sf(e)&&af(e.length)&&!!cf[of(e)]};var uf=function(e){return function(t){return e(t)}},df={exports:{}};!function(e,t){var n=Pd,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}(df,df.exports);var hf=lf,pf=uf,ff=df.exports,gf=ff&&ff.isTypedArray,vf=gf?pf(gf):hf;var mf=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},yf=up,Ef=fd,bf=Object.prototype.hasOwnProperty;var wf=function(e,t,n){var i=e[t];bf.call(e,t)&&Ef(i,n)&&(void 0!==n||t in e)||yf(e,t,n)},_f=up;var Tf=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?_f(n,s,c):wf(n,s,c)}return n};var Sf=/^(?:0|[1-9]\d*)$/;var Cf=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Sf.test(e))&&e>-1&&e%1==0&&e<t},If=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},kf=Fp,Af=Bp,xf=Vp.exports,Of=Cf,Lf=vf,Rf=Object.prototype.hasOwnProperty;var Nf=function(e,t){var n=Af(e),i=!n&&kf(e),r=!n&&!i&&xf(e),o=!n&&!i&&!r&&Lf(e),a=n||i||r||o,s=a?If(e.length,String):[],c=s.length;for(var l in e)!t&&!Rf.call(e,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Of(l,c))||s.push(l);return s};var Pf=Jd,Df=Cp,Mf=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Uf=Object.prototype.hasOwnProperty;var Ff=Nf,Bf=function(e){if(!Pf(e))return Mf(e);var t=Df(e),n=[];for(var i in e)("constructor"!=i||!t&&Uf.call(e,i))&&n.push(i);return n},qf=Gp;var Hf=function(e){return qf(e)?Ff(e,!0):Bf(e)},jf=Tf,Gf=Hf;var Wf=pp,zf=gp.exports,Kf=yp,Vf=Ep,Xf=xp,Yf=Fp,Jf=Bp,Qf=Kp,$f=Vp.exports,Zf=eh,eg=Jd,tg=rf,ng=vf,ig=mf,rg=function(e){return jf(e,Gf(e))};var og=ap,ag=pp,sg=fp,cg=function(e,t,n,i,r,o,a){var s=ig(e,n),c=ig(t,n),l=a.get(c);if(l)Wf(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Jf(c),p=!h&&$f(c),f=!h&&!p&&ng(c);u=c,h||p||f?Jf(s)?u=s:Qf(s)?u=Vf(s):p?(d=!1,u=zf(c,!0)):f?(d=!1,u=Kf(c,!0)):u=[]:tg(c)||Yf(c)?(u=s,Yf(s)?u=rg(s):eg(s)&&!Zf(s)||(u=Xf(c))):d=!1}d&&(a.set(c,u),r(u,c,i,o,a),a.delete(c)),Wf(e,n,u)}},lg=Jd,ug=Hf,dg=mf;var hg=function e(t,n,i,r,o){t!==n&&sg(n,(function(a,s){if(o||(o=new og),lg(a))cg(t,n,s,i,e,r,o);else{var c=r?r(dg(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),ag(t,s,c)}}),ug)};var pg=function(e){return e};var fg=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)},gg=Math.max;var vg=function(e,t,n){return t=gg(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=gg(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),fg(e,this,s)}};var mg=function(e){return function(){return e}},yg=cp,Eg=yg?function(e,t){return yg(e,"toString",{configurable:!0,enumerable:!1,value:mg(t),writable:!0})}:pg,bg=Date.now;var wg=function(e){var t=0,n=0;return function(){var i=bg(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Eg),_g=pg,Tg=vg,Sg=wg;var Cg=fd,Ig=Gp,kg=Cf,Ag=Jd;var xg=function(e,t){return Sg(Tg(e,t,_g),e+"")},Og=function(e,t,n){if(!Ag(n))return!1;var i=typeof t;return!!("number"==i?Ig(n)&&kg(t,n.length):"string"==i&&t in n)&&Cg(n[t],e)};var Lg=hg;Rg=function(e,t,n){Lg(e,t,n)},xg((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=Rg.length>3&&"function"==typeof r?(i--,r):void 0,o&&Og(t[0],t[1],o)&&(r=i<3?void 0:r,i=1),e=Object(e);++n<i;){var a=t[n];a&&Rg(e,a,n,r)}return e}));var Rg;function Ng(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 Pg(e,t,n){const i=Ng(e),r=Ng(t),o=Ng(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 Dg="data-draggable-initialized",Mg="touchstart",Ug="touchmove",Fg="touchend";class Bg{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;Bg.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener(Mg,t),this.draggableElementEl.setAttribute(Dg,!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=Pg(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(Ug,t),document.addEventListener(Fg,(function e(){document.removeEventListener(Ug,t),document.removeEventListener(Fg,e)}))}moveTo(e,t){const n=Pg(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)}}Bg.isDraggable=function(e){return!!e.getAttribute(Dg)};const qg="data-zoomable-initialized",Hg="touchstart",jg="touchmove",Gg="touchend";class Wg{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;Wg.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(Hg,t),this.zoomableElement.setAttribute(qg,!0))}scaleElement(e,t){if(1===e)return;this.limits=Pg(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(jg,t),document.addEventListener(Gg,(function e(){document.removeEventListener(jg,t),document.removeEventListener(Gg,e)}))}}Wg.isZoomable=function(e){return!!e.getAttribute(qg)};class zg extends Hs{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:zg.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Bo(zg,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class Kg extends Hs{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:Kg.query,successCallback:e,failureCallback:t})}}Bo(Kg,"query","da4a9ce2de842c1abe01ca37ea9271ee");const Vg=/^\d{4,15}$/,Xg=/[-\s+().]/g,Yg=/^\S+@\S+\.\S+$/,Jg=/[,]|.*@.*@/,Qg="MinLength",$g="MaxLength",Zg="Regex",ev="Required",tv="RegexAllow",nv=e=>e&&Yg.test(e)&&!Jg.test(e),iv={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{errorCode:"Email",validate:nv},WORK_EMAIL:{errorCode:"WorkEmail",validate:e=>nv(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(Xg,"");return!(!t||!Vg.test(t))}}},rv="EMAIL_ADDRESS",ov="PHONE_NUMBER",av="WORK_EMAIL",sv="consentUnchecked",cv={INPUT:"INPUT",SELECT:"SELECT"},lv="text",uv="checkbox";function dv(e){return Object.keys(cv).includes(e.tagName)}function hv(e){const t=function(e){const t=[],{minLength:n,maxLength:i,inputType:r}=e.dataset;let o;switch(r){case rv:t.push({type:tv,RegexAllow:[iv.EMAIL]});break;case av:t.push({type:tv,RegexAllow:[iv.WORK_EMAIL]});break;case ov:o=e.value.replace(/ /g,""),t.push({type:tv,RegexAllow:[iv.PHONE_NUMBER]})}return e.required&&t.push({type:ev}),n&&t.push({type:Qg,MinLength:n}),i&&t.push({type:$g,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 ev:if(0===n.length)return ev;break;case Qg:if(n.length<e[Qg])return Qg;break;case $g:if(n.length>e[$g])return $g;break;case Zg:for(let t=0;t<e[Zg].length;t++){var i,r,o,a;if(!0===(null===(i=e[Zg][t])||void 0===i||null===(r=i.validate)||void 0===r?void 0:r.call(i,n))||!0===(null===(o=e[Zg][t])||void 0===o||null===(a=o.pattern)||void 0===a?void 0:a.test(n)))return Zg+e[Zg][t].errorCode}break;case tv:for(let t=0;t<e[tv].length;t++){var s,c,l,u;if(!1===(null===(s=e[tv][t])||void 0===s||null===(c=s.validate)||void 0===c?void 0:c.call(s,n))||!1===(null===(l=e[tv][t])||void 0===l||null===(u=l.pattern)||void 0===u?void 0:u.test(n)))return tv+e[tv][t].errorCode}}})(e,n)).filter(e=>!!e)}function pv(e,t){return t&&!e?sv:null}const fv=(e,t)=>parseInt(t.split(e)[1]);function gv(e,t){return document.getElementById(e.id+"-strings").dataset["str"+t]}const vv=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),mv=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),yv=(e,t)=>({question:e,multipleChoiceAnswer:{options:[t]}});function Ev(e,t){const n=e.id+"_",i=n+"q",r=n+"c",o=Do("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(dv).forEach(e=>{let t;if(e.tagName===cv.SELECT)t=((e,t,n)=>{const i=fv(e,t.id),r=t.selectedIndex;return{response:n?yv(i,r):mv(i,r)}})(i,e,o),o?m.formResponse.answers.push(t.response):v.formResponse.answers.push(t.response);else if(e.type===lv)if(t=((e,t,n)=>{const i=fv(e,t.id),r=hv(t);return 0!==r.length?{errors:r}:{response:n?(o=i,a=t.value,{question:o,textQuestionAnswer:{answer:a}}):vv(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===uv&&(t=((e,t,n,i,r)=>{const o=fv(e,t),a=pv(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 bv extends Hs{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:bv.query,variables:e,successCallback:t,failureCallback:n})}}Bo(bv,"query","0a321276f8bcd90441cffeb1ab648fa1");const wv="VIEW_FORM",_v=".lead-gen-input-container",Tv=".error-text",Sv=".submit-btn",Cv="input-error",Iv="checkbox-input",kv="inputbox-input";class Av{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");No("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(Sv),this.persistFormOnSubmit=o,this.encryptedTrackingData=i,this.encodedLeadGenFormTrackingContext=n,a&&(this.leadGenResponseMutation=new bv(a,r)),t||this._bindInputHandlers(),this.encodedLeadGenFormTrackingContext&&!t&&(this._initClickTracking(),this._initViewTracking())}showPostSubmissionInfo(){Co(this.formContentEl),this.postSubmissionInfoEl&&Io(this.postSubmissionInfoEl)}hideForm(){Co(this.formContentEl)}enableSubmit(){Oo(this.submitBtn)}_clearFormErrors(){Array.from(this.formEl).filter(dv).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Ev(this.formEl,this.encryptedTrackingData).then(e=>{if(xo(this.submitBtn),this.leadGenResponseMutation){const t=this.leadGenResponseMutation.execute(e);y(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,t)}else y(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();B(gv(t.element,t.errorType),F.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(_v),n=t.querySelector(Tv);Co(n),t.classList.remove(Cv),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(_v))||void 0===t?void 0:t.classList.contains(Cv)}_setAndShowError(e,t){if(e){const n=gv(e,t),i=e.closest(_v),r=i.querySelector(Tv);r.innerText=n,Io(r),i.classList.add(Cv),r.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===uv)t=pv(e.checked,e.required);else if(e.type===lv){const n=hv(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindInputHandlers(){this.formEl.addEventListener("click",e=>{e.target.classList.contains(Iv)&&this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(kv)&&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=T(document,{skipSuffix:!0}),o=`${r}-${null==t?void 0:t.toLowerCase()}`,a=uo(r);i?ad("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=wv,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)}})}}Bo(Av,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class xv{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 qs({endpoint:this.endpoint,queryId:xv.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)}}Bo(xv,"query","cbed571fffd8cea15209aed8d44e6759");const Ov=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(Ov));const Lv="CREATE",Rv="UPDATE";class Nv{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:Nv.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Lv&&n!==Rv||(o.variables.reactionType=e),qs(o).then(e=>{const{responseText:t}=e;i(JSON.parse(t).graphQL)}).catch(r)}}Bo(Nv,"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 Pv extends Hs{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:Pv.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:i},successCallback:r,failureCallback:o})}}Bo(Pv,"query","48f4c814e38d5689b7c83a29c9676972");function Dv(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 Mv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uv(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,Hv(i.key),i)}}function Fv(e,t,n){return t&&Uv(e.prototype,t),n&&Uv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bv(e,t,n){return(t=Hv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qv(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 Dv(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)?Dv(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 Hv(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 jv(e){return(jv="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 Gv=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Wv=/^fs_/;function zv(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+jv(e)+".");var t,n,i=Gv.exec(e);return i&&(t=i[1].replace(Wv,""),n=i[2]),{id:n,type:t}}var Kv=/(?![^(]*\)),/;var Vv={checkForEntityId:function(e){var t=Gv.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:zv,urnToObject:function e(t){var n=zv(t),i=n.id,r=n.type,o={};if("("===i.charAt(0)){for(var a,s=i.substring(1,i.length-1).split(Kv),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));i=s}return o[r]=i,o}};var Xv={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},Yv="GUEST",Jv="MEMBER",Qv="ENTERPRISE_UNBOUND",$v=0,Zv=1,em=2;Bv(Bv(Bv({},Yv,"li_gc"),Jv,"li_mc"),Qv,"li_ec");Bv(Bv(Bv({},Yv,"mypreferences/g/guest-cookies"),Jv,"settings/member-cookies"),Qv,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var tm=Fv((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 Mv(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=i,this.optedInConsentMap={},Xv)t[o]=t[o]||$v,t[o]!==$v&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===Zv||t[o]===$v&&r===Zv})),nm=(function(){var e=[Xv.ADVERTISING,Xv.ANALYTICS_AND_RESEARCH,Xv.FUNCTIONAL],t=[$v,Zv,em,$v],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=$v;return e>=0&&e<=3&&(n=t[e]),n}}(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),im=0,rm=1;Fv((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?im:a;for(var c in Mv(this,e),i=i||{},this.issuedAt=o,this.guestPreferencesMap={},nm)"number"!=typeof i[c]&&(i[c]=s),this.guestPreferencesMap[c]=i[c]===rm}));Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const om=document.querySelector("#share-modal .textarea"),am=document.querySelector(".image-preview-wrapper"),sm=document.querySelector("#share-modal .modal-content .reshare-section"),cm=document.querySelector(".post-button"),lm=document.querySelector("#comments-enabled"),um=document.querySelector("#share-with-public"),dm=document.querySelector(".post-settings-wrapper"),hm=document.querySelector('input[name="share-with"]:checked'),pm=document.querySelector("#share-modal .close-button"),fm=document.querySelector("#visibility-settings-modal"),gm=document.querySelector("#visibility-header-back .close-button"),vm=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),mm=document.querySelector("#discard-post-modal-wrapper"),ym=document.querySelector("#share-modal"),Em=document.querySelector(".modal-spinner"),bm=document.querySelector("#share-modal .textarea"),wm=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const _m=document.querySelector("#share-with-network");class Tm extends Ws{updatePostButtonStatus(){var e;const t=null===(e=om.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===am.getAttribute("data-image-load-state"),i=sm.children.length;t||n||i?Oo(cm):xo(cm)}clearModalContentBase(){sm&&(sm.textContent=""),om&&(om.textContent=""),lm&&(lm.checked=!0),um&&(um.checked=!0,dm.setAttribute("data-post-visibility",hm.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),pm.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"))})}fm.addEventListener("close",()=>{dm.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),gm.addEventListener("click",()=>window.history.back()),vm.addEventListener("click",t=>e(t)),vm.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}),Lo()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class Sm extends Tm{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=Do("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new Ws(fm,{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=v(this.updatePostButtonStatus,300);bm.addEventListener("input",e)}bindShareModalEvents(){const e=new nd(mm,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});ym.addEventListener("open",()=>{om.focus()}),ym.addEventListener("close",()=>{this.clearModalContentBase(),Co(Em)}),cm.addEventListener("click",()=>{this.processPostData()}),pm.addEventListener("click",()=>{cm.disabled?this.close():e.modal.open()}),dm.addEventListener("click",this.postSettingsClickHandler.bind(this)),dm.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(),Ro()&&window.scrollTo(0,0),n&&(bm.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=bm.textContent,this.shareData.visibility="PUBLIC",wm&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=wm.value),_m.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){Io(Em),this.composePostData(),qs({endpoint:this.endpoint,queryId:Sm.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=>{lo(e,"ajax","post_success_page_key")}),rd().trigger("success",Do("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+i,trk:"share-post-success",text:Do("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{lo(e,"ajax","post_failure_page_key")}),rd().trigger("error",Do("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())}}Bo(Sm,"query","971e319c05beaf333e94125db8c4f942");const Cm={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};od({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:Cm}),od({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:Cm}),od({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:Cm});class Im extends Hs{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:Im.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Bo(Im,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class km extends Hs{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:km.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Bo(km,"query","a628cd3be2c138c07fc69c2413b23fb6");class Am extends Hs{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:Am.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Bo(Am,"query","a0ff03a6b1cbe44862cb2054f0612078");class xm extends Hs{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:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Bo(xm,"query","ad184ece0303620a9753eca249efd99f");class Om extends Hs{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:Om.query,variables:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Bo(Om,"query","7edd5b8a4513caf8180a64ecde871630");class Lm extends Hs{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:Lm.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Bo(Lm,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Rm extends Hs{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:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Bo(Rm,"query","85c85c121bf7eaabd2388b9143f94546");class Nm extends Hs{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:{assetUrn:e},successCallback:t,failureCallback:n})}}Bo(Nm,"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)})}]);