/*!
 * 
 * MCAFEE RESTRICTED CONFIDENTIAL
 * Copyright (c) 2020 McAfee, LLC
 * 
 * The source code contained or described herein and all documents related
 * to the source code ("Material") are owned by McAfee or its
 * suppliers or licensors. Title to the Material remains with McAfee
 * or its suppliers and licensors. The Material contains trade
 * secrets and proprietary and confidential information of McAfee or its
 * suppliers and licensors. The Material is protected by worldwide copyright
 * and trade secret laws and treaty provisions. No part of the Material may
 * be used, copied, reproduced, modified, published, uploaded, posted,
 * transmitted, distributed, or disclosed in any way without McAfee's prior
 * express written permission.
 * 
 * No license under any patent, copyright, trade secret or other intellectual
 * property right is granted to or conferred upon you by disclosure or
 * delivery of the Materials, either expressly, by implication, inducement,
 * estoppel or otherwise. Any license under such intellectual property rights
 * must be expressed and approved by McAfee in writing.
 * 
 * 
 */!function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=118)}([function(e,t,n){"use strict";n.d(t,"f",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"d",(function(){return r})),n.d(t,"k",(function(){return a})),n.d(t,"j",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"i",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"l",(function(){return L})),n.d(t,"n",(function(){return v})),n.d(t,"m",(function(){return R})),n.d(t,"c",(function(){return w}));var i=n(2);const o={WHITELIST:"whitelist",PREFERENCE:"preference",STATISTICS:"statistics",ABOUT:"about"},s={ADBLOCK:{BUBBLE:"AdblockBubble",WHITELISTED:"AdblockWhitelisted"},ADBLOCK_INTERACTION:"AdBlock_Interaction",BADGE:"Badge",BLOCK_PAGE:"Block_Page",BROWSER_ACTION_CLICKED:"BrowserAction_Clicked",BROWSER_BADGE_UPDATE:"BrowserBadgeUpdate",BROWSER_NAVIGATE:"Browser_Navigate",CRYPTOJACKING_BLOCK:"Cryptojacking_Block",DOWNLOAD_BLOCK:"Download_Block",DOWNLOAD_SCAN_UI:"Download_Scan_UI",GET_SEARCH_EXTENSION:"EmbedSearchExtension",PRODUCT_UPSELL_PROMPT:"ProductUpsellPrompt",PRODUCT_UPSELL_TOAST:"ProductUpsellToast",PROFILE_INFO:"ProfileInfo",SEARCH_SUGGEST:"SearchSuggest",SEARCH_SUGGEST_BLOCK_PAGE:"SearchSuggest_BlockPage",SEARCH_SUGGEST_TYPOSQUATTING:"SearchSuggest_TypoSquatting",SECURE_SEARCH:"Secure_Search",SECURE_SEARCH_HIT:"Secure_Search_Hit",SIDEBAR_PANEL:"SideBar_Panel",SITE_REPORT:"SiteReport",SMA_REPUTATION:"SMA_Reputation",TOAST:"Toast",TYPOSQUATTING:"Typosquatting",AMAZON_UPSELL_SIDEBAR_TOAST:"AmazonUpsellSidebarToast",REMOTE_ACCESS_TROJAN:"RemoteAccessTrojan",SECURE_SEARCH_TOAST:"Secure_Search_Toast",FIND_SIMILAR_PAGES:"SimilarPages",WELCOME_SS_ON:"WelcomeSSON",WSS_ANALYTICS:"WSS_Analytics"},r={SECURE_SEARCH_TOAST:"SecureSearchToast"},a={FIRST_ANNOTATION:"FirstAnnotation"},c={YAHOO:"Yahoo"},l={BROWSER_ACTION_CLICKED:"BrowserActionClicked",TYPOSQUATTING:"Typosquatting",BLOCK_PAGE:"BlockPage",SECURE_SEARCH_HIT:"SecureSearchHit",CRYPTOJACKING_BLOCK:"CryptojackingBlock",SIDEBAR_PANEL:"SideBarPanel",SMA_REPUTATION:"SMAReputation",DOWNLOAD_SCAN_UI:"DownloadScanUI",DOWNLOAD_BLOCK:"DownloadBlock"},u={IMPRESSION:"Impression",WEBADVISOR:"WebAdvisor",CRYPTOJACKING:{LEARN_MORE_CLICKED:"LearnMoreClicked",WHITELISTED:"Whitelisted"},SIDEBAR_PANEL:{SMA:"SocialMediaAnnotation",MAIN:"Main"},SELECTION:"Selection",DISMISSED:"Dismissed",HOVERED:"Hovered",CLOSE_CLICKED:"CloseClicked",ENABLE:"Enable",ADD:"Add",ADBLOCK:{DISMISS:"Dismiss",WHITELISTED:"Whitelisted",UNWHITELISTED:"Unwhitelisted"},PPS:{ACCEPT_RISK:"AcceptRisk",BLOCKED:"Blocked",ACKNOWLEDGED:"Acknowledged",GO_PROFILE:"GoProfile",WHITELIST_ADDED:"WhitelistAdded",WHITELIST_DELETED:"WhitelistDeleted",RESET_CLICKED:"ResetClicked"},BROWSER_BADGE:{SMA:"SMA"},UPSELL_SIDEBAR:{ACCEPTED:"Accepted",DECLINED:"Declined",CLOSED:"Closed",CLICKED:"Clicked"},RAT_DETECTION:{ACKNOWLEDGED:"Acknowledged",WHITELISTED:"Whitelisted"},FIND_SIMILAR_PAGES:{LINK_CLICKED:"LinkNavigated"},ACCEPTED:"Accepted",DECLINED:"Declined"},d={TOP:"Top",FRAME:"Frame",INLINE:"Inline"},h={EDUCATION:"Education",NORMAL:"Normal"},p={ACCEPT_SECURE_SEARCH:"AcceptSecureSearch",BLOCK_BAD_PAGE:"BlockBadPage",DELETE_BAD_DOWNLOAD:"DeleteBadDownload"},_="About",m="Preferences",g="Whitelist",E="UserStatistics",f="UNKNOWN",T="Red",S="Yellow",A="Green",O="Yellow",N="Red",C="UNKNOWN",b="Hackersafe",I="Typosquatting",y="Phishing",L={DEFAULT:"DefaultSearch"},v={TOAST:"Toast",FIRST_ANNOTATION:"FirstAnnotation"},R={ACTION:{CLICK:"click",KEYDOWN:"keydown",RETURN_KEY_CODE:13,SHOW:"show",SEARCH_SUGGEST_KEY_CODES:[8,32,46,...Object(i.k)(48,57),...Object(i.k)(65,90),...Object(i.k)(96,107),...Object(i.k)(109,111),...Object(i.k)(186,192),...Object(i.k)(219,222)]},MISC:{LOADED:"Loaded",CHECKED:"checked",UNKNOWN:"UNKNOWN",ACTION_PANEL:"ActionPanel",ACCEPTED:"Accepted",DECLINED:"Declined",SETTINGS_TAB_PREFIX:"settings_tab_",GREEN:"GREEN",YELLOW:"YELLOW",RED:"RED",HACKERSAFE:"HACKERSAFE",PREFERENCE:"Preference"},SIDEBAR_AMAZON_UPSELL:{PRODUCT:"AmazonExtension",NO_THANKS:"_no_thanks",REMIND_ME_LATER:"_remind_me_later",SIDEBAR_PROTECT:"sidebar_protect_"},SEARCH_ENGINE:{GOOGLE:"google",YAHOO:"yahoo"},SOCIAL_MEDIA:{LINKEDIN:"linkedin",FACEBOOK:"facebook",YOUTUBE:"youtube",INSTAGRAM:"instagram",REDDIT:"reddit",TWITTER:"twitter"},TRIGGER:{AMAZON_EXTN_UPSELL:{INSTALLED_REJECTED:"installed_rejected",INSTALLED_DISABLED:"installed_disabled",NOT_INSTALLED:"not_installed"}}};class w{static toColorTelemetry(e){let t=f;switch(e){case i.h.RED:t=T;break;case i.h.YELLOW:t=S}return t}static toTelemetryBlockState(e){let t=C;switch(e){case i.c.GREEN:t=A;break;case i.c.YELLOW:t=O;break;case i.c.RED:t=N;break;case i.c.HACKERSAFE:t=b;break;case i.c.TYPOSQUATTING:t=I;break;case i.c.PHISHING:t=y}return t}static toTelemetrySettingTab(e){let t=m;switch(e){case o.WHITELIST:t=g;break;case o.STATISTICS:t=E;break;case o.ABOUT:t=_}return t}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"i",(function(){return s})),n.d(t,"c",(function(){return r})),n.d(t,"k",(function(){return a})),n.d(t,"j",(function(){return c})),n.d(t,"h",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"a",(function(){return p}));const i={CACHE_STORE:"CACHE_STORE",CONTENT_HANDLER:"CONTENT_HANDLER",EXECUTE_COMMAND:"EXECUTE_COMMAND",FOCUS_OR_CREATE_TAB:"FOCUS_OR_CREATE_TAB",GET_BK_GLOBALS:"GET_BK_GLOBALS",GET_EXTENSION_STATUS:"GET_EXTENSION_STATUS",GET_TAB_DATA:"GET_TAB_DATA",GET_VALUES:"GET_VALUES",GTI_REQUEST:"GTI_REQUEST",INSTALL_EXTENSION:"INSTALL_EXTENSION",LOGGER:"LOGGER",PLACEHOLDER_TEXT:"PLACEHOLDER_TEXT",REMOVE_TAB:"REMOVE_TAB",SEND_TELEMETRY:"SEND_TELEMETRY",SET_TAB_ACTION_PANEL_DATA:"SET_TAB_ACTION_PANEL_DATA",SET_VIEWPORT:"SET_VIEWPORT",UPDATE_BROWSER_ACTION:"UPDATE_BROWSER_ACTION",WHITELIST:"WHITELIST",RESET_NATIVE_SETTING:"RESET_NATIVE_SETTING",GET_POPUP_DATA:"GET_POPUP_DATA",GET_SETTINGS_DATA:"GET_SETTINGS_DATA",RESET_SETTINGS:"RESET_SETTINGS",ADD_ADBLOCK_WHITELIST:"ADD_ADBLOCK_WHITELIST",GET_COSMETIC_FILTERS:"GET_COSMETIC_FILTERS",REMOVE_ADBLOCK_WHITELIST:"REMOVE_ADBLOCK_WHITELIST",TOGGLE_ADBLOCK_ENGINE:"TOGGLE_ADBLOCK_ENGINE",SHOW_PERM_REQUEST_BALLOON:"SHOW_PERM_REQUEST_BALLOON",AUTO_RUN_VIDEO_SITE:"AUTO_RUN_VIDEO_SITE",GET_CLICK_EVENT_TIME:"GET_CLICK_EVENT_TIME",SAVE_CLICK_EVENT_TIME:"SAVE_CLICK_EVENT_TIME",CLOSE_TOAST:"CLOSE_TOAST",SHOULD_SHOW_TOAST:"SHOULD_SHOW_TOAST",GET_TYPOSQUATTING_DATA:"GET_TYPOSQUATTING_DATA",IS_FRAME_BLOCKED:"IS_FRAME_BLOCKED",IS_WHITELISTED:"IS_WHITELISTED",ANY_BLOCKED_IFRAMES:"ANY_BLOCKED_IFRAMES",ANY_BLOCKED_CRYPTOSCRIPTS:"ANY_BLOCKED_CRYPTOSCRIPTS",UNBLOCK_ALL_IFRAMES:"UNBLOCK_ALL_IFRAMES",VIEW_SITE_REPORT:"VIEW_SITE_REPORT",SEARCH_ANNOTATION:"SEARCH_ANNOTATION",UPDATE_ENGINE_STATS:"UPDATE_ENGINE_STATS",SHOW_NPS_CHECKLIST:"SHOW_NPS_CHECKLIST",SOCIAL_MEDIA_ANNOTATION:"SOCIAL_MEDIA_ANNOTATION",DOWNLOAD_SCANNING_DELETE_FILE:"DOWNLOAD_SCANNING_DELETE_FILE",TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING:"TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING",REMOVE_FROM_DOWNLOAD_SCAN_QUEUE:"REMOVE_FROM_DOWNLOAD_SCAN_QUEUE",UPDATE_RAT_DETECTION_SHOWING_FLAG:"UPDATE_RAT_DETECTION_SHOWING_FLAG",GET_DOMAIN_VISITED_DETAILS:"GET_DOMAIN_VISITED_DETAILS",SEARCH_SUGGEST:"SEARCH_SUGGEST",SHOW_SS_WELCOME_ANNOTATION:"SHOW_SS_WELCOME_ANNOTATION",GET_AMAZON_UPSELL_CATEGORY_DETAILS:"GET_AMAZON_UPSELL_CATEGORY_DETAILS",SHOW_AMAZON_UPSELL_TOAST:"SHOW_AMAZON_UPSELL_TOAST",BLAST_SEARCH_BASE:"BLAST_SEARCH_BASE"},o={UNBLOCK_IFRAME:"UNBLOCK_IFRAME",BALLOON_MESSAGE:"BALLOON_MESSAGE",FLOATING_BALLOON:"FLOATING_BALLOON",PAGE_OVERLAY:"PAGE_OVERLAY",SIDEBAR:"SIDEBAR",TOAST:"TOAST",TOPBAR:"TOPBAR"},s={BADGE_COLLECTION:"BADGE_COLLECTION",BLOCK_PAGE:"BLOCK_PAGE",DOWNLOAD_SCANNING_MALICIOUS:"DOWNLOAD_SCANNING_MALICIOUS",DOWNLOAD_SCANNING_FILE_DELETED:"DOWNLOAD_SCANNING_FILE_DELETED",DOWNLOAD_SCANNING_FILE_NOT_DELETED:"DOWNLOAD_SCANNING_FILE_NOT_DELETED",IFRAME_BLOCK:"IFRAME_BLOCK",MAIN:"MAIN",RELOAD:"RELOAD",SITE_REPORT:"SITE_REPORT",SMA:"SMA",SS_ACCEPTED:"SS_ACCEPTED",RAT_DETECTION:"RAT_DETECTION",AMAZON_UPSELL_TOAST:"AMAZON_UPSELL_TOAST"},r={SS_EXPERIENCE:"SS_EXPERIENCE",FIND_SIMILAR_PAGES:"FIND_SIMILAR_PAGES"},a={CRYPTO_BLOCK:"CRYPTO_BLOCK",IFRAME_BLOCK:"IFRAME_BLOCK",TRIGGER_ALLOW:"TRIGGER_ALLOW"},c={CLOSE_ALL_TOAST:"CLOSE_ALL_TOASTS",SECURE_SEARCH:"SECURE_SEARCH"},l={SEARCH_EXTENSION_OVERLAY:"SEARCH_EXTENSION_OVERLAY",FINISH_DOWNLOAD:"FINISH_DOWNLOAD"},u={UPDATE_AD_COUNT:"UPDATE_AD_COUNT",UPDATE_TRACKER_COUNT:"UPDATE_TRACKER_COUNT",UPDATE_DOWNLOAD_SCAN_COUNT:"UPDATE_DOWNLOAD_SCAN_COUNT",HIDE_BUBBLE:"HIDE_BUBBLE",SHOW_FIND_SIMILAR_PAGES_BALLOON:"SHOW_FIND_SIMILAR_PAGES_BALLOON",SHOW_SS_EXPERIENCE_BALLOON:"SHOW_SS_EXPERIENCE_BALLOON"},d={PING:0,DISCONNECT_NATIVE:1,ADBLOCK:"ADBLOCK",SET_PROPERTY:3,GET_PROPERTY:4,CLEAR_GTI_CACHE:5,RESET_CRYPTO:6,CLEAN_TYPOSQUATING_WHITELIST:7,CLEAR_TYPOSQUATING_CACHE:8,SHOW_UNUSED_SELECTORS:9,CLEAN_CRYPTO_WHITELIST:10,WB_VIDEO_STATS:11,CLEAN_RAT_WHITELIST:12,CLEAN_RAT_CACHE:13,WB_TELEMETRY:14,REPLACE_TRUSTED_DOMAIN:15,PROFILER_DEBUGGER:16},h={PONG:0},p={ADD_WHITELIST:"ADD_WHITELIST",REMOVE_WHITELIST:"REMOVE_WHITELIST",IS_DISABLED:"IS_DISABLED",AD_BLOCKED:"AD_BLOCKED",TRACKER_BLOCKED:"TRACKER_BLOCKED",TURN_ON:"TURN_ON",TURN_OFF:"TURN_OFF",ADBLOCKER_READY:"ADBLOCKER_READY"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return r})),n.d(t,"i",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"o",(function(){return u})),n.d(t,"n",(function(){return d})),n.d(t,"p",(function(){return h})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return _})),n.d(t,"b",(function(){return m})),n.d(t,"k",(function(){return g})),n.d(t,"j",(function(){return E})),n.d(t,"a",(function(){return f}));const i={GREEN:0,YELLOW:1,RED:2,UNKNOWN:3,HACKERSAFE:4,TYPOSQUATTING:5,PHISHING:6,*[Symbol.iterator](){for(const e of Object.keys(this))"GREEN"!==e&&"HACKERSAFE"!==e&&"UNKNOWN"!==e&&(yield this[e])}},o={UNKNOWN:-1,FIREFOX:1,CHROME:2,EDGE:3},s={BROWSER_TYPE:2,DEBUG_MODE:!1,EXTENSION_VERSION:"8.1.0.436",LOG_LEVEL:0,PPS_MODE:!1,ENGINES_VERSION:"1.0.0.1"},r={GREEN:0,YELLOW:1,RED:2,UNKNOWN:3,HACKERSAFE:4,DISABLED:5},a={RAISE_NEW_TAB_EVENT:3,UPDATE_CACHE_STATS:4},c={[r.GREEN]:"GREEN",[r.YELLOW]:"YELLOW",[r.RED]:"RED",[r.UNKNOWN]:"WHITE",[r.HACKERSAFE]:"HACKERSAFE",[r.DISABLED]:"DISABLED"},l={SMA:"SMA",SS_ACCEPTED:"SS_ACCEPTED"},u={[i.GREEN]:"green",[i.YELLOW]:"yellow",[i.RED]:"red",[i.PHISHING]:"phishing",[i.UNKNOWN]:"unknown",[i.HACKERSAFE]:"green"},d={MINIMAL:15,UNKNOWN:30,MEDIUM:50},h=e=>{const t={};return Object.keys(e).forEach(n=>{t[e[n]]=n}),t},p={FF:"https://sadownload.mcafee.com/products/SA/Win/xpi/searchextension/searchextension.xpi"},_={CH:"https://chrome.google.com/webstore/detail/mcafee%C2%AE-secure-search/enppghjcblldgigemljohkgpcompnjgh",ED:"https://microsoftedge.microsoft.com/addons/detail/dbghilognjpbmkdcpjgodiieiflmlaeb"},m={GTI_CATEGORY_SIDEBAR:[1,2],GTI_CATEGORY_TOAST:[3,4]},g=(e,t)=>Array.from(Array(t+1).keys()).slice(e),E={ADBLOCK:"ADBLOCK",FIND_SIMILAR_PAGES:"FIND_SIMILAR_PAGES"},f={INSTALLED_REJECTED:"installed_rejected",INSTALLED_DISABLED:"installed_disabled",NOT_INSTALLED:"not_installed"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=chrome},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(2),o=n(9),s=n(3),r=n(8),a=n(20);class c{static toGTICategoriesString(e,t=!1){const n=[];for(const i of e){const e=parseInt(i,10);isNaN(e)||a.ResourceManager.getResString(`category_id_${e}_name`,i=>{const o={};if(o.name=i,!t)return n.push(o);a.ResourceManager.getResString(`category_id_${e}_description`,e=>{o.description=e,n.push(o)})})}return n}static browserTypeToString(e=!1){let t="";switch(i.g.BROWSER_TYPE){case 1:t="FF";break;case 2:t="CH";break;case 3:t="ED";break;default:t="UN"}return e?t.toLowerCase():t}static toImagePaths(e){let t="images/browser_action/";switch(e.startsWith("small_")?e:`small_${e}`){case"small_button_green.gif":t+="green";break;case"small_button_yellow.gif":t+="yellow";break;case"small_button_red.gif":t+="red";break;case"small_button_grey.gif":t+="white";break;case"small_button_hs.gif":t+="hackersafe";break;case"small_button_disabled.gif":t+="disabled";break;default:t+=e}return{size16:`${t}_16.png`,size20:`${t}_20.png`,size32:`${t}_32.png`,size40:`${t}_40.png`}}static colorToImagePaths(e){let t="white";switch(e){case i.h.GREEN:t="green";break;case i.h.YELLOW:t="yellow";break;case i.h.RED:t="red";break;case i.h.UNKNOWN:t="white";break;case i.h.HACKERSAFE:t="hackersafe";break;case i.h.DISABLED:t="disabled"}return c.toImagePaths(t)}static toAnnotationImageClass(e){let t="";switch(c.toColor(e)){case i.h.GREEN:t="OK";break;case i.h.RED:t="WARN";break;case i.h.YELLOW:t="INFO";break;case i.h.HACKERSAFE:t="HACKERSAFE";break;case i.h.UNKNOWN:t="UNKNOWN"}return t}static isPhishingURI(e){return e&&e.includes(o.a.PHISHING_CATEGORY)}static getIFrameBlockPageUrl(){return s.a.runtime.getURL("html/iframe_block_page.html")}static toBlockState(e){const t=c.toColor(e);return t!==i.h.RED&&t!==i.h.YELLOW||!c.isPhishingURI(e.cat)?isNaN(t)?i.c.UNKNOWN:t:i.c.PHISHING}static toColor(e){let t=i.h.UNKNOWN;return t=e.rep<i.n.MINIMAL?c.isHackerSafe(e.ufg)?i.h.HACKERSAFE:i.h.GREEN:e.rep<i.n.UNKNOWN?i.h.UNKNOWN:e.rep<i.n.MEDIUM?i.h.YELLOW:i.h.RED,t}static toSiteReportUrl(e){const t=s.a.runtime.getURL("html/site_status_site_report.html");return r.a.PPS_MODE?"#":`${t}?url=${escape(e)}`}static isExtensionUrl(e){if(i.f.CHROME===i.g.BROWSER_TYPE&&e.startsWith(`chrome-extension://${s.a.runtime.id}`)||i.f.EDGE===i.g.BROWSER_TYPE&&e.startsWith(`ms-browser-extension://${s.a.runtime.id}`))return!0;if(i.f.FIREFOX===i.g.BROWSER_TYPE){let t=s.a.i18n.getMessage("@@extension_id");if(!t){const e=s.a.runtime.getURL("images/web_advisor/logo.png").split("/");t=e.length>=3?e[2]:""}return t&&e.startsWith(`moz-extension://${t}`)}return!1}static isHackerSafeUrl(e){return c.isSiteAdvisorUrl(e)||c.isExtensionUrl(e)}static isSiteAdvisorUrl(e){return e.startsWith(`http://${o.a.SITE_ADVISOR_URL}`)||e.startsWith(`https://${o.a.SITE_ADVISOR_URL}`)}static isHackerSafe(e){return 1&e}static isPropertRedirectUrl(e){return c.isPropertyWebURL(e)||e.startsWith("edge://")||e.startsWith("chrome://")}static isProperWebURL(e){return!!(e.startsWith("http://")||e.startsWith("https://")||e.startsWith("ftp://"))}static isSearchEngineResultPage(e,t){return t.some(t=>{for(const n of t.urlre){if(null!==e.match(new RegExp(n,"i")))return!0}return!1})}static getUINumber(e){if(e>=1e4)return"10k+";if(e>=1e3){let t=(e/1e3).toFixed(1);return t="0"===t.substring(2,3)?t.substring(0,1):t,`${t}k+`}return`${e}`}static hasEpochTimeElapsed(e,t){return(new Date).getTime()/1e3>e+t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(3),o=n(1),s=n(2),r=n(4),a=n(12),c=n(14);class l{static handlePromiseMessage(e,t=null){return new Promise((n,o)=>{i.a.runtime.sendMessage(e,e=>{"function"==typeof t?t(n,o,e):((e,t,n)=>{i.a.runtime.lastError&&t(i.a.runtime.lastError.message),e(n)})(n,o,e)})})}static logger(e,t){if(Object(a.f)()!==a.a.NONE){Object(a.e)(e,t,a.d.CONTENT);const n=o.b.LOGGER;i.a.runtime.sendMessage({command:n,message:e,logType:t})}}static logError(e){l.logger(e,a.b.ERROR)}static logInfo(e){l.logger(e,a.b.INFO)}static cacheStore(e,t){const n=o.b.CACHE_STORE;return this.handlePromiseMessage({command:n,action:e,data:t})}static saveLastClickedTime(){const e=o.b.SAVE_CLICK_EVENT_TIME;i.a.runtime.sendMessage({command:e,last_event:Date.now()})}static getLastClickedTime(){const e=o.b.GET_CLICK_EVENT_TIME;return this.handlePromiseMessage({command:e})}static autoRunVideo(e){const t=o.b.AUTO_RUN_VIDEO_SITE;i.a.runtime.sendMessage({command:t,url:e})}static isFrameBlocked(e){const t=o.b.IS_FRAME_BLOCKED;return this.handlePromiseMessage({command:t,url:e})}static makeGTIRequest(e,t,n,i){const s={command:o.b.GTI_REQUEST,url:e,isSecureSearch:t,requestData:n,referer:i};return this.handlePromiseMessage(s)}static executeCommand(e,t){const n=o.b.EXECUTE_COMMAND;i.a.runtime.sendMessage({command:n,commandId:e,params:t})}static focusOrCreateTab(e){const t=o.b.FOCUS_OR_CREATE_TAB;i.a.runtime.sendMessage({command:t,url:e})}static closeTab(){const e=o.b.REMOVE_TAB;i.a.runtime.sendMessage({command:e})}static whitelist(e,t,n){const i=o.b.WHITELIST;return this.handlePromiseMessage({action:e,command:i,type:t,data:n})}static getPopupData(){const e=o.b.GET_POPUP_DATA;return this.handlePromiseMessage({command:e})}static getSettingsData(){const e=o.b.GET_SETTINGS_DATA;return this.handlePromiseMessage({command:e})}static searchAnnotation(e,t){const n=o.b.SEARCH_ANNOTATION;return this.handlePromiseMessage({action:e,data:t,command:n})}static socialMediaAnnotation(e,t){const n=o.b.SOCIAL_MEDIA_ANNOTATION;return this.handlePromiseMessage({action:e,data:t,command:n})}static getBkGlobals(){const e=o.b.GET_BK_GLOBALS;return this.handlePromiseMessage({command:e})}static viewSiteReport(e=null,t=!1){const n=o.b.VIEW_SITE_REPORT;i.a.runtime.sendMessage({command:n,url:e,showInNewTab:t})}static getTypoSquattingData(e){const t=o.b.GET_TYPOSQUATTING_DATA;return this.handlePromiseMessage({command:t,domain:e})}static getPlaceholderText(e){const t=o.b.PLACEHOLDER_TEXT;return this.handlePromiseMessage({command:t,id:e})}static setViewPort(e,t){const n=o.b.SET_VIEWPORT;i.a.runtime.sendMessage({command:n,x:e,y:t})}static sendTelemetry(e){const t=o.b.SEND_TELEMETRY;i.a.runtime.sendMessage({command:t,telemetry:e})}static anyBlockedIframes(e){const t=o.b.ANY_BLOCKED_IFRAMES;return this.handlePromiseMessage({command:t,frameUrls:e})}static anyBlockedCryptoScripts(){const e=o.b.ANY_BLOCKED_CRYPTOSCRIPTS;return this.handlePromiseMessage({command:e})}static updateBrowserAction(e,t=!1){const n=o.b.UPDATE_BROWSER_ACTION;i.a.runtime.sendMessage({details:e,allTabs:t,command:n})}static resetSettings(){const e=o.b.RESET_SETTINGS;i.a.runtime.sendMessage({command:e})}static sendEngineStat(e){i.a.runtime.sendMessage({command:o.b.UPDATE_ENGINE_STATS,engine:e})}static contentHandler(e){const t=o.b.CONTENT_HANDLER;i.a.runtime.sendMessage({command:t,message:e})}static shouldShowToast(){const e=o.b.SHOULD_SHOW_TOAST;return this.handlePromiseMessage({command:e})}static closeToast(e){const t=o.b.CLOSE_TOAST;i.a.runtime.sendMessage({command:t,userConfirmation:e})}static showNPSChecklist(e){const t=o.b.SHOW_NPS_CHECKLIST,n=window.location.href;i.a.runtime.sendMessage({command:t,fromBlockPage:e,location:n})}static updateAdblockWhitelist(e){i.a.runtime.sendMessage({command:e})}static toggleAdblockEngine(e){const t=o.b.TOGGLE_ADBLOCK_ENGINE;i.a.runtime.sendMessage({command:t,enableAdblockEngine:e})}static setTabActionPanelData(e){const t=o.b.SET_TAB_ACTION_PANEL_DATA;i.a.runtime.sendMessage({command:t,data:e})}static getTabData(e={}){const t={command:o.b.GET_TAB_DATA,...e};return this.handlePromiseMessage(t)}static isWhitelisted(e){const t={command:o.b.IS_WHITELISTED,url:e};return this.handlePromiseMessage(t)}static reloadSideBarPanel(){const e=o.b.RELOAD_SIDEBAR_PANEL;i.a.runtime.sendMessage({command:e})}static deleteMaliciousFile(e){const t=o.b.DOWNLOAD_SCANNING_DELETE_FILE;i.a.runtime.sendMessage({command:t,payload:e})}static triggerNextEventForDownloadScanning(){const e=o.b.TRIGGER_NEXT_EVENT_FOR_DOWNLOAD_SCANNING;i.a.runtime.sendMessage({command:e})}static removeFromDownloadScanQueue(){const e=o.b.REMOVE_FROM_DOWNLOAD_SCAN_QUEUE;i.a.runtime.sendMessage({command:e})}static getSEStatus(){const e=c.a.get("SearchExtension"),t=o.b.GET_EXTENSION_STATUS;return this.handlePromiseMessage({command:t,extension_id:e})}static getExtensionStatus(e){if(e)return this.handlePromiseMessage({command:o.b.GET_EXTENSION_STATUS,extension_id:e})}static installSE(){const e=c.a.get("SearchExtension"),t=o.b.INSTALL_EXTENSION,n=s.m[r.a.browserTypeToString()];i.a.runtime.sendMessage({command:t,extension_id:e,redirect_url:n})}static showPermRequestBalloon(){const e=o.b.SHOW_PERM_REQUEST_BALLOON;i.a.runtime.sendMessage({command:e})}static unblockAllIframes(){const e=o.b.UNBLOCK_ALL_IFRAMES;i.a.runtime.sendMessage({command:e})}static showAmazonExtnUpsellToast(e,t,n,s){const r=o.b.SHOW_AMAZON_UPSELL_TOAST,a={category:e,count:t,amazonExtnStatus:n,url:s};i.a.runtime.sendMessage({command:r,payload:a})}static closeAllOtherUpsellComponents(e){const t=o.b.CLOSE_ALL_OTHER_UPSELL_COMPONENTS;i.a.runtime.sendMessage({command:t,payload:e})}static updateUpsellShowingFlag(e,t){const n=o.b.UPDATE_UPSELL_SHOWING_FLAG;i.a.runtime.sendMessage({command:n,upsellCategoryType:e,showing:t})}static getAmazonUpsellCategoryDetails(){const e=o.b.GET_AMAZON_UPSELL_CATEGORY_DETAILS;return this.handlePromiseMessage({command:e})}static updateRatDetectionShowingFlag(e){const t=o.b.UPDATE_RAT_DETECTION_SHOWING_FLAG;i.a.runtime.sendMessage({command:t,showed:e})}static getDomainVisitedDetails(){const e=o.b.GET_DOMAIN_VISITED_DETAILS;return this.handlePromiseMessage({command:e})}static getSearchSuggest(e){const t={command:o.b.SEARCH_SUGGEST,searchTerm:e};return this.handlePromiseMessage(t)}static showSSWelcomeAnnotation(e){const t=o.b.SHOW_SS_WELCOME_ANNOTATION;i.a.runtime.sendMessage({command:t,state:e})}static getNativeValue(e){const t=o.b.GET_VALUES;return this.handlePromiseMessage({command:t,getList:e})}static resetNativeSetting(e){const t=o.b.RESET_NATIVE_SETTING;i.a.runtime.sendMessage({command:t,setting:e})}static blastSearchBase(){const e=o.b.BLAST_SEARCH_BASE;i.a.runtime.sendMessage({command:e})}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s}));const i={SET:"SET",GET:"GET",CLEAR:"CLEAR"},o={BLOCK_PAGE_WHITELIST:"BLOCK_PAGE_WHITELIST",CRYPTO_WHITELIST:"CRYPTO_WHITELIST",TYPOSQUATTING_WHITELIST:"TYPOSQUATTING_WHITELIST",RAT_DETECTION_WHITELIST:"RAT_DETECTION_WHITELIST",POPUP_STATS:"POPUP_STATS",WHITELIST_FLAG:"WHITELIST_FLAG",USER_NATIVE_STATS:"USER_NATIVE_STATS",EXTENSION_LOGGING:"EXTENSION_LOGGING",SEARCH_ANNOTATION_OPTION:"SEARCH_ANNOTATION_OPTION",SMA_FIRST_TIME:"SMA_FIRST_TIME",SOCIAL_MEDIA_ANNOTATION_OPTION:"SOCIAL_MEDIA_ANNOTATION_OPTION",SOCIAL_MEDIA_ANNOTATION_TOGGLE:"SOCIAL_MEDIA_ANNOTATION_TOGGLE",AP_USER_TOGGLE:"AP_USER_TOGGLE",AB_USER_TOGGLE:"AB_USER_TOGGLE",IS_SECURE_SEARCH_SET:"IS_SECURE_SEARCH_SET",USER_ACCEPTED_TOAST_ONCE:"USER_ACCEPTED_TOAST_ONCE",BLOCK_PAGE_RED_FIRST_VARIANT_COUNT:"BLOCK_PAGE_RED_FIRST_VARIANT_COUNT",BLOCK_PAGE_YELLOW_FIRST_VARIANT_COUNT:"BLOCK_PAGE_YELLOW_FIRST_VARIANT_COUNT",BLOCK_PAGE_PHISHING_FIRST_VARIANT_COUNT:"BLOCK_PAGE_PHISHING_FIRST_VARIANT_COUNT",IFRAME_BLOCK_FIRST_TIME:"IFRAME_BLOCK_FIRST_TIME",FIND_SIMILAR_PAGES_TOGGLE:"FIND_SIMILAR_PAGES_TOGGLE",FIND_SIMILAR_PAGES_COUNT:"FIND_SIMILAR_PAGES_COUNT",FIND_SIMILAR_PAGES_LAST_SHOWN:"FIND_SIMILAR_PAGES_LAST_SHOWN",FIND_SIMILAR_PAGES_FIRST_SHOWN:"FIND_SIMILAR_PAGES_FIRST_SHOWN",FIND_SIMILAR_PAGES_SHOPPING_TEXT_VARIANT:"FIND_SIMILAR_PAGES_SHOPPING_TEXT_VARIANT",FIND_SIMILAR_PAGES_NEWS_TEXT_VARIANT:"FIND_SIMILAR_PAGES_NEWS_TEXT_VARIANT",POST_INSTALLATION_PAGE_SHOWED:"POST_INSTALLATION_PAGE_SHOWED",AMAZON_UPSELL_GTI_SHOPPING_SHOWN_COUNT:"AMAZON_UPSELL_GTI_SHOPPING_SHOWN_COUNT",AMAZON_UPSELL_GTI_SHOPPING_LAST_SHOWN:"AMAZON_UPSELL_GTI_SHOPPING_LAST_SHOWN",AMAZON_UPSELL_GTI_SHOPPING_LAST_DOMAIN_SHOWN:"AMAZON_UPSELL_GTI_SHOPPING_LAST_DOMAIN_SHOWN",BLAST_SEARCH_BASE_FIRST_TIME:"BLAST_SEARCH_BASE_FIRST_TIME",ENGINES:"ENGINES",ENGINES_FUTURE_TIME:"ENGINES_FUTURE_TIME",ENGINES_VERSION:"ENGINES_VERSION"},s={CACHE_TYPOQUATTING:"CACHE_TYPOQUATTING",SS_TOAST_ACCEPTED:"SS_TOAST_ACCEPTED",USER_ACCEPTED_ADBLOCK_TOAST:"USER_ACCEPTED_ADBLOCK_TOAST",DOWNLOAD_SCANNING_QUEUE:"DOWNLOAD_SCANNING_QUEUE",RAT_DETECTION_SHOWING:"RAT_DETECTION_SHOWING",SS_WELCOME_OVERLAY_PER_SESSION:"SS_WELCOME_OVERLAY_PER_SESSION",AMAZON_UPSELL_SHOPPING_SHOWING:"AMAZON_UPSELL_SHOPPING_SHOWING"}},function(e,t,n){"use strict";var i=n(3),o=n(6);class s{static set(e,t){const n={};n[e]=t,i.a.storage.local.set(n)}static get(e){return new Promise(t=>i.a.storage.local.get(e,n=>((t,n)=>{let i=n[e];const o=typeof i;"boolean"!==o&&"number"!==o&&(i=i||null),t(i)})(t,n)))}static clear(e){i.a.storage.local.remove(e)}}class r{constructor(){this.tabData=new Map}static getResetValues(){return{adblockDisabled:!1,adsBlocked:0,trackersBlocked:0,actionPanelData:{},blockedIframes:[],cryptoBlockData:null,tabDomainTrusted:!1}}static getDefaultValues(){return{adblockWhitelist:[],...r.getResetValues()}}reset(e){this.update(e,r.getResetValues())}get(e){return this.tabData.get(e)||r.getDefaultValues()}set(e,t){this.tabData.set(e,t)}delete(e){this.tabData.delete(e)}getMap(){return this.tabData}update(e,t){const n=this.get(e);this.set(e,{...n,...t})}setTabBlockPageData(e,t){const n=this.get(e);this.set(e,{...n,blockPageData:t})}addBlockedFrame(e,t){this.get(e).blockedIframes.push(t)}getBlockedFrames(e){return this.get(e).blockedIframes}resetBlockedFrames(e){this.get(e).blockedIframes=[]}}var a=n(2),c=n(9),l=n(19);var u=n(23);n.d(t,"a",(function(){return d}));const d={FFSearchExtensionDownloadUrl:"https://sadownload.mcafee.com/products/SA/Win/xpi/searchextension/searchextension.xpi",uninstallSurveyUrl:"https://www.surveymonkey.com/r/mcafeewebadvisor",postInstallationPage:"https://www.mcafee.com/consumer/v/wa-how.html",listenerManager:null,wssNativeClient:null,firefoxInternalUUID:"",shadowMode:"closed",adblockManager:null,browserAction:null,browserType:a.g.BROWSER_TYPE,cacheStore:new class{constructor(){this.initialized=!1;for(const e of Object.values(o.c))this[e]=null;for(const e of Object.values(o.a))this[e]=null;this.init()}init(){const e=[];for(const t of Object.values(o.c))e.push(s.get(t).then(e=>{const n={};return n.storeVariable=t,n.result=e,n}));Promise.all(e).then(e=>{e.forEach(({storeVariable:e,result:t})=>{const n=typeof t;"boolean"!==n&&"number"!==n&&(t=t||null),this[e]=t}),this.initialized=!0})}isInit(){return new Promise((e,t)=>{this.initialized&&e(!0);let n=0;const i=window.setInterval(()=>{this.initialized?(window.clearInterval(i),e(!0)):10==++n&&(window.clearInterval(i),t(new Error("Cache store took too long to initialize")))},500)})}get(e,t){const n=this[e];return arguments.length<2?n:null==n?t:n}set(e,t){this[e]=t,o.c[e]&&s.set(e,t)}clear(e){void 0!==this[e]&&(this[e]=null,o.c[e]&&s.clear(e))}},ffViewports:null,garbageCollector:new class{constructor(){this.collection=[]}add(e){this.collection.push(e),1===this.collection.length&&this.setCleanUpTimer()}setCleanUpTimer(){setInterval(()=>{this.collection.forEach(e=>{e.checkCache()})},36e5)}},gtiCache:new u.GTICache(a.g),logger:null,messageDispatcher:null,port:null,tabData:new r,tabIdToLastClickTime:new Map,useNativeLogger:!1,wasm:null,userAgentInBase64:null,gtiServer:c.a.GTI_SERVER,typoSquattingServer:c.a.TYPOSQUATTING_SERVER,tldParser:null,cryptoBlacklist:c.b,ratBlacklist:c.c,trustedDomains:c.d,nativeSettings:l.b,searchSuggest:null,searchEngines:null,enginesVersionUrl:c.a.ENGINE_VERSION_URL,engineCheckInterval:864e5,ENGINES_VERSION:a.g.ENGINES_VERSION,WSS_INSTALLED:null,AP_FEATURE_ENABLED:!1,AUTO_PLAY_NOTIFICATION_ENABLED:!1,PPS_MODE:a.g.PPS_MODE,ALLOW_LOCALHOST:!1,RAT_DETECTION_CATEGORIES:[142],AMAZON_EXTN_TRIGGER_CATEGORIES:[136]}},function(e,t,n){"use strict";var i=n(2),o=n(17),s=n(13),r=n(5),a=n(3),c=n(1);n.d(t,"a",(function(){return l}));const l={uid:"0DE9E47C-871A-4F90-8440-B190C216800A",browserType:i.g.BROWSER_TYPE,externalMsgDispatcher:new class{isvalidRequestType(e){let t=!1;for(const n in c.e)c.e[n]===e&&(t=!0);return t}validateMsg(e,t){return!(void 0===e||void 0===t||!this.isvalidRequestType(e))||(r.a.logError("Invalid msg to be sent externally"),!1)}sendExtnMsg(e,t,n){const{request_type:i,payload:o}=t;if(!this.validateMsg(i,o))return;return new Promise((i,o)=>{a.a.runtime.sendMessage(e,t,e=>{"function"==typeof n?n(i,o,e):((e,t,n)=>{a.a.runtime.lastError&&t(a.a.runtime.lastError.message),e(n)})(i,o,e)})})}},reputationReqCount:5,imageCounter:0,isSearchPage:!1,isSearchHitSend:!1,resourceRequestor:null,gtiRequestor:null,clientFunctions:null,activeURI:null,mapSelectors:null,eventHandler:null,bkGlobals:null,searchEngine:null,searchAnnotationOption:s.a.ONLY_SECURE_SEARCH,socialMediaOption:o.c.NONE,socialMediaToggle:!1,hasReportPage:!0,PPS_MODE:i.g.PPS_MODE,ssExperienceDetected:!1}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return r}));const i={MAX_CACHE_RECORDS:1e3,MAX_RESERVED_CALLBACK_ID:5,PHISHING_CATEGORY:169,SITE_ADVISOR_URL:"www.siteadvisor.com/",GTI_SERVER:"https://webadvisorc.rest.gti.mcafee.com/1",TYPOSQUATTING_SERVER:"https://mip.api.mcafeewebadvisor.com/v1/typosquatting?",ENGINE_VERSION_URL:"https://sadownload.mcafee.com/products/SA/Win/extensions/engines/update.json"},o=new Set(["www.mcafee.com"]),s=["wss://*.gasolina.ml/*","*://kissdoujin.com/Content/js/c-hive.js*","wss://*.sen-to-zdrowie.ml/*","*://cookiescript.info/libs/*","*://rocks.io/assets/*","*://coin-have.com/c/*","*://coinnebula.com/lib/*","wss://*.coin-have.com/","ws://digger.cryptobara.com/*","ws://*.webminepool.tk/*","*://*.lewd.ninja/static/m.js*","*://tokyodrift.ga/dropyoulike/a-o/*","*://*.2giga.link/hive/lib/*","*://papoto.com/lib/*","*://load.jsecoin.com/*","ws://*.1q2w3.fun/*","*://*/*plugins/ajcryptominer/assets/*","*://monerominer.rocks/miner.php*","*://minemytraffic.com/*","*://*.monerise.com/core/*","*://*.cookiescript.info/libs/*","ws://hive.tubetitties.com/*","wss://*.freecontent.racing/*","wss://*.hodling.faith/*","ws://gtg02.bestsecurepractice.com/proxy","*://cryptoloot.pro/lib/*","*://lmodr.biz/*","*://*.webminepool.com/lib/base.js","ws://*.sen-to-zdrowie.ml/*","ws://*.morningdigit.com/*","*://mine.nahnoji.cz/*","*://*.minescripts.info/*","*://jsecoin.com/server*","*://coinhive.com/lib*","wss://*.webminepool.tk/*","ws://*.monerise.com/proxy/*","*://kisshentai.net/Content/js/c-hive.js*","*://mataharirama.xyz/*","*://*.coinpirate.cf/*","ws://*.playerassets.info/*","wss://*.1q2w3.fun/*","*://*.1q2w3.fun/*","*://anime.reactor.cc/js/ch/cryptonight.wasm*","*://webmine.cz/miner*","wss://ws.l33tsite.info/*","*://coinhive.com/captcha*","wss://www.mutuza.win/proxy","*://*.morningdigit.com/*","ws://*.host.d-ns.ga/*","*://*.doubleclick5.xyz/*","*://miner.pr0gramm.com/xmr.min.js*","*://*.freecontent.bid/*","ws://lewd.ninja/comics/*","wss://*.monerise.com:9333/proxy/*","*://*.webminepool.com/lib/captcha.js","*://coinerra.com/lib/*","*://*.playerassets.info/*","wss://*.webmine.pro/*","wss://lewd.ninja/comics/*","*://*.doubleclick1.xyz/*","ws://*.freecontent.racing/*","*://*.googleanalytcs.com/*","wss://*.coinnebula.com/proxy*","ws://*.monerise.com:9333/proxy/*","ws://*.freecontent.loan/*","*://party-nngvitbizn.now.sh/*","wss://api.l33tsite.info/*","*://coinlab.biz/lib/coinlab.js*","wss://*.monerise.com/proxy/*","ws://www.mutuza.win/proxy","*://jscdndel.com/content/vidm.min.js*","*://listat.biz/*","*://minecrunch.co/web/*","ws://*.chainblock.science/*","*://baiduccdn1.com/lib/*","*://*.mutuza.win/worker.js","*://*.load.jsecoin.com/*","*://ppoi.org/lib/*","wss://*.chainblock.science/*","wss://*.crypto-loot.com/proxy*","wss://gtg02.bestsecurepractice.com/proxy","wss://*.coinhive.com/proxy*","*://coin-hive.com/captcha*","*://jsccnn.com/content/vidm.min.js*","*://monerominer.rocks/scripts/miner.js*","*://*.jsecoin.com/server*","*://server.jsecoin.com/*","wss://*.coin-hive.com/proxy*","*://*.doubleclick4.xyz/*","*://miner.cryptobara.com/client/*","*://*.rocks.io/assets/*","*://*.ppoi.org/lib/*","*://you.tubetitties.com/worker.js*","wss://*.googleanalytcs.com/*","wss://hive.tubetitties.com/*","*://static.reasedoper.pw/*","*://*.ppoi.org/token/*","ws://*.webmine.pro/*","*://you.tubetitties.com/hash.wasm*","*://*.doubleclick3.xyz/*","*://*.turnsocial.com/m.js","ws://*.hodling.faith/*","wss://*.morningdigit.com/*","*://*.ad-miner.com/lib/*","wss://*.2giga.link/wproxy*","ws://*.googleanalytcs.com/*","*://*.doubleclick6.xyz/*","ws://turnsocial.now.sh/*","*://cdn.cloudcoins.co/javascript/cloudcoins.min.js*","*://joyreactor.cc/ws/ch/*","*://minero.pw/miner.min.js*","*://*.webmine.pro/*","*://punchsub.net/chm.js","wss://mine.nahnoji.cz/*","wss://mine.torrent.pw/*","*://*.mutuza.win/lib/*","*://*.kickass.cd/power2/m.js","ws://*.cpu2cash.link/*","*://*.server.jsecoin.com/*","*://*.mutuza.win/processor.js","wss://turnsocial.now.sh/*","*://kiwifarms.net/js/Jawsh/xmr/xmr.min.js*","*://*.rocks.io/proxy*","*://crypto-loot.com/lib*","*://*.chmproxy.bid/lib/*","ws://*.gasolina.ml/*","*://*.stackpathdns.com/assets/javascript/cr.js","*://*.coinblind.com/lib/*","*://miner.pr0gramm.com/pm.min.js*","*://*.bewhoyouare.gq/*","wss://*.zlx.com.br/proxy*","*://a-o.ninja/apk-AO/kingofthenorth/*","*://ad-miner.com/lib/*","*://*.webminepool.com/api/*","*://*.cpu2cash.link/*","*://*.hemnes.win/*","wss://*.cpu2cash.link/*","ws://*.coinpirate.cf/*","ws://ws.l33tsite.info/*","*://digger.cryptobara.com/client/*","*://kickass.cd/m.js*","ws://*.zlx.com.br/proxy*","*://*.doubleclick2.xyz/*","*://*.amazonaws.com/doubleclick13/*","wss://*.freecontent.loan/*","*://*.host.d-ns.ga/*","*://*.candid.zone/youtube.com/*","ws://api.l33tsite.info/*","*://gtg2.bestsecurepractice.com/lib/*","wss://*.host.d-ns.ga/*","*://coin-hive.com/lib*","ws://mine.nahnoji.cz/*","wss://*.playerassets.info/*","*://*.afminer.com/code/*","wss://*.coinpirate.cf/*","*://cookiescriptcdn.pro/libs/*","*://*.goredirect.party/assets/*","*://*.ZLX.COM.BR/assets/min.js*","*://*.ZLX.COM.BR/assets/playermon.js*","*://p.hemnes.win/lib/*","*://gtg02.bestsecurepractice.com/proxy2/*","*://gtg02.bestsecurepractice.com/meri.js","*://gtg02.bestsecurepractice.com/lv.js","*://gtg02.bestsecurepractice.com/worker.js","*://gtg02.bestsecurepractice.com/processor.js","*://gtg02.bestsecurepractice.com/demo.html","*://*.turnsocial.com/c.wasm*","*://*.turnsocial.com/m.js*","*://cdn.minescripts.info/c/*","*://tokyodrift.ga/dropyoulike/backup/c.wasm*","*://punchsub.net/chm2.js","*://*.kickass.cd/webmr4.js","*://*.kickass.cd/m.js","wss://*.authedmine.com/proxy"],r=["www.beyondtrust.com","www.beamyourscreen.com","www.connectwise.com","get.gotoassist.com","fastsupport.gotoassist.com","www.join.me","www.mikogo.com","www.mikogo.de","www.noip.com","www.securelink.com","join.zoho.com"]},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i=n(5),o=n(24);class s{constructor(t=null,n=document){if(this.resourcerequestor=new o.a,this.document=n,t){const n=e(`#${t}`);n&&(this.document=n[0].contentDocument)}}localeData(e,t=[]){return this.resourcerequestor.geti18nRes(e,t)}fillText(e,t){const n=this.document.getElementById(e);if(n){const e=n.getAttribute("x-mcinsertposition");if(e)return void n.insertAdjacentText(e,t);n.textContent=t}}fillLocalizedTexts(){for(const{id:e}of this.document.querySelectorAll("*[x-mclocalizedtext]")){const t=this.localeData(e);if(null==t)return!1;this.fillText(e,t)}return!0}fillInputPlaceHolders(){for(const{id:e}of this.document.querySelectorAll("*[x-inputplaceholder]")){const t=this.localeData(e),n=this.document.getElementById(e);if(null==t)return!1;null!=n&&n.setAttribute("placeholder",t)}return!0}fillPlaceHolderInternal(e){i.a.getPlaceholderText(e).then(t=>{this.fillText(e,t.text)}).catch(()=>{})}fillPlaceHolders(){for(const{id:e}of this.document.querySelectorAll("*[x-mcplaceholder]"))this.fillPlaceHolderInternal(e);return!0}init(){this.fillLocalizedTexts(),this.fillPlaceHolders(),this.fillInputPlaceHolders()}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return c}));var i=n(0),o=n(13),s=n(7),r=n(5),a=n(29);class c{static sendTelemetryMessages(t,n){const a=n.trigger.sendTelemetry||!1,c=n.trigger.action,l=[i.m.ACTION.CLICK],u=e=>{n.messages.forEach(n=>{const s=Object.assign({},n.template),r=a&&(void 0===s.count||0!==s.count);let u=l.includes(c);if(c===i.m.ACTION.KEYDOWN&&t.whitelistedKeys){const n=e.keyCode;u=t.whitelistedKeys.includes(n)}if(t.hasCheckBox)if(n.template.name===i.e.ADBLOCK.WHITELISTED)s.interaction_type=t.containerMeta.query(".adblock-switch").attr("checked")?i.h.ADBLOCK.UNWHITELISTED:i.h.ADBLOCK.WHITELISTED;else if(!n.template.action_type){const e=t.toastData.providerId===o.c.YAHOO?t.containerMeta.query(".toast_content__checkbox > input").prop(i.m.MISC.CHECKED)?i.m.MISC.ACCEPTED:i.m.MISC.DECLINED:i.m.MISC.ACCEPTED;s.action_type=e}(r||u)&&d(t.isFromBackground||!1,s)})},d=(e,t)=>{e?s.a.messageDispatcher.sendTelemetry(JSON.stringify(t)):r.a.sendTelemetry(JSON.stringify(t))};n.trigger.selector&&n.trigger.action?t.containerMeta?t.containerMeta.query(n.trigger.selector).eq(0).on(n.trigger.action,u):e(document).ready(()=>e(n.trigger.selector).eq(0).on(n.trigger.action,u)):(a||a&&n.trigger.state&&n.trigger.state===t.state)&&u()}static handle(e){new a.a(e).fetchTelemetryHandlers(e.identifier).forEach(t=>{this.sendTelemetryMessages(e,t)})}}}).call(this,n(18))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h}));var i=n(7),o=n(2),s=n(6);const r={NONE:0,INFO:1,ERROR:2,ALL:3},a={INFO:1,ERROR:2},c={BACKGROUND:"BACKGROUND",CONTENT:"CONTENT",TELEMETRY:"TELEMETRY"},l={DEFAULT:"color: #000000; font-weight: normal; font-style:normal; background: #FFFFFF;",BACKGROUND:"color: #8D0DBA; font-weight: bold; background: #FFFFFF;",CONTENT:"color: #F54A26; font-weight: bold; background: #FFFFFF;",TELEMETRY:"color: #147831; font-weight: bold; background: #FFFFFF;"};class u{constructor(){this.nativeLogging=!1,this.browserType=o.g.BROWSER_TYPE,this.extensionType="wa"}setNativeLogging(e){i.a.useNativeLogger=e,this.nativeLogging=e}processLog(e,t,n){if(this.nativeLogging){const o={processType:t,browserType:this.browserType,extensionType:this.extensionType,logType:n,message:e};i.a.messageDispatcher.logger(o)}d(e,n,t)}log(e,t=c.BACKGROUND){this.processLog(e,t,r.INFO)}error(e,t=c.BACKGROUND){this.processLog(e,t,r.ERROR)}}const d=(e,t,n)=>{const i=h(),o=`%c[${n} - ${(new Date).toLocaleString()}]: %c${e}`,s=l.DEFAULT,c=l[n];i!==r.NONE&&(t!==a.ERROR||i!==r.ERROR&&i!==r.ALL||console.error(o,s,s),t!==a.INFO||i!==r.INFO&&i!==r.ALL||console.log(o,c,s))},h=()=>{const e=o.g.LOG_LEVEL,t=i.a.cacheStore.get(s.c.EXTENSION_LOGGING,null);return t&&Number.isInteger(t)&&Object.values(r).includes(t)?t:e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return r}));const i={GET:"GET",SET:"SET"},o={NONE:"NONE",ONLY_SECURE_SEARCH:"ONLY_SECURE_SEARCH",ALL:"ALL"},s={UNKNOWN:0,GOOGLE:1,YAHOO:2,AOL:3,ASK:4,UOL:5,GOO:6,MYWAY:7,TERRA:8,WEB:9,BIGLOBE:10,GMX:11,EXCITE:12,SKY:13,NAVER:14,NIFTY:15,RAKUTEN:16,IXQUICK:17,XFINITY:18,SOGOU:19,DOGPILE:20,SEARCH:21,WEBCRAWLER:22,BING:23,INFO:24,YANDEX:25,YIPPY:26,WOW:27,HAOSO:28,DUCKDUCKGO:30,ONESEARCH:31,LINKEDIN:100,FACEBOOK:101,YOUTUBE:102,INSTAGRAM:103,REDDIT:104,TWITTER:105},r={SHOPPING:{name:"shopping",variants:3},NEWS:{name:"news",variants:2},SEARCH:{name:"search",variants:1},COOKING:{name:"cooking",variants:1},STREAMING:{name:"streaming",variants:1},TRAVEL:{name:"travel",variants:1}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(2);const o={[i.f.CHROME]:{WebBoost:"klekeajafkkpokaofllcadenjdckhinm",SearchExtension:"enppghjcblldgigemljohkgpcompnjgh",NewTabExtension:"kanjcmmieblbpbihaafnedamppkhfadn",AutomationExtension:"bipjijaejfebbgbhchciejpabkhgpegh"},[i.f.FIREFOX]:{SearchExtension:"{DFC8025B-FC38-42B1-9E3A-DFA474F33D93}",AutomationExtension:"{B1BC313F-0344-4FAF-95F0-F7D121EF6D6F}"},[i.f.EDGE]:{}},s={[i.f.CHROME]:{AmazonAssistant:"pbjikboenpfhbbejgkoklgkhjpfogcam"}},r=o[i.g.BROWSER_TYPE],a=s[i.g.BROWSER_TYPE];class c{static isWhiteListed(e){return r&&Object.values(r).includes(e)}static isWhiteListedLimited(e){return a&&Object.values(a).includes(e)}static get(e){return a&&a[e]?a[e]:r[e]}static getExtnIds(){return Object.values(r)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{constructor(){this.tlds=null,this.getTlds()}getTlds(){fetch("https://publicsuffix.org/list/public_suffix_list.dat").then(e=>e.ok?e.text():null).then(e=>{const t=i.parseTLDData(e);this.tlds=t}).catch(()=>null)}static parseTLDData(e){const t={};if(!e)return null;const n=e.split(/\n/);for(let e=0;e<n.length;e+=1){let i=n[e];if(!i)continue;const o=i.indexOf("//");if(0===o)continue;o>0&&(i=i.substring(0,o));const s=i.replace(/^(\s|!|\*\.)/g,"");let r=(i.match(/\./g)||[]).length+1;r-=i.startsWith("!")?1:0,t[s]=r}return 0===Object.keys(t).length&&t.constructor===Object?null:t}parse(e){const t={hostname:"",subdomain:"",domain:"",domainOnly:"",suffix:""},n=new URL(e);if(!this.tlds||!n)return t;const{origin:i}=n,o=i.split(".");let s="",r=1;for(let e=o.length-1;e>=0;e-=1){const t=o[e];if(s=s?`${t}.${s}`:t,!this.tlds[s])break;r=this.tlds[s]}return o.length<=r?t:(t.subdomain=o.slice(0,-r-1).join("."),t.domain=o.slice(-r-1).join("."),t.domainOnly=o.slice(-r-1,-r).join("."),t.suffix=o.slice(-r).join("."),t.hostname=n.hostname,t)}static getURI(e){let t=e.split("?");return t.length>1?t[0]:(t=e.split("#"),t.length>1?t[0]:e)}static getCleanURI(e){let t=e;return t.endsWith("/")&&(t=t.slice(0,-1)),t.startsWith("http://")?t=t.slice(7):t.startsWith("https://")&&(t=t.slice(8)),this.getURI(t)}static getParam(e,t){const n=e.indexOf("?");if(-1===n)return null;const i=e.substring(n+1).split("&");for(let e=0;e<i.length;++e){const n=i[e].indexOf("=");if(-1!==n&&i[e].substring(0,n)===t){return i[e].substring(n+1)}}return null}static getDomain(e){if(void 0===e||!/^https?:\/\//.test(e))return"";return new URL(e).hostname}static decodeQueryParam(e){return decodeURIComponent(e.replace(/\+/g," "))}}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r}));var i=n(6);const o={BLOCK_PAGE:"BLOCK_PAGE",CRYPTOJACKING:"CRYPTOJACKING",TYPOSQUATTING:"TYPOSQUATTING",IFRAME:"IFRAME",RAT_DETECTION:"RAT_DETECTION"},s={BLOCK_PAGE:i.c.BLOCK_PAGE_WHITELIST,CRYPTOJACKING:i.c.CRYPTO_WHITELIST,TYPOSQUATTING:i.c.TYPOSQUATTING_WHITELIST,IFRAME:i.c.BLOCK_PAGE_WHITELIST,RAT_DETECTION:i.c.RAT_DETECTION_WHITELIST},r={ADD:"ADD",GET:"GET",REMOVE:"REMOVE",CLEAR:"CLEAR"}},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));const i={NONE:0,LINKEDIN:1,INSTAGRAM:2,YOUTUBE:4,FACEBOOK:8,TWITTER:16,REDDIT:32},o=Object.values(i).reduce((e,t)=>e+t),s={TOGGLE_ON:"TOGGLE_ON",TOGGLE_OFF:"TOGGLE_OFF",ANNOTATION_ENABLE_ALL:"ANNOTATION_ENABLE_ALL",ANNOTATION_DISABLE_ALL:"ANNOTATION_DISABLE_ALL",ANNOTATION_ENABLE:"ANNOTATION_ENABLE",ANNOTATION_DISABLE:"ANNOTATION_DISABLE",GET:"GET"}},function(e,t,n){var i;
/*!
 * jQuery JavaScript Library v3.5.0
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2020-04-10T15:07Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(n,o){"use strict";var s=[],r=Object.getPrototypeOf,a=s.slice,c=s.flat?function(e){return s.flat.call(e)}:function(e){return s.concat.apply([],e)},l=s.push,u=s.indexOf,d={},h=d.toString,p=d.hasOwnProperty,_=p.toString,m=_.call(Object),g={},E=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},f=function(e){return null!=e&&e===e.window},T=n.document,S={type:!0,src:!0,nonce:!0,noModule:!0};function A(e,t,n){var i,o,s=(n=n||T).createElement("script");if(s.text=e,t)for(i in S)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,o);n.head.appendChild(s).parentNode.removeChild(s)}function O(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var N=function(e,t){return new N.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=O(e);return!E(e)&&!f(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}N.fn=N.prototype={jquery:"3.5.0",constructor:N,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=N.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return N.each(this,e)},map:function(e){return this.pushStack(N.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(N.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(N.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:s.sort,splice:s.splice},N.extend=N.fn.extend=function(){var e,t,n,i,o,s,r=arguments[0]||{},a=1,c=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[a]||{},a++),"object"==typeof r||E(r)||(r={}),a===c&&(r=this,a--);a<c;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&r!==i&&(l&&i&&(N.isPlainObject(i)||(o=Array.isArray(i)))?(n=r[t],s=o&&!Array.isArray(n)?[]:o||N.isPlainObject(n)?n:{},o=!1,r[t]=N.extend(l,s,i)):void 0!==i&&(r[t]=i));return r},N.extend({expando:"jQuery"+("3.5.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=r(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&_.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){A(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?N.merge(n,"string"==typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,s=e.length,r=!n;o<s;o++)!t(e[o],o)!==r&&i.push(e[o]);return i},map:function(e,t,n){var i,o,s=0,r=[];if(C(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&r.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&r.push(o);return c(r)},guid:1,support:g}),"function"==typeof Symbol&&(N.fn[Symbol.iterator]=s[Symbol.iterator]),N.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var b=
/*!
 * Sizzle CSS Selector Engine v2.3.5
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2020-03-14
 */
function(e){var t,n,i,o,s,r,a,c,l,u,d,h,p,_,m,g,E,f,T,S="sizzle"+1*new Date,A=e.document,O=0,N=0,C=ce(),b=ce(),I=ce(),y=ce(),L=function(e,t){return e===t&&(d=!0),0},v={}.hasOwnProperty,R=[],w=R.pop,D=R.push,P=R.push,k=R.slice,x=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",U="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",G="\\["+M+"*("+U+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+M+"*\\]",H=":("+U+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",F=new RegExp(M+"+","g"),W=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),K=new RegExp("^"+M+"*,"+M+"*"),q=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),j=new RegExp(M+"|>"),$=new RegExp(H),Y=new RegExp("^"+U+"$"),V={ID:new RegExp("^#("+U+")"),CLASS:new RegExp("^\\.("+U+")"),TAG:new RegExp("^("+U+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},z=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},se=function(){h()},re=Se((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(R=k.call(A.childNodes),A.childNodes),R[A.childNodes.length].nodeType}catch(e){P={apply:R.length?function(e,t){D.apply(e,k.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,o){var s,a,l,u,d,_,E,f=t&&t.ownerDocument,A=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==A&&9!==A&&11!==A)return i;if(!o&&(h(t),t=t||p,m)){if(11!==A&&(d=Z.exec(e)))if(s=d[1]){if(9===A){if(!(l=t.getElementById(s)))return i;if(l.id===s)return i.push(l),i}else if(f&&(l=f.getElementById(s))&&T(t,l)&&l.id===s)return i.push(l),i}else{if(d[2])return P.apply(i,t.getElementsByTagName(e)),i;if((s=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(i,t.getElementsByClassName(s)),i}if(n.qsa&&!y[e+" "]&&(!g||!g.test(e))&&(1!==A||"object"!==t.nodeName.toLowerCase())){if(E=e,f=t,1===A&&(j.test(e)||q.test(e))){for((f=ee.test(e)&&Ee(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,oe):t.setAttribute("id",u=S)),a=(_=r(e)).length;a--;)_[a]=(u?"#"+u:":scope")+" "+Te(_[a]);E=_.join(",")}try{return P.apply(i,f.querySelectorAll(E)),i}catch(t){y(e,!0)}finally{u===S&&t.removeAttribute("id")}}}return c(e.replace(W,"$1"),t,i,o)}function ce(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function le(e){return e[S]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function he(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function _e(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function me(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return le((function(t){return t=+t,le((function(n,i){for(var o,s=e([],n.length,t),r=s.length;r--;)n[o=s[r]]&&(n[o]=!(i[o]=n[o]))}))}))}function Ee(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},s=ae.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!z.test(t||n&&n.nodeName||"HTML")},h=ae.setDocument=function(e){var t,o,r=e?e.ownerDocument||e:A;return r!=p&&9===r.nodeType&&r.documentElement?(_=(p=r).documentElement,m=!s(p),A!=p&&(o=p.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",se,!1):o.attachEvent&&o.attachEvent("onunload",se)),n.scope=ue((function(e){return _.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=ue((function(e){return _.appendChild(e).id=S,!p.getElementsByName||!p.getElementsByName(S).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,o,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(o=t.getElementsByName(e),i=0;s=o[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[o++];)1===n.nodeType&&i.push(n);return i}return s},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},E=[],g=[],(n.qsa=Q.test(p.querySelectorAll))&&(ue((function(e){var t;_.appendChild(e).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+M+"*(?:value|"+B+")"),e.querySelectorAll("[id~="+S+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),_.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=Q.test(f=_.matches||_.webkitMatchesSelector||_.mozMatchesSelector||_.oMatchesSelector||_.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=f.call(e,"*"),f.call(e,"[s!='']:x"),E.push("!=",H)})),g=g.length&&new RegExp(g.join("|")),E=E.length&&new RegExp(E.join("|")),t=Q.test(_.compareDocumentPosition),T=t||Q.test(_.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==A&&T(A,e)?-1:t==p||t.ownerDocument==A&&T(A,t)?1:u?x(u,e)-x(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,r=[e],a=[t];if(!o||!s)return e==p?-1:t==p?1:o?-1:s?1:u?x(u,e)-x(u,t):0;if(o===s)return he(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?he(r[i],a[i]):r[i]==A?-1:a[i]==A?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(h(e),n.matchesSelector&&m&&!y[t+" "]&&(!E||!E.test(t))&&(!g||!g.test(t)))try{var i=f.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){y(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&h(e),T(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&h(e);var o=i.attrHandle[t.toLowerCase()],s=o&&v.call(i.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==s?s:n.attributes||!m?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,s=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(L),d){for(;t=e[s++];)t===e[s]&&(o=i.push(s));for(;o--;)e.splice(i[o],1)}return u=null,e},o=ae.getText=function(e){var t,n="",i=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(i=ae.selectors={cacheLength:50,createPseudo:le,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&$.test(n)&&(t=r(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var o=ae.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(F," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var s="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,h,p,_,m=s!==r?"nextSibling":"previousSibling",g=t.parentNode,E=a&&t.nodeName.toLowerCase(),f=!c&&!a,T=!1;if(g){if(s){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===E:1===h.nodeType)return!1;_=m="only"===e&&!_&&"nextSibling"}return!0}if(_=[r?g.firstChild:g.lastChild],r&&f){for(T=(p=(l=(u=(d=(h=g)[S]||(h[S]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===O&&l[1])&&l[2],h=p&&g.childNodes[p];h=++p&&h&&h[m]||(T=p=0)||_.pop();)if(1===h.nodeType&&++T&&h===t){u[e]=[O,p,T];break}}else if(f&&(T=p=(l=(u=(d=(h=t)[S]||(h[S]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===O&&l[1]),!1===T)for(;(h=++p&&h&&h[m]||(T=p=0)||_.pop())&&((a?h.nodeName.toLowerCase()!==E:1!==h.nodeType)||!++T||(f&&((u=(d=h[S]||(h[S]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[O,T]),h!==t)););return(T-=o)===i||T%i==0&&T/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[S]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var i,s=o(e,t),r=s.length;r--;)e[i=x(e,s[r])]=!(n[i]=s[r])})):function(e){return o(e,0,n)}):o}},pseudos:{not:le((function(e){var t=[],n=[],i=a(e.replace(W,"$1"));return i[S]?le((function(e,t,n,o){for(var s,r=i(e,null,o,[]),a=e.length;a--;)(s=r[a])&&(e[a]=!(t[a]=s))})):function(e,o,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}})),has:le((function(e){return function(t){return ae(e,t).length>0}})),contains:le((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:le((function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===_},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:me(!1),disabled:me(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return X.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ge((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=_e(t);function fe(){}function Te(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function Se(e,t,n){var i=t.dir,o=t.next,s=o||i,r=n&&"parentNode"===s,a=N++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||r)return e(t,n,o);return!1}:function(t,n,c){var l,u,d,h=[O,a];if(c){for(;t=t[i];)if((1===t.nodeType||r)&&e(t,n,c))return!0}else for(;t=t[i];)if(1===t.nodeType||r)if(u=(d=t[S]||(t[S]={}))[t.uniqueID]||(d[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((l=u[s])&&l[0]===O&&l[1]===a)return h[2]=l[2];if(u[s]=h,h[2]=e(t,n,c))return!0}return!1}}function Ae(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function Oe(e,t,n,i,o){for(var s,r=[],a=0,c=e.length,l=null!=t;a<c;a++)(s=e[a])&&(n&&!n(s,i,o)||(r.push(s),l&&t.push(a)));return r}function Ne(e,t,n,i,o,s){return i&&!i[S]&&(i=Ne(i)),o&&!o[S]&&(o=Ne(o,s)),le((function(s,r,a,c){var l,u,d,h=[],p=[],_=r.length,m=s||function(e,t,n){for(var i=0,o=t.length;i<o;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!s&&t?m:Oe(m,h,e,a,c),E=n?o||(s?e:_||i)?[]:r:g;if(n&&n(g,E,a,c),i)for(l=Oe(E,p),i(l,[],a,c),u=l.length;u--;)(d=l[u])&&(E[p[u]]=!(g[p[u]]=d));if(s){if(o||e){if(o){for(l=[],u=E.length;u--;)(d=E[u])&&l.push(g[u]=d);o(null,E=[],l,c)}for(u=E.length;u--;)(d=E[u])&&(l=o?x(s,d):h[u])>-1&&(s[l]=!(r[l]=d))}}else E=Oe(E===r?E.splice(_,E.length):E),o?o(null,r,E,c):P.apply(r,E)}))}function Ce(e){for(var t,n,o,s=e.length,r=i.relative[e[0].type],a=r||i.relative[" "],c=r?1:0,u=Se((function(e){return e===t}),a,!0),d=Se((function(e){return x(t,e)>-1}),a,!0),h=[function(e,n,i){var o=!r&&(i||n!==l)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,o}];c<s;c++)if(n=i.relative[e[c].type])h=[Se(Ae(h),n)];else{if((n=i.filter[e[c].type].apply(null,e[c].matches))[S]){for(o=++c;o<s&&!i.relative[e[o].type];o++);return Ne(c>1&&Ae(h),c>1&&Te(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(W,"$1"),n,c<o&&Ce(e.slice(c,o)),o<s&&Ce(e=e.slice(o)),o<s&&Te(e))}h.push(n)}return Ae(h)}return fe.prototype=i.filters=i.pseudos,i.setFilters=new fe,r=ae.tokenize=function(e,t){var n,o,s,r,a,c,l,u=b[e+" "];if(u)return t?0:u.slice(0);for(a=e,c=[],l=i.preFilter;a;){for(r in n&&!(o=K.exec(a))||(o&&(a=a.slice(o[0].length)||a),c.push(s=[])),n=!1,(o=q.exec(a))&&(n=o.shift(),s.push({value:n,type:o[0].replace(W," ")}),a=a.slice(n.length)),i.filter)!(o=V[r].exec(a))||l[r]&&!(o=l[r](o))||(n=o.shift(),s.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):b(e,c).slice(0)},a=ae.compile=function(e,t){var n,o=[],s=[],a=I[e+" "];if(!a){for(t||(t=r(e)),n=t.length;n--;)(a=Ce(t[n]))[S]?o.push(a):s.push(a);(a=I(e,function(e,t){var n=t.length>0,o=e.length>0,s=function(s,r,a,c,u){var d,_,g,E=0,f="0",T=s&&[],S=[],A=l,N=s||o&&i.find.TAG("*",u),C=O+=null==A?1:Math.random()||.1,b=N.length;for(u&&(l=r==p||r||u);f!==b&&null!=(d=N[f]);f++){if(o&&d){for(_=0,r||d.ownerDocument==p||(h(d),a=!m);g=e[_++];)if(g(d,r||p,a)){c.push(d);break}u&&(O=C)}n&&((d=!g&&d)&&E--,s&&T.push(d))}if(E+=f,n&&f!==E){for(_=0;g=t[_++];)g(T,S,r,a);if(s){if(E>0)for(;f--;)T[f]||S[f]||(S[f]=w.call(c));S=Oe(S)}P.apply(c,S),u&&!s&&S.length>0&&E+t.length>1&&ae.uniqueSort(c)}return u&&(O=C,l=A),T};return n?le(s):s}(s,o))).selector=e}return a},c=ae.select=function(e,t,n,o){var s,c,l,u,d,h="function"==typeof e&&e,p=!o&&r(e=h.selector||e);if(n=n||[],1===p.length){if((c=p[0]=p[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===t.nodeType&&m&&i.relative[c[1].type]){if(!(t=(i.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(c.shift().value.length)}for(s=V.needsContext.test(e)?0:c.length;s--&&(l=c[s],!i.relative[u=l.type]);)if((d=i.find[u])&&(o=d(l.matches[0].replace(te,ne),ee.test(c[0].type)&&Ee(t.parentNode)||t))){if(c.splice(s,1),!(e=o.length&&Te(c)))return P.apply(n,o),n;break}}return(h||a(e,p))(o,t,!m,n,!t||ee.test(e)&&Ee(t.parentNode)||t),n},n.sortStable=S.split("").sort(L).join("")===S,n.detectDuplicates=!!d,h(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(B,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(n);N.find=b,N.expr=b.selectors,N.expr[":"]=N.expr.pseudos,N.uniqueSort=N.unique=b.uniqueSort,N.text=b.getText,N.isXMLDoc=b.isXML,N.contains=b.contains,N.escapeSelector=b.escape;var I=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&N(e).is(n))break;i.push(e)}return i},y=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},L=N.expr.match.needsContext;function v(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var R=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function w(e,t,n){return E(t)?N.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?N.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?N.grep(e,(function(e){return u.call(t,e)>-1!==n})):N.filter(t,e,n)}N.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?N.find.matchesSelector(i,e)?[i]:[]:N.find.matches(e,N.grep(t,(function(e){return 1===e.nodeType})))},N.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(N(e).filter((function(){for(t=0;t<i;t++)if(N.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)N.find(e,o[t],n);return i>1?N.uniqueSort(n):n},filter:function(e){return this.pushStack(w(this,e||[],!1))},not:function(e){return this.pushStack(w(this,e||[],!0))},is:function(e){return!!w(this,"string"==typeof e&&L.test(e)?N(e):e||[],!1).length}});var D,P=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(N.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:P.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof N?t[0]:t,N.merge(this,N.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),R.test(i[1])&&N.isPlainObject(t))for(i in t)E(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=T.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):E(e)?void 0!==n.ready?n.ready(e):e(N):N.makeArray(e,this)}).prototype=N.fn,D=N(T);var k=/^(?:parents|prev(?:Until|All))/,x={children:!0,contents:!0,next:!0,prev:!0};function B(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}N.fn.extend({has:function(e){var t=N(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(N.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,o=this.length,s=[],r="string"!=typeof e&&N(e);if(!L.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?r.index(n)>-1:1===n.nodeType&&N.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?N.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?u.call(N(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(N.uniqueSort(N.merge(this.get(),N(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),N.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return B(e,"nextSibling")},prev:function(e){return B(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(v(e,"template")&&(e=e.content||e),N.merge([],e.childNodes))}},(function(e,t){N.fn[e]=function(n,i){var o=N.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=N.filter(i,o)),this.length>1&&(x[e]||N.uniqueSort(o),k.test(e)&&o.reverse()),this.pushStack(o)}}));var M=/[^\x20\t\r\n\f]+/g;function U(e){return e}function G(e){throw e}function H(e,t,n,i){var o;try{e&&E(o=e.promise)?o.call(e).done(t).fail(n):e&&E(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}N.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return N.each(e.match(M)||[],(function(e,n){t[n]=!0})),t}(e):N.extend({},e);var t,n,i,o,s=[],r=[],a=-1,c=function(){for(o=o||e.once,i=t=!0;r.length;a=-1)for(n=r.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,o&&(s=n?[]:"")},l={add:function(){return s&&(n&&!t&&(a=s.length-1,r.push(n)),function t(n){N.each(n,(function(n,i){E(i)?e.unique&&l.has(i)||s.push(i):i&&i.length&&"string"!==O(i)&&t(i)}))}(arguments),n&&!t&&c()),this},remove:function(){return N.each(arguments,(function(e,t){for(var n;(n=N.inArray(t,s,n))>-1;)s.splice(n,1),n<=a&&a--})),this},has:function(e){return e?N.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=r=[],s=n="",this},disabled:function(){return!s},lock:function(){return o=r=[],n||t||(s=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],r.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},N.extend({Deferred:function(e){var t=[["notify","progress",N.Callbacks("memory"),N.Callbacks("memory"),2],["resolve","done",N.Callbacks("once memory"),N.Callbacks("once memory"),0,"resolved"],["reject","fail",N.Callbacks("once memory"),N.Callbacks("once memory"),1,"rejected"]],i="pending",o={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return N.Deferred((function(n){N.each(t,(function(t,i){var o=E(e[i[4]])&&e[i[4]];s[i[1]]((function(){var e=o&&o.apply(this,arguments);e&&E(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,o){var s=0;function r(e,t,i,o){return function(){var a=this,c=arguments,l=function(){var n,l;if(!(e<s)){if((n=i.apply(a,c))===t.promise())throw new TypeError("Thenable self-resolution");l=n&&("object"==typeof n||"function"==typeof n)&&n.then,E(l)?o?l.call(n,r(s,t,U,o),r(s,t,G,o)):(s++,l.call(n,r(s,t,U,o),r(s,t,G,o),r(s,t,U,t.notifyWith))):(i!==U&&(a=void 0,c=[n]),(o||t.resolveWith)(a,c))}},u=o?l:function(){try{l()}catch(n){N.Deferred.exceptionHook&&N.Deferred.exceptionHook(n,u.stackTrace),e+1>=s&&(i!==G&&(a=void 0,c=[n]),t.rejectWith(a,c))}};e?u():(N.Deferred.getStackHook&&(u.stackTrace=N.Deferred.getStackHook()),n.setTimeout(u))}}return N.Deferred((function(n){t[0][3].add(r(0,n,E(o)?o:U,n.notifyWith)),t[1][3].add(r(0,n,E(e)?e:U)),t[2][3].add(r(0,n,E(i)?i:G))})).promise()},promise:function(e){return null!=e?N.extend(e,o):o}},s={};return N.each(t,(function(e,n){var r=n[2],a=n[5];o[n[1]]=r.add,a&&r.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(n[3].fire),s[n[0]]=function(){return s[n[0]+"With"](this===s?void 0:this,arguments),this},s[n[0]+"With"]=r.fireWith})),o.promise(s),e&&e.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),o=a.call(arguments),s=N.Deferred(),r=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?a.call(arguments):n,--t||s.resolveWith(i,o)}};if(t<=1&&(H(e,s.done(r(n)).resolve,s.reject,!t),"pending"===s.state()||E(o[n]&&o[n].then)))return s.then();for(;n--;)H(o[n],r(n),s.reject);return s.promise()}});var F=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;N.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&F.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},N.readyException=function(e){n.setTimeout((function(){throw e}))};var W=N.Deferred();function K(){T.removeEventListener("DOMContentLoaded",K),n.removeEventListener("load",K),N.ready()}N.fn.ready=function(e){return W.then(e).catch((function(e){N.readyException(e)})),this},N.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--N.readyWait:N.isReady)||(N.isReady=!0,!0!==e&&--N.readyWait>0||W.resolveWith(T,[N]))}}),N.ready.then=W.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?n.setTimeout(N.ready):(T.addEventListener("DOMContentLoaded",K),n.addEventListener("load",K));var q=function(e,t,n,i,o,s,r){var a=0,c=e.length,l=null==n;if("object"===O(n))for(a in o=!0,n)q(e,t,a,n[a],!0,s,r);else if(void 0!==i&&(o=!0,E(i)||(r=!0),l&&(r?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(N(e),n)})),t))for(;a<c;a++)t(e[a],n,r?i:i.call(e[a],a,t(e[a],n)));return o?e:l?t.call(e):c?t(e[0],n):s},j=/^-ms-/,$=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function V(e){return e.replace(j,"ms-").replace($,Y)}var z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function X(){this.expando=N.expando+X.uid++}X.uid=1,X.prototype={cache:function(e){var t=e[this.expando];return t||(t=Object.create(null),z(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[V(t)]=n;else for(i in t)o[V(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in i?[t]:t.match(M)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||N.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!N.isEmptyObject(t)}};var J=new X,Q=new X,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ee=/[A-Z]/g;function te(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ee,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}N.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),N.fn.extend({data:function(e,t){var n,i,o,s=this[0],r=s&&s.attributes;if(void 0===e){if(this.length&&(o=Q.get(s),1===s.nodeType&&!J.get(s,"hasDataAttrs"))){for(n=r.length;n--;)r[n]&&0===(i=r[n].name).indexOf("data-")&&(i=V(i.slice(5)),te(s,i,o[i]));J.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){Q.set(this,e)})):q(this,(function(t){var n;if(s&&void 0===t)return void 0!==(n=Q.get(s,e))?n:void 0!==(n=te(s,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),N.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),n&&(!i||Array.isArray(n)?i=J.access(e,t,N.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=N.queue(e,t),i=n.length,o=n.shift(),s=N._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete s.stop,o.call(e,(function(){N.dequeue(e,t)}),s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:N.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),N.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?N.queue(this[0],e):void 0===t?this:this.each((function(){var n=N.queue(this,e,t);N._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&N.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){N.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=N.Deferred(),s=this,r=this.length,a=function(){--i||o.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(n=J.get(s[r],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],se=T.documentElement,re=function(e){return N.contains(e.ownerDocument,e)},ae={composed:!0};se.getRootNode&&(re=function(e){return N.contains(e.ownerDocument,e)||e.getRootNode(ae)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&re(e)&&"none"===N.css(e,"display")};function le(e,t,n,i){var o,s,r=20,a=i?function(){return i.cur()}:function(){return N.css(e,t,"")},c=a(),l=n&&n[3]||(N.cssNumber[t]?"":"px"),u=e.nodeType&&(N.cssNumber[t]||"px"!==l&&+c)&&ie.exec(N.css(e,t));if(u&&u[3]!==l){for(c/=2,l=l||u[3],u=+c||1;r--;)N.style(e,t,u+l),(1-s)*(1-(s=a()/c||.5))<=0&&(r=0),u/=s;u*=2,N.style(e,t,u+l),n=n||[]}return n&&(u=+u||+c||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=o)),o}var ue={};function de(e){var t,n=e.ownerDocument,i=e.nodeName,o=ue[i];return o||(t=n.body.appendChild(n.createElement(i)),o=N.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),ue[i]=o,o)}function he(e,t){for(var n,i,o=[],s=0,r=e.length;s<r;s++)(i=e[s]).style&&(n=i.style.display,t?("none"===n&&(o[s]=J.get(i,"display")||null,o[s]||(i.style.display="")),""===i.style.display&&ce(i)&&(o[s]=de(i))):"none"!==n&&(o[s]="none",J.set(i,"display",n)));for(s=0;s<r;s++)null!=o[s]&&(e[s].style.display=o[s]);return e}N.fn.extend({show:function(){return he(this,!0)},hide:function(){return he(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?N(this).show():N(this).hide()}))}});var pe,_e,me=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ee=/^$|^module$|\/(?:java|ecma)script/i;pe=T.createDocumentFragment().appendChild(T.createElement("div")),(_e=T.createElement("input")).setAttribute("type","radio"),_e.setAttribute("checked","checked"),_e.setAttribute("name","t"),pe.appendChild(_e),g.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",g.option=!!pe.lastChild;var fe={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,"",""]};function Te(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&v(e,t)?N.merge([e],n):n}function Se(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td,g.option||(fe.optgroup=fe.option=[1,"<select multiple='multiple'>","</select>"]);var Ae=/<|&#?\w+;/;function Oe(e,t,n,i,o){for(var s,r,a,c,l,u,d=t.createDocumentFragment(),h=[],p=0,_=e.length;p<_;p++)if((s=e[p])||0===s)if("object"===O(s))N.merge(h,s.nodeType?[s]:s);else if(Ae.test(s)){for(r=r||d.appendChild(t.createElement("div")),a=(ge.exec(s)||["",""])[1].toLowerCase(),c=fe[a]||fe._default,r.innerHTML=c[1]+N.htmlPrefilter(s)+c[2],u=c[0];u--;)r=r.lastChild;N.merge(h,r.childNodes),(r=d.firstChild).textContent=""}else h.push(t.createTextNode(s));for(d.textContent="",p=0;s=h[p++];)if(i&&N.inArray(s,i)>-1)o&&o.push(s);else if(l=re(s),r=Te(d.appendChild(s),"script"),l&&Se(r),n)for(u=0;s=r[u++];)Ee.test(s.type||"")&&n.push(s);return d}var Ne=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,be=/^([^.]*)(?:\.(.+)|)/;function Ie(){return!0}function ye(){return!1}function Le(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function ve(e,t,n,i,o,s){var r,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)ve(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=ye;else if(!o)return e;return 1===s&&(r=o,(o=function(e){return N().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=N.guid++)),e.each((function(){N.event.add(this,t,o,i,n)}))}function Re(e,t,n){n?(J.set(e,t,!1),N.event.add(e,t,{namespace:!1,handler:function(e){var i,o,s=J.get(this,t);if(1&e.isTrigger&&this[t]){if(s.length)(N.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=a.call(arguments),J.set(this,t,s),i=n(this,t),this[t](),s!==(o=J.get(this,t))||i?J.set(this,t,!1):o={},s!==o)return e.stopImmediatePropagation(),e.preventDefault(),o.value}else s.length&&(J.set(this,t,{value:N.event.trigger(N.extend(s[0],N.Event.prototype),s.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&N.event.add(e,t,Ie)}N.event={global:{},add:function(e,t,n,i,o){var s,r,a,c,l,u,d,h,p,_,m,g=J.get(e);if(z(e))for(n.handler&&(n=(s=n).handler,o=s.selector),o&&N.find.matchesSelector(se,o),n.guid||(n.guid=N.guid++),(c=g.events)||(c=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(t){return void 0!==N&&N.event.triggered!==t.type?N.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(M)||[""]).length;l--;)p=m=(a=be.exec(t[l])||[])[1],_=(a[2]||"").split(".").sort(),p&&(d=N.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=N.event.special[p]||{},u=N.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&N.expr.match.needsContext.test(o),namespace:_.join(".")},s),(h=c[p])||((h=c[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,_,r)||e.addEventListener&&e.addEventListener(p,r)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),N.event.global[p]=!0)},remove:function(e,t,n,i,o){var s,r,a,c,l,u,d,h,p,_,m,g=J.hasData(e)&&J.get(e);if(g&&(c=g.events)){for(l=(t=(t||"").match(M)||[""]).length;l--;)if(p=m=(a=be.exec(t[l])||[])[1],_=(a[2]||"").split(".").sort(),p){for(d=N.event.special[p]||{},h=c[p=(i?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+_.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)u=h[s],!o&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));r&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,_,g.handle)||N.removeEvent(e,p,g.handle),delete c[p])}else for(p in c)N.event.remove(e,p+t[l],n,i,!0);N.isEmptyObject(c)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,r,a=new Array(arguments.length),c=N.event.fix(e),l=(J.get(this,"events")||Object.create(null))[c.type]||[],u=N.event.special[c.type]||{};for(a[0]=c,t=1;t<arguments.length;t++)a[t]=arguments[t];if(c.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,c)){for(r=N.event.handlers.call(this,c,l),t=0;(o=r[t++])&&!c.isPropagationStopped();)for(c.currentTarget=o.elem,n=0;(s=o.handlers[n++])&&!c.isImmediatePropagationStopped();)c.rnamespace&&!1!==s.namespace&&!c.rnamespace.test(s.namespace)||(c.handleObj=s,c.data=s.data,void 0!==(i=((N.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,a))&&!1===(c.result=i)&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,i,o,s,r,a=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!("click"===e.type&&e.button>=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(s=[],r={},n=0;n<c;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?N(o,this).index(l)>-1:N.find(o,this,null,[l]).length),r[o]&&s.push(i);s.length&&a.push({elem:l,handlers:s})}return l=this,c<t.length&&a.push({elem:l,handlers:t.slice(c)}),a},addProp:function(e,t){Object.defineProperty(N.Event.prototype,e,{enumerable:!0,configurable:!0,get:E(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[N.expando]?e:new N.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&v(t,"input")&&Re(t,"click",Ie),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&v(t,"input")&&Re(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&v(t,"input")&&J.get(t,"click")||v(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},N.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},N.Event=function(e,t){if(!(this instanceof N.Event))return new N.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ie:ye,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&N.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[N.expando]=!0},N.Event.prototype={constructor:N.Event,isDefaultPrevented:ye,isPropagationStopped:ye,isImmediatePropagationStopped:ye,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ie,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ie,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ie,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},N.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Ne.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},N.event.addProp),N.each({focus:"focusin",blur:"focusout"},(function(e,t){N.event.special[e]={setup:function(){return Re(this,e,Le),!1},trigger:function(){return Re(this,e),!0},delegateType:t}})),N.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){N.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,o=e.relatedTarget,s=e.handleObj;return o&&(o===i||N.contains(i,o))||(e.type=s.origType,n=s.handler.apply(this,arguments),e.type=t),n}}})),N.fn.extend({on:function(e,t,n,i){return ve(this,e,t,n,i)},one:function(e,t,n,i){return ve(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,N(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ye),this.each((function(){N.event.remove(this,e,n,t)}))}});var we=/<script|<style|<link/i,De=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ke(e,t){return v(e,"table")&&v(11!==t.nodeType?t:t.firstChild,"tr")&&N(e).children("tbody")[0]||e}function xe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Be(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Me(e,t){var n,i,o,s,r,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(o in J.remove(t,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)N.event.add(t,o,a[o][n]);Q.hasData(e)&&(s=Q.access(e),r=N.extend({},s),Q.set(t,r))}}function Ue(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ge(e,t,n,i){t=c(t);var o,s,r,a,l,u,d=0,h=e.length,p=h-1,_=t[0],m=E(_);if(m||h>1&&"string"==typeof _&&!g.checkClone&&De.test(_))return e.each((function(o){var s=e.eq(o);m&&(t[0]=_.call(this,o,s.html())),Ge(s,t,n,i)}));if(h&&(s=(o=Oe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=s),s||i)){for(a=(r=N.map(Te(o,"script"),xe)).length;d<h;d++)l=o,d!==p&&(l=N.clone(l,!0,!0),a&&N.merge(r,Te(l,"script"))),n.call(e[d],l,d);if(a)for(u=r[r.length-1].ownerDocument,N.map(r,Be),d=0;d<a;d++)l=r[d],Ee.test(l.type||"")&&!J.access(l,"globalEval")&&N.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?N._evalUrl&&!l.noModule&&N._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},u):A(l.textContent.replace(Pe,""),l,u))}return e}function He(e,t,n){for(var i,o=t?N.filter(t,e):e,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||N.cleanData(Te(i)),i.parentNode&&(n&&re(i)&&Se(Te(i,"script")),i.parentNode.removeChild(i));return e}N.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,r,a=e.cloneNode(!0),c=re(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||N.isXMLDoc(e)))for(r=Te(a),i=0,o=(s=Te(e)).length;i<o;i++)Ue(s[i],r[i]);if(t)if(n)for(s=s||Te(e),r=r||Te(a),i=0,o=s.length;i<o;i++)Me(s[i],r[i]);else Me(e,a);return(r=Te(a,"script")).length>0&&Se(r,!c&&Te(e,"script")),a},cleanData:function(e){for(var t,n,i,o=N.event.special,s=0;void 0!==(n=e[s]);s++)if(z(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)o[i]?N.event.remove(n,i):N.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),N.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return q(this,(function(e){return void 0===e?N.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Ge(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||ke(this,e).appendChild(e)}))},prepend:function(){return Ge(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ke(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Ge(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(N.cleanData(Te(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return N.clone(this,e,t)}))},html:function(e){return q(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!we.test(e)&&!fe[(ge.exec(e)||["",""])[1].toLowerCase()]){e=N.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(N.cleanData(Te(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Ge(this,arguments,(function(t){var n=this.parentNode;N.inArray(this,e)<0&&(N.cleanData(Te(this)),n&&n.replaceChild(t,this))}),e)}}),N.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){N.fn[e]=function(e){for(var n,i=[],o=N(e),s=o.length-1,r=0;r<=s;r++)n=r===s?this:this.clone(!0),N(o[r])[t](n),l.apply(i,n.get());return this.pushStack(i)}}));var Fe=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Ke=function(e,t,n){var i,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in i=n.call(e),t)e.style[o]=s[o];return i},qe=new RegExp(oe.join("|"),"i");function je(e,t,n){var i,o,s,r,a=e.style;return(n=n||We(e))&&(""!==(r=n.getPropertyValue(t)||n[t])||re(e)||(r=N.style(e,t)),!g.pixelBoxStyles()&&Fe.test(r)&&qe.test(t)&&(i=a.width,o=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=n.width,a.width=i,a.minWidth=o,a.maxWidth=s)),void 0!==r?r+"":r}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",se.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);i="1%"!==e.top,c=12===t(e.marginLeft),u.style.right="60%",r=36===t(e.right),o=36===t(e.width),u.style.position="absolute",s=12===t(u.offsetWidth/3),se.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var i,o,s,r,a,c,l=T.createElement("div"),u=T.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,N.extend(g,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),c},scrollboxSize:function(){return e(),s},reliableTrDimensions:function(){var e,t,i,o;return null==a&&(e=T.createElement("table"),t=T.createElement("tr"),i=T.createElement("div"),e.style.cssText="position:absolute;left:-11111px",t.style.height="1px",i.style.height="9px",se.appendChild(e).appendChild(t).appendChild(i),o=n.getComputedStyle(t),a=parseInt(o.height)>3,se.removeChild(e)),a}}))}();var Ye=["Webkit","Moz","ms"],Ve=T.createElement("div").style,ze={};function Xe(e){var t=N.cssProps[e]||ze[e];return t||(e in Ve?e:ze[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Ve)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Qe=/^--/,Ze={position:"absolute",visibility:"hidden",display:"block"},et={letterSpacing:"0",fontWeight:"400"};function tt(e,t,n){var i=ie.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function nt(e,t,n,i,o,s){var r="width"===t?1:0,a=0,c=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(c+=N.css(e,n+oe[r],!0,o)),i?("content"===n&&(c-=N.css(e,"padding"+oe[r],!0,o)),"margin"!==n&&(c-=N.css(e,"border"+oe[r]+"Width",!0,o))):(c+=N.css(e,"padding"+oe[r],!0,o),"padding"!==n?c+=N.css(e,"border"+oe[r]+"Width",!0,o):a+=N.css(e,"border"+oe[r]+"Width",!0,o));return!i&&s>=0&&(c+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-c-a-.5))||0),c}function it(e,t,n){var i=We(e),o=(!g.boxSizingReliable()||n)&&"border-box"===N.css(e,"boxSizing",!1,i),s=o,r=je(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(r)){if(!n)return r;r="auto"}return(!g.boxSizingReliable()&&o||!g.reliableTrDimensions()&&v(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===N.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===N.css(e,"boxSizing",!1,i),(s=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+nt(e,t,n||(o?"border":"content"),s,i,r)+"px"}function ot(e,t,n,i,o){return new ot.prototype.init(e,t,n,i,o)}N.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=V(t),c=Qe.test(t),l=e.style;if(c||(t=Xe(a)),r=N.cssHooks[t]||N.cssHooks[a],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:l[t];"string"===(s=typeof n)&&(o=ie.exec(n))&&o[1]&&(n=le(e,t,o),s="number"),null!=n&&n==n&&("number"!==s||c||(n+=o&&o[3]||(N.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(c?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,i){var o,s,r,a=V(t);return Qe.test(t)||(t=Xe(a)),(r=N.cssHooks[t]||N.cssHooks[a])&&"get"in r&&(o=r.get(e,!0,n)),void 0===o&&(o=je(e,t,i)),"normal"===o&&t in et&&(o=et[t]),""===n||n?(s=parseFloat(o),!0===n||isFinite(s)?s||0:o):o}}),N.each(["height","width"],(function(e,t){N.cssHooks[t]={get:function(e,n,i){if(n)return!Je.test(N.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,i):Ke(e,Ze,(function(){return it(e,t,i)}))},set:function(e,n,i){var o,s=We(e),r=!g.scrollboxSize()&&"absolute"===s.position,a=(r||i)&&"border-box"===N.css(e,"boxSizing",!1,s),c=i?nt(e,t,i,a,s):0;return a&&r&&(c-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(s[t])-nt(e,t,"border",!1,s)-.5)),c&&(o=ie.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=N.css(e,t)),tt(0,n,c)}}})),N.cssHooks.marginLeft=$e(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),N.each({margin:"",padding:"",border:"Width"},(function(e,t){N.cssHooks[e+t]={expand:function(n){for(var i=0,o={},s="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+oe[i]+t]=s[i]||s[i-2]||s[0];return o}},"margin"!==e&&(N.cssHooks[e+t].set=tt)})),N.fn.extend({css:function(e,t){return q(this,(function(e,t,n){var i,o,s={},r=0;if(Array.isArray(t)){for(i=We(e),o=t.length;r<o;r++)s[t[r]]=N.css(e,t[r],!1,i);return s}return void 0!==n?N.style(e,t,n):N.css(e,t)}),e,t,arguments.length>1)}}),N.Tween=ot,ot.prototype={constructor:ot,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||N.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(N.cssNumber[n]?"":"px")},cur:function(){var e=ot.propHooks[this.prop];return e&&e.get?e.get(this):ot.propHooks._default.get(this)},run:function(e){var t,n=ot.propHooks[this.prop];return this.options.duration?this.pos=t=N.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ot.propHooks._default.set(this),this}},ot.prototype.init.prototype=ot.prototype,ot.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=N.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){N.fx.step[e.prop]?N.fx.step[e.prop](e):1!==e.elem.nodeType||!N.cssHooks[e.prop]&&null==e.elem.style[Xe(e.prop)]?e.elem[e.prop]=e.now:N.style(e.elem,e.prop,e.now+e.unit)}}},ot.propHooks.scrollTop=ot.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},N.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},N.fx=ot.prototype.init,N.fx.step={};var st,rt,at=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function lt(){rt&&(!1===T.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,N.fx.interval),N.fx.tick())}function ut(){return n.setTimeout((function(){st=void 0})),st=Date.now()}function dt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=oe[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ht(e,t,n){for(var i,o=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),s=0,r=o.length;s<r;s++)if(i=o[s].call(n,t,e))return i}function pt(e,t,n){var i,o,s=0,r=pt.prefilters.length,a=N.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=st||ut(),n=Math.max(0,l.startTime+l.duration-t),i=1-(n/l.duration||0),s=0,r=l.tweens.length;s<r;s++)l.tweens[s].run(i);return a.notifyWith(e,[l,i,n]),i<1&&r?n:(r||a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:N.extend({},t),opts:N.extend(!0,{specialEasing:{},easing:N.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var i=N.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),u=l.props;for(!function(e,t){var n,i,o,s,r;for(n in e)if(o=t[i=V(n)],s=e[n],Array.isArray(s)&&(o=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),(r=N.cssHooks[i])&&"expand"in r)for(n in s=r.expand(s),delete e[i],s)n in e||(e[n]=s[n],t[n]=o);else t[i]=o}(u,l.opts.specialEasing);s<r;s++)if(i=pt.prefilters[s].call(l,e,u,l.opts))return E(i.stop)&&(N._queueHooks(l.elem,l.opts.queue).stop=i.stop.bind(i)),i;return N.map(u,ht,l),E(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),N.fx.timer(N.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}N.Animation=N.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){E(e)?(t=e,e=["*"]):e=e.match(M);for(var n,i=0,o=e.length;i<o;i++)n=e[i],pt.tweeners[n]=pt.tweeners[n]||[],pt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,s,r,a,c,l,u,d="width"in t||"height"in t,h=this,p={},_=e.style,m=e.nodeType&&ce(e),g=J.get(e,"fxshow");for(i in n.queue||(null==(r=N._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,h.always((function(){h.always((function(){r.unqueued--,N.queue(e,"fx").length||r.empty.fire()}))}))),t)if(o=t[i],at.test(o)){if(delete t[i],s=s||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;m=!0}p[i]=g&&g[i]||N.style(e,i)}if((c=!N.isEmptyObject(t))||!N.isEmptyObject(p))for(i in d&&1===e.nodeType&&(n.overflow=[_.overflow,_.overflowX,_.overflowY],null==(l=g&&g.display)&&(l=J.get(e,"display")),"none"===(u=N.css(e,"display"))&&(l?u=l:(he([e],!0),l=e.style.display||l,u=N.css(e,"display"),he([e]))),("inline"===u||"inline-block"===u&&null!=l)&&"none"===N.css(e,"float")&&(c||(h.done((function(){_.display=l})),null==l&&(u=_.display,l="none"===u?"":u)),_.display="inline-block")),n.overflow&&(_.overflow="hidden",h.always((function(){_.overflow=n.overflow[0],_.overflowX=n.overflow[1],_.overflowY=n.overflow[2]}))),c=!1,p)c||(g?"hidden"in g&&(m=g.hidden):g=J.access(e,"fxshow",{display:l}),s&&(g.hidden=!m),m&&he([e],!0),h.done((function(){for(i in m||he([e]),J.remove(e,"fxshow"),p)N.style(e,i,p[i])}))),c=ht(m?g[i]:0,i,h),i in g||(g[i]=c.start,m&&(c.end=c.start,c.start=0))}],prefilter:function(e,t){t?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),N.speed=function(e,t,n){var i=e&&"object"==typeof e?N.extend({},e):{complete:n||!n&&t||E(e)&&e,duration:e,easing:n&&t||t&&!E(t)&&t};return N.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in N.fx.speeds?i.duration=N.fx.speeds[i.duration]:i.duration=N.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){E(i.old)&&i.old.call(this),i.queue&&N.dequeue(this,i.queue)},i},N.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=N.isEmptyObject(e),s=N.speed(t,n,i),r=function(){var t=pt(this,N.extend({},e),s);(o||J.get(this,"finish"))&&t.stop(!0)};return r.finish=r,o||!1===s.queue?this.each(r):this.queue(s.queue,r)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",s=N.timers,r=J.get(this);if(o)r[o]&&r[o].stop&&i(r[o]);else for(o in r)r[o]&&r[o].stop&&ct.test(o)&&i(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=e&&s[o].queue!==e||(s[o].anim.stop(n),t=!1,s.splice(o,1));!t&&n||N.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],s=N.timers,r=i?i.length:0;for(n.finish=!0,N.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),N.each(["toggle","show","hide"],(function(e,t){var n=N.fn[t];N.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,i,o)}})),N.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){N.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),N.timers=[],N.fx.tick=function(){var e,t=0,n=N.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||N.fx.stop(),st=void 0},N.fx.timer=function(e){N.timers.push(e),N.fx.start()},N.fx.interval=13,N.fx.start=function(){rt||(rt=!0,lt())},N.fx.stop=function(){rt=null},N.fx.speeds={slow:600,fast:200,_default:400},N.fn.delay=function(e,t){return e=N.fx&&N.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var o=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(o)}}))},function(){var e=T.createElement("input"),t=T.createElement("select").appendChild(T.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=T.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var _t,mt=N.expr.attrHandle;N.fn.extend({attr:function(e,t){return q(this,N.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){N.removeAttr(this,e)}))}}),N.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?N.prop(e,t,n):(1===s&&N.isXMLDoc(e)||(o=N.attrHooks[t.toLowerCase()]||(N.expr.match.bool.test(t)?_t:void 0)),void 0!==n?null===n?void N.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=N.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&v(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(M);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),_t={set:function(e,t,n){return!1===t?N.removeAttr(e,n):e.setAttribute(n,n),n}},N.each(N.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||N.find.attr;mt[t]=function(e,t,i){var o,s,r=t.toLowerCase();return i||(s=mt[r],mt[r]=o,o=null!=n(e,t,i)?r:null,mt[r]=s),o}}));var gt=/^(?:input|select|textarea|button)$/i,Et=/^(?:a|area)$/i;function ft(e){return(e.match(M)||[]).join(" ")}function Tt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}N.fn.extend({prop:function(e,t){return q(this,N.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[N.propFix[e]||e]}))}}),N.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&N.isXMLDoc(e)||(t=N.propFix[t]||t,o=N.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=N.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(N.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),N.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){N.propFix[this.toLowerCase()]=this})),N.fn.extend({addClass:function(e){var t,n,i,o,s,r,a,c=0;if(E(e))return this.each((function(t){N(this).addClass(e.call(this,t,Tt(this)))}));if((t=St(e)).length)for(;n=this[c++];)if(o=Tt(n),i=1===n.nodeType&&" "+ft(o)+" "){for(r=0;s=t[r++];)i.indexOf(" "+s+" ")<0&&(i+=s+" ");o!==(a=ft(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,o,s,r,a,c=0;if(E(e))return this.each((function(t){N(this).removeClass(e.call(this,t,Tt(this)))}));if(!arguments.length)return this.attr("class","");if((t=St(e)).length)for(;n=this[c++];)if(o=Tt(n),i=1===n.nodeType&&" "+ft(o)+" "){for(r=0;s=t[r++];)for(;i.indexOf(" "+s+" ")>-1;)i=i.replace(" "+s+" "," ");o!==(a=ft(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,i="string"===n||Array.isArray(e);return"boolean"==typeof t&&i?t?this.addClass(e):this.removeClass(e):E(e)?this.each((function(n){N(this).toggleClass(e.call(this,n,Tt(this),t),t)})):this.each((function(){var t,o,s,r;if(i)for(o=0,s=N(this),r=St(e);t=r[o++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==n||((t=Tt(this))&&J.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":J.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+ft(Tt(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;N.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=E(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,N(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=N.map(o,(function(e){return null==e?"":e+""}))),(t=N.valHooks[this.type]||N.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=N.valHooks[o.type]||N.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(At,""):null==n?"":n:void 0}}),N.extend({valHooks:{option:{get:function(e){var t=N.find.attr(e,"value");return null!=t?t:ft(N.text(e))}},select:{get:function(e){var t,n,i,o=e.options,s=e.selectedIndex,r="select-one"===e.type,a=r?null:[],c=r?s+1:o.length;for(i=s<0?c:r?s:0;i<c;i++)if(((n=o[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!v(n.parentNode,"optgroup"))){if(t=N(n).val(),r)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,s=N.makeArray(t),r=o.length;r--;)((i=o[r]).selected=N.inArray(N.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),N.each(["radio","checkbox"],(function(){N.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=N.inArray(N(e).val(),t)>-1}},g.checkOn||(N.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.focusin="onfocusin"in n;var Ot=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};N.extend(N.event,{trigger:function(e,t,i,o){var s,r,a,c,l,u,d,h,_=[i||T],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(r=h=a=i=i||T,3!==i.nodeType&&8!==i.nodeType&&!Ot.test(m+N.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),l=m.indexOf(":")<0&&"on"+m,(e=e[N.expando]?e:new N.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:N.makeArray(t,[e]),d=N.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(i,t))){if(!o&&!d.noBubble&&!f(i)){for(c=d.delegateType||m,Ot.test(c+m)||(r=r.parentNode);r;r=r.parentNode)_.push(r),a=r;a===(i.ownerDocument||T)&&_.push(a.defaultView||a.parentWindow||n)}for(s=0;(r=_[s++])&&!e.isPropagationStopped();)h=r,e.type=s>1?c:d.bindType||m,(u=(J.get(r,"events")||Object.create(null))[e.type]&&J.get(r,"handle"))&&u.apply(r,t),(u=l&&r[l])&&u.apply&&z(r)&&(e.result=u.apply(r,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(_.pop(),t)||!z(i)||l&&E(i[m])&&!f(i)&&((a=i[l])&&(i[l]=null),N.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Nt),i[m](),e.isPropagationStopped()&&h.removeEventListener(m,Nt),N.event.triggered=void 0,a&&(i[l]=a)),e.result}},simulate:function(e,t,n){var i=N.extend(new N.Event,n,{type:e,isSimulated:!0});N.event.trigger(i,null,t)}}),N.fn.extend({trigger:function(e,t){return this.each((function(){N.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return N.event.trigger(e,t,n,!0)}}),g.focusin||N.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){N.event.simulate(t,e.target,N.event.fix(e))};N.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,t);o||i.addEventListener(e,n,!0),J.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,t)-1;o?J.access(i,t,o):(i.removeEventListener(e,n,!0),J.remove(i,t))}}}));var Ct=n.location,bt={guid:Date.now()},It=/\?/;N.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||N.error("Invalid XML: "+e),t};var yt=/\[\]$/,Lt=/\r?\n/g,vt=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function wt(e,t,n,i){var o;if(Array.isArray(t))N.each(t,(function(t,o){n||yt.test(e)?i(e,o):wt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==O(t))i(e,t);else for(o in t)wt(e+"["+o+"]",t[o],n,i)}N.param=function(e,t){var n,i=[],o=function(e,t){var n=E(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!N.isPlainObject(e))N.each(e,(function(){o(this.name,this.value)}));else for(n in e)wt(n,e[n],t,o);return i.join("&")},N.fn.extend({serialize:function(){return N.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=N.prop(this,"elements");return e?N.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!N(this).is(":disabled")&&Rt.test(this.nodeName)&&!vt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=N(this).val();return null==n?null:Array.isArray(n)?N.map(n,(function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}})):{name:t.name,value:n.replace(Lt,"\r\n")}})).get()}});var Dt=/%20/g,Pt=/#.*$/,kt=/([?&])_=[^&]*/,xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,Mt=/^\/\//,Ut={},Gt={},Ht="*/".concat("*"),Ft=T.createElement("a");function Wt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,s=t.toLowerCase().match(M)||[];if(E(n))for(;i=s[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Kt(e,t,n,i){var o={},s=e===Gt;function r(a){var c;return o[a]=!0,N.each(e[a]||[],(function(e,a){var l=a(t,n,i);return"string"!=typeof l||s||o[l]?s?!(c=l):void 0:(t.dataTypes.unshift(l),r(l),!1)})),c}return r(t.dataTypes[0])||!o["*"]&&r("*")}function qt(e,t){var n,i,o=N.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&N.extend(!0,e,i),e}Ft.href=Ct.href,N.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":N.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,N.ajaxSettings),t):qt(N.ajaxSettings,e)},ajaxPrefilter:Wt(Ut),ajaxTransport:Wt(Gt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,o,s,r,a,c,l,u,d,h,p=N.ajaxSetup({},t),_=p.context||p,m=p.context&&(_.nodeType||_.jquery)?N(_):N.event,g=N.Deferred(),E=N.Callbacks("once memory"),f=p.statusCode||{},S={},A={},O="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!r)for(r={};t=xt.exec(s);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return l?s:null},setRequestHeader:function(e,t){return null==l&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,S[e]=t),this},overrideMimeType:function(e){return null==l&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)f[t]=[f[t],e[t]];return this},abort:function(e){var t=e||O;return i&&i.abort(t),b(0,t),this}};if(g.promise(C),p.url=((e||p.url||Ct.href)+"").replace(Mt,Ct.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(M)||[""],null==p.crossDomain){c=T.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=Ft.protocol+"//"+Ft.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=N.param(p.data,p.traditional)),Kt(Ut,p,t,C),l)return C;for(d in(u=N.event&&p.global)&&0==N.active++&&N.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Bt.test(p.type),o=p.url.replace(Pt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Dt,"+")):(h=p.url.slice(o.length),p.data&&(p.processData||"string"==typeof p.data)&&(o+=(It.test(o)?"&":"?")+p.data,delete p.data),!1===p.cache&&(o=o.replace(kt,"$1"),h=(It.test(o)?"&":"?")+"_="+bt.guid+++h),p.url=o+h),p.ifModified&&(N.lastModified[o]&&C.setRequestHeader("If-Modified-Since",N.lastModified[o]),N.etag[o]&&C.setRequestHeader("If-None-Match",N.etag[o])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ht+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(_,C,p)||l))return C.abort();if(O="abort",E.add(p.complete),C.done(p.success),C.fail(p.error),i=Kt(Gt,p,t,C)){if(C.readyState=1,u&&m.trigger("ajaxSend",[C,p]),l)return C;p.async&&p.timeout>0&&(a=n.setTimeout((function(){C.abort("timeout")}),p.timeout));try{l=!1,i.send(S,b)}catch(e){if(l)throw e;b(-1,e)}}else b(-1,"No Transport");function b(e,t,r,c){var d,h,T,S,A,O=t;l||(l=!0,a&&n.clearTimeout(a),i=void 0,s=c||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,r&&(S=function(e,t,n){for(var i,o,s,r,a=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){c.unshift(o);break}if(c[0]in n)s=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==c[0]&&c.unshift(s),n[s]}(p,C,r)),!d&&N.inArray("script",p.dataTypes)>-1&&(p.converters["text script"]=function(){}),S=function(e,t,n,i){var o,s,r,a,c,l={},u=e.dataTypes.slice();if(u[1])for(r in e.converters)l[r.toLowerCase()]=e.converters[r];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!c&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=s,s=u.shift())if("*"===s)s=c;else if("*"!==c&&c!==s){if(!(r=l[c+" "+s]||l["* "+s]))for(o in l)if((a=o.split(" "))[1]===s&&(r=l[c+" "+a[0]]||l["* "+a[0]])){!0===r?r=l[o]:!0!==l[o]&&(s=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+c+" to "+s}}}return{state:"success",data:t}}(p,S,C,d),d?(p.ifModified&&((A=C.getResponseHeader("Last-Modified"))&&(N.lastModified[o]=A),(A=C.getResponseHeader("etag"))&&(N.etag[o]=A)),204===e||"HEAD"===p.type?O="nocontent":304===e?O="notmodified":(O=S.state,h=S.data,d=!(T=S.error))):(T=O,!e&&O||(O="error",e<0&&(e=0))),C.status=e,C.statusText=(t||O)+"",d?g.resolveWith(_,[h,O,C]):g.rejectWith(_,[C,O,T]),C.statusCode(f),f=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?h:T]),E.fireWith(_,[C,O]),u&&(m.trigger("ajaxComplete",[C,p]),--N.active||N.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return N.get(e,t,n,"json")},getScript:function(e,t){return N.get(e,void 0,t,"script")}}),N.each(["get","post"],(function(e,t){N[t]=function(e,n,i,o){return E(n)&&(o=o||i,i=n,n=void 0),N.ajax(N.extend({url:e,type:t,dataType:o,data:n,success:i},N.isPlainObject(e)&&e))}})),N.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),N._evalUrl=function(e,t,n){return N.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){N.globalEval(e,t,n)}})},N.fn.extend({wrapAll:function(e){var t;return this[0]&&(E(e)&&(e=e.call(this[0])),t=N(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return E(e)?this.each((function(t){N(this).wrapInner(e.call(this,t))})):this.each((function(){var t=N(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=E(e);return this.each((function(n){N(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){N(this).replaceWith(this.childNodes)})),this}}),N.expr.pseudos.hidden=function(e){return!N.expr.pseudos.visible(e)},N.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},N.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var jt={0:200,1223:204},$t=N.ajaxSettings.xhr();g.cors=!!$t&&"withCredentials"in $t,g.ajax=$t=!!$t,N.ajaxTransport((function(e){var t,i;if(g.cors||$t&&!e.crossDomain)return{send:function(o,s){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(r,o[r]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(jt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),N.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),N.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return N.globalEval(e),e}}}),N.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),N.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=N("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),T.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Vt=[],zt=/(=)\?(?=&|$)|\?\?/;N.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||N.expando+"_"+bt.guid++;return this[e]=!0,e}}),N.ajaxPrefilter("json jsonp",(function(e,t,i){var o,s,r,a=!1!==e.jsonp&&(zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=E(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(zt,"$1"+o):!1!==e.jsonp&&(e.url+=(It.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||N.error(o+" was not called"),r[0]},e.dataTypes[0]="json",s=n[o],n[o]=function(){r=arguments},i.always((function(){void 0===s?N(n).removeProp(o):n[o]=s,e[o]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(o)),r&&E(s)&&s(r[0]),r=s=void 0})),"script"})),g.createHTMLDocument=((Yt=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),N.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),s=!n&&[],(o=R.exec(e))?[t.createElement(o[1])]:(o=Oe([e],t,s),s&&s.length&&N(s).remove(),N.merge([],o.childNodes)));var i,o,s},N.fn.load=function(e,t,n){var i,o,s,r=this,a=e.indexOf(" ");return a>-1&&(i=ft(e.slice(a)),e=e.slice(0,a)),E(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),r.length>0&&N.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){s=arguments,r.html(i?N("<div>").append(N.parseHTML(e)).find(i):e)})).always(n&&function(e,t){r.each((function(){n.apply(this,s||[e.responseText,t,e])}))}),this},N.expr.pseudos.animated=function(e){return N.grep(N.timers,(function(t){return e===t.elem})).length},N.offset={setOffset:function(e,t,n){var i,o,s,r,a,c,l=N.css(e,"position"),u=N(e),d={};"static"===l&&(e.style.position="relative"),a=u.offset(),s=N.css(e,"top"),c=N.css(e,"left"),("absolute"===l||"fixed"===l)&&(s+c).indexOf("auto")>-1?(r=(i=u.position()).top,o=i.left):(r=parseFloat(s)||0,o=parseFloat(c)||0),E(t)&&(t=t.call(e,n,N.extend({},a))),null!=t.top&&(d.top=t.top-a.top+r),null!=t.left&&(d.left=t.left-a.left+o),"using"in t?t.using.call(e,d):("number"==typeof d.top&&(d.top+="px"),"number"==typeof d.left&&(d.left+="px"),u.css(d))}},N.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){N.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],o={top:0,left:0};if("fixed"===N.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===N.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=N(e).offset()).top+=N.css(e,"borderTopWidth",!0),o.left+=N.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-N.css(i,"marginTop",!0),left:t.left-o.left-N.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===N.css(e,"position");)e=e.offsetParent;return e||se}))}}),N.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;N.fn[e]=function(i){return q(this,(function(e,i,o){var s;if(f(e)?s=e:9===e.nodeType&&(s=e.defaultView),void 0===o)return s?s[t]:e[i];s?s.scrollTo(n?s.pageXOffset:o,n?o:s.pageYOffset):e[i]=o}),e,i,arguments.length)}})),N.each(["top","left"],(function(e,t){N.cssHooks[t]=$e(g.pixelPosition,(function(e,n){if(n)return n=je(e,t),Fe.test(n)?N(e).position()[t]+"px":n}))})),N.each({Height:"height",Width:"width"},(function(e,t){N.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){N.fn[i]=function(o,s){var r=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===s?"margin":"border");return q(this,(function(t,n,o){var s;return f(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===o?N.css(t,n,a):N.style(t,n,o,a)}),t,r?o:void 0,r)}}))})),N.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){N.fn[t]=function(e){return this.on(t,e)}})),N.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),N.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){N.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Xt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;N.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),E(e))return i=a.call(arguments,2),(o=function(){return e.apply(t||this,i.concat(a.call(arguments)))}).guid=e.guid=e.guid||N.guid++,o},N.holdReady=function(e){e?N.readyWait++:N.ready(!0)},N.isArray=Array.isArray,N.parseJSON=JSON.parse,N.nodeName=v,N.isFunction=E,N.isWindow=f,N.camelCase=V,N.type=O,N.now=Date.now,N.isNumeric=function(e){var t=N.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},N.trim=function(e){return null==e?"":(e+"").replace(Xt,"")},void 0===(i=function(){return N}.apply(t,[]))||(e.exports=i);var Jt=n.jQuery,Qt=n.$;return N.noConflict=function(e){return n.$===N&&(n.$=Qt),e&&n.jQuery===N&&(n.jQuery=Jt),N},void 0===o&&(n.jQuery=n.$=N),N}))},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return d}));var i=n(2);class o{static PreprocessSecureSearchRegEx(e){return e.trim().split("\n")}static PreProcessAdBlockToast(e){return Boolean(e)}static getBrowserSuffix(){const{CH:e,FF:t,EDGE:n}={CH:"_ch",FF:"_ff",IE:"_ie",EDGE:"_ed"},o={};return o[i.f.EDGE]=n,o[i.f.FIREFOX]=t,o[i.f.CHROME]=e,o[i.g.BROWSER_TYPE]}}const s={SYSTEM:0,USER:1},{SYSTEM:r,USER:a}=s,c={NONE:0,INT:1,INT64:2,BOOL:3,STRING:4},l={WEBBOOST_AUTO_PLAY_NOTIFICATION:"AutoPlayNotificationRequired",WEBBOOST_UPSELL_DISABLED:"WBUpsellDisabled",USE_NATIVE_LOGGER:"UseNativeLogger"},u=o.getBrowserSuffix(),d={AFF_ID:{scope:r,name:"*Affid",value:0},BINARY_VERSION:{scope:r,name:"version",value:""},EXTENSION_VERSION_CH:{scope:r,name:"ChromeExtVersion",value:"",writeOnly:!0},EXTENSION_VERSION_FF:{scope:r,name:"*FirefoxXPIVersion",value:"",writeOnly:!0},EXTENSION_VERSION_ED:{scope:r,name:"EdgeExtVersion",value:"",writeOnly:!0},BROWSER_TYPE:{scope:r,name:"browsertype",value:"",writeOnly:!0},USER_AGENT:{scope:r,name:"useragent",value:"",writeOnly:!0},SUGGESTION_URL:{scope:r,name:"suggestion_url",value:""},SCRIPT_GENERATED_DEFAULT_SS_URL:{scope:a,name:`SCRIPT_GENERATED_DEFAULT_SS_URL${u}`,value:""},SECURE_SEARCH_REGEXES:{scope:a,name:"SECURE_SEARCH_REGEXES",value:"",preprocess:o.PreprocessSecureSearchRegEx},SHOW_SEARCH_SETTINGS:{scope:r,name:"*ShowSearchSettings",value:!0},SECURE_SEARCH_TOAST_STAMP:{scope:a,name:`*SSDateStampShowedToast${u}`,value:0},SECURE_SEARCH_ANNOTATION_ONLY:{scope:r,name:"*OnlyShowAnnotationsOnSecureSearch",value:!0},SECURE_SEARCH_SHOW_ICONS:{scope:a,name:"*Icons",value:!0},SECURE_SEARCH_CHOICE:{scope:a,name:`*SSToastChoice${u}`,value:!1,writeOnly:!0},FF_EXTENSION_LAST_TOAST_TIME:{scope:a,name:"ff_extension_last_toast_time",value:0,writeOnly:!0},FF_EXTENSION_TOAST_COUNT:{scope:a,name:"ff_extension_toast_count",value:0,writeOnly:!0},CHECKLIST_START_INGORE_DATE_AV:{scope:r,name:"startIgnoreDateAV",value:"",writeOnly:!0},CHECKLIST_START_IGNORE_DATE_FW:{scope:r,name:"startIgnoreDateFW",value:"",writeOnly:!0},CHECKLIST_IGNORE_DURACTION:{scope:r,name:"ignoreDuration",value:"14",writeOnly:!0},CHECKLIST_GRACE_PERIOD_AV:{scope:r,name:"fixGracePeriodStartDateAV",value:"",writeOnly:!0},CHECKLIST_GRACE_PERIOD_FW:{scope:r,name:"fixGracePeriodStartDateFW",value:"",writeOnly:!0},CHECKLIST_GRACE_PERIOD_DURATION:{scope:r,name:"fixGracePeriodDuration",value:"24",writeOnly:!0},AP_FEATURE_ENABLED:{scope:r,name:`adblock_toast${u}`,value:"",preprocess:o.PreProcessAdBlockToast},ADBLOCK_REENABLE_TOAST:{scope:a,name:"adblock_reenable_toast",value:!1},AP_USER_TOGGLE:{scope:a,name:`ap_user_toggle${u}`,value:!1},AB_USER_TOGGLE:{scope:a,name:`ab_user_toggle${u}`,value:!1},CRYPTOJACKING_DISABLED:{scope:r,name:"CryptojackingDisabled",value:!1},HIDE_MCAFEE_SECURE_ANNOTATIONS:{scope:r,name:"HideMcAfeeSecureAnnotations",value:!1},SMA_USER_TOGGLE:{scope:r,name:`sma_user_toggle${u}`,value:!1,writeOnly:!0},SMA_ANNOTATION_OPTIONS:{scope:r,name:`sma_annotation_options${u}`,value:0,writeOnly:!0},PAGES_SCANNED:{scope:r,name:"*CounterPagesScanned",value:0},PAGES_BLOCKED:{scope:r,name:"*CounterPagesBlocked",value:0},DOWNLOADS_SCANNED:{scope:r,name:"*CounterDownloadsScanned",value:0},DOWNLOADS_BLOCKED:{scope:r,name:"*CounterDownloadsBlocked",value:0},CRYPTO_BLOCKED:{scope:r,name:"*CounterCryptoJackingBlocked",value:0},BLOCKPAGE_WHITELIST:{scope:a,name:"*WhiteList",value:""},TS_WHITELIST:{scope:a,name:"*TListWhiteList",value:""},CSP_ID_SETTING:{scope:r,name:"CSPIdValue",value:"__not_available__"},UNINSTALL_SURVEY_ENABLED:{scope:r,name:"uninstall_survey_enabled",value:!1},UNINSTALL_SURVEY_URL:{scope:r,name:"uninstall_survey_url",value:""},RAT_DETECTION_ENABLED:{scope:r,name:"rat_detection_enabled",value:!0},FIND_SIMILAR_PAGES_ENABLED:{scope:r,name:"find_similar_pages_enabled",value:!1},FIND_SIMILAR_PAGES_CADENCE_PER_HOUR:{scope:r,name:"find_similar_pages_cadence_per_hour",value:0},FIND_SIMILAR_PAGES_TIMEOUT:{scope:r,name:"find_similar_pages_timeout",value:15e3},FIND_SIMILAR_PAGES_DELAY:{scope:r,name:"find_similar_pages_delay",value:0},FIND_SIMILAR_PAGES_LIMIT_COUNT_PER_DAY:{scope:r,name:"find_similar_pages_limit_count_per_day",value:0},FIND_SIMILAR_PAGES_USER_TOGGLE:{scope:r,name:`find_similar_pages_user_toggle${u}`,value:0},SS_WELCOME_EXPERIENCE_COHORT:{scope:r,name:"ss_welcome_experience_cohort",value:0},SS_WELCOME_ANNOTATION:{scope:r,name:"ss_welcome_annotation",value:!1},AMAZON_EXTN_TOAST_ENABLED:{scope:r,name:"amazon_extn_toast_enabled",value:!1},AMAZON_EXTN_TOAST_COHORT:{scope:r,name:"amazon_extn_toast_cohort",value:0},AMAZON_EXTN_TOAST_CADENCE:{scope:r,name:"amazon_extn_toast_cadence",value:3},AMAZON_EXTN_URL:{scope:r,name:"amazon_extn_url",value:"https://chrome.google.com/webstore/detail/amazon-assistant-for-chro/pbjikboenpfhbbejgkoklgkhjpfogcam?hl=en-US"},BLAST_TO_SEARCH_BASE_COHORT:{scope:r,name:"blast_to_search_base_cohort",value:0}}},function(e,t,n){const i=n(22);t.ResourceManager=class{static getHtml(e,t){i.ANNOTATION.resourceRequestor.getHtml(e,n=>{n?t(n):i.BackgroundIPC.logError(`Failed to fetch html ${e}`)})}static getImage(e,t){i.ANNOTATION.resourceRequestor.getImage(e,n=>{n?t(n):i.BackgroundIPC.logError(`Image ${e} failed to fetch through resource requestor`)})}static getJSON(e,t){i.ANNOTATION.resourceRequestor.getJSON(e,n=>{n?t(n):i.BackgroundIPC.logError(`Failed to fetch json ${e}`)})}static getLocalizedString(e){return i.ANNOTATION.resourceRequestor.geti18nRes(e)}static getResString(e,t){i.ANNOTATION.resourceRequestor.getResStr(e,n=>{n?t(n):i.BackgroundIPC.logError(`Resource string ${e} failed to fetch through resource requestor`)})}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));class i{onHttpResponse(e){if(!e.ok){const t=`HttpService Status: ${e.status}\nError Text: ${e.statusText}`;return Promise.reject(new Error(t))}return e}sendHttpRequest({url:e,headers:t,body:n,method:i="GET"}){return fetch(e,{headers:t,method:i,body:n}).then(this.onHttpResponse)}}},function(e,t){t.ANNOTATION={},t.BackgroundIPC=null,t.BackgroundCommons=null,t.ContextTelemetry=null,t.TelemetryEventNames=null,t.UrlParser=null,t.Utils=null,t.Commands={},t.CommonConstants={},t.extension=null,t.SearchEngineHelper=null},function(e,t,n){const i=n(27);n(26);t.GTICache=class{constructor(e){this.reputationCache=new Map,this.urlMap=new Map,i.GTI_CONSTANTS.pv=e.EXTENSION_VERSION}checkCache(){this.reputationCache.size>.5*i.GTI_CONSTANTS.maxCacheRecords&&this.cleanReputationCache()}cleanReputationCache(){this.reputationCache.forEach((e,t,n)=>{Date.now()>i.GTI_CONSTANTS.reputationTTL+e.timeCached&&n.delete(t)})}checkRequest(e){const t=[];return e.forEach(e=>{this.urlMap.has(e)&&t.push(this.urlMap.get(e))}),t}addRequest(e,t){e.forEach(e=>{this.urlMap.set(e,t)})}deleteRequest(e){e.forEach(e=>{this.urlMap.delete(e)})}setReputation(e,t){return!(this.reputationCache.size>i.GTI_CONSTANTS.maxCacheRecords)&&(this.reputationCache.set(e,{timeCached:Date.now(),value:t}),!0)}getReputation(e){const t=this.reputationCache.get(e),n={cache_entry:t};return t||(n.cache_entry=null),n}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(21),o=n(3),s=n(5),r=n(8);class a{constructor(){this.http=new i.a}geti18nRes(e,t=[]){let n=o.a.i18n.getMessage(e,t);const i=o.a.i18n.getMessage(r.a.PPS_MODE?"res_PRODUCT_NAME_TRADEMARKED_PPS":"res_PRODUCT_NAME_TRADEMARKED");return n=n.replace(/%PRODUCTNAME%/g,i),n}getURI(e){return o.a.runtime.getURL(e)}getImage(e,t){const n=this.getURI(`images/${e}`);this.http.sendHttpRequest({url:n}).then(e=>e.blob()).then(e=>{const n=URL.createObjectURL(e);t(n)}).catch(t=>{s.a.logError(`Failed requesting: ${e} ${t}`)})}getJSON(e,t){const n=this.getURI(`json/${e}`),i=new Headers({"content-type":"application/json"});this.http.sendHttpRequest({url:n,headers:i}).then(e=>e.json()).then(e=>{t(e)}).catch(t=>{s.a.logError(`Failed requesting: ${e} ${t}`)})}getHtml(e,t){const n=this.getURI(`html/${e}`);this.http.sendHttpRequest({url:n}).then(e=>e.text()).then(e=>{t(e)}).catch(t=>{s.a.logError(`Failed requesting: ${e} ${t}`)})}getResStr(e,t){const n=this.geti18nRes(e);t("??"===n?"":n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var i=n(1),o=n(8),s=n(14);class r{static isAdblockDisabled(e){const t=s.a.get("SearchExtension"),n={command:i.a.IS_DISABLED,tabId:e},r={request_type:i.e.ADBLOCK,payload:n};return o.a.externalMsgDispatcher.sendExtnMsg(t,r)}static updateAdblockWhitelist(e,t){const n=s.a.get("SearchExtension"),r={command:e,tabId:t},a={request_type:i.e.ADBLOCK,payload:r};return o.a.externalMsgDispatcher.sendExtnMsg(n,a)}static toggleAdblockEngine(e){const t=s.a.get("SearchExtension"),n={command:e?i.a.TURN_ON:i.a.TURN_OFF},r={request_type:i.e.ADBLOCK,payload:n};return o.a.externalMsgDispatcher.sendExtnMsg(t,r)}static pingExtension(e){const t={request_type:i.e.PING,payload:{}};return o.a.externalMsgDispatcher.sendExtnMsg(e,t)}}},function(e,t){t.BackgroundGlobals=null,t.HttpService=null},function(e,t){const n={reputationTTL:36e5,maxGTIQuestionLength:16384,globalSafeModeFlag:536870912,contentType:"application/json; charset=utf-8",clientId:"87d8d1082c2f2f821f438b2359b7a5b4",prn:"McAfee WebAdvisor",sdkv:"1.0",pv:null,pev:1,gtiId:"is-webadvisorc-prod",customerId:"Customer0008",maxCacheRecords:1e3},i={None:0,SkipCustomKeywords:1,SkipCustomSites:2,SkipWebDatabaseNotKeywords:4,SkipWebDatabaseKeywords:8,SkipPatterns:16,SkipCGIPatterns:32,SkipEmbeddedURLs:64,SkipTrustedSourceQuery:128,All:2047};function o(e){this.cliid=n.clientId,this.prn=n.prn,this.sdkv=n.sdkv,this.pv=n.pv,this.pev=n.pev,this.rid=e,this.affid="0",this.cid=n.customerId}e.exports={gtiBody:function(e){this.ci=new o(e),this.q=[]},gtiQueryItems:function(){this.op=null,this.uop=i.SkipEmbeddedURLs,this.url=null,this.catset=4},gtiClientInfo:o,GTI_UPO_FLAGS:i,GTI_CONSTANTS:n}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var i=n(3);function o(t,n=document){const{content:o,offsetx:s,offsety:r,popoverID:a,src:c,title:l}=t,u=a||Math.random().toString(36).substring(7),d=`#${u}`,h=`\n    <div id="${u}" class="popover-wrapper">\n      <div class="popover">\n        <div class="popover__arrow">\n          <div class="arrow__outer"></div>\n          <div class="arrow__inner"></div>\n        </div>\n        <div class="popover__content">\n          <h3>\n            ${l}\n            ${!c.includes("category-info")?`<img src="${i.a.runtime.getURL("/images/web_advisor/info_icon.svg")}" />`:""}\n          </h3>\n          ${o}\n        </div>\n      </div>\n    </div>\n  `;n!==document?e(n).append(h):e("body").append(h),e(c,n).hover((function(){const t=e(c,n).parent().position(),i=e(`${d} .popover__content`,n).outerHeight(),o=e(`${d} .popover__arrow`,n).innerWidth(),a=e(`${d} .popover__arrow`,n).outerHeight();if(c.includes("threat-info")){let c=t.left-o+(s||0);const l=232-c;l>0&&(c+=l,e(`${d} .popover__arrow`,n).css({left:`${240-l}px`})),e(d,n).hide().css({position:"absolute",top:`${t.top-i-a/2+(r||0)}px`,left:`${c}px`}).fadeIn("fast")}else c.includes("category-info")&&e(`${d} .popover__arrow`,n).css({left:"40px"}),e(d,n).hide().css({position:"absolute",top:`${t.top-i-a/2+(r||0)}px`,left:`${t.left-o+(s||0)}px`}).fadeIn("fast");e(`${d}`,n).css({visibility:"visible"})}),(function(){e(d,n).fadeOut("fast",()=>{e(`${d}`,n).css({visibility:"hidden"}),e(d,n).css("left","-1000px").show()})}))}}).call(this,n(18))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n(0),o=n(4),s=n(7),r=n(8);class a{constructor(e){this._options=e,this.TELEMETRY_HANDLERS=this.initializeTelemetryHandler()}fetchTelemetryHandlers(e){const t=[];return this.TELEMETRY_HANDLERS.forEach(n=>{n.trigger.identifier&&e!==n.trigger.identifier||t.push(n)}),t}initializeTelemetryHandler(){return[{trigger:{identifier:i.e.ADBLOCK_INTERACTION,sendTelemetry:!(null===r.a.bkGlobals||!this._options.ads_count)&&r.a.bkGlobals.AP_FEATURE_ENABLED},messages:[{template:{name:i.e.ADBLOCK.BUBBLE,interaction_type:this._options.interaction_type,ads_count:this._options.ads_count,tracker_count:this._options.tracker_count,_event_name:i.e.ADBLOCK.BUBBLE,domain:this._options.domain,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.ADBLOCK_INTERACTION,selector:".adblock-switch",action:i.m.ACTION.CLICK,sendTelemetry:null!==r.a.bkGlobals&&r.a.bkGlobals.AP_FEATURE_ENABLED},messages:[{template:{name:i.e.ADBLOCK.WHITELISTED,domain:this._options.domain,browser:o.a.browserTypeToString(),_event_name:i.e.ADBLOCK.WHITELISTED}}]},{trigger:{identifier:i.e.ADBLOCK_INTERACTION,selector:"#settings_preference_ap_alert_button",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.GET_SEARCH_EXTENSION,interaction_type:0===this._options.status?i.h.ENABLE:i.h.ADD,source:i.m.MISC.PREFERENCE,_event_name:i.e.GET_SEARCH_EXTENSION,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BADGE,sendTelemetry:!0},messages:[{template:{name:i.e.BADGE,interaction_type:i.h.IMPRESSION,reason:this._options.reason,_event_name:i.e.BADGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BADGE,selector:"#settings-link",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.BADGE,interaction_type:i.h.PPS.GO_PROFILE,reason:this._options.reason,_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BADGE,selector:"#sidebar_badge_collection_btn_accept",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.BADGE,interaction_type:i.h.PPS.ACKNOWLEDGED,reason:this._options.reason,_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BADGE,selector:"#sidebar_ss_accepted_btn_got_it",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.BADGE,interaction_type:i.h.PPS.ACKNOWLEDGED,reason:this._options.reason,_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BADGE,selector:"#sidebar_ds_file_deleted_high_five",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.BADGE,interaction_type:i.h.PPS.ACKNOWLEDGED,reason:this._options.reason,_event_name:i.e.BADGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BADGE,selector:"#sidebar-close",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.BADGE,interaction_type:i.h.CLOSE_CLICKED,reason:this._options.reason,_event_name:i.e.BADGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,sendTelemetry:this._options.isFromBackground||!1},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.IMPRESSION,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.level===i.i.FRAME?s.a.PPS_MODE?i.b.NORMAL:null:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,selector:"#settings-link",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.PPS.GO_PROFILE,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,selector:"#sidebar_iframe_block_accept_risk",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.PPS.ACCEPT_RISK,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,selector:"#sidebar_iframe_block_btn_block",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.PPS.BLOCKED,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,selector:"#sidebar_block_page_btn_accept_risk",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.PPS.ACCEPT_RISK,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,selector:"#sidebar_block_page_btn_block",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.PPS.BLOCKED,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BLOCK_PAGE,selector:"#sidebar-close",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.BLOCK_PAGE,interaction_type:i.h.CLOSE_CLICKED,colour:i.c.toTelemetryBlockState(this._options.colour),level:this._options.level,style:this._options.blockPageStyle||"UNKNOWN",_event_name:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BROWSER_ACTION_CLICKED,sendTelemetry:!0},messages:[{template:{name:i.g.BROWSER_ACTION_CLICKED,interaction_type:i.h.WEBADVISOR,badge_count:this._options.count,_event_name:i.e.BROWSER_ACTION_CLICKED,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BROWSER_BADGE_UPDATE,sendTelemetry:!0},messages:[{template:{name:i.e.BROWSER_BADGE_UPDATE,feature:i.h.BROWSER_BADGE.SMA,count:this._options.count,_event_name:i.e.BROWSER_BADGE_UPDATE,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.BROWSER_NAVIGATE,sendTelemetry:this._options.isFromBackground},messages:[{template:{url:this._options.url,browser:o.a.browserTypeToString(),_event_name:i.e.BROWSER_NAVIGATE}}]},{trigger:{identifier:i.e.CRYPTOJACKING_BLOCK,state:i.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{interaction_type:i.h.IMPRESSION,name:i.g.CRYPTOJACKING_BLOCK,_event_name:i.e.CRYPTOJACKING_BLOCK,browser:o.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:i.e.CRYPTOJACKING_BLOCK,selector:"#cryptojacking_learn_link",action:i.m.ACTION.CLICK},messages:[{template:{interaction_type:i.h.CRYPTOJACKING.LEARN_MORE_CLICKED,name:i.g.CRYPTOJACKING_BLOCK,_event_name:i.e.CRYPTOJACKING_BLOCK,browser:o.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:i.e.CRYPTOJACKING_BLOCK,selector:".crypto-block-actions__close",action:i.m.ACTION.CLICK},messages:[{template:{interaction_type:i.h.CLOSE_CLICKED,name:i.g.CRYPTOJACKING_BLOCK,_event_name:i.e.CRYPTOJACKING_BLOCK,browser:o.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:i.e.CRYPTOJACKING_BLOCK,selector:"#cryptojacking_banner_allow_btn",action:i.m.ACTION.CLICK},messages:[{template:{interaction_type:i.h.CRYPTOJACKING.WHITELISTED,name:i.g.CRYPTOJACKING_BLOCK,_event_name:i.e.CRYPTOJACKING_BLOCK,browser:o.a.browserTypeToString(),is_shown:!0,domain:this._options.domain||"default",crypto_miner:this._options.miner||"default"}}]},{trigger:{identifier:i.e.DOWNLOAD_BLOCK,state:i.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{name:i.g.DOWNLOAD_BLOCK,interaction_type:i.h.IMPRESSION,process_name:i.m.MISC.UNKNOWN,file_name:i.m.MISC.UNKNOWN,colour:i.m.MISC.UNKNOWN,ui_type:i.m.MISC.ACTION_PANEL,_event_name:i.e.DOWNLOAD_BLOCK,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.DOWNLOAD_BLOCK,selector:"#ap_download_scanning_delete_file_btn",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.DOWNLOAD_BLOCK,interaction_type:i.h.PPS.BLOCKED,process_name:i.m.MISC.UNKNOWN,file_name:i.m.MISC.UNKNOWN,colour:i.m.MISC.UNKNOWN,ui_type:i.m.MISC.ACTION_PANEL,_event_name:i.e.DOWNLOAD_BLOCK,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.DOWNLOAD_BLOCK,selector:"#sidebar_ds_malicious_keep_file",action:i.m.ACTION.CLICK},messages:[{template:{name:i.g.DOWNLOAD_BLOCK,interaction_type:i.h.PPS.ACCEPT_RISK,process_name:i.m.MISC.UNKNOWN,file_name:i.m.MISC.UNKNOWN,colour:i.m.MISC.UNKNOWN,ui_type:i.m.MISC.ACTION_PANEL,_event_name:i.e.DOWNLOAD_BLOCK,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.DOWNLOAD_SCAN_UI,sendTelemetry:r.a.PPS_MODE},messages:[{template:{name:i.g.DOWNLOAD_SCAN_UI,interaction_type:this._options.interaction_type,count:this._options.count,_event_name:i.e.DOWNLOAD_SCAN_UI,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,sendTelemetry:!0},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.IMPRESSION,tab:i.c.toTelemetrySettingTab(i.f.PREFERENCE),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:`#${i.m.MISC.SETTINGS_TAB_PREFIX}${i.f.PREFERENCE}`,action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.IMPRESSION,tab:i.c.toTelemetrySettingTab(i.f.PREFERENCE),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:`#${i.m.MISC.SETTINGS_TAB_PREFIX}${i.f.WHITELIST}`,action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.IMPRESSION,tab:i.c.toTelemetrySettingTab(i.f.WHITELIST),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:`#${i.m.MISC.SETTINGS_TAB_PREFIX}${i.f.ABOUT}`,action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.IMPRESSION,tab:i.c.toTelemetrySettingTab(i.f.ABOUT),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:`#${i.m.MISC.SETTINGS_TAB_PREFIX}${i.f.STATISTICS}`,action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.IMPRESSION,tab:i.c.toTelemetrySettingTab(i.f.STATISTICS),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:"#settings_preference_reset_button",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.PPS.RESET_CLICKED,tab:i.c.toTelemetrySettingTab(i.f.PREFERENCE),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:"#remove-btn",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.PPS.WHITELIST_DELETED,tab:i.c.toTelemetrySettingTab(i.f.WHITELIST),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:"#add-btn",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.PPS.WHITELIST_ADDED,tab:i.c.toTelemetrySettingTab(i.f.WHITELIST),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.PROFILE_INFO,selector:"#settings_whitelist_input",action:i.m.ACTION.KEYDOWN},messages:[{template:{name:i.e.PROFILE_INFO,interaction_type:i.h.PPS.WHITELIST_ADDED,tab:i.c.toTelemetrySettingTab(i.f.WHITELIST),_event_name:i.e.PROFILE_INFO,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.SEARCH_SUGGEST_BLOCK_PAGE,selector:"#block_page_search_input",action:i.m.ACTION.KEYDOWN},messages:[{template:{name:i.e.SEARCH_SUGGEST,interaction_type:i.h.IMPRESSION,search_type:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString(),_event_name:i.e.SEARCH_SUGGEST}}]},{trigger:{identifier:i.e.SEARCH_SUGGEST_BLOCK_PAGE,sendTelemetry:this._options.selected},messages:[{template:{name:i.e.SEARCH_SUGGEST,interaction_type:i.h.SELECTION,search_type:i.e.BLOCK_PAGE,browser:o.a.browserTypeToString(),_event_name:i.e.SEARCH_SUGGEST}}]},{trigger:{identifier:i.e.SEARCH_SUGGEST_TYPOSQUATTING,selector:"#typosquatting_message_search_input",action:i.m.ACTION.KEYDOWN},messages:[{template:{name:i.e.SEARCH_SUGGEST,interaction_type:i.h.IMPRESSION,search_type:i.e.TYPOSQUATTING,browser:o.a.browserTypeToString(),_event_name:i.e.SEARCH_SUGGEST}}]},{trigger:{identifier:i.e.SEARCH_SUGGEST_TYPOSQUATTING,sendTelemetry:this._options.selected},messages:[{template:{name:i.e.SEARCH_SUGGEST,interaction_type:i.h.SELECTION,search_type:i.e.TYPOSQUATTING,browser:o.a.browserTypeToString(),_event_name:i.e.SEARCH_SUGGEST}}]},{trigger:{identifier:i.e.SECURE_SEARCH_HIT,sendTelemetry:!0},messages:[{template:{name:i.g.SECURE_SEARCH_HIT,search_type:i.l.DEFAULT,_event_name:i.e.SECURE_SEARCH_HIT,browser:o.a.browserTypeToString(),type_tag:this._options.typeTag,provider_type:this._options.engineName}}]},{trigger:{identifier:i.e.SIDEBAR_PANEL,sendTelemetry:!0},messages:[{template:{name:i.g.SIDEBAR_PANEL,interaction_type:this._options.interaction_type,_event_name:i.e.SIDEBAR_PANEL,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.SITE_REPORT,state:i.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{name:i.e.SITE_REPORT,interaction_type:i.h.IMPRESSION,block_state:i.c.toTelemetryBlockState(this._options.blockState),site_categories:this._options.siteCategories,url:this._options.displayUrl,style:i.m.MISC.ACTION_PANEL,_event_name:i.e.SITE_REPORT,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.SITE_REPORT,selector:"#sidebar__settings",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.SITE_REPORT,interaction_type:i.h.PPS.GO_PROFILE,block_state:i.c.toTelemetryBlockState(this._options.blockState),site_categories:this._options.siteCategories,url:this._options.displayUrl,style:i.m.MISC.ACTION_PANEL,_event_name:i.e.SITE_REPORT,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.SITE_REPORT,selector:"#sidebar-close",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.SITE_REPORT,interaction_type:i.h.CLOSE_CLICKED,block_state:i.c.toTelemetryBlockState(this._options.blockState),site_categories:this._options.siteCategories,url:this._options.displayUrl,style:i.m.MISC.ACTION_PANEL,_event_name:i.e.SITE_REPORT,browser:o.a.browserTypeToString()}}]},{trigger:{identifier:i.e.SMA_REPUTATION,sendTelemetry:!0},messages:[{template:{name:i.g.SMA_REPUTATION,interaction_type:i.h.IMPRESSION,_event_name:i.e.SMA_REPUTATION,browser:o.a.browserTypeToString(),site:this._options.site,color:i.m.MISC.GREEN,count:this._options[i.m.MISC.GREEN]}},{template:{name:i.g.SMA_REPUTATION,interaction_type:i.h.IMPRESSION,_event_name:i.e.SMA_REPUTATION,browser:o.a.browserTypeToString(),site:this._options.site,color:i.m.MISC.RED,count:this._options[i.m.MISC.RED]}},{template:{name:i.g.SMA_REPUTATION,interaction_type:i.h.IMPRESSION,_event_name:i.e.SMA_REPUTATION,browser:o.a.browserTypeToString(),site:this._options.site,color:i.m.MISC.YELLOW,count:this._options[i.m.MISC.YELLOW]}},{template:{name:i.g.SMA_REPUTATION,interaction_type:i.h.IMPRESSION,_event_name:i.e.SMA_REPUTATION,browser:o.a.browserTypeToString(),site:this._options.site,color:i.m.MISC.UNKNOWN,count:this._options[i.m.MISC.UNKNOWN]}},{template:{name:i.g.SMA_REPUTATION,interaction_type:i.h.IMPRESSION,_event_name:i.e.SMA_REPUTATION,browser:o.a.browserTypeToString(),site:this._options.site,color:i.m.MISC.HACKERSAFE,count:this._options[i.m.MISC.HACKERSAFE]}}]},{trigger:{identifier:i.e.TOAST,sendTelemetry:!0},messages:[{template:{triggerType:"Impression",browser:o.a.browserTypeToString(),category:"ToastCheck",_event_name:"ToastCheckCompleted"}},{template:{action_type:"Impression",browser:o.a.browserTypeToString(),provider:this._options.toastData?this._options.toastData.providerId:"",category:"SecureSearchToast",_event_name:"Secure_Search_Toast"}}]},{trigger:{identifier:i.e.TOAST,selector:"#iframe-toast-actions__yes",action:i.m.ACTION.CLICK},messages:[{template:{triggerType:"Acceptance",browser:o.a.browserTypeToString(),category:"ToastCheck",_event_name:"ToastCheckCompleted"}},{template:{browser:o.a.browserTypeToString(),provider:this._options.toastData?this._options.toastData.providerId:"",category:"SecureSearchToast",_event_name:"Secure_Search_Toast"}}]},{trigger:{identifier:i.e.TOAST,selector:"#iframe-toast-actions__no",action:i.m.ACTION.CLICK},messages:[{template:{triggerType:"Acceptance",browser:o.a.browserTypeToString(),category:"ToastCheck",_event_name:"ToastCheckCompleted"}},{template:{browser:o.a.browserTypeToString(),provider:this._options.toastData?this._options.toastData.providerId:"",category:"SecureSearchToast",_event_name:"Secure_Search_Toast",action_type:"Declined"}}]},{trigger:{identifier:i.e.TYPOSQUATTING,sendTelemetry:this._options.isFromBackground},messages:[{template:{name:i.g.TYPOSQUATTING,interaction_type:i.h.IMPRESSION,browser:o.a.browserTypeToString(),_event_name:i.e.TYPOSQUATTING}}]},{trigger:{identifier:i.e.REMOTE_ACCESS_TROJAN,state:i.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{name:i.e.REMOTE_ACCESS_TROJAN,interaction_type:i.h.IMPRESSION,browser:o.a.browserTypeToString(!0),url:this._options.url,_event_name:i.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:i.e.REMOTE_ACCESS_TROJAN,selector:"#rat_detection_got_it_btn",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.REMOTE_ACCESS_TROJAN,interaction_type:i.h.RAT_DETECTION.ACKNOWLEDGED,browser:o.a.browserTypeToString(!0),url:this._options.url,_event_name:i.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:i.e.REMOTE_ACCESS_TROJAN,selector:"#sidebar_rat_detection_whitelist_btn",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.REMOTE_ACCESS_TROJAN,interaction_type:i.h.RAT_DETECTION.WHITELISTED,browser:o.a.browserTypeToString(!0),url:this._options.url,_event_name:i.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:i.e.REMOTE_ACCESS_TROJAN,selector:"#sidebar-close",action:i.m.ACTION.CLICK},messages:[{template:{name:i.e.REMOTE_ACCESS_TROJAN,interaction_type:i.h.CLOSE_CLICKED,browser:o.a.browserTypeToString(!0),url:this._options.url,_event_name:i.e.REMOTE_ACCESS_TROJAN}}]},{trigger:{identifier:i.e.SECURE_SEARCH_TOAST,sendTelemetry:!0},messages:[{template:{action_type:i.h.IMPRESSION,_event_name:i.e.SECURE_SEARCH_TOAST,browser:o.a.browserTypeToString()||i.m.MISC.UNKNOWN,provider:i.j.YAHOO,toastType:i.k.FIRST_ANNOTATION,category:i.d.SECURE_SEARCH_TOAST}}]},{trigger:{identifier:i.e.SECURE_SEARCH_TOAST,selector:".turn-ss-on",action:i.m.ACTION.CLICK},messages:[{template:{action_type:i.h.ACCEPTED,_event_name:i.e.SECURE_SEARCH_TOAST,browser:o.a.browserTypeToString()||i.m.MISC.UNKNOWN,provider:i.j.YAHOO,toastType:i.k.FIRST_ANNOTATION,category:i.d.SECURE_SEARCH_TOAST}}]},{trigger:{identifier:i.e.SECURE_SEARCH_TOAST,selector:"#close-balloon",action:i.m.ACTION.CLICK},messages:[{template:{action_type:i.h.DECLINED,_event_name:i.e.SECURE_SEARCH_TOAST,browser:o.a.browserTypeToString()||i.m.MISC.UNKNOWN,provider:i.j.YAHOO,toastType:i.k.FIRST_ANNOTATION,category:i.d.SECURE_SEARCH_TOAST}}]},{trigger:{identifier:i.e.FIND_SIMILAR_PAGES,sendTelemetry:!0},messages:[{template:{_event_name:i.e.FIND_SIMILAR_PAGES,name:i.e.FIND_SIMILAR_PAGES,interaction_type:this._options.interaction_type,domain:this._options.domain,browser:o.a.browserTypeToString().toLowerCase()}}]},{trigger:{identifier:i.e.WELCOME_SS_ON,sendTelemetry:!0},messages:[{template:{_event_name:i.e.WELCOME_SS_ON,category:i.e.WELCOME_SS_ON,action_type:i.h.IMPRESSION,browser:o.a.browserTypeToString(!0),sequence:this._options.sequence,type:this._options.type}}]},{trigger:{identifier:i.e.WELCOME_SS_ON,selector:".action-buttons > .got-it",action:i.m.ACTION.CLICK},messages:[{template:{_event_name:i.e.WELCOME_SS_ON,category:i.e.WELCOME_SS_ON,action_type:i.h.DECLINED,browser:o.a.browserTypeToString(!0),sequence:1,type:i.n.FIRST_ANNOTATION}}]},{trigger:{identifier:i.e.WELCOME_SS_ON,selector:".action-buttons > .learn-more",action:i.m.ACTION.CLICK},messages:[{template:{_event_name:i.e.WELCOME_SS_ON,category:i.e.WELCOME_SS_ON,action_type:i.h.ACCEPTED,browser:o.a.browserTypeToString(!0),sequence:1,type:i.n.FIRST_ANNOTATION}}]},{trigger:{identifier:i.e.WELCOME_SS_ON,selector:"button#mc-accept-btn-next",action:i.m.ACTION.CLICK},messages:[{template:{_event_name:i.e.WELCOME_SS_ON,category:i.e.WELCOME_SS_ON,action_type:i.h.ACCEPTED,browser:o.a.browserTypeToString(!0),sequence:this._options.sequence,type:this._options.type}},{template:{_event_name:i.e.WELCOME_SS_ON,category:i.e.WELCOME_SS_ON,action_type:i.h.IMPRESSION,browser:o.a.browserTypeToString(!0),sequence:this._options.sequence+1,type:this._options.type}}]},{trigger:{identifier:i.e.WELCOME_SS_ON,selector:"button#mc-accept-btn-done",action:i.m.ACTION.CLICK},messages:[{template:{_event_name:i.e.WELCOME_SS_ON,category:i.e.WELCOME_SS_ON,action_type:i.h.ACCEPTED,browser:o.a.browserTypeToString(!0),sequence:this._options.sequence+1,type:this._options.type}}]},{trigger:{identifier:i.e.WSS_ANALYTICS,sendTelemetry:!0},messages:[{template:{_event_name:i.e.WSS_ANALYTICS,message:this._options.message}}]},{trigger:{identifier:i.e.AMAZON_UPSELL_SIDEBAR_TOAST,state:i.m.MISC.LOADED,sendTelemetry:!0},messages:[{template:{category:i.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||i.m.MISC.UNKNOWN,sequence:this._options.sequence||i.m.MISC.UNKNOWN,product:i.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||i.m.MISC.UNKNOWN,action_type:i.h.IMPRESSION||i.m.MISC.UNKNOWN,variation:this._options.variation||i.m.MISC.UNKNOWN,browser:o.a.browserTypeToString(!0)||i.m.MISC.UNKNOWN,url:this._options.url||i.m.MISC.UNKNOWN,_event_name:i.e.PRODUCT_UPSELL_TOAST}}]},{trigger:{identifier:i.e.AMAZON_UPSELL_SIDEBAR_TOAST,selector:"#button__amazon_extn_get",action:i.m.ACTION.CLICK},messages:[{template:{category:i.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||i.m.MISC.UNKNOWN,sequence:this._options.sequence||i.m.MISC.UNKNOWN,product:i.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||i.m.MISC.UNKNOWN,action_type:i.h.UPSELL_SIDEBAR.ACCEPTED||i.m.MISC.UNKNOWN,variation:this._options.variation||i.m.MISC.UNKNOWN,browser:o.a.browserTypeToString(!0)||i.m.MISC.UNKNOWN,url:this._options.url||i.m.MISC.UNKNOWN,_event_name:i.e.PRODUCT_UPSELL_TOAST}}]},{trigger:{identifier:i.e.AMAZON_UPSELL_SIDEBAR_TOAST,selector:"#link__amazon_extns_decline",action:i.m.ACTION.CLICK},messages:[{template:{category:i.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||i.m.MISC.UNKNOWN,sequence:this._options.sequence||i.m.MISC.UNKNOWN,product:i.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||i.m.MISC.UNKNOWN,action_type:i.h.UPSELL_SIDEBAR.DECLINED||i.m.MISC.UNKNOWN,variation:this._options.variation||i.m.MISC.UNKNOWN,browser:o.a.browserTypeToString(!0)||i.m.MISC.UNKNOWN,url:this._options.url||i.m.MISC.UNKNOWN,_event_name:i.e.PRODUCT_UPSELL_TOAST}}]},{trigger:{identifier:i.e.AMAZON_UPSELL_SIDEBAR_TOAST,selector:"#sidebar-close",action:i.m.ACTION.CLICK},messages:[{template:{category:i.e.PRODUCT_UPSELL_TOAST,trigger:this._options.trigger||i.m.MISC.UNKNOWN,sequence:this._options.sequence||i.m.MISC.UNKNOWN,product:i.m.SIDEBAR_AMAZON_UPSELL.PRODUCT||i.m.MISC.UNKNOWN,action_type:i.h.UPSELL_SIDEBAR.CLOSED||i.m.MISC.UNKNOWN,variation:this._options.variation||i.m.MISC.UNKNOWN,browser:o.a.browserTypeToString(!0)||i.m.MISC.UNKNOWN,url:this._options.url||i.m.MISC.UNKNOWN,_event_name:i.e.PRODUCT_UPSELL_TOAST}}]}]}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var i=n(33);class o{constructor(e,t=null){this.closing=!1,this.showing=!1,this.animateReload=!0,this.allowReplace=!0,this.componentData=null,this.template=null,this.hostNode=null,this.shadowRoot=null,this.hostStyles=e,this.baseTemplate=t,this.showContainer=this.showContainer.bind(this),this.closeContainer=this.closeContainer.bind(this),this.query=this.query.bind(this),this.clickListener=this.clickListener.bind(this),this.bgGrayout=!1,this.bgGrayoutElement=null}async initContainer(e,t=null){if(this.closing)return!1;if(this.showing&&!1===this.allowReplace&&o.isSameObject(e,this.template))return!1;if(this.componentData&&JSON.stringify(this.componentData)===JSON.stringify(t))return!1;this.componentData=t;const{allowReplace:n=!0,animateReload:s=!0}=e;if(this.allowReplace=n,this.animateReload=s,this.showing=!0,this.hostNode&&n)return await this.reloadContainer(e),!0;let r={...e};this.template=r,null===this.baseTemplate&&(this.baseTemplate=r,r=null);const a={hostStyles:{...this.hostStyles.DEFAULT,...this.hostStyles.HIDE}},{hostNode:c,shadowRoot:l}=await i.a.loadTemplate(a,this.baseTemplate,r);return this.hostNode=c,this.shadowRoot=l,!0}static isSameObject(e=null,t=null){return null===e&&null===t||e&&t&&JSON.stringify(e)===JSON.stringify(t)}async reloadContainer(e,t=this.animateReload){await this.closeContainer(!1,t),this.template=e,await i.a.reloadTemplate(e,this.baseTemplate,this.shadowRoot)}setBackgroundOverlay(t){const n=e("body");if(t){const t="display:none; width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 99999; background: rgba(0, 0, 0, 0.3);";this.bgGrayoutElement=e(`<div style="${t}"></div>`),n.append(this.bgGrayoutElement),n.css("overflow","hidden"),this.bgOverlay.fadeIn()}else this.bgGrayoutElement&&this.bgGrayoutElement.fadeOut(),n.css("overflow","auto")}showBackgroundGrayout(t){if(this.bgGrayout=t,!t)return;this.bgGrayoutElement=e('<div style="display:none; width: 100%; height: 100%; position: fixed; top: 0px; left: 0px; z-index: 99999; background: rgba(0, 0, 0, 0.3);"></div>');const n=e("body");n.append(this.bgGrayoutElement),n.css("overflow","hidden"),this.bgGrayoutElement.fadeIn()}hideBackgroundGrayOut(){this.bgGrayoutElement&&this.bgGrayout&&(this.bgGrayoutElement.fadeOut(),e("body").css("overflow","auto"),this.bgGrayout=!1)}showContainer(t=null){const n=t&&t.bgGrayout;this.showBackgroundGrayout(n),e(this.hostNode).css(this.hostStyles.SHOW)}closeContainer(t=!0,n=!0){if(this.hideBackgroundGrayOut(),this.closing)return;this.closing=!0;const i=()=>{this.closing=!1,this.showing=!1,t&&(e(this.hostNode).remove(),this.hostNode=null,this.componentData=null,this.template=null,this.shadowRoot=null,this.baseTemplate=null)};if(n)return e(this.hostNode).css({...this.hostStyles.DEFAULT,...this.hostStyles.HIDE}),new Promise(e=>setTimeout(()=>e(i()),500));i()}query(t){return e(t,this.shadowRoot)}clickListener(e,t){const n=this.shadowRoot.querySelector(e);n&&n.addEventListener("click",e=>{e.isTrusted&&t(e)})}}}).call(this,n(18))},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}));var i=n(6);const o={SHOPPING:"SHOPPING"},s={[o.SHOPPING]:{count:i.c.AMAZON_UPSELL_GTI_SHOPPING_SHOWN_COUNT,lastShown:i.c.AMAZON_UPSELL_GTI_SHOPPING_LAST_SHOWN,showing:i.a.AMAZON_UPSELL_SHOPPING_SHOWING,lastDomainShown:i.c.AMAZON_UPSELL_GTI_SHOPPING_LAST_DOMAIN_SHOWN}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n(8),o=n(4),s=n(5),r=n(15),a=n(16);class c{static async shouldShowSidebar(){const e=document.location.href;if(!i.a.bkGlobals.nativeSettings.RAT_DETECTION_ENABLED.value)return!1;if(!o.a.isProperWebURL(e)||o.a.isSiteAdvisorUrl(e))return!1;const t=r.a.getDomain(e);if(await c.getDomainVisited()===t)return!1;c.updateShowing(!1);const n=await s.a.whitelist(a.a.GET,a.c.RAT_DETECTION,{});if(!Array.isArray(n))return s.a.logError("invalid RAT whitelist from background cache storage"),!1;if(n.includes(t))return!1;if(i.a.bkGlobals.ratBlacklist.includes(t))return!0;const l=(await s.a.makeGTIRequest(e,!1,[e],void 0)).annotationMap[e];return Array.isArray(l.cat)?l.cat.includes(i.a.bkGlobals.RAT_DETECTION_CATEGORIES[0]):(s.a.logError("invalid category result from GTI response"),!1)}static updateShowing(e){s.a.updateRatDetectionShowingFlag(e)}static async getDomainVisited(){return await s.a.getDomainVisitedDetails()}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return r}));var i=n(3),o=n(21),s=n(5);class r{static async loadTemplate(t,n,i=null){const{hostStyles:o}=t,a=document.createElement("div");e(a).css(o);const c=(await s.a.getBkGlobals()).shadowMode,l=a.attachShadow({mode:c});return await r.populateContainer(n,l),i&&await r.populateContainer(i,l),document.body.appendChild(a),{hostNode:a,shadowRoot:l}}static async populateContainer(e,t){const{htmlPath:n,cssPath:i,containerId:o}=e,s=await r.getTemplate(n,i);(o?t.querySelector(`#${o}`):t).appendChild(s)}static async reloadTemplate(e,t,n){n.innerHTML="",t&&await r.populateContainer(t,n),await r.populateContainer(e,n)}static async getTemplate(e,t=null){const n=new o.a,s=document.createElement("template"),r=await n.sendHttpRequest({url:i.a.runtime.getURL(e)}),a=await r.text();let c="";if(t){const e=await n.sendHttpRequest({url:i.a.runtime.getURL(t)});c=await e.text(),c=`<style>${c}</style>`}s.innerHTML=`${c}${a}`;for(const e of s.content.querySelectorAll("img[x-mcsrc]")){const t=e.getAttribute("src");e.src=i.a.runtime.getURL(t)}return s.content.cloneNode(!0)}}}).call(this,n(18))},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(8),o=n(6),s=n(5),r=n(31),a=n(14),c=n(19);class l{static async shouldShowMessage(){const e={show:!1,count:-1,lastShown:-1,categoryId:null,upsellCategoryType:null,domain:null,amazonExtnStatus:null},{isEnabled:t,status:n}=await l.isExtnInstalled();if(t)return e;const{count:i,lastShown:o,categoryId:s,upsellCategoryType:r,sameTabCategory:a,domain:c}=await l.getAmazonUpsellDetails();return a&&await l.validateCachedData(r,i,o,c)?(e.amazonExtnStatus=n,e.count=i,e.lastShown=o,e.categoryId=s,e.upsellCategoryType=r,e.domain=c,e.show=!0,e):e}static async isExtnInstalled(){const e={isEnabled:!0,status:0},t=a.a.get("AmazonAssistant"),n=await s.a.getExtensionStatus(t);return n<0||1===n?e:(e.isEnabled=!1,e.status=n,e)}static async shouldDelayToastShow(){const{AMAZON_EXTN_DELAY_TIMESTAMP:e}=i.a.bkGlobals.nativeSettings,t=[{scope:c.c.SYSTEM,name:e.name}];return void 0!==(await s.a.getNativeValue(t))[e.name]}static async validateCachedData(e,t,n,a){if(t>2)return!1;const c=864e5*i.a.bkGlobals.nativeSettings.AMAZON_EXTN_TOAST_CADENCE.value;if(0!==n&&(new Date).getTime()<n+c)return!1;const l=r.a[e],u={[l.lastDomainShown]:null};return a!==((await s.a.cacheStore(o.b.GET,u))[l.lastDomainShown]||null)}static async updateShownCounter(e,t){const n=r.a[e];if(!n)return;const i={[n.count]:1},a=await s.a.cacheStore(o.b.GET,i);s.a.cacheStore(o.b.SET,{[n.count]:a[n.count]+1}),s.a.cacheStore(o.b.SET,{[n.lastShown]:(new Date).getTime()}),t&&s.a.cacheStore(o.b.SET,{[n.lastDomainShown]:t})}static async getAmazonUpsellDetails(){return await s.a.getAmazonUpsellCategoryDetails()}static updateShowing(e,t){s.a.updateUpsellShowingFlag(e,t)}}},function(e,t,n){"use strict";var i=n(8),o=n(6),s=n(5);class r{static getSMAEngineData(e){return i.a.searchEngine.getSMAForUrl(e)}static async shouldShowSMANotification(e){if(!r.getSMAEngineData(e))return!1;const t=o.c.SMA_FIRST_TIME;return(await s.a.cacheStore(o.b.GET,{[t]:!0}))[t]&&s.a.cacheStore(o.b.SET,{[t]:!1}),isFirstTime}}var a=r,c=n(30);const l={DEFAULT:{top:"0",padding:"0",margin:"0",zIndex:"2147483646",position:"fixed",border:"none",opacity:"0",left:"auto",right:"0",display:"block",maxWidth:"none",boxShadow:"10px 0 35px rgba(0, 0, 0, 0.2)",backgroundColor:"#FFFFFF"},HIDE:{transition:"width 0s 0.4s, height 0s 0.4s, opacity 0.4s, transform 0.4s",transform:"translate3d(400px, 0, 0)",opacity:"0",width:"400px",height:"0"},SHOW:{transition:"opacity 0.4s, transform 0.4s",transform:"translate3d(0, 0, 0)",opacity:"1",width:"400px",height:"100%"}};class u extends c.a{constructor(){const e={htmlPath:"html/sidebar/sidebar_action_panel.html",cssPath:"css/sidebar_action_panel_style.css"};super(l,e),this.loadAsBaseTemplate=null,this.defaultBaseTemplate=e}async init(e,t=null,n=!1,i=!1){!0===this.loadAsBaseTemplate&&this.loadAsBaseTemplate!==i&&(this.baseTemplate=this.defaultBaseTemplate),i&&(this.baseTemplate=null),this.loadAsBaseTemplate=i;const o=await this.initContainer(e,t);return o?(this.initBaseEventListeners(n),o):o}initBaseEventListeners(e){!this.loadAsBaseTemplate&&this.clickListener("#sidebar-close",()=>{e?window.history.length<2?s.a.closeTab():window.history.go(-1):this.closeContainer()})}}var d=n(1),h=n(2),p=n(11),_=n(3),m=n(16),g=n(15),E=n(28),f=n(0),T=n(10);class S{constructor(e,t,n=!1){this.telemetryData={},this.componentData=e,this.isForegroundPage=n,this.blockPageData=null,this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.BLOCK_PAGE,containerMeta:t}}async init(){if(this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.isForegroundPage){const e=await s.a.getTabData();this.blockPageData=e.actionPanelData.componentData.blockPageData}else this.blockPageData=this.componentData.blockPageData;const{blockState:e,categories:t}=this.blockPageData,[n,i]=this.stateOfPage(e);let o=await this.getVariantCount(i);const r=2===o;this.telemetryData.blockPageStyle=r?f.b.NORMAL:f.b.EDUCATION,this.telemetryData.pageLevel=this.isForegroundPage?f.i.TOP:f.i.INLINE,this.updateHtml(n,r),this.updateLocales(n,r),this.renderCategories(t),r||this.saveVariantCount(i,++o),this.initEventListeners(),this.showContainer(),this.options.colour=this.telemetryData.color,this.options.level=this.telemetryData.pageLevel,this.options.blockPageStyle=this.telemetryData.blockPageStyle,p.a.handle(this.options)}async getVariantCount(e){const t={};return t[e]=0,(await s.a.cacheStore(o.b.GET,t))[e]||0}initEventListeners(){this.clickListener("#settings-link",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)}),this.clickListener("#sidebar_block_page_btn_accept_risk",()=>{const{url:e}=this.blockPageData,t=g.a.getDomain(e);this.sendBlockPageTelemetry(InteractionTypes.PPS.ACCEPT_RISK),s.a.whitelist(m.a.ADD,m.c.BLOCK_PAGE,{domains:[t]}),this.isForegroundPage?window.location.replace(e):window.location.href=e}),this.clickListener("#sidebar_block_page_btn_block",()=>{const{blockState:e}=this.blockPageData,t={command:d.d.SIDEBAR,payload:{subcommand:d.i.BADGE_COLLECTION,componentData:{badgeCollectionData:{caller:d.i.BLOCK_PAGE,state:h.o[e]}}}};s.a.contentHandler(t)})}stateOfPage(e){let t,n;switch(e){case h.c.RED:t=h.o[h.c.RED],n=o.c.BLOCK_PAGE_RED_FIRST_VARIANT_COUNT;break;case h.c.YELLOW:t=h.o[h.c.YELLOW],n=o.c.BLOCK_PAGE_YELLOW_FIRST_VARIANT_COUNT;break;case h.c.PHISHING:t=h.o[h.c.PHISHING],n=o.c.BLOCK_PAGE_PHISHING_FIRST_VARIANT_COUNT}return[t,n]}renderCategories(e){const t=this.query(".threats__list"),n=[];for(const i of e){if(n.includes(i))continue;n.push(i);const e=this.strConvertor.localeData(`category_id_${i}_name`),o=this.strConvertor.localeData(`category_id_${i}_description`),s=Math.random().toString(36).substring(7),r=`\n        <li>\n          <span class="threat">${e}</span>\n          <span class="threat-image">\n            <img id="threat-info-${s}" class="threat-info" src="${_.a.runtime.getURL("/images/action_panel/info-circle-icon.svg")}" alt="info-icon">\n          </span>\n        </li>\n      `;t.append(r);const a={src:`#threat-info-${s}`,title:e,content:o,offsetx:2,offsety:-5};Object(E.a)(a,this.shadowRoot)}}saveVariantCount(e,t){const n={};n[e]=t,s.a.cacheStore(o.b.SET,n)}updateHtml(e,t){const n=_.a.runtime.getURL(`/images/action_panel/ap_jumbo_${e}.svg`);this.query("header.border-btm").show(),this.query(".jumbo__image").attr("src",n),e===h.o[h.c.PHISHING]&&t&&this.query(".sidebar__jumbo").addClass("jumbo__phishing")}updateLocales(e,t){const n=t?"_variant_2":"";this.query("#jumbo__title").text(this.strConvertor.localeData(`sidebar_block_page_title_${e}${n}`)),this.query("#jumbo__description").text(this.strConvertor.localeData(`sidebar_block_page_description_${e}${n}`)),this.query("#threats__title").text(this.strConvertor.localeData(`sidebar_block_page_threats_title_${e}${n}`));const i=`<a id='settings-link' href='#'>${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,o=this.strConvertor.localeData("sidebar_action_panel_settings_link",[i]);this.query("#sidebar__settings").html(o)}}var A=n(4);class O{constructor(e,t){this.componentData=e,this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.SITE_REPORT,containerMeta:t}}async init(){try{const{annotationItem:e,url:t}=this.componentData.siteReportData;this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.renderSiteReport(e,g.a.getURI(t)),this.initEventListeners(),this.showContainer(),this.options.state=f.m.MISC.LOADED,p.a.handle(this.options)}catch(e){s.a.logError(e)}}renderSiteReport(e,t){const n=A.a.toColor(e),i=h.o[n];this.options.blockState=A.a.toBlockState(e),this.options.displayUrl=t,this.updateHtml({state:i,displayUrl:t}),this.updateLocales(i),this.renderCategories(e.cat)}updateHtml({state:e,displayUrl:t}){if(this.query(`.jumbo__image--${e}`).show(),e===h.o[h.c.UNKNOWN])return this.query(".jumbo__site-url").hide(),void this.query(".sidebar__threats").hide();this.query(".jumbo__site-url").addClass(`jumbo__site-url--${e}`),this.query("#display-url__image").attr("src",_.a.runtime.getURL(`/images/action_panel/ap_site_report_url_${e}.svg`));const n=t.length>32?`${t.substring(0,31)}...`:t;this.query("#display-url").text(n)}updateLocales(e){this.query("#jumbo__title").text(this.strConvertor.localeData(`sidebar_site_report_title_${e}`)),this.query("#jumbo__description").text(this.strConvertor.localeData(`sidebar_site_report_description_${e}`)),this.query("#threats__title").text(this.strConvertor.localeData(`sidebar_site_report_threats_title_${e}`));const t=`<a id="settings-link" href="#">${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,n=this.strConvertor.localeData("sidebar_action_panel_settings_link",[t]);this.query("#sidebar__settings").html(n)}renderCategories(e=[]){const t=this.query(".threats__list"),n=[];let i="";for(const o of e){if(n.includes(o))continue;n.push(o);const e=this.strConvertor.localeData(`category_id_${o}_name`),s=this.strConvertor.localeData(`category_id_${o}_description`);i+=`${e},`;const r=Math.random().toString(36).substring(7),a=`\n        <li>\n          <span class="threat">${e}</span>\n          <span class="threat-image">\n            <img id="threat-info-${r}" class="threat-info" src="${_.a.runtime.getURL("/images/action_panel/info-circle-icon.svg")}" alt="info-icon">\n          </span>\n        </li>\n      `;t.append(a);const c={src:`#threat-info-${r}`,title:e,content:s,offsetx:2,offsety:-5};Object(E.a)(c,this.shadowRoot)}i=i.substr(0,i.length-1),this.options.siteCategories=i}initEventListeners(){this.clickListener("#sidebar__settings",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)})}}class N{constructor(e,t){this.componentData=e,this.telemetryData={},this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.BLOCK_PAGE,containerMeta:t}}async init(){this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.telemetryData.color=h.h.UNKNOWN,this.telemetryData.pageLevel=f.i.FRAME,this.telemetryData.blockPageStyle=f.b.NORMAL,this.updateLocales(),this.initListeners(),this.showContainer(),this.options.colour=h.h.UNKNOWN,this.options.level=f.i.FRAME,this.options.blockPageStyle=f.b.NORMAL,p.a.handle(this.options)}initListeners(){this.clickListener("#settings-link",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)}),this.clickListener("#sidebar_iframe_block_btn_block",async()=>{if(await this.isFirstTime()){const e={command:d.d.SIDEBAR,payload:{subcommand:d.i.BADGE_COLLECTION,componentData:{badgeCollectionData:{caller:d.i.IFRAME_BLOCK}}}};s.a.contentHandler(e)}}),this.clickListener("#sidebar_iframe_block_accept_risk",()=>{s.a.unblockAllIframes(),this.closeContainer()})}async isFirstTime(){const e=o.c.IFRAME_BLOCK_FIRST_TIME,t=await s.a.cacheStore(o.b.GET,{[e]:!0}),n=t[e]||null===t[e];return n&&s.a.cacheStore(o.b.SET,{[e]:!1}),n}updateLocales(){const e=`<a id='settings-link' href='#'>${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,t=this.strConvertor.localeData("sidebar_action_panel_settings_link",[e]);this.query("#sidebar__settings").html(t)}}class C{constructor(e,t,n=!1){this.telemetryData={},this.componentData=e,this.isForegroundPage=n,this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.DOWNLOAD_BLOCK,state:f.m.MISC.LOADED,containerMeta:t}}async init(){this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init();const e=new URLSearchParams(window.location.search),t={};if(this.isForegroundPage){if(!e.has("tab-id"))return;t.tabId=Number(e.get("tab-id"));const n=await s.a.getTabData(t);this.componentData=n.actionPanelData.componentData}const{downloadScanData:n}=this.componentData,i=n.filePath.split("\\");this.query("#ap_download_scanning_filename").text(i[i.length-1]),this.query("#ap_download_scanning_source_name").text(n.fileUrl),this.initListeners(n),this.showContainer(),p.a.handle(this.options)}initListeners(e){this.clickListener("#ap_download_scanning_delete_file_btn",()=>{const t={filePath:e.filePath,fileUrl:e.fileUrl};this.closeContainer(!0,!1),s.a.removeFromDownloadScanQueue(),s.a.deleteMaliciousFile(t)}),this.clickListener("#sidebar_ds_malicious_keep_file",()=>{this.closeContainer(),s.a.removeFromDownloadScanQueue(),s.a.triggerNextEventForDownloadScanning(),this.isForegroundPage&&s.a.closeTab()})}}class b{constructor(e,t,n=!1){this.componentData=e,this.isForegroundPage=n,this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.BADGE,containerMeta:t,reason:f.a.DELETE_BAD_DOWNLOAD}}async init(){this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.updateLocales(),this.initListeners(),this.showContainer(),p.a.handle(this.options)}initListeners(){this.clickListener("#settings-link",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)}),this.clickListener("#sidebar_ds_file_deleted_high_five",()=>{this.isForegroundPage?s.a.closeTab():(this.closeContainer(),s.a.triggerNextEventForDownloadScanning())})}updateLocales(){const e=`<a id='settings-link' href='#'>${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,t=this.strConvertor.localeData("sidebar_action_panel_settings_link",[e]);this.query("#sidebar__settings").html(t)}}class I{constructor(e,t,n=!1){this.telemetryData={},this.componentData=e,this.isForegroundPage=n,this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener}async init(){const{downloadScanData:e}=this.componentData,t=e.filePath.split("\\");this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.query("#ap_download_scanning_filename").text(t[t.length-1]),this.query("#ap_download_scanning_source_name").text(e.fileUrl),this.query("#ap_download_scanning_location_name").text(e.filePath),this.updateLocales(),this.initListeners(),this.showContainer()}initListeners(){this.clickListener("#settings-link",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)}),this.clickListener("#sidebar_ds_file_not_deleted_got_it",()=>{this.isForegroundPage?s.a.closeTab():(this.closeContainer(),s.a.triggerNextEventForDownloadScanning())})}updateLocales(){const e=`<a id='settings-link' href='#'>${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,t=this.strConvertor.localeData("sidebar_action_panel_settings_link",[e]);this.query("#sidebar__settings").html(t)}}class y{constructor(e,t,n=!1){this.componentData=e,this.isForegroundPage=n,this.strConvertor=null,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.BADGE,containerMeta:t,reason:f.a.ACCEPT_SECURE_SEARCH}}init(){this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),s.a.updateBrowserAction({text:""}),this.updateLocales(),this.initListeners(),this.showContainer(),p.a.handle(this.options)}updateLocales(){this.query("header.border-btm").show(),this.query("#jumbo__title").text(this.strConvertor.localeData("sidebar_ss_accepted_title")),this.query("#jumbo__description").text(this.strConvertor.localeData("sidebar_ss_accepted_description")),this.query("#jumbo__sub-description").text(this.strConvertor.localeData("sidebar_ss_accepted_sub_description")),this.query("#sidebar_ss_accepted_btn_got_it").text(this.strConvertor.localeData("sidebar_ss_accepted_btn_got_it"));const e=`<a id='settings-link' href='#'>${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,t=this.strConvertor.localeData("sidebar_action_panel_settings_link",[e]);this.query("#sidebar__settings").html(t)}initListeners(){this.clickListener("#settings-link",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)}),this.clickListener("#sidebar_ss_accepted_btn_got_it",()=>{this.isForegroundPage?window.history.length<2?s.a.closeTab():window.history.go(-1):this.closeContainer()})}}var L=n(13),v=n(25);class R{constructor(e,t){this.componentData=e,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.ADBLOCK_INTERACTION,hasCheckBox:!0,containerMeta:t}}async init(){const e=new T.a(null,this.shadowRoot);e.init();try{const t=await s.a.getPopupData(),{AP_FEATURE_ENABLED:n}=t;if(n)try{const{adblockDisabled:e}=await v.a.isAdblockDisabled(t.tabId);t.adblockDisabled=e,t.searchExtnOn=!0}catch(e){s.a.logError(e);const n={};n[o.c.SEARCH_ANNOTATION_OPTION]=L.a.NONE,s.a.cacheStore(o.b.SET,n),t.searchExtnOn=!1}this.initContent(t,e),this.initListeners(t),this.populateData(t),this.showContainer(),this.options.domain=t.url,p.a.handle(this.options)}catch(e){s.a.logError(e)}}initContent({AP_FEATURE_ENABLED:e,tabData:t,cacheStore:n,searchExtnOn:i},o){let s="",r="";if(e){this.query("#sidebar_view_site_report").hide(),this.query("#sidebar_footer_view_stats").css({display:"block"});const{AB_USER_TOGGLE:e}=n;if(!e||!i)return this.query(".innerbody__message__title").html(o.localeData("sidebar_everything_looks_good")),this.query(".innerbody__message__desc").html(o.localeData("sidebar_everything_looks_good_desc")),this.query("#innerbody__message__action_text").html(o.localeData("sidebar_go_to_web_protection")),this.hideStats(),void this.showMessage();if(A.a.isProperWebURL(t.url)){s=new URL(t.url).origin,r=o.localeData("sidebar_adblock_subtitle")}else this.query("#sidebar_title").hide();this.query("#sidebar_adblock_enabled").css({display:"block"}),this.query("#sidebar_adblock_view_site_report").html(o.localeData("sidebar_view_site_report")),this.query("#sidebar_adblock_view_site_report").css({display:"block"})}else s=o.localeData("sidebar_title"),r=o.localeData("sidebar_subtitle");this.query("#sidebar_title").html(s),this.query("#sidebar_subtitle").html(r)}hideStats(){this.query("#sidebar_title").hide(),this.query("#sidebar_subtitle").hide(),this.query(".innerbody__stats-box").hide(),this.query("#sidebar_adblock_view_site_report").hide()}showMessage(){this.query(".innerbody").addClass("center"),this.query(".innerbody__message").css("display","flex")}populateData(e){const{AP_FEATURE_ENABLED:t,cacheStore:n,stats:i,tabData:o,PPS_MODE:s,adblockDisabled:r,BINARY_VERSION:a}=e,c=this.query("#sidebar_version").text();if(this.query("#sidebar_version").text(`${c} ${h.g.EXTENSION_VERSION}`),t)return this.query("#num-ads-blocked").text(A.a.getUINumber(r?0:o.adsBlocked)),this.query("#num-trackers-blocked").text(A.a.getUINumber(r?0:o.trackersBlocked)),void(n.AB_USER_TOGGLE?this.query(".adblock-switch").attr("checked",r):(this.query(".adblock-switch").attr("checked",!1),this.query(".adblock-switch").attr("disabled",!0)));this.query(".innerbody__stats-box > .innerbody__stats-box__item").css("display","flex");const{pagesScanned:l,pagesBlocked:u,downloadsBlocked:d,cryptoBlocked:p}=i;this.query("#num-pages-scanned").text(A.a.getUINumber(l)),this.query("#num-unsafe-blocked").text(A.a.getUINumber(d)),this.query("#num-pages-blocked").text(A.a.getUINumber(u)),this.query("#num-crypto-blocked").text(A.a.getUINumber(p)),s&&this.query("#sidebar_statsrow_crypto").hide(),h.f.EDGE===h.g.BROWSER_TYPE&&null===a&&this.query("#sidebar_statsrow_unsafe_blocked").hide()}close(e){e?this.closeContainer():s.a.closeTab()}initListeners({url:e,AP_FEATURE_ENABLED:t,tabId:n}){const i=A.a.isProperWebURL(e);i?(this.clickListener("#sidebar_adblock_view_site_report",()=>{s.a.viewSiteReport(e,!0)}),this.clickListener("#sidebar_view_site_report",()=>{s.a.viewSiteReport(e,!0)}),t&&this.clickListener(".adblock-switch",e=>{this.query(e.currentTarget).attr("disabled",!0);const t=this.query(e.currentTarget).attr("checked")?d.a.REMOVE_WHITELIST:d.a.ADD_WHITELIST;v.a.updateAdblockWhitelist(t,n)})):(this.query("#sidebar_view_site_report").css({color:"#B1BABF",cursor:"default"}),this.query("#sidebar_adblock_view_site_report").css({color:"#B1BABF",cursor:"default"}),this.query(".adblock-switch").attr("disabled",!0)),this.clickListener("img[id=close]",()=>{this.close(i)});const o=e=>{const t=_.a.runtime.getURL(`html/settings.html${e?`?tabtype=${e}`:""}`);s.a.focusOrCreateTab(t)};this.clickListener("img[id=settings]",()=>{o()}),t&&(this.clickListener("#sidebar_view_stats",()=>{o("statistics")}),this.clickListener(".innerbody__message__action > a",()=>{o("preferences")}))}}class w{constructor(e,t){this.componentData=e,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener}async init(){new T.a(null,this.shadowRoot).init(),this.initListeners(),this.showContainer()}initListeners(){this.clickListener("img[id=close]",this.closeContainer),this.clickListener("img[id=home]",this.goToPreference),this.clickListener("#sma_personalize_button",this.goToPreference)}goToPreference(){const e=_.a.runtime.getURL("html/settings.html?tabtype=preference");s.a.focusOrCreateTab(e)}}class D{constructor(e,t,n=!1){this.componentData=e,this.isForegroundPage=n,this.strConvertor=null,this.type="",this.state="",this.badgeType={IFRAME_BLOCK:"iframe_block",BLOCK_PAGE:"block_page"},this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.BADGE,containerMeta:t,reason:f.a.BLOCK_BAD_PAGE}}init(){this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.populateDetails(),this.renderBadgeCollection(),this.initListeners(),this.showContainer(),p.a.handle(this.options)}populateDetails(){const{caller:e}=this.componentData.badgeCollectionData;switch(e){case d.i.IFRAME_BLOCK:this.type=this.badgeType.IFRAME_BLOCK;break;case d.i.BLOCK_PAGE:this.type=this.badgeType.BLOCK_PAGE,this.state=this.componentData.badgeCollectionData.state}}renderBadgeCollection(){this.updateHtml(),this.updateLocales()}updateHtml(){const e=_.a.runtime.getURL("/images/action_panel/ap_badge_collection_checked.svg");this.query(".jumbo__image").attr("src",e),this.type!==this.badgeType.BLOCK_PAGE&&this.query("#jumbo__sub-description__wrapper").hide()}updateLocales(){this.query("header.border-btm").show();const e=this.state?`${this.type}_${this.state}_title`:`${this.type}_title`;this.query("#jumbo__title").text(this.strConvertor.localeData(`sidebar_badge_collection_${e}`));let t="";if(this.type===this.badgeType.BLOCK_PAGE){const e=`<span style='font-style:italic'>${this.strConvertor.localeData(`sidebar_badge_collection_${this.type}_description_italic`)}</span>`;t=this.strConvertor.localeData(`sidebar_badge_collection_${this.type}_description`,[e])}else t=this.strConvertor.localeData(`sidebar_badge_collection_${this.type}_description`);this.query("#jumbo__description").html(t),this.type===this.badgeType.BLOCK_PAGE&&this.query("#jumbo__sub-description").text(this.strConvertor.localeData("sidebar_badge_collection_block_page_description_sub")),this.query("#sidebar_badge_collection_btn_accept").text(this.strConvertor.localeData(`sidebar_badge_collection_${this.type}_btn_accept`));const n=`<a id="settings-link" href="#">${this.strConvertor.localeData("sidebar_action_panel_web_protection_preferences")}</a>`,i=this.strConvertor.localeData("sidebar_action_panel_settings_link",[n]);this.query("#sidebar__settings").html(i)}initListeners(){this.clickListener("#settings-link",()=>{const e=_.a.runtime.getURL("html/settings.html");s.a.focusOrCreateTab(e)}),this.clickListener("#sidebar_badge_collection_btn_accept",()=>{this.isForegroundPage?window.history.length<2?s.a.closeTab():window.history.go(-1):this.closeContainer()})}}var P=n(32);class k{constructor(e,t){this.componentData=e,this.strConvertor=null,this.domain=g.a.getDomain(document.location.href),this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.REMOTE_ACCESS_TROJAN,containerMeta:t}}async init(){try{this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.initEventListeners(),this.showContainer(),this.options.state=f.m.MISC.LOADED,this.options.url=this.domain,p.a.handle(this.options)}catch(e){s.a.logError(e)}}initEventListeners(){this.clickListener("#rat_detection_got_it_btn",()=>{P.a.updateShowing(!0),this.closeContainer()}),this.clickListener("#sidebar-close",()=>{P.a.updateShowing(!0)}),this.clickListener("#sidebar_rat_detection_whitelist_btn",()=>{s.a.whitelist(m.a.ADD,m.c.RAT_DETECTION,{domains:[this.domain]}),this.closeContainer()})}}var x=n(34);class B{constructor(e,t){this.componentData=e,this.strConvertor=null,this.domain=g.a.getDomain(document.location.href),this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:f.e.AMAZON_UPSELL_SIDEBAR_TOAST,containerMeta:t}}async init(){try{const{upsellCategoryType:e,count:t,cohort:n,amazonExtnStatus:o}=this.componentData;switch(this.strConvertor=new T.a(null,this.shadowRoot),this.strConvertor.init(),this.renderContent(n,t),this.initEventListeners(i.a.bkGlobals.nativeSettings.AMAZON_EXTN_URL.value),this.showContainer(),this.updateViewedCounter(e),this.options.state=f.m.MISC.LOADED,this.options.url=this.domain,this.options.sequence=t,o){case 0:this.options.trigger=h.a.INSTALLED_DISABLED;break;case 2:this.options.trigger=h.a.INSTALLED_REJECTED;break;case 3:this.options.trigger=h.a.NOT_INSTALLED}p.a.handle(this.options)}catch(e){s.a.logError(e)}}renderContent(e,t){this.query(".top__home").show();let n="",i="",o="";const s=`<span class="sidebar_amazon_product_name">${this.strConvertor.localeData("sidebar_amazon_upsell_product")}</span>`;1===e?(n="sidebar_amazon_upsell_title_I",i="sidebar_amazon_upsell_first_description_I",o="sidebar_amazon_upsell_second_description_I",this.options.variation=f.m.VARIATIONS.AMAZON_EXTENSION_UPSELL.VARIATION_SAFER_SMARTER):2===e&&(n="sidebar_amazon_upsell_title_II",i="sidebar_amazon_upsell_first_description_II",o="sidebar_amazon_upsell_second_description_II",this.options.variation=f.m.VARIATIONS.AMAZON_EXTENSION_UPSELL.VARIATION_TIME_MONEY);const r=t>1?"sidebar_amazon_upsell_no_thanks_button":"sidebar_amazon_upsell_not_now_button";this.query("#sidebar_amazon_upsell_title").text(this.strConvertor.localeData(n)),this.query("#sidebar_amazon_upsell_first_description").html(this.strConvertor.localeData(i,[s])),this.query("#sidebar_amazon_upsell_second_description").html(this.strConvertor.localeData(o,["<br/>"])),this.query("#link__amazon_extns_decline").text(this.strConvertor.localeData(r))}initEventListeners(e){this.clickListener("#button__amazon_extn_get",()=>{s.a.focusOrCreateTab(e),this.closeContainer()}),this.clickListener("#link__amazon_extns_decline",()=>{this.closeContainer()}),this.clickListener("#sidebar-close",()=>{this.closeContainer()}),this.clickListener(".top__home",()=>{s.a.contentHandler({command:d.d.SIDEBAR,payload:{subcommand:d.i.MAIN,componentData:{sidebarMainData:{}}}})})}updateViewedCounter(){x.a.updateShownCounter(this.componentData.upsellCategoryType,this.componentData.domain)}}n.d(t,"a",(function(){return M}));class M{constructor(){this.savedComponentDetails=null,this.isForegroundPage=!1,this.iframeBlockShown=!1,this.iframeBlockedUrls={},this.sidebarContainer=new u,this.componentMap={[d.i.MAIN]:{template:{htmlPath:"html/sidebar/sidebar_main.html",cssPath:"css/sidebar_main.css"},Component:R,loadAsBaseTemplate:!0},[d.i.SMA]:{template:{htmlPath:"html/sidebar/sidebar_sma.html",cssPath:"css/sidebar_sma.css"},Component:w,loadAsBaseTemplate:!0},[d.i.SITE_REPORT]:{template:{htmlPath:"html/sidebar/sidebar_site_report.html",cssPath:"css/sidebar_site_report.css",containerId:"main-container__innerbody"},Component:O},[d.i.BLOCK_PAGE]:{template:{htmlPath:"html/sidebar/sidebar_block_page.html",cssPath:"css/sidebar_block_page.css",containerId:"main-container__innerbody"},Component:S},[d.i.IFRAME_BLOCK]:{template:{htmlPath:"html/sidebar/sidebar_iframe_block.html",cssPath:"css/sidebar_iframe_block.css",containerId:"main-container__innerbody",allowReplace:!1},Component:N},[d.i.DOWNLOAD_SCANNING_MALICIOUS]:{template:{htmlPath:"html/sidebar/sidebar_ds_malicious.html",cssPath:"css/sidebar_ds_malicious.css",containerId:"main-container__innerbody"},Component:C},[d.i.DOWNLOAD_SCANNING_FILE_DELETED]:{template:{htmlPath:"html/sidebar/sidebar_ds_file_deleted.html",cssPath:"css/sidebar_ds_file_deleted.css",containerId:"main-container__innerbody"},Component:b},[d.i.DOWNLOAD_SCANNING_FILE_NOT_DELETED]:{template:{htmlPath:"html/sidebar/sidebar_ds_file_not_deleted.html",cssPath:"css/sidebar_ds_file_not_deleted.css",containerId:"main-container__innerbody"},Component:I},[d.i.SS_ACCEPTED]:{template:{htmlPath:"html/sidebar/sidebar_ss_accepted.html",cssPath:"css/sidebar_ss_accepted.css",containerId:"main-container__innerbody"},Component:y},[d.i.BADGE_COLLECTION]:{template:{htmlPath:"html/sidebar/sidebar_badge_collection.html",cssPath:"css/sidebar_badge_collection.css",containerId:"main-container__innerbody"},Component:D},[d.i.RAT_DETECTION]:{template:{htmlPath:"html/sidebar/sidebar_rat_detection.html",cssPath:"css/sidebar_rat_detection.css",containerId:"main-container__innerbody"},Component:k},[d.i.AMAZON_UPSELL_TOAST]:{template:{htmlPath:"html/sidebar/sidebar_amazon_upsell.html",cssPath:"css/sidebar_amazon_upsell.css",containerId:"main-container__innerbody"},Component:B}}}processMessage(e,t=!1){this.isForegroundPage=t;const{subcommand:n}=e;if(n){switch(n){case d.i.IFRAME_BLOCK:if(this.iframeBlockShown)return;this.iframeBlockShown=!0;break;case d.i.RELOAD:return void this.ReloadComponent()}this.RenderUIContainer(e)}}async recheckIframeBlock(){if(this.iframeBlockShown)return;if(await s.a.anyBlockedIframes()){if(this.iframeBlockShown)return;this.iframeBlockShown=!0,this.RenderUIContainer({subcommand:d.i.IFRAME_BLOCK,componentData:{iframeBlockData:{}}})}}async sidebarAutoMessage(){if(await a.shouldShowSMANotification(document.location.href)){const e=1,t={identifier:f.e.BROWSER_BADGE_UPDATE,count:e.toString()};p.a.handle(t),s.a.updateBrowserAction({bounce:!0,priority:h.e.SMA})}}async RenderUIContainer(e){const{subcommand:t,componentData:n}=e,i=this.componentMap[t];if(!i)return;const{template:o,Component:s,loadAsBaseTemplate:r=!1}=i;if(!await this.sidebarContainer.init(o,n,this.isForegroundPage,r))return;const a=new s(n,this.sidebarContainer,this.isForegroundPage);a.init(),this.savedComponentDetails={instance:a,...i}}async ReloadComponent(){const{template:e,componentData:t,Component:n}=this.savedComponentDetails;await this.sidebarContainer.reloadContainer(e,!1),new n(t,this.sidebarContainer,this.isForegroundPage).init()}}},function(e,t,n){const{Statistics:i}=n(57);t.CONSTANTS={annotationTime:"mcafee_wa_annotationtime",bingPartnerCode:"PC=MC",bubbleLayer:"BubbleLayer",expectedCount:"mcafee_wa_expectedcount",gtiRequestTime:"mcafee_wa_requesttime",harvestingTime:"mcafee_wa_harvestingtime",mcafeeWaAnn:"mcafee_wa_ann",mcafeeWaHidden:"mcafee_wa_hidden",statisticsTag:new i},t.Color={GREEN:0,YELLOW:1,RED:2,UNKNOWN:3,HACKERSAFE:4,DISABLED:5}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));var i=n(3);class o{static debounce(e,t,n){let i;return(...o)=>{const s=n&&!i;clearTimeout(i),i=setTimeout(()=>{i=null,n||e(...o)},t),s&&e(...o)}}static isBrowserEN(){return i.a.i18n.getUILanguage().toLowerCase().startsWith("en")}static isChromeBrowser(){const e=window.navigator.userAgent.toLowerCase();return!(!e.includes("chrome")||!1==!!window.chrome)&&(!window.opr&&!e.includes("edg"))}}const s=e=>{"complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll?e():document.addEventListener("DOMContentLoaded",e)}},,,function(e,t,n){const{AnnotationMutation:i}=n(56),{WebBoostMutation:o}=n(64),{MUTATION_RESPONSE:s}=n(42),{Annotation:r}=n(44),{ANNOTATION_PROPERTIES:a}=n(66),{BALLOON_PROPERTIES:c}=n(67),l=n(22);function u(e){const t=function(){let e=[];return document.defaultView===document.defaultView.top&&e.push(new i),l.ANNOTATION.bkGlobals.AUTO_PLAY_NOTIFICATION_ENABLED&&e.push(new o),e.map(e=>({handler:e,skip:!1}))}();for(const e of t)e.skip=!1;e.forEach(e=>{for(const n of e.addedNodes){let e=0;for(let i=0;i<t.length;i++){switch(t[i].handler.nodeAdded(n)){case s.Skip:t[i].handler.skip=!0,e++;break;case s.NoMoreRequired:t.splice(i,1)}}if(e===t.length)return}})}t.initializeSettings=e=>{const{Globals:t,BackgroundIPC:n,BackgroundCommon:i,ContextTelemetry:o,EventNames:s,UrlParser:r,Utils:u,Commands:d,CommonConstants:h}=e;l.BackgroundIPC=n,l.BackgroundCommon=i,l.ContextTelemetry=o,l.TelemetryEventNames=s,l.UrlParser=r,l.Utils=u,l.extension=e.extension,l.Commands=d,l.CommonConstants=h,l.ANNOTATION={...t,ANNOTATION_PROPERTIES:a,BALLOON_PROPERTIES:c,ssExperienceDetected:!1}},t.initPageWatcher=()=>{new MutationObserver(u).observe(document,{childList:!0,subtree:!0})},t.annotate=()=>(l.ANNOTATION.isSearchPage=r.annotate(),l.ANNOTATION.isSearchPage)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var i=n(8),o=n(6),s=n(5),r=n(15),a=n(13),c=n(19);class l{static getFindSimilarPagesEngine(e){return i.a.searchEngine.getFindSimilarPagesEngineForUrl(e)}static updateSSUrlParam(e){const t=e.indexOf("type");if(t<0)return e;const n=t+7;return`${e.substr(0,n)}7${e.substr(n+1)}`}static getSearchText(e,t,n){let i="";if(t){const n=r.a.getParam(e,t);null!==n&&(i=r.a.decodeQueryParam(n))}else if(n){const e=document.querySelector(n);null!==e&&(i=e.innerText)}return i}static async shouldShowMessage(e){const t={show:!1,searchTextParameter:null,selector:null,sourceType:null},{isSettingOn:n,count:o,lastShown:r}=await l.getFindSimilarPagesDetails();if(!n)return t;const c=36e5*i.a.bkGlobals.nativeSettings.FIND_SIMILAR_PAGES_CADENCE_PER_HOUR.value;if(0!==r&&(new Date).getTime()<r+c)return t;const u=i.a.bkGlobals.nativeSettings.FIND_SIMILAR_PAGES_LIMIT_COUNT_PER_DAY.value;if(0!==u&&o>u)return t;const d=l.getFindSimilarPagesEngine(e);if(!d||d&&!d.findSimilarPages)return t;const{name:h,sourcetype:p}=d,{isCompatible:_,searchTextParameter:m,selector:g,sourceType:E}=d.findSimilarPages;if(!_)return t;const f=await s.a.searchAnnotation(a.b.GET,{});if(p===a.c.GOOGLE&&f===a.a.ALL)return t;if(!(f===a.a.ALL||f===a.a.ONLY_SECURE_SEARCH))return t;if(g&&g.length){if(!document.querySelector(g))return t;t.selector=g}else{if(!m||!m.length)return t;t.searchTextParameter=m}return t.show=!0,t.sourceType=E,t.sourceName=h,t}static async updateDetails(e){const t=(new Date).getTime(),n=await this.getFindSimilarPagesDetails(),{firstTimeOfDayShown:i,count:r}=n;if(0===i)s.a.cacheStore(o.b.SET,{[o.c.FIND_SIMILAR_PAGES_FIRST_SHOWN]:t});else{t>=i+864e5&&(s.a.cacheStore(o.b.SET,{[o.c.FIND_SIMILAR_PAGES_FIRST_SHOWN]:t}),s.a.cacheStore(o.b.SET,{[o.c.FIND_SIMILAR_PAGES_COUNT]:0}))}e&&(s.a.cacheStore(o.b.SET,{[o.c.FIND_SIMILAR_PAGES_LAST_SHOWN]:t}),s.a.cacheStore(o.b.SET,{[o.c.FIND_SIMILAR_PAGES_COUNT]:r+1}))}static updateTextVariant(e,t){let n=null;switch(e){case a.d.SHOPPING.name:n=o.c.FIND_SIMILAR_PAGES_SHOPPING_TEXT_VARIANT;break;case a.d.NEWS.name:n=o.c.FIND_SIMILAR_PAGES_NEWS_TEXT_VARIANT}n&&s.a.cacheStore(o.b.SET,{[n]:t})}static async getFindSimilarPagesDetails(){const e=o.c.FIND_SIMILAR_PAGES_TOGGLE,t=o.c.FIND_SIMILAR_PAGES_LAST_SHOWN,n=o.c.FIND_SIMILAR_PAGES_COUNT,r=o.c.FIND_SIMILAR_PAGES_FIRST_SHOWN,a=o.c.FIND_SIMILAR_PAGES_SHOPPING_TEXT_VARIANT,l=o.c.FIND_SIMILAR_PAGES_NEWS_TEXT_VARIANT,u={[e]:!1,[t]:0,[n]:1,[r]:0,[a]:0,[l]:0},d={},h=await s.a.cacheStore(o.b.GET,u);let p=null;if(null===h[e]||void 0===h[e]){const t={};t[e]=!0,s.a.cacheStore(o.b.SET,t);const n={name:i.a.bkGlobals.nativeSettings.FIND_SIMILAR_PAGES_USER_TOGGLE.name,value:!0,scope:c.c.SYSTEM,type:c.d.BOOL};s.a.resetNativeSetting(n),p=!0}else p=h[e];return d.isSettingOn=p,d.lastShown=h[t]||0,d.count=h[n]||1,d.firstTimeOfDayShown=h[r]||0,d.shoppingTextVariant=h[a]||0,d.newsTextVariant=h[l]||0,d}}},function(e,t){t.MUTATION_RESPONSE={Continue:0,Skip:1,NoMoreRequired:2}},function(e,t,n){const i=n(22),{CONSTANTS:o}=n(36),s=0;t.LinkHarvester=class{static anchorHandler(e,t,n){const i=e.getAttribute("waprocessedanchor"),o=e.getAttribute("href");!o||o.length<3||"#"===o.substr(0,1)||-1===o.indexOf(".")&&-1===o.indexOf("%2E")||("true"===i?n.push(e):t.push(e))}static getFilteredURI(e,t){if(void 0!==t){let n=decodeURIComponent(e);switch(t.filterType){case s:{const e=n.indexOf(t.startsWith,0);if(-1===e)break;const i=n.indexOf(t.endsWith,e);if(-1===i)break;n=n.slice(e+t.startsWith.length,i);break}}return n}return e}static getUnProcessedAnchors(){const e=[],t=[];try{const n=document.getElementsByTagName("a");for(let i=0;i<n.length;i++)this.anchorHandler(n[i],e,t)}catch(e){BackgroundIPC.logError(e.message)}return{unProcessedAnchors:e,processedAnchors:t}}static shouldExcludeURI(e,t){if(void 0!==e)try{return new RegExp(e,"i").test(t)}catch(e){BackgroundIPC.logError(e.message)}return!1}static getParam(e,t,n){const i=e.createElement("a");i.href=t;const o=i.search.replace("?","").split("&");for(let e=0;e<o.length;++e){if(!o[e])continue;const t=o[e].split("=");if(null!==t&&2===t.length&&t[0]===n){return decodeURIComponent(t[1])}}return null}static getURI(e,t,n){let i=null;if(void 0!==n.hrefattr)for(let e=0;e<n.hrefattr.length;++e){const o=t.getAttribute(n.hrefattr[e]);if(null!==o){i=o.value;break}}if(null===i&&(i=t.getAttribute("href"),n.actualhref&&(i=t.getAttribute(n.actualhref)),void 0!==n.hrefqstring)){const t=this.getParam(e,i,n.hrefqstring);null!==t&&(i=t)}if(null!==i&&!i.startsWith("http")&&!i.startsWith("www.")){const t=e.createElement("a");t.href=i,i=`${t.protocol}//${t.hostname}${t.port}${t.pathname}${t.search}${t.hash}`}return i&&(i.startsWith("http")||i.startsWith("https")||i.startsWith("ftp")||i.startsWith("sftp"))?i:null}static reprocessAnnotationForYoutube(e,t,n){t.forEach(t=>{const i=this.getMatchedSelector(t,n.selectors);if(null!==i&&i.reProcessAnchor){let n=!1,i=!1;if(t.childNodes.forEach(e=>{e.getAttribute&&(e.getAttribute(o.mcafeeWaAnn)&&(n=!0),e.getAttribute(o.mcafeeWaHidden)&&(i=!0))}),!i&&!n){t.removeAttribute("waprocessedanchor"),e.push(t);const n=document.createElement("div");n.setAttribute(o.mcafeeWaHidden,"true"),n.style.cssText="display: none;",t.appendChild(n)}}})}static harvestLinks(e,t){try{const{unProcessedAnchors:n,processedAnchors:o}=this.getUnProcessedAnchors(e);if(!n.length&&!o.length)return!1;this.reprocessAnnotationForYoutube(n,o,e);let s=[],r=[];for(let o=0;o<n.length;o++){const a=n[o],c=this.getMatchedSelector(a,e.selectors);if(null!==c){const e={};e.styles=c.styles,!0===c.parent?e.node=a.parentNode:e.node=a,!0===c.inline&&(e.node.style.display="inline-block");const t=this.getURI(document,a,c);if(null===t)continue;if(!0===this.shouldExcludeURI(c.excluderegex,t))continue;const n=this.getFilteredURI(t.toLowerCase(),c.filterURI);e.url=punycode.toASCII(n),e.node.setAttribute("original_target",e.url),e.insertIntoLink=c.insertIntoLink,e.insertIntoSelector=c.insertIntoSelector,void 0!==c.child&&(e.annotationNode=e.node.querySelector(c.child)),e.url.length>0&&(r.push(e),s.push(e.url))}a.setAttribute("waprocessedanchor","true"),i.ANNOTATION.reputationReqCount>0&&i.ANNOTATION.reputationReqCount===r.length&&(t(s,r),s=[],r=[])}s.length>0&&t(s,r)}catch(e){i.BackgroundIPC.logError(e.message)}return!0}static shouldHarvestElement(e,t){const n=this.getMatchedSelector(e,t);return Boolean(n)}static getMatchedSelector(e,t){for(const n of t){if(e.matches(n.selector))return n.matched++,n}return null}}},function(e,t,n){const{AnnotationEngine:i}=n(58),{ANNOTATION_OPTIONS:o,SEARCH_ENGINE_TYPES:s,EngineType:r}=n(46),{SearchEngineUtils:a}=n(45),c=n(22);t.Annotation=class{static quickCheck(){const e=c.ANNOTATION.searchEngine.getEngines(),t=new Map;let n=[];for(const i of e)i.enabled&&!t.has(i.name)&&(n.push(i.name),t[i.name]=!0);n=`(${n.join("|")})`;const i=new RegExp(/http(s)?:\/\/([a-z0-9-.]+\.)?/.source+n);return!!(document&&document.location&&document.location.href&&i.test(document.location.href))}static annotate(){try{const e=c.ANNOTATION.searchEngine.getEngineForUrl(document.location.href,c.ANNOTATION.browserType);if(!e)return c.BackgroundIPC.logInfo(`Unable to get engine for url ${document.location.href}`),!1;if(e.enginetype===r.SEARCH&&c.ANNOTATION.searchAnnotationOption===o.none&&!0===c.ANNOTATION.bkGlobals.nativeSettings.HIDE_MCAFEE_SECURE_ANNOTATIONS.value)return!1;if(e.enginetype===r.SOCIALMEDIA&&!1===c.ANNOTATION.bkGlobals.socialMediaToggle)return!1;if(c.ANNOTATION.activeURI!==document.location.href&&(c.ANNOTATION.mapSelectors.clear(),c.ANNOTATION.activeURI=document.location.href),!c.ANNOTATION.isSearchHitSend){c.ANNOTATION.isSearchHitSend=!0;let{issecuresearch:t}=e;e.sourcetype===s.BING&&(t=a.isBingSecureSearchInCookie()),t&&c.ContextTelemetry.handle({engineName:e.name,typeTag:c.UrlParser.getParam(document.location.href,"type")||"",identifier:c.TelemetryEventNames.SECURE_SEARCH_HIT})}return new i(e).processUrl(),!0}catch(e){return c.BackgroundIPC.logError(e.message),!1}}}},function(e,t,n){const{CONSTANTS:i}=n(36);t.SearchEngineUtils=class{static isBingSecureSearchInCookie(){const e=document.cookie.split(";");for(const t of e)if(t.toLocaleLowerCase().includes(i.bingPartnerCode.toLowerCase()))return!0;return!1}}},function(e,t){t.ANNOTATION_OPTIONS={none:"NONE",onlySecureSearch:"ONLY_SECURE_SEARCH",all:"ALL"},t.FIND_SIMILAR_PAGES_SOURCE_TYPE={cooking:{name:"cooking",variants:1},news:{name:"news",variants:2},search:{name:"search",variants:1},shopping:{name:"shopping",variants:3},streaming:{name:"streaming",variants:1},travel:{name:"travel",variants:1}},t.SEARCH_ANNOTATION_ACTIONS={get:"GET",set:"SET"},t.SEARCH_ENGINE_TYPES={UNKNOWN:0,GOOGLE:1,YAHOO:2,AOL:3,ASK:4,UOL:5,GOO:6,MYWAY:7,TERRA:8,WEB:9,BIGLOBE:10,GMX:11,EXCITE:12,SKY:13,NAVER:14,NIFTY:15,RAKUTEN:16,IXQUICK:17,XFINITY:18,SOGOU:19,DOGPILE:20,SEARCH:21,WEBCRAWLER:22,BING:23,INFO:24,YANDEX:25,YIPPY:26,WOW:27,HAOSO:28,DUCKDUCKGO:30,LINKEDIN:100,FACEBOOK:101,YOUTUBE:102,INSTAGRAM:103,REDDIT:104,TWITTER:105},t.EngineType={SEARCH:0,SOCIALMEDIA:1,FSP:2}},,,,,,,,,,function(e,t,n){const i=n(22),{LinkHarvester:o}=n(43),{Annotation:s}=n(44),{MUTATION_RESPONSE:r}=n(42);t.AnnotationMutation=class{constructor(){this.engine=i.ANNOTATION.searchEngine.getEngineForUrl(document.location.href,i.ANNOTATION.browserType)}requireAnnotation(e){if(!this.engine)return!1;const t=e.nodeName.toLowerCase(),{selectors:n}=this.engine;if("a"===t&&o.shouldHarvestElement(e,n))return!0;if("function"==typeof e.getElementsByTagName)for(const t of Array.from(e.getElementsByTagName("a")))if(o.shouldHarvestElement(t,n))return!0;return!1}nodeAdded(e){let t=null;return i.ANNOTATION.isSearchPage?this.requireAnnotation(e)?(s.annotate(),t=r.Skip):t=r.Continue:t=r.NoMoreRequired,t}}},function(e,t,n){const{CONSTANTS:i}=n(36);t.Statistics=class{constructor(){this._document=null,this._scores={}}setHiddenValue(e,t){let n=this._document.getElementById(i.statisticsTag);null===n&&(n=this._document.createElement("DIV"),n.setAttribute("title",i.statisticsTag),n.setAttribute("id",i.statisticsTag),n=this._document.body.insertBefore(n,null));let o=this._document.getElementById(e);null===o&&(o=this._document.createElement("DIV"),o.setAttribute("id",e),o=n.appendChild(o)),o.setAttribute("title",`${e}-${t}`)}setDocument(e){if(this._document===e&&null!==this._scores)for(const e in this._scores){const t=this._document.getElementById(e);null!==t&&t.setAttribute("title","0")}this._document=e,this._scores={}}setExpectedCount(e){this.setHiddenValue(i.expectedcount,e)}incrementScore(e){const t=`mcafee_wa_${e}`;void 0===this._scores[t]&&(this._scores[t]=0),this._scores[t]++}setHarvestingTime(e){this.setHiddenValue(i.harvestingTime,e)}setGTIRequestTime(e){this.setHiddenValue(i.gtiRequestTime,e)}setAnnotationTime(e){this.setHiddenValue(i.annotationTime,e)}setScores(){for(const e in this._scores)this.setHiddenValue(e,this._scores[e])}}},function(e,t,n){const i=n(22),{AnnotationInserter:o}=n(59),{LinkHarvester:s}=n(43);t.AnnotationEngine=class{constructor(e){this.engine=e}annotateProc(e,t,n){e?e.annotationMap?(i.BackgroundIPC.logInfo("Annotation process start."),o.annotateWebPage(e.annotationMap,this.engine,t,n)):i.BackgroundIPC.logError("Annotation nodes not available from response."):i.BackgroundIPC.logError("The JSON response is null.")}processPage(){i.BackgroundIPC.logInfo(`Harvesting links on: ${document.location.href}.`),s.harvestLinks(this.engine,(e,t)=>{if(0===e.length)return;const{nativeSettings:n}=i.ANNOTATION.bkGlobals;n&&0!==n.SS_WELCOME_EXPERIENCE_COHORT.value&&!0===n.SS_WELCOME_ANNOTATION.value&&!i.ANNOTATION.ssExperienceDetected&&i.Utils.isBrowserEN()&&i.Utils.isChromeBrowser()&&this.engine.issecuresearch&&(t[0].isSSExperience=!0,i.ANNOTATION.ssExperienceDetected=!0),i.BackgroundIPC.logInfo(`URL harvested: ${e.length}.`),i.ANNOTATION.gtiRequestor.post(escape(document.location.href),this.engine.issecuresearch,e).then(e=>{e&&window.setTimeout(this.annotateProc.bind(this,e,t,this.engine.issecuresearch),0)})}),i.BackgroundIPC.sendEngineStat(this.engine)}processUrl(){window.setTimeout(this.processPage.bind(this),0)}}},function(e,t,n){const i=n(22),{CONSTANTS:o,Color:s}=n(36),{EventHandler:r}=n(60),{SearchEngineUtils:a}=n(45),{ANNOTATION_OPTIONS:c,SEARCH_ENGINE_TYPES:l}=n(46),{BalloonCreator:u}=n(62);t.AnnotationInserter=class{static setDivProperty(e,t,n){n.dossierUrl=t,e.setAttribute(o.mcafeeWaAnn,JSON.stringify(n))}static createStyle(){let e=document.getElementById("mc_style");if(null!==e)return;e=document.createElement("style"),e.setAttribute("id","mc_style"),e.type="text/css",document.getElementsByTagName("head")[0].appendChild(e);for(const t of Object.keys(i.ANNOTATION.ANNOTATION_PROPERTIES)){const n=i.ANNOTATION.ANNOTATION_PROPERTIES[t],o=i.extension.runtime.getURL(n.icon);try{e.innerHTML+=`.mcafee_${t} {\n          background-image: url(${o});\n          background-position: center;\n          background-repeat: no-repeat;\n          background-size: contain;\n          height: ${n.height}px;\n          width: ${n.width}px; \n        }\n\n`}catch(e){i.BackgroundIPC.logError(e.message)}}}static showSSExperienceBalloon(e){if(!e)return;e.firstElementChild.setAttribute("mcssexperience","true");const{top:t,left:n}=e.getBoundingClientRect(),o=t+window.scrollY,s=n+window.scrollX,r={command:i.Commands.ContentCommands.FLOATING_BALLOON,payload:{subcommand:i.Commands.FloatingBalloonCommands.SHOW_SS_EXPERIENCE_BALLOON,componentData:{top:o,left:s}}};i.BackgroundIPC.contentHandler(r)}static insertAnnotationImage(e,t){try{let n=document.createElement("div");this.setDivProperty(n,e.url,t);const s=document.createElement("div");i.ANNOTATION.imageCounter++;const r=`${i.ANNOTATION.uid}_${i.ANNOTATION.imageCounter}`;s.setAttribute("id",r),n.appendChild(s);const a=i.BackgroundCommon.toAnnotationImageClass(t);if(s.setAttribute("class",`mcafee_${a.toLowerCase()}`),s.setAttribute("onselectstart","return false;"),s.setAttribute("oncontextmenu","return false;"),s.addEventListener("mouseenter",e=>{const t=e.target.getAttribute("id");e.currentTarget.getAttribute("mcssexperience")||i.ANNOTATION.eventHandler.showBalloon({toId:t})}),e.annotationNode)n=e.annotationNode.parentNode.insertBefore(n,e.annotationNode.nextSibling);else if(e.insertIntoLink){const t=e.node.childNodes;for(let e=0;e<t.length;e+=1){const n=t[e];if(n.getAttribute&&n.getAttribute(o.mcafeeWaAnn))return}n=e.node.appendChild(n)}else if(e.insertIntoSelector){const t=e.insertIntoSelector;n=e.node.querySelector(t).appendChild(n)}else n=e.node.parentNode.insertBefore(n,e.node.nextSibling);let c="";e.node.className.split(" ").includes("r")&&(c="vertical-align: super;"),n.style.cssText=`\n        cursor: default;\n        display: inline-block;\n        float: none;\n        padding: 0px 0px 0px 4px;\n        position: relative;\n        top: ${e.styles&&e.styles.top||"2px"};\n        ${c}\n        z-index: 1;\n      `,e.isSSExperience&&this.showSSExperienceBalloon(n)}catch(e){i.BackgroundIPC.logError(e.message)}}static insertAnnotationIntoLink(e,t){try{const n=i.BackgroundCommon.toColor(t);if(n===s.RED||n===s.YELLOW){const n=e.node;this.setDivProperty(n,e.url,t),e.node.addEventListener("mouseenter",e=>{i.ANNOTATION.eventHandler.showBalloon(e,!0)}),e.node.addEventListener("mouseleave",e=>{i.ANNOTATION.eventHandler.hideBalloon(e,!0)})}}catch(e){i.BackgroundIPC.logError(e.message)}}static annotateWebPage(e,t,n,o){u.createBalloon(),document.getElementById("mc_style")||this.createStyle(),i.ANNOTATION.eventHandler||(i.ANNOTATION.eventHandler=new r(t));const d=Object.assign({},i.CommonConstants.Color);for(const e in d)d[e]=0;const h={annotations:d,site:t.name};n.forEach(n=>{const r=e[n.url];if(r){if((i.ANNOTATION.searchAnnotationOption===c.all||i.ANNOTATION.searchAnnotationOption===c.onlySecureSearch&&o||i.BackgroundCommon.isHackerSafe(r.ufg)||t.socialMediaType&&i.ANNOTATION.socialMediaToggle&&t.enabled)&&(t.sourcetype===l.BING&&a.isBingSecureSearchInCookie()?this.insertAnnotationIntoLink(n,r):this.insertAnnotationImage(n,r),t.socialMediaType)){const e=i.BackgroundCommon.toColor(r),t=Object.keys(s).find(t=>i.CommonConstants.Color[t]===e);h.annotations[t]+=1}if(i.ANNOTATION.PPS_MODE){const e=i.BackgroundCommon.toBlockState(r);e!==i.CommonConstants.BlockState.RED&&e!==i.CommonConstants.BlockState.YELLOW&&e!==i.CommonConstants.BlockState.PHISHING||i.BackgroundIPC.isWhitelisted(n.url).then(t=>{t.whitelisted||"_blank"!==n.node.target&&"_new"!==n.node.target&&n.node.addEventListener("click",t=>{t.preventDefault(),i.BackgroundIPC.isWhitelisted(r.dossierUrl).then(({whitelisted:t})=>{if(t)return void(window.location.href=r.dossierUrl);const n={url:r.dossierUrl,blockState:e,categories:r.cat},o={command:i.Commands.ContentCommands.SIDEBAR,payload:{subcommand:i.Commands.SideBarCommands.BLOCK_PAGE,componentData:{blockPageData:n}}};i.BackgroundIPC.contentHandler(o)})})})}}});const p={identifier:i.TelemetryEventNames.SMA_REPUTATION,site:h.site};for(const[e,t]of Object.entries(h.annotations))p[e]=t;return i.ContextTelemetry.handle(p),!0}}},function(e,t,n){const i=n(22),{BalloonDisplayer:o}=n(61);t.EventHandler=class{constructor(e){this._engine=e,this._displayer=new o}showBalloon(e,t=!1){const n={};n.toElement=t?e.target:document.getElementById(e.toId),this._displayer.showBalloon(document,this._engine,n)}hideBalloon(e,t=!1){const n={};n.toElement=t?e.relatedTarget:document.getElementById(e.toId),this._displayer.hideBalloon(document,i.ANNOTATION.uid,n)}}},function(e,t,n){(function(e){const i=n(22),{CONSTANTS:o}=n(36),{ResourceManager:s}=n(20),r=0,a=1,c=30;t.BalloonDisplayer=class{constructor(){this.balloonElement=null,this.bubbleLayerElement=null,this.dossierElement=null,this.iconElement=null,this.iconContainerElement=null,this.recommendationElement=null,this.recommendationDefStyle=[]}getRecommendationString(e,t){const n=i.BackgroundCommon.toColor(e),o=i.CommonConstants.swapObjectPropertyAndValues(i.CommonConstants.Color);s.getResString(`annotation_balloon_color_${o[n].toLowerCase()}`,t)}init(e){try{return i.BackgroundIPC.logInfo(e?"Showing balloon":"Hiding balloon"),this.bubbleLayerElement=document.getElementById(`${o.bubbleLayer}-${i.ANNOTATION.uid}`),e&&(this.balloonElement=document.getElementById(`${o.bubbleLayer}-${i.ANNOTATION.uid}`),this.iconElement=document.getElementById(`balloon__icon-${i.ANNOTATION.uid}`),this.iconContainerElement=document.getElementById(`balloon__status-${i.ANNOTATION.uid}`),this.recommendationElement=document.getElementById(`content__header-${i.ANNOTATION.uid}`).firstElementChild,this.dossierElement=document.getElementById(`content__link-${i.ANNOTATION.uid}`).firstElementChild,0===this.recommendationDefStyle.length&&(this.recommendationDefStyle[r]={fontSize:"15px"},this.recommendationDefStyle[a]={fontSize:this.recommendationElement.style.fontSize})),!0}catch(e){return i.BackgroundIPC.logError(e.message),!1}}setCategories(t){const n=e(`#content__categories-${i.ANNOTATION.uid} > ul`).first(),o=i.BackgroundCommon.toGTICategoriesString(t),s=[];for(const e of o)s.push(`<li>${e.name}</li>`);n.empty(),n.append(s.slice(0,3).join(""))}showBalloon(t,n,l){let u="",d=null;function h(e){e.preventDefault();const t={url:u,annotationItem:d},n={command:i.Commands.ContentCommands.SIDEBAR,payload:{subcommand:i.Commands.SideBarCommands.SITE_REPORT,componentData:{siteReportData:t}}};i.BackgroundIPC.contentHandler(n)}const p={data:null,item:null};let _=l.toElement||null;if(!this.init(!0)||null===_)return;for(;null===p.data&&null!==_&&_.getAttribute&&(p.data=_.getAttribute(o.mcafeeWaAnn),null===p.data);)_=_.parentNode;if(p.item=JSON.parse(p.data),d=p.item,null===p.data||null===p.item)return;const m=i.BackgroundCommon.toColor(p.item),g=i.ANNOTATION.BALLOON_PROPERTIES.appearance[`color_${m}`];g&&(null!==this.iconElement&&(this.iconElement.src="",this.iconElement.src=i.extension.runtime.getURL(g.srcImage)),null!==this.iconContainerElement&&(this.iconContainerElement.style.backgroundColor=g.backgroundColor),i.BackgroundCommon.isHackerSafe(p.item.ufg)?e(`#content__header-${i.ANNOTATION.uid} > img`).css({display:"inline-block"}):e(`#content__header-${i.ANNOTATION.uid} > img`).css({display:"none"}),null!==this.recommendationElement&&this.getRecommendationString(p.item,e=>{e.length>c?this.recommendationElement.style.fontSize=this.recommendationDefStyle[r].fontSize:this.recommendationElement.style.fontSize=this.recommendationDefStyle[a].fontSize,this.recommendationElement.innerHTML=e}),null===this.bubbleLayerElement||this.bubbleLayerElement.getAttribute("has-listener")||(this.bubbleLayerElement.setAttribute("has-listener",!0),this.bubbleLayerElement.addEventListener("mouseleave",e=>{this.dossierElement.removeEventListener("click",h),this.hideBalloon(this._document,i.ANNOTATION.uid,e)})),null!==this.balloonElement&&(this.balloonElement.style.width=i.ANNOTATION.BALLOON_PROPERTIES.width,this.balloonElement.style.borderColor=g.backgroundColor,this.balloonElement.style.display="flex",this.balloonElement.style.flexDirection="row"),void 0!==p.item.cat&&this.setCategories(p.item.cat),i.ANNOTATION.hasReportPage?null!==this.dossierElement&&s.getResString("annotation_balloon_view_site_report",e=>{this.dossierElement.innerHTML=m===i.CommonConstants.Color.UNKNOWN?"":e,i.ANNOTATION.PPS_MODE?(u=p.item.dossierUrl,this.dossierElement.addEventListener("click",h)):this.dossierElement.onclick=()=>{const e={};return e.toElement=this.dossierElement,this.hideBalloon(document,i.ANNOTATION.uid,e),i.BackgroundIPC.viewSiteReport(p.item.dossierUrl,!0),!1}}):this.dossierElement.style.display="none",this.moveBubble(t,_),Number(n.autoclose)>0&&(i.ANNOTATION._activeBalloonElement=_,setTimeout(()=>{i.ANNOTATION._activeBalloonElement===_&&(this.bubbleLayerElement.style.visibility="hidden")},n.autoclose)))}getBalloonPosition(e,t){const n=t.getBoundingClientRect(),{body:i}=e,o=e.documentElement,s=window.pageYOffset||o.scrollTop||i.scrollTop,r=window.pageXOffset||o.scrollLeft||i.scrollLeft,a=o.clientTop||i.clientTop||0,c=o.clientLeft||i.clientLeft||0;let l=n.top+s-a,u=n.right+r-c;const d=this.bubbleLayerElement.getBoundingClientRect();if(d.height>window.innerHeight||d.width>window.innerWidth)return{top:-1,left:-1};return l+d.height+15>window.innerHeight+s&&(l=l-(d.height-(window.innerHeight+s-l))-15),u+d.width+15>window.innerWidth+r&&(u=u-(d.width-(window.innerWidth+r-u))-15),{top:Math.round(l),left:Math.round(u)}}moveBubble(e,t){const n=t,o=this.getBalloonPosition(e,n);if(-1===o.top||-1===o.left)return i.BackgroundIPC.logInfo("Hiding balloon since there is no space to show it"),void(this.bubbleLayerElement.style.visibility="hidden");i.BackgroundIPC.logInfo(`Showing balloon at ${o.top} , ${o.left}`),this.bubbleLayerElement.style.top=`${o.top}px`,this.bubbleLayerElement.style.left=`${o.left}px`,this.bubbleLayerElement.style.visibility="visible"}hideBalloon(e,t,n){if(this._document=e,this._uid=t,!this.init(!1))return;const i=n.toElement||n.relatedTarget;null!==i&&this.bubbleLayerElement.contains(i)||(this.bubbleLayerElement.style.visibility="hidden")}}}).call(this,n(18))},function(e,t,n){const i=n(22),{CONSTANTS:o}=n(36),{Balloon:s}=n(63);t.BalloonCreator=class{static createBalloon(){try{return document.getElementById(`${o.bubbleLayer}-${i.ANNOTATION.uid}`)||s.create(),!0}catch(e){return i.BackgroundIPC.logError(e.message),!1}}}},function(e,t,n){(function(e){const i=n(22),{CONSTANTS:o}=n(36);t.Balloon=class{static create(){e("head").append(`\n    <style>\n      @font-face {\n        font-family: 'Open Sans';\n        src: url(${(0,i.extension.runtime.getURL)("fonts/OpenSans-Regular.ttf")});\n      }\n\n      #${o.bubbleLayer}-${i.ANNOTATION.uid} {\n        background-color: #fff;\n        border: 1.5px solid red;\n        cursor: default;\n        display: flex;\n        font-family: 'Open Sans', sans-serif;\n        position: absolute;\n        visibility: hidden;\n        z-index: 2147483647;\n      }\n\n      #balloon__content-${i.ANNOTATION.uid} {\n        display: flex;\n        flex-direction: column;\n        flex: 1;\n        margin: 10px;\n      }\n      \n      #balloon__status-${i.ANNOTATION.uid} {\n        display: flex;\n        align-items: center;\n        justify-content: center;\n        width: 50px;\n      }\n\n      #content__categories-${i.ANNOTATION.uid} > ul {\n        color: #5d7998;\n        display: block;\n        font-size: 12px;\n        margin: 0;\n        padding-left: 20px;\n      }\n\n      #content__categories-${i.ANNOTATION.uid} > ul > li {\n        display: list-item;\n        list-style-type: disc;\n        padding-top: 5px;\n      }\n\n      #content__header-${i.ANNOTATION.uid} {\n        display: flex;\n        padding: 5px 0; \n      }\n\n      #content__header-${i.ANNOTATION.uid} > h3 {\n        color: #53565A;\n        flex-grow: 1;\n        font-size: 16px;\n        font-weight: bold;\n        margin: 0;\n      }\n\n      #content__header-${i.ANNOTATION.uid} > img {\n        align-self: flex-start;\n        display: none;\n        height: 17px;\n        width: 50px;\n      }\n\n      #content__link-${i.ANNOTATION.uid} {\n        display: flex;\n        flex-direction: row;\n        justify-content: flex-end;\n        padding-top: 5px;\n        font-size: 12px;\n        text-align: right;\n      }\n\n      #content__link-${i.ANNOTATION.uid} > a {\n        color: #0084B6;\n        text-decoration: underline;\n      }\n\n      #content__separator-${i.ANNOTATION.uid} {\n        background-color: #e2e4eb;\n        height: 1px;\n        margin: 10px 0;\n      }\n\n      #content__wa_logo-${i.ANNOTATION.uid} {\n        display: flex;\n        flex-direction: row;\n        justify-content: flex-end;\n      }\n\n      #content__wa_logo-${i.ANNOTATION.uid} > img {\n        height: 16px;\n      }\n    </style>\n  `),e("body").prepend(function(){const e=i.extension.runtime.getURL,t=i.ANNOTATION.BALLOON_PROPERTIES.logoImage,n=i.ANNOTATION.BALLOON_PROPERTIES.hackerSafeImage;return`\n    <div id="${o.bubbleLayer}-${i.ANNOTATION.uid}" onselectstart="return false" oncontextmenu="return false">\n      <div id="balloon__status-${i.ANNOTATION.uid}">\n        <img id="balloon__icon-${i.ANNOTATION.uid}" alt="Annotation icon">\n      </div>\n      <div id="balloon__content-${i.ANNOTATION.uid}">\n        <div id="content__header-${i.ANNOTATION.uid}">\n          <h3></h3>\n          <img src="${e(n)}" alt="Hackersafe logo">\n        </div>\n        <div id="content__categories-${i.ANNOTATION.uid}">\n          <ul></ul>\n        </div>\n        <div id="content__link-${i.ANNOTATION.uid}">\n          <a href="#"></a>\n        </div>\n        <div id="content__separator-${i.ANNOTATION.uid}"></div>\n        <div id="content__wa_logo-${i.ANNOTATION.uid}">\n          <img src="${e(t)}" alt="WebAdvisor logo">\n        </div>        \n      </div>\n    </div>\n  `}())}}}).call(this,n(18))},function(e,t,n){const{MUTATION_RESPONSE:i}=n(42),{MUTATION_READY_STATE:o}=n(65),s=n(22),r="mcafee_wa_userplayed",a="mcafee_wa_processedvideo",c=4e3;t.WebBoostMutation=class{constructor(){this._notifiedClient=!1,this._processLoadedElements()}_handlePlay(e){e.addEventListener("play",()=>{this._onplay(e)})}_onplay(e){const t=e.src.length>0?e.src:e.currentSrc;"true"!==e.getAttribute(r)&&s.BackgroundIPC.getLastClickedTime().then(n=>{const i=n||0;Date.now()-i<=c?e.setAttribute(r,"true"):s.BackgroundIPC.autoRunVideo(t)}).catch(()=>{})}_processVideoElement(e){"true"!==e.getAttribute(a)&&(e.setAttribute(a,"true"),(e.currentTime>0&&!1===e.paused&&!1===e.ended&&e.readyState>o.haveCurrentData||!0===e.autoplay)&&this._onplay(e),this._handlePlay(e))}_recursiveProcess(e){for(let t=0;t<e.childNodes.length;++t)this._recursiveProcess(e.childNodes[t]);e instanceof HTMLMediaElement&&this._processVideoElement(e)}nodeAdded(e){return!0===this._notifiedClient?i.NoMoreRequired:(this._recursiveProcess(e),this._notifiedClient?i.NoMoreRequired:i.Continue)}_processLoadedElements(){setTimeout(()=>{const e=document.querySelectorAll("audio, video");for(let t=0;t<e.length;++t)this._processVideoElement(e[t])},3e3)}}},function(e,t){t.MUTATION_READY_STATE={haveNothing:0,haveMetadata:1,haveCurrentData:2,haveFutureData:3,haveEnoughData:4}},function(e,t){t.ANNOTATION_PROPERTIES={hackersafe:{highlightColor:"#CCFFCC",color:"green",width:68,height:16,icon:"images/annotation/hackersafe_icon.svg"},certified:{highlightColor:"#CCFFCC",color:"green",width:16,height:16,icon:"images/annotation/green_icon.svg"},ok:{highlightColor:"#CCFFCC",color:"green",width:16,height:16,icon:"images/annotation/green_icon.svg"},info:{highlightColor:"#F7F995",color:"yellow",width:16,height:16,icon:"images/annotation/yellow_icon.svg"},warn:{highlightColor:"#FFAAAA",color:"red",width:16,height:16,icon:"images/annotation/red_icon.svg"},unknown:{highlightColor:"#FFFFFF",color:"white",width:16,height:16,icon:"images/annotation/white_icon.svg"}}},function(e,t){t.BALLOON_PROPERTIES={logoImage:"images/web_advisor/logo.png",hackerSafeImage:"images/balloon/hackersafe_icon.png",width:"325px",appearance:{color_0:{srcImage:"images/balloon/green_icon.png",backgroundColor:"#0BD175"},color_1:{srcImage:"images/balloon/yellow_icon.png",backgroundColor:"#FF9900"},color_2:{srcImage:"images/balloon/red_icon.png",backgroundColor:"#F1342F"},color_3:{srcImage:"images/balloon/white_icon.png",backgroundColor:"#768F99"},color_4:{srcImage:"images/balloon/green_icon.png",backgroundColor:"#0BD175"}}}},,,,function(e,t){t.GTIProxy=class{constructor(e){this.BackgroundIPC=e}post(e,t,n){try{return this.BackgroundIPC.makeGTIRequest(e,t,n)}catch(e){return this.BackgroundIPC.logError(e.message)}}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var i=n(30),o=n(5),s=n(1),r=n(10),a=n(0),c=n(11);const l={DEFAULT:{cursor:"default",position:"absolute",zIndex:9999}};class u extends i.a{constructor(){super(l),this.strConvertor=null}async init(t){if(!await this.initContainer({htmlPath:"html/ss_experience_balloon.html",cssPath:"css/ss_experience_balloon.css"}))return;this.strConvertor=new r.a(null,this.shadowRoot),this.strConvertor.init();const n={containerMeta:this,identifier:a.e.WELCOME_SS_ON,sequence:1,type:a.n.FIRST_ANNOTATION};c.a.handle(n),this.hostNode.style.top=`${Math.round(t.top+20)}px`,this.hostNode.style.left=`${Math.round(t.left)}px`,this.hostNode.style.transform="translate(36px, calc(-50% + 8px))",this.clickListener(".action-buttons > .got-it",()=>{o.a.showSSWelcomeAnnotation(!1),this.close()}),this.clickListener(".action-buttons > .learn-more",()=>{this.close();const e={command:s.d.BALLOON_MESSAGE,payload:{subcommand:s.c.SS_EXPERIENCE,componentData:{ssExperience:{flow:"ANNOTATION"}}}};o.a.contentHandler(e)}),e(window).scroll(()=>this.query(".mc-ss-experience-container").addClass("hide-pointer"))}close(){this.closeContainer();const e=document.querySelector("[mcssexperience]");e&&e.removeAttribute("mcssexperience")}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return s}));var i=n(21),o=n(3);class s{constructor(){this.root=null,this.defaultMcAfeeIcon="/images/web_advisor/white_mcafee_icon.svg"}async init(t){this.root=t;const n=new i.a,s=await n.sendHttpRequest({url:o.a.runtime.getURL("css/interactive_balloon.css")}),r=await s.text();this.root.appendChild(e(`<style>${r}</style>`).get()[0])}create(t={}){const{defaultIcon:n=this.defaultMcAfeeIcon,animateIcon:i=null}=t,s=`\n      <div class='mc-interactive-balloon'>\n        <img src='${o.a.runtime.getURL(i||n)}' />\n      </div>\n    `,r=e(s);this.root.appendChild(r.get()[0]),i&&setTimeout(()=>{const e=r.find("img");e.fadeOut(500,()=>{e.attr("src",o.a.runtime.getURL(n)),e.fadeIn(500)})},2e3)}}}).call(this,n(18))},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return u}));var i=n(10),o=n(3),s=n(5),r=n(0),a=n(11),c=n(41),l=n(13);class u{constructor(e,t){this.componentData=e,this.telemetryData={},this.timeoutId=null,this.delayTimerId=null,this.shadowRoot=t.shadowRoot,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.query=t.query,this.interactiveBalloon=t.interactiveBalloon}async init(){const{sourceType:e,delay:t}=this.componentData,{name:n}=e;this.delayTimerId=setTimeout(async()=>{this.delayTimerId=null,this.interactiveBalloon.create({animateIcon:`images/floating_balloon/find_similar_pages/${n}_icon.svg`}),this.strConvertor=new i.a(null,this.shadowRoot),this.strConvertor.init(),await this.createContentContainer(),this.initListeners(),this.showContainer(),this.sendRespectiveTelemetry(r.h.IMPRESSION)},t)}initListeners(){const{searchText:e,findSimilarPagesUrl:t}=this.componentData,n=`${t}${e}`;this.clickListener(".body-container > .main-body",()=>{this.sendRespectiveTelemetry(r.h.FIND_SIMILAR_PAGES.LINK_CLICKED),this.closeContainer(),s.a.focusOrCreateTab(n)}),this.clickListener("#close-btn",()=>{this.sendRespectiveTelemetry(r.h.CLOSE_CLICKED),this.closeContainer()});const i=this.shadowRoot.querySelector(".inner-container");i.addEventListener("mouseenter",()=>{this.setTimer(!1)}),i.addEventListener("mouseleave",()=>{this.setTimer(!0)})}async createContentContainer(){const{searchText:t,sourceType:n}=this.componentData,{name:i}=n,s=`<span style="color:#1671EE; font-weight:700;">${t.length>27?`${t.substr(0,24)}...`:t}</span>`,r=await this.getTextVariant(i),a=`balloon_find_similar_pages_notification_${i}_v${r}`,l=this.strConvertor.localeData(`${a}`,[s]),u=o.a.runtime.getURL(`images/floating_balloon/find_similar_pages/${i}_icon_blue.svg`),d=`\n    <div class='body-container'>\n      <div class='header'>\n        <img class='mfe-logo' src=${o.a.runtime.getURL("images/web_advisor/mcafee_webadvisor_logo.svg")} alt='mfe_webadvisor' />\n        <div class='x-close' id='close-btn'><img src=${o.a.runtime.getURL("images/web_advisor/x-icon.svg")} alt='close' /></div>\n      </div>\n      <div class="main-body">\n        <img src=${u} alt="icon" />\n        <div class="main-description" id="${a}">${l}</div>\n      </div>\n    </div>\n    `;this.query(".inner-container").append(e(d)),this.setTimer(!0),c.a.updateTextVariant(i,r)}async getTextVariant(e){let t=(await c.a.getFindSimilarPagesDetails())[`${e}TextVariant`];if(void 0===t)t=1;else{t++,t>(l.d[e.toUpperCase()].variants||1)&&(t=1)}return t}sendRespectiveTelemetry(e){const t={interaction_type:e};e!==r.h.HOVERED&&e!==r.h.DISMISSED&&(t.identifier=r.e.FIND_SIMILAR_PAGES,t.eventName=r.e.FIND_SIMILAR_PAGES,t.domain=this.componentData.sourceName,t.identifier&&a.a.handle(t))}setTimer(e=!1){const{timeout:t}=this.componentData;e?this.timeoutId=setTimeout(()=>{this.closeContainer()},t):clearTimeout(this.timeoutId)}}}).call(this,n(18))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var i=n(8),o=n(2),s=n(1),r=n(5),a=n(15),c=n(37),l=n(40),u=n.n(l),d=n(11),h=n(0),p=n(4),_=n(3);var m=n(24),g=n(17);class E{constructor(e){this.engines=e,this.updateSocialMedia()}updateSocialMedia(){if(i.a.socialMediaToggle&&i.a.socialMediaOption!==g.c.NONE)for(const e of this.engines)e.socialMediaType&i.a.socialMediaOption&&(e.enabled=!0)}checkEngineRegEx(e,t){for(let n=0;n<t.length;++n)try{if(new RegExp(t[n],"i").test(e))return!0}catch(e){r.a.logError(e.message)}return!1}getSecureEngineName(e){return e.includes("yahoo")?"yahoo":e.includes("bing")?"bing":e.includes("yandex")?"yandex":""}getEngineForUrl(e){const t=i.a.bkGlobals.nativeSettings.SECURE_SEARCH_REGEXES.value;let n=null;return t.length>0&&(n=this.getSecureEngineName(t[0])),this.engines.find(i=>{if(!i.enabled)return!1;if(i.secureurlre){const o=n===i.name?t:i.secureurlre;if(this.checkEngineRegEx(e,o))return i.issecuresearch=!0,!0}return!!this.checkEngineRegEx(e,i.urlre)&&(i.issecuresearch=!1,!0)})}getSMAForUrl(e){return this.engines.find(t=>this.checkEngineRegEx(e,t.urlre)&&t.socialMediaType)}getFindSimilarPagesEngineForUrl(e){return this.engines.find(t=>this.checkEngineRegEx(e,t.urlre)&&t.findSimilarPages)}getEngines(){return this.engines}}var f=n(13),T=n(71),S=n(25),A=(n(14),n(6)),O=n(35),N=n(30);const C={DEFAULT:{top:"0",padding:"0",margin:"0",zIndex:"2147483646",position:"fixed",border:"none",opacity:"0",left:"0",display:"block",boxShadow:"0 0 10px rgba(0, 0, 0, 0.12)"},HIDE:{transition:"width 0s 0.4s, height 0s 0.4s, opacity 0.4s, transform 0.4s",transform:"translate3d(0, -80px, 0)",opacity:"0",width:"0"},SHOW:{transition:"opacity 0.4s, transform 0.4s",transform:"translate3d(0, 0, 0)",opacity:"1",width:"100%",backgroundColor:"transparent"}};class b extends N.a{constructor(){super(C)}async init(e,t){return await this.initContainer(e,t)}}var I=n(10);class y{constructor(e,t){this.componentData=e,this.telemetryData={},this.shadowRoot=t.shadowRoot,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener}async init(){new I.a(null,this.shadowRoot).init(),this.initListeners(),this.showContainer()}initListeners(){this.clickListener("#iframe_banner_close_btn",this.closeContainer),this.clickListener("#iframe_banner_view_all_btn",()=>{r.a.unblockAllIframes(),this.closeContainer()})}}var L=n(16);class v{constructor(e,t){this.componentData=e,this.domain=e.cryptoBlockData.domain,this.miner=e.cryptoBlockData.miner,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:h.e.CRYPTOJACKING_BLOCK,state:h.m.MISC.LOADED,domain:this.domain,miner:this.miner,containerMeta:t}}async init(){const e=new I.a(null,this.shadowRoot);e.init();const t=`<a id='cryptojacking_learn_link' href=${_.a.runtime.getURL("html/mcafee_wa_crypto_learn.html")} target='_blank'>${e.localeData("cryptojacking_banner_learn_more")}</a>`,n=e.localeData("cryptojacking_banner_message",[t]);this.query(".crypto-block-body__message").eq(0).html(n),this.initListeners(),this.showContainer(),d.a.handle(this.options)}initListeners(){this.clickListener("#cryptojacking_banner_close_btn",()=>{this.closeContainer()}),this.clickListener("#cryptojacking_banner_allow_btn",()=>{r.a.whitelist(L.a.ADD,L.c.CRYPTOJACKING,{domains:[this.domain]}),window.location.reload()})}}class R{constructor(){this.iframeBlockShown=!1,this.iframeBlockedUrls={},this.cryptoBlockBannerShown=!1,this.topbarContainer=new b,this.componentMap={[s.k.IFRAME_BLOCK]:{template:{htmlPath:"html/topbar/topbar_iframe_block.html",cssPath:"css/topbar_iframe_block.css"},Component:y},[s.k.CRYPTO_BLOCK]:{template:{htmlPath:"html/topbar/topbar_crypto_block.html",cssPath:"css/topbar_crypto_block.css"},Component:v}}}processMessage(e,t=!1){this.isForegroundPage=t;const{subcommand:n}=e;if(n){switch(n){case s.k.IFRAME_BLOCK:if(this.iframeBlockShown)return;this.iframeBlockShown=!0;break;case s.k.CRYPTO_BLOCK:if(this.cryptoBlockBannerShown)return;this.cryptoBlockBannerShown=!0}this.RenderUIContainer(e)}}async RenderUIContainer(e){const{subcommand:t,componentData:n}=e;if(!t)return;const i=this.componentMap[t];if(!i)return;const{template:o,Component:s}=i;await this.topbarContainer.init(o,n)&&new s(n,this.topbarContainer).init()}getFrameUrls(){const e=[],t=document.getElementsByTagName("iframe");for(let n=0;n<t.length;++n)e.push(t[n].src);return e}async recheckIframeBlock(){if(this.iframeBlockShown)return;const e=this.getFrameUrls();if(0!==e.length&&await r.a.anyBlockedIframes(e)){if(this.iframeBlockShown)return;this.iframeBlockShown=!0;const e={},{template:t,Component:n}=this.componentMap[s.k.IFRAME_BLOCK];if(!await this.topbarContainer.init(t,{iframeBlockData:e}))return;new n({iframeBlockData:e},this.topbarContainer).init()}}async recheckCryptoBlock(){if(this.cryptoBlockBannerShown)return;const e=await r.a.anyBlockedCryptoScripts();if(e){if(this.cryptoBlockBannerShown)return;this.cryptoBlockBannerShown=!0;const{template:t,Component:n}=this.componentMap[s.k.CRYPTO_BLOCK];if(!await this.topbarContainer.init(t,{cryptoBlockData:e}))return;new n({cryptoBlockData:e},this.topbarContainer).init()}}}class w{constructor(e,t){this.componentData=e,this.providerId=e.toastData.providerId,this.toastMode=e.toastData.toastMode,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.options={identifier:h.e.TOAST,...e,hasCheckBox:!0,containerMeta:t}}async init(){this.providerId&&this.toastMode&&(this.initListeners(),this.initBackgroundListener(),this.initContent(),d.a.handle(this.options),this.showContainer())}initListeners(){const{BING:e,YAHOO:t}=f.c;this.providerId===t?this.clickListener("#iframe-toast-actions__yes",()=>{const e=this.query(".toast_content__checkbox > input").prop("checked");this.close(e)}):this.providerId===e&&(this.clickListener("#iframe-toast-actions__yes",()=>{this.close(!0)}),this.clickListener("#iframe-toast-actions__no",()=>{this.close(!1)}))}initContent(){const e=new I.a(null,this.shadowRoot);e.init();const{BING:t,YAHOO:n}=f.c,i=2===this.toastMode;if(e.fillText("toast_heading",e.localeData(i?"search_toast_heading_test":"search_toast_heading_compliant")),e.fillText("toast_sub_heading",e.localeData(i?"search_toast_sub_heading_test":"search_toast_sub_heading_compliant")),e.fillText("toast_body_text",e.localeData(i?"search_toast_body_text_test":"search_toast_body_text_compliant")),this.providerId===n){this.query("#iframe-toast-actions__no").css("display","none");const t=e.localeData(i?"search_toast_option_test":"search_toast_option_compliant",e.localeData("search_engine_yahoo"));e.fillText("toast_option",t),e.fillText("toast_button_yes",e.localeData("search_toast_ok"))}else if(this.providerId===t){this.query(".toast_content__checkbox").css("display","none");const t=e.localeData(i?"search_toast_option_test":"search_toast_option_compliant",e.localeData("search_engine_bing"));e.fillText("toast_option",t),e.fillText("toast_button_yes",e.localeData("search_toast_yes")),e.fillText("toast_button_no",e.localeData("search_toast_no_thanks"))}}close(e){const t=o.l[p.a.browserTypeToString()];if(e&&t){window.location.href=t;const e=s.d.PAGE_OVERLAY,n={subcommand:s.h.SEARCH_EXTENSION_OVERLAY,componentData:{}};r.a.contentHandler({command:e,payload:n})}r.a.closeToast(e),this.closeContainer()}initBackgroundListener(){_.a.runtime.onMessage.addListener((e,t)=>{if(t.id!==_.a.runtime.id)return;const{command:n,payload:i}=e;n===s.d.TOAST&&i.subcommand===s.j.CLOSE_ALL_TOASTS&&this.closeContainer()})}}const D={DEFAULT:{bottom:"0",right:"0",padding:"0",margin:"0",zIndex:"2147483640",position:"fixed",border:"none",opacity:"0",display:"block"},HIDE:{opacity:"0",height:"0",width:"0"},SHOW:{opacity:"1",width:"450px",height:"272px",backgroundColor:"white",boxShadow:"2px 2px 8px rgba(0, 0, 0, 0.217821)"}};class P extends N.a{constructor(){super(D)}async init(e,t){return await this.initContainer(e,t)}}class k{constructor(){this.toastContainer=new P,this.componentMap={[s.j.SECURE_SEARCH]:{template:{htmlPath:"html/toast.html",cssPath:"css/toast.css"},Component:w}}}async processMessage(e){const{subcommand:t,componentData:n}=e;if(!t)return;const i=this.componentMap[t];if(!i)return;const{template:o,Component:s}=i;await this.toastContainer.init(o,n)&&new s(n,this.toastContainer).init()}}const x={DEFAULT:{bottom:"0",right:"0",padding:"0",margin:"0",zIndex:"2147483640",position:"fixed",border:"none",opacity:"0",display:"block"},HIDE:{opacity:"0",height:"0",width:"0"},SHOW:{opacity:"1",width:"100%",height:"100%",backgroundColor:"transparent"}};class B extends N.a{constructor(){super(x)}async init(e,t){return await this.initContainer(e,t)}}class M{constructor(e,t){this.componentData=e,this.shadowRoot=t.shadowRoot,this.query=t.query,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener}async init(){this.initListeners(),this.initContent(),this.initBackgroundListener(),this.showContainer()}initListeners(){this.clickListener("#download_overlay_close_btn",this.closeContainer)}initContent(){const e=new I.a(null,this.shadowRoot);e.init(),e.fillText("overlay_instruction",e.localeData("overlay_add_ss"))}initBackgroundListener(){_.a.runtime.onMessage.addListener((e,t)=>{if(t.id!==_.a.runtime.id)return;const{command:n,payload:i}=e;n===s.d.PAGE_OVERLAY&&i.subcommand===s.h.FINISH_DOWNLOAD&&(this.query(".step_1").attr("class","step_1"),this.query(".step_2").attr("class","step_2 active"),this.query("#overlay_instruction").html(_.a.i18n.getMessage("overlay_accept_ss")),this.query(".description_line_1").attr("class","description_line_1 animate"),this.query(".arrow-container").attr("class","arrow-container point-accept-ss"))})}}class U{constructor(){this.pageOverlayContainer=new B,this.componentMap={[s.h.SEARCH_EXTENSION_OVERLAY]:{template:{htmlPath:"html/download_overlay.html",cssPath:"css/download_overlay.css"},Component:M}}}async processMessage(e){const{subcommand:t,componentData:n}=e;if(!t)return;const i=this.componentMap[t];if(!i)return;const{template:o,Component:s}=i;await this.pageOverlayContainer.init(o,n)&&new s(n,this.pageOverlayContainer).init()}}const G={DEFAULT:{bottom:"30px",cursor:"pointer",position:"fixed",right:"30px",zIndex:9999},HIDE:{},SHOW:{}};class H extends N.a{constructor(e=[],t=!1,n,i={}){super(G),this.templateType=i.templateType||o.j.ADBLOCK,this.btnTimeCount=i.timeout||1e4,this.delay=i.delay||0,this.counter=0,this.countMap={},this.domReady=!1,this.isBorderSpinning=t,this.alwaysShowLogo=i.alwaysShowLogo||!1,this.showExpandedBalloon=i.showExpandedBalloon||!1,this.isHidden=!0,this.notifications=e,this.parentHandler=n,this.setCountQueue=[],this.strConvertor=null,this.timeoutId=null,this.delayTimerId=null,this.url="",this.sourceName=i.sourceName||""}async init(){this.delayTimerId=setTimeout(async()=>{if(this.delayTimerId=null,await this.initContainer({htmlPath:"html/floating_balloon.html",cssPath:"css/floating_balloon.css"})){this.url=document.location.href,this.domReady=!0,this.isHidden=!1,this.isBorderSpinning&&this.query(".bubble").addClass("bubble--animate__show"),this.clickListener("#mc-close-btn",()=>{this.hideFloatingActionButton(h.h.CLOSE_CLICKED)}),this.strConvertor=new I.a(null,this.shadowRoot),this.strConvertor.init(),this.updateTemplate(),this.initEventHandlers();for(const e of this.setCountQueue)this.setCounter(e);this.showContainer(),this.sendRespectiveTelemetry(h.h.IMPRESSION)}},this.delay)}sendRespectiveTelemetry(e){const t={interaction_type:e};i.a.PPS_MODE?(t.identifier=h.e.DOWNLOAD_SCAN_UI,t.count=this.counter.toString()):i.a.bkGlobals.AP_FEATURE_ENABLED&&(t.identifier=h.e.ADBLOCK_INTERACTION,t.eventName=h.e.ADBLOCK.BUBBLE,t.domain=this.url,t.ads_count=(this.countMap.balloon_adblock_notification_ad||0).toString(),t.tracker_count=(this.countMap.balloon_adblock_notification_tracker||0).toString(),t.containerMeta=this),t.identifier&&d.a.handle(t)}updateTemplate(){this.notifications.forEach(e=>{const t=this.localize(`${e.textId}_singular`);this.countMap[e.textId]=0,this.query(".bubble__content--expanded__details").append(`\n        <div class="bubble__content--expanded__details__row">\n          <img class="bubble__content--expanded__details__image" height="20" src="${e.imgPath}"/>\n          <div class="bubble__content--expanded__details__text" id="${e.textId}">${t}</div>\n        </div>\n        `)})}localize(e,t=0){if(void 0!==e)return this.strConvertor.localeData(e,[`<span id="notification-counter">${t}</span>`])}initEventHandlers(){const e=this.shadowRoot.querySelector(".bubble");let t=null,n=null,i=null,o=!1,s=!1;const r=this.notifications.length>1?`${20*this.notifications.length+70}px`:"80px";this.setTimer(!0),i=e.animate([{offset:0,borderRadius:"50%",minHeight:"40px",width:"40px"},{offset:.5,borderRadius:"4px",minHeight:"40px",width:"40px"},{offset:1,borderRadius:"4px",minHeight:r,width:"180px"}],{duration:750,easing:"ease-in-out",fill:"both"}),i.pause();const a=()=>{clearTimeout(n),o||s||(t=setTimeout(()=>{o=!0,this.query("#mc-bubble-count").hide(),this.query(".bubble").toggleClass("bubble--animate__hide"),this.query(".bubble__content").css({transition:"all 0.3s ease 0.5s",transform:"translate(0, 0)"}),this.query("#mc-mcafee-logo").show(),i.playbackRate=1,i.play()},300))};e.addEventListener("mouseenter",()=>{a(),this.setTimer(!1)}),e.addEventListener("mouseleave",()=>{clearTimeout(t),o&&(n=setTimeout(()=>{o=!1,s=!0,this.query(".bubble__content").css({transition:"all 0.3s ease"}),this.query(".bubble__content").css({"background-color":"transparent",transform:"translate(6px, 5px)"}),this.query(".content__shield > img").css({"clip-path":"inset(0 50px 0 0)"}),this.query(".content__close").hide(),this.query(".bubble__content--expanded").hide(),i.playbackRate=-1,i.play(),this.setTimer(!0)},300))}),i.onfinish=()=>{o?(this.sendRespectiveTelemetry(h.h.HOVERED),this.query(".content__shield > img").css({"clip-path":"inset(0 0 0 0)"}),this.query(".content__close").show(),this.query(".bubble__content--expanded").show(),this.query(".bubble__content").css({backgroundColor:"#E6E9F0"}),this.query(".bubble__content").css({transition:"all 0.3s ease"})):(s=!1,this.query(".bubble__content").css({transition:"all 0.3s ease 0.5s"}),this.query(".bubble").toggleClass("bubble--animate__hide"),this.alwaysShowLogo||this.query("#mc-mcafee-logo").hide(),this.query("#mc-bubble-count").show(300))},this.showExpandedBalloon&&a()}setCounter(e,t=!1){if(!this.domReady)return void this.setCountQueue.push(e);t?this.countMap[e.id]=e.value:this.countMap[e.id]++;const n=Object.values(this.countMap).reduce((e,t)=>e+t,0),i=n>99?"99+":String(n),o=this.countMap[e.id];let s=null;s=o>99?this.localize(e.pluralId,"99+"):o>1?this.localize(e.pluralId,o):this.localize(e.singularId,o),this.counter=n,this.query("#mc-bubble-count").text(i),this.query(`#${e.id}`).html(s)}hideFloatingActionButton(e){this.sendRespectiveTelemetry(e),this.parentHandler.init=!0,this.closeContainer()}setTimer(e=!1){e?this.timeoutId=setTimeout(()=>{this.hideFloatingActionButton(h.h.DISMISSED)},this.btnTimeCount):clearTimeout(this.timeoutId)}}var F=n(72);const W=[{imgPath:_.a.runtime.getURL("images/floating_balloon/adblock_notification_icon.svg"),textId:"balloon_adblock_notification_ad"},{imgPath:_.a.runtime.getURL("images/floating_balloon/tracker_notification_icon.svg"),textId:"balloon_adblock_notification_tracker"}],K=[{imgPath:_.a.runtime.getURL("images/floating_balloon/spinner.svg"),textId:"balloon_download_scanning_notification"}];class q{constructor(){this.floatingBubble={init:!0,component:null},this.upsellBalloon=null}processMessage(e){const{subcommand:t,componentData:n}=e;if(t)switch(t){case s.g.UPDATE_AD_COUNT:this.updateAdCount(e);break;case s.g.UPDATE_TRACKER_COUNT:this.updateTrackerCount(e);break;case s.g.UPDATE_DOWNLOAD_SCAN_COUNT:this.updateDownloadScanCount(e);break;case s.g.HIDE_BUBBLE:this.closeDownloadScanBubble();break;case s.g.SHOW_SS_EXPERIENCE_BALLOON:this.showSSExperienceBalloon(n)}}showSSExperienceBalloon(e){this.ssExperienceBalloon=new F.a,this.ssExperienceBalloon.init(e)}updateAdCount(e){if(i.a.bkGlobals.AP_FEATURE_ENABLED){this.floatingBubble.init&&(this.floatingBubble.init=!1,this.floatingBubble.component=new H(W,!1,this.floatingBubble),this.floatingBubble.component.init());const t={id:"balloon_adblock_notification_ad",singularId:"balloon_adblock_notification_ad_singular",pluralId:"balloon_adblock_notification_ad_plural",value:e.adsBlocked};this.floatingBubble.component.setCounter(t,!0)}}updateTrackerCount(e){if(i.a.bkGlobals.AP_FEATURE_ENABLED){this.floatingBubble.init&&(this.floatingBubble.init=!1,this.floatingBubble.component=new H(W,!1,this.floatingBubble),this.floatingBubble.component.init());const t={id:"balloon_adblock_notification_tracker",singularId:"balloon_adblock_notification_tracker_singular",pluralId:"balloon_adblock_notification_tracker_plural",value:e.trackersBlocked};this.floatingBubble.component.setCounter(t,!0)}}updateDownloadScanCount(){this.floatingBubble.init&&(this.floatingBubble.init=!1,this.floatingBubble.component=new H(K,!0,this.floatingBubble),this.floatingBubble.component.init());this.floatingBubble.component.setCounter({id:"balloon_download_scanning_notification",singularId:"balloon_download_scanning_notification_singular",pluralId:"balloon_download_scanning_notification_plural"},!1)}closeDownloadScanBubble(){this.floatingBubble.component.hideFloatingActionButton(h.h.DISMISSED)}}var j=n(34),$=n(32),Y=n(41),V=n(73);const z={DEFAULT:{bottom:"15px",padding:"0px",margin:"0px",zIndex:"2147483646",position:"fixed",border:"none",opacity:"0",right:"65px",display:"block",backgroundColor:"transparent"},HIDE:{opacity:"0"},SHOW:{opacity:"1",backgroundColor:"transparent"}};class X extends N.a{constructor(){super(z),this.interactiveBalloon=new V.a}async init(e,t){const n=await this.initContainer(e,t);return await this.interactiveBalloon.init(this.shadowRoot),n}}const J={OVERLAY:{PRIMARY:{image:{path:"banner_main.svg",height:150},title:"ss_exp_overlay_web_protection_title",message:"ss_exp_overlay_web_protection_msg",points:["ss_exp_overlay_web_protection_p1","ss_exp_overlay_web_protection_p2","ss_exp_overlay_web_protection_p3","ss_exp_overlay_web_protection_p4"],btnText:"ss_exp_overlay_btn_next"},SECONDARY:{image:{path:"banner_animated.gif",height:210},title:"ss_exp_overlay_sites_worry_free_title",message:"ss_exp_overlay_sites_worry_free_msg",points:[],btnText:"ss_exp_overlay_btn_try_it"}},ANNOTATION:{PRIMARY:{image:{path:"banner_animated.gif",height:210},title:"ss_exp_overlay_bank_worry_free_title",message:"ss_exp_overlay_bank_worry_free_msg",points:[],btnText:"ss_exp_overlay_btn_next"},SECONDARY:{image:{path:"banner_main.svg",height:150},title:"ss_exp_overlay_web_protection_title",message:"ss_exp_overlay_web_protection_msg",points:["ss_exp_overlay_web_protection_p1","ss_exp_overlay_web_protection_p2","ss_exp_overlay_web_protection_p3","ss_exp_overlay_web_protection_p4"],btnText:"ss_exp_overlay_btn_done"}}},Q="PRIMARY",Z="SECONDARY";class ee{constructor(e,t){this.componentData=e,this.flow=e.ssExperience.flow,this.telemetryData={},this.shadowRoot=t.shadowRoot,this.showContainer=t.showContainer,this.closeContainer=t.closeContainer,this.clickListener=t.clickListener,this.query=t.query,this.interactiveBalloon=t.interactiveBalloon,this.bgOverlay=null,this.options=null}async init(){this.interactiveBalloon.create(),this.strConvertor=new I.a(null,this.shadowRoot),this.createContentContainer(this.flow,Q),this.initListeners();const e="ANNOTATION"===this.flow?h.n.FIRST_ANNOTATION:h.n.TOAST;this.options={containerMeta:this,identifier:h.e.WELCOME_SS_ON,flow:this.flow,sequence:2,type:e},d.a.handle(this.options),this.showContainer({bgGrayout:!0})}initListeners(){const e=this.query(".mc-main-message-container"),t=this.query("button#mc-accept-btn-next"),n=this.query("button#mc-accept-btn-done");t.click(t=>{const i=e.height(),o=this.query("#top-side"),s=this.query("#bottom-side");s.fadeTo(300,0),o.fadeTo(300,0,()=>{this.query("header").empty(),this.query("div.message-container").empty(),this.createContentContainer(this.flow,Z);const e=this.query(".mc-main-message-container").height();this.query(".mc-main-message-container").css({height:i}).animate({height:e},300),o.fadeTo(400,1),s.fadeTo(400,1)}),this.query(t.currentTarget).hide(),n.show(),this.query("#mc-ellipsis-first").removeAttr("activated"),this.query("#mc-ellipsis-second").attr("activated",!0)}),n.click(()=>e.hide(400,()=>{r.a.showSSWelcomeAnnotation(!1),this.closeContainer()}))}createContentContainer(e,t){const n=this.query(".mc-main-message-container");t===Q?(n.hide(),this.query("button#mc-accept-btn-next").text(this.strConvertor.localeData(J[e][t].btnText))):this.query("button#mc-accept-btn-done").text(this.strConvertor.localeData(J[e][t].btnText));const i=this.query("header"),o=this.query("div.message-container");i.append(`<img height='${J[e][t].image.height}' src='${_.a.runtime.getURL(`/images/ss_experience/${J[e][t].image.path}`)}'/>`),o.append(`<img class='logo' src=${_.a.runtime.getURL("/images/web_advisor/mcafee_brand.svg")} />`),o.append(`<div class='title'>${this.strConvertor.localeData(J[e][t].title)}</div>`),o.append(`<div class='message'>${this.strConvertor.localeData(J[e][t].message)}</div>`);const s=J[e][t].points;if(s.length){const e=_.a.runtime.getURL("/images/annotation/green_icon.svg"),t=s.map(t=>`<div class='points'><img src='${e}'>${this.strConvertor.localeData(t)}</div>`).join(" ");o.append(`<div class='message'>${t}</div>`)}t===Q&&n.show(0)}}var te=n(74);class ne{constructor(){this.balloonMessageContainer=new X,this.componentMap={[s.c.SS_EXPERIENCE]:{template:{htmlPath:"html/balloon_message/ss_experience.html",cssPath:"css/ss_experience.css"},Component:ee},[s.c.FIND_SIMILAR_PAGES]:{template:{htmlPath:"html/balloon_message/find_similar_pages.html",cssPath:"css/find_similar_pages.css"},Component:te.a}}}async processMessage(e){const{subcommand:t,componentData:n}=e;if(!t)return;const i=this.componentMap[t];if(!i)return;const{template:o,Component:s}=i;await this.balloonMessageContainer.init(o,n)&&new s(n,this.balloonMessageContainer).init()}}class ie{constructor(){this.engine=null,this.sidebarUIHandler=new O.a,this.topbarUIHandler=new R,this.toastUIHandler=new k,this.pageOverlayUIHandler=new U,this.floatingBalloonUIHandler=new q,this.balloonMessageUIHandler=new ne;const e={};e[s.d.SIDEBAR]=this.sidebarUIHandler,e[s.d.TOPBAR]=this.topbarUIHandler,e[s.d.TOAST]=this.toastUIHandler,e[s.d.PAGE_OVERLAY]=this.pageOverlayUIHandler,e[s.d.FLOATING_BALLOON]=this.floatingBalloonUIHandler,e[s.d.BALLOON_MESSAGE]=this.balloonMessageUIHandler,this.commandsMap=e}handleSMANotification(){this.engine&&!this.engine.socialMediaType&&r.a.showNPSChecklist()}handleAmazonUpsell(e){if(!e.nativeSettings.AMAZON_EXTN_TOAST_ENABLED.value)return;const t=o.b.GTI_CATEGORY_SIDEBAR.includes(e.nativeSettings.AMAZON_EXTN_TOAST_COHORT.value),n=o.b.GTI_CATEGORY_TOAST.includes(e.nativeSettings.AMAZON_EXTN_TOAST_COHORT.value);e.browserType===o.f.CHROME&&(t||n)&&c.a.isBrowserEN()&&j.a.shouldShowMessage().then(i=>{const{show:o,upsellCategoryType:a,categoryId:c,count:l,domain:u,amazonExtnStatus:d}=i;if(!o)return;if(!a||!c)return;const h=e.nativeSettings.AMAZON_EXTN_TOAST_COHORT.value;t?(j.a.updateShowing(a,!0),this.sidebarUIHandler.processMessage({subcommand:s.i.AMAZON_UPSELL_TOAST,componentData:{upsellCategoryType:a,categoryId:c,cohort:h,domain:u,amazonExtnStatus:d,...i}})):n&&(j.a.updateShownCounter(a,u),r.a.showAmazonExtnUpsellToast(a,l,d,u))})}handleRatDetection(e){e.nativeSettings.RAT_DETECTION_ENABLED.value&&$.a.shouldShowSidebar().then(e=>{e&&this.sidebarUIHandler.processMessage({subcommand:s.i.RAT_DETECTION,componentData:{ratData:{}}})})}handleSimilarPagesFeature(e){if(e.nativeSettings.FIND_SIMILAR_PAGES_ENABLED.value&&c.a.isChromeBrowser()&&c.a.isBrowserEN()){const t=document.location.href;Y.a.shouldShowMessage(t).then(({show:n,searchTextParameter:i,selector:o,sourceName:r,sourceType:a})=>{if(Y.a.updateDetails(n),n){const n=e.nativeSettings.SCRIPT_GENERATED_DEFAULT_SS_URL.value;if(!n)return;const c=Y.a.updateSSUrlParam(n),l=Y.a.getSearchText(t,i,o),u=e.nativeSettings.FIND_SIMILAR_PAGES_DELAY.value,d=e.nativeSettings.FIND_SIMILAR_PAGES_TIMEOUT.value;this.balloonMessageUIHandler.processMessage({subcommand:s.c.FIND_SIMILAR_PAGES,componentData:{findSimilarPagesUrl:c,searchText:l,sourceName:r,sourceType:a,delay:u,timeout:d}})}})}}async handleSSExperience(e){const t=A.a.SS_WELCOME_OVERLAY_PER_SESSION,n=await r.a.cacheStore(A.b.GET,{[t]:!0});0!==e.nativeSettings.SS_WELCOME_EXPERIENCE_COHORT.value&&this.url.includes("ss_welcome_overlay=true")&&n[t]&&this.engine&&this.engine.issecuresearch&&(r.a.showSSWelcomeAnnotation(!0),r.a.cacheStore(A.b.SET,{[t]:!1}),this.balloonMessageUIHandler.processMessage({subcommand:s.c.SS_EXPERIENCE,componentData:{ssExperience:{flow:"OVERLAY"}}}))}handleSearchOnMessage(e){const{SECURE_SEARCH_TOAST_STAMP:t,BLAST_TO_SEARCH_BASE_COHORT:n}=e.nativeSettings;if(e.browserType!==o.f.CHROME||!c.a.isBrowserEN()||0===n.value||!this.engine||!this.engine.issecuresearch)return;const i=A.c.BLAST_SEARCH_BASE_FIRST_TIME;r.a.cacheStore(A.b.GET,{[i]:!0}).then(e=>{e[i]&&t.value&&p.a.hasEpochTimeElapsed(t.value,259200)&&r.a.blastSearchBase()})}init(){this.url=document.location.href,this.engine=i.a.searchEngine.getEngineForUrl(this.url),Object(c.b)(()=>{this.handleSMANotification(),this.handleRatDetection(i.a.bkGlobals),this.handleSimilarPagesFeature(i.a.bkGlobals),this.handleSSExperience(i.a.bkGlobals),this.handleAmazonUpsell(i.a.bkGlobals),this.handleSearchOnMessage(i.a.bkGlobals)})}process(){document.location.href;const e=i.a.PPS_MODE?this.sidebarUIHandler:this.topbarUIHandler;e.recheckIframeBlock(),i.a.PPS_MODE||e.recheckCryptoBlock(),i.a.isSearchPage=u.a.annotate(),Object(c.b)(()=>{this.sidebarUIHandler.sidebarAutoMessage()});const{pingExtension:t}=S.a}processMessage(e,t){const{command:n,payload:i}=e,o=this.commandsMap[n];o&&(this.commandsMap[s.d.SIDEBAR]&&i.subcommand===s.i.DOWNLOAD_SCANNING_MALICIOUS&&this.floatingBalloonUIHandler.processMessage({subcommand:s.g.HIDE_BUBBLE}),o.processMessage(i),t({content:!0}))}}class oe{constructor(){this.contentDOM=new ie,this.messages=[]}processXYViewPortRequest(){if(!window)return;const{devicePixelRatio:e,mozInnerScreenX:t,mozInnerScreenY:n,screenX:i,screenY:o}=window,s=Math.round((t-i)*e),a=Math.round((n-o)*e);r.a.setViewPort(s,a)}init(){o.f.FIREFOX===o.g.BROWSER_TYPE&&(document.onreadystatechange=()=>{"complete"===document.readyState&&this.processXYViewPortRequest()})}startContentDom(){this.contentDOM.init(),_.a.runtime.onMessage.addListener((e,t,n)=>{if(t.id===_.a.runtime.id)try{this.contentDOM?(r.a.logInfo(`${e.command} received in frame with url: ${document.location.href}`),this.contentDOM.processMessage(e,n)):(r.a.logInfo("Message received however handler not initialized so msg is cached"),this.messages.push({request:e,sender:t,responseCb:n}))}catch(e){r.a.logError(`${e.message}\n${e.stack}`)}})}process(){try{this.contentDOM.process(),Object(l.initPageWatcher)();for(const{request:e,responseCb:t}of this.messages)this.contentDOM.processMessage(e,t);this.messages=[]}catch(e){r.a.logError(`${e.message}\n${e.stack}`)}}}class se{static async getBackgroundOptions(){const e=[];e.push(r.a.getBkGlobals()),e.push(r.a.searchAnnotation(f.b.GET,{})),e.push(r.a.socialMediaAnnotation(g.a.GET,{}));const[t,n,o]=await Promise.all(e);i.a.bkGlobals=t,i.a.searchAnnotationOption=n,i.a.socialMediaOption=o.socialMediaOption,i.a.socialMediaToggle=o.socialMediaToggle}static start(e){if(i.a.bkGlobals){i.a.resourceRequestor=new m.a,i.a.gtiRequestor=new T.GTIProxy(r.a),i.a.mapSelectors=new Map,i.a.searchEngine=new E(i.a.bkGlobals.searchEngines),u.a.initializeSettings({CommonConstants:{Color:o.h,swapObjectPropertyAndValues:o.p,BlockState:o.c},Commands:{ContentCommands:s.d,SideBarCommands:s.i,FloatingBalloonCommands:s.g},extension:_.a,Globals:i.a,BackgroundIPC:r.a,BackgroundCommon:p.a,ContextTelemetry:d.a,EventNames:h.e,UrlParser:a.a,Utils:c.a}),e.startContentDom();try{i.a.bkGlobals.AUTO_PLAY_NOTIFICATION_ENABLED&&window.addEventListener("click",r.a.saveLastClickedTime,!0),e.process()}catch(e){r.a.logError(e.message)}}}static async main(){const e=new oe;e.init(),await se.getBackgroundOptions(),se.start(e)}}se.main()}]);
//# sourceMappingURL=../sourceMap/chrome/content.map