Argo Blockchain PLC Announces Fleet Swap Agreement with Core Scientific

    {promoMarkup}{notifMarkup}

‘,panelEmptyTemplate=’

  • {emptyPanelMsg}

  • ‘,panelErrorTemplate=’

    {errorMsg}

    ‘,panelParentTemplate=”,notifOnboardPromoTemplate=’

  • ‘,EXPANDED_PANEL=”expanded_panel”,ERROR_PANEL=”error_panel”,NotificationView=function(){function e(n,t){classCallCheck(this,e);var o=this;o._config=n,o._panelNode=null,o._store=t}return createClass(e,[{key:”_generatePanelMarkup”,value:function(e,n){var t=this._config,o=void 0,i=void 0;”undefined”!=typeof window&&(o=window.Notification&&”default”===window.Notification.permission,i=hasClass(document.body,t.promos.eligibleBodyClass));var r=t.promos.enableNotifOnboard&&o&&i?notifOnboardPromoTemplate:””;if(r){var a=t.promos.showYahooLogo?””:”yns-no-logo”;r=r.replace(“{notifOnboardBtnLabel}”,t.promos.notifOnboardBtnLabel).replace(“{notifOnboardMsg}”,t.promos.notifOnboardMsg).replace(“{subscriptionTopic}”,t.promos.subscriptionTopic).replace(“{noLogoClass}”,a)}var s=n.newCount>t.panel.maxCount?n.newCount:””,l=t.panel.notificationCenterPath,c=l?””:constants.panelHideElement,d=t.panel.headerMsg?””:” “+constants.panelHideElement,u=l?constants.panelPaddingBtm:””,p=void 0;n.count?p=n.markup:p=panelEmptyTemplate.replace(“{emptyPanelMsg}”,t.panel.emptyPanelMsg);return e=e.replace(“{notifMarkup}”,p).replace(“{promoMarkup}”,r).replace(“{hideClass}”,c).replace(“{notifCenterLink}”,l).replace(“{paddingClass}”,u).replace(“{headerMsg}”,t.panel.headerMsg).replace(“{hideHeaderClass}”,d).replace(/{notificationCenterNavMsg}/g,t.panel.notificationCenterNavMsg).replace(/{newCount}/g,s)}},{key:”render”,value:function(e,n){var t=this;if(t._panelNode){var o=void 0,i=t._panelNode,r=void 0,a=void 0;switch(e){case EXPANDED_PANEL:o=panelTemplate,a=t._store.getNotifications(),r=t._generatePanelMarkup(o,a),i.innerHTML=r;break;case ERROR_PANEL:r=(o=panelErrorTemplate).replace(“{errorMsg}”,t._config.panel.errorMsg),i.innerHTML=r}n&&n()}else n&&n(new Error(“No panel parent”))}},{key:”createPanelParentNode”,value:function(e){e&&(e.innerHTML=panelParentTemplate,this._panelNode=document.getElementById(constants.panelNodeId))}},{key:”updateBadgeNode”,value:function(e){if(e){var n=this._store.getNotifications().newCount,t=this._config.badge.maxCount;if(n){var o=n>t?t+”+”:n;e.innerHTML=o}else e.innerHTML=””}}},{key:”addStyles”,value:function(e){if(e&&”undefined”!=typeof window){var n=document.getElementById(this._config.panel.styleTagId);n||((n=document.createElement(“style”)).type=”text/css”,n.id=this._config.panel.styleTagId,n.innerText=e,document.head.appendChild(n))}}}]),e}(),EXPANDED_PANEL$1=”expanded_panel”,ERROR_PANEL$1=”error_panel”,PanelController=function(){function e(n,t,o){classCallCheck(this,e);var i=this;i._store=t,i._view=o,i._config=n;var r=i._config.panel;i._panelParentNode=document.querySelector(r.parentSelector),i._badgeNode=i._config.badge.selector&&document.querySelector(i._config.badge.selector),i._indicatorNode=r.indicatorSelector&&document.querySelector(r.indicatorSelector)}return createClass(e,[{key:”createPanelParentNode”,value:function(){this._view.createPanelParentNode(this._panelParentNode),this._notifPanelNode=document.getElementById(constants.panelNodeId)}},{key:”refreshPanelNode”,value:function(e,n){var t=this;addClass(t._notifPanelNode,constants.panelLoading),t._store.fetchNotifications(e,(function(e,o){e?t._notifPanelNode.innerHTML||(t._view.render(ERROR_PANEL$1),addClass(t._notifPanelNode,constants.panelLoading)):(t._view.render(EXPANDED_PANEL$1),t._view.updateBadgeNode(t._badgeNode),t._showBadge(),t._showIndicator(),t._view.addStyles(o.css)),removeClass(t._notifPanelNode,constants.panelLoading),n&&n(e,o)}))}},{key:”resetBadge”,value:function(){var e=this;e._store.resetNewCount(),e._view.updateBadgeNode(e._badgeNode),addClass(e._badgeNode,e._config.badge.hideClass)}},{key:”_showIndicator”,value:function(){this._indicatorNode&&(this._store.getNotifications().newCount?addClass(this._indicatorNode,this._config.panel.indicatorClass):removeClass(this._indicatorNode,this._config.panel.indicatorClass))}},{key:”_showBadge”,value:function(){var e=this;e._store.getNotifications().newCount?removeClass(e._badgeNode,e._config.badge.hideClass):addClass(e._badgeNode,e._config.badge.hideClass)}}]),e}(),config={promos:{eligibleBodyClass:”display-push-promos”,enableNotifOnboard:!0,notifOnboardBtnLabel:”Notify Me”,notifOnboardMsg:”Get alerts for breaking news and top stories”,showYahooLogo:!0,subscriptionTopic:”gondor_homerun_news”},badge:{hideClass:””,maxCount:5,selector:””},panel:{emptyPanelMsg:”You have no new notifications.”,errorMsg:””,headerMsg:”Notifications”,imageTag:”img:40×40|2|80″,indicatorClass:”yns-indicator”,indicatorSelector:null,maxCount:6,notificationCenterNavMsg:”View all {newCount} notifications”,notificationCenterPath:””,notificationTypes:””,parentSelector:null,styleTagId:”notificationStyles”,theme:”default”},service:{attemptCount:2,attemptDelay:1,url:null,resetUrl:null,isRMP:!1,responseType:”json”,timeout:1500}},Main=function(){function e(n){classCallCheck(this,e);var t=this;t.config=t._parseConfig(n),t._validateRequiredConfigs()&&(t._request=new NotificationRequest(t.config),t._store=new NotificationStore(t.config,t._request),t._view=new NotificationView(t.config,t._store),t._panelController=new PanelController(t.config,t._store,t._view),t._panelController.createPanelParentNode(),t._assignHelperMethods())}return createClass(e,[{key:”_parseConfig”,value:function(e){var n={};for(var t in objectAssign(n,config),n)if(n.hasOwnProperty(t)){var o=n[t],i=e[t];”object”===(void 0===o?”undefined”:_typeof(o))?objectAssign(o,i):n[t]=e[t]}return n}},{key:”_validateRequiredConfigs”,value:function(){var e=this.config;return!(!e.panel.parentSelector||!e.service.url)}},{key:”_assignHelperMethods”,value:function(){var e=this;e.helpers={refreshPanelNode:e._panelController.refreshPanelNode.bind(e._panelController),resetBadge:e._panelController.resetBadge.bind(e._panelController),resetIndicator:function(){removeClass(e._panelController._indicatorNode,e.config.panel.indicatorClass)}}}}]),e}(),notificationClient_module_min=Main,notificationClient={NotificationClient:notificationClient_module_min},CONSUMPTION_STORAGE_KEY=”lnct”,NotifClient=function(){function e(){var e,n;this.personalized=!1,this.ybarElem=document.getElementById(“ybar”),this.partnerClasses=null===(n=null===(e=this.ybarElem)||void 0===e?void 0:e.className)||void 0===n?void 0:n.match(/ybar-variant-([a-z]*)/),this.client=new notificationClient.NotificationClient(this.getConfig())}return e.prototype.refreshPanel=function(){var e,n,t,o=this,i={lastUpdate:this.getTimeStamp()||this.setTimeStamp(),loadInHpViewer:!0,includePersonalized:this.personalized},r=(null===(e=window.YAHOO)||void 0===e?void 0:e.context)||(null===(n=window.Af)||void 0===n?void 0:n.context)||{};return r.region&&r.lang&&(i.lang=r.lang,i.region=r.region),(null===(t=this.partnerClasses)||void 0===t?void 0:t.length)&&(i.partner=this.partnerClasses[1]),new Promise((function(e,n){o.client.helpers.refreshPanelNode({matrixParams:i},(function(t,o){t&&(logError(“Notification refresh error:”,t),n(t)),e(o)}))}))},e.prototype.resetBadge=function(){this.client.helpers.resetBadge(),this.setTimeStamp()},e.prototype.getConfig=function(){var e,n,t={promos:{eligibleBodyClass:”display-push-promos”,enableNotifOnboard:!0},badge:{selector:”#notif-badge”,hideClass:”ybar-notification-hidden”},panel:{emptyPanelMsg:”You have no new notifications.”,errorMsg:”Please check back later.”,headerMsg:”Notifications”,maxCount:5,parentSelector:”#ybarNotificationBody”,notificationTypes:”breakingNews”},service:{url:”/tdv2_fp/api/resource/NotificationHistory.getHistory”,isRMP:!1}},o=document.getElementById(“notification-container”),i=null===(e=null==o?void 0:o.dataset)||void 0===e?void 0:e.config,r={};if(i){“att”===(null===(n=this.partnerClasses)||void 0===n?void 0:n[1])&&(t.promos.showYahooLogo=!1);try{var a=JSON.parse(i);r=__assign({},a),this.personalized=1===a.personalize}catch(e){logError(“Notifications config parsing error”,e)}o&&delete o.dataset.config}return this.mergeConfigs(t,r)},e.prototype.mergeConfigs=function(e,n){var t=__assign({},e);for(var o in e)t[o]=__assign(__assign({},e[o]),n[o]);return t},e.prototype.getTimeStamp=function(){var e;return null===(e=window.localStorage)||void 0===e?void 0:e.getItem(CONSUMPTION_STORAGE_KEY)},e.prototype.setTimeStamp=function(){var e,n=””+Math.floor((new Date).getTime()/1e3);return null===(e=window.localStorage)||void 0===e||e.setItem(CONSUMPTION_STORAGE_KEY,n),n},e}(),notifClient=new NotifClient,getNotifClient=function(){return notifClient},reInit=function(){notifClient=new NotifClient},ybarRapid,ybarRapidInterval,ybarRapidErrMsg=””,beaconQueue=[],noop=function(){},logRapidError=function(){window.removeEventListener(“beforeunload”,logRapidError),””!==ybarRapidErrMsg&&logError(“Rapid not found on page”,new Error(ybarRapidErrMsg))},findRapidWithSpaceid=function(e){var n=void 0;if(e&&e.length>0)for(var t=0;t0){if(ybarRapid.addModules(i,!1,o),beaconQueue.length>0)for(e=0;e90&&fireImageBeacon(“performance”,e)}catch(e){}}),1e3)}))},measureInit=measure(“ybar-init”);initYbar(),measureInit.stop(),initPerformanceMetricsBeaconListener(),initRapid(),initErrorBeaconListener();var wrap=”_yb_1crbe”,item=”_yb_1crdv”,icon=”_yb_1crac”,spacer=”_yb_ycoqo”,promo=”_yb_1ab9l”,bold=”_yb_1crkk”,selected=”_yb_ogdj3″,Css$7={“ybar-mod-topnavigation”:”_yb_7o3bo”,”ybar-mod-topnavigation-teaser-imp”:”_yb_t2fpd”,”opaque-background”:”_yb_80920″,wrap:wrap,”right-background”:”_yb_u1pel”,item:item,”item-content”:”_yb_vcd1h”,”locale-zh-hans-cn”:”_yb_k63mn”,”locale-zh-hant-hk”:”_yb_4yzrp”,”locale-zh-hant-tw”:”_yb_1hvsa”,”property-mail”:”_yb_8rb8v”,”nav-item”:”_yb_djud9″,icon:icon,”item-footer”:”_yb_1g3el”,”selected-item-footer”:”_yb_t0g4x”,”item-with-icon”:”_yb_m6us2″,”arrow-left”:”_yb_1v90x”,”arrow-right”:”_yb_1f5wy”,spacer:spacer,promo:promo,”promo-text”:”_yb_v820e”,”promo-icon”:”_yb_12m1i”,bold:bold,”new-fin-promo-logo”:”_yb_7i6qp”,”new-fin-promo-text”:”_yb_1r9v5″,”svg-icon”:”_yb_1s0sn”,selected:selected,”right-item”:”_yb_1hu6k”,”promo-button”:”_yb_9o35l”,”variant-att”:”_yb_1uwti”},DOCUMENT_NODE_TYPE=9;if(“undefined”!=typeof Element&&!Element.prototype.matches){var proto=Element.prototype;proto.matches=proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector}function closest(e,n){for(;e&&e.nodeType!==DOCUMENT_NODE_TYPE;){if(“function”==typeof e.matches&&e.matches(n))return e;e=e.parentNode}}var closest_1=closest;function _delegate(e,n,t,o,i){var r=listener.apply(this,arguments);return e.addEventListener(t,r,i),{destroy:function(){e.removeEventListener(t,r,i)}}}function delegate(e,n,t,o,i){return”function”==typeof e.addEventListener?_delegate.apply(null,arguments):”function”==typeof t?_delegate.bind(null,document).apply(null,arguments):(“string”==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return _delegate(e,n,t,o,i)})))}function listener(e,n,t,o){return function(t){t.delegateTarget=closest_1(t.target,n),t.delegateTarget&&o.call(e,t)}}var delegate_1=delegate,ListNode=function(e){this.data=e,this.next=null,this.prev=null},LinkedList=function(){function e(){this.head=null,this.tail=null}return e.prototype.push=function(e){var n=new ListNode(e);return this.head?this.tail?(n.prev=this.tail,this.tail.next=n,this.tail=n):(this.tail=n,this.tail.prev=this.head,this.head.next=this.tail):(this.head=n,n.next=this.tail),n},e.prototype.size=function(){for(var e=0,n=this.head;n;)e+=1,n=n.next;return e},e.prototype.getHead=function(){return this.head},e.prototype.getTail=function(){return this.tail},e.prototype.get=function(e){if(e>=this.size())return null;for(var n=0,t=this.head;(null==t?void 0:t.next)&&n0&&Array.prototype.forEach.call(e,(function(e){e.onerror=function(){e.onerror=null,e.style.display=”none”}}))},fixLogoOutline=function(e,n){e&&(hideOutlineOnMouseDown(“#ybar-logo”,”#ybar-logo”,n),n.onDestroy((function(){e.classList.remove(“ybar-show-outline”),e.classList.remove(“ybar-hide-outline”)})))},logoClick=function(e,n){n&&e.addElementListener(n,”click”,(function(){e.triggerEvent(“logo-click”)}))},init$4=function(e,n){n.logoImages&&hideLogosOnError(n.logoImages),n.wrapper&&(fixLogoOutline(n.wrapper,e),logoClick(e,n.wrapper))};initModule(“ybar-mod-logo”,(function(e){var n={wrapper:document.getElementById(“ybar-logo”),logoImages:document.querySelectorAll(“.”+Css$6[“logo-image”])};init$4(e,n)}));var tablet$1=”_yb_1tqpr”,smartphone$2=”_yb_1da9t”,glowing=”_yb_h88xj”,none=”_yb_fbfyk”,tooltip=”_yb_1j2z2″,tooltip__voice=”_yb_1jg05″,tooltip__web=”_yb_f3p7l”,tooltip__text=”_yb_16y8r”,Css$5={“search-form-container”:”_yb_ofhxz”,tablet:tablet$1,”property-generic”:”_yb_wqxu9″,”property-homepage”:”_yb_nbr9c”,”property-fantasy”:”_yb_7jk1b”,smartphone:smartphone$2,”search-input”:”_yb_1xdms”,”glowing-bd”:”_yb_voak7″,”sa-btn”:”_yb_1sp5m”,”x-sa-btn”:”_yb_1tckn”,”sa-btn-bar”:”_yb_75ied”,”voice-search-sa-btn”:”_yb_1rdl3″,”clear-btn”:”_yb_p8hdi”,”voice-search-sa-btn-img”:”_yb_511wj”,”search-submit”:”_yb_1hidc”,glowing:glowing,”glowing-fuji2″:”_yb_1bieu”,”locale-es-us”:”_yb_wbc76″,”variant-att”:”_yb_2rtg6″,”locale-en-us”:”_yb_jyevu”,none:none,”variant-frontier”:”_yb_qcyq9″,”locale-fr-ca”:”_yb_18yjg”,”variant-rogers”:”_yb_1pnnu”,”locale-en-ca”:”_yb_wzbsa”,”searchbox-icon”:”_yb_1ni7y”,”search-back-btn”:”_yb_d5a1p”,”search-input-“:”_yb_4wqwv”,”search-label”:”_yb_box84″,”property-news”:”_yb_l9t9n”,”locale-zh-hant-tw”:”_yb_1nxyh”,”locale-zh-hant-hk”:”_yb_1gkin”,”skiplink-list”:”_yb_106o3″,”skiplink-item”:”_yb_1hd6k”,”shops-buttons”:”_yb_1ewoy”,”shops-category-select-label”:”_yb_18ory”,”shops-category-select”:”_yb_1fqlz”,”shops-category-dropdown-wrapper”:”_yb_s84c0″,”styled-select”:”_yb_srcox”,”dropdown-open”:”_yb_9cro5″,”shops-category-select-dropdown”:”_yb_vto3h”,”selected-merchant-wrap”:”_yb_os0ux”,”selected-merchant-clear-button”:”_yb_17tm9″,”merchant-is-selected”:”_yb_bczu0″,tooltip:tooltip,tooltip__voice:tooltip__voice,tooltip__web:tooltip__web,”tooltip–show”:”_yb_n5h7f”,tooltip__text:tooltip__text},range=function(e,n){var t=Math.max(e,n),o=Math.min(e,n),i=Math.abs(t-o);return __spreadArray([],new Array(i+1)).map((function(e,n){return o+n}))},openSearchOverlay=function(e,n){if(e.ybar){e.ybar.classList.add(“ybar-searchbox-assist-fullscreen”),document.documentElement.classList.add(“ybar-overlay”),document.body.classList.add(“ybar-overlay-noscroll”);beaconClick(“ybar”,”websrch”,””,{elm:”expand”,subsec:”searchbox”,itc:”1″}),setTimeout((function(){e.searchInput instanceof HTMLInputElement&&(n&&(e.searchInput.value=n),e.searchInput.focus())}))}},closeSearchOverlay=function(e){var n;null===(n=e.ybar)||void 0===n||n.classList.remove(“ybar-searchbox-assist-fullscreen”),document.documentElement.classList.remove(“ybar-overlay”),document.body.classList.remove(“ybar-overlay-noscroll”),e.searchInput instanceof HTMLInputElement&&(e.searchInput.value=””,e.searchInput.blur())},initMweb=function(e,n){“smartphone”===e.getConfig().device&&(e.addElementListener(n.searchBoxPlaceholder,”click”,(function(){openSearchOverlay(n)})),e.addElementListener(n.searchBoxPlaceholder,”keydown”,(function(e){var t=e,o=t.keyCode,i=t.key,r=range(65,90),a=__spreadArray(__spreadArray([],range(58,57)),range(96,105)),s=__spreadArray(__spreadArray([],r),a).includes(o);(32===o||13===o||s)&&(e.preventDefault(),e.stopPropagation(),openSearchOverlay(n,s?i:””))})),n.searchBoxBackButton&&(e.addElementListener(n.searchBoxBackButton,”click”,(function(e){e.stopPropagation(),closeSearchOverlay(n);beaconClick(“ybar”,”back-close-srch”,””,{elm:”btn”,subsec:”searchbox”,itc:”1″})})),e.addElementListener(n.searchInput,”keyup”,(function(e){e.stopPropagation();27===e.keyCode&&(e.stopPropagation(),closeSearchOverlay(n))}))),e.onDestroy((function(){closeSearchOverlay(n)})))},Tooltip=function(){function e(e,n,t){n&&(this.ybar=e,this.elem=n,this.options=t,this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.addEventListeners())}return Object.defineProperty(e.prototype,”tooltip”,{get:function(){var e=this;return this.tooltipMarkup||(this.tooltipMarkup=this.createTooltip(),(this.options.tooltipParentElm||this.elem).appendChild(this.tooltipMarkup),this.ybar.onDestroy((function(){var n,t;null===(t=null===(n=e.tooltipMarkup)||void 0===n?void 0:n.parentNode)||void 0===t||t.removeChild(e.tooltipMarkup)}))),this.tooltipMarkup},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.tooltip.classList.add(this.options.showClass)},e.prototype.hide=function(){this.tooltip.classList.remove(this.options.showClass)},e.prototype.addEventListeners=function(){this.ybar.addElementListener(this.elem,”mouseenter”,this.show),this.ybar.addElementListener(this.elem,”focus”,this.show),this.ybar.addElementListener(this.elem,”mouseleave”,this.hide),this.ybar.addElementListener(this.elem,”blur”,this.hide)},e.prototype.createTooltip=function(){var e=document.createElement(“div”);e.className=this.options.containerClass||””;var n=document.createElement(“p”);return n.textContent=this.options.label,n.className=this.options.textClass||””,e.appendChild(n),e},e}();createCommonjsModule((function(module){(function(){var __webpack_modules__={“./src/index.js”:
    /*!**********************!*
    !*** ./src/index.js ***!
    **********************/function(__unused_webpack_module,__unused_webpack_exports,__webpack_require__){eval(“var I18n = __webpack_require__(/*! ./lib/I18n */ “./src/lib/I18n.js”);nn(function (win, doc) {n “use strict”;nn var defaultConfig = {n uiLang: ‘en-US’,n speechLang: ‘en-US’,n voiceButton: ‘#voice-btn’,n searchBox: {n form: ‘#sf’,n input: ‘#yschsp’,n params: {n fr: ”,n fr2: ”n }n },n enable_voice_trending: false,n trending: {n market: “en-us”n },n ui: {n speechOverlay: {n disableBlur: falsen }n },n browsers: {n edge: falsen }n };nn function VoiceSearch(config) {n var self = this;n self.config = Object.assign(defaultConfig, config || {});n self.i18n = new VoiceSearch.I18n({n lang: self.config.uiLangn });n self.renderPermissionGuide(self);n self.renderSpeechPanel(self);n self.speechResult = ”;n self.noSpeech = true;n self.isRecognitionStart = false;n self.recognition = null;n self.voiceButton = doc.querySelector(self.config.voiceButton);n self.searchBoxForm = doc.querySelector(self.config.searchBox.form);n self.searchBoxQuery = doc.querySelector(self.config.searchBox.input);n self.speechPanel = doc.querySelector(‘#spch’);n self.speechButtonContainer = doc.querySelector(‘#spchbc’);n self.speechButton = doc.querySelector(‘#spchbc-btn’);n self.speechText = doc.querySelector(‘#spcht’);n self.speechOverlay = doc.getElementById(‘spch-overlay’);n self.retryLink = doc.querySelector(‘#spcht-retry’);n self.trending = doc.getElementById(‘spch-trending’);n self.trendingTerms = doc.getElementById(‘trending-terms’);n self.termSpans = doc.getElementsByClassName(“trending-term”);n self.closeButton = doc.querySelector(‘#spchx’);n self.startAudio = new Audio(‘https://s.yimg.com/pv/static/misc/voice-start-202105050733.wav’);n self.resultAudio = new Audio(‘https://s.yimg.com/pv/static/misc/voice-result-202105050733.wav’);n self.errorAudio = new Audio(‘https://s.yimg.com/pv/static/misc/voice-error-202105050733.wav’);n self.closeAudio = new Audio(‘https://s.yimg.com/pv/static/misc/voice-close-202105050733.wav’);n self.permissionGuide = doc.querySelector(‘#spchp’);n self.permissionGuideClose = doc.querySelector(‘#spchpx’);n self.permissionGuideTimer = null;nn self.onEscKeyDown = function (e) {n if (e.code !== ‘Escape’) {n return;n }nn self.recognition.stop();n self.sendBeacon(‘keybrd’, ‘voicesearch_cancel_esc’); // The clean up should put inside closePanel() instead of here,n // or func won’t be cleaned up if user close panel with btn or overlaynn self.closePanel(self);n };nn if (self.isBrowserSupported()) {n var SpeechRecognition = win.SpeechRecognition || win.webkitSpeechRecognition;n var SpeechGrammarList = win.SpeechGrammarList || win.webkitSpeechGrammarList;n var speechGrammar = ‘#JSGF V1.0;’;n self.recognition = new SpeechRecognition();n var speechRecognitionList = new SpeechGrammarList();nn if (speechRecognitionList.addFromString) {n speechRecognitionList.addFromString(speechGrammar, 1);n }nn self.recognition.grammars = speechRecognitionList;n self.recognition.continuous = false;n self.recognition.lang = self.config.speechLang;n self.recognition.interimResults = false;n self.recognition.maxAlternatives = 1;n /* Listeners */nn if (self.voiceButton) {n self.voiceButton.onclick = function () {n self.recognition.start();nn if (self.permissionGuideTimer) {n win.clearTimeout(self.permissionGuideTimer);n }nn self.permissionGuideTimer = win.setTimeout(function () {n if (!self.isRecognitionStart) {n self.showPermissionGuide(self);n }n }, 300); // Also close when pressing escnn doc.addEventListener(‘keydown’, self.onEscKeyDown);n self.sendBeacon(‘clk’, ‘voicesearch’);n };n }nn if (self.speechButton) {n self.speechButton.onclick = function () {n if (!self.isRecognitionStart) {n self.recognition.start();n self.sendBeacon(‘clk’, ‘voicesearch_panel_mic_restart’);n } else {n self.recognition.stop();n self.sendBeacon(‘clk’, ‘voicesearch_panel_mic_close’);n self.closePanel(self);n }n };n }nn if (self.retryLink) {n self.retryLink.onclick = function () {n if (!self.isRecognitionStart) {n self.recognition.start();n self.sendBeacon(‘clk’, ‘voicesearch_panel_retry’);n }n };n }nn if (self.speechOverlay) {n self.speechOverlay.onclick = function () {n self.recognition.stop();n self.sendBeacon(‘clk’, ‘voicesearch_cancel_outside’);n self.closePanel(self);n };n }nn if (self.closeButton) {n self.closeButton.onclick = function () {n self.recognition.stop();n self.sendBeacon(‘clk’, ‘voicesearch_cancel’);n self.closePanel(self);n };n }nn if (self.permissionGuideClose) {n self.permissionGuideClose.onclick = function () {n self.recognition.stop();n self.sendBeacon(‘clk’, ‘voicesearch_permission_close’);n self.closeAudio.play();n self.hidePermissionGuide(self);n };n }n /* Recognition Events */nnn self.recognition.onresult = function (event) {n // The SpeechRecognitionEvent results property returns a SpeechRecognitionResultList objectn // The SpeechRecognitionResultList object contains SpeechRecognitionResult objects.n // It has a getter so it can be accessed like an arrayn // The first [0] returns the SpeechRecognitionResult at the last position.n // Each SpeechRecognitionResult object contains SpeechRecognitionAlternative objects that contain individual results.n // These also have getters so they can be accessed like arrays.n // The second [0] returns the SpeechRecognitionAlternative at position 0.n // We then return the transcript property of the SpeechRecognitionAlternative objectn // console.log(‘Confidence: ‘ + event.results[0][0].confidence);n self.speechResult = event.results[0][0].transcript;n /* Punctuation Handling: Check last character and strip it if necessary */nn self.handlePunctuation(self);nn if (self.speechText) {n self.speechText.innerText = self.speechResult;n }nn if (self.searchBoxQuery) {n self.searchBoxQuery.value = self.speechResult;n }nn self.resultAudio.play();n win.setTimeout(function () {n if (self.speechPanel) {n self.speechPanel.classList.remove(“s2tb”);n self.speechPanel.classList.add(“s2tb-h”);n }nn self.hideRetryLink(self);nn if (self.searchBoxForm) {n if (self.searchBoxForm.fr && self.config.searchBox && self.config.searchBox.params && self.config.searchBox.params.fr) {n self.searchBoxForm.fr.value = config.searchBox.params.fr;n self.searchBoxForm.fr.disabled = false; // for homepage casen }nn if (self.searchBoxForm.fr2 && self.config.searchBox && self.config.searchBox.params && self.config.searchBox.params.fr2) {n self.searchBoxForm.fr2.value = config.searchBox.params.fr2;n self.searchBoxForm.fr2.disabled = false; // for homepage casen }nn self.searchBoxForm.submit();n }n }, 1000);n };nn self.recognition.onspeechstart = function () {// Fired when speech startsn };nn self.recognition.onspeechend = function () {n // Fired when speech endsn self.recognition.stop();n };nn self.recognition.onerror = function () {n // console.log(‘Error occurred in recognition: ‘ + event.error);n if (self.speechText) {n self.speechText.innerText = self.i18n.t(‘search.voice.recognition_error’);n }nn self.hideTrending(self);n self.showRetryLink(self);n self.errorAudio.play();n };nn self.recognition.onaudiostart = function () {n // Fired when the user agent has started to capture audio.n if (self.speechButtonContainer) {n self.speechButtonContainer.classList.add(“listening”);n }n };nn self.recognition.onaudioend = function () {n // Fired when the user agent has finished capturing audio.n if (self.speechButtonContainer) {n self.speechButtonContainer.classList.remove(“listening”);n }n };nn self.recognition.onsoundstart = function () {n // Fired when any sound — recognisable speech or not — has been detected.n self.hideTrending(self);n self.noSpeech = false;nn if (self.speechButtonContainer) {n self.speechButtonContainer.classList.remove(“listening”);n self.speechButtonContainer.classList.add(“speaking”);n }n };nn self.recognition.onsoundend = function () {n // Fired when no sound presentn if (self.speechButtonContainer) {n self.speechButtonContainer.classList.remove(“speaking”);n }n };nn self.recognition.onstart = function () {n // Fired when the speech recognition service has begun listeningn self.recognitionInit(self);n self.startRecognition(self);n };nn self.recognition.onend = function () {n // Fired when the speech recognition service has disconnected.n self.isRecognitionStart = false;nn if (self.noSpeech == false && self.speechResult == ”) {n // No match: Fired when the speech recognition can’t recognise speechn if (self.speechText) {n self.speechText.innerText = self.i18n.t(‘search.voice.recognition_nomatch’);n }nn self.hideTrending(self);n self.showRetryLink(self);n self.errorAudio.play();n }n }; // trigger onReady event when initializednnn if (document && document.dispatchEvent) {n document.dispatchEvent(new Event(‘VOICE_JS_READY’));n }n }n } // static membersnnn VoiceSearch.I18n = I18n; // instance membersnn VoiceSearch.prototype.renderPermissionGuide = function (self) {n var tmpl = “n

    n n

    n n

    n

    “.concat(self.i18n.t(‘search.voice.permission_title’), “

    n

    “).concat(self.i18n.t(‘search.voice.permission_text’), “

    n

    n

    n

    n “);n var dom = new DOMParser().parseFromString(tmpl, ‘text/html’);n document.body.appendChild(dom.body.children[0]);n };nn VoiceSearch.prototype.renderSpeechPanel = function (self) {n var tmpl = “n

    n n n

    n

    n

    n n n n n n n

    n

    n

    n n n “.concat(self.i18n.t(‘search.voice.recognition_retry’), “n

    n

    n

    n

    n

    n

    n “).concat(self.i18n.t(‘search.voice.trending_title’), “n n

    n

    n

    n “);n var dom = new DOMParser().parseFromString(tmpl, ‘text/html’);nn if (self && self.config && self.config.ui && self.config.ui.speechOverlay && self.config.ui.speechOverlay.disableBlur) {n dom.body.children[0].classList.add(‘disable-blur-overlay’);n }nn document.body.appendChild(dom.body.children[0]);n };nn VoiceSearch.prototype.isBrowserSupported = function () {n var isSupported = false;n var self = this;n var isChromium = Boolean(window.chrome);n var isIOSChrome = /CriOS/.test(window.navigator.userAgent);n var isEdge = /Edg//.test(window.navigator.userAgent);n var isLegacyEdge = /Edge//.test(window.navigator.userAgent);n var isOpera = Boolean(window.opr);n var isBrave = Boolean(window.navigator.brave);n var browsers = [// chromen {n checkEnabled: function checkEnabled() {n return true;n },n checkBrowser: function checkBrowser() {n return isChromium && !isIOSChrome && !isEdge && !isOpera && !isBrave;n },n checkAPI: function checkAPI() {n return win && (‘SpeechRecognition’ in win || ‘webkitSpeechRecognition’ in win) && (‘SpeechGrammarList’ in win || ‘webkitSpeechGrammarList’ in win);n }n }, // edgen {n checkEnabled: function checkEnabled() {n return self && self.config && self.config.browsers && self.config.browsers.edge;n },n checkBrowser: function checkBrowser() {n return isChromium && isEdge && !isLegacyEdge;n },n checkAPI: function checkAPI() {n return win && (‘SpeechRecognition’ in win || ‘webkitSpeechRecognition’ in win) && (‘SpeechGrammarList’ in win || ‘webkitSpeechGrammarList’ in win);n }n }];nn for (var b = 0; b 0) {n var lastChar = self.speechResult.charAt(self.speechResult.length – 1);nn if (lastChar === ‘.’ || lastChar === ‘?’ || lastChar === ‘。’ || lastChar === ‘?’) {n self.speechResult = self.speechResult.slice(0, -1);n }n }n };nn VoiceSearch.prototype.sendBeacon = function (actn, slk) {n var ULT = win.YAHOO.ULT || {},n SB = win.YAHOO.SB || {};nn if (ULT.beacon_click) {n var trackParams = {n _S: SB.config.i13n.spaceid,n _I: SB.config.i13n.pvid,n actn: actn,n sec: ‘search’,n slk: slkn };n win.YAHOO.ULT.beacon_click(trackParams);n }n };nn VoiceSearch.prototype.ajaxReq = function (url, callback) {n var DONE_STATE = XMLHttpRequest.DONE || 4; // for IE-compatibilitynn var xhr = new XMLHttpRequest();n var responseRaw;n var response; // CORS request only for IE8/IE9nn if (doc.documentMode && doc.documentMode n // tags it will allow on a pagenn if (!options.singleton && typeof options.singleton !== ‘boolean’) {n options.singleton = isOldIE();n }nn list = list || [];n var lastIdentifiers = modulesToDom(list, options);n return function update(newList) {n newList = newList || [];nn if (Object.prototype.toString.call(newList) !== ‘[object Array]’) {n return;n }nn for (var i = 0; i =200&&i.status40959)&&(i19903))return!1}return!0},normalizeAndEscapeUserRecord=function(e){var n={fn:e.fn||””,ln:e.ln||””,em:e.em||””,alias:e.alias||””,imageUrl:e.imageUrl,state:e.state,fullName:null,identifier:””};return n.fullName=isNameCJK(n.fn,n.ln)?[n.ln,n.fn].join(“”):[n.fn,n.ln].join(” “),n.identifier=n.em||n.alias,n},createAccountItemElement=function(e,n,t){var o=t.ybarAccMenuItemTemplate,i=t.crumb;if(o){var r=(n+1).toString(),a=o.getAttribute(“data-signedOutState”),s=o.getAttribute(“data-done”)||””,l=getTemplateContent(o),c=l.children&&l.children[0];if(!c&&l.childNodes)for(var d=0;d=0;–n){e[n]=normalizeAndEscapeUserRecord(e[n]);var t=e[n].state;0!==t&&”0″!==t||e.splice(n,1)[0]}return e},addDoneUrlToEl=function(e,n,t){return 0===e.indexOf(“javascript:”)||~e.indexOf(“https://membernotifications.aol.com/notice/maillogout”)?e:(t&&(t=~e.indexOf(“&activity=ybar-“)?void 0:t.replace(“[[pspid]]”,getSpaceId())),~e.indexOf(“done=”)?(e=e.replace(/[[page]]/g,encodeURIComponent(window.location.href)),t&&(e+=”&”+t),e):~e.indexOf(“dest=[[done]]”)?e.replace(/[[done]]/g,encodeURIComponent(n)):(e=appendQorA(e),e+=”.done=”+encodeURIComponent(n),t&&(e+=”&”+t),e))},addDoneUrlToAllLink=function(e,n){var t,o=e.ybarAccMenuItemTemplate,i=e.ybarAccountContainer,r=document.querySelector(“.”+Css$4[“ybar-mod-account”]+” .”+Css$4[“ybar-login-btn”]),a=document.querySelector(“.”+Css$4[“ybar-mod-account”]+” .”+Css$4[“ybar-sign-out”]),s=i&&i.querySelectorAll(“a”),l=””,c=window.location.href;if(r){var d=r.href;n.onDestroy((function(){r.href=d})),r.href=addDoneUrlToEl(r.href,c,r.getAttribute(“data-redirect-params”)||void 0)}if(o?(c=o.getAttribute(“data-done”)||””,l=o.getAttribute(“data-sign-out-url”)||””):a&&(l=a.getAttribute(“data-sign-out-url”)||””),s){var u=function(){var e=t,o=s[e].href;n.onDestroy((function(){s[e].href=o}));var i=s[t].getAttribute(“data-redirect-params”);s[t].classList.contains(Css$4[“ybar-sign-out”])?s[t].href=addDoneUrlToEl(s[t].href,l,i||void 0):s[t].href=addDoneUrlToEl(s[t].href,c,i||void 0)};for(t=0;t0){var h=document.querySelector(r+” .”+Css$4[“ybar-sign-out”]),y=h&&h.getAttribute(“data-soa”),b=document.querySelector(r+” .”+Css$4[“ybar-sign-out-text”]);if(b&&y&&(b.innerText=y),l&&l.classList.add(Css$4.show),t){var g=document.querySelector(r+” “+Css$4[“ybar-icon-arrow”]),_=Css$4[“ybar-icon-arrow-up”],v=Css$4[“ybar-icon-arrow-down”],w=Css$4[“ybar-item-hidden”],E=document.querySelectorAll(“.”+Css$4[“ybar-item-hidden”]);g&&(g.classList.toggle(v),e.addElementListener(g,”click”,(function(){for(var e=0;ed){var C=document.querySelector(r+” .”+Css$4[“ybar-see-info”]);C&&C.style&&(C.style.display=”block”)}addDoneUrlToAllLink(n,e)}else a&&(a.style.display=”block”)}))}},handleResetBadge=function(e){getNotifClient().resetBadge(),e.notifBadge&&(e.notifBadge.style.visibility=”hidden”),e.profNotifBadge&&(e.profNotifBadge.style.visibility=”hidden”)},getPath=function(e){if(“function”==typeof e.composedPath)return e.composedPath();if(e.path)return e.path;for(var n=e.target,t=[];null!==n.parentNode;)t.push(n),n=n.parentNode;return t.push(document,window),t},notify=function(e,n){var t=n.ybarAccountContainer,o=n.smartphoneNotifContainer,i=n.notificationMenu,r=n.notifBadge,a=n.dropdownContainer,s=n.ybarNotificationBody,l=n.profNotifBadge,c=n.backButton,d=function(e){(null==e?void 0:e.newCount)&&e.newCount>0&&r&&(r.style.visibility=”visible”,l&&(l.style.visibility=”visible”,l.innerText=r.innerText))},u=getNotifClient(),p=function(){u.refreshPanel().then(d).catch((function(){}))};if(o){p();var f=setInterval((function(){p()}),3e5);e.onDestroy((function(){clearInterval(f)})),e.addElementListener(i,”click”,(function(){p(),a&&(a.style.display=”block”),t&&(t.style.width=”100%”,t.scrollTop=0,t.style.overflow=”hidden”),handleResetBadge(n),beaconClick(“ybar”,”notification”,””,{slk:”notification”,elm:”btn”,elmt:”visible”===(null==r?void 0:r.style.visibility)?”new alert”:””,sec:”ybar”,subsec:”notification”,pkgt:”profile-pane”,itc:”1″})})),e.addElementListener(c,”click”,(function(){a&&(a.style.display=”none”),t&&(t.style.width=””,t.style.overflow=””),beaconClick(“ybar”,”back-notification”,””,{slk:”back-notification”,elm:”arrow”,pkgt:”profile-pane”,sec:”ybar”,subsec:”notification”,itc:”1″})})),s&&e.addElementListener(s,”click”,(function(e){getPath(e).find((function(e){var n=e;if(n.nodeName&&”a”===n.nodeName.toLowerCase()&&n.classList.contains(“yns-link”))return a&&(a.style.display=”none”),t&&(t.style.width=””,t.dispatchEvent(new CustomEvent(“toggle-overlay”))),!0}))}))}},canBuildAccSwitcherList=!0,accSettingDropdownOpen=!1,visibilityTracking=0,params,imageElementsConfig={ybarAccountImage:{selector:”ybar-account-img”,size:”64″},ybarCurrentUserProfileImage:{selector:”ybar-current-user-profile-img”,size:”128″},ybarUserProfileImage:{selector:”ybar-user-profile-img”,size:”128″}},pictureOnErrorForSize=function(e,n){var t=”https://s.yimg.com/wm/modern/images/default_user_profile_pic_”+e+”.png”;n.onerror=null,n.,n.src=t},init$3=function(e,n){var t=n.ybarAccountContainer,o=n.ybarAccountMenu,i=n.ybarMobile,r=n.isSmartphone,a=n.ybarMenuManagePub,s=n.arrowWrapper,l=n.downArrow,c=n.upArrow,d=n.otherAccWrapper,u=n.signInAccountMenu,p=n.signInBtn,f=n.ybarModAccount,m=n.yahooPlusImpression,h=function(o){if(t)t.style.removeProperty(“display”),”false”===t.getAttribute(“data-enabled”)&&(t.style.display=”none”),addDoneUrlToAllLink(n,e);else{var i=new Error(“ybarAccountContainer not Found”);logError(“ERROR:”,i)}t&&canBuildAccSwitcherList&&(canBuildAccSwitcherList=!1,e.onDestroy((function(){canBuildAccSwitcherList=!0})),buildAccSwitcherList(e,n,o))},y=function(){var e,n;0===visibilityTracking&&(visibilityTracking=1,null===(e=null==o?void 0:o.parentNode)||void 0===e||e.removeEventListener(“mouseenter”,y),null===(n=null==o?void 0:o.parentNode)||void 0===n||n.removeEventListener(“focusin”,y),setTimeout((function(){refreshModule()}),500))},b=function(){null==t||t.classList.remove(“ybarMenuOpen”),null==o||o.setAttribute(“aria-expanded”,”false”)},g=function(){if(m&&!m.getAttribute(“src”)&&m.getAttribute(“data-src”)){var n=m.getAttribute(“data-src”)||””;addConsentToUrl(n).then((function(e){m.setAttribute(“src”,e)})),e.onDestroy((function(){m.setAttribute(“src”,””)}))}};if(p&&(addHoverEvent(e,p,”ybar”,”sign-in”,params={elm:”signin”,subsec:”settings”,itc:”2″}),addDoneUrlToAllLink(n,e)),o||i||u){if(i)h(!0);else{if(h(!1),e.addEventListener(“close-all-menus”,(function(){o&&!isHovered(o)?o.checked=!1:u&&u.classList.contains(Css$4.show)&&u.parentNode&&!isHovered(u.parentNode)&&b()})),e.onDestroy((function(){b()})),o){if(o.onchange=function(){e.triggerEvent(“close-all-menus”)},params={itc:”2″,elm:”menu”,elmt:”user-info”,subsec:”accounts”},r){var _=document.querySelector(“#ybarAccountMenuOpener”);_&&_.setAttribute(“data-ylk”,”slk:Settings;elm:btn;sec:ybar;subsec:settings;pkgt:profile-pane;itc:0;tar:login.yahoo.com”),function(){t&&addOverlay(t,”right”,e);var n=document.querySelector(“.”+Css$4[“ybar-icon-image-wrapper”]);e.addElementListener(n,”click”,(function(){null==t||t.dispatchEvent(new CustomEvent(“toggle-overlay”))}))}(),e.addElementListener(s,”click”,(function(){var e,n;accSettingDropdownOpen?(null==l||l.classList.remove(“hide”),null==c||c.classList.add(“hide”),d&&(d.style.height=”0″)):(null==l||l.classList.add(“hide”),null==c||c.classList.remove(“hide”),d&&(n=(e=d).scrollHeight,e.style.height=n+”px”));var t=”manage-account-open”,o={elm:”expand”,subsec:”settings”,pkgt:”profile-pane”,itc:”1″};(accSettingDropdownOpen=!accSettingDropdownOpen)||(t=”manage-account-close”,o.elm=”btn”),beaconClick(“ybar”,t,””,o)})),notify(e,n)}else{var v=document.querySelector(“#ybarAccountMenu + label”);v&&(addHoverEvent(e,v,”ybar”,”profile-expand”,params),e.addElementListener(v,”mouseenter”,g),e.addElementListener(f,”focus”,g)),o&&o.parentNode&&(e.addElementListener(o.parentNode,”mouseenter”,y),e.addElementListener(o.parentNode,”focusin”,y))}hideOutlineOnMouseDown(“#ybarAccountMenu”,”#ybarAccountMenu + label”,e)}e.addElementListener(t,”focusin”,(function(){null==t||t.classList.add(“ybarMenuOpen”),null==o||o.setAttribute(“aria-expanded”,”true”)})),e.addElementListener(t,”focusout”,b),e.addElementListener(a,”click”,b)}Object.keys(imageElementsConfig).forEach((function(e){var n=imageElementsConfig[e],t=document.querySelector(“.”+Css$4[n.selector]);t&&(t.onerror=function(){pictureOnErrorForSize(n.size,t)})}))}};initModule(“ybar-account-init”,(function(e){var n=document.getElementById(“ybarAccountContainer”),t={ybarAccountContainer:n,ybarAccountMenu:document.getElementById(“ybarAccountMenu”),ybarMobile:document.querySelector(“.”+Css$4.mobile+” .”+Css$4[“ybar-account-user-email”]),isSmartphone:document.querySelector(“.”+Css$4.smartphone),ybarMenuManagePub:document.getElementById(“ybarMenuManagePub”),arrowWrapper:document.getElementById(“smartphone-arrow”),downArrow:document.getElementById(“down-arrow”),upArrow:document.getElementById(“up-arrow”),otherAccWrapper:document.getElementById(“otherAccWrapper”),signInAccountMenu:document.querySelector(“.”+Css$4[“ybar-mod-account”]+” .”+Css$4[“sign-in-menu”]),signInBtn:document.querySelector(“.”+Css$4[“ybar-mod-account”]+” .”+Css$4[“ybar-login-btn”]),ybarModAccount:document.querySelector(“.”+Css$4[“ybar-mod-account”]),yahooPlusImpression:n&&n.querySelector(“.”+Css$4[“ybar-account-yahoo-plus-imp”]),crumb:document.querySelector(‘input[name=”crumb”]’),ybarAccMenuItemTemplate:document.getElementById(“ybarAccMenuItemTemplate”),generalSignin:document.getElementById(“generalSignin”),inSessionSignin:document.getElementById(“inSessionSignin”),smartphoneNotifContainer:document.getElementById(“smartphoneNotifContainer”),notificationMenu:document.getElementById(“smartphoneNotifMenu”),notifBadge:document.getElementById(“notif-badge”),profNotifBadge:document.querySelector(“.”+Css$4[“prof-notif-badge”]),dropdownContainer:document.getElementById(“notifDropdownContainer”),ybarNotificationBody:document.getElementById(“ybarNotificationBody”),backButton:document.getElementById(“backButton”)};init$3(e,t)}));var smartphone=”_yb_aoul5″,mobile=”_yb_1u8vq”,count=”_yb_rjdqt”,Css$2={“ybar-mod-mail”:”_yb_dg43z”,”ybar-mail-preview”:”_yb_hit8y _yb_1u3j9″,”ybar-mail-link”:”_yb_j84ri”,smartphone:smartphone,”ybar-mail-icon”:”_yb_quosx”,”property-homepage”:”_yb_6ku67″,”ybar-unread”:”_yb_1e2s9″,”property-member-center”:”_yb_micae”,”property-help”:”_yb_ycqwr”,mobile:mobile,count:count,”ybar-mail-icon-text”:”_yb_mptta”,”ybar-text-wrap”:”_yb_dwib9″,”ybar-text-bold”:”_yb_118zq”,”ybar-mail-signin”:”_yb_1vmbs”,”ybar-mail-loading”:”_yb_yglo9″,”ybar-mail-signin-link”:”_yb_v30v6″,”popover-arrow-off-white”:”_yb_1j1gn”,”popover-arrow-purple”:”_yb_1r02u”,”popover-body”:”_yb_in362 _yb_19l8f”,”ybar-mail-list”:”_yb_1cuke”,”ybar-mail-item”:”_yb_1bsii”,”ybar-mail-item-link”:”_yb_10up3″,”ybar-mail-item-name”:”_yb_2na9w”,”ybar-mail-item-desc”:”_yb_16rn9″,”ybar-mail-item-image”:”_yb_1wwjx”,”ybar-mail-item-unread”:”_yb_1fiyc”,”ybar-mail-bottom-wrapper”:”_yb_1gsqv”,”ybar-mail-compose-link”:”_yb_1bacp”,”ybar-icon-compose”:”_yb_zry85″,”ybar-compose-link-text”:”_yb_zowsx”,”mail-animation”:”_yb_25tvt”,”ybar-mail-item-snippet”:”_yb_1twjp”,”ybar-mail-item-time”:”_yb_19v04″,”ybar-mail-viewall”:”_yb_u34mw”,”ybar-mod-mail-promo”:”_yb_1p3s0″,”ybar-mod-mail-promo-light”:”_yb_14mjo”,”ybar-mod-mail-promo-inner”:”_yb_1nb3f”,”ybar-mod-mail-promo-lbl”:”_yb_15wk4″,”ybar-mod-mail-promo-logo”:”_yb_ktdsq”,”ybar-mod-mail-promo-cta”:”_yb_11kwa”,”ybar-mod-mail-promo-imp”:”_yb_bke69″},JwsRequestType,JwsRequestStatus;!function(e){e[e.COUNT=0]=”COUNT”,e[e.PREVIEW=1]=”PREVIEW”}(JwsRequestType||(JwsRequestType={})),function(e){e[e.PENDING=0]=”PENDING”,e[e.COMPLETE=1]=”COMPLETE”}(JwsRequestStatus||(JwsRequestStatus={}));var jwsCache=new Map,getCache=function(e){var n=jwsCache.get(e);if(n){if(n.status===JwsRequestStatus.PENDING)return n.promise;var t=Date.now()-12e4;return n.data&&n.lastRequested>t?Promise.resolve(n.data):void 0}},setCacheData=function(e,n){var t={lastRequested:Date.now(),status:JwsRequestStatus.COMPLETE,promise:Promise.resolve(n),data:n};jwsCache.set(e,t)},setCachePromise=function(e,n){var t={lastRequested:Date.now(),status:JwsRequestStatus.PENDING,promise:n};jwsCache.set(e,t)},Jws=function(){function e(){}return Object.defineProperty(e.prototype,”wssid”,{get:function(){var e,n,t=null===(e=window.YBAR)||void 0===e?void 0:e.wssid;return t||(t=(null===(n=document.querySelector(‘input[name=”mail_wssid”]’))||void 0===n?void 0:n.value)||””,this.wssid=t),t},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.wssid=e||””},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,”appid”,{get:function(){var e,n,t=null===(e=window.YBAR)||void 0===e?void 0:e.appid;return t||(t=(null===(n=document.querySelector(‘input[name=”mail_appid”]’))||void 0===n?void 0:n.value)||””,this.appid=t),t},set:function(e){window.YBAR=window.YBAR||{},window.YBAR.appid=e||””},enumerable:!1,configurable:!0}),e.prototype.fetchPreview=function(e,n){var t=(void 0===e?{}:e).maxMessages,o=void 0===t?4:t;return __awaiter(this,void 0,void 0,(function(){var e,t,i,r=this;return __generator(this,(function(a){return e=getCache(JwsRequestType.PREVIEW),!n&&e?[2,e]:(1,t={data:{responseType:”json”,requests:[{id:”GetMailboxId”,uri:”/ws/v3/mailboxes/”,method:”GET”,filters:{select:{mailboxId:”$..mailboxes[?(@.isPrimary==true)].id”}},suppressResponse:!0,requests:[{id:”ListMessages”,uri:”/ws/v3/mailboxes/@.id==$(mailboxId)/messages/@.select==q?q=count%3A6+offset%3A0+folderType%3AINBOX+-sort%3Adate”,method:”GET”}]}]}},i=this._fetch(t,1,(function(e){var n=r._normalizePreviewResponse(e,{maxMessages:o});return setCacheData(JwsRequestType.PREVIEW,n),n})),setCachePromise(JwsRequestType.PREVIEW,i),[2,i])}))}))},e.prototype.fetchCount=function(e){return __awaiter(this,void 0,void 0,(function(){var n,t,o,i=this;return __generator(this,(function(r){return n=getCache(JwsRequestType.COUNT),!e&&n?[2,n]:(1,t={data:{responseType:”json”,requests:[{id:”GetMailboxId”,uri:”/ws/v3/mailboxes/”,method:”GET”,filters:{select:{mailboxId:”$..mailboxes[?(@.isPrimary==true)].id”}},suppressResponse:!0,requests:[{id:”ListDecos”,uri:”/ws/v3/mailboxes/@.id==$(mailboxId)/decos”,method:”GET”}]}]}},o=this._fetch(t,1,(function(e){var n=i._normalizerCountResponse(e);return setCacheData(JwsRequestType.COUNT,n),n})),setCachePromise(JwsRequestType.COUNT,o),[2,o])}))}))},e.prototype._fetch=function(e,n,t){var o,i;return __awaiter(this,void 0,void 0,(function(){var r,a,s,l,c,d,u,p,f,m,h,y,b,g,_;return __generator(this,(function(v){switch(v.label){case 0:if(r=e.data,a=void 0===r?{}:r,s=e.params,l=void 0===s?{}:s,c=”EC-4008″,d=”EC-4003″,u=this._getYmreqid(),!this.appid)throw new Error(“No appId, user is logged out”);p=__assign({appId:this.appid},l),this.wssid&&(p.wssid=this.wssid),e.params=p,f=[],Object.keys(p).forEach((function(e){var n=p[e];n&&f.push(encodeURIComponent(e)+”=”+encodeURIComponent(n))})),m=f.length?”?”+f.join(“&”):””,h=”https://apis.mail.yahoo.com/ws/v3/batch”+m,v.label=1;case 1:return v.trys.push([1,4,,5]),[4,ybarFetch(h,{method:”POST”,body:JSON.stringify(a),credentials:”include”,headers:{“Content-Type”:”application/json”,”X-Oath-YmReqId”:u}})];case 2:return[4,(y=v.sent()).json()];case 3:if(b=v.sent(),y.ok)return[2,t(null===(i=b.result)||void 0===i?void 0:i.responses)];if((g=null===(o=null==b?void 0:b.error)||void 0===o?void 0:o.code)===d)return[2,this._handleWssidApiError(b,e,n,t)];throw g===c?new Error(“Session has expired”):new Error(“Mail Api Responded with an Error”);case 4:throw _=v.sent(),logError(“JWS: “+_.message,_),_;case 5:return[2]}}))}))},e.prototype._normalizePreviewResponse=function(e,n){var t,o,i,r=this,a=(void 0===n?{}:n).maxMessages,s=void 0===a?4:a;return e?((null===(i=null===(o=null===(t=null==e?void 0:e[0])||void 0===t?void 0:t.response)||void 0===o?void 0:o.result)||void 0===i?void 0:i.messages)||[]).map((function(e){return r._parseRawMessage(e)})).filter((function(e,n){return!!(e&&n0)return t-=1,this.wssid=a,this._fetch(n,t,o);throw new Error(“Max retries with invalid WSSID reached”)}throw new Error(“valid WSSID missing from API Response”)},e.prototype._parseRawMessage=function(e){var n,t,o,i,r,a,s=e.id,l=e.snippet,c=e.headers,d=e.flags;return(null==c?void 0:c.date)&&(null===(n=null==c?void 0:c.from)||void 0===n?void 0:n[0])?{from:(null===(o=null===(t=c.from)||void 0===t?void 0:t[0])||void 0===o?void 0:o.name)||””,email:(null===(r=null===(i=c.from)||void 0===i?void 0:i[0])||void 0===r?void 0:r.email)||””,subject:null==c?void 0:c.subject,read:null!==(a=null==d?void 0:d.read)&&void 0!==a&&a,mid:s,date:parseInt(c.date,10)||void 0,snippet:l||””}:null},e.prototype._getYmreqid=function(){var e=(new Date).getTime();return”xxxxxxxx-xxxx-xxxx-09xx-xxxxxxxxxx00″.replace(new RegExp(“x”,”g”),(function(){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),n.toString(16)}))},e}(),loadAssets=function(e,n,t){for(var o,i,r=[],a=[],s=0;s0&&function(e){var n=document.createElement(“script”);n.src=e,n.type=”text/javascript”,n.async=!0,document.getElementsByTagName(“head”)[0].appendChild(n)}(l))}),10)}},getNextGenMailPreview=function(e){postreq({url:”/fp_ngymtls_ms/_rcv/remote”,body:{m_id:”react-wafer-mailpreview”,m_mode:”json”,ctrl:”MailPreview”}},(function(n,t){n||e(t)}))},loaded=!1,init$2=function(e,n){var t=n.mailModule,o=n.mailLink,i=n.mailSigninLink,r=n.ybarMailMessages;if(t){var a=new Jws;if(e.addElementListener(t,”mouseenter”,(function(){e.triggerEvent(“close-all-menus”),triggerRapidBeacon()})),e.addEventListener(“close-all-menus”,(function(){isHovered(t)||hideMailPopover(n)})),e.onDestroy((function(){hideMailPopover(n)})),loaded=!1,loadUnreadCount(e,n,a),r)e.addElementListener(o,”mouseover”,(function(){loadMessages(e,n,a),fireYahooImpBeacon(e,n)})),e.addElementListener(o,”focus”,(function(){loadMessages(e,n,a),triggerRapidBeacon(),fireYahooImpBeacon(e,n)}));else{var s=o.getAttribute(“data-redirect-params”);if(s&&””!==s){var l=o.href;e.onDestroy((function(){o.href=l})),s=-1!==o.href.indexOf(“&activity=ybar-“)?””:s.replace(/[[pspid]]/,getSpaceId()),o.href=appendQorA(o.href)+s,(null==i?void 0:i.href)&&(i.href=appendQorA(i.href)+s)}}}},mailBeaconTimeout=!1,triggerRapidBeacon=function(){mailBeaconTimeout||(mailBeaconTimeout=!0,sendRapid({slk:”Mail”,elm:”expand”,sec:”ybar”,subsec:”mailprev”,itc:”2″}),setTimeout((function(){mailBeaconTimeout=!1}),1e3))},sendRapid=function(e){beaconClick(“ybar”,(null==e?void 0:e.slk)||”Mail”,””,e,null)},relativeDate=function(e){if(!e)return””;var n=Math.round((new Date).getTime()/1e3)-e;return n86400?Math.floor(n/86400)+”d”:””},createMailItemElement=function(e,n,t,o){var i,r=getTemplateContent(n.ybarMailItemTemplate),a=null===(i=r.children)||void 0===i?void 0:i[0];if(!a&&r.childNodes)for(var s=0;s0){if(o.style.visibility=”visible”,i){var t=n>999,a=r?”99+”:”999+”;i.textContent=t?a:n+””}e.onDestroy((function(){o.style.visibility=”hidden”,i&&(i.textContent=””)}))}})).catch((function(){}))},loadMessages=function(e,n,t){loaded||(loaded=!0,n.isNextGenYahoo?loadNGYMailPreview(e,n):loadMailPreview(e,n,t))},loadMailPreview=function(e,n,t){t.fetchPreview().then((function(t){var o;if(t&&0!==t.length){var i=document.createElement(“ul”);i.className=Css$2[“ybar-mail-list”];for(var r=0;r a”),o=document.querySelector(“#ybar-navigation-item-mail > a > span”);null!==n&&null!==t&&(new Jws).fetchCount().then((function(n){o&&n>0&&(o.textContent=”(“+(n>999?”999+”:n)+”)”,e.onDestroy((function(){o.textContent=””})))})).catch((function(){}))},nodeContains=function(e,n){var t=!1;if(!e||!n)return t;if(“function”==typeof e.contains)t=e.contains(n);else for(var o=n;o;){if(o===e){t=!0;break}o=o.parentElement}return t},MORE_MENU_WIDTH=61,MORE_MENU_LONG_LIST_COUNT=10,moreMenuIndex=-1,marginLeftOffset,initDropdowns=function(e,n){var t;__spreadArray([],null===(t=n.ybarNav)||void 0===t?void 0:t.querySelectorAll(“.”+n.dropdownOpenClass)).forEach((function(e){return e.classList.remove(n.dropdownOpenClass)}));var o=n.isTablet?”touchstart”:”mouseover”,i=delegate_1(“.”+n.dropdownWrapperClass+”, .”+n.navigationDropdownListClass,o,(function(t){if(window||document){var o=window.innerWidth||document.documentElement.clientWidth,i=t.delegateTarget;if(i&&-1!=i.className.indexOf(n.dropdownWrapperClass)&&(i=i.querySelector(“.”+n.navigationDropdownListClass)),i){i.style.removeProperty(“left”),n.shiftMoreMenuEnabled&&i.style.removeProperty(“margin-left”),n.shiftMoreMenuEnabled&&marginLeftOffset&&(i.style.marginLeft=marginLeftOffset+”px”);var r=i.getBoundingClientRect().right;r>o&&(n.shiftMoreMenuEnabled?(marginLeftOffset||(marginLeftOffset=parseInt(window.getComputedStyle(i).marginLeft,10)),i.style.marginLeft=marginLeftOffset+o-r+”px”):i.style.left=o-r+”px”)}}else{var a=new Error(“Dropdown could not be initialized”);e.logError(“Error:”,a)}}));e.onDestroy((function(){i.destroy()}))},updateMoreMenu=function(e,n,t){var o,i,r,a=-1,s=0;if(e.ybarNav){var l=window.getComputedStyle(e.ybarNav),c=parseInt(l.width,10)-parseInt(l.paddingLeft,10)-parseInt(l.paddingRight,10),d=MORE_MENU_WIDTH,u=e.navigationPlacement();if(u)d+=u.getBoundingClientRect().width;for(var p=0;pm&&(p!==e.navItems.length-1||s+f>m||e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()&&moreMenuIndexmoreMenuIndex&&-1!==moreMenuIndex)for(var y=moreMenuIndex;y=a;){var g=e.navItems[b].cloneNode(!0),_=g.querySelector(“.”+e.navigationDropdownListClass);if(_&&(_.style.display=”none”),g.classList.remove(e.dropdownWrapperClass),g.classList.remove(e.ybarNavigationItemClass),g.classList.add(e.navigationDropdownItemClass),e.moreMenuDropdown){e.moreMenuDropdown.insertBefore(g,e.moreMenuDropdown.firstChild);var v=g.getElementsByTagName(“a”)[0];t.unshiftMoreMenuItem(v)}null===(r=e.navItems[b].querySelector(“a”))||void 0===r||r.setAttribute(“tabindex”,”-1″),b–}moreMenuIndex=a}if(-1!==a&&e.navList){var w=parseInt(s.toString(),10)+”px”;e.navList.style.maxWidth=w,n.textContent=”.”+Css$1[“ybar-nav-list-desktop”]+”{ max-width: “+w+”}”}e.moreMenuNavItem&&e.moreMenuDropdown&&e.moreMenuDropdown.hasChildNodes()?(e.moreMenuNavItem.classList.add(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility=”visible”):null!==e.moreMenuNavItem&&(e.moreMenuNavItem.classList.remove(e.dropdownWrapperClass),e.moreMenuNavItem.style.visibility=”hidden”),e.moreMenuDropdown&&e.moreMenuDropdown.childElementCount>MORE_MENU_LONG_LIST_COUNT?e.moreMenuDropdown.classList.add(e.longListClass):null!==e.moreMenuDropdown&&e.moreMenuDropdown.classList.remove(e.longListClass)}},handleDropdownFocus=function(e,n){var t=delegate_1(“.”+n.dropdownWrapperClass,”focusin”,(function(e){var t=e.delegateTarget;t&&t.classList.contains(n.dropdownWrapperClass)&&t.classList.add(n.dropdownOpenClass)})),o=delegate_1(“.”+n.dropdownWrapperClass+”, .”+n.navigationDropdownListClass,”focusout”,(function(e){var t=e.delegateTarget;if(null==t?void 0:t.classList.contains(n.navigationDropdownListClass)){var o=t.parentElement;o&&!o.contains(e.relatedTarget)&&o.classList.contains(n.dropdownWrapperClass)&&o.classList.remove(n.dropdownOpenClass)}else(null==t?void 0:t.classList.contains(n.dropdownOpenClass))&&t.classList.remove(n.dropdownOpenClass)}));e.onDestroy((function(){var e;t.destroy(),o.destroy(),__spreadArray([],null===(e=n.ybarNav)||void 0===e?void 0:e.querySelectorAll(“.”+n.dropdownOpenClass)).forEach((function(e){e.classList.remove(n.dropdownOpenClass);var t=document.activeElement;nodeContains(n.ybarNav,t)&&setTimeout((function(){null==t||t.blur()}),1)}))}))},setNavigationFocus=function(e,n,t,o){for(var i=n||window.location.pathname,r=t||window.location.hostname,a=(o||{}).setParentFocus,s=void 0!==a&&a,l=__spreadArray([],e.topLevelNavLinks),c=null,d=null,u=0;u0),r=new A11yNavigation(e,{containerElm:n.ybarNav,navlistItemSelector:”.”+Css$1[“ybar-parent-navigation”]+” > li”,dropdownClass:n.dropdownWrapperClass,enableMoreMenu:i,moreMenuNavElm:n.moreMenuMainFocusItem});initDropdowns(e,n),showMailUnreadCount(e),e.addElementListener(document,”DOMContentLoaded”,(function(){showMailUnreadCount(e)})),handleDropdownFocus(e,n);var a=e.getConfig().bucketConfig,s=(void 0===a?{}:a).enableDynamicNavfocus;if(void 0!==s&&s&&setNavigationFocus(n),e.addEventListener(“nav:setFocus”,(function(e){var t=e.detail,o=void 0===t?{}:t,i=o.hostname,r=void 0===i?window.location.hostname:i,a=o.pathname,s=void 0===a?window.location.pathname:a,l=o.options;setNavigationFocus(n,s,r,void 0===l?{}:l)})),i){var l=document.createElement(“style”);l.title=”ybar_nav_interim”,document.head.appendChild(l);var c=delegate_1(“#ybar-nav-more-menu ul a”,”click”,(function(n){e.triggerEvent(“navigation”,{event:n})}));e.addEventListener(“nav:resize”,(function(){updateMoreMenu(n,l,r)})),updateMoreMenu(n,l,r),e.addElementListener(window,”load”,(function(){updateMoreMenu(n,l,r)})),e.addElementListener(window,”resize”,(function(){updateMoreMenu(n,l,r)})),e.onDestroy((function(){var e=l.parentNode;null==e||e.removeChild(l),c.destroy()}))}},SELECTOR_MORE_MENU=”#ybar-nav-more-menu”;initModule(“ybar-mod-navigation”,(function(e){var n,t={dropdownWrapperClass:Css$1[“dropdown-wrapper”],isFuji2:null!==document.querySelector(“.ybar-ytheme-fuji2”),isTablet:null!==document.querySelector(“.tablet”),longListClass:Css$1[“long-list”],moreMenuDropdown:document.querySelector(SELECTOR_MORE_MENU+” ul”),moreMenuNavItem:document.querySelector(SELECTOR_MORE_MENU),moreMenuNavLinksSelector:SELECTOR_MORE_MENU+” ul a”,moreMenuMainFocusItem:document.querySelector(SELECTOR_MORE_MENU+’ > span[tabindex=”0″]’),navigationDropdownItemClass:Css$1[“navigation-dropdown-item”],navigationDropdownListClass:Css$1[“navigation-dropdown-list”],navItems:document.querySelectorAll(“li.”+Css$1[“ybar-navigation-item”]),topLevelNavLinks:document.querySelectorAll(“li.”+Css$1[“ybar-navigation-item”]+” > a”),navLinks:document.querySelectorAll(“.ybar-mod-navigation a”),navList:document.querySelector(“.ybar-mod-navigation ul”),shiftMoreMenuEnabled:document.querySelector(“.ybar-shift-more-menu”),ybarNav:document.getElementById(“ybar-navigation”),ybarNavigationItemClass:Css$1[“ybar-navigation-item”],dropdownOpenClass:Css$1[“dropdown-open”],navigationPlacement:function(){return n||(n=document.getElementById(“ybar-nav-placement”)),n}};init$1(e,t)}));var Css={“ybar-mod-notification”:”_yb_6duql”,”ybar-icon-notification”:”_yb_1g4iq”,”notif-dropdown-container”:”_yb_tt94x _yb_1u3j9″,”notif-dropdown-container–upsell”:”_yb_1xkr7″,”notification-container–no-history”:”_yb_4vv23″,”tooltip-container–active”:”_yb_a9rc5″,”tooltip-container”:”_yb_oazmt”,”tooltip-container–open”:”_yb_1vnuy”,”tooltip-container__inner”:”_yb_1ei9f”,”tooltip-container__title”:”_yb_10t50″,”tooltip-container__subtitle”:”_yb_1rc8t”,”tooltip-container__btns”:”_yb_pbawd”,”tooltip-container__btn”:”_yb_1iiza”,”tooltip-container__btn–close”:”_yb_3o8v1″,”tooltip-container__btn–cta”:”_yb_m1voz”,”property-homepage”:”_yb_l3i5k”,”ybar-fadein”:”_yb_1324c”,”ybar-notification-menu”:”_yb_1vik9 _yb_19l8f”,”notif-animation”:”_yb_1w9ya”},LOCALSTORAGE_KEY=”ytlv”,HOURS_24=864e5,DAYS_7=7*HOURS_24,CLASS_OPEN=Css[“tooltip-container–open”],CLASS_ACTIVE=Css[“tooltip-container–active”],CLASS_BTN_CLOSE=Css[“tooltip-container__btn–close”],CLASS_MENU=Css[“tooltip-container__inner”],MAX_INIT_ATTEMPTS=5,INIT_INTERVAL_MS=100,PromoTooltip=function(){function e(e,n){var t=this;this.initialized=!1,this.ybar=e,this.container=n,this.a11yMenu=this.container.querySelector(“.”+CLASS_MENU),this.historyEnabled=!!Number(this.container.dataset.history);var o=this.getLocalStorage();this.state={lastSeen:(null==o?void 0:o.lastSeen)||null,manuallyClosed:(null==o?void 0:o.manuallyClosed)||!1},this.init();var i=0,r=setInterval((function(){i>=MAX_INIT_ATTEMPTS||t.initialized?clearInterval(r):(void 0!==t.isNotificationsSupported()&&t.init(),i++)}),INIT_INTERVAL_MS)}return e.prototype.show=function(e){var n;this.initialized&&(this.historyEnabled&&!e||(document.body.classList.add(CLASS_OPEN),null===(n=this.a11yMenu)||void 0===n||n.setAttribute(“aria-expanded”,”true”),this.lastSeen=(new Date).getTime()))},e.prototype.hide=function(){var e;this.initialized&&(this.historyEnabled&&document.body.classList.remove(CLASS_ACTIVE),document.body.classList.remove(CLASS_OPEN),null===(e=this.a11yMenu)||void 0===e||e.setAttribute(“aria-expanded”,”false”))},Object.defineProperty(e.prototype,”lastSeen”,{get:function(){return this.state.lastSeen},set:function(e){this.state.lastSeen=e,this.setLocalStorage()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,”manuallyClosed”,{get:function(){return this.state.manuallyClosed},set:function(e){this.state.manuallyClosed=!!e,this.setLocalStorage()},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.isNotificationsSupported()&&this.isNotificationPermissionDefault()&&(this.historyEnabled||document.body.classList.add(CLASS_ACTIVE),this.addEventListeners(),this.initialized=!0,this.hasSeenTooltipIn(this.manuallyClosed?DAYS_7:HOURS_24)||(document.body.classList.add(CLASS_ACTIVE),this.show(!0)))},e.prototype.addEventListeners=function(){var e=this;this.ybar.addElementListener(this.container.getElementsByClassName(CLASS_BTN_CLOSE)[0],”click”,(function(){e.hide(),e.manuallyClosed=!0}))},e.prototype.isNotificationsSupported=function(){var e;return null===(e=null===window||void 0===window?void 0:window.subscriptionHelperInstance)||void 0===e?void 0:e.checkIsSupportedBrowser()},e.prototype.isNotificationPermissionDefault=function(){var e;return”default”===(null===(e=window.Notification)||void 0===e?void 0:e.permission)},e.prototype.hasSeenTooltipIn=function(e){if(!this.lastSeen)return!1;var n=new Date(this.lastSeen),t=new Date;return n.getTime()+e>t.getTime()},e.prototype.setLocalStorage=function(){var e;null===(e=window.localStorage)||void 0===e||e.setItem(LOCALSTORAGE_KEY,JSON.stringify(this.state))},e.prototype.getLocalStorage=function(){var e,n,t=null===(e=window.localStorage)||void 0===e?void 0:e.getItem(LOCALSTORAGE_KEY);if(null===t)return null;try{return JSON.parse(t)}catch(e){return null===(n=window.localStorage)||void 0===n||n.removeItem(LOCALSTORAGE_KEY),null}},e}(),REFRESH_RATE=3e5,init=function(e,n){var t,o=n.notifMenu,i=n.notifMenuOpener,r=n.notifDropdown,a=n.notifBadge,s=n.notifContainer,l=n.animatedIcon;n.tooltipContainer&&(t=new PromoTooltip(e,n.tooltipContainer));var c=getNotifClient(),d=function(){o&&(o.checked=!1),null==r||r.classList.remove(“ybarMenuOpen”),null==o||o.setAttribute(“aria-expanded”,”false”)},u=function(e){(null==e?void 0:e.newCount)&&e.newCount>0&&a&&(a.style.visibility=”visible”,l&&l.play())},p=function(){c.refreshPanel().then(u).catch((function(){}))};e.addEventListener(“close-all-menus”,(function(){isHovered(s)||d()})),s&&(p(),setInterval((function(){p()}),REFRESH_RATE),s.addEventListener(“mouseenter”,(function(){e.triggerEvent(“close-all-menus”),document.querySelector(“.display-push-promos .”+Css[“notification-container–no-history”])||(c.resetBadge(),a&&(a.style.visibility=”hidden”)),null==t||t.show()})),s.addEventListener(“mouseleave”,(function(){d(),null==t||t.hide()}))),e.addElementListener(o,”click”,(function(){beaconClick(“ybar”,”notification”,””,{elm:”btn”,elmt:”visible”===(null==a?void 0:a.style.visibility)?”newalert”:””,subsec:”notification”,itc:”1″})})),i&&addHoverEvent(e,i,”ybar”,”notification”,{elm:”expand”,subsec:”notifications”,itc:”2″}),e.addElementListener(r,”focusin”,(function(){o&&(o.checked=!0),null==r||r.classList.add(“ybarMenuOpen”),null==o||o.setAttribute(“aria-expanded”,”true”)})),e.addElementListener(r,”focusout”,d),e.addElementListener(n.tooltipContainer,”focusin”,(function(){null==t||t.show()})),e.addElementListener(n.tooltipContainer,”focusout”,(function(){null==t||t.hide()}))};initModule(“ybar-mod-notification”,(function(e){var n={notifContainer:document.getElementById(“notification-container”),notifBadge:document.getElementById(“notif-badge”),notifMenu:document.getElementById(“ybarNotificationMenu”),notifMenuOpener:document.querySelector(“#ybarNotificationMenu + label”),notifDropdown:document.getElementById(“notifDropdownContainer”),animatedIcon:document.getElementById(“notifBell”),tooltipContainer:document.querySelector(“.”+Css[“tooltip-container”])};init(e,n)}))})()}};