(()=>{"use strict";var e,t={};function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}();var i,o,s,a={ADVERTISING:"ADVERTISING",ANALYTICS_AND_RESEARCH:"ANALYTICS_AND_RESEARCH",FUNCTIONAL:"FUNCTIONAL"},c="GUEST",u="MEMBER",l=0,d=1,h=2,f=(r(e={},c,"li_gc"),r(e,u,"li_mc"),function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;for(var s in n(this,e),t=t||{},this.consentAvailable=!1,this.issuedAt=r,this.userMode=i,this.optedInConsentMap={},a)t[s]=t[s]||l,t[s]!==l&&(this.consentAvailable=!0),this.optedInConsentMap[s]=t[s]===d||t[s]===l&&o===d});i=[a.ADVERTISING,a.ANALYTICS_AND_RESEARCH,a.FUNCTIONAL],o=[l,d,h,l],s=new RegExp(["^(\\d+)","(\\d+)","(\\d+)","((?:.|\\s)+)"].join(";")),new RegExp(["^(\\d+)","((?:.|\\s)+)"].join(";"));window.encodeURIComponent;function p(e){let t=e.domain;return t?t.split(".").slice(-2).join("."):""}function m(e){return e&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1)?e.slice(1,-1):e}const v={ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight",ARROW_UP:"ArrowUp",ESCAPE:"Escape",ENTER:"Enter",SPACEBAR:" ",TAB:"Tab"},g={Down:v.ARROW_DOWN,Right:v.ARROW_RIGHT,Left:v.ARROW_LEFT,Up:v.ARROW_UP,Esc:v.ESCAPE,Spacebar:v.SPACEBAR,Tab:v.TAB};function y(e){return g[e]||e}function b(e,t){if(!e)return null;let n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;for(;e&&!n.call(e,t);)e=e.parentElement;return e}class E{constructor(){this._unloadCallbacks=[],this._initEventListener()}_initEventListener(){window.addEventListener("beforeunload",e=>{for(let t=0;t<this._unloadCallbacks.length;t++){if(!1===this._unloadCallbacks[t].call(null,e))break}})}addUnloadCallback(e){e instanceof Function&&this._unloadCallbacks.push(e)}}!function(){let e}();function w(e){return null==e||"object"!=typeof e?[]:Array.prototype.slice.call(e)}function T(e,t,n){const r=new RegExp("([\\?&])".concat(n?t:encodeURIComponent(t),"=([^&#]*)")).exec(e);return r&&(n?r[2]:decodeURIComponent(r[2]))}function k(e,t,n,r){if(!e||!t)throw new Error("Required param of addQueryParam missing: url = ".concat(e,",  key = ").concat(t));t=encodeURIComponent(t),n=encodeURIComponent(n);const i=T(e,t,!0);if(i)return r?e.replace(i,n):e;{const r=e.indexOf("?");let[i,o]=e.split("#"),s="&";return r<0?s="?":r===e.length-1&&(s=""),o&&(o="#".concat(o)),"".concat(i).concat(s).concat(t,"=").concat(n).concat(o||"")}}function C(e){const t=document.cookie.match(new RegExp("(^| )"+e+"=([^;]+)"));return t&&t[2]}function S(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 I(e){return"string"!=typeof e?null:e.split("?")[0]}class R{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:s=!1}=o;this.isOpen=s,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(y(e.key)){case v.ENTER:case v.SPACEBAR:e.preventDefault(),this.isOpen?this.close():this._open(e);break;case v.ARROW_UP:this.isOpen||this._open(e);break;case v.ARROW_DOWN:this.isOpen&&this.close()}}_onKeyUp(e){y(e.key)===v.SPACEBAR&&e.preventDefault()}_onKeyDown(e){const t=y(e.key);if(t===v.ESCAPE&&this.isOpen)this.close();else if(this._isList){let n;switch(t){case v.SPACEBAR:S(e.target,"click");break;case v.ARROW_LEFT:case v.ARROW_UP:n=b(e.target,"li");let t=n.previousElementSibling;t&&S(t,"focusEl");break;case v.ARROW_RIGHT:case v.ARROW_DOWN:n=b(e.target,"li");let r=n.nextElementSibling;r&&S(r,"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)),S(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)),S(this.el,"close"),e&&this.mainButton.focus())}}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^="-"])','[tabindex]:not([tabindex^="-"]):not([disabled])'].join(",");const A=".".concat("collapsible-dropdown","__list"),N=".".concat("collapsible-dropdown","__button");class O{constructor(e){let{getFocusItemFromListItem:t=(e=>e.querySelector(_)),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");if(this.el=e,this.dropdownContentEl=i||this.el.querySelector(A),!n){const e=this.dropdownContentEl===this.dropdownContentEl.parentElement.querySelector(_),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(N),this.hideClass="hidden",this.collapsible=new R(e,this.dropdownContentEl,{mainButton:this.dropdownTriggerEl}),this._handleBodyClick=this._handleBodyClick.bind(this),this._focusOutsideDropdown=this._focusOutsideDropdown.bind(this),this._leaveWindow=this._leaveWindow.bind(this),this._attachEventListeners(),this.collapsible.isList&&(this._getFocusItemFromListItem=t)}_attachEventListeners(){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))}_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})}_showDropdownList(e){this.el.addEventListener("focusout",this._focusOutsideDropdown),window.addEventListener("blur",this._leaveWindow),this.dropdownContentEl.classList.remove(this.hideClass),this.elementToFocus.focus();const{key:t}=e&&e.detail;t?this.elementToFocus.classList.remove("no-focus-ring"):this.elementToFocus.classList.add("no-focus-ring"),document.addEventListener("mousedown",this._handleBodyClick)}_hideDropdownList(){document.removeEventListener("mousedown",this._handleBodyClick),this.el.removeEventListener("focusout",this._focusOutsideDropdown),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()}_leaveWindow(){this.collapsible.isOpen&&this.collapsible.close()}}function L(e){let{method:t="GET",headers:n={},sendCookies:r=!0,skipCsrfToken:i=!1,postData:o,isPemEnabled:s=!1,pemDegradationTrackingMetadata:a=[],pemEntityIds:c=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=new Promise((s,a)=>{const c=new XMLHttpRequest;if(c.addEventListener("load",(function(){if(c.status>=200&&c.status<300||304===c.status)s({status:c.status,responseText:c.responseText});else{const n=new Error("".concat(t," request for ").concat(e," has failed with status code ").concat(c.status));n.response={status:c.status,responseText:c.responseText},c.response&&(n.response.rawHeaders=c.getAllResponseHeaders()),a(n)}})),c.addEventListener("error",(function(e){a(e)})),c.open(t,e,!0),c.withCredentials=r,Object.keys(n).forEach(e=>{c.setRequestHeader(e,n[e])}),!i){const e=C("JSESSIONID");e&&c.setRequestHeader("Csrf-Token",m(e))}c.send(o)});return s&&(a.length?x(u,e,c,a):console.warn("Please set the value for the option pemDegradationTrackingMetadata when PEM is enabled.")),u}function x(e,t,n,r){try{const i=e.then((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e,{status:e.status})})).catch((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Response(e.response,{status:e.response?e.response.status:500,headers:e.response&&e.response.rawHeaders?M(e.response.rawHeaders):new Headers})}));window.tracking.then(e=>{window.pemTracking.then(o=>{o.trackFeatureDegradationsForFetch(t,n,r,i,e.state.currentPageInstance)})})}catch(e){}}function M(e){const t=new Headers;return e&&e.trim().split(/[\r\n]+/).forEach(e=>{const n=e.trim().split(": "),r=n.shift();if(r){const e=n.join(": ");t.set(r.toLocaleLowerCase(),e)}}),t}class D{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 O(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=m(C("bcookie")||""),n=function(e){let t="";return e.indexOf("linkedin.cn")>-1?t="https://www.linkedin.cn":e.indexOf("linkedin-ei.cn")>-1?t="https://www.linkedin-ei.cn":e.indexOf("linkedin-ei.com")>-1?t="https://www.linkedin-ei.com":e.indexOf("linkedin.com")>-1&&(t="https://www.linkedin.com"),t}(p(document));return L("".concat(n,"/psettings/update-language/cors?csrfToken=").concat(encodeURIComponent(t)),{method:"POST",headers:{"Content-Type":"application/json"},postData:JSON.stringify({locale:e}),skipCsrfToken:!0})}(e.target.getAttribute("data-locale")).then(()=>{location.reload()})}}class P 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=>{y(e.key)===v.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(y(e.key)){case v.ENTER:case v.SPACEBAR:e.target.classList.contains("show-more-less-state__label")&&(e.preventDefault(),this._checkboxStateChange(!this.stateCheckbox.checked));break;case v.ARROW_UP:this._checkboxStateChange(!0);break;case v.ARROW_DOWN:case v.ESCAPE:this._checkboxStateChange(!1);break;case v.ARROW_LEFT:if(this.stateCheckbox.checked&&e.target.classList.contains(this.listItemClass)){let t=e.target.parentNode.previousSibling;t&&t.firstChild.focus()}break;case v.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 F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t.g?t.g:"undefined"!=typeof self?self:{},U="object"==typeof F&&F&&F.Object===Object&&F,B="object"==typeof self&&self&&self.Object===Object&&self;U||B||Function("return this")(),Object.prototype.toString,Math.max,Math.min;function H(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 W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q;function z(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=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(e){a=!0,i=e}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}}(e,t)||Y(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 G(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Y(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,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(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 Q(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function X(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e){return function(e){if(Array.isArray(e))return Z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Y(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 Y(e,t){if(e){if("string"==typeof e)return Z(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)?Z(e,t):void 0}}function Z(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 $(e){return($="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 ee,te=new Uint8Array(16);function ne(){if(!ee&&!(ee="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return ee(te)}var re=/^(?:[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 ie(e){return"string"==typeof e&&re.test(e)}for(var oe=[],se=0;se<256;++se)oe.push((se+256).toString(16).substr(1));function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(oe[e[t+0]]+oe[e[t+1]]+oe[e[t+2]]+oe[e[t+3]]+"-"+oe[e[t+4]]+oe[e[t+5]]+"-"+oe[e[t+6]]+oe[e[t+7]]+"-"+oe[e[t+8]]+oe[e[t+9]]+"-"+oe[e[t+10]]+oe[e[t+11]]+oe[e[t+12]]+oe[e[t+13]]+oe[e[t+14]]+oe[e[t+15]]).toLowerCase();if(!ie(n))throw TypeError("Stringified UUID is invalid");return n}function ce(e,t,n){var r=(e=e||{}).random||(e.rng||ne)();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 ae(r)}var ue=null;if("undefined"==typeof crypto||!crypto.getRandomValues){var le=("undefined"!=typeof FastBoot?FastBoot.require:require)("crypto");if(le){var de=new Uint8Array(256),he=de.length;ue={rng:function(){return he>de.length-16&&(le.randomFillSync(de),he=0),de.slice(he,he+=16)}}}}function fe(){return ce(ue,new Array(16),0)}function pe(e){return J(e).map((function(e){return String.fromCharCode(e)})).join("")}function me(){return pe(fe())}"object"===("undefined"==typeof crypto?"undefined":$(crypto))&&crypto.randomUUID;var ve=/^[a-zA-Z0-9/+]+[=]+$/;function ge(e,t){return{pageUrn:be(e),trackingId:t||function(e){for(var t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=[],i=0,o=e.length,s=o%3,a=o-s;i<a;)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(s){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("")}(fe())}}function ye(e,t){return"urn:li:control:".concat(e,"-").concat(t)}function be(e){return"urn:li:page:".concat(e)}function Ee(e,t){return{pageInstance:t.assign({},e.pageInstance),pageKey:e.pageKey,applicationInstance:e.applicationInstance}}function we(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 Te(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}function ke(e,t,n){var r=e.get(t);r&&r.push(n)||e.set(t,[n])}function Ce(e,t,n){var r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)}var Se,Ie,Re=(Se=new Map,Ie=new Map,{on:function(e,t){ke(Se,e,t)},before:function(e,t){ke(Ie,e,t)},off:function(e,t){Ce(Se,e,t)},offBefore:function(e,t){Ce(Ie,e,t)},emit:function(e,t){(Ie.get(e)||[]).concat(Se.get(e)||[]).slice().map((function(e){e(t)}))},clear:function(){Ie.clear(),Se.clear()}});if("undefined"!=typeof document&&"undefined"!=typeof window){var _e=function(e){"pagehide"!==e.type&&"hidden"!==document.visibilityState||Re.emit("internal:hide",e)};document.addEventListener("visibilitychange",_e),window.addEventListener("pagehide",_e)}var Ae=Uint8Array,Ne=Uint16Array,Oe=Uint32Array,Le=new Ae([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]),xe=new Ae([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]),Me=new Ae([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),De=function(e,t){for(var n=new Ne(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];var i=new Oe(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]},Pe=De(Le,2),Fe=Pe[0],Ue=Pe[1];Fe[28]=258,Ue[258]=28;for(var Be=De(xe,0)[1],He=new Ne(32768),We=0;We<32768;++We){var je=(43690&We)>>>1|(21845&We)<<1;je=(61680&(je=(52428&je)>>>2|(13107&je)<<2))>>>4|(3855&je)<<4,He[We]=((65280&je)>>>8|(255&je)<<8)>>>1}var qe=function(e,t,n){for(var r=e.length,i=0,o=new Ne(t);i<r;++i)e[i]&&++o[e[i]-1];var s,a=new Ne(t);for(i=0;i<t;++i)a[i]=a[i-1]+o[i-1]<<1;if(n){s=new Ne(1<<t);var c=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],l=t-e[i],d=a[e[i]-1]++<<l,h=d|(1<<l)-1;d<=h;++d)s[He[d]>>>c]=u}else for(s=new Ne(r),i=0;i<r;++i)e[i]&&(s[i]=He[a[e[i]-1]++]>>>15-e[i]);return s},ze=new Ae(288);for(We=0;We<144;++We)ze[We]=8;for(We=144;We<256;++We)ze[We]=9;for(We=256;We<280;++We)ze[We]=7;for(We=280;We<288;++We)ze[We]=8;var Ge=new Ae(32);for(We=0;We<32;++We)Ge[We]=5;var Ke=qe(ze,9,0),Ve=qe(Ge,5,0),Qe=function(e){return(e+7)/8|0},Xe=function(e,t,n){n<<=7&t;var r=t/8|0;e[r]|=n,e[r+1]|=n>>>8},Je=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},Ye=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[it,0];if(1==i){var s=new Ae(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort((function(e,t){return e.f-t.f})),n.push({s:-1,f:25001});var a=n[0],c=n[1],u=0,l=1,d=2;for(n[0]={s:-1,f:a.f+c.f,l:a,r:c};l!=i-1;)a=n[n[u].f<n[d].f?u++:d++],c=n[u!=l&&n[u].f<n[d].f?u++:d++],n[l++]={s:-1,f:a.f+c.f,l:a,r:c};var h=o[0].s;for(r=1;r<i;++r)o[r].s>h&&(h=o[r].s);var f=new Ne(h+1),p=Ze(n[l-1],f,0);if(p>t){r=0;var m=0,v=p-t,g=1<<v;for(o.sort((function(e,t){return f[t.s]-f[e.s]||e.f-t.f}));r<i;++r){var y=o[r].s;if(!(f[y]>t))break;m+=g-(1<<p-f[y]),f[y]=t}for(m>>>=v;m>0;){var b=o[r].s;f[b]<t?m-=1<<t-f[b]++-1:++r}for(;r>=0&&m;--r){var E=o[r].s;f[E]==t&&(--f[E],++m)}p=t}return[new Ae(f),p]},Ze=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},$e=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new Ne(++t),r=0,i=e[0],o=1,s=function(e){n[r++]=e},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},et=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},tt=function(e,t,n){var r=n.length,i=Qe(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)},nt=function(e,t,n,r,i,o,s,a,c,u,l){Xe(t,l++,n),++i[256];for(var d=Ye(i,15),h=d[0],f=d[1],p=Ye(o,15),m=p[0],v=p[1],g=$e(h),y=g[0],b=g[1],E=$e(m),w=E[0],T=E[1],k=new Ne(19),C=0;C<y.length;++C)k[31&y[C]]++;for(C=0;C<w.length;++C)k[31&w[C]]++;for(var S=Ye(k,7),I=S[0],R=S[1],_=19;_>4&&!I[Me[_-1]];--_);var A,N,O,L,x=u+5<<3,M=et(i,ze)+et(o,Ge)+s,D=et(i,h)+et(o,m)+s+14+3*_+et(k,I)+(2*k[16]+3*k[17]+7*k[18]);if(x<=M&&x<=D)return tt(t,l,e.subarray(c,c+u));if(Xe(t,l,1+(D<M)),l+=2,D<M){A=qe(h,f,0),N=h,O=qe(m,v,0),L=m;var P=qe(I,R,0);for(Xe(t,l,b-257),Xe(t,l+5,T-1),Xe(t,l+10,_-4),l+=14,C=0;C<_;++C)Xe(t,l+3*C,I[Me[C]]);l+=3*_;for(var F=[y,w],U=0;U<2;++U){var B=F[U];for(C=0;C<B.length;++C){var H=31&B[C];Xe(t,l,P[H]),l+=I[H],H>15&&(Xe(t,l,B[C]>>>5&127),l+=B[C]>>>12)}}}else A=Ke,N=ze,O=Ve,L=Ge;for(C=0;C<a;++C)if(r[C]>255){H=r[C]>>>18&31,Je(t,l,A[H+257]),l+=N[H+257],H>7&&(Xe(t,l,r[C]>>>23&31),l+=Le[H]);var W=31&r[C];Je(t,l,O[W]),l+=L[W],W>3&&(Je(t,l,r[C]>>>5&8191),l+=xe[W])}else Je(t,l,A[r[C]]),l+=N[r[C]];return Je(t,l,A[256]),l+N[256]},rt=new Oe([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),it=new Ae(0),ot=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}(),st=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function at(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=ot[255&n^t[r]]^n>>>8;e=n},d:function(){return~e}}}(),r=e.length;n.p(e);var i,o,s,a=(i=e,o=t,s=function(e){return 10+(e.filename&&e.filename.length+1||0)}(t),8,function(e,t,n,r,i,o){var s=e.length,a=new Ae(r+s+5*(1+Math.ceil(s/7e3))+i),c=a.subarray(r,a.length-i),u=0;if(!t||s<8)for(var l=0;l<=s;l+=65535){var d=l+65535;d>=s&&(c[u>>3]=o),u=tt(c,u+1,e.subarray(l,d))}else{for(var h=rt[t-1],f=h>>>13,p=8191&h,m=(1<<n)-1,v=new Ne(32768),g=new Ne(m+1),y=Math.ceil(n/3),b=2*y,E=function(t){return(e[t]^e[t+1]<<y^e[t+2]<<b)&m},w=new Oe(25e3),T=new Ne(288),k=new Ne(32),C=0,S=0,I=(l=0,0),R=0,_=0;l<s;++l){var A=E(l),N=32767&l,O=g[A];if(v[N]=O,g[A]=N,R<=l){var L=s-l;if((C>7e3||I>24576)&&L>423){u=nt(e,c,0,w,T,k,S,I,_,l-_,u),I=C=S=0,_=l;for(var x=0;x<286;++x)T[x]=0;for(x=0;x<30;++x)k[x]=0}var M=2,D=0,P=p,F=N-O&32767;if(L>2&&A==E(l-F))for(var U=Math.min(f,L)-1,B=Math.min(32767,l),H=Math.min(258,L);F<=B&&--P&&N!=O;){if(e[l+M]==e[l+M-F]){for(var W=0;W<H&&e[l+W]==e[l+W-F];++W);if(W>M){if(M=W,D=F,W>U)break;var j=Math.min(F,W-2),q=0;for(x=0;x<j;++x){var z=l-F+x+32768&32767,G=z-v[z]+32768&32767;G>q&&(q=G,O=z)}}}F+=(N=O)-(O=v[N])+32768&32767}if(D){w[I++]=268435456|Ue[M]<<18|Be[D];var K=31&Ue[M],V=31&Be[D];S+=Le[K]+xe[V],++T[257+K],++k[V],R=l+M,++C}else w[I++]=e[l],++T[e[l]]}}u=nt(e,c,o,w,T,k,S,I,_,l-_,u),!o&&7&u&&(u=tt(c,u+1,it))}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?Ne:4==e.BYTES_PER_ELEMENT?Oe:Ae)(n-t);return r.set(e.subarray(t,n)),r}(a,0,r+Qe(u)+i)}(i,null==o.level?6:o.level,null==o.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(i.length)))):12+o.mem,s,8,!0)),c=a.length;return function(e,t){var n=t.filename;if(e[0]=31,e[1]=139,e[2]=8,e[8]=t.level<2?4:9==t.level?2:0,e[9]=3,0!=t.mtime&&st(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)}}(a,t),st(a,c-8,n.d()),st(a,c-4,r),a}var ct="undefined"!=typeof TextDecoder&&new TextDecoder;try{ct.decode(it,{stream:!0})}catch(Qn){}function ut(){return"undefined"!=typeof window&&"function"==typeof window.fetch}function lt(){try{return ut()&&"keepalive"in new Request("")}catch(e){return!1}}function dt(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 s=o[i];r.setRequestHeader(s,n.headers[s])}r.send(t)}}function ht(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=at((new TextEncoder).encode(t)),r["content-encoding"]="gzip"}catch(e){}return{body:o,keepalive:n,credentials:"include",headers:r,method:"POST",mode:"cors"}}function ft(e){return e&&"message"in e?e.message:"UNKNOWN_ERROR"}var pt,mt="undefined"!=typeof navigator&&"sendBeacon"in navigator,vt=lt()?function(e,t,n,r){return new Promise((function(i){fetch(e,ht({body:t,keepalive:!0,headers:n,compress:r})).catch((function(){return fetch(e,ht({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:ft(e)})}))}))}:function(e,t,n,r){return new Promise((function(i){if(mt){var o=!1;try{o=navigator.sendBeacon(e,t)}catch(e){}if(o)return void i({type:"unknown",drop:!1})}fetch(e,ht({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:ft(e)})}))}))};function gt(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function yt(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 bt(){return pt||(pt=yt("idb-queue","default")),pt}function Et(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))},gt(e.transaction)}function wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{maxNumber:1e3,batchEvictionNumber:300},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt();return t("readwrite",(function(t){return Et(t,e)}))}var Tt=!1;function kt(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]:bt();return n("readwrite",(function(n){return n.put(e),gt(n.count()).then((function(e){if(!(e<=t.maxNumber))return Et(n,t)}))})).catch((function(e){if(e&&"QuotaExceededError"===e.name)return wt(t,n)}))}function Ct(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]:bt();return Tt?Promise.resolve():kt(e,t,n)}function St(e,t,n){return t("readwrite",(function(t){var r=[];return t.openCursor(null,n).onsuccess=function(){var t=this.result;t&&(r.push(t.value),t.delete(),(e<0||r.length<e)&&t.continue())},gt(t.transaction).then((function(){return r}))}))}function It(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())},gt(t.transaction).then((function(){return r}))}))}function Rt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt();return It(e,t,"next")}function _t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt();return It(e,t,"prev")}function At(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return!t||n<1||(e[t]=JSON.stringify({attempt:n,errorCode:r})),e}function Nt(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.debug("[beacon-transporter] ",e())}function Ot(e){"undefined"!=typeof window&&window.__DEBUG_BEACON_TRANSPORTER&&console.error("[beacon-transporter] ",e())}function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{timeRemaining:5,timeout:1e4};if("undefined"==typeof requestIdleCallback)setTimeout(e,t.fallbackTimeout||10);else{var n=function n(){requestIdleCallback((function(r){r.timeRemaining()>t.timeRemaining||r.didTimeout?e():n()}),{timeout:t.timeout})};n()}}function xt(e,t){var n=0;return{throttledFn:function(){var r=Date.now();r-n>t&&(Nt((function(){return"[throttle] Run fn() at "+String(r)})),e(),n=r)},resetThrottle:function(){n=0}}}var Mt=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];K(this,e),X(this,"config",void 0),X(this,"compress",void 0),X(this,"throttleControl",void 0),X(this,"withStore",void 0),X(this,"disablePersistence",!1),this.config=t,this.compress=r;var i=t.measureIDB;i&&performance.mark(i.createStartMark),this.withStore=yt(t.idbName,"beacons","timestamp",{onSuccess:function(){i&&performance.measure(i.createSuccessMeasure,i.createStartMark)},onError:function(){i&&performance.measure(i.createFailMeasure,i.createStartMark),n.disablePersistence=!0}}),this.throttleControl=xt(this.replayEntries.bind(this),t.throttleWait)}return Q(e,[{key:"onNotify",value:function(){this.disablePersistence||this.throttleControl.throttledFn()}},{key:"push",value:function(e){var t=this;if(!this.disablePersistence){var n=function(){Nt((function(){return"Persisting to DB "+e.url})),Ct(e,t.config,t.withStore).then((function(){t.throttleControl.resetThrottle(),Nt((function(){return"push completed"}))})).catch((function(){t.disablePersistence=!0,Ot((function(){return"push failed"}))}))};this.config.useIdle?Lt(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]:bt();return Tt=!0,e("readwrite",(function(e){return e.clear(),gt(e.transaction).finally((function(){return Tt=!1}))}))}(this.withStore).catch((function(){e.disablePersistence=!0,Ot((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([]):Rt(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ot((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([]):_t(t,this.withStore).catch((function(){return e.disablePersistence=!0,Ot((function(){return"peekBack failed"})),[]}))}},{key:"replayEntries",value:function(){var e=this;if(!this.disablePersistence){var t=function(){Nt((function(){return"Replaying entry: shift from store"})),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt();return St(e,t,"next")}(1,e.withStore).then((function(t){if(t.length>0){var n,r,i=t[0],o=i.url,s=i.body,a=i.headers,c=i.timestamp,u=i.statusCode,l=i.attemptCount;return Nt((function(){return"header: ".concat(String(e.config.headerName),"; attemptCount: ").concat(l)})),null===(n=(r=e.config).onBeforeRetry)||void 0===n||n.call(r,s),vt(o,s,At(a,e.config.headerName,l,u),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,s),e.replayEntries()}else{var i,a,d,h,f,p;if(l+1>e.config.attemptLimit)return Nt((function(){return"Exceeded attempt count, dropping the entry: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),t.drop=!0,void(null===(i=(a=e.config).onResult)||void 0===i||i.call(a,t,s));if("network"===t.type||e.config.statusCodes.includes(t.statusCode))return t.drop=!1,null===(d=(h=e.config).onResult)||void 0===d||d.call(h,t,s),Nt((function(){return"Replaying the entry failed, pushing back to IDB: "+JSON.stringify({url:o,timestamp:c,statusCode:u},null,2)})),Ct({url:o,body:s,timestamp:c,statusCode:u,attemptCount:l+1},e.config,e.withStore);t.drop=!0,null===(f=(p=e.config).onResult)||void 0===f||f.call(p,t,s)}}))}})).catch((function(t){e.disablePersistence=!0,t&&t.message&&Ot((function(){return"Replay entry failed: ".concat(t.message)}))}))};this.config.useIdle?Lt(t):t()}}}]),e}(),Dt=function(){function e(){K(this,e)}return Q(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}(),Pt=function(){function e(t,n){K(this,e),X(this,"queue",void 0),X(this,"beaconListeners",new Set),this.queue=e.hasSupport&&!n.disablePersistenceRetry?new Mt(t,n.compress):new Dt}return Q(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}();X(Pt,"hasSupport","undefined"!=typeof globalThis&&!!globalThis.indexedDB);var Ft=[502,504],Ut=[429,503],Bt=function(){function e(t,n,r,i){var o=this,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];K(this,e),X(this,"url",void 0),X(this,"body",void 0),X(this,"config",void 0),X(this,"persistenceConfig",void 0),X(this,"compress",void 0),X(this,"timestamp",void 0),X(this,"isClearQueuePending",!1),X(this,"onClearCallback",void 0),this.url=t,this.body=n,this.config=r,this.persistenceConfig=i,this.compress=s,this.timestamp=Date.now(),this.onClearCallback=function(){return o.isClearQueuePending=!0}}return Q(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 vt(e.url,e.body,t,e.compress)}),n,t).finally((function(){Nt((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(At(n,this.config.headerName,o,r)).then((function(r){var o,s,a,c;if(r.drop=!1,"unknown"===r.type||"success"===r.type)i.isClearQueuePending||i.persistenceConfig.disabled||i.persistenceConfig.db.notifyQueue(),a=r;else if(Nt((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)}),a={type:"persisted",drop:!1,statusCode:r.statusCode};else{if(t>0&&i.isRetryableError(r)){var u,l;null===(u=(l=i.config).onIntermediateResult)||void 0===u||u.call(l,r,i.body);var d=i.config.calculateRetryDelay(i.getAttemptCount(t),t);return Nt((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)}))}(a=r).drop=!0}return null===(o=(s=i.config).onIntermediateResult)||void 0===o||o.call(s,a,i.body),a}))}},{key:"isRetryableError",value:function(e){return!("network"!==e.type&&!this.config.statusCodes.includes(e.statusCode))}},{key:"shouldPersist",value:function(e,t){return!(this.isClearQueuePending||this.persistenceConfig.disabled||navigator.onLine&&(0!==e||"network"!==t.type)&&("response"!==t.type||!this.persistenceConfig.statusCodes.includes(t.statusCode)))}}]),e}();function Ht(e,t,n,r,i){"control"!==r&&e.retryConfig&&function(){if("undefined"==typeof Promise||"undefined"==typeof navigator)return!1;var e=navigator.userAgent.indexOf("Chrome")>-1,t=navigator.cookieEnabled,n=navigator.storage;return e&&lt()&&t&&n}()&&navigator.storage.estimate().then((function(o){if(!((o.quota||0)-(o.usage||0)>52428800))return function(e){var t=window.indexedDB.deleteDatabase(e);return new Promise((function(e,n){t.onsuccess=function(){return e()},t.onerror=function(){return n(t.error)}}))}("beacons");var s,a,c=null!==(s=e.retryConfig.inMemory)&&void 0!==s?s:{attemptLimit:4,statusCodes:[502,504]},u=null!==(a=e.retryConfig.persist)&&void 0!==a?a:{attemptLimit:3,statusCodes:[429,503],maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},l={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:"beacons",attemptLimit:u.attemptLimit,statusCodes:u.statusCodes,maxNumber:u.maxNumber,batchEvictionNumber:u.batchEvictionNumber,throttleWait:u.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:Ft,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:Ut,maxNumber:1e3,batchEvictionNumber:300,throttleWait:3e5},t.persistenceRetry);i.headerName=i.headerName||r.headerName,e=new Pt(i,{compress:t.compress,disablePersistenceRetry:t.disablePersistenceRetry})}return{beacon:function(i,o,s){var a;return ut()?new Bt(i,o,r,{db:e,disabled:Boolean(t.disablePersistenceRetry),statusCodes:(null===(a=t.persistenceRetry)||void 0===a?void 0:a.statusCodes)||Ut},n).send(s):Promise.resolve({type:"unknown",drop:!0})},database:e}}(l),h=d.beacon,f=d.database;return e.retryBeacon={shouldRetry:!0,beacon:h,database:f},"enabled"===r?(e.retryBeacon.shouldRetry=!1,!l.disablePersistenceRetry&&t.shouldAnonymizeMemberId()?f.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 f.clearQueue()}}),(function(){return f.clearQueue()})).then((function(){e.retryBeacon.shouldRetry=!0})).catch((function(e){Re.emit("internal:error",{tags:["core-web-tracking:retry:idb"],reason:e})})):(e.retryBeacon.shouldRetry=!0,Promise.resolve())):void 0})).catch((function(e){Re.emit("internal:error",{tags:["core-web-tracking:retry:setup"],reason:e})}))}var Wt=function(){function e(t){K(this,e),X(this,"host",void 0),this.host=t}return Q(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&&Ht(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){Re.emit("internal:error",{tags:["core-web-tracking:retry:logout"],reason:e})}))}},{key:"sendPayload",value:function(e,t,n,r){var i,o=this.getRetryTreatment();lt()&&"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){Re.emit("internal:error",{tags:["core-web-tracking:retry:beacon"],reason:e})}))}},{key:"sendPayloadFireForget",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!Array.isArray(t)||t.length>0){var i="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1;i||!ut()||"undefined"==typeof Promise?dt(e,JSON.stringify(t),{headers:n}):vt(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}}]),e}(),jt="undefined"!=typeof window&&"undefined"!=typeof document,qt=/JSESSIONID="?([^";]+)"?/,zt="",Gt=0;function Kt(){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?qt:r;if(!zt||Date.now()-Gt>n){var o=jt&&document.cookie.match(i);zt=o&&o[1]||"",Gt=Date.now()}return zt}var Vt=function(){function e(t){K(this,e),X(this,"networkTransporter",void 0),X(this,"inactive",void 0),X(this,"mpName",void 0),X(this,"endpoint",void 0),X(this,"debug",void 0),this.networkTransporter=new Wt(t),this.mpName=t.appId,this.inactive=t.inactive;var n=function(e){var t,n=!1;switch(e){case"https://www.linkedin.com/li/track":t=Xt;break;case"https://www.linkedin-ei.com/li/track/validate":n=!0,t=Qt;break;case"https://www.linkedin-ei.com/li/track":t=Qt;break;default:n=!0,t=Qt}return{endpoint:t,debug:n}}(t.endpoint);this.endpoint=n.endpoint,this.debug=n.debug}return Q(e,[{key:"fireFragment",value:function(e){if(!this.inactive){var t={"content-type":"application/json; charset=UTF-8","x-li-track":JSON.stringify({mpName:this.mpName}),"csrf-token":Kt(),"x-restli-protocol-version":"2.0.0"},n={fragmentEvent:e,debug:this.debug};this.networkTransporter.sendPayload(this.endpoint,n,t)}}}]),e}(),Qt="https://www.linkedin-ei.com/trackingMonitoring/?action=saveClientFragment",Xt="https://www.linkedin.com/trackingMonitoring/?action=saveClientFragment";function Jt(e){return"string"==typeof e}function Yt(e){return Jt(e)?e:e.topicName||e.eventName}function Zt(e){return Jt(e)?e:e.eventName}var $t,en,tn=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};K(this,e),X(this,"host",void 0),X(this,"cmoTransporter",void 0),X(this,"clientMonitoringInstanceId",me()),X(this,"currentContext",on()),X(this,"appState",{}),X(this,"estimatedFragmentSize",0),X(this,"fragmentSizeLimit",void 0),X(this,"activeFragmentEvent",void 0),X(this,"debounceTimer",void 0),this.host=t,this.cmoTransporter=r.cmoTransporter||new Vt(t),this.fragmentSizeLimit=(null===(n=t.clientMonitoringConfig)||void 0===n?void 0:n.fragmentSizeLimit)||10240,this.activeFragmentEvent=rn(this.clientMonitoringInstanceId,0,0,!1,this.getEventHeaders())}return Q(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=G(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(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:e,eventsSent:0,eventTopics:[],networkResponseStats:{eventsWith2XXResponse:0,eventsWith400Response:0,eventsWith408Response:0,eventsWith429Response:0,eventsWith4XXResponse:0,eventsWith500Response:0,eventsWith502Response:0,eventsWith503Response:0,eventsWith504Response:0,eventsWith5XXResponse:0},failures:[]};t(c),this.activeFragmentEvent.stats.previousInstanceEventStats.push(c)}},{key:"logFailedEvent",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.getCurrentInstanceId(),o=this.getEventHeaders(),s=o.header,a=o.requestHeader,c={header:Object.assign(s,{memberId:-1}),requestHeader:a,instanceId:i,instanceEventNumber:r,reason:e,rawError:n,eventName:Zt(t),eventTopic:Yt(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(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e||this.fragmentIsFull()){this.debounceTimer=void 0;var t=this.getEventHeaders(),n=t.header,r=t.requestHeader,i=this.activeFragmentEvent;i.header=n,i.requestHeader=r,this.cmoTransporter.fireFragment(i),this.estimatedFragmentSize=0,this.activeFragmentEvent=rn(this.clientMonitoringInstanceId,i.fragmentNumber+1,i.firstEventNumber+i.stats.eventsGenerated,!1,t)}}},{key:"setCurrentContext",value:function(e){this.currentContext=e}},{key:"updateAppState",value:function(e){this.host.api.assign(this.appState,e)}},{key:"getEventHeaders",value:function(){var e=void 0;this.appState.clientApplicationInstance&&((e=this.appState.clientApplicationInstance).trackingId=sn(e.trackingId));var t=this.currentContext.pageInstance;return t.trackingId=sn(t.trackingId),{requestHeader:{interfaceLocale:this.host.locale,pageKey:this.currentContext.pageKey,path:this.host.api.location.pathname+this.host.api.location.search,referer:this.host.api.document.referrer},header:{applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:e,pageInstance:t,time:Date.now(),version:this.host.appVersion,server:"",service:"",guid:"0000000000000000"}}}}]),e}();function nn(e){return $t||($t=new tn(e)),{getCurrentInstanceId:function(){return $t.getCurrentInstanceId()},logEventGenerated:function(e){return $t.logEventGenerated(e)},logEventReadyToSend:function(e){$t.logEventReadyToSend(e)},logEventSent:function(e){$t.logEventSent(e)},logPersistedEventSent:function(e,t){$t.logEventSent(t,e)},logNetworkResponseCode:function(e){$t.logNetworkResponseCode(e)},logPersistedNetworkResponseCode:function(e,t){var n;null===(n=$t)||void 0===n||n.logNetworkResponseCode(t,e)},logFailedEvent:function(e,t,n,r){$t.logFailedEvent(e,t,n,r)},logPersistedFailedEvent:function(e,t,n,r,i){$t.logFailedEvent(t,n,r,i,e)},flush:function(){$t.flush()},destroy:function(){$t=void 0},isDestroyed:function(){return void 0===$t},setCurrentContext:function(e){$t.setCurrentContext(e)},updateAppState:function(e){$t.updateAppState(e)}}}function rn(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 on(){return{pageKey:"unknown",pageInstance:ge("unknown")}}function sn(e){return Array.isArray(e)?pe(e):16===e.length?e:function(e){return"string"==typeof e&&!!e.match(ve)}(e)?atob(e):pe(function(e){return function(e){if(!ie(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}(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"}(en||(en={}));var an,cn,un,ln="PageViewEvent",dn=function(){function e(t){var n,r=this;K(this,e),X(this,"host",void 0),X(this,"queue",void 0),X(this,"preContextQueue",void 0),X(this,"debounceTimer",void 0),X(this,"unloadHandlers",void 0),X(this,"maxQueueSize",void 0),X(this,"flushDebounceTime",void 0),X(this,"trackingEventListeners",[]),X(this,"onHideHandler",(function(){r.forceFlush()})),X(this,"networkTransporter",void 0),X(this,"clientMonitoringConn",void 0),this.host=t,this.queue=[],this.preContextQueue=[],this.unloadHandlers=[];var i=t.batching;this.maxQueueSize=i&&i.maxSize||1,this.flushDebounceTime=i&&i.debounceTime||0,Re.on("internal:hide",this.onHideHandler),this.networkTransporter=new Wt(t),"enabled"===(null===(n=t.__getLixTreatment)||void 0===n?void 0:n.call(t,"pemberly.tracking.monitoring"))&&t.clientMonitoringConfig&&!t.inactive&&(this.clientMonitoringConn=nn(t))}return Q(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,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logFailedEvent(en.UNKNOWN_EXECUTION_ERROR,{eventName:i,topicName:o},a,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,s="rawError"in e?e.rawError:"null",a=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(s)].join(", ");t.logPersistedFailedEvent(i,en.UNKNOWN_EXECUTION_ERROR,{eventName:r,topicName:o},a,n.eventBody.header.clientMonitoringInstanceEventNumber)}))}catch(e){}}});this.networkTransporter.checkAndEnablePersistentRetry(e,n)}},{key:"clearPersistedEventsOnLogout",value:function(){return this.networkTransporter.clearPersistedEventsOnLogout()}},{key:"on",value:function(e){this.trackingEventListeners.push(e)}},{key:"fireEvent",value:function(e){var t=function(e){return e.meta.time=Date.now(),e}(e);this.clientMonitoringConn&&(t.meta.clientMonitoringInstanceId=this.clientMonitoringConn.getCurrentInstanceId(),t.meta.clientMonitoringInstanceEventNumber=this.clientMonitoringConn.logEventGenerated(Yt(e.id)));var n,r=this.host,i=r.api.Promise,o=r.batching;return function(e){return!!e.meta.context}(t)?(this.prepareCompleteEnvelopeQueue(t),null===(n=this.clientMonitoringConn)||void 0===n||n.logEventReadyToSend(1),o?(this.batchFire(),i.resolve(!0)):(this.flush(!0),i.resolve(!0))):(this.preContextQueue.push(t),i.resolve(!0))}},{key:"callOnDestroy",value:function(e){this.unloadHandlers.push(e)}},{key:"destroy",value:function(){this.unloadHandlers.forEach((function(e){return e()})),this.forceFlush(),this.trackingEventListeners=[],this.clientMonitoringConn=void 0,Re.off("internal:hide",this.onHideHandler)}},{key:"forceFlush",value:function(){var e=this;this.populatePreContextQueue({pageInstance:ge("unknown"),pageKey:"unknown"}).forEach((function(t){return e.queue.push(t)})),this.flush(!0)}},{key:"prepareCompleteEnvelopeQueue",value:function(e){var t=this,n=e.meta.context=Ee(e.meta.context,this.host.api);"function"==typeof e.body&&(e.body=e.body(n)),this.preContextQueue.length>0&&this.populatePreContextQueue(n).forEach((function(e){return t.queue.push(e)})),this.queue.push(e)}},{key:"envelop",value:function(e,t){var n=this.host,r=n.appId,i=n.api;return{eventBody:t,eventInfo:"string"==typeof e?{appId:r,eventName:e,topicName:e}:i.assign({appId:r},e)}}},{key:"getGenericEventBody",value:function(e){var t,n=this.host,r=n.appVersion,i=n.locale,o=n.api,s=o.location,a=o.document,c=o.assign,u=e.meta.context,l=u.pageKey,d=u.pageInstance,h=function(e){return"string"==typeof e?e===ln:e.eventName===ln}(e.id)&&(null===(t=e.body.requestHeader)||void 0===t?void 0:t.pageKey)||l,f=null;"string"!=typeof i&&null!==this.host.locale||(f=i);var p={interfaceLocale:f,pageKey:h,path:s.pathname+s.search,referer:a.referrer},m={header:c({pageInstance:d,time:e.meta.time,version:r},e.meta.header||{}),requestHeader:c(p,e.meta.requestHeader||{})},v=e.meta.clientMonitoringInstanceId,g=e.meta.clientMonitoringInstanceEventNumber;return v&&c(m.header,{clientMonitoringInstanceId:v,clientMonitoringInstanceEventNumber:g}),c(e.body,m)}},{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){this.trackingEventListeners.forEach((function(t){return t(e)}))}},{key:"requestFlush",value:function(e){var t=this;e((function(n){n.timeRemaining()>5||n.didTimeout?t.forceFlush():t.requestFlush(e)}),{timeout:1e4})}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.host.api.requestIdleCallback;e||!t?this.sendPayload():this.requestFlush(t)}},{key:"batchFire",value:function(){var e=this;this.queue.length>this.maxQueueSize?this.flush():(this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout((function(){return e.flush()}),this.flushDebounceTime))}},{key:"sendPayload",value:function(){var e=this,t=this.queue;if(0!==t.length){this.queue=[];var n,r,i=[],o=[];t.forEach((function(t){var n=e.getGenericEventBody(t),r=e.envelop(t.id,n);e.trigger(r);var s=r.eventInfo.eventName;"LixTreatmentsEvent"===s||"JavaScriptErrorEvent"===s?i.push(r):o.push(r)})),this.host.inactive||(this.clientMonitoringConn&&(this.clientMonitoringConn.logEventSent(i.length+o.length),r=this.clientMonitoringConn,n={onResult:function(e,t){r&&!r.isDestroyed()&&(e.statusCode&&r.logNetworkResponseCode(e.statusCode),!0===e.drop&&t.forEach((function(t){var n=t.eventInfo.eventName,i=t.eventInfo.topicName||n,o="rawError"in e?e.rawError:"null",s=["type: ".concat(e.type),"statusCode: ".concat(e.statusCode||"null"),"drop: ".concat(String(e.drop)),"rawError: ".concat(o)].join(", ");null==r||r.logFailedEvent(en.UNKNOWN_EXECUTION_ERROR,{eventName:n,topicName:i},s,t.eventBody.header.clientMonitoringInstanceEventNumber||-1)})))}}),this.networkTransporter.sendPayloadFireForget(this.host.endpoint,i,void 0,n),this.networkTransporter.sendPayload(this.host.endpoint,o,void 0,n))}}}]),e}();function hn(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=function(e){var t=decodeURIComponent(e).split(";");if(t.length>1)return{pageUrn:t[0],trackingId:t[1]}}(e.lipi),o=i&&{pageInstance:i,pageKey:t}||t&&{pageKey:t};if(e.external_page&&e.external_page_instance){var s=decodeURIComponent(e.external_page);o={pageInstance:{pageUrn:"urn:li:externalPage:".concat(s),trackingId:e.external_page_instance},pageKey:s},n=!0}var a=e.external_app&&e.external_app_instance?{applicationUrn:"urn:li:externalApplication:".concat(decodeURIComponent(e.external_app)),trackingId:e.external_app_instance,version:""}:void 0;return a&&((o=o||{}).applicationInstance=a),{fromExternalApp:n||!!a,previousApplicationInstance:a,previousContext:o,previousControlId:e.lici&&decodeURIComponent(e.lici),previousControlUrn:r}}function fn(e){return"retryConfig"in e.host}function pn(e){return e.split("").reduce((function(e,t){return(e<<5)-e+t.charCodeAt(0)|0}),0)}!function(){function e(t,n){var r,i;if(K(this,e),X(this,"transporter",void 0),X(this,"delegate",void 0),X(this,"currentContext",void 0),X(this,"appState",void 0),X(this,"previousAppContext",void 0),X(this,"customTransporters",void 0),X(this,"clientMonitoringConn",void 0),this.transporter=t,this.delegate=n,this.appState={},this.customTransporters={},n&&n.customTransporterHosts)for(var o in n.customTransporterHosts)if(Object.prototype.hasOwnProperty.call(n.customTransporterHosts,o)){var s=this.transporter.host.api.assign({},this.transporter.host);this.customTransporters[o]=new dn(this.transporter.host.api.assign(s,n.customTransporterHosts[o]))}"enabled"===(null===(r=(i=t.host).__getLixTreatment)||void 0===r?void 0:r.call(i,"pemberly.tracking.monitoring"))&&t.host.clientMonitoringConfig&&!t.host.inactive&&"location"in t.host.api&&(this.clientMonitoringConn=nn(t.host))}Q(e,[{key:"host",get:function(){return this.transporter.host}},{key:"checkAndEnablePersistentRetry",value:function(){fn(this.transporter)&&this.transporter.checkAndEnablePersistentRetry(this.delegate)}},{key:"flushAndClearPersistedEventsOnLogout",value:function(){this.forceFlush();var e=fn(this.transporter)?this.transporter.clearPersistedEventsOnLogout():null;return null!=e?e:this.host.api.Promise.resolve()}},{key:"getCurrentContext",value:function(){if(this.currentContext)return Ee(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,hn(t));if(this.setCurrentContext(r.to),!n.suppressEventsFiring)return this.fireNavEvents(r)}},{key:"setCurrentContext",value:function(e){var t;this.currentContext=Ee(e,this.host.api),null===(t=this.clientMonitoringConn)||void 0===t||t.setCurrentContext(Ee(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=ye(n.pageKey,e),s={controlTrackingId:r,controlUrn:o,interactionType:t};return i&&i(o),s}),{context:n})}},{key:"fireEvent",value:function(e,t,n){if(!t){var r=Yt(e),i=void 0===t?"undefined":null===t?"null":$(t),o='Firing tracking event "'.concat(r,'" with invalid body, you fired "').concat(i,'"');if(this.clientMonitoringConn){var s=this.clientMonitoringConn.logEventGenerated(r);this.clientMonitoringConn.logFailedEvent(en.MISSING_REQUIRED_PROPERTIES,e,o,s)}throw new Error(o)}return this.fireEnvelope(this.generateEnvelope(e,t,n))}},{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(Jt(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,s=o?this.customTransporters[o]:this.transporter;if(!s&&o){var a=Yt(i.id),c="Could not find custom transporter: ".concat(o);if(this.clientMonitoringConn){var u=this.clientMonitoringConn.logEventGenerated(a);this.clientMonitoringConn.logFailedEvent(en.UNKNOWN_EXECUTION_ERROR,i.id,c,u)}throw new Error(c)}return s.fireEvent(i)}return this.host.api.Promise.resolve(!0)}},{key:"generatePageInstance",value:function(e,t){return ge(e,t)}},{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),Re.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 ye((t||this.currentContext||{pageKey:"unknown"}).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){var n="NavigationEvent";this.previousAppContext=t.previousContext;var r=t.fromExternalApp?{eventName:n,topicName:"InboundNavigationEvent"}:n;return{from:t.previousContext,navEventId:r,to:{applicationInstance:t.applicationInstance,pageInstance:this.generatePageInstance(e,t.pageTrackingId),pageKey:e},triggerId:t.previousControlId,triggerUrn:t.previousControlUrn}}},{key:"fireNavEvents",value:function(e){var t=this.generateNavigationEvent(e),n=e.to,r=e.from,i=e.navEventId,o=this.generateEnvelope(i,t);o.meta.requestHeader.pageKey=n.pageKey;var s=r&&r.applicationInstance;return s&&(o.meta.header.clientApplicationInstance=s),this.host.api.Promise.all([this.firePVE(n.pageKey),this.fireEnvelope(o)])}},{key:"generateEnvelope",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={directive:n.directive,transporterKey:n.transporterKey,context:n.context||this.currentContext&&Ee(this.currentContext,this.host.api),requestHeader:this.host.api.assign({trackingCode:this.getTrackingCode()},n.requestHeader||{}),header:this.host.api.assign({applicationViewerUrn:this.appState.applicationViewerUrn,clientApplicationInstance:this.appState.clientApplicationInstance},n.header||{})};return{body:"function"==typeof t?t:function(){return t},id:e,meta:r}}}])}(),function(){function e(t,n){var r,i=this;K(this,e),X(this,"core",void 0),X(this,"protocol",void 0),X(this,"throttleKeySet",new Set),X(this,"config",void 0),X(this,"reportTransporterError",(function(e){e.reason instanceof Error||(e.reason=new Error(e.reason||"An error occurred in the transporter")),i.reportError(e.reason,e.tags.concat(["info"])).catch((function(){}))})),this.core=t;var o=this.core.host.api.location.protocol;this.protocol=o.substring(0,o.length-1),this.config={throttleTime:null!==(r=null==n?void 0:n.throttleTime)&&void 0!==r?r:100},Re.on("internal:error",this.reportTransporterError)}Q(e,[{key:"reportError",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.callTreeId,o=void 0===i?"":i,s=e.message,a=e.name,c=e.stack,u=void 0===c?"":c,l=e.fileName,d=void 0===l?"":l,h=e.lineNumber,f=void 0===h?0:h,p=e.columnNumber,m=void 0===p?0:p,v=this.core.host,g=v.appId,y=v.appVersion,b=v.service,E=v.serviceInstance,w=v.treeID,T=void 0===w?"":w,k=v.api,C=k.Promise,S=k.location,I=S.host,R=S.pathname,_=S.search,A=S.hash,N=void 0===A?"":A,O=function(){return t.core.fireEvent("JavaScriptErrorEvent",(function(e){return{appId:g,e:{c:m,l:f,m:s,s:u,t:a,u:d},h:N,l:t.protocol,o:I,p:R,pageKey:e.pageKey,q:_,service:b,serviceInstance:E,serviceVersion:y,t:n,trackingID:e.pageInstance.trackingId,treeID:T,callTreeId:o}}))};if(this.config.throttleTime<0)return O();var L=pn(a+s+u+n.join("")+o);return this.throttleKeySet.has(L)?C.resolve(!1):(this.throttleKeySet.add(L),setTimeout((function(){return t.throttleKeySet.delete(L)}),this.config.throttleTime),O())}},{key:"flush",value:function(){this.core.forceFlush()}},{key:"destroy",value:function(){this.core.destroy(),Re.off("internal:error",this.reportTransporterError)}}])}();var mn=function(){function e(){K(this,e),X(this,"userTimingEntries",[]),X(this,"longTasks",[]),X(this,"resourceTimingEntries",[]),X(this,"cdnData",void 0)}return Q(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(gn),cdnData:this.cdnData}}}]),e}(),vn=["resourceTreeId","name","entryType","startTime","duration","initiatorType","nextHopProtocol","redirectStart","redirectEnd","fetchStart","domainLookupStart","domainLookupEnd","connectStart","connectEnd","secureConnectionStart","requestStart","responseStart","responseEnd","transferSize","encodedBodySize","decodedBodySize","workerStart"];function gn(e){return vn.reduce((function(t,n){var r=e[n];return void 0!==r&&(t[n]=r),t}),{})}function yn(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};cn=Object.assign(Object.assign({},n),t),un=function(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}(cn.root,n);var r=bn(e,an.All,(function(){return bn(e,an.Two,(function(){return bn(e,an.One)}))}));if(r){var i=_n(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>cn.optimizedMinLength)for(var o=1;o<t.length-1;o++){if(r.counter>cn.maxNumberOfTries)return i;r.counter+=1;var s=J(t);s.splice(o,1);var a=wn(s);if(r.visited.has(a))return i;kn(s)&&An(s,n)&&(i.push(s),r.visited.set(a,!0),i=i.concat(e(s,n,r)))}return i}(r,e));return i.length>0&&(r=i[0]),wn(r)}throw new Error("Selector was not found.")}function bn(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var e=In(function(e){var t=e.getAttribute("id");return t&&cn.idName(t)?{name:"#"+Dn(t,{isIdentifier:!0}),penalty:0}:null}(o))||In.apply(void 0,J(function(e){return Array.from(e.attributes).filter((function(e){return cn.attr(e.name,e.value)})).map((function(e){return{name:"["+Dn(e.name,{isIdentifier:!0})+'="'+Dn(e.value)+'"]',penalty:.5}}))}(o)))||In.apply(void 0,J(function(e){return Array.from(e.classList).filter(cn.className).map((function(e){return{name:"."+Dn(e,{isIdentifier:!0}),penalty:1}}))}(o)))||In(function(e){var t=e.tagName.toLowerCase();return cn.tagName(t)?{name:t,penalty:2}:null}(o))||[{name:"*",penalty:3}],a=function(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}(o);if(t===an.All)a&&(e=e.concat(e.filter(Sn).map((function(e){return Cn(e,a)}))));else if(t===an.Two)e=e.slice(0,1),a&&(e=e.concat(e.filter(Sn).map((function(e){return Cn(e,a)}))));else if(t===an.One){var c=z(e=e.slice(0,1),1)[0];a&&Sn(c)&&(e=[Cn(c,a)])}var u,l=G(e);try{for(l.s();!(u=l.n()).done;)u.value.level=s}catch(e){l.e(e)}finally{l.f()}if(i.push(e),i.length>=cn.seedMinLength&&(r=En(i,n)))return"break";o=o.parentElement,s++};o&&o!==cn.root.parentElement&&"break"!==a(););return r||(r=En(i,n)),r}function En(e,t){var n=_n(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t.length>0){var r,i=[],o=G(t[0]);try{for(o.s();!(r=o.n()).done;){var s=r.value;i=i.concat(e(t.slice(1,t.length),n.concat(s)))}}catch(t){o.e(t)}finally{o.f()}return i}return[n]}(e));if(n.length>cn.threshold)return t?t():null;var r,i=G(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(kn(o))return o}}catch(e){i.e(e)}finally{i.f()}return null}function wn(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 Tn(e){return e.map((function(e){return e.penalty})).reduce((function(e,t){return e+t}),0)}function kn(e){switch(un.querySelectorAll(wn(e)).length){case 0:throw new Error("Can't select any node with this selector: ".concat(wn(e)));case 1:return!0;default:return!1}}function Cn(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Sn(e){return"html"!==e.name&&!e.name.startsWith("#")}function In(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Rn);return r.length>0?r:null}function Rn(e){return null!=e}function _n(e){return Array.from(e).sort((function(e,t){return Tn(e)-Tn(t)}))}function An(e,t){return un.querySelector(wn(e))===t}!function(e){e[e.All=0]="All",e[e.Two=1]="Two",e[e.One=2]="One"}(an||(an={}));var Nn,On=/[ -,\.\/:-@\[-\^`\{-~]/,Ln=/[ -,\.\/:-@\[\]\^`\{-~]/,xn=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Mn={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1};function Dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign({},Mn),t);"single"!=n.quotes&&"double"!=n.quotes&&(n.quotes="single");for(var r="double"==n.quotes?'"':"'",i=n.isIdentifier,o=e.charAt(0),s="",a=0,c=e.length;a<c;){var u=e.charAt(a++),l=u.charCodeAt(0),d=void 0;if(l<32||l>126){if(l>=55296&&l<=56319&&a<c){var h=e.charCodeAt(a++);56320==(64512&h)?l=((1023&l)<<10)+(1023&h)+65536:a--}d="\\"+l.toString(16).toUpperCase()+" "}else d=n.escapeEverything?On.test(u)?"\\"+u:"\\"+l.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(u)?"\\"+l.toString(16).toUpperCase()+" ":"\\"==u||!i&&('"'==u&&r==u||"'"==u&&r==u)||i&&Ln.test(u)?"\\"+u:u;s+=d}return i&&(/^-[-\d]/.test(s)?s="\\-"+s.slice(1):/\d/.test(o)&&(s="\\3"+o+" "+s.slice(1))),s=s.replace(xn,(function(e,t,n){return t&&t.length%2?e:(t||"")+n})),!i&&n.wrap?r+s+r:s}function Pn(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 Fn(e){var t=e||performance;return Math.round(t.now())}function Un(e){if(!e)return"null";if(e.nodeType===Node.ELEMENT_NODE)try{return yn(e,{idName:function(e){return 0!==e.indexOf("ember")}})}catch(e){return"serialization_error"}var t=Un(e.parentElement||void 0);return"".concat(t," > nodeType(").concat(e.nodeType,")")}function Bn(e,t,n){var r=[];return e&&"function"==typeof e.getEntriesByType&&(t["user-timing-measure-enabled"]&&e.getEntriesByType("measure").forEach((function(e){r.push({entryType:"MEASURE",name:e.name,startTime:e.startTime,duration:e.duration})})),t["user-timing-mark-enabled"]&&e.getEntriesByType("mark").forEach((function(e){r.push({entryType:"MARK",name:e.name,startTime:e.startTime,duration:e.duration})})),n&&(e.clearMeasures(),e.clearMarks())),r}function Hn(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}var Wn,jn=function(){function e(t){K(this,e),X(this,"hostApis",void 0),X(this,"hostnameProperties",void 0),X(this,"usedHostnames",void 0),X(this,"abortController",void 0),X(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 Q(e,[{key:"clearUsedHostnames",value:function(){this.usedHostnames=new Set}},{key:"getPresentData",value:function(){var e=this;return Te(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=we(Te(this.pendingPromises),i),s=setTimeout((function(){t.abortController.abort(),t.abortController=new r}),e);return o.then((function(){return clearTimeout(s),t.getPresentData()}))}},{key:"inspectEntryForCdnData",value:function(e){var t=this;if(!(e.name.indexOf(".licdn.")<0)){var n,r,i=this.hostApis.assign,o=(n=e.name,r=this.hostApis.document,(Nn=Nn||r.createElement("a")).href=n,Nn.hostname);if(this.usedHostnames.add(o),!this.hostnameProperties[o]&&!this.isResourcePossiblyFromCache(e)){var s=this.fetchCdnFromUrl(e.name).then((function(e){var n=i({hostname:o},e);return t.hostnameProperties[o]||(t.hostnameProperties[o]=n),t.pendingPromises.delete(s),n}));this.pendingPromises.add(s)}}}},{key:"fetchCdnFromUrl",value:function(e){return(0,this.hostApis.fetch)(e,{method:"HEAD",signal:this.abortController.signal}).then((function(e){return{provider:e.headers.get("X-CDN")||"",ipVersion:e.headers.get("X-CDN-CLIENT-IP-VERSION")||"",httpVersion:e.headers.get("X-CDN-Proto")||""}}))}},{key:"isResourcePossiblyFromCache",value:function(e){return void 0!==e.transferSize?0===e.transferSize:e.domainLookupStart===e.domainLookupEnd&&e.connectEnd===e.connectStart&&0===e.secureConnectionStart}}]),e}(),qn=function(){function e(t,n,r,i){var o=this;K(this,e),X(this,"hostApis",void 0),X(this,"statics",void 0),X(this,"options",void 0),X(this,"allowTimingOrigin",void 0),X(this,"collectResourceTimings",void 0),X(this,"collectCdnData",void 0),X(this,"perfObserver",void 0),X(this,"renderTimings",new Map),X(this,"urlToTreeId",new Map),X(this,"cdnDataProvider",void 0),X(this,"currentCollect",void 0),X(this,"currentTimer",void 0),X(this,"collectWhileWaitingForAsync",void 0),X(this,"onBeforeHideHandler",(function(){o.collectAndClearTimer(!0)})),X(this,"observables",new mn),X(this,"isInitial",!0),this.hostApis=t,this.statics=n,this.options=r,this.allowTimingOrigin=i,this.collectResourceTimings=r["enable-rs-timing"],this.collectCdnData=r["enable-cdn-tracking"],this.collectCdnData&&(this.cdnDataProvider=new jn(t))}return Q(e,[{key:"recordTreeId",value:function(e,t){this.collectResourceTimings&&this.urlToTreeId.set(function(e,t){return(Nn=Nn||t.createElement("a")).href=e,Nn.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:Pn(this.hostApis.performance,this.allowTimingOrigin)})}},{key:"recordRenderEnd",value:function(e){var t=this.renderTimings.get(e);t&&(t.renderEnd=t.renderEnd||Pn(this.hostApis.performance,this.allowTimingOrigin))}},{key:"startObserving",value:function(){var e=this.hostApis,t=e.PerformanceObserver,n=e.performance;this.stopObserving(),t?this.setupPerformanceObserver(t):this.collectResourceTimings&&this.emulateResourceTimingObserver(n),this.collectResourceTimings&&this.processNewResourceTimings()}},{key:"stopObserving",value:function(){var e;this.collectAndClearTimer(!0),null===(e=this.perfObserver)||void 0===e||e.disconnect(),this.reset()}},{key:"collectAndClearTimer",value:function(e){this.currentCollect?(this.currentCollect(e),clearTimeout(this.currentTimer),this.currentCollect=null,this.currentTimer=null):e&&this.collectWhileWaitingForAsync&&this.collectWhileWaitingForAsync()}},{key:"collect",value:function(e){var t=this,n=this.isInitial;this.isInitial=!1;var r=this.hostApis,i=r.assign,o=r.PerformanceObserver,s=r.Promise;this.currentCollect=function(r){Re.offBefore("internal:hide",t.onBeforeHideHandler);var a=function(){var r=Object.create(null);t.observables.cdnData=t.collectCdnData?t.cdnDataProvider.getPresentData():null,o||(t.observables.userTimingEntries=Bn(t.hostApis.performance,t.options,!0),t.collectResourceTimings&&t.processNewResourceTimings()),t.observables.attachTreeIds(t.urlToTreeId),t.urlToTreeId.clear();var s=t.observables.getData(),a=t.extractUsedCDN(s.cdnData||[]);i(t.statics,a),i(r,s,t.snapshot,t.statics),n&&(i(r,function(e){if(!e)return{navigationTimingApi:!1};var t=Object.create({});if("function"==typeof e.getEntriesByType){var n=e.getEntriesByType("navigation")[0];n&&(["fetchStart","responseEnd","decodedBodySize","encodedBodySize","transferSize"].every((function(e){return"number"==typeof n[e]}))&&(t.htmlMetrics={htmlFetchStart:n.fetchStart,htmlResponseEnd:n.responseEnd,htmlDecodedBodySize:n.decodedBodySize,htmlEncodedBodySize:n.encodedBodySize,htmlTransferSize:n.transferSize}),t.workerStart=n.workerStart)}var r=e.timing,i=e.navigation;return r&&i?(t.navigationTimingApi=!0,zn.forEach((function(e){e in r&&(t[e]=r[e])})),t.navigationType=i.type,t.redirectCount=i.redirectCount):t.navigationTimingApi=!1,t}(t.hostApis.performance)),t.statics.pageLoadMode="PARTIAL"),t.reset(),e(r)};if(r)a();else{t.collectWhileWaitingForAsync=a;var c=[];t.collectCdnData&&c.push(t.cdnDataProvider.getDataWhenReady(t.options["async-plugins-timeout"]).then((function(e){t.observables.cdnData=e}))),c.length>0?we(c,s).then((function(){t.collectWhileWaitingForAsync=null,a()})):a()}},Re.before("internal:hide",this.onBeforeHideHandler),this.currentTimer=setTimeout((function(){t.currentCollect(!1),t.currentCollect=null,t.currentTimer=null}),this.options["beacon-timeout"])}},{key:"setupPerformanceObserver",value:function(e){var t=this;this.perfObserver=new e((function(e){e.getEntries().forEach((function(e){var n=e.entryType,r=e.name,i=e.startTime,o=e.duration;"resource"===n?t.processSingleResourceTiming(e):"mark"===n?t.observables.userTimingEntries.push({entryType:"MARK",name:r,startTime:i,duration:o}):"measure"===n?t.observables.userTimingEntries.push({entryType:"MEASURE",name:r,startTime:i,duration:o}):"longtask"===n&&t.observables.longTasks.push({duration:o,name:r,startTime:i})}))})),this.observables.userTimingEntries=Bn(this.hostApis.performance,this.options,!1);var n=["longtask"];(this.collectResourceTimings||this.collectCdnData)&&n.push("resource"),this.options["user-timing-mark-enabled"]&&n.push("mark"),this.options["user-timing-measure-enabled"]&&n.push("measure"),this.perfObserver.observe({entryTypes:n})}},{key:"emulateResourceTimingObserver",value:function(e){var t=this;e&&"function"==typeof e.setResourceTimingBufferSize&&"function"==typeof e.onresourcetimingbufferfull&&(e.setResourceTimingBufferSize(100),e.onresourcetimingbufferfull=function(){return t.processNewResourceTimings()})}},{key:"processNewResourceTimings",value:function(){var e=this,t=this.hostApis.performance;"function"==typeof t.getEntriesByType&&"function"==typeof t.clearResourceTimings&&(t.getEntriesByType("resource").forEach((function(t){return e.processSingleResourceTiming(t)})),t.clearResourceTimings())}},{key:"processSingleResourceTiming",value:function(e){this.collectResourceTimings&&this.observables.resourceTimingEntries.push(e),this.collectCdnData&&this.cdnDataProvider.inspectEntryForCdnData(e)}},{key:"extractUsedCDN",value:function(e){var t=e.filter((function(e){return e.hostname.indexOf("static")>=0})),n=t.length>0?t[0]:{hostname:"",provider:"",httpVersion:"",ipVersion:""};return{usedCDN:{static_domain:n.provider,http_version:n.httpVersion,ip_version:n.ipVersion}}}},{key:"reset",value:function(){var e;this.observables.reset(),null===(e=this.cdnDataProvider)||void 0===e||e.clearUsedHostnames()}},{key:"snapshot",get:function(){var e={detailedRenderTimingEntries:Hn(this.renderTimings),networkInformationMetrics:Gn(this.hostApis.connection)};return this.renderTimings.clear(),e}}]),e}(),zn=["loadEventEnd","loadEventStart","domComplete","domContentLoadedEventEnd","domContentLoadedEventStart","domInteractive","domLoading","responseEnd","responseStart","requestStart","secureConnectionStart","connectEnd","connectStart","domainLookupEnd","domainLookupStart","fetchStart","redirectEnd","redirectStart","unloadEventEnd","unloadEventStart","navigationStart"];function Gn(e){return e?{connectionType:e.type&&e.type.toUpperCase()||"UNKNOWN",effectiveType:function(e){switch(e){case"2g":return"TWO_G";case"3g":return"THREE_G";case"4g":return"FOUR_G";default:return"SLOW_2G"}}(e.effectiveType),roundTripTime:e.rtt||-1,downlinkBandwidth:e.downlink||-1,downlinkMaxBandwidth:void 0===e.downlinkMax?-1:e.downlinkMax===1/0?0:e.downlinkMax}:void 0}!function(e){e.RealUserMonitoringEvent="RealUserMonitoringEvent",e.FeaturePerformanceMeasurementEvent="FeaturePerformanceMeasurementEvent",e.ClientPerfMetricsEvent="ClientPerfMetricsEvent",e.WEB_UI_FRAMEWORK="web-ui-framework",e.APP_ID="app-id",e.APP_VERSION="app-version",e.IS_SINGLE_PAGE_APP="is-single-page-app",e.IS_APP_RENDER_FAILED="is-app-render-failed",e.APP_RENDER_MODE="app-render-mode",e.USER_TIMING_MARK_ENABLED="user-timing-mark-enabled",e.USER_TIMING_MEASURE_ENABLED="user-timing-measure-enabled",e.BEACON_SOURCE="beacon-source",e.BEACON_TIMEOUT="beacon-timeout",e.ENABLE_RS_TIMING="enable-rs-timing",e.ENABLE_CDN_TRACKING="enable-cdn-tracking",e.ASYNC_PLUGINS_TIMEOUT="async-plugins-timeout",e.ENABLE_MEMORY_MEASUREMENT="enable-memory-measurement"}(Wn||(Wn={}));var Kn=(X(q={},"web-ui-framework","EMBER"),X(q,"app-id","linkedin.rum.tracking"),X(q,"app-version","unknown"),X(q,"is-single-page-app",!0),X(q,"user-timing-mark-enabled",!1),X(q,"user-timing-measure-enabled",!0),X(q,"beacon-source","apps"),X(q,"enable-rs-timing",!0),X(q,"enable-cdn-tracking",!1),X(q,"async-plugins-timeout",5e3),X(q,"beacon-timeout",3e4),X(q,"enable-memory-measurement",!1),q),Vn=Q((function e(t,n,r){K(this,e),X(this,"webUIFramework",void 0),X(this,"timeSource",void 0),X(this,"isSinglePageApp",void 0),X(this,"appRenderMode",void 0),X(this,"isAppRenderFailed",void 0),X(this,"pageLoadMode","INITIAL"),X(this,"isSSL",void 0),X(this,"treeId",void 0),X(this,"isFromServiceWorker",void 0),X(this,"usedCDN",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}));var Qn,Xn,Jn,Yn,Zn=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)}},$n=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},er=function(e,t){var n=function n(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)},tr=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},nr=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)))}},rr=-1,ir=function(){return"hidden"===document.visibilityState?0:1/0},or=function(){er((function(e){var t=e.timeStamp;rr=t}),!0)},sr=function(){return rr<0&&(rr=ir(),or(),tr((function(){setTimeout((function(){rr=ir(),or()}),0)}))),{get firstHiddenTime(){return rr}}},ar=!1,cr=-1,ur=function(e,t){ar||(function(e,t){var n,r=sr(),i=Zn("FCP"),o=function(e){"first-contentful-paint"===e.name&&(a&&a.disconnect(),e.startTime<r.firstHiddenTime&&(i.value=e.startTime,i.entries.push(e),n(!0)))},s=window.performance&&performance.getEntriesByName&&performance.getEntriesByName("first-contentful-paint")[0],a=s?null:$n("paint",o);(s||a)&&(n=nr(e,i,t),s&&o(s),tr((function(r){i=Zn("FCP"),n=nr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,n(!0)}))}))})))}((function(e){cr=e.value})),ar=!0);var n,r=function(t){cr>-1&&e(t)},i=Zn("CLS",0),o=0,s=[],a=function(e){if(!e.hadRecentInput){var t=s[0],r=s[s.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,s.push(e)):(o=e.value,s=[e]),o>i.value&&(i.value=o,i.entries=s,n())}},c=$n("layout-shift",a);c&&(n=nr(r,i,t),er((function(){c.takeRecords().map(a),n(!0)})),tr((function(){o=0,cr=-1,i=Zn("CLS",0),n=nr(r,i,t)})))},lr={passive:!0,capture:!0},dr=new Date,hr=function(e,t){Qn||(Qn=t,Xn=e,Jn=new Date,mr(removeEventListener),fr())},fr=function(){if(Xn>=0&&Xn<Jn-dr){var e={entryType:"first-input",name:Qn.type,target:Qn.target,cancelable:Qn.cancelable,startTime:Qn.timeStamp,processingStart:Qn.timeStamp+Xn};Yn.forEach((function(t){t(e)})),Yn=[]}},pr=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(){hr(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,lr),removeEventListener("pointercancel",r,lr)};addEventListener("pointerup",n,lr),addEventListener("pointercancel",r,lr)}(t,e):hr(t,e)}},mr=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,pr,lr)}))},vr=function(e,t){var n,r=sr(),i=Zn("FID"),o=function(e){e.startTime<r.firstHiddenTime&&(i.value=e.processingStart-e.startTime,i.entries.push(e),n(!0))},s=$n("first-input",o);n=nr(e,i,t),s&&er((function(){s.takeRecords().map(o),s.disconnect()}),!0),s&&tr((function(){var r;i=Zn("FID"),n=nr(e,i,t),Yn=[],Xn=-1,Qn=null,mr(addEventListener),r=o,Yn.push(r),fr()}))},gr={},yr=function(e,t){var n,r=sr(),i=Zn("LCP"),o=function(e){var t=e.startTime;t<r.firstHiddenTime&&(i.value=t,i.entries.push(e)),n()},s=$n("largest-contentful-paint",o);if(s){n=nr(e,i,t);var a=function(){gr[i.id]||(s.takeRecords().map(o),s.disconnect(),gr[i.id]=!0,n(!0))};["keydown","click"].forEach((function(e){addEventListener(e,a,{once:!0,capture:!0})})),er(a,!0),tr((function(r){i=Zn("LCP"),n=nr(e,i,t),requestAnimationFrame((function(){requestAnimationFrame((function(){i.value=performance.now()-r.timeStamp,gr[i.id]=!0,n(!0)}))}))}))}},br=["LCP","FID","CLS"],Er={LCP:"LargestContentfulPaint",FID:"FirstInputDelay",CLS:"CumulativeLayoutShift"},wr={},Tr=!1,kr=[],Cr={LCP:"largest-contentful-paint",FID:"first-input",CLS:"layout-shift"};function Sr(e){wr[e]={name:e,value:-1,updateHistory:[]};var t=Cr[e];"undefined"!=typeof PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&"string"==typeof t&&PerformanceObserver.supportedEntryTypes.indexOf(t)>-1||(wr[e].value=-2)}function Ir(e){var t=wr[e.name],n=Fn();t&&(t.updateHistory.push({time:n,data:e}),t.value=e.value),kr.forEach((function(t){return t(e,n,!1)}))}function Rr(e){kr.forEach((function(t){return t(e,Fn(),!0)}))}var _r=function(){function e(t,n){K(this,e),X(this,"basePageTreeId",void 0),X(this,"basePageKey",void 0),X(this,"startPageInstance",void 0),X(this,"observing",!1),X(this,"fpmReportingState",{}),X(this,"appContextMap",new Map),X(this,"rumConfig",void 0),X(this,"trackingCore",void 0),X(this,"removeOnHiddenListener",(function(){})),this.trackingCore=t,this.rumConfig=n}return Q(e,[{key:"startObserving",value:function(){var e,t,n,r,i=this;e=!0===window.__test__resetWebVitalsState,Tr&&!e||(e&&(kr=[]),br.forEach(Sr),[yr,vr,ur].forEach((function(e){return e(Ir,!0)})),[yr,vr,ur].forEach((function(e){return e(Rr)})),Tr=!0),this.observing||(this.observing=!0,this.basePageTreeId=this.trackingCore.host.treeID||"_unknown",this.basePageKey=(null===(t=this.trackingCore.getCurrentContext())||void 0===t?void 0:t.pageKey)||"_unknown",this.startPageInstance=(null===(n=this.trackingCore.getCurrentContext())||void 0===n?void 0:n.pageInstance)||ge("unknown"),br.forEach((function(e){var t;i.fpmReportingState[e]=!1,-2===(null===(t=wr[e])||void 0===t?void 0:t.value)&&i.reportMetric(e)})),r=this.onMetricUpdate.bind(this),kr.push(r),this.removeOnHiddenListener=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function n(r){"hidden"===document.visibilityState&&(e(r),t&&removeEventListener("visibilitychange",n,!0))};return addEventListener("visibilitychange",n,!0),function(){removeEventListener("visibilitychange",n,!0)}}(this.reportAllRemainingWithFpm.bind(this)))}},{key:"stopObserving",value:function(){this.observing=!1,this.removeOnHiddenListener()}},{key:"onMetricUpdate",value:function(e,t,n){var r;this.observing&&(n?this.reportMetric(e.name):this.appContextMap.set(t,{time:t,url:location.href,pageKey:null===(r=this.trackingCore.getCurrentContext())||void 0===r?void 0:r.pageKey}))}},{key:"reportMetric",value:function(e){this.reportViaFpmEvent(e),this.reportViaClientPerfEvent(e)}},{key:"reportViaClientPerfEvent",value:function(e){var t=wr[e],n={name:Er[e]||e};"CLS"===e?n.doubleValue=t.value:n.longValue=Math.round(t.value);var r=wr[e];if(r){var i=function(e,t,n,r,i){var o={basePageTreeId:e,basePageKey:t},s=null;switch(n.name){case"LCP":s=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],s={pageKey:(null===(n=t.get(r.time))||void 0===n?void 0:n.pageKey)||"_unknown",element:Un(o.element),renderTime:Math.round(o.renderTime),loadTime:Math.round(o.loadTime),size:Math.round(o.size)};return o.url&&(s.url=o.url),s}(n,r);break;case"FID":s=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:Un(o.target)}}(n,r);break;case"CLS":s=function(e,t){if(0===e.updateHistory.length)return null;var n=e.updateHistory.map((function(e){return e.data.entries})).flat();if(0===n.length)return null;var 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 s,a=t.get(i.time);return o&&a?{shiftCount:n.length,"largestShift.value":r.value,"largestShift.hadRecentInput":r.hadRecentInput,"largestShift.largestSource.node":Un(null===(s=o)||void 0===s?void 0:s.node),"largestShift.pageKey":a.pageKey||"_unknown","largestShift.url":a.url,"largestShift.startTime":Math.round(r.startTime)}:null}(n,r)}if(s){var a={};return i(a,o,s),a}return o}(this.basePageTreeId,this.basePageKey,r,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}(i)}var o={scope:{scopeType:"APPLICATION_INSTANCE",scopeKey:this.basePageTreeId},metrics:[n]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"ClientPerfMetricsEvent"},o)}},{key:"reportViaFpmEvent",value:function(e){if(!1===this.fpmReportingState[e]){var t=wr[e],n={basePageTreeId:this.basePageTreeId,name:e,startTime:Fn(this.trackingCore.host.api.performance),duration:this.formatValue(t.value,e),startPageInstance:this.startPageInstance,marks:[],spans:[]};this.trackingCore.fireEvent({appId:this.rumConfig["app-id"],eventName:"FeaturePerformanceMeasurementEvent"},n)}this.fpmReportingState[e]=!0}},{key:"reportAllRemainingWithFpm",value:function(){var e=this;br.forEach((function(t){t in wr&&e.reportViaFpmEvent(t)})),this.trackingCore.forceFlush()}},{key:"formatValue",value:function(e,t){var n=e;return-1===e||-2===e?n:("CLS"===t&&(n*=1e5),Math.round(n))}}]),e}(),Ar=function(){function e(t,n,r){K(this,e),X(this,"featureName",void 0),X(this,"trackingCore",void 0),X(this,"rumConfig",void 0),X(this,"observing",!1),X(this,"basePageTreeId",void 0),X(this,"startPageInstance",void 0),X(this,"startMemory",void 0),X(this,"reportTimeouts",[]),this.featureName=t,this.trackingCore=n,this.rumConfig=r}return Q(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)||ge("unknown"),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:Fn(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}();X(Ar,"checkpoints",[1,3,10,30,90,180,300]),function(){function e(t,n,r){var i,o;K(this,e),X(this,"core",void 0),X(this,"config",void 0),X(this,"perfTimeWM",new WeakMap),X(this,"collector",void 0),X(this,"boomerangStart",-1),X(this,"webVitalsObserver",void 0),X(this,"appMemoryObserver",void 0),X(this,"pageMemoryObserver",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({},Kn),n);var s="enabled"===(null===(i=(o=this.core.host).__getLixTreatment)||void 0===i?void 0:i.call(o,"pemberly.tracking.time-origin-epoch-time"));this.collector=new qn(r.host.api,new Vn(t,this.config,r.host),this.config,s),this.collector.startObserving()}Q(e,[{key:"pingCDN",value:function(){}},{key:"recordTreeId",value:function(e,t){e&&this.collector.recordTreeId(e,t)}},{key:"recordRenderStart",value:function(e,t){this.collector.recordRenderStart(e,t||e)}},{key:"recordRenderEnd",value:function(e){this.collector.recordRenderEnd(e)}},{key:"start",value:function(){var e,t,n,r;this.collector.collectAndClearTimer(!1);var i,o=Object.create(null),s="enabled"===(null===(e=(t=this.core.host).__getLixTreatment)||void 0===e?void 0:e.call(t,"pemberly.tracking.time-origin-epoch-time"));return this.perfTimeWM.set(o,Pn(this.core.host.api.performance,s)),(this.config["enable-memory-measurement"]||"enabled"===(null===(n=(r=this.core.host).__getLixTreatment)||void 0===n?void 0:n.call(r,"pemberly.tracking.rum-memory-measurement")))&&(null===(i=this.pageMemoryObserver)||void 0===i||i.stopObserving(),this.pageMemoryObserver=new Ar("page-memory",this.core,this.config),this.pageMemoryObserver.startObserving(),void 0===this.appMemoryObserver&&(this.appMemoryObserver=new Ar("application-memory",this.core,this.config),this.appMemoryObserver.startObserving())),o}},{key:"observeWebVitals",value:function(){void 0===this.webVitalsObserver&&(this.webVitalsObserver=new _r(this.core,this.config),this.webVitalsObserver.startObserving())}},{key:"end",value:function(e){var t,n,r=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,s=this.core.host.api,a=s.performance,c=s.assign,u=this.perfTimeWM.get(e);if(void 0===u)throw new Error("The rum token passed in is invalid");this.perfTimeWM.delete(e);var l="enabled"===(null===(t=(n=this.core.host).__getLixTreatment)||void 0===t?void 0:t.call(n,"pemberly.tracking.time-origin-epoch-time")),d=Pn(a,l),h=this.config["app-version"];this.collector.collect((function(e){var t=r.boomerangStart=e.navigationStart||r.boomerangStart,n=e.navigationStart||u,s=d-n;r.core.fireEvent({appId:r.config["app-id"],eventName:"RealUserMonitoringEvent"},(function(r){return c({pageKey:o||r.pageKey,isImpactedByHiddenWindow:i,appVersion:h,timeDone:s,navigationStart:n,boomerangStart:t,renderCompleteTime:d},e)}))}))}},{key:"destroy",value:function(){var e,t,n;this.collector.stopObserving(),null===(e=this.webVitalsObserver)||void 0===e||e.stopObserving(),null===(t=this.appMemoryObserver)||void 0===t||t.stopObserving(),null===(n=this.pageMemoryObserver)||void 0===n||n.stopObserving(),this.core.destroy()}}])}();var Nr="undefined"!=typeof window&&"undefined"!=typeof performance,Or="undefined"!=typeof location&&-1!==location.search.indexOf("_LI_MEASURE_DEBUG");function Lr(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)}!function(){function e(t,n){K(this,e),X(this,"featureKey",void 0),X(this,"productName",void 0),X(this,"endPageInstance",void 0),X(this,"startPageInstance",void 0),X(this,"isCanceled",!1),X(this,"name",void 0),X(this,"featureIdentifier",void 0),X(this,"startTime",void 0),X(this,"duration",void 0),X(this,"marks",[]),X(this,"spanStarts",new Map),X(this,"spans",[]),X(this,"isSpanContainer",!1),X(this,"basePageTreeId",void 0),X(this,"isClosed",!1),this.featureKey=t,this.productName=n;var r=n?"::".concat(n):"";this.featureIdentifier="".concat(t).concat(r),this.name=t}Q(e,[{key:"start",value:function(e){this.startPageInstance=e,Nr&&(this.startTime=Fn(),Or&&performance.mark("LI:".concat(this.featureIdentifier,"-start")))}},{key:"mark",value:function(e){Nr&&(this.marks.push({name:e,startTime:Fn()}),Or&&(performance.mark("LI:".concat(this.featureIdentifier,"-mark-").concat(e)),performance.measure("LI:".concat(this.featureIdentifier,"-mark-").concat(e),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-mark-").concat(e))))}},{key:"spanStart",value:function(e){Nr&&(this.spanStarts.set(e,Fn()),Or&&performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start")))}},{key:"spanEnd",value:function(e,t){if(Nr&&this.spanStarts.has(e)){var n=this.spanStarts.get(e);this.spans.push({name:t||e,startTime:n,duration:Fn()-n}),Or&&(performance.mark("LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")),performance.measure("LI:".concat(this.featureIdentifier,"-span-").concat(t||e),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-start"),"LI:".concat(this.featureIdentifier,"-span-").concat(e,"-end")))}}},{key:"end",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isClosed){if(this.isSpanContainer=t,this.isClosed=!0,this.isCanceled)throw new Error('[rum measurement] cannot end a canceled measurement "'.concat(this.featureIdentifier,'"'));this.endPageInstance=e,Nr&&(this.duration=Fn()-this.startTime,Or&&!this.isSpanContainer&&(performance.mark("LI:".concat(this.featureIdentifier,"-end")),performance.measure("LI:".concat(this.featureIdentifier),"LI:".concat(this.featureIdentifier,"-start"),"LI:".concat(this.featureIdentifier,"-end"))),this.cleanUp())}}},{key:"cancel",value:function(){this.isCanceled||(this.isCanceled=!0)}},{key:"setBasePageTreeId",value:function(e){this.basePageTreeId=e}},{key:"toEventBody",value:function(){if(Nr){var e={name:this.featureKey,startTime:this.startTime,duration:this.isSpanContainer?-1:this.duration,basePageTreeId:this.basePageTreeId,startPageInstance:this.startPageInstance||ge("unknown"),marks:this.marks,spans:this.spans};return this.productName&&(e.productName=this.productName),e}}},{key:"check",value:function(){if(Nr){if(this.isCanceled)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" has been canceled'));if(!this.isClosed)throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is still open'));if(this.isSpanContainer&&0===this.spans.length)throw new Error("The span container should have at least one span");for(var e=0,t=["startTime","duration","basePageTreeId"];e<t.length;e++){var n=t[e];if(void 0===this[n])throw new Error('[rum measurement] "'.concat(this.featureIdentifier,'" is missing "').concat(n,'"'))}}}},{key:"cleanUp",value:function(){this.spanStarts.clear()}}])}();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)))[;,]|[/.#?])");const{ENTER:xr,ESCAPE:Mr}=v;const Dr={COPY:"copy",LINKEDIN:"linkedin",TWITTER:"twitter",FACEBOOK:"facebook"};Object.keys(Dr).map(e=>Dr[e]);const Pr={};function Fr(e){const t=document.getElementById(e);if(!t&&void 0!==Pr[e])return Pr[e];if(!t)return console.warn("Element with id: ".concat(e," not found")),Pr[e]=null,Pr[e];let n;for(const e of t.childNodes)try{if(e.nodeType===Node.COMMENT_NODE){n=JSON.parse(e.nodeValue);break}}catch(e){}return void 0===n?(console.warn("Error retrieving content with id: ".concat(e,". Use embedJson helper to embed this content")),null):(Pr[e]=n,t.parentNode.removeChild(t),Pr[e])}const Ur=["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(Ur,"i");var Br=Object.hasOwnProperty,Hr=Object.setPrototypeOf,Wr=Object.isFrozen,jr=Object.getPrototypeOf,qr=Object.getOwnPropertyDescriptor,zr=Object.freeze,Gr=Object.seal,Kr=Object.create,Vr="undefined"!=typeof Reflect&&Reflect,Qr=Vr.apply,Xr=Vr.construct;Qr||(Qr=function(e,t,n){return e.apply(t,n)}),zr||(zr=function(e){return e}),Gr||(Gr=function(e){return e}),Xr||(Xr=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 Jr,Yr=ai(Array.prototype.forEach),Zr=ai(Array.prototype.pop),$r=ai(Array.prototype.push),ei=ai(String.prototype.toLowerCase),ti=ai(String.prototype.match),ni=ai(String.prototype.replace),ri=ai(String.prototype.indexOf),ii=ai(String.prototype.trim),oi=ai(RegExp.prototype.test),si=(Jr=TypeError,function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Xr(Jr,t)});function ai(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 Qr(e,t,r)}}function ci(e,t){Hr&&Hr(e,null);for(var n=t.length;n--;){var r=t[n];if("string"==typeof r){var i=ei(r);i!==r&&(Wr(t)||(t[n]=i),r=i)}e[r]=!0}return e}function ui(e){var t=Kr(null),n=void 0;for(n in e)Qr(Br,e,[n])&&(t[n]=e[n]);return t}function li(e,t){for(;null!==e;){var n=qr(e,t);if(n){if(n.get)return ai(n.get);if("function"==typeof n.value)return ai(n.value)}e=jr(e)}return function(e){return console.warn("fallback value for",e),null}}var di=zr(["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"]),hi=zr(["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"]),fi=zr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),pi=zr(["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"]),mi=zr(["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"]),vi=zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),gi=zr(["#text"]),yi=zr(["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"]),bi=zr(["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"]),Ei=zr(["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"]),wi=zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ti=Gr(/\{\{[\s\S]*|[\s\S]*\}\}/gm),ki=Gr(/<%[\s\S]*|[\s\S]*%>/gm),Ci=Gr(/^data-[\-\w.\u00B7-\uFFFF]/),Si=Gr(/^aria-[\-\w]+$/),Ii=Gr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ri=Gr(/^(?:\w+script|data):/i),_i=Gr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ai="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 Ni(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 Oi=function(){return"undefined"==typeof window?null:window},Li=function(e,t){if("object"!==(void 0===e?"undefined":Ai(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 xi=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oi(),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,s=t.HTMLTemplateElement,a=t.Node,c=t.Element,u=t.NodeFilter,l=t.NamedNodeMap,d=void 0===l?t.NamedNodeMap||t.MozNamedAttrMap:l,h=t.HTMLFormElement,f=t.DOMParser,p=t.trustedTypes,m=c.prototype,v=li(m,"cloneNode"),g=li(m,"nextSibling"),y=li(m,"childNodes"),b=li(m,"parentNode");if("function"==typeof s){var E=i.createElement("template");E.content&&E.content.ownerDocument&&(i=E.content.ownerDocument)}var w=Li(p,r),T=w?w.createHTML(""):"",k=i,C=k.implementation,S=k.createNodeIterator,I=k.createDocumentFragment,R=k.getElementsByTagName,_=r.importNode,A={};try{A=ui(i).documentMode?i.documentMode:{}}catch(e){}var N={};n.isSupported="function"==typeof b&&C&&void 0!==C.createHTMLDocument&&9!==A;var O=Ti,L=ki,x=Ci,M=Si,D=Ri,P=_i,F=Ii,U=null,B=ci({},[].concat(Ni(di),Ni(hi),Ni(fi),Ni(mi),Ni(gi))),H=null,W=ci({},[].concat(Ni(yi),Ni(bi),Ni(Ei),Ni(wi))),j=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),q=null,z=null,G=!0,K=!0,V=!1,Q=!1,X=!1,J=!1,Y=!1,Z=!1,$=!1,ee=!1,te=!0,ne=!0,re=!1,ie={},oe=null,se=ci({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ae=null,ce=ci({},["audio","video","img","source","image","track"]),ue=null,le=ci({},["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",fe="http://www.w3.org/1999/xhtml",pe=fe,me=!1,ve=void 0,ge=["application/xhtml+xml","text/html"],ye="text/html",be=void 0,Ee=null,we=i.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},ke=function(e){Ee&&Ee===e||(e&&"object"===(void 0===e?"undefined":Ai(e))||(e={}),e=ui(e),U="ALLOWED_TAGS"in e?ci({},e.ALLOWED_TAGS):B,H="ALLOWED_ATTR"in e?ci({},e.ALLOWED_ATTR):W,ue="ADD_URI_SAFE_ATTR"in e?ci(ui(le),e.ADD_URI_SAFE_ATTR):le,ae="ADD_DATA_URI_TAGS"in e?ci(ui(ce),e.ADD_DATA_URI_TAGS):ce,oe="FORBID_CONTENTS"in e?ci({},e.FORBID_CONTENTS):se,q="FORBID_TAGS"in e?ci({},e.FORBID_TAGS):{},z="FORBID_ATTR"in e?ci({},e.FORBID_ATTR):{},ie="USE_PROFILES"in e&&e.USE_PROFILES,G=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,V=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Q=e.SAFE_FOR_TEMPLATES||!1,X=e.WHOLE_DOCUMENT||!1,Z=e.RETURN_DOM||!1,$=e.RETURN_DOM_FRAGMENT||!1,ee=e.RETURN_TRUSTED_TYPE||!1,Y=e.FORCE_BODY||!1,te=!1!==e.SANITIZE_DOM,ne=!1!==e.KEEP_CONTENT,re=e.IN_PLACE||!1,F=e.ALLOWED_URI_REGEXP||F,pe=e.NAMESPACE||fe,e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ve=ve=-1===ge.indexOf(e.PARSER_MEDIA_TYPE)?ye:e.PARSER_MEDIA_TYPE,be="application/xhtml+xml"===ve?function(e){return e}:ei,Q&&(K=!1),$&&(Z=!0),ie&&(U=ci({},[].concat(Ni(gi))),H=[],!0===ie.html&&(ci(U,di),ci(H,yi)),!0===ie.svg&&(ci(U,hi),ci(H,bi),ci(H,wi)),!0===ie.svgFilters&&(ci(U,fi),ci(H,bi),ci(H,wi)),!0===ie.mathMl&&(ci(U,mi),ci(H,Ei),ci(H,wi))),e.ADD_TAGS&&(U===B&&(U=ui(U)),ci(U,e.ADD_TAGS)),e.ADD_ATTR&&(H===W&&(H=ui(H)),ci(H,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&ci(ue,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(oe===se&&(oe=ui(oe)),ci(oe,e.FORBID_CONTENTS)),ne&&(U["#text"]=!0),X&&ci(U,["html","head","body"]),U.table&&(ci(U,["tbody"]),delete q.tbody),zr&&zr(e),Ee=e)},Ce=ci({},["mi","mo","mn","ms","mtext"]),Se=ci({},["foreignobject","desc","title","annotation-xml"]),Ie=ci({},hi);ci(Ie,fi),ci(Ie,pi);var Re=ci({},mi);ci(Re,vi);var _e=function(e){var t=b(e);t&&t.tagName||(t={namespaceURI:fe,tagName:"template"});var n=ei(e.tagName),r=ei(t.tagName);if(e.namespaceURI===he)return t.namespaceURI===fe?"svg"===n:t.namespaceURI===de?"svg"===n&&("annotation-xml"===r||Ce[r]):Boolean(Ie[n]);if(e.namespaceURI===de)return t.namespaceURI===fe?"math"===n:t.namespaceURI===he?"math"===n&&Se[r]:Boolean(Re[n]);if(e.namespaceURI===fe){if(t.namespaceURI===he&&!Se[r])return!1;if(t.namespaceURI===de&&!Ce[r])return!1;var i=ci({},["title","style","font","a","script"]);return!Re[n]&&(i[n]||!Ie[n])}return!1},Ae=function(e){$r(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=T}catch(t){e.remove()}}},Ne=function(e,t){try{$r(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){$r(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(Z||$)try{Ae(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Oe=function(e){var t=void 0,n=void 0;if(Y)e="<remove></remove>"+e;else{var r=ti(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=w?w.createHTML(e):e;if(pe===fe)try{t=(new f).parseFromString(o,ve)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(pe,"template",null);try{t.documentElement.innerHTML=me?"":o}catch(e){}}var s=t.body||t.documentElement;return e&&n&&s.insertBefore(i.createTextNode(n),s.childNodes[0]||null),pe===fe?R.call(t,X?"html":"body")[0]:X?t.documentElement:s},Le=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null,!1)},xe=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)},Me=function(e){return"object"===(void 0===a?"undefined":Ai(a))?e instanceof a:e&&"object"===(void 0===e?"undefined":Ai(e))&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},De=function(e,t,r){N[e]&&Yr(N[e],(function(e){e.call(n,t,r,Ee)}))},Pe=function(e){var t=void 0;if(De("beforeSanitizeElements",e,null),xe(e))return Ae(e),!0;if(ti(e.nodeName,/[\u0080-\uFFFF]/))return Ae(e),!0;var r=be(e.nodeName);if(De("uponSanitizeElement",e,{tagName:r,allowedTags:U}),!Me(e.firstElementChild)&&(!Me(e.content)||!Me(e.content.firstElementChild))&&oi(/<[/\w]/g,e.innerHTML)&&oi(/<[/\w]/g,e.textContent))return Ae(e),!0;if("select"===r&&oi(/<template/i,e.innerHTML))return Ae(e),!0;if(!U[r]||q[r]){if(ne&&!oe[r]){var i=b(e)||e.parentNode,o=y(e)||e.childNodes;if(o&&i)for(var s=o.length-1;s>=0;--s)i.insertBefore(v(o[s],!0),g(e))}if(!q[r]&&Ue(r)){if(j.tagNameCheck instanceof RegExp&&oi(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}return Ae(e),!0}return e instanceof c&&!_e(e)?(Ae(e),!0):"noscript"!==r&&"noembed"!==r||!oi(/<\/no(script|embed)/i,e.innerHTML)?(Q&&3===e.nodeType&&(t=e.textContent,t=ni(t,O," "),t=ni(t,L," "),e.textContent!==t&&($r(n.removed,{element:e.cloneNode()}),e.textContent=t)),De("afterSanitizeElements",e,null),!1):(Ae(e),!0)},Fe=function(e,t,n){if(te&&("id"===t||"name"===t)&&(n in i||n in we))return!1;if(K&&!z[t]&&oi(x,t));else if(G&&oi(M,t));else if(!H[t]||z[t]){if(!(Ue(e)&&(j.tagNameCheck instanceof RegExp&&oi(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&oi(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&oi(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(ue[t]);else if(oi(F,ni(n,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ri(n,"data:")||!ae[e]){if(V&&!oi(D,ni(n,P,"")));else if(n)return!1}else;return!0},Ue=function(e){return e.indexOf("-")>0},Be=function(e){var t=void 0,r=void 0,i=void 0,o=void 0;De("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var a={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};for(o=s.length;o--;){var c=t=s[o],u=c.name,l=c.namespaceURI;if(r=ii(t.value),i=be(u),a.attrName=i,a.attrValue=r,a.keepAttr=!0,a.forceKeepAttr=void 0,De("uponSanitizeAttribute",e,a),r=a.attrValue,!a.forceKeepAttr&&(Ne(u,e),a.keepAttr))if(oi(/\/>/i,r))Ne(u,e);else{Q&&(r=ni(r,O," "),r=ni(r,L," "));var d=be(e.nodeName);if(Fe(d,i,r))try{l?e.setAttributeNS(l,u,r):e.setAttribute(u,r),Zr(n.removed)}catch(e){}}}De("afterSanitizeAttributes",e,null)}},He=function e(t){var n=void 0,r=Le(t);for(De("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)De("uponSanitizeShadowNode",n,null),Pe(n)||(n.content instanceof o&&e(n.content),Be(n));De("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e,i){var s=void 0,c=void 0,u=void 0,l=void 0,d=void 0;if((me=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Me(e)){if("function"!=typeof e.toString)throw si("toString is not a function");if("string"!=typeof(e=e.toString()))throw si("dirty is not a string, aborting")}if(!n.isSupported){if("object"===Ai(t.toStaticHTML)||"function"==typeof t.toStaticHTML){if("string"==typeof e)return t.toStaticHTML(e);if(Me(e))return t.toStaticHTML(e.outerHTML)}return e}if(J||ke(i),n.removed=[],"string"==typeof e&&(re=!1),re){if(e.nodeName){var h=be(e.nodeName);if(!U[h]||q[h])throw si("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof a)1===(c=(s=Oe("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?s=c:s.appendChild(c);else{if(!Z&&!Q&&!X&&-1===e.indexOf("<"))return w&&ee?w.createHTML(e):e;if(!(s=Oe(e)))return Z?null:ee?T:""}s&&Y&&Ae(s.firstChild);for(var f=Le(re?e:s);u=f.nextNode();)3===u.nodeType&&u===l||Pe(u)||(u.content instanceof o&&He(u.content),Be(u),l=u);if(l=null,re)return e;if(Z){if($)for(d=I.call(s.ownerDocument);s.firstChild;)d.appendChild(s.firstChild);else d=s;return H.shadowroot&&(d=_.call(r,d,!0)),d}var p=X?s.outerHTML:s.innerHTML;return Q&&(p=ni(p,O," "),p=ni(p,L," ")),w&&ee?w.createHTML(p):p},n.setConfig=function(e){ke(e),J=!0},n.clearConfig=function(){Ee=null,J=!1},n.isValidAttribute=function(e,t,n){Ee||ke({});var r=be(e),i=be(t);return Fe(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],$r(N[e],t))},n.removeHook=function(e){N[e]&&Zr(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const Mi={ADD_TAGS:["#comment","li-icon","icon","iframe"],ADD_ATTR:["target"],FORCE_BODY:!0,RETURN_DOM:!0};function Di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Pi(null,e,t);return n.innerHTML}function Pi(e,t){let{ADD_TAGS:n=[],ADD_ATTR:r=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=W({},Mi);i.ADD_TAGS=[...i.ADD_TAGS,...n],i.ADD_ATTR=[...i.ADD_ATTR,...r];const o=xi.sanitize(t,i);return e&&e.nodeType===Node.ELEMENT_NODE&&(e.innerHTML="",e.append(...o.childNodes)),o}Object.freeze({SUCCESS:"success",ERROR:"error",NOTIFY:"notify"});"".concat("tooltip__popup","--show");function Fi(e,t){const n=w(e);for(let e=0;e<n.length;e++)n[e]&&1===n[e].nodeType&&t(n[e])}function Ui(e){Hi([e])}function Bi(e){Wi([e])}function Hi(e){Fi(e,e=>{e.classList.add("hidden"),e.setAttribute("aria-hidden","true")})}function Wi(e){Fi(e,e=>{e.classList.remove("hidden"),e.setAttribute("aria-hidden","false")})}function ji(){const e=document.querySelector('meta[name="pillar"]');return e?e.getAttribute("content"):""}document.querySelector.bind(document);function qi(){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 zi(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 Gi(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}qi(),zi(3),Gi(128),qi(),zi(6),Gi(400);var Ki=window||t.g;Ki.utag_data||(Ki.utag_data={});const Vi="undefined"!=typeof window&&window&&"node"!==window.appEnvironment;Ki.utag_cfg_ovrd=Ki.utag_cfg_ovrd||{},Ki.trackingEventDebugData=Ki.trackingEventDebugData||[],Ki.utag_cfg_ovrd.noview=!0,Ki.utag_cfg_ovrd.nocookie=!0;Vi&&new RegExp("bot|google|aolbuild|baidu|bing|msn|duckduckgo|teoma|slurp|yandex|sogou|facebook|alexa","i").test(Ki.navigator.userAgent);!function(){if("function"==typeof window.CustomEvent)return!1;window.CustomEvent=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}}(),function(){if("function"==typeof window.EventTarget)try{return!new e}catch(e){}const e=function(){this.listeners={}};e.prototype.listeners=null,e.prototype.addEventListener=function(e,t){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.removeEventListener=function(e,t){if(e in this.listeners)for(var n=this.listeners[e],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 Qi={GOOGLE_ERROR:"googleError",GOOGLE_USER_FETCHED:"googleUserFetched",INITIALIZED:"initialized",PROMPT_MOMENT:"promptMomentNotification",TOKEN_FETCHED:"tokenFetched"},Xi={INITIALIZATION:"initialization",AUTHENTICATION:"authentication"},{GOOGLE_ERROR:Ji,GOOGLE_USER_FETCHED:Yi,INITIALIZED:Zi}=Qi,{INITIALIZATION:$i,AUTHENTICATION:eo}=Xi;const to=Qi,no=Xi,{GOOGLE_USER_FETCHED:ro,GOOGLE_ERROR:io,INITIALIZED:oo}=to,{INITIALIZATION:so}=no;function ao(e){var t=e.intersectionRect;return t.width>=0&&t.height>=0}function co(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 uo(e,t){return Math.round(e-t)}var lo,ho=(lo=function(e,t){return(lo=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}lo(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),fo=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}(),po=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ho(t,e),t.prototype.removePredicate=function(e,t){return"string"==typeof e?t.id===e:t.callback===e},t}(fo),mo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ho(t,e),t.prototype.removePredicate=function(e,t){return t===e},t}(fo),vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ho(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}(fo),go=function(){return 0},yo=!("undefined"==typeof window||!window||"undefined"==typeof document||!document),bo=yo&&!!window.requestAnimationFrame,Eo={hasDOM:yo,hasRAF:bo,getScrollTop:go,getScrollLeft:go,getHeight:go,getWidth:go,rAF:bo?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:go,get isDirty(){return Eo.version!==Eo.lastVersion},document:window.document,IntersectionObserver:yo&&window.IntersectionObserver,performance:yo&&window.performance};function wo(){++Eo.version}function To(){var e=null!=document.scrollingElement;Eo.getScrollTop=e?function(){return document.scrollingElement.scrollTop}:function(){return window.scrollY},Eo.getScrollLeft=e?function(){return document.scrollingElement.scrollLeft}:function(){return window.scrollX}}yo&&(Eo.getHeight=function(){return window.innerHeight},Eo.getWidth=function(){return window.innerWidth},Eo.updateMeta=function(){Eo.meta.height=Eo.getHeight(),Eo.meta.width=Eo.getWidth(),Eo.meta.scrollLeft=Eo.getScrollLeft(),Eo.meta.scrollTop=Eo.getScrollTop(),Eo.lastVersion=Eo.version},Eo.updateMeta(),"loading"!==document.readyState?To():document.addEventListener("DOMContentLoaded",To),window.addEventListener("resize",wo,!1),window.addEventListener("scroll",wo,!1));var ko=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,Eo.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}(),Co=null;var So=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)}}(),Io="xxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),Ro=0,_o=function(){function e(e,t,n,r,i,o,s,a,c,u){this.dateNow=e,this.highResTime=t,this.scrollTop=n,this.scrollLeft=r,this.width=i,this.height=o,this.x=s,this.y=a,this.top=c,this.left=u}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 Eo.isDirty&&Eo.updateMeta(),e===window||e===document?(n.height=Eo.meta.height,n.width=Eo.meta.width,n.scrollLeft=Eo.meta.scrollLeft,n.scrollTop=Eo.meta.scrollTop,n):(t=co(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 Ao(){return Ro+++Io}var No=function(){function e(e,t){this.isTicking=!1,this.toRemove=[],this.engine=e||(Co||(Co=new ko)),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(_o.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=co(e),r=_o.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}(),Oo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.queue=new po,t}return So(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=Ao();return this.queue.push({callback:e,id:t}),t},t}(No),Lo=function(e){function t(t){var n=e.call(this,void 0,window)||this;return n.predicate=t,n}return So(t,e),t.prototype.applyQueue=function(t){this.predicate(t)&&e.prototype.applyQueue.call(this,t)},t}(Oo),xo=function(e){function t(t,n,r){void 0===r&&(r=!1);var i=e.call(this,t,n)||this;return i.lastVersion=Eo.version,i.queue=new vo,i.ALLOW_CACHED_SCHEDULER=r,i}return So(t,e),Object.defineProperty(t.prototype,"isDirty",{get:function(){return Eo.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,s=n.clientRect;!this.isDirty&&s&&this.ALLOW_CACHED_SCHEDULER||(s=this.queue.items[t].clientRect=co(i)),r(e,o,s)}this.lastVersion=Eo.version},t.prototype.watch=function(e,t,n){this.startTicking(),n=n||Ao();return this.queue.push({el:e,callback:t,id:n,clientRect:null}),n},t}(No),Mo=null;var Do=function(){function e(){this.queue=new mo}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}(),Po=function(){function e(e){this.scheduler=new Lo(e.bind(this))}return e.prototype.trigger=function(){},e.prototype.listen=function(e){this.state=_o.generate(),this.scheduler.watch(e)},e.prototype.unlisten=function(e){this.scheduler.unwatch(e)},e}(),Fo=null;function Uo(e,t){var n=(Fo||(Fo={scroll:new Po((function(e){var t=this.state,n=t.scrollTop,r=t.scrollLeft;return this.state=e,n!==e.scrollTop||r!==e.scrollLeft})),resize:new Po((function(e){var t=this.state,n=t.width,r=t.height;return this.state=e,r!==e.height||n!==e.width})),destroy:new Do,beforeunload:new Do,hide:new Do,show:new Do}))[e];n&&n.listen(t)}function Bo(e,t){if(Fo){var n=Fo[e];n&&n.unlisten(t)}}function Ho(e,t){if(Fo){var n=Fo[e];n&&n.trigger(t)}}function Wo(e){(Mo||(Mo=new Oo)).scheduleWork(e)}function jo(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}}Eo.hasDOM&&(window.addEventListener("beforeunload",(function(){Ho("beforeunload"),Ho("destroy")})),document.addEventListener("visibilitychange",(function(){"visible"===document.visibilityState?Ho("show"):Ho("hide")})));var qo=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 xo(void 0,this.root,t.ALLOW_CACHED_SCHEDULER)}return e.prototype.observe=function(e){var t=this,n=e,r=n.__spanielId=n.__spanielId||Ao();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),s=o.numSatisfiedThresholds,a=o.entry,c=this.records[t]||(this.records[t]={entry:a,numSatisfiedThresholds:0});s===c.numSatisfiedThresholds&&a.isIntersecting===c.entry.isIntersecting||(c.numSatisfiedThresholds=s,c.entry=a,this.scheduler.scheduleWork((function(){i.callback([a])})))},e.prototype.unobserve=function(e){this.scheduler.unwatch(e.__spanielId),delete this.records[e.__spanielId]},e.prototype.disconnect=function(){this.scheduler.unwatchAll(),this.records={}},e.prototype.takeRecords=function(){return[]},e.prototype.generateEntryEvent=function(e,t,n){for(var r=0,i=function(e,t,n,r){if("none"===n.style.display)return{time:e.dateNow,highResTime:e.highResTime,boundingClientRect:zo(),intersectionRatio:0,intersectionRect:zo(),isIntersecting:!1,rootBounds:zo(),target:n};var i=t.bottom,o=t.right,s=e.left+r.left,a=e.top+r.top,c={left:s,top:a,bottom:r.bottom,right:r.right,width:e.width-(r.right+r.left),height:e.height-(r.bottom+r.top),y:a,x:s},u=Math.max(c.left,t.left),l=Math.max(c.top,t.top),d=Math.min(c.left+c.width,t.right)-u,h=Math.min(c.top+c.height,t.bottom)-l,f=d>=0?u:0,p=l>=0?l:0,m={left:f,top:p,x:f,y:p,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,s=e.target,a=i.height*i.width,c=a>0?o.width*o.height/a:0;return{time:t,highResTime:n,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:s,intersectionRatio:c,isIntersecting:ao({intersectionRect:o})}}({unixTime:e.dateNow,highResTime:e.highResTime,rootBounds:c,target:n,boundingClientRect:jo(t),intersectionRect:m})}(e,t,n,this.rootMarginObj),o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];i.intersectionRatio>=s&&r++}return{numSatisfiedThresholds:r,entry:i}},e}();function zo(){return{bottom:0,height:0,left:0,right:0,top:0,width:0,x:0,y:0}}var Go={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,s=r.threshold,a=r.ALLOW_CACHED_SCHEDULER,c=r.BACKGROUND_TAB_FIX,u=r.USE_NATIVE_IO,l="string"!=typeof(o=o||"0px")?function(e){return e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px"}(o):o;this.thresholds=s.sort((function(e){return e.ratio}));var d={root:i,rootMargin:l,threshold:this.thresholds.map((function(e){return e.ratio})),ALLOW_CACHED_SCHEDULER:a};this.usingNativeIo=!!u&&!!Eo.IntersectionObserver;var h=this.usingNativeIo?Eo.IntersectionObserver:qo;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),Eo.hasDOM&&(Uo("beforeunload",this.onWindowClosed),Uo("hide",this.onTabHidden),Uo("show",this.onTabShown),c&&(this.paused="visible"!==Eo.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,s=i.boundingClientRect,a=i.rootBounds,c=i.intersectionRect,u=i.isIntersecting,l=i.target;this.handleObserverEntry({intersectionRatio:o,boundingClientRect:s,time:n,highResTime:t,isIntersecting:u,rootBounds:a,intersectionRect:c,target:l})}}},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,s=e.isIntersecting,a=e.time,c=e.target,u=this.recordStore[c.__spanielId],l=this.usingNativeIo?Math.floor((Eo.performance.timeOrigin||Eo.performance.timing.navigationStart)+a):a,d=this.usingNativeIo?a:e.highResTime;if(!d)throw new Error("Missing intersection entry timestamp");return{intersectionRatio:n,isIntersecting:s,unixTime:l,time:l,highResTime:d,rootBounds:r,boundingClientRect:i,intersectionRect:o,target:c,duration:0,visibleTime:s?l:-1,entering:!1,payload:u.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:Go,boundingClientRect:o||Go,intersectionRect:Go,visibleTime:i.lastVisible.unixTime,duration:uo(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=uo(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,s="boolean"==typeof i.isIntersecting?i.isIntersecting:ao(e),a=o&&s;if(a!=n.lastSatisfied){if(a)if(i.entering=!0,n.lastVisible={highResTime:i.highResTime,unixTime:i.unixTime},r){var c=Number(setTimeout((function(){n.visible=!0,i.duration=uo(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=a}})),this.flushQueuedEntries()))},e.prototype.disconnect=function(){this.setAllHidden(),this.observer.disconnect(),this.recordStore={}},e.prototype.destroy=function(){this.disconnect(),Eo.hasDOM&&(Bo("beforeunload",this.onWindowClosed),Bo("hide",this.onTabHidden),Bo("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),Wo((function(){t.handleRecordExiting(n),t.flushQueuedEntries()})))},e.prototype.observe=function(e,t){var n=e,r=n.__spanielId=n.__spanielId||Ao();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}}();Eo.IntersectionObserver&&Eo.IntersectionObserver;".".concat("show-more-less","__list"),".".concat("show-more-less","__more-button"),".".concat("show-more-less","__less-button"),"".concat("show-more-less","__list--hide-after"),"".concat("show-more-less","__button--hide");".".concat("accordion-item__trigger");var Ko;!function(e){e.ProductName="productName",e.UntrackedResponseCodes="untrackedResponseCodes",e.TrackedResponseCodes="trackedResponseCodes",e.ClientSensorGroupName="clientSensorGroupName"}(Ko||(Ko={}));new Set(Object.values(Ko));Error;var Vo;!function(e){e.ProductName="productName",e.CustomTrackingId="customTrackingId",e.ClientSensorGroupName="clientSensorGroupName",e.AdditionalDegradedResponseCodes="additionalDegradedResponseCodes",e.NonDegradedResponseCodes="nonDegradedResponseCodes",e.DegradationKeyOverrides="degradationKeyOverrides"}(Vo||(Vo={})),new Set(Object.values(Vo));var Qo="aria-[a-z0-9_\\-]+|class|data-[a-z0-9_\\-]+|dir|id|role|tabindex",Xo=function(){if("undefined"==typeof document)return!0;return"textContent"in document.createElement("div")}()?"textContent":"innerText",Jo=["b","del","em","i","s","strong","sub","sup"],Yo=Jo.concat(["a","abbr","address","area","article","aside","audio","bdi","bdo","big","blockquote","br","button","center","cite","code","datalist","dd","details","dfn","div","dl","dt","fieldset","figcaption","figure","font","footer","h1","h2","h3","h4","h5","h6","header","hgroup","hr","img","ins","kbd","label","legend","li","map","mark","marquee","nav","nobr","ol","p","pre","q","rp","rt","ruby","samp","section","small","source","span","strike","table","tbody","td","tfoot","th","thead","time","tr","u","ul","var","video","wbr"]),Zo=[Qo,"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 $o(){}var es,ts;ts=/[&<>"'\u0000\\=]/g,es={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","\0":"�","\\":"&#92;","=":"&#61;"},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:'"'};t="function"==typeof String.fromCodePoint?function(e){return String.fromCodePoint(e)}:function(e){return e<=65535?String.fromCharCode(e):"�"}}();var ns=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};var rs,is=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 os(e){e=ns(e)?e:[e];var t,n,r,i=0,o="<(?!/?";return o+="(?:",is(e,(function(e,s){t=e.tags||Yo,n=e.attrs||Zo,r=e.checkUrlAttrs||!1,0!==s&&(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 ss(e){return os({tags:e=e||Yo,checkUrlAttrs:!0})}function as(e,t){var n=(t=t||{}).allowTags,r=!1!==t.hasCustomElementMarkup;return n?!ss(n).test(e):r?!as.R_UNSAFE_CUSTOM_ELEMENT.test(e):!as.R_UNSAFE_HTML.test(e)}function cs(e){return e.replace(/<[^>]*>|[<>'"&\\]/g,"")}as.R_UNSAFE_HTML=ss(),as.R_UNSAFE_CUSTOM_ELEMENT=os([{tags:Yo,checkUrlAttrs:!0},{tags:[(rs={tag:"li-icon",attrs:"active|a11y-text|animate|color|size|type"}).tag],attrs:[Qo,rs.attrs].join("|"),checkUrlAttrs:!1}]);var us={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};us.optgroup=us.option,us.tbody=us.tfoot=us.colgroup=us.caption=us.thead,us.th=us.td;function ls(e,t){if(!(this instanceof ls))return new ls(e,t);(t=t||{}).allowTags=t.allowTags?t.allowTags.reduce((function(e,t){return e.concat(t)}),[]):null,this._string=e,this._options=t}ls.prototype=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(new $o,{toString:function(){var e=this._string,t=this._stringVal,n=e;return void 0!==t?t:(as(e,this._options)||(n=e,e=cs(e),Lr("UnsafeString contains non-whitelisted tags or attributes.\nString: "+n,"error")),this._stringVal=e,e)}});".".concat("filter-values-container__filter-value"," input"),".".concat("filter-values-container__filter-value"," input[type=radio]:checked");function ds(e){return t=>t.type&&t.type.toLowerCase()===e.toLowerCase()}ds("action"),ds("openpage"),ds("openlink");class hs{constructor(){let{badgeSel:e="[data-badge-without-count-source]",badgeCountSel:t="[data-badge-source]",cacheBustHrefSel:n='[data-update-cache-bust-url="true"]'}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._counts={},this.badgeCountEls=document.querySelectorAll(t),this.badgeWithoutCountEls=document.querySelectorAll(e),this.cacheBustHrefEls=document.querySelectorAll(n),this.feedLastUpdatedTimeInDom=Fr("feedLastUpdatedTime")}resetBadges(){Hi(this.badgeCountEls),Hi(this.badgeWithoutCountEls)}getBadges(){const e=this.feedLastUpdatedTimeInDom||"";return L(e?k("/mwlite/badge-counts","feedQueryAfterTime",e):"/mwlite/badge-counts").then(t=>{const n=JSON.parse(t.responseText);S(window,"badgesreceived",{feedsCount:n.feedsCount}),this._counts=n;const r=ji();return"messaging"===r&&(this._counts.messagingCount=0),"feed"===r||e||(this._counts.feedsCount=2),this._counts.feedsCount=this._counts.feedsCount>=2?1:0,this._counts.lastUpdatedAt=(new Date).getTime(),this._updateCacheBustUrl(this._counts.feedsCount>0),this._renderBadges(),this}).catch(()=>{S(window,"badgesreceived",{feedsCount:0})})}_renderBadges(){this.badgeCountEls.forEach(e=>{this._setBadgeCount(e,this._counts[e.dataset.badgeSource])}),this.badgeWithoutCountEls.forEach(e=>{this._setBadge(e,this._counts[e.dataset.badgeWithoutCountSource])})}_setBadgeCount(e,t){if(!e)return;const n=e.innerHTML;null==n&&t>0?(e.textContent=t,Bi(e)):t!==n&&(t>0?(e.textContent=t,Bi(e),e.classList.toggle("singular",t<=1)):Ui(e))}_setBadge(e,t){e&&(t>0?(Bi(e),e.classList.add("badge-with-no-count")):Ui(e))}_updateCacheBustUrl(e){Fr("isSWCacheEnabled")&&this.cacheBustHrefEls&&this.cacheBustHrefEls.forEach(t=>{t.href=Di(e?k(t.href,"pwa","noCache"):I(t.href))})}}!function(){let e}();!function(){const e=document.querySelector(".language-selector");e&&new D(e)}(),function(){const e=document.querySelector(".dropdown");e&&new P(e)}()})();