ב הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותشسdggרות הל555ה התafhgfh
במסgרות ה gh//شی הוא חיבור של הרב יהושע בועז שתוכנו מראי מקומות למקורותהתנדaghhhhו12ין יעל, המעציfghfghfע
/
www-data
/
sites
/
naresh-newwordpress
/
wp-content
/
plugins
/
hummingbird-performance
/
admin
/
assets
/
js
/
Upload FileeE
HOME
!function(){var t={9576:function(t,e,n){var r=n(8891);!function(){"use strict";var t=!1;window.wphbMixPanel={init:function(){void 0!==wphb.mixpanel&&wphb.mixpanel.enabled&&(r.init("5d545622e3a040aca63f2089b0e6cae7",{opt_out_tracking_by_default:!wphb.mixpanel.enabled,ip:!1}),r.register({plugin:wphb.mixpanel.plugin,plugin_type:wphb.mixpanel.plugin_type,plugin_version:wphb.mixpanel.plugin_version,wp_version:wphb.mixpanel.wp_version,wp_type:wphb.mixpanel.wp_type,locale:wphb.mixpanel.locale,active_theme:wphb.mixpanel.active_theme,php_version:wphb.mixpanel.php_version,mysql_version:wphb.mixpanel.mysql_version,server_type:wphb.mixpanel.server_type}))},optIn:function(){wphb.mixpanel.enabled=!0,this.init(),r.opt_in_tracking()},optOut:function(){r.opt_out_tracking()},deactivate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.track("plugin_deactivate",{reason:t,feedback:e})},enableFeature:function(t){this.track("plugin_feature_activate",{feature:t})},trackDelayJSUpsell:function(t){this.track("js_delay_upsell",t)},trackCriticalCSSUpsell:function(e){t||(t=!0,this.track("critical_css_upsell",e))},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)},trackAOUpdated:function(t){var e=t.Mode.charAt(0).toUpperCase()+t.Mode.slice(1);t.Mode=e,this.track("ao_updated",t)},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&&(r.has_opted_out_tracking()||r.track(t,e))}}}()},4743:function(t,e,n){"use strict";n.r(e);var r=n(4218),i=n(3265),o=n(4814);function s(t){return s="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},s(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===s(o)?o:String(o)),r)}var i,o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},c.apply(this,arguments)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(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)}(this,n)}}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d,f=function(t){!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&&u(t,e)}(d,t);var e,n,o,s=l(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),s.apply(this,arguments)}return e=d,(n=[{key:"step",value:function(t){var e=this;c(p(d.prototype),"step",this).call(this,t),this.currentStep++,t>0?r.Z.advanced.clearOrphanedBatch(3e3).then((function(t){var n=1e3;void 0!==t.highCPU&&t.highCPU?(n=1e4,document.getElementById("site-health-orphanned-speed").classList.remove("sui-hidden")):document.getElementById("site-health-orphanned-speed").classList.add("sui-hidden"),window.setTimeout((function(){e.updateProgressBar(e.getProgress()),e.step(e.totalSteps-e.currentStep)}),n)})):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(){c(p(d.prototype),"onFinish",this).call(this),window.SUI.closeModal(),document.getElementById("count-ao-orphaned").innerHTML="0",window.WPHB_Admin.notices.show((0,i.K)("successAoOrphanedPurge"))}}])&&a(e.prototype,n),o&&a(e,o),Object.defineProperty(e,"prototype",{writable:!1}),d}(o.Z);d=jQuery,WPHB_Admin.advanced={module:"advanced",init:function(){var t=this,e=this,n=d("#wphb-system-info-dropdown"),o=window.location.hash;if(d("#wphb-db-delete-all, .wphb-db-row-delete").on("click",(function(t){t.preventDefault(),e.showModal(t.target.dataset.entries,t.target.dataset.type)})),d('form[id="advanced-general-settings"], form[id="advanced-lazy-settings"]').on("submit",(function(t){t.preventDefault();var e=d(this).find(".sui-button-blue");e.addClass("sui-button-onload-text"),r.Z.advanced.saveSettings(d(this).serialize(),t.target.id).then((function(t){e.removeClass("sui-button-onload-text"),void 0!==t&&t.success?WPHB_Admin.notices.show():WPHB_Admin.notices.show((0,i.K)("errorSettingsUpdate"),"error")}))})),d("#wphb-system-info-php").removeClass("sui-hidden"),o){var s=o.replace("#","");d(".wphb-sys-info-table").addClass("sui-hidden"),d("#wphb-system-info-"+s).removeClass("sui-hidden"),n.val(s).trigger("sui:change")}n.on("change",(function(t){t.preventDefault(),d(".wphb-sys-info-table").addClass("sui-hidden"),d("#wphb-system-info-"+d(this).val()).removeClass("sui-hidden"),location.hash=d(this).val()})),d("#wphb-adv-paste-value").on("click",(function(t){t.preventDefault();var e=d('textarea[name="url_strings"]');""===e.val()?e.val(e.attr("placeholder")):e.val(e.val()+"\n"+e.attr("placeholder"))}));var a=document.getElementById("cart_fragments");a&&a.addEventListener("change",(function(t){t.preventDefault(),d("#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"),p=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"))}))},h=0;h<c.length;h++)p(h);d('input[id="lazy_load"]').on("change",(function(){d("#wphb-lazy-load-comments-wrap, #sui-upsell-gravtar-caching").toggle()})),!0===window.location.search.includes("view=lazy")&&this.createPickers();var m=document.getElementById("btn-cache-purge");m&&m.addEventListener("click",(function(){return t.purgeDb()}));var g=document.getElementById("btn-minify-purge");g&&g.addEventListener("click",(function(){return t.purgeDb("minify")}));var _=document.getElementById("site-health-orphaned-clear");return _&&_.addEventListener("click",(function(){var t=document.getElementById("count-ao-orphaned").innerHTML,e=Math.ceil(parseInt(t)/3e3);new f(e,0).start()})),this},showModal:function(t,e){var n,r=d("#wphb-database-cleanup-modal"),o='<span class="sui-icon-trash" aria-hidden="true"></span>';"drafts"===e?(n=(0,i.K)("dbDeleteDrafts"),o+=(0,i.K)("dbDeleteDraftsButton")):(n=(0,i.K)("db_delete")+" "+t+" "+(0,i.K)("db_entries")+"? "+(0,i.K)("db_backup"),o+=(0,i.K)("dbDeleteButton")),r.find("p").html(n),r.find(".sui-button-red").attr("data-type",e).html(o),window.SUI.openModal("wphb-database-cleanup-modal","wpbody-content","wphb-clear-database-confirm",!1)},confirmDelete:function(t){var e;window.SUI.closeModal();var n=d(".box-advanced-db .sui-box-footer");e="all"===t?n:d(".box-advanced-db .wphb-border-frame").find("div[data-type="+t+"]");var o=d("#wphb-db-delete-all"),s=e.find(".wphb-db-row-delete");o.addClass("sui-button-onload-text"),s.addClass("sui-button-onload"),r.Z.advanced.deleteSelectedData(t).then((function(t){for(var e in o.removeClass("sui-button-onload-text"),s.removeClass("sui-button-onload"),t.left)if("total"===e){var r=(0,i.K)("deleteAll")+" ("+t.left[e]+")";n.find(".wphb-db-delete-all").html(r),n.find("#wphb-db-delete-all").attr("data-entries",t.left[e])}else{var a=d(".box-advanced-db div[data-type="+e+"]");a.find(".wphb-db-items").html(t.left[e]),a.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"),o.removeClass("sui-button-onload-text"),s.removeClass("sui-button-onload")}))},createPickers:function(){var t=d(".sui-colorpicker-input");t.wpColorPicker({change:function(t,e){var n=d(this);n.val()!==e.color.toCSS()&&n.val(e.color.toCSS()).trigger("change")}}),t.hasClass("wp-color-picker")&&t.each((function(){var t=d(this),e=t.closest(".sui-colorpicker-wrap"),n=e.find(".sui-colorpicker-value span[role=button]"),r=e.find(".sui-colorpicker-value"),i=t.closest(".wp-picker-container"),o=i.find(".wp-color-result");t.on("change",(function(){n.find("span").css({"background-color":o.css("background-color")}),r.find("input").val(t.val())})),e.find(".sui-button, span[role=button]").on("click",(function(t){o.click(),t.preventDefault(),t.stopPropagation()})),r.find("button").on("click",(function(e){i.find(".wp-picker-clear").click(),r.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"),r.Z.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,i.K)(n))})))}}},6232:function(t,e,n){"use strict";n.r(e);var r=n(4218),i=n(3265),o=n(4814);function s(t){return s="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},s(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===s(o)?o:String(o)),r)}var i,o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},c.apply(this,arguments)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(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)}(this,n)}}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d,f=function(t){!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&&u(t,e)}(s,t);var e,n,i,o=l(s);function s(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),o.apply(this,arguments)}return e=s,(n=[{key:"step",value:function(t){var e=this;if(c(p(s.prototype),"step",this).call(this,t),this.currentStep++,t>0){var n=20*(this.totalSteps-t);r.Z.caching.clearCacheBatch(20,n).then((function(){e.updateProgressBar(e.getProgress()),e.step(e.totalSteps-e.currentStep)}))}else this.onFinish()}},{key:"onStart",value:function(){var t=this;return r.Z.common.call("wphb_get_network_sites").then((function(e){t.totalSteps=Math.ceil(parseInt(e)/20)}))}},{key:"onFinish",value:function(){c(p(s.prototype),"onFinish",this).call(this),location.reload()}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),s}(o.Z),h=f;d=jQuery,WPHB_Admin.caching={module:"caching",init:function(){var t=this,e=this,n=window.location.hash,o=d('form[id="page_cache-form"]'),s=d('form[id="rss-form"]'),a=d('form[id="settings-form"]');this.scanner=new h(1,0),n&&d(n).length&&setTimeout((function(){d("html, body").animate({scrollTop:d(n).offset().top},"slow")}),300),o.on("submit",(function(t){t.preventDefault(),e.saveSettings("page_cache",o)})),d("#wphb-clear-cache").on("click",(function(t){t.preventDefault(),e.clearCache(t.target)})),d("#wphb-disable-fastcgi").on("click",(function(t){t.preventDefault(),t.target.classList.add("sui-button-onload-text"),r.Z.caching.disableFastCGI().then((function(){return window.location.reload()}))}));var c=document.getElementById("clear_interval");c&&c.addEventListener("change",(function(t){t.preventDefault(),d("#page_cache_clear_interval").toggle()}));var u=document.getElementById("wphb-cancel-cache-preload");u&&u.addEventListener("click",(function(t){t.preventDefault(),r.Z.common.call("wphb_preload_cancel").then((function(){window.location.reload()}))}));var l=document.getElementById("preload");l&&l.addEventListener("change",(function(t){t.preventDefault(),d("#page_cache_preload_type").toggle()})),d("#wphb-remove-advanced-cache").on("click",(function(t){t.preventDefault(),r.Z.common.call("wphb_remove_advanced_cache").then((function(){return location.reload()}))})),d("#configure-link").on("click",(function(t){t.preventDefault(),d("html, body").animate({scrollTop:d("#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 p=document.getElementById("redis-settings-form");p&&p.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,i=document.getElementById("redis-port").value,o=document.getElementById("redis-password").value,s=document.getElementById("redis-db").value,a=document.getElementById("redis-connected").value;i||(i=6379),r.Z.caching.redisSaveSettings(n,i,o,s).then((function(t){if(void 0!==t&&t.success)window.location.search+="1"===a?"&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 f=document.getElementById("object-cache");f&&f.addEventListener("change",(function(t){t.target.checked?wphbMixPanel.enableFeature("Redis Cache"):wphbMixPanel.disableFeature("Redis Cache"),r.Z.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,i.K)("errorSettingsUpdate"),"error")}))}));var m=document.getElementById("clear-redis-cache");m&&m.addEventListener("click",(function(){m.classList.add("sui-button-onload-text"),r.Z.common.call("wphb_redis_cache_purge").then((function(){m.classList.remove("sui-button-onload-text"),WPHB_Admin.notices.show((0,i.K)("successRedisPurge"))}))}));var g=document.getElementById("redis-disconnect");return g&&g.addEventListener("click",(function(e){e.preventDefault(),t.redisDisable()})),a.on("submit",(function(t){t.preventDefault();var n=d('input[name="detection"]:checked',a).val();"auto"!==n&&"none"!==n||d(".wphb-notice.notice-info").slideUp(),e.saveSettings("other_cache",a)})),this},redisDisable:function(){r.Z.common.call("wphb_redis_disconnect").then((function(){window.location.search+="&updated=redis-disconnect"}))},saveSettings:function(t,e){var n=e.find("button.sui-button");n.addClass("sui-button-onload-text"),r.Z.caching.saveSettings(t,e.serialize()).then((function(e){n.removeClass("sui-button-onload-text"),void 0!==e&&e.success?"page_cache"===t?window.location.search+="&updated=true":WPHB_Admin.notices.show():WPHB_Admin.notices.show((0,i.K)("errorSettingsUpdate"),"error")}))},clearCache:function(t){var e=t.dataset.module;t.classList.add("sui-button-onload-text"),r.Z.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?(d(".box-caching-summary span.sui-summary-large").html("0"),WPHB_Admin.notices.show((0,i.K)("successPageCachePurge"))):"gravatar"===e&&WPHB_Admin.notices.show((0,i.K)("successGravatarPurge")):WPHB_Admin.notices.show((0,i.K)("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()}}},8040:function(t,e,n){"use strict";n.r(e);var r,i=n(4218),o=n(3265);function s(t){return s="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},s(t)}r=jQuery,WPHB_Admin.cloudflare={module:"cloudflare",init:function(){return wphb.cloudflare.is.connected&&r('input[type="submit"].cloudflare-clear-cache').on("click",function(t){t.preventDefault(),this.purgeCache.apply(r(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 i=document.getElementById("cloudflare-zone-save");i&&i.addEventListener("click",(function(e){e.preventDefault(),t.connect("cloudflare-zone-save")}));var o=document.getElementById("cloudflare-show-key-help");o&&o.addEventListener("click",(function(e){e.preventDefault(),t.toggleHelp()}));var s=document.getElementById("cloudflare-connect-steps");s&&s.addEventListener("click",(function(e){e.preventDefault(),t.toggleHelp()})),r('input[name="cf_connection_type"]').on("change",(function(){t.hideHelp(),t.switchLabel()})),r("form#cloudflare-credentials input").on("keyup",(function(){var t=!0;r("form#cloudflare-credentials input").each((function(){""!==r(this).val()&&(t=!1)})),r("#cloudflare-connect-save").prop("disabled",t)}))},purgeCache:function(){this.attr("disabled",!0),i.Z.common.call("wphb_cloudflare_purge_cache").then((function(){WPHB_Admin.notices.show((0,o.K)("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",r=document.getElementById("api-"+n+"-form-field");r.classList.remove("sui-form-field-error");var o=document.getElementById("error-api-"+n);o.innerHTML="",o.style.display="none";var a=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");i.Z.cloudflare.connect(a,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.location.reload()})).catch((function(t){void 0!==t.response&&s(t.response.data)&&void 0!==t.response.data.code?400!==t.response.data.code&&403!==t.response.data.code||(r.classList.add("sui-form-field-error"),o.innerHTML=t.message,o.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"),i.Z.common.call("wphb_cloudflare_recheck_zones").then((function(t){void 0!==t&&void 0!==t.zones?WPHB_Admin.cloudflare.populateSelectWithZones(t.zones):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(){r("#cloudflare-key-how-to").addClass("sui-hidden"),r("#cloudflare-token-how-to").addClass("sui-hidden"),r("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]}}},3823:function(t,e,n){"use strict";n.r(e);var r,i=n(4218);r=jQuery,WPHB_Admin.dashboard={module:"dashboard",init:function(){r(".wphb-performance-report-item").on("click",(function(){var t=r(this).data("performance-url");t&&(location.href=t)}));var t=document.getElementById("clear-cache-modal-button");return t&&t.addEventListener("click",this.clearCache),r("#view_delay_dashboard").on("change",(function(){var t=r(this).is(":checked");i.Z.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()}))})),this},clearCache:function(){var t=this;this.classList.toggle("sui-button-onload-text");for(var e=document.querySelectorAll('input[type="checkbox"]'),n=[],r=0;r<e.length;r++)!1!==e[r].checked&&n.push(e[r].dataset.module);i.Z.common.clearCaches(n).then((function(e){t.classList.toggle("sui-button-onload-text"),SUI.closeModal(),WPHB_Admin.notices.show(e.message)}))},hideUpgradeSummary:function(){window.SUI.closeModal(),i.Z.common.call("wphb_hide_upgrade_summary")}}},8060:function(t,e,n){"use strict";n.r(e);var r=n(4218),i=n(3265);n(8891);!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(),r.Z.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").on("click",(function(){wphbMixPanel.track("plugin_scan_started",{score_mobile_previous:(0,i.K)("previousScoreMobile"),score_desktop_previous:(0,i.K)("previousScoreDesktop")})}))},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 i=document.getElementById("wphb-floating-http2-info");i&&i.addEventListener("click",(function(e){e.preventDefault(),r.Z.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,i.K)("successUpdate"));var r={type:e,dismiss:{show:!1,label:(0,i.K)("dismissLabel"),tooltip:(0,i.K)("dismissLabel")},icon:"info"};n||(r.dismiss.show=!0),window.SUI.openNotice("wphb-ajax-update-notice","<p>"+t+"</p>",r)},dismiss:function(t){var e=t.closest(".sui-notice").getAttribute("id");r.Z.common.dismissNotice(e),window.SUI.closeNotice(e)},dismissCloudflareNotice:function(e){e.preventDefault(),r.Z.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)},7026:function(t,e,n){"use strict";n.r(e);var r=n(4218),i=n(3265);function o(t){return o="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},o(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,s=void 0,s=function(t,e){if("object"!==o(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===o(s)?s:String(s)),r)}var i,s}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},a.apply(this,arguments)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===o(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)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var p,d=function(t){!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&&c(t,e)}(d,t);var e,n,o,p=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.apply(this,arguments)}return e=d,(n=[{key:"step",value:function(t){var e=this;a(l(d.prototype),"step",this).call(this,t),t>=0?r.Z.minification.checkStep(this.currentStep).then((function(){t-=1,e.updateProgressBar(e.getProgress()),e.step(t)})):r.Z.minification.finishCheck().then((function(t){e.onFinish(t)}))}},{key:"cancel",value:function(){a(l(d.prototype),"cancel",this).call(this),r.Z.minification.cancelScan().then((function(){window.location.href=(0,i.R)("minification")}))}},{key:"onStart",value:function(){return r.Z.minification.startCheck()}},{key:"onFinish",value:function(t){a(l(d.prototype),"onFinish",this).call(this),void 0!==t.assets_msg&&(document.getElementById("assetsFound").innerHTML=t.assets_msg),window.SUI.closeModal(),window.SUI.openModal("wphb-assets-modal","wpbody-content")}}])&&s(e.prototype,n),o&&s(e,o),Object.defineProperty(e,"prototype",{writable:!1}),d}(n(4814).Z),f=d;n(8891);p=jQuery,WPHB_Admin.minification={module:"minification",$checkFilesResultsContainer:null,checkURLSList:null,checkedURLS:0,init:function(){var t=this;this.scanner=new f(wphb.minification.get.totalSteps,wphb.minification.get.currentScanStep),p("#check-files").on("click",(function(t){t.preventDefault(),p(document).trigger("check-files")})),p(document).on("check-files",(function(){window.SUI.openModal("check-files-modal","wpbody-content","check-files-modal"),p(this).attr("disabled",!0),t.scanner.start()}));var e=p("input[type=checkbox][name=use_cdn]");e.on("change",(function(){p("#cdn_file_exclude").toggleClass("sui-hidden");var t=p(this).is(":checked");e.each((function(){this.checked=t})),r.Z.minification.toggleCDN(t).then((function(){WPHB_Admin.notices.show()}))})),p("input[type=checkbox][name=delay_js]").on("change",(function(){p("#delay_js_file_exclude").toggleClass("sui-hidden")})),p("input[type=checkbox][name=debug_log]").on("change",(function(){var t=p(this).is(":checked");r.Z.minification.toggleLog(t).then((function(){WPHB_Admin.notices.show(),t?p(".wphb-logging-box").show():p(".wphb-logging-box").hide()}))})),p("#wphb-minification-tools-form").on("submit",(function(t){t.preventDefault();var e=p(this).find(".spinner");e.addClass("visible"),r.Z.minification.saveCriticalCss(p(this).serialize()).then((function(t){if(e.removeClass("visible"),void 0!==t&&t.success){var n=new Event("reloadSummary");document.getElementById("wphb-minification-tools-form").dispatchEvent(n),t.is_delay_value_updated&&window.wphbMixPanel.trackDelayJSEvent({update_type:t.delay_js?"activate":"deactivate",Location:"eo_settings",Timeout:t.delay_js_timeout,"Excluded Files":t.delay_js_exclude?"yes":"no"}),WPHB_Admin.notices.show(t.message)}else WPHB_Admin.notices.show(t.message,"error")}))}));var n=document.getElementById("file_path");null!==n&&(n.onchange=function(t){t.preventDefault(),r.Z.minification.updateAssetPath(p(this).val()).then((function(t){t.message?WPHB_Admin.notices.show(t.message,"error"):WPHB_Admin.notices.show()}))}),p("#wphb-network-ao").on("click",(function(){p("#wphb-network-border-frame").toggleClass("sui-hidden")})),p("#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&&p(".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")})),p("#wphb-ao-network-settings").on("click",(function(t){t.preventDefault();var e=p(".sui-box-footer").find(".spinner");e.addClass("visible");var n=p("#ao-network-settings-form").serialize();r.Z.minification.saveNetworkSettings(n).then((function(t){e.removeClass("visible"),void 0!==t&&t.success?WPHB_Admin.notices.show():WPHB_Admin.notices.show((0,i.K)("errorSettingsUpdate"),"error")}))})),p("#wphb-ao-settings-update").on("click",(function(e){e.preventDefault();var n=p(".sui-box-footer").find(".spinner");n.addClass("visible");var i=t.getMultiSelectValues("cdn_exclude");r.Z.minification.updateExcludeList(JSON.stringify(i)).then((function(){n.removeClass("visible"),WPHB_Admin.notices.show()}))}));var o=document.getElementById("manual-ao-hdiw-modal-expand");o&&(o.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 a=document.getElementById("automatic-ao-hdiw-modal-expand");a&&(a.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 c=document.getElementById("automatic-ao-hdiw-modal-collapse");c&&(c.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 u=document.getElementById("hdw-auto-trigger-label");u&&u.addEventListener("click",(function(){window.SUI.replaceModal("automatic-ao-hdiw-modal-content","wphb-basic-hdiw-link")}));var l=document.getElementById("hdw-manual-trigger-label");return l&&l.addEventListener("click",(function(){window.SUI.replaceModal("manual-ao-hdiw-modal-content","wphb-basic-hdiw-link")})),this},hbTriggerDelayJsModal:function(t,e){var n=document.getElementById("delay-js-non-pro-member-try-pro");n&&(n.setAttribute("href",t),n.setAttribute("data-location",e));var r=document.getElementById("delay-js-non-pro-member-connect");r&&r.setAttribute("data-location",e);var i=document.getElementById("delay-js-non-pro-member-dismiss-button");i&&i.setAttribute("data-location",e),window.SUI.openModal("delay-js-non-pro-member-modal","wpbody-content")},hbTrackDelayMPEvent:function(t){window.SUI.closeModal(),window.wphbMixPanel.trackDelayJSUpsell({"Modal Action":t.dataset.action,Location: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),r.Z.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,i.R)("minification")}))},goToSettings:function(){window.SUI.closeModal(),r.Z.minification.toggleCDN(p("input#enable_cdn").is(":checked")).then((function(){window.location.href=(0,i.R)("minification")}))},getMultiSelectValues:function(t){for(var e=p("#"+t).find(":selected"),n={scripts:[],styles:[]},r=0;r<e.length;++r)n[e[r].dataset.type].push(e[r].value);return n},skipUpgrade:function(){r.Z.common.call("wphb_ao_skip_upgrade").then((function(){window.location.href=(0,i.R)("minification")}))},doUpgrade:function(){r.Z.common.call("wphb_ao_do_upgrade").then((function(){window.location.href=(0,i.R)("minification")}))},purgeOrphanedData:function(){var t=document.getElementById("count-ao-orphaned").innerHTML;r.Z.advanced.clearOrphanedBatch(t).then((function(){window.location.reload()}))}}},153:function(t,e,n){"use strict";n.r(e);n(2414);var r,i=n(4218),o=n(3265);function s(t){return s="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},s(t)}function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function p(t,e,n,i){var o=e&&e.prototype instanceof h?e:h,s=Object.create(o.prototype),a=new P(i||[]);return r(s,"_invoke",{value:S(t,n,a)}),s}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=p;var f={};function h(){}function m(){}function g(){}var _={};l(_,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(j([])));y&&y!==e&&n.call(y,o)&&(_=y);var b=g.prototype=h.prototype=Object.create(_);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function i(r,o,a,c){var u=d(t[r],t,o);if("throw"!==u.type){var l=u.arg,p=l.value;return p&&"object"==s(p)&&n.call(p,"__await")?e.resolve(p.__await).then((function(t){i("next",t,a,c)}),(function(t){i("throw",t,a,c)})):e.resolve(p).then((function(t){l.value=t,a(l)}),(function(t){return i("throw",t,a,c)}))}c(u.arg)}var o;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){i(t,n,e,r)}))}return o=o?o.then(r,r):r()}})}function S(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var a=x(s,n);if(a){if(a===f)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function x(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=d(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,f;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function j(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=g,r(b,"constructor",{value:g,configurable:!0}),r(g,"constructor",{value:m,configurable:!0}),m.displayName=l(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(k.prototype),l(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var s=new k(p(e,n,r,i),o);return t.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},w(b),l(b,u,"Generator"),l(b,o,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=j,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return s.type="throw",s.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var a=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},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),f},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),E(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:j(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function c(t,e,n,r,i,o,s){try{var a=t[o](s),c=a.value}catch(t){return void n(t)}a.done?e(c):Promise.resolve(c).then(r,i)}r=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,r(".wphb-disable-notification").on("click",this.disable),r(".wphb-enable-notification").on("click",(function(t){return e.renderTemplate(t,"add")})),r(".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=r('button.wphb-configure-notification[data-id="'+t[0]+'"][data-type="'+t[1]+'"]');0===e.length&&(e=r('.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 i=this.moduleData[this.settings.type];i.hasOwnProperty(this.settings.module)&&((i=i[this.settings.module]).hasOwnProperty("schedule")&&(this.settings.schedule=i.schedule),i.hasOwnProperty("settings")&&(this.settings[this.settings.module]=i.settings),i.hasOwnProperty("recipients")&&(this.settings.recipients=i.recipients,this.exclude=i.recipients.reduce((function(t,e){return 0<e.id&&t.push(parseInt(e.id)),t}),[])))}this.loadUsers();var o=WPHB_Admin.notifications.template(e+"-notifications-content")(this.settings);o&&(r("#notification-modal").html(o),this.initSUI(),this.mapActions(),"edit"===e?(this.edit=!0,this.addSelections()):this.toggleUserNotice(),SUI.openModal("notification-modal",r(this)))},loadUsers:function(){var t=this,e=this;i.Z.notifications.getUsers(this.exclude).then((function(n){if(void 0!==n){var i=0;n.forEach((function(t){e.addToUsersList(t,0==i++)})),t.fixRecipientCSS(r("#modal-wp-user-list"))}})).catch((function(t){window.console.log(t)}))},processScheduleSettings:function(){if("uptime"===this.settings.module&&"notifications"===this.settings.type){var t=r("select#report-threshold");this.settings.schedule.threshold=t.val()}else{var e=r('input[name="report-frequency"]:checked');this.settings.schedule={frequency:e.val(),time:r("select#report-time").val(),weekDay:r("select#report-day").val(),monthDay:r("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=r("input#revisions").is(":checked"),e=r("input#drafts").is(":checked"),n=r("input#trash").is(":checked"),i=r("input#spam").is(":checked"),o=r("input#trashComment").is(":checked"),s=r("input#expiredTransients").is(":checked"),a=r("input#transients").is(":checked");this.settings.database={revisions:t,drafts:e,trash:n,spam:i,trashComment:o,expiredTransients:s,transients:a}}}else{var c=r("input#show_ping").is(":checked");this.settings.uptime={showPing:c}}else{var u=r('input[name="report-type"]:checked').val(),l=r("input#metrics").is(":checked"),p=r("input#audits").is(":checked"),d=r("input#field-data").is(":checked");this.settings.performance={device:u,metrics:l,audits:p,fieldData:d}}},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(),i.Z.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(),r("#add-recipient-button").on("click",(function(){t.handleAddButtonClick()})),r('input[name="report-frequency"]').on("change",this.handleFrequencySelect)},addSelections:function(){r("#report-time").val(this.settings.schedule.time).trigger("change"),7===this.settings.schedule.frequency&&r("#report-day").val(this.settings.schedule.weekDay).trigger("change"),30===this.settings.schedule.frequency&&r("#report-day-month").val(this.settings.schedule.monthDay).trigger("change"),r("#report-threshold").val(this.settings.schedule.threshold).trigger("change")},initSUI:function(){r(".sui-select").each((function(){var t=r(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(),r(".sui-side-tabs label.sui-tab-item input").each((function(){SUI.sideTabs(this)}))},handleFrequencySelect:function(){var t=r(this).val(),e=r(".schedule-box"),n=e.find('[data-type="week"]'),i=e.find('[data-type="month"]');n.toggleClass("sui-hidden","30"===t||"1"===t),i.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),i.Z.notifications.disable(t,e).then((function(){window.location.search+="&status=disabled"})).catch((function(t){window.console.log(t)}))}},toggleAddButton:function(){var t=r('#notifications-invite-users-content input[id^="recipient-"]');t.on("keyup",(function(){var e=!1;t.each((function(){""===r(this).val()&&(e=!0)})),e?r("#add-recipient-button").attr("disabled","disabled"):r("#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=r("input#recipient-name"),o=r("input#recipient-email"),s=r("#error-recipient-email"),a=this.sanitizeString(n.val()),c=r("#error-recipient-name");if(""===a)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"),i.Z.notifications.getAvatar(o.val()).then((function(r){s.html(""),s.parents().removeClass("sui-form-field-error");var i={name:a,email:o.val(),role:"",avatar:r,id:0};t.confirmSubscription(i).then((function(r){void 0!==r&&(i.is_pending=r.pending,i.is_subscribed=r.subscribed,i.is_can_resend_confirmation=r.canResend),t.addUser(i,"email"),n.val("").trigger("keyup"),o.val("").trigger("keyup"),e.classList.remove("sui-button-onload-text")}))})).catch((function(t){s.html(t),s.parents().addClass("sui-form-field-error"),e.classList.remove("sui-button-onload-text")}))},initUserSelects:function(){var t=r("#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=a().mark((function e(){return a().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",i.Z.notifications.sendConfirmationEmail(t.name,t.email));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function s(t){c(o,r,i,s,a,"next",t)}function a(t){c(o,r,i,s,a,"throw",t)}s(void 0)}))})()},resendInvite:function(t,e){var n=r(this);n.attr("disabled","disabled"),i.Z.notifications.resendConfirmationEmail(t,e).then((function(t){var e=r(".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=r("#modal-"+e+"-recipients-list"),i=(0,o.K)("removeRecipient"),s=""===t.role?t.email:t.role,a="";void 0!==t.is_pending&&(a=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"===a||"unsubscribed"===a){var l=(0,o.K)("awaitingConfirmation"),p=(0,o.K)("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(p,'"\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 d='\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(a,'">').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(s,"</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(i,'"\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(d),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=r("#modal-wp-user-list"),i=e?"sui-tooltip-bottom-right":"sui-tooltip-top-right",s='\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(i,'"\n\t\t\t\t\t\tdata-tooltip="').concat((0,o.K)("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(s),this.toggleRecipientList(n)},removeUser:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"user",o=r("#modal-"+i+"-recipients-list"),s='.sui-recipient[data-email="'+e+'"]',a=o.find(s);a.remove(),"user"===i&&((n=this.exclude.indexOf(t))>-1&&this.exclude.splice(n,1),this.returnToList(a)),(n=this.settings.recipients.findIndex((function(n){return t===parseInt(n.id)&&e===n.email})))>-1&&this.settings.recipients.splice(n,1),this.toggleRecipientList(o)},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 i=r("#modal-wp-user-list"),o='.sui-recipient[data-email="'+t.email+'"]';i.find(o).remove(),e.fixRecipientCSS(i),e.toggleRecipientList(i,!1)}))},returnToList:function(t){var e=r("#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")},i="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",i).attr("data-tooltip",(0,o.K)("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=r(".notifications-recipients-notice"),n=r("#notification-modal .sui-button.sui-button-blue"),i=r(".notification-next-buttons"),s=(0,o.K)("noRecipients");t?s=(0,o.K)("recipientExists"):this.edit&&(s=(0,o.K)("noRecipientDisable")),e.find("p").html(s),t?(e.removeClass("sui-hidden"),setTimeout((function(){return e.addClass("sui-hidden")}),3e3)):0===this.settings.recipients.length?(this.edit||(n.attr("disabled","disabled"),i.attr("disabled","disabled")),e.removeClass("sui-hidden")):(n.attr("disabled",!1),i.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(i){return _.templateSettings=n,(e=e||_.template(r("#"+t).html()))(i)}}))},1082:function(t,e,n){"use strict";n.r(e);var r=n(4218),i=n(4814),o=n(3265);function s(t){return s="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},s(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(i=r.key,o=void 0,o=function(t,e){if("object"!==s(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===s(o)?o:String(o)),r)}var i,o}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},c.apply(this,arguments)}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===s(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)}(this,n)}}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var d,f=function(t){!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&&u(t,e)}(d,t);var e,n,i,s=l(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),s.apply(this,arguments)}return e=d,(n=[{key:"step",value:function(t){var e=this;c(p(d.prototype),"step",this).call(this,t),this.currentStep++,this.updateProgressBar(this.getProgress()),r.Z.common.call("wphb_performance_run_test").then((function(t){t.finished?e.onFinish(t):window.setTimeout((function(){e.step(e.totalSteps-e.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,o.K)("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,o.K)("scanAnalyzing")),99===t&&(n.innerHTML=(0,o.K)("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 r=document.querySelector(".wphb-performance-scan-modal .sui-progress-block span.sui-icon-loader");r.classList.remove("sui-icon-loader","sui-loading"),r.classList.add("sui-icon-check"),n.innerHTML=(0,o.K)("scanComplete"),clearInterval(this.timer),this.timer=!1}}},{key:"onStart",value:function(){return Promise.resolve()}},{key:"onFinish",value:function(t){c(p(d.prototype),"onFinish",this).call(this),window.wphbMixPanel.track("plugin_scan_finished",{score_mobile:t.mobileScore,score_desktop:t.desktopScore}),window.setTimeout((function(){window.location=(0,o.R)("audits")}),2e3)}}])&&a(e.prototype,n),i&&a(e,i),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Z),h=f;function m(t){return m="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},m(t)}function g(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 r,i,o,s,a=[],c=!0,u=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=o.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(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,r=new Array(e);n<e;n++)r[n]=t[n];return r}d=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 h(100,0),d("#run-performance-test").on("click",(function(t){t.preventDefault(),e.startPerformanceScan()}));var n=window.location.hash;if(n){var i=d(n);i.length&&!i.hasClass("sui-box")&&(i.find(".sui-accordion-open-indicator").trigger("click"),d("html, body").animate({scrollTop:i.offset().top},1e3))}return d("body").on("submit",".settings-frm",(function(t){t.preventDefault();var e=d(this).serialize();return r.Z.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"),d(window).resize((function(){return t.drawChart(wphbHistoricFieldData.fcp,"first_contentful_paint")}))})),google.charts.setOnLoadCallback((function(){t.drawChart(wphbHistoricFieldData.fid,"first_input_delay"),d(window).resize((function(){return t.drawChart(wphbHistoricFieldData.fid,"first_input_delay")}))}))),d("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")})),d("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")})),d("g.metric").on({mouseenter:function(){d(".wphb-gauge__wrapper").addClass("state--highlight"),d(this).addClass("metric--highlight")},mouseleave:function(){d(".wphb-gauge__wrapper").removeClass("state--highlight"),d(this).removeClass("metric--highlight")}}),d("#wphb-audits-filter-button").on("click",(function(t){t.preventDefault(),d(".wphb-audits-filter").toggle("slow"),d(this).toggleClass("active").blur()})),d('input[name="audits_filter"]').on("change",(function(){for(var t=d(".sui-accordion-item"),e=0,n=Object.entries(t);e<n.length;e++){var r=g(n[e],2),i=r[0],o=r[1];"object"===m(o)&&"prevObject"!==i&&(o.classList.remove("sui-hidden"),"all"===this.value||o.dataset.metrics.includes(this.value)||o.classList.add("sui-hidden"))}})),this},startPerformanceScan:function(){window.SUI.openModal("run-performance-test-modal","wpbody-content"),d(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>"}}},2969:function(t,e,n){"use strict";n.r(e);var r,i=n(4218),o=n(3265);r=jQuery,WPHB_Admin.settings={module:"settings",init:function(){var t=r("body"),e=t.find(".wrap-wphb-settings");return r(".sui-box-footer").on("click","button.sui-button-blue",(function(n){n.preventDefault();var o=t.find(".settings-frm").serialize(),s=r("#color_accessible");s.length&&(s.is(":checked")?e.addClass("sui-color-accessible"):e.removeClass("sui-color-accessible"));var a=document.getElementById("tracking");return i.Z.settings.saveSettings(o).then((function(t){a&&!0===a.checked&&t.isMixpanelValueUpdated&&wphbMixPanel.optIn(),WPHB_Admin.notices.show()})),!1})),r("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")})),r("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")})),r("#wphb-import-file-input").on("change",(function(){var t=r(this)[0];if(t.files.length){var e=t.files[0];r("#wphb-import-file-name").text(e.name),r("#wphb-import-upload-wrap").addClass("sui-has_file"),r("#wphb-import-btn").removeAttr("disabled")}else r("#wphb-import-file-name").text(""),r("#wphb-import-upload-wrap").removeClass("sui-has_file"),r("#wphb-import-btn").attr("disabled","disabled")})),r("#wphb-import-remove-file").on("click",(function(){r("#wphb-import-file-input").val("").trigger("change")})),r("#wphb-begin-import-btn").on("click",(function(t){t.preventDefault(),r(this).attr("disabled","disabled").addClass("sui-button-onload-text");var e=r("#wphb-import-remove-file");e.attr("disabled","disabled");var n=r("#wphb-import-file-input")[0];if(0===n.files.length)return!1;var o=new FormData;o.append("settings_json_file",n.files[0],n.files[0].name),i.Z.settings.importSettings(o).then((function(t){WPHB_Admin.notices.show(t.message),e.trigger("click")})).catch((function(t){WPHB_Admin.notices.show(t,"error")})).finally((function(){r("#wphb-begin-import-btn").removeAttr("disabled").removeClass("sui-button-onload-text"),e.removeAttr("disabled"),window.SUI.closeModal()}))})),r("#wphb-export-btn").on("click",(function(t){t.preventDefault(),i.Z.settings.exportSettings()})),r('input[id="control"]').on("change",(function(){r(".cache-control-options").toggle()})),this},confirmReset:function(){i.Z.common.call("wphb_reset_settings").then((function(){i.Z.common.call("wphb_redis_disconnect"),window.location.href=(0,o.R)("resetSettings")}))}}},2790:function(t,e,n){"use strict";n.r(e);var r,i=n(3265);r=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=r(".spinner"),this.$dataRangeSelector=r("#wphb-uptime-data-range"),this.chartData=r("#uptime-chart-json").val(),this.downtimeChartData=r("#downtime-chart-json").val(),this.$disableUptime=r("#wphb-disable-uptime"),this.dataRange=this.getUrlParameter("data-range"),this.$dataRangeSelector.on("change",(function(){window.location.href=r(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"),r(this).is(":checked")&&e.timer?(clearTimeout(e.timer),e.$spinner.css("visibility","hidden")):e.timer=setTimeout((function(){location.href=(0,i.R)("disableUptime")}),3e3)})),void 0!==this.dataRange&&r(".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()})),r("#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 i={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)"}}}},o=new google.visualization.AreaChart(document.getElementById("uptime-chart"));o.draw(t,i),r(window).resize((function(){o.draw(t,i)}))},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 i=JSON.parse(this.downtimeChartData),o=0;o<i.length;o++)i[o][3]=new Date(i[o][3]),i[o][4]=new Date(i[o][4]);n.addRows(i);for(var s=[],a={Down:"#FF6D6D",Unknown:"#F8F8F8",Up:"#D1F1EA"},c=0;c<n.getNumberOfRows();c++)s.push(a[n.getValue(c,1)]);var u={timeline:{showBarLabels:!1,showRowLabels:!1,barLabelStyle:{fontSize:33},avoidOverlappingGridLines:!1},hAxis:{format:this.dateFormat},colors:s,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 r=n[n.length-1].getAttribute("width");r>3&&n[n.length-1].setAttribute("width",r-1+"px")})),e.draw(n,u),r(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(),r=t.getHours(),i=r,o=(t.getMinutes()<10?"0":"")+t.getMinutes(),s="AM";return i>=12&&(i=r-12,s="PM"),0===i&&(i=12),["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][n]+" "+e+" @ "+i+":"+o+s},getUrlParameter:function(t){var e,n,r=decodeURIComponent(window.location.search.substring(1)).split("&");for(n=0;n<r.length;n++)if((e=r[n].split("="))[0]===t)return void 0===e[1]||e[1]}}},4218:function(t,e,n){"use strict";var r=n(8583),i=n.n(r);function o(t){return o="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},o(t)}var s=new function(){var t=ajaxurl,e=wphb.nonces.HBFetchNonce,r="wphb_",s="wphb_pro_";function a(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={url:t,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",cache:!1};return i instanceof FormData?(i.append("nonce",e),i.append("action",r),s.contentType=!1,s.processData=!1):(i.nonce=e,i.action=r),s.data=i,new(0,n(2702).Promise)((function(t,e){jQuery.ajax(s).done(t).fail(e)})).then((function(t){return function(t){"object"!==o(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 a(r+t+"_save_settings",{data:e},"POST").then((function(t){return t}))},clearCache:function(t){return a(r+"clear_module_cache",{module:t},"POST").then((function(t){return t}))},clearCacheForPost:function(t){return a(r+"gutenberg_clear_post_cache",{postId:t},"POST")},redisSaveSettings:function(t,e,n,i){return a(r+"redis_save_settings",{host:t,port:e,password:n,db:i},"POST")},redisObjectCache:function(t){return a(r+"redis_toggle_object_cache",{value:t},"POST")},clearCacheBatch:function(t,e){return a(r+"clear_network_cache",{sites:t,offset:e},"POST")},disableFastCGI:function(){return a(r+"disable_fast_cgi",{},"POST").then((function(t){return t}))}},cloudflare:{connect:function(t,e,n,i){return a(r+"cloudflare_connect",{email:t,key:e,token:n,zone:i},"POST").then((function(t){return t}))}},minification:{toggleCDN:function(t){return a(r+"minification_toggle_cdn",{value:t},"POST")},toggleLog:function(t){return a(r+"minification_toggle_log",{value:t},"POST")},toggleView:function(t,e){return a(r+"minification_toggle_view",{value:t,hide:e},"POST")},startCheck:function(){return a(r+"minification_start_check",{},"POST")},checkStep:function(t){return a(r+"minification_check_step",{step:t},"POST").then((function(t){return t}))},finishCheck:function(){return a(r+"minification_finish_scan",{},"POST").then((function(t){return t}))},cancelScan:function(){return a(r+"minification_cancel_scan",{},"POST")},saveCriticalCss:function(t){return a(r+"minification_save_extra_optimization_data",{form:t},"POST").then((function(t){return t}))},updateAssetPath:function(t){return a(r+"minification_update_asset_path",{value:t},"POST")},saveNetworkSettings:function(t){return a(r+"minification_update_network_settings",{settings:t},"POST")},updateExcludeList:function(t){return a(r+"minification_save_exclude_list",{data:t},"POST")},toggleDelayJs:function(t){return a(r+"react_minify_toggle_delay_js",{data:t},"POST")}},performance:{savePerformanceTestSettings:function(t){return a(r+"performance_save_settings",{data:t},"POST")}},advanced:{saveSettings:function(t,e){return a(r+"advanced_save_settings",{data:t,form:e},"POST").then((function(t){return t}))},deleteSelectedData:function(t){return a(r+"advanced_db_delete_data",{data:t},"POST").then((function(t){return t}))},clearOrphanedBatch:function(t){return a(r+"advanced_purge_orphaned",{rows:t},"POST")}},settings:{saveSettings:function(t){return a(r+"admin_settings_save_settings",{form_data:t},"POST").then((function(t){return t}))},importSettings:function(t){return a(r+"admin_settings_import_settings",t,"POST").then((function(t){return t}))},exportSettings:function(){var n=r+"admin_settings_export_settings";window.location=t+"?action="+n+"&nonce="+e}},common:{dismissNotice:function(t){return a(r+"notice_dismiss",{id:t},"POST")},clearLogs:function(t){return a(r+"logger_clear",{module:t},"POST").then((function(t){return t}))},call:function(t){return a(t,{},"POST").then((function(t){return t}))},clearCaches:function(t){return a(r+"clear_caches",{modules:t},"POST").then((function(t){return t}))}},notifications:{resendConfirmationEmail:function(t,e){return a(s+"resend_confirmation",{name:t,email:e},"POST").then((function(t){return t}))},sendConfirmationEmail:function(t,e){return a(s+"send_confirmation",{name:t,email:e},"POST").then((function(t){return t}))},disable:function(t,e){return a(s+"disable_notification",{id:t,type:e},"POST")},enable:function(t){return a(s+"enable_notification",{settings:t,update:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},"POST").then((function(t){return t}))},getAvatar:function(t){return a(s+"get_avatar",{email:t},"POST").then((function(t){return t}))},getUsers:function(t){return a(s+"search_users",{exclude:t},"POST").then((function(t){return t}))}}};i()(this,c)};e.Z=s},3265:function(t,e,n){"use strict";n.d(e,{K:function(){return r},R:function(){return i}});var r=function(t){return wphb.strings[t]||""},i=function(t){return wphb.links[t]||""}},4814: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 r(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(o=i.key,s=void 0,s=function(t,e){if("object"!==n(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,e||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(o,"string"),"symbol"===n(s)?s:String(s)),i)}var o,s}var i=function(){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}var e,n,i;return e=t,n=[{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)}}],n&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();e.Z=i},9256:function(t,e,n){var r=n(8719);t.exports=r},1457:function(t,e,n){n(4553);var r=n(2649);t.exports=r("Array","findIndex")},2414:function(t,e,n){n(9956)},9956:function(t,e,n){var r=n(9256);t.exports=r},9662:function(t,e,n){var r=n(614),i=n(6330),o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not a function")}},1223:function(t,e,n){var r=n(5112),i=n(30),o=n(3070).f,s=r("unscopables"),a=Array.prototype;null==a[s]&&o(a,s,{configurable:!0,value:i(null)}),t.exports=function(t){a[s][t]=!0}},9670:function(t,e,n){var r=n(111),i=String,o=TypeError;t.exports=function(t){if(r(t))return t;throw o(i(t)+" is not an object")}},1318:function(t,e,n){var r=n(5656),i=n(1400),o=n(6244),s=function(t){return function(e,n,s){var a,c=r(e),u=o(c),l=i(s,u);if(t&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},2092:function(t,e,n){var r=n(9974),i=n(1702),o=n(8361),s=n(7908),a=n(6244),c=n(5417),u=i([].push),l=function(t){var e=1==t,n=2==t,i=3==t,l=4==t,p=6==t,d=7==t,f=5==t||p;return function(h,m,g,_){for(var v,y,b=s(h),w=o(b),k=r(m,g),S=a(w),x=0,O=_||c,E=e?O(h,S):n||d?O(h,0):void 0;S>x;x++)if((f||x in w)&&(y=k(v=w[x],x,b),t))if(e)E[x]=y;else if(y)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:u(E,v)}else switch(t){case 4:return!1;case 7:u(E,v)}return p?-1:i||l?l:E}};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)}},7475:function(t,e,n){var r=n(3157),i=n(4411),o=n(111),s=n(5112)("species"),a=Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(i(e)&&(e===a||r(e.prototype))||o(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?a:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return new(r(t))(0===e?0:e)}},4326:function(t,e,n){var r=n(1702),i=r({}.toString),o=r("".slice);t.exports=function(t){return o(i(t),8,-1)}},648:function(t,e,n){var r=n(1694),i=n(614),o=n(4326),s=n(5112)("toStringTag"),a=Object,c="Arguments"==o(function(){return arguments}());t.exports=r?o:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?n:c?o(e):"Object"==(r=o(e))&&i(e.callee)?"Arguments":r}},9920:function(t,e,n){var r=n(2597),i=n(3887),o=n(1236),s=n(3070);t.exports=function(t,e,n){for(var a=i(e),c=s.f,u=o.f,l=0;l<a.length;l++){var p=a[l];r(t,p)||n&&r(n,p)||c(t,p,u(e,p))}}},8880:function(t,e,n){var r=n(9781),i=n(3070),o=n(9114);t.exports=r?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9114:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},8052:function(t,e,n){var r=n(614),i=n(3070),o=n(6339),s=n(3072);t.exports=function(t,e,n,a){a||(a={});var c=a.enumerable,u=void 0!==a.name?a.name:e;if(r(n)&&o(n,u,a),a.global)c?t[e]=n:s(e,n);else{try{a.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=n:i.f(t,e,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},3072:function(t,e,n){var r=n(7854),i=Object.defineProperty;t.exports=function(t,e){try{i(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},9781:function(t,e,n){var r=n(7293);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(t){var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},317:function(t,e,n){var r=n(7854),i=n(111),o=r.document,s=i(o)&&i(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},8113:function(t){t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(t,e,n){var r,i,o=n(7854),s=n(8113),a=o.process,c=o.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(i=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!i&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(i=+r[1]),t.exports=i},2649:function(t,e,n){var r=n(7854),i=n(1702);t.exports=function(t,e){return i(r[t].prototype[e])}},748:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(t,e,n){var r=n(7854),i=n(1236).f,o=n(8880),s=n(8052),a=n(3072),c=n(9920),u=n(4705);t.exports=function(t,e){var n,l,p,d,f,h=t.target,m=t.global,g=t.stat;if(n=m?r:g?r[h]||a(h,{}):(r[h]||{}).prototype)for(l in e){if(d=e[l],p=t.dontCallGetSet?(f=i(n,l))&&f.value:n[l],!u(m?l:h+(g?".":"#")+l,t.forced)&&void 0!==p){if(typeof d==typeof p)continue;c(d,p)}(t.sham||p&&p.sham)&&o(d,"sham",!0),s(n,l,d,t)}}},7293:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},9974:function(t,e,n){var r=n(1470),i=n(9662),o=n(4374),s=r(r.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},4374:function(t,e,n){var r=n(7293);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},1460:function(t,e,n){var r=n(4374),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},6530:function(t,e,n){var r=n(9781),i=n(2597),o=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,a=i(o,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},1470:function(t,e,n){var r=n(4326),i=n(1702);t.exports=function(t){if("Function"===r(t))return i(t)}},1702:function(t,e,n){var r=n(4374),i=Function.prototype,o=i.call,s=r&&i.bind.bind(o,o);t.exports=r?s:function(t){return function(){return o.apply(t,arguments)}}},5005:function(t,e,n){var r=n(7854),i=n(614);t.exports=function(t,e){return arguments.length<2?(n=r[t],i(n)?n:void 0):r[t]&&r[t][e];var n}},8173:function(t,e,n){var r=n(9662),i=n(8554);t.exports=function(t,e){var n=t[e];return i(n)?void 0:r(n)}},7854:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},2597:function(t,e,n){var r=n(1702),i=n(7908),o=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},3501:function(t){t.exports={}},490:function(t,e,n){var r=n(5005);t.exports=r("document","documentElement")},4664:function(t,e,n){var r=n(9781),i=n(7293),o=n(317);t.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},8361:function(t,e,n){var r=n(1702),i=n(7293),o=n(4326),s=Object,a=r("".split);t.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?a(t,""):s(t)}:s},2788:function(t,e,n){var r=n(1702),i=n(614),o=n(5465),s=r(Function.toString);i(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},9909:function(t,e,n){var r,i,o,s=n(4811),a=n(7854),c=n(111),u=n(8880),l=n(2597),p=n(5465),d=n(6200),f=n(3501),h="Object already initialized",m=a.TypeError,g=a.WeakMap;if(s||p.state){var _=p.state||(p.state=new g);_.get=_.get,_.has=_.has,_.set=_.set,r=function(t,e){if(_.has(t))throw m(h);return e.facade=t,_.set(t,e),e},i=function(t){return _.get(t)||{}},o=function(t){return _.has(t)}}else{var v=d("state");f[v]=!0,r=function(t,e){if(l(t,v))throw m(h);return e.facade=t,u(t,v,e),e},i=function(t){return l(t,v)?t[v]:{}},o=function(t){return l(t,v)}}t.exports={set:r,get:i,has:o,enforce:function(t){return o(t)?i(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=i(e)).type!==t)throw m("Incompatible receiver, "+t+" required");return n}}}},3157:function(t,e,n){var r=n(4326);t.exports=Array.isArray||function(t){return"Array"==r(t)}},614:function(t,e,n){var r=n(4154),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},4411:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),s=n(648),a=n(5005),c=n(2788),u=function(){},l=[],p=a("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=r(d.exec),h=!d.exec(u),m=function(t){if(!o(t))return!1;try{return p(u,l,t),!0}catch(t){return!1}},g=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(d,c(t))}catch(t){return!0}};g.sham=!0,t.exports=!p||i((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?g:m},4705:function(t,e,n){var r=n(7293),i=n(614),o=/#|\.prototype\./,s=function(t,e){var n=c[a(t)];return n==l||n!=u&&(i(e)?r(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=s.data={},u=s.NATIVE="N",l=s.POLYFILL="P";t.exports=s},8554:function(t){t.exports=function(t){return null==t}},111:function(t,e,n){var r=n(614),i=n(4154),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===o}:function(t){return"object"==typeof t?null!==t:r(t)}},1913:function(t){t.exports=!1},2190:function(t,e,n){var r=n(5005),i=n(614),o=n(7976),s=n(3307),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return i(e)&&o(e.prototype,a(t))}},6244:function(t,e,n){var r=n(7466);t.exports=function(t){return r(t.length)}},6339:function(t,e,n){var r=n(1702),i=n(7293),o=n(614),s=n(2597),a=n(9781),c=n(6530).CONFIGURABLE,u=n(2788),l=n(9909),p=l.enforce,d=l.get,f=String,h=Object.defineProperty,m=r("".slice),g=r("".replace),_=r([].join),v=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),y=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===m(f(e),0,7)&&(e="["+g(f(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!s(t,"name")||c&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),v&&n&&s(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=p(t);return s(r,"source")||(r.source=_(y,"string"==typeof e?e:"")),t};Function.prototype.toString=b((function(){return o(this)&&d(this).source||u(this)}),"toString")},4758:function(t){var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},30:function(t,e,n){var r,i=n(9670),o=n(6048),s=n(748),a=n(3501),c=n(490),u=n(317),l=n(6200),p="prototype",d="script",f=l("IE_PROTO"),h=function(){},m=function(t){return"<"+d+">"+t+"</"+d+">"},g=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},_=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;_="undefined"!=typeof document?document.domain&&r?g(r):(e=u("iframe"),n="java"+d+":",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):g(r);for(var i=s.length;i--;)delete _[p][s[i]];return _()};a[f]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[p]=i(t),n=new h,h[p]=null,n[f]=t):n=_(),void 0===e?n:o.f(n,e)}},6048:function(t,e,n){var r=n(9781),i=n(3353),o=n(3070),s=n(9670),a=n(5656),c=n(1956);e.f=r&&!i?Object.defineProperties:function(t,e){s(t);for(var n,r=a(e),i=c(e),u=i.length,l=0;u>l;)o.f(t,n=i[l++],r[n]);return t}},3070:function(t,e,n){var r=n(9781),i=n(4664),o=n(3353),s=n(9670),a=n(4948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",f="writable";e.f=r?o?function(t,e,n){if(s(t),e=a(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&f in n&&!n[f]){var r=l(t,e);r&&r[f]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=a(e),s(n),i)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},1236:function(t,e,n){var r=n(9781),i=n(1460),o=n(5296),s=n(9114),a=n(5656),c=n(4948),u=n(2597),l=n(4664),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return s(!i(o.f,t,e),t[e])}},8006:function(t,e,n){var r=n(6324),i=n(748).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},5181:function(t,e){e.f=Object.getOwnPropertySymbols},7976:function(t,e,n){var r=n(1702);t.exports=r({}.isPrototypeOf)},6324:function(t,e,n){var r=n(1702),i=n(2597),o=n(5656),s=n(1318).indexOf,a=n(3501),c=r([].push);t.exports=function(t,e){var n,r=o(t),u=0,l=[];for(n in r)!i(a,n)&&i(r,n)&&c(l,n);for(;e.length>u;)i(r,n=e[u++])&&(~s(l,n)||c(l,n));return l}},1956:function(t,e,n){var r=n(6324),i=n(748);t.exports=Object.keys||function(t){return r(t,i)}},5296:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,i=r&&!n.call({1:2},1);e.f=i?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},2140:function(t,e,n){var r=n(1460),i=n(614),o=n(111),s=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&i(n=t.toString)&&!o(a=r(n,t)))return a;if(i(n=t.valueOf)&&!o(a=r(n,t)))return a;if("string"!==e&&i(n=t.toString)&&!o(a=r(n,t)))return a;throw s("Can't convert object to primitive value")}},3887:function(t,e,n){var r=n(5005),i=n(1702),o=n(8006),s=n(5181),a=n(9670),c=i([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=s.f;return n?c(e,n(t)):e}},4488:function(t,e,n){var r=n(8554),i=TypeError;t.exports=function(t){if(r(t))throw i("Can't call method on "+t);return t}},6200:function(t,e,n){var r=n(2309),i=n(9711),o=r("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},5465:function(t,e,n){var r=n(7854),i=n(3072),o="__core-js_shared__",s=r[o]||i(o,{});t.exports=s},2309:function(t,e,n){var r=n(1913),i=n(5465);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.0",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6293:function(t,e,n){var r=n(7392),i=n(7293),o=n(7854).String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol();return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},1400:function(t,e,n){var r=n(9303),i=Math.max,o=Math.min;t.exports=function(t,e){var n=r(t);return n<0?i(n+e,0):o(n,e)}},5656:function(t,e,n){var r=n(8361),i=n(4488);t.exports=function(t){return r(i(t))}},9303:function(t,e,n){var r=n(4758);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},7466:function(t,e,n){var r=n(9303),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},7908:function(t,e,n){var r=n(4488),i=Object;t.exports=function(t){return i(r(t))}},7593:function(t,e,n){var r=n(1460),i=n(111),o=n(2190),s=n(8173),a=n(2140),c=n(5112),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!i(t)||o(t))return t;var n,c=s(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!i(n)||o(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},4948:function(t,e,n){var r=n(7593),i=n(2190);t.exports=function(t){var e=r(t,"string");return i(e)?e:e+""}},1694:function(t,e,n){var r={};r[n(5112)("toStringTag")]="z",t.exports="[object z]"===String(r)},6330:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9711:function(t,e,n){var r=n(1702),i=0,o=Math.random(),s=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++i+o,36)}},3307:function(t,e,n){var r=n(6293);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(t,e,n){var r=n(9781),i=n(7293);t.exports=r&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(t,e,n){var r=n(7854),i=n(614),o=r.WeakMap;t.exports=i(o)&&/native code/.test(String(o))},5112:function(t,e,n){var r=n(7854),i=n(2309),o=n(2597),s=n(9711),a=n(6293),c=n(3307),u=r.Symbol,l=i("wks"),p=c?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return o(l,t)||(l[t]=a&&o(u,t)?u[t]:p("Symbol."+t)),l[t]}},4553:function(t,e,n){"use strict";var r=n(2109),i=n(2092).findIndex,o=n(1223),s="findIndex",a=!0;s in[]&&Array(1)[s]((function(){a=!1})),r({target:"Array",proto:!0,forced:a},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},8719:function(t,e,n){var r=n(1457);t.exports=r},2702: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 r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,o=void 0,s=void 0,a=function(t,e){b[i]=t,b[i+1]=e,2===(i+=2)&&(s?s(w):S())};function c(t){s=t}function u(t){a=t}var l="undefined"!=typeof window?window:void 0,p=l||{},d=p.MutationObserver||p.WebKitMutationObserver,f="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 g(){return void 0!==o?function(){o(w)}:y()}function _(){var t=0,e=new d(w),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function v(){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 b=new Array(1e3);function w(){for(var t=0;t<i;t+=2)(0,b[t])(b[t+1]),b[t]=void 0,b[t+1]=void 0;i=0}function k(){try{var t=Function("return this")().require("vertx");return o=t.runOnLoop||t.runOnContext,g()}catch(t){return y()}}var S=void 0;function x(t,e){var n=this,r=new this.constructor(P);void 0===r[E]&&K(r);var i=n._state;if(i){var o=arguments[i-1];a((function(){return $(i,r,o,n._result)}))}else N(n,r,t,e);return r}function O(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(P);return M(n,t),n}S=f?m():d?_():h?v():void 0===l?k():y();var E=Math.random().toString(36).substring(2);function P(){}var j=void 0,I=1,A=2;function B(){return new TypeError("You cannot resolve a promise with itself")}function T(){return new TypeError("A promises callback cannot return that same promise.")}function C(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function D(t,e,n){a((function(t){var r=!1,i=C(n,e,(function(n){r||(r=!0,e!==n?M(t,n):F(t,n))}),(function(e){r||(r=!0,R(t,e))}),"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,R(t,i))}),t)}function L(t,e){e._state===I?F(t,e._result):e._state===A?R(t,e._result):N(e,void 0,(function(e){return M(t,e)}),(function(e){return R(t,e)}))}function q(t,n,r){n.constructor===t.constructor&&r===x&&n.constructor.resolve===O?L(t,n):void 0===r?F(t,n):e(r)?D(t,n,r):F(t,n)}function M(e,n){if(e===n)R(e,B());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void R(e,t)}q(e,n,r)}else F(e,n)}function U(t){t._onerror&&t._onerror(t._result),H(t)}function F(t,e){t._state===j&&(t._result=e,t._state=I,0!==t._subscribers.length&&a(H,t))}function R(t,e){t._state===j&&(t._state=A,t._result=e,a(U,t))}function N(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+I]=n,i[o+A]=r,0===o&&t._state&&a(H,t)}function H(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,i=void 0,o=t._result,s=0;s<e.length;s+=3)r=e[s],i=e[s+n],r?$(n,r,i,o):i(o);t._subscribers.length=0}}function $(t,n,r,i){var o=e(r),s=void 0,a=void 0,c=!0;if(o){try{s=r(i)}catch(t){c=!1,a=t}if(n===s)return void R(n,T())}else s=i;n._state!==j||(o&&c?M(n,s):!1===c?R(n,a):t===I?F(n,s):t===A&&R(n,s))}function z(t,e){try{e((function(e){M(t,e)}),(function(e){R(t,e)}))}catch(e){R(t,e)}}var W=0;function Z(){return W++}function K(t){t[E]=W++,t._state=void 0,t._result=void 0,t._subscribers=[]}function J(){return new Error("Array Methods must be provided an Array")}var G=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(P),this.promise[E]||K(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?F(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&F(this.promise,this._result))):R(this.promise,J())}return t.prototype._enumerate=function(t){for(var e=0;this._state===j&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===O){var i=void 0,o=void 0,s=!1;try{i=t.then}catch(t){s=!0,o=t}if(i===x&&t._state!==j)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===et){var a=new n(P);s?R(a,o):q(a,t,i),this._willSettleAt(a,e)}else this._willSettleAt(new n((function(e){return e(t)})),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===j&&(this._remaining--,t===A?R(r,n):this._result[e]=n),0===this._remaining&&F(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;N(t,void 0,(function(t){return n._settledAt(I,e,t)}),(function(t){return n._settledAt(A,e,t)}))},t}();function Q(t){return new G(this,t).promise}function V(t){var e=this;return r(t)?new e((function(n,r){for(var i=t.length,o=0;o<i;o++)e.resolve(t[o]).then(n,r)})):new e((function(t,e){return e(new TypeError("You must pass an array to race."))}))}function Y(t){var e=new this(P);return R(e,t),e}function X(){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[E]=Z(),this._result=this._state=void 0,this._subscribers=[],P!==e&&("function"!=typeof e&&X(),this instanceof t?z(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.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 r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=x,et.all=Q,et.race=V,et.resolve=O,et.reject=Y,et._setScheduler=c,et._setAsap=u,et._asap=a,et.polyfill=nt,et.Promise=et,et}()},2705:function(t,e,n){var r=n(5639).Symbol;t.exports=r},6874: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)}},4636:function(t,e,n){var r=n(2545),i=n(5694),o=n(1469),s=n(4144),a=n(5776),c=n(6719),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),l=!n&&i(t),p=!n&&!l&&s(t),d=!n&&!l&&!p&&c(t),f=n||l||p||d,h=f?r(t.length,String):[],m=h.length;for(var g in t)!e&&!u.call(t,g)||f&&("length"==g||p&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||h.push(g);return h}},4865:function(t,e,n){var r=n(9465),i=n(7813),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var s=t[e];o.call(t,e)&&i(s,n)&&(void 0!==n||e in t)||r(t,e,n)}},9465:function(t,e,n){var r=n(8777);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},4239:function(t,e,n){var r=n(2705),i=n(9607),o=n(2333),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},9454:function(t,e,n){var r=n(4239),i=n(7005);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},8458:function(t,e,n){var r=n(3560),i=n(5346),o=n(3218),s=n(346),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,d=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?d:a).test(s(t))}},8749:function(t,e,n){var r=n(4239),i=n(1780),o=n(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},280:function(t,e,n){var r=n(5726),i=n(6916),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},5976:function(t,e,n){var r=n(6557),i=n(5357),o=n(61);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6560:function(t,e,n){var r=n(5703),i=n(8777),o=n(6557),s=i?function(t,e){return i(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:o;t.exports=s},2545:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},7518:function(t){t.exports=function(t){return function(e){return t(e)}}},8363:function(t,e,n){var r=n(4865),i=n(9465);t.exports=function(t,e,n,o){var s=!n;n||(n={});for(var a=-1,c=e.length;++a<c;){var u=e[a],l=o?o(n[u],t[u],u,n,t):void 0;void 0===l&&(l=t[u]),s?i(n,u,l):r(n,u,l)}return n}},4429:function(t,e,n){var r=n(5639)["__core-js_shared__"];t.exports=r},1463:function(t,e,n){var r=n(5976),i=n(6612);t.exports=function(t){return r((function(e,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r<o;){var c=n[r];c&&t(e,c,r,s)}return e}))}},8777:function(t,e,n){var r=n(852),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},1957:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},852:function(t,e,n){var r=n(8458),i=n(7801);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},9607:function(t,e,n){var r=n(2705),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},7801:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},5776:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},6612:function(t,e,n){var r=n(7813),i=n(8612),o=n(5776),s=n(3218);t.exports=function(t,e,n){if(!s(n))return!1;var a=typeof e;return!!("number"==a?i(n)&&o(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},5346:function(t,e,n){var r,i=n(4429),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},5726:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},6916:function(t,e,n){var r=n(5569)(Object.keys,Object);t.exports=r},1167:function(t,e,n){t=n.nmd(t);var r=n(1957),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},5357:function(t,e,n){var r=n(6874),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s<a;)c[s]=o[e+s];s=-1;for(var u=Array(e+1);++s<e;)u[s]=o[s];return u[e]=n(c),r(t,this,u)}}},5639:function(t,e,n){var r=n(1957),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},61:function(t,e,n){var r=n(6560),i=n(1275)(r);t.exports=i},1275:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},346: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""}},8583:function(t,e,n){var r=n(4865),i=n(8363),o=n(1463),s=n(8612),a=n(5726),c=n(3674),u=Object.prototype.hasOwnProperty,l=o((function(t,e){if(a(e)||s(e))i(e,c(e),t);else for(var n in e)u.call(e,n)&&r(t,n,e[n])}));t.exports=l},5703:function(t){t.exports=function(t){return function(){return t}}},7813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6557:function(t){t.exports=function(t){return t}},5694:function(t,e,n){var r=n(9454),i=n(7005),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},1469:function(t){var e=Array.isArray;t.exports=e},8612:function(t,e,n){var r=n(3560),i=n(1780);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4144:function(t,e,n){t=n.nmd(t);var r=n(5639),i=n(5062),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;t.exports=c},3560:function(t,e,n){var r=n(4239),i=n(3218);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},3218:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},6719:function(t,e,n){var r=n(8749),i=n(7518),o=n(1167),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},3674:function(t,e,n){var r=n(4636),i=n(280),o=n(8612);t.exports=function(t){return o(t)?r(t):i(t)}},5062:function(t){t.exports=function(){return!1}},8891:function(t){"use strict";var e,n={DEBUG:!1,LIB_VERSION:"2.47.0"};if("undefined"==typeof window){var r={hostname:""};e={navigator:{userAgent:""},document:{location:r,referrer:""},screen:{width:0,height:0},location:r}}else e=window;var i,o,s,a,c,u,l,p,d,f,h,m=Array.prototype,g=Function.prototype,_=Object.prototype,v=m.slice,y=_.toString,b=_.hasOwnProperty,w=e.console,k=e.navigator,S=e.document,x=e.opera,O=e.screen,E=k.userAgent,P=g.bind,j=m.forEach,I=m.indexOf,A=m.map,B=Array.isArray,T={},C={trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},D={log:function(){if(n.DEBUG&&!C.isUndefined(w)&&w)try{w.log.apply(w,arguments)}catch(t){C.each(arguments,(function(t){w.log(t)}))}},warn:function(){if(n.DEBUG&&!C.isUndefined(w)&&w){var t=["Mixpanel warning:"].concat(C.toArray(arguments));try{w.warn.apply(w,t)}catch(e){C.each(t,(function(t){w.warn(t)}))}}},error:function(){if(n.DEBUG&&!C.isUndefined(w)&&w){var t=["Mixpanel error:"].concat(C.toArray(arguments));try{w.error.apply(w,t)}catch(e){C.each(t,(function(t){w.error(t)}))}}},critical:function(){if(!C.isUndefined(w)&&w){var t=["Mixpanel error:"].concat(C.toArray(arguments));try{w.error.apply(w,t)}catch(e){C.each(t,(function(t){w.error(t)}))}}}},L=function(t,e){return function(){return arguments[0]="["+e+"] "+arguments[0],t.apply(D,arguments)}},q=function(t){return{log:L(D.log,t),error:L(D.error,t),critical:L(D.critical,t)}};C.bind=function(t,e){var n,r;if(P&&t.bind===P)return P.apply(t,v.call(arguments,1));if(!C.isFunction(t))throw new TypeError;return n=v.call(arguments,2),r=function(){if(!(this instanceof r))return t.apply(e,n.concat(v.call(arguments)));var i={};i.prototype=t.prototype;var o=new i;i.prototype=null;var s=t.apply(o,n.concat(v.call(arguments)));return Object(s)===s?s:o},r},C.each=function(t,e,n){if(null!=t)if(j&&t.forEach===j)t.forEach(e,n);else if(t.length===+t.length){for(var r=0,i=t.length;r<i;r++)if(r in t&&e.call(n,t[r],r,t)===T)return}else for(var o in t)if(b.call(t,o)&&e.call(n,t[o],o,t)===T)return},C.extend=function(t){return C.each(v.call(arguments,1),(function(e){for(var n in e)void 0!==e[n]&&(t[n]=e[n])})),t},C.isArray=B||function(t){return"[object Array]"===y.call(t)},C.isFunction=function(t){try{return/^\s*\bfunction\b/.test(t)}catch(t){return!1}},C.isArguments=function(t){return!(!t||!b.call(t,"callee"))},C.toArray=function(t){return t?t.toArray?t.toArray():C.isArray(t)||C.isArguments(t)?v.call(t):C.values(t):[]},C.map=function(t,e,n){if(A&&t.map===A)return t.map(e,n);var r=[];return C.each(t,(function(t){r.push(e.call(n,t))})),r},C.keys=function(t){var e=[];return null===t||C.each(t,(function(t,n){e[e.length]=n})),e},C.values=function(t){var e=[];return null===t||C.each(t,(function(t){e[e.length]=t})),e},C.include=function(t,e){var n=!1;return null===t?n:I&&t.indexOf===I?-1!=t.indexOf(e):(C.each(t,(function(t){if(n||(n=t===e))return T})),n)},C.includes=function(t,e){return-1!==t.indexOf(e)},C.inherit=function(t,e){return t.prototype=new e,t.prototype.constructor=t,t.superclass=e.prototype,t},C.isObject=function(t){return t===Object(t)&&!C.isArray(t)},C.isEmptyObject=function(t){if(C.isObject(t)){for(var e in t)if(b.call(t,e))return!1;return!0}return!1},C.isUndefined=function(t){return void 0===t},C.isString=function(t){return"[object String]"==y.call(t)},C.isDate=function(t){return"[object Date]"==y.call(t)},C.isNumber=function(t){return"[object Number]"==y.call(t)},C.isElement=function(t){return!(!t||1!==t.nodeType)},C.encodeDates=function(t){return C.each(t,(function(e,n){C.isDate(e)?t[n]=C.formatDate(e):C.isObject(e)&&(t[n]=C.encodeDates(e))})),t},C.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},C.formatDate=function(t){function e(t){return t<10?"0"+t:t}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())},C.strip_empty_properties=function(t){var e={};return C.each(t,(function(t,n){C.isString(t)&&t.length>0&&(e[n]=t)})),e},C.truncate=function(t,e){var n;return"string"==typeof t?n=t.slice(0,e):C.isArray(t)?(n=[],C.each(t,(function(t){n.push(C.truncate(t,e))}))):C.isObject(t)?(n={},C.each(t,(function(t,r){n[r]=C.truncate(t,e)}))):n=t,n},C.JSONEncode=function(t){var e=function(t){var e=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return e.lastIndex=0,e.test(t)?'"'+t.replace(e,(function(t){var e=n[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+t+'"'},n=function(t,r){var i="",o=0,s="",a="",c=0,u=i,l=[],p=r[t];switch(p&&"object"==typeof p&&"function"==typeof p.toJSON&&(p=p.toJSON(t)),typeof p){case"string":return e(p);case"number":return isFinite(p)?String(p):"null";case"boolean":case"null":return String(p);case"object":if(!p)return"null";if(i+=" ",l=[],"[object Array]"===y.apply(p)){for(c=p.length,o=0;o<c;o+=1)l[o]=n(o,p)||"null";return a=0===l.length?"[]":i?"[\n"+i+l.join(",\n"+i)+"\n"+u+"]":"["+l.join(",")+"]",i=u,a}for(s in p)b.call(p,s)&&(a=n(s,p))&&l.push(e(s)+(i?": ":":")+a);return a=0===l.length?"{}":i?"{"+l.join(",")+u+"}":"{"+l.join(",")+"}",i=u,a}};return n("",{"":t})},C.JSONDecode=(c={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},u=function(t){var e=new SyntaxError(t);throw e.at=i,e.text=s,e},l=function(t){return t&&t!==o&&u("Expected '"+t+"' instead of '"+o+"'"),o=s.charAt(i),i+=1,o},p=function(){var t,e="";for("-"===o&&(e="-",l("-"));o>="0"&&o<="9";)e+=o,l();if("."===o)for(e+=".";l()&&o>="0"&&o<="9";)e+=o;if("e"===o||"E"===o)for(e+=o,l(),"-"!==o&&"+"!==o||(e+=o,l());o>="0"&&o<="9";)e+=o,l();if(t=+e,isFinite(t))return t;u("Bad number")},d=function(){var t,e,n,r="";if('"'===o)for(;l();){if('"'===o)return l(),r;if("\\"===o)if(l(),"u"===o){for(n=0,e=0;e<4&&(t=parseInt(l(),16),isFinite(t));e+=1)n=16*n+t;r+=String.fromCharCode(n)}else{if("string"!=typeof c[o])break;r+=c[o]}else r+=o}u("Bad string")},f=function(){for(;o&&o<=" ";)l()},a=function(){switch(f(),o){case"{":return function(){var t,e={};if("{"===o){if(l("{"),f(),"}"===o)return l("}"),e;for(;o;){if(t=d(),f(),l(":"),Object.hasOwnProperty.call(e,t)&&u('Duplicate key "'+t+'"'),e[t]=a(),f(),"}"===o)return l("}"),e;l(","),f()}}u("Bad object")}();case"[":return function(){var t=[];if("["===o){if(l("["),f(),"]"===o)return l("]"),t;for(;o;){if(t.push(a()),f(),"]"===o)return l("]"),t;l(","),f()}}u("Bad array")}();case'"':return d();case"-":return p();default:return o>="0"&&o<="9"?p():function(){switch(o){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}u('Unexpected "'+o+'"')}()}},function(t){var e;return s=t,i=0,o=" ",e=a(),f(),o&&u("Syntax error"),e}),C.base64Encode=function(t){var e,n,r,i,o,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,c=0,u="",l=[];if(!t)return t;t=C.utf8Encode(t);do{e=(o=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,n=o>>12&63,r=o>>6&63,i=63&o,l[c++]=s.charAt(e)+s.charAt(n)+s.charAt(r)+s.charAt(i)}while(a<t.length);switch(u=l.join(""),t.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u},C.utf8Encode=function(t){var e,n,r,i,o="";for(e=n=0,r=(t=(t+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n")).length,i=0;i<r;i++){var s=t.charCodeAt(i),a=null;s<128?n++:a=s>127&&s<2048?String.fromCharCode(s>>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(n>e&&(o+=t.substring(e,n)),o+=a,e=n=i+1)}return n>e&&(o+=t.substring(e,t.length)),o},C.UUID=(h=function(){var t,n=1*new Date;if(e.performance&&e.performance.now)t=e.performance.now();else for(t=0;n==1*new Date;)t++;return n.toString(16)+Math.floor(t).toString(16)},function(){var t=(O.height*O.width).toString(16);return h()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var t,e,n=E,r=[],i=0;function o(t,e){var n,i=0;for(n=0;n<e.length;n++)i|=r[n]<<8*n;return t^i}for(t=0;t<n.length;t++)e=n.charCodeAt(t),r.unshift(255&e),r.length>=4&&(i=o(i,r),r=[]);return r.length>0&&(i=o(i,r)),i.toString(16)}()+"-"+t+"-"+h()});var M=["ahrefsbot","baiduspider","bingbot","bingpreview","facebookexternal","petalbot","pinterest","screaming frog","yahoo! slurp","yandexbot","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleweblight","mediapartners-google","storebot-google"];C.isBlockedUA=function(t){var e;for(t=t.toLowerCase(),e=0;e<M.length;e++)if(-1!==t.indexOf(M[e]))return!0;return!1},C.HTTPBuildQuery=function(t,e){var n,r,i=[];return C.isUndefined(e)&&(e="&"),C.each(t,(function(t,e){n=encodeURIComponent(t.toString()),r=encodeURIComponent(e),i[i.length]=r+"="+n})),i.join(e)},C.getQueryParam=function(t,e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);if(null===n||n&&"string"!=typeof n[1]&&n[1].length)return"";var r=n[1];try{r=decodeURIComponent(r)}catch(t){D.error("Skipping decoding for malformed query param: "+r)}return r.replace(/\+/g," ")},C.cookie={get:function(t){for(var e=t+"=",n=S.cookie.split(";"),r=0;r<n.length;r++){for(var i=n[r];" "==i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return decodeURIComponent(i.substring(e.length,i.length))}return null},parse:function(t){var e;try{e=C.JSONDecode(C.cookie.get(t))||{}}catch(t){}return e},set_seconds:function(t,e,n,r,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(r){var l=Z(S.location.hostname);a=l?"; domain=."+l:""}if(n){var p=new Date;p.setTime(p.getTime()+1e3*n),c="; expires="+p.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure"),S.cookie=t+"="+encodeURIComponent(e)+c+"; path=/"+a+u},set:function(t,e,n,r,i,o,s){var a="",c="",u="";if(s)a="; domain="+s;else if(r){var l=Z(S.location.hostname);a=l?"; domain=."+l:""}if(n){var p=new Date;p.setTime(p.getTime()+24*n*60*60*1e3),c="; expires="+p.toGMTString()}o&&(i=!0,u="; SameSite=None"),i&&(u+="; secure");var d=t+"="+encodeURIComponent(e)+c+"; path=/"+a+u;return S.cookie=d,d},remove:function(t,e,n){C.cookie.set(t,"",-1,e,!1,!1,n)}};var U=null,F=function(t,e){if(null!==U&&!e)return U;var n=!0;try{t=t||window.localStorage;var r="__mplss_"+$(8);t.setItem(r,"xyz"),"xyz"!==t.getItem(r)&&(n=!1),t.removeItem(r)}catch(t){n=!1}return U=n,n};C.localStorage={is_supported:function(t){var e=F(null,t);return e||D.error("localStorage unsupported; falling back to cookie store"),e},error:function(t){D.error("localStorage error: "+t)},get:function(t){try{return window.localStorage.getItem(t)}catch(t){C.localStorage.error(t)}return null},parse:function(t){try{return C.JSONDecode(C.localStorage.get(t))||{}}catch(t){}return null},set:function(t,e){try{window.localStorage.setItem(t,e)}catch(t){C.localStorage.error(t)}},remove:function(t){try{window.localStorage.removeItem(t)}catch(t){C.localStorage.error(t)}}},C.register_event=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,n,r,i,o){if(e)if(e.addEventListener&&!i)e.addEventListener(n,r,!!o);else{var s="on"+n,a=e[s];e[s]=function(e,n,r){var i=function(i){if(i=i||t(window.event)){var o,s,a=!0;return C.isFunction(r)&&(o=r(i)),s=n.call(e,i),!1!==o&&!1!==s||(a=!1),a}};return i}(e,r,a)}else D.error("No valid element provided to register_event")}}();var R=new RegExp('^(\\w*)\\[(\\w+)([=~\\|\\^\\$\\*]?)=?"?([^\\]"]*)"?\\]$');C.dom_query=function(){function t(t){return t.all?t.all:t.getElementsByTagName("*")}var e=/[\t\r\n]/g;function n(t,n){var r=" "+n+" ";return(" "+t.className+" ").replace(e," ").indexOf(r)>=0}function r(e){if(!S.getElementsByTagName)return[];var r,i,o,s,a,c,u,l,p,d,f=e.split(" "),h=[S];for(c=0;c<f.length;c++)if((r=f[c].replace(/^\s+/,"").replace(/\s+$/,"")).indexOf("#")>-1){o=(i=r.split("#"))[0];var m=i[1],g=S.getElementById(m);if(!g||o&&g.nodeName.toLowerCase()!=o)return[];h=[g]}else if(r.indexOf(".")>-1){o=(i=r.split("."))[0];var _=i[1];for(o||(o="*"),s=[],a=0,u=0;u<h.length;u++)for(p="*"==o?t(h[u]):h[u].getElementsByTagName(o),l=0;l<p.length;l++)s[a++]=p[l];for(h=[],d=0,u=0;u<s.length;u++)s[u].className&&C.isString(s[u].className)&&n(s[u],_)&&(h[d++]=s[u])}else{var v=r.match(R);if(v){o=v[1];var y,b=v[2],w=v[3],k=v[4];for(o||(o="*"),s=[],a=0,u=0;u<h.length;u++)for(p="*"==o?t(h[u]):h[u].getElementsByTagName(o),l=0;l<p.length;l++)s[a++]=p[l];switch(h=[],d=0,w){case"=":y=function(t){return t.getAttribute(b)==k};break;case"~":y=function(t){return t.getAttribute(b).match(new RegExp("\\b"+k+"\\b"))};break;case"|":y=function(t){return t.getAttribute(b).match(new RegExp("^"+k+"-?"))};break;case"^":y=function(t){return 0===t.getAttribute(b).indexOf(k)};break;case"$":y=function(t){return t.getAttribute(b).lastIndexOf(k)==t.getAttribute(b).length-k.length};break;case"*":y=function(t){return t.getAttribute(b).indexOf(k)>-1};break;default:y=function(t){return t.getAttribute(b)}}for(h=[],d=0,u=0;u<s.length;u++)y(s[u])&&(h[d++]=s[u])}else{for(o=r,s=[],a=0,u=0;u<h.length;u++)for(p=h[u].getElementsByTagName(o),l=0;l<p.length;l++)s[a++]=p[l];h=s}}return h}return function(t){return C.isElement(t)?[t]:C.isObject(t)&&!C.isUndefined(t.length)?t:r.call(this,t)}}();var N=["utm_source","utm_medium","utm_campaign","utm_content","utm_term"],H=["dclid","fbclid","gclid","ko_click_id","li_fat_id","msclkid","ttclid","twclid","wbraid"];C.info={campaignParams:function(t){var e="",n={};return C.each(N,(function(r){(e=C.getQueryParam(S.URL,r)).length?n[r]=e:void 0!==t&&(n[r]=t)})),n},clickParams:function(){var t="",e={};return C.each(H,(function(n){(t=C.getQueryParam(S.URL,n)).length&&(e[n]=t)})),e},marketingParams:function(){return C.extend(C.info.campaignParams(),C.info.clickParams())},searchEngine:function(t){return 0===t.search("https?://(.*)google.([^/?]*)")?"google":0===t.search("https?://(.*)bing.com")?"bing":0===t.search("https?://(.*)yahoo.com")?"yahoo":0===t.search("https?://(.*)duckduckgo.com")?"duckduckgo":null},searchInfo:function(t){var e=C.info.searchEngine(t),n="yahoo"!=e?"q":"p",r={};if(null!==e){r.$search_engine=e;var i=C.getQueryParam(t,n);i.length&&(r.mp_keyword=i)}return r},browser:function(t,e,n){return e=e||"",n||C.includes(t," OPR/")?C.includes(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":C.includes(t,"IEMobile")||C.includes(t,"WPDesktop")?"Internet Explorer Mobile":C.includes(t,"SamsungBrowser/")?"Samsung Internet":C.includes(t,"Edge")||C.includes(t,"Edg/")?"Microsoft Edge":C.includes(t,"FBIOS")?"Facebook Mobile":C.includes(t,"Chrome")?"Chrome":C.includes(t,"CriOS")?"Chrome iOS":C.includes(t,"UCWEB")||C.includes(t,"UCBrowser")?"UC Browser":C.includes(t,"FxiOS")?"Firefox iOS":C.includes(e,"Apple")?C.includes(t,"Mobile")?"Mobile Safari":"Safari":C.includes(t,"Android")?"Android Mobile":C.includes(t,"Konqueror")?"Konqueror":C.includes(t,"Firefox")?"Firefox":C.includes(t,"MSIE")||C.includes(t,"Trident/")?"Internet Explorer":C.includes(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,n){var r={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[C.info.browser(t,e,n)];if(void 0===r)return null;var i=t.match(r);return i?parseFloat(i[i.length-2]):null},os:function(){var t=E;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)?"Android":""},referringDomain:function(t){var e=t.split("/");return e.length>=3?e[2]:""},properties:function(){return C.extend(C.strip_empty_properties({$os:C.info.os(),$browser:C.info.browser(E,k.vendor,x),$referrer:S.referrer,$referring_domain:C.info.referringDomain(S.referrer),$device:C.info.device(E)}),{$current_url:e.location.href,$browser_version:C.info.browserVersion(E,k.vendor,x),$screen_height:O.height,$screen_width:O.width,mp_lib:"web",$lib_version:n.LIB_VERSION,$insert_id:$(),time:C.timestamp()/1e3})},people_properties:function(){return C.extend(C.strip_empty_properties({$os:C.info.os(),$browser:C.info.browser(E,k.vendor,x)}),{$browser_version:C.info.browserVersion(E,k.vendor,x)})},mpPageViewProperties:function(){return C.strip_empty_properties({current_page_title:S.title,current_domain:e.location.hostname,current_url_path:e.location.pathname,current_url_protocol:e.location.protocol,current_url_search:e.location.search})}};var $=function(t){var e=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return t?e.substring(0,t):e},z=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,W=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Z=function(t){var e=W,n=t.split("."),r=n[n.length-1];(r.length>4||"com"===r||"org"===r)&&(e=z);var i=t.match(e);return i?i[0]:""},K=null,J=null;"undefined"!=typeof JSON&&(K=JSON.stringify,J=JSON.parse),K=K||C.JSONEncode,J=J||C.JSONDecode,C.toArray=C.toArray,C.isObject=C.isObject,C.JSONEncode=C.JSONEncode,C.JSONDecode=C.JSONDecode,C.isBlockedUA=C.isBlockedUA,C.isEmptyObject=C.isEmptyObject,C.info=C.info,C.info.device=C.info.device,C.info.browser=C.info.browser,C.info.browserVersion=C.info.browserVersion,C.info.properties=C.info.properties;var G=function(){};G.prototype.create_properties=function(){},G.prototype.event_handler=function(){},G.prototype.after_track_handler=function(){},G.prototype.init=function(t){return this.mp=t,this},G.prototype.track=function(t,e,n,r){var i=this,o=C.dom_query(t);if(0!==o.length)return C.each(o,(function(t){C.register_event(t,this.override_event,(function(t){var o={},s=i.create_properties(n,this),a=i.mp.get_config("track_links_timeout");i.event_handler(t,this,o),window.setTimeout(i.track_callback(r,s,o,!0),a),i.mp.track(e,s,i.track_callback(r,s,o))}))}),this),!0;D.error("The DOM query ("+t+") returned 0 elements")},G.prototype.track_callback=function(t,e,n,r){r=r||!1;var i=this;return function(){n.callback_fired||(n.callback_fired=!0,t&&!1===t(r,e)||i.after_track_handler(e,n,r))}},G.prototype.create_properties=function(t,e){return"function"==typeof t?t(e):C.extend({},t)};var Q=function(){this.override_event="click"};C.inherit(Q,G),Q.prototype.create_properties=function(t,e){var n=Q.superclass.create_properties.apply(this,arguments);return e.href&&(n.url=e.href),n},Q.prototype.event_handler=function(t,e,n){n.new_tab=2===t.which||t.metaKey||t.ctrlKey||"_blank"===e.target,n.href=e.href,n.new_tab||t.preventDefault()},Q.prototype.after_track_handler=function(t,e){e.new_tab||setTimeout((function(){window.location=e.href}),0)};var V=function(){this.override_event="submit"};C.inherit(V,G),V.prototype.event_handler=function(t,e,n){n.element=e,t.preventDefault()},V.prototype.after_track_handler=function(t,e){setTimeout((function(){e.element.submit()}),0)};var Y=q("lock"),X=function(t,e){e=e||{},this.storageKey=t,this.storage=e.storage||window.localStorage,this.pollIntervalMS=e.pollIntervalMS||100,this.timeoutMS=e.timeoutMS||2e3};X.prototype.withLock=function(t,e,n){n||"function"==typeof e||(n=e,e=null);var r=n||(new Date).getTime()+"|"+Math.random(),i=(new Date).getTime(),o=this.storageKey,s=this.pollIntervalMS,a=this.timeoutMS,c=this.storage,u=o+":X",l=o+":Y",p=o+":Z",d=function(t){e&&e(t)},f=function(t){if((new Date).getTime()-i>a)return Y.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+r+"]"),c.removeItem(p),c.removeItem(l),void g();setTimeout((function(){try{t()}catch(t){d(t)}}),s*(Math.random()+.1))},h=function(t,e){t()?e():f((function(){h(t,e)}))},m=function(){var t=c.getItem(l);if(t&&t!==r)return!1;if(c.setItem(l,r),c.getItem(l)===r)return!0;if(!F(c,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){c.setItem(u,r),h(m,(function(){c.getItem(u)!==r?f((function(){c.getItem(l)===r?h((function(){return!c.getItem(p)}),_):g()})):_()}))},_=function(){c.setItem(p,"1");try{t()}finally{c.removeItem(p),c.getItem(l)===r&&c.removeItem(l),c.getItem(u)===r&&c.removeItem(u)}};try{if(!F(c,!0))throw new Error("localStorage support check failed");g()}catch(t){d(t)}};var tt=q("batch"),et=function(t,e){e=e||{},this.storageKey=t,this.storage=e.storage||window.localStorage,this.reportError=e.errorReporter||C.bind(tt.error,tt),this.lock=new X(t,{storage:this.storage}),this.pid=e.pid||null,this.memQueue=[]};et.prototype.enqueue=function(t,e,n){var r={id:$(),flushAfter:(new Date).getTime()+2*e,payload:t};this.lock.withLock(C.bind((function(){var e;try{var i=this.readFromStorage();i.push(r),(e=this.saveToStorage(i))&&this.memQueue.push(r)}catch(n){this.reportError("Error enqueueing item",t),e=!1}n&&n(e)}),this),C.bind((function(t){this.reportError("Error acquiring storage lock",t),n&&n(!1)}),this),this.pid)},et.prototype.fillBatch=function(t){var e=this.memQueue.slice(0,t);if(e.length<t){var n=this.readFromStorage();if(n.length){var r={};C.each(e,(function(t){r[t.id]=!0}));for(var i=0;i<n.length;i++){var o=n[i];if((new Date).getTime()>o.flushAfter&&!r[o.id]&&(o.orphaned=!0,e.push(o),e.length>=t))break}}}return e};var nt=function(t,e){var n=[];return C.each(t,(function(t){t.id&&!e[t.id]&&n.push(t)})),n};et.prototype.removeItemsByID=function(t,e){var n={};C.each(t,(function(t){n[t]=!0})),this.memQueue=nt(this.memQueue,n);var r=C.bind((function(){var e;try{var r=this.readFromStorage();if(r=nt(r,n),e=this.saveToStorage(r)){r=this.readFromStorage();for(var i=0;i<r.length;i++){var o=r[i];if(o.id&&n[o.id])return this.reportError("Item not removed from storage"),!1}}}catch(n){this.reportError("Error removing items",t),e=!1}return e}),this);this.lock.withLock((function(){var t=r();e&&e(t)}),C.bind((function(t){var n=!1;if(this.reportError("Error acquiring storage lock",t),!F(this.storage,!0)&&!(n=r()))try{this.storage.removeItem(this.storageKey)}catch(t){this.reportError("Error clearing queue",t)}e&&e(n)}),this),this.pid)};var rt=function(t,e){var n=[];return C.each(t,(function(t){var r=t.id;if(r in e){var i=e[r];null!==i&&(t.payload=i,n.push(t))}else n.push(t)})),n};et.prototype.updatePayloads=function(t,e){this.memQueue=rt(this.memQueue,t),this.lock.withLock(C.bind((function(){var n;try{var r=this.readFromStorage();r=rt(r,t),n=this.saveToStorage(r)}catch(e){this.reportError("Error updating items",t),n=!1}e&&e(n)}),this),C.bind((function(t){this.reportError("Error acquiring storage lock",t),e&&e(!1)}),this),this.pid)},et.prototype.readFromStorage=function(){var t;try{(t=this.storage.getItem(this.storageKey))&&(t=J(t),C.isArray(t)||(this.reportError("Invalid storage entry:",t),t=null))}catch(e){this.reportError("Error retrieving queue",e),t=null}return t||[]},et.prototype.saveToStorage=function(t){try{return this.storage.setItem(this.storageKey,K(t)),!0}catch(t){return this.reportError("Error saving queue",t),!1}},et.prototype.clear=function(){this.memQueue=[],this.storage.removeItem(this.storageKey)};var it=q("batch"),ot=function(t,e){this.errorReporter=e.errorReporter,this.queue=new et(t,{errorReporter:C.bind(this.reportError,this),storage:e.storage}),this.libConfig=e.libConfig,this.sendRequest=e.sendRequestFunc,this.beforeSendHook=e.beforeSendHook,this.stopAllBatching=e.stopAllBatchingFunc,this.batchSize=this.libConfig.batch_size,this.flushInterval=this.libConfig.batch_flush_interval_ms,this.stopped=!this.libConfig.batch_autostart,this.consecutiveRemovalFailures=0,this.itemIdsSentSuccessfully={}};ot.prototype.enqueue=function(t,e){this.queue.enqueue(t,this.flushInterval,e)},ot.prototype.start=function(){this.stopped=!1,this.consecutiveRemovalFailures=0,this.flush()},ot.prototype.stop=function(){this.stopped=!0,this.timeoutID&&(clearTimeout(this.timeoutID),this.timeoutID=null)},ot.prototype.clear=function(){this.queue.clear()},ot.prototype.resetBatchSize=function(){this.batchSize=this.libConfig.batch_size},ot.prototype.resetFlush=function(){this.scheduleFlush(this.libConfig.batch_flush_interval_ms)},ot.prototype.scheduleFlush=function(t){this.flushInterval=t,this.stopped||(this.timeoutID=setTimeout(C.bind(this.flush,this),this.flushInterval))},ot.prototype.flush=function(t){try{if(this.requestInProgress)return void it.log("Flush: Request already in progress");t=t||{};var e=this.libConfig.batch_request_timeout_ms,r=(new Date).getTime(),i=this.batchSize,o=this.queue.fillBatch(i),s=[],a={};if(C.each(o,(function(t){var e=t.payload;if(this.beforeSendHook&&!t.orphaned&&(e=this.beforeSendHook(e)),e){e.event&&e.properties&&(e.properties=C.extend({},e.properties,{mp_sent_by_lib_version:n.LIB_VERSION}));var r=!0,i=t.id;i?(this.itemIdsSentSuccessfully[i]||0)>5&&(this.reportError("[dupe] item ID sent too many times, not sending",{item:t,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[i]}),r=!1):this.reportError("[dupe] found item with no ID",{item:t}),r&&s.push(e)}a[t.id]=e}),this),s.length<1)return void this.resetFlush();this.requestInProgress=!0;var c=C.bind((function(n){this.requestInProgress=!1;try{var s=!1;if(t.unloading)this.queue.updatePayloads(a);else if(C.isObject(n)&&"timeout"===n.error&&(new Date).getTime()-r>=e)this.reportError("Network timeout; retrying"),this.flush();else if(C.isObject(n)&&n.xhr_req&&(n.xhr_req.status>=500||429===n.xhr_req.status||"timeout"===n.error)){var c=2*this.flushInterval,u=n.xhr_req.responseHeaders;if(u){var l=u["Retry-After"];l&&(c=1e3*parseInt(l,10)||c)}c=Math.min(6e5,c),this.reportError("Error; retry in "+c+" ms"),this.scheduleFlush(c)}else if(C.isObject(n)&&n.xhr_req&&413===n.xhr_req.status)if(o.length>1){var p=Math.max(1,Math.floor(i/2));this.batchSize=Math.min(this.batchSize,p,o.length-1),this.reportError("413 response; reducing batch size to "+this.batchSize),this.resetFlush()}else this.reportError("Single-event request too large; dropping",o),this.resetBatchSize(),s=!0;else s=!0;s&&(this.queue.removeItemsByID(C.map(o,(function(t){return t.id})),C.bind((function(t){t?(this.consecutiveRemovalFailures=0,this.flush()):(this.reportError("Failed to remove items from queue"),++this.consecutiveRemovalFailures>5?(this.reportError("Too many queue failures; disabling batching system."),this.stopAllBatching()):this.resetFlush())}),this)),C.each(o,C.bind((function(t){var e=t.id;e?(this.itemIdsSentSuccessfully[e]=this.itemIdsSentSuccessfully[e]||0,this.itemIdsSentSuccessfully[e]++,this.itemIdsSentSuccessfully[e]>5&&this.reportError("[dupe] item ID sent too many times",{item:t,batchSize:o.length,timesSent:this.itemIdsSentSuccessfully[e]})):this.reportError("[dupe] found item with no ID while removing",{item:t})}),this)))}catch(t){this.reportError("Error handling API response",t),this.resetFlush()}}),this),u={method:"POST",verbose:!0,ignore_json_errors:!0,timeout_ms:e};t.unloading&&(u.transport="sendBeacon"),it.log("MIXPANEL REQUEST:",s),this.sendRequest(s,u,c)}catch(t){this.reportError("Error flushing request queue",t),this.resetFlush()}},ot.prototype.reportError=function(t,e){if(it.error.apply(it.error,arguments),this.errorReporter)try{e instanceof Error||(e=new Error(t)),this.errorReporter(t,e)}catch(e){it.error(e)}};var st="__mp_opt_in_out_";function at(t,e){vt(!0,t,e)}function ct(t,e){vt(!1,t,e)}function ut(t,e){return"1"===_t(t,e)}function lt(t,n){if(function(t){if(t&&t.ignoreDnt)return!1;var n=t&&t.window||e,r=n.navigator||{},i=!1;return C.each([r.doNotTrack,r.msDoNotTrack,n.doNotTrack],(function(t){C.includes([!0,1,"1","yes"],t)&&(i=!0)})),i}(n))return D.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),!0;var r="0"===_t(t,n);return r&&D.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data."),r}function pt(t){return yt(t,(function(t){return this.get_config(t)}))}function dt(t){return yt(t,(function(t){return this._get_config(t)}))}function ft(t){return yt(t,(function(t){return this._get_config(t)}))}function ht(t,e){mt(e=e||{}).remove(gt(t,e),!!e.crossSubdomainCookie,e.cookieDomain)}function mt(t){return"localStorage"===(t=t||{}).persistenceType?C.localStorage:C.cookie}function gt(t,e){return((e=e||{}).persistencePrefix||st)+t}function _t(t,e){return mt(e).get(gt(t,e))}function vt(t,e,n){C.isString(e)&&e.length?(mt(n=n||{}).set(gt(e,n),t?1:0,C.isNumber(n.cookieExpiration)?n.cookieExpiration:null,!!n.crossSubdomainCookie,!!n.secureCookie,!!n.crossSiteCookie,n.cookieDomain),n.track&&t&&n.track(n.trackEventName||"$opt_in",n.trackProperties,{send_immediately:!0})):D.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function yt(t,e){return function(){var n=!1;try{var r=e.call(this,"token"),i=e.call(this,"ignore_dnt"),o=e.call(this,"opt_out_tracking_persistence_type"),s=e.call(this,"opt_out_tracking_cookie_prefix"),a=e.call(this,"window");r&&(n=lt(r,{ignoreDnt:i,persistenceType:o,persistencePrefix:s,window:a}))}catch(t){D.error("Unexpected error when checking tracking opt-out status: "+t)}if(!n)return t.apply(this,arguments);var c=arguments[arguments.length-1];"function"==typeof c&&c(0)}}var bt="$set",wt="$set_once",kt="$unset",St="$add",xt="$append",Ot="$union",Et="$remove",Pt={set_action:function(t,e){var n={},r={};return C.isObject(t)?C.each(t,(function(t,e){this._is_reserved_property(e)||(r[e]=t)}),this):r[t]=e,n[bt]=r,n},unset_action:function(t){var e={},n=[];return C.isArray(t)||(t=[t]),C.each(t,(function(t){this._is_reserved_property(t)||n.push(t)}),this),e[kt]=n,e},set_once_action:function(t,e){var n={},r={};return C.isObject(t)?C.each(t,(function(t,e){this._is_reserved_property(e)||(r[e]=t)}),this):r[t]=e,n[wt]=r,n},union_action:function(t,e){var n={},r={};return C.isObject(t)?C.each(t,(function(t,e){this._is_reserved_property(e)||(r[e]=C.isArray(t)?t:[t])}),this):r[t]=C.isArray(e)?e:[e],n[Ot]=r,n},append_action:function(t,e){var n={},r={};return C.isObject(t)?C.each(t,(function(t,e){this._is_reserved_property(e)||(r[e]=t)}),this):r[t]=e,n[xt]=r,n},remove_action:function(t,e){var n={},r={};return C.isObject(t)?C.each(t,(function(t,e){this._is_reserved_property(e)||(r[e]=t)}),this):r[t]=e,n[Et]=r,n},delete_action:function(){var t={$delete:""};return t}},jt=function(){};C.extend(jt.prototype,Pt),jt.prototype._init=function(t,e,n){this._mixpanel=t,this._group_key=e,this._group_id=n},jt.prototype.set=ft((function(t,e,n){var r=this.set_action(t,e);return C.isObject(t)&&(n=e),this._send_request(r,n)})),jt.prototype.set_once=ft((function(t,e,n){var r=this.set_once_action(t,e);return C.isObject(t)&&(n=e),this._send_request(r,n)})),jt.prototype.unset=ft((function(t,e){var n=this.unset_action(t);return this._send_request(n,e)})),jt.prototype.union=ft((function(t,e,n){C.isObject(t)&&(n=e);var r=this.union_action(t,e);return this._send_request(r,n)})),jt.prototype.delete=ft((function(t){var e=this.delete_action();return this._send_request(e,t)})),jt.prototype.remove=ft((function(t,e,n){var r=this.remove_action(t,e);return this._send_request(r,n)})),jt.prototype._send_request=function(t,e){t.$group_key=this._group_key,t.$group_id=this._group_id,t.$token=this._get_config("token");var n=C.encodeDates(t);return this._mixpanel._track_or_batch({type:"groups",data:n,endpoint:this._get_config("api_host")+"/groups/",batcher:this._mixpanel.request_batchers.groups},e)},jt.prototype._is_reserved_property=function(t){return"$group_key"===t||"$group_id"===t},jt.prototype._get_config=function(t){return this._mixpanel.get_config(t)},jt.prototype.toString=function(){return this._mixpanel.toString()+".group."+this._group_key+"."+this._group_id},jt.prototype.remove=jt.prototype.remove,jt.prototype.set=jt.prototype.set,jt.prototype.set_once=jt.prototype.set_once,jt.prototype.union=jt.prototype.union,jt.prototype.unset=jt.prototype.unset,jt.prototype.toString=jt.prototype.toString;var It=function(){};C.extend(It.prototype,Pt),It.prototype._init=function(t){this._mixpanel=t},It.prototype.set=dt((function(t,e,n){var r=this.set_action(t,e);return C.isObject(t)&&(n=e),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(document.referrer),r[bt]=C.extend({},C.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),r[bt]),this._send_request(r,n)})),It.prototype.set_once=dt((function(t,e,n){var r=this.set_once_action(t,e);return C.isObject(t)&&(n=e),this._send_request(r,n)})),It.prototype.unset=dt((function(t,e){var n=this.unset_action(t);return this._send_request(n,e)})),It.prototype.increment=dt((function(t,e,n){var r={},i={};return C.isObject(t)?(C.each(t,(function(t,e){if(!this._is_reserved_property(e)){if(isNaN(parseFloat(t)))return void D.error("Invalid increment value passed to mixpanel.people.increment - must be a number");i[e]=t}}),this),n=e):(C.isUndefined(e)&&(e=1),i[t]=e),r[St]=i,this._send_request(r,n)})),It.prototype.append=dt((function(t,e,n){C.isObject(t)&&(n=e);var r=this.append_action(t,e);return this._send_request(r,n)})),It.prototype.remove=dt((function(t,e,n){C.isObject(t)&&(n=e);var r=this.remove_action(t,e);return this._send_request(r,n)})),It.prototype.union=dt((function(t,e,n){C.isObject(t)&&(n=e);var r=this.union_action(t,e);return this._send_request(r,n)})),It.prototype.track_charge=dt((function(t,e,n){if(C.isNumber(t)||(t=parseFloat(t),!isNaN(t)))return this.append("$transactions",C.extend({$amount:t},e),n);D.error("Invalid value passed to mixpanel.people.track_charge - must be a number")})),It.prototype.clear_charges=function(t){return this.set("$transactions",[],t)},It.prototype.delete_user=function(){if(this._identify_called()){var t={$delete:this._mixpanel.get_distinct_id()};return this._send_request(t)}D.error("mixpanel.people.delete_user() requires you to call identify() first")},It.prototype.toString=function(){return this._mixpanel.toString()+".people"},It.prototype._send_request=function(t,e){t.$token=this._get_config("token"),t.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),i=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(t.$device_id=n),r&&(t.$user_id=r),i&&(t.$had_persisted_distinct_id=i);var o=C.encodeDates(t);return this._identify_called()?this._mixpanel._track_or_batch({type:"people",data:o,endpoint:this._get_config("api_host")+"/engage/",batcher:this._mixpanel.request_batchers.people},e):(this._enqueue(t),C.isUndefined(e)||(this._get_config("verbose")?e({status:-1,error:null}):e(-1)),C.truncate(o,255))},It.prototype._get_config=function(t){return this._mixpanel.get_config(t)},It.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},It.prototype._enqueue=function(t){bt in t?this._mixpanel.persistence._add_to_people_queue(bt,t):wt in t?this._mixpanel.persistence._add_to_people_queue(wt,t):kt in t?this._mixpanel.persistence._add_to_people_queue(kt,t):St in t?this._mixpanel.persistence._add_to_people_queue(St,t):xt in t?this._mixpanel.persistence._add_to_people_queue(xt,t):Et in t?this._mixpanel.persistence._add_to_people_queue(Et,t):Ot in t?this._mixpanel.persistence._add_to_people_queue(Ot,t):D.error("Invalid call to _enqueue():",t)},It.prototype._flush_one_queue=function(t,e,n,r){var i=this,o=C.extend({},this._mixpanel.persistence._get_queue(t)),s=o;C.isUndefined(o)||!C.isObject(o)||C.isEmptyObject(o)||(i._mixpanel.persistence._pop_from_people_queue(t,o),r&&(s=r(o)),e.call(i,s,(function(e,r){0===e&&i._mixpanel.persistence._add_to_people_queue(t,o),C.isUndefined(n)||n(e,r)})))},It.prototype._flush=function(t,e,n,r,i,o,s){var a=this,c=this._mixpanel.persistence._get_queue(xt),u=this._mixpanel.persistence._get_queue(Et);if(this._flush_one_queue(bt,this.set,t),this._flush_one_queue(wt,this.set_once,r),this._flush_one_queue(kt,this.unset,o,(function(t){return C.keys(t)})),this._flush_one_queue(St,this.increment,e),this._flush_one_queue(Ot,this.union,i),!C.isUndefined(c)&&C.isArray(c)&&c.length){for(var l,p=function(t,e){0===t&&a._mixpanel.persistence._add_to_people_queue(xt,l),C.isUndefined(n)||n(t,e)},d=c.length-1;d>=0;d--)l=c.pop(),C.isEmptyObject(l)||a.append(l,p);a._mixpanel.persistence.save()}if(!C.isUndefined(u)&&C.isArray(u)&&u.length){for(var f,h=function(t,e){0===t&&a._mixpanel.persistence._add_to_people_queue(Et,f),C.isUndefined(s)||s(t,e)},m=u.length-1;m>=0;m--)f=u.pop(),C.isEmptyObject(f)||a.remove(f,h);a._mixpanel.persistence.save()}},It.prototype._is_reserved_property=function(t){return"$distinct_id"===t||"$token"===t||"$device_id"===t||"$user_id"===t||"$had_persisted_distinct_id"===t},It.prototype.set=It.prototype.set,It.prototype.set_once=It.prototype.set_once,It.prototype.unset=It.prototype.unset,It.prototype.increment=It.prototype.increment,It.prototype.append=It.prototype.append,It.prototype.remove=It.prototype.remove,It.prototype.union=It.prototype.union,It.prototype.track_charge=It.prototype.track_charge,It.prototype.clear_charges=It.prototype.clear_charges,It.prototype.delete_user=It.prototype.delete_user,It.prototype.toString=It.prototype.toString;var At,Bt,Tt="__mps",Ct="__mpso",Dt="__mpus",Lt="__mpa",qt="__mpap",Mt="__mpr",Ut="__mpu",Ft="$people_distinct_id",Rt="__alias",Nt="__timers",Ht=[Tt,Ct,Dt,Lt,qt,Mt,Ut,Ft,Rt,Nt],$t=function(t){this.props={},this.campaign_params_saved=!1,t.persistence_name?this.name="mp_"+t.persistence_name:this.name="mp_"+t.token+"_mixpanel";var e=t.persistence;"cookie"!==e&&"localStorage"!==e&&(D.critical("Unknown persistence type "+e+"; falling back to cookie"),e=t.persistence="cookie"),"localStorage"===e&&C.localStorage.is_supported()?this.storage=C.localStorage:this.storage=C.cookie,this.load(),this.update_config(t),this.upgrade(t),this.save()};$t.prototype.properties=function(){var t={};return C.each(this.props,(function(e,n){C.include(Ht,n)||(t[n]=e)})),t},$t.prototype.load=function(){if(!this.disabled){var t=this.storage.parse(this.name);t&&(this.props=C.extend({},t))}},$t.prototype.upgrade=function(t){var e,n,r=t.upgrade;r&&(e="mp_super_properties","string"==typeof r&&(e=r),n=this.storage.parse(e),this.storage.remove(e),this.storage.remove(e,!0),n&&(this.props=C.extend(this.props,n.all,n.events))),t.cookie_name||"mixpanel"===t.name||(e="mp_"+t.token+"_"+t.name,(n=this.storage.parse(e))&&(this.storage.remove(e),this.storage.remove(e,!0),this.register_once(n))),this.storage===C.localStorage&&(n=C.cookie.parse(this.name),C.cookie.remove(this.name),C.cookie.remove(this.name,!0),n&&this.register_once(n))},$t.prototype.save=function(){this.disabled||this.storage.set(this.name,C.JSONEncode(this.props),this.expire_days,this.cross_subdomain,this.secure,this.cross_site,this.cookie_domain)},$t.prototype.remove=function(){this.storage.remove(this.name,!1,this.cookie_domain),this.storage.remove(this.name,!0,this.cookie_domain)},$t.prototype.clear=function(){this.remove(),this.props={}},$t.prototype.register_once=function(t,e,n){return!!C.isObject(t)&&(void 0===e&&(e="None"),this.expire_days=void 0===n?this.default_expiry:n,C.each(t,(function(t,n){this.props.hasOwnProperty(n)&&this.props[n]!==e||(this.props[n]=t)}),this),this.save(),!0)},$t.prototype.register=function(t,e){return!!C.isObject(t)&&(this.expire_days=void 0===e?this.default_expiry:e,C.extend(this.props,t),this.save(),!0)},$t.prototype.unregister=function(t){t in this.props&&(delete this.props[t],this.save())},$t.prototype.update_search_keyword=function(t){this.register(C.info.searchInfo(t))},$t.prototype.update_referrer_info=function(t){this.register_once({$initial_referrer:t||"$direct",$initial_referring_domain:C.info.referringDomain(t)||"$direct"},"")},$t.prototype.get_referrer_info=function(){return C.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},$t.prototype.safe_merge=function(t){return C.each(this.props,(function(e,n){n in t||(t[n]=e)})),t},$t.prototype.update_config=function(t){this.default_expiry=this.expire_days=t.cookie_expiration,this.set_disabled(t.disable_persistence),this.set_cookie_domain(t.cookie_domain),this.set_cross_site(t.cross_site_cookie),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie)},$t.prototype.set_disabled=function(t){this.disabled=t,this.disabled?this.remove():this.save()},$t.prototype.set_cookie_domain=function(t){t!==this.cookie_domain&&(this.remove(),this.cookie_domain=t,this.save())},$t.prototype.set_cross_site=function(t){t!==this.cross_site&&(this.cross_site=t,this.remove(),this.save())},$t.prototype.set_cross_subdomain=function(t){t!==this.cross_subdomain&&(this.cross_subdomain=t,this.remove(),this.save())},$t.prototype.get_cross_subdomain=function(){return this.cross_subdomain},$t.prototype.set_secure=function(t){t!==this.secure&&(this.secure=!!t,this.remove(),this.save())},$t.prototype._add_to_people_queue=function(t,e){var n=this._get_queue_key(t),r=e[t],i=this._get_or_create_queue(bt),o=this._get_or_create_queue(wt),s=this._get_or_create_queue(kt),a=this._get_or_create_queue(St),c=this._get_or_create_queue(Ot),u=this._get_or_create_queue(Et,[]),l=this._get_or_create_queue(xt,[]);n===Tt?(C.extend(i,r),this._pop_from_people_queue(St,r),this._pop_from_people_queue(Ot,r),this._pop_from_people_queue(kt,r)):n===Ct?(C.each(r,(function(t,e){e in o||(o[e]=t)})),this._pop_from_people_queue(kt,r)):n===Dt?C.each(r,(function(t){C.each([i,o,a,c],(function(e){t in e&&delete e[t]})),C.each(l,(function(e){t in e&&delete e[t]})),s[t]=!0})):n===Lt?(C.each(r,(function(t,e){e in i?i[e]+=t:(e in a||(a[e]=0),a[e]+=t)}),this),this._pop_from_people_queue(kt,r)):n===Ut?(C.each(r,(function(t,e){C.isArray(t)&&(e in c||(c[e]=[]),c[e]=c[e].concat(t))})),this._pop_from_people_queue(kt,r)):n===Mt?(u.push(r),this._pop_from_people_queue(xt,r)):n===qt&&(l.push(r),this._pop_from_people_queue(kt,r)),D.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),D.log(e),this.save()},$t.prototype._pop_from_people_queue=function(t,e){var n=this._get_queue(t);C.isUndefined(n)||(C.each(e,(function(e,r){t===xt||t===Et?C.each(n,(function(t){t[r]===e&&delete t[r]})):delete n[r]}),this),this.save())},$t.prototype._get_queue_key=function(t){return t===bt?Tt:t===wt?Ct:t===kt?Dt:t===St?Lt:t===xt?qt:t===Et?Mt:t===Ot?Ut:void D.error("Invalid queue:",t)},$t.prototype._get_queue=function(t){return this.props[this._get_queue_key(t)]},$t.prototype._get_or_create_queue=function(t,e){var n=this._get_queue_key(t);return e=C.isUndefined(e)?{}:e,this.props[n]||(this.props[n]=e)},$t.prototype.set_event_timer=function(t,e){var n=this.props[Nt]||{};n[t]=e,this.props[Nt]=n,this.save()},$t.prototype.remove_event_timer=function(t){var e=(this.props[Nt]||{})[t];return C.isUndefined(e)||(delete this.props[Nt][t],this.save()),e};var zt=function(t){return t},Wt=function(){},Zt="mixpanel",Kt="base64",Jt="$device:",Gt=e.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Qt=!Gt&&-1===E.indexOf("MSIE")&&-1===E.indexOf("Mozilla"),Vt=null;k.sendBeacon&&(Vt=function(){return k.sendBeacon.apply(k,arguments)});var Yt={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",api_payload_format:Kt,app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:!1,cross_subdomain_cookie:!0,error_reporter:Wt,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Wt,track_marketing:!0,track_pageview:!1,skip_first_touch_marketing:!1,store_google:!0,save_referrer:!0,test:!1,verbose:!1,img:!1,debug:!1,track_links_timeout:300,cookie_expiration:365,upgrade:!1,disable_persistence:!1,disable_cookie:!1,secure_cookie:!1,ip:!0,opt_out_tracking_by_default:!1,opt_out_persistence_by_default:!1,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:null,property_blacklist:[],xhr_headers:{},ignore_dnt:!1,batch_requests:!0,batch_size:50,batch_flush_interval_ms:5e3,batch_request_timeout_ms:9e4,batch_autostart:!0,hooks:{}},Xt=!1,te=function(){},ee=function(t,e,r){var i,o=r===Zt?Bt:Bt[r];if(o&&0===At)i=o;else{if(o&&!C.isArray(o))return void D.error("You have already initialized "+r);i=new te}if(i._cached_groups={},i._init(t,e,r),i.people=new It,i.people._init(i),!i.get_config("skip_first_touch_marketing")){var s=C.info.campaignParams(null),a={},c=!1;C.each(s,(function(t,e){a["initial_"+e]=t,t&&(c=!0)})),c&&i.people.set_once(a)}return n.DEBUG=n.DEBUG||i.get_config("debug"),!C.isUndefined(o)&&C.isArray(o)&&(i._execute_array.call(i.people,o.people),i._execute_array(o)),i};te.prototype.init=function(t,e,n){if(C.isUndefined(n))this.report_error("You must name your new library: init(token, config, name)");else{if(n!==Zt){var r=ee(t,e,n);return Bt[n]=r,r._loaded(),r}this.report_error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},te.prototype._init=function(t,n,r){n=n||{},this.__loaded=!0,this.config={};var i={};"api_payload_format"in n||(n.api_host||Yt.api_host).match(/\.mixpanel\.com/)&&(i.api_payload_format="json");if(this.set_config(C.extend({},Yt,i,n,{name:r,token:t,callback_fn:(r===Zt?r:Zt+"."+r)+"._jsc"})),this._jsc=Wt,this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.request_batchers={},this._batch_requests=this.get_config("batch_requests"),this._batch_requests)if(C.localStorage.is_supported(!0)&&Gt){if(this.init_batchers(),Vt&&e.addEventListener){var o=C.bind((function(){this.request_batchers.events.stopped||this.request_batchers.events.flush({unloading:!0})}),this);e.addEventListener("pagehide",(function(t){t.persisted&&o()})),e.addEventListener("visibilitychange",(function(){"hidden"===S.visibilityState&&o()}))}}else this._batch_requests=!1,D.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");this.persistence=this.cookie=new $t(this.config),this.unpersisted_superprops={},this._gdpr_init();var s=C.UUID();this.get_distinct_id()||this.register_once({distinct_id:Jt+s,$device_id:s},""),this.get_config("track_pageview")&&this.track_pageview()},te.prototype._loaded=function(){this.get_config("loaded")(this),this._set_default_superprops()},te.prototype._set_default_superprops=function(){this.persistence.update_search_keyword(S.referrer),this.get_config("store_google")&&this.register(C.info.campaignParams(),{persistent:!1}),this.get_config("save_referrer")&&this.persistence.update_referrer_info(S.referrer)},te.prototype._dom_loaded=function(){C.each(this.__dom_loaded_queue,(function(t){this._track_dom.apply(this,t)}),this),this.has_opted_out_tracking()||C.each(this.__request_queue,(function(t){this._send_request.apply(this,t)}),this),delete this.__dom_loaded_queue,delete this.__request_queue},te.prototype._track_dom=function(t,e){if(this.get_config("img"))return this.report_error("You can't use DOM tracking functions with img = true."),!1;if(!Xt)return this.__dom_loaded_queue.push([t,e]),!1;var n=(new t).init(this);return n.track.apply(n,e)},te.prototype._prepare_callback=function(t,e){if(C.isUndefined(t))return null;if(Gt){return function(n){t(n,e)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),i=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(i){delete n[r],t(i,e)},i},te.prototype._send_request=function(t,e,n,r){var i=!0;if(Qt)return this.__request_queue.push(arguments),i;var o={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")},s=null;r||!C.isFunction(n)&&"string"!=typeof n||(r=n,n=null),n=C.extend(o,n||{}),Gt||(n.method="GET");var a="POST"===n.method,c=Vt&&a&&"sendbeacon"===n.transport.toLowerCase(),u=n.verbose;e.verbose&&(u=!0),this.get_config("test")&&(e.test=1),u&&(e.verbose=1),this.get_config("img")&&(e.img=1),Gt||(r?e.callback=r:(u||this.get_config("test"))&&(e.callback="(function(){})")),e.ip=this.get_config("ip")?1:0,e._=(new Date).getTime().toString(),a&&(s="data="+encodeURIComponent(e.data),delete e.data),t+="?"+C.HTTPBuildQuery(e);var l=this;if("img"in e){var p=S.createElement("img");p.src=t,S.body.appendChild(p)}else if(c){try{i=Vt(t,s)}catch(t){l.report_error(t),i=!1}try{r&&r(i?1:0)}catch(t){l.report_error(t)}}else if(Gt)try{var d=new XMLHttpRequest;d.open(n.method,t,!0);var f=this.get_config("xhr_headers");if(a&&(f["Content-Type"]="application/x-www-form-urlencoded"),C.each(f,(function(t,e){d.setRequestHeader(e,t)})),n.timeout_ms&&void 0!==d.timeout){d.timeout=n.timeout_ms;var h=(new Date).getTime()}d.withCredentials=!0,d.onreadystatechange=function(){var t;if(4===d.readyState)if(200===d.status){if(r)if(u){var e;try{e=C.JSONDecode(d.responseText)}catch(t){if(l.report_error(t),!n.ignore_json_errors)return;e=d.responseText}r(e)}else r(Number(d.responseText))}else t=d.timeout&&!d.status&&(new Date).getTime()-h>=d.timeout?"timeout":"Bad HTTP status: "+d.status+" "+d.statusText,l.report_error(t),r&&r(u?{status:0,error:t,xhr_req:d}:0)},d.send(s)}catch(t){l.report_error(t),i=!1}else{var m=S.createElement("script");m.type="text/javascript",m.async=!0,m.defer=!0,m.src=t;var g=S.getElementsByTagName("script")[0];g.parentNode.insertBefore(m,g)}return i},te.prototype._execute_array=function(t){var e,n=[],r=[],i=[];C.each(t,(function(t){t&&(e=t[0],C.isArray(e)?i.push(t):"function"==typeof t?t.call(this):C.isArray(t)&&"alias"===e?n.push(t):C.isArray(t)&&-1!==e.indexOf("track")&&"function"==typeof this[e]?i.push(t):r.push(t))}),this);var o=function(t,e){C.each(t,(function(t){if(C.isArray(t[0])){var n=e;C.each(t,(function(t){n=n[t[0]].apply(n,t.slice(1))}))}else this[t[0]].apply(this,t.slice(1))}),e)};o(n,this),o(r,this),o(i,this)},te.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},te.prototype.init_batchers=function(){var t=this.get_config("token");if(!this.are_batchers_initialized()){var e=C.bind((function(e){return new ot("__mpq_"+t+e.queue_suffix,{libConfig:this.config,sendRequestFunc:C.bind((function(t,n,r){this._send_request(this.get_config("api_host")+e.endpoint,this._encode_data_for_request(t),n,this._prepare_callback(r,t))}),this),beforeSendHook:C.bind((function(t){return this._run_hook("before_send_"+e.type,t)}),this),errorReporter:this.get_config("error_reporter"),stopAllBatchingFunc:C.bind(this.stop_batch_senders,this)})}),this);this.request_batchers={events:e({type:"events",endpoint:"/track/",queue_suffix:"_ev"}),people:e({type:"people",endpoint:"/engage/",queue_suffix:"_pp"}),groups:e({type:"groups",endpoint:"/groups/",queue_suffix:"_gr"})}}this.get_config("batch_autostart")&&this.start_batch_senders()},te.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,C.each(this.request_batchers,(function(t){t.start()})))},te.prototype.stop_batch_senders=function(){this._batch_requests=!1,C.each(this.request_batchers,(function(t){t.stop(),t.clear()}))},te.prototype.push=function(t){this._execute_array([t])},te.prototype.disable=function(t){void 0===t?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(t)},te.prototype._encode_data_for_request=function(t){var e=C.JSONEncode(t);return this.get_config("api_payload_format")===Kt&&(e=C.base64Encode(e)),{data:e}},te.prototype._track_or_batch=function(t,e){var n=C.truncate(t.data,255),r=t.endpoint,i=t.batcher,o=t.should_send_immediately,s=t.send_request_options||{};e=e||Wt;var a=!0,c=C.bind((function(){return s.skip_hooks||(n=this._run_hook("before_send_"+t.type,n)),n?(D.log("MIXPANEL REQUEST:"),D.log(n),this._send_request(r,this._encode_data_for_request(n),s,this._prepare_callback(e,n))):null}),this);return this._batch_requests&&!o?i.enqueue(n,(function(t){t?e(1,n):c()})):a=c(),a&&n},te.prototype.track=pt((function(t,e,n,r){r||"function"!=typeof n||(r=n,n=null);var i=(n=n||{}).transport;i&&(n.transport=i);var o=n.send_immediately;if("function"!=typeof r&&(r=Wt),C.isUndefined(t))this.report_error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(t)){(e=e||{}).token=this.get_config("token");var s=this.persistence.remove_event_timer(t);if(!C.isUndefined(s)){var a=(new Date).getTime()-s;e.$duration=parseFloat((a/1e3).toFixed(3))}this._set_default_superprops();var c=this.get_config("track_marketing")?C.info.marketingParams():{};e=C.extend({},C.info.properties(),c,this.persistence.properties(),this.unpersisted_superprops,e);var u=this.get_config("property_blacklist");C.isArray(u)?C.each(u,(function(t){delete e[t]})):this.report_error("Invalid value for property_blacklist config: "+u);var l={event:t,properties:e};return this._track_or_batch({type:"events",data:l,endpoint:this.get_config("api_host")+"/track/",batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:n},r)}r(0)}})),te.prototype.set_group=pt((function(t,e,n){C.isArray(e)||(e=[e]);var r={};return r[t]=e,this.register(r),this.people.set(t,e,n)})),te.prototype.add_group=pt((function(t,e,n){var r=this.get_property(t);if(void 0===r){var i={};i[t]=[e],this.register(i)}else-1===r.indexOf(e)&&(r.push(e),this.register(i));return this.people.union(t,e,n)})),te.prototype.remove_group=pt((function(t,e,n){var r=this.get_property(t);if(void 0!==r){var i=r.indexOf(e);i>-1&&(r.splice(i,1),this.register({group_key:r})),0===r.length&&this.unregister(t)}return this.people.remove(t,e,n)})),te.prototype.track_with_groups=pt((function(t,e,n,r){var i=C.extend({},e||{});return C.each(n,(function(t,e){null!=t&&(i[e]=t)})),this.track(t,i,r)})),te.prototype._create_map_key=function(t,e){return t+"_"+JSON.stringify(e)},te.prototype._remove_group_from_cache=function(t,e){delete this._cached_groups[this._create_map_key(t,e)]},te.prototype.get_group=function(t,e){var n=this._create_map_key(t,e),r=this._cached_groups[n];return void 0!==r&&r._group_key===t&&r._group_id===e||((r=new jt)._init(this,t,e),this._cached_groups[n]=r),r},te.prototype.track_pageview=pt((function(t,e){"object"!=typeof t&&(t={});var n=(e=e||{}).event_name||"$mp_web_page_view",r=C.extend(C.info.mpPageViewProperties(),C.info.campaignParams(),C.info.clickParams()),i=C.extend({},r,t);return this.track(n,i)})),te.prototype.track_links=function(){return this._track_dom.call(this,Q,arguments)},te.prototype.track_forms=function(){return this._track_dom.call(this,V,arguments)},te.prototype.time_event=function(t){C.isUndefined(t)?this.report_error("No event name provided to mixpanel.time_event"):this._event_is_disabled(t)||this.persistence.set_event_timer(t,(new Date).getTime())};var ne={persistent:!0},re=function(t){var e;return e=C.isObject(t)?t:C.isUndefined(t)?{}:{days:t},C.extend({},ne,e)};te.prototype.register=function(t,e){var n=re(e);n.persistent?this.persistence.register(t,n.days):C.extend(this.unpersisted_superprops,t)},te.prototype.register_once=function(t,e,n){var r=re(n);r.persistent?this.persistence.register_once(t,e,r.days):(void 0===e&&(e="None"),C.each(t,(function(t,n){this.unpersisted_superprops.hasOwnProperty(n)&&this.unpersisted_superprops[n]!==e||(this.unpersisted_superprops[n]=t)}),this))},te.prototype.unregister=function(t,e){(e=re(e)).persistent?this.persistence.unregister(t):delete this.unpersisted_superprops[t]},te.prototype._register_single=function(t,e){var n={};n[t]=e,this.register(n)},te.prototype.identify=function(t,e,n,r,i,o,s,a){var c=this.get_distinct_id();if(t&&c!==t){if("string"==typeof t&&0===t.indexOf(Jt))return this.report_error("distinct_id cannot have $device: prefix"),-1;this.register({$user_id:t})}if(!this.get_property("$device_id")){var u=c;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}t!==c&&t!==this.get_property(Rt)&&(this.unregister(Rt),this.register({distinct_id:t})),this._flags.identify_called=!0,this.people._flush(e,n,r,i,o,s,a),t!==c&&this.track("$identify",{distinct_id:t,$anon_distinct_id:c},{skip_hooks:!0})},te.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var t=C.UUID();this.register_once({distinct_id:Jt+t,$device_id:t},"")},te.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},te.prototype.alias=function(t,e){if(t===this.get_property(Ft))return this.report_error("Attempting to create alias for existing People user - aborting."),-2;var n=this;return C.isUndefined(e)&&(e=this.get_distinct_id()),t!==e?(this._register_single(Rt,t),this.track("$create_alias",{alias:t,distinct_id:e},{skip_hooks:!0},(function(){n.identify(t)}))):(this.report_error("alias matches current distinct_id - skipping api call."),this.identify(t),-1)},te.prototype.name_tag=function(t){this._register_single("mp_name_tag",t)},te.prototype.set_config=function(t){C.isObject(t)&&(C.extend(this.config,t),t.batch_size&&C.each(this.request_batchers,(function(t){t.resetBatchSize()})),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),n.DEBUG=n.DEBUG||this.get_config("debug"))},te.prototype.get_config=function(t){return this.config[t]},te.prototype._run_hook=function(t){var e=(this.config.hooks[t]||zt).apply(this,v.call(arguments,1));return void 0===e&&(this.report_error(t+" hook did not return a value"),e=null),e},te.prototype.get_property=function(t){return this.persistence.props[t]},te.prototype.toString=function(){var t=this.get_config("name");return t!==Zt&&(t=Zt+"."+t),t},te.prototype._event_is_disabled=function(t){return C.isBlockedUA(E)||this._flags.disable_all_events||C.include(this.__disabled_events,t)},te.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&C.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!C.cookie.get("mp_optout")||(C.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},te.prototype._gdpr_update_persistence=function(t){var e;if(t&&t.clear_persistence)e=!0;else{if(!t||!t.enable_persistence)return;e=!1}this.get_config("disable_persistence")||this.persistence.disabled===e||this.persistence.set_disabled(e),e&&C.each(this.request_batchers,(function(t){t.clear()}))},te.prototype._gdpr_call_func=function(t,e){return e=C.extend({track:C.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_site_cookie:this.get_config("cross_site_cookie"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),cookie_domain:this.get_config("cookie_domain"),secure_cookie:this.get_config("secure_cookie"),ignore_dnt:this.get_config("ignore_dnt")},e),C.localStorage.is_supported()||(e.persistence_type="cookie"),t(this.get_config("token"),{track:e.track,trackEventName:e.track_event_name,trackProperties:e.track_properties,persistenceType:e.persistence_type,persistencePrefix:e.cookie_prefix,cookieDomain:e.cookie_domain,cookieExpiration:e.cookie_expiration,crossSiteCookie:e.cross_site_cookie,crossSubdomainCookie:e.cross_subdomain_cookie,secureCookie:e.secure_cookie,ignoreDnt:e.ignore_dnt})},te.prototype.opt_in_tracking=function(t){t=C.extend({enable_persistence:!0},t),this._gdpr_call_func(at,t),this._gdpr_update_persistence(t)},te.prototype.opt_out_tracking=function(t){(t=C.extend({clear_persistence:!0,delete_user:!0},t)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(ct,t),this._gdpr_update_persistence(t)},te.prototype.has_opted_in_tracking=function(t){return this._gdpr_call_func(ut,t)},te.prototype.has_opted_out_tracking=function(t){return this._gdpr_call_func(lt,t)},te.prototype.clear_opt_in_out_tracking=function(t){t=C.extend({enable_persistence:!0},t),this._gdpr_call_func(ht,t),this._gdpr_update_persistence(t)},te.prototype.report_error=function(t,e){D.error.apply(D.error,arguments);try{e||t instanceof Error||(t=new Error(t)),this.get_config("error_reporter")(t,e)}catch(e){D.error(e)}},te.prototype.init=te.prototype.init,te.prototype.reset=te.prototype.reset,te.prototype.disable=te.prototype.disable,te.prototype.time_event=te.prototype.time_event,te.prototype.track=te.prototype.track,te.prototype.track_links=te.prototype.track_links,te.prototype.track_forms=te.prototype.track_forms,te.prototype.track_pageview=te.prototype.track_pageview,te.prototype.register=te.prototype.register,te.prototype.register_once=te.prototype.register_once,te.prototype.unregister=te.prototype.unregister,te.prototype.identify=te.prototype.identify,te.prototype.alias=te.prototype.alias,te.prototype.name_tag=te.prototype.name_tag,te.prototype.set_config=te.prototype.set_config,te.prototype.get_config=te.prototype.get_config,te.prototype.get_property=te.prototype.get_property,te.prototype.get_distinct_id=te.prototype.get_distinct_id,te.prototype.toString=te.prototype.toString,te.prototype.opt_out_tracking=te.prototype.opt_out_tracking,te.prototype.opt_in_tracking=te.prototype.opt_in_tracking,te.prototype.has_opted_out_tracking=te.prototype.has_opted_out_tracking,te.prototype.has_opted_in_tracking=te.prototype.has_opted_in_tracking,te.prototype.clear_opt_in_out_tracking=te.prototype.clear_opt_in_out_tracking,te.prototype.get_group=te.prototype.get_group,te.prototype.set_group=te.prototype.set_group,te.prototype.add_group=te.prototype.add_group,te.prototype.remove_group=te.prototype.remove_group,te.prototype.track_with_groups=te.prototype.track_with_groups,te.prototype.start_batch_senders=te.prototype.start_batch_senders,te.prototype.stop_batch_senders=te.prototype.stop_batch_senders,$t.prototype.properties=$t.prototype.properties,$t.prototype.update_search_keyword=$t.prototype.update_search_keyword,$t.prototype.update_referrer_info=$t.prototype.update_referrer_info,$t.prototype.get_cross_subdomain=$t.prototype.get_cross_subdomain,$t.prototype.clear=$t.prototype.clear;var ie={},oe=function(){Bt.init=function(t,n,r){if(r)return Bt[r]||(Bt[r]=ie[r]=ee(t,n,r),Bt[r]._loaded()),Bt[r];var i=Bt;ie[Zt]?i=ie[Zt]:t&&((i=ee(t,n,Zt))._loaded(),ie[Zt]=i),Bt=i,1===At&&(e[Zt]=Bt),C.each(ie,(function(t,e){e!==Zt&&(Bt[e]=t)})),Bt._=C}};var se=(At=0,Bt=new te,oe(),Bt.init(),function(){function t(){t.done||(t.done=!0,Xt=!0,Qt=!1,C.each(ie,(function(t){t._dom_loaded()})))}if(S.addEventListener)"complete"===S.readyState?t():S.addEventListener("DOMContentLoaded",t,!1);else if(S.attachEvent){S.attachEvent("onreadystatechange",t);var n=!1;try{n=null===e.frameElement}catch(t){}S.documentElement.doScroll&&n&&function e(){try{S.documentElement.doScroll("left")}catch(t){return void setTimeout(e,1)}t()}()}C.register_event(e,"load",t,!0)}(),Bt);t.exports=se}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.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 r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},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(8060),n(1082),n(6232),n(7026),n(3823),n(2790),n(8040),n(4743),n(2969),n(153),n(9576),jQuery(document).ready((function(){window.WPHB_Admin.init(),window.WPHB_Admin.notices.init(),window.wphbMixPanel.init()}))}()}(); //# sourceMappingURL=wphb-app.min.js.map