Your IP : 216.73.216.171


Current Path : /home/ereika83/www/wp-content/plugins/wp-hummingbird/admin/assets/js/
Upload File :
Current File : /home/ereika83/www/wp-content/plugins/wp-hummingbird/admin/assets/js/wphb-setup-wizard.min.js

!function(){var e,t={1597:function(e,t,n){"use strict";n.r(t);var r=n(9620);window.wphbMixPanel={optIn:function(){wphb.mixpanel.enabled=!0},deactivate:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.track("plugin_deactivate",{reason:e,feedback:t})},trackHBUpsell:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"hb_upsell_triggered";this.track(i,{Feature:e,Location:t,"User Action":n,"UTM Link":r})},enableFeature:function(e){this.track("plugin_feature_activate",{feature:e})},trackEoUpsell:function(e,t){var n="delayjs"===e?"js_delay_upsell":"critical_css_upsell";this.track(n,{"Modal Action":"direct_cta",Location:t})},getUpdateType:function(e){return"activate"===e?"plugin_feature_activate":"deactivate"===e?"plugin_feature_deactivate":""},trackDelayJSEvent:function(e){"activate"===e.update_type&&this.enableFeature("JS Delay"),"deactivate"===e.update_type&&this.disableFeature("JS Delay"),this.track("js_delay_updated",e)},trackFontOptimizationEvent:function(e,t){"activate"===e&&this.enableFeature(t),"deactivate"===e&&this.disableFeature(t)},trackCriticalCSSEvent:function(e){"activate"===e.update_type&&this.enableFeature("Critical Css"),"deactivate"===e.update_type&&this.disableFeature("Critical Css"),this.track("critical_css_updated",e),this.track("critical_css_updated",{update_type:updateType,Location:location,mode:mode,settings_modified:settingsModified,settings_default:settingsDefault})},trackAOUpdated:function(e){var t=e.Mode.charAt(0).toUpperCase()+e.Mode.slice(1);e.Mode=t,this.track("ao_updated",e)},trackGutenbergEvent:function(e){this.track("critical_css_gutenberg",{feature:e}),"revert"===e&&this.track("critical_css_cache_purge",{location:"gutenberg"})},trackPageCachingSettings:function(e,t,n,r,i){var o="local_page_cache"===t?"Page Caching":t;"activate"===e&&this.enableFeature(o),"deactivate"===e&&this.disableFeature(o),this.track("page_caching_updated",{update_type:e,Method:t,Location:n,modified_settings:r,preload_homepage:i})},trackProUpsell:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"submenu";this.track(e,{Location:n,"User Action":t})},disableFeature:function(e){this.track("plugin_feature_deactivate",{feature:e})},track:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};void 0!==wphb.mixpanel&&wphb.mixpanel.enabled&&r.A.mixpanel.trackMixpanelEvent(e,t)}}},9620:function(e,t,n){"use strict";var r=n(6139),i=n.n(r);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var s=new function(){var e=ajaxurl,t=wphb.nonces.HBFetchNonce,r="wphb_",s="wphb_pro_";function a(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s={url:e,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",cache:!1};return i instanceof FormData?(i.append("nonce",t),i.append("action",r),s.contentType=!1,s.processData=!1):(i.nonce=t,i.action=r),s.data=i,new(0,n(6964).Promise)((function(e,t){jQuery.ajax(s).done(e).fail(t)})).then((function(e){return function(e){"object"!==o(e)&&(e=JSON.parse(e));if(e.success)return e.data;var t=e.data||{},n=new Error(t.message||"Error trying to fetch response from server");throw n.response=e,n}(e)}))}var c={caching:{saveSettings:function(e,t){return a(r+e+"_save_settings",{data:t},"POST").then((function(e){return e}))},saveFastCGISettings:function(e){return a(r+"fast_cgi_save_settings",{data:e},"POST").then((function(e){return e}))},clearCache:function(e){return a(r+"clear_module_cache",{module:e},"POST").then((function(e){return e}))},clearCacheForPost:function(e){return a(r+"gutenberg_clear_post_cache",{postId:e},"POST")},redisSaveSettings:function(e,t,n,i){return a(r+"redis_save_settings",{host:e,port:t,password:n,db:i},"POST")},redisObjectCache:function(e){return a(r+"redis_toggle_object_cache",{value:e},"POST")},clearCacheBatch:function(e,t){return a(r+"clear_network_cache",{sites:e,offset:t},"POST")},disableFastCGI:function(){return a(r+"disable_fast_cgi",{},"POST").then((function(e){return e}))},switchCacheMethod:function(e){return a(r+"switch_cache_method",{method:e},"POST").then((function(e){return e}))}},cloudflare:{connect:function(e,t,n,i){return a(r+"cloudflare_connect",{email:e,key:t,token:n,zone:i},"POST").then((function(e){return e}))}},minification:{toggleCDN:function(e){return a(r+"minification_toggle_cdn",{value:e},"POST")},toggleLog:function(e){return a(r+"minification_toggle_log",{value:e},"POST")},toggleView:function(e,t){return a(r+"minification_toggle_view",{value:e,hide:t},"POST")},startCheck:function(){return a(r+"minification_start_check",{},"POST")},checkStep:function(e){return a(r+"minification_check_step",{step:e},"POST").then((function(e){return e}))},finishCheck:function(){return a(r+"minification_finish_scan",{},"POST").then((function(e){return e}))},cancelScan:function(){return a(r+"minification_cancel_scan",{},"POST")},saveCriticalCss:function(e){return a(r+"minification_save_extra_optimization_data",{form:e},"POST").then((function(e){return e}))},updateAssetPath:function(e){return a(r+"minification_update_asset_path",{value:e},"POST")},saveNetworkSettings:function(e){return a(r+"minification_update_network_settings",{settings:e},"POST")},updateExcludeList:function(e){return a(r+"minification_save_exclude_list",{data:e},"POST")},clearCriticalCssFiles:function(){return a(r+"clear_critical_css_files",{},"POST").then((function(e){return e}))},createCSSForPost:function(e){return a(r+"gutenberg_create_css_file",{postId:e},"POST")},reCreateCSSForPost:function(e){return a(r+"gutenberg_recreate_css_file",{postId:e},"POST")},revertCSSForPost:function(e){return a(r+"gutenberg_revert_css_file",{postId:e},"POST")},getCriticalStatusForSinglePost:function(e){return a(r+"gutenberg_get_critical_status_for_single_post",{postId:e},"POST")},getCriticalStatusForQueue:function(){return a(r+"get_critical_status_for_queue",{},"POST")},toggleDelayJs:function(e){return a(r+"react_minify_toggle_delay_js",{data:e},"POST")},toggleCriticalCss:function(e){return a(r+"react_minify_toggle_critical_css",{data:e},"POST")},resetExclusions:function(e,t){return a(r+"reset_exclusions",{value:e,type:t},"POST")}},performance:{savePerformanceTestSettings:function(e){return a(r+"performance_save_settings",{data:e},"POST")}},advanced:{saveSettings:function(e,t){return a(r+"advanced_save_settings",{data:e,form:t},"POST").then((function(e){return e}))},deleteSelectedData:function(e){return a(r+"advanced_db_delete_data",{data:e},"POST").then((function(e){return e}))},clearOrphanedBatch:function(e){return a(r+"advanced_purge_orphaned",{rows:e},"POST")}},settings:{saveSettings:function(e){return a(r+"admin_settings_save_settings",{form_data:e},"POST").then((function(e){return e}))},importSettings:function(e){return a(r+"admin_settings_import_settings",e,"POST").then((function(e){return e}))},exportSettings:function(){var n=r+"admin_settings_export_settings";window.location=e+"?action="+n+"&nonce="+t}},common:{dismissNotice:function(e){return a(r+"notice_dismiss",{id:e},"POST")},clearLogs:function(e){return a(r+"logger_clear",{module:e},"POST").then((function(e){return e}))},call:function(e){return a(e,{},"POST").then((function(e){return e}))},clearCaches:function(e){return a(r+"clear_caches",{modules:e},"POST").then((function(e){return e}))}},mixpanel:{trackMixpanelEvent:function(e,t){return a(r+"analytics_track_event",{event:e,properties:t},"POST")}},notifications:{resendConfirmationEmail:function(e,t){return a(s+"resend_confirmation",{name:e,email:t},"POST").then((function(e){return e}))},sendConfirmationEmail:function(e,t){return a(s+"send_confirmation",{name:e,email:t},"POST").then((function(e){return e}))},disable:function(e,t){return a(s+"disable_notification",{id:e,type:t},"POST")},enable:function(e){return a(s+"enable_notification",{settings:e,update:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},"POST").then((function(e){return e}))},getAvatar:function(e){return a(s+"get_avatar",{email:e},"POST").then((function(e){return e}))},getUsers:function(e){return a(s+"search_users",{exclude:e},"POST").then((function(e){return e}))}}};i()(this,c)};t.A=s},5551:function(e,t,n){"use strict";var r=n(6540),i=n(961),o=n(5556),s=n.n(o);var a=function(e){return wphb.links[e]||""},c="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},u="URLSearchParams"in c,l="Symbol"in c&&"iterator"in Symbol,p="FileReader"in c&&"Blob"in c&&function(){try{return new Blob,!0}catch(e){return!1}}(),h="FormData"in c,f="ArrayBuffer"in c;if(f)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function m(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function y(e){return"string"!=typeof e&&(e=String(e)),e}function g(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return l&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function w(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function E(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function S(e){var t=new FileReader,n=E(t);return t.readAsArrayBuffer(e),n}function _(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function O(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:p&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:h&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:u&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f&&p&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=_(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f&&(ArrayBuffer.prototype.isPrototypeOf(e)||b(e))?this._bodyArrayBuffer=_(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):u&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},p&&(this.blob=function(){var e=w(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=w(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(p)return this.blob().then(S);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,i,o=w(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=E(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=r?r[1]:"utf-8",t.readAsText(e,i),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},h&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=m(e),t=y(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},v.prototype.delete=function(e){delete this.map[m(e)]},v.prototype.get=function(e){return e=m(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(m(e))},v.prototype.set=function(e,t){this.map[m(e)]=y(t)},v.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},v.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),g(e)},v.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),g(e)},v.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),g(e)},l&&(v.prototype[Symbol.iterator]=v.prototype.entries);var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,t){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,i=(t=t||{}).body;if(e instanceof C){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new v(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new v(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),k.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in c)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},O.call(C.prototype),O.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var j=[301,302,303,307,308];P.redirect=function(e,t){if(-1===j.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var T=c.DOMException;try{new T}catch(e){(T=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),T.prototype.constructor=T}function A(e,t){return new Promise((function(n,r){var i=new C(e,t);if(i.signal&&i.signal.aborted)return r(new T("Aborted","AbortError"));var o=new XMLHttpRequest;function s(){o.abort()}if(o.onload=function(){var e,t,r={statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();try{t.append(r,i)}catch(e){console.warn("Response "+e.message)}}})),t)};0===i.url.indexOf("file://")&&(o.status<200||o.status>599)?r.status=200:r.status=o.status,r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var s="response"in o?o.response:o.responseText;setTimeout((function(){n(new P(s,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request timed out"))}),0)},o.onabort=function(){setTimeout((function(){r(new T("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&c.location.href?c.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(p?o.responseType="blob":f&&(o.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof v||c.Headers&&t.headers instanceof c.Headers)){var a=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){a.push(m(e)),o.setRequestHeader(e,y(t.headers[e]))})),i.headers.forEach((function(e,t){-1===a.indexOf(t)&&o.setRequestHeader(t,e)}))}else i.headers.forEach((function(e,t){o.setRequestHeader(t,e)}));i.signal&&(i.signal.addEventListener("abort",s),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",s)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function F(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D(r.key),r)}}function D(e){var t=function(e,t){if("object"!=N(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N(t)?t:t+""}A.polyfill=!0,c.fetch||(c.fetch=A,c.Headers=v,c.Request=C,c.Response=P);var B=["get","post","put","delete"],M=function(){return e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),B.forEach((function(e){t[e]=t._setupAjaxAPI(e)}))},t=[{key:"_setupAjaxAPI",value:function(e){return"get"===e&&(e="post"),function(){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={credentials:"same-origin",method:e,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=wphb_react_"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/")+"&_wpnonce="+wphb.nonces.HBFetchNonce+"&data="+JSON.stringify(t)};return A(ajaxurl,n).then((function(e){return e.json().then((function(t){return e.ok?t.data:Promise.reject(t.data)}))}))}}}],t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),I=n(6942),R=n.n(I),U=["text","url","classes","id","icon","target","disabled","onClick","type"];function H(){return H=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H.apply(null,arguments)}function q(e){var t,n=e.text,i=e.url,o=void 0===i?"#":i,s=e.classes,a=e.id,c=e.icon,u=e.target,l=e.disabled,p=void 0!==l&&l,h=e.onClick,f=e.type,d=void 0===f?"link":f,b=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,U);return c&&(c=r.createElement("span",{className:c,"aria-hidden":"true"})),"button"===d?r.createElement("button",H({className:R()(s),id:a,disabled:p,onClick:h},b),!window.lodash.includes(s,"sui-button-icon-right")&&c,n,window.lodash.includes(s,"sui-button-icon-right")&&c):("blank"!==u&&"_blank"!==u||(u="_blank",t="noopener noreferrer"),r.createElement("a",H({className:R()(s),href:o,id:a,target:u,rel:t,disabled:p,onClick:h},b),!window.lodash.includes(s,"sui-button-icon-right")&&c,n,window.lodash.includes(s,"sui-button-icon-right")&&c))}function L(e){var t=e.classes;return r.createElement("span",{className:t,"aria-hidden":"true"})}function G(e){var t=e.text,n=e.classes,i=e.icon,o=e.onClick,s=e.loading,a=void 0!==s&&s,c=e.loadingText;return r.createElement("button",{className:R()("sui-button",n,{"sui-button-onload-text":a&&c},{"sui-button-onload":a&&!c}),onClick:o,"aria-live":"polite"},c&&r.createElement("span",{className:"sui-button-text-default"},i&&r.createElement("span",{className:i,"aria-hidden":"true"}),t),!c&&r.createElement("span",{className:"sui-loading-text"},t),!c&&r.createElement(L,{classes:"sui-icon-loader sui-loading"}),c&&r.createElement("span",{className:"sui-button-text-onload"},r.createElement(L,{classes:"sui-icon-loader sui-loading"}),c))}function z(e){var t=e.text,n=e.classes,i=e.children;return r.createElement("span",{className:R()("sui-tooltip",n),"data-tooltip":t},i)}var W=wp.i18n.__;function J(e){var t=e.loading,n=e.text,i=W("Fetching latest data...","wphb");return n&&(i=n),r.createElement("div",{className:R()("wphb-loading-overlay",{"wphb-loading":t})},r.createElement(L,{classes:"sui-icon-loader sui-loading"}),r.createElement("p",null,i))}function Y(e){return Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y(e)}function V(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$(r.key),r)}}function $(e){var t=function(e,t){if("object"!=Y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y(t)?t:t+""}function Q(e,t,n){return t=K(t),function(e,t){if(t&&("object"==Y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,X()?Reflect.construct(t,n||[],K(e).constructor):t.apply(e,n))}function X(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(X=function(){return!!e})()}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}var ee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Q(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z(e,t)}(t,e),n=t,o=[{key:"boxHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.createElement(r.Fragment,null,(e||t)&&r.createElement("h3",{className:"sui-box-title"},t&&r.createElement(L,{classes:"sui-icon-"+t})," "+e),n)}}],(i=[{key:"renderContent",value:function(){var e,n=t.boxHeader(this.props.title,this.props.icon,this.props.headerActions);return e=this.props.stickyType?["sui-box","sui-box-header",this.props.boxClass]:["sui-box-header"],r.createElement(r.Fragment,null,r.createElement(J,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&r.createElement("div",{className:R()(e)},n),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&r.createElement("div",{className:R()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&r.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?r.createElement(r.Fragment,null,e):r.createElement("div",{className:R()("sui-box",this.props.boxClass)},e)}}])&&V(n.prototype,i),o&&V(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);function te(e){var t=e.progress,n=void 0===t?0:t,i=e.status,o=void 0===i?"":i;return r.createElement(r.Fragment,null,r.createElement("div",{className:"sui-progress-block"},r.createElement("div",{className:"sui-progress"},r.createElement("span",{className:"sui-progress-icon","aria-hidden":"true"},r.createElement(L,{classes:"sui-icon-loader sui-loading"})),r.createElement("span",{className:"sui-progress-text"},n+"%"),r.createElement("div",{className:"sui-progress-bar","aria-hidden":"true"},r.createElement("span",{style:{width:n+"%"}})))),o&&r.createElement("div",{className:"sui-progress-state"},r.createElement("span",null,o)))}function ne(e){var t=e.value,n=e.type;if(0===t&&"success"===n)return r.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var i="sui-tag sui-tag-"+n;return r.createElement("span",{className:i},t)}function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oe(r.key),r)}}function oe(e){var t=function(e,t){if("object"!=re(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=re(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==re(t)?t:t+""}ee.propTypes={boxClass:s().oneOfType([s().string,s().array]),boxBodyClass:s().oneOfType([s().string,s().array]),title:s().string,icon:s().string,hideHeader:s().bool,headerActions:s().element,content:s().element,footerActions:s().element,loading:s().bool,loadingText:s().string,stickyType:s().bool,showFilters:s().bool},ne.defaultProps={value:0,type:"success"};var se=function(){return e=function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.totalSteps=parseInt(t),this.currentStep=parseInt(n),this.cancelling=!1},t=[{key:"start",value:function(){var e=this;this.updateProgressBar(this.getProgress());var t=this.totalSteps-this.currentStep;0!==this.currentStep?this.step(t):this.onStart().then((function(){e.step(t)}))}},{key:"cancel",value:function(){this.cancelling=!0,this.updateProgressBar(0,!0)}},{key:"getProgress",value:function(){if(this.cancelling)return 0;var e=this.totalSteps-this.currentStep;return Math.min(Math.round(100*parseInt(this.totalSteps-e)/this.totalSteps),99)}},{key:"updateProgressBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e>100&&(e=100),document.querySelector(".sui-progress-block .sui-progress-text span").innerHTML=e+"%",document.querySelector(".sui-progress-block .sui-progress-bar span").style.width=e+"%",e>=90&&(document.querySelector(".sui-progress-state .sui-progress-state-text").innerHTML="Finalizing..."),t&&(document.querySelector(".sui-progress-state .sui-progress-state-text").innerHTML="Cancelling...")}},{key:"step",value:function(e){e>=0&&(this.currentStep=this.totalSteps-e)}},{key:"onStart",value:function(){throw new Error("onStart() must be implemented in child class")}},{key:"onFinish",value:function(){this.updateProgressBar(100)}}],t&&ie(e.prototype,t),n&&ie(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),ae=se,ce=n(9620);function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,pe(r.key),r)}}function pe(e){var t=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ue(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ue(t)?t:t+""}function he(e,t,n){return t=me(t),function(e,t){if(t&&("object"==ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fe()?Reflect.construct(t,n||[],me(e).constructor):t.apply(e,n))}function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fe=function(){return!!e})()}function de(e,t,n,r){var i=be(me(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof i?function(e){return i.apply(n,e)}:i}function be(){return be="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=me(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},be.apply(null,arguments)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}var ge=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),he(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(t,e),n=t,(r=[{key:"step",value:function(e){var n=this;de(t,"step",this,3)([e]),e>=0?ce.A.minification.checkStep(this.currentStep).then((function(){e-=1,n.updateProgressBar(n.getProgress()),n.step(e)})):ce.A.minification.finishCheck().then((function(e){n.onFinish(e)}))}},{key:"cancel",value:function(){de(t,"cancel",this,3)([]),ce.A.minification.cancelScan().then((function(){window.location.href=a("minification")}))}},{key:"onStart",value:function(){return ce.A.minification.startCheck()}},{key:"onFinish",value:function(e){de(t,"onFinish",this,3)([]),void 0!==e.assets_msg&&(document.getElementById("assetsFound").innerHTML=e.assets_msg),window.SUI.closeModal(),window.SUI.openModal("wphb-assets-modal","wpbody-content")}}])&&le(n.prototype,r),i&&le(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(ae);function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ee(r.key),r)}}function Ee(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:t+""}function Se(e,t,n){return t=Oe(t),function(e,t){if(t&&("object"==ve(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_e()?Reflect.construct(t,n||[],Oe(e).constructor):t.apply(e,n))}function _e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_e=function(){return!!e})()}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}function ke(e,t){return ke=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ke(e,t)}var Ce=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Se(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(t,e),n=t,r=[{key:"updateProgressBar",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e>100&&(e=100),document.querySelector(".sui-progress .sui-progress-text").innerHTML=e+"%",document.querySelector(".sui-progress .sui-progress-bar span").style.width=e+"%",e>=90&&(document.querySelector(".wphb-progress-wrapper .sui-progress-state > span").innerHTML="Finalizing..."),t&&(document.querySelector(".wphb-progress-wrapper .sui-progress-state > span").innerHTML="Cancelling...")}},{key:"onFinish",value:function(){window.wphbSetupNextStep()}}],r&&we(n.prototype,r),i&&we(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(ge),xe=Ce,Pe=["text","id","name","className","onChange","checked","hideToggle","disabled","description"];function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},je.apply(null,arguments)}function Te(e){var t=e.text,n=e.id,i=e.name,o=e.className,s=e.onChange,a=e.checked,c=void 0!==a&&a,u=e.hideToggle,l=void 0!==u&&u,p=e.disabled,h=void 0!==p&&p,f=e.description,d=void 0===f?"":f,b=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Pe);return r.createElement("div",{className:"sui-form-field"},r.createElement("label",{htmlFor:n,className:R()(o,"sui-toggle")},r.createElement("input",je({type:"checkbox",name:i,id:n,checked:c,disabled:h,onChange:s,"aria-labelledby":n+"-label"},b)),!l&&r.createElement("span",{className:"sui-toggle-slider","aria-hidden":"true"}),t&&r.createElement("span",{id:n+"-label",className:"sui-toggle-label"},t),d&&r.createElement("span",{id:n+"-description",className:"sui-description"},d)))}function Ae(e){var t=e.label,n=e.description,i=e.content,o=e.classes,s=e.wide;return void 0!==s&&s?r.createElement("div",{className:"sui-box-settings-row"},r.createElement("div",{className:"sui-box-settings-col-2"},r.createElement("span",{className:"sui-settings-label"},t),i)):n?r.createElement("div",{className:"sui-box-settings-row"},r.createElement("div",{className:"sui-box-settings-col-1"},r.createElement("span",{className:"sui-settings-label"},t),r.createElement("span",{className:"sui-description"},n)),r.createElement("div",{className:"sui-box-settings-col-2"},i)):r.createElement("div",{className:R()("sui-box-settings-row",o)},i)}function Ne(e){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Fe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,De(r.key),r)}}function De(e){var t=function(e,t){if("object"!=Ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ne(t)?t:t+""}function Be(e,t,n){return t=Ie(t),function(e,t){if(t&&("object"==Ne(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Me()?Reflect.construct(t,n||[],Ie(e).constructor):t.apply(e,n))}function Me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Me=function(){return!!e})()}function Ie(e){return Ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ie(e)}function Re(e,t){return Re=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Re(e,t)}var Ue=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Be(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Re(e,t)}(t,e),n=t,(i=[{key:"componentDidMount",value:function(){this.props.sideTabs||SUI.tabs()}},{key:"render",value:function(){var e=this,t=Object.values(this.props.menu).map((function(e){var t=void 0!==e.checked&&e.checked;return r.createElement(q,{text:e.title,id:e.id+"-tab",classes:R()("sui-tab-item",{active:t}),type:"button",role:"tab","aria-controls":e.id+"-tab-content","aria-selected":t,tabIndex:t?"0":"-1",key:e.id,onClick:e.onClick})})),n=Object.values(this.props.tabs).map((function(t,n){var i=void 0!==t.active&&t.active,o=R()({"sui-tab-content":!e.props.sideTabs},{"sui-tab-boxed":e.props.sideTabs},{active:i});return r.createElement("div",{role:"tabpanel",tabIndex:"0",id:t.id+"-tab-content",className:o,"aria-labelledby":t.id+"-tab",hidden:!i,key:n},t.description&&r.createElement("div",{className:"sui-description sui-margin-bottom"},t.description),t.content)}));return r.createElement("div",{className:R()({"sui-tabs":!this.props.sideTabs},{"sui-tabs-flushed":this.props.flushed},{"sui-side-tabs":this.props.sideTabs},this.props.className)},r.createElement("div",{role:"tablist",className:"sui-tabs-menu"},t),!window.lodash.isEmpty(this.props.tabs)&&r.createElement("div",{className:"sui-tabs-content"},n))}}])&&Fe(n.prototype,i),o&&Fe(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);let He,qe,Le,Ge;Ue.defaultProps={tabs:{}};const ze=/<(\/)?(\w+)\s*(\/)?>/g;function We(e,t,n,r,i){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:i,children:[]}}const Je=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every((e=>(0,r.isValidElement)(e)))};function Ye(e){const t=function(){const e=ze.exec(He);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,i,o]=e,s=n.length;if(o)return["self-closed",i,t,s];if(r)return["closer",i,t,s];return["opener",i,t,s]}(),[n,i,o,s]=t,a=Ge.length,c=o>qe?qe:null;if(!e[i])return Ve(),!1;switch(n){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=Ge.pop();Le.push(He.substr(e,t))}return Ve(),!1;case"self-closed":return 0===a?(null!==c&&Le.push(He.substr(c,o-c)),Le.push(e[i]),qe=o+s,!0):($e(We(e[i],o,s)),qe=o+s,!0);case"opener":return Ge.push(We(e[i],o,s,o+s,c)),qe=o+s,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:n,prevOffset:i,tokenStart:o,children:s}=Ge.pop(),a=e?He.substr(i,e-i):He.substr(i);a&&s.push(a);null!==n&&Le.push(He.substr(n,o-n));Le.push((0,r.cloneElement)(t,null,...s))}(o),qe=o+s,!0;const t=Ge.pop(),n=He.substr(t.prevOffset,o-t.prevOffset);t.children.push(n),t.prevOffset=o+s;const u=We(t.element,t.tokenStart,t.tokenLength,o+s);return u.children=t.children,$e(u),qe=o+s,!0;default:return Ve(),!1}}function Ve(){const e=He.length-qe;0!==e&&Le.push(He.substr(qe,e))}function $e(e){const{element:t,tokenStart:n,tokenLength:i,prevOffset:o,children:s}=e,a=Ge[Ge.length-1],c=He.substr(a.prevOffset,n-a.prevOffset);c&&a.children.push(c),a.children.push((0,r.cloneElement)(t,null,...s)),a.prevOffset=o||n+i}var Qe=(e,t)=>{if(He=e,qe=0,Le=[],Ge=[],ze.lastIndex=0,!Je(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(Ye(t));return(0,r.createElement)(r.Fragment,null,...Le)};function Xe(e){return Xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xe(e)}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ze(r.key),r)}}function Ze(e){var t=function(e,t){if("object"!=Xe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xe(t)?t:t+""}function et(e,t,n){return t=nt(t),function(e,t){if(t&&("object"==Xe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,tt()?Reflect.construct(t,n||[],nt(e).constructor):t.apply(e,n))}function tt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(tt=function(){return!!e})()}function nt(e){return nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nt(e)}function rt(e,t){return rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rt(e,t)}var it=wp.i18n,ot=it.__,st=(it.sprintf,function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=et(this,t,[e])).state={steps:{1:ot("Getting Started","wphb"),2:ot("Asset Optimization","wphb"),3:ot("Uptime","wphb"),4:ot("Page Caching","wphb"),5:ot("Advanced Tools","wphb"),6:ot("Finish","wphb")},scanning:!1,skip:{advCacheFile:!1}},n.continueToNextStep=n.continueToNextStep.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rt(e,t)}(t,e),n=t,i=[{key:"componentDidUpdate",value:function(e,t){if(1===this.props.step&&this.props.showConflicts){if(this.props.step===e.step&&this.props.showConflicts===e.showConflicts)return;this.setState({skip:{advCacheFile:!this.props.issues.advCacheFile}}),jQuery(".sui-box-header").on("click",this.toggleContent)}2===this.props.step&&this.props.settings.aoEnable&&!0===this.state.scanning&&this.state.scanning!==t.scanning&&new xe(this.props.minifySteps,0).start(),3<=this.props.step&&this.props.step!==e.step&&this.setState({scanning:!1})}},{key:"toggleContent",value:function(e){e.currentTarget.parentNode.classList.toggle("open")}},{key:"getNavigation",value:function(){var e=this,t=Object.entries(this.state.steps).map((function(t,n){if(6===n)return null;var i=20*n,o=20*t[0],s=e.props.step<=t[0]?"#D8D8D8":"#1ABC9C";return r.createElement("line",{key:n,x1:i+"%",x2:o+"%",className:"line-mobile",stroke:s})})),n=Object.entries(this.state.steps).map((function(t,n){if(6===n)return null;var i=R()({current:parseInt(t[0])===e.props.step,done:parseInt(t[0])<e.props.step,disabled:3===parseInt(t[0])&&!e.props.hasUptime});return r.createElement(r.Fragment,{key:n},r.createElement("li",{className:i},"done"!==i&&r.createElement("span",null,t[0]),"done"===i&&r.createElement(L,{classes:"sui-icon-check"}),t[1],3===parseInt(t[0])&&!e.props.hasUptime&&r.createElement(ne,{type:"pro",value:ot("Pro","wphb")})),5>n&&r.createElement("svg",{focusable:"false","aria-hidden":"true"},r.createElement("line",{y1:"0",y2:"30px"})))}));return r.createElement("div",{className:"sui-sidenav"},r.createElement("svg",{focusable:"false","aria-hidden":"true"},t),r.createElement("ul",null,n))}},{key:"getHeader",value:function(){var e=this.state.steps[this.props.step],t=this.state.steps[this.props.step].replace(/\s+/g,"-").toLowerCase();return 1===this.props.step&&this.props.showConflicts?(t=this.props.issues.advCacheFile?"failed":"success",e=ot("Plugin Conflict","wphb")):6===this.props.step&&(t="success",e=ot("Wizard Completed!","wphb")),r.createElement(r.Fragment,null,r.createElement("img",{className:"sui-image",alt:this.state.steps[this.props.step],src:a("wphbDirUrl")+"admin/assets/image/setup/"+t+".png",srcSet:a("wphbDirUrl")+"admin/assets/image/setup/"+t+".png 1x, "+a("wphbDirUrl")+"admin/assets/image/setup/"+t+"@2x.png 2x"}),r.createElement("small",null,ot("Hummingbird Setup","wphb")),r.createElement("h2",null,e))}},{key:"getCompatPluginsContent",value:function(){if(!this.props.showConflicts||this.state.skip.advCacheFile)return null;var e=ot("No other caching plugin is detected","wphb"),t="check-tick sui-success",n=r.createElement("p",{className:"sui-description"},ot("No other caching plugin is detected. You can proceed with the setup.","wphb"));if(this.props.issues.advCacheFile){e=ot("Another caching plugin is detected","wphb"),t="warning-alert sui-error";var i=Qe(ot("Hummingbird has detected an advanced-cache.php file in your site’s wp-content directory. <a>Manage your plugins</a> and disable any other active caching plugins to ensure Hummingbird’s page caching works properly.","wphb"),{a:r.createElement("a",{href:a("plugins")})});n=r.createElement(r.Fragment,null,r.createElement("p",{className:"sui-description"},i),r.createElement("p",{className:"sui-description"},ot("If no other caching plugins are active, the advanced-cache.php may have been left by a previously used caching plugin. You can remove the file from the wp-content directory, or remove it via your file manager or FTP.","wphb")))}return r.createElement(ee,{boxClass:"open",icon:t,title:e,headerActions:r.createElement("div",{className:"sui-actions-right"},r.createElement(q,{onClick:this.toggleContent,type:"button",classes:"sui-button-icon",icon:"sui-icon-chevron-up"})),content:n,footerActions:r.createElement(r.Fragment,null,r.createElement(q,{onClick:this.props.reCheckRequirements,type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update",text:ot("Re-check status","wphb")}),this.props.issues.advCacheFile&&r.createElement("div",{className:"sui-actions-right"},r.createElement(q,{onClick:this.props.removeAdvancedCache,type:"button",classes:["sui-button","sui-button-blue"],text:ot("Remove file","wphb")})))})}},{key:"toggleButtons",value:function(){var e=this;if(2>this.props.step||4<this.props.step)return null;if(2===this.props.step&&this.state.scanning)return null;var t=["aoEnable","uptimeEnable","cacheEnable"],n=this.props.settings[t[this.props.step-2]],i=!this.props.settings[t[this.props.step-2]];4===this.props.step&&this.props.settings.isFastCGISupported&&(n=this.props.settings[t[this.props.step-2]]&&!this.props.settings.fastCGI,i=!this.props.settings[t[this.props.step-2]]&&!this.props.settings.fastCGI);var o=[{title:4===this.props.step?ot("Local Page Cache","wphb"):ot("Enable","wphb"),checked:n,id:"enable",onClick:function(){return e.props.toggleModule("enable",t[e.props.step-2])}},{title:ot("Disable","wphb"),checked:i,id:"disable",onClick:function(){return e.props.toggleModule("disable",t[e.props.step-2])}}];return 4===this.props.step&&this.props.settings.isFastCGISupported&&o.unshift({title:ot("Static Server Cache","wphb"),checked:this.props.settings.isFastCGISupported&&this.props.settings.fastCGI,id:"ssc",onClick:function(){return e.props.toggleModule("enable","fastCGI")}}),r.createElement(Ue,{sideTabs:"true",menu:o})}},{key:"assetOptimizationSettings",value:function(){return r.createElement(r.Fragment,null,this.props.settings.aoEnable&&r.createElement("div",{className:R()("sui-border-frame",{"sui-hidden":this.state.scanning||this.props.isNetworkAdmin&&!this.props.isMember})},!this.props.isNetworkAdmin&&r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"aoSpeedy",onChange:this.props.updateSettings,text:ot("Enable Speedy Compression","wphb"),checked:this.props.settings.aoSpeedy,description:ot("Our automatic solution for optimization, the Speedy compression will auto-compress and auto-combine smaller files together. This can help to decrease the number of requests made when a page is loaded.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"aoCdn",onChange:this.props.updateSettings,text:this.props.isMember?ot("WPMU DEV CDN","wphb"):Qe(ot("WPMU DEV CDN <span>PRO</span>","wphb"),{span:r.createElement("span",{className:"sui-tag sui-tag-pro"})}),checked:this.props.settings.aoCdn,disabled:!this.props.isMember,description:ot("WPMU DEV CDN will serve your CSS, JS and other compatible files from our external CDN, effectively taking the load off your server so that pages load faster for your visitors.","wphb")})})),this.eoSettings(),this.state.scanning&&r.createElement(r.Fragment,null,r.createElement("div",{className:"wphb-progress-wrapper"},r.createElement(te,{status:this.props.settings.aoSpeedy?ot("Activating Speedy Optimization...","wphb"):ot("Activating Basic Optimization...","wphb")})),r.createElement("p",{className:"sui-description"},ot("Please wait, this won’t take more than a minute...","wphb"))))}},{key:"eoSettings",value:function(){return!this.props.settings.aoEnable||this.state.scanning||this.props.isNetworkAdmin?null:r.createElement(r.Fragment,null,r.createElement("p",{className:"sui-description",style:{textAlign:"left",marginTop:"15px",fontWeight:700}},ot("Extra Optimization","wphb")),r.createElement("div",{className:"sui-border-frame",style:{marginTop:"15px"}},r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"delayJS",onChange:this.props.updateSettings,text:this.props.isMember?ot("Delay JavaScript Execution","wphb"):Qe(ot("Delay JavaScript Execution <span>PRO</span>","wphb"),{span:r.createElement("span",{className:"sui-tag sui-tag-pro"})}),checked:this.props.settings.delayJS,disabled:!this.props.isMember,description:ot("Improve performance by delaying the loading of non-critical JavaScript files above the fold until user interaction (e.g. scroll, click).","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"criticalCSS",onChange:this.props.updateSettings,text:this.props.isMember?ot("Generate Critical CSS","wphb"):Qe(ot("Generate Critical CSS <span>PRO</span>","wphb"),{span:r.createElement("span",{className:"sui-tag sui-tag-pro"})}),checked:this.props.settings.criticalCSS,disabled:!this.props.isMember,description:ot("Drastically reduce your page load time and eliminate render-blocking resources by automatically generating the critical CSS required to load your above-the-fold content.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"fontSwap",onChange:this.props.updateSettings,text:ot("Swap Web Fonts","wphb"),checked:this.props.settings.fontSwap,description:ot("Apply a similar fallback font that visitors will temporarily see until the primary font loads, to improve text visibility.","wphb")})})),r.createElement("p",{className:"sui-description",style:{textAlign:"left",marginTop:"10px"}},Qe(ot("<strong>Note:</strong> You can tweak these settings further under Assets Optimization > Extra Optimization.","wphb"),{strong:r.createElement("strong",null)})))}},{key:"cacheSettings",value:function(){return this.props.settings.cacheEnable||this.props.settings.fastCGI?this.props.settings.isFastCGISupported&&this.props.settings.fastCGI?r.createElement("div",{className:"sui-border-frame"},r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"clearCacheButton",onChange:this.props.updateSettings,text:ot("Show clear cache button in admin bar","wphb"),checked:this.props.settings.clearCacheButton,description:ot("Add a shortcut to Hummingbird settings in the top WordPress Admin bar. Clicking the Clear Cache button in the WordPress Admin Bar will clear all active cache types.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"clearOnComment",onChange:this.props.updateSettings,text:ot("Clear cache on comment post","wphb"),checked:this.props.settings.clearOnComment,description:ot("The page cache will be cleared after each comment made on a post.","wphb")})})):r.createElement("div",{className:"sui-border-frame"},r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"cacheOnMobile",onChange:this.props.updateSettings,text:ot("Cache on mobile devices","wphb"),checked:this.props.settings.cacheOnMobile,description:ot("By default, page caching is enabled for mobile devices. If you don't want to use mobile caching, simply disable this setting.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"clearOnComment",onChange:this.props.updateSettings,text:ot("Clear cache on comment post","wphb"),checked:this.props.settings.clearOnComment,description:ot("The page cache will be cleared after each comment made on a post.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"cacheHeader",onChange:this.props.updateSettings,text:ot("Cache HTTP headers","wphb"),checked:this.props.settings.cacheHeader,description:ot("By default, Hummingbird won't cache HTTP headers. Enable this feature to include them.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"clearCacheButton",onChange:this.props.updateSettings,text:ot("Show clear cache button in admin bar","wphb"),checked:this.props.settings.clearCacheButton,description:ot("Add a shortcut to Hummingbird settings in the top WordPress Admin bar. Clicking the Clear Cache button in the WordPress Admin Bar will clear all active cache types.","wphb")})})):null}},{key:"advancedSettings",value:function(){return r.createElement("div",{className:"sui-border-frame"},r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"queryStrings",onChange:this.props.updateSettings,text:ot("Remove query strings from my assets","wphb"),checked:this.props.settings.queryStrings,description:ot("Some of your resource URLs can end with something like “?x=y”, these are the query strings of the URL. Some servers, CDNs or caching systems don’t like query strings and removing them can help to increase speed.","wphb")})}),this.props.hasWoo&&r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"cartFragments",onChange:this.props.updateSettings,text:ot("Disable cart fragments","wphb"),checked:this.props.settings.cartFragments,description:ot("WooCommerce uses ajax calls to update cart totals without refreshing the page. These ajax calls run on every page and can drastically increase page load times. We recommend disabling cart fragments on all non-WooCommerce pages.","wphb")})}),r.createElement(Ae,{classes:"sui-flushed",content:r.createElement(Te,{id:"removeEmoji",onChange:this.props.updateSettings,text:ot("Remove the default Emoji JS & CSS files","wphb"),checked:this.props.settings.removeEmoji,description:ot("WordPress adds Javascript and CSS files to convert common symbols like “:)” to visual emojis. If you don’t need emojis this will remove two unnecessary assets.","wphb")})}))}},{key:"showResults",value:function(){return r.createElement("table",{className:"sui-table"},r.createElement("thead",null,r.createElement("tr",null,r.createElement("th",null,ot("Modules","wphb")),r.createElement("th",null,ot("Settings applied","wphb")),r.createElement("th",null,ot("Status","wphb")))),r.createElement("tbody",null,this.props.settings.aoEnable&&r.createElement("tr",null,r.createElement("td",{className:"sui-table-item-title"},ot("Asset Optimization","wphb")),r.createElement("td",null,!this.props.isNetworkAdmin&&this.props.settings.aoSpeedy&&ot("Speedy Optimization","wphb"),!this.props.isNetworkAdmin&&!this.props.settings.aoSpeedy&&ot("Basic Optimization","wphb"),this.props.isNetworkAdmin&&ot("Active on subsites","wphb"),this.props.isMember&&r.createElement("br",null),this.props.isMember&&r.createElement(r.Fragment,null,ot("CDN","wphb"))),r.createElement("td",null,r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),this.props.settings.aoCdn&&this.props.isMember&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.aoCdn&&this.props.isMember&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}))),this.props.settings.aoEnable&&!this.props.isNetworkAdmin&&r.createElement("tr",null,r.createElement("td",{className:"sui-table-item-title"},ot("Extra Optimization","wphb")),r.createElement("td",null,ot("Delay JS Executions","wphb"),r.createElement("br",null),ot("Generate Critical CSS","wphb"),r.createElement("br",null),ot("Swap Web Fonts","wphb")),r.createElement("td",null,this.props.settings.delayJS&&this.props.isMember&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.delayJS&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}),this.props.settings.criticalCSS&&this.props.isMember&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.criticalCSS&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}),this.props.settings.fontSwap&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.fontSwap&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}))),this.props.settings.uptimeEnable&&r.createElement("tr",null,r.createElement("td",{className:"sui-table-item-title"},ot("Uptime","wphb")),r.createElement("td",null,ot("Default settings","wphb")),r.createElement("td",null,r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}))),this.props.settings.fastCGI&&r.createElement("tr",null,r.createElement("td",{className:"sui-table-item-title"},ot("Page Caching","wphb")),r.createElement("td",null,ot("Static Server Cache","wphb"),r.createElement("br",null),ot("Show clear cache button in admin bar","wphb")),r.createElement("td",null,r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),this.props.settings.clearCacheButton&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.clearCacheButton&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}))),this.props.settings.cacheEnable&&!this.props.settings.fastCGI&&r.createElement("tr",null,r.createElement("td",{className:"sui-table-item-title"},ot("Page Caching","wphb")),r.createElement("td",null,ot("Cache on mobile devices","wphb"),r.createElement("br",null),ot("Clear cache on comment post","wphb"),r.createElement("br",null),ot("Cache HTTP headers","wphb"),r.createElement("br",null),ot("Show clear cache button in admin bar","wphb")),r.createElement("td",null,this.props.settings.cacheOnMobile&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.cacheOnMobile&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}),this.props.settings.clearOnComment&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.clearOnComment&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}),this.props.settings.cacheHeader&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.cacheHeader&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}),this.props.settings.clearCacheButton&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.clearCacheButton&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}))),r.createElement("tr",null,r.createElement("td",{className:"sui-table-item-title"},ot("Advanced Tools","wphb")),r.createElement("td",null,ot("Remove query strings from my assets","wphb"),r.createElement("br",null),this.props.hasWoo&&r.createElement(r.Fragment,null,ot("Disable cart fragments","wphb"),r.createElement("br",null)),ot("Remove the default Emoji JS & CSS files","wphb")),r.createElement("td",null,this.props.settings.queryStrings&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.queryStrings&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")}),this.props.hasWoo&&r.createElement(r.Fragment,null,this.props.settings.cartFragments&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.cartFragments&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")})),this.props.settings.removeEmoji&&r.createElement(ne,{type:"blue sui-tag-sm",value:ot("Enabled","wphb")}),!this.props.settings.removeEmoji&&r.createElement(ne,{type:"grey sui-tag-sm",value:ot("Disabled","wphb")})))))}},{key:"getContent",value:function(){var e;return 1===this.props.step?(e=ot("Get started by activating all our features with recommended default settings, then fine-tune them to suit your specific needs. Alternately you can skip this process if you’d prefer to start customizing.","wphb"),this.props.showConflicts&&(e=ot("Any issue reported here may cause issues while we set up the plugin.","wphb"),this.props.issues.advCacheFile||(e=ot("There are no more potential issues. You can proceed with the setup.","wphb")))):2===this.props.step?e=ot("Hummingbird's Asset Optimization engine can combine and minify the files your website outputs when a user visits your website. The fewer requests your visitors have to make to your server, the better.","wphb"):3===this.props.step?e=ot("Uptime monitors your server response time and lets you know when your website is down or too slow for your visitors. Monitor your site every minute to make sure it's up and graph your site speed so you can make sure everything is running super smooth.","wphb"):4===this.props.step?e=ot("Hummingbird stores static HTML copies of your pages and posts to decrease page load time. We will activate the default and basic settings and you can then fine-tune them to suit your specific needs.","wphb"):5===this.props.step?e=ot("Here are a few additional tweaks you can make to further reduce your page load times.","wphb"):6===this.props.step&&(e=ot("The setup is complete. We have activated the main features with the default settings. You can proceed to run a Performance Test or go directly to the Dashboard page.","wphb")),r.createElement(r.Fragment,null,r.createElement("p",{className:"sui-description"},e),1===this.props.step&&!this.props.showConflicts&&r.createElement("div",{className:"sui-border-frame wphb-getting-started-setup"},r.createElement(Te,{id:"tracking",onChange:this.props.updateSettings,text:Qe(ot("Help us Optimize your site for better Performance<span>Recommended</span>","wphb"),{span:r.createElement("span",{className:"sui-tag sui-tag-sm"})}),checked:this.props.settings.tracking,description:Qe(ot("Help us improve Hummingbird, minimize errors, and enhance the user experience by sharing anonymous, and non-sensitive usage data. You can change this option in the settings anytime. See <a>more</a> info about the data we collect.","wphb"),{a:r.createElement("a",{href:a("tracking"),target:"_blank"})})})),1===this.props.step&&this.props.showConflicts&&r.createElement("div",{className:"wphb-progress-wrapper"},this.getCompatPluginsContent()),this.toggleButtons(),2===this.props.step&&this.assetOptimizationSettings(),4===this.props.step&&this.cacheSettings(),5===this.props.step&&this.advancedSettings(),6===this.props.step&&this.showResults())}},{key:"getFooter",value:function(){var e=this;return r.createElement(r.Fragment,null,1===this.props.step&&!this.props.showConflicts&&r.createElement("span",{className:"sui-description"},r.createElement(q,{onClick:function(){return e.props.finish("configs")},text:ot("Skip wizard and apply a config","wphb")})),1!==this.props.step&&r.createElement(q,{onClick:this.props.prevStep,disabled:this.state.scanning,type:"button",icon:"sui-icon-arrow-left",classes:["sui-button","sui-button-ghost"],text:ot("Back","wphb")}),r.createElement("div",{className:"sui-actions-right"},1===this.props.step&&!this.props.showConflicts&&r.createElement(q,{onClick:this.props.nextStep,type:"button",classes:["sui-button","sui-button-blue"],text:ot("Get started","wphb")}),1===this.props.step&&this.props.showConflicts&&this.props.issues.advCacheFile&&r.createElement(z,{classes:"sui-tooltip-constrained sui-tooltip-top-right-mobile",text:ot("We advise to check the recommendations before proceeding.","wphb")},r.createElement(q,{onClick:this.props.skipConflicts,type:"button",icon:"sui-icon-arrow-right",classes:["sui-button","sui-button-ghost"],text:ot("Continue anyway","wphb")})),(1!==this.props.step||this.props.showConflicts&&!this.props.issues.advCacheFile)&&6>this.props.step&&r.createElement(q,{onClick:this.continueToNextStep,disabled:this.state.scanning,type:"button",icon:"sui-icon-arrow-right",classes:["sui-button","sui-button-blue"],text:ot("Continue","wphb")}),6===this.props.step&&r.createElement(r.Fragment,null,r.createElement(q,{onClick:this.props.finish,type:"button",classes:["sui-button","sui-button-ghost"],text:ot("Go to Dashboard","wphb")}),r.createElement(q,{onClick:function(){return e.props.finish("runPerf")},type:"button",classes:["sui-button","sui-button-blue"],text:ot("Run Performance Test","wphb")}))))}},{key:"continueToNextStep",value:function(){2===this.props.step&&this.props.settings.aoEnable&&!this.props.isNetworkAdmin?(this.setState({scanning:!0}),this.props.scanning()):this.props.nextStep()}},{key:"render",value:function(){return r.createElement("div",{className:"sui-row-with-sidenav"},this.getNavigation(),r.createElement(ee,{boxClass:"box-setup-requirements",hideHeader:!0,loading:this.props.loading,loadingText:1===this.props.step?ot("Checking status","wphb"):ot("Saving settings","wphb"),content:r.createElement(r.Fragment,null,this.getHeader(),this.getContent()),footerActions:this.getFooter()}))}}],i&&Ke(n.prototype,i),o&&Ke(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component));function at(e){return at="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},at(e)}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){lt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function lt(e,t,n){return(t=ht(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ht(r.key),r)}}function ht(e){var t=function(e,t){if("object"!=at(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=at(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==at(t)?t:t+""}function ft(e,t,n){return t=bt(t),function(e,t){if(t&&("object"==at(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dt()?Reflect.construct(t,n||[],bt(e).constructor):t.apply(e,n))}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dt=function(){return!!e})()}function bt(e){return bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bt(e)}function mt(e,t){return mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mt(e,t)}var yt=wp.i18n.__;n(1597);var gt,vt=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=ft(this,t,[e])).state={api:new M,isMember:n.props.wphbData.isMember,hasUptime:n.props.wphbData.hasUptime,loading:!1,checkDocumentation:!1,step:1,scanning:!1,issues:{advCacheFile:!1},showConflicts:!1,settings:{aoEnable:!0,aoSpeedy:!0,aoCdn:Boolean(n.props.wphbData.isMember),delayJS:Boolean(n.props.wphbData.isMember),criticalCSS:Boolean(n.props.wphbData.isMember),fontSwap:!0,uptimeEnable:Boolean(n.props.wphbData.hasUptime),cacheEnable:!0,fastCGI:!!Boolean(n.props.wphbData.isFastCGISupported),isFastCGISupported:Boolean(n.props.wphbData.isFastCGISupported),cacheOnMobile:!0,clearOnComment:!0,cacheHeader:!0,clearCacheButton:!0,queryStrings:!0,cartFragments:Boolean(n.props.wphbData.hasWoo),removeEmoji:!0,tracking:!1}},n.checkRequirements=n.checkRequirements.bind(n),n.removeAdvancedCache=n.removeAdvancedCache.bind(n),n.disableFastCGI=n.disableFastCGI.bind(n),n.skipConflicts=n.skipConflicts.bind(n),n.nextStep=n.nextStep.bind(n),n.prevStep=n.prevStep.bind(n),n.finish=n.finish.bind(n),n.updateSettings=n.updateSettings.bind(n),n.toggleModule=n.toggleModule.bind(n),n.quitWizard=n.quitWizard.bind(n),n.scanning=n.scanning.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mt(e,t)}(t,e),n=t,i=[{key:"componentDidMount",value:function(){this.checkRequirements()}},{key:"skipConflicts",value:function(){this.setState({showConflicts:!1,step:2})}},{key:"nextStep",value:function(){var e=this;if(1===this.state.step&&this.state.issues.advCacheFile)this.setState({showConflicts:!0});else{var t=this.state.step+1;2!==this.state.step||this.state.hasUptime||t++,this.setState({loading:!0});var n=ut(ut({},this.state.settings),{},{module:"",enable:!1});2===this.state.step?(n.module="ao",n.enable=this.state.settings.aoEnable):3===this.state.step?(n.module="uptime",n.enable=this.state.settings.uptimeEnable):4===this.state.step?(n.module="caching",n.enable=this.state.settings.cacheEnable):5===this.state.step&&(n.module="advanced"),this.state.api.post("settings",n).then((function(){return e.setState({showConflicts:!1,step:t,loading:!1})})).catch((function(e){return window.console.log(e)}))}}},{key:"prevStep",value:function(){var e=this.state.step-1;4!==this.state.step||this.state.hasUptime||e--,this.setState({step:e})}},{key:"finish",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pluginDash";this.setState({loading:!0}),"string"!=typeof e&&(e="pluginDash"),this.trackSetupEvents(e),this.state.api.post("complete_wizard",e).then((function(){window.location.href=a(e)})).catch((function(e){return window.console.log(e)}))}},{key:"checkRequirements",value:function(){var e=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.setState({loading:!0}),this.state.api.post("check_requirements").then((function(t){e.setState({loading:!1,issues:t.status})})).catch((function(e){return window.console.log(e)}))}},{key:"removeAdvancedCache",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("remove_advanced_cache").then((function(t){e.setState({loading:!1,issues:t.status})})).catch((function(e){return window.console.log(e)}))}},{key:"disableFastCGI",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("disable_fast_cgi").then((function(t){e.setState({loading:!1,issues:t.status})})).catch((function(e){return window.console.log(e)}))}},{key:"updateSettings",value:function(e){var t=ut({},this.state.settings);t[e.target.id]=e.target.checked,"tracking"===e.target.id&&this.trackUserConsentToggle(e.target.checked),this.setState({settings:t})}},{key:"toggleModule",value:function(e,t){var n=ut({},this.state.settings);n[t]="enable"===e,"cacheEnable"!==t||"enable"!==e&&"disable"!==e||(n.fastCGI=!1),this.setState({settings:n})}},{key:"quitWizard",value:function(){this.setState({loading:!0}),this.trackSetupEvents(),this.state.api.post("cancel_wizard").then((function(){window.location.href=a("pluginDash")})).catch((function(e){return window.console.log(e)}))}},{key:"scanning",value:function(){this.setState({scanning:!0})}},{key:"trackSetupEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"quit";e={configs:"apply_configs",runPerf:"performance_test",pluginDash:"complete_dashboard"}[e]||e;var t={1:this.state.issues.advCacheFile?"conflict":"tracking",2:this.state.scanning?"ao_progress":"ao_settings",3:"uptime",4:"page_caching",5:"advanced_tools"}[this.state.step]||"na",n=this.state.issues.advCacheFile?"yes":"no",r=this.state.settings.aoEnable?this.mapSettings({aoSpeedy:"speedy",aoCdn:"cdn",delayJS:"js_delay",criticalCSS:"critical_css",fontSwap:"font_swap"}):"disabled",i=this.mapSettings({queryStrings:"remove_query_strings",cartFragments:"disable_cart_fragments",removeEmoji:"remove_emoji"}),o=this.state.settings.uptimeEnable?"enabled":"disabled",s=i.length>0?i:"all_disabled",a="disabled";this.state.settings.cacheEnable&&(a=this.state.settings.fastCGI?this.state.settings.clearOnComment&&this.state.settings.clearCacheButton?"ssc_defaults":"ssc_modified":this.state.settings.cacheOnMobile&&this.state.settings.clearOnComment&&this.state.settings.cacheHeader&&this.state.settings.clearCacheButton?"local_defaults":"local_modified"),this.state.settings.tracking&&window.wphbMixPanel.optIn(),window.wphbMixPanel.track("Setup Wizard",{Action:e,"Quit Step":t,Conflict:n,"AO Settings":this.state.step>2?r:"na",Uptime:o,"Cache Settings":this.state.step>4?a:"na","Advanced Settings":this.state.step>5?s:"na",Documentation:this.state.checkDocumentation?"clicked":"not_clicked"})}},{key:"mapSettings",value:function(e){var t=this;return Object.keys(e).filter((function(e){return t.state.settings[e]})).map((function(t){return e[t]}))}},{key:"trackDocumentation",value:function(){this.setState({checkDocumentation:!0})}},{key:"trackUserConsentToggle",value:function(e){this.state.api.post("track_user_consent_toggle",e).then((function(){e&&window.wphbMixPanel.optIn()})).catch((function(e){return window.console.log(e)}))}},{key:"getHeader",value:function(){var e=this;return r.createElement("div",{className:"sui-header wphb-wizard-header"},r.createElement("h2",{className:"sui-header-title"},r.createElement("img",{className:"sui-image",alt:yt("Setup wizard","wphb"),src:a("wphbDirUrl")+"admin/assets/image/setup/hummingbird.png",srcSet:a("wphbDirUrl")+"admin/assets/image/setup/hummingbird.png 1x, "+a("wphbDirUrl")+"admin/assets/image/setup/hummingbird@2x.png 2x"}),yt("Hummingbird","wphb"),r.createElement("small",null,yt("Wizard","wphb"))),r.createElement("div",{className:"sui-actions-right"},!this.state.isMember&&r.createElement(z,{text:yt("Get Hummingbird Pro for our full WordPress speed optimization suite, including uptime monitoring and enhanced CDN.","wphb"),classes:["sui-tooltip-constrained","sui-tooltip-bottom"]},r.createElement(q,{classes:["sui-button","sui-button-purple"],target:"blank",url:a("upsell"),onClick:function(e){window.wphbMixPanel.trackHBUpsell("pro_general","wizard","cta_clicked",e.target.href,"hb_pro_upsell")},text:yt("UPGRADE TO PRO","wphb")})),6!==this.state.step&&r.createElement(G,{onClick:this.quitWizard,type:"button",loading:this.state.loading,classes:["sui-button","sui-button-ghost"],icon:"sui-icon-logout",text:yt("Quit wizard","wphb")}),r.createElement(q,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-academy",target:"blank",url:a("docs"),onClick:function(){return e.trackDocumentation()},text:yt("Documentation","wphb")})))}},{key:"render",value:function(){var e=this;return r.createElement(r.Fragment,null,this.getHeader(),r.createElement(st,{loading:this.state.loading,step:this.state.step,showConflicts:this.state.showConflicts,issues:this.state.issues,minifySteps:this.props.wphbData.minifySteps,nextStep:this.nextStep,prevStep:this.prevStep,finish:this.finish,scanning:this.scanning,skipConflicts:this.skipConflicts,isMember:this.state.isMember,isNetworkAdmin:this.props.wphbData.isNetworkAdmin,hasUptime:this.state.hasUptime,settings:this.state.settings,hasWoo:this.props.wphbData.hasWoo,reCheckRequirements:function(){return e.checkRequirements(!0)},updateSettings:this.updateSettings,toggleModule:this.toggleModule,disableFastCGI:this.disableFastCGI,removeAdvancedCache:this.removeAdvancedCache}))}}],i&&pt(n.prototype,i),o&&pt(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,o}(r.Component);vt.propTypes={wphbData:s().object},gt=function(){var e=document.getElementById("wrap-wphb-setup");if(e){var t=i.render(r.createElement(vt,{wphbData:window.wphb}),e);window.wphbSetupNextStep=t.nextStep}},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",gt):gt())},6964:function(e,t,n){e.exports=function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function t(e){return"function"==typeof e}var r=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,o=void 0,s=void 0,a=function(e,t){w[i]=e,w[i+1]=t,2===(i+=2)&&(s?s(E):_())};function c(e){s=e}function u(e){a=e}var l="undefined"!=typeof window?window:void 0,p=l||{},h=p.MutationObserver||p.WebKitMutationObserver,f="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function b(){return function(){return process.nextTick(E)}}function m(){return void 0!==o?function(){o(E)}:v()}function y(){var e=0,t=new h(E),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function g(){var e=new MessageChannel;return e.port1.onmessage=E,function(){return e.port2.postMessage(0)}}function v(){var e=setTimeout;return function(){return e(E,1)}}var w=new Array(1e3);function E(){for(var e=0;e<i;e+=2)(0,w[e])(w[e+1]),w[e]=void 0,w[e+1]=void 0;i=0}function S(){try{var e=Function("return this")().require("vertx");return o=e.runOnLoop||e.runOnContext,m()}catch(e){return v()}}var _=void 0;function O(e,t){var n=this,r=new this.constructor(x);void 0===r[C]&&Y(r);var i=n._state;if(i){var o=arguments[i-1];a((function(){return G(i,r,o,n._result)}))}else q(n,r,e,t);return r}function k(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(x);return I(n,e),n}_=f?b():h?y():d?g():void 0===l?S():v();var C=Math.random().toString(36).substring(2);function x(){}var P=void 0,j=1,T=2;function A(){return new TypeError("You cannot resolve a promise with itself")}function N(){return new TypeError("A promises callback cannot return that same promise.")}function F(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}function D(e,t,n){a((function(e){var r=!1,i=F(n,t,(function(n){r||(r=!0,t!==n?I(e,n):U(e,n))}),(function(t){r||(r=!0,H(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&i&&(r=!0,H(e,i))}),e)}function B(e,t){t._state===j?U(e,t._result):t._state===T?H(e,t._result):q(t,void 0,(function(t){return I(e,t)}),(function(t){return H(e,t)}))}function M(e,n,r){n.constructor===e.constructor&&r===O&&n.constructor.resolve===k?B(e,n):void 0===r?U(e,n):t(r)?D(e,n,r):U(e,n)}function I(t,n){if(t===n)H(t,A());else if(e(n)){var r=void 0;try{r=n.then}catch(e){return void H(t,e)}M(t,n,r)}else U(t,n)}function R(e){e._onerror&&e._onerror(e._result),L(e)}function U(e,t){e._state===P&&(e._result=t,e._state=j,0!==e._subscribers.length&&a(L,e))}function H(e,t){e._state===P&&(e._state=T,e._result=t,a(R,e))}function q(e,t,n,r){var i=e._subscribers,o=i.length;e._onerror=null,i[o]=t,i[o+j]=n,i[o+T]=r,0===o&&e._state&&a(L,e)}function L(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,i=void 0,o=e._result,s=0;s<t.length;s+=3)r=t[s],i=t[s+n],r?G(n,r,i,o):i(o);e._subscribers.length=0}}function G(e,n,r,i){var o=t(r),s=void 0,a=void 0,c=!0;if(o){try{s=r(i)}catch(e){c=!1,a=e}if(n===s)return void H(n,N())}else s=i;n._state!==P||(o&&c?I(n,s):!1===c?H(n,a):e===j?U(n,s):e===T&&H(n,s))}function z(e,t){try{t((function(t){I(e,t)}),(function(t){H(e,t)}))}catch(t){H(e,t)}}var W=0;function J(){return W++}function Y(e){e[C]=W++,e._state=void 0,e._result=void 0,e._subscribers=[]}function V(){return new Error("Array Methods must be provided an Array")}var $=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(x),this.promise[C]||Y(this.promise),r(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?U(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&U(this.promise,this._result))):H(this.promise,V())}return e.prototype._enumerate=function(e){for(var t=0;this._state===P&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===k){var i=void 0,o=void 0,s=!1;try{i=e.then}catch(e){s=!0,o=e}if(i===O&&e._state!==P)this._settledAt(e._state,t,e._result);else if("function"!=typeof i)this._remaining--,this._result[t]=e;else if(n===te){var a=new n(x);s?H(a,o):M(a,e,i),this._willSettleAt(a,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===P&&(this._remaining--,e===T?H(r,n):this._result[t]=n),0===this._remaining&&U(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;q(e,void 0,(function(e){return n._settledAt(j,t,e)}),(function(e){return n._settledAt(T,t,e)}))},e}();function Q(e){return new $(this,e).promise}function X(e){var t=this;return r(e)?new t((function(n,r){for(var i=e.length,o=0;o<i;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function K(e){var t=new this(x);return H(t,e),t}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ee(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var te=function(){function e(t){this[C]=J(),this._result=this._state=void 0,this._subscribers=[],x!==t&&("function"!=typeof t&&Z(),this instanceof e?z(this,t):ee())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var n=this,r=n.constructor;return t(e)?n.then((function(t){return r.resolve(e()).then((function(){return t}))}),(function(t){return r.resolve(e()).then((function(){throw t}))})):n.then(e,e)},e}();function ne(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=te}return te.prototype.then=O,te.all=Q,te.race=X,te.resolve=k,te.reject=K,te._setScheduler=c,te._setAsap=u,te._asap=a,te.polyfill=ne,te.Promise=te,te}()},1873:function(e,t,n){var r=n(9325).Symbol;e.exports=r},1033:function(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},695:function(e,t,n){var r=n(8096),i=n(2428),o=n(6449),s=n(3656),a=n(361),c=n(7167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),p=!n&&!l&&s(e),h=!n&&!l&&!p&&c(e),f=n||l||p||h,d=f?r(e.length,String):[],b=d.length;for(var m in e)!t&&!u.call(e,m)||f&&("length"==m||p&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,b))||d.push(m);return d}},6547:function(e,t,n){var r=n(3360),i=n(5288),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];o.call(e,t)&&i(s,n)&&(void 0!==n||t in e)||r(e,t,n)}},3360:function(e,t,n){var r=n(3243);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},2552:function(e,t,n){var r=n(1873),i=n(659),o=n(9350),s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?i(e):o(e)}},7534:function(e,t,n){var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&"[object Arguments]"==r(e)}},5083:function(e,t,n){var r=n(1882),i=n(7296),o=n(3805),s=n(7473),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:a).test(s(e))}},4901:function(e,t,n){var r=n(2552),i=n(294),o=n(346),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,e.exports=function(e){return o(e)&&i(e.length)&&!!s[r(e)]}},8984:function(e,t,n){var r=n(5527),i=n(3650),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9302:function(e,t,n){var r=n(3488),i=n(6757),o=n(2865);e.exports=function(e,t){return o(i(e,t,r),e+"")}},9570:function(e,t,n){var r=n(7334),i=n(3243),o=n(3488),s=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=s},8096:function(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},7301:function(e){e.exports=function(e){return function(t){return e(t)}}},1791:function(e,t,n){var r=n(6547),i=n(3360);e.exports=function(e,t,n,o){var s=!n;n||(n={});for(var a=-1,c=t.length;++a<c;){var u=t[a],l=o?o(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),s?i(n,u,l):r(n,u,l)}return n}},5481:function(e,t,n){var r=n(9325)["__core-js_shared__"];e.exports=r},999:function(e,t,n){var r=n(9302),i=n(6800);e.exports=function(e){return r((function(t,n){var r=-1,o=n.length,s=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=e.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++r<o;){var c=n[r];c&&e(t,c,r,s)}return t}))}},3243:function(e,t,n){var r=n(6110),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},4840:function(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},6110:function(e,t,n){var r=n(5083),i=n(392);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},659:function(e,t,n){var r=n(1873),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[a]=n:delete e[a]),i}},392:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},361:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},6800:function(e,t,n){var r=n(5288),i=n(4894),o=n(361),s=n(3805);e.exports=function(e,t,n){if(!s(n))return!1;var a=typeof t;return!!("number"==a?i(n)&&o(t,n.length):"string"==a&&t in n)&&r(n[t],e)}},7296:function(e,t,n){var r,i=n(5481),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},5527:function(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},3650:function(e,t,n){var r=n(4335)(Object.keys,Object);e.exports=r},6009:function(e,t,n){e=n.nmd(e);var r=n(4840),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var e=o&&o.require&&o.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=a},9350:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},6757:function(e,t,n){var r=n(1033),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,s=-1,a=i(o.length-t,0),c=Array(a);++s<a;)c[s]=o[t+s];s=-1;for(var u=Array(t+1);++s<t;)u[s]=o[s];return u[t]=n(c),r(e,this,u)}}},9325:function(e,t,n){var r=n(4840),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},2865:function(e,t,n){var r=n(9570),i=n(1811)(r);e.exports=i},1811:function(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var i=t(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7473:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6139:function(e,t,n){var r=n(6547),i=n(1791),o=n(999),s=n(4894),a=n(5527),c=n(5950),u=Object.prototype.hasOwnProperty,l=o((function(e,t){if(a(t)||s(t))i(t,c(t),e);else for(var n in t)u.call(t,n)&&r(e,n,t[n])}));e.exports=l},7334:function(e){e.exports=function(e){return function(){return e}}},5288:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},3488:function(e){e.exports=function(e){return e}},2428:function(e,t,n){var r=n(7534),i=n(346),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return i(e)&&s.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6449:function(e){var t=Array.isArray;e.exports=t},4894:function(e,t,n){var r=n(1882),i=n(294);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},3656:function(e,t,n){e=n.nmd(e);var r=n(9325),i=n(9935),o=t&&!t.nodeType&&t,s=o&&e&&!e.nodeType&&e,a=s&&s.exports===o?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||i;e.exports=c},1882:function(e,t,n){var r=n(2552),i=n(3805);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3805:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},7167:function(e,t,n){var r=n(4901),i=n(7301),o=n(6009),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},5950:function(e,t,n){var r=n(695),i=n(8984),o=n(4894);e.exports=function(e){return o(e)?r(e):i(e)}},9935:function(e){e.exports=function(){return!1}},5228:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in o=Object(arguments[c]))n.call(o,u)&&(a[u]=o[u]);if(t){s=t(o);for(var l=0;l<s.length;l++)r.call(o,s[l])&&(a[s[l]]=o[s[l]])}}return a}},2694:function(e,t,n){"use strict";var r=n(1687);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,s){if(s!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},5556:function(e,t,n){e.exports=n(2694)()},1687:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7463:function(e,t){"use strict";var n,r,i,o;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,l=null,p=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(p,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(p,0))},r=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},o=t.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,f=window.clearTimeout;if("undefined"!=typeof console){var d=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof d&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var b=!1,m=null,y=-1,g=5,v=0;t.unstable_shouldYield=function(){return t.unstable_now()>=v},o=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):g=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();v=e+g;try{m(!0,e)?E.postMessage(null):(b=!1,m=null)}catch(e){throw E.postMessage(null),e}}else b=!1},n=function(e){m=e,b||(b=!0,E.postMessage(null))},r=function(e,n){y=h((function(){e(t.unstable_now())}),n)},i=function(){f(y),y=-1}}function S(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<k(i,t)))break e;e[r]=t,e[n]=i,n=r}}function _(e){return void 0===(e=e[0])?null:e}function O(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,s=e[o],a=o+1,c=e[a];if(void 0!==s&&0>k(s,n))void 0!==c&&0>k(c,s)?(e[r]=c,e[a]=n,r=a):(e[r]=s,e[o]=n,r=o);else{if(!(void 0!==c&&0>k(c,n)))break e;e[r]=c,e[a]=n,r=a}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],x=[],P=1,j=null,T=3,A=!1,N=!1,F=!1;function D(e){for(var t=_(x);null!==t;){if(null===t.callback)O(x);else{if(!(t.startTime<=e))break;O(x),t.sortIndex=t.expirationTime,S(C,t)}t=_(x)}}function B(e){if(F=!1,D(e),!N)if(null!==_(C))N=!0,n(M);else{var t=_(x);null!==t&&r(B,t.startTime-e)}}function M(e,n){N=!1,F&&(F=!1,i()),A=!0;var o=T;try{for(D(n),j=_(C);null!==j&&(!(j.expirationTime>n)||e&&!t.unstable_shouldYield());){var s=j.callback;if("function"==typeof s){j.callback=null,T=j.priorityLevel;var a=s(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof a?j.callback=a:j===_(C)&&O(C),D(n)}else O(C);j=_(C)}if(null!==j)var c=!0;else{var u=_(x);null!==u&&r(B,u.startTime-n),c=!1}return c}finally{j=null,T=o,A=!1}}var I=o;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||A||(N=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return _(C)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=I,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,o,s){var a=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:o,priorityLevel:e,startTime:s,expirationTime:c=s+c,sortIndex:-1},s>a?(e.sortIndex=s,S(x,e),null===_(C)&&e===_(x)&&(F?i():F=!0,r(B,s-a))):(e.sortIndex=c,S(C,e),N||A||(N=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},9982:function(e,t,n){"use strict";e.exports=n(7463)},6942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=s(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=s(t,n));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.m=t,e=[],r.O=function(t,n,i,o){if(!n){var s=1/0;for(l=0;l<e.length;l++){n=e[l][0],i=e[l][1],o=e[l][2];for(var a=!0,c=0;c<n.length;c++)(!1&o||s>=o)&&Object.keys(r.O).every((function(e){return r.O[e](n[c])}))?n.splice(c--,1):(a=!1,o<s&&(s=o));if(a){e.splice(l--,1);var u=i();void 0!==u&&(t=u)}}return t}o=o||0;for(var l=e.length;l>0&&e[l-1][2]>o;l--)e[l]=e[l-1];e[l]=[n,i,o]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e={884:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var i,o,s=n[0],a=n[1],c=n[2],u=0;if(s.some((function(t){return 0!==e[t]}))){for(i in a)r.o(a,i)&&(r.m[i]=a[i]);if(c)var l=c(r)}for(t&&t(n);u<s.length;u++)o=s[u],r.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return r.O(l)},n=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var i=r.O(void 0,[816],(function(){return r(5551)}));i=r.O(i)}();
//# sourceMappingURL=wphb-setup-wizard.min.js.map