(()=>{"use strict";var e={};function t(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();class n{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 r=function(){let e;return{getInstance:function(){return e||(e=new n),e}}}();class i{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)}}!function(){let e}();function o(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function a(e,t,n){const r=new RegExp(`([\\?&])${n?t:encodeURIComponent(t)}=([^&#]*)`).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function s(e,t){return c(e,"trk",t)}function c(e,t,n,r){if(!e||!t)throw new Error(`Required param of addQueryParam missing: url = ${e},  key = ${t}`);t=encodeURIComponent(t),n=encodeURIComponent(n);const i=a(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),a="&";return r<0?a="?":r===e.length-1&&(a=""),o&&(o="#"+o),`${i}${a}${t}=${n}${o||""}`}}function l(e,t,n){var r=this;if("function"!=typeof e)throw new TypeError("Expected a function.");let i;return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];const c=()=>{i=null,n||e.apply(r,a)},l=n&&!i;clearTimeout(i),i=setTimeout(c,t),l&&e.apply(r,a)}}function u(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=document.createEvent("CustomEvent");r.initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.querySelector('meta[name="pageKey"]'),r=e.getElementById("config"),i=r&&"true"===r.dataset.disableJsbeaconPagekeySuffix;return n&&n.content?`${n.content}${i||t.skipSuffix?"":"_jsbeacon"}`:""}function p(e){let t=e.querySelector('meta[name="linkedin:pageTag"]');return t&&t.content||""}function f(e){let t=e.querySelector('meta[name="locale"]');return t&&t.content||""}function v(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function g(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const m={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},y={Down:m.ARROW_DOWN,Right:m.ARROW_RIGHT,Left:m.ARROW_LEFT,Up:m.ARROW_UP,Esc:m.ESCAPE,Spacebar:m.SPACEBAR,Tab:m.TAB};function E(e){return y[e]||e}class b{constructor(e,t,n){let{mainButton:r,closeButton:i}=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(!r)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=r,this.closeButton=i,this.buttons=[r],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(E(e.key)){case m.ENTER:case m.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case m.ARROW_UP:this.isOpen||this._open(e);break;case m.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){E(e.key)===m.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const n=E(e.key);if(n===m.ESCAPE&&this.isOpen)this.close();else if(this._isList){let r;switch(n){case m.SPACEBAR:d(e.target,"click");break;case m.ARROW_LEFT:case m.ARROW_UP:r=t(e.target,"li");let n=r.previousElementSibling;n&&d(n,"focusEl");break;case m.ARROW_RIGHT:case m.ARROW_DOWN:r=t(e.target,"li");let i=r.nextElementSibling;i&&d(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)),d(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)),d(this.el,"close"),e&&setTimeout(()=>{this.mainButton.focus()},250))}}let w,T;const _=['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^="-"])'],S=[..._,'[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");[..._,"[tabindex]:not([disabled])"].join(",");function C(e){const t=window.getComputedStyle(e);return"hidden"===t.visibility||"none"===t.display}function k(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,r=arguments.length>2?arguments[2]:void 0;return e===n?!C(e):r&&r.get(e)?r.get(e):(C(e)?t=!1:e.parentNode&&(t=k(e.parentNode,n,r)),r&&r.set(e,t),t)}const I={POLITE:"polite",ASSERTIVE:"assertive"};function A(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.POLITE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;w&&(w.removeAttribute("aria-hidden"),w.setAttribute("aria-live",t),w.textContent=e,clearTimeout(T),T=setTimeout(()=>{w.textContent=""},n))}class O{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 R=["class","disabled","style","tabindex","type"];class L{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 O(this._container)}init(){this._observer.observe(this._container,{attributeFilter:R,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,r=E(t),i=r===m.TAB&&e.shiftKey;!i&&r===m.TAB&&n===this.lastFocusableEl?(this.firstFocusableEl.focus(),e.preventDefault()):i&&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(S)],n=new Map;let r,i,o=0,a=t.length-1;for(;(!r||!i)&&o<=a;){if(!r){const i=t[o];r=k(i,e,n)&&i,o++}if(!i){const r=t[a];i=k(r,e,n)&&r,a--}}return i=i||r,[r,i]}}const N=/.*(iPad|iPod|iPhone|Android|BB10|BlackBerry|IEMobile).*/;function D(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:navigator.userAgent;return!!e&&N.test(e)}class x{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(S)),elementToFocus:n,dropdownTriggerEl:r,dropdownContentEl:i}=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=i||this.el.querySelector(".collapsible-dropdown__list"),this._closeButton=this.el.querySelector(".collapsible-dropdown__close-button"),this._isMobile=D();const o=this.dropdownContentEl.closest(".collapsible-dropdown");if(this._isMobile&&o&&(this._focusTrap=new L(o)),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(S),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=r||this.el.querySelector(".collapsible-dropdown__button"),this.hideClass="hidden",this.collapsible=new b(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 P(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!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(!i){const e=u("JSESSIONID");e&&(l.headers["Csrf-Token"]=g(e))}r&&(l.credentials="include"),"POST"!==l.method&&"PUT"!==l.method||(l.body=o);const d=fetch(e,l),h=d.then(n=>n.ok||304===n.status?n.text().then(e=>(n.responseText=e,n)):n.text().then(r=>{const i=new Error(`${t} request for ${e} has failed with status code ${n.status}`);return n.responseText=r,i.response=n,Promise.reject(i)}));return a&&(s.length?M(d,e,c,s):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),h}function M(e,t,n,r){try{window.tracking.then(i=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,r,e,i.state.currentPageInstance)})})}catch(e){}}class U{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 x(e,{dropdownTriggerEl:this.dropdownTriggerEl,elementToFocus:this.currentListItem}),this._attachCustomEventListeners()}_attachCustomEventListeners(){this.listEl.addEventListener("click",this._handleLocaleButtonClick.bind(this))}_handleLocaleButtonClick(e){return function(e){const t=g(u("bcookie")||"");return P(`${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}(v(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()})}}class F extends class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".see-more-less-list__list",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"see-more-less-list__list-item",r=arguments.length>3?arguments[3]:void 0;if(!e)throw Error("An element must be provided to SeeMoreLessList");this.el=e,this.listSelector=t,this.stateCheckbox=this.el.querySelector(".show-more-less-state"),this.listEl=this.el.querySelector(this.listSelector),this.stateLabels={showMore:this.el.querySelector(".show-more-less-state__label-more"),showLess:this.el.querySelector(".show-more-less-state__label-less")},this.currentItemEl,r&&(this.currentItemEl=this.listEl.querySelector(r)),this.listItemClass=n,this._attachEventListeners()}_attachEventListeners(){this.el.addEventListener("keydown",this._handleKeydownNavEvents.bind(this)),this.stateCheckbox.addEventListener("change",this._handleCheckboxStateChange.bind(this)),this.el.addEventListener("keyup",e=>{E(e.key)===m.SPACEBAR&&e.preventDefault()})}_handleCheckboxStateChange(){this.stateCheckbox.checked?this._handleFocusAtOpen():this._handleFocusAtCLose(),Object.keys(this.stateLabels).forEach(e=>{this.stateLabels[e].setAttribute("aria-expanded",this.stateCheckbox.checked)})}_handleFocusAtOpen(){this.currentItemEl?this.currentItemEl.focus():this.stateLabels.showLess.focus()}_handleFocusAtCLose(){this.stateLabels.showMore.focus()}_checkboxStateChange(e){this.stateCheckbox.checked=e,this._handleCheckboxStateChange()}_handleKeydownNavEvents(e){switch(E(e.key)){case m.ENTER:case m.SPACEBAR:e.target.classList.contains("show-more-less-state__label")&&(e.preventDefault(),this._checkboxStateChange(!this.stateCheckbox.checked));break;case m.ARROW_UP:this._checkboxStateChange(!0);break;case m.ARROW_DOWN:case m.ESCAPE:this._checkboxStateChange(!1);break;case m.ARROW_LEFT:if(this.stateCheckbox.checked&&e.target.classList.contains(this.listItemClass)){let t=e.target.parentNode.previousSibling;t&&t.firstChild.focus()}break;case m.ARROW_RIGHT:if(this.stateCheckbox.checked&&e.target.classList.contains(this.listItemClass)){let t=e.target.parentNode.nextSibling;t&&t.firstChild.focus()}}}}{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dropdown__link",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".dropdown__link";if(!e)throw Error("An element must be provided to Dropdown");super(e,".dropdown__list",t,n),this.listFirstChild=this.listEl.firstChild,this.listLastChild=this.listEl.lastChild,this._attachCustomDropdownEventListeners()}_attachCustomDropdownEventListeners(){document.addEventListener("click",this._handleBodyClick.bind(this)),this.el.addEventListener("keydown",e=>{"Tab"===e.key&&this._handleTab(e)})}_handleBodyClick(e){this.stateCheckbox.checked&&e.target!==this.el&&!this.el.contains(e.target)&&this._checkboxStateChange(!1)}_handleTab(e){(this.listLastChild.contains(e.target)&&!e.shiftKey||this.listFirstChild.contains(e.target)&&e.shiftKey)&&this._checkboxStateChange(!1)}}var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e.g?e.g:"undefined"!=typeof self?self:{},j=(parseInt,"object"==typeof B&&B&&B.Object===Object&&B),H="object"==typeof self&&self&&self.Object===Object&&self;j||H||Function("return this")(),Object.prototype.toString,Math.max,Math.min;const G="light",q="dark";function W(){const e=document.getElementById("config");let t;return e&&e.dataset&&(t=e.dataset.theme),t?document.documentElement.classList.contains("dark")?q:G:void 0}var K,z=["transporterKeys"],V=["breadcrumb"],X=["$type"],Y=["requestStart"],Q=["requestTime","viewNames","requestType","requestTag"],J=["requestStart"],$=["requestStart"],Z=["requestTime","viewNames","requestType"];function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(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 r,i,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=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||de(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 re(e,t,n){return t=oe(t),function(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ie(e)}(e,function(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return function(){return!!e}()}()?Reflect.construct(t,n||[],oe(e).constructor):t.apply(e,n))}function ie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ae(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&&se(e,t)}function se(e,t){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ce(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function le(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=de(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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 ue(e){return function(e){if(Array.isArray(e))return he(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||de(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 de(e,t){if(e){if("string"==typeof e)return he(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)?he(e,t):void 0}}function he(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pe(e){return(pe="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 fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ye(r.key),r)}}function ge(e,t,n){return t&&ve(e.prototype,t),n&&ve(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function me(e,t,n){return(t=ye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ye(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=pe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==pe(t)?t:String(t)}var Ee,be="unknown",we=new Uint8Array(16);function Te(){if(!Ee&&!(Ee="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 Ee(we)}var _e=/^(?:[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 Se(e){return"string"==typeof e&&_e.test(e)}for(var Ce=[],ke=0;ke<256;++ke)Ce.push((ke+256).toString(16).slice(1));function Ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(Ce[e[t+0]]+Ce[e[t+1]]+Ce[e[t+2]]+Ce[e[t+3]]+"-"+Ce[e[t+4]]+Ce[e[t+5]]+"-"+Ce[e[t+6]]+Ce[e[t+7]]+"-"+Ce[e[t+8]]+Ce[e[t+9]]+"-"+Ce[e[t+10]]+Ce[e[t+11]]+Ce[e[t+12]]+Ce[e[t+13]]+Ce[e[t+14]]+Ce[e[t+15]]).toLowerCase()}function Ae(e){if(!Se(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Oe(e,t,n){function r(e,r,i,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 r&&(r=Ae(r)),16!==(null===(a=r)||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(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var c=0;c<16;++c)i[o+c]=s[c];return i}return Ie(s)}try{r.name=e}catch(e){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Re(e){return 14+(e+64>>>9<<4)+1}function Le(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ne(e,t,n,r,i,o){return Le((a=Le(Le(t,e),Le(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function De(e,t,n,r,i,o,a){return Ne(t&n|~t&r,e,t,i,o,a)}function xe(e,t,n,r,i,o,a){return Ne(t&r|n&~r,e,t,i,o,a)}function Pe(e,t,n,r,i,o,a){return Ne(t^n^r,e,t,i,o,a)}function Me(e,t,n,r,i,o,a){return Ne(n^(t|~r),e,t,i,o,a)}Oe("v3",48,(function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Re(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,c=r,l=i,u=o;n=De(n,r,i,o,e[a],7,-680876936),o=De(o,n,r,i,e[a+1],12,-389564586),i=De(i,o,n,r,e[a+2],17,606105819),r=De(r,i,o,n,e[a+3],22,-1044525330),n=De(n,r,i,o,e[a+4],7,-176418897),o=De(o,n,r,i,e[a+5],12,1200080426),i=De(i,o,n,r,e[a+6],17,-1473231341),r=De(r,i,o,n,e[a+7],22,-45705983),n=De(n,r,i,o,e[a+8],7,1770035416),o=De(o,n,r,i,e[a+9],12,-1958414417),i=De(i,o,n,r,e[a+10],17,-42063),r=De(r,i,o,n,e[a+11],22,-1990404162),n=De(n,r,i,o,e[a+12],7,1804603682),o=De(o,n,r,i,e[a+13],12,-40341101),i=De(i,o,n,r,e[a+14],17,-1502002290),n=xe(n,r=De(r,i,o,n,e[a+15],22,1236535329),i,o,e[a+1],5,-165796510),o=xe(o,n,r,i,e[a+6],9,-1069501632),i=xe(i,o,n,r,e[a+11],14,643717713),r=xe(r,i,o,n,e[a],20,-373897302),n=xe(n,r,i,o,e[a+5],5,-701558691),o=xe(o,n,r,i,e[a+10],9,38016083),i=xe(i,o,n,r,e[a+15],14,-660478335),r=xe(r,i,o,n,e[a+4],20,-405537848),n=xe(n,r,i,o,e[a+9],5,568446438),o=xe(o,n,r,i,e[a+14],9,-1019803690),i=xe(i,o,n,r,e[a+3],14,-187363961),r=xe(r,i,o,n,e[a+8],20,1163531501),n=xe(n,r,i,o,e[a+13],5,-1444681467),o=xe(o,n,r,i,e[a+2],9,-51403784),i=xe(i,o,n,r,e[a+7],14,1735328473),n=Pe(n,r=xe(r,i,o,n,e[a+12],20,-1926607734),i,o,e[a+5],4,-378558),o=Pe(o,n,r,i,e[a+8],11,-2022574463),i=Pe(i,o,n,r,e[a+11],16,1839030562),r=Pe(r,i,o,n,e[a+14],23,-35309556),n=Pe(n,r,i,o,e[a+1],4,-1530992060),o=Pe(o,n,r,i,e[a+4],11,1272893353),i=Pe(i,o,n,r,e[a+7],16,-155497632),r=Pe(r,i,o,n,e[a+10],23,-1094730640),n=Pe(n,r,i,o,e[a+13],4,681279174),o=Pe(o,n,r,i,e[a],11,-358537222),i=Pe(i,o,n,r,e[a+3],16,-722521979),r=Pe(r,i,o,n,e[a+6],23,76029189),n=Pe(n,r,i,o,e[a+9],4,-640364487),o=Pe(o,n,r,i,e[a+12],11,-421815835),i=Pe(i,o,n,r,e[a+15],16,530742520),n=Me(n,r=Pe(r,i,o,n,e[a+2],23,-995338651),i,o,e[a],6,-198630844),o=Me(o,n,r,i,e[a+7],10,1126891415),i=Me(i,o,n,r,e[a+14],15,-1416354905),r=Me(r,i,o,n,e[a+5],21,-57434055),n=Me(n,r,i,o,e[a+12],6,1700485571),o=Me(o,n,r,i,e[a+3],10,-1894986606),i=Me(i,o,n,r,e[a+10],15,-1051523),r=Me(r,i,o,n,e[a+1],21,-2054922799),n=Me(n,r,i,o,e[a+8],6,1873313359),o=Me(o,n,r,i,e[a+15],10,-30611744),i=Me(i,o,n,r,e[a+6],15,-1560198380),r=Me(r,i,o,n,e[a+13],21,1309151649),n=Me(n,r,i,o,e[a+4],6,-145523070),o=Me(o,n,r,i,e[a+11],10,-1120210379),i=Me(i,o,n,r,e[a+2],15,718787259),r=Me(r,i,o,n,e[a+9],21,-343485551),n=Le(n,s),r=Le(r,c),i=Le(i,l),o=Le(o,u)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Re(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))}));var Ue={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Fe(e,t,n){if(Ue.randomUUID&&!t&&!e)return Ue.randomUUID();var r=(e=e||{}).random||(e.rng||Te)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Ie(r)}function Be(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function je(e,t){return e<<t|e>>>32-t}Oe("v5",80,(function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}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]=je(h[f-3]^h[f-8]^h[f-14]^h[f-16],1);for(var v=n[0],g=n[1],m=n[2],y=n[3],E=n[4],b=0;b<80;++b){var w=Math.floor(b/20),T=je(v,5)+Be(w,g,m,y)+E+t[w]+h[b]>>>0;E=y,y=m,m=je(g,30)>>>0,g=v,v=T}n[0]=n[0]+v>>>0,n[1]=n[1]+g>>>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 He=Uint8Array,Ge=Uint16Array,qe=Uint32Array,We=new He([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]),Ke=new He([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ze=new He([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ve=function(e,t){for(var n=new Ge(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new qe(n[30]);for(r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},Xe=Ve(We,2),Ye=Xe[0],Qe=Xe[1];Ye[28]=258,Qe[258]=28;for(var Je=Ve(Ke,0)[1],$e=new Ge(32768),Ze=0;Ze<32768;++Ze){var et=(43690&Ze)>>>1|(21845&Ze)<<1;et=(61680&(et=(52428&et)>>>2|(13107&et)<<2))>>>4|(3855&et)<<4,$e[Ze]=((65280&et)>>>8|(255&et)<<8)>>>1}var tt=function(e,t,n){for(var r=e.length,i=0,o=new Ge(t);i<r;++i)e[i]&&++o[e[i]-1];var a,s=new Ge(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){a=new Ge(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var l=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)a[$e[d]>>>c]=l}else for(a=new Ge(r),i=0;i<r;++i)e[i]&&(a[i]=$e[s[e[i]-1]++]>>>15-e[i]);return a},nt=new He(288);for(Ze=0;Ze<144;++Ze)nt[Ze]=8;for(Ze=144;Ze<256;++Ze)nt[Ze]=9;for(Ze=256;Ze<280;++Ze)nt[Ze]=7;for(Ze=280;Ze<288;++Ze)nt[Ze]=8;var rt=new He(32);for(Ze=0;Ze<32;++Ze)rt[Ze]=5;var it=tt(nt,9,0),ot=tt(rt,5,0),at=function(e){return(e+7)/8|0},st=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},ct=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},lt=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[gt,0];if(1==i){var a=new He(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!=i-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(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var p=new Ge(h+1),f=ut(n[u-1],p,0);if(f>t){r=0;var v=0,g=f-t,m=1<<g;for(o.sort((function(e,t){return p[t.s]-p[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(p[y]>t))break;v+=m-(1<<f-p[y]),p[y]=t}for(v>>>=g;v>0;){var E=o[r].s;p[E]<t?v-=1<<t-p[E]++-1:++r}for(;r>=0&&v;--r){var b=o[r].s;p[b]==t&&(--p[b],++v)}f=t}return[new He(p),f]},ut=function e(t,n,r){return-1==t.s?Math.max(e(t.l,n,r+1),e(t.r,n,r+1)):n[t.s]=r},dt=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ge(++t),r=0,i=e[0],o=1,a=function(e){n[r++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&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(i),--o;o>6;o-=6)a(8304);o>2&&(a(o-3<<5|8208),o=0)}for(;o--;)a(i);o=1,i=e[s]}return[n.subarray(0,r),t]},ht=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},pt=function(e,t,n){var r=n.length,i=at(t+2);e[i]=255&r,e[i+1]=r>>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<r;++o)e[i+o+4]=n[o];return 8*(i+4+r)},ft=function(e,t,n,r,i,o,a,s,c,l,u){st(t,u++,n),++i[256];for(var d=lt(i,15),h=d[0],p=d[1],f=lt(o,15),v=f[0],g=f[1],m=dt(h),y=m[0],E=m[1],b=dt(v),w=b[0],T=b[1],_=new Ge(19),S=0;S<y.length;++S)_[31&y[S]]++;for(S=0;S<w.length;++S)_[31&w[S]]++;for(var C=lt(_,7),k=C[0],I=C[1],A=19;A>4&&!k[ze[A-1]];--A);var O,R,L,N,D=l+5<<3,x=ht(i,nt)+ht(o,rt)+a,P=ht(i,h)+ht(o,v)+a+14+3*A+ht(_,k)+(2*_[16]+3*_[17]+7*_[18]);if(D<=x&&D<=P)return pt(t,u,e.subarray(c,c+l));if(st(t,u,1+(P<x)),u+=2,P<x){O=tt(h,p,0),R=h,L=tt(v,g,0),N=v;var M=tt(k,I,0);for(st(t,u,E-257),st(t,u+5,T-1),st(t,u+10,A-4),u+=14,S=0;S<A;++S)st(t,u+3*S,k[ze[S]]);u+=3*A;for(var U=[y,w],F=0;F<2;++F){var B=U[F];for(S=0;S<B.length;++S){var j=31&B[S];st(t,u,M[j]),u+=k[j],j>15&&(st(t,u,B[S]>>>5&127),u+=B[S]>>>12)}}}else O=it,R=nt,L=ot,N=rt;for(S=0;S<s;++S)if(r[S]>255){j=r[S]>>>18&31,ct(t,u,O[j+257]),u+=R[j+257],j>7&&(st(t,u,r[S]>>>23&31),u+=We[j]);var H=31&r[S];ct(t,u,L[H]),u+=N[H],H>3&&(ct(t,u,r[S]>>>5&8191),u+=Ke[H])}else ct(t,u,O[r[S]]),u+=R[r[S]];return ct(t,u,O[256]),u+R[256]},vt=new qe([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),gt=new He(0),mt=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var n=t,r=9;--r;)n=(1&n&&-306674912)^n>>>1;e[t]=n}return e}(),yt=function(e,t,n,r,i){return function(e,t,n,r,i,o){var a=e.length,s=new He(r+a+5*(1+Math.ceil(a/7e3))+i),c=s.subarray(r,s.length-i),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=pt(c,l+1,e.subarray(u,d))}else{for(var h=vt[t-1],p=h>>>13,f=8191&h,v=(1<<n)-1,g=new Ge(32768),m=new Ge(v+1),y=Math.ceil(n/3),E=2*y,b=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<E)&v},w=new qe(25e3),T=new Ge(288),_=new Ge(32),S=0,C=0,k=(u=0,0),I=0,A=0;u<a;++u){var O=b(u),R=32767&u,L=m[O];if(g[R]=L,m[O]=R,I<=u){var N=a-u;if((S>7e3||k>24576)&&N>423){l=ft(e,c,0,w,T,_,C,k,A,u-A,l),k=S=C=0,A=u;for(var D=0;D<286;++D)T[D]=0;for(D=0;D<30;++D)_[D]=0}var x=2,P=0,M=f,U=R-L&32767;if(N>2&&O==b(u-U))for(var F=Math.min(p,N)-1,B=Math.min(32767,u),j=Math.min(258,N);U<=B&&--M&&R!=L;){if(e[u+x]==e[u+x-U]){for(var H=0;H<j&&e[u+H]==e[u+H-U];++H);if(H>x){if(x=H,P=U,H>F)break;var G=Math.min(U,H-2),q=0;for(D=0;D<G;++D){var W=u-U+D+32768&32767,K=W-g[W]+32768&32767;K>q&&(q=K,L=W)}}}U+=(R=L)-(L=g[R])+32768&32767}if(P){w[k++]=268435456|Qe[x]<<18|Je[P];var z=31&Qe[x],V=31&Je[P];C+=We[z]+Ke[V],++T[257+z],++_[V],I=u+x,++S}else w[k++]=e[u],++T[e[u]]}}l=ft(e,c,o,w,T,_,C,k,A,u-A,l),!o&&7&l&&(l=pt(c,l+1,gt))}return function(e,t,n){(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length);var r=new(2==e.BYTES_PER_ELEMENT?Ge:4==e.BYTES_PER_ELEMENT?qe:He)(n-t);return r.set(e.subarray(t,n)),r}(s,0,r+at(l)+i)}(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,r,!i)},Et=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},bt="undefined"!=typeof TextDecoder&&new TextDecoder;try{bt.decode(gt,{stream:!0})}catch(ii){}function wt(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function Tt(){try{return wt()&&"keepalive"in new Request("")}catch(e){return!1}}function _t(e){var t=e.body,n=e.keepalive,r=e.headers,i=e.compress;r["content-type"]||(r["content-type"]="text/plain;charset=UTF-8");var o=t;if(i&&"undefined"!=typeof TextEncoder)try{o=function(e,t){t||(t={});var n=function(){var e=-1;return{p:function(t){for(var n=e,r=0;r<t.length;++r)n=mt[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i=yt(e,t,function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8),o=i.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&&Et(e,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),n){e[3]=8;for(var r=0;r<=n.length;++r)e[r+10]=n.charCodeAt(r)}}(i,t),Et(i,o-8,n.d()),Et(i,o-4,r),i}((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function St(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var Ct,kt="undefined"!=typeof navigator&&"sendBeacon"in navigator,It=Tt()?function(e,t,n,r){return new Promise((function(i){fetch(e,_t({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,_t({body:t,keepalive:!1,headers:n,compress:r}))})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:e.status}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:St(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(kt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,_t({body:t,keepalive:!1,headers:n,compress:r})).then((function(e){e.ok?i({type:"success",drop:!1,statusCode:200}):i({type:"response",drop:!0,statusCode:e.status,rawError:e.statusText})}),(function(e){return i({type:"network",drop:!0,rawError:St(e)})}))}))};function At(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 Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"key",r=arguments.length>3?arguments[3]:void 0,i=indexedDB.open(e);i.onupgradeneeded=function(){try{i.result.createObjectStore(t,{keyPath:n})}catch(e){null==r||r.onError(e)}};var o=new Promise((function(e,t){i.onsuccess=function(){var t=i.result;t.onversionchange=function(){return t.close()},e(t),null==r||r.onSuccess()},i.onerror=function(){t(i.error),null==r||r.onError(i.error)}}));return function(e,n){return o.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function Rt(){return Ct||(Ct=Ot("idb-queue","default")),Ct}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{maxNumber:1e3,batchEvictionNumber:300},n=0,r=null;return e.openKeyCursor().onsuccess=function(){var i=this.result;i&&n++<t.batchEvictionNumber?(r=i.key,i.continue()):null!=r&&e.delete(IDBKeyRange.upperBound(r))},At(e.transaction)}var Nt=!1;function Dt(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]:Rt();return n("readwrite",(function(n){return n.put(e),At(n.count()).then((function(e){if(!(e<=t.maxNumber))return Lt(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]:Rt())("readwrite",(function(t){return Lt(t,e)}))}(t,n)}))}function xt(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]:Rt();return Nt?Promise.resolve():Dt(e,t,n)}function Pt(e,t,n){return t("readonly",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),(e<0||r.length<e)&&t.continue())},At(t.transaction).then((function(){return r}))}))}function Mt(){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,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function Ut(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Ft(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Bt(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(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})}()}var jt=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];fe(this,e),me(this,"config",void 0),me(this,"compress",void 0),me(this,"throttleControl",void 0),me(this,"withStore",void 0),me(this,"disablePersistence",!1),this.config=t,this.compress=r;var i,o,a,s=t.measureIDB;s&&performance.mark(s.createStartMark),this.withStore=Ot(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=(i=this.replayEntries.bind(this),o=t.throttleWait,a=0,{throttledFn:function(){var e=Date.now();e-a>o&&(Ut((function(){return"[throttle] Run fn() at "+String(e)})),i(),a=e)},resetThrottle:function(){a=0}})}return ge(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Ut((function(){return"Persisting to DB "+e.url})),xt(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Ut((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Ft((function(){return"push failed"}))}))};this.config.useIdle?Bt(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]:Rt();return Nt=!0,e("readwrite",(function(e){return e.clear(),At(e.transaction).finally((function(){return Nt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Ft((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 Pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rt(),"next")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ft((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 Pt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rt(),"prev")}(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ft((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Ut((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())},At(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]:Rt())}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,a=i.body,s=i.headers,c=i.timestamp,l=i.statusCode,u=i.attemptCount;return Ut((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(u)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,a),It(o,a,Mt(s,e.config.headerName,u,l),e.compress).then((function(t){if("unknown"===t.type||"success"===t.type){var n,r;null===(n=(r=e.config).onResult)||void 0===n||n.call(r,t,a),e.replayEntries()}else{var i,s,d,h,p,f;if(u+1>e.config.attemptLimit)return Ut((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),t.drop=!0,void(null===(i=(s=e.config).onResult)||void 0===i||i.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),Ut((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:l},null,2)})),xt({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&&Ft((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Bt(t):t()}}}]),e}(),Ht=function(){function e(){fe(this,e)}return ge(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}(),Gt=function(){function e(t,n){fe(this,e),me(this,"queue",void 0),me(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new jt(t,n.compress):new Ht}return ge(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}();me(Gt,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var qt=[502,504],Wt=[429,503],Kt=function(){function e(t,n,r,i){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];fe(this,e),me(this,"url",void 0),me(this,"body",void 0),me(this,"config",void 0),me(this,"persistenceConfig",void 0),me(this,"compress",void 0),me(this,"timestamp",void 0),me(this,"isClearQueuePending",!1),me(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=a,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return ge(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 It(e.url,e.body,t,e.compress)}),n,t).finally((function(){Ut((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,r){var i=this,o=this.getAttemptCount(t)-1;return e(Mt(n,this.config.headerName,o,r)).then((function(r){var o,a,s,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),s=r;else if(Ut((function(){return"retry rejected "+JSON.stringify(r)})),i.shouldPersist(t,r))i.persistenceConfig.db.pushToQueue({url:i.url,body:i.body,headers:n,statusCode:r.statusCode,timestamp:i.timestamp,attemptCount:i.getAttemptCount(t)}),s={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var l,u;null===(l=(u=i.config).onIntermediateResult)||void 0===l||l.call(u,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return Ut((function(){return"in memory retry in ".concat(d,"ms")})),(c=d,new Promise((function(e){return setTimeout(e,c)}))).then((function(){return i.retry(e,t-1,n,r.statusCode)}))}(s=r).drop=!0}return null===(o=(a=i.config).onIntermediateResult)||void 0===o||o.call(a,s,i.body),s}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}(),zt="internal:hide",Vt="internal:error";function Xt(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function Yt(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var Qt,Jt,$t=(Qt=new Map,Jt=new Map,{on:function(e,t){Xt(Qt,e,t)},before:function(e,t){Xt(Jt,e,t)},off:function(e,t){Yt(Qt,e,t)},offBefore:function(e,t){Yt(Jt,e,t)},emit:function(e,t){(Jt.get(e)||[]).concat(Qt.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Jt.clear(),Qt.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var Zt=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||$t.emit(zt,e)};document.addEventListener("visibilitychange",Zt),window.addEventListener("pagehide",Zt)}var en=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var tn=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(tn){var nn=new Uint8Array(256),rn=nn.length;en={rng:function(){return rn>nn.length-16&&(tn.randomFillSync(nn),rn=0),nn.slice(rn,rn+=16)}}}}"object"===("undefined"==typeof crypto?"undefined":pe(crypto))&&crypto.randomUUID;function on(){return Fe(en,new Array(16),0)}function an(e){return ue(e).map((function(e){return String.fromCharCode(e)})).join("")}function sn(){return an(on())}var cn=/^[a-zA-Z0-9/+]+[=]+$/;function ln(e,t){return{pageUrn:dn(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,a=o%3,s=o-a;i<s;)t=e[i]<<16,t|=e[i+1]<<8,t|=e[i+2],r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push(n.charAt(63&t)),i+=3;switch(a){case 2:t=e[i]<<16,t|=e[i+1]<<8,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push(n.charAt(t>>>6&63)),r.push("=");break;case 1:t=e[i]<<16,r.push(n.charAt(t>>>18&63)),r.push(n.charAt(t>>>12&63)),r.push("="),r.push("=")}return r.join("")}(on())}}function un(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function dn(e){return"urn:li:page:".concat(e)}function hn(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function pn(e,t){return void 0!==t.allSettled?t.allSettled(e):function(e){return new Promise((function(t){var n=new Set,r=function(e){n.delete(e),0===n.size&&t()};0===e.length?t():e.map((function(e){return e.then((function(){return r(e)})).catch((function(){return r(e)}))}))}))}(e)}function fn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function vn(e,t,n){if("undefined"!=typeof window&&window.indexedDB){var r,i="sequenceNumber";try{r=window.indexedDB.open(i)}catch(e){return Promise.resolve(null)}return new Promise((function(o,a){r.onupgradeneeded=function(){var e=r.result;e.objectStoreNames.contains(i)||e.createObjectStore(i,{autoIncrement:!0})},r.onsuccess=function(){var s=r.result,c=s.transaction(i,"readwrite"),l=c.objectStore(i),u=l.get(1);u.onsuccess=function(){var r=u.result;if(r){if("read"===e)return o(r);if("update"!==e)return o(null);var i,s=Object.assign({},r),c=!1,d=null!==(i=s.sequenceNumber)&&void 0!==i?i:0;if(void 0!==t&&t>d&&(s.sequenceNumber=t,c=!0),n&&Object.keys(n).forEach((function(e){var t,r=null!==(t=s[e])&&void 0!==t?t:0,i=n[e];i>r&&(s[e]=i,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()}},r.onerror=function(){return o(null)}}))}return Promise.resolve(null)}function gn(){return"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1||!wt()||"undefined"==typeof Promise}function mn(e,t,n,r){var i=["core-web-tracking:".concat(e)];null==r||r.forEach((function(e){return i.push(e)})),$t.emit(Vt,{tags:i,reason:t instanceof Error?t:new Error("".concat(e,": ").concat(t)),responseHeaders:n})}function yn(e){var t=window.structuredClone;return t?t(e):JSON.parse(JSON.stringify(e))}var En=function(){function e(t){fe(this,e),me(this,"heap",void 0),me(this,"comparator",void 0),this.comparator=t,this.heap=[]}return ge(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=ue(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(),r=0;2*r+1<this.heap.length;){var i=2*r+1,o=2*r+2,a=o<this.heap.length&&this.comparator(this.heap[o],this.heap[i])?o:i;if(!this.comparator(this.heap[a],this.heap[r]))break;var s=[this.heap[r],this.heap[a]];this.heap[a]=s[0],this.heap[r]=s[1],r=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 r=[this.heap[n],this.heap[t]];this.heap[t]=r[0],this.heap[n]=r[1],t=n}}}]),e}();var bn=function(e){if(!Tn(e))return[];for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];"default"!==i&&t.push(i)}return t},wn=function(e,t){var n={},r=[];if(0===e.length)return[n,e];if(0===t.length)return[n,e];var i,o=le(e);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.transporterKeys,c=ce(a,z);if(s&&s.length>0){var l,u=le(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)):r.push(c)}}catch(e){u.e(e)}finally{u.f()}}else r.push(c)}}catch(e){o.e(e)}finally{o.f()}return[n,r]};var Tn=function(e){return e&&void 0!==e&&Object.keys(e).length>0},_n=function(e,t){return(e.endsWith("/")?e:"".concat(e,"/"))+(t.startsWith("/")?t.slice(1):t)},Sn="beacons";function Cn(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&Tt()&&t&&n}function kn(e,t,n,r,i){"control"!==r&&e.retryConfig&&Cn()&&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)}}))}(Sn);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==i?void 0:i.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==i?void 0:i.onBeforeRetry,onResult:null==i?void 0:i.onResult,idbName:Sn,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),r=Object.assign({attemptLimit:0,statusCodes:qt,calculateRetryDelay:function(e,t){return 2e3*t}},t.inMemoryRetry);if(t.retryDB)e=t.retryDB;else{var i=Object.assign({idbName:"beacon-transporter",attemptLimit:3,statusCodes:Wt,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new Gt(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,a){var s;return wt()?new Kt(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(s=t.persistenceRetry)||void 0===s?void 0:s.statusCodes)||Wt},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"===r?(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){mn("retry:idb",e)})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){mn("retry:setup",e)}))}var In=function(){function e(t){fe(this,e),me(this,"host",void 0),this.host=t}return ge(e,[{key:"checkAndEnablePersistentRetry",value:function(e,t){if("function"==typeof(null==e?void 0:e.shouldAnonymizeMemberId)&&!this.host.retryBeacon){var n=this.getRetryTreatment();this.host.retryConfig&&kn(this.host,e,this.shouldCompressPayload(),n,t)}}},{key:"clearPersistedEventsOnLogout",value:function(){var e=this.host.retryBeacon;if(e&&e.shouldRetry)return e.shouldRetry=!1,e.database.clearQueue().catch((function(e){mn("retry:logout",e)}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();Tt()&&"control"!==o&&null!==(i=this.host.retryBeacon)&&void 0!==i&&i.shouldRetry?this.sendPayloadWithRetry(e,t,n):this.sendPayloadFireForget(e,t,n,r)}},{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){mn("retry:beacon",e)}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;(!Array.isArray(t)||t.length>0)&&(gn()?function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof window&&void 0!==window.XMLHttpRequest){var r=new XMLHttpRequest;if(r.open("POST",e,!0),r.withCredentials=!0,n.headers)for(var i=0,o=Object.keys(n.headers);i<o.length;i++){var a=o[i];r.setRequestHeader(a,n.headers[a])}r.send(t)}}(e,JSON.stringify(t),{headers:n}):It(e,JSON.stringify(t),n,this.shouldCompressPayload()).then((function(e){null==r||r.onResult(e,t)}),(function(){})))}},{key:"getRetryTreatment",value:function(){var e,t,n;if(!this.host.retryConfig)return"control";var r=this.host.retryConfig.lixKey;return r?null!==(e=null===(t=(n=this.host).__getLixTreatment)||void 0===t?void 0:t.call(n,r))&&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&&Cn()&&"undefined"!=typeof globalThis&&!!globalThis.indexedDB}}]),e}(),An="undefined"!=typeof window&&"undefined"!=typeof document,On=/JSESSIONID="?([^";]+)"?/,Rn="",Ln=0;function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.cacheLifeSpan,n=void 0===t?1e4:t,r=e.regex,i=void 0===r?On:r;if(!Rn||Date.now()-Ln>n){var o=An&&document.cookie.match(i);Rn=o&&o[1]||"",Ln=Date.now()}return Rn}var Dn={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"}},xn=function(){function e(t){fe(this,e),me(this,"networkTransporter",void 0),me(this,"inactive",void 0),me(this,"mpName",void 0),me(this,"endpoint",void 0),me(this,"debug",void 0),this.networkTransporter=new In(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;return Dn.prod.pattern.test(e)?t=Dn.prod.monitorEndpoint:Dn.eiValidate.pattern.test(e)?(n=!0,t=Dn.eiValidate.monitorEndpoint):Dn.ei.pattern.test(e)?t=Dn.ei.monitorEndpoint:(t=Dn.ei.monitorEndpoint,n=!0),{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return ge(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":Nn(),"x-restli-protocol-version":"2.0.0"},r=[],i=null!==(t=null==e?void 0:e.stats)&&void 0!==t?t:{},o=i.failures,a=i.previousInstanceEventStats.reduce((function(e,t){return e.push.apply(e,ue(t.failures)),e}),[]);[].concat(ue(o),ue(a)).forEach((function(e){var t=e.reason,n=e.rawError,i=e.eventTopic,o=e.header,a=e.requestHeader;r.push({reason:t,rawError:n,failedTopicName:i,header:o,requestHeader:a})}));var s={clientTrackingFailures:r,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,s,n)}}}]),e}();function Pn(e){return"string"==typeof e}function Mn(e){return Pn(e)?e:e.topicName||e.eventName}function Un(e){return Pn(e)?e:e.eventName}var Fn,Bn,jn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fe(this,e),me(this,"host",void 0),me(this,"cmoTransporter",void 0),me(this,"clientMonitoringInstanceId",sn()),me(this,"currentContext",{pageKey:be,pageInstance:ln(be)}),me(this,"appState",{}),me(this,"estimatedFragmentSize",0),me(this,"fragmentSizeLimit",void 0),me(this,"activeFragmentEvent",void 0),me(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new xn(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=Gn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return ge(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,r=le(this.activeFragmentEvent.stats.previousInstanceEventStats);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.instanceId===e)return void t(i)}}catch(e){r.e(e)}finally{r.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,r){var i=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:i,instanceEventNumber:r,reason:e,rawError:n,eventName:Un(t),eventTopic:Mn(t)};this.estimatedFragmentSize+=JSON.stringify(c).length,i===this.getCurrentInstanceId()?this.activeFragmentEvent.stats.failures.push(c):this.findPreviousInstanceStat(i,(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,r=this.activeFragmentEvent;r.header=t,r.requestHeader=n,this.cmoTransporter.fireFragment(r),this.estimatedFragmentSize=0,this.activeFragmentEvent=Gn(this.clientMonitoringInstanceId,r.fragmentNumber+1,r.firstEventNumber+r.stats.eventsGenerated,!1,e)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=qn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=qn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:sn(),memberId:0}}}}]),e}();function Hn(e){return Fn||(Fn=new jn(e)),{getCurrentInstanceId:function(){return Fn.getCurrentInstanceId()},logEventGenerated:function(e){return Fn.logEventGenerated(e)},logEventReadyToSend:function(e){Fn.logEventReadyToSend(e)},logEventSent:function(e){Fn.logEventSent(e)},logPersistedEventSent:function(e,t){Fn.logEventSent(t,e)},logNetworkResponseCode:function(e){Fn.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=Fn)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){Fn.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){Fn.logFailedEvent(t,n,r,i,e)},flush:function(){Fn.flush()},destroy:function(){Fn=void 0},isDestroyed:function(){return void 0===Fn},setCurrentContext:function(e){Fn.setCurrentContext(e)},updateAppState:function(e){Fn.updateAppState(e)}}}function Gn(e,t,n,r,i){return{fragmentNumber:t,firstEventNumber:n,isLastFragment:r,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:i.requestHeader,header:i.header}}function qn(e){return Array.isArray(e)?an(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(cn)}(e)?atob(e):an(function(e){return Ae(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"}(Bn||(Bn={}));var Wn=["PageViewEvent","SponsoredImpressionEvent","JobViewEvent"],Kn="PageViewEvent",zn=function(){function e(t){var n,r,i,o=this;fe(this,e),me(this,"host",void 0),me(this,"queue",void 0),me(this,"preContextQueue",void 0),me(this,"debounceTimer",void 0),me(this,"unloadHandlers",void 0),me(this,"maxQueueSize",void 0),me(this,"flushDebounceTime",void 0),me(this,"trackingEventListeners",[]),me(this,"onHideHandler",(function(){o.forceFlush()})),me(this,"networkTransporter",void 0),me(this,"clientMonitoringConn",void 0),me(this,"clientGlobalSequenceNumberCounter",void 0),me(this,"clientTopicLocalSequenceNumberCountersMap",{}),me(this,"isTimerRunning",void 0),me(this,"trackingEndpoint",void 0),me(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===(r=t.api)||void 0===r||null===(r=r.location)||void 0===r||null===(r=r.host)||void 0===r?void 0:r.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===(i=t.api)||void 0===i||null===(i=i.location)||void 0===i?void 0:i.host),this.maxQueueSize=a&&a.maxSize||1,this.flushDebounceTime=a&&a.debounceTime||0,$t.on(zt,this.onHideHandler),this.networkTransporter=new In(t),this.isLixEnabled("pemberly.tracking.monitoring")&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=Hn(t)),this.getSequenceNumberFromIDB(),this.updateSequenceNumberOnExit(),this.isTimerRunning=!1,this.isEvenBatchEnabled=this.isLixEnabled("pemberly.tracking.even-batch")||s}return ge(e,[{key:"checkAndEnablePersistentRetry",value:function(e){var t,n=(t=this.clientMonitoringConn,{onIntermediateResult:function(e,n){var r;if(t&&!t.isDestroyed())try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length)return;e.statusCode&&t.logNetworkResponseCode(e.statusCode),!0===e.drop&&r.forEach((function(n){var r,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.logFailedEvent(Bn.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},s,null!==(r=n.eventBody.header.clientMonitoringInstanceEventNumber)&&void 0!==r?r:-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 r=n[0].eventBody.header.clientMonitoringInstanceId,i=n.length;t.logPersistedEventSent(r,i)}catch(e){}},onResult:function(e,n){var r;if(t)try{if(r=JSON.parse(n),!Array.isArray(r)||0===r.length||!r[0].eventBody.header.clientMonitoringInstanceId)return;var i=r[0].eventBody.header.clientMonitoringInstanceId;e.statusCode&&t.logPersistedNetworkResponseCode(i,e.statusCode),!0===e.drop&&r.forEach((function(n){var 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.logPersistedFailedEvent(i,Bn.UNKNOWN_EXECUTION_ERROR,{eventName:r,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(Mn(e.id)));var n=this.host,r=n.api.Promise,i=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),i?(this.batchFire(),r.resolve(!0)):(this.flush(!0),r.resolve(!0))}return this.preContextQueue.push(t),r.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,$t.off(zt,this.onHideHandler),null!==(e=this.host)&&void 0!==e&&e.__getLixTreatment&&(this.host.__getLixTreatment=void 0),null!==(t=this.host)&&void 0!==t&&null!==(t=t.api)&&void 0!==t&&t.location&&(this.host.api.location=null===(n=window)||void 0===n?void 0:n.location)}},{key:"forceFlush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.populatePreContextQueue({pageInstance:ln(be),pageKey:be}).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;vn("read").then((function(t){var n;e.clientGlobalSequenceNumberCounter=null!==(n=null==t?void 0:t.sequenceNumber)&&void 0!==n?n:0,Wn.forEach((function(n){var r;e.clientTopicLocalSequenceNumberCountersMap[n]=null!==(r=null==t?void 0:t[n])&&void 0!==r?r:0}))})).catch((function(e){mn("sequence-number:idb-read",e)}))}},{key:"updateSequenceNumberToIDB",value:function(){vn("update",this.clientGlobalSequenceNumberCounter,this.clientTopicLocalSequenceNumberCountersMap).catch((function(e){mn("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=hn(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 r=this.host,i=r.appId,o=r.api,a={eventBody:t,eventInfo:"string"==typeof e?{appId:i,eventName:e,topicName:e}:o.assign({appId:i},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,r=n.appVersion,i=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===Kn:e.eventName===Kn}(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,v=p.path,g=null;"string"!=typeof i&&null!==this.host.locale||(g=i);var m={interfaceLocale:g,pageKey:h,referer:f,path:v,isFlushOnCloseBrowserTabEnabled:!gn()&&(Tt()||"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:r,server:"",service:"",guid:sn(),memberId:0};"number"==typeof this.clientGlobalSequenceNumberCounter&&c(y,{clientGlobalSequenceNumber:this.clientGlobalSequenceNumberCounter});var E=Mn(e.id);if(Wn.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||{})},T=e.meta.clientMonitoringInstanceId,_=e.meta.clientMonitoringInstanceEventNumber;return T&&c(w.header,{clientMonitoringInstanceId:T,clientMonitoringInstanceEventNumber:_}),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,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.isEvenBatchEnabled)if(Array.isArray(e)&&e.length>0)t=e;else{var i=this.maxQueueSize+1;this.queue.length>0&&(this.queue.length<=i||r)?(t=this.queue,this.queue=[]):t=this.queue.splice(0,i)}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),r=n.getBreadcrumbs(e),i=n.envelop(e.id,t,r);n.trigger(i,e.meta);var o=i.eventInfo.eventName;"LixTreatmentsEvent"===o||"JavaScriptErrorEvent"===o?s.push(i):c.push(i),"number"==typeof n.clientGlobalSequenceNumberCounter&&n.clientGlobalSequenceNumberCounter++;var a=Mn(e.id);Wn.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,r=t.eventInfo.topicName||n,i="rawError"in e?e.rawError:"null",o=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(i)].join(", ");null==a||a.logFailedEvent(Bn.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:r},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 Vn,Xn=function(){function e(t,n){fe(this,e),this.clientBreadcrumbType=t,this.id=n}return ge(e,[{key:"builder",get:function(){return function(){var e={},t=new Proxy({},{get:function(n,r){return"build"===r?function(){return e}:function(n){return e[r.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"}(Vn||(Vn={}));var Yn=function(e){function t(){return fe(this,t),re(this,t,[Vn.FEED_UPDATE_SERVED,sn()])}return ae(t,Xn),ge(t)}(),Qn=function(e){function t(){var e;return fe(this,t),me(ie(e=re(this,t,[Vn.UNKNOWN,sn()])),"content",void 0),me(ie(e),"featureBreadcrumbType",void 0),e}return ae(t,Xn),ge(t)}(),Jn=function(e){function t(){return fe(this,t),re(this,t,[Vn.SPONSORED_UPDATE_SERVED,sn()])}return ae(t,Xn),ge(t)}();function $n(e,t){var n;switch(t){case"proto.sdui.breadcrumbs.feed.FeedUpdateServedBreadcrumb":n=(new Yn).builder;break;case"proto.sdui.breadcrumbs.feed.SponsoredUpdateServedBreadcrumb":n=(new Jn).builder;break;case"proto.sdui.tracking.TrackingBreadcrumb":n=(new Qn).builder;var r,i=e;try{if(void 0!==i.content.type)r=(new TextDecoder).decode(new Uint8Array(i.content.data));else{if(!(i.content instanceof Uint8Array))throw new Error("Invalid breadcrumb content type");r=(new TextDecoder).decode(i.content)}for(var o=null==e?void 0:e.breadcrumbType,a={content:JSON.parse(r),breadcrumbType:o},s=0,c=Object.entries(a);s<c.length;s++){var l=ne(c[s],2),u=l[0],d=l[1];Tn(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 Zn(e){var t,n=[],r=[],i=le(e);try{for(i.s();!(t=i.n()).done;){var o=t.value,a=o.breadcrumb,s=ce(o,V);if(r.push(s),a){var c=a.$type,l=$n(ce(a,X),c);n.push(l)}}}catch(e){i.e(e)}finally{i.f()}return{extractedBreadcrumbs:n,trackingScopesWithoutBreadcrumbs:r}}function er(e){var t,n=new Set,r=[],i=le(e);try{for(i.s();!(t=i.n()).done;){var o=t.value,a="".concat(o.contentTrackingId,"-").concat(o.topicName);n.has(a)||(n.add(a),r.push(o))}}catch(e){i.e(e)}finally{i.f()}var s=Zn(r);return{breadcrumbs:s.extractedBreadcrumbs,trackingScopes:s.trackingScopesWithoutBreadcrumbs}}function tr(e){if(!e)return{};var t=e.trk,n=!1,r=e.licu&&decodeURIComponent(e.licu);e.external_control&&(r="urn:li:externalControl:".concat(decodeURIComponent(e.external_control)),n=!0);var i,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?i={pageInstance:o,pageKey:t}:t&&(i={pageKey:t}),e.external_page&&e.external_page_instance){var a=decodeURIComponent(e.external_page);i={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&&((i=i||{}).applicationInstance=s),{fromExternalApp:n||!!s,previousApplicationInstance:s,previousContext:i,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}var nr=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 rr(e){return"retryConfig"in e.host}function ir(e){return"location"in e.api}var or;!function(){function e(t,n,r,i,o,a,s,c){var l,u,d,h;if(fe(this,e),me(this,"transporter",void 0),me(this,"delegate",void 0),me(this,"viewSpecs",void 0),me(this,"transportConfig",void 0),me(this,"dynamicTransporterSupportLixKey",void 0),me(this,"domain",void 0),me(this,"trackingAppName",void 0),me(this,"dynamicTransporterSupportLixValue",void 0),me(this,"currentContext",void 0),me(this,"appState",void 0),me(this,"referrer",void 0),me(this,"previousAppContext",void 0),me(this,"customTransporters",void 0),me(this,"clientMonitoringConn",void 0),me(this,"dynamicTransporterSupportEnabled",void 0),this.transporter=t,this.delegate=n,this.viewSpecs=r,this.transportConfig=i,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==nr?void 0:nr["".concat(null==s?void 0:s.toLowerCase(),"TransporterConfig")];Tn(p)?this.transportConfig=p:this.transportConfig=i}if(n&&n.customTransporterHosts)for(var f in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,f)){var v=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[f]=new zn(this.transporter.host.api.assign(v,n.customTransporterHosts[f]))}if(this.dynamicTransporterSupportEnabled&&Tn(this.transportConfig))for(var g=0,m=Object.entries(this.transportConfig);g<m.length;g++){var y,E,b=ne(m[g],2),w=b[0],T=b[1];T=te(te({},T),{},{endpoint:a&&null!==(y=T)&&void 0!==y&&y.endpoint?"".concat(_n(a,null===(E=T)||void 0===E?void 0:E.endpoint)):"https://linkedin.com/li/track"});var _=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[w]=new zn(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&&ir(t.host)&&(this.clientMonitoringConn=Hn(t.host)),Tn(r)&&(this.viewSpecs=r)}ge(e,[{key:"host",get:function(){return this.transporter.host}},{key:"addBeforeHandlerToHideEvent",value:function(e){$t.before(zt,e)}},{key:"removeBeforeHandlerToHideEvent",value:function(e){$t.offBefore(zt,e)}},{key:"checkAndEnablePersistentRetry",value:function(){rr(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=rr(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return hn(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]:{},r=this.navMetaFromSeed(e,tr(t),null==n?void 0:n.pageInstanceTrackingId);if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=hn(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(hn(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,r,i){return this.fireEvent("ControlInteractionEvent",(function(n){var o=un(n.pageKey,e),a={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),a}),{context:n})}},{key:"getViewHierarchy",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-name]");if(r){var i=r.getAttribute("data-view-name");i&&t.push(i)}n=null==r?void 0:r.parentElement}return t}},{key:"getViewTrackingScope",value:function(e){for(var t=[],n=e;n instanceof Element&&"body"!==n.tagName.toLowerCase();){var r=n.closest("[data-view-tracking-scope]");if(r){var i=r.getAttribute("data-view-tracking-scope");if(i)try{var o=JSON.parse(i);o&&o.length&&t.push.apply(t,ue(o))}catch(e){mn("getViewTrackingScope","Error parsing trackingScope ".concat(i))}}n=null==r?void 0:r.parentElement}return t}},{key:"fireInteraction",value:function(e){var t,n=e.manualFireReason,r=e.interactionType,i=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,v=void 0===f?void 0:f,g=e.clientBreadcrumbs,m=void 0===g?[]:g,y=e.isShadowEvent,E=e.cooloffToken,b=e.testId,w=e.mediaStateInfo,T=i?this.getViewHierarchy(i):[],_=T.length>0?T:a;0!==_.length&&(!this.viewSpecs||null!==(t=this.viewSpecs)&&void 0!==t&&t.some((function(e){return e.viewName==_[0]})))||console.warn("No viewHierarchy provided or found from element.");var S=c.length>0?c:this.getViewTrackingScope(i);if(this.dynamicTransporterSupportEnabled){var C=bn(this.transportConfig),k=ne(wn(S,C),2),I=k[0],A=k[1],O="GenericActionEvent",R={verticalPosition:l,horizontalPosition:u,controlUrn:h,interactionType:r,actionType:p,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:E,mediaStateInfo:w};if(Tn(I)){for(var L=0,N=Object.entries(I);L<N.length;L++){var D=ne(N[L],2),x=D[0],P=er(D[1]),M=P.breadcrumbs,U=P.trackingScopes;this.fireEvent(O,te(te({},R),{},{trackingScopeHierarchy:{entries:U}}),{header:{viewHierarchy:_,testId:b},transporterKey:x},M,y)}if(0===A.length)return Promise.resolve(!0)}var F=er(A),B=F.breadcrumbs,j=F.trackingScopes;return this.fireEvent(O,{verticalPosition:l,horizontalPosition:u,controlUrn:h,interactionType:r,actionType:p,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:j},mediaStateInfo:w},{header:{viewHierarchy:_,testId:b}},[].concat(ue(m),ue(B)),y)}var H=er(S),G=H.breadcrumbs,q=H.trackingScopes;return this.fireEvent("GenericActionEvent",{verticalPosition:l,horizontalPosition:u,controlUrn:h||"",interactionType:r,actionType:p,contentTrackingId:""===v?void 0:v,manualFireReason:n,cooloffToken:E,trackingScopeHierarchy:{entries:q},mediaStateInfo:w},{header:{viewHierarchy:_,testId:b}},[].concat(ue(m),ue(G)),y)}},{key:"fireImpression",value:function(e,t){var n,r=e.manualFireReason,i=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,v=e.height,g=void 0===v?-1:v,m=e.verticalPosition,y=e.horizontalPosition,E=e.impressionTime,b=e.contentTrackingId,w=e.clientBreadcrumbs,T=void 0===w?[]:w,_=e.isShadowEvent,S=e.cooloffToken,C=e.testId,k=e.mediaStateInfo,I=i?this.getViewHierarchy(i):[],A=I.length>0?I: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 O=c.length>0?c:this.getViewTrackingScope(i);if(this.dynamicTransporterSupportEnabled){var R=bn(this.transportConfig),L=ne(wn(O,R),2),N=L[0],D=L[1],x="GenericImpressionEvent",P={viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:S,mediaStateInfo:k},M={header:{viewHierarchy:A,testId:C},context:null==t?void 0:t.context};if(Tn(N)){for(var U=0,F=Object.entries(N);U<F.length;U++){var B=ne(F[U],2),j=B[0],H=er(B[1]),G=H.breadcrumbs,q=H.trackingScopes;this.fireEvent(x,te(te({},P),{},{trackingScopeHierarchy:{entries:q}}),te(te({},M),{},{transporterKey:j}),G,_)}if(0===D.length)return Promise.resolve(!0)}var W=er(D),K=W.breadcrumbs,z=W.trackingScopes;return this.fireEvent(x,{viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:S,trackingScopeHierarchy:{entries:z},mediaStateInfo:k},M,[].concat(ue(T),ue(K)),_)}var V=er(O),X=V.breadcrumbs,Y=V.trackingScopes,Q={header:{viewHierarchy:A,testId:C},context:null==t?void 0:t.context};return this.fireEvent("GenericImpressionEvent",{viewDurationInMilliseconds:u,contentViewFraction:h,width:f,height:g,verticalPosition:m,horizontalPosition:y,impressionTime:E,contentTrackingId:""===b?void 0:b,manualFireReason:r,cooloffToken:S,trackingScopeHierarchy:{entries:Y},mediaStateInfo:k},Q,[].concat(ue(T),ue(X)),_)}},{key:"fireEvent",value:function(e,t,n,r,i){var o=this;if(!t){var a=Mn(e),s=void 0===t?"undefined":null===t?"null":pe(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(Bn.MISSING_REQUIRED_PROPERTIES,e,c,l)}throw new Error(c)}var u=r||[];if(u.length>0){var d=(u=u.map((function(e){return o.transformBreadcrumb(e)}))).map((function(e){return Xn.toPointer(e)}));this.host.api.assign(t,{clientBreadcrumbPointers:d})}var h=u.length>0?this.generateEnvelopeWithBreadcrumbs(e,t,n,u,i):this.generateEnvelope(e,t,n,i);return this.fireEnvelope(h)}},{key:"generateEnvelopeWithBreadcrumbs",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.generateEnvelope(e,t,n,i);return r.length>0?this.addBreadcrumbsToEnvelope(o,r):o}},{key:"transformBreadcrumb",value:function(e){try{if(Tn(e.content))return te({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(Pn(e.id)){var r=e.id;e.id={eventName:r,topicName:r,shouldAnonymizeMemberId:!0}}else e.id.shouldAnonymizeMemberId=!0;var i=this.delegate&&this.delegate.preTransporter?this.delegate.preTransporter(e):e;if(i){var o=i.meta.transporterKey,a=o?this.customTransporters[o]:this.transporter;if(!a&&o){var s=Mn(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var l=this.clientMonitoringConn.logEventGenerated(s);this.clientMonitoringConn.logFailedEvent(Bn.UNKNOWN_EXECUTION_ERROR,i.id,c,l)}throw new Error(c)}return a.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return ln(e,t)}},{key:"firePVE",value:function(e,t,n){return this._firePVE(e,t,n)}},{key:"_firePVE",value:function(e,t,n){var r={pageType:"full",totalTime:0,trackingCode:this.getTrackingCode(),trackingInfo:{}},i=this.host.api.assign(r,t),o=this.generateEnvelope("PageViewEvent",i,{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),$t.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 un((t||this.currentContext||{pageKey:be}).pageKey,e)}},{key:"fireRawCIE",value:function(e,t,n,r){var i={controlTrackingId:r,controlUrn:e,interactionType:t};return{beacon:this.fireEvent("ControlInteractionEvent",i,{context:n}),controlUrn:e}}},{key:"generateNavigationEvent",value:function(e){var t=e.triggerId,n=e.triggerUrn,r=e.from;return{previousPageInstance:r&&r.pageInstance,triggerControlTrackingId:t,triggerControlUrn:n}}},{key:"getTrackingCode",value:function(){return this.previousAppContext&&this.previousAppContext.pageKey}},{key:"navMetaFromSeed",value:function(e,t,n){var r="NavigationEvent";this.previousAppContext=t.previousContext;var i=t.fromExternalApp?{eventName:r,topicName:"InboundNavigationEvent"}:r;return t.fromExternalApp||(this.referrer="https://www.linkedin.com"),{from:t.previousContext,navEventId:i,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,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var a=r&&r.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,r,i,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&&hn(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},a.requestHeader||{},ir(this.host)?{path:"".concat(this.host.api.location.pathname).concat(this.host.api.location.search),referer:"enabled"===(null===(n=(r=this.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pai.referrer.fix.subsquent"))?this.referrer?this.referrer:null===(i=this.host.api.document)||void 0===i?void 0:i.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"}(or||(or={}));var ar,sr,cr="otel-origin-jet-tag";!function(){function e(t,n){var r,i,o=this;fe(this,e),me(this,"core",void 0),me(this,"protocol",void 0),me(this,"throttleKeySet",new Set),me(this,"config",void 0),me(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!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100,useOTel:null!==(i=null==n?void 0:n.useOTel)&&void 0!==i&&i},$t.on(Vt,this.reportTransporterError)}ge(e,[{key:"reportError",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callTreeId,a=void 0===o?"":o,s=i.responseHeaders,c=void 0===s?{}:s,l=i.sduiScreenId,u=i.componentKey,d=e.message,h=e.name,p=e.stack,f=void 0===p?"":p,v=e.fileName,g=void 0===v?"":v,m=e.lineNumber,y=void 0===m?0:m,E=e.columnNumber,b=void 0===E?0:E,w=this.core.host,T=w.appId,_=w.appVersion,S=w.service,C=w.serviceInstance,k=w.treeID,I=void 0===k?"":k,A=w.api,O=A.Promise,R=A.location,L=R.host,N=R.pathname,D=R.search,x=R.hash,P=void 0===x?"":x;if(this.config.useOTel&&!r.includes(cr)&&$t.emit(or.INTERNAL_OTEL_JET_EVENT,{error:e,tags:r,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:T,e:{c:b,l:y,m:d,s:f,t:h,u:g},h:P,l:n.protocol,o:L,p:N,pageKey:e.pageKey,q:D,service:S,serviceInstance:C,serviceVersion:_,t:r,trackingID:e.pageInstance.trackingId,treeID:I,callTreeId:a,responseTraceHeaders:t,sduiScreenId:l,componentKey:u}}))};if(this.config.throttleTime<0)return U();var F=(h+d+f+r.join("")+a).split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0);return this.throttleKeySet.has(F)?O.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(),$t.off(Vt,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"}(ar||(ar={})),function(e){e.PageLoadStartEvent="PageLoadStartEvent",e.PageLoadEndEvent="PageLoadEndEvent",e.ResourceLoadEvent="ResourceLoadEvent",e.ViewLoadEvent="ViewLoadEvent",e.PEMTracer="PEMTracer"}(sr||(sr={}));var lr,ur,dr,hr,pr,fr,vr,gr=(me(me(me(me(me(me(me(me(me(me(K={},"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),me(me(me(me(me(me(K,"beacon-timeout",3e4),"enable-memory-measurement",!1),"pageKeyPrefix",""),"enable-pem-tracking-3",!1),"enable-tracking-3",!1),"enable-otel",!1)),mr=-1,yr=-2,Er=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"],br={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"},wr={"http/0.9":"HTTP0_9","http/1.0":"HTTP1_0","http/1.1":"HTTP1_1",h2:"HTTP2"},Tr="pageLoadId does not exist",_r="rum token passed is invalid",Sr=new RegExp(/batch-(\d+)$|enabled$/),Cr=function(){function e(){fe(this,e),me(this,"userTimingEntries",[]),me(this,"longTasks",[]),me(this,"resourceTimingEntries",[]),me(this,"cdnData",void 0)}return ge(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(Ir),cdnData:this.cdnData}}}]),e}(),kr=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function Ir(e){return kr.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function Ar(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};fr=Object.assign(Object.assign({},n),t),vr=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(fr.root,n);var r=Or(e,pr.All,(function(){return Or(e,pr.Two,(function(){return Or(e,pr.One)}))}));if(r){var i=Fr(function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{counter:0,visited:new Map},i=[];if(t.length>2&&t.length>fr.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>fr.maxNumberOfTries)return i;r.counter+=1;var a=ue(t);a.splice(o,1);var s=Lr(a);if(r.visited.has(s))return i;Dr(a)&&Br(a,n)&&(i.push(a),r.visited.set(s,!0),i=i.concat(e(a,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),Lr(r)}throw new Error("Selector was not found.")}function Or(e,t,n){for(var r=null,i=[],o=e,a=0,s=function(){var e=Mr(function(e){var t=e.getAttribute("id");return t&&fr.idName(t)?{name:"#"+Wr(t,{isIdentifier:!0}),penalty:0}:null}(o))||Mr.apply(void 0,ue(function(e){return Array.from(e.attributes).filter((function(e){return fr.attr(e.name,e.value)})).map((function(e){return{name:"["+Wr(e.name,{isIdentifier:!0})+'="'+Wr(e.value)+'"]',penalty:.5}}))}(o)))||Mr.apply(void 0,ue(function(e){return Array.from(e.classList).filter(fr.className).map((function(e){return{name:"."+Wr(e,{isIdentifier:!0}),penalty:1}}))}(o)))||Mr(function(e){var t=e.tagName.toLowerCase();return fr.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 r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===pr.All)s&&(e=e.concat(e.filter(Pr).map((function(e){return xr(e,s)}))));else if(t===pr.Two)e=e.slice(0,1),s&&(e=e.concat(e.filter(Pr).map((function(e){return xr(e,s)}))));else if(t===pr.One){var c=ne(e=e.slice(0,1),1)[0];s&&Pr(c)&&(e=[xr(c,s)])}var l,u=le(e);try{for(u.s();!(l=u.n()).done;)l.value.level=a}catch(e){u.e(e)}finally{u.f()}if(i.push(e),i.length>=fr.seedMinLength&&(r=Rr(i,n)))return 1;o=o.parentElement,a++};o&&o!==fr.root.parentElement&&!s(););return r||(r=Rr(i,n)),r}function Rr(e,t){var n=Fr(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=le(t[0]);try{for(o.s();!(r=o.n()).done;){var a=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(a)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>fr.threshold)return t?t():null;var r,i=le(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(Dr(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function Lr(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;n=t.level===i-1?"".concat(e[r].name," > ").concat(n):"".concat(e[r].name," ").concat(n),t=e[r]}return n}function Nr(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function Dr(e){switch(vr.querySelectorAll(Lr(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(Lr(e)));case 1:return!0;default:return!1}}function xr(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Pr(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 r=t.filter(Ur);return r.length>0?r:null}function Ur(e){return null!=e}function Fr(e){return Array.from(e).sort((function(e,t){return Nr(e)-Nr(t)}))}function Br(e,t){return vr.querySelector(Lr(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"}(lr||(lr={})),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"}(dr||(dr={})),function(e){e.DEFAULT="DEFAULT",e.INITIAL="INITIAL",e.SUBSEQUENT="SUBSEQUENT",e.PAGINATED="PAGINATED"}(hr||(hr={})),function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(pr||(pr={}));var jr=/[ -,\.\/:-@\[-\^`\{-~]/,Hr=/[ -,\.\/:-@\[\]\^`\{-~]/,Gr=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,qr={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},qr),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=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?jr.test(l)?"\\"+l:"\\"+u.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(l)?"\\"+u.toString(16).toUpperCase()+" ":"\\"==l||!i&&('"'==l&&r==l||"'"==l&&r==l)||i&&Hr.test(l)?"\\"+l:l;a+=d}return i&&(/^-[-\d]/.test(a)?a="\\-"+a.slice(1):/\d/.test(o)&&(a="\\3"+o+" "+a.slice(1))),a=a.replace(Gr,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+a+r:a}var Kr,zr=[{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 Vr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"function"==typeof e.now&&(e.timeOrigin||e.timing)){var n,r=e.now();return n=!e.timing&&t?Math.floor(e.timeOrigin):e.timing.navigationStart,Math.round(r+n)}return Date.now()}function Xr(e){var t=e||performance;return Math.round(t.now())}function Yr(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return Ar(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Yr(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Qr(e,t,n){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,i=e.duration;r.push({entryType:"MEASURE",name:t,startTime:n,duration:i})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){var t=e.name,n=e.startTime,i=e.duration;r.push({entryType:"MARK",name:t,startTime:n,duration:i})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Jr(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var $r=function(){function e(t){fe(this,e),me(this,"hostApis",void 0),me(this,"hostnameProperties",void 0),me(this,"usedHostnames",void 0),me(this,"abortController",void 0),me(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 ge(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return fn(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,r=n.AbortController,i=n.Promise,o=pn(fn(this.pendingPromises),i),a=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),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,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(Kr=Kr||r.createElement("a")).href=n,Kr.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var a=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({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(){fe(this,e)}return ge(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 r,i=(t=t||"").length%16,o=t.length-i,a=[0,n],s=[0,n],c=[0,0],l=[0,0],u=[2277735313,289559509],d=[1291169091,658871167];for(r=0;r<o;r+=16)c=[255&t.charCodeAt(r+4)|(255&t.charCodeAt(r+5))<<8|(255&t.charCodeAt(r+6))<<16|(255&t.charCodeAt(r+7))<<24,255&t.charCodeAt(r)|(255&t.charCodeAt(r+1))<<8|(255&t.charCodeAt(r+2))<<16|(255&t.charCodeAt(r+3))<<24],l=[255&t.charCodeAt(r+12)|(255&t.charCodeAt(r+13))<<8|(255&t.charCodeAt(r+14))<<16|(255&t.charCodeAt(r+15))<<24,255&t.charCodeAt(r+8)|(255&t.charCodeAt(r+9))<<8|(255&t.charCodeAt(r+10))<<16|(255&t.charCodeAt(r+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],i){case 15:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(r+14)],48));case 14:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(r+13)],40));case 13:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(r+12)],32));case 12:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(r+11)],24));case 11:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(r+10)],16));case 10:l=e.x64Xor(l,e.x64LeftShift([0,t.charCodeAt(r+9)],8));case 9:l=e.x64Xor(l,[0,t.charCodeAt(r+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(r+7)],56));case 7:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+6)],48));case 6:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+5)],40));case 5:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+4)],32));case 4:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+3)],24));case 3:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+2)],16));case 2:c=e.x64Xor(c,e.x64LeftShift([0,t.charCodeAt(r+1)],8));case 1:c=e.x64Xor(c,[0,t.charCodeAt(r)]),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(){fe(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 ge(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:{}}},r=Date.now(),i={},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(){i[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()-i[c],++a>=o&&(n.data.latency.acq_time.allFeatures=Date.now()-r,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()-r,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,r=e.length;n<r;n++)t(e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t(e[i],i,e)}},{key:"map",value:function(e,n){var r=[];return null==e?r:Array.prototype.map&&e.map===Array.prototype.map?e.map(n):(t.each(e,(function(e,t,i){r.push(n(e,t,i))})),r)}},{key:"getIPs",value:function(e,t){var n={},r=new(window.RTCPeerConnection||window.webkitRTCPeerConnection||window.mozRTCPeerConnection||window.msRTCPeerConnection)({iceServers:[{urls:"stun:stun.l.google.com:19302"}]},{optional:[{RtpDataChannels:!0}]}),i=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=r.localDescription;null!==e&&e.sdp.split("\n").forEach((function(e){0!==e.indexOf("a=candidate:")&&0!==e.indexOf("c=IN")||i(e)})),t(Object.keys(n))}};r.onicecandidate=function(e){e.candidate&&i(e.candidate.candidate)},r.onicegatheringstatechange=function(e){"complete"===r.iceGatheringState&&a()},r.createDataChannel("bl");try{r.createOffer().then((function(e){r.setLocalDescription(e)}))}catch(e){r.createOffer((function(e){r.setLocalDescription(e,(function(){}),(function(){}))}),(function(){}))}setTimeout((function(){a()}),2e3)}},{key:"automationKey",value:function(e,n){if(t.getHasLiedBrowser())e("undetected, fake browser");else{var r=t.getBrowserNameAndVersion().split(" ")[0];"Chrome"!==r||!0!==navigator.webdriver?"Firefox"===r&&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 r=n.audio;if(r.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/))return e(n.EXCLUDED);var i=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(null==i)return e(n.NOT_AVAILABLE);var o=new i(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")}),r.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 r=t.getBrowserNameAndVersion().split(" "),i=r[0],o=r[1],a=n.NOT_AVAILABLE;if("Chrome"===i)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"===i){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"===i){var c=indexedDB.open("test");c.onerror=function(){e(!0)},c.onsuccess=function(){e(!1)}}else e("IE"===i||"EDGE"===i?!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 r in e)if(e.hasOwnProperty(r)){var i=e[r];n[r]=i(r)}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 r=["monospace","sans-serif","serif"],i=["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&&(i=i.concat(n.fonts.extendedJsFonts)),void 0!==n.fonts&&void 0!==n.fonts.userDefinedFonts&&(i=i.concat(n.fonts.userDefinedFonts)),i=i.filter((function(e,t){return i.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<r.length;n++)if(t=e[n].offsetWidth!==c[r[n]]||e[n].offsetHeight!==l[r[n]])return t;return t},p=function(){for(var e=[],t=0,n=r.length;t<n;t++){var i=u();i.style.fontFamily=r[t],a.appendChild(i),e.push(i)}return e}();o.appendChild(a);for(var f=0,v=r.length;f<v;f++)c[r[f]]=p[f].offsetWidth,l[r[f]]=p[f].offsetHeight;var g=function(){for(var e={},t=0,n=i.length;t<n;t++){for(var o=[],a=0,c=r.length;a<c;a++){var l=d(i[t],r[a]);s.appendChild(l),o.push(l)}e[i[t]]=o}return e}();o.appendChild(s);for(var m=[],y=0,E=i.length;y<E;y++)h(g[i[y]])&&m.push(i[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,r=[],i=0;i<n.length;i++){var o={};o.type=n[i].type,o.suffixes=n[i].suffixes,o.description=n[i].description,r.push(o)}e(r)}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=[],r=0,i=navigator.plugins.length;r<i;r++)navigator.plugins[r]&&n.push(navigator.plugins[r]);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,r=e.plugins.sortPluginsFor.length;n<r;n++){var i=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(i)){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={},r=document.createElement("canvas");r.width=2e3,r.height=200,r.style.display="inline";var i=r.getContext("2d");return i.rect(0,0,10,10),i.rect(2,2,6,6),n.canvasWinding=!1===i.isPointInPath(5,5,"evenodd")?"yes":"no",i.textBaseline="alphabetic",i.fillStyle="#f60",i.fillRect(125,1,62,20),i.fillStyle="#069",t.dontUseFakeFontInCanvas?i.font="11pt Arial":i.font="11pt no-real-font-123",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15),i.fillStyle="rgba(102, 204, 0, 0.2)",i.font="18pt Arial",i.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45),i.globalCompositeOperation="multiply",i.fillStyle="rgb(255,0,255)",i.beginPath(),i.arc(50,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(0,255,255)",i.beginPath(),i.arc(100,50,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,255,0)",i.beginPath(),i.arc(75,100,50,0,2*Math.PI,!0),i.closePath(),i.fill(),i.fillStyle="rgb(255,0,255)",i.arc(75,75,75,0,2*Math.PI,!0),i.arc(75,75,25,0,2*Math.PI,!0),i.fill("evenodd"),r.toDataURL&&(n.canvasHash=e.x64hash128(r.toDataURL(),23)),n}},{key:"getWebglFp",value:function(n){var r,i=function(e){return r.clearColor(0,0,0,1),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.clear(r.COLOR_BUFFER_BIT|r.DEPTH_BUFFER_BIT),"["+e[0]+", "+e[1]+"]"};if(!(r=t.getWebglCanvas()))return null;var o={},a=r.createBuffer();r.bindBuffer(r.ARRAY_BUFFER,a);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);r.bufferData(r.ARRAY_BUFFER,s,r.STATIC_DRAW),a.itemSize=3,a.numItems=3;var c=r.createProgram(),l=r.createShader(r.VERTEX_SHADER);r.shaderSource(l,"attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}"),r.compileShader(l);var u=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(u,"precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}"),r.compileShader(u),r.attachShader(c,l),r.attachShader(c,u),r.linkProgram(c),r.useProgram(c),c.vertexPosAttrib=r.getAttribLocation(c,"attrVertex"),c.offsetUniform=r.getUniformLocation(c,"uniformOffset"),r.enableVertexAttribArray(c.vertexPosArray),r.vertexAttribPointer(c.vertexPosAttrib,a.itemSize,r.FLOAT,!1,0,0),r.uniform2f(c.offsetUniform,1,1),r.drawArrays(r.TRIANGLE_STRIP,0,a.numItems);try{o.webglHash=e.x64hash128(r.canvas.toDataURL(),23)}catch(e){}if(n.webgl.hashOnly)return o;o.vendorAndRenderer=t.getWebglVendorAndRenderer(),o.extensions=r.getSupportedExtensions()||[],o["webgl aliased line width range"]=i(r.getParameter(r.ALIASED_LINE_WIDTH_RANGE)),o["webgl aliased point size range"]=i(r.getParameter(r.ALIASED_POINT_SIZE_RANGE)),o["webgl alpha bits"]=r.getParameter(r.ALPHA_BITS),o["webgl antialiasing"]=r.getContextAttributes().antialias?"yes":"no",o["webgl blue bits"]=r.getParameter(r.BLUE_BITS),o["webgl depth bits"]=r.getParameter(r.DEPTH_BITS),o["webgl green bits"]=r.getParameter(r.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}(r),o["webgl max combined texture image units"]=r.getParameter(r.MAX_COMBINED_TEXTURE_IMAGE_UNITS),o["webgl max cube map texture size"]=r.getParameter(r.MAX_CUBE_MAP_TEXTURE_SIZE),o["webgl max fragment uniform vectors"]=r.getParameter(r.MAX_FRAGMENT_UNIFORM_VECTORS),o["webgl max render buffer size"]=r.getParameter(r.MAX_RENDERBUFFER_SIZE),o["webgl max texture image units"]=r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS),o["webgl max texture size"]=r.getParameter(r.MAX_TEXTURE_SIZE),o["webgl max varying vectors"]=r.getParameter(r.MAX_VARYING_VECTORS),o["webgl max vertex attribs"]=r.getParameter(r.MAX_VERTEX_ATTRIBS),o["webgl max vertex texture image units"]=r.getParameter(r.MAX_VERTEX_TEXTURE_IMAGE_UNITS),o["webgl max vertex uniform vectors"]=r.getParameter(r.MAX_VERTEX_UNIFORM_VECTORS),o["webgl max viewport dims"]=i(r.getParameter(r.MAX_VIEWPORT_DIMS)),o["webgl red bits"]=r.getParameter(r.RED_BITS),o["webgl renderer"]=r.getParameter(r.RENDERER),o["webgl shading language version"]=r.getParameter(r.SHADING_LANGUAGE_VERSION),o["webgl stencil bits"]=r.getParameter(r.STENCIL_BITS),o["webgl vendor"]=r.getParameter(r.VENDOR),o["webgl version"]=r.getParameter(r.VERSION);try{var d=r.getExtension("WEBGL_debug_renderer_info");d&&(o["webgl unmasked vendor"]=r.getParameter(d.UNMASKED_VENDOR_WEBGL),o["webgl unmasked renderer"]=r.getParameter(d.UNMASKED_RENDERER_WEBGL))}catch(e){}return r.getShaderPrecisionFormat?(t.each(["FLOAT","INT"],(function(e){t.each(["VERTEX","FRAGMENT"],(function(n){t.each(["HIGH","MEDIUM","LOW"],(function(i){t.each(["precision","rangeMin","rangeMax"],(function(t){var a=r.getShaderPrecisionFormat(r[n+"_SHADER"],r[i+"_"+e])[t];"precision"!==t&&(t="precision "+t);var s=["webgl ",n.toLowerCase()," shader ",i.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,r=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 r.indexOf("win")>=0&&"Windows"!==e&&"Windows Phone"!==e||(r.indexOf("linux")>=0||r.indexOf("android")>=0||r.indexOf("pike")>=0)&&"Linux"!==e&&"Android"!==e||(r.indexOf("mac")>=0||r.indexOf("ipad")>=0||r.indexOf("ipod")>=0||r.indexOf("iphone")>=0)&&"Mac"!==e&&"iOS"!==e||(r.indexOf("win")<0&&r.indexOf("linux")<0&&r.indexOf("mac")<0&&r.indexOf("iphone")<0&&r.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 r,i=eval.toString().length;if(37===i&&"Safari"!==e&&"Firefox"!==e&&"Other"!==e)return!0;if(39===i&&"Internet Explorer"!==e&&"Other"!==e)return!0;if(33===i&&"Chrome"!==e&&"Opera"!==e&&"Other"!==e)return!0;try{throw"a"}catch(t){try{t.toSource(),r=!0}catch(t){r=!1}}return r&&"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 r=n.fonts.swfContainerId;t.addFlashDivNode(),window.swfobject.embedSWF(n.fonts.swfPath,r,"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 r=n[n.length-1];return r.substring(2,r.length-1)}}}catch(e){return""}return""},setItem:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this.getDomain(),i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"/";if(n){var o=["".concat(e,"=").concat(t,"; path=").concat(i,"; secure=true")];"string"==typeof r&&r.length>0&&o.push("domain="+r),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",i="DFP_WEB",o="RECAPTCHA_V3_WEB";function a(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=n?n.querySelector("#"+e):document.getElementById(e);if(r){var i=r.firstChild.nodeValue;if(t&&r.parentNode.removeChild(r),i)try{return JSON.parse(i)}catch(e){return}}}function s(e,t,n){var r=new XMLHttpRequest,i=n?"https://www.linkedin.com":"https://www.linkedin-ei.com";i+=String(t),r.open("POST",i),r.setRequestHeader("Content-Type","application/json"),r.send(e)}function c(e){var t=document.getElementsByClassName(e);return void 0!==t&&t.length>=1}var l=function(){function e(){fe(this,e)}return ge(e,null,[{key:"str2ab",value:function(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0,i=e.length;r<i;r++)n[r]=e.charCodeAt(r);return t}},{key:"encode",value:function(e){return window.btoa(String.fromCharCode.apply(null,e))}},{key:"importPk",value:function(t,n,r){var i=window.atob(n),o=e.str2ab(i);return window.crypto.subtle.importKey(t,o,{name:"RSA-OAEP",hash:"SHA-256"},!0,r)}},{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,r){var i={a:null,b:null,c:null};try{var o=Date.now();if("string"!=typeof n||"number"!=typeof r)throw new Error("ec1");var a=window.crypto.getRandomValues(new Uint8Array(16));i.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 i.b=t,i.c=e.encode(new Uint8Array(a)),i.d=Date.now()-o,i.e=r,i}))}))})).catch((function(e){return i.error=String(e),i}))}catch(t){return i.error=String(t),Promise.resolve(i)}}},{key:"encryptWithKeyIds",value:function(t,n,r,i){if("string"!=typeof n||"string"!=typeof r)return Promise.resolve(e.wrapErrorResult("Error: ec2"));var o=a(n),s=parseInt(a(r));return(""===o||"string"!=typeof o||"number"!=typeof s||Number.isNaN(s))&&(o=i?"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",s=i?2:1),e.encryptWithKey(t,o,s)}},{key:"encryptWithKeyFromDifferentSources",value:function(t,n,r,i,o){return null!=i&&"string"==typeof i.publicKey&&"number"==typeof i.publicKeyVersion?e.encryptWithKey(t,i.publicKey,i.publicKeyVersion):e.encryptWithKeyIds(t,n,r,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}(),u=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 r,i,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],v=0,g=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(r=0;r<p;r++)v<<=1,g==t-1?(g=0,f.push(n(v)),v=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<p;r++)v=v<<1|i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(i=a[u],r=0;r<p;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=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(r=0;r<p;r++)v<<=1,g==t-1?(g=0,f.push(n(v)),v=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<p;r++)v=v<<1|i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}0==--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(i=a[u],r=0;r<p;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1;0==--d&&(d=Math.pow(2,p),p++)}for(i=2,r=0;r<p;r++)v=v<<1|1&i,g==t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1;for(;;){if(v<<=1,g==t-1){f.push(n(v));break}g++}return f.join("")}};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},v={type:1,description:2,suffixes:3},g={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},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},_={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 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 I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var A=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?"),O=/^fs_/;var R,L,N=/(?![^(]*\)),/,D=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 "+pe(e)+".");var t,n,r=A.exec(e);return r&&(t=r[1].replace(O,""),n=r[2]),{id:n,type:t}}(t),r=n.id,i=n.type,o={};if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(N),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));r=s}return o[i]=r,o},x=function(e,t){var n=t.match(new RegExp("(?:^|; *)".concat(e,"=([^;]*)")));return n&&n.length>1?n[1]:null},P={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},M="GUEST",U="MEMBER",F="ENTERPRISE_UNBOUND",B=(k(R={},M,"li_gc"),k(R,U,"li_mc"),k(R,F,"li_ec"),R);k(L={},M,"mypreferences/g/guest-cookies"),k(L,U,"settings/member-cookies"),k(L,F,"mypreferences/e/enterprise-cookies");var j,H,G,q,W=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=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=r,this.optedInConsentMap={},P)t[o]=t[o]||0,0!==t[o]&&(this.consentAvailable=!0),this.optedInConsentMap[o]=1===t[o]||0===t[o]&&1===i},K=(j=[P.ADVERTISING,P.ANALYTICS_AND_RESEARCH,P.FUNCTIONAL],H=[0,1,2,0],G=function(e){for(var t={},n=0;n<j.length;n++)t[j[n]]=H[e>>2*n&3];return t},q=function(e){var t=0;return e>=0&&e<=3&&(t=H[e]),t},{parseConsentBody:function(e,t){var n=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),r=e.match(n);if(!r)return{error:"Invalid consent body encoding",consent:new W};var i=G(parseInt(r[1],10)),o=new Date(1e3*parseInt(r[2],10)),a=q(parseInt(r[3],10));return{error:null,consent:new W(i,o,t,a)}},parseConsentBodyEnterpriseUnbound:function(e,t,n){var r=function(e){try{var t=D(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(!r)return{error:"Invalid enterprise profile urn provided",consent:new W};var i=r.enterpriseAccountId,o=r.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 W};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=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),4!==n.length);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e)||function(e,t){if(e){if("string"==typeof e)return I(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)?I(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),r=t[1],a=t[2],s=t[3];return r===i&&a===o&&s===n}))[0];if(!c)return{error:null,consent:new W};var l=G(c[0]),u=new Date(1e3*parseInt(s[2],10)),d=q(parseInt(s[3],10));return{error:null,consent:new W(l,u,F,d)}}}),z=new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),V=function(e){var t={};for(var n in P)t[n]=e;return{error:null,consent:new W(t,null,null,e)}},X=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 i,o=null;try{o=(i=e,"undefined"==typeof atob&&"undefined"!=typeof Buffer?Buffer.from(i,"base64").toString("binary"):atob(i)).match(z)}catch(e){}if(!o)return{error:"Invalid consent encoding",consent:new W};var a=parseInt(o[1],10),s=o[2];return 1===a?t===F?K.parseConsentBodyEnterpriseUnbound(s,n,r):K.parseConsentBody(s,t):{error:"Invalid encoded consent version ".concat(a),consent:new W}},Y=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 J=function(){function e(t,n){fe(this,e),this.callback=t,this.config=n,this.setupInterceptorForFetch(),this.setupInterceptorForOpen()}return ge(e,[{key:"setupInterceptorForFetch",value:function(){var e=window.fetch,t=this;window.fetch=function(n,r){try{var i=Q(n);t.runActionInterceptorLogic(i)}catch(e){}return e(n,r)}}},{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=Y.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 r={token:t,expectedAction:e};n(o,JSON.stringify(r))})).catch((function(e){var t={error:e};n(o,JSON.stringify(t))}))}))}}}]),e}(),$={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},Z=!1;try{var ee=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]:{},r=n.enterpriseProfileUrn,i=n.enterpriseAppInstanceId;if("string"!=typeof t){if("undefined"==typeof document)return{error:"cookie string must be provided in SSR mode",consent:new W};t=document.cookie}if(r&&!i||!r&&i)return{error:"enterpriseProfileUrn and enterpriseAppInstanceId must both be provided if at least one is provided",consent:new W};if(!(e!==F||r&&i))return{error:"enterpriseProfileUrn and enterpriseAppInstanceId are required for unbound userMode",consent:new W};if(!e){var o=x(B[F],t);if(o&&r&&i){var a=X(o,F,r,i);if(a.consent.userMode===F||a.error)return a}e=x("liap",t)?x(B[U],t)?U:M:x(B[M],t)?M:U}return function(e,t,n,r){var i=x(B[e],t);return i?X(i,e,n,r):x(B[M],t)||x(B[U],t)||x(B[F],t)?V(2):V(1)}(e,t,r,i)}().consent.optedInConsentMap;Z=ee[P.FUNCTIONAL]}catch(e){}var te=function(){function e(t,n,r){var i=this;if(fe(this,e),void 0!==n&&void 0!==t&&"enabled"===t.globalIntegration)"complete"===document.readyState?this.initializeGlobalIntegration(n,r):window.addEventListener("load",(function(){i.initializeGlobalIntegration(n,r)}));else if(void 0!==t){var o=JSON.parse(JSON.stringify($));c("settings-iframe")||c("setting-headline")||(o.useRequestIdleCallBack=!1),this.initialize(o,t)}else{var a=JSON.parse(JSON.stringify($));c("settings-iframe")||c("setting-headline")||(a.useRequestIdleCallBack=!1),"complete"===document.readyState?this.initialize(a):window.addEventListener("load",(function(){i.initialize(a)}))}}return ge(e,[{key:"initializeGlobalIntegration",value:function(e,t){t.enableNetworkInterceptor&&!globalThis.apfcInterceptorInitialized&&(new J(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($,e,t)}},{key:"checkConfigAndInitializeThirdPartyIntegration",value:function(e,t){(!0===t.enableOnDemandMode&&t.fpDataCookie.apfcTypes.includes(o)||!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(i)||!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 r=Date.now(),i=Number(n.getItem("df_ts"));(!1===Z||r-i>t)&&n.deleteItem("df_ts")}}},{key:"addDfCookieIfRequired",value:function(e){if(!0===Z&&"number"==typeof e.samplingTimeWindowInMillis&&e.samplingTimeWindowInMillis>0){var t=Date.now(),r=new Date;r.setTime(t+e.samplingTimeWindowInMillis),n.setItem("df_ts",t,r)}}},{key:"initialize",value:function(e,n){if(null!=n||null!=a("apfcDfPK")){var r=this.reqid,i=this.pageInstance,o=this.isProd();return(new t).getFeatures((function(t,a){t.reqid=r,t.pageInstance=i,t.fullFeatureCollection=a,l.encryptWithKeyFromDifferentSources(JSON.stringify(t),"apfcDfPK","apfcDfPKV",n,o).then((function(t){globalThis.apfcDf=t,!0===a&&s(JSON.stringify(t),e.telemetryCollectPath,o)}))}),e)}globalThis.triggerApfc=this.reentry}},{key:"intializeGlobalIntegration",value:function(r,i,o){var a=this.isProd();return(new t).getFeatures((function(t,c){if(!0===c){if(e.prototype.populateFpDataCookie(t,o),!0===o.isSyncEnabledWithHeaders){var k=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 r=t.extensions,i=[],o=0;o<r.length;o++){var a=r[o];i[o]=_.hasOwnProperty(a)?_[a]:a}t.extensions=i}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(w).forEach((function(e){n[w[e]]=t[e]})),e.touchSupport=n)}(e),function(e){var t=e.battery,n={};null!=t&&(Object.keys(b).forEach((function(e){n[b[e]]=t[e]})),e.battery=n)}(e),function(e){var t=e.screenOrientation,n={};null!=t&&(Object.keys(E).forEach((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&&null!==t&&null!==t.lists){for(var r=t.lists,i=[],o=0;o<r.length;o++){var a=r[o];i[o]=S.hasOwnProperty(a)?S[a]:a}t.lists=i}null!=t&&(Object.keys(y).forEach((function(e){n[y[e]]=t[e]})),e.fonts=n)}(e),function(e){var t=e.enumerateDevices,n=[];if(null!=t){for(var r=function(){var e=t[i],r={};Object.keys(m).forEach((function(t){r[m[t]]=e[t]})),n[i]=r},i=0;i<t.length;i++)r();e.enumerateDevices=n}}(e),function(e){var t=e.canvas,n={};null!=t&&(Object.keys(g).forEach((function(e){n[g[e]]=t[e]})),e.canvas=n)}(e),function(e){var t=e.mimetyps,n=[];if(null!=t){for(var r=function(){var e=t[i],r={};Object.keys(v).forEach((function(t){r[v[t]]=e[t]})),n[i]=r},i=0;i<t.length;i++)r();e.mimetyps=n}}(e),function(e){var t=e.signals,n={};null!=t&&(Object.keys(f).forEach((function(e){n[f[e]]=t[e]})),e.signals=n)}(e),function(e){var t=e.networkInfo,n={};null!=t&&(Object.keys(p).forEach((function(e){n[p[e]]=t[e]})),e.networkInfo=n)}(e),function(e){var t=e.location,n={};null!=t&&(Object.keys(h).forEach((function(e){n[h[e]]=t[e]})),e.location=n)}(e),function(e){var t=e.FPDataCookie,n={};null!=t&&(Object.keys(d).forEach((function(e){n[d[e]]=t[e]})),e.FPDataCookie=n)}(e),Object.keys(C).forEach((function(n){t[C[n]]=e[n]})),t}(t));globalThis.apfcDfH=(I=k,u.compressToBase64(I))}l.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 r={};return r.payload=t,r.browserId=n.getBcookie(),r}(e);s(JSON.stringify(t),r.gloablIntegrationDataCollectionPath,a)}i("DNA",JSON.stringify(e))})),globalThis.dnaIntegrationCompleted=!0}var I}),r)}},{key:"intializeDfpIntegration",value:function(t,r){var o=n.getBcookie(),a=this.isProd()?"fb6bbd47-fa7c-4264-b4e9-b25948407586":"ee078acd-0704-4344-9e5b-6b84b480c30a";try{if(RegExp("^[\\w-]*$").test(o)){var s="https://merchantpool1.linkedin.com/mdt.js?session_id=".concat(o,"&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:o,instanceId:a};e.prototype.populateFpDataCookie(l,r),t(i,JSON.stringify(l))}else{var u={error:"Invalid session_id: "+o};t(i,JSON.stringify(u))}}catch(r){var d={error:r};t(i,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(),u="https://li.protechts.net/index.html?ts="+a+"&r_id="+encodeURIComponent(o)+"&app_id="+s+"&uc=scraping";l.generateSha256HashOrDefault(c).then((function(n){""!==(c=n)&&(u+="&d_id="+c);try{var l=document.createElement("iframe");l.setAttribute("id","humanThirdPartyIframe"),l.setAttribute("src",u),l.setAttribute("sandbox","allow-same-origin allow-scripts"),l.setAttribute("aria-hidden","true"),l.style.height="0px",l.style.width="0px",l.style.border="none",l.style.position="absolute",l.style.left="-9999px",document.body.appendChild(l);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}();te.prototype.reentry=function(e){globalThis.triggerApfc=null,new te(e)},te.prototype.reentryGlobalIntegration=function(e,t){globalThis.triggerDnaApfcEvent=null,new te({globalIntegration:"enabled"},e,t)},te.prototype.reentryGlobalIntegrationOnDemand=function(e,t){if(void 0!==t&&void 0!==e){var n=te.prototype.extractDataCookie();!0===t.onlyOnDemandFlow&&null===n||(t.fpDataCookie=n,null!==n&&(t.enableOnDemandMode=!0),te.prototype.reentryGlobalIntegration(e,t))}},te.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 r={};return r.trackingId=t[0],r.memberId=t[1],r.sessionUrn=t[2],r.collectionType=t[3],r.apfcTypes=t[4].split(","),r},te.prototype.populateFpDataCookie=function(e,t){"object"==pe(e)&&"object"==pe(t)&&(e.FPDataCookie=t.fpDataCookie)},te.prototype.isProd=function(){var e=location&&location.host;return e&&e.indexOf(".linkedin.com")>-1&&!e.startsWith("pemberly")},te.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=te.prototype.reentryGlobalIntegration),void 0===globalThis.triggerDnaApfcEventOnDemand&&(globalThis.triggerDnaApfcEventOnDemand=te.prototype.reentryGlobalIntegrationOnDemand),(void 0===globalThis.maxApfcVersion||2>globalThis.maxApfcVersion)&&(globalThis.maxApfcVersion=2,globalThis.triggerDnaApfcEventOnDemandVersioned=te.prototype.reentryGlobalIntegrationOnDemand),new te)}();var Zr=function(){function e(){fe(this,e)}return ge(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}(),ei=function(){function e(t,n,r,i,o,a,s,c,l,u){fe(this,e),me(this,"hostApis",void 0),me(this,"statics",void 0),me(this,"options",void 0),me(this,"allowTimingOrigin",void 0),me(this,"fireResourceLoadEvent",void 0),me(this,"isTracerEnabled",void 0),me(this,"responseRleCache",void 0),me(this,"fireApfcEvent",void 0),me(this,"abuseDeviceSignalCollectionConfig",void 0),me(this,"trackingEndpoint",void 0),me(this,"collectResourceTimings",void 0),me(this,"collectCdnData",void 0),me(this,"perfObserver",void 0),me(this,"renderTimings",new Map),me(this,"urlToTreeId",new Map),me(this,"cdnDataProvider",void 0),me(this,"observables",new Cr),me(this,"trackingEndpointPattern",void 0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.fireResourceLoadEvent=o,this.isTracerEnabled=a,this.responseRleCache=s,this.fireApfcEvent=c,this.abuseDeviceSignalCollectionConfig=l,this.trackingEndpoint=u,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new $r(t)),this.trackingEndpointPattern=function(e){if(!e)return"/li/track";try{return new URL(e).pathname}catch(t){return e}}(this.trackingEndpoint)}return ge(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Kr=Kr||t.createElement("a")).href=e,Kr.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:Vr(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e,t,n){var r=this.renderTimings.get(e);if(r&&(r.renderEnd=r.renderEnd||Vr(this.hostApis.performance,this.allowTimingOrigin),t))return n?this.collectViewLoadEventData(r,n):void mn("ViewLoadEvent",Tr)}},{key:"collectViewLoadEventData",value:function(e,t){var n=e.renderName,r=e.renderEnd,i=void 0===r?-1:r,o=e.renderStart,a=void 0===o?-1:o,s=[];return s.push({viewProgressType:"RENDER_START",timestamp:a}),s.push({viewProgressType:"RENDER_END",timestamp:i}),{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,r=e.immediate,i=this.collectSynchronousData(n);if(r)return i;var o=this.collectAsynchronousData();return"then"in o?o.then((function(e){return(0,t.hostApis.assign)(i,e),i})):i}},{key:"collectPageLoadStartData",value:function(e){var t=e.isInitial,n=e.rumKey,r=Object.create(null);r.pageKey=n,r.pageLoadType=t?"INITIAL_LOAD":"SUBSEQUENT_LOAD",r.networkInformationMetrics=this.snapshot.networkInformationMetrics;var i=this.statics,o=i.webUIFramework,a=i.timeSource,s=i.isSinglePageApp,c=i.appRenderMode,l=i.isAppRenderFailed,u=i.isFromServiceWorker,d=i.treeId;return r.treeId=d,r.browserPageLoadStartContext={webUIFramework:o,timeSource:a,isSinglePageApp:s,appRenderMode:c,isAppRenderFailed:l,isFromServiceWorker:u},r}},{key:"collectPageLoadEndData",value:function(e){var t=Object.create(null),n=Object.create(null);t.cdnData=[],t.browserPageLoadEndContext={},t.navigationTiming=Object.create(null);var r=e.isInitial,i=e.immediate,o=this.hostApis.assign;if(r){var a=ni(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(!i){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,r=e.transferSize,i=e.initiatorType,o=e.nextHopProtocol,a=e.encodedBodySize,s=e.decodedBodySize,c=e.requestStart,l={};l.resourceKey=n,l.isNetwork=!!r&&0!==r,l.loadType=i||"unknown",l.timeOrigin=t;var u=[];Object.keys(br).forEach((function(t){var n;t in dr&&void 0!==e[t]&&u.push({resourceProgressType:br[t],duration:null!==(n=e[t])&&void 0!==n?n:-1})})),l.resourceProgressStates=u;var d={},h=wr[o];d.nextHopProtocol=null!=h?h:"UNKNOWN",d.transferSize=r,d.encodedBodySize=a,d.decodedBodySize=s,l.resourceNetworkContext=d,l.requestStart=c;try{var p,f,v=new URL(n),g=v.pathname+v.search+v.hash;return null===(p=this.responseRleCache)||void 0===p||p.offerResourceLoadEvent(g,l),null===(f=this.responseRleCache)||void 0===f?void 0:f.flushCacheByUrl(g)}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),mn("ResourceLoadEvent",e)):mn("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,r=t.PerformanceObserver,i=Object.create(null);return this.statics.pageLoadMode=e?"INITIAL":"PARTIAL",r||(this.observables.userTimingEntries=Qr(this.hostApis.performance,this.options,!0),this.collectResourceTimings&&this.processNewResourceTimings()),this.observables.attachTreeIds(this.urlToTreeId),this.urlToTreeId.clear(),n(i,this.observables.getData(),this.snapshot,this.statics),e&&n(i,ni(this.hostApis.performance)),n(i,this.collectAsynchronousData(!0)),i}},{key:"collectAsynchronousData",value:function(e){var t=this,n={cdnData:[],usedCDN:this.extractUsedCDN([])};if(e){if(this.collectCdnData){var r=this.cdnDataProvider.getPresentData();n.cdnData=r,n.usedCDN=this.extractUsedCDN(r)}return n}var i=[];return this.collectCdnData&&i.push(this.cdnDataProvider.getDataWhenReady(this.options["async-plugins-timeout"]).then((function(e){n.cdnData=e,n.usedCDN=t.extractUsedCDN(e)}))),i.length>0?pn(i,Promise).then((function(){return n})):n}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;try{var n=this.abuseDeviceSignalCollectionConfig||{},r=n.isDnaIntegrationLixEnabled,i=n.isHumanIntegrationLixEnabled,o=n.isDfpIntegrationLixEnabled,a=n.samplingTimeWindowInMillis,s=n.isOnDemandFingerprintingEnabled,c=n.isSyncFingerprintingWithHeadersLixEnabled,l=n.isSyncFingerprintingWithCbLixEnabled,u=n.isRecaptchaV3IntegrationEnabled,d=n.isNetworkInterceptorEnabled;if(i||o||r||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:i,dfpIntegrationEnabled:o,dnaIntegrationEnabled:r,samplingTimeWindowInMillis:a,onlyOnDemandFlow:t,isSyncEnabledWithHeaders:c,isSyncEnabledWithCb:l,recaptchaV3IntegrationEnabled:u,enableNetworkInterceptor:d};(!t||t&&s||c||l)&&Zr.collectFeatures(f,this.fireApfcEvent)}}catch(e){}}},{key:"setupPerformanceObserver",value:function(e,t){var n=this;this.perfObserver=new e((function(e){var r=(n.abuseDeviceSignalCollectionConfig||{}).disablePerfMarkerOptimization;r&&n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1}),e.getEntries().forEach((function(e){var i=e.entryType,o=e.name,a=e.startTime,s=e.duration;"resource"===i?n.processSingleResourceTiming(e,t):"mark"===i?(n.observables.userTimingEntries.push({entryType:"MARK",name:o,startTime:a,duration:s}),"mark_meaningful_paint_end"!==o||r||n.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:!1})):"measure"===i?n.observables.userTimingEntries.push({entryType:"MEASURE",name:o,startTime:a,duration:s}):"longtask"===i&&n.observables.longTasks.push({duration:s,name:o,startTime:a})}))})),this.observables.userTimingEntries=Qr(this.hostApis.performance,this.options,!1);var r=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&r.push("resource"),this.options["user-timing-mark-enabled"]&&r.push("mark"),this.options["user-timing-measure-enabled"]&&r.push("measure"),this.perfObserver.observe({entryTypes:r})}},{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"]&&$t.emit(or.INTERNAL_OTEL_RESOURCE,{resourceTiming:e}),this.observables.resourceTimingEntries.push(e);var r=-1!==e.name.indexOf(this.trackingEndpointPattern);if(this.isTracerEnabled&&!r&&!function(e){for(var t=0,n=zr;t<n.length;t++){var r=n[t];if(r.strToFilter&&-1!==e.indexOf(r.strToFilter))return!0;if(r.pattern&&r.pattern.test(e))return!0}return!1}(e.name)){var i=this.collectResourceLoadEvent(e,t);i&&i.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:Jr(this.renderTimings),networkInformationMetrics:ti(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}();function ti(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 ni(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 r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,Er.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}var ri=function(){function e(t,n,r){fe(this,e),me(this,"featureName",void 0),me(this,"trackingCore",void 0),me(this,"rumConfig",void 0),me(this,"observing",!1),me(this,"basePageTreeId",void 0),me(this,"startPageInstance",void 0),me(this,"startMemory",void 0),me(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return ge(e,[{key:"startObserving",value:function(){var t,n=this,r=this.getMemory();r&&!this.observing&&(this.basePageTreeId=this.trackingCore.host.treeID||"",this.startPageInstance=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageInstance)||ln(be),this.startMemory=r,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]}})),r=t.usedJSHeapSize-this.startMemory.usedJSHeapSize;return n.push({name:(r<0?"usedJSHeapSizeDecrease":"usedJSHeapSizeIncrease")+e,startTime:Math.abs(r)},{name:"utilization"+e,startTime:Math.round(t.usedJSHeapSize/t.totalJSHeapSize*100)}),n}},{key:"getMemory",value:function(){return this.trackingCore.host.api.performance.memory}}]),e}();me(ri,"checkpoints",[1,3,10,30,90,180,300]);var ii,oi,ai,si,ci,li=ge((function e(t,n,r){fe(this,e),me(this,"webUIFramework",void 0),me(this,"timeSource",void 0),me(this,"isSinglePageApp",void 0),me(this,"appRenderMode",void 0),me(this,"isAppRenderFailed",void 0),me(this,"pageLoadMode","INITIAL"),me(this,"isSSL",void 0),me(this,"treeId",void 0),me(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:"===r.api.location.protocol?1:0,this.treeId=r.treeID,this.isFromServiceWorker=r.isFromServiceWorker})),ui=function(){function e(t){fe(this,e),me(this,"isPEMTracerEnabled",void 0),me(this,"responseContextMap",new Map),me(this,"resourceLoadEventsMap",new Map),this.isPEMTracerEnabled=t}return ge(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 r=new En((function(e,t){return e.requestTime<t.requestTime}));r.heapPush(t),this.responseContextMap.set(e,r)}}},{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 r=new En((function(e,t){return e.requestStart<t.requestStart}));r.heapPush(t),this.resourceLoadEventsMap.set(e,r)}}},{key:"mergeAndConsume",value:function(e){var t=this.resourceLoadEventsMap.get(e),n=this.responseContextMap.get(e),r=null==t?void 0:t.heappop(),i=null==n?void 0:n.heappop();return this.mergeRleAndRes(r,i)}},{key:"mergeRleAndRes",value:function(e,t){if(e&&t){e.requestStart;var n=ce(e,Y),r=(t.requestTime,t.viewNames),i=t.requestType,o=t.requestTag,a=ce(t,Q);return n.targetViewNames=r||[],i&&(n.requestType=i),o&&(n.requestTag=o),n.resourceNetworkContext=te(te({},n.resourceNetworkContext),a),yn(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,r=le(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;t=[].concat(ue(t),ue(this.flushCacheByUrl(i)))}}catch(e){r.e(e)}finally{r.f()}}var o=this.resourceLoadEventsMap.keys();if(o){var a,s=le(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(ue(t),ue(u.map((function(e){return e.requestStart,yn(ce(e,J))})))))}}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,yn(ce(e,$))})))||n;if(this.canFlush(e)){for(var r=this.responseContextMap.get(e);r&&r.heapsize()>0;){var i=this.mergeAndConsume(e);i&&n.push(i)}this.deleteEntryByRequestUrl(e)}return n}}]),e}(),di=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)}},hi=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){}},pi=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},fi=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},vi=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},gi=-1,mi=function(){return"hidden"===document.visibilityState?0:1/0},yi=function(){pi((function(e){var t=e.timeStamp;gi=t}),!0)},Ei=function(){return gi<0&&(gi=mi(),yi(),fi((function(){setTimeout((function(){gi=mi(),yi()}),0)}))),{get firstHiddenTime(){return gi}}},bi=!1,wi=-1,Ti=function(e,t){bi||(function(e,t){var n,r=Ei(),i=di("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},a=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],s=a?null:hi("paint",o);(a||s)&&(n=vi(e,i,t),a&&o(a),fi((function(r){i=di("FCP"),n=vi(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){wi=e.value})),bi=!0);var n,r=function(t){wi>-1&&e(t)},i=di("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>i.value&&(i.value=o,i.entries=a,n())}},c=hi("layout-shift",s);c&&(n=vi(r,i,t),pi((function(){c.takeRecords().map(s),n(!0)})),fi((function(){o=0,wi=-1,i=di("CLS",0),n=vi(r,i,t)})))},_i={passive:!0,capture:!0},Si=new Date,Ci=function(e,t){ii||(ii=t,oi=e,ai=new Date,Ai(removeEventListener),ki())},ki=function(){if(oi>=0&&oi<ai-Si){var e={entryType:"first-input",name:ii.type,target:ii.target,cancelable:ii.cancelable,startTime:ii.timeStamp,processingStart:ii.timeStamp+oi};si.forEach((function(t){t(e)})),si=[]}},Ii=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(){Ci(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,_i),removeEventListener("pointercancel",r,_i)};addEventListener("pointerup",n,_i),addEventListener("pointercancel",r,_i)}(t,e):Ci(t,e)}},Ai=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,Ii,_i)}))},Oi=function(e,t){var n,r=Ei(),i=di("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},a=hi("first-input",o);n=vi(e,i,t),a&&pi((function(){a.takeRecords().map(o),a.disconnect()}),!0),a&&fi((function(){var r;i=di("FID"),n=vi(e,i,t),si=[],oi=-1,ii=null,Ai(addEventListener),r=o,si.push(r),ki()}))},Ri={},Li=function(e,t){var n,r=Ei(),i=di("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e),n())},a=hi("largest-contentful-paint",o);if(a){n=vi(e,i,t);var s=function(){Ri[i.id]||(a.takeRecords().map(o),a.disconnect(),Ri[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,s,{once:!0,capture:!0})})),pi(s,!0),fi((function(r){i=di("LCP"),n=vi(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,Ri[i.id]=!0,n(!0)}))}))}))}},Ni=["LCP","FID","CLS"],Di={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},xi={},Pi=function(){var e;if(!An)return"";var t=window.performance,n=void 0;if("function"==typeof(null==t?void 0:t.getEntriesByType)){var r,i=null===(r=window.performance)||void 0===r?void 0:r.getEntriesByType("navigation");(null==i?void 0:i.length)>0&&(n=i[0])}return(null===(e=n)||void 0===e?void 0:e.name)||window.location.href}(),Mi=!1,Ui=new Set,Fi={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Bi(){var e=!0===window.__test__resetWebVitalsState;if(!Mi||e){e&&(Ui=new Set),Ni.forEach(ji);var t=Symbol();ci=t,[Li,Oi,Ti].forEach((function(e){return e(Hi.bind(null,t),!0)})),[Li,Oi,Ti].forEach((function(e){return e(Gi.bind(null,t))})),Mi=!0}}function ji(e){xi[e]={name:e,verboseName:Di[e]||e,value:mr,updateHistory:[]};var t=Fi[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(xi[e].value=yr)}function Hi(e,t){if(e===ci){var n=xi[t.name],r=Xr();n&&(n.updateHistory.push({time:r,data:t}),n.value=t.value),Ui.forEach((function(e){return e(t,r,!1)}))}}function Gi(e,t){e===ci&&Ui.forEach((function(e){return e(t,Xr(),!0)}))}var qi,Wi=function(){function e(t,n){var r=this;fe(this,e),me(this,"basePageTreeId",void 0),me(this,"basePageKey",void 0),me(this,"observing",!1),me(this,"appContextMap",new Map),me(this,"rumConfig",void 0),me(this,"trackingCore",void 0),me(this,"onMetricUpdate",(function(e,t,n){var i;r.observing&&(n?r.reportMetric(e.name):r.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(i=r.trackingCore.getCurrentContext())||void 0===i?void 0:i.pageKey}))})),this.trackingCore=t,this.rumConfig=n}return ge(e,[{key:"startObserving",value:function(){var e,t,n=this;Bi(),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",Ni.forEach((function(e){var t;(null===(t=xi[e])||void 0===t?void 0:t.value)===yr&&n.reportMetric(e)})),t=this.onMetricUpdate,Ui.add(t))}},{key:"stopObserving",value:function(){var e;this.observing=!1,e=this.onMetricUpdate,Ui.delete(e)}},{key:"reportMetric",value:function(e){var t=xi[e];if(t){var n={name:Di[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t,basePageUrl:Pi},a=null;switch(n.name){case"LCP":a=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1],a={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Yr(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,r);break;case"FID":a=function(e,t){var n;if(0===e.updateHistory.length)return null;var r=e.updateHistory[e.updateHistory.length-1],i=r.data.entries,o=i[i.length-1];return{pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",processingStart:Math.round(o.processingStart),processingEnd:Math.round(o.processingEnd),target:Yr(o.target)}}(n,r);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 r=n.reduce((function(e,t){return e&&e.value>t.value?e:t})),i=e.updateHistory.find((function(e){return e.data.entries.includes(r)})),o=null;r&&r.sources&&r.sources.length&&(o=r.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(i.time);return o&&s?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":Yr(null===(a=o)||void 0===a?void 0:a.node),"largestShift.pageKey":s.pageKey||"_unknown","largestShift.url":s.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(a){var s={};return i(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 r=e[n];t[n]="string"==typeof r?r:JSON.stringify(r)})),t}(r);var i={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};if(this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},i),this.rumConfig["enable-otel"])if("LCP"===e){var o={value:n.longValue,metadata:r};$t.emit(or.INTERNAL_OTEL_LARGEST_CONTENTFUL_PAINT,o)}else if("CLS"===e){var a={value:n.doubleValue,metadata:r};$t.emit(or.INTERNAL_OTEL_CUMULATIVE_LAYOUT_SHIFT,a)}else if("FID"===e){var s={value:n.longValue,metadata:r};$t.emit(or.INTERNAL_OTEL_FIRST_INPUT_DELAY,s)}}}}]),e}(),Ki="x-li-uuid",zi="x-li-pop",Vi="x-msedge-ref",Xi="x-li-fabric",Yi="x-li-pem-resp-meta",Qi="content-type",Ji="x-cache",$i=function(){function e(t){fe(this,e),me(this,"_callTreeId",void 0),me(this,"_fabric",void 0),me(this,"_msEdgeRef",void 0),me(this,"_pointOfPresenceId",void 0),me(this,"_responseMetadata",void 0),me(this,"_contentType",void 0),me(this,"_cdnCacheMetadata",void 0),me(this,"_downstreamAvailability",void 0);var n=new Map;null==t||t.forEach((function(e,t){n.set(t.toLowerCase(),e)})),this._callTreeId=n.get(Ki)||null,this._pointOfPresenceId=n.get(zi)||null,this._msEdgeRef=n.get(Vi)||null,this._fabric=n.get(Xi)||null,this._responseMetadata=n.get(Yi)||null,this._contentType=n.get(Qi)||null,this._cdnCacheMetadata=n.get(Ji)||null,this._downstreamAvailability=function(e){if(null==e)return 1;var t,n=le(e.split(","));try{for(n.s();!(t=n.n()).done;){var r=t.value.split("=",2);if(2===r.length&&"availability"===r[0]){var i=parseFloat(r[1]);if(i>=0&&i<=1)return i}}}catch(e){n.e(e)}finally{n.f()}return 1}(this._responseMetadata)}return ge(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"}(qi||(qi={}));function Zi(e,t,n,r,i){var o=new $i(r),a=function(e,t,n){if(t){if(429===t||999===t)return qi.TOO_MANY_REQUESTS;if(e&&!e.hasAnyLinkedInHeaders()&&t&&t>=400&&t<600)return qi.BLOCKED_BY_CLIENT_PROXY;if((r=t)>=400&&r<500)return qi.CLIENT_ERROR;if(function(e){return e>=500&&e<600}(t))return function(e){if(e){if(e.fabric)return qi.SERVER_ERROR;if(e.pointOfPresenceId)return qi.TRAFFIC_LI_POP_TO_DC_ERROR;if(e.microsoftEdgeReference)return qi.TRAFFIC_AFD_TO_LI_POP_ERROR}return qi.SERVER_ERROR}(e);if(function(e,t){return!!(e>=200&&e<300&&t&&t.downstreamAvailability<1)}(t,e))return qi.DOWNSTREAM_GRACEFUL_DEGRADATION;if(!n)return null}var r;if(n instanceof Error){if("AbortError"===n.name)return qi.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 qi.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 qi.CLIENT_TIMEOUT;if(0===n.status&&"abort"===n.statusText)return qi.CLIENT_ABORTED;if("readyState"in n&&0===n.readyState)return qi.NETWORK_ERROR}return qi.UNCLASSIFIED}(o,n,i),s=null;return a&&(s={errorType:a},a===qi.UNCLASSIFIED&&i&&(s.errorMessage=i.message,function(e,t,n){var r=["tracer-unclassified-error"];null==n||n.forEach((function(e){return r.push("target-view-name-".concat(e))})),mn("resource-load-tracer",e instanceof Error||"string"==typeof e?e:JSON.stringify(e),Object.fromEntries(t||[]),r)}(i,r,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,r){var i,o,a,s,c,l,u=this;fe(this,e),me(this,"core",void 0),me(this,"config",void 0),me(this,"collector",void 0),me(this,"boomerangStart",-1),me(this,"webVitalsObserver",void 0),me(this,"appMemoryObserver",void 0),me(this,"pageMemoryObserver",void 0),me(this,"liveTokens",new Set),me(this,"stateWM",new WeakMap),me(this,"activeToken",void 0),me(this,"isInitial",void 0),me(this,"pageLoadId",void 0),me(this,"initialResourcesEvents",[]),me(this,"responseRleCache",void 0),me(this,"beforeHideHandlerBound",this.beforeHideHandler.bind(this)),me(this,"fireApfcEventBound",this.fireApfcEvent.bind(this)),me(this,"isTracerEnabled",void 0),me(this,"isPEMTracerEnabled",void 0),this.core=r,this.config=function(e,t){for(var n in e)void 0!==t[n]&&(e[n]=t[n]);return e}(r.host.api.assign({},gr),n);var d="enabled"===(null===(i=(o=r.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time")),h=this.getAbuseDeviceSignalCollectionConfig(r),p=null===(a=(s=r.host).__getLixTreatment)||void 0===a?void 0:a.call(s,"pemberly.tracking.generic-tracers"),f=!!p&&Sr.test(p);this.isTracerEnabled=f||this.config["enable-tracking-3"];var v="enabled"===(null===(c=(l=r.host).__getLixTreatment)||void 0===c?void 0:c.call(l,"pemberly.tracking.pem-tracers"));this.isPEMTracerEnabled=v||this.config["enable-pem-tracking-3"],this.responseRleCache=new ui(this.isPEMTracerEnabled),this.collector=new ei(r.host.api,new li(t,this.config,r.host),this.config,d,(function(e){return u.fireResourceLoadEvent(e,u.activeToken)}),this.isTracerEnabled,this.responseRleCache,this.fireApfcEventBound,h,r.host.endpoint),this.collector.startObserving(),$t.before(zt,this.beforeHideHandlerBound)}ge(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,r=this.collector.recordRenderEnd(e,this.isTracerEnabled,n);r&&this.isTracerEnabled&&this.core.fireEvent({appId:this.config["app-id"],eventName:"ViewLoadEvent"},r)}},{key:"provisionNetworkResponse",value:function(e,t){var n,r,i=this;null===(n=this.responseRleCache)||void 0===n||n.offerResponseContext(e,t);var o=null===(r=this.responseRleCache)||void 0===r?void 0:r.flushCacheByUrl(e);null==o||o.forEach((function(e){i.fireResourceLoadEvent(e,i.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 r,i=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=i,this.liveTokens.add(i),this.isTracerEnabled?(this.stateWM.set(i,{isInitial:this.isInitial,startTime:Vr(this.core.host.api.performance,o),pageKey:e}),this.firePageLoadStartEvent(i)):this.stateWM.set(i,{isInitial:this.isInitial,startTime:Vr(this.core.host.api.performance,o)}),this.config["enable-memory-measurement"]&&(null===(r=this.pageMemoryObserver)||void 0===r||r.stopObserving(),this.pageMemoryObserver=new ri("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new ri("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),i}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new Wi(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=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=Vr(this.core.host.api.performance,s);a.endProps={renderCompleteTime:c,isImpactedByHiddenWindow:i,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(r.isTracerEnabled){r.flushResourceLoadEvents(l);var e=r.collector.collectPageLoadEndData({isInitial:a.isInitial});"then"in e?e.then((function(e){r.firePageLoadEndEvent(e,l)})):r.firePageLoadEndEvent(e,l)}var t=r.collector.collect({isInitial:a.isInitial});"then"in t?t.then((function(e){r.fireRumEvent(e,l)})):r.fireRumEvent(t,l)}),u),this.activeToken=void 0}else mn("rum-end",_r)}},{key:"onDataResponse",value:function(e,t,n,r,i,o,a){var s=Zi(t,n,r,i,o);if(null!=a&&a.serverSideResponse){var c=this.generateResourceLoadEventFromResponseContext(e,te({nextHopProtocol:lr.UNKNOWN},s));this.fireResourceLoadEvent(c,this.activeToken)}else this.provisionNetworkResponse(e,s)}},{key:"onOopsPage",value:function(e,t){mn("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=sn(),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 mn("PageLoadStartEvent",_r)}},{key:"destroy",value:function(){var e,t,n;$t.offBefore(zt,this.beforeHideHandlerBound),this.activeToken&&this.abort(this.activeToken),this.flushEndedSessions(),this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.responseRleCache=void 0,this.core.destroy()}},{key:"getPageLoadIdFromState",value:function(e){var t,n=null!=e?e:this.activeToken;return n&&(t=this.stateWM.get(n).pageLoadId),t}},{key:"abort",value:function(e){var t;if(!e||this.activeToken!==e)throw new Error("RUM abort: rum token passed is invalid");if(null!==(t=this.stateWM.get(e))&&void 0!==t&&t.endProps)throw new Error("RUM abort: Can't abort a session that was already ended");this.activeToken=void 0,this.stateWM.delete(e),this.liveTokens.delete(e)}},{key:"flushEndedSessions",value:function(){var e=this;this.liveTokens.forEach((function(t){var n=e.stateWM.get(t);if(n.endProps){if(e.isTracerEnabled){var r=e.collector.collectPageLoadEndData({isInitial:n.isInitial,immediate:!0});e.firePageLoadEndEvent(r,t),e.flushResourceLoadEvents(t)}var i=e.collector.collect({isInitial:n.isInitial,immediate:!0});e.fireRumEvent(i,t)}}))}},{key:"flushResourceLoadEvents",value:function(e){var t,n,r=this,i=null===(t=this.responseRleCache)||void 0===t?void 0:t.flushCache();null==i||i.map((function(t){r.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,r=this.stateWM.get(t),i=r.startTime,o=r.endProps,a=r.pageLoadId,s=r.pageKey;if(o){var c=o.renderCompleteTime,l=o.isImpactedByHiddenWindow;if(a?e.pageLoadId=a:mn("PageLoadEndEvent",Tr),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||i,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 r,i=null!==(r=this.getPageLoadIdFromState(t))&&void 0!==r?r:this.pageLoadId;if(!i)return void this.initialResourcesEvents.push(e);this.initialResourcesEvents.length>0&&(this.initialResourcesEvents.forEach((function(e){e.parentPageLoadId=i,n.core.fireEvent({appId:n.config["app-id"],eventName:"ResourceLoadEvent"},e)})),this.initialResourcesEvents=[]),e.parentPageLoadId=i,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,r=this.stateWM.get(t),i=r.startTime,o=r.endProps;if(o){var a=o.renderCompleteTime,s=o.isImpactedByHiddenWindow,c=o.rumKey,l=this.boomerangStart=e.navigationStart||this.boomerangStart,u=e.navigationStart||i,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)})),r.fireRumEventTimeout&&clearTimeout(r.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,r=null===(n=document)||void 0===n||null===(n=n.cookie)||void 0===n?void 0:n.split(";"),i={issueTime:0,browserId:""};try{i=function(e){var t,n={issueTime:0,browserId:""},r=le(e);try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=");if(i.length>1&&"bscookie"===i[0]){var o=decodeURIComponent(i[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){r.e(e)}finally{r.f()}return n}(r)}catch(e){}var o={type:e,bsCookieInfo:i,payload:t};this.core.fireEvent({appId:this.config["app-id"],eventName:"ApfcEvent"},o)}},{key:"generateResourceLoadEventFromResponseContext",value:function(e,t){var n=t.requestTime,r=t.viewNames,i=t.requestType,o={resourceKey:e,isNetwork:!0,targetViewNames:r||[],loadType:"serversideresponse",resourceNetworkContext:te({},ce(t,Z)),resourceProgressStates:[],timeOrigin:n};return i&&(o.loadType=i),o}},{key:"triggerDeviceSignalCollection",value:function(e){var t=e.onlyTriggerOnDemandFlow;this.collector.triggerDeviceSignalCollection({onlyTriggerOnDemandFlow:t})}},{key:"getAbuseDeviceSignalCollectionConfig",value:function(e){var t,n,r,i,o,a,s,c,l,u,d,h,p,f,v,g,m,y,E,b,w,T,_,S,C,k,I,A,O,R=null===(t=(n=e.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.fireApfcEvent"),L=!1,N=!1,D=!1,x=!1,P=!1,M=!1;if("enabled"===R)L=!0;else if(null!=R&&R.startsWith("v2:")){var U=R.split(":");if(2===U.length){var F=new Set(U[1].split(","));L=F.has("a"),x=F.has("b"),P=F.has("c"),N=F.has("d"),D=F.has("e"),M=F.has("f")}}return{isDnaIntegrationLixEnabled:L=L||"enabled"===(null===(r=e.host.abuseDeviceSignalCollectionConfig)||void 0===r?void 0:r.webviewDnaMemberLixTreatment)||"enabled"===(null===(i=e.host.abuseDeviceSignalCollectionConfig)||void 0===i?void 0:i.dnaMemberLixTreatment),isHumanIntegrationLixEnabled:N=N||"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:D=D||"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===(v=e.host.abuseDeviceSignalCollectionConfig)||void 0===v?void 0:v.samplingTimeWindowInMillis,isOnDemandFingerprintingEnabled:M=M||"enabled"===(null===(g=(m=e.host).__getLixTreatment)||void 0===g?void 0:g.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=(T=e.host).__getLixTreatment)||void 0===w?void 0:w.call(T,"sync.apfc.couchbase"))||"enabled"===(null===(_=e.host.abuseDeviceSignalCollectionConfig)||void 0===_?void 0:_.syncFingerprintingEnabledWithCbLixTreatment),isRecaptchaV3IntegrationEnabled:x=x||"enabled"===(null===(S=(C=e.host).__getLixTreatment)||void 0===S?void 0:S.call(C,"pemberly.tracking.recaptcha.v3"))||"enabled"===(null===(k=e.host.abuseDeviceSignalCollectionConfig)||void 0===k?void 0:k.recaptchaV3IntegrationLixValue),isNetworkInterceptorEnabled:P=P||"enabled"===(null===(I=(A=e.host).__getLixTreatment)||void 0===I?void 0:I.call(A,"pemberly.tracking.apfc.network.interceptor"))||"enabled"===(null===(O=e.host.abuseDeviceSignalCollectionConfig)||void 0===O?void 0:O.networkInterceptorLixValue)}}}])}();var eo,to="undefined"!=typeof window&&"undefined"!=typeof performance,no="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function ro(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax",n=arguments.length>2?arguments[2]:void 0;e.fireTrackingEvent("PageViewEvent",io(n,t))}function io(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ajax";const n=p(document),r=f(document),i=W();let o={};return i&&(o.theme=i.toUpperCase()),r&&(o.interfaceLocale=r),e&&(o.pageKey=e),{header:{},requestHeader:o,pageType:t,trackingInfo:{clientTimestamp:Date.now(),pageTag:n}}}!function(){function e(t,n){fe(this,e),me(this,"trackingCore",void 0),me(this,"endPageInstance",void 0),me(this,"startPageInstance",void 0),me(this,"featureIdentifier",void 0),me(this,"marks",[]),me(this,"spans",[]),me(this,"spanStarts",new Map),me(this,"started",!1),me(this,"ended",!1),me(this,"featureKey",void 0),me(this,"productName",void 0),me(this,"flushOnEnd",void 0),me(this,"basePageTreeId",void 0),me(this,"debounceFlush",void 0),me(this,"disableAutoFlush",void 0),me(this,"isCanceled",!1),me(this,"isClosed",!1),this.trackingCore=t;var r=n.featureKey,i=n.productName,o=n.flushDebounceMilliseconds,a=n.flushOnEnd;this.featureKey=r,this.productName=i,this.flushOnEnd=a;var s=i?"::".concat(i):"";this.featureIdentifier="".concat(r).concat(s);var c=void 0!==o?o:3e3;c>0&&(this.debounceFlush=function(e,t,n){var r,i,o;void 0===t&&(t=50),void 0===n&&(n={});var a=null!=(r=n.isImmediate)&&r,s=null!=(i=n.callback)&&i,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(r,i){var c=a&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!a){var r=e.apply(n,t);s&&s(r),u.forEach((function(e){return(0,e.resolve)(r)})),u=[]}}),d()),c){var h=e.apply(n,t);return s&&s(h),r(h)}u.push({resolve:r,reject:i})}))};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}ge(e,[{key:"start",value:function(e){var t;if(to){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(to){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){to&&(this.marks.push({name:e,startTime:Xr()}),no&&(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){to&&(this.spanStarts.set(e,Xr()),no&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(to&&this.spanStarts.has(e)){var n=this.spanStarts.get(e),r=t||e;this.spans.push({name:r,startTime:n,duration:Xr()-n}),no&&(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){to&&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||ln(be),r={name:e.featureKey,startTime:-1,duration:-1,startPageInstance:n,marks:e.marks,spans:e.spans};return e.productName&&(r.productName=e.productName),e.basePageTreeId&&(r.basePageTreeId=e.basePageTreeId),r}),t)}},{key:"cancel",value:function(){this.isCanceled=!0}},{key:"check",value:function(){if(to){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"}(eo||(eo={}));const{ENTER:oo,ESCAPE:ao}=m;class so{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,shouldMoveToTopContainer:i=!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,i&&(this._topLevelContainer=this._getTopLevelContainer()),this._wrapperEl=this._el.querySelector(".modal__wrapper"),this._overlayEl=this._el.querySelector(".modal__overlay"),o&&(this._events=o),r&&(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=i,this.onClose=c;this._el.querySelector("[id='modalNoDismiss']")&&(this._isModalNonDismissible=!0),this._focusElement=a,r&&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 L(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=E(e.key),n=t===oo&&document.activeElement===this._exitButtonEl;(t===ao||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),d(this._el,"open"),this._wrapperEl&&this._wrapperEl.focus(),this._focusTrap.init(),this._enablePageViewTracking&&window.tracking?window.tracking.then(e=>{ro(e,"ajax",this._pageKey||""+this._el.id)}):(d(this._wrapperEl,"afterOpen"),Promise.resolve());d(this._el,"didNotOpen")}async close(){var e,t,n,r,i;this._events.onBeforeClose&&await(null===(n=this._events)||void 0===n||null===(r=n.onBeforeClose)||void 0===r?void 0:r.call(n,this._wrapperEl));this.isOpen&&(null===(i=this.onClose)||void 0===i||i.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),d(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 co(e,t){t=t||"log";if("undefined"!=typeof window&&window&&window.jet&&"error"===t.toLowerCase())try{throw new Error(e)}catch(e){try{window.jet.error(e)}catch(e){}}"undefined"!=typeof console&&"function"==typeof console[t]&&console[t](e)}const lo=/ /g,uo=/[\s\u0000<>"]|%00/,ho=/\\/,po=/([.]|%2e){2}/i;let fo=new RegExp("^(?:HTTPS?|https?|ftp|mailto|tel|sms|blob|voyager|android-app|linkedin|chrome-extension|invalid|data:(?:(?:image/(?:gif|jpe?g|png|webp|bmp|tiff))|(?:application/x-font-woff)|(?:font/(?:opentype|ttf)))[;,]|[/.#?])");function vo(e){let t;if("string"!=typeof e)return co("jSecure Warning: url must be a string","error"),"invalid://";if(t=e.trim(),t.indexOf(" ")>-1&&(co("jSecure Warning: url should not contain spaces: "+e,"warn"),t=t.replace(lo,"+")),!fo.test(t))return co("jSecure Error: URL should be absolute with allowed schemas, relative, a hash fragment or query string. "+e,"error"),"invalid://";if(uo.test(t))return co("jSecure Error: not valid url character found in url: "+e,"error"),"invalid://";let n,r=t.split("?")[0],i=!1;try{n=decodeURI(r)}catch(e){i=!0}return i?(co("jSecure Error: malformed url path detected: "+r),"invalid://"):ho.test(r)||po.test(r)||po.test(n)?(co("jSecure Error: malicious data found in url path: "+r,"error"),"invalid://"):e}const go={redirect(e){window&&(window.location.href=e)}};function mo(e){return e.scrollHeight>e.offsetHeight}function yo(e,t){const n=o(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Eo(e){wo([e])}function bo(e){To([e])}function wo(e){yo(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function To(e){yo(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function _o(e){null==e||e.setAttribute("disabled","disabled"),null==e||e.setAttribute("aria-disabled","true")}function So(e){null==e||e.removeAttribute("disabled"),null==e||e.removeAttribute("aria-disabled")}function Co(){return document.documentElement.classList.contains("safari")}function ko(){return document.documentElement.classList.contains("ios")}function Io(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document;const r=null==n?void 0:n.querySelector("."+e);if(r&&mo(r)){const i=n.querySelector(t);null==i||i.classList.remove("invisible"),null==i||i.addEventListener("click",()=>{r.classList.remove(e),i.classList.add("invisible")})}}const Ao={};function Oo(e){const t=document.getElementById(e);if(!t&&void 0!==Ao[e])return Ao[e];if(!t)return console.warn(`Element with id: ${e} not found`),Ao[e]=null,Ao[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):(Ao[e]=n,t.parentNode.removeChild(t),Ao[e])}function Ro(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lo=Object.hasOwnProperty,No=Object.setPrototypeOf,Do=Object.isFrozen,xo=Object.getPrototypeOf,Po=Object.getOwnPropertyDescriptor,Mo=Object.freeze,Uo=Object.seal,Fo=Object.create,Bo="undefined"!=typeof Reflect&&Reflect,jo=Bo.apply,Ho=Bo.construct;jo||(jo=function(e,t,n){return e.apply(t,n)}),Mo||(Mo=function(e){return e}),Uo||(Uo=function(e){return e}),Ho||(Ho=function(e,t){return new(Function.prototype.bind.apply(e,[null].concat(
/*! @license DOMPurify 2.3.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.5/LICENSE */
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 Go,qo=Zo(Array.prototype.forEach),Wo=Zo(Array.prototype.pop),Ko=Zo(Array.prototype.push),zo=Zo(String.prototype.toLowerCase),Vo=Zo(String.prototype.match),Xo=Zo(String.prototype.replace),Yo=Zo(String.prototype.indexOf),Qo=Zo(String.prototype.trim),Jo=Zo(RegExp.prototype.test),$o=(Go=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ho(Go,t)});function Zo(e){return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return jo(e,t,r)}}function ea(e,t){No&&No(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=zo(r);i!==r&&(Do(t)||(t[n]=i),r=i)}e[r]=!0}return e}function ta(e){var t=Fo(null),n=void 0;for(n in e)jo(Lo,e,[n])&&(t[n]=e[n]);return t}function na(e,t){for(;null!==e;){var n=Po(e,t);if(n){if(n.get)return Zo(n.get);if("function"==typeof n.value)return Zo(n.value)}e=xo(e)}return function(e){return console.warn("fallback value for",e),null}}var ra=Mo(["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"]),ia=Mo(["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"]),oa=Mo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),aa=Mo(["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"]),sa=Mo(["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"]),ca=Mo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),la=Mo(["#text"]),ua=Mo(["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"]),da=Mo(["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"]),ha=Mo(["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"]),pa=Mo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fa=Uo(/\{\{[\s\S]*|[\s\S]*\}\}/gm),va=Uo(/<%[\s\S]*|[\s\S]*%>/gm),ga=Uo(/^data-[\-\w.\u00B7-\uFFFF]/),ma=Uo(/^aria-[\-\w]+$/),ya=Uo(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ea=Uo(/^(?:\w+script|data):/i),ba=Uo(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wa="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 Ta(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 _a=function(){return"undefined"==typeof window?null:window},Sa=function(e,t){if("object"!==(void 0===e?"undefined":wa(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 r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}};var Ca=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_a(),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 r=t.document,i=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,v=c.prototype,g=na(v,"cloneNode"),m=na(v,"nextSibling"),y=na(v,"childNodes"),E=na(v,"parentNode");if("function"==typeof a){var b=i.createElement("template");b.content&&b.content.ownerDocument&&(i=b.content.ownerDocument)}var w=Sa(f,r),T=w?w.createHTML(""):"",_=i,S=_.implementation,C=_.createNodeIterator,k=_.createDocumentFragment,I=_.getElementsByTagName,A=r.importNode,O={};try{O=ta(i).documentMode?i.documentMode:{}}catch(e){}var R={};n.isSupported="function"==typeof E&&S&&void 0!==S.createHTMLDocument&&9!==O;var L=fa,N=va,D=ga,x=ma,P=Ea,M=ba,U=ya,F=null,B=ea({},[].concat(Ta(ra),Ta(ia),Ta(oa),Ta(sa),Ta(la))),j=null,H=ea({},[].concat(Ta(ua),Ta(da),Ta(ha),Ta(pa))),G=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}})),q=null,W=null,K=!0,z=!0,V=!1,X=!1,Y=!1,Q=!1,J=!1,$=!1,Z=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,ae=ea({},["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=ea({},["audio","video","img","source","image","track"]),le=null,ue=ea({},["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,ve=!1,ge=void 0,me=["application/xhtml+xml","text/html"],ye="text/html",Ee=void 0,be=null,we=i.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},_e=function(e){be&&be===e||(e&&"object"===(void 0===e?"undefined":wa(e))||(e={}),e=ta(e),F="ALLOWED_TAGS"in e?ea({},e.ALLOWED_TAGS):B,j="ALLOWED_ATTR"in e?ea({},e.ALLOWED_ATTR):H,le="ADD_URI_SAFE_ATTR"in e?ea(ta(ue),e.ADD_URI_SAFE_ATTR):ue,se="ADD_DATA_URI_TAGS"in e?ea(ta(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ea({},e.FORBID_CONTENTS):ae,q="FORBID_TAGS"in e?ea({},e.FORBID_TAGS):{},W="FORBID_ATTR"in e?ea({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,K=!1!==e.ALLOW_ARIA_ATTR,z=!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,J=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,U=e.ALLOWED_URI_REGEXP||U,fe=e.NAMESPACE||pe,e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(G.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(G.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(G.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ge=ge=-1===me.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===ge?function(e){return e}:zo,X&&(z=!1),Z&&($=!0),ie&&(F=ea({},[].concat(Ta(la))),j=[],!0===ie.html&&(ea(F,ra),ea(j,ua)),!0===ie.svg&&(ea(F,ia),ea(j,da),ea(j,pa)),!0===ie.svgFilters&&(ea(F,oa),ea(j,da),ea(j,pa)),!0===ie.mathMl&&(ea(F,sa),ea(j,ha),ea(j,pa))),e.ADD_TAGS&&(F===B&&(F=ta(F)),ea(F,e.ADD_TAGS)),e.ADD_ATTR&&(j===H&&(j=ta(j)),ea(j,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ea(le,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===ae&&(oe=ta(oe)),ea(oe,e.FORBID_CONTENTS)),ne&&(F["#text"]=!0),Y&&ea(F,["html","head","body"]),F.table&&(ea(F,["tbody"]),delete q.tbody),Mo&&Mo(e),be=e)},Se=ea({},["mi","mo","mn","ms","mtext"]),Ce=ea({},["foreignobject","desc","title","annotation-xml"]),ke=ea({},ia);ea(ke,oa),ea(ke,aa);var Ie=ea({},sa);ea(Ie,ca);var Ae=function(e){var t=E(e);t&&t.tagName||(t={namespaceURI:pe,tagName:"template"});var n=zo(e.tagName),r=zo(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===pe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Se[r]):Boolean(ke[n]);if(e.namespaceURI===de)return t.namespaceURI===pe?"math"===n:t.namespaceURI===he?"math"===n&&Ce[r]:Boolean(Ie[n]);if(e.namespaceURI===pe){if(t.namespaceURI===he&&!Ce[r])return!1;if(t.namespaceURI===de&&!Se[r])return!1;var i=ea({},["title","style","font","a","script"]);return!Ie[n]&&(i[n]||!ke[n])}return!1},Oe=function(e){Ko(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=T}catch(t){e.remove()}}},Re=function(e,t){try{Ko(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ko(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!j[e])if($||Z)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){var t=void 0,n=void 0;if(J)e="<remove></remove>"+e;else{var r=Vo(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(fe===pe)try{t=(new p).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=S.createDocument(fe,"template",null);try{t.documentElement.innerHTML=ve?"":o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),fe===pe?I.call(t,Y?"html":"body")[0]:Y?t.documentElement:a},Ne=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},De=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},xe=function(e){return"object"===(void 0===s?"undefined":wa(s))?e instanceof s:e&&"object"===(void 0===e?"undefined":wa(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Pe=function(e,t,r){R[e]&&qo(R[e],(function(e){e.call(n,t,r,be)}))},Me=function(e){var t=void 0;if(Pe("beforeSanitizeElements",e,null),De(e))return Oe(e),!0;if(Vo(e.nodeName,/[\u0080-\uFFFF]/))return Oe(e),!0;var r=Ee(e.nodeName);if(Pe("uponSanitizeElement",e,{tagName:r,allowedTags:F}),!xe(e.firstElementChild)&&(!xe(e.content)||!xe(e.content.firstElementChild))&&Jo(/<[/\w]/g,e.innerHTML)&&Jo(/<[/\w]/g,e.textContent))return Oe(e),!0;if("select"===r&&Jo(/<template/i,e.innerHTML))return Oe(e),!0;if(!F[r]||q[r]){if(ne&&!oe[r]){var i=E(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(g(o[a],!0),m(e))}if(!q[r]&&Fe(r)){if(G.tagNameCheck instanceof RegExp&&Jo(G.tagNameCheck,r))return!1;if(G.tagNameCheck instanceof Function&&G.tagNameCheck(r))return!1}return Oe(e),!0}return e instanceof c&&!Ae(e)?(Oe(e),!0):"noscript"!==r&&"noembed"!==r||!Jo(/<\/no(script|embed)/i,e.innerHTML)?(X&&3===e.nodeType&&(t=e.textContent,t=Xo(t,L," "),t=Xo(t,N," "),e.textContent!==t&&(Ko(n.removed,{element:e.cloneNode()}),e.textContent=t)),Pe("afterSanitizeElements",e,null),!1):(Oe(e),!0)},Ue=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in we))return!1;if(z&&!W[t]&&Jo(D,t));else if(K&&Jo(x,t));else if(!j[t]||W[t]){if(!(Fe(e)&&(G.tagNameCheck instanceof RegExp&&Jo(G.tagNameCheck,e)||G.tagNameCheck instanceof Function&&G.tagNameCheck(e))&&(G.attributeNameCheck instanceof RegExp&&Jo(G.attributeNameCheck,t)||G.attributeNameCheck instanceof Function&&G.attributeNameCheck(t))||"is"===t&&G.allowCustomizedBuiltInElements&&(G.tagNameCheck instanceof RegExp&&Jo(G.tagNameCheck,n)||G.tagNameCheck instanceof Function&&G.tagNameCheck(n))))return!1}else if(le[t]);else if(Jo(U,Xo(n,M,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Yo(n,"data:")||!se[e]){if(V&&!Jo(P,Xo(n,M,"")));else if(n)return!1}else;return!0},Fe=function(e){return e.indexOf("-")>0},Be=function(e){var t=void 0,r=void 0,i=void 0,o=void 0;Pe("beforeSanitizeAttributes",e,null);var a=e.attributes;if(a){var s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:j};for(o=a.length;o--;){var c=t=a[o],l=c.name,u=c.namespaceURI;if(r=Qo(t.value),i=Ee(l),s.attrName=i,s.attrValue=r,s.keepAttr=!0,s.forceKeepAttr=void 0,Pe("uponSanitizeAttribute",e,s),r=s.attrValue,!s.forceKeepAttr&&(Re(l,e),s.keepAttr))if(Jo(/\/>/i,r))Re(l,e);else{X&&(r=Xo(r,L," "),r=Xo(r,N," "));var d=Ee(e.nodeName);if(Ue(d,i,r))try{u?e.setAttributeNS(u,l,r):e.setAttribute(l,r),Wo(n.removed)}catch(e){}}}Pe("afterSanitizeAttributes",e,null)}},je=function e(t){var n=void 0,r=Ne(t);for(Pe("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Pe("uponSanitizeShadowNode",n,null),Me(n)||(n.content instanceof o&&e(n.content),Be(n));Pe("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var a=void 0,c=void 0,l=void 0,u=void 0,d=void 0;if((ve=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xe(e)){if("function"!=typeof e.toString)throw $o("toString is not a function");if("string"!=typeof(e=e.toString()))throw $o("dirty is not a string, aborting")}if(!n.isSupported){if("object"===wa(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(xe(e))return t.toStaticHTML(e.outerHTML)}return e}if(Q||_e(i),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){var h=Ee(e.nodeName);if(!F[h]||q[h])throw $o("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?T:""}a&&J&&Oe(a.firstChild);for(var p=Ne(re?e:a);l=p.nextNode();)3===l.nodeType&&l===u||Me(l)||(l.content instanceof o&&je(l.content),Be(l),u=l);if(u=null,re)return e;if($){if(Z)for(d=k.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return j.shadowroot&&(d=A.call(r,d,!0)),d}var f=Y?a.outerHTML:a.innerHTML;return X&&(f=Xo(f,L," "),f=Xo(f,N," ")),w&&ee?w.createHTML(f):f},n.setConfig=function(e){_e(e),Q=!0},n.clearConfig=function(){be=null,Q=!1},n.isValidAttribute=function(e,t,n){be||_e({});var r=Ee(e),i=Ee(t);return Ue(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(R[e]=R[e]||[],Ko(R[e],t))},n.removeHook=function(e){R[e]&&Wo(R[e])},n.removeHooks=function(e){R[e]&&(R[e]=[])},n.removeAllHooks=function(){R={}},n}();const ka={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Ia(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i={...ka};i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=Ca.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}var Aa="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Oa=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Ra=["b","del","em","i","s","strong","sub","sup"],La=Ra.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"]),Na=[Aa,"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 Da(){}var xa,Pa,Ma=(Pa=/[&<>"'\u0000\\=]/g,xa={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},function(e){return null==e?null:e.toString().replace(Pa,(function(e){return xa[e]}))}),Ua=function(){var e,t,n=/&(?:([a-z0-9]+)|#x([\da-f]{1,6})|#(\d{1,8}));/gi;if("undefined"==typeof document)return function(){throw new Error("document is undefined (i.e. you are probably in Node.js)")};e=document.createElement("div");var r={nbsp:" ",lt:"<",gt:">",amp:"&",quot:'"'};return t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"},function(i){return null==i?null:(i+"").replace(n,(function(n,i,o,a){return i?(s=i,r.hasOwnProperty(s)?r[s]:(e.innerHTML="&"+s+";",c=e[Oa],r[s]=c,c)):o||a?t(parseInt(o||a,o?16:10)||65533):"�";var s,c}))}}();var Fa=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function Ba(e){return/[<&]/.test(e)}var ja,Ha=Array.prototype.forEach?function(e,t){Array.prototype.forEach.call(e,t)}:function(e,t){for(var n=0,r=e.length;n<r;n++)t(e[n],n)};function Ga(e){e=Fa(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",Ha(e,(function(e,a){t=e.tags||La,n=e.attrs||Na,r=e.checkUrlAttrs||!1,0!==a&&(o+="|"),o+="(?:"+t.join("|")+")",o+="(?:",o+="[ \t\r\n]*",o+="|[ \t\r\n]+",o+="(?:(?:",o+="(?:"+n+")(?:=([\"'])[^'\"<>]*\\"+ ++i+")?",r&&(o+="|(?:href|src)=([\"'])(?:(?:https?|ftp|mailto|invalid)(?::|&#(?:58|x3a);)|(?:data:image/(?:gif|jpg|jpeg|png);base64,)|[/.#?]|&#(?:35|4[67]|63|x(?:2[3ef]|3f));)[^'\"<>]*\\"+ ++i),o+=")[ \t\r\n]*)+",o+=")"})),o+=")",o+="/?>)",new RegExp(o,"i")}function qa(e){return Ga({tags:e=e||La,checkUrlAttrs:!0})}function Wa(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!qa(n).test(e):r?!Wa.R_UNSAFE_CUSTOM_ELEMENT.test(e):!Wa.R_UNSAFE_HTML.test(e)}function Ka(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}function za(e,t,n){if(null==e)return null;e=e.toString();var r=t?function(e,t){var n={};return e.replace(/\{([^}]+)\}/g,(function(e,r){var i,o=e;if(n.hasOwnProperty(r))return n[r];if(t.hasOwnProperty(r)){if(!((i="string"==typeof(o=t[r]))||o instanceof Da||"number"==typeof o))throw new Error("Only strings, numbers, and jSecure types are allowed as placeholder replacements.");o=i?Ma(o):o.toString()}return n[r]=o,o}))}(e,t):e,i=e;return Ba(r)&&!Wa(r,n)&&(r=Ka(r),co("Content contains non-whitelisted tags or attributes:\nContent: "+i,"error")),r}function Va(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e}Wa.R_UNSAFE_HTML=qa(),Wa.R_UNSAFE_CUSTOM_ELEMENT=Ga([{tags:La,checkUrlAttrs:!0},{tags:[(ja={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Aa,ja.attrs].join("|"),checkUrlAttrs:!1}]);var Xa={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,"",""]};Xa.optgroup=Xa.option,Xa.tbody=Xa.tfoot=Xa.colgroup=Xa.caption=Xa.thead,Xa.th=Xa.td;var Ya=/<([\w:]+)/;function Qa(e,t){var n,r,i,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(i=i||l.appendChild(t.createElement("div")),n=(Ya.exec(o)||["",""])[1].toLowerCase(),Za(i,(r=Xa[n]||Xa._default)[1]+o+r[2]),s=r[0];s--;)i.lastChild&&i.lastChild.nodeType===Node.ELEMENT_NODE&&(i=i.lastChild);Va(u,i.childNodes),(i=l.firstChild).textContent=""}else Va(u,o.nodeType?[o]:o);for(l.textContent="",o=u[a=0];o;)l.appendChild(o),o=u[++a];return l}var Ja=za,$a=za;function Za(e,t,n){var r=za(t,n);return Ba(r)?e.innerHTML=r:e[Oa]=r,r}function es(e,t){if(!(this instanceof es))return new es(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}es.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new Da,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(Wa(e,this._options)||(n=e,e=Ka(e),co("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});var ts={ALLOWED_TAGS:La,FORMATTING_TAGS:Ra,htmlEncode:Ma,htmlUnencode:Ua,log:co,mk:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];let i,o="",a=n.length;return e&&e.forEach((function(e,t){o+=e,t<a&&(i=n[t],o+=i instanceof es?i:Ma(i))})),$a(o)},parseHTML:function(e,t){var n;if(t=t||document.implementation&&document.implementation.createHTMLDocument?document.implementation.createHTMLDocument(""):document,"string"==typeof e)n=Qa([e],t);else{if(!Fa(e))return e;n=Qa(e,t)}return Va([],n.childNodes)},parseSelector:function(e){return"string"==typeof e&&/^(?:\s*(<[\w\W]+>)[^>]*)$/.test(e)?[]:e},processTemplate:Ja,reEncode:function(e){return Ma(Ua(e))},_redirector:go,redirect:function(e){const t=vo(e);t===e&&go.redirect(t)},sanitizeHTML:$a,sanitizeUrl:vo,setElementContent:Za,text:function(e){return co("jSecure.text() is deprecated. Please use jSecure.htmlEncode().","warn"),Ma(e)},unsafe:function(e){return e},UnsafeString:es};function ns(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 r=0;const i=window.setInterval((function(){e.focus(),r>=n&&window.clearInterval(i),r++}),t)}else e.focus()}const rs=".toast",is=Object.freeze({CAUTION:"caution",ERROR:"error",GDPR:"gdpr",NOTIFY:"notify",SUCCESS:"success"});class os{constructor(){let{removeToastCallback:e=(()=>{}),visibleToastCallback:t=(()=>{}),customToastSelector:n=rs}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=document.getElementById("toasts");if(!r)throw new Error("No toasts element");this._el=r,this._position=r.getAttribute("type"),this.visibleToastCallback=t,this.removeToastCallback=e,this.bindEvents(n)}trigger(e,t,n,r){let i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(!e||!Object.values(is).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,r);return this._addToast(a,i)}clearAllToasts(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rs;let t=this._el.querySelectorAll(e);Array.from(t).forEach(e=>{this._removeToast(e)})}bindEvents(e){this._el.addEventListener("click",n=>{const r=t(n.target,".toast__dismiss-btn");if(r){const n=t(r,e);n&&this._removeToast(n)}})}_isValidCtaMetadata(e){return["url","trk","text"].every(t=>e.hasOwnProperty(t))}_createToastEl(e,t,n,r){const i=document.querySelector("#toast-template").content.firstElementChild.cloneNode(!0),o=document.querySelector("#toast-icon-"+e).content.firstElementChild.cloneNode(!0);if(!i||!o)throw new Error("Toast templates are missing");i.classList.add("toast--"+e),i.setAttribute("type",e);const a=i.querySelector(".toast__message");a.insertBefore(o,a.firstElementChild);i.querySelector(".toast__dismiss-btn").setAttribute("data-tracking-control-name",n+"_dismiss");const c=i.querySelector(".toast__message-content");let l="text-color-text-neutral";if(e===is.CAUTION?l="text-color-text-caution":e===is.ERROR?l="text-color-text-negative":e===is.SUCCESS&&(l="text-color-text-positive"),c.classList.add(l),Ia(c,t),r&&this._isValidCtaMetadata(r)){const e=i.querySelector(".toast__message-content-container"),t=document.querySelector("#toast-cta").content.firstElementChild.cloneNode(!0),n=r.target||"_blank";t.setAttribute("href",ts.sanitizeUrl(s(r.url,r.trk))),t.setAttribute("target",n),t.textContent=r.text,e.classList.add(l),e.append(t)}return i}_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&&ns(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()})}}Ro(os,"TOAST_TYPES",is),Ro(os,"TOAST_ADD_TIMEOUT",500);const as={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(as).map(e=>as[e]);const ss=["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(ss,"i");Object.freeze({VERTICAL:"4:5",HORIZONTAL:"16:9",SQUARED:"1:1"});new Uint8Array(16);const cs=[];for(let e=0;e<256;++e)cs.push((e+256).toString(16).slice(1));"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);function ls(){let{endpoint:e,headers:t={"Content-Type":"application/json"},queryId:n,variables:r={},...i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=h(document);if(!o)throw new Error("Missing pageKey for graphQL request from browser");return P(e,{method:"POST",headers:t,postData:JSON.stringify({queryId:n,variables:r,pageKey:o}),...i})}class us{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:r=(()=>{}),failureCallback:i=(()=>{})}=e;return ls({endpoint:this.endpoint,queryId:n,variables:t,pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;return r(JSON.parse(t).graphQL)}).catch(i)}}class ds extends us{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:ds.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})}}Ro(ds,"query","2849bb08e3a3bbd23c96c0e758c018b7");class hs extends us{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:hs.query,variables:{url:e},successCallback:t,failureCallback:n})}}Ro(hs,"query","bece320b5f70fe4357082fe84eca6c56");class ps extends so{constructor(e){let{enablePageViewTracking:t=!1,shouldHideModal:n=(()=>!1),triggerByOutletEl:r=!0,pushState:i=!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:r,shouldMoveToTopContainer:o,focusElement:a,pageKey:s}),this.pushState=i,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);h(document);String.fromCharCode(32);const fs=/\!|\@|\#|\$|\%|\^|\&|\*|\+|\=|\||<|\>|\?|\:|\;/,vs=/(.)\1{3}/,gs=/linkedin/i,ms=/\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]+)?(/.*)?"),Es=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,bs=/^[\u4E00-\u9FFF|\u3400-\u4DBF|\uF900-\uFAFF]*$/,ws=/^[ぁ-ゔゞ゛゜ー]*$/,Ts=/^[+]?[\s./0-9]*[(]?[0-9]{1,4}[)]?[-\s./0-9]*$/,_s=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},Ss=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},Cs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ms.test(e)};Cs.errorMessagePrefix="i18n_noConsecutiveDigits_";const ks=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!fs.test(e)};ks.errorMessagePrefix="i18n_noForbiddenCharacters_";const Is=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!vs.test(e)};Is.errorMessagePrefix="i18n_noFourConsecutiveDuplicates_";const As=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!gs.test(e)};As.errorMessagePrefix="i18n_noLinkedIn_";const Os=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return!ys.test(e)};Os.errorMessagePrefix="i18n_noUrl_";const Rs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return bs.test(e)};Rs.errorMessagePrefix="i18n_onlyChinese_";const Ls=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return ws.test(e)};Ls.errorMessagePrefix="i18n_onlyPhonetic_";const Ns=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""!==e.trim()};Ns.errorMessagePrefix="i18n_required_";const Ds=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Es.test(e)};Ds.errorMessagePrefix="i18n_invalidFormat_";const xs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Ts.test(e)};xs.errorMessagePrefix="i18n_invalidFormat_";const Ps=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return Es.test(e)||Ts.test(e)};Ps.errorMessagePrefix="i18n_invalidFormat_";const Ms=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e};Ms.errorMessagePrefix="i18n_required_";const Us=[_s(50),ks,Cs,Is,As,Os],Fs=[Ns].concat(Us),Bs=[Ls,_s(50),Is];_s(4),Ss(2),_s(128),_s(128),_s(128),(e=>{const t=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return""===t||e(t)};t.errorMessagePrefix=e.errorMessagePrefix})(Ds),Ss(6),_s(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],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;n++)t[n].call(this,e);return!e.defaultPrevented},window.EventTarget=e}();const js="990339570472-k6nqn1tpmitg8pui82bfaun3jrpmiuhs.apps.googleusercontent.com",Hs={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Gs={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},qs={SIGN_IN:"signin",SIGN_UP:"signup",USE:"use"},Ws={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},Ks={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:zs,GOOGLE_USER_FETCHED:Vs,INITIALIZED:Xs}=Hs,{INITIALIZATION:Ys,AUTHENTICATION:Qs}=Gs;EventTarget;const{GOOGLE_USER_FETCHED:Js,PROMPT_MOMENT:$s,GOOGLE_ERROR:Zs}=Hs;EventTarget;var ec={exports:{}};function tc(e){this.message=e}tc.prototype=new Error,tc.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 tc("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a};var rc=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 ic(e){this.message=e}ic.prototype=new Error,ic.prototype.name="InvalidTokenError",ec.exports=function(e,t){if("string"!=typeof e)throw new ic("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(rc(e.split(".")[n]))}catch(e){throw new ic("Invalid token specified: "+e.message)}},ec.exports.InvalidTokenError=ic;ec.exports;const{GOOGLE_USER_FETCHED:oc,PROMPT_MOMENT:ac,GOOGLE_ERROR:sc}=Hs;EventTarget;const cc={CLIENT_ID:js,EVENTS:Hs,GOOGLE_ACCOUNT_URL:"https://accounts.google.com",GSI_ERROR_TYPES:Gs,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:qs,GOT_PROMPT_MOMENT_REASONS:Ks,GOT_PROMPT_MOMENT_TYPES:Ws},{GOT_PROMPT_MOMENT_REASONS:lc,GOT_PROMPT_MOMENT_TYPES:uc}=cc;const{EVENTS:{GOOGLE_ERROR:dc,GOOGLE_USER_FETCHED:hc,INITIALIZED:pc,PROMPT_MOMENT:fc},GOT_PROMPT_MOMENT_REASONS:vc,GOT_PROMPT_MOMENT_TYPES:gc}=cc;new Set(["百里","淳于","第五","東方 ","东方","東閣 ","东阁","東郭 ","东郭","東門 ","东门","端木","獨孤 ","独孤","公孫 ","公孙","公羊","公冶","公西","毌丘","穀梁 ","谷梁","賀蘭 ","贺兰","赫連 ","赫连","賀若 ","贺若","皇甫","黄斯","呼延","兰向","令狐","甪里","閭丘 ","闾丘","万俟","慕容","納蘭 ","纳兰","南宮 ","南宫","歐陽 ","欧阳","沙吒","上官","申屠","司馬 ","司马","司徒","司空","司寇","太史","澹臺 ","澹台","拓跋","完顏 ","完颜","聞人 ","闻人","巫馬 ","巫马","夏侯","鮮于 ","鲜于","西門 ","西门","軒轅 ","轩辕","楊子 ","杨子","耶律","樂正 ","乐正","尉遲 ","尉迟","宇文","長孫 ","长孙","鍾離 ","钟离","諸葛 ","诸葛","祝融","子車 ","子车","左人"]);const mc="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 Ec=new Set(Object.values(yc));class bc extends Error{constructor(e){super(e),Object.setPrototypeOf(this,bc.prototype)}}function wc(e){return 0===e.length||!e.trim()}function Tc(e){if("string"!=typeof e)throw new bc(`Keys must be strings. ${mc}.`);if(wc(e))throw new bc(`Keys should not be blank. ${mc}.`);if(/[^a-z0-9-]/.test(e))throw new bc(`'${e}' can only contain lowercase alphanumeric characters and dashes (-). ${mc}.`);return e}class _c{constructor(e,t,n){var r,i,o;if(this._shouldEnablePerformanceMeasurement=!1,this._shouldDisableAvailabilityCalculation=!1,this._shouldRecordSession=!1,this._featureKey=Tc(e),this._defaultDegradationKey=Tc(t),!n)return this._additionalDegradedResponseCodes=[],this._nonDegradedResponseCodes=[],void(this._degradationKeyOverrides=[]);if("object"!=typeof n)throw new bc(`DegradationTrackingMetadata options should be an object. ${mc}.`);const a=n.productName;a&&(this._productName=function(e){if("string"!=typeof e)throw new bc(`The product name must be a string. ${mc}.`);if(wc(e))throw new bc(`No product name was specified. Please configure a defaultProductName or specify it per instrumented API call. ${mc}.`);if(/[^a-zA-Z0-9-_ \\/]/.test(e))throw new bc(`Product name '${e}' can only contain alphanumeric, underscores (_), spaces ( ), dashes (-) and forward slashes (/). ${mc}.`);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 bc(`Please only specify positive integer response codes between 1 and 999 for the ${t} option. ${e} was specified. ${mc}.`);var n;if(429===e||999===e)throw new bc(`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 bc(`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 bc(`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 bc(`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. ${mc}.`);null==e||e.forEach(e=>n(e,yc.NonDegradedResponseCodes)),null==t||t.forEach(e=>n(e,yc.AdditionalDegradedResponseCodes));const r=new Set(t),i=new Set(e);if([...r].some(e=>i.has(e)))throw new bc(`Response codes can't be both degraded and non-degraded. Please ensure that your additionalDegradedResponseCodes and nonDegradedResponseCodes don't have any overlapping response codes. ${mc}.`)}(c,s),this._nonDegradedResponseCodes=c||[],this._additionalDegradedResponseCodes=s||[],this._degradationKeyOverrides=n.degradationKeyOverrides||[],this._clientSensorGroupName=n.clientSensorGroupName,this._shouldEnablePerformanceMeasurement=null!==(r=n.enablePerformanceMeasurement)&&void 0!==r&&r,this._customTrackingId=n.customTrackingId,this._shouldDisableAvailabilityCalculation=null!==(i=n.disableAvailabilityCalculation)&&void 0!==i&&i,this._shouldRecordSession=null!==(o=n.enableSessionRecording)&&void 0!==o&&o,function(e){Object.keys(e).forEach(e=>{if(!Ec.has(e))throw new bc(`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(_c.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 Sc=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Cc=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),kc=function(){function e(){Sc(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 Cc(e,[{key:"_assign",value:function(){var e=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);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,r){var i=Object.getOwnPropertyDescriptor(e,t),o=this;return Object.defineProperty(e,t,r?n:{set:function(e){var t=this;setTimeout((function(){n.set.call(t,e)}),0),i&&i.set&&i.set.call(t,e)}}),function(){return o.hookSetter(e,t,i||{},!0)}}},{key:"on",value:function(e,t,n){null==n&&(n=document);var r={capture:!0,passive:!0};return n.addEventListener(e,t,r),function(){return n.removeEventListener(e,t,r)}}},{key:"throttle",value:function(e,t,n){null==n&&(n={});var r=null,i=0;return function(o){var a=Date.now();i||!1!==n.leading||(i=a);var s=t-(a-i),c=this,l=arguments;s<=0||s>t?(r&&(window.clearTimeout(r),r=null),i=a,e.apply(c,l)):r||!1===n.trailing||(r=window.setTimeout((function(){i=!1===n.leading?0:Date.now(),r=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 r(n){var r=!1,i=!1,o=!1;if(t.isCtrlDown)if(void 0!==n.key){var a=n.key.toLowerCase();"x"===a&&(r=!0),"c"===a?i=!0:"v"===a&&(o=!0)}else void 0!==n.keyCode&&(88===keyPressed&&(r=!0),67===keyPressed?i=!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:r,isCopy:i,isPaste:o})}var i=["keydown","keyup"].map((function(e){return"keydown"===e?t.on(e,r):t.on(e,n)})),o=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"),a=[[HTMLInputElement.prototype,"value"],[HTMLTextAreaElement.prototype,"value"]];return o&&o.set&&i.push.apply(i,t._spread(a.map((function(e){return t.hookSetter(e[0],e[1],{set:function(){eventHandler({target:this})}})})))),function(){i.forEach((function(e){return e()}))}}},{key:"initMoveObserver",value:function(e,t){var n=[],r=void 0,i=this,o=i.throttle((function(t){var o=Date.now()-r;e(n.map((function(e){return e.timeOffset-=o,e})),t?i.IncrementalSource.TouchMove:i.IncrementalSource.MouseMove),n=[],r=null}),500),a=i.throttle((function(e){var t=i.isTouchEvent(e)?e.changedTouches[0]:e,a=t.clientX,s=t.clientY;r||(r=Date.now()),n.push({x:a,y:s,timeOffset:Date.now()-r}),o(i.isTouchEvent(e))}),t,{trailing:!1}),s=[i.on("mousemove",a),i.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(r){var i=r.toLowerCase(),o=function(n){return function(r){var i=t.isTouchEvent(r)?r.changedTouches[0]:r,o=i.clientX,a=i.clientY;e({type:t.MouseInteractions[n],x:o,y:a})}}(r);n.push(t.on(i,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(),r=t.getWindowWidth();e({width:Number(r),height:Number(n)})}),200);return this.on("resize",n,window)}},{key:"mergeHooks",value:function(e,t){var n=this,r=e.mousemoveCb,i=e.mouseInteractionCb,o=e.scrollCb,a=e.viewportResizeCb,s=e.inputCb;e.mousemoveCb=function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];t.mousemove&&t.mousemove.apply(t,n._spread(e)),r.apply(null,n._spread(e))},e.mouseInteractionCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.mouseInteraction&&t.mouseInteraction.apply(t,n._spread(e)),i.apply(null,n._spread(e))},e.scrollCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.scroll&&t.scroll.apply(t,n._spread(e)),o.apply(null,n._spread(e))},e.viewportResizeCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];t.viewportResize&&t.viewportResize.apply(t,n._spread(e)),a.apply(null,n._spread(e))},e.inputCb=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];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),r=this.initMouseInteractionObserver(e.mouseInteractionCb),i=this.initScrollObserver(e.scrollCb),o=this.initViewportResizeObserver(e.viewportResizeCb),a=this.initKeyboardObserver(e.keyboardCb);return function(){n(),r(),i(),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,r=e.hooks,i=50;if(void 0!==e.mousemoveWait&&(i=e.mousemoveWait),!t)throw new Error("emit function is required");this.polyfill();var o=void 0,a=this;function s(e,r){if(t(e,r),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:i},r))};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}(),Ic=function(){function e(){Sc(this,e),this.f=String.fromCharCode,this.n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",this.e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",this.t={}}return Cc(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 r,i,o,a={},s={},c="",l="",u="",d=2,h=3,p=2,f=[],v=0,g=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(r=0;r<p;r++)v<<=1,g===t-1?(g=0,f.push(n(v)),v=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<p;r++)v=v<<1|i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(i=a[u],r=0;r<p;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=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(r=0;r<p;r++)v<<=1,g===t-1?(g=0,f.push(n(v)),v=0):g++;for(i=u.charCodeAt(0),r=0;r<8;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}else{for(i=1,r=0;r<p;r++)v=v<<1|i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i=0;for(i=u.charCodeAt(0),r=0;r<16;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1}0===--d&&(d=Math.pow(2,p),p++),delete s[u]}else for(i=a[u],r=0;r<p;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1;0===--d&&(d=Math.pow(2,p),p++)}for(i=2,r=0;r<p;r++)v=v<<1|1&i,g===t-1?(g=0,f.push(n(v)),v=0):g++,i>>=1;for(;;){if(v<<=1,g===t-1){f.push(n(v));break}g++}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 r=[],i=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,v=void 0,g={val:n(0),position:t,index:1};for(l=0;l<3;l+=1)r[l]=l;for(d=0,p=Math.pow(2,2),f=1;f!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.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=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*f,f<<=1;v=this.f(d);break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*f,f<<=1;v=this.f(d);break;case 2:return""}for(r[3]=v,u=v,c.push(v);;){if(g.index>e)return"";for(d=0,p=Math.pow(2,a),f=1;f!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*f,f<<=1;switch(v=d){case 0:for(d=0,p=Math.pow(2,8),f=1;f!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*f,f<<=1;r[o++]=this.f(d),v=o-1,i--;break;case 1:for(d=0,p=Math.pow(2,16),f=1;f!==p;)h=g.val&g.position,g.position>>=1,0===g.position&&(g.position=t,g.val=n(g.index++)),d|=(h>0?1:0)*f,f<<=1;r[o++]=this.f(d),v=o-1,i--;break;case 2:return c.join("")}if(0===i&&(i=Math.pow(2,a),a++),r[v])s=r[v];else{if(v!==o)return null;s=u+u.charAt(0)}c.push(s),r[o++]=u+s.charAt(0),u=s,0===--i&&(i=Math.pow(2,a),a++)}}}]),e}(),Ac=function(){function e(){Sc(this,e),this.PREFIX="dcts-",this.CPR=new Ic}return Cc(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 r=this.compressAndSplitEvent(e);if(null!=r){for(var i={},o=0;o<r.length;o++)i[this.PREFIX+o]=r[o];return i["x-f-uc"]=t,i.csrf_token=n,JSON.stringify(i)}return null}},{key:"getParamPrefix",value:function(){return this.PREFIX}}]),e}();!function(){function e(){Sc(this,e),this.processor=new Ac,this.DEFAULT_URL="/platform-telemetry/li/gather",this.timestone=new kc,this.workerThread=null,this.events=[]}Cc(e,[{key:"init",value:function(e,t,n,r,i,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===r||isNaN(r)||(l=r);var u=this.timestone.record({emit:function(n,r){r&&a.events.length>0&&c<l?(a.collect(e,t,a.events,i),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,r){if(this.isExist(r)||(r=""),this.isExist(t)||(t="undefined-uc"),this.isExist(this.workerThread))this.workerThread.postMessage({events:n,useCase:t,csrfToken:r});else{var i=this.processor.processTelemetry(n,t,r);null!==i&&this.sendTelemetry(i,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 r=new FormData;r.append("x-f-uc",t),r.append("csrf_token",n);for(var i=this.processor.compressAndSplitEvent(this.events),o=0;o<i.length;o++)r.append(this.processor.getParamPrefix()+o,i[o]);navigator.sendBeacon(e,r)}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:Oc,GOT_CONTEXTS:Rc,GOT_PROMPT_MOMENT_TYPES:Lc}=cc,{GOOGLE_USER_FETCHED:Nc,PROMPT_MOMENT:Dc}=Oc;function xc(){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 Pc(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 Mc(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}xc(),Pc(3),Mc(128),xc(),Pc(6),Mc(400);var Uc="undefined"!=typeof window&&window||e.g;function Fc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Bc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wc(r.key),r)}}function Hc(e,t,n){return t&&jc(e.prototype,t),n&&jc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gc(e,t,n){return(t=Wc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qc(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 r,i,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=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Fc(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)?Fc(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 Wc(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function Kc(e){return(Kc="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 zc=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var Vc=/^fs_/;function Xc(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+Kc(e)+".");var t,n,r=zc.exec(e);return r&&(t=r[1].replace(Vc,""),n=r[2]),{id:n,type:t}}var Yc=/(?![^(]*\)),/;var Qc={checkForEntityId:function(e){var t=zc.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:Xc,urnToObject:function e(t){var n=Xc(t),r=n.id,i=n.type,o={};if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(Yc),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));r=s}return o[i]=r,o}};var Jc={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},$c="GUEST",Zc="MEMBER",el="ENTERPRISE_UNBOUND",tl=0,nl=1,rl=2;Gc(Gc(Gc({},$c,"li_gc"),Zc,"li_mc"),el,"li_ec");Gc(Gc(Gc({},$c,"mypreferences/g/guest-cookies"),Zc,"settings/member-cookies"),el,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var il,ol,al,sl,cl=Hc((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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in Bc(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},Jc)t[o]=t[o]||tl,t[o]!==tl&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===nl||t[o]===tl&&i===nl})),ll=(il=[Jc.ADVERTISING,Jc.ANALYTICS_AND_RESEARCH,Jc.FUNCTIONAL],ol=[tl,nl,rl,tl],al=function(e){for(var t={},n=0;n<il.length;n++)t[il[n]]=ol[e>>2*n&3];return t},sl=function(e){var t=tl;return e>=0&&e<=3&&(t=ol[e]),t},new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),ul=0,dl=1;Hc((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,r=void 0===n?null:n,i=t.issuedAt,o=void 0===i?null:i,a=t.defaultConsent,s=void 0===a?ul:a;for(var c in Bc(this,e),r=r||{},this.issuedAt=o,this.guestPreferencesMap={},ll)"number"!=typeof r[c]&&(r[c]=s),this.guestPreferencesMap[c]=r[c]===dl}));Uc.utag_data||(Uc.utag_data={});const hl="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Uc.utag_cfg_ovrd=Uc.utag_cfg_ovrd||{},Uc.trackingEventDebugData=Uc.trackingEventDebugData||[],Uc.utag_cfg_ovrd.noview=!0,Uc.utag_cfg_ovrd.nocookie=!0;hl&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Uc.navigator.userAgent);const{GOOGLE_USER_FETCHED:pl,GOOGLE_ERROR:fl,INITIALIZED:vl}=cc.EVENTS,{INITIALIZATION:gl}=cc.GSI_ERROR_TYPES;function ml(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function yl(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 El(e,t){return Math.round(e-t)}var bl,wl=(bl=function(e,t){return(bl=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}bl(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Tl=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}(),_l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wl(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(Tl),Sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wl(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(Tl),Cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return wl(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}(Tl),kl=function(){return 0},Il=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),Al=Il&&!!window.requestAnimationFrame,Ol={hasDOM:Il,hasRAF:Al,getScrollTop:kl,getScrollLeft:kl,getHeight:kl,getWidth:kl,rAF:Al?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:kl,get isDirty(){return Ol.version!==Ol.lastVersion},document:window.document,IntersectionObserver:Il&&window.IntersectionObserver,performance:Il&&window.performance};function Rl(){++Ol.version}function Ll(){var e=null!=document.scrollingElement;Ol.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Ol.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}Il&&(Ol.getHeight=function(){return window.innerHeight},Ol.getWidth=function(){return window.innerWidth},Ol.updateMeta=function(){Ol.meta.height=Ol.getHeight(),Ol.meta.width=Ol.getWidth(),Ol.meta.scrollLeft=Ol.getScrollLeft(),Ol.meta.scrollTop=Ol.getScrollTop(),Ol.lastVersion=Ol.version},Ol.updateMeta(),"loading"!==document.readyState?Ll():document.addEventListener("DOMContentLoaded",Ll),window.addEventListener("resize",Rl,!1),window.addEventListener("scroll",Rl,!1));var Nl=function(){function e(){this.reads=[],this.work=[],this.running=!1}return e.prototype.scheduleRead=function(e){this.reads.unshift(e),this.run()},e.prototype.scheduleWork=function(e){this.work.unshift(e),this.run()},e.prototype.run=function(){var e=this;this.running||(this.running=!0,Ol.rAF((function(){e.running=!1;for(var t=0,n=e.reads.length;t<n;t++)e.reads.pop()();t=0;for(var r=e.work.length;t<r;t++)e.work.pop()();(e.work.length>0||e.reads.length>0)&&e.run()})))},e}(),Dl=null;var xl=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 r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pl="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Ml=0,Ul=function(){function e(e,t,n,r,i,o,a,s,c,l){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=i,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 Ol.isDirty&&Ol.updateMeta(),e===window||e===document?(n.height=Ol.meta.height,n.width=Ol.meta.width,n.scrollLeft=Ol.meta.scrollLeft,n.scrollTop=Ol.meta.scrollTop,n):(t=yl(e),n.scrollTop=e.scrollTop,n.scrollLeft=e.scrollLeft,n.width=t.width,n.height=t.height,n.x=t.x,n.y=t.y,n.top=t.top,n.left=t.left,n)},e}();function Fl(){return Ml+++Pl}var Bl=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Dl||(Dl=new Nl)),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(Ul.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,r,i=this;this.engine.scheduleRead((function(){n=yl(e),r=Ul.generate(i.root)})),this.engine.scheduleWork((function(){t(n,r)}))},e.prototype.unwatch=function(e){this.toRemove.push(e)},e.prototype.unwatchAll=function(){this.queue.clear()},e.prototype.startTicking=function(){this.isTicking||(this.isTicking=!0,this.engine.scheduleRead(this.tick.bind(this)))},e}(),jl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new _l,t}return xl(t,e),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.id;(0,n.callback)(e,r)}},t.prototype.watch=function(e){this.startTicking();var t=Fl();return this.queue.push({callback:e,id:t}),t},t}(Bl),Hl=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return xl(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(jl),Gl=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=Ol.version,i.queue=new Cl,i.ALLOW_CACHED_SCHEDULER=r,i}return xl(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Ol.version!==this.lastVersion},enumerable:!1,configurable:!0}),t.prototype.applyQueue=function(e){for(var t=0;t<this.queue.items.length;t++){var n=this.queue.items[t],r=n.callback,i=n.el,o=n.id,a=n.clientRect;!this.isDirty&&a&&this.ALLOW_CACHED_SCHEDULER||(a=this.queue.items[t].clientRect=yl(i)),r(e,o,a)}this.lastVersion=Ol.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Fl();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(Bl),ql=null;var Wl=function(){function e(){this.queue=new Sl}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}(),Kl=function(){function e(e){this.scheduler=new Hl(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=Ul.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),zl=null;function Vl(e,t){var n=(zl||(zl={scroll:new Kl((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new Kl((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new Wl,beforeunload:new Wl,hide:new Wl,show:new Wl}))[e];n&&n.listen(t)}function Xl(e,t){if(zl){var n=zl[e];n&&n.unlisten(t)}}function Yl(e,t){if(zl){var n=zl[e];n&&n.trigger(t)}}function Ql(e){(ql||(ql=new jl)).scheduleWork(e)}function Jl(e){var t=e.left,n=e.right,r=e.top,i=e.bottom;return{left:t,x:t,top:r,y:r,bottom:i,right:n,width:n-t,height:i-r}}Ol.hasDOM&&(window.addEventListener("beforeunload",(function(){Yl("beforeunload"),Yl("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Yl("show"):Yl("hide")})));var $l=function(){function e(e,t){void 0===t&&(t={}),this.records={},this.callback=e,t.threshold=t.threshold||0,this.rootMarginObj=function(e){var t=e.split(" ").map((function(e){return parseInt(e,10)}));switch(t.length){case 2:return{top:t[0],left:t[1],bottom:t[0],right:t[1]};case 3:return{top:t[0],left:t[1],bottom:t[2],right:t[1]};case 4:return{top:t[0],left:t[1],bottom:t[2],right:t[3]};default:return{top:0,left:0,bottom:0,right:0}}}(t.rootMargin||"0px"),this.root=t.root||null,Array.isArray(t.threshold)?this.thresholds=t.threshold:this.thresholds=[t.threshold],this.scheduler=new Gl(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||Fl();return this.scheduler.watch(e,(function(e,r,i){t.onTick(e,r,i,n)}),n.__spanielId),r},e.prototype.onTick=function(e,t,n,r){var i=this,o=this.generateEntryEvent(e,n,r),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(){i.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 r=0,i=function(e,t,n,r){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:Zl(),intersectionRatio:0,intersectionRect:Zl(),isIntersecting:!1,rootBounds:Zl(),target:n};var i=t.bottom,o=t.right,a=e.left+r.left,s=e.top+r.top,c={left:a,top:s,bottom:r.bottom,right:r.right,width:e.width-(r.right+r.left),height:e.height-(r.bottom+r.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,v={left:p,top:f,x:p,y:f,width:d,height:h,right:o,bottom:i};return function(e){var t=e.unixTime,n=e.highResTime,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,a=e.target,s=i.height*i.width,c=s>0?o.width*o.height/s:0;return{time:t,highResTime:n,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:a,intersectionRatio:c,isIntersecting:ml({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:Jl(t),intersectionRect:v})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];i.intersectionRatio>=a&&r++}return{numSatisfiedThresholds:r,entry:i}},e}();function Zl(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var eu={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 r=t||{threshold:[]},i=r.root,o=r.rootMargin,a=r.threshold,s=r.ALLOW_CACHED_SCHEDULER,c=r.BACKGROUND_TAB_FIX,l=r.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:i,rootMargin:u,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:s};this.usingNativeIo=!!l&&!!Ol.IntersectionObserver;var h=this.usingNativeIo?Ol.IntersectionObserver:$l;this.observer=new h((function(e){return n.internalCallback(e)}),d),this.onTabHidden=this._onTabHidden.bind(this),this.onWindowClosed=this._onWindowClosed.bind(this),this.onTabShown=this._onTabShown.bind(this),Ol.hasDOM&&(Vl("beforeunload",this.onWindowClosed),Vl("hide",this.onTabHidden),Vl("show",this.onTabShown),c&&(this.paused="visible"!==Ol.document.visibilityState))}e.prototype._onWindowClosed=function(){this.onTabHidden()},e.prototype.setAllHidden=function(){for(var e=Object.keys(this.recordStore),t=0;t<e.length;t++)this.handleRecordExiting(this.recordStore[e[t]]);this.flushQueuedEntries()},e.prototype._onTabHidden=function(){this.paused=!0,this.setAllHidden()},e.prototype.generateObserverTimestamp=function(){return this.usingNativeIo?Math.floor(performance.now()):Date.now()},e.prototype._onTabShown=function(){this.paused=!1;for(var e=Object.keys(this.recordStore),t=performance.now(),n=this.generateObserverTimestamp(),r=0;r<e.length;r++){var i=this.recordStore[e[r]].lastSeenEntry;if(i){var o=i.intersectionRatio,a=i.boundingClientRect,s=i.rootBounds,c=i.intersectionRect,l=i.isIntersecting,u=i.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,r=e.rootBounds,i=e.boundingClientRect,o=e.intersectionRect,a=e.isIntersecting,s=e.time,c=e.target,l=this.recordStore[c.__spanielId],u=this.usingNativeIo?Math.floor((Ol.performance.timeOrigin||Ol.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:r,boundingClientRect:i,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(),r=performance.now();e.thresholdStates.forEach((function(i){var o=e.lastSeenEntry&&e.lastSeenEntry.boundingClientRect;t.handleThresholdExiting({intersectionRatio:-1,isIntersecting:!1,unixTime:n,time:n,highResTime:r,payload:e.payload,label:i.threshold.label,threshold:i.threshold,entering:!1,rootBounds:eu,boundingClientRect:o||eu,intersectionRect:eu,visibleTime:i.lastVisible.unixTime,duration:El(r,i.lastVisible.highResTime),target:e.target},i),i.lastSatisfied=!1,i.visible=!1,i.lastEntry=null}))},e.prototype.handleThresholdExiting=function(e,t){var n=e.highResTime,r=!!t.threshold.time;t.lastSatisfied&&(!r||r&&t.visible)&&(e.duration=El(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,r=this.recordStore[n.__spanielId];r&&(r.lastSeenEntry=e,this.paused||(r.thresholdStates.forEach((function(n){var r=!!n.threshold.time,i=t.generateSpanielEntry(e,n),o=e.intersectionRatio>=n.threshold.ratio,a="boolean"==typeof i.isIntersecting?i.isIntersecting:ml(e),s=o&&a;if(s!=n.lastSatisfied){if(s)if(i.entering=!0,n.lastVisible={highResTime:i.highResTime,unixTime:i.unixTime},r){var c=Number(setTimeout((function(){n.visible=!0,i.duration=El(performance.now(),n.lastVisible.highResTime),i.visibleTime=n.lastVisible.unixTime,t.callback([i])}),n.threshold.time));n.timeoutId=c}else n.visible=!0,i.duration=Date.now()-n.lastVisible.unixTime,t.queuedEntries.push(i);else t.handleThresholdExiting(i,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(),Ol.hasDOM&&(Xl("beforeunload",this.onWindowClosed),Xl("hide",this.onTabHidden),Xl("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),Ql((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||Fl();return this.recordStore[r]={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),r}}();Ol.IntersectionObserver&&Ol.IntersectionObserver;function tu(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}tu("action"),tu("openpage"),tu("openlink");class nu extends us{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:nu.query,variables:{handleString:e},successCallback:t,failureCallback:n})}}Ro(nu,"query","77715b456915324f44eb5c5ae5981169");var ru={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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}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 r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&c(i,n.prototype),i}).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 r=s(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return p(this,t)}}function v(e){"complete"===document.readyState?e():window.addEventListener("load",(function(){e()}))}function g(e,t){var n=document.createElement("script");n.src=e,t&&(n.onload=t),document.head.appendChild(n)}function m(){var e,t,n=new Promise((function(n,r){e=n,t=r}));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],r=0,i=n.length;r<i;r++)if(n[r]===t)return void n.splice(r,1)},e.prototype.dispatchEvent=function(e){if(!(e.type in this.listeners))return!0;for(var t=this.listeners[e.type].slice(),n=0,r=t.length;n<r;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"},T={DISPLAY:"display",SKIPPED:"skipped",DISMISSED:"dismissed"},_={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"}},k=E.GOOGLE_ERROR,I=E.GOOGLE_USER_FETCHED,A=E.INITIALIZED,O=b.INITIALIZATION,R=b.AUTHENTICATION,L=function(e){a(i,e);var n=f(i);function i(e){var r,o=e.libSrcPath,a=e.el,s=e.clientId,c=void 0===s?y:s;if(t(this,i),r=n.call(this),!a)throw TypeError("DOM element for Sign In button is required");if(r.libSrcPath=o,r.el=a,r.clientId=c,window.gapi)r._initializeGoogleAuth();else{if(!o)throw TypeError("Google Sign In lib not already loaded on the page. libSrcPath is required to load the lib.");v((function(){g(o,r._initializeGoogleAuth.bind(h(r)))}))}return r}return r(i,[{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:O,message:t.error},r=new CustomEvent(k,{detail:n});e.dispatchEvent(r)}))}},{key:"_attachSignIn",value:function(){var e=this;this.auth2.attachClickHandler(this.el,{},(function(t){var n=new CustomEvent(I,{detail:e._getGoogleUserInformation(t)});e.dispatchEvent(n)}),(function(t){var n={type:R,message:t.error},r=new CustomEvent(k,{detail:n});e.dispatchEvent(r)}))}},{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()}}}]),i}(d(EventTarget));function N(e,t){return e?t.getDismissedReason():t.getNotDisplayedReason()||t.getSkippedReason()||t.getDismissedReason()}var D=E.GOOGLE_USER_FETCHED,x=E.PROMPT_MOMENT,P=E.GOOGLE_ERROR,M=function(e){a(i,e);var n=f(i);function i(e){var r,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,i),r=n.call(this),!l)throw TypeError("context param is required to determine the message to show in Google One Tap");if(r.autoSelect=a,r.libSrcPath=s,r.containerId=c,r.cancelOnTapOutside=f,r.clientId=d,r.context=l,r.itpSupport=E,r.useFedCM=w,r.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)r._onGoogleApiLoad();else{if(!s)throw TypeError("Google One Tap lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){g(s,r._onGoogleApiLoad.bind(h(r)))}))}return r}return r(i,[{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(P,{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 r=new CustomEvent(D,{detail:n});this.dispatchEvent(r)}}},{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:_.SKIPPED.ISSUING_FAILED,type:T.SKIPPED},n=new CustomEvent(x,{detail:t});this.dispatchEvent(n)}},{key:"promptOneTap",value:function(){var e=this;google.accounts.id.prompt((function(t){var n={type:t.getMomentType(),reason:N(e.useFedCM,t)},r=new CustomEvent(x,{detail:n});e.dispatchEvent(r),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")}}}]),i}(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,r,i=0,o=0,a="";r=t.charAt(o++);~r&&(n=i%4?64*n+r:r,i++%4)?a+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return a},j=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(j(e.split(".")[n]))}catch(e){throw new H("Invalid token specified: "+e.message)}},U.exports.InvalidTokenError=H;var G=U.exports,q=E.GOOGLE_USER_FETCHED,W=E.PROMPT_MOMENT,K=E.GOOGLE_ERROR,z=function(e){a(s,e);var n=f(s);function s(e){var r,i=e.autoSelect,o=void 0!==i&&i,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,T=e.hasContentAbove,_=void 0!==T&&T,S=e.promptParentId,C=e.showOneTap,k=void 0===C||C,I=e.itpSupport,A=e.useFedCM,O=void 0!==A&&A;if(t(this,s),(r=n.call(this)).autoSelect=o,r.buttonParentEl=a,r.cancelOnTapOutside=l,r.clientId=d,r.context=f,r.gsiButtonConfig=b,r.libSrcPath=w,r.hasContentAbove=_,r.promptParentId=S,r.showOneTap=k,r.itpSupport=I,r.useFedCM=O,r.isLibraryLoaded=m(),r.isInitialized=m(),window.google&&window.google.accounts&&window.google.accounts.id)r._onGoogleApiLoad();else{if(!w)throw TypeError("GSI library is not already loaded on the page. libSrcPath is required to load the library");v((function(){g(w,r._onGoogleApiLoad.bind(h(r)))}))}return r}return r(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(K,{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,r=t.locale,i=void 0===r?"en_US":r,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,v=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:i,logo_alignment:a,shape:c,size:u,text:t,theme:h,type:p,width:v})}))}},{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:N(e.useFedCM,t)},r=new CustomEvent(W,{detail:n});e.dispatchEvent(r),e.hasContentAbove||e.checkIfDesktopAndApplyClass()}))}))}},{key:"_handleCredentialResponse",value:function(e){var t=e.credential,n=e.select_by,r=G(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){i(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(r),{idToken:t,selectedBy:n});if(a){var s=new CustomEvent(q,{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"}},Q=X.MICROSOFT_ERROR,J=X.PROMPT_MOMENT,$=X.USER_FETCHED,Z=function(e){a(i,e);var n=f(i);function i(e){var r,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,T=e.malButtonConfig,_=void 0===T?{}:T,S=e.oneTapPosition,C=void 0===S?"right":S,k=e.redirectState,I=e.redirectURI,A=e.showOneTap,O=void 0!==A&&A;if(t(this,i),(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=_,a.oneTapPosition=C,a.redirectState=k,a.window=E,a.redirectURI=I||a._getRedirectURI(),a.showOneTap=O,a.isLibraryLoaded=m(),null===(r=a.window.ms)||void 0===r||null===(o=r.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");v((function(){g(b,a._onMicrosoftAuthLibLoad.bind(h(a)))}))}return a}return r(i,[{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,r=t.logo_alignment,i=void 0===r?"center":r,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,v=t.width,g=void 0===v?600:v;return this.isLibraryLoaded.then((function(){var t=d||Y[n.context].MS_BUTTON;n.window.ms.auth.renderSignInButton(e,{logo_alignment:i,height:a,shape:c,size:u,text:t,theme:p,type:f,width:g})}))}},{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},r=new CustomEvent(J,{detail:n});e.dispatchEvent(r)}))}))}},{key:"_handleCredentialResponse",value:function(e,t){if(e){var n=e.authCode,r=e.email,i=e.givenName,o=e.surname,a=e.id,s=e.idToken,c=e.photoUrl,l=new CustomEvent($,{detail:{authCode:n,email:r,familyName:o,givenName:i,id:a,idToken:s,imageUrl:c}});this.dispatchEvent(l)}else if(t){var u=new CustomEvent(Q,{detail:t});this.dispatchEvent(u)}}},{key:"hideOneTap",value:function(){this.window.ms.auth.cancel()}}]),i}(d(EventTarget)),ee=S.DISMISSED,te=S.INITIALIZED,ne=S.SNAPPLE_USER_FETCHED,re=function(e){a(i,e);var n=f(i);function i(e){var r,o=e.libSrcPath,a=e.snappleCTA,s=e.clientId,c=void 0===s?"com.linkedin.LinkedIn.service":s,l=e.redirectURI;if(t(this,i),r=n.call(this),!a)throw TypeError("snappleCTA is required. Please pass the correct CTA element to this Snapple Constructor");if(r.libSrcPath=o,r.clientId=c,r.redirectURI=r._getRedirectURL(l),r.snappleCTA=a,window.AppleID&&window.AppleID.auth&&window.AppleID.auth.init)r._onSnappleLibLoad();else{if(!o)throw TypeError("Snapple lib is not already loaded on the page. libSrcPath is required to load the library");v((function(){g(o,r._onSnappleLibLoad.bind(h(r)))}))}return r}return r(i,[{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"}}]),i}(d(EventTarget)),ie={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:_,GOT_PROMPT_MOMENT_TYPES:T},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=z,e.GoogleOneTap=M,e.GoogleSignIn=L,e.GoogleSignInConstants=ie,e.MicrosoftAuth=Z,e.MicrosoftSignInConstants=oe,e.SnappleAuth=re,e.SnappleEvents=S,Object.defineProperty(e,"__esModule",{value:!0})})(ru.exports);const{EVENTS:iu,GOT_CONTEXTS:ou,GOT_PROMPT_MOMENT_REASONS:au,GOT_PROMPT_MOMENT_TYPES:su,GSI_ERROR_TYPES:cu}=ru.exports.GoogleSignInConstants,{GOOGLE_USER_FETCHED:lu,PROMPT_MOMENT:uu,GOOGLE_ERROR:du}=iu,{SIGN_IN:hu}=ou;au.NOT_DISPLAYED.BROWSER_NOT_SUPPORTED,au.NOT_DISPLAYED.OPT_OUT_OR_NO_SESSION,au.NOT_DISPLAYED.SUPPRESSED_BY_USER,au.SKIPPED.AUTO_CANCEL,au.SKIPPED.TAP_OUTSIDE,au.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:pu,PROMPT_MOMENT_REASONS:fu,PROMPT_MOMENT_TYPES:vu}=ru.exports.MicrosoftSignInConstants,{USER_FETCHED:gu,PROMPT_MOMENT:mu}=pu;fu.DISPLAY.ANOTHER_PROMPT_RUNNING,fu.DISPLAY.BROWSER_NOT_SUPPORTED,fu.DISPLAY.IN_COOLDOWN_PERIOD,fu.DISPLAY.NON_MSA_PROFILE,fu.SKIPPED.TAP_OUTSIDE,fu.SKIPPED.USER_CANCELLED,Object.freeze({ONE_TAP:"one_tap",BUTTON:"button"});class yu{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{},{enablePageViewTracking:r=!1,shouldHideModal:i=(()=>!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 ps(this.modalEl,{enablePageViewTracking:r,shouldHideModal:i,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 Eu;function bu(){return Eu||(Eu=new os),Eu}function wu(e){let{featureName:t,featureMappingToDegradationConfig:n,productName:r}=e;return n[t].map(e=>function(e,t,n){const{degradationKey:r,trackedResponseCodes:i,untrackedResponseCodes:o}=n,a=e;let s={productName:t};return i?s={...s,trackedResponseCodes:i}:o&&(s={...s,untrackedResponseCodes:o}),new _c(a,r,s)}(t,r,e))}function Tu(e,t){var n;return null===(n=window.tracking)||void 0===n?void 0:n.then(n=>{const r=n.generateEnvelope(e,t,{transporterKey:"sponsoredTransporter"});return n.fireEnvelope(r)})}const _u=document.querySelector("#full-page-header-back-button");window.onload=()=>{null==_u||_u.focus()};class Su{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{Su.instance||(Su.instance=new Su(localStorage)),Su.instance}catch{}})(),function(){try{Su.sessionInstance||(Su.sessionInstance=new Su(sessionStorage)),Su.sessionInstance}catch{}}();class Cu extends us{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:Cu.query,variables:{postUrn:e},successCallback:t,failureCallback:n})}}let ku;Ro(Cu,"query","cb99e660f3455cad5185a1d9543e6bce");r.getInstance().addUnloadCallback(()=>{ku&&ku.close(),Eo(document.querySelector("#discard-post-modal")),Eo(document.querySelector("#visibility-settings-modal")),Eo(document.querySelector("#max-images-prompt-modal")),Eo(document.querySelector("#retry-upload-modal"))});Object.freeze({ANDROID:"com.linkedin.android",IOS:"com.linkedin.LinkedIn"});const Iu={PRODUCT_NAME:"Lite-feed",routeMappingToDegradationConfig:{FEED_REPOST:{"publish-repost":[{degradationKey:"publish-repost-failed"}]}}};wu({featureName:"publish-repost",productName:Iu.PRODUCT_NAME,featureMappingToDegradationConfig:Iu.routeMappingToDegradationConfig.FEED_REPOST});Object.freeze({NEW_REPOST_SUCCESS_EVENT:"Repost:newRepost:success",NEW_REPOST_FAIL_EVENT:"Repost:newRepost:fail"});class Au extends us{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Au.query,variables:{digitalMediaRegisterUploadResponseDataFetcherInput:{imageUrl:e.imageUrl,owner:e.owner,uploadMechanisms:["SYNCHRONOUS_UPLOAD","SINGLE_REQUEST_UPLOAD"],uploadRecipes:[e.recipe]}},successCallback:t,failureCallback:n})}}Ro(Au,"query","20f8e9934e7df62932fd167d87c19b27");var Ou=function(){this.__data__=[],this.size=0};var Ru=function(e,t){return e===t||e!=e&&t!=t},Lu=Ru;var Nu=function(e,t){for(var n=e.length;n--;)if(Lu(e[n][0],t))return n;return-1},Du=Nu,xu=Array.prototype.splice;var Pu=Nu;var Mu=Nu;var Uu=Nu;var Fu=Ou,Bu=function(e){var t=this.__data__,n=Du(t,e);return!(n<0)&&(n==t.length-1?t.pop():xu.call(t,n,1),--this.size,!0)},ju=function(e){var t=this.__data__,n=Pu(t,e);return n<0?void 0:t[n][1]},Hu=function(e){return Mu(this.__data__,e)>-1},Gu=function(e,t){var n=this.__data__,r=Uu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function qu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qu.prototype.clear=Fu,qu.prototype.delete=Bu,qu.prototype.get=ju,qu.prototype.has=Hu,qu.prototype.set=Gu;var Wu=qu,Ku=Wu;var zu=function(){this.__data__=new Ku,this.size=0};var Vu=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var Xu=function(e){return this.__data__.get(e)};var Yu=function(e){return this.__data__.has(e)},Qu="object"==typeof B&&B&&B.Object===Object&&B,Ju=Qu,$u="object"==typeof self&&self&&self.Object===Object&&self,Zu=Ju||$u||Function("return this")(),ed=Zu.Symbol,td=ed,nd=Object.prototype,rd=nd.hasOwnProperty,id=nd.toString,od=td?td.toStringTag:void 0;var ad=function(e){var t=rd.call(e,od),n=e[od];try{e[od]=void 0;var r=!0}catch(e){}var i=id.call(e);return r&&(t?e[od]=n:delete e[od]),i},sd=Object.prototype.toString;var cd=ad,ld=function(e){return sd.call(e)},ud=ed?ed.toStringTag:void 0;var dd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ud&&ud in Object(e)?cd(e):ld(e)};var hd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},pd=dd,fd=hd;var vd,gd=function(e){if(!fd(e))return!1;var t=pd(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},md=Zu["__core-js_shared__"],yd=(vd=/[^.]+$/.exec(md&&md.keys&&md.keys.IE_PROTO||""))?"Symbol(src)_1."+vd:"";var Ed=function(e){return!!yd&&yd in e},bd=Function.prototype.toString;var wd=gd,Td=Ed,_d=hd,Sd=function(e){if(null!=e){try{return bd.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Cd=/^\[object .+?Constructor\]$/,kd=Function.prototype,Id=Object.prototype,Ad=kd.toString,Od=Id.hasOwnProperty,Rd=RegExp("^"+Ad.call(Od).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ld=function(e){return!(!_d(e)||Td(e))&&(wd(e)?Rd:Cd).test(Sd(e))},Nd=function(e,t){return null==e?void 0:e[t]};var Dd=function(e,t){var n=Nd(e,t);return Ld(n)?n:void 0},xd=Dd(Zu,"Map"),Pd=Dd(Object,"create"),Md=Pd;var Ud=function(){this.__data__=Md?Md(null):{},this.size=0};var Fd=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Bd=Pd,jd=Object.prototype.hasOwnProperty;var Hd=function(e){var t=this.__data__;if(Bd){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return jd.call(t,e)?t[e]:void 0},Gd=Pd,qd=Object.prototype.hasOwnProperty;var Wd=Pd;var Kd=Ud,zd=Fd,Vd=Hd,Xd=function(e){var t=this.__data__;return Gd?void 0!==t[e]:qd.call(t,e)},Yd=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Wd&&void 0===t?"__lodash_hash_undefined__":t,this};function Qd(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qd.prototype.clear=Kd,Qd.prototype.delete=zd,Qd.prototype.get=Vd,Qd.prototype.has=Xd,Qd.prototype.set=Yd;var Jd=Qd,$d=Wu,Zd=xd;var eh=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var th=function(e,t){var n=e.__data__;return eh(t)?n["string"==typeof t?"string":"hash"]:n.map},nh=th;var rh=th;var ih=th;var oh=th;var ah=function(){this.size=0,this.__data__={hash:new Jd,map:new(Zd||$d),string:new Jd}},sh=function(e){var t=nh(this,e).delete(e);return this.size-=t?1:0,t},ch=function(e){return rh(this,e).get(e)},lh=function(e){return ih(this,e).has(e)},uh=function(e,t){var n=oh(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function dh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}dh.prototype.clear=ah,dh.prototype.delete=sh,dh.prototype.get=ch,dh.prototype.has=lh,dh.prototype.set=uh;var hh=Wu,ph=xd,fh=dh;var vh=Wu,gh=zu,mh=Vu,yh=Xu,Eh=Yu,bh=function(e,t){var n=this.__data__;if(n instanceof hh){var r=n.__data__;if(!ph||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fh(r)}return n.set(e,t),this.size=n.size,this};function wh(e){var t=this.__data__=new vh(e);this.size=t.size}wh.prototype.clear=gh,wh.prototype.delete=mh,wh.prototype.get=yh,wh.prototype.has=Eh,wh.prototype.set=bh;var Th=wh,_h=Dd,Sh=function(){try{var e=_h(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ch=Sh;var kh=function(e,t,n){"__proto__"==t&&Ch?Ch(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Ih=kh,Ah=Ru;var Oh=function(e,t,n){(void 0!==n&&!Ah(e[t],n)||void 0===n&&!(t in e))&&Ih(e,t,n)};var Rh=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var c=a[e?s:++i];if(!1===n(o[c],c,o))break}return t}}(),Lh={exports:{}};!function(e,t){var n=Zu,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(Lh,Lh.exports);var Nh=Zu.Uint8Array;var Dh=function(e){var t=new e.constructor(e.byteLength);return new Nh(t).set(new Nh(e)),t};var xh=function(e,t){var n=t?Dh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Ph=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},Mh=hd,Uh=Object.create,Fh=function(){function e(){}return function(t){if(!Mh(t))return{};if(Uh)return Uh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var Bh=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),jh=Object.prototype;var Hh=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||jh)},Gh=Fh,qh=Bh,Wh=Hh;var Kh=function(e){return"function"!=typeof e.constructor||Wh(e)?{}:Gh(qh(e))};var zh=function(e){return null!=e&&"object"==typeof e},Vh=dd,Xh=zh;var Yh=function(e){return Xh(e)&&"[object Arguments]"==Vh(e)},Qh=zh,Jh=Object.prototype,$h=Jh.hasOwnProperty,Zh=Jh.propertyIsEnumerable,ep=Yh(function(){return arguments}())?Yh:function(e){return Qh(e)&&$h.call(e,"callee")&&!Zh.call(e,"callee")},tp=Array.isArray;var np=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},rp=gd,ip=np;var op=function(e){return null!=e&&ip(e.length)&&!rp(e)},ap=op,sp=zh;var cp=function(e){return sp(e)&&ap(e)},lp={exports:{}};var up=function(){return!1};!function(e,t){var n=Zu,r=up,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(lp,lp.exports);var dp=dd,hp=Bh,pp=zh,fp=Function.prototype,vp=Object.prototype,gp=fp.toString,mp=vp.hasOwnProperty,yp=gp.call(Object);var Ep=function(e){if(!pp(e)||"[object Object]"!=dp(e))return!1;var t=hp(e);if(null===t)return!0;var n=mp.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&gp.call(n)==yp},bp=dd,wp=np,Tp=zh,_p={};_p["[object Float32Array]"]=_p["[object Float64Array]"]=_p["[object Int8Array]"]=_p["[object Int16Array]"]=_p["[object Int32Array]"]=_p["[object Uint8Array]"]=_p["[object Uint8ClampedArray]"]=_p["[object Uint16Array]"]=_p["[object Uint32Array]"]=!0,_p["[object Arguments]"]=_p["[object Array]"]=_p["[object ArrayBuffer]"]=_p["[object Boolean]"]=_p["[object DataView]"]=_p["[object Date]"]=_p["[object Error]"]=_p["[object Function]"]=_p["[object Map]"]=_p["[object Number]"]=_p["[object Object]"]=_p["[object RegExp]"]=_p["[object Set]"]=_p["[object String]"]=_p["[object WeakMap]"]=!1;var Sp=function(e){return Tp(e)&&wp(e.length)&&!!_p[bp(e)]};var Cp=function(e){return function(t){return e(t)}},kp={exports:{}};!function(e,t){var n=Qu,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(kp,kp.exports);var Ip=Sp,Ap=Cp,Op=kp.exports,Rp=Op&&Op.isTypedArray,Lp=Rp?Ap(Rp):Ip;var Np=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Dp=kh,xp=Ru,Pp=Object.prototype.hasOwnProperty;var Mp=function(e,t,n){var r=e[t];Pp.call(e,t)&&xp(r,n)&&(void 0!==n||t in e)||Dp(e,t,n)},Up=kh;var Fp=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),i?Up(n,s,c):Mp(n,s,c)}return n};var Bp=/^(?:0|[1-9]\d*)$/;var jp=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Bp.test(e))&&e>-1&&e%1==0&&e<t},Hp=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Gp=ep,qp=tp,Wp=lp.exports,Kp=jp,zp=Lp,Vp=Object.prototype.hasOwnProperty;var Xp=function(e,t){var n=qp(e),r=!n&&Gp(e),i=!n&&!r&&Wp(e),o=!n&&!r&&!i&&zp(e),a=n||r||i||o,s=a?Hp(e.length,String):[],c=s.length;for(var l in e)!t&&!Vp.call(e,l)||a&&("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||Kp(l,c))||s.push(l);return s};var Yp=hd,Qp=Hh,Jp=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},$p=Object.prototype.hasOwnProperty;var Zp=Xp,ef=function(e){if(!Yp(e))return Jp(e);var t=Qp(e),n=[];for(var r in e)("constructor"!=r||!t&&$p.call(e,r))&&n.push(r);return n},tf=op;var nf=function(e){return tf(e)?Zp(e,!0):ef(e)},rf=Fp,of=nf;var af=Oh,sf=Lh.exports,cf=xh,lf=Ph,uf=Kh,df=ep,hf=tp,pf=cp,ff=lp.exports,vf=gd,gf=hd,mf=Ep,yf=Lp,Ef=Np,bf=function(e){return rf(e,of(e))};var wf=Th,Tf=Oh,_f=Rh,Sf=function(e,t,n,r,i,o,a){var s=Ef(e,n),c=Ef(t,n),l=a.get(c);if(l)af(e,n,l);else{var u=o?o(s,c,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=hf(c),p=!h&&ff(c),f=!h&&!p&&yf(c);u=c,h||p||f?hf(s)?u=s:pf(s)?u=lf(s):p?(d=!1,u=sf(c,!0)):f?(d=!1,u=cf(c,!0)):u=[]:mf(c)||df(c)?(u=s,df(s)?u=bf(s):gf(s)&&!vf(s)||(u=uf(c))):d=!1}d&&(a.set(c,u),i(u,c,r,o,a),a.delete(c)),af(e,n,u)}},Cf=hd,kf=nf,If=Np;var Af=function e(t,n,r,i,o){t!==n&&_f(n,(function(a,s){if(o||(o=new wf),Cf(a))Sf(t,n,s,r,e,i,o);else{var c=i?i(If(t,s),a,s+"",t,n,o):void 0;void 0===c&&(c=a),Tf(t,s,c)}}),kf)};var Of=function(e){return e};var Rf=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)},Lf=Math.max;var Nf=function(e,t,n){return t=Lf(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Lf(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),Rf(e,this,s)}};var Df=function(e){return function(){return e}},xf=Sh,Pf=xf?function(e,t){return xf(e,"toString",{configurable:!0,enumerable:!1,value:Df(t),writable:!0})}:Of,Mf=Date.now;var Uf=function(e){var t=0,n=0;return function(){var r=Mf(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(Pf),Ff=Of,Bf=Nf,jf=Uf;var Hf=Ru,Gf=op,qf=jp,Wf=hd;var Kf=function(e,t){return jf(Bf(e,t,Ff),e+"")},zf=function(e,t,n){if(!Wf(n))return!1;var r=typeof t;return!!("number"==r?Gf(n)&&qf(t,n.length):"string"==r&&t in n)&&Hf(n[t],e)};var Vf=Af;Xf=function(e,t,n){Vf(e,t,n)},Kf((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=Xf.length>3&&"function"==typeof i?(r--,i):void 0,o&&zf(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&Xf(e,a,n,i)}return e}));var Xf;function Yf(e){const t=e.getBoundingClientRect();let{top:n,left:r}=t;const{right:i,bottom:o,width:a,height:s,x:c,y:l}=t;return n+=document.documentElement.scrollTop||document.body.scrollTop,r+=document.documentElement.scrollLeft||document.body.scrollLeft,{top:n,right:i,bottom:o,left:r,width:a,height:s,x:c,y:l}}function Qf(e,t,n){const r=Yf(e),i=Yf(t),o=Yf(n),a=r.top-o.top-n.clientTop-i.height+r.height,s=r.left-o.left-n.clientLeft-i.width+r.width;return{boundingCoordinates:r,elementCoordinates:i,elemOffsetParentCoordinates:o,topMinLimit:a,leftMinLimit:s,elemTop:i.top-o.top,elemLeft:i.left-o.left,topMaxLimit:a-r.height+i.height,leftMaxLimit:s-r.width+i.width}}document.querySelector(".upload-progress"),document.querySelector("#progressVal");const Jf="data-draggable-initialized",$f="touchstart",Zf="touchmove",ev="touchend";class tv{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;tv.isDraggable(this.draggableElementEl)||this.draggableElementEl.addEventListener($f,t),this.draggableElementEl.setAttribute(Jf,!0)}dragElement(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const i=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=i+"px",this.options.onDrag instanceof Function&&this.options.onDrag(e.boundingCoordinates.left-o-e.elemOffsetParentCoordinates.left,e.boundingCoordinates.top-i-e.elemOffsetParentCoordinates.top,r)}onTouchMove(e){const t=!!e.touches;if(e.preventDefault(),this.isMoving||(this.isMoving=!0),t&&1===e.touches.length){const t=e.touches[0].clientX-this._startClientX,n=e.touches[0].clientY-this._startClientY;this.dragElement.call(this,this.limits,t,n)}}onTouchStart(e){this.limits=Qf(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),this.isMoving=!1;const t=this.onTouchMove.bind(this),n=!!e.touches;this._startClientX=n?e.touches[0].clientX:e.clientX,this._startClientY=n?e.touches[0].clientY:e.clientY,e.preventDefault(),document.addEventListener(Zf,t),document.addEventListener(ev,(function e(){document.removeEventListener(Zf,t),document.removeEventListener(ev,e)}))}moveTo(e,t){const n=Qf(this.boundingParentEl,this.draggableElementEl,this.draggableElementEl.offsetParent),r=e+n.boundingCoordinates.left-n.elementCoordinates.left,i=t+n.boundingCoordinates.top-n.elementCoordinates.top;this.dragElement.call(this,n,r,i,!1)}}tv.isDraggable=function(e){return!!e.getAttribute(Jf)};const nv="data-zoomable-initialized",rv="touchstart",iv="touchmove",ov="touchend";class av{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;av.isZoomable(this.zoomableElement)||(this.zoomableElement.addEventListener(rv,t),this.zoomableElement.setAttribute(nv,!0))}scaleElement(e,t){if(1===e)return;this.limits=Qf(this.boundingParent,this.zoomableElement,this.zoomableElement.offsetParent);let n=this.limits.elementCoordinates.width*e,r=this.limits.elementCoordinates.height*e;if(n<this.limits.boundingCoordinates.width||r<this.limits.boundingCoordinates.height){const t=this.options.getMinDimensions();r=t.height,n=t.width,e=r/this.limits.elementCoordinates.height}let i=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;i<a?i=a:i>s&&(i=s),o<c?o=c:o>l&&(o=l),this.options.scaleElement(n,r,this.limits.boundingCoordinates.left-i-this.limits.elemOffsetParentCoordinates.left,this.limits.boundingCoordinates.top-o-this.limits.elemOffsetParentCoordinates.top),this.zoomableElement.style.left=i+"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,r=e.touches[0];this.scaleElement.call(this,n,r)}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(iv,t),document.addEventListener(ov,(function e(){document.removeEventListener(iv,t),document.removeEventListener(ov,e)}))}}av.isZoomable=function(e){return!!e.getAttribute(nv)};class sv extends us{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:sv.query,variables:{successRedirectUrl:e},successCallback:t,failureCallback:n})}}Ro(sv,"query","5f93d1d6b933cfbfdf7b0a80dedfb3f4");class cv extends us{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:cv.query,successCallback:e,failureCallback:t})}}Ro(cv,"query","da4a9ce2de842c1abe01ca37ea9271ee");const lv=/^\d{4,15}$/,uv=/[-\s+().]/g,dv=/^\S+@\S+\.\S+$/,hv=/[,]|.*@.*@/,pv="MinLength",fv="MaxLength",vv="Regex",gv="Required",mv="RegexAllow",yv=e=>e&&dv.test(e)&&!hv.test(e),Ev={SPECIAL_CHARS:{pattern:/([!@#$%^&*+=|<>?:;\\])/,errorCode:"SpecialChars"},URL_KEYWORDS:{pattern:/(https?(:\/\/)?|www\.)/i,errorCode:"UrlKeywords"},EMAIL:{errorCode:"Email",validate:yv},WORK_EMAIL:{errorCode:"WorkEmail",validate:e=>yv(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(uv,"");return!(!t||!lv.test(t))}}},bv="EMAIL_ADDRESS",wv="PHONE_NUMBER",Tv="WORK_EMAIL",_v="consentUnchecked",Sv={INPUT:"INPUT",SELECT:"SELECT"},Cv="text",kv="checkbox";function Iv(e){return Object.keys(Sv).includes(e.tagName)}function Av(e){const t=function(e){const t=[],{minLength:n,maxLength:r,inputType:i}=e.dataset;let o;switch(i){case bv:t.push({type:mv,RegexAllow:[Ev.EMAIL]});break;case Tv:t.push({type:mv,RegexAllow:[Ev.WORK_EMAIL]});break;case wv:o=e.value.replace(/ /g,""),t.push({type:mv,RegexAllow:[Ev.PHONE_NUMBER]})}return e.required&&t.push({type:gv}),n&&t.push({type:pv,MinLength:n}),r&&t.push({type:fv,MaxLength:r}),{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 gv:if(0===n.length)return gv;break;case pv:if(n.length<e[pv])return pv;break;case fv:if(n.length>e[fv])return fv;break;case vv:for(let t=0;t<e[vv].length;t++){var r,i,o,a;if(!0===(null===(r=e[vv][t])||void 0===r||null===(i=r.validate)||void 0===i?void 0:i.call(r,n))||!0===(null===(o=e[vv][t])||void 0===o||null===(a=o.pattern)||void 0===a?void 0:a.test(n)))return vv+e[vv][t].errorCode}break;case mv:for(let t=0;t<e[mv].length;t++){var s,c,l,u;if(!1===(null===(s=e[mv][t])||void 0===s||null===(c=s.validate)||void 0===c?void 0:c.call(s,n))||!1===(null===(l=e[mv][t])||void 0===l||null===(u=l.pattern)||void 0===u?void 0:u.test(n)))return mv+e[mv][t].errorCode}}})(e,n)).filter(e=>!!e)}function Ov(e,t){return t&&!e?_v:null}const Rv=(e,t)=>parseInt(t.split(e)[1]);function Lv(e,t){return document.getElementById(e.id+"-strings").dataset["str"+t]}const Nv=(e,t)=>({questionId:e,textQuestionAnswer:{answer:t}}),Dv=(e,t)=>({questionId:e,multipleChoiceAnswer:{options:[{index:t}]}}),xv=(e,t)=>({question:e,multipleChoiceAnswer:{options:[t]}});function Pv(e,t){const n=e.id+"_",r=n+"q",i=n+"c",o=Oo("hasDecoratedLeadGenFormData");return new Promise((n,a)=>{const s=[];let c,l;const{urn:u,legalInfoUrn:d,leadType:h,associatedEntityUrn:p,ownerUrn:f,submitter:v}=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 g={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!=v&&v.length?{submitter:v}:{}};return Array.from(e).filter(Iv).forEach(e=>{let t;if(e.tagName===Sv.SELECT)t=((e,t,n)=>{const r=Rv(e,t.id),i=t.selectedIndex;return{response:n?xv(r,i):Dv(r,i)}})(r,e,o),o?m.formResponse.answers.push(t.response):g.formResponse.answers.push(t.response);else if(e.type===Cv)if(t=((e,t,n)=>{const r=Rv(e,t.id),i=Av(t);return 0!==i.length?{errors:i}:{response:n?(o=r,a=t.value,{question:o,textQuestionAnswer:{answer:a}}):Nv(r,t.value)};var o,a})(r,e,o),t.response)o?m.formResponse.answers.push(t.response):g.formResponse.answers.push(t.response);else{const n=t.errors[0];s.push({element:e,errorType:n})}else e.type===kv&&(t=((e,t,n,r,i)=>{const o=Rv(e,t),a=Ov(n,r);return a?{errors:a}:{response:{[i?"consent":"consentId"]:o,accepted:n}}})(i,e.id,e.checked,e.required,o),t.response?o?m.formResponse.consentResponses.push(t.response):g.formResponse.consentResponses.push(t.response):s.push({element:e,errorType:t.errors}))}),0===s.length?n(o?m:g):a(s)})}class Mv extends us{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:e,successCallback:t,failureCallback:n})}}Ro(Mv,"query","0a321276f8bcd90441cffeb1ab648fa1");const Uv="VIEW_FORM",Fv=".lead-gen-input-container",Bv=".error-text",jv=".submit-btn",Hv="input-error",Gv="checkbox-input",qv="inputbox-input";class Wv{constructor(e){let{isLivePreview:t=!1,encodedLeadGenFormTrackingContext:n,encryptedTrackingData:r,pemDegradationTrackingMetadata:i,persistFormOnSubmit:o,responseEndpoint:a}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("containerEl is not present");Io("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(jv),this.persistFormOnSubmit=o,this.encryptedTrackingData=r,this.encodedLeadGenFormTrackingContext=n,a&&(this.leadGenResponseMutation=new Mv(a,i)),t||this._bindInputHandlers(),this.encodedLeadGenFormTrackingContext&&!t&&(this._initClickTracking(),this._initViewTracking())}showPostSubmissionInfo(){Eo(this.formContentEl),this.postSubmissionInfoEl&&bo(this.postSubmissionInfoEl)}hideForm(){Eo(this.formContentEl)}enableSubmit(){So(this.submitBtn)}_clearFormErrors(){Array.from(this.formEl).filter(Iv).map(e=>this._hideError(e))}_submitForm(){this._clearFormErrors(),Pv(this.formEl,this.encryptedTrackingData).then(e=>{if(_o(this.submitBtn),this.leadGenResponseMutation){const t=this.leadGenResponseMutation.execute(e);d(this.containerEl,this.constructor.LEAD_GEN_SUBMIT_EVENT,t)}else d(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();A(Lv(t.element,t.errorType),I.ASSERTIVE)}})}_hideError(e){if(e){const t=e.closest(Fv),n=t.querySelector(Bv);Eo(n),t.classList.remove(Hv),e.removeAttribute("aria-invalid"),n.removeAttribute("role")}}_isError(e){var t;return null==e||null===(t=e.closest(Fv))||void 0===t?void 0:t.classList.contains(Hv)}_setAndShowError(e,t){if(e){const n=Lv(e,t),r=e.closest(Fv),i=r.querySelector(Bv);i.innerText=n,bo(i),r.classList.add(Hv),i.setAttribute("role","alert"),e.setAttribute("aria-invalid","true")}}_handleInputError(e){let t;if(this._hideError(e),e.type===kv)t=Ov(e.checked,e.required);else if(e.type===Cv){const n=Av(e);n&&n.length&&(t=n[0])}t&&this._setAndShowError(e,t)}_bindInputHandlers(){this.formEl.addEventListener("click",e=>{e.target.classList.contains(Gv)&&this._handleInputError(e.target)}),this.formEl.addEventListener("keyup",e=>{e.target.classList.contains(qv)&&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:r}=e;const i=h(document,{skipSuffix:!0}),o=`${i}-${null==t?void 0:t.toLowerCase()}`,a=io(i);r?Tu("LeadGenFormClientActionEvent",{...a,sponsoredTrackingInfo:{sponsoredEventHeader:{encryptedTrackingData:r}},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=Uv,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 r=t.dataset.lgfActionType;if(n&&("consent_link"===e.target.dataset.feedControl||"legal_disclaimer_link"===e.target.dataset.feedControl))return;this.fireInFormLeadGenTracking(r,n)}})}}Ro(Wv,"LEAD_GEN_SUBMIT_EVENT","FormModal:LeadGen:submit");class Kv{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]:()=>{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{};return ls({endpoint:this.endpoint,queryId:Kv.query,variables:{followState:e,to:t},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled}).then(e=>{const{responseText:t}=e;n(JSON.parse(t).graphQL)}).catch(r)}}Ro(Kv,"query","cbed571fffd8cea15209aed8d44e6759");const zv=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(zv));const Vv="CREATE",Xv="UPDATE";class Yv{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 r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:()=>{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:()=>{};const o={endpoint:this.endpoint,queryId:Yv.query,variables:{entityUrn:t,action:n},pemDegradationTrackingMetadata:this.pemDegradationTrackingMetadata,isPemEnabled:this.isPemEnabled};return n!==Vv&&n!==Xv||(o.variables.reactionType=e),ls(o).then(e=>{const{responseText:t}=e;r(JSON.parse(t).graphQL)}).catch(i)}}Ro(Yv,"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"});"light".toUpperCase();class Qv extends us{constructor(){super(...arguments)}execute(e){let{eventType:t,trackingToken:n,widgetActionCategory:r}=e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Qv.query,variables:{eventType:t,trackingToken:n,widgetActionCategory:r},successCallback:i,failureCallback:o})}}Ro(Qv,"query","48f4c814e38d5689b7c83a29c9676972");function Jv(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rg(r.key),r)}}function eg(e,t,n){return t&&Zv(e.prototype,t),n&&Zv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tg(e,t,n){return(t=rg(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ng(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 r,i,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=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Jv(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)?Jv(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 rg(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function ig(e){return(ig="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 og=new RegExp("urn:[^:]+:([a-z]\\w*)(?::(.+))?");var ag=/^fs_/;function sg(e){if("string"!=typeof e)throw new TypeError("URNs must be of type string, but the parameter passed to extractEntityInfoFromUrn was of type "+ig(e)+".");var t,n,r=og.exec(e);return r&&(t=r[1].replace(ag,""),n=r[2]),{id:n,type:t}}var cg=/(?![^(]*\)),/;var lg={checkForEntityId:function(e){var t=og.exec(e);return t?t[2]:e},extractEntityInfoFromUrn:sg,urnToObject:function e(t){var n=sg(t),r=n.id,i=n.type,o={};if("("===r.charAt(0)){for(var a,s=r.substring(1,r.length-1).split(cg),c=0;a=s[c];++c)0===a.indexOf("urn")&&(s[c]=e(a));r=s}return o[i]=r,o}};var ug={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},dg="GUEST",hg="MEMBER",pg="ENTERPRISE_UNBOUND",fg=0,vg=1,gg=2;tg(tg(tg({},dg,"li_gc"),hg,"li_mc"),pg,"li_ec");tg(tg(tg({},dg,"mypreferences/g/guest-cookies"),hg,"settings/member-cookies"),pg,"mypreferences/e/enterprise-cookies"),Object.freeze(["dark","light"]);var mg=eg((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,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var o in $v(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=n,this.userMode=r,this.optedInConsentMap={},ug)t[o]=t[o]||fg,t[o]!==fg&&(this.consentAvailable=!0),this.optedInConsentMap[o]=t[o]===vg||t[o]===fg&&i===vg})),yg=(function(){var e=[ug.ADVERTISING,ug.ANALYTICS_AND_RESEARCH,ug.FUNCTIONAL],t=[fg,vg,gg,fg],n=function(n){for(var r={},i=0;i<e.length;i++){r[e[i]]=t[n>>2*i&3]}return r},r=function(e){var n=fg;return e>=0&&e<=3&&(n=t[e]),n}}(),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";")),{SHARE_DATA_WITH_TRUSTED_PARTNERS:"SHARE_DATA_WITH_TRUSTED_PARTNERS"}),Eg=0,bg=1;eg((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.guestPreferencesData,r=void 0===n?null:n,i=t.issuedAt,o=void 0===i?null:i,a=t.defaultConsent,s=void 0===a?Eg:a;for(var c in $v(this,e),r=r||{},this.issuedAt=o,this.guestPreferencesMap={},yg)"number"!=typeof r[c]&&(r[c]=s),this.guestPreferencesMap[c]=r[c]===bg}));Object.freeze({EVENT_FALLBACK_UI_SHOWN:"fallback-ui-shown"});const wg=document.querySelector("#share-modal .textarea"),Tg=document.querySelector(".image-preview-wrapper"),_g=document.querySelector("#share-modal .modal-content .reshare-section"),Sg=document.querySelector(".post-button"),Cg=document.querySelector("#comments-enabled"),kg=document.querySelector("#share-with-public"),Ig=document.querySelector(".post-settings-wrapper"),Ag=document.querySelector('input[name="share-with"]:checked'),Og=document.querySelector("#share-modal .close-button"),Rg=document.querySelector("#visibility-settings-modal"),Lg=document.querySelector("#visibility-header-back .close-button"),Ng=document.querySelector("#visibility-settings-modal .settings-list-wrapper"),Dg=document.querySelector("#discard-post-modal-wrapper"),xg=document.querySelector("#share-modal"),Pg=document.querySelector(".modal-spinner"),Mg=document.querySelector("#share-modal .textarea"),Ug=document.querySelector("#share-with-groups");document.querySelector("#share-group-urn");const Fg=document.querySelector("#share-with-network");class Bg extends ps{updatePostButtonStatus(){var e;const t=null===(e=wg.innerText)||void 0===e?void 0:e.trim().length,n="loaded"===Tg.getAttribute("data-image-load-state"),r=_g.children.length;t||n||r?So(Sg):_o(Sg)}clearModalContentBase(){_g&&(_g.textContent=""),wg&&(wg.textContent=""),Cg&&(Cg.checked=!0),kg&&(kg.checked=!0,Ig.setAttribute("data-post-visibility",Ag.value))}historyBackClickHandler(){"share-modal"!==window.history.state&&"typeahead"!==window.history.state&&(window.history.pushState("share-modal","show-share-modal","#share-modal"),Og.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"))})}Rg.addEventListener("close",()=>{Ig.setAttribute("data-post-visibility",document.querySelector('input[name="share-with"]:checked').value)}),Lg.addEventListener("click",()=>window.history.back()),Ng.addEventListener("click",t=>e(t)),Ng.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}),Co()&&"discard-post-modal"===window.history.state&&setTimeout(()=>{window.history.back()},100)}postSettingsClickHandler(){window.tracking.then(e=>{e.fireControlInteractionEvent("post-settings")}),this.visibilitySettingsModal.open()}}class jg extends Bg{constructor(e,t){let{endpoint:n="",enablePageViewTracking:r=!1,shouldHideModal:i=(()=>!1),triggerByOutletEl:o=!1,pushState:a=!1,historyUpdateUrl:s}=t;super(e,{enablePageViewTracking:r,shouldHideModal:i,triggerByOutletEl:o,pushState:a}),this.el=e,this.postData={},this.endpoint=n,this.historyUpdateUrl=s,this.postUrn=Oo("ugcPostUrn"),this.openShareModalByLink=this._checkIfOpenShareModalByLink(),this.bindPublishingShareEvents(),this.visibilitySettingsModal=new ps(Rg,{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=l(this.updatePostButtonStatus,300);Mg.addEventListener("input",e)}bindShareModalEvents(){const e=new yu(Dg,this.discardPostConfirmationModalPrimaryActionCallback.bind(this,{enableHistoryBack:!this.openShareModalByLink}),()=>{},{enablePageViewTracking:!0,pageKey:"article_discard_confirmation",triggerByOutletEl:!1});xg.addEventListener("open",()=>{wg.focus()}),xg.addEventListener("close",()=>{this.clearModalContentBase(),Eo(Pg)}),Sg.addEventListener("click",()=>{this.processPostData()}),Og.addEventListener("click",()=>{Sg.disabled?this.close():e.modal.open()}),Ig.addEventListener("click",this.postSettingsClickHandler.bind(this)),Ig.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(),ko()&&window.scrollTo(0,0),n&&(Mg.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=Mg.textContent,this.shareData.visibility="PUBLIC",Ug&&(this.shareData.visibility="CONTAINER",this.shareData.containerEntity=Ug.value),Fg.checked&&(this.shareData.visibility="CONNECTIONS")}processPostData(){bo(Pg),this.composePostData(),ls({endpoint:this.endpoint,queryId:jg.query,variables:this.shareData}).then(e=>{var t,n;200!==e.status&&Promise.reject();const r=(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=>{ro(e,"ajax","post_success_page_key")}),bu().trigger("success",Oo("postSuccessMessage"),"post-success-toast-dismiss",{url:"/feed/update/"+r,trk:"share-post-success",text:Oo("postSuccessViewPost"),target:"_self"}),this.close()}).catch(()=>{window.tracking.then(e=>{ro(e,"ajax","post_failure_page_key")}),bu().trigger("error",Oo("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())}}Ro(jg,"query","971e319c05beaf333e94125db8c4f942");const Hg={"send-connection-invite":[{degradationKey:"failed-to-invite"}],follow:[{degradationKey:"failed-to-follow"}],unfollow:[{degradationKey:"failed-to-unfollow"}]};wu({featureName:"send-connection-invite",productName:"Lite-feed",featureMappingToDegradationConfig:Hg}),wu({featureName:"follow",productName:"Lite-feed",featureMappingToDegradationConfig:Hg}),wu({featureName:"unfollow",productName:"Lite-feed",featureMappingToDegradationConfig:Hg});class Gg extends us{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:Gg.query,variables:{inviteeVanityName:e},successCallback:t,failureCallback:n})}}Ro(Gg,"query","71a5ef30bcb1e84ab5a2b77850d4bb1e");class qg extends us{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:qg.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Ro(qg,"query","a628cd3be2c138c07fc69c2413b23fb6");class Wg extends us{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:Wg.query,variables:{skills:e},successCallback:t,failureCallback:n})}}Ro(Wg,"query","a0ff03a6b1cbe44862cb2054f0612078");class Kg extends us{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:Kg.query,variables:{alertChannel:e.alertChannel||"EMAIL",alertFrequency:e.alertFrequency||"DAILY",creationChannel:e.creationChannel||"ONBOARD",searchParams:e.searchParams},successCallback:t,failureCallback:n})}}Ro(Kg,"query","ad184ece0303620a9753eca249efd99f");class zg extends us{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:{updateProfilePictureInput:e},successCallback:t,failureCallback:n})}}Ro(zg,"query","7edd5b8a4513caf8180a64ecde871630");class Vg extends us{constructor(){super(...arguments)}execute(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};return this.executeAction({queryId:Vg.query,variables:{updateSettingsResponseDataFetcherInput:{type:"SHOW_PICTURE_SETTING",valueString:e}},successCallback:t,failureCallback:n})}}Ro(Vg,"query","97ceca0bcbbf3fd6d744083b4de0a202");document.querySelector.bind(document);class Xg extends us{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:Xg.query,variables:{digitalmediaAssetUrn:e},successCallback:t,failureCallback:n})}}Ro(Xg,"query","85c85c121bf7eaabd2388b9143f94546");class Yg extends us{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:{assetUrn:e},successCallback:t,failureCallback:n})}}Ro(Yg,"query","886ab48d89d7bb06bd1a5d5454286645");!function(){const e=document.querySelector(".language-selector");e&&new U(e)}(),function(){const e=document.querySelector(".dropdown");e&&new F(e)}()})();