File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/hummingbird-performance/admin/assets/js/wphb-react-gzip.min.js
Back
!function(){var e,t={1687:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2694:function(e,t,r){"use strict";var n=r(1687);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){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 r={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:i,resetWarningCache:o};return r.PropTypes=r,r}},5228:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,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 i=Object(arguments[c]))r.call(i,u)&&(a[u]=i[u]);if(t){s=t(i);for(var l=0;l<s.length;l++)n.call(i,s[l])&&(a[s[l]]=i[s[l]])}}return a}},5556:function(e,t,r){e.exports=r(2694)()},5620:function(e,t,r){"use strict";var n=r(6540),o=r(961),i=r(5556),s=r.n(i);var a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},c="URLSearchParams"in a,u="Symbol"in a&&"iterator"in Symbol,l="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),p="FormData"in a,f="ArrayBuffer"in a;if(f)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&h.indexOf(Object.prototype.toString.call(e))>-1};function b(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 m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(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 g(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function E(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function O(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:l&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:p&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:c&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f&&l&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=O(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=O(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):c&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l&&(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(l)return this.blob().then(E);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=w(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p&&(this.formData=function(){return this.text().then(S)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=b(e),t=y(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},v.prototype.delete=function(e){delete this.map[b(e)]},v.prototype.get=function(e){return e=b(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(b(e))},v.prototype.set=function(e,t){this.map[b(e)]=y(t)},v.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},v.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),m(e)},v.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),m(e)},v.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),m(e)},u&&(v.prototype[Symbol.iterator]=v.prototype.entries);var j=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof k){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,o||null==e._bodyInit||(o=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=(r=t.method||this.method||"GET",n=r.toUpperCase(),j.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in a)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function S(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),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)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},_.call(k.prototype),_.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 T=[301,302,303,307,308];P.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var x=a.DOMException;try{new x}catch(e){(x=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),x.prototype.constructor=x}function C(e,t){return new Promise(function(r,n){var o=new k(e,t);if(o.signal&&o.signal.aborted)return n(new x("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.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 r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var s="response"in i?i.response:i.responseText;setTimeout(function(){r(new P(s,n))},0)},i.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){n(new x("Aborted","AbortError"))},0)},i.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(l?i.responseType="blob":f&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof v||a.Headers&&t.headers instanceof a.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(e){c.push(b(e)),i.setRequestHeader(e,y(t.headers[e]))}),o.headers.forEach(function(e,t){-1===c.indexOf(t)&&i.setRequestHeader(t,e)})}else o.headers.forEach(function(e,t){i.setRequestHeader(t,e)});o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._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 A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I(n.key),n)}}function I(e){var t=function(e,t){if("object"!=N(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N(t)?t:t+""}C.polyfill=!0,a.fetch||(a.fetch=C,a.Headers=v,a.Request=k,a.Response=P);var B=["get","post","put","delete"],R=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],r={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 C(ajaxurl,r).then(function(e){return e.json().then(function(t){return e.ok?t.data:Promise.reject(t.data)})})}}}],t&&A(e.prototype,t),r&&A(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),F=n.createContext(),D=r(6942),U=r.n(D);function M(e){return M="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},M(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,H(n.key),n)}}function H(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}function G(e,t,r){return t=q(t),function(e,t){if(t&&("object"==M(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,z()?Reflect.construct(t,r||[],q(e).constructor):t.apply(e,r))}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(z=function(){return!!e})()}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function W(e,t){return W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},W(e,t)}var Z=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),G(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&&W(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e="sui-actions-"+this.props.type;return n.createElement("div",{className:e},this.props.content)}}])&&L(r.prototype,o),i&&L(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function Y(e){var t=e.elements,r=e.header,o=e.extraClasses,i=Object.values(t).map(function(e,t){return n.createElement("div",{className:"table-row",key:t},n.createElement("div",{className:"wphb-caching-summary-item-type"},e.label),!window.lodash.includes(o,"two-columns")&&n.createElement("div",{className:"wphb-caching-summary-item-expiry"},e.expiry),n.createElement("div",null,e.details))});return n.createElement("div",{className:U()("wphb-border-frame",o)},r&&n.createElement("div",{className:"table-header"},n.createElement("div",{className:"wphb-caching-summary-heading-type"},r[0]),!window.lodash.includes(o,"two-columns")&&n.createElement("div",{className:"wphb-caching-summary-heading-expiry"},r[2]),n.createElement("div",{className:"wphb-caching-summary-heading-status"},r[1])),i)}function $(e){var t=e.classes;return n.createElement("span",{className:t,"aria-hidden":"true"})}var V=wp.i18n.__;function X(e){var t=e.loading,r=e.text,o=V("Fetching latest data...","wphb");return r&&(o=r),n.createElement("div",{className:U()("wphb-loading-overlay",{"wphb-loading":t})},n.createElement($,{classes:"sui-icon-loader sui-loading"}),n.createElement("p",null,o))}function J(e){return J="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},J(e)}function Q(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function K(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==J(t)?t:t+""}function ee(e,t,r){return t=re(t),function(e,t){if(t&&("object"==J(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,te()?Reflect.construct(t,r||[],re(e).constructor):t.apply(e,r))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(te=function(){return!!e})()}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}var oe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ee(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&&ne(e,t)}(t,e),r=t,i=[{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]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n.createElement(n.Fragment,null,(e||t)&&n.createElement("h3",{className:"sui-box-title"},t&&n.createElement($,{classes:"sui-icon-"+t})," "+e),r)}}],(o=[{key:"renderContent",value:function(){var e,r=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"],n.createElement(n.Fragment,null,n.createElement(X,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&n.createElement("div",{className:U()(e)},r),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&n.createElement("div",{className:U()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&n.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?n.createElement(n.Fragment,null,e):n.createElement("div",{className:U()("sui-box",this.props.boxClass),"data-tab":"flushed"},e)}}])&&Q(r.prototype,o),i&&Q(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);oe.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};var ie=["text","url","classes","id","icon","target","disabled","onClick","type"];function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(null,arguments)}function ae(e){var t,r=e.text,o=e.url,i=void 0===o?"#":o,s=e.classes,a=e.id,c=e.icon,u=e.target,l=e.disabled,p=void 0!==l&&l,f=e.onClick,h=e.type,d=void 0===h?"link":h,b=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ie);return c&&(c=n.createElement("span",{className:c,"aria-hidden":"true"})),"button"===d?n.createElement("button",se({className:U()(s),id:a,disabled:p,onClick:f},b),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c):("blank"!==u&&"_blank"!==u||(u="_blank",t="noopener noreferrer"),n.createElement("a",se({className:U()(s),href:i,id:a,target:u,rel:t,disabled:p,onClick:f},b),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c))}function ce(e){var t=e.message,r=e.classes,o=e.content,i=U()("sui-notice",r);return n.createElement("div",{className:i},n.createElement("div",{className:"sui-notice-content"},n.createElement("div",{className:"sui-notice-message"},n.createElement($,{classes:"sui-notice-icon sui-icon-info sui-md"}),t&&n.createElement("p",null,t),o&&n.createElement("p",null,o))))}function ue(e){var t=e.value,r=e.type;if(0===t&&"success"===r)return n.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var o="sui-tag sui-tag-"+r;return n.createElement("span",{className:o},t)}function le(e){var t=e.text,r=e.classes,o=e.children;return n.createElement("span",{className:U()("sui-tooltip",r),"data-tooltip":t},o)}let pe,fe,he,de;ue.defaultProps={value:0,type:"success"};const be=/<(\/)?(\w+)\s*(\/)?>/g;function ye(e,t,r,n,o){return{element:e,tokenStart:t,tokenLength:r,prevOffset:n,leadingTextStart:o,children:[]}}const me=e=>{const t="object"==typeof e,r=t&&Object.values(e);return t&&r.length&&r.every(e=>(0,n.isValidElement)(e))};function ve(e){const t=function(){const e=be.exec(pe);if(null===e)return["no-more-tokens"];const t=e.index,[r,n,o,i]=e,s=r.length;if(i)return["self-closed",o,t,s];if(n)return["closer",o,t,s];return["opener",o,t,s]}(),[r,o,i,s]=t,a=de.length,c=i>fe?fe:null;if(!e[o])return we(),!1;switch(r){case"no-more-tokens":if(0!==a){const{leadingTextStart:e,tokenStart:t}=de.pop();he.push(pe.substr(e,t))}return we(),!1;case"self-closed":return 0===a?(null!==c&&he.push(pe.substr(c,i-c)),he.push(e[o]),fe=i+s,!0):(ge(ye(e[o],i,s)),fe=i+s,!0);case"opener":return de.push(ye(e[o],i,s,i+s,c)),fe=i+s,!0;case"closer":if(1===a)return function(e){const{element:t,leadingTextStart:r,prevOffset:o,tokenStart:i,children:s}=de.pop(),a=e?pe.substr(o,e-o):pe.substr(o);a&&s.push(a);null!==r&&he.push(pe.substr(r,i-r));he.push((0,n.cloneElement)(t,null,...s))}(i),fe=i+s,!0;const t=de.pop(),r=pe.substr(t.prevOffset,i-t.prevOffset);t.children.push(r),t.prevOffset=i+s;const u=ye(t.element,t.tokenStart,t.tokenLength,i+s);return u.children=t.children,ge(u),fe=i+s,!0;default:return we(),!1}}function we(){const e=pe.length-fe;0!==e&&he.push(pe.substr(fe,e))}function ge(e){const{element:t,tokenStart:r,tokenLength:o,prevOffset:i,children:s}=e,a=de[de.length-1],c=pe.substr(a.prevOffset,r-a.prevOffset);c&&a.children.push(c),a.children.push((0,n.cloneElement)(t,null,...s)),a.prevOffset=i||r+o}var Ee=(e,t)=>{if(pe=e,fe=0,he=[],de=[],be.lastIndex=0,!me(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(ve(t));return(0,n.createElement)(n.Fragment,null,...he)};function Oe(e){return Oe="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},Oe(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Te(n.key),n)}}function je(e,t,r){return t=Se(t),function(e,t){if(t&&("object"==Oe(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,ke()?Reflect.construct(t,r||[],Se(e).constructor):t.apply(e,r))}function ke(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ke=function(){return!!e})()}function Se(e){return Se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Se(e)}function Pe(e,t){return Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Pe(e,t)}function Te(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Oe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}var xe=wp.i18n,Ce=xe.__,Ne=xe.sprintf,Ae=function(e){function t(){var e,r,n,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,s=new Array(i),a=0;a<i;a++)s[a]=arguments[a];return e=je(this,t,[].concat(s)),r=e,o=function(e){window.wphbMixPanel.track("check_brotli_support")},(n=Te(n="trackMPEvent"))in r?Object.defineProperty(r,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[n]=o,e}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&&Pe(e,t)}(t,e),r=t,i=[{key:"getStatus",value:function(e){var r;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(r=n.createElement(ue,null));var o=t.getFailedItems(e);return 0<o.length&&(r=n.createElement(ue,{value:o.length,type:"warning"})),r}},{key:"getFailedItems",value:function(e){return Object.values(e).filter(function(e){return!e||"privacy"===e})}}],(o=[{key:"checkExternalProblems",value:function(){if(!this.props.loading&&(!this.props.data.htaccess_writable||this.props.data.htaccess_written)&&(3!==Object.keys(this.props.status).length||0<t.getFailedItems(this.props.status).length)){var e=n.createElement(n.Fragment,null,n.createElement("p",null,Ce("Gzip is not working properly:","wphb")),n.createElement("p",null,Ce('Your server may not have the "deflate" module enabled (mod_deflate for Apache, ngx_http_gzip_module for NGINX). Contact your host. If deflate is enabled, ask why all .htaccess or nginx.conf compression rules are not being applied. If re-checking and restarting does not resolve, please check with your host or',"wphb")," ",n.createElement(ae,{text:Ce("open a support ticket.","wphb"),url:this.props.link.support.forum,target:"blank"})));return n.createElement(ce,{classes:"sui-notice-error",content:e})}}},{key:"getContent",value:function(){var e=t.getFailedItems(this.props.status),r="sui-notice-warning",o=Ne(Ce("%d of your compression types are inactive. Configure compression for all files types below.","wphb"),e.length);0<Object.values(e).filter(function(e){return"privacy"===e}).length?(r="sui-notice-info",o=Ne(Ce("GZip compression is currently active for %d/3 types.","wphb"),3-e.length),void 0!==this.props.status.HTML&&"privacy"===this.props.status.HTML?o+=" "+Ce("We’ve detected that you have Privacy Mode active which prevents us from accurately detecting whether HTML compression is active or not. That is to say, an HTTP 401 Unauthorized Client status was detected and your site requires valid HTTP authentication credentials. You can re-check this once you have tended to the HTTP 401 error.","wphb"):o+=" "+Ce("We’ve detected an HTTP error that prevents us from accurately detecting whether HTML compression is active or not. You can re-check this once you have tended to the HTTP error.","wphb")):0===e.length&&(r="sui-notice-success",o=Ce("Gzip compression is currently active. Good job!","wphb"),!1===this.props.data.htaccess_written&&(o=Ce("GZip compression is already running smoothly on your site. Your hosting has automatically pre-configured GZip compression for you and no further actions are required.","wphb")),!1===this.props.data.is_white_labeled&&!0===this.props.data.is_wpmu_hosting&&(o=Ce("GZip compression is already running smoothly on your site. Since your site is hosted with WPMU DEV, GZip compression has been automatically configured and no further actions are required.","wphb")),(!1===this.props.data.is_white_labeled&&!0===this.props.data.cdn||"br"===this.props.data.compression_type)&&(o=Ee(Ce("Brotli Compression is active and working well via CDN/Hosting, for enhanced performance in supported browsers. For browsers that don’t support Brotli, we’ll automatically use GZip instead. <a>Check browser support here</a>.","wphb"),{a:n.createElement("a",{onClick:this.trackMPEvent,href:"https://caniuse.com/brotli",target:"_blank"})})));var i=Object.entries(this.props.status).map(function(e){var t=Ce("Inactive","wphb"),r="warning";!0===e[1]&&(t=Ce("Active","wphb"),r="success");var o=e[0].toLowerCase(),i=U()("wphb-filename-extension","wphb-filename-extension-"+o);"javascript"===o&&(o="js");var s=n.createElement(n.Fragment,null,n.createElement("span",{className:i},o),n.createElement("span",{className:"wphb-filename-extension-label"},e[0])),a=Ne(Ce("Gzip compression is %1$s for %2$s","wphb"),t.toLowerCase(),e[0]);return"privacy"===e[1]&&(a=Ce("While Privacy Mode is active, we can’t accurately detect if HTML compression is active and working. Re-check this once you’ve disabled Privacy Mode.","wphb")),{label:s,details:n.createElement(le,{text:a,classes:["sui-tooltip-constrained","sui-tooltip-top-right-mobile"]},n.createElement(ue,{value:t,type:r}))}});return n.createElement(n.Fragment,null,this.checkExternalProblems(),n.createElement("p",null,Ce("Gzip compresses your web pages and style sheets before sending them over to the browser. This drastically reduces transfer time since the files are much smaller.","wphb")),n.createElement(ce,{message:o,classes:r}),n.createElement(Y,{header:[Ce("File type","wphb"),Ce("Current status","wphb")],elements:i,extraClasses:["two-columns"]}))}},{key:"render",value:function(){var e=t.getStatus(this.props.status),r=n.createElement(n.Fragment,null,n.createElement("span",{className:"label-notice-inline sui-hidden-xs sui-hidden-sm"},Ce("Made changes?","wphb")),n.createElement(ae,{text:Ce("Re-check status","wphb"),onClick:this.props.onUpdate,classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update"})),o=n.createElement(n.Fragment,null,e&&n.createElement(Z,{type:"left",content:e}),n.createElement(Z,{type:"right",content:r}));return n.createElement(oe,{loading:this.props.loading,title:Ce("Status","wphb"),headerActions:o,content:this.getContent()})}}])&&_e(r.prototype,o),i&&_e(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component),Ie=Ae;function Be(e){return Be="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},Be(e)}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fe(n.key),n)}}function Fe(e){var t=function(e,t){if("object"!=Be(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Be(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Be(t)?t:t+""}function De(e,t,r){return t=Me(t),function(e,t){if(t&&("object"==Be(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,Ue()?Reflect.construct(t,r||[],Me(e).constructor):t.apply(e,r))}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ue=function(){return!!e})()}function Me(e){return Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Me(e)}function Le(e,t){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}var He=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),De(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&&Le(e,t)}(t,e),r=t,(o=[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.SUIselect2({minimumResultsForSearch:-1}),this.$el.on("change",this.props.onChange)}},{key:"render",value:function(){var e,t=this,r=this.props.items.map(function(e,t){return n.createElement("option",{value:e[0],key:t},e[1])}),o=void 0===this.props.classes?"250":null;return n.createElement("div",{className:U()("sui-form-field",{"sui-input-md":"250"===o})},n.createElement("label",{htmlFor:this.props.selectId,id:this.props.selectId+"-label",className:"sui-label"},this.props.label),n.createElement("select",{onChange:this.props.onChange,value:this.props.selected,className:U()("sui-select",this.props.classes),"data-width":o,name:this.props.selectId,id:this.props.selectId,multiple:this.props.multiple,"data-placeholder":null!==(e=this.props.placeholder)&&void 0!==e?e:"","aria-labelledby":this.props.selectId+"-label","aria-describedby":this.props.description?this.props.selectId+"-description":"",ref:function(e){return t.el=e}},this.props.placeholder&&n.createElement("option",null),r),this.props.description&&n.createElement("span",{id:this.props.selectId+"-description",className:"sui-description"},this.props.description))}}])&&Re(r.prototype,o),i&&Re(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);He.defaultProps={selectId:"",label:"",items:[],selected:"",multiple:!1};var Ge=wp.i18n.__;function ze(e){var t=e.isMember,r=e.chatLink,o=e.forumLink,i=e.noFormatting,s=void 0!==i&&i,a=n.createElement(n.Fragment,null,Ge("Still having trouble?","wphb")," ",n.createElement(ae,{url:t?r:o,target:"blank",text:Ge(t?"Start a live chat.":"Open a support ticket.","wphb")}));return s?a:n.createElement("p",{className:"sui-description"},a)}function qe(e){return qe="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},qe(e)}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ze(n.key),n)}}function Ze(e){var t=function(e,t){if("object"!=qe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=qe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==qe(t)?t:t+""}function Ye(e,t,r){return t=Ve(t),function(e,t){if(t&&("object"==qe(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,r||[],Ve(e).constructor):t.apply(e,r))}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($e=function(){return!!e})()}function Ve(e){return Ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ve(e)}function Xe(e,t){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xe(e,t)}var Je=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ye(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&&Xe(e,t)}(t,e),r=t,(o=[{key:"componentDidMount",value:function(){this.initSUI()}},{key:"componentDidUpdate",value:function(){this.initSUI()}},{key:"initSUI",value:function(){var e=document.querySelector("pre.sui-code-snippet");e&&SUI.suiCodeSnippet(e)}},{key:"render",value:function(){return n.createElement("pre",{className:"sui-code-snippet"},this.props.code)}}])&&We(r.prototype,o),i&&We(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function Qe(e){var t=e.list.map(function(e,t){return n.createElement("li",{key:t},e)});return n.createElement("ol",{className:"wphb-ordered-list"},t)}function Ke(e){return Ke="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},Ke(e)}function et(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tt(n.key),n)}}function tt(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ke(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}function rt(e,t,r){return t=ot(t),function(e,t){if(t&&("object"==Ke(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,nt()?Reflect.construct(t,r||[],ot(e).constructor):t.apply(e,r))}function nt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(nt=function(){return!!e})()}function ot(e){return ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ot(e)}function it(e,t){return it=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},it(e,t)}Je.propTypes={code:s().string};var st=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rt(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&&it(e,t)}(t,e),r=t,(o=[{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 n.createElement(ae,{text:e.title,id:e.id+"-tab",classes:U()("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})}),r=Object.values(this.props.tabs).map(function(t,r){var o=void 0!==t.active&&t.active,i=U()({"sui-tab-content":!e.props.sideTabs},{"sui-tab-boxed":e.props.sideTabs},{active:o});return n.createElement("div",{role:"tabpanel",tabIndex:"0",id:t.id+"-tab-content",className:i,"aria-labelledby":t.id+"-tab",hidden:!o,key:r},t.description&&n.createElement("div",{className:"sui-description sui-margin-bottom"},t.description),t.content)});return n.createElement("div",{className:U()({"sui-tabs":!this.props.sideTabs},{"sui-tabs-flushed":this.props.flushed},{"sui-side-tabs":this.props.sideTabs},this.props.className)},n.createElement("div",{role:"tablist",className:"sui-tabs-menu"},t),!window.lodash.isEmpty(this.props.tabs)&&n.createElement("div",{className:"sui-tabs-content"},r))}}])&&et(r.prototype,o),i&&et(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.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){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ut(n.key),n)}}function ut(e){var t=function(e,t){if("object"!=at(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=at(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==at(t)?t:t+""}function lt(e,t,r){return t=ft(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,pt()?Reflect.construct(t,r||[],ft(e).constructor):t.apply(e,r))}function pt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(pt=function(){return!!e})()}function ft(e){return ft=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ft(e)}function ht(e,t){return ht=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ht(e,t)}st.defaultProps={tabs:{}};var dt=wp.i18n.__,bt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lt(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&&ht(e,t)}(t,e),r=t,i=[{key:"initSUIcomponents",value:function(){var e=document.getElementById("wphb-server-instructions-apache");e&&SUI.suiTabs(e.querySelector(".sui-tabs"));var t=document.getElementById("troubleshooting-link");t&&t.addEventListener("click",function(e){e.preventDefault(),jQuery("html, body").animate({scrollTop:jQuery("#troubleshooting-apache").offset().top},"slow")})}}],(o=[{key:"componentDidMount",value:function(){t.initSUIcomponents()}},{key:"componentDidUpdate",value:function(){t.initSUIcomponents()}},{key:"cacheWrap",value:function(){var e="sui-hidden";"apache"===this.props.currentServer&&(e="");var t=this.props.htaccessWritten?n.createElement(ae,{onClick:this.props.disable,classes:["sui-button","sui-button-ghost","sui-margin-top"],text:dt("Deactivate","wphb")}):n.createElement(ae,{onClick:this.props.enable,classes:["sui-button","sui-button-blue","sui-margin-top"],text:dt("Apply Rules","wphb")}),r=Ee(dt("<p>We tried applying the .htaccess rules automatically but we weren’t able to. Make sure your file permissions on your .htaccess file are set to 644, or <button/> and apply the rules yourself.</p>","wphb"),{p:n.createElement("p",null),button:n.createElement(ae,{url:"#apache-config-manual",classes:["switch-manual"],text:dt("switch to manual mode","wphb")})});return n.createElement("div",{id:"enable-cache-wrap",className:e},this.props.htaccessError&&n.createElement(ce,{classes:["sui-notice-warning"],message:r}),t)}},{key:"renderApacheTabs",value:function(){var e=this.props.fullyEnabled&&(!this.props.htaccessWritten||"nginx"===this.props.server),t=[dt("Copy & paste the generated code below into your .htaccess file","wphb"),n.createElement(n.Fragment,{key:"2"},dt("Next","wphb"),","," ",n.createElement(ae,{text:dt("re-check your GZip status","wphb")})," ",dt("to see if it worked","wphb"),"."," ",n.createElement(ae,{id:"troubleshooting-link",text:dt("Still having issues?","wphb")}))],r=[dt("Look for your site in the file and find the line that starts with <Directory> - add the code above into that section and save the file.","wphb"),dt("Reload Apache/LiteSpeed.","wphb"),dt("If you don't know where those files are, or you aren't able to reload Apache/LiteSpeed, you would need to consult with your hosting provider or a system administrator who has access to change the configuration of your server","wphb")],o=[{title:dt("Automatic","wphb"),id:"automatic",checked:!0},{title:dt("Manual","wphb"),id:"manual"}],i=[{id:"automatic",content:n.createElement(n.Fragment,null,n.createElement("span",{className:"sui-description"},dt("Hummingbird can automatically apply GZip compression for Apache/LiteSpeed servers by writing your .htaccess file. Alternately, switch to Manual to apply these rules yourself.","wphb")),this.props.htaccessWritable&&!e&&this.cacheWrap()),active:!0},{id:"manual",content:n.createElement("div",{className:"apache-instructions"},n.createElement("p",{className:"sui-description"},dt("If you are unable to get the automated method working you can copy the generated code below into your .htaccess file to activate GZip compression.","wphb")),n.createElement(Qe,{list:t}),n.createElement(Je,{code:this.props.serverSnippets.apache}),n.createElement("p",{className:"sui-description sui-margin-top",id:"troubleshooting-apache"},n.createElement("strong",null,dt("Troubleshooting","wphb"))),n.createElement("p",{className:"sui-description"},dt("If .htaccess does not work, and you have access to vhosts.conf or httpd.conf try this:","wphb")),n.createElement(Qe,{list:r}),n.createElement(ze,{isMember:this.context.isMember,forumLink:this.context.links.support.forum,chatLink:this.context.links.support.chat}))}];return n.createElement("div",{className:"wphb-server-instructions",id:"wphb-server-instructions-apache"},n.createElement(st,{menu:o,tabs:i}))}},{key:"renderNginxTabs",value:function(){var e=[dt("Edit your nginx.conf. Usually it's located at /etc/nginx/nginx.conf or /usr/local/nginx/nginx.conf","wphb"),dt("Copy the generated code found below and paste it inside your http or server block.","wphb"),dt("Reload/restart NGINX.","wphb")];return n.createElement("div",{className:"wphb-server-instructions"},n.createElement("p",{className:"sui-description"},dt("For NGINX servers:","wphb")),n.createElement(Qe,{list:e}),n.createElement("p",{className:"sui-description"},dt("If you do not have access to your NGINX config files you will need to contact your hosting provider to make these changes.","wphb")),n.createElement(ze,{isMember:this.context.isMember,forumLink:this.context.links.support.forum,chatLink:this.context.links.support.chat}),n.createElement(Je,{code:this.props.serverSnippets.nginx}))}},{key:"renderIisTabs",value:function(){return n.createElement("div",{className:"wphb-server-instructions"},n.createElement("p",{className:"sui-description"},dt("For IIS 7 servers and above,","wphb")," ",n.createElement(ae,{url:"https://technet.microsoft.com/en-us/library/cc771003(v=ws.10).aspx",target:"blank",text:dt("visit Microsoft TechNet","wphb")})))}},{key:"renderCloudflareTabs",value:function(){return n.createElement("div",{className:"wphb-server-instructions"},n.createElement("p",{className:"sui-description"},dt("Hummingbird can control your Cloudflare GZip compression settings from here. Simply add your Cloudflare API details and configure away","wphb")))}},{key:"render",value:function(){return this.props.htaccessWritten&&this.props.fullyEnabled?n.createElement(n.Fragment,null,n.createElement(ce,{classes:["sui-notice-info"],message:dt("Automatic .htaccess rules have been applied.","wphb")}),n.createElement(ae,{onClick:this.props.disable,classes:["sui-button","sui-button-ghost"],text:dt("Deactivate","wphb")})):n.createElement(n.Fragment,null,"apache"===this.props.currentServer&&this.renderApacheTabs(),"nginx"===this.props.currentServer&&this.renderNginxTabs(),"iis"===this.props.currentServer&&this.renderIisTabs(),"cloudflare"===this.props.currentServer&&this.renderCloudflareTabs())}}])&&ct(r.prototype,o),i&&ct(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function yt(e){var t=e.label,r=e.description,o=e.content,i=e.classes,s=e.wide;return void 0!==s&&s?n.createElement("div",{className:"sui-box-settings-row"},n.createElement("div",{className:"sui-box-settings-col-2"},n.createElement("span",{className:"sui-settings-label"},t),o)):r?n.createElement("div",{className:"sui-box-settings-row"},n.createElement("div",{className:"sui-box-settings-col-1"},n.createElement("span",{className:"sui-settings-label"},t),n.createElement("span",{className:"sui-description"},r)),n.createElement("div",{className:"sui-box-settings-col-2"},o)):n.createElement("div",{className:U()("sui-box-settings-row",i)},o)}function mt(e){return mt="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},mt(e)}function vt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wt(n.key),n)}}function wt(e){var t=function(e,t){if("object"!=mt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mt(t)?t:t+""}function gt(e,t,r){return t=Ot(t),function(e,t){if(t&&("object"==mt(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,Et()?Reflect.construct(t,r||[],Ot(e).constructor):t.apply(e,r))}function Et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Et=function(){return!!e})()}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ot(e)}function _t(e,t){return _t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_t(e,t)}bt.contextType=F;var jt=wp.i18n.__,kt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=gt(this,t,[e])).state={currentServer:r.props.data.server_name},r.handleServerChange=r.handleServerChange.bind(r),r}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&&_t(e,t)}(t,e),r=t,o=[{key:"handleServerChange",value:function(e){this.setState({currentServer:e.target.value})}},{key:"render",value:function(){var e=3===Object.entries(this.props.status).filter(function(e){return e[1]}).length;if(!0===e)return null;var t=Object.entries(this.props.data.servers_array).filter(function(e){return"cloudflare"!==e[0]}),r=n.createElement(He,{label:jt("Server type","wphb"),items:t,selected:this.state.currentServer,onChange:this.handleServerChange}),o=n.createElement(bt,{currentServer:this.state.currentServer,fullyEnabled:e,gzipStatus:this.props.status,htaccessError:this.props.data.htaccess_error,htaccessWritable:this.props.data.htaccess_writable,htaccessWritten:this.props.data.htaccess_written,serverSnippets:this.props.data.snippets,enable:this.props.enableGzip,disable:this.props.disableGzip,server:this.props.data.server_name});return n.createElement(oe,{loading:this.props.loading,title:jt("Configure","wphb"),boxClass:["box-gzip-settings"],content:n.createElement(n.Fragment,null,n.createElement(yt,{label:jt("Server type","wphb"),description:jt("Choose your server type. If you don’t know this, please contact your hosting provider.","wphb"),content:r}),n.createElement(yt,{label:jt("Enable compression"),description:jt("Follow the instructions to activate GZip compression for this website.","wphb"),content:o}))})}}],o&&vt(r.prototype,o),i&&vt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function St(e){return St="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},St(e)}function Pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tt(n.key),n)}}function Tt(e){var t=function(e,t){if("object"!=St(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=St(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==St(t)?t:t+""}function xt(e,t,r){return t=Nt(t),function(e,t){if(t&&("object"==St(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,Ct()?Reflect.construct(t,r||[],Nt(e).constructor):t.apply(e,r))}function Ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ct=function(){return!!e})()}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}function At(e,t){return At=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},At(e,t)}var It,Bt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=xt(this,t,[e])).state={api:new R,isMember:r.props.wphbData.isMember,links:r.props.wphbData.links,loading:!0,status:{HTML:!1,JavaScript:!1,CSS:!1}},r.updateStatus=r.updateStatus.bind(r),r}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&&At(e,t)}(t,e),r=t,o=[{key:"componentDidMount",value:function(){var e=this;this.state.api.post("gzip_status","get").then(function(t){e.setState({loading:!1,status:t.status})}).catch(function(e){return window.console.log(e)})}},{key:"updateStatus",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("gzip_status","refresh").then(function(t){e.setState({loading:!1,status:t.status})}).catch(function(e){return window.console.log(e)})}},{key:"gzipRules",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"add";this.setState({loading:!0}),this.state.api.post("gzip_rules",t).then(function(t){e.props.wphbData.module.htaccess_written=t.htaccess_written,e.setState({loading:!1,status:t.status})}).catch(function(e){return window.console.log(e)})}},{key:"render",value:function(){var e=this;return n.createElement(F.Provider,{value:this.state},n.createElement(Ie,{data:this.props.wphbData.module,link:this.state.links,loading:this.state.loading,onUpdate:this.updateStatus,status:this.state.status}),n.createElement(kt,{data:this.props.wphbData.module,disableGzip:function(){return e.gzipRules("remove")},enableGzip:function(){return e.gzipRules("add")},loading:this.state.loading,status:this.state.status}))}}],o&&Pt(r.prototype,o),i&&Pt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);Bt.propTypes={wphbData:s().object},It=function(){var e=document.getElementById("wrap-wphb-gzip");e&&o.render(n.createElement(Bt,{wphbData:window.wphb}),e)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",It):It())},6942:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},7463:function(e,t){"use strict";var r,n,o,i;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}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(p,0))},n=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,h=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,y=null,m=-1,v=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},i=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"):v=0<e?Math.floor(1e3/e):5};var g=new MessageChannel,E=g.port2;g.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();w=e+v;try{y(!0,e)?E.postMessage(null):(b=!1,y=null)}catch(e){throw E.postMessage(null),e}}else b=!1},r=function(e){y=e,b||(b=!0,E.postMessage(null))},n=function(e,r){m=f(function(){e(t.unstable_now())},r)},o=function(){h(m),m=-1}}function O(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<k(o,t)))break e;e[n]=t,e[r]=o,r=n}}function _(e){return void 0===(e=e[0])?null:e}function j(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,s=e[i],a=i+1,c=e[a];if(void 0!==s&&0>k(s,r))void 0!==c&&0>k(c,s)?(e[n]=c,e[a]=r,n=a):(e[n]=s,e[i]=r,n=i);else{if(!(void 0!==c&&0>k(c,r)))break e;e[n]=c,e[a]=r,n=a}}}return t}return null}function k(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var S=[],P=[],T=1,x=null,C=3,N=!1,A=!1,I=!1;function B(e){for(var t=_(P);null!==t;){if(null===t.callback)j(P);else{if(!(t.startTime<=e))break;j(P),t.sortIndex=t.expirationTime,O(S,t)}t=_(P)}}function R(e){if(I=!1,B(e),!A)if(null!==_(S))A=!0,r(F);else{var t=_(P);null!==t&&n(R,t.startTime-e)}}function F(e,r){A=!1,I&&(I=!1,o()),N=!0;var i=C;try{for(B(r),x=_(S);null!==x&&(!(x.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=x.callback;if("function"==typeof s){x.callback=null,C=x.priorityLevel;var a=s(x.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?x.callback=a:x===_(S)&&j(S),B(r)}else j(S);x=_(S)}if(null!==x)var c=!0;else{var u=_(P);null!==u&&n(R,u.startTime-r),c=!1}return c}finally{x=null,C=i,N=!1}}var D=i;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(){A||N||(A=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return _(S)},t.unstable_next=function(e){switch(C){case 1:case 2:case 3:var t=3;break;default:t=C}var r=C;C=t;try{return e()}finally{C=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=C;C=e;try{return t()}finally{C=r}},t.unstable_scheduleCallback=function(e,i,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:T++,callback:i,priorityLevel:e,startTime:s,expirationTime:c=s+c,sortIndex:-1},s>a?(e.sortIndex=s,O(P,e),null===_(S)&&e===_(P)&&(I?o():I=!0,n(R,s-a))):(e.sortIndex=c,O(S,e),A||N||(A=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=C;return function(){var r=C;C=t;try{return e.apply(this,arguments)}finally{C=r}}}},9982:function(e,t,r){"use strict";e.exports=r(7463)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=function(t,r,o,i){if(!r){var s=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||s>=i)&&Object.keys(n.O).every(function(e){return n.O[e](r[c])})?r.splice(c--,1):(a=!1,i<s&&(s=i));if(a){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={987:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,s=r[0],a=r[1],c=r[2],u=0;if(s.some(function(t){return 0!==e[t]})){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n)}for(t&&t(r);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var o=n.O(void 0,[816],function(){return n(5620)});o=n.O(o)}(); //# sourceMappingURL=wphb-react-gzip.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.2 |
proxy
|
phpinfo
|
Settings