CyberAlphaWolf

Server : Apache
System : Linux 182.49.167.72.host.secureserver.net 4.18.0-553.92.1.el8_10.x86_64 #1 SMP Wed Jan 14 06:31:58 EST 2026 x86_64
User : kikai ( 1014)
PHP Version : 8.3.30
Disable Function : NONE
Directory :  /home/kikai/public_html/wp-content/plugins/hummingbird-performance/admin/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/kikai/public_html/wp-content/plugins/hummingbird-performance/admin/assets/js/wphb-app.min.js
!function(){var t={1597:function(t,e,n){"use strict";n.r(e);var i=n(9620);window.wphbMixPanel={optIn:function(){wphb.mixpanel.enabled=!0},deactivate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.track("plugin_deactivate",{reason:t,feedback:e})},trackHBUpsell:function(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"hb_upsell_triggered";this.track(o,{Feature:t,Location:e,"User Action":n,"UTM Link":i})},enableFeature:function(t){this.track("plugin_feature_activate",{feature:t})},trackEoUpsell:function(t,e){var n="delayjs"===t?"js_delay_upsell":"critical_css_upsell";this.track(n,{"Modal Action":"direct_cta",Location:e})},getUpdateType:function(t){return"activate"===t?"plugin_feature_activate":"deactivate"===t?"plugin_feature_deactivate":""},trackDelayJSEvent:function(t){"activate"===t.update_type&&this.enableFeature("JS Delay"),"deactivate"===t.update_type&&this.disableFeature("JS Delay"),this.track("js_delay_updated",t)},trackFontOptimizationEvent:function(t,e){"activate"===t&&this.enableFeature(e),"deactivate"===t&&this.disableFeature(e)},trackCriticalCSSEvent:function(t){"activate"===t.update_type&&this.enableFeature("Critical Css"),"deactivate"===t.update_type&&this.disableFeature("Critical Css"),this.track("critical_css_updated",t)},trackAOUpdated:function(t){var e=t.Mode.charAt(0).toUpperCase()+t.Mode.slice(1);t.Mode=e,this.track("ao_updated",t)},trackGutenbergEvent:function(t){this.track("critical_css_gutenberg",{feature:t}),"revert"===t&&this.track("critical_css_cache_purge",{location:"gutenberg"})},trackPageCachingSettings:function(t,e,n,i,o){var r="local_page_cache"===e?"Page Caching":e;"activate"===t&&this.enableFeature(r),"deactivate"===t&&this.disableFeature(r),this.track("page_caching_updated",{update_type:t,Method:e,Location:n,modified_settings:i,preload_homepage:o})},trackProUpsell:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"submenu";this.track(t,{Location:n,"User Action":e})},disableFeature:function(t){this.track("plugin_feature_deactivate",{feature:t})},track:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==wphb.mixpanel&&wphb.mixpanel.enabled&&i.A.mixpanel.trackMixpanelEvent(t,e)}}},2211:function(t,e,n){"use strict";var i=n(9620),o=n(5138),r=n(5345);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function u(t,e,n){return e=p(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function d(t,e,n,i){var o=f(p(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var m,v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(r=[{key:"step",value:function(t){var n=this;d(e,"step",this,3)([t]),this.currentStep++,t>0?i.A.advanced.clearOrphanedBatch(3e3).then((function(t){var e=1e3;void 0!==t.highCPU&&t.highCPU?(e=1e4,document.getElementById("site-health-orphanned-speed").classList.remove("sui-hidden")):document.getElementById("site-health-orphanned-speed").classList.add("sui-hidden"),window.setTimeout((function(){n.updateProgressBar(n.getProgress()),n.step(n.totalSteps-n.currentStep)}),e)})):this.onFinish()}},{key:"onStart",value:function(){return document.getElementById("site-health-orphaned-progress").classList.remove("sui-hidden"),document.getElementById("site-health-orphaned-clear").classList.add("sui-button-onload"),Promise.resolve()}},{key:"onFinish",value:function(){d(e,"onFinish",this,3)([]),window.SUI.closeModal(),document.getElementById("count-ao-orphaned").innerHTML="0",window.WPHB_Admin.notices.show((0,o.A)("successAoOrphanedPurge"))}}])&&s(n.prototype,r),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(r.A);m=jQuery,WPHB_Admin.advanced={module:"advanced",init:function(){var t=this,e=this,n=m("#wphb-system-info-dropdown"),r=window.location.hash;if(m("#wphb-db-delete-all, .wphb-db-row-delete").on("click",(function(t){t.preventDefault(),e.showModal(t.target.dataset.entries,t.target.dataset.type)})),m('form[id="advanced-general-settings"], form[id="advanced-lazy-settings"]').on("submit",(function(t){t.preventDefault();var e=m(this).find(".sui-button-blue");e.addClass("sui-button-onload-text"),i.A.advanced.saveSettings(m(this).serialize(),t.target.id).then((function(t){e.removeClass("sui-button-onload-text"),void 0!==t&&t.success?(t.mp_events.forEach((function(t){for(var e in t)!1===t[e]?window.wphbMixPanel.disableFeature(e):window.wphbMixPanel.enableFeature(e)})),WPHB_Admin.notices.show()):WPHB_Admin.notices.show((0,o.A)("errorSettingsUpdate"),"error")}))})),m("#wphb-system-info-php").removeClass("sui-hidden"),r){var a=r.replace("#","");m(".wphb-sys-info-table").addClass("sui-hidden"),m("#wphb-system-info-"+a).removeClass("sui-hidden"),n.val(a).trigger("sui:change")}n.on("change",(function(t){t.preventDefault(),m(".wphb-sys-info-table").addClass("sui-hidden"),m("#wphb-system-info-"+m(this).val()).removeClass("sui-hidden"),location.hash=m(this).val()})),m("#wphb-adv-paste-value").on("click",(function(t){t.preventDefault();var e=m('textarea[name="url_strings"]');""===e.val()?e.val(e.attr("placeholder")):e.val(e.val()+"\n"+e.attr("placeholder"))}));var s=document.getElementById("cart_fragments");s&&s.addEventListener("change",(function(t){t.preventDefault(),m("#cart_fragments_desc").toggle()}));for(var c=document.querySelectorAll('input[name="button[alignment][align]"]'),u=document.getElementById("button_margin_l"),l=document.getElementById("button_margin_r"),d=function(t){c[t].addEventListener("change",(function(){"center"===c[t].value&&c[t].checked?(u.setAttribute("disabled","disabled"),l.setAttribute("disabled","disabled"),u.value=0,l.value=0):(u.removeAttribute("disabled"),l.removeAttribute("disabled"))}))},f=0;f<c.length;f++)d(f);m('input[id="lazy_load"]').on("change",(function(){m("#wphb-lazy-load-comments-wrap, #sui-upsell-gravtar-caching").toggle()})),!0===window.location.search.includes("view=lazy")&&this.createPickers();var p=document.getElementById("btn-cache-purge");p&&p.addEventListener("click",(function(){return t.purgeDb()}));var h=document.getElementById("btn-minify-purge");h&&h.addEventListener("click",(function(){return t.purgeDb("minify")}));var g=document.getElementById("site-health-orphaned-clear");return g&&g.addEventListener("click",(function(){var t=document.getElementById("count-ao-orphaned").innerHTML,e=Math.ceil(parseInt(t)/3e3);new v(e,0).start()})),this},showModal:function(t,e){var n,i=m("#wphb-database-cleanup-modal"),r='<span class="sui-icon-trash" aria-hidden="true"></span>';"drafts"===e?(n=(0,o.A)("dbDeleteDrafts"),r+=(0,o.A)("dbDeleteDraftsButton")):(n=(0,o.A)("db_delete")+" "+t+" "+(0,o.A)("db_entries")+"? "+(0,o.A)("db_backup"),r+=(0,o.A)("dbDeleteButton")),i.find("p").html(n),i.find(".sui-button-red").attr("data-type",e).html(r),window.SUI.openModal("wphb-database-cleanup-modal","wpbody-content","wphb-clear-database-confirm",!1)},confirmDelete:function(t){var e;window.SUI.closeModal();var n=m(".box-advanced-db .sui-box-footer");e="all"===t?n:m(".box-advanced-db .wphb-border-frame").find("div[data-type="+t+"]");var r=m("#wphb-db-delete-all"),a=e.find(".wphb-db-row-delete");r.addClass("sui-button-onload-text"),a.addClass("sui-button-onload"),i.A.advanced.deleteSelectedData(t).then((function(t){for(var e in r.removeClass("sui-button-onload-text"),a.removeClass("sui-button-onload"),t.left)if("total"===e){var i=(0,o.A)("deleteAll")+" ("+t.left[e]+")";n.find(".wphb-db-delete-all").html(i),n.find("#wphb-db-delete-all").attr("data-entries",t.left[e])}else{var s=m(".box-advanced-db div[data-type="+e+"]");s.find(".wphb-db-items").html(t.left[e]),s.find(".wphb-db-row-delete").attr("data-entries",t.left[e]).attr("disabled","0"===t.left[e])}WPHB_Admin.notices.show(t.message)})).catch((function(t){WPHB_Admin.notices.show(t,"error"),r.removeClass("sui-button-onload-text"),a.removeClass("sui-button-onload")}))},createPickers:function(){var t=m(".sui-colorpicker-input");t.wpColorPicker({change:function(t,e){var n=m(this);n.val()!==e.color.toCSS()&&n.val(e.color.toCSS()).trigger("change")}}),t.hasClass("wp-color-picker")&&t.each((function(){var t=m(this),e=t.closest(".sui-colorpicker-wrap"),n=e.find(".sui-colorpicker-value span[role=button]"),i=e.find(".sui-colorpicker-value"),o=t.closest(".wp-picker-container"),r=o.find(".wp-color-result");t.on("change",(function(){n.find("span").css({"background-color":r.css("background-color")}),i.find("input").val(t.val())})),e.find(".sui-button, span[role=button]").on("click",(function(t){r.click(),t.preventDefault(),t.stopPropagation()})),i.find("button").on("click",(function(e){o.find(".wp-picker-clear").click(),i.find("input").val(""),t.val("").trigger("change"),n.find("span").css({"background-color":""}),e.preventDefault(),e.stopPropagation()}))}))},purgeDb:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cache",e=document.getElementById("btn-"+t+"-purge");e&&(e.classList.add("sui-button-onload-text"),i.A.common.call("wphb_advanced_purge_"+t).then((function(){document.getElementById("count-"+t).innerHTML="0",e.classList.remove("sui-button-onload-text");var n="successAdvPurge"+t.charAt(0).toUpperCase()+t.slice(1);WPHB_Admin.notices.show((0,o.A)(n))})))}}},1502:function(t,e,n){"use strict";var i=n(9620),o=n(5138),r=n(5345);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function u(t,e,n){return e=p(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function d(t,e,n,i){var o=f(p(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var m,v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(o=[{key:"step",value:function(t){var n=this;if(d(e,"step",this,3)([t]),this.currentStep++,t>0){var o=20*(this.totalSteps-t);i.A.caching.clearCacheBatch(20,o).then((function(){n.updateProgressBar(n.getProgress()),n.step(n.totalSteps-n.currentStep)}))}else this.onFinish()}},{key:"onStart",value:function(){var t=this;return i.A.common.call("wphb_get_network_sites").then((function(e){t.totalSteps=Math.ceil(parseInt(e)/20)}))}},{key:"onFinish",value:function(){d(e,"onFinish",this,3)([]),location.reload()}}])&&s(n.prototype,o),r&&s(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,r}(r.A),g=v;m=jQuery,WPHB_Admin.caching={module:"caching",init:function(){var t=this,e=this,n=window.location.hash,r=m('form[id="page_cache-form"]'),a=m('form[id="fastcgi-form"]'),s=m('form[id="rss-form"]'),c=m('form[id="settings-form"]');this.scanner=new g(1,0),n&&m(n).length&&setTimeout((function(){m("html, body").animate({scrollTop:m(n).offset().top},"slow")}),300),r.on("submit",(function(t){t.preventDefault(),e.saveSettings("page_cache",r)})),a.on("submit",(function(t){t.preventDefault();var e=a.find("button.sui-button.sui-button-blue");e.addClass("sui-button-onload-text"),i.A.caching.saveFastCGISettings(a.serialize()).then((function(t){if(e.removeClass("sui-button-onload-text"),void 0!==t&&""===t.fastCGIResponse)wphbMixPanel.trackPageCachingSettings("modified","hosting_static_cache","caching_settings",t.settingsModified,t.preloadHomepage),window.location.search+="&updated=true";else{var n=void 0!==t&&""!==t.fastCGIResponse?t.fastCGIResponse:(0,o.A)("errorSettingsUpdate");WPHB_Admin.notices.show(n,"error")}}))})),m("#wphb-clear-cache").on("click",(function(t){t.preventDefault(),e.clearCache(t.target)})),m("#wphb-switch-page-cache-method").on("click",(function(t){e.switchCacheMethod(t)})),m("#wphb-disable-fastcgi").on("click",(function(t){t.preventDefault(),t.target.classList.add("sui-button-onload-text"),i.A.caching.disableFastCGI().then((function(e){if(void 0!==e&&""===e.fastCGIResponse)wphbMixPanel.trackPageCachingSettings("deactivate","hosting_static_cache","caching_settings","na",e.preloadHomepage),window.location.reload();else{t.target.classList.remove("sui-button-onload-text");var n=void 0!==e&&""!==e.fastCGIResponse?e.fastCGIResponse:(0,o.A)("errorSettingsUpdate");WPHB_Admin.notices.show(n,"error")}}))}));var u=document.getElementById("clear_interval");u&&u.addEventListener("change",(function(t){t.preventDefault(),m("#page_cache_clear_interval").toggle()}));var l=document.getElementById("wphb-cancel-cache-preload");l&&l.addEventListener("click",(function(t){t.preventDefault(),i.A.common.call("wphb_preload_cancel").then((function(){window.location.reload()}))}));var d=document.getElementById("preload");d&&d.addEventListener("change",(function(t){t.preventDefault(),m("#page_cache_preload_type").toggle()})),m("#wphb-remove-advanced-cache").on("click",(function(t){t.preventDefault(),i.A.common.call("wphb_remove_advanced_cache").then((function(){return location.reload()}))})),m("#configure-link").on("click",(function(t){t.preventDefault(),m("html, body").animate({scrollTop:m("#wphb-box-caching-settings").offset().top},"slow")})),s.on("submit",(function(t){t.preventDefault();var n=s.find("#rss-expiry-time");n.val(Math.abs(n.val())),e.saveSettings("rss",s)}));var f=document.getElementById("redis-settings-form");f&&f.addEventListener("submit",(function(t){t.preventDefault();var e=document.getElementById("redis-connect-save");e.classList.add("sui-button-onload-text");var n=document.getElementById("redis-host").value,o=document.getElementById("redis-port").value,r=document.getElementById("redis-password").value,a=document.getElementById("redis-db").value,s=document.getElementById("redis-connected").value;o||(o=6379),i.A.caching.redisSaveSettings(n,o,r,a).then((function(t){if(void 0!==t&&t.success)window.location.search+="1"===s?"&updated=redis-auth-2":"&updated=redis-auth";else{var n=document.getElementById("redis-connect-notice-on-modal");n.innerHTML=t.message,n.parentNode.parentNode.parentNode.classList.remove("sui-hidden"),n.parentNode.parentNode.classList.add("sui-spacing-top--10"),e.classList.remove("sui-button-onload-text")}}))}));var p=document.getElementById("object-cache");p&&p.addEventListener("change",(function(t){t.target.checked?wphbMixPanel.enableFeature("Redis Cache"):wphbMixPanel.disableFeature("Redis Cache"),i.A.caching.redisObjectCache(t.target.checked).then((function(t){void 0!==t&&t.success?window.location.search+="&updated=redis-object-cache":WPHB_Admin.notices.show((0,o.A)("errorSettingsUpdate"),"error")}))}));var h=document.getElementById("clear-redis-cache");h&&h.addEventListener("click",(function(){h.classList.add("sui-button-onload-text"),i.A.common.call("wphb_redis_cache_purge").then((function(){h.classList.remove("sui-button-onload-text"),WPHB_Admin.notices.show((0,o.A)("successRedisPurge"))}))}));var v=document.getElementById("redis-disconnect");return v&&v.addEventListener("click",(function(e){e.preventDefault(),t.redisDisable()})),c.on("submit",(function(t){t.preventDefault();var n=m('input[name="detection"]:checked',c).val();"auto"!==n&&"none"!==n||m(".wphb-notice.notice-info").slideUp(),e.saveSettings("other_cache",c)})),this},redisDisable:function(){i.A.common.call("wphb_redis_disconnect").then((function(){window.location.search+="&updated=redis-disconnect"}))},switchCacheMethod:function(t){t.preventDefault();var e=t.currentTarget,n=e.dataset.method,r=e.dataset.location;e.classList.add("sui-button","sui-button-onload-text"),e.classList.remove("sui-tooltip");var a=document.getElementById("wphb_switch_cache_info");a&&(a.style.display="none"),i.A.caching.switchCacheMethod(n).then((function(t){if(void 0!==t&&"error"!==t.isFastCGIActivated)wphbMixPanel.trackPageCachingSettings("switch_method",n,r||"caching_settings","na",t.preloadHomepage),"dash_widget"===r&&wphb.links.cachingPageURL?window.location.href=wphb.links.cachingPageURL:window.location.reload();else{e.classList.remove("sui-button"),e.classList.remove("sui-button-onload-text");var i=void 0!==t&&"error"===t.isFastCGIActivated?t.fastCGIResponse:(0,o.A)("errorSettingsUpdate");WPHB_Admin.notices.show(i,"error")}}))},saveSettings:function(t,e){var n=e.find("button.sui-button");n.addClass("sui-button-onload-text"),i.A.caching.saveSettings(t,e.serialize()).then((function(e){n.removeClass("sui-button-onload-text"),void 0!==e&&e.success?"page_cache"===t?(wphbMixPanel.trackPageCachingSettings("modified","local_page_cache","caching_settings",e.settingsModified,e.preloadHomepage),window.location.search+="&updated=true"):WPHB_Admin.notices.show():WPHB_Admin.notices.show((0,o.A)("errorSettingsUpdate"),"error")}))},clearCache:function(t){var e=t.dataset.module;t.classList.add("sui-button-onload-text"),i.A.caching.clearCache(e).then((function(t){"page_cache"===e&&void 0!==t&&t.reload&&window.location.reload(),void 0!==t&&t.success?"page_cache"===e?(m(".box-caching-summary span.sui-summary-large").html("0"),WPHB_Admin.notices.show((0,o.A)("successPageCachePurge"))):"gravatar"===e&&WPHB_Admin.notices.show((0,o.A)("successGravatarPurge")):WPHB_Admin.notices.show((0,o.A)("errorCachePurge"),"error")})).finally((function(){return t.classList.remove("sui-button-onload-text")}))},clearNetworkCache:function(){window.SUI.slideModal("ccnw-slide-two","slide-next","next"),this.scanner.start()}}},6730:function(t,e,n){"use strict";n.r(e);var i,o=n(9620),r=n(5138);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}i=jQuery,WPHB_Admin.cloudflare={module:"cloudflare",init:function(){return wphb.cloudflare.is.connected&&i('input[type="submit"].cloudflare-clear-cache').on("click",function(t){t.preventDefault(),this.purgeCache.apply(i(t.target),[this])}.bind(this)),this.bindActions(),this},bindActions:function(){var t=this,e=document.getElementById("cloudflare-credentials");e&&e.addEventListener("submit",(function(e){e.preventDefault(),t.connect("cloudflare-connect-save")}));var n=document.getElementById("cf-recheck-zones");n&&n.addEventListener("click",(function(e){e.preventDefault(),t.recheck(e)}));var o=document.getElementById("cloudflare-zone-save");o&&o.addEventListener("click",(function(e){e.preventDefault(),t.connect("cloudflare-zone-save")}));var r=document.getElementById("cloudflare-show-key-help");r&&r.addEventListener("click",(function(e){e.preventDefault(),t.toggleHelp()}));var a=document.getElementById("cloudflare-connect-steps");a&&a.addEventListener("click",(function(e){e.preventDefault(),t.toggleHelp()})),i('input[name="cf_connection_type"]').on("change",(function(){t.hideHelp(),t.switchLabel()})),i("form#cloudflare-credentials input").on("keyup",(function(){var t=!0;i("form#cloudflare-credentials input").each((function(){""!==i(this).val()&&(t=!1)})),i("#cloudflare-connect-save").prop("disabled",t)}))},purgeCache:function(){this.attr("disabled",!0),o.A.common.call("wphb_cloudflare_purge_cache").then((function(){WPHB_Admin.notices.show((0,r.A)("successCloudflarePurge"))})).catch((function(t){WPHB_Admin.notices.show(t.responseText,"error")})),this.removeAttr("disabled")},connect:function(t){var e=document.getElementById(t);e.classList.add("sui-button-onload-text");var n=document.getElementById("cf-token-tab").checked?"token":"key",i=document.getElementById("api-"+n+"-form-field");i.classList.remove("sui-form-field-error");var r=document.getElementById("error-api-"+n);r.innerHTML="",r.style.display="none";var s=document.getElementById("cloudflare-email").value,c=document.getElementById("cloudflare-api-key").value,u=document.getElementById("cloudflare-api-token").value,l=jQuery("#cloudflare-zones").find(":selected");o.A.cloudflare.connect(s,c,u,l.text()).then((function(t){void 0!==t&&void 0!==t.zones?(WPHB_Admin.cloudflare.populateSelectWithZones(t.zones),window.SUI.slideModal("slide-cloudflare-zones","cloudflare-zone-recheck","next")):(window.wphbMixPanel.enableFeature("Cloudflare_integration"),window.location.reload())})).catch((function(t){void 0!==t.response&&a(t.response.data)&&void 0!==t.response.data.code?400!==t.response.data.code&&403!==t.response.data.code||(i.classList.add("sui-form-field-error"),r.innerHTML=t.message,r.style.display="block"):WPHB_Admin.notices.show(t,"error")})).finally((function(){e.classList.remove("sui-button-onload-text")}))},populateSelectWithZones:function(t){var e=jQuery("#cloudflare-zones");e.SUIselect2("destroy"),t.forEach((function(t){if(0===e.find("option[value='"+t.value+"']").length){var n=new Option(t.label,t.value);e.append(n).trigger("change")}})),e.SUIselect2({minimumResultsForSearch:-1})},recheck:function(t){t.target.classList.add("sui-button-onload-text"),o.A.common.call("wphb_cloudflare_recheck_zones").then((function(t){void 0!==t&&void 0!==t.zones?WPHB_Admin.cloudflare.populateSelectWithZones(t.zones):(window.wphbMixPanel.enableFeature("Cloudflare_integration"),window.location.reload())})).catch((function(t){WPHB_Admin.notices.show(t,"error")})).finally((function(){t.target.classList.remove("sui-button-onload-text")}))},toggleHelp:function(){var t=document.getElementById("cf-token-tab").checked?"token":"key";document.getElementById("cloudflare-"+t+"-how-to").classList.toggle("sui-hidden");var e=document.getElementById("cloudflare-show-key-help").querySelector("span:last-of-type");e.classList.contains("sui-icon-chevron-down")?(e.classList.remove("sui-icon-chevron-down"),e.classList.add("sui-icon-chevron-up")):(e.classList.remove("sui-icon-chevron-up"),e.classList.add("sui-icon-chevron-down"))},hideHelp:function(){i("#cloudflare-key-how-to").addClass("sui-hidden"),i("#cloudflare-token-how-to").addClass("sui-hidden"),i("span.sui-icon-chevron-up").addClass("sui-icon-chevron-down").removeClass("sui-icon-chevron-up")},switchLabel:function(){var t=document.getElementById("cf-token-tab").checked?"token":"key";document.getElementById("cloudflare-email").value="",document.getElementById("cloudflare-api-key").value="",document.getElementById("cloudflare-api-token").value="",document.querySelector("#cloudflare-show-key-help > span:first-of-type").innerHTML=wphb.strings["CloudflareHelpAPI"+t]}}},4025:function(t,e,n){"use strict";n.r(e);var i,o=n(9620);i=jQuery,WPHB_Admin.dashboard={module:"dashboard",init:function(){i(".wphb-performance-report-item").on("click",(function(){var t=i(this).data("performance-url");t&&(location.href=t)}));var t=document.getElementById("clear-cache-modal-button");return t&&t.addEventListener("click",this.clearCache),i("#view_delay_dashboard").on("change",(function(){var t=i(this).is(":checked");o.A.minification.toggleDelayJs(t).then((function(t){window.wphbMixPanel.trackDelayJSEvent({update_type:t.delay_js?"activate":"deactivate",Location:"dash_widget",Timeout:t.delay_js_timeout,"Excluded Files":t.delay_js_exclude?"yes":"no"}),WPHB_Admin.notices.show()}))})),i("#wphb-switch-page-cache-method").on("click",(function(t){WPHB_Admin.caching.switchCacheMethod(t)})),i("#critical_css_toggle").on("change",(function(){var t=i(this).is(":checked");o.A.minification.toggleCriticalCss(t).then((function(e){window.wphbMixPanel.trackCriticalCSSEvent({update_type:e.criticalCss,Location:"dash_widget",mode:e.mode,settings_modified:"",settings_default:""}),t&&wphb.links.eoUrl?window.location.href=wphb.links.eoUrl:WPHB_Admin.notices.show()}))})),this},clearCache:function(){var t=this;this.classList.toggle("sui-button-onload-text");for(var e=document.querySelectorAll('input[type="checkbox"]'),n=[],i=0;i<e.length;i++)!1!==e[i].checked&&n.push(e[i].dataset.module);o.A.common.clearCaches(n).then((function(e){t.classList.toggle("sui-button-onload-text"),SUI.closeModal(),WPHB_Admin.notices.show(e.message)}))},hideUpgradeSummary:function(t){return window.SUI.closeModal(),o.A.common.call("wphb_hide_upgrade_summary").then((function(){var e=t.getAttribute("data-track-action");e&&""!==e&&window.wphbMixPanel.track("update_modal_displayed",{Action:e}),t.hasAttribute("href")&&-1===t.href.indexOf("wpmudev.com")&&(window.location.href=t.href)})),!1},trackSmushUpsell:function(t,e,n){t.preventDefault();var i=e.href.includes("https://wpmudev.com")?e.href:"na";return window.wphbMixPanel.trackHBUpsell("smush_upsell",n,"cta_clicked",i,"hb_smush_upsell"),window.location.href=e.href,!1}}},7428:function(t,e,n){"use strict";n.r(e);var i=n(9620),o=n(5138);!function(t){var e={modules:[],init:function(){t(".sui-mobile-nav").on("change",(function(t){window.location.href=t.target.value})),t("select#wphb-performance-report-type").on("change",(function(t){var e=new URL(window.location);e.searchParams.set("type",t.target.value),window.location=e})),t(".wphb-logging-buttons").on("click",".wphb-logs-clear",(function(t){t.preventDefault(),i.A.common.clearLogs(t.target.dataset.module).then((function(t){void 0!==t.success&&(t.success?e.notices.show(t.message):e.notices.show(t.message,"error"))}))})),t("#performance-run-test, #performance-scan-website, #run-performance-test").on("click",(function(){var e=t(this).attr("data-location");wphbMixPanel.track("plugin_scan_started",{score_mobile_previous:(0,o.A)("previousScoreMobile"),score_desktop_previous:(0,o.A)("previousScoreDesktop"),"AO Status":(0,o.A)("aoStatus"),Location:void 0!==e?e:"unknown"})}))},initModule:function(t){return this.hasOwnProperty(t)?(this.modules[t]=this[t].init(),this.modules[t]):{}},getModule:function(t){return void 0!==this.modules[t]?this.modules[t]:this.initModule(t)}};e.notices={init:function(){var e=this,n=document.getElementById("dismiss-cf-notice");n&&(n.onclick=function(t){return e.dismissCloudflareNotice(t)});var o=document.getElementById("wphb-floating-http2-info");o&&o.addEventListener("click",(function(e){e.preventDefault(),i.A.common.dismissNotice("http2-info"),t(".wphb-box-notice").slideUp()}))},show:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"success",n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];""===t&&(t=(0,o.A)("successUpdate"));var i={type:e,dismiss:{show:!1,label:(0,o.A)("dismissLabel"),tooltip:(0,o.A)("dismissLabel")},icon:"info"};n||(i.dismiss.show=!0),window.SUI.openNotice("wphb-ajax-update-notice","<p>"+t+"</p>",i)},dismiss:function(t){var e=t.closest(".sui-notice").getAttribute("id");i.A.common.dismissNotice(e),window.SUI.closeNotice(e)},dismissCloudflareNotice:function(e){e.preventDefault(),i.A.common.call("wphb_cf_notice_dismiss");var n=t(".cf-dash-notice");n.slideUp(),n.parent().addClass("no-background-image")}},window.WPHB_Admin=e}(jQuery)},9306:function(t,e,n){"use strict";var i=n(9620),o=n(5138);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function s(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}function c(t,e,n){return e=f(e),function(t,e){if(e&&("object"==r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,u()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function l(t,e,n,i){var o=d(f(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},d.apply(null,arguments)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var h,m=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"step",value:function(t){var n=this;l(e,"step",this,3)([t]),t>=0?i.A.minification.checkStep(this.currentStep).then((function(){t-=1,n.updateProgressBar(n.getProgress()),n.step(t)})):i.A.minification.finishCheck().then((function(t){n.onFinish(t)}))}},{key:"cancel",value:function(){l(e,"cancel",this,3)([]),i.A.minification.cancelScan().then((function(){window.location.href=(0,o.T)("minification")}))}},{key:"onStart",value:function(){return i.A.minification.startCheck()}},{key:"onFinish",value:function(t){l(e,"onFinish",this,3)([]),void 0!==t.assets_msg&&(document.getElementById("assetsFound").innerHTML=t.assets_msg),window.SUI.closeModal(),window.SUI.openModal("wphb-assets-modal","wpbody-content")}}])&&a(n.prototype,r),s&&a(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}(n(5345).A),v=m;function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function y(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?b(Object(n),!0).forEach((function(e){_(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function _(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=g(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=g(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==g(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w;w=jQuery,WPHB_Admin.minification={module:"minification",$checkFilesResultsContainer:null,checkURLSList:null,checkedURLS:0,SELECTORS:["#item_delay_js_post_urls_exclusion","#item_delay_js_all_exclusions","#item_delay_js_plugins_themes_exclusion","#item_delay_js_post_types_exclusion","#item_delay_js_files_exclusion","#item_delay_js_exclusions","#item_delay_js_ads_tracker_exclusion","#item_delay_js_default_exclusions","#item_critical_css_all_exclusions","#item_critical_css_files_exclusion","#item_critical_css_post_types_exclusion","#item_critical_css_post_urls_exclusion","#item_critical_css_plugins_themes_exclusion","#item_critical_css_keywords"],EXCLUSION_SELECTORS:["#item_delay_js_all_exclusions","#item_critical_css_all_exclusions"],CONTAINER_CLASSES:{delayJs:".js_exclusion_container",criticalCss:".critical_css_exclusion_container"},ALL_EXCLUSIONS:{delayJs:"delay_js_all_exclusions",criticalCss:"critical_css_all_exclusions"},exclusionType:"delay_js",init:function(){var t=this,e=this;void 0===wphb.minification.criticalStatusForQueue.status||"pending"!==wphb.minification.criticalStatusForQueue.status&&"processing"!==wphb.minification.criticalStatusForQueue.status||(h=setInterval(this.criticalUpdateStatusNotice,1e4)),this.scanner=new v(wphb.minification.get.totalSteps,wphb.minification.get.currentScanStep),this.initializeSelectorsAndEventHandlers(),w("#check-files").on("click",(function(t){t.preventDefault(),w(document).trigger("check-files")})),w("#hb_cdn_upsell").on("click",(function(t){window.wphbMixPanel.trackHBUpsell("cdn","ao_settings_link","cta_clicked",t.target.href,"hb_cdn_upsell")})),w(document).on("check-files",(function(){window.SUI.openModal("check-files-modal","wpbody-content","check-files-modal"),w(this).attr("disabled",!0),e.scanner.start()}));var n=w("input[type=checkbox][name=use_cdn]");n.on("change",(function(){w("#cdn_file_exclude").toggleClass("sui-hidden");var t=w(this).is(":checked");n.each((function(){this.checked=t})),i.A.minification.toggleCDN(t).then((function(){WPHB_Admin.notices.show()}))})),w("#delay_js_keywords_advanced_view").on("change",(function(){return t.toggleAdvancedKeywordsView()})),w("input[type=checkbox][name=delay_js]").on("change",(function(){w("#delay_js_file_exclude").toggleClass("sui-hidden")})),w("input[type=checkbox][name=critical_css_option]").on("change",(function(){w("#critical_css_file_exclude").toggleClass("sui-hidden")})),w("select[name=critical_css_type]").on("change",(function(t){w(".load_cs_options").addClass("sui-hidden"),w(".load_"+t.target.value).removeClass("sui-hidden")})),w("#manual_css_switch_now").on("click",(function(){wphbReact.isMember?window.WPHB_Admin.minification.criticalCSSSwitchMode("critical_css"):e.hbTrackEoMPEvent(this)})),w("input[type=radio][name=font_display_value]").on("change",(function(){var t=w(this).val();w(".font_display_safe_helper").toggle("swap"===t),w(".font_display_performant_helper").toggle("optional"===t)})),w("input[type=checkbox][name=font_swap]").on("change",(function(){w("#font_display_settings").toggleClass("sui-hidden")})),w("input[type=checkbox][name=font_optimization]").on("change",(function(){w("#font_optimization_preload_box").toggleClass("sui-hidden")})),w("input[type=radio][name=preload_fonts_mode]").on("change",(function(){var t=w(this).val();w(".preload_fonts_mode_automatic_helper").toggle("automatic"===t),w(".preload_fonts_mode_manuel_helper").toggle("manual"===t)})),w("input[type=checkbox][name=debug_log]").on("change",(function(){var t=w(this).is(":checked");i.A.minification.toggleLog(t).then((function(){WPHB_Admin.notices.show(),t?w(".wphb-logging-box").show():w(".wphb-logging-box").hide()}))})),w("#wphb-minification-tools-form").on("submit",(function(t){t.preventDefault();var n=w(this).find(".spinner");n.addClass("visible"),i.A.minification.saveCriticalCss(w(this).serialize()).then((function(t){if(n.removeClass("visible"),void 0!==t&&t.success){var i=new Event("reloadSummary");document.getElementById("wphb-minification-tools-form").dispatchEvent(i),t.is_delay_value_updated&&window.wphbMixPanel.trackDelayJSEvent({update_type:t.delay_js_update_type,Location:"eo_settings",Timeout:t.delay_js_timeout,"Excluded Files":t.delay_js_exclude?"yes":"no",exclusions_files:t.delayJsMixpanelValues.exclusions_files,exclusions_posttypes:t.delayJsMixpanelValues.exclusions_posttypes,exclusions_urls:t.delayJsMixpanelValues.exclusions_urls,exclusions_plugins:t.delayJsMixpanelValues.exclusions_plugins,exclusions_trackers:t.delayJsMixpanelValues.exclusions_trackers,exclusions_keywords:t.delayJsMixpanelValues.exclusions_keywords}),t.fontOptimizationUpdateType&&window.wphbMixPanel.trackFontOptimizationEvent(t.fontOptimizationUpdateType,"font_preload"),t.fontSwapUpdateType&&window.wphbMixPanel.trackFontOptimizationEvent(t.fontSwapUpdateType,"font_swapping"),t.isCriticalValueUpdated&&window.wphbMixPanel.trackCriticalCSSEvent({update_type:t.updateType,Location:t.location,mode:t.mode,settings_modified:t.settingsModified,settings_default:t.settingsDefault,exclusions_files:t.criticalCssMixpanelValues.exclusions_files,exclusions_posttypes:t.criticalCssMixpanelValues.exclusions_posttypes,exclusions_urls:t.criticalCssMixpanelValues.exclusions_urls,exclusions_plugins:t.criticalCssMixpanelValues.exclusions_plugins,exclusions_keywords:t.criticalCssMixpanelValues.exclusions_keywords,manual_inclusions:t.manualInclusion}),t.isStatusTagNeedsUpdate?e.triggerCriticalStatusUpdateAjax(t.htmlForStatusTag):"deactivate"===t.updateType&&e.criticalUpdateStatusTag(t.htmlForStatusTag);var o="activate"===t.updateType?"block":"deactivate"===t.updateType?"none":"";e.hbToggleElement("wphb-clear-critical-css",o),WPHB_Admin.notices.show(t.message,"blue",!1)}else WPHB_Admin.notices.show(t.message,"error")}))}));var r=document.getElementById("file_path");null!==r&&(r.onchange=function(t){t.preventDefault(),i.A.minification.updateAssetPath(w(this).val()).then((function(t){t.message?WPHB_Admin.notices.show(t.message,"error"):WPHB_Admin.notices.show()}))}),w("#wphb-network-ao").on("click",(function(){w("#wphb-network-border-frame").toggleClass("sui-hidden")})),w("#wphb-box-minification-network-settings").on("change","input[type=radio]",(function(t){var e=document.querySelectorAll("input[name="+t.target.name+"]");"log"===t.target.name&&w(".wphb-logs-frame").toggle(t.target.value);for(var n=0;n<e.length;++n)e[n].parentNode.classList.remove("active");t.target.parentNode.classList.add("active")})),w("#wphb-ao-network-settings").on("click",(function(t){t.preventDefault();var e=w(".sui-box-footer").find(".spinner");e.addClass("visible");var n=w("#ao-network-settings-form").serialize();i.A.minification.saveNetworkSettings(n).then((function(t){e.removeClass("visible"),void 0!==t&&t.success?WPHB_Admin.notices.show():WPHB_Admin.notices.show((0,o.A)("errorSettingsUpdate"),"error")}))})),w("#wphb-ao-settings-update").on("click",(function(t){t.preventDefault();var n=w(".sui-box-footer").find(".spinner");n.addClass("visible");var o=e.getMultiSelectValues("cdn_exclude");i.A.minification.updateExcludeList(JSON.stringify(o)).then((function(){n.removeClass("visible"),WPHB_Admin.notices.show()}))}));var a=document.getElementById("manual-ao-hdiw-modal-expand");a&&(a.onclick=function(){document.getElementById("manual-ao-hdiw-modal").classList.remove("sui-modal-sm"),document.getElementById("manual-ao-hdiw-modal-header-wrap").classList.remove("sui-box-sticky"),document.getElementById("automatic-ao-hdiw-modal").classList.remove("sui-modal-sm")});var s=document.getElementById("manual-ao-hdiw-modal-collapse");s&&(s.onclick=function(){document.getElementById("manual-ao-hdiw-modal").classList.add("sui-modal-sm");var t=document.getElementById("manual-ao-hdiw-modal-header-wrap");t.classList.contains("video-playing")&&t.classList.add("sui-box-sticky"),document.getElementById("automatic-ao-hdiw-modal").classList.add("sui-modal-sm")});var c=document.getElementById("automatic-ao-hdiw-modal-expand");c&&(c.onclick=function(){document.getElementById("automatic-ao-hdiw-modal").classList.remove("sui-modal-sm"),document.getElementById("manual-ao-hdiw-modal").classList.remove("sui-modal-sm")});var u=document.getElementById("automatic-ao-hdiw-modal-collapse");u&&(u.onclick=function(){document.getElementById("automatic-ao-hdiw-modal").classList.add("sui-modal-sm"),document.getElementById("manual-ao-hdiw-modal").classList.add("sui-modal-sm")});var l=document.getElementById("hdw-auto-trigger-label");l&&l.addEventListener("click",(function(){window.SUI.replaceModal("automatic-ao-hdiw-modal-content","wphb-basic-hdiw-link")}));var d=document.getElementById("hdw-manual-trigger-label");return d&&d.addEventListener("click",(function(){window.SUI.replaceModal("manual-ao-hdiw-modal-content","wphb-basic-hdiw-link")})),w("#wphb-clear-critical-css").on("click",(function(t){t.preventDefault(),e.clearCriticalCss(t.target)})),this},initializeSelectorsAndEventHandlers:function(){var t=this,e=this;w(this.SELECTORS.join(", ")).each((function(){var t=this.id.includes("delay_js_exclusions")||this.id.includes("critical_css_keywords")?e.getSelect2ConfigForTag():this.id.includes("post_urls")?e.getAjaxSelectConfig():e.getCommonSelect2Config();w(this).SUIselect2(t).on("select2:select select2:unselect",(function(t){var n=this.id.includes("critical_css"),i=w(n?"#item_critical_css_all_exclusions":"#item_delay_js_all_exclusions");e.toggleSelectBoxOption(i,t,"select2:select"===t.type),e.enableDisableResetButton(),w(this).SUIselect2("open")}))})),this.EXCLUSION_SELECTORS.forEach((function(n){var i="#item_delay_js_all_exclusions"===n?t.CONTAINER_CLASSES.delayJs:t.CONTAINER_CLASSES.criticalCss;e.combineAllExclusions(n,i),w(n).on("select2:select select2:unselect",(function(t){var n="select2:select"===t.type;e.synchronizeExclusionValues(t.params.data.id,n,i,t)}))})),w("#delay_js_exclusion_options, #critical_css_exclusion_options").SUIselect2({templateSelection:function(e){return t.formatSelectResult(e,!1)},templateResult:function(e){return t.formatSelectResult(e,!1)},minimumResultsForSearch:1/0}),e.enableDisableResetButton(),w("select[name=delay_js_exclusion_options], select[name=critical_css_exclusion_options]").on("change",e.toggleExclusionBox.bind(e))},toggleSelectBoxOption:function(t,e){var n,i,o,r,a,s,c,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],l=e.id||(null===(n=e.params)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.id),d=e.text||(null===(i=e.params)||void 0===i||null===(i=i.data)||void 0===i?void 0:i.text),f=null!==(o=null!==(r=null==e||null===(a=e.element)||void 0===a||null===(a=a.dataset)||void 0===a?void 0:a.hbExclusionType)&&void 0!==r?r:null===(s=e.params)||void 0===s||null===(s=s.data)||void 0===s||null===(s=s.element)||void 0===s||null===(s=s.dataset)||void 0===s?void 0:s.hbExclusionType)&&void 0!==o?o:null===(c=e.params)||void 0===c||null===(c=c.data)||void 0===c?void 0:c.hbExclusionType,p=t.find('option[value="'.concat(l,'"]'));0===p.length&&(p=w(new Option(d,l)).attr("data-hb-exclusion-type",f),t.append(p)),p.prop("selected")!==u&&(p.prop("selected",u),t.trigger("change"))},synchronizeExclusionValues:function(t){var e,n,i,o,r,a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".js_exclusion_container",c=arguments.length>3?arguments[3]:void 0,u=null!==(e=null!==(n=null==c||null===(i=c.element)||void 0===i||null===(i=i.dataset)||void 0===i?void 0:i.hbExclusionType)&&void 0!==n?n:null===(o=c.params)||void 0===o||null===(o=o.data)||void 0===o||null===(o=o.element)||void 0===o||null===(o=o.dataset)||void 0===o?void 0:o.hbExclusionType)&&void 0!==e?e:null===(r=c.params)||void 0===r||null===(r=r.data)||void 0===r?void 0:r.hbExclusionType,l=this.getExclusionTypeData(u),d=s.includes("critical_css")?w("#".concat(l.criticalCssBox)):w("#".concat(l.delayBox));if(d.length){var f=d.val()||[];if(a)f.includes(t)||(d.find('option[value="'.concat(t,'"]')).prop("selected",!0),d.trigger("change"));else{var p=f.filter((function(e){return e!==t}));d.val(p).trigger("change.select2")}}},getCommonSelect2Config:function(){return{templateSelection:this.formatSelectResult.bind(this),templateResult:this.formatSelectResult.bind(this),closeOnSelect:!1}},getSelect2ConfigForTag:function(){return y(y({},this.getCommonSelect2Config()),{},{tags:!0,closeOnSelect:!0,createTag:function(t){var e=t.term.trim();return""===e?null:{id:e,text:e,isNew:!0,hbExclusionType:"keywords"}},tokenSeparators:[","," ","\n"],language:{noResults:function(){return wphb.strings.select2Tags}}})},getAjaxSelectConfig:function(){return y(y({},this.getCommonSelect2Config()),{},{minimumInputLength:3,ajax:{url:ajaxurl,method:"POST",dataType:"json",delay:250,data:function(t){return{action:"wphb_search_posts",nonce:wphb.nonces.HBFetchNonce,query:t.term}},processResults:function(t){return{results:t.data.map((function(t){return{text:t.name,id:t.id,hbExclusionType:t.label}}))}}}})},toggleExclusionBox:function(t){var e=t.target,n=e.value,i="delay_js_exclusion_options"===e.name,o=i?this.CONTAINER_CLASSES.delayJs:this.CONTAINER_CLASSES.criticalCss;w(o).addClass("sui-hidden"),w("#"+n).removeClass("sui-hidden"),this.enableDisableResetButton();var r=w("#delay_js_keywords_advanced_view_label"),a=w("#delay_js_legacy_keywords_container");i&&"delay_js_exclusions"===n?(this.copySelect2ToTextarea(),this.toggleAdvancedKeywordsView(),r.removeClass("sui-hidden")):("delay_js_all_exclusions"===n&&this.syncTextareaSelectData(!this.isAdvancedViewChecked()),r.addClass("sui-hidden"),a.addClass("sui-hidden"))},toggleAdvancedKeywordsView:function(){var t=this.isAdvancedViewChecked();this.syncTextareaSelectData(t);var e=w("#delay_js_exclusions"),n=w("#delay_js_legacy_keywords_container");e.toggleClass("sui-hidden",t),n.toggleClass("sui-hidden",!t)},isAdvancedViewChecked:function(){return w("#delay_js_keywords_advanced_view").is(":checked")},syncTextareaSelectData:function(t){t?this.copySelect2ToTextarea():this.copyTextareaToSelect2()},copyTextareaToSelect2:function(){var t=this,e=w("#delay_js_legacy_keywords").val().split("\n").map((function(t){return t.trim()})).filter((function(t){return t})),n=w("#item_delay_js_exclusions"),i=w("#item_delay_js_all_exclusions");if(n.length&&n.data("select2")){var o=n.find("option").map((function(t,e){return e.value})).get(),r=i.find("option").map((function(t,e){return e.value})).get();e.forEach((function(e){var o=n.find('option[value="'.concat(e,'"]'));if(0===o.length){var a=w(new Option(e,e,!0,!0)).attr("data-hb-exclusion-type","keywords");n.append(a),r.includes(e)||t.toggleSelectBoxOption(i,{id:e,text:e,element:a[0]},!0)}else o.prop("selected",!0),t.toggleSelectBoxOption(i,{id:e,text:e,element:o[0]},!0)})),o.forEach((function(o){e.includes(o)||(n.find('option[value="'.concat(o,'"]')).prop("selected",!1),r.includes(o)&&t.toggleSelectBoxOption(i,{id:o,text:o},!1))})),n.trigger("change")}},copySelect2ToTextarea:function(){var t=(w("#item_delay_js_exclusions").val()||[]).map((function(t){return t.trim()}));w("#delay_js_legacy_keywords").val(t.join("\n"))},enableDisableResetButton:function(){[{selector:"#delay_js_exclusion_options",modal:".reset-delay-exclusion-modal"},{selector:"#critical_css_exclusion_options",modal:".reset-critical-exclusion-modal"}].forEach((function(t){var e=t.selector,n=t.modal,i=w("#item_".concat(w(e).val())).val()||"";w(n).toggleClass("disabled",0===i.length)}))},formatSelectResult:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!t.id)return t.text;var n=(null==t?void 0:t.hbExclusionType)||w(t.element).data("hb-exclusion-type"),i=this.getExclusionTypeData(n),o=t.text;return i&&(o=i.icon+t.text,e&&(o=i.icon+i.name+this.getIcon("chevron-right")+t.text)),w("<span></span>").html(o)},getExclusionTypeData:function(t){return{files:{name:wphb.strings.exclusionFiles,icon:this.getIcon("page"),delayBox:"item_delay_js_files_exclusion",criticalCssBox:"item_critical_css_files_exclusion"},core_file:{name:wphb.strings.exclusionWpFile,icon:this.getIcon("page"),delayBox:"item_delay_js_files_exclusion",criticalCssBox:"item_critical_css_files_exclusion"},posts:{name:wphb.strings.exclusionPostTypes,icon:this.getIcon("post-pin"),delayBox:"item_delay_js_post_types_exclusion",criticalCssBox:"item_critical_css_post_types_exclusion"},urls:{name:wphb.strings.exclusionPostUrls,icon:this.getIcon("link"),delayBox:"item_delay_js_post_urls_exclusion",criticalCssBox:"item_critical_css_post_urls_exclusion"},plugins:{name:wphb.strings.exclusionPluginThemes,icon:this.getIcon("plugin-2"),delayBox:"item_delay_js_plugins_themes_exclusion",criticalCssBox:"item_critical_css_plugins_themes_exclusion"},keywords:{name:wphb.strings.exclusionKeywords,icon:this.getIcon("key"),delayBox:"item_delay_js_exclusions",criticalCssBox:"item_critical_css_keywords"},default:{name:wphb.strings.exclusionDefault,icon:this.getIcon("key"),delayBox:"item_delay_js_exclusions",criticalCssBox:null},ads:{name:wphb.strings.exclusionAds,icon:this.getIcon("graph-line"),delayBox:"item_delay_js_ads_tracker_exclusion",criticalCssBox:null},default_exclusions:{name:wphb.strings.exclusionDefault,icon:this.getIcon("widget-settings-config"),delayBox:null,criticalCssBox:null},all_exclusions:{name:wphb.strings.exclusionAll,icon:this.getIcon("thumbnails"),delayBox:null,criticalCssBox:null}}[t]||null},getIcon:function(t){return'<span class="sui-icon sui-icon-'.concat(t,'" aria-hidden="true"></span>')},combineAllExclusions:function(t,e){var n=this,i=w(t);w(e+" > select").not("".concat(t,", #item_delay_js_default_exclusions")).each((function(){var t=w(this);t.SUIselect2("data").forEach((function(e){t.val().includes(e.id)&&n.toggleSelectBoxOption(i,e)}))}))},confirmReset:function(t){this.exclusionType=["delay_js","critical_css"].includes(t.id)?t.id:null,this.exclusionType&&(w('[id$="_reset_modal_content"]').addClass("sui-hidden"),w("#".concat(this.exclusionType,"_reset_modal_content")).removeClass("sui-hidden"),window.SUI.openModal("wphb-reset-exclusions-modal","wpbody-content"))},resetExclusion:function(){var t=w("select[name=".concat(this.exclusionType,"_exclusion_options]")).val();t&&i.A.minification.resetExclusions(t,this.exclusionType).then((function(){window.location.reload()}))},triggerCriticalStatusUpdateAjax:function(t){h=setInterval(this.criticalUpdateStatusNotice,1e4),this.criticalUpdateStatusTag(t)},criticalUpdateStatusNotice:function(){i.A.minification.getCriticalStatusForQueue().then((function(t){if(void 0!==t.criticalStatusForQueue.status&&"complete"===t.criticalStatusForQueue.status){clearInterval(h),WPHB_Admin.minification.criticalUpdateStatusTag(t.htmlForStatusTag);var e="critical_display_error_message";if("COMPLETE"===t.criticalStatusForQueue.result)WPHB_Admin.notices.show((0,o.A)("criticalGeneratedNotice"),"success",!1),WPHB_Admin.minification.hbToggleElement(e,"none");else if("ERROR"===t.criticalStatusForQueue.result){window.SUI.closeNotice("wphb-ajax-update-notice");var n=t.criticalStatusForQueue.error_message;window.wphbMixPanel.track("critical_css_error",{mode:t.criticalMode,"Error Type":t.errorCode,"Error Message":n.length>256?n.substring(0,256)+"...":n}),WPHB_Admin.minification.hbToggleElement(e,"block"),document.getElementById("critical_error_message_tag").innerHTML=t.criticalErrorMessage}}}))},criticalUpdateStatusTag:function(t){document.getElementById("critical_progress_tag").remove(),document.getElementById("generate_css_label").insertAdjacentHTML("afterend",t)},hbToggleElement:function(t,e){""!==e&&(document.getElementById(t).style.display=e)},hbTrackEoMPEvent:function(t){window.wphbMixPanel.trackEoUpsell(t.dataset.eventname,t.dataset.location)},hbTrackMPOnAoActivate:function(){window.wphbMixPanel.enableFeature("Asset Optimization"),window.wphbMixPanel.trackAOUpdated({Mode:"speedy",assets_found:0,total_files:0,filesize_reductions:0})},switchView:function(t){var e=!1,n=document.getElementById("hide-"+t+"-modal");n&&!0===n.checked&&(e=!0),i.A.minification.toggleView(t,e).then((function(){window.wphbMixPanel.trackAOUpdated({Mode:"advanced"===t?"Manual":wphb.stats.type,assets_found:wphb.stats.assetsFound,total_files:wphb.stats.totalFiles,filesize_reductions:wphb.stats.filesizeReductions}),window.location.href=(0,o.T)("minification")}))},goToSettings:function(){window.SUI.closeModal(),i.A.minification.toggleCDN(w("input#enable_cdn").is(":checked")).then((function(){window.location.href=(0,o.T)("minification")}))},getMultiSelectValues:function(t){for(var e=w("#"+t).find(":selected"),n={scripts:[],styles:[]},i=0;i<e.length;++i)n[e[i].dataset.type].push(e[i].value);return n},skipUpgrade:function(){i.A.common.call("wphb_ao_skip_upgrade").then((function(){window.location.href=(0,o.T)("minification")}))},doUpgrade:function(){i.A.common.call("wphb_ao_do_upgrade").then((function(){window.location.href=(0,o.T)("minification")}))},purgeOrphanedData:function(){var t=document.getElementById("count-ao-orphaned").innerHTML;i.A.advanced.clearOrphanedBatch(t).then((function(){window.location.reload()}))},clearCriticalCss:function(t){t.classList.add("sui-button-onload-text"),i.A.minification.clearCriticalCssFiles().then((function(t){void 0!==t&&t.success?(window.wphbMixPanel.track("critical_css_cache_purge",{location:"eo_settings"}),WPHB_Admin.minification.triggerCriticalStatusUpdateAjax(t.htmlForStatusTag),w(".box-caching-summary span.sui-summary-large").html("0"),WPHB_Admin.notices.show((0,o.A)("successCriticalCssPurge"),"blue",!1)):WPHB_Admin.notices.show((0,o.A)("errorCriticalCssPurge"),"error")})).finally((function(){return t.classList.remove("sui-button-onload-text")}))},criticalCSSSwitchMode:function(t){if(w("#critical_css_mode").val(t),"manual_css"===t)w("#manual_css_delivery_box").removeClass("sui-hidden"),w("#critical_css_delivery_box").addClass("sui-hidden");else{w("#manual_css_delivery_box").addClass("sui-hidden"),w("#critical_css_delivery_box").removeClass("sui-hidden");var e=document.getElementById("manual_critical_css").value;""===document.getElementById("critical_css_advanced").value&&(document.getElementById("critical_css_advanced").value=e)}}}},6709:function(t,e,n){"use strict";n.r(e);n(3123);var i,o=n(9620),r=n(5138);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(){s=function(){return e};var t,e={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},c=r.iterator||"@@iterator",u=r.asyncIterator||"@@asyncIterator",l=r.toStringTag||"@@toStringTag";function d(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(t){d=function(t,e,n){return t[e]=n}}function f(t,e,n,i){var r=e&&e.prototype instanceof y?e:y,a=Object.create(r.prototype),s=new B(i||[]);return o(a,"_invoke",{value:C(t,n,s)}),a}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var h="suspendedStart",m="suspendedYield",v="executing",g="completed",b={};function y(){}function _(){}function w(){}var x={};d(x,c,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(I([])));k&&k!==n&&i.call(k,c)&&(x=k);var P=w.prototype=y.prototype=Object.create(x);function A(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function n(o,r,s,c){var u=p(t[o],t,r);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==a(d)&&i.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):e.resolve(d).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,c)}))}c(u.arg)}var r;o(this,"_invoke",{value:function(t,i){function o(){return new e((function(e,o){n(t,i,e,o)}))}return r=r?r.then(o,o):o()}})}function C(e,n,i){var o=h;return function(r,a){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===r)throw a;return{value:t,done:!0}}for(i.method=r,i.arg=a;;){var s=i.delegate;if(s){var c=j(s,i);if(c){if(c===b)continue;return c}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(o===h)throw o=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o=v;var u=p(e,n,i);if("normal"===u.type){if(o=i.done?g:m,u.arg===b)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(o=g,i.method="throw",i.arg=u.arg)}}}function j(e,n){var i=n.method,o=e.iterator[i];if(o===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,j(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var r=p(o,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,b;var a=r.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function I(e){if(e||""===e){var n=e[c];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function n(){for(;++o<e.length;)if(i.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return r.next=r}}throw new TypeError(a(e)+" is not iterable")}return _.prototype=w,o(P,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:_,configurable:!0}),_.displayName=d(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,d(t,l,"GeneratorFunction")),t.prototype=Object.create(P),t},e.awrap=function(t){return{__await:t}},A(O.prototype),d(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var a=new O(f(t,n,i,o),r);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},A(P),d(P,l,"Generator"),d(P,c,(function(){return this})),d(P,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},e.values=I,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(i,o){return s.type="throw",s.arg=e,n.next=i,o&&(n.method="next",n.arg=t),!!o}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,b):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),b},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;T(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:I(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),b}},e}function c(t,e,n,i,o,r,a){try{var s=t[r](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,o)}i=jQuery,WPHB_Admin.notifications={module:"notifications",exclude:[],edit:!1,settings:{view:"schedule",module:"",type:"",schedule:{frequency:7,time:"",weekDay:"",monthDay:"",threshold:0},recipients:[],performance:{device:"both",metrics:!0,audits:!0,fieldData:!0},uptime:{showPing:!0},database:{revisions:!0,drafts:!0,trash:!0,spam:!0,trashComment:!0,expiredTransients:!0,transients:!1}},moduleData:{},init:function(t){var e=this;return this.moduleData=t,i(".wphb-disable-notification").on("click",this.disable),i(".wphb-enable-notification").on("click",(function(t){return e.renderTemplate(t,"add")})),i(".wphb-configure-notification").on("click",(function(t){return e.renderTemplate(t,"edit")})),this.maybeOpenModal(),this},maybeOpenModal:function(){var t=window.location.hash;if(0!==t.length&&2===(t=(t=t.substring(1)).split("-")).length){var e=i('button.wphb-configure-notification[data-id="'+t[0]+'"][data-type="'+t[1]+'"]');0===e.length&&(e=i('.wphb-enable-notification[data-id="'+t[0]+'"][data-type="'+t[1]+'"]')),0!==e.length&&e.trigger("click")}},renderTemplate:function(t,e){t.preventDefault(),this.settings.module=t.currentTarget.dataset.id,this.settings.type=t.currentTarget.dataset.type;var n=t.currentTarget.dataset.view;if(this.settings.view="schedule","edit"===e&&"recipients"===n&&(this.settings.view=n),this.moduleData.hasOwnProperty(this.settings.type)){var o=this.moduleData[this.settings.type];o.hasOwnProperty(this.settings.module)&&((o=o[this.settings.module]).hasOwnProperty("schedule")&&(this.settings.schedule=o.schedule),o.hasOwnProperty("settings")&&(this.settings[this.settings.module]=o.settings),o.hasOwnProperty("recipients")&&(this.settings.recipients=o.recipients,this.exclude=o.recipients.reduce((function(t,e){return 0<e.id&&t.push(parseInt(e.id)),t}),[])))}this.loadUsers();var r=WPHB_Admin.notifications.template(e+"-notifications-content")(this.settings);r&&(i("#notification-modal").html(r),this.initSUI(),this.mapActions(),"edit"===e?(this.edit=!0,this.addSelections()):this.toggleUserNotice(),SUI.openModal("notification-modal",i(this)))},loadUsers:function(){var t=this,e=this;o.A.notifications.getUsers(this.exclude).then((function(n){if(void 0!==n){var o=0;n.forEach((function(t){e.addToUsersList(t,0==o++)})),t.fixRecipientCSS(i("#modal-wp-user-list"))}})).catch((function(t){window.console.log(t)}))},processScheduleSettings:function(){if("uptime"===this.settings.module&&"notifications"===this.settings.type){var t=i("select#report-threshold");this.settings.schedule.threshold=t.val()}else{var e=i('input[name="report-frequency"]:checked');this.settings.schedule={frequency:e.val(),time:i("select#report-time").val(),weekDay:i("select#report-day").val(),monthDay:i("select#report-day-month").val(),threshold:""}}},processAdditionalSettings:function(){if("reports"===this.settings.type)if("performance"!==this.settings.module)if("uptime"!==this.settings.module){if("database"===this.settings.module){var t=i("input#revisions").is(":checked"),e=i("input#drafts").is(":checked"),n=i("input#trash").is(":checked"),o=i("input#spam").is(":checked"),r=i("input#trashComment").is(":checked"),a=i("input#expiredTransients").is(":checked"),s=i("input#transients").is(":checked");this.settings.database={revisions:t,drafts:e,trash:n,spam:o,trashComment:r,expiredTransients:a,transients:s}}}else{var c=i("input#show_ping").is(":checked");this.settings.uptime={showPing:c}}else{var u=i('input[name="report-type"]:checked').val(),l=i("input#metrics").is(":checked"),d=i("input#audits").is(":checked"),f=i("input#field-data").is(":checked");this.settings.performance={device:u,metrics:l,audits:d,fieldData:f}}},update:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];event.target.classList.add("sui-button-onload-text"),this.processScheduleSettings(),t&&this.processAdditionalSettings(),o.A.notifications.enable(this.settings,this.edit).then((function(t){history.pushState("",document.title,window.location.pathname+window.location.search),window.location.search+="&status="+t.code})).catch((function(t){window.console.log(t)}))},activate:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.getModuleName();""!==e&&wphbMixPanel.enableFeature(e),this.update(t)},mapActions:function(){var t=this;this.initUserSelects(),this.toggleAddButton(),i("#add-recipient-button").on("click",(function(){t.handleAddButtonClick()})),i('input[name="report-frequency"]').on("change",this.handleFrequencySelect)},addSelections:function(){i("#report-time").val(this.settings.schedule.time).trigger("change"),7===this.settings.schedule.frequency&&i("#report-day").val(this.settings.schedule.weekDay).trigger("change"),30===this.settings.schedule.frequency&&i("#report-day-month").val(this.settings.schedule.monthDay).trigger("change"),i("#report-threshold").val(this.settings.schedule.threshold).trigger("change")},initSUI:function(){i(".sui-select").each((function(){var t=i(this);"icon"===t.data("theme")?SUI.select.initIcon(t):"color"===t.data("theme")?SUI.select.initColor(t):"search"===t.data("theme")?SUI.select.initSearch(t):SUI.select.init(t)})),SUI.modalDialog(),SUI.tabs(),SUI.notice(),i(".sui-side-tabs label.sui-tab-item input").each((function(){SUI.sideTabs(this)}))},handleFrequencySelect:function(){var t=i(this).val(),e=i(".schedule-box"),n=e.find('[data-type="week"]'),o=e.find('[data-type="month"]');n.toggleClass("sui-hidden","30"===t||"1"===t),o.toggleClass("sui-hidden","7"===t||"1"===t)},getModuleName:function(){var t="";return"performance"===this.settings.module&&"reports"===this.settings.type?t="Performance Reports":"uptime"===this.settings.module&&"reports"===this.settings.type?t="Uptime Reports":"uptime"===this.settings.module&&"notifications"===this.settings.type&&(t="Uptime Notifications"),t},disable:function(){event.preventDefault();var t=event.target.dataset.id,e=event.target.dataset.type;if(void 0!==t&&void 0!==e){var n=WPHB_Admin.notifications.getModuleName();""!==n&&wphbMixPanel.disableFeature(n),o.A.notifications.disable(t,e).then((function(){window.location.search+="&status=disabled"})).catch((function(t){window.console.log(t)}))}},toggleAddButton:function(){var t=i('#notifications-invite-users-content input[id^="recipient-"]');t.on("keyup",(function(){var e=!1;t.each((function(){""===i(this).val()&&(e=!0)})),e?i("#add-recipient-button").attr("disabled","disabled"):i("#add-recipient-button").attr("disabled",!1)}))},sanitizeString:function(t){return String(t).replace(/[&\/\\#^+()$~%.'":*?<>{}!@]/g,"").trim()},handleAddButtonClick:function(){var t=this,e=event.target;e.classList.add("sui-button-onload-text");var n=i("input#recipient-name"),r=i("input#recipient-email"),a=i("#error-recipient-email"),s=this.sanitizeString(n.val()),c=i("#error-recipient-name");if(""===s)return c.html(wphb.strings.errorEmptyName),c.parents().addClass("sui-form-field-error"),void e.classList.remove("sui-button-onload-text");c.html(""),c.parents().removeClass("sui-form-field-error"),o.A.notifications.getAvatar(r.val()).then((function(i){a.html(""),a.parents().removeClass("sui-form-field-error");var o={name:s,email:r.val(),role:"",avatar:i,id:0};t.confirmSubscription(o).then((function(i){void 0!==i&&(o.is_pending=i.pending,o.is_subscribed=i.subscribed,o.is_can_resend_confirmation=i.canResend),t.addUser(o,"email"),n.val("").trigger("keyup"),r.val("").trigger("keyup"),e.classList.remove("sui-button-onload-text")}))})).catch((function(t){a.html(t),a.parents().addClass("sui-form-field-error"),e.classList.remove("sui-button-onload-text")}))},initUserSelects:function(){var t=i("#search-users"),e=this;t.SUIselect2({minimumInputLength:3,maximumSelectionLength:1,ajax:{url:ajaxurl,method:"POST",dataType:"json",delay:250,data:function(t){return{action:"wphb_pro_search_users",nonce:wphb.nonces.HBFetchNonce,query:t.term,exclude:e.exclude}},processResults:function(t){return{results:jQuery.map(t.data,(function(t,e){return{text:t.name,id:e,user:{name:t.name,email:t.email,role:t.role,avatar:t.avatar,id:t.id}}}))}}}}),t.on("select2:select",(function(n){e.add(n.params.data.user),t.val(null).trigger("change")}))},confirmSubscription:function(t){var e,n=this;return(e=s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("uptime"===n.settings.module&&"notifications"===n.settings.type){e.next=2;break}return e.abrupt("return");case 2:return e.abrupt("return",o.A.notifications.sendConfirmationEmail(t.name,t.email));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function a(t){c(r,i,o,a,s,"next",t)}function s(t){c(r,i,o,a,s,"throw",t)}a(void 0)}))})()},resendInvite:function(t,e){var n=i(this);n.attr("disabled","disabled"),o.A.notifications.resendConfirmationEmail(t,e).then((function(t){var e=i(".notifications-resend-notice");e.find("p").html(t.message),e.removeClass("sui-hidden"),n.attr("disabled",!1)}))},addUser:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"user";if(this.settings.recipients.findIndex((function(e){return t.email===e.email}))>-1)this.toggleUserNotice(!0);else{var n=i("#modal-"+e+"-recipients-list"),o=(0,r.A)("removeRecipient"),a=""===t.role?t.email:t.role,s="";void 0!==t.is_pending&&(s=t.is_pending||void 0===t.is_subscribed||t.is_subscribed?t.is_pending?"pending":"confirmed":"unsubscribed");var c='<img src="'.concat(t.avatar,'" alt="').concat(t.email,'">'),u="";if("pending"===s||"unsubscribed"===s){var l=(0,r.A)("awaitingConfirmation"),d=(0,r.A)("resendInvite");c='<span class="sui-tooltip" data-tooltip="'.concat(l,'">').concat(c,"</span>"),u='<button type="button" class="resend-invite sui-button-icon sui-tooltip" data-tooltip="'.concat(d,'"\n\t\t\t\t\tonclick="WPHB_Admin.notifications.resendInvite( \'').concat(t.name,"', '").concat(t.email,'\' )">\n\t\t\t\t\t<span class="sui-icon-send" aria-hidden="true"></span>\n\t\t\t\t</button>')}var f='\n\t\t\t\t<div class="sui-recipient" data-id="'.concat(t.id,'" data-email="').concat(t.email,'">\n\t\t\t\t\t<span class="sui-recipient-name">\n\t\t\t\t\t\t<span class="subscriber ').concat(s,'">').concat(c,'</span>\n\t\t\t\t\t\t<span class="wphb-recipient-name">').concat(t.name,'</span>\n\t\t\t\t\t</span>\n\t\t\t\t\t<span class="sui-recipient-email">').concat(a,"</span>\n\t\t\t\t\t").concat(u,'\n\t\t\t\t\t<button type="button" class="sui-button-icon sui-tooltip" data-tooltip="').concat(o,'"\n\t\t\t\t\t\tonclick="WPHB_Admin.notifications.removeUser( ').concat(t.id,", '").concat(t.email,"', '").concat(e,'\' )">\n\t\t\t\t\t\t<span class="sui-icon-trash" aria-hidden="true"></span>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t');n.append(f),this.settings.recipients.push(t),"user"===e&&this.exclude.push(t.id),this.toggleRecipientList(n)}},addToUsersList:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=i("#modal-wp-user-list"),o=e?"sui-tooltip-bottom-right":"sui-tooltip-top-right",a='\n\t\t\t\t<div class="sui-recipient" data-id="'.concat(t.id,'" data-email="').concat(t.email,'">\n\t\t\t\t\t<span class="sui-recipient-name">\n\t\t\t\t\t\t<span class="subscriber">\n\t\t\t\t\t\t\t<img src="').concat(t.avatar,'" alt="').concat(t.email,'">\n\t\t\t\t\t\t</span>\n\t\t\t\t\t\t<span class="wphb-recipient-name">').concat(t.name,'</span>\n\t\t\t\t\t</span>\n\t\t\t\t\t<span class="sui-recipient-email">').concat(t.role,'</span>\n\t\t\t\t\t<button type="button" class="sui-button-icon sui-tooltip ').concat(o,'"\n\t\t\t\t\t\tdata-tooltip="').concat((0,r.A)("addRecipient"),"\"\n\t\t\t\t\t\tonclick='WPHB_Admin.notifications.add( ").concat(JSON.stringify(t),' )\'>\n\t\t\t\t\t\t<span class="sui-icon-plus" aria-hidden="true"></span>\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t');n.append(a),this.toggleRecipientList(n)},removeUser:function(t,e){var n,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"user",r=i("#modal-"+o+"-recipients-list"),a='.sui-recipient[data-email="'+e+'"]',s=r.find(a);s.remove(),"user"===o&&((n=this.exclude.indexOf(t))>-1&&this.exclude.splice(n,1),this.returnToList(s)),(n=this.settings.recipients.findIndex((function(n){return t===parseInt(n.id)&&e===n.email})))>-1&&this.settings.recipients.splice(n,1),this.toggleRecipientList(r)},add:function(t){var e=this;this.confirmSubscription(t).then((function(n){void 0!==n&&(t.is_pending=n.pending,t.is_subscribed=n.subscribed,t.is_can_resend_confirmation=n.canResend),e.addUser(t);var o=i("#modal-wp-user-list"),r='.sui-recipient[data-email="'+t.email+'"]';o.find(r).remove(),e.fixRecipientCSS(o),e.toggleRecipientList(o,!1)}))},returnToList:function(t){var e=i("#modal-wp-user-list"),n={id:t.data("id"),name:t.find(".wphb-recipient-name").text(),email:t.data("email"),role:t.find(".sui-recipient-email").text(),avatar:t.find("img").attr("src")},o="WPHB_Admin.notifications.add("+JSON.stringify(n)+")";t.find(".resend-invite").remove(),t.find(".sui-icon-trash").removeClass("sui-icon-trash").addClass("sui-icon-plus"),t.find("button").attr("onclick",o).attr("data-tooltip",(0,r.A)("addRecipient")).addClass("sui-tooltip-top-right"),e.append(t),this.fixRecipientCSS(e),this.toggleRecipientList(e,!1)},fixRecipientCSS:function(t){var e=t.children().length>1?"hidden":"unset";t.css("overflow-x",e),t.find(".sui-recipient:first-of-type .sui-tooltip").removeClass("sui-tooltip-top-right").addClass("sui-tooltip-bottom-right")},toggleRecipientList:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=0===t.html().trim().length;t.parent("div").toggleClass("sui-hidden",n).toggleClass("sui-margin-top",!n),e&&this.toggleUserNotice()},toggleUserNotice:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=i(".notifications-recipients-notice"),n=i("#notification-modal .sui-button.sui-button-blue"),o=i(".notification-next-buttons"),a=(0,r.A)("noRecipients");t?a=(0,r.A)("recipientExists"):this.edit&&(a=(0,r.A)("noRecipientDisable")),e.find("p").html(a),t?(e.removeClass("sui-hidden"),setTimeout((function(){return e.addClass("sui-hidden")}),3e3)):0===this.settings.recipients.length?(this.edit||(n.attr("disabled","disabled"),o.attr("disabled","disabled")),e.removeClass("sui-hidden")):(n.attr("disabled",!1),o.attr("disabled",!1),e.addClass("sui-hidden"))}},WPHB_Admin.notifications.template=_.memoize((function(t){var e,n={evaluate:/<#([\s\S]+?)#>/g,interpolate:/{{{([\s\S]+?)}}}/g,escape:/{{([^}]+?)}}(?!})/g,variable:"data"};return function(o){return _.templateSettings=n,(e=e||_.template(i("#"+t).html()))(o)}}))},6049:function(t,e,n){"use strict";var i=n(9620),o=n(5345),r=n(5138);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}function u(t,e,n){return e=p(e),function(t,e){if(e&&("object"==a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,l()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(l=function(){return!!t})()}function d(t,e,n,i){var o=f(p(1&i?t.prototype:t),e,n);return 2&i&&"function"==typeof o?function(t){return o.apply(n,t)}:o}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},f.apply(null,arguments)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}var m,v=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),u(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(e,t),n=e,(o=[{key:"step",value:function(t){var n=this;d(e,"step",this,3)([t]),this.currentStep++,this.updateProgressBar(this.getProgress()),i.A.common.call("wphb_performance_run_test").then((function(t){t.finished?n.onFinish(t):window.setTimeout((function(){n.step(n.totalSteps-n.currentStep)}),3e3)}))}},{key:"updateProgressBar",value:function(t){var e=this;0===t&&(this.currentStep=2,this.timer=window.setInterval((function(){e.currentStep+=1,e.updateProgressBar(e.getProgress())}),100));var n=document.querySelector(".wphb-performance-scan-modal .sui-progress-state .sui-progress-state-text");if(3===t&&(n.innerHTML=(0,r.A)("scanRunning")),73===t&&(clearInterval(this.timer),this.timer=!1,this.timer=window.setInterval((function(){e.currentStep+=1,e.updateProgressBar(e.getProgress())}),1e3),n.innerHTML=(0,r.A)("scanAnalyzing")),99===t&&(n.innerHTML=(0,r.A)("scanWaiting"),clearInterval(this.timer),this.timer=!1),document.querySelector(".wphb-performance-scan-modal .sui-progress-block .sui-progress-text span").innerHTML=t+"%",document.querySelector(".wphb-performance-scan-modal .sui-progress-block .sui-progress-bar span").style.width=t+"%",100===t){var i=document.querySelector(".wphb-performance-scan-modal .sui-progress-block span.sui-icon-loader");i.classList.remove("sui-icon-loader","sui-loading"),i.classList.add("sui-icon-check"),n.innerHTML=(0,r.A)("scanComplete"),clearInterval(this.timer),this.timer=!1}}},{key:"onStart",value:function(){return Promise.resolve()}},{key:"retrieveValueFromObject",value:function(t,e){return t&&void 0!==t[e]?t[e]:"N/A"}},{key:"onFinish",value:function(t){d(e,"onFinish",this,3)([]),window.wphbMixPanel.track("plugin_scan_finished",{score_mobile:t.mobileScore,score_desktop:t.desktopScore,active_features:t.HBSmushFeatures,"AO Status":t.aoStatus,cls_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"cls_desktop"),cls_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"cls_mobile"),fcp_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"fcp_desktop"),fcp_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"fcp_mobile"),inp_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"inp_desktop"),inp_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"inp_mobile"),lcp_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"lcp_desktop"),lcp_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"lcp_mobile"),speed_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"speed_desktop"),speed_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"speed_mobile"),tbt_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"tbt_desktop"),tbt_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"tbt_mobile"),ttfb_desktop:this.retrieveValueFromObject(t.hbPerformanceMetric,"ttfb_desktop"),ttfb_mobile:this.retrieveValueFromObject(t.hbPerformanceMetric,"ttfb_mobile"),lcp_ttfb_desktop:t.getLCPSubmetrics.lcp_ttfb.desktop,lcp_ttfb_mobile:t.getLCPSubmetrics.lcp_ttfb.desktop,lcp_load_delay_desktop:t.getLCPSubmetrics.lcp_load_delay.desktop,lcp_load_delay_mobile:t.getLCPSubmetrics.lcp_load_delay.mobile,lcp_render_delay_desktop:t.getLCPSubmetrics.lcp_render_delay.desktop,lcp_render_delay_mobile:t.getLCPSubmetrics.lcp_render_delay.mobile,lcp_load_time_desktop:t.getLCPSubmetrics.lcp_load_time.desktop,lcp_load_time_mobile:t.getLCPSubmetrics.lcp_load_time.mobile,lcp_element_desktop:t.getLCPSubmetrics.lcp_element.desktop,lcp_element_mobile:t.getLCPSubmetrics.lcp_element.mobile,audits_opportunities_desktop:t.getAudits.opportunities.desktop,audits_opportunities_mobile:t.getAudits.opportunities.mobile,audits_diagnostics_desktop:t.getAudits.diagnostics.desktop,audits_diagnostics_mobile:t.getAudits.diagnostics.mobile,audits_passed_desktop:t.getAudits.passed.desktop,audits_passed_mobile:t.getAudits.passed.mobile,core_web_vitals_mobile:t.coreWebVitalsMobile,core_web_vitals_desktop:t.coreWebVitalsDesktop,autoloader_health:t.autoloaderHealth,autoloader_size:t.autoloaderSize}),""!==t.hasError&&window.wphbMixPanel.track("performance_test_error",{"Error Message":t.hasError}),window.setTimeout((function(){window.location=(0,r.T)("audits")}),2e3)}}])&&s(n.prototype,o),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,a}(o.A),g=v;function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],c=!0,u=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return _(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=Array(e);n<e;n++)i[n]=t[n];return i}m=jQuery,WPHB_Admin.performance={module:"performance",iteration:0,progress:0,pressedKeys:[],key_timer:!1,init:function(){var t=this,e=this;this.wphbSetInterval(),this.scanner=new g(100,0),m("#run-performance-test").on("click",(function(t){t.preventDefault(),e.startPerformanceScan()}));var n=window.location.hash;if(n){var o=m(n);o.length&&!o.hasClass("sui-box")&&(o.find(".sui-accordion-open-indicator").trigger("click"),m("html, body").animate({scrollTop:o.offset().top},1e3))}return m("body").on("submit",".settings-frm",(function(t){t.preventDefault();var e=m(this).serialize();return i.A.performance.savePerformanceTestSettings(e).then((function(){return WPHB_Admin.notices.show()})),!1})),"undefined"!=typeof google&&"undefined"!=typeof wphbHistoricFieldData&&(google.charts.load("current",{packages:["corechart","bar"]}),google.charts.setOnLoadCallback((function(){t.drawChart(wphbHistoricFieldData.fcp,"first_contentful_paint"),m(window).resize((function(){return t.drawChart(wphbHistoricFieldData.fcp,"first_contentful_paint")}))})),google.charts.setOnLoadCallback((function(){t.drawChart(wphbHistoricFieldData.inp,"interaction_to_next_paint"),m(window).resize((function(){return t.drawChart(wphbHistoricFieldData.inp,"interaction_to_next_paint")}))}))),m("input[name=subsite-tests]").on("change",(function(t){var e="subsite_tests-false"===t.target.id?"subsite_tests-true":"subsite_tests-false";t.target.parentNode.classList.add("active"),document.getElementById(e).parentNode.classList.remove("active")})),m("input[name=report-type]").on("change",(function(t){for(var e=document.querySelectorAll("input[name=report-type]"),n=0;n<e.length;++n)e[n].parentNode.classList.remove("active");t.target.parentNode.classList.add("active")})),m("g.metric").on({mouseenter:function(){m(".wphb-gauge__wrapper").addClass("state--highlight"),m(this).addClass("metric--highlight")},mouseleave:function(){m(".wphb-gauge__wrapper").removeClass("state--highlight"),m(this).removeClass("metric--highlight")}}),m("#wphb-audits-filter-button").on("click",(function(t){t.preventDefault(),m(".wphb-audits-filter").toggle("slow"),m(this).toggleClass("active").blur()})),m('input[name="audits_filter"]').on("change",(function(){for(var t=m(".sui-accordion-item"),e=0,n=Object.entries(t);e<n.length;e++){var i=y(n[e],2),o=i[0],r=i[1];"object"===b(r)&&"prevObject"!==o&&(r.classList.remove("sui-hidden"),"all"===this.value||r.dataset.metrics.includes(this.value)||r.classList.add("sui-hidden"))}})),this},startPerformanceScan:function(){window.SUI.openModal("run-performance-test-modal","wpbody-content"),m(this).attr("disabled",!0),this.scanner.start()},wphbSetInterval:function(){var t=this;this.key_timer=window.setInterval((function(){t.pressedKeys=[]}),1e3)},drawChart:function(t,e){var n=google.visualization.arrayToDataTable([["Type","Fast",{type:"string",role:"tooltip",p:{html:!0}},"Average",{type:"string",role:"tooltip",p:{html:!0}},"Slow",{type:"string",role:"tooltip",p:{html:!0}}],["",t.fast,this.generateTooltip("fast",t.fast_desc),t.average,this.generateTooltip("average",t.average_desc),t.slow,this.generateTooltip("slow",t.slow_desc)]]);new google.visualization.BarChart(document.getElementById(e)).draw(n,{tooltip:{isHtml:!0},colors:["#1ABC9C","#FECF2F","#FF6D6D"],chartArea:{width:"100%"},hAxis:{baselineColor:"#fff",gridlines:{color:"#fff",count:0},textPosition:"none"},isStacked:"percent",height:80,legend:"none"})},generateTooltip:function(t,e){return'<div class="wphb-field-data-tooltip wphb-tooltip-'+t+'">'+e+"</div>"}}},5992:function(t,e,n){"use strict";n.r(e);var i,o=n(9620),r=n(5138);i=jQuery,WPHB_Admin.settings={module:"settings",init:function(){var t=i("body"),e=t.find(".wrap-wphb-settings");return i(".sui-box-footer").on("click","button.sui-button-blue",(function(n){n.preventDefault();var r=t.find(".settings-frm").serialize(),a=i("#color_accessible");return a.length&&(a.is(":checked")?e.addClass("sui-color-accessible"):e.removeClass("sui-color-accessible")),document.getElementById("tracking"),o.A.settings.saveSettings(r).then((function(t){WPHB_Admin.notices.show()})),!1})),i("input[name=remove_settings]").on("change",(function(t){var e="remove_settings-false"===t.target.id?"remove_settings-true":"remove_settings-false";t.target.parentNode.classList.add("active"),document.getElementById(e).parentNode.classList.remove("active")})),i("input[name=remove_data]").on("change",(function(t){var e="remove_data-false"===t.target.id?"remove_data-true":"remove_data-false";t.target.parentNode.classList.add("active"),document.getElementById(e).parentNode.classList.remove("active")})),i("#wphb-import-file-input").on("change",(function(){var t=i(this)[0];if(t.files.length){var e=t.files[0];i("#wphb-import-file-name").text(e.name),i("#wphb-import-upload-wrap").addClass("sui-has_file"),i("#wphb-import-btn").removeAttr("disabled")}else i("#wphb-import-file-name").text(""),i("#wphb-import-upload-wrap").removeClass("sui-has_file"),i("#wphb-import-btn").attr("disabled","disabled")})),i("#wphb-import-remove-file").on("click",(function(){i("#wphb-import-file-input").val("").trigger("change")})),i("#wphb-begin-import-btn").on("click",(function(t){t.preventDefault(),i(this).attr("disabled","disabled").addClass("sui-button-onload-text");var e=i("#wphb-import-remove-file");e.attr("disabled","disabled");var n=i("#wphb-import-file-input")[0];if(0===n.files.length)return!1;var r=new FormData;r.append("settings_json_file",n.files[0],n.files[0].name),o.A.settings.importSettings(r).then((function(t){WPHB_Admin.notices.show(t.message),e.trigger("click")})).catch((function(t){WPHB_Admin.notices.show(t,"error")})).finally((function(){i("#wphb-begin-import-btn").removeAttr("disabled").removeClass("sui-button-onload-text"),e.removeAttr("disabled"),window.SUI.closeModal()}))})),i("#wphb-export-btn").on("click",(function(t){t.preventDefault(),o.A.settings.exportSettings()})),i('input[id="control"]').on("change",(function(){i(".cache-control-options").toggle()})),this},confirmReset:function(){o.A.common.call("wphb_reset_settings").then((function(){o.A.common.call("wphb_redis_disconnect"),window.location.href=(0,r.T)("resetSettings")}))}}},4461:function(t,e,n){"use strict";n.r(e);var i,o=n(5138);i=jQuery,WPHB_Admin.uptime={module:"uptime",$dataRangeSelector:null,chartData:null,downtimeChartData:null,timer:null,$spinner:null,dataRange:null,dateFormat:"MMM d",init:function(){var t=this;this.$spinner=i(".spinner"),this.$dataRangeSelector=i("#wphb-uptime-data-range"),this.chartData=i("#uptime-chart-json").val(),this.downtimeChartData=i("#downtime-chart-json").val(),this.$disableUptime=i("#wphb-disable-uptime"),this.dataRange=this.getUrlParameter("data-range"),this.$dataRangeSelector.on("change",(function(){window.location.href=i(this).find(":selected").data("url")}));var e=this;"undefined"!=typeof google&&google.charts.load("current",{packages:["corechart","timeline"]}),this.$disableUptime.on("click",(function(t){t.preventDefault(),e.$spinner.css("visibility","visible"),i(this).is(":checked")&&e.timer?(clearTimeout(e.timer),e.$spinner.css("visibility","hidden")):e.timer=setTimeout((function(){location.href=(0,o.T)("disableUptime")}),3e3)})),void 0!==this.dataRange&&i(".wrap-wphb-uptime .wphb-tab a").each((function(){this.href+="&data-range="+e.dataRange})),"day"===this.dataRange&&(this.dateFormat="h:mma"),null!==document.getElementById("uptime-chart")&&google.charts.setOnLoadCallback((function(){return t.drawResponseTimeChart()})),null!==document.getElementById("downtime-chart")&&google.charts.setOnLoadCallback((function(){return t.drawDowntimeChart()})),i("#uptime-re-check-status").on("click",(function(t){t.preventDefault(),location.reload()}))},drawResponseTimeChart:function(){var t=new google.visualization.DataTable;t.addColumn("datetime","Day"),t.addColumn("number","Response Time (ms)"),t.addColumn({type:"string",role:"tooltip",p:{html:!0}});for(var e=JSON.parse(this.chartData),n=0;n<e.length;n++)e[n][0]=new Date(e[n][0]),e[n][1]=Math.round(e[n][1]),e[n][2]=this.createUptimeTooltip(e[n][0],e[n][1]),0===Math.round(e[n][1])&&(e[n][1]=-100);t.addRows(e);var o={chartArea:{left:80,top:20,width:"90%",height:"90%"},colors:["#24ADE5"],curveType:"function",legend:{position:"none"},vAxis:{format:"#### ms",gridlines:{count:5},minorGridlines:{count:0},viewWindow:{min:0}},hAxis:{format:this.dateFormat,minorGridlines:{count:0}},tooltip:{isHtml:!0},series:{0:{axis:"Resp"}},axes:{y:{Resp:{label:"Response Time (ms)"}}}},r=new google.visualization.AreaChart(document.getElementById("uptime-chart"));r.draw(t,o),i(window).resize((function(){r.draw(t,o)}))},drawDowntimeChart:function(){var t=document.getElementById("downtime-chart"),e=new google.visualization.Timeline(t),n=new google.visualization.DataTable;n.addColumn({type:"string"}),n.addColumn({type:"string",id:"Status"}),n.addColumn({type:"string",role:"tooltip",p:{html:!0}}),n.addColumn({type:"datetime",id:"Start Period"}),n.addColumn({type:"datetime",id:"End Period"});for(var o=JSON.parse(this.downtimeChartData),r=0;r<o.length;r++)o[r][3]=new Date(o[r][3]),o[r][4]=new Date(o[r][4]);n.addRows(o);for(var a=[],s={Down:"#FF6D6D",Unknown:"#F8F8F8",Up:"#D1F1EA"},c=0;c<n.getNumberOfRows();c++)a.push(s[n.getValue(c,1)]);var u={timeline:{showBarLabels:!1,showRowLabels:!1,barLabelStyle:{fontSize:33},avoidOverlappingGridLines:!1},hAxis:{format:this.dateFormat},colors:a,height:170},l=[];google.visualization.events.addListener(e,"ready",(function(){var e=t.getElementsByTagName("rect");Array.prototype.forEach.call(e,(function(t){parseFloat(t.getAttribute("x"))>0&&l.push(t.getAttribute("fill"))}))})),google.visualization.events.addListener(e,"onmouseover",(function(e){var n=t.getElementsByTagName("rect");n[n.length-1].setAttribute("fill",l[e.row]);var i=n[n.length-1].getAttribute("width");i>3&&n[n.length-1].setAttribute("width",i-1+"px")})),e.draw(n,u),i(window).resize((function(){e.draw(n,u)}))},createUptimeTooltip:function(t,e){return'<span class="response-time-tooltip">'+e+'ms</span><span class="uptime-date-tooltip">'+this.formatTooltipDate(t)+"</span>"},formatTooltipDate:function(t){var e=t.getDate(),n=t.getMonth(),i=t.getHours(),o=i,r=(t.getMinutes()<10?"0":"")+t.getMinutes(),a="AM";return o>=12&&(o=i-12,a="PM"),0===o&&(o=12),["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n]+" "+e+" @ "+o+":"+r+a},getUrlParameter:function(t){var e,n,i=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<i.length;n++)if((e=i[n].split("="))[0]===t)return void 0===e[1]||e[1]}}},9620:function(t,e,n){"use strict";var i=n(6139),o=n.n(i);function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}var a=new function(){var t=ajaxurl,e=wphb.nonces.HBFetchNonce,i="wphb_",a="wphb_pro_";function s(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a={url:t,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",cache:!1};return o instanceof FormData?(o.append("nonce",e),o.append("action",i),a.contentType=!1,a.processData=!1):(o.nonce=e,o.action=i),a.data=o,new(0,n(6964).Promise)((function(t,e){jQuery.ajax(a).done(t).fail(e)})).then((function(t){return function(t){"object"!==r(t)&&(t=JSON.parse(t));if(t.success)return t.data;var e=t.data||{},n=new Error(e.message||"Error trying to fetch response from server");throw n.response=t,n}(t)}))}var c={caching:{saveSettings:function(t,e){return s(i+t+"_save_settings",{data:e},"POST").then((function(t){return t}))},saveFastCGISettings:function(t){return s(i+"fast_cgi_save_settings",{data:t},"POST").then((function(t){return t}))},clearCache:function(t){return s(i+"clear_module_cache",{module:t},"POST").then((function(t){return t}))},clearCacheForPost:function(t){return s(i+"gutenberg_clear_post_cache",{postId:t},"POST")},redisSaveSettings:function(t,e,n,o){return s(i+"redis_save_settings",{host:t,port:e,password:n,db:o},"POST")},redisObjectCache:function(t){return s(i+"redis_toggle_object_cache",{value:t},"POST")},clearCacheBatch:function(t,e){return s(i+"clear_network_cache",{sites:t,offset:e},"POST")},disableFastCGI:function(){return s(i+"disable_fast_cgi",{},"POST").then((function(t){return t}))},switchCacheMethod:function(t){return s(i+"switch_cache_method",{method:t},"POST").then((function(t){return t}))}},cloudflare:{connect:function(t,e,n,o){return s(i+"cloudflare_connect",{email:t,key:e,token:n,zone:o},"POST").then((function(t){return t}))}},minification:{toggleCDN:function(t){return s(i+"minification_toggle_cdn",{value:t},"POST")},toggleLog:function(t){return s(i+"minification_toggle_log",{value:t},"POST")},toggleView:function(t,e){return s(i+"minification_toggle_view",{value:t,hide:e},"POST")},startCheck:function(){return s(i+"minification_start_check",{},"POST")},checkStep:function(t){return s(i+"minification_check_step",{step:t},"POST").then((function(t){return t}))},finishCheck:function(){return s(i+"minification_finish_scan",{},"POST").then((function(t){return t}))},cancelScan:function(){return s(i+"minification_cancel_scan",{},"POST")},saveCriticalCss:function(t){return s(i+"minification_save_extra_optimization_data",{form:t},"POST").then((function(t){return t}))},updateAssetPath:function(t){return s(i+"minification_update_asset_path",{value:t},"POST")},saveNetworkSettings:function(t){return s(i+"minification_update_network_settings",{settings:t},"POST")},updateExcludeList:function(t){return s(i+"minification_save_exclude_list",{data:t},"POST")},clearCriticalCssFiles:function(){return s(i+"clear_critical_css_files",{},"POST").then((function(t){return t}))},createCSSForPost:function(t){return s(i+"gutenberg_create_css_file",{postId:t},"POST")},reCreateCSSForPost:function(t){return s(i+"gutenberg_recreate_css_file",{postId:t},"POST")},revertCSSForPost:function(t){return s(i+"gutenberg_revert_css_file",{postId:t},"POST")},getCriticalStatusForSinglePost:function(t){return s(i+"gutenberg_get_critical_status_for_single_post",{postId:t},"POST")},getCriticalStatusForQueue:function(){return s(i+"get_critical_status_for_queue",{},"POST")},toggleDelayJs:function(t){return s(i+"react_minify_toggle_delay_js",{data:t},"POST")},toggleCriticalCss:function(t){return s(i+"react_minify_toggle_critical_css",{data:t},"POST")},resetExclusions:function(t,e){return s(i+"reset_exclusions",{value:t,type:e},"POST")}},performance:{savePerformanceTestSettings:function(t){return s(i+"performance_save_settings",{data:t},"POST")}},advanced:{saveSettings:function(t,e){return s(i+"advanced_save_settings",{data:t,form:e},"POST").then((function(t){return t}))},deleteSelectedData:function(t){return s(i+"advanced_db_delete_data",{data:t},"POST").then((function(t){return t}))},clearOrphanedBatch:function(t){return s(i+"advanced_purge_orphaned",{rows:t},"POST")}},settings:{saveSettings:function(t){return s(i+"admin_settings_save_settings",{form_data:t},"POST").then((function(t){return t}))},importSettings:function(t){return s(i+"admin_settings_import_settings",t,"POST").then((function(t){return t}))},exportSettings:function(){var n=i+"admin_settings_export_settings";window.location=t+"?action="+n+"&nonce="+e}},common:{dismissNotice:function(t){return s(i+"notice_dismiss",{id:t},"POST")},clearLogs:function(t){return s(i+"logger_clear",{module:t},"POST").then((function(t){return t}))},call:function(t){return s(t,{},"POST").then((function(t){return t}))},clearCaches:function(t){return s(i+"clear_caches",{modules:t},"POST").then((function(t){return t}))}},mixpanel:{trackMixpanelEvent:function(t,e){return s(i+"analytics_track_event",{event:t,properties:e},"POST")}},notifications:{resendConfirmationEmail:function(t,e){return s(a+"resend_confirmation",{name:t,email:e},"POST").then((function(t){return t}))},sendConfirmationEmail:function(t,e){return s(a+"send_confirmation",{name:t,email:e},"POST").then((function(t){return t}))},disable:function(t,e){return s(a+"disable_notification",{id:t,type:e},"POST")},enable:function(t){return s(a+"enable_notification",{settings:t,update:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},"POST").then((function(t){return t}))},getAvatar:function(t){return s(a+"get_avatar",{email:t},"POST").then((function(t){return t}))},getUsers:function(t){return s(a+"search_users",{exclude:t},"POST").then((function(t){return t}))}}};o()(this,c)};e.A=a},5138:function(t,e,n){"use strict";n.d(e,{A:function(){return i},T:function(){return o}});var i=function(t){return wphb.strings[t]||""},o=function(t){return wphb.links[t]||""}},5345:function(t,e){"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function o(t){var e=function(t,e){if("object"!=n(t)||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==n(e)?e:e+""}var r=function(){return t=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.totalSteps=parseInt(e),this.currentStep=parseInt(n),this.cancelling=!1},e=[{key:"start",value:function(){var t=this;this.updateProgressBar(this.getProgress());var e=this.totalSteps-this.currentStep;0!==this.currentStep?this.step(e):this.onStart().then((function(){t.step(e)}))}},{key:"cancel",value:function(){this.cancelling=!0,this.updateProgressBar(0,!0)}},{key:"getProgress",value:function(){if(this.cancelling)return 0;var t=this.totalSteps-this.currentStep;return Math.min(Math.round(100*parseInt(this.totalSteps-t)/this.totalSteps),99)}},{key:"updateProgressBar",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t>100&&(t=100),document.querySelector(".sui-progress-block .sui-progress-text span").innerHTML=t+"%",document.querySelector(".sui-progress-block .sui-progress-bar span").style.width=t+"%",t>=90&&(document.querySelector(".sui-progress-state .sui-progress-state-text").innerHTML="Finalizing..."),e&&(document.querySelector(".sui-progress-state .sui-progress-state-text").innerHTML="Cancelling...")}},{key:"step",value:function(t){t>=0&&(this.currentStep=this.totalSteps-t)}},{key:"onStart",value:function(){throw new Error("onStart() must be implemented in child class")}},{key:"onFinish",value:function(){this.updateProgressBar(100)}}],e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();e.A=r},6964:function(t,e,n){t.exports=function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,r=void 0,a=void 0,s=function(t,e){_[o]=t,_[o+1]=e,2===(o+=2)&&(a?a(w):S())};function c(t){a=t}function u(t){s=t}var l="undefined"!=typeof window?window:void 0,d=l||{},f=d.MutationObserver||d.WebKitMutationObserver,p="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function m(){return function(){return process.nextTick(w)}}function v(){return void 0!==r?function(){r(w)}:y()}function g(){var t=0,e=new f(w),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function b(){var t=new MessageChannel;return t.port1.onmessage=w,function(){return t.port2.postMessage(0)}}function y(){var t=setTimeout;return function(){return t(w,1)}}var _=new Array(1e3);function w(){for(var t=0;t<o;t+=2)(0,_[t])(_[t+1]),_[t]=void 0,_[t+1]=void 0;o=0}function x(){try{var t=Function("return this")().require("vertx");return r=t.runOnLoop||t.runOnContext,v()}catch(t){return y()}}var S=void 0;function k(t,e){var n=this,i=new this.constructor(O);void 0===i[A]&&J(i);var o=n._state;if(o){var r=arguments[o-1];s((function(){return z(o,i,r,n._result)}))}else N(n,i,t,e);return i}function P(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(O);return F(n,t),n}S=p?m():f?g():h?b():void 0===l?x():y();var A=Math.random().toString(36).substring(2);function O(){}var C=void 0,j=1,E=2;function T(){return new TypeError("You cannot resolve a promise with itself")}function B(){return new TypeError("A promises callback cannot return that same promise.")}function I(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}function L(t,e,n){s((function(t){var i=!1,o=I(n,e,(function(n){i||(i=!0,e!==n?F(t,n):R(t,n))}),(function(e){i||(i=!0,H(t,e))}),"Settle: "+(t._label||" unknown promise"));!i&&o&&(i=!0,H(t,o))}),t)}function M(t,e){e._state===j?R(t,e._result):e._state===E?H(t,e._result):N(e,void 0,(function(e){return F(t,e)}),(function(e){return H(t,e)}))}function D(t,n,i){n.constructor===t.constructor&&i===k&&n.constructor.resolve===P?M(t,n):void 0===i?R(t,n):e(i)?L(t,n,i):R(t,n)}function F(e,n){if(e===n)H(e,T());else if(t(n)){var i=void 0;try{i=n.then}catch(t){return void H(e,t)}D(e,n,i)}else R(e,n)}function U(t){t._onerror&&t._onerror(t._result),W(t)}function R(t,e){t._state===C&&(t._result=e,t._state=j,0!==t._subscribers.length&&s(W,t))}function H(t,e){t._state===C&&(t._state=E,t._result=e,s(U,t))}function N(t,e,n,i){var o=t._subscribers,r=o.length;t._onerror=null,o[r]=e,o[r+j]=n,o[r+E]=i,0===r&&t._state&&s(W,t)}function W(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i=void 0,o=void 0,r=t._result,a=0;a<e.length;a+=3)i=e[a],o=e[a+n],i?z(n,i,o,r):o(r);t._subscribers.length=0}}function z(t,n,i,o){var r=e(i),a=void 0,s=void 0,c=!0;if(r){try{a=i(o)}catch(t){c=!1,s=t}if(n===a)return void H(n,B())}else a=o;n._state!==C||(r&&c?F(n,a):!1===c?H(n,s):t===j?R(n,a):t===E&&H(n,a))}function V(t,e){try{e((function(e){F(t,e)}),(function(e){H(t,e)}))}catch(e){H(t,e)}}var G=0;function q(){return G++}function J(t){t[A]=G++,t._state=void 0,t._result=void 0,t._subscribers=[]}function Q(){return new Error("Array Methods must be provided an Array")}var $=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(O),this.promise[A]||J(this.promise),i(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?R(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&R(this.promise,this._result))):H(this.promise,Q())}return t.prototype._enumerate=function(t){for(var e=0;this._state===C&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===P){var o=void 0,r=void 0,a=!1;try{o=t.then}catch(t){a=!0,r=t}if(o===k&&t._state!==C)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===et){var s=new n(O);a?H(s,r):D(s,t,o),this._willSettleAt(s,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(i(t),e)},t.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===C&&(this._remaining--,t===E?H(i,n):this._result[e]=n),0===this._remaining&&R(i,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;N(t,void 0,(function(t){return n._settledAt(j,e,t)}),(function(t){return n._settledAt(E,e,t)}))},t}();function K(t){return new $(this,t).promise}function Y(t){var e=this;return i(t)?new e((function(n,i){for(var o=t.length,r=0;r<o;r++)e.resolve(t[r]).then(n,i)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function X(t){var e=new this(O);return H(e,t),e}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(e){this[A]=q(),this._result=this._state=void 0,this._subscribers=[],O!==e&&("function"!=typeof e&&Z(),this instanceof t?V(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,i=n.constructor;return e(t)?n.then((function(e){return i.resolve(t()).then((function(){return e}))}),(function(e){return i.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();function nt(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var i=null;try{i=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===i&&!e.cast)return}t.Promise=et}return et.prototype.then=k,et.all=K,et.race=Y,et.resolve=P,et.reject=X,et._setScheduler=c,et._setAsap=u,et._asap=s,et.polyfill=nt,et.Promise=et,et}()},1873:function(t,e,n){var i=n(9325).Symbol;t.exports=i},1033:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},695:function(t,e,n){var i=n(8096),o=n(2428),r=n(6449),a=n(3656),s=n(361),c=n(7167),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=r(t),l=!n&&o(t),d=!n&&!l&&a(t),f=!n&&!l&&!d&&c(t),p=n||l||d||f,h=p?i(t.length,String):[],m=h.length;for(var v in t)!e&&!u.call(t,v)||p&&("length"==v||d&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},6547:function(t,e,n){var i=n(3360),o=n(5288),r=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];r.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||i(t,e,n)}},3360:function(t,e,n){var i=n(3243);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},2552:function(t,e,n){var i=n(1873),o=n(659),r=n(9350),a=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):r(t)}},7534:function(t,e,n){var i=n(2552),o=n(346);t.exports=function(t){return o(t)&&"[object Arguments]"==i(t)}},5083:function(t,e,n){var i=n(1882),o=n(7296),r=n(3805),a=n(7473),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,f=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!r(t)||o(t))&&(i(t)?f:s).test(a(t))}},4901:function(t,e,n){var i=n(2552),o=n(294),r=n(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return r(t)&&o(t.length)&&!!a[i(t)]}},8984:function(t,e,n){var i=n(5527),o=n(3650),r=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return o(t);var e=[];for(var n in Object(t))r.call(t,n)&&"constructor"!=n&&e.push(n);return e}},9302:function(t,e,n){var i=n(3488),o=n(6757),r=n(2865);t.exports=function(t,e){return r(o(t,e,i),t+"")}},9570:function(t,e,n){var i=n(7334),o=n(3243),r=n(3488),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:i(e),writable:!0})}:r;t.exports=a},8096:function(t){t.exports=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}},7301:function(t){t.exports=function(t){return function(e){return t(e)}}},1791:function(t,e,n){var i=n(6547),o=n(3360);t.exports=function(t,e,n,r){var a=!n;n||(n={});for(var s=-1,c=e.length;++s<c;){var u=e[s],l=r?r(n[u],t[u],u,n,t):void 0;void 0===l&&(l=t[u]),a?o(n,u,l):i(n,u,l)}return n}},5481:function(t,e,n){var i=n(9325)["__core-js_shared__"];t.exports=i},999:function(t,e,n){var i=n(9302),o=n(6800);t.exports=function(t){return i((function(e,n){var i=-1,r=n.length,a=r>1?n[r-1]:void 0,s=r>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(r--,a):void 0,s&&o(n[0],n[1],s)&&(a=r<3?void 0:a,r=1),e=Object(e);++i<r;){var c=n[i];c&&t(e,c,i,a)}return e}))}},3243:function(t,e,n){var i=n(6110),o=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},4840:function(t,e,n){var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=i},6110:function(t,e,n){var i=n(5083),o=n(392);t.exports=function(t,e){var n=o(t,e);return i(n)?n:void 0}},659:function(t,e,n){var i=n(1873),o=Object.prototype,r=o.hasOwnProperty,a=o.toString,s=i?i.toStringTag:void 0;t.exports=function(t){var e=r.call(t,s),n=t[s];try{t[s]=void 0;var i=!0}catch(t){}var o=a.call(t);return i&&(e?t[s]=n:delete t[s]),o}},392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var i=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&e.test(t))&&t>-1&&t%1==0&&t<n}},6800:function(t,e,n){var i=n(5288),o=n(4894),r=n(361),a=n(3805);t.exports=function(t,e,n){if(!a(n))return!1;var s=typeof e;return!!("number"==s?o(n)&&r(e,n.length):"string"==s&&e in n)&&i(n[e],t)}},7296:function(t,e,n){var i,o=n(5481),r=(i=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";t.exports=function(t){return!!r&&r in t}},5527:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},3650:function(t,e,n){var i=n(4335)(Object.keys,Object);t.exports=i},6009:function(t,e,n){t=n.nmd(t);var i=n(4840),o=e&&!e.nodeType&&e,r=o&&t&&!t.nodeType&&t,a=r&&r.exports===o&&i.process,s=function(){try{var t=r&&r.require&&r.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},4335:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},6757:function(t,e,n){var i=n(1033),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var r=arguments,a=-1,s=o(r.length-e,0),c=Array(s);++a<s;)c[a]=r[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=r[a];return u[e]=n(c),i(t,this,u)}}},9325:function(t,e,n){var i=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,r=i||o||Function("return this")();t.exports=r},2865:function(t,e,n){var i=n(9570),o=n(1811)(i);t.exports=o},1811:function(t){var e=Date.now;t.exports=function(t){var n=0,i=0;return function(){var o=e(),r=16-(o-i);if(i=o,r>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},7473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},6139:function(t,e,n){var i=n(6547),o=n(1791),r=n(999),a=n(4894),s=n(5527),c=n(5950),u=Object.prototype.hasOwnProperty,l=r((function(t,e){if(s(e)||a(e))o(e,c(e),t);else for(var n in e)u.call(e,n)&&i(t,n,e[n])}));t.exports=l},7334:function(t){t.exports=function(t){return function(){return t}}},5288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},3488:function(t){t.exports=function(t){return t}},2428:function(t,e,n){var i=n(7534),o=n(346),r=Object.prototype,a=r.hasOwnProperty,s=r.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},6449:function(t){var e=Array.isArray;t.exports=e},4894:function(t,e,n){var i=n(1882),o=n(294);t.exports=function(t){return null!=t&&o(t.length)&&!i(t)}},3656:function(t,e,n){t=n.nmd(t);var i=n(9325),o=n(9935),r=e&&!e.nodeType&&e,a=r&&t&&!t.nodeType&&t,s=a&&a.exports===r?i.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;t.exports=c},1882:function(t,e,n){var i=n(2552),o=n(3805);t.exports=function(t){if(!o(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},7167:function(t,e,n){var i=n(4901),o=n(7301),r=n(6009),a=r&&r.isTypedArray,s=a?o(a):i;t.exports=s},5950:function(t,e,n){var i=n(695),o=n(8984),r=n(4894);t.exports=function(t){return r(t)?i(t):o(t)}},9935:function(t){t.exports=function(){return!1}},6564:function(t,e,n){"use strict";var i=n(6599);t.exports=i},7174:function(t,e,n){"use strict";n(8980);var i=n(7015);t.exports=i("Array","findIndex")},3123:function(t,e,n){"use strict";n(4981)},4981:function(t,e,n){"use strict";var i=n(6564);t.exports=i},6925:function(t,e,n){"use strict";var i=n(7282),o=n(6823),r=TypeError;t.exports=function(t){if(i(t))return t;throw new r(o(t)+" is not a function")}},6469:function(t,e,n){"use strict";var i=n(8227),o=n(2360),r=n(4913).f,a=i("unscopables"),s=Array.prototype;void 0===s[a]&&r(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},8551:function(t,e,n){"use strict";var i=n(34),o=String,r=TypeError;t.exports=function(t){if(i(t))return t;throw new r(o(t)+" is not an object")}},9617:function(t,e,n){"use strict";var i=n(5397),o=n(5610),r=n(6198),a=function(t){return function(e,n,a){var s=i(e),c=r(s);if(0===c)return!t&&-1;var u,l=o(a,c);if(t&&n!=n){for(;c>l;)if((u=s[l++])!=u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},9213:function(t,e,n){"use strict";var i=n(6080),o=n(9504),r=n(7055),a=n(8981),s=n(6198),c=n(1469),u=o([].push),l=function(t){var e=1===t,n=2===t,o=3===t,l=4===t,d=6===t,f=7===t,p=5===t||d;return function(h,m,v,g){for(var b,y,_=a(h),w=r(_),x=s(w),S=i(m,v),k=0,P=g||c,A=e?P(h,x):n||f?P(h,0):void 0;x>k;k++)if((p||k in w)&&(y=S(b=w[k],k,_),t))if(e)A[k]=y;else if(y)switch(t){case 3:return!0;case 5:return b;case 6:return k;case 2:u(A,b)}else switch(t){case 4:return!1;case 7:u(A,b)}return d?-1:o||l?l:A}};t.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},7433:function(t,e,n){"use strict";var i=n(4376),o=n(3517),r=n(34),a=n(8227)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===s||i(e.prototype))||r(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},1469:function(t,e,n){"use strict";var i=n(7433);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},2195:function(t,e,n){"use strict";var i=n(9504),o=i({}.toString),r=i("".slice);t.exports=function(t){return r(o(t),8,-1)}},6955:function(t,e,n){"use strict";var i=n(2140),o=n(7282),r=n(2195),a=n(8227)("toStringTag"),s=Object,c="Arguments"===r(function(){return arguments}());t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=s(t),a))?n:c?r(e):"Object"===(i=r(e))&&o(e.callee)?"Arguments":i}},7740:function(t,e,n){"use strict";var i=n(9297),o=n(5031),r=n(7347),a=n(4913);t.exports=function(t,e,n){for(var s=o(e),c=a.f,u=r.f,l=0;l<s.length;l++){var d=s[l];i(t,d)||n&&i(n,d)||c(t,d,u(e,d))}}},6699:function(t,e,n){"use strict";var i=n(3724),o=n(4913),r=n(6980);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},6980:function(t){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6840:function(t,e,n){"use strict";var i=n(7282),o=n(4913),r=n(283),a=n(9433);t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:e;if(i(n)&&r(n,u,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9433:function(t,e,n){"use strict";var i=n(4576),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},3724:function(t,e,n){"use strict";var i=n(9039);t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4055:function(t,e,n){"use strict";var i=n(4576),o=n(34),r=i.document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},7015:function(t,e,n){"use strict";var i=n(4576),o=n(9504);t.exports=function(t,e){return o(i[t].prototype[e])}},8727:function(t){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2839:function(t,e,n){"use strict";var i=n(4576).navigator,o=i&&i.userAgent;t.exports=o?String(o):""},9519:function(t,e,n){"use strict";var i,o,r=n(4576),a=n(2839),s=r.process,c=r.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(i=l.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},6518:function(t,e,n){"use strict";var i=n(4576),o=n(7347).f,r=n(6699),a=n(6840),s=n(9433),c=n(7740),u=n(2796);t.exports=function(t,e){var n,l,d,f,p,h=t.target,m=t.global,v=t.stat;if(n=m?i:v?i[h]||s(h,{}):i[h]&&i[h].prototype)for(l in e){if(f=e[l],d=t.dontCallGetSet?(p=o(n,l))&&p.value:n[l],!u(m?l:h+(v?".":"#")+l,t.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(t.sham||d&&d.sham)&&r(f,"sham",!0),a(n,l,f,t)}}},9039:function(t){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6080:function(t,e,n){"use strict";var i=n(7476),o=n(6925),r=n(616),a=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:r?a(t,e):function(){return t.apply(e,arguments)}}},616:function(t,e,n){"use strict";var i=n(9039);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},9565:function(t,e,n){"use strict";var i=n(616),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},350:function(t,e,n){"use strict";var i=n(3724),o=n(9297),r=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=o(r,"name"),c=s&&"something"===function(){}.name,u=s&&(!i||i&&a(r,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},7476:function(t,e,n){"use strict";var i=n(2195),o=n(9504);t.exports=function(t){if("Function"===i(t))return o(t)}},9504:function(t,e,n){"use strict";var i=n(616),o=Function.prototype,r=o.call,a=i&&o.bind.bind(r,r);t.exports=i?a:function(t){return function(){return r.apply(t,arguments)}}},7751:function(t,e,n){"use strict";var i=n(4576),o=n(7282);t.exports=function(t,e){return arguments.length<2?(n=i[t],o(n)?n:void 0):i[t]&&i[t][e];var n}},5966:function(t,e,n){"use strict";var i=n(6925),o=n(4117);t.exports=function(t,e){var n=t[e];return o(n)?void 0:i(n)}},4576:function(t,e,n){"use strict";var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},9297:function(t,e,n){"use strict";var i=n(9504),o=n(8981),r=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},421:function(t){"use strict";t.exports={}},397:function(t,e,n){"use strict";var i=n(7751);t.exports=i("document","documentElement")},5917:function(t,e,n){"use strict";var i=n(3724),o=n(9039),r=n(4055);t.exports=!i&&!o((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},7055:function(t,e,n){"use strict";var i=n(9504),o=n(9039),r=n(2195),a=Object,s=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===r(t)?s(t,""):a(t)}:a},3706:function(t,e,n){"use strict";var i=n(9504),o=n(7282),r=n(7629),a=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(t){return a(t)}),t.exports=r.inspectSource},1181:function(t,e,n){"use strict";var i,o,r,a=n(8622),s=n(4576),c=n(34),u=n(6699),l=n(9297),d=n(7629),f=n(6119),p=n(421),h="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||d.state){var g=d.state||(d.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,i=function(t,e){if(g.has(t))throw new m(h);return e.facade=t,g.set(t,e),e},o=function(t){return g.get(t)||{}},r=function(t){return g.has(t)}}else{var b=f("state");p[b]=!0,i=function(t,e){if(l(t,b))throw new m(h);return e.facade=t,u(t,b,e),e},o=function(t){return l(t,b)?t[b]:{}},r=function(t){return l(t,b)}}t.exports={set:i,get:o,has:r,enforce:function(t){return r(t)?o(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=o(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}}}},4376:function(t,e,n){"use strict";var i=n(2195);t.exports=Array.isArray||function(t){return"Array"===i(t)}},7282:function(t){"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},3517:function(t,e,n){"use strict";var i=n(9504),o=n(9039),r=n(7282),a=n(6955),s=n(7751),c=n(3706),u=function(){},l=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=i(d.exec),p=!d.test(u),h=function(t){if(!r(t))return!1;try{return l(u,[],t),!0}catch(t){return!1}},m=function(t){if(!r(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,c(t))}catch(t){return!0}};m.sham=!0,t.exports=!l||o((function(){var t;return h(h.call)||!h(Object)||!h((function(){t=!0}))||t}))?m:h},2796:function(t,e,n){"use strict";var i=n(9039),o=n(7282),r=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===l||n!==u&&(o(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(r,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";t.exports=a},4117:function(t){"use strict";t.exports=function(t){return null==t}},34:function(t,e,n){"use strict";var i=n(7282);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},6395:function(t){"use strict";t.exports=!1},757:function(t,e,n){"use strict";var i=n(7751),o=n(7282),r=n(1625),a=n(7040),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&r(e.prototype,s(t))}},6198:function(t,e,n){"use strict";var i=n(8014);t.exports=function(t){return i(t.length)}},283:function(t,e,n){"use strict";var i=n(9504),o=n(9039),r=n(7282),a=n(9297),s=n(3724),c=n(350).CONFIGURABLE,u=n(3706),l=n(1181),d=l.enforce,f=l.get,p=String,h=Object.defineProperty,m=i("".slice),v=i("".replace),g=i([].join),b=s&&!o((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),_=t.exports=function(t,e,n){"Symbol("===m(p(e),0,7)&&(e="["+v(p(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?h(t,"name",{value:e,configurable:!0}):t.name=e),b&&n&&a(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=d(t);return a(i,"source")||(i.source=g(y,"string"==typeof e?e:"")),t};Function.prototype.toString=_((function(){return r(this)&&f(this).source||u(this)}),"toString")},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var i=+t;return(i>0?n:e)(i)}},2360:function(t,e,n){"use strict";var i,o=n(8551),r=n(6801),a=n(8727),s=n(421),c=n(397),u=n(4055),l=n(6119),d="prototype",f="script",p=l("IE_PROTO"),h=function(){},m=function(t){return"<"+f+">"+t+"</"+f+">"},v=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;g="undefined"!=typeof document?document.domain&&i?v(i):(e=u("iframe"),n="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):v(i);for(var o=a.length;o--;)delete g[d][a[o]];return g()};s[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[d]=o(t),n=new h,h[d]=null,n[p]=t):n=g(),void 0===e?n:r.f(n,e)}},6801:function(t,e,n){"use strict";var i=n(3724),o=n(8686),r=n(4913),a=n(8551),s=n(5397),c=n(1072);e.f=i&&!o?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),o=c(e),u=o.length,l=0;u>l;)r.f(t,n=o[l++],i[n]);return t}},4913:function(t,e,n){"use strict";var i=n(3724),o=n(5917),r=n(8686),a=n(8551),s=n(6969),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d="enumerable",f="configurable",p="writable";e.f=i?r?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var i=l(t,e);i&&i[p]&&(t[e]=n.value,n={configurable:f in n?n[f]:i[f],enumerable:d in n?n[d]:i[d],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},7347:function(t,e,n){"use strict";var i=n(3724),o=n(9565),r=n(8773),a=n(6980),s=n(5397),c=n(6969),u=n(9297),l=n(5917),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=c(e),l)try{return d(t,e)}catch(t){}if(u(t,e))return a(!o(r.f,t,e),t[e])}},8480:function(t,e,n){"use strict";var i=n(1828),o=n(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},3717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},1625:function(t,e,n){"use strict";var i=n(9504);t.exports=i({}.isPrototypeOf)},1828:function(t,e,n){"use strict";var i=n(9504),o=n(9297),r=n(5397),a=n(9617).indexOf,s=n(421),c=i([].push);t.exports=function(t,e){var n,i=r(t),u=0,l=[];for(n in i)!o(s,n)&&o(i,n)&&c(l,n);for(;e.length>u;)o(i,n=e[u++])&&(~a(l,n)||c(l,n));return l}},1072:function(t,e,n){"use strict";var i=n(1828),o=n(8727);t.exports=Object.keys||function(t){return i(t,o)}},8773:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},4270:function(t,e,n){"use strict";var i=n(9565),o=n(7282),r=n(34),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!r(s=i(n,t)))return s;if(o(n=t.valueOf)&&!r(s=i(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!r(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},5031:function(t,e,n){"use strict";var i=n(7751),o=n(9504),r=n(8480),a=n(3717),s=n(8551),c=o([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(s(t)),n=a.f;return n?c(e,n(t)):e}},7750:function(t,e,n){"use strict";var i=n(4117),o=TypeError;t.exports=function(t){if(i(t))throw new o("Can't call method on "+t);return t}},6119:function(t,e,n){"use strict";var i=n(5745),o=n(3392),r=i("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},7629:function(t,e,n){"use strict";var i=n(6395),o=n(4576),r=n(9433),a="__core-js_shared__",s=t.exports=o[a]||r(a,{});(s.versions||(s.versions=[])).push({version:"3.40.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE",source:"https://github.com/zloirock/core-js"})},5745:function(t,e,n){"use strict";var i=n(7629);t.exports=function(t,e){return i[t]||(i[t]=e||{})}},4495:function(t,e,n){"use strict";var i=n(9519),o=n(9039),r=n(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},5610:function(t,e,n){"use strict";var i=n(1291),o=Math.max,r=Math.min;t.exports=function(t,e){var n=i(t);return n<0?o(n+e,0):r(n,e)}},5397:function(t,e,n){"use strict";var i=n(7055),o=n(7750);t.exports=function(t){return i(o(t))}},1291:function(t,e,n){"use strict";var i=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},8014:function(t,e,n){"use strict";var i=n(1291),o=Math.min;t.exports=function(t){var e=i(t);return e>0?o(e,9007199254740991):0}},8981:function(t,e,n){"use strict";var i=n(7750),o=Object;t.exports=function(t){return o(i(t))}},2777:function(t,e,n){"use strict";var i=n(9565),o=n(34),r=n(757),a=n(5966),s=n(4270),c=n(8227),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!o(t)||r(t))return t;var n,c=a(t,l);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!o(n)||r(n))return n;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},6969:function(t,e,n){"use strict";var i=n(2777),o=n(757);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},2140:function(t,e,n){"use strict";var i={};i[n(8227)("toStringTag")]="z",t.exports="[object z]"===String(i)},6823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},3392:function(t,e,n){"use strict";var i=n(9504),o=0,r=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+r,36)}},7040:function(t,e,n){"use strict";var i=n(4495);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},8686:function(t,e,n){"use strict";var i=n(3724),o=n(9039);t.exports=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8622:function(t,e,n){"use strict";var i=n(4576),o=n(7282),r=i.WeakMap;t.exports=o(r)&&/native code/.test(String(r))},8227:function(t,e,n){"use strict";var i=n(4576),o=n(5745),r=n(9297),a=n(3392),s=n(4495),c=n(7040),u=i.Symbol,l=o("wks"),d=c?u.for||u:u&&u.withoutSetter||a;t.exports=function(t){return r(l,t)||(l[t]=s&&r(u,t)?u[t]:d("Symbol."+t)),l[t]}},8980:function(t,e,n){"use strict";var i=n(6518),o=n(9213).findIndex,r=n(6469),a="findIndex",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),i({target:"Array",proto:!0,forced:s},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r(a)},6599:function(t,e,n){"use strict";var i=n(7174);t.exports=i}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={id:i,loaded:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.loaded=!0,r.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";n(7428),n(6049),n(1502),n(9306),n(4025),n(4461),n(6730),n(2211),n(5992),n(6709),n(1597),jQuery(document).ready((function(){window.WPHB_Admin.init(),window.WPHB_Admin.notices.init()}))}()}();
//# sourceMappingURL=wphb-app.min.js.map

XYZEAZ - Cyber Alpha Wolf © All Rights Reserved