File manager - Edit - /home/matthif/www/wp-content/plugins/gutenverse/lib/framework/assets/js/dashboard.js
Back
/*! For license information please see dashboard.js.LICENSE.txt */ (()=>{var e={416:(e,t,n)=>{var r=n(138)(n(433),"DataView");e.exports=r},955:(e,t,n)=>{var r=n(138)(n(433),"Map");e.exports=r},616:(e,t,n)=>{var r=n(138)(n(433),"Promise");e.exports=r},157:(e,t,n)=>{var r=n(138)(n(433),"Set");e.exports=r},781:(e,t,n)=>{var r=n(433).Symbol;e.exports=r},880:(e,t,n)=>{var r=n(138)(n(433),"WeakMap");e.exports=r},148:(e,t,n)=>{var r=n(781),o=n(903),a=n(738),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},250:(e,t,n)=>{var r=n(148),o=n(934);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},567:(e,t,n)=>{var r=n(446),o=n(92),a=n(953),i=n(485),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||o(e))&&(r(e)?d:s).test(i(e))}},129:(e,t,n)=>{var r=n(148),o=n(949),a=n(934),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&o(e.length)&&!!i[r(e)]}},452:(e,t,n)=>{var r=n(499),o=n(566),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},41:e=>{e.exports=function(e){return function(t){return e(t)}}},109:(e,t,n)=>{var r=n(433)["__core-js_shared__"];e.exports=r},380:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},138:(e,t,n)=>{var r=n(567),o=n(772);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},903:(e,t,n)=>{var r=n(781),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},201:(e,t,n)=>{var r=n(416),o=n(955),a=n(616),i=n(157),s=n(880),l=n(148),c=n(485),u="[object Map]",p="[object Promise]",d="[object Set]",m="[object WeakMap]",f="[object DataView]",g=c(r),h=c(o),v=c(a),E=c(i),b=c(s),y=l;(r&&y(new r(new ArrayBuffer(1)))!=f||o&&y(new o)!=u||a&&y(a.resolve())!=p||i&&y(new i)!=d||s&&y(new s)!=m)&&(y=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case g:return f;case h:return u;case v:return p;case E:return d;case b:return m}return t}),e.exports=y},772:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},92:(e,t,n)=>{var r,o=n(109),a=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!a&&a in e}},499:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},566:(e,t,n)=>{var r=n(19)(Object.keys,Object);e.exports=r},66:(e,t,n)=>{e=n.nmd(e);var r=n(380),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o&&r.process,s=function(){try{return a&&a.require&&a.require("util").types||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=s},738:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},19:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},433:(e,t,n)=>{var r=n(380),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},485: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""}},256:(e,t,n)=>{var r=n(250),o=n(934),a=Object.prototype,i=a.hasOwnProperty,s=a.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&i.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},397:e=>{var t=Array.isArray;e.exports=t},330:(e,t,n)=>{var r=n(446),o=n(949);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},492:(e,t,n)=>{e=n.nmd(e);var r=n(433),o=n(659),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,s=i&&i.exports===a?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},685:(e,t,n)=>{var r=n(452),o=n(201),a=n(256),i=n(397),s=n(330),l=n(492),c=n(499),u=n(995),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},446:(e,t,n)=>{var r=n(148),o=n(953);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},949:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},953:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},934:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},995:(e,t,n)=>{var r=n(129),o=n(41),a=n(66),i=a&&a.isTypedArray,s=i?o(i):r;e.exports=s},659:e=>{e.exports=function(){return!1}},362:(e,t,n)=>{"use strict";var r=n(441);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}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:a,resetWarningCache:o};return n.PropTypes=n,n}},688:(e,t,n)=>{e.exports=n(362)()},441:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},501:(e,t)=>{var n;t=e.exports=v,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=r-6,i=t.re=[],s=t.safeRe=[],l=t.src=[],c=t.tokens={},u=0;function p(e){c[e]=u++}var d="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",r],[d,a]];function f(e){for(var t=0;t<m.length;t++){var n=m[t][0],r=m[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}p("NUMERICIDENTIFIER"),l[c.NUMERICIDENTIFIER]="0|[1-9]\\d*",p("NUMERICIDENTIFIERLOOSE"),l[c.NUMERICIDENTIFIERLOOSE]="\\d+",p("NONNUMERICIDENTIFIER"),l[c.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+d+"*",p("MAINVERSION"),l[c.MAINVERSION]="("+l[c.NUMERICIDENTIFIER]+")\\.("+l[c.NUMERICIDENTIFIER]+")\\.("+l[c.NUMERICIDENTIFIER]+")",p("MAINVERSIONLOOSE"),l[c.MAINVERSIONLOOSE]="("+l[c.NUMERICIDENTIFIERLOOSE]+")\\.("+l[c.NUMERICIDENTIFIERLOOSE]+")\\.("+l[c.NUMERICIDENTIFIERLOOSE]+")",p("PRERELEASEIDENTIFIER"),l[c.PRERELEASEIDENTIFIER]="(?:"+l[c.NUMERICIDENTIFIER]+"|"+l[c.NONNUMERICIDENTIFIER]+")",p("PRERELEASEIDENTIFIERLOOSE"),l[c.PRERELEASEIDENTIFIERLOOSE]="(?:"+l[c.NUMERICIDENTIFIERLOOSE]+"|"+l[c.NONNUMERICIDENTIFIER]+")",p("PRERELEASE"),l[c.PRERELEASE]="(?:-("+l[c.PRERELEASEIDENTIFIER]+"(?:\\."+l[c.PRERELEASEIDENTIFIER]+")*))",p("PRERELEASELOOSE"),l[c.PRERELEASELOOSE]="(?:-?("+l[c.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+l[c.PRERELEASEIDENTIFIERLOOSE]+")*))",p("BUILDIDENTIFIER"),l[c.BUILDIDENTIFIER]=d+"+",p("BUILD"),l[c.BUILD]="(?:\\+("+l[c.BUILDIDENTIFIER]+"(?:\\."+l[c.BUILDIDENTIFIER]+")*))",p("FULL"),p("FULLPLAIN"),l[c.FULLPLAIN]="v?"+l[c.MAINVERSION]+l[c.PRERELEASE]+"?"+l[c.BUILD]+"?",l[c.FULL]="^"+l[c.FULLPLAIN]+"$",p("LOOSEPLAIN"),l[c.LOOSEPLAIN]="[v=\\s]*"+l[c.MAINVERSIONLOOSE]+l[c.PRERELEASELOOSE]+"?"+l[c.BUILD]+"?",p("LOOSE"),l[c.LOOSE]="^"+l[c.LOOSEPLAIN]+"$",p("GTLT"),l[c.GTLT]="((?:<|>)?=?)",p("XRANGEIDENTIFIERLOOSE"),l[c.XRANGEIDENTIFIERLOOSE]=l[c.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",p("XRANGEIDENTIFIER"),l[c.XRANGEIDENTIFIER]=l[c.NUMERICIDENTIFIER]+"|x|X|\\*",p("XRANGEPLAIN"),l[c.XRANGEPLAIN]="[v=\\s]*("+l[c.XRANGEIDENTIFIER]+")(?:\\.("+l[c.XRANGEIDENTIFIER]+")(?:\\.("+l[c.XRANGEIDENTIFIER]+")(?:"+l[c.PRERELEASE]+")?"+l[c.BUILD]+"?)?)?",p("XRANGEPLAINLOOSE"),l[c.XRANGEPLAINLOOSE]="[v=\\s]*("+l[c.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+l[c.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+l[c.XRANGEIDENTIFIERLOOSE]+")(?:"+l[c.PRERELEASELOOSE]+")?"+l[c.BUILD]+"?)?)?",p("XRANGE"),l[c.XRANGE]="^"+l[c.GTLT]+"\\s*"+l[c.XRANGEPLAIN]+"$",p("XRANGELOOSE"),l[c.XRANGELOOSE]="^"+l[c.GTLT]+"\\s*"+l[c.XRANGEPLAINLOOSE]+"$",p("COERCE"),l[c.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",p("COERCERTL"),i[c.COERCERTL]=new RegExp(l[c.COERCE],"g"),s[c.COERCERTL]=new RegExp(f(l[c.COERCE]),"g"),p("LONETILDE"),l[c.LONETILDE]="(?:~>?)",p("TILDETRIM"),l[c.TILDETRIM]="(\\s*)"+l[c.LONETILDE]+"\\s+",i[c.TILDETRIM]=new RegExp(l[c.TILDETRIM],"g"),s[c.TILDETRIM]=new RegExp(f(l[c.TILDETRIM]),"g"),p("TILDE"),l[c.TILDE]="^"+l[c.LONETILDE]+l[c.XRANGEPLAIN]+"$",p("TILDELOOSE"),l[c.TILDELOOSE]="^"+l[c.LONETILDE]+l[c.XRANGEPLAINLOOSE]+"$",p("LONECARET"),l[c.LONECARET]="(?:\\^)",p("CARETTRIM"),l[c.CARETTRIM]="(\\s*)"+l[c.LONECARET]+"\\s+",i[c.CARETTRIM]=new RegExp(l[c.CARETTRIM],"g"),s[c.CARETTRIM]=new RegExp(f(l[c.CARETTRIM]),"g"),p("CARET"),l[c.CARET]="^"+l[c.LONECARET]+l[c.XRANGEPLAIN]+"$",p("CARETLOOSE"),l[c.CARETLOOSE]="^"+l[c.LONECARET]+l[c.XRANGEPLAINLOOSE]+"$",p("COMPARATORLOOSE"),l[c.COMPARATORLOOSE]="^"+l[c.GTLT]+"\\s*("+l[c.LOOSEPLAIN]+")$|^$",p("COMPARATOR"),l[c.COMPARATOR]="^"+l[c.GTLT]+"\\s*("+l[c.FULLPLAIN]+")$|^$",p("COMPARATORTRIM"),l[c.COMPARATORTRIM]="(\\s*)"+l[c.GTLT]+"\\s*("+l[c.LOOSEPLAIN]+"|"+l[c.XRANGEPLAIN]+")",i[c.COMPARATORTRIM]=new RegExp(l[c.COMPARATORTRIM],"g"),s[c.COMPARATORTRIM]=new RegExp(f(l[c.COMPARATORTRIM]),"g"),p("HYPHENRANGE"),l[c.HYPHENRANGE]="^\\s*("+l[c.XRANGEPLAIN]+")\\s+-\\s+("+l[c.XRANGEPLAIN]+")\\s*$",p("HYPHENRANGELOOSE"),l[c.HYPHENRANGELOOSE]="^\\s*("+l[c.XRANGEPLAINLOOSE]+")\\s+-\\s+("+l[c.XRANGEPLAINLOOSE]+")\\s*$",p("STAR"),l[c.STAR]="(<|>)?=?\\s*\\*";for(var g=0;g<u;g++)n(g,l[g]),i[g]||(i[g]=new RegExp(l[g]),s[g]=new RegExp(f(l[g])));function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?s[c.LOOSE]:s[c.FULL]).test(e))return null;try{return new v(e,t)}catch(e){return null}}function v(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof v){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof v))return new v(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?s[c.LOOSE]:s[c.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=h,t.valid=function(e,t){var n=h(e,t);return n?n.version:null},t.clean=function(e,t){var n=h(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=v,v.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},v.prototype.toString=function(){return this.version},v.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof v||(e=new v(e,this.options)),this.compareMain(e)||this.comparePre(e)},v.prototype.compareMain=function(e){return e instanceof v||(e=new v(e,this.options)),b(this.major,e.major)||b(this.minor,e.minor)||b(this.patch,e.patch)},v.prototype.comparePre=function(e){if(e instanceof v||(e=new v(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return b(r,o)}while(++t)},v.prototype.compareBuild=function(e){e instanceof v||(e=new v(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return b(r,o)}while(++t)},v.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new v(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(O(e,t))return null;var n=h(e),r=h(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var a="prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return o+i;return a},t.compareIdentifiers=b;var E=/^[0-9]+$/;function b(e,t){var n=E.test(e),r=E.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function y(e,t,n){return new v(e,n).compare(new v(t,n))}function w(e,t,n){return y(e,t,n)>0}function _(e,t,n){return y(e,t,n)<0}function O(e,t,n){return 0===y(e,t,n)}function S(e,t,n){return 0!==y(e,t,n)}function N(e,t,n){return y(e,t,n)>=0}function P(e,t,n){return y(e,t,n)<=0}function C(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return O(e,n,r);case"!=":return S(e,n,r);case">":return w(e,n,r);case">=":return N(e,n,r);case"<":return _(e,n,r);case"<=":return P(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function T(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof T){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof T))return new T(e,t);e=e.trim().split(/\s+/).join(" "),n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===R?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return b(t,e)},t.major=function(e,t){return new v(e,t).major},t.minor=function(e,t){return new v(e,t).minor},t.patch=function(e,t){return new v(e,t).patch},t.compare=y,t.compareLoose=function(e,t){return y(e,t,!0)},t.compareBuild=function(e,t,n){var r=new v(e,n),o=new v(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return y(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=w,t.lt=_,t.eq=O,t.neq=S,t.gte=N,t.lte=P,t.cmp=C,t.Comparator=T;var R={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof T)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+this.raw);this.format()}function L(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function I(e){return!e||"x"===e.toLowerCase()||"*"===e}function A(e,t,n,r,o,a,i,s,l,c,u,p,d){return((t=I(n)?"":I(r)?">="+n+".0.0":I(o)?">="+n+"."+r+".0":">="+t)+" "+(s=I(l)?"":I(c)?"<"+(+l+1)+".0.0":I(u)?"<"+l+"."+(+c+1)+".0":p?"<="+l+"."+c+"."+u+"-"+p:"<="+s)).trim()}function x(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==R&&e[o].semver.prerelease.length>0){var a=e[o].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function j(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function D(e,t,n,r){var o,a,i,s,l;switch(e=new v(e,r),t=new k(t,r),n){case">":o=w,a=P,i=_,s=">",l=">=";break;case"<":o=_,a=N,i=w,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(j(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,d=null;if(u.forEach((function(e){e.semver===R&&(e=new T(">=0.0.0")),p=p||e,d=d||e,o(e.semver,p.semver,r)?p=e:i(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===l)return!1;if((!d.operator||d.operator===s)&&a(e,d.semver))return!1;if(d.operator===l&&i(e,d.semver))return!1}return!0}T.prototype.parse=function(e){var t=this.options.loose?s[c.COMPARATORLOOSE]:s[c.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new v(n[2],this.options.loose):this.semver=R},T.prototype.toString=function(){return this.value},T.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===R||e===R)return!0;if("string"==typeof e)try{e=new v(e,this.options)}catch(e){return!1}return C(e,this.operator,this.semver,this.options)},T.prototype.intersects=function(e,t){if(!(e instanceof T))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),j(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),j(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=C(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=C(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&i||s||l},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose,r=t?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(r,A),n("hyphen replace",e),e=e.replace(s[c.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,s[c.COMPARATORTRIM]),e=(e=(e=e.replace(s[c.TILDETRIM],"$1~")).replace(s[c.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?s[c.COMPARATORLOOSE]:s[c.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?s[c.CARETLOOSE]:s[c.CARET];return e.replace(r,(function(t,r,o,a,i){var s;return n("caret",e,t,r,o,a,i),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(a)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":i?(n("replaceCaret pr",i),s="0"===r?"0"===o?">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+"-"+i+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+a+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(r,(function(t,r,o,a,i){var s;return n("tilde",e,t,r,o,a,i),I(r)?s="":I(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":I(a)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":i?(n("replaceTilde pr",i),s=">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+a+" <"+r+"."+(+o+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(r,(function(r,o,a,i,s,l){n("xRange",e,r,o,a,i,s,l);var c=I(a),u=c||I(i),p=u||I(s),d=p;return"="===o&&d&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&d?(u&&(i=0),s=0,">"===o?(o=">=",u?(a=+a+1,i=0,s=0):(i=+i+1,s=0)):"<="===o&&(o="<",u?a=+a+1:i=+i+1),r=o+a+"."+i+"."+s+l):u?r=">="+a+".0.0"+l+" <"+(+a+1)+".0.0"+l:p&&(r=">="+a+"."+i+".0"+l+" <"+a+"."+(+i+1)+".0"+l),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(s[c.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a.map((function(e){return new T(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return L(n,t)&&e.set.some((function(e){return L(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new v(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(x(this.set[t],e,this.options))return!0;return!1},t.satisfies=j,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var a=new k(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&-1!==o.compare(e)||(o=new v(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var a=new k(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&1!==o.compare(e)||(o=new v(r=e,n)))})),r},t.minVersion=function(e,t){e=new k(e,t);var n=new v("0.0.0");if(e.test(n))return n;if(n=new v("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new v(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!w(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return D(e,t,"<",n)},t.gtr=function(e,t,n){return D(e,t,">",n)},t.outside=D,t.prerelease=function(e,t){var n=h(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof v)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=s[c.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),s[c.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;s[c.COERCERTL].lastIndex=-1}else n=e.match(s[c.COERCE]);return null===n?null:h(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},71:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,a(n)))}return e}function a(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 n in e)r.call(e,n)&&e[n]&&(t=i(t,n));return t}function i(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r](a,a.exports,n),a.loaded=!0,a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(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=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>Pe,hasStandardBrowserEnv:()=>Ce,hasStandardBrowserWebWorkerEnv:()=>Re,origin:()=>ke});var t={};function r(e){return r="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},r(e)}function o(e,t,n){return(t=function(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,{exclude:()=>gn,extract:()=>cn,parse:()=>un,parseUrl:()=>dn,pick:()=>fn,stringify:()=>pn,stringifyUrl:()=>mn});const a=window.React;var i=n.n(a);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const u=window.wp.element,p=gutenverseCore.router,d=window.wp.i18n,m=gutenverseCore.icons,f=window.wp.hooks;var g=n(685),h=n.n(g);const v=gutenverseCore.components,E=function(e){var t,n=e.location,r=window.GutenverseDashboard,o=r.homeSlug,i=r.pluginVersions,s=r.upgradeProUrl,l=r.activeTheme,g=r.url,E=!!window.GutenThemeConfig&&window.GutenThemeConfig.isThemeforest&&!0,b=c((0,u.useState)(null),2),y=b[0],w=b[1],_=n.pathname,O=n.search,S=new URLSearchParams(O),N=S.get("path")?S.get("path"):"",P=(0,f.applyFilters)("gutenverse.dashboard.route.navigation",[{name:(0,d.__)("Dashboard","gutenverse"),slug:o,path:"",priority:0},{name:(0,d.__)("Ecosystem","gutenverse"),slug:o,path:"ecosystem",priority:1},!E&&{name:(0,d.__)("Theme List","gutenverse"),slug:o,path:"theme-list",priority:2},{name:(0,d.__)("Blocks","gutenverse"),slug:o,path:"block-list",priority:3},{name:(0,d.__)("Settings","gutenverse"),slug:o,path:"settings",priority:4},{name:(0,d.__)("System Status","gutenverse"),slug:o,path:"system",priority:5},!h()(i)&&{name:(0,d.__)("Update Notice","gutenverse"),slug:o,path:"update-notice",priority:100},h()(null===(t=window)||void 0===t?void 0:t.gprodata)&&{name:(0,a.createElement)("span",null,(0,d.__)("Upgrade to PRO","gutenverse"),(0,a.createElement)(m.IconCrownBannerSVG,null)),slug:o,upgrade:!0,link:"https://gutenverse.com/pro?utm_source=gutenverse&utm_medium=adminmenu&utm_client_site=".concat(g,"&utm_client_theme=").concat(l),priority:9999,external:!0}],o);P.sort((function(e,t){return e.priority-t.priority})),(0,u.useEffect)((function(){var e=document.querySelector("#toplevel_page_gutenverse > ul").getElementsByTagName("li");Array.from(e).forEach((function(e){e.remove()}))}),[]),setTimeout((function(){var e=document.querySelector("#toplevel_page_gutenverse .wp-submenu");w(e)}),1);var C=(0,a.createElement)(a.Fragment,null,(0,a.createElement)("li",{className:"wp-submenu-head","aria-hidden":"true"},"Gutenverse"),P.map((function(e){if(e){var t="?page=".concat(e.slug);return""!==e.path&&(t+="&path=".concat(e.path)),e.pathDetail&&(t+=e.pathDetail),(0,a.createElement)("li",{key:e.path,className:"".concat(e.path===N?"current":"")},e.external?(0,a.createElement)("a",{className:"button-upgrade-pro-sidebar",href:e.link,target:"_blank",rel:"noreferrer"},e.name):(0,a.createElement)(p.Link,{index:"".concat(e.path),to:{pathname:_,search:t}},e.name))}return null})));return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"navigation-wrapper"},(0,a.createElement)("div",{className:"plugin-logo"},(0,a.createElement)(m.LogoFullColor31SVG,null)),(0,a.createElement)("div",{className:"navigation-items"},P.map((function(e){if(e&&(null==e||!e.upgrade)){var t="?page=".concat(e.slug);return""!==e.path&&(t+="&path=".concat(e.path)),e.pathDetail&&(t+=e.pathDetail),(0,a.createElement)(p.Link,{index:e.path,key:e.path,to:{pathname:_,search:t},className:"navigation-item ".concat(e.path===N?"active":"")},e.name)}return null})),(0,a.createElement)(v.ButtonUpgradePro,{location:"dashboard-navigation",isBanner:!0,link:"".concat(s,"?utm_source=gutenverse&utm_medium=dashboardnav&utm_client_site=").concat(g,"&utm_client_theme=").concat(l)}))),y&&(0,u.createPortal)(C,y))};function b(e,t,n,r,o,a,i){try{var s=e[a](i),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function y(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function i(e){b(a,r,o,i,s,"next",e)}function s(e){b(a,r,o,i,s,"throw",e)}i(void 0)}))}}const w=window.regeneratorRuntime;var _=n.n(w);function O(e,t){return function(){return e.apply(t,arguments)}}const{toString:S}=Object.prototype,{getPrototypeOf:N}=Object,P=(C=Object.create(null),e=>{const t=S.call(e);return C[t]||(C[t]=t.slice(8,-1).toLowerCase())});var C;const T=e=>(e=e.toLowerCase(),t=>P(t)===e),R=e=>t=>typeof t===e,{isArray:k}=Array,L=R("undefined"),I=T("ArrayBuffer"),A=R("string"),x=R("function"),j=R("number"),D=e=>null!==e&&"object"==typeof e,F=e=>{if("object"!==P(e))return!1;const t=N(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},M=T("Date"),U=T("File"),B=T("Blob"),G=T("FileList"),V=T("URLSearchParams"),[H,z,q,W]=["ReadableStream","Request","Response","Headers"].map(T);function $(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),k(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function X(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,K=e=>!L(e)&&e!==Z,Y=(J="undefined"!=typeof Uint8Array&&N(Uint8Array),e=>J&&e instanceof J);var J;const Q=T("HTMLFormElement"),ee=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),te=T("RegExp"),ne=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,((n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},re="abcdefghijklmnopqrstuvwxyz",oe="0123456789",ae={DIGIT:oe,ALPHA:re,ALPHA_DIGIT:re+re.toUpperCase()+oe},ie=T("AsyncFunction"),se={isArray:k,isArrayBuffer:I,isBuffer:function(e){return null!==e&&!L(e)&&null!==e.constructor&&!L(e.constructor)&&x(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||x(e.append)&&("formdata"===(t=P(e))||"object"===t&&x(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&I(e.buffer),t},isString:A,isNumber:j,isBoolean:e=>!0===e||!1===e,isObject:D,isPlainObject:F,isReadableStream:H,isRequest:z,isResponse:q,isHeaders:W,isUndefined:L,isDate:M,isFile:U,isBlob:B,isRegExp:te,isFunction:x,isStream:e=>D(e)&&x(e.pipe),isURLSearchParams:V,isTypedArray:Y,isFileList:G,forEach:$,merge:function e(){const{caseless:t}=K(this)&&this||{},n={},r=(r,o)=>{const a=t&&X(n,o)||o;F(n[a])&&F(r)?n[a]=e(n[a],r):F(r)?n[a]=e({},r):k(r)?n[a]=r.slice():n[a]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&$(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>($(t,((t,r)=>{n&&x(t)?e[r]=O(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&N(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:P,kindOfTest:T,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(k(e))return e;let t=e.length;if(!j(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Q,hasOwnProperty:ee,hasOwnProp:ee,reduceDescriptors:ne,freezeMethods:e=>{ne(e,((t,n)=>{if(x(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];x(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return k(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:X,global:Z,isContextDefined:K,ALPHABET:ae,generateString:(e=16,t=ae.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&x(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(D(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=k(e)?[]:{};return $(e,((e,t)=>{const a=n(e,r+1);!L(a)&&(o[t]=a)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ie,isThenable:e=>e&&(D(e)||x(e))&&x(e.then)&&x(e.catch)};function le(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}se.inherits(le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:se.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ce=le.prototype,ue={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{ue[e]={value:e}})),Object.defineProperties(le,ue),Object.defineProperty(ce,"isAxiosError",{value:!0}),le.from=(e,t,n,r,o,a)=>{const i=Object.create(ce);return se.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),le.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};const pe=le;function de(e){return se.isPlainObject(e)||se.isArray(e)}function me(e){return se.endsWith(e,"[]")?e.slice(0,-2):e}function fe(e,t,n){return e?e.concat(t).map((function(e,t){return e=me(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const ge=se.toFlatObject(se,{},null,(function(e){return/^is[A-Z]/.test(e)})),he=function(e,t,n){if(!se.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=se.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!se.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&se.isSpecCompliantForm(t);if(!se.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(se.isDate(e))return e.toISOString();if(!s&&se.isBlob(e))throw new pe("Blob is not supported. Use a Buffer instead.");return se.isArrayBuffer(e)||se.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(se.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(se.isArray(e)&&function(e){return se.isArray(e)&&!e.some(de)}(e)||(se.isFileList(e)||se.endsWith(n,"[]"))&&(s=se.toArray(e)))return n=me(n),s.forEach((function(e,r){!se.isUndefined(e)&&null!==e&&t.append(!0===i?fe([n],r,a):null===i?n:n+"[]",l(e))})),!1;return!!de(e)||(t.append(fe(o,n,a),l(e)),!1)}const u=[],p=Object.assign(ge,{defaultVisitor:c,convertValue:l,isVisitable:de});if(!se.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!se.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),se.forEach(n,(function(n,a){!0===(!(se.isUndefined(n)||null===n)&&o.call(t,n,se.isString(a)?a.trim():a,r,p))&&e(n,r?r.concat(a):[a])})),u.pop()}}(e),t};function ve(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Ee(e,t){this._pairs=[],e&&he(e,this,t)}const be=Ee.prototype;be.append=function(e,t){this._pairs.push([e,t])},be.toString=function(e){const t=e?function(t){return e.call(this,t,ve)}:ve;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const ye=Ee;function we(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _e(e,t,n){if(!t)return e;const r=n&&n.encode||we,o=n&&n.serialize;let a;if(a=o?o(t,n):se.isURLSearchParams(t)?t.toString():new ye(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Oe=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){se.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Se={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ye,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Pe="undefined"!=typeof window&&"undefined"!=typeof document,Ce=(Te="undefined"!=typeof navigator&&navigator.product,Pe&&["ReactNative","NativeScript","NS"].indexOf(Te)<0);var Te;const Re="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ke=Pe&&window.location.href||"http://localhost",Le={...e,...Ne},Ie=function(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;return a=!a&&se.isArray(r)?r.length:a,s?(se.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&se.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&se.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i)}if(se.isFormData(e)&&se.isFunction(e.entries)){const n={};return se.forEachEntry(e,((e,r)=>{t(function(e){return se.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null},Ae={transitional:Se,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=se.isObject(e);if(o&&se.isHTMLForm(e)&&(e=new FormData(e)),se.isFormData(e))return r?JSON.stringify(Ie(e)):e;if(se.isArrayBuffer(e)||se.isBuffer(e)||se.isStream(e)||se.isFile(e)||se.isBlob(e)||se.isReadableStream(e))return e;if(se.isArrayBufferView(e))return e.buffer;if(se.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return he(e,new Le.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Le.isNode&&se.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((a=se.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return he(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(se.isString(e))try{return(0,JSON.parse)(e),se.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Ae.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(se.isResponse(e)||se.isReadableStream(e))return e;if(e&&se.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw pe.from(e,pe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Le.classes.FormData,Blob:Le.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};se.forEach(["delete","get","head","post","put","patch"],(e=>{Ae.headers[e]={}}));const xe=Ae,je=se.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),De=Symbol("internals");function Fe(e){return e&&String(e).trim().toLowerCase()}function Me(e){return!1===e||null==e?e:se.isArray(e)?e.map(Me):String(e)}function Ue(e,t,n,r,o){return se.isFunction(r)?r.call(this,t,n):(o&&(t=n),se.isString(t)?se.isString(r)?-1!==t.indexOf(r):se.isRegExp(r)?r.test(t):void 0:void 0)}class Be{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Fe(t);if(!o)throw new Error("header name must be a non-empty string");const a=se.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Me(e))}const a=(e,t)=>se.forEach(e,((e,n)=>o(e,n,t)));if(se.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(se.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&je[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(se.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Fe(e)){const n=se.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(se.isFunction(t))return t.call(this,e,n);if(se.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Fe(e)){const n=se.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Fe(e)){const o=se.findKey(n,e);!o||t&&!Ue(0,n[o],o,t)||(delete n[o],r=!0)}}return se.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ue(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return se.forEach(this,((r,o)=>{const a=se.findKey(n,o);if(a)return t[a]=Me(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Me(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return se.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&se.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[De]=this[De]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Fe(e);t[r]||(function(e,t){const n=se.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return se.isArray(e)?e.forEach(r):r(e),this}}Be.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),se.reduceDescriptors(Be.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),se.freezeMethods(Be);const Ge=Be;function Ve(e,t){const n=this||xe,r=t||n,o=Ge.from(r.headers);let a=r.data;return se.forEach(e,(function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)})),o.normalize(),a}function He(e){return!(!e||!e.__CANCEL__)}function ze(e,t,n){pe.call(this,null==e?"canceled":e,pe.ERR_CANCELED,t,n),this.name="CanceledError"}se.inherits(ze,pe,{__CANCEL__:!0});const qe=ze;function We(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new pe("Request failed with status code "+n.status,[pe.ERR_BAD_REQUEST,pe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const $e=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[i];o||(o=l),n[a]=s,r[a]=l;let u=i,p=0;for(;u!==a;)p+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const d=c&&l-c;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n=0;const r=1e3/t;let o=null;return function(){const t=!0===this,a=Date.now();if(t||a-n>r)return o&&(clearTimeout(o),o=null),n=a,e.apply(null,arguments);o||(o=setTimeout((()=>(o=null,n=Date.now(),e.apply(null,arguments))),r-(a-n)))}}((n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;const c={loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i};c[t?"download":"upload"]=!0,e(c)}),n)},Xe=Le.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=se.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Ze=Le.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const i=[e+"="+encodeURIComponent(t)];se.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),se.isString(r)&&i.push("path="+r),se.isString(o)&&i.push("domain="+o),!0===a&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ke(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ye=e=>e instanceof Ge?{...e}:e;function Je(e,t){t=t||{};const n={};function r(e,t,n){return se.isPlainObject(e)&&se.isPlainObject(t)?se.merge.call({caseless:n},e,t):se.isPlainObject(t)?se.merge({},t):se.isArray(t)?t.slice():t}function o(e,t,n){return se.isUndefined(t)?se.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!se.isUndefined(t))return r(void 0,t)}function i(e,t){return se.isUndefined(t)?se.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t)=>o(Ye(e),Ye(t),!0)};return se.forEach(Object.keys(Object.assign({},e,t)),(function(r){const a=l[r]||o,i=a(e[r],t[r],r);se.isUndefined(i)&&a!==s||(n[r]=i)})),n}const Qe=e=>{const t=Je({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:a,xsrfCookieName:i,headers:s,auth:l}=t;if(t.headers=s=Ge.from(s),t.url=_e(Ke(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),se.isFormData(r))if(Le.hasStandardBrowserEnv||Le.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(Le.hasStandardBrowserEnv&&(o&&se.isFunction(o)&&(o=o(t)),o||!1!==o&&Xe(t.url))){const e=a&&i&&Ze.read(i);e&&s.set(a,e)}return t},et="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Qe(e);let o=r.data;const a=Ge.from(r.headers).normalize();let i,{responseType:s}=r;function l(){r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let c=new XMLHttpRequest;function u(){if(!c)return;const r=Ge.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());We((function(e){t(e),l()}),(function(e){n(e),l()}),{data:s&&"text"!==s&&"json"!==s?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout,"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(u)},c.onabort=function(){c&&(n(new pe("Request aborted",pe.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new pe("Network Error",pe.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const t=r.transitional||Se;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new pe(e,t.clarifyTimeoutError?pe.ETIMEDOUT:pe.ECONNABORTED,r,c)),c=null},void 0===o&&a.setContentType(null),"setRequestHeader"in c&&se.forEach(a.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),se.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),s&&"json"!==s&&(c.responseType=r.responseType),"function"==typeof r.onDownloadProgress&&c.addEventListener("progress",$e(r.onDownloadProgress,!0)),"function"==typeof r.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",$e(r.onUploadProgress)),(r.cancelToken||r.signal)&&(i=t=>{c&&(n(!t||t.type?new qe(null,e,c):t),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const p=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);p&&-1===Le.protocols.indexOf(p)?n(new pe("Unsupported protocol "+p+":",pe.ERR_BAD_REQUEST,e)):c.send(o||null)}))},tt=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof pe?t:new qe(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{o(new pe(`timeout ${t} of ms exceeded`,pe.ETIMEDOUT))}),t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=i,[s,()=>{a&&clearTimeout(a),a=null}]},nt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},rt=(e,t,n,r,o)=>{const a=async function*(e,t,n){for await(const r of e)yield*nt(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let i=0;return new ReadableStream({type:"bytes",async pull(e){const{done:t,value:o}=await a.next();if(t)return e.close(),void r();let s=o.byteLength;n&&n(i+=s),e.enqueue(new Uint8Array(o))},cancel:e=>(r(e),a.return())},{highWaterMark:2})},ot=(e,t)=>{const n=null!=e;return r=>setTimeout((()=>t({lengthComputable:n,total:e,loaded:r})))},at="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,it=at&&"function"==typeof ReadableStream,st=at&&("function"==typeof TextEncoder?(lt=new TextEncoder,e=>lt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var lt;const ct=it&&(()=>{let e=!1;const t=new Request(Le.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ut=it&&!!(()=>{try{return se.isReadableStream(new Response("").body)}catch(e){}})(),pt={stream:ut&&(e=>e.body)};var dt;at&&(dt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!pt[e]&&(pt[e]=se.isFunction(dt[e])?t=>t[e]():(t,n)=>{throw new pe(`Response type '${e}' is not supported`,pe.ERR_NOT_SUPPORT,n)})})));const mt=at&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:a,timeout:i,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:p="same-origin",fetchOptions:d}=Qe(e);c=c?(c+"").toLowerCase():"text";let m,f,[g,h]=o||a||i?tt([o,a],i):[];const v=()=>{!m&&setTimeout((()=>{g&&g.unsubscribe()})),m=!0};let E;try{if(l&&ct&&"get"!==n&&"head"!==n&&0!==(E=await(async(e,t)=>{const n=se.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:se.isBlob(e)?e.size:se.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:se.isArrayBufferView(e)?e.byteLength:(se.isURLSearchParams(e)&&(e+=""),se.isString(e)?(await st(e)).byteLength:void 0))(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});se.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body&&(r=rt(n.body,65536,ot(E,$e(l)),null,st))}se.isString(p)||(p=p?"cors":"omit"),f=new Request(t,{...d,signal:g,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:p});let o=await fetch(f);const a=ut&&("stream"===c||"response"===c);if(ut&&(s||a)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=se.toFiniteNumber(o.headers.get("content-length"));o=new Response(rt(o.body,65536,s&&ot(t,$e(s,!0)),a&&v,st),e)}c=c||"text";let i=await pt[se.findKey(pt,c)||"text"](o,e);return!a&&v(),h&&h(),await new Promise(((t,n)=>{We(t,n,{data:i,headers:Ge.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:f})}))}catch(t){if(v(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new pe("Network Error",pe.ERR_NETWORK,e,f),{cause:t.cause||t});throw pe.from(t,t&&t.code,e,f)}}),ft={http:null,xhr:et,fetch:mt};se.forEach(ft,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const gt=e=>`- ${e}`,ht=e=>se.isFunction(e)||null===e||!1===e,vt=e=>{e=se.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let a=0;a<t;a++){let t;if(n=e[a],r=n,!ht(n)&&(r=ft[(t=String(n)).toLowerCase()],void 0===r))throw new pe(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+a]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(gt).join("\n"):" "+gt(e[0]):"as no adapter specified";throw new pe("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Et(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new qe(null,e)}function bt(e){return Et(e),e.headers=Ge.from(e.headers),e.data=Ve.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vt(e.adapter||xe.adapter)(e).then((function(t){return Et(e),t.data=Ve.call(e,e.transformResponse,t),t.headers=Ge.from(t.headers),t}),(function(t){return He(t)||(Et(e),t&&t.response&&(t.response.data=Ve.call(e,e.transformResponse,t.response),t.response.headers=Ge.from(t.response.headers))),Promise.reject(t)}))}const yt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{yt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const wt={};yt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,a)=>{if(!1===e)throw new pe(r(o," has been removed"+(t?" in "+t:"")),pe.ERR_DEPRECATED);return t&&!wt[o]&&(wt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};const _t={assertOptions:function(e,t,n){if("object"!=typeof e)throw new pe("options must be an object",pe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new pe("option "+a+" must be "+n,pe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new pe("Unknown option "+a,pe.ERR_BAD_OPTION)}},validators:yt},Ot=_t.validators;class St{constructor(e){this.defaults=e,this.interceptors={request:new Oe,response:new Oe}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Je(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&_t.assertOptions(n,{silentJSONParsing:Ot.transitional(Ot.boolean),forcedJSONParsing:Ot.transitional(Ot.boolean),clarifyTimeoutError:Ot.transitional(Ot.boolean)},!1),null!=r&&(se.isFunction(r)?t.paramsSerializer={serialize:r}:_t.assertOptions(r,{encode:Ot.function,serialize:Ot.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&se.merge(o.common,o[t.method]);o&&se.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ge.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,p=0;if(!s){const e=[bt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);p<u;)c=c.then(e[p++],e[p++]);return c}u=i.length;let d=t;for(p=0;p<u;){const e=i[p++],t=i[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{c=bt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=l.length;p<u;)c=c.then(l[p++],l[p++]);return c}getUri(e){return _e(Ke((e=Je(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}se.forEach(["delete","get","head","options"],(function(e){St.prototype[e]=function(t,n){return this.request(Je(n||{},{method:e,url:t,data:(n||{}).data}))}})),se.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Je(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}St.prototype[e]=t(),St.prototype[e+"Form"]=t(!0)}));const Nt=St;class Pt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new qe(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Pt((function(t){e=t})),cancel:e}}}const Ct=Pt,Tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Tt).forEach((([e,t])=>{Tt[t]=e}));const Rt=Tt,kt=function e(t){const n=new Nt(t),r=O(Nt.prototype.request,n);return se.extend(r,Nt.prototype,n,{allOwnKeys:!0}),se.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Je(t,n))},r}(xe);kt.Axios=Nt,kt.CanceledError=qe,kt.CancelToken=Ct,kt.isCancel=He,kt.VERSION="1.7.2",kt.toFormData=he,kt.AxiosError=pe,kt.Cancel=kt.CanceledError,kt.all=function(e){return Promise.all(e)},kt.spread=function(e){return function(t){return e.apply(null,t)}},kt.isAxiosError=function(e){return se.isObject(e)&&!0===e.isAxiosError},kt.mergeConfig=Je,kt.AxiosHeaders=Ge,kt.formToJSON=e=>Ie(se.isHTMLForm(e)?new FormData(e):e),kt.getAdapter=vt,kt.HttpStatusCode=Rt,kt.default=kt;const Lt=kt,It=window.wp.apiFetch;var At=n.n(It);const xt=gutenverseCore.config,jt=function(e){var t=e.active,n=void 0!==t&&t,r=e.setActive,o=e.description,i=window.GutenverseDashboard.imgDir,s=(0,u.useRef)(null);return(0,u.useEffect)((function(){var e=function(e){s.current&&!s.current.contains(e.target)&&r(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}}),[s]),n&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(v.EscListener,{execute:function(){return r(!1)}}),(0,a.createElement)("div",{className:"popup-pro"},(0,a.createElement)("div",{className:"popup-content",ref:s},(0,a.createElement)("img",{className:"image popup-image-background",src:"".concat(i,"/pop-up-bg-popup-banner.png")}),(0,a.createElement)("img",{className:"image popup-image-mockup",src:"".concat(i,"/pop-up-mockup-pro.png")}),(0,a.createElement)("img",{className:"image popup-image-cube",src:"".concat(i,"/pop-up-3d-cube-2.png")}),(0,a.createElement)("img",{className:"image popup-image-element1",src:"".concat(i,"/pop-up-icon-element.png")}),(0,a.createElement)("img",{className:"image popup-image-element2",src:"".concat(i,"/pop-up-icon-element-2.png")}),(0,a.createElement)("img",{className:"image popup-image-element3",src:"".concat(i,"/pop-up-icon-element-3.png")}),(0,a.createElement)("img",{className:"image popup-image-arrow",src:"".concat(i,"/banner-arrow-blue.png")}),(0,a.createElement)("div",{className:"close",onClick:function(){return r(!1)}},(0,a.createElement)(m.IconCloseSVG,{size:20})),(0,a.createElement)("div",{className:"content"},(0,a.createElement)("h3",{className:"details"},o),(0,a.createElement)(v.ButtonUpgradePro,{location:"popup",isBanner:!0,link:"".concat(xt.upgradeProUrl,"?utm_source=gutenverse&utm_medium=dashboard&utm_client_site=").concat(xt.clientUrl,"&utm_client_theme=").concat(xt.activeTheme),customStyles:{height:"16px",padding:"12px 25px 12px 30px"}})))))};var Dt=function(e){var t=e.children;return(0,a.createElement)("div",{className:"dashboard-content"},t)},Ft=function(e){var t=e.children;return(0,a.createElement)("div",{className:"content-header"},t)},Mt=function(e){var t=e.children;return(0,a.createElement)("div",{className:"content-body"},t)},Ut=function(){var e=window.GutenverseDashboard,t=e.imgDir,n=e.fseUrl,r=e.url,o=e.subscribed,i=e.pluginVersions,s=e.community,l=e.docs,p=c((0,u.useState)(""),2),f=p[0],g=p[1],v=c((0,u.useState)(!1),2),E=v[0],b=v[1],y=c((0,u.useState)(!1),2),w=y[0],_=y[1],O=c((0,u.useState)(o),2),S=O[0],N=O[1],P=Array(5).fill(null);return(0,u.useEffect)((function(){S&&setTimeout((function(){b(!1)}),1e3)}),[S]),(0,a.createElement)(Dt,null,(0,a.createElement)("div",{className:"panel-wrapper first-wrapper"},(0,a.createElement)("div",{className:"box-panel feature-panel"},(0,a.createElement)("div",null,(0,a.createElement)("div",null,(0,a.createElement)("p",{className:"welcome-to"},(0,d.__)("WELCOME TO 👋","gutenverse")),(0,a.createElement)("h2",{className:"title"},(0,d.__)("Gutenverse Ecosystem","gutenverse")),(0,a.createElement)("span",{className:"description"},(0,d.__)("Explore the unlimited possibilities of Gutenberg and Site Editing using various plugins of Gutenverse.","gutenverse")),(0,a.createElement)("a",{className:"join-community-button",href:s,target:"_blank",rel:"noreferrer"},(0,a.createElement)("div",{className:"circle"},(0,a.createElement)("i",{className:"fab fa-facebook-f"})),(0,a.createElement)("span",null,(0,d.__)("Join Our Community","gutenverse"))))),(0,a.createElement)("div",null,(0,a.createElement)("img",{className:"illustration",src:"".concat(t,"/dashboard-landing-1.webp")}))),(0,a.createElement)("div",{className:"box-panel subscribe-panel"},S&&!E?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",null,(0,a.createElement)("img",{className:"illustration",src:"".concat(t,"/dashboard-landing-2.webp")})),(0,a.createElement)("div",null,(0,a.createElement)("div",null,(0,a.createElement)("h2",{className:"title"},(0,d.__)("Thank You For Subscribing Our Newsletter","gutenverse")),(0,a.createElement)("span",{className:"description"},(0,d.__)("We will inform you about updates, new themes, new features, and other infos related to Gutenverse.","gutenverse")),(0,a.createElement)("div",{className:"btn start-building",onClick:function(){return window.location.href=n}},(0,d.__)("Start Building","gutenverse"))))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",null,(0,a.createElement)("img",{className:"illustration",src:"".concat(t,"/dashboard-landing-2.webp")})),(0,a.createElement)("div",null,(0,a.createElement)("div",null,(0,a.createElement)("h2",{className:"title"},(0,d.__)("Sign up to our Newsletter","gutenverse")),(0,a.createElement)("span",{className:"description"},(0,d.__)("Subscribe to our newsletter and be the first to get new features, latest update & new theme releases.","gutenverse")),(0,a.createElement)("div",{id:"subcription-email"},(0,a.createElement)("div",{className:"input"},(0,a.createElement)("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{opacity:"0.6",d:"M13.1427 0H2.13391C1.37499 0 0.757812 0.7176 0.757812 1.6V11.2C0.757812 12.0824 1.37499 12.8 2.13391 12.8H13.1427C13.9016 12.8 14.5187 12.0824 14.5187 11.2V1.6C14.5187 0.7176 13.9016 0 13.1427 0ZM13.1427 1.6V2.0088L7.63828 6.9872L2.13391 2.0096V1.6H13.1427ZM2.13391 11.2V4.0352L7.21582 8.6312C7.3363 8.74124 7.48507 8.80105 7.63828 8.80105C7.79149 8.80105 7.94026 8.74124 8.06074 8.6312L13.1427 4.0352L13.144 11.2H2.13391Z",fill:"#99A2A9"})),(0,a.createElement)("input",{type:"text",placeholder:"Your Email Address",value:f,disabled:E,onChange:function(e){return g(e.target.value)}})),(0,a.createElement)("div",{className:"btn ".concat(S?"done":""),onClick:function(){if(h()(f))_("empty");else{var e=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/.test(f);e?e&&!E&&(b(!0),function(e){return(t=window.GutenverseDashboard.libraryApi,Lt.create({baseURL:t})).post("/subscribe",e);var t}({email:f,domain:r}).then((function(e){e.data?At()({path:"gutenverse-client/v1/subscribed",method:"POST",data:{subscribed:!0,email:f}}).then((function(){N(!0),g("")})).catch((function(){})):(b(!1),_("error"))})).catch((function(){b(!1),_("error")}))):_("format")}}},E?S?(0,a.createElement)("div",{className:"checkmark"}):(0,a.createElement)("div",{className:"loader"}):(0,d.__)("Subscribe","gutenverse")),w&&!S&&(0,a.createElement)("span",{className:"warning"},function(){switch(setTimeout((function(){return _(!1)}),4e3),w){case"error":return(0,d.__)("there is an error requesting subscription.","gutenverse");case"format":return(0,d.__)("please use a valid email address format.","gutenverse");default:return(0,d.__)("please input an email address.","gutenverse")}}()))))))),(0,a.createElement)("div",{className:"panel-wrapper second-wrapper"},(0,a.createElement)("div",{className:"plugins"},(0,a.createElement)("h3",null,(0,d.__)("Enjoy using our plugin?","gutenverse")),(0,a.createElement)("div",{className:"plugins-desc"},(0,a.createElement)("p",null,(0,d.__)("Sharing your kind words about us and our widget means a lot to us.","gutenverse")),(0,a.createElement)("svg",{width:"59",height:"41",viewBox:"0 0 59 41",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M14.7502 2.37294L14.5529 2.83237L14.7502 2.37294ZM54.5923 40.3397C54.7799 40.5423 55.0963 40.5545 55.2989 40.3669L58.601 37.3097C58.8036 37.1221 58.8158 36.8058 58.6282 36.6031C58.4406 36.4005 58.1242 36.3883 57.9216 36.5759L54.9864 39.2934L52.2689 36.3582C52.0813 36.1556 51.765 36.1434 51.5624 36.331C51.3597 36.5186 51.3475 36.835 51.5351 37.0376L54.5923 40.3397ZM1.45525 7.39639C2.14998 5.86668 3.5839 3.92647 5.75244 2.77104C7.89728 1.62825 10.8106 1.22532 14.5529 2.83237L14.9475 1.91351C10.9441 0.19432 7.71145 0.594172 5.28221 1.8885C2.87668 3.1702 1.30838 5.30147 0.54475 6.98288L1.45525 7.39639ZM14.5529 2.83237C17.7904 4.22264 20.5311 6.74175 22.0715 9.00309C22.8463 10.1406 23.2832 11.1629 23.3647 11.9083C23.4049 12.2766 23.354 12.5351 23.2595 12.7057C23.1727 12.8624 23.0228 12.9942 22.7459 13.0684L23.0048 14.0343C23.5092 13.8991 23.8996 13.6139 24.1343 13.1902C24.3613 12.7804 24.4129 12.2948 24.3587 11.7996C24.2514 10.8178 23.7117 9.63467 22.898 8.44011C21.2612 6.03739 18.3768 3.38615 14.9475 1.91351L14.5529 2.83237ZM22.7459 13.0684C22.4718 13.1419 22.3112 13.0904 22.2093 13.0146C22.0929 12.9281 21.9674 12.7455 21.901 12.4102C21.767 11.7341 21.9198 10.6378 22.5443 9.34445C23.7798 6.78606 26.7872 3.62544 32.3988 1.88206L32.1022 0.927088C26.2553 2.74352 23.0126 6.07513 21.6438 8.90959C20.9663 10.3127 20.7285 11.638 20.92 12.6046C21.0164 13.0907 21.2327 13.5347 21.6127 13.8172C22.0072 14.1104 22.4976 14.1702 23.0048 14.0343L22.7459 13.0684ZM32.3988 1.88206C35.0911 1.04565 37.8422 1.61042 40.4791 3.31054C43.1244 5.01614 45.6342 7.85478 47.7834 11.5063C52.0811 18.808 54.8728 29.2511 54.4596 39.9808L55.4588 40.0192C55.879 29.1097 53.0456 18.4753 48.6452 10.9991C46.4454 7.26165 43.8379 4.28629 41.0209 2.47009C38.1955 0.648414 35.1391 -0.0164049 32.1022 0.927088L32.3988 1.88206Z",fill:"#99A2A9"}))),(0,a.createElement)("div",{className:"plugin-list"},Object.keys(i).map((function(e){var t=i[e],n=null!=t&&t.supportUrl?t.supportUrl:"https://wordpress.org/support/plugin/".concat(e,"/#new-topic-0");return(0,a.createElement)("div",{key:e,className:"plugin"},(0,a.createElement)("h4",null,null!=t&&t.name.includes("Gutenverse")?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",null,(0,d.__)("Gutenverse","gutenverse"))," ",null==t?void 0:t.name.split("Gutenverse").join("")):null==t?void 0:t.name),(0,a.createElement)("div",{className:"actions"},"gutenverse-pro"!==e&&(0,a.createElement)("div",{className:"rate"},(0,a.createElement)("a",{href:"https://wordpress.org/support/plugin/".concat(e,"/reviews/#new-post"),target:"_blank",rel:"noreferrer"},(0,a.createElement)("span",null,(0,d.__)("RATE US","gutenverse")),(0,a.createElement)("svg",{width:"13",height:"6",viewBox:"0 0 13 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M1 2.7C0.834315 2.7 0.7 2.83431 0.7 3C0.7 3.16569 0.834315 3.3 1 3.3L1 2.7ZM12.2121 3.21213C12.3293 3.09497 12.3293 2.90502 12.2121 2.78787L10.3029 0.878679C10.1858 0.761521 9.99584 0.761522 9.87868 0.878679C9.76152 0.995836 9.76152 1.18579 9.87868 1.30294L11.5757 3L9.87868 4.69706C9.76152 4.81421 9.76152 5.00416 9.87868 5.12132C9.99584 5.23848 10.1858 5.23848 10.3029 5.12132L12.2121 3.21213ZM1 3.3L12 3.3L12 2.7L1 2.7L1 3.3Z",fill:"white"})),(0,a.createElement)("div",{className:"star-rating"},P.map((function(e,t){return(0,a.createElement)("svg",{width:"6",height:"6",viewBox:"0 0 6 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M5.80607 1.98874L4.00739 1.73107L3.20333 0.124299C3.18137 0.0803064 3.14524 0.0446934 3.10061 0.0230463C2.98868 -0.0314206 2.85266 0.0139685 2.7967 0.124299L1.99264 1.73107L0.193955 1.98874C0.144365 1.99573 0.0990263 2.01877 0.0643136 2.05368C0.0223479 2.0962 -0.000777074 2.1534 1.99392e-05 2.21272C0.000816952 2.27203 0.0254708 2.32861 0.0685642 2.37001L1.36994 3.62066L1.06248 5.38664C1.05527 5.42772 1.05988 5.46997 1.07579 5.5086C1.0917 5.54723 1.11828 5.58069 1.1525 5.60519C1.18672 5.62969 1.22722 5.64425 1.26941 5.64721C1.3116 5.65018 1.35379 5.64143 1.39119 5.62197L3.00001 4.7882L4.60884 5.62197C4.65276 5.64501 4.70377 5.65269 4.75265 5.64431C4.87592 5.62336 4.9588 5.50814 4.93755 5.38664L4.63009 3.62066L5.93146 2.37001C5.96689 2.3358 5.99026 2.2911 5.99735 2.24222C6.01648 2.12002 5.93005 2.0069 5.80607 1.98874Z",fill:"url(#paint0_linear_18693_8098)"}),(0,a.createElement)("defs",null,(0,a.createElement)("linearGradient",{id:"paint0_linear_18693_8098",x1:"3",y1:"0",x2:"3",y2:"5.64778",gradientUnits:"userSpaceOnUse"},(0,a.createElement)("stop",{"stop-color":"#F4EF77"}),(0,a.createElement)("stop",{offset:"1","stop-color":"#C0BB38"}))))}))))),(0,a.createElement)("div",{className:"support"},(0,a.createElement)("a",{href:n,target:"_blank",rel:"noreferrer"},"gutenverse-pro"===e?(0,a.createElement)("div",{className:"tech-support-pro"},(0,a.createElement)("div",{className:"container"},(0,a.createElement)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M9.895 8.30265C10.37 7.21766 10.37 5.97266 9.895 4.89266L8.525 5.51266C8.825 6.20266 8.825 6.98766 8.53 7.68266L9.895 8.30265ZM7.71 2.70266C7.17141 2.46768 6.59012 2.34639 6.0025 2.34639C5.41488 2.34639 4.83359 2.46768 4.295 2.70266L4.915 4.06766C5.61 3.77266 6.395 3.77266 7.09 4.07266L7.71 2.70266ZM2.105 4.88766C1.87002 5.42712 1.74874 6.00923 1.74874 6.59766C1.74874 7.18608 1.87002 7.76819 2.105 8.30765L3.475 7.68266C3.175 6.99266 3.175 6.20266 3.475 5.50766L2.105 4.88766ZM4.295 10.4927C4.83362 10.728 5.41522 10.8491 6.00302 10.8482C6.59083 10.8474 7.17207 10.7246 7.71 10.4877L7.09 9.12265C6.74755 9.27063 6.37857 9.34739 6.00551 9.34825C5.63246 9.3491 5.26313 9.27405 4.92 9.12765L4.295 10.4927ZM6 1.59766C6.65661 1.59766 7.30679 1.72699 7.91342 1.97826C8.52004 2.22953 9.07124 2.59783 9.53553 3.06212C9.99983 3.52641 10.3681 4.07761 10.6194 4.68424C10.8707 5.29087 11 5.94105 11 6.59766C11 7.92374 10.4732 9.19551 9.53553 10.1332C8.59785 11.0709 7.32608 11.5977 6 11.5977C5.34339 11.5977 4.69321 11.4683 4.08658 11.2171C3.47995 10.9658 2.92876 10.5975 2.46447 10.1332C1.52678 9.19551 1 7.92374 1 6.59766C1 5.27157 1.52678 3.9998 2.46447 3.06212C3.40215 2.12444 4.67392 1.59766 6 1.59766ZM6 4.59766C5.46957 4.59766 4.96086 4.80837 4.58579 5.18344C4.21071 5.55851 4 6.06722 4 6.59766C4 7.12809 4.21071 7.6368 4.58579 8.01187C4.96086 8.38694 5.46957 8.59765 6 8.59765C6.53043 8.59765 7.03914 8.38694 7.41421 8.01187C7.78929 7.6368 8 7.12809 8 6.59766C8 6.06722 7.78929 5.55851 7.41421 5.18344C7.03914 4.80837 6.53043 4.59766 6 4.59766Z",fill:"white"})),(0,d.__)("Technical Support","gutenverse"))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("svg",{width:"12",height:"13",viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M9.895 8.30265C10.37 7.21766 10.37 5.97266 9.895 4.89266L8.525 5.51266C8.825 6.20266 8.825 6.98766 8.53 7.68266L9.895 8.30265ZM7.71 2.70266C7.17141 2.46768 6.59012 2.34639 6.0025 2.34639C5.41488 2.34639 4.83359 2.46768 4.295 2.70266L4.915 4.06766C5.61 3.77266 6.395 3.77266 7.09 4.07266L7.71 2.70266ZM2.105 4.88766C1.87002 5.42712 1.74874 6.00923 1.74874 6.59766C1.74874 7.18608 1.87002 7.76819 2.105 8.30765L3.475 7.68266C3.175 6.99266 3.175 6.20266 3.475 5.50766L2.105 4.88766ZM4.295 10.4927C4.83362 10.728 5.41522 10.8491 6.00302 10.8482C6.59083 10.8474 7.17207 10.7246 7.71 10.4877L7.09 9.12265C6.74755 9.27063 6.37857 9.34739 6.00551 9.34825C5.63246 9.3491 5.26313 9.27405 4.92 9.12765L4.295 10.4927ZM6 1.59766C6.65661 1.59766 7.30679 1.72699 7.91342 1.97826C8.52004 2.22953 9.07124 2.59783 9.53553 3.06212C9.99983 3.52641 10.3681 4.07761 10.6194 4.68424C10.8707 5.29087 11 5.94105 11 6.59766C11 7.92374 10.4732 9.19551 9.53553 10.1332C8.59785 11.0709 7.32608 11.5977 6 11.5977C5.34339 11.5977 4.69321 11.4683 4.08658 11.2171C3.47995 10.9658 2.92876 10.5975 2.46447 10.1332C1.52678 9.19551 1 7.92374 1 6.59766C1 5.27157 1.52678 3.9998 2.46447 3.06212C3.40215 2.12444 4.67392 1.59766 6 1.59766ZM6 4.59766C5.46957 4.59766 4.96086 4.80837 4.58579 5.18344C4.21071 5.55851 4 6.06722 4 6.59766C4 7.12809 4.21071 7.6368 4.58579 8.01187C4.96086 8.38694 5.46957 8.59765 6 8.59765C6.53043 8.59765 7.03914 8.38694 7.41421 8.01187C7.78929 7.6368 8 7.12809 8 6.59766C8 6.06722 7.78929 5.55851 7.41421 5.18344C7.03914 4.80837 6.53043 4.59766 6 4.59766Z",fill:"white"})),(0,d.__)("Technical Support","gutenverse"))))))})))),(0,a.createElement)("div",{className:"box-panel support-panel"},(0,a.createElement)("div",{className:"doc-details"},(0,a.createElement)("h2",null,(0,a.createElement)(m.IconDocsSVG,null),(0,d.__)("Documentations","gutenverse")),(0,a.createElement)("span",{className:"description"},(0,d.__)("If you have any difficulties using our plugin, please check our documentation.","gutenverse")),(0,a.createElement)("a",{href:l,target:"_blank",rel:"noreferrer"},(0,d.__)("Check Now","gutenverse"),(0,a.createElement)("i",{className:"fa fa-arrow-right"}))))))};const Bt=function(){var e=c((0,u.useState)(!1),2),t=e[0],n=e[1];return(0,u.useEffect)((function(){n(!0)}),[]),(0,a.createElement)(a.Fragment,null,!t&&(0,a.createElement)("div",{className:"loader"}),t&&(0,f.applyFilters)("gutenverse.dashboard.page",(0,a.createElement)(Ut,null)))};var Gt=n(688),Vt=n.n(Gt);function Ht(){return Ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ht.apply(this,arguments)}var zt=(0,a.forwardRef)((function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,a=void 0===o?24:o,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return i().createElement("svg",Ht({ref:t,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},s),i().createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),i().createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),i().createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),i().createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),i().createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),i().createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),i().createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),i().createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"}))}));zt.propTypes={color:Vt().string,size:Vt().oneOfType([Vt().string,Vt().number])},zt.displayName="Loader";const qt=zt,Wt="%[a-f0-9]{2}",$t=new RegExp("("+Wt+")|([^%]+?)","gi"),Xt=new RegExp("("+Wt+")+","gi");function Zt(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(1===e.length)return e;t=t||1;const n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],Zt(n),Zt(r))}function Kt(e){try{return decodeURIComponent(e)}catch{let t=e.match($t)||[];for(let n=1;n<t.length;n++)t=(e=Zt(t,n).join("")).match($t)||[];return e}}function Yt(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===e||""===t)return[];const n=e.indexOf(t);return-1===n?[]:[e.slice(0,n),e.slice(n+t.length)]}function Jt(e,t){const n={};if(Array.isArray(t))for(const r of t){const t=Object.getOwnPropertyDescriptor(e,r);t?.enumerable&&Object.defineProperty(n,r,t)}else for(const r of Reflect.ownKeys(e)){const o=Object.getOwnPropertyDescriptor(e,r);o.enumerable&&t(r,e[r],e)&&Object.defineProperty(n,r,o)}return n}const Qt=e=>null==e,en=e=>encodeURIComponent(e).replace(/[!'()*]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`)),tn=Symbol("encodeFragmentIdentifier");function nn(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function rn(e,t){return t.encode?t.strict?en(e):encodeURIComponent(e):e}function on(e,t){return t.decode?function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return decodeURIComponent(e)}catch{return function(e){const t={"%FE%FF":"��","%FF%FE":"��"};let n=Xt.exec(e);for(;n;){try{t[n[0]]=decodeURIComponent(n[0])}catch{const e=Kt(n[0]);e!==n[0]&&(t[n[0]]=e)}n=Xt.exec(e)}t["%C2"]="�";const r=Object.keys(t);for(const n of r)e=e.replace(new RegExp(n,"g"),t[n]);return e}(e)}}(e):e}function an(e){return Array.isArray(e)?e.sort():"object"==typeof e?an(Object.keys(e)).sort(((e,t)=>Number(e)-Number(t))).map((t=>e[t])):e}function sn(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function ln(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function cn(e){const t=(e=sn(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function un(e,t){nn((t={decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1,...t}).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)]$/.exec(e),e=e.replace(/\[\d*]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[])$/.exec(e),e=e.replace(/\[]$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"colon-list-separator":return(e,n,r)=>{t=/(:list)$/.exec(e),e=e.replace(/:list$/,""),t?void 0!==r[e]?r[e]=[...r[e],n]:r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const o="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!o&&on(n,e).includes(e.arrayFormatSeparator);n=a?on(n,e):n;const i=o||a?n.split(e.arrayFormatSeparator).map((t=>on(t,e))):null===n?n:on(n,e);r[t]=i};case"bracket-separator":return(t,n,r)=>{const o=/(\[])$/.test(t);if(t=t.replace(/\[]$/,""),!o)return void(r[t]=n?on(n,e):n);const a=null===n?[]:n.split(e.arrayFormatSeparator).map((t=>on(t,e)));void 0!==r[t]?r[t]=[...r[t],...a]:r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[...[n[e]].flat(),t]:n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const o of e.split("&")){if(""===o)continue;const e=t.decode?o.replace(/\+/g," "):o;let[a,i]=Yt(e,"=");void 0===a&&(a=e),i=void 0===i?null:["comma","separator","bracket-separator"].includes(t.arrayFormat)?i:on(i,t),n(on(a,t),i,r)}for(const[e,n]of Object.entries(r))if("object"==typeof n&&null!==n)for(const[e,r]of Object.entries(n))n[e]=ln(r,t);else r[e]=ln(n,t);return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce(((e,t)=>{const n=r[t];return e[t]=Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?an(n):n,e}),Object.create(null))}function pn(e,t){if(!e)return"";nn((t={encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:",",...t}).arrayFormatSeparator);const n=n=>t.skipNull&&Qt(e[n])||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const o=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[rn(t,e),"[",o,"]"].join("")]:[...n,[rn(t,e),"[",rn(o,e),"]=",rn(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[rn(t,e),"[]"].join("")]:[...n,[rn(t,e),"[]=",rn(r,e)].join("")];case"colon-list-separator":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[rn(t,e),":list="].join("")]:[...n,[rn(t,e),":list=",rn(r,e)].join("")];case"comma":case"separator":case"bracket-separator":{const t="bracket-separator"===e.arrayFormat?"[]=":"=";return n=>(r,o)=>void 0===o||e.skipNull&&null===o||e.skipEmptyString&&""===o?r:(o=null===o?"":o,0===r.length?[[rn(n,e),t,rn(o,e)].join("")]:[[r,rn(o,e)].join(e.arrayFormatSeparator)])}default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,rn(t,e)]:[...n,[rn(t,e),"=",rn(r,e)].join("")]}}(t),o={};for(const[t,r]of Object.entries(e))n(t)||(o[t]=r);const a=Object.keys(o);return!1!==t.sort&&a.sort(t.sort),a.map((n=>{const o=e[n];return void 0===o?"":null===o?rn(n,t):Array.isArray(o)?0===o.length&&"bracket-separator"===t.arrayFormat?rn(n,t)+"[]":o.reduce(r(n),[]).join("&"):rn(n,t)+"="+rn(o,t)})).filter((e=>e.length>0)).join("&")}function dn(e,t){t={decode:!0,...t};let[n,r]=Yt(e,"#");return void 0===n&&(n=e),{url:n?.split("?")?.[0]??"",query:un(cn(e),t),...t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:on(r,t)}:{}}}function mn(e,t){t={encode:!0,strict:!0,[tn]:!0,...t};const n=sn(e.url).split("?")[0]||"";let r=pn({...un(cn(e.url),{sort:!1}),...e.query},t);r&&(r=`?${r}`);let o=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);if(e.fragmentIdentifier){const r=new URL(n);r.hash=e.fragmentIdentifier,o=t[tn]?r.hash:`#${e.fragmentIdentifier}`}return`${n}${r}${o}`}function fn(e,t,n){n={parseFragmentIdentifier:!0,[tn]:!1,...n};const{url:r,query:o,fragmentIdentifier:a}=dn(e,n);return mn({url:r,query:Jt(o,t),fragmentIdentifier:a},n)}function gn(e,t,n){return fn(e,Array.isArray(t)?e=>!t.includes(e):(e,n)=>!t(e,n),n)}const hn=t;var vn=n(71),En=n.n(vn);const bn=window.wp.notices,yn=window.wp.data;var wn=n(501),_n=n.n(wn);const On=function(e){var t=e.text,n=void 0===t?(0,d.__)("Upgrade To PRO","gutenverse"):t,r=e.align,i=void 0===r?"left":r,s=e.thin,l=void 0!==s&&s,c=e.smallText,u=void 0!==c&&c,g=e.fullWidth,v=void 0!==g&&g,E=e.customStyles,b=void 0===E?{}:E,y=e.link,w=void 0===y?null:y,_=e.location,O=void 0===_?"":_,S=e.isBanner,N=void 0!==S&&S,P=e.licenseActiveButton,C=void 0===P?(0,a.createElement)(a.Fragment,null):P,T=window.GutenverseConfig||window.GutenverseDashboard||{},R=T.upgradeProUrl,k=T.adminUrl,L=En()("button-upgrade-pro",o(o(o(o({},"thin",l),"text-sm",u),"full",v),"".concat(i),i),N&&"button-upgrade-pro-banner"),I=w||R,A=k+"admin.php?page=gutenverse&path=license",x=function(e,t,n,r){return"themeList"!==O&&"ecosystem"!==O||r?(0,a.createElement)("a",{href:r?I:A,className:L,target:"_blank",rel:"noreferrer",style:b},(0,a.createElement)(a.Fragment,null,e,"crown"===t?(0,a.createElement)(m.IconCrownBannerSVG,null):(0,a.createElement)(m.IconKeySVG,null))):(0,a.createElement)(p.Link,{index:"license",to:{pathname:"/wp-admin/admin.php",search:"?page=gutenverse&path=license"},className:L,style:b},n?(0,a.createElement)(a.Fragment,null,"crown"===t?(0,a.createElement)(m.IconCrownBannerSVG,null):(0,a.createElement)(m.IconKeySVG,null),e):(0,a.createElement)(a.Fragment,null,e,"crown"===t?(0,a.createElement)(m.IconCrownBannerSVG,null):(0,a.createElement)(m.IconKeySVG,null)))},j=(0,f.applyFilters)("gutenverse.button.pro.library",(function(){var e;return h()(null===(e=window)||void 0===e?void 0:e.gprodata)?x(n,"crown","dashboard-navigation"===O,!0):"dashboard-navigation"!==O?(0,f.applyFilters)("gutenverse.button.pro.banner",x((0,d.__)("Activate License","gutenverse"),"key",!1,!1),x((0,d.__)("Renew License","gutenverse"),"key",!1,!1),C):void 0}),{location:O,isBanner:N});return(0,a.createElement)(j,null)};var Sn=function(e){var t=c((0,u.useState)(!1),2),n=t[0],r=t[1],o=c((0,u.useState)(!0),2),i=o[0],s=o[1],l=c((0,u.useState)(""),2),p=l[0],m=l[1],f=e.plugin,g=e.plugins,v=f.slug,E=f.name,b=f.version,y=f.url,w=g[v],_=null,O=function(){r(!0),m((0,d.__)("Installing Plugin","gutenverse")),At()({path:"wp/v2/plugins",method:"POST",data:{slug:v,status:"active"}}).then((function(t){var n=t.version,o=t.name,a=t.plugin,i=a.split("/");e.installPlugin({slug:i[0],name:o,path:a,version:n}),r(!1)})).then((function(){e.increaseCounter()})).catch((function(){alert("Error during installing plugin")})).finally((function(){r(!1),m("")}))},S=function(){r(!0),m((0,d.__)("Disabling Plugin","gutenverse")),At()({path:"wp/v2/plugins/plugin?plugin=".concat(w.path),method:"POST",data:{status:"inactive"}}).then((function(){return m((0,d.__)("Deleting Plugin","gutenverse")),At()({path:"wp/v2/plugins/plugin?plugin=".concat(w.path),method:"DELETE"})})).then((function(){O()}))},N=function t(n){n?S():(r(!0),m((0,d.__)("Activating Plugin","gutenverse")),At()({path:"wp/v2/plugins/plugin?plugin=".concat(w.path),method:"POST",data:{status:"active"}}).then((function(t){var n=t.plugin.split("/");e.activatePlugin(n[0]),e.increaseCounter(),r(!1),m("")})).catch((function(){i&&(s(!1),t(!1))})))},P=En()("install-action",{loading:n}),C=n&&(0,a.createElement)("div",{className:"rotating",style:{display:"flex"}},(0,a.createElement)(qt,{size:20})),T=(0,a.createElement)("a",{href:y,target:"_blank",rel:"noreferrer"},(0,d.__)("Go to Plugin Page","gutenverse")," →");if(void 0===w)_=h()(y)?(0,a.createElement)("div",{className:P,onClick:function(){return O()}},C,n?p:(0,d.__)("Install Plugin","gutenverse")):T;else{var R=!h()(b)&&!_n().gte(w.version,f.version||"0.0.0"),k=R?(0,d.__)("Update & Activate Plugin","gutenverse"):(0,d.__)("Activate Plugin","gutenverse");!1===w.active?_=h()(y)?(0,a.createElement)("div",{className:P,onClick:function(){N(R),s(!0)}},C,n?p:k):T:R&&(_=h()(y)?(0,a.createElement)("div",{className:P,onClick:function(){return S()}},C,n?p:(0,d.__)("Update Plugin","gutenverse")):T)}return"gutenverse-pro"!==v||w||(_=(0,a.createElement)(On,{isBanner:!0,location:"card-pro"})),(0,a.createElement)("div",{className:"plugin-install-item"},(0,a.createElement)(Nn,{name:E,version:b,flag:null===_,installedVersion:null==w?void 0:w.version}),(0,a.createElement)("div",{className:"plugin-install-action"},null===_?(0,a.createElement)("div",{className:"install-action done"},(0,d.__)("Installed & Activated","gutenverse")):_))},Nn=function(e){var t=e.version,n=e.name,r=e.installedVersion,o=e.flag;return(0,a.createElement)("div",{className:"plugin-install-detail"},(0,a.createElement)("h2",null,n),o?(0,a.createElement)("span",null,(0,d.sprintf)((0,d.__)("Installed version %s","gutenverse"),r)):!h()(t)&&(0,a.createElement)("span",null,(0,d.sprintf)((0,d.__)("Required version %s or later","gutenverse"),t)))};(0,yn.withSelect)((function(e){return{plugins:(0,e("gutenverse/library").getPluginData)(),installPlugin:function(e){var t=e.slug,n=e.name,r=e.path,o=e.version;(0,yn.dispatch)("gutenverse/library").installPlugin({slug:t,name:n,path:r,version:o})},activatePlugin:function(e){(0,yn.dispatch)("gutenverse/library").activatePlugin(e)},updatePlugin:function(e){var t=e.slug,n=e.version;(0,yn.dispatch)("gutenverse/library").updatePlugin({slug:t,version:n})}}}))((function(e){var t=e.backString,n=e.plugins,r=e.data,o=e.setPluginInstallMode,i=n.installedPlugin,s=r.requirements,l=r.compatibleVersion,p=c((0,u.useState)(0),2),f=p[0],g=p[1],h=function(){g((function(e){return e+1}))},v=En()("plugin-install-popup",{"show-counter":f>0});return(0,a.createElement)("div",{className:v},(0,a.createElement)("div",{className:"plugin-install-wrapper"},(0,a.createElement)("div",{className:"back-button",onClick:function(){return o(!1)}},(0,a.createElement)(m.IconArrowLeftSVG,null),(0,a.createElement)("span",null,t)),f>0&&(0,a.createElement)("div",{className:"plugin-requirement-notice"},(0,a.createElement)("div",{className:"plugin-requirement-icon"},(0,a.createElement)(m.IconInfoYellowSVG,null)),(0,a.createElement)("div",{className:"plugin-requirement-content"},(0,a.createElement)("strong",null,(0,d.__)("Attention!","gutenverse"))," ",(0,a.createElement)("span",null,(0,d.__)("Please refresh this page after install or update plugin","gutenverse")))),(0,a.createElement)("div",{className:"plugin-install-container"},(0,a.createElement)("div",{className:"plugin-install-inner"},(0,a.createElement)("h2",null,(0,d.__)("Plugin Requirement","gutenverse")),(0,a.createElement)("p",null,(0,d.__)("Please install or update and activate these missing requirements plugin for this section or layout to work correctly. We recommend to backup your site before install/update plugin listed below.","gutenverse"))),(0,a.createElement)(Sn,{plugin:{installed:!0,name:"Gutenverse",slug:"gutenverse",version:l},plugins:i,installPlugin:e.installPlugin,activatePlugin:e.activatePlugin,updatePlugin:e.updatePlugin,increaseCounter:h}),s.map((function(t){var n=t.slug;return(0,a.createElement)(Sn,{key:n,plugin:t,plugins:i,installPlugin:e.installPlugin,activatePlugin:e.activatePlugin,updatePlugin:e.updatePlugin,increaseCounter:h})})))))}));const Pn=gutenverseCore.requests;const Cn=window.wp.compose;function Tn(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 Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tn(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var kn=window.GutenverseThemeList,Ln=kn.installNonce,In=kn.themeUrl,An=function(e){var t=!1,n=!1,r=e.plugins,o=e.theme,i=e.id,p=e.installed,g=e.getInstalledThemes,E=e.initialAction,b=e.setInitialAction,y=e.themeSlug,w=e.setCurrentItem,_=e.setPluginInstallMode,O=o.host,S=o.slug,N=o.demo,P=o.customAPI,C=o.customArgs,T=(o.author,o.pro),R=o.status,k=c((0,u.useState)(!1),2),L=k[0],I=k[1],A=(0,yn.useDispatch)(bn.store).createInfoNotice,x=c((0,u.useState)(!1),2),j=x[0],D=x[1],F=r.installedPlugin;(0,u.useEffect)((function(){var e=o.requirements,t=o.compatibleVersion,n=function(e){var t,n,r=e.plugins,o=e.requirements,a=e.compatibleVersion,i=(window.GutenverseConfig?window.GutenverseConfig:window.GutenverseDashboard).pluginVersions,c=(null==i||null===(t=i.gutenverse)||void 0===t?void 0:t.version)||"0.0.0",u=null==o?void 0:o.map((function(e){var t=r[e.slug];return void 0===t?e.installed=!1:(e.installed=!0,e.active=t.active,h()(e.version)?e.validVersion=!0:e.validVersion=_n().gte(t.version,e.version||"0.0.0")),e})).filter((function(e){return!1===e.installed||!1===e.active||!1===e.validVersion}));return _n().gte(c,a||"0.0.0")||(u=[{installed:!0,name:"Gutenverse",slug:"gutenverse",version:c}].concat(function(e){if(Array.isArray(e))return s(e)}(n=u)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||l(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),u}({plugins:F,requirements:e,compatibleVersion:t});D(n)}),[o,r]),(0,u.useEffect)((function(){S===y&&("install"===E&&U(y,O),"activate"===E&&M(S))}),[E]);var M=function(){I(S),At()({path:"gutenverse-client/v1/themes/activate",method:"POST",data:{stylesheet:S}}).then((function(){})).catch((function(){})).finally((function(){g((function(){I(!1),b(""),A((0,d.__)("Theme Activated","gutenverse"),{type:"snackbar",isDismissible:!0})}))}))},U=function(){var e=null;if("wporg"===O){var t=new FormData;t.append("slug",S),t.append("action","install-theme"),t.append("_ajax_nonce",Ln),I(S),e=Lt.post(window.ajaxurl,t,{headers:{"Content-Type":"multipart/form-data"}})}else{I(S);var n={slug:S};if(P){var r=P.url,o=P.endpoint,a=P.route;n.info=r+o+a}e=At()({path:"gutenverse-client/v1/themes/install",method:"POST",data:(0,f.applyFilters)("gutenverse.library.import.parameter",Rn(Rn({},n),C))})}e.then((function(e){!1!==e?g((function(){b("install"===E?"activate":""),I(!1),A((0,d.__)("Theme Installed","gutenverse"),{type:"snackbar",isDismissible:!0})})):(I(!1),A((0,d.__)("Install Failed","gutenverse"),{type:"snackbar",isDismissible:!0}))})).catch()};p.map((function(e){if(e.stylesheet===o.slug)return t=!0,void("active"===e.status&&(n=!0))}));var B,G=function(){w(o),_(!0)},V=function(){return(null==j?void 0:j.length)>0?(0,a.createElement)("div",{className:"manage-plugin theme-button",onClick:G},(0,d.__)("Manage Plugin","gutenverse")):function(e,t){return L===S?(0,a.createElement)("span",{className:"".concat(t?"activate":"install"," theme-button")},(0,a.createElement)(qt,{size:14}),t?(0,d.__)("Activating","gutenverse"):(0,d.__)("Installing","gutenverse")):e?(0,a.createElement)("span",{className:"demo theme-button",onClick:function(){return location.href=In+"".concat(S,"-dashboard")}},(0,d.__)("Templates","gutenverse")):t?(0,a.createElement)("span",{className:"activate theme-button",onClick:function(){return M()}},(0,d.__)("Activate","gutenverse")):(0,a.createElement)("span",{className:"install theme-button",onClick:function(){return U()}},(0,d.__)("Install","gutenverse"))}(n,t)};return"draft"!==R&&(0,a.createElement)("div",{key:i,className:En()("theme-data",{active:n})},(0,a.createElement)("div",{className:"theme-thumbnail"},"draft"===R&&(0,a.createElement)("div",{className:"draft-label"},(0,d.__)("DRAFT","gutenverse")),T&&(0,a.createElement)("div",{className:"pro-flag"},"PRO"),(0,a.createElement)("a",{href:N,target:"_blank",rel:"noreferrer"},(0,a.createElement)("img",{src:o.cover[0]})),n&&(0,a.createElement)("span",{className:"status"},(0,d.__)("Active Theme","gutenverse"))),(0,a.createElement)("div",{className:"theme-desc"},(0,a.createElement)("h3",{className:"theme-title"},(0,a.createElement)("a",{href:N,target:"_blank",rel:"noreferrer"},"".concat(o.title)),(null==j?void 0:j.length)>0&&(0,a.createElement)("div",{className:"section-requirement"},(0,a.createElement)("div",{className:"section-requirement-detail"},(0,a.createElement)("p",null,(0,d.sprintf)((0,d._n)("There is plugin need to be installed or updated for this section work correctly.","There are %s plugins need to be installed or updated for this section work correctly.",j.length,"gutenverse"),j.length)),(0,a.createElement)("a",{href:"#",onClick:function(e){G(),e.preventDefault()}},(0,d.__)("Manage Plugin Requirement →","gutenverse"))),(0,a.createElement)("div",{className:"section-requirement-icon",onClick:function(){return G()}},(0,a.createElement)(m.IconInfoYellowSVG,null)))),(0,a.createElement)("div",{className:"theme-buttons"},(B=(0,a.createElement)(v.ButtonUpgradePro,{setRequirementStatus:D,link:"".concat(xt.upgradeProUrl,"?utm_source=gutenverse&utm_medium=dashboard&utm_client_site=").concat(xt.clientUrl,"&utm_client_theme=").concat(xt.activeTheme),licenseActiveButton:V(),isBanner:!0,location:"themeList",customStyles:{marginRight:"10px"}}),T?B:V()),(0,a.createElement)("a",{href:N,target:"_blank",rel:"noreferrer",className:"demo theme-button"},(0,d.__)("View Demo","gutenverse")))))},xn=function(e){var t=e.plugins,n=e.data,r=e.setPluginInstallMode,o=t.installedPlugin,i=n.requirements,s=n.compatibleVersion,l=c((0,u.useState)(0),2),p=l[0],f=l[1],g=function(){f((function(e){return e+1}))},h=En()("plugin-install-popup",{"show-counter":p>0});return(0,a.createElement)("div",{className:h},(0,a.createElement)("div",{className:"plugin-install-overlay",onClick:function(){return r(!1)}}),(0,a.createElement)("div",{className:"plugin-install-container"},(0,a.createElement)("div",{className:"plugin-install-wrapper"},(0,a.createElement)("div",{className:"plugin-close-wrapper",onClick:function(){return r(!1)}},(0,a.createElement)("div",{className:"plugin-close"},(0,a.createElement)(m.IconCloseSVG,null))),(0,a.createElement)("div",{className:"plugin-install-inner"},(0,a.createElement)("h2",null,(0,d.sprintf)((0,d.__)("%s - Plugin Requirement","gutenverse"),n.title)),(0,a.createElement)("p",null,(0,d.__)("Please install or update and activate these missing requirements plugin for this themes to work correctly. We recommend to backup your site before install/update plugin listed below.","gutenverse"))),(0,a.createElement)("div",{className:"plugin-requirement-notice"},(0,a.createElement)("div",{className:"plugin-requirement-icon"},(0,a.createElement)(m.IconInfoYellowSVG,null)),(0,a.createElement)("div",{className:"plugin-requirement-content"},(0,a.createElement)("strong",null,(0,d.__)("Attention!","gutenverse"))," ",(0,a.createElement)("span",null,(0,d.__)("Please refresh this page after install or update plugin","gutenverse")))),(0,a.createElement)(Sn,{plugin:{installed:!0,name:"Gutenverse",slug:"gutenverse",version:s},plugins:o,installPlugin:e.installPlugin,activatePlugin:e.activatePlugin,updatePlugin:e.updatePlugin,increaseCounter:g}),i.map((function(t){var n=t.slug;return(0,a.createElement)(Sn,{key:n,plugin:t,plugins:o,installPlugin:e.installPlugin,activatePlugin:e.activatePlugin,updatePlugin:e.updatePlugin,increaseCounter:g})})))))},jn=function(e){var t=e.plugins,n=e.installed,r=e.keyword,o=e.themeSlug,i=e.data,s=e.loading,l=e.setKeyword,c=e.getInstalledThemes,u=e.initialAction,p=e.installPlugin,f=e.setInitialAction,g=e.setCurrentItem,v=e.setPluginInstallMode;if(s)return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}),(0,a.createElement)("div",{className:"theme-data fetching"}));var E=i.data;return h()(E)?(0,a.createElement)("div",{className:"not-found"},(0,a.createElement)(m.IconNotFoundSVG,null),(0,a.createElement)("h2",{className:"not-found-title"},(0,d.__)("No result found!","gutenverse")),(0,a.createElement)("span",{className:"not-found-desc"},(0,d.__)("It seems we can’t find any results based on your search.","gutenverse")),""!==r&&(0,a.createElement)("span",{className:"not-found-button",onClick:function(){return l("")}},(0,a.createElement)("i",{className:"fa fa-refresh","aria-hidden":"true"}),(0,d.__)("Show All Themes","gutenverse"))):E.map((function(e,i){return(0,a.createElement)(An,{key:e.id,theme:e,id:i,installed:n,getInstalledThemes:c,initialAction:u,setInitialAction:f,keyword:r,themeSlug:o,plugins:t,setCurrentItem:g,setPluginInstallMode:v,installPlugin:p,activatePlugin:p,updatePlugin:p})}))},Dn=function(e,t){var n=location,r=n.pathname,o=n.search,a=new URLSearchParams(o);""===t?a.delete(e):a.set(e,t),window.history.replaceState({},"","".concat(r,"?").concat(a))};const Fn=(0,Cn.compose)((0,yn.withSelect)((function(e){var t=e("gutenverse/library"),n=t.getLibraryData,r=t.getPluginData;return{library:n(),plugins:r()}})),(0,yn.withDispatch)((function(e){var t=e("gutenverse/library");return{installPlugin:t.installPlugin,activatePlugin:t.activatePlugin,updatePlugin:t.updatePlugin}})))((function(e){var t=e.library,n=void 0===t?null:t,r=e.plugins,o=e.installPlugin,i=e.activatePlugin,s=e.updatePlugin,l=c((0,u.useState)(""),2),p=l[0],m=l[1],f=c((0,u.useState)(""),2),g=f[0],h=f[1],E=c((0,u.useState)(null),2),b=E[0],y=E[1],w=c((0,u.useState)(!0),2),_=w[0],O=w[1],S=c((0,u.useState)(null),2),N=S[0],P=S[1],C=c((0,u.useState)(""),2),T=C[0],R=C[1],k=c((0,u.useState)(null),2),L=k[0],I=k[1],A=c((0,u.useState)(!1),2),x=A[0],j=A[1];(0,u.useEffect)((function(){var e=document.body;x?e.classList.add("noscroll"):e.classList.remove("noscroll")}),[x]),(0,u.useEffect)((function(){var e,t=(e=location.search.replace("?",""),hn.parse(e)),n=t.keyword,r=t.slug,o=t.action;o&&R(o),n&&m(n),r&&h(r),D()}),[]);var D=function(e){At()({path:"wp/v2/themes",method:"GET"}).then((function(t){y(t),e&&e()}))};(0,u.useEffect)((function(){var e=n.themeData;if(e&&null!==b){var t=function(e,t){var n=t.paging,r=function(e,t){var n=t.keyword,r=t.license;return e=e.filter((function(e){var t=e.data,o=t.name,a=t.pro;return t.status,!(n&&!o.toLowerCase().includes(n.toLowerCase())||r&&("0"===a?"free":"pro")!==r)})),e}(e,t).map((function(e){var t=e.id,n=e.name,r=e.data,o=e.author,a=e.customAPI,i=e.customArgs;return{id:t,pro:"1"===r.pro,slug:r.slug,title:n,cover:r.cover,host:r.host,demo:r.demo,compatibleVersion:r.compatible_version,requirements:r.requirements,customAPI:a,customArgs:i,author:o,status:r.status}}));return function(e,t,n){return n?{current:t,data:e.slice(0,n*t),total:Math.ceil(e.length/n)}:{current:1,data:e,total:1}}(r,n,void 0)}(e,{keyword:p});P(t),O(!1)}}),[n,b,p]),(0,u.useEffect)((function(){Dn("action",T)}),[T]),(0,u.useEffect)((function(){Dn("keyword",p)}),[p]);var F={installed:b,keyword:p,themeSlug:g,data:N,loading:_,setKeyword:m,getInstalledThemes:D,initialAction:T,installPlugin:o,setInitialAction:R,plugins:r,setCurrentItem:I,setPluginInstallMode:j};return(0,a.createElement)(a.Fragment,null,x&&(0,a.createElement)(xn,{plugins:r,setPluginInstallMode:j,name:L.title,data:L,installPlugin:o,activatePlugin:i,updatePlugin:s}),(0,a.createElement)(Dt,null,(0,a.createElement)(Ft,null,(0,a.createElement)("h2",null,(0,d.__)("Discover themes for Gutenverse","gutenverse")),(0,a.createElement)("div",{className:"search-box"},(0,a.createElement)("input",{type:"text",className:"control-input-text",placeholder:(0,d.__)("Search Theme...","gutenverse"),value:p,onChange:function(e){return m(e.target.value)}}),(0,a.createElement)("i",{className:""===p?"fa fa-search":"fa fa-times","aria-hidden":"true",onClick:function(){return m("")}}))),(0,a.createElement)(Mt,null,(0,a.createElement)(v.BannerPro,{title:(0,a.createElement)(a.Fragment,null,(0,d.__)("Explore ","gutenverse"),(0,a.createElement)("span",null,(0,d.__)(" Premium Themes ","gutenverse")),(0,a.createElement)("br",null),(0,d.__)(" For Your Multipurpose Business","gutenverse")),customStyles:{margin:"0 0 40px"},container:"themeList",leftBannerImg:"theme-list-graphic-theme-left.png",rightBannerImg:"theme-list-graphic-theme-right.png",backgroundGradient:"banner-dasboard-bg.png",link:"".concat(xt.upgradeProUrl,"?utm_source=gutenverse&utm_medium=dashboard&utm_client_site=").concat(xt.clientUrl,"&utm_client_theme=").concat(xt.activeTheme)}),(0,a.createElement)("div",{className:"themelist-wrapper"},(0,a.createElement)(jn,Rn({},F))))))})),Mn=gutenverseCore.backend,Un=function(e){var t=e.saving,n=e.saveData,r=e.settingValues,i=e.updateValues,s=e.updateSettingValues,l=c((0,u.useState)(!1),2),p=l[0],m=l[1],g=window.GutenverseDashboard.imgDir,h=r.active_blocks,v=void 0===h?{}:h,E=window.GutenverseSettings.blockCategories,b=(0,u.useRef)(),y=(0,yn.select)("gutenverse/blocklist").getList();y.map((function(e){(null==e?void 0:e.name)in v||null!=e&&e.parent||(v[e.name]=!0)}));var w=function(e,t){s("active_blocks",e,t)},_=function(e){Object.keys(v).map((function(t){v[t]=e})),i("active_blocks",v)},O=function(e){var t=!0;return Object.keys(v).map((function(n){v[n]!==e&&(t=!1)})),t},S=function(e,t){var n=!0,r=y.filter((function(t){return(null==e?void 0:e.slug)===(null==t?void 0:t.category)})).map((function(e){return e.name||""})),a=Object.keys(v).filter((function(e){return r.includes(e)})).reduce((function(e,t){return Object.assign(e,o({},t,v[t]))}),{});return Object.keys(a).map((function(e){a[e]!==t&&(n=!1)})),n};return(0,a.createElement)(Dt,null,(0,a.createElement)(jt,{active:p,setActive:m,description:(0,a.createElement)(a.Fragment,null,(0,d.__)("Upgrade ","gutenverse"),(0,a.createElement)("span",null,(0,d.__)(" Gutenverse PRO ","gutenverse")),(0,d.__)(" version to ","gutenverse"),(0,a.createElement)("br",null),(0,d.__)(" unlock these premium blocks","gutenverse"))}),(0,a.createElement)(Ft,null,(0,a.createElement)("div",{className:"header-control"},(0,a.createElement)("h2",null,(0,d.__)("All Blocks","gutenverse")),(0,a.createElement)("div",{className:"block-enable-disable-all"},(0,a.createElement)("div",{className:"disable-all ".concat(O(!1)?"active":""),onClick:function(){return _(!1)}},(0,d.__)("Disable All","gutenverse")),(0,a.createElement)("div",{className:"enable-all ".concat(O(!0)?"active":""),onClick:function(){return _(!0)}},(0,d.__)("Enable All","gutenverse")))),t?(0,a.createElement)("div",{className:"gutenverse-button"},(0,d.__)("Saving...","gutenverse")):(0,a.createElement)("div",{className:"gutenverse-button",onClick:function(){return n(["active_blocks"])}},(0,d.__)("Save Changes","gutenverse"))),(0,a.createElement)(Mt,null,(0,a.createElement)("div",{className:"wrapper"},(0,a.createElement)("div",{className:"block-notice"},(0,a.createElement)("div",{className:"icon"},(0,a.createElement)("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,a.createElement)("path",{d:"M6 0C2.68652 0 0 2.68749 0 6C0 9.31444 2.68652 12 6 12C9.31348 12 12 9.31444 12 6C12 2.68749 9.31348 0 6 0ZM6 2.66129C6.56119 2.66129 7.01613 3.11623 7.01613 3.67742C7.01613 4.23861 6.56119 4.69355 6 4.69355C5.43881 4.69355 4.98387 4.23861 4.98387 3.67742C4.98387 3.11623 5.43881 2.66129 6 2.66129ZM7.35484 8.80645C7.35484 8.96678 7.22485 9.09677 7.06452 9.09677H4.93548C4.77515 9.09677 4.64516 8.96678 4.64516 8.80645V8.22581C4.64516 8.06548 4.77515 7.93548 4.93548 7.93548H5.22581V6.3871H4.93548C4.77515 6.3871 4.64516 6.2571 4.64516 6.09677V5.51613C4.64516 5.3558 4.77515 5.22581 4.93548 5.22581H6.48387C6.6442 5.22581 6.77419 5.3558 6.77419 5.51613V7.93548H7.06452C7.22485 7.93548 7.35484 8.06548 7.35484 8.22581V8.80645Z",fill:"#FFC908"}))),(0,a.createElement)("div",{className:"info"},(0,a.createElement)("div",null,(0,d.__)("Element Disable","gutenverse")),(0,a.createElement)("span",null),(0,a.createElement)("div",null,(0,a.createElement)("span",null,(0,d.__)("This","gutenverse"),(0,a.createElement)("img",{src:"".concat(g,"/block-tooltip.webp")})),(0,d.__)(" will appear on your element that you have used in the WordPress editor if you disable an element.","gutenverse")))),E.map((function(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"block-category"},(0,a.createElement)("div",{className:"block-category-info"},(0,a.createElement)("p",null,e.title),(0,a.createElement)("div",{className:"button-able"},(0,a.createElement)("a",{className:S(e,!1)?"active":"",onClick:function(){return function(e){y.map((function(t){t.category===e&&(v[t.name]=!1)})),i("active_blocks",v)}(e.slug)}},(0,d.__)("Disable All","gutenverse")),(0,a.createElement)("a",{className:S(e,!0)?"active":"",onClick:function(){return function(e){y.map((function(t){t.category===e&&(v[t.name]=!0)})),i("active_blocks",v)}(e.slug)}},(0,d.__)("Enable All","gutenverse")))),(0,a.createElement)("div",{className:"block-items"},y.filter((function(t){return(null==e?void 0:e.slug)===(null==t?void 0:t.category)})).sort((function(e,t){return(null!=e&&e.pro?0:100)-(null!=t&&t.pro?0:100)+e.title.localeCompare(t.title)})).map((function(e){if(null!=e&&e.parent)return null;if(null!=e&&e.pro){var t=(0,f.applyFilters)("gutenverse.block-list-pro",(function(){return(0,a.createElement)("div",{key:e.name,className:"block-item locked",onClick:function(){return m(!0)}},(0,a.createElement)("p",{className:"pro-label"},"PRO"),(0,a.createElement)("div",{className:"block-info"},(0,a.createElement)("span",{className:"block-icon"},null==e?void 0:e.icon),(0,a.createElement)("p",{className:"block-title"},null==e?void 0:e.title)),(0,a.createElement)("div",{className:"block-control",ref:b},(0,a.createElement)(Mn.ControlCheckboxPro,null)))}),{block:e,active_blocks:v,controlRef:b,ControlCheckbox:Mn.ControlCheckbox,updateValue:w});return(0,a.createElement)(t,{key:e.name})}return(0,a.createElement)("div",{key:e.name,className:"block-item ".concat(v[e.name]?" active":"")},(0,a.createElement)("div",{className:"block-info"},(0,a.createElement)("span",{className:"block-icon"},null==e?void 0:e.icon),(0,a.createElement)("p",{className:"block-title"},null==e?void 0:e.title)),(0,a.createElement)("div",{className:"block-control",ref:b},(0,a.createElement)(Mn.ControlCheckbox,{id:e.name,value:v[e.name],updateValue:w})))})))))})))))};function Bn(e,t){if(null==e)return{};var n,r,o=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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Gn=function(e){var t=e.settingValues,n=e.updateSettingValues,r=e.saving,o=e.saveData,i=t.editor_settings,s=void 0===i?{}:i,l=s.tablet_breakpoint,c=void 0===l?1024:l,u=s.mobile_breakpoint,p=void 0===u?767:u,m=s.autoblock_recovery,f=void 0===m||m,g=s.missing_block_warn,h=void 0===g||g,v=s.editor_lazy_load,E=void 0===v||v,b=s.editor_lazy_load_block_height,y=void 0===b?150:b,w=s.editor_lazy_load_block_threshold,_=void 0===w?0:w,O=s.editor_lazy_load_extend_viewport,S=void 0===O?250:O,N=function(e,t){n("editor_settings",e,t)};return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"form-tab-body"},(0,a.createElement)("h2",null,(0,d.__)("Responsive Breakpoints","gutenverse")),(0,a.createElement)(Mn.ControlNumber,{id:"tablet_breakpoint",title:(0,d.__)("Tablet Breakpoint (px)","gutenverse"),min:780,max:1024,step:1,value:c,updateValue:N}),(0,a.createElement)(Mn.ControlNumber,{id:"mobile_breakpoint",title:(0,d.__)("Mobile Breakpoint (px)","gutenverse"),min:0,max:779,step:1,value:p,updateValue:N})),(0,a.createElement)("div",{className:"template-tab-body",style:{paddingTop:"30px"}},(0,a.createElement)("h2",null,(0,d.__)("Editor Helper","gutenverse")),(0,a.createElement)(Mn.ControlCheckbox,{id:"autoblock_recovery",title:(0,d.__)("Enable Autoblock Recovery","gutenverse"),description:(0,d.__)("Recover block automatically.","gutenverse"),value:f,updateValue:N}),(0,a.createElement)(Mn.ControlCheckbox,{id:"missing_block_warn",title:(0,d.__)("Enable Missing Block Warning","gutenverse"),description:(0,d.__)("Enable warning popup when Gutenverse block is unsupported or disabled.","gutenverse"),value:h,updateValue:N})),(0,a.createElement)("div",{className:"template-tab-body",style:{paddingTop:"30px"}},(0,a.createElement)("h2",null,(0,d.__)("Editor Lazy Loading","gutenverse")),(0,a.createElement)(Mn.ControlCheckbox,{id:"editor_lazy_load",title:(0,d.__)("Enable Editor Lazy Loading","gutenverse"),description:(0,d.__)("Enable lazy loading in the editor to improve load times by only loading content as needed, especially when dealing with large amounts of content.","gutenverse"),value:E,updateValue:N}),E&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Mn.ControlNumber,{id:"editor_lazy_load_extend_viewport",title:(0,d.__)("Extend Lazy Loader Viewport (%)","gutenverse"),description:(0,d.__)("Define the viewport extension distance to trigger detection when the block enters the visible area.","gutenverse"),min:0,max:1e3,step:1,value:S,updateValue:N}),(0,a.createElement)(Mn.ControlNumber,{id:"editor_lazy_load_block_threshold",title:(0,d.__)("Block Placeholder Threshold (%)","gutenverse"),description:(0,d.__)("Set the threshold for the percentage of the block that must be visible before it is rendered.","gutenverse"),min:0,max:100,step:1,value:_,updateValue:N}),(0,a.createElement)(Mn.ControlNumber,{id:"editor_lazy_load_block_height",title:(0,d.__)("Block Placeholder Height (px)","gutenverse"),description:(0,d.__)("Adjust the height of the block placeholder for lazy loading to optimize loading performance.","gutenverse"),min:0,max:500,step:1,value:y,updateValue:N}))),(0,a.createElement)("div",{className:"actions"},r?(0,a.createElement)("div",{className:"gutenverse-button"},(0,d.__)("Saving...","gutenverse")):(0,a.createElement)("div",{className:"gutenverse-button",onClick:function(){return o(["editor_settings"])}},(0,d.__)("Save Changes","gutenverse"))))},Vn=function(e){var t=e.settingValues,n=e.updateSettingValues,r=e.saving,o=e.saveData,i=t.template_page,s=void 0===i?{}:i,l=function(e,t){n("template_page",e,t)};return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"template-tab-body"},(0,a.createElement)(Mn.ControlCheckbox,{id:"use_setting_homepage",title:(0,d.__)("Use Reading Homepage Setting","gutenverse"),description:(0,d.__)("Enable this option to use WordPress Reading Homepage Setting instead of themes front-page template..","gutenverse"),value:s.use_setting_homepage,updateValue:l})),(0,a.createElement)("div",{className:"template-tab-body"},(0,a.createElement)(Mn.ControlCheckbox,{id:"inherit_layout",title:(0,d.__)("Inherit Layout","gutenverse"),description:(0,d.__)("Section's width inside post content will inherit your theme layout content size.","gutenverse"),value:s.inherit_layout,updateValue:l})),(0,a.createElement)("div",{className:"actions"},r?(0,a.createElement)("div",{className:"gutenverse-button"},(0,d.__)("Saving...","gutenverse")):(0,a.createElement)("div",{className:"gutenverse-button",onClick:function(){return o(["template_page"])}},(0,d.__)("Save Changes","gutenverse"))))},Hn=function(){var e=window.GutenverseDashboard.fontIconExists,t=c((0,u.useState)(!1),2),n=t[0],r=t[1],o=c((0,u.useState)(e),2),i=o[0],s=o[1],l=(0,yn.useDispatch)(bn.store),p=l.createInfoNotice,f=l.createErrorNotice;return(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"font-tab-body"},(0,a.createElement)("div",{className:"setting-box"},(0,a.createElement)("div",{className:"icon"},(0,a.createElement)("div",{className:"icon-wrapper"},(0,a.createElement)(m.IconFontSVG,null))),(0,a.createElement)("div",{className:"info"},(0,a.createElement)("h4",null,(0,d.__)("Download Complete Font Icon","gutenverse")),(0,a.createElement)("p",null,(0,d.__)("Default font icon that come with plugin already serve more than 98% of active browser, but you can download complete font icon to serve all active browser.","gutenverse"))),(0,a.createElement)("div",{className:"action"},i?(0,a.createElement)("div",{className:"icon check"},(0,a.createElement)(m.IconCheckSVG,null)):(0,a.createElement)("div",{className:"icon download ".concat(n?"downloading":""),onClick:function(){r(!0),At()({path:"gutenverse-client/v1/settings/font-icon",method:"POST",data:{}}).then((function(e){r(!1),s(e),p((0,d.__)("Icon was Downloaded","gutenverse"),{type:"snackbar",isDismissible:!0})})).catch((function(){r(!1),f((0,d.__)("Download Error","gutenverse"),{type:"snackbar",isDismissible:!0})}))}},(0,a.createElement)(m.IconDownload2SVG,null))))))},zn=gutenverseCore.controls,qn=function(e){var t=e.settingValues,n=e.updateSettingValues,r=e.saving,o=e.saveData,i=t.frontend_settings,s=void 0===i?{}:i,l=window.GutenverseSettings.renderSchedule,c=s.render_mechanism,u=void 0===c?"file":c,p=s.old_render_deletion_schedule,m=void 0===p?"daily":p,f=function(e,t){n("frontend_settings",e,t)};return(0,a.createElement)("div",{className:"frontend-setting-dashboard"},(0,a.createElement)("div",{className:"form-tab-body"},(0,a.createElement)("h2",null,(0,d.__)("Frontend Style Render Settings","gutenverse")),(0,a.createElement)(zn.AlertControl,null,(0,a.createElement)("span",null,(0,d.__)("Please Refresh the Page After Saving Your Settings","gutenverse"))),(0,a.createElement)(Mn.ControlSelect,{id:"render_mechanism",title:(0,d.__)("Render Mechanism","gutenverse"),description:(0,d.__)("Pick Render Mechanism the System should implement when rendering frontend style","gutenverse"),value:u,updateValue:f,options:[{label:(0,d.__)("File","gutenverse"),value:"file"},{label:(0,d.__)("Inline","gutenverse"),value:"direct"}]}),"file"===u&&(0,a.createElement)(Mn.ControlSelect,{id:"old_render_deletion_schedule",title:(0,d.__)("Old File Deletion Schedule","gutenverse"),description:(0,d.__)("Set how long should the system store old css file for frontend style. This process need wp cron to be working. Next Schedule : ".concat(l),"gutenverse"),value:m,updateValue:f,options:[{label:(0,d.__)("Every 5 Minutes","gutenverse"),value:"every_five_minutes"},{label:(0,d.__)("Daily","gutenverse"),value:"daily"},{label:(0,d.__)("Every 2 days","gutenverse"),value:"every_two_days"},{label:(0,d.__)("Weekly","gutenverse"),value:"weekly"},{label:(0,d.__)("Monthly","gutenverse"),value:"monthly"},{label:(0,d.__)("Yearly","gutenverse"),value:"yearly"}]})),(0,a.createElement)("div",{className:"actions"},r?(0,a.createElement)("div",{className:"gutenverse-button"},(0,d.__)("Saving...","gutenverse")):(0,a.createElement)("div",{className:"gutenverse-button",onClick:function(){return o(["frontend_settings"])}},(0,d.__)("Save Changes","gutenverse"))))};var Wn=["settings"];function $n(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 Xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$n(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$n(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zn=function(e){var t=e.settings,n=Bn(e,Wn),r="";switch(t){case"editor":r=(0,a.createElement)(Gn,Xn({},n));break;case"frontend":r=(0,a.createElement)(qn,Xn({},n));break;case"template":r=(0,a.createElement)(Vn,Xn({},n));break;case"font-icon":r=(0,a.createElement)(Hn,Xn({},n));break;case"form":r=(0,f.applyFilters)("gutenverse.dashboard.settings.body",r,t,n);break;case"custom-font":r=(0,f.applyFilters)("gutenverse.setting-pro-content",r,t,n)}return(0,a.createElement)("div",{className:"settings-tab-body"},r)};const Kn=function(e){var t=c((0,u.useState)(!1),2),n=t[0],r=t[1],i=e.location,s=i.pathname,l=i.search,m=new URLSearchParams(l),g=m.get("page"),h=m.get("path"),v=m.get("settings")?m.get("settings"):"editor",E=(0,f.applyFilters)("gutenverse.dashboard.settings.navigation",o(o({editor:{title:(0,d.__)("Editor","gutenverse"),pro:!1},frontend:{title:(0,d.__)("Frontend","gutenverse"),pro:!1},template:{title:(0,d.__)("Template","gutenverse"),pro:!1}},"font-icon",{title:(0,d.__)("Font Icon","gutenverse"),pro:!1}),"custom-font",{title:(0,d.__)("Custom Font","gutenverse"),pro:!0}));return e=Xn(Xn({},e),{},{settings:v}),(0,a.createElement)(Dt,null,(0,a.createElement)(jt,{active:n,setActive:r,description:(0,a.createElement)(a.Fragment,null,(0,d.__)("Upgrade ","gutenverse"),(0,a.createElement)("span",null,(0,d.__)(" Gutenverse PRO ","gutenverse")),(0,d.__)(" version to ","gutenverse"),(0,a.createElement)("br",null),(0,d.__)(" unlock these premium features","gutenverse"))}),(0,a.createElement)(Ft,null,(0,a.createElement)("h2",null,(0,d.__)("General Settings","gutenverse"))),(0,a.createElement)(Mt,null,(0,a.createElement)("div",{className:"setting-tabs"},(0,a.createElement)("div",{className:"settings-tab-header"},(0,a.createElement)("div",{className:"tab-items"},Object.keys(E).map((function(e){var t=E[e].title,n="?page=".concat(g,"&path=").concat(h,"&settings=").concat(e),o=En()("tab-item",{active:e===v,locked:E[e].pro});return(0,a.createElement)(p.Link,{index:e,key:n,to:{pathname:s,search:n},className:o,location:i,pro:E[e].pro,setActive:function(){return r(!0)}},t)})))),(0,a.createElement)(Zn,Xn({},e)))))};var Yn="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),Jn=new Uint8Array(16);function Qn(){if(!Yn)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yn(Jn)}for(var er=[],tr=0;tr<256;++tr)er[tr]=(tr+256).toString(16).substr(1);const nr=function(e,t,n){var r=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||Qn)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var a=0;a<16;++a)t[r+a]=o[a];return t||function(e,t){var n=t||0,r=er;return[r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],"-",r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]],r[e[n++]]].join("")}(o)};function rr(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 or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rr(Object(n),!0).forEach((function(t){ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(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 ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sr.apply(this,arguments)}function lr(e){return lr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},lr(e)}function cr(e,t){return cr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cr(e,t)}function ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=lr(e);if(t){var o=lr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof 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)}(this,n)}}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dr="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},mr=function(e){return e&&e.Math==Math&&e},fr=mr("object"==typeof globalThis&&globalThis)||mr("object"==typeof window&&window)||mr("object"==typeof self&&self)||mr("object"==typeof dr&&dr)||function(){return this}()||Function("return this")(),gr={},hr=function(e){try{return!!e()}catch(e){return!0}},vr=!hr((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Er=!hr((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),br=Er,yr=Function.prototype.call,wr=br?yr.bind(yr):function(){return yr.apply(yr,arguments)},_r={},Or={}.propertyIsEnumerable,Sr=Object.getOwnPropertyDescriptor,Nr=Sr&&!Or.call({1:2},1);_r.f=Nr?function(e){var t=Sr(this,e);return!!t&&t.enumerable}:Or;var Pr,Cr,Tr=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rr=Er,kr=Function.prototype,Lr=kr.call,Ir=Rr&&kr.bind.bind(Lr,Lr),Ar=function(e){return Rr?Ir(e):function(){return Lr.apply(e,arguments)}},xr=Ar,jr=xr({}.toString),Dr=xr("".slice),Fr=function(e){return Dr(jr(e),8,-1)},Mr=Fr,Ur=Ar,Br=function(e){if("Function"===Mr(e))return Ur(e)},Gr=hr,Vr=Fr,Hr=Object,zr=Br("".split),qr=Gr((function(){return!Hr("z").propertyIsEnumerable(0)}))?function(e){return"String"==Vr(e)?zr(e,""):Hr(e)}:Hr,Wr=function(e){return null==e},$r=Wr,Xr=TypeError,Zr=function(e){if($r(e))throw Xr("Can't call method on "+e);return e},Kr=qr,Yr=Zr,Jr=function(e){return Kr(Yr(e))},Qr="object"==typeof document&&document.all,eo={all:Qr,IS_HTMLDDA:void 0===Qr&&void 0!==Qr},to=eo.all,no=eo.IS_HTMLDDA?function(e){return"function"==typeof e||e===to}:function(e){return"function"==typeof e},ro=no,oo=eo.all,ao=eo.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:ro(e)||e===oo}:function(e){return"object"==typeof e?null!==e:ro(e)},io=fr,so=no,lo=function(e,t){return arguments.length<2?(n=io[e],so(n)?n:void 0):io[e]&&io[e][t];var n},co=Br({}.isPrototypeOf),uo=fr,po=lo("navigator","userAgent")||"",mo=uo.process,fo=uo.Deno,go=mo&&mo.versions||fo&&fo.version,ho=go&&go.v8;ho&&(Cr=(Pr=ho.split("."))[0]>0&&Pr[0]<4?1:+(Pr[0]+Pr[1])),!Cr&&po&&(!(Pr=po.match(/Edge\/(\d+)/))||Pr[1]>=74)&&(Pr=po.match(/Chrome\/(\d+)/))&&(Cr=+Pr[1]);var vo=Cr,Eo=hr,bo=!!Object.getOwnPropertySymbols&&!Eo((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vo&&vo<41})),yo=bo&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wo=lo,_o=no,Oo=co,So=Object,No=yo?function(e){return"symbol"==typeof e}:function(e){var t=wo("Symbol");return _o(t)&&Oo(t.prototype,So(e))},Po=String,Co=no,To=TypeError,Ro=function(e){if(Co(e))return e;throw To(function(e){try{return Po(e)}catch(e){return"Object"}}(e)+" is not a function")},ko=Ro,Lo=Wr,Io=wr,Ao=no,xo=ao,jo=TypeError,Do={exports:{}},Fo=fr,Mo=Object.defineProperty,Uo=function(e,t){try{Mo(Fo,e,{value:t,configurable:!0,writable:!0})}catch(n){Fo[e]=t}return t},Bo=Uo,Go="__core-js_shared__",Vo=fr[Go]||Bo(Go,{}),Ho=Vo;(Do.exports=function(e,t){return Ho[e]||(Ho[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var zo=Zr,qo=Object,Wo=function(e){return qo(zo(e))},$o=Wo,Xo=Br({}.hasOwnProperty),Zo=Object.hasOwn||function(e,t){return Xo($o(e),t)},Ko=Br,Yo=0,Jo=Math.random(),Qo=Ko(1..toString),ea=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Qo(++Yo+Jo,36)},ta=fr,na=Do.exports,ra=Zo,oa=ea,aa=bo,ia=yo,sa=na("wks"),la=ta.Symbol,ca=la&&la.for,ua=ia?la:la&&la.withoutSetter||oa,pa=function(e){if(!ra(sa,e)||!aa&&"string"!=typeof sa[e]){var t="Symbol."+e;aa&&ra(la,e)?sa[e]=la[e]:sa[e]=ia&&ca?ca(t):ua(t)}return sa[e]},da=wr,ma=ao,fa=No,ga=TypeError,ha=pa("toPrimitive"),va=function(e,t){if(!ma(e)||fa(e))return e;var n,r,o=(r=e[ha],Lo(r)?void 0:ko(r));if(o){if(void 0===t&&(t="default"),n=da(o,e,t),!ma(n)||fa(n))return n;throw ga("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&Ao(n=e.toString)&&!xo(r=Io(n,e)))return r;if(Ao(n=e.valueOf)&&!xo(r=Io(n,e)))return r;if("string"!==t&&Ao(n=e.toString)&&!xo(r=Io(n,e)))return r;throw jo("Can't convert object to primitive value")}(e,t)},Ea=No,ba=function(e){var t=va(e,"string");return Ea(t)?t:t+""},ya=ao,wa=fr.document,_a=ya(wa)&&ya(wa.createElement),Oa=function(e){return _a?wa.createElement(e):{}},Sa=Oa,Na=!vr&&!hr((function(){return 7!=Object.defineProperty(Sa("div"),"a",{get:function(){return 7}}).a})),Pa=vr,Ca=wr,Ta=_r,Ra=Tr,ka=Jr,La=ba,Ia=Zo,Aa=Na,xa=Object.getOwnPropertyDescriptor;gr.f=Pa?xa:function(e,t){if(e=ka(e),t=La(t),Aa)try{return xa(e,t)}catch(e){}if(Ia(e,t))return Ra(!Ca(Ta.f,e,t),e[t])};var ja={},Da=vr&&hr((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Fa=ao,Ma=String,Ua=TypeError,Ba=function(e){if(Fa(e))return e;throw Ua(Ma(e)+" is not an object")},Ga=vr,Va=Na,Ha=Da,za=Ba,qa=ba,Wa=TypeError,$a=Object.defineProperty,Xa=Object.getOwnPropertyDescriptor,Za="enumerable",Ka="configurable",Ya="writable";ja.f=Ga?Ha?function(e,t,n){if(za(e),t=qa(t),za(n),"function"==typeof e&&"prototype"===t&&"value"in n&&Ya in n&&!n[Ya]){var r=Xa(e,t);r&&r[Ya]&&(e[t]=n.value,n={configurable:Ka in n?n[Ka]:r[Ka],enumerable:Za in n?n[Za]:r[Za],writable:!1})}return $a(e,t,n)}:$a:function(e,t,n){if(za(e),t=qa(t),za(n),Va)try{return $a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw Wa("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var Ja=ja,Qa=Tr,ei=vr?function(e,t,n){return Ja.f(e,t,Qa(1,n))}:function(e,t,n){return e[t]=n,e},ti={exports:{}},ni=vr,ri=Zo,oi=Function.prototype,ai=ni&&Object.getOwnPropertyDescriptor,ii=ri(oi,"name"),si={EXISTS:ii,PROPER:ii&&"something"===function(){}.name,CONFIGURABLE:ii&&(!ni||ni&&ai(oi,"name").configurable)},li=no,ci=Vo,ui=Br(Function.toString);li(ci.inspectSource)||(ci.inspectSource=function(e){return ui(e)});var pi,di,mi,fi=ci.inspectSource,gi=no,hi=fr.WeakMap,vi=gi(hi)&&/native code/.test(String(hi)),Ei=Do.exports,bi=ea,yi=Ei("keys"),wi=function(e){return yi[e]||(yi[e]=bi(e))},_i={},Oi=vi,Si=fr,Ni=ao,Pi=ei,Ci=Zo,Ti=Vo,Ri=wi,ki=_i,Li="Object already initialized",Ii=Si.TypeError,Ai=Si.WeakMap;if(Oi||Ti.state){var xi=Ti.state||(Ti.state=new Ai);xi.get=xi.get,xi.has=xi.has,xi.set=xi.set,pi=function(e,t){if(xi.has(e))throw Ii(Li);return t.facade=e,xi.set(e,t),t},di=function(e){return xi.get(e)||{}},mi=function(e){return xi.has(e)}}else{var ji=Ri("state");ki[ji]=!0,pi=function(e,t){if(Ci(e,ji))throw Ii(Li);return t.facade=e,Pi(e,ji,t),t},di=function(e){return Ci(e,ji)?e[ji]:{}},mi=function(e){return Ci(e,ji)}}var Di={set:pi,get:di,has:mi,enforce:function(e){return mi(e)?di(e):pi(e,{})},getterFor:function(e){return function(t){var n;if(!Ni(t)||(n=di(t)).type!==e)throw Ii("Incompatible receiver, "+e+" required");return n}}},Fi=hr,Mi=no,Ui=Zo,Bi=vr,Gi=si.CONFIGURABLE,Vi=fi,Hi=Di.enforce,zi=Di.get,qi=Object.defineProperty,Wi=Bi&&!Fi((function(){return 8!==qi((function(){}),"length",{value:8}).length})),$i=String(String).split("String"),Xi=ti.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!Ui(e,"name")||Gi&&e.name!==t)&&(Bi?qi(e,"name",{value:t,configurable:!0}):e.name=t),Wi&&n&&Ui(n,"arity")&&e.length!==n.arity&&qi(e,"length",{value:n.arity});try{n&&Ui(n,"constructor")&&n.constructor?Bi&&qi(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=Hi(e);return Ui(r,"source")||(r.source=$i.join("string"==typeof t?t:"")),e};Function.prototype.toString=Xi((function(){return Mi(this)&&zi(this).source||Vi(this)}),"toString");var Zi=no,Ki=ja,Yi=ti.exports,Ji=Uo,Qi={},es=Math.ceil,ts=Math.floor,ns=Math.trunc||function(e){var t=+e;return(t>0?ts:es)(t)},rs=function(e){var t=+e;return t!=t||0===t?0:ns(t)},os=rs,as=Math.max,is=Math.min,ss=rs,ls=Math.min,cs=function(e){return(t=e.length)>0?ls(ss(t),9007199254740991):0;var t},us=Jr,ps=cs,ds=function(e){return function(t,n,r){var o,a=us(t),i=ps(a),s=function(e,t){var n=os(e);return n<0?as(n+t,0):is(n,t)}(r,i);if(e&&n!=n){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ms={includes:ds(!0),indexOf:ds(!1)},fs=Zo,gs=Jr,hs=ms.indexOf,vs=_i,Es=Br([].push),bs=function(e,t){var n,r=gs(e),o=0,a=[];for(n in r)!fs(vs,n)&&fs(r,n)&&Es(a,n);for(;t.length>o;)fs(r,n=t[o++])&&(~hs(a,n)||Es(a,n));return a},ys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ws=bs,_s=ys.concat("length","prototype");Qi.f=Object.getOwnPropertyNames||function(e){return ws(e,_s)};var Os={};Os.f=Object.getOwnPropertySymbols;var Ss=lo,Ns=Qi,Ps=Os,Cs=Ba,Ts=Br([].concat),Rs=Ss("Reflect","ownKeys")||function(e){var t=Ns.f(Cs(e)),n=Ps.f;return n?Ts(t,n(e)):t},ks=Zo,Ls=Rs,Is=gr,As=ja,xs=hr,js=no,Ds=/#|\.prototype\./,Fs=function(e,t){var n=Us[Ms(e)];return n==Gs||n!=Bs&&(js(t)?xs(t):!!t)},Ms=Fs.normalize=function(e){return String(e).replace(Ds,".").toLowerCase()},Us=Fs.data={},Bs=Fs.NATIVE="N",Gs=Fs.POLYFILL="P",Vs=Fs,Hs=fr,zs=gr.f,qs=ei,Ws=function(e,t,n,r){r||(r={});var o=r.enumerable,a=void 0!==r.name?r.name:t;if(Zi(n)&&Yi(n,a,r),r.global)o?e[t]=n:Ji(t,n);else{try{r.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=n:Ki.f(e,t,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},$s=Uo,Xs=function(e,t,n){for(var r=Ls(t),o=As.f,a=Is.f,i=0;i<r.length;i++){var s=r[i];ks(e,s)||n&&ks(n,s)||o(e,s,a(t,s))}},Zs=Vs,Ks=Ro,Ys=Er,Js=Br(Br.bind),Qs=Fr,el=Array.isArray||function(e){return"Array"==Qs(e)},tl={};tl[pa("toStringTag")]="z";var nl="[object z]"===String(tl),rl=no,ol=Fr,al=pa("toStringTag"),il=Object,sl="Arguments"==ol(function(){return arguments}()),ll=Br,cl=hr,ul=no,pl=nl?ol:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=il(e),al))?n:sl?ol(t):"Object"==(r=ol(t))&&rl(t.callee)?"Arguments":r},dl=fi,ml=function(){},fl=[],gl=lo("Reflect","construct"),hl=/^\s*(?:class|function)\b/,vl=ll(hl.exec),El=!hl.exec(ml),bl=function(e){if(!ul(e))return!1;try{return gl(ml,fl,e),!0}catch(e){return!1}},yl=function(e){if(!ul(e))return!1;switch(pl(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return El||!!vl(hl,dl(e))}catch(e){return!0}};yl.sham=!0;var wl=!gl||cl((function(){var e;return bl(bl.call)||!bl(Object)||!bl((function(){e=!0}))||e}))?yl:bl,_l=el,Ol=wl,Sl=ao,Nl=pa("species"),Pl=Array,Cl=qr,Tl=Wo,Rl=cs,kl=function(e,t){return new(function(e){var t;return _l(e)&&(t=e.constructor,(Ol(t)&&(t===Pl||_l(t.prototype))||Sl(t)&&null===(t=t[Nl]))&&(t=void 0)),void 0===t?Pl:t}(e))(0===t?0:t)},Ll=Br([].push),Il=function(e){var t=1==e,n=2==e,r=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(l,c,u,p){for(var d,m,f=Tl(l),g=Cl(f),h=function(e,t){return Ks(e),void 0===t?e:Ys?Js(e,t):function(){return e.apply(t,arguments)}}(c,u),v=Rl(g),E=0,b=p||kl,y=t?b(l,v):n||i?b(l,0):void 0;v>E;E++)if((s||E in g)&&(m=h(d=g[E],E,f),e))if(t)y[E]=m;else if(m)switch(e){case 3:return!0;case 5:return d;case 6:return E;case 2:Ll(y,d)}else switch(e){case 4:return!1;case 7:Ll(y,d)}return a?-1:r||o?o:y}},Al={forEach:Il(0),map:Il(1),filter:Il(2),some:Il(3),every:Il(4),find:Il(5),findIndex:Il(6),filterReject:Il(7)},xl={},jl=bs,Dl=ys,Fl=Object.keys||function(e){return jl(e,Dl)},Ml=vr,Ul=Da,Bl=ja,Gl=Ba,Vl=Jr,Hl=Fl;xl.f=Ml&&!Ul?Object.defineProperties:function(e,t){Gl(e);for(var n,r=Vl(t),o=Hl(t),a=o.length,i=0;a>i;)Bl.f(e,n=o[i++],r[n]);return e};var zl,ql=lo("document","documentElement"),Wl=Ba,$l=xl,Xl=ys,Zl=_i,Kl=ql,Yl=Oa,Jl="prototype",Ql="script",ec=wi("IE_PROTO"),tc=function(){},nc=function(e){return"<"+Ql+">"+e+"</"+Ql+">"},rc=function(e){e.write(nc("")),e.close();var t=e.parentWindow.Object;return e=null,t},oc=function(){try{zl=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;oc="undefined"!=typeof document?document.domain&&zl?rc(zl):(t=Yl("iframe"),n="java"+Ql+":",t.style.display="none",Kl.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(nc("document.F=Object")),e.close(),e.F):rc(zl);for(var r=Xl.length;r--;)delete oc[Jl][Xl[r]];return oc()};Zl[ec]=!0;var ac=pa,ic=Object.create||function(e,t){var n;return null!==e?(tc[Jl]=Wl(e),n=new tc,tc[Jl]=null,n[ec]=e):n=oc(),void 0===t?n:$l.f(n,t)},sc=ja.f,lc=ac("unscopables"),cc=Array.prototype;null==cc[lc]&&sc(cc,lc,{configurable:!0,value:ic(null)});var uc,pc=Al.find,dc="find",mc=!0;dc in[]&&Array(1)[dc]((function(){mc=!1})),function(e,t){var n,r,o,a,i,s=e.target,l=e.global,c=e.stat;if(n=l?Hs:c?Hs[s]||$s(s,{}):(Hs[s]||{}).prototype)for(r in t){if(a=t[r],o=e.dontCallGetSet?(i=zs(n,r))&&i.value:n[r],!Zs(l?r:s+(c?".":"#")+r,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Xs(a,o)}(e.sham||o&&o.sham)&&qs(a,"sham",!0),Ws(n,r,a,e)}}({target:"Array",proto:!0,forced:mc},{find:function(e){return pc(this,e,arguments.length>1?arguments[1]:void 0)}}),uc=dc,cc[lc][uc]=!0;var fc="__react_tooltip_hide_event",gc="__react_tooltip_rebuild_event",hc="__react_tooltip_show_event",vc=function(e,t){var n;"function"==typeof window.CustomEvent?n=new window.CustomEvent(e,{detail:t}):(n=document.createEvent("Event")).initEvent(e,!1,!0,t),window.dispatchEvent(n)},Ec=function(e,t){var n=this.state.show,r=this.props.id,o=this.isCapture(t.currentTarget),a=t.currentTarget.getAttribute("currentItem");o||t.stopPropagation(),n&&"true"===a?e||this.hideTooltip(t):(t.currentTarget.setAttribute("currentItem","true"),bc(t.currentTarget,this.getTargetArray(r)),this.showTooltip(t))},bc=function(e,t){for(var n=0;n<t.length;n++)e!==t[n]?t[n].setAttribute("currentItem","false"):t[n].setAttribute("currentItem","true")},yc={id:"9b69f92e-d3fe-498b-b1b4-c5e63a51b0cf",set:function(e,t,n){this.id in e?e[this.id][t]=n:Object.defineProperty(e,this.id,{configurable:!0,value:ir({},t,n)})},get:function(e,t){var n=e[this.id];if(void 0!==n)return n[t]}},wc=function(e,t,n){for(var r,o,a=t.respectEffect,i=void 0!==a&&a,s=t.customEvent,l=void 0!==s&&s,c=this.props.id,u=null,p=n.target;null===u&&null!==p;)o=p,u=p.getAttribute("data-tip")||null,r=p.getAttribute("data-for")||null,p=p.parentElement;if(p=o||n.target,!this.isCustomEvent(p)||l){var d=null==c&&null==r||r===c;if(null!=u&&(!i||"float"===this.getEffect(p))&&d){var m=function(e){var t={};for(var n in e)"function"==typeof e[n]?t[n]=e[n].bind(e):t[n]=e[n];return t}(n);m.currentTarget=p,e(m)}}},_c=function(e,t){var n={};return e.forEach((function(e){var r=e.getAttribute(t);r&&r.split(" ").forEach((function(e){return n[e]=!0}))})),n},Oc=function(){return document.getElementsByTagName("body")[0]};function Sc(e,t,n,r,o,a,i){var s,l=Nc(n),c=l.width,u=l.height,p=Nc(t),d=p.width,m=p.height,f=Pc(e,t,a),g=f.mouseX,h=f.mouseY,v=Cc(a,d,m,c,u),E=Tc(i),b=E.extraOffsetX,y=E.extraOffsetY,w=window.innerWidth,_=window.innerHeight,O=Rc(n),S=O.parentTop,N=O.parentLeft,P=function(e){var t=v[e].l;return g+t+b},C=function(e){var t=v[e].t;return h+t+y},T=function(e){return function(e){return P(e)<0}(e)||function(e){return function(e){var t=v[e].r;return g+t+b}(e)>w}(e)||function(e){return C(e)<0}(e)||function(e){return function(e){var t=v[e].b;return h+t+y}(e)>_}(e)},R=function(e){return!T(e)},k={top:R("top"),bottom:R("bottom"),left:R("left"),right:R("right")},L=function(){var e,t=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw a}}}}(o.split(",").concat(r,["top","bottom","left","right"]));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(k[n])return n}}catch(e){t.e(e)}finally{t.f()}return r}(),I=!1;return L&&L!==r&&(I=!0,s=L),I?{isNewState:!0,newState:{place:s}}:{isNewState:!1,position:{left:parseInt(P(r)-N,10),top:parseInt(C(r)-S,10)}}}var Nc=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},Pc=function(e,t,n){var r=t.getBoundingClientRect(),o=r.top,a=r.left,i=Nc(t),s=i.width,l=i.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:a+s/2,mouseY:o+l/2}},Cc=function(e,t,n,r,o){var a,i,s,l;return"float"===e?(a={l:-r/2,r:r/2,t:-(o+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:o+3+2+12},l={l:-(r+3+2),r:-3,t:-o/2,b:o/2},i={l:3,r:r+3+2,t:-o/2,b:o/2}):"solid"===e&&(a={l:-r/2,r:r/2,t:-(n/2+o+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+o+2},l={l:-(r+t/2+2),r:-t/2,t:-o/2,b:o/2},i={l:t/2,r:r+t/2+2,t:-o/2,b:o/2}),{top:a,bottom:s,left:l,right:i}},Tc=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},Rc=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function kc(e,t,n,r){if(t)return t;if(null!=n)return n;if(null===n)return null;var o=/<br\s*\/?>/;return r&&"false"!==r&&o.test(e)?e.split(o).map((function(e,t){return i().createElement("span",{key:t,className:"multi-line"},e)})):e}function Lc(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function Ic(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var Ac,xc,jc={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}},Dc={tooltip:3,arrow:0};var Fc,Mc=function(e){e.hide=function(e){vc(fc,{target:e})},e.rebuild=function(){vc(gc)},e.show=function(e){vc(hc,{target:e})},e.prototype.globalRebuild=function(){this.mount&&(this.unbindListener(),this.bindListener())},e.prototype.globalShow=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.showTooltip({currentTarget:t&&e.detail.target},!0)}},e.prototype.globalHide=function(e){if(this.mount){var t=!!(e&&e.detail&&e.detail.target);this.hideTooltip({currentTarget:t&&e.detail.target},t)}}}(Ac=function(e){e.prototype.bindWindowEvents=function(e){window.removeEventListener(fc,this.globalHide),window.addEventListener(fc,this.globalHide,!1),window.removeEventListener(gc,this.globalRebuild),window.addEventListener(gc,this.globalRebuild,!1),window.removeEventListener(hc,this.globalShow),window.addEventListener(hc,this.globalShow,!1),e&&(window.removeEventListener("resize",this.onWindowResize),window.addEventListener("resize",this.onWindowResize,!1))},e.prototype.unbindWindowEvents=function(){window.removeEventListener(fc,this.globalHide),window.removeEventListener(gc,this.globalRebuild),window.removeEventListener(hc,this.globalShow),window.removeEventListener("resize",this.onWindowResize)},e.prototype.onWindowResize=function(){this.mount&&this.hideTooltip()}}(Ac=function(e){e.prototype.isCustomEvent=function(e){return this.state.event||!!e.getAttribute("data-event")},e.prototype.customBindListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,a=e.getAttribute("data-event")||r,i=e.getAttribute("data-event-off")||o;a.split(" ").forEach((function(n){e.removeEventListener(n,yc.get(e,n));var r=Ec.bind(t,i);yc.set(e,n,r),e.addEventListener(n,r,!1)})),i&&i.split(" ").forEach((function(n){e.removeEventListener(n,t.hideTooltip),e.addEventListener(n,t.hideTooltip,!1)}))},e.prototype.customUnbindListener=function(e){var t=this.state,n=t.event,r=t.eventOff,o=n||e.getAttribute("data-event"),a=r||e.getAttribute("data-event-off");e.removeEventListener(o,yc.get(e,n)),a&&e.removeEventListener(a,this.hideTooltip)}}(Ac=function(e){e.prototype.isCapture=function(e){return e&&"true"===e.getAttribute("data-iscapture")||this.props.isCapture||!1}}(Ac=function(e){e.prototype.getEffect=function(e){return e.getAttribute("data-effect")||this.props.effect||"float"}}(Ac=function(e){e.prototype.isBodyMode=function(){return!!this.props.bodyMode},e.prototype.bindBodyListener=function(e){var t=this,n=this.state,r=n.event,o=n.eventOff,a=n.possibleCustomEvents,i=n.possibleCustomEventsOff,s=Oc(),l=_c(e,"data-event"),c=_c(e,"data-event-off");null!=r&&(l[r]=!0),null!=o&&(c[o]=!0),a.split(" ").forEach((function(e){return l[e]=!0})),i.split(" ").forEach((function(e){return c[e]=!0})),this.unbindBodyListener(s);var u=this.bodyModeListeners={};for(var p in null==r&&(u.mouseover=wc.bind(this,this.showTooltip,{}),u.mousemove=wc.bind(this,this.updateTooltip,{respectEffect:!0}),u.mouseout=wc.bind(this,this.hideTooltip,{})),l)u[p]=wc.bind(this,(function(e){var n=e.currentTarget.getAttribute("data-event-off")||o;Ec.call(t,n,e)}),{customEvent:!0});for(var d in c)u[d]=wc.bind(this,this.hideTooltip,{customEvent:!0});for(var m in u)s.addEventListener(m,u[m])},e.prototype.unbindBodyListener=function(e){e=e||Oc();var t=this.bodyModeListeners;for(var n in t)e.removeEventListener(n,t[n])}}((xc=function(e){!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&&cr(e,t)}(a,e);var t,n,r,o=ur(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={uuid:e.uuid||"t"+nr(),place:e.place||"top",desiredPlace:e.place||"top",type:e.type||"dark",effect:e.effect||"float",show:!1,border:!1,borderClass:"border",customColors:{},customRadius:{},offset:{},padding:e.padding,extraClass:"",html:!1,delayHide:0,delayShow:0,event:e.event||null,eventOff:e.eventOff||null,currentEvent:null,currentTarget:null,ariaProps:Lc(e),isEmptyTip:!1,disable:!1,possibleCustomEvents:e.possibleCustomEvents||"",possibleCustomEventsOff:e.possibleCustomEventsOff||"",originTooltip:null,isMultiline:!1},t.bind(["showTooltip","updateTooltip","hideTooltip","hideTooltipOnScroll","getTooltipContent","globalRebuild","globalShow","globalHide","onWindowResize","mouseOnToolTip"]),t.mount=!0,t.delayShowLoop=null,t.delayHideLoop=null,t.delayReshow=null,t.intervalUpdateContent=null,t}return t=a,n=[{key:"bind",value:function(e){var t=this;e.forEach((function(e){t[e]=t[e].bind(t)}))}},{key:"componentDidMount",value:function(){var e=this.props;e.insecure;var t=e.resizeHide,n=e.disableInternalStyle;this.mount=!0,this.bindListener(),this.bindWindowEvents(t),n||this.injectStyles()}},{key:"componentWillUnmount",value:function(){this.mount=!1,this.clearTimer(),this.unbindListener(),this.removeScrollListener(this.state.currentTarget),this.unbindWindowEvents()}},{key:"injectStyles",value:function(){var e=this.tooltipRef;if(e){for(var t,n=e.parentNode;n.parentNode;)n=n.parentNode;switch(n.constructor.name){case"Document":case"HTMLDocument":case void 0:t=n.head;break;default:t=n}if(!t.querySelector("style[data-react-tooltip]")){var r=document.createElement("style");r.textContent='.__react_component_tooltip {\n border-radius: 3px;\n display: inline-block;\n font-size: 13px;\n left: -999em;\n opacity: 0;\n position: fixed;\n pointer-events: none;\n transition: opacity 0.3s ease-out;\n top: -999em;\n visibility: hidden;\n z-index: 999;\n}\n.__react_component_tooltip.allow_hover, .__react_component_tooltip.allow_click {\n pointer-events: auto;\n}\n.__react_component_tooltip::before, .__react_component_tooltip::after {\n content: "";\n width: 0;\n height: 0;\n position: absolute;\n}\n.__react_component_tooltip.show {\n opacity: 0.9;\n margin-top: 0;\n margin-left: 0;\n visibility: visible;\n}\n.__react_component_tooltip.place-top::before {\n bottom: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-bottom::before {\n top: 0;\n left: 50%;\n margin-left: -11px;\n}\n.__react_component_tooltip.place-left::before {\n right: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip.place-right::before {\n left: 0;\n top: 50%;\n margin-top: -9px;\n}\n.__react_component_tooltip .multi-line {\n display: block;\n padding: 2px 0;\n text-align: center;\n}',r.setAttribute("data-react-tooltip","true"),t.appendChild(r)}}}},{key:"mouseOnToolTip",value:function(){return!(!this.state.show||!this.tooltipRef)&&(this.tooltipRef.matches||(this.tooltipRef.msMatchesSelector?this.tooltipRef.matches=this.tooltipRef.msMatchesSelector:this.tooltipRef.matches=this.tooltipRef.mozMatchesSelector),this.tooltipRef.matches(":hover"))}},{key:"getTargetArray",value:function(e){var t,n=[];if(e){var r=e.replace(/\\/g,"\\\\").replace(/"/g,'\\"');t='[data-tip][data-for="'.concat(r,'"]')}else t="[data-tip]:not([data-for])";return Ic(document.getElementsByTagName("*")).filter((function(e){return e.shadowRoot})).forEach((function(e){n=n.concat(Ic(e.shadowRoot.querySelectorAll(t)))})),n.concat(Ic(document.querySelectorAll(t)))}},{key:"bindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff,o=t.isCapture,a=this.getTargetArray(n);a.forEach((function(t){null===t.getAttribute("currentItem")&&t.setAttribute("currentItem","false"),e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),this.isBodyMode()?this.bindBodyListener(a):a.forEach((function(t){var n=e.isCapture(t),r=e.getEffect(t);e.isCustomEvent(t)?e.customBindListener(t):(t.addEventListener("mouseenter",e.showTooltip,n),t.addEventListener("focus",e.showTooltip,n),"float"===r&&t.addEventListener("mousemove",e.updateTooltip,n),t.addEventListener("mouseleave",e.hideTooltip,n),t.addEventListener("blur",e.hideTooltip,n))})),r&&(window.removeEventListener(r,this.hideTooltip),window.addEventListener(r,this.hideTooltip,o)),this.bindRemovalTracker()}},{key:"unbindListener",value:function(){var e=this,t=this.props,n=t.id,r=t.globalEventOff;this.isBodyMode()?this.unbindBodyListener():this.getTargetArray(n).forEach((function(t){e.unbindBasicListener(t),e.isCustomEvent(t)&&e.customUnbindListener(t)})),r&&window.removeEventListener(r,this.hideTooltip),this.unbindRemovalTracker()}},{key:"unbindBasicListener",value:function(e){var t=this.isCapture(e);e.removeEventListener("mouseenter",this.showTooltip,t),e.removeEventListener("mousemove",this.updateTooltip,t),e.removeEventListener("mouseleave",this.hideTooltip,t)}},{key:"getTooltipContent",value:function(){var e,t=this.props,n=t.getContent,r=t.children;return n&&(e=Array.isArray(n)?n[0]&&n[0](this.state.originTooltip):n(this.state.originTooltip)),kc(this.state.originTooltip,r,e,this.state.isMultiline)}},{key:"isEmptyTip",value:function(e){return"string"==typeof e&&""===e||null===e}},{key:"showTooltip",value:function(e,t){if(this.tooltipRef){if(t&&!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget})))return;var n=this.props,r=n.multiline,o=n.getContent,a=e.currentTarget.getAttribute("data-tip"),i=e.currentTarget.getAttribute("data-multiline")||r||!1,s=e instanceof window.FocusEvent||t,l=!0;e.currentTarget.getAttribute("data-scroll-hide")?l="true"===e.currentTarget.getAttribute("data-scroll-hide"):null!=this.props.scrollHide&&(l=this.props.scrollHide),e&&e.currentTarget&&e.currentTarget.setAttribute&&e.currentTarget.setAttribute("aria-describedby",this.props.id||this.state.uuid);var c=e.currentTarget.getAttribute("data-place")||this.props.place||"top",u=s?"solid":this.getEffect(e.currentTarget),p=e.currentTarget.getAttribute("data-offset")||this.props.offset||{},d=Sc(e,e.currentTarget,this.tooltipRef,c.split(",")[0],c,u,p);d.position&&this.props.overridePosition&&(d.position=this.props.overridePosition(d.position,e,e.currentTarget,this.tooltipRef,c,c,u,p));var m=d.isNewState?d.newState.place:c.split(",")[0];this.clearTimer();var f=e.currentTarget,g=this.state.show?f.getAttribute("data-delay-update")||this.props.delayUpdate:0,h=this,v=function(){h.setState({originTooltip:a,isMultiline:i,desiredPlace:c,place:m,type:f.getAttribute("data-type")||h.props.type||"dark",customColors:{text:f.getAttribute("data-text-color")||h.props.textColor||null,background:f.getAttribute("data-background-color")||h.props.backgroundColor||null,border:f.getAttribute("data-border-color")||h.props.borderColor||null,arrow:f.getAttribute("data-arrow-color")||h.props.arrowColor||null},customRadius:{tooltip:f.getAttribute("data-tooltip-radius")||h.props.tooltipRadius||"3",arrow:f.getAttribute("data-arrow-radius")||h.props.arrowRadius||"0"},effect:u,offset:p,padding:f.getAttribute("data-padding")||h.props.padding,html:(f.getAttribute("data-html")?"true"===f.getAttribute("data-html"):h.props.html)||!1,delayShow:f.getAttribute("data-delay-show")||h.props.delayShow||0,delayHide:f.getAttribute("data-delay-hide")||h.props.delayHide||0,delayUpdate:f.getAttribute("data-delay-update")||h.props.delayUpdate||0,border:(f.getAttribute("data-border")?"true"===f.getAttribute("data-border"):h.props.border)||!1,borderClass:f.getAttribute("data-border-class")||h.props.borderClass||"border",extraClass:f.getAttribute("data-class")||h.props.class||h.props.className||"",disable:(f.getAttribute("data-tip-disable")?"true"===f.getAttribute("data-tip-disable"):h.props.disable)||!1,currentTarget:f},(function(){l&&h.addScrollListener(h.state.currentTarget),h.updateTooltip(e),o&&Array.isArray(o)&&(h.intervalUpdateContent=setInterval((function(){if(h.mount){var e=h.props.getContent,t=kc(a,"",e[0](),i),n=h.isEmptyTip(t);h.setState({isEmptyTip:n}),h.updatePosition()}}),o[1]))}))};g?this.delayReshow=setTimeout(v,g):v()}}},{key:"updateTooltip",value:function(e){var t=this,n=this.state,r=n.delayShow,o=n.disable,a=this.props,i=a.afterShow,s=a.disable,l=this.getTooltipContent(),c=e.currentTarget||e.target;if(!this.mouseOnToolTip()&&!(this.isEmptyTip(l)||o||s)){var u=this.state.show?0:parseInt(r,10),p=function(){if(Array.isArray(l)&&l.length>0||l){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:c,show:!0},(function(){t.updatePosition((function(){n&&i&&i(e)}))}))}};this.delayShowLoop&&clearTimeout(this.delayShowLoop),u?this.delayShowLoop=setTimeout(p,u):(this.delayShowLoop=null,p())}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},o=this.state.disable,a=r.isScroll?0:this.state.delayHide,i=this.props,s=i.afterHide,l=i.disable,c=this.getTooltipContent();if(this.mount&&!(this.isEmptyTip(c)||o||l)){if(t&&(!this.getTargetArray(this.props.id).some((function(t){return t===e.currentTarget}))||!this.state.show))return;e&&e.currentTarget&&e.currentTarget.removeAttribute&&e.currentTarget.removeAttribute("aria-describedby");var u=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(n.state.currentTarget),t&&s&&s(e)})))};this.clearTimer(),a?this.delayHideLoop=setTimeout(u,parseInt(a,10)):u()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(e){var t=this.isCapture(e);window.removeEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"updatePosition",value:function(e){var t=this,n=this.state,r=n.currentEvent,o=n.currentTarget,a=n.place,i=n.desiredPlace,s=n.effect,l=n.offset,c=this.tooltipRef,u=Sc(r,o,c,a,i,s,l);if(u.position&&this.props.overridePosition&&(u.position=this.props.overridePosition(u.position,r,o,c,a,i,s,l)),u.isNewState)return this.setState(u.newState,(function(){t.updatePosition(e)}));e&&"function"==typeof e&&e(),c.style.left=u.position.left+"px",c.style.top=u.position.top+"px"}},{key:"clearTimer",value:function(){this.delayShowLoop&&(clearTimeout(this.delayShowLoop),this.delayShowLoop=null),this.delayHideLoop&&(clearTimeout(this.delayHideLoop),this.delayHideLoop=null),this.delayReshow&&(clearTimeout(this.delayReshow),this.delayReshow=null),this.intervalUpdateContent&&(clearInterval(this.intervalUpdateContent),this.intervalUpdateContent=null)}},{key:"hasCustomColors",value:function(){var e=this;return Boolean(Object.keys(this.state.customColors).find((function(t){return"border"!==t&&e.state.customColors[t]}))||this.state.border&&this.state.customColors.border)}},{key:"render",value:function(){var e=this,t=this.state,n=t.extraClass,r=t.html,o=t.ariaProps,s=t.disable,l=t.uuid,c=this.getTooltipContent(),u=this.isEmptyTip(c),p=this.props.disableInternalStyle?"":function(e,t,n,r,o,a){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"8px 21px",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Dc,o=t.text,a=t.background,i=t.border,s=t.arrow,l=r.arrow,c=r.tooltip;return"\n \t.".concat(e," {\n\t color: ").concat(o,";\n\t background: ").concat(a,";\n\t border: 1px solid ").concat(i,";\n\t border-radius: ").concat(c,"px;\n\t padding: ").concat(n,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,'.place-top::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: 2;\n width: 20px;\n height: 12px;\n }\n .').concat(e,'.place-top::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(l,"px;\n border: 1px solid ").concat(i,";\n background-color: ").concat(s,";\n z-index: -2;\n bottom: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(135deg);\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,'.place-bottom::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 18px;\n height: 10px;\n }\n .').concat(e,'.place-bottom::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(l,"px;\n border: 1px solid ").concat(i,";\n background-color: ").concat(s,";\n z-index: -2;\n top: -6px;\n left: 50%;\n margin-left: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,'.place-left::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(e,'.place-left::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(l,"px;\n border: 1px solid ").concat(i,";\n background-color: ").concat(s,";\n z-index: -2;\n right: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(45deg);\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,'.place-right::before {\n content: "";\n background-color: inherit;\n position: absolute;\n z-index: -1;\n width: 10px;\n height: 18px;\n }\n .').concat(e,'.place-right::after {\n content: "";\n position: absolute;\n width: 10px;\n height: 10px;\n border-top-right-radius: ').concat(l,"px;\n border: 1px solid ").concat(i,";\n background-color: ").concat(s,";\n z-index: -2;\n left: -6px;\n top: 50%;\n margin-top: -6px;\n transform: rotate(-135deg);\n }\n ")}(e,function(e,t,n){var r=e.text,o=e.background,a=e.border,i=e.arrow?e.arrow:e.background,s=function(e){return jc[e]?or({},jc[e]):void 0}(t);return r&&(s.text=r),o&&(s.background=o),n&&(s.border=a||("light"===t?"black":"white")),i&&(s.arrow=i),s}(t,n,r),o,a)}(this.state.uuid,this.state.customColors,this.state.type,this.state.border,this.state.padding,this.state.customRadius),d="__react_component_tooltip"+" ".concat(this.state.uuid)+(!this.state.show||s||u?"":" show")+(this.state.border?" "+this.state.borderClass:"")+" place-".concat(this.state.place)+" type-".concat(this.hasCustomColors()?"custom":this.state.type)+(this.props.delayUpdate?" allow_hover":"")+(this.props.clickable?" allow_click":""),m=this.props.wrapper;a.supportedWrappers.indexOf(m)<0&&(m=a.defaultProps.wrapper);var f=[d,n].filter(Boolean).join(" ");if(r){var g="".concat(c).concat(p?'\n<style aria-hidden="true">'.concat(p,"</style>"):"");return i().createElement(m,sr({className:"".concat(f),id:this.props.id||l,ref:function(t){return e.tooltipRef=t}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:g}}))}return i().createElement(m,sr({className:"".concat(f),id:this.props.id||l},o,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),p&&i().createElement("style",{dangerouslySetInnerHTML:{__html:p},"aria-hidden":"true"}),c)}}],r=[{key:"propTypes",get:function(){return{uuid:Vt().string,children:Vt().any,place:Vt().string,type:Vt().string,effect:Vt().string,offset:Vt().object,padding:Vt().string,multiline:Vt().bool,border:Vt().bool,borderClass:Vt().string,textColor:Vt().string,backgroundColor:Vt().string,borderColor:Vt().string,arrowColor:Vt().string,arrowRadius:Vt().string,tooltipRadius:Vt().string,insecure:Vt().bool,class:Vt().string,className:Vt().string,id:Vt().string,html:Vt().bool,delayHide:Vt().number,delayUpdate:Vt().number,delayShow:Vt().number,event:Vt().string,eventOff:Vt().string,isCapture:Vt().bool,globalEventOff:Vt().string,getContent:Vt().any,afterShow:Vt().func,afterHide:Vt().func,overridePosition:Vt().func,disable:Vt().bool,scrollHide:Vt().bool,resizeHide:Vt().bool,wrapper:Vt().string,bodyMode:Vt().bool,possibleCustomEvents:Vt().string,possibleCustomEventsOff:Vt().string,clickable:Vt().bool,disableInternalStyle:Vt().bool}}},{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=Lc(e);return Object.keys(r).some((function(e){return r[e]!==n[e]}))?or(or({},t),{},{ariaProps:r}):null}}],n&&ar(t.prototype,n),r&&ar(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(i().Component),ir(xc,"defaultProps",{insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1}),ir(xc,"supportedWrappers",["div","span"]),ir(xc,"displayName","ReactTooltip"),(Fc=Ac=xc).prototype.bindRemovalTracker=function(){var e=this,t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;if(null!=t){var n=new t((function(t){for(var n=0;n<t.length;n++)for(var r=t[n],o=0;o<r.removedNodes.length;o++)if(r.removedNodes[o]===e.state.currentTarget)return void e.hideTooltip()}));n.observe(window.document,{childList:!0,subtree:!0}),this.removalTracker=n}},Ac=void(Fc.prototype.unbindRemovalTracker=function(){this.removalTracker&&(this.removalTracker.disconnect(),this.removalTracker=null)})||Ac))||Ac)||Ac)||Ac)||Ac)||Ac)||Ac,Uc=function(e){var t=e.header,n=e.children;return(0,a.createElement)("div",{className:"system-body"},(0,a.createElement)("table",{className:"widefat"},(0,a.createElement)("thead",null,(0,a.createElement)("tr",null,(0,a.createElement)("th",{colSpan:3},t))),(0,a.createElement)("tbody",null,n)))},Bc=function(e){var t=e.id,n=e.title,r=e.description,o=e.value;return(0,a.createElement)("tr",null,(0,a.createElement)("td",{className:"status-title"},n),(0,a.createElement)("td",{className:"status-flag help"},(0,a.createElement)("div",{className:"tooltip-wrapper","data-for":t,"data-tip":r},(0,a.createElement)(m.IconInfoGraySVG,null)),(0,a.createElement)(Mc,{id:t,place:"right",effect:"solid",className:"system-status-tooltip"})),(0,a.createElement)("td",{className:"status-value"},(0,a.createElement)("div",{className:"status-wrapper"},o)))},Gc=function(e){var t=e.plugin,n=t.additional_text,r=t.link,o=t.link_text,i=t.title;return(0,a.createElement)("tr",null,(0,a.createElement)("td",{className:"status-title"},i),(0,a.createElement)("td",{className:"status-flag help"}),(0,a.createElement)("td",{className:"status-value"},(0,a.createElement)("div",{className:"status-wrapper"},(0,d.__)("by ","gutenverse"),(0,a.createElement)("a",{href:r,target:"_blank",rel:"noreferrer"},o)," - ",n)))},Vc=function(e){var t=e.id,n=e.title,r=e.flag,o=e.children,i="";switch(r){case"yellow":i=(0,d.__)("This setting may not affect your website entirely, but it will cause some of the features not working as expected.","gutenverse");break;case"green":i=(0,d.__)("Everything is Good","gutenverse");break;case"red":i=(0,d.__)("You will need to fix this setting to make plugin work as expected.","gutenverse")}return(0,a.createElement)("tr",null,(0,a.createElement)("td",{className:"status-title"},n),(0,a.createElement)("td",{className:"status-flag help"},(0,a.createElement)("div",{className:"tooltip-wrapper","data-for":t,"data-tip":i},(0,a.createElement)("div",{className:En()("status-flag-circle",r)})),(0,a.createElement)(Mc,{id:t,place:"right",effect:"solid",className:"system-status-tooltip"})),(0,a.createElement)("td",{className:"status-value"},(0,a.createElement)("div",{className:"status-wrapper"},o)))},Hc=function(e){var t=e.system,n=t.theme_name,r=t.theme_version,o=t.is_child_theme,i=t.parent_theme,s=t.parent_version;return(0,a.createElement)(Uc,{header:(0,d.__)("Theme Information","gutenverse")},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Bc,{id:"theme_name",title:(0,d.__)("Theme Name","gutenverse"),description:(0,d.__)("Themes currently installed & activated","gutenverse"),value:n}),(0,a.createElement)(Bc,{id:"theme_version",title:(0,d.__)("Theme Version","gutenverse"),description:(0,d.__)("Current theme version","gutenverse"),value:r}),o&&(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Bc,{id:"parent_theme",title:(0,d.__)("Parent Theme","gutenverse"),description:(0,d.__)("Current theme parent","gutenverse"),value:i}),(0,a.createElement)(Bc,{id:"parent_theme_version",title:(0,d.__)("Parent Theme Version","gutenverse"),description:(0,d.__)("Current parent theme version","gutenverse"),value:s}))))},zc=function(e){var t=e.length,n=e.substring(t-1,t),r=e.substring(0,t-1);switch(n){case"P":case"T":case"G":case"M":case"K":r*=1024}return r},qc=function(e){var t=e.system,n=t.home_url,r=t.site_url,o=t.login_url,i=t.wp_version,s=t.is_multisite,l=t.wp_debug,c=t.memory_limit,u=t.wp_memory_limit,p=t.wp_language,f=t.writeable_upload,g=t.count_category,h=t.count_tag,v=262144;return(0,a.createElement)(Uc,{header:(0,d.__)("WordPress Environtment","gutenverse")},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Bc,{id:"home_url",title:(0,d.__)("Home URL","gutenverse"),description:(0,d.__)("The URL of your site's homepage","gutenverse"),value:n}),(0,a.createElement)(Bc,{id:"site_url",title:(0,d.__)("Site URL","gutenverse"),description:(0,d.__)("The root URL of your site","gutenverse"),value:r}),(0,a.createElement)(Bc,{id:"login_url",title:(0,d.__)("Login URL","gutenverse"),description:(0,d.__)("Your website login url","gutenverse"),value:o}),(0,a.createElement)(Bc,{id:"wp_version",title:(0,d.__)("WP Version","gutenverse"),description:(0,d.__)("The version of WordPress installed on your site","gutenverse"),value:i}),(0,a.createElement)(Bc,{id:"wp_multisite",title:(0,d.__)("WP Multisite","gutenverse"),description:(0,d.__)("Whether or not you have WordPress Multisite enabled","gutenverse"),value:s?(0,a.createElement)(m.IconCheckCircleSVG,null):(0,a.createElement)(m.IconTimesSVG,null)}),(0,a.createElement)(Vc,{id:"wp_debug_mode",title:(0,d.__)("WP Debug Mode","gutenverse"),flag:l?"yellow":"green"},l?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("strong",null,(0,d.__)("Enabled","gutenverse"))," ",(0,a.createElement)("span",null,(0,d.__)("Only enable WP DEBUG if you are on development server, once on production server, you will need to disable WP Debug","gutenverse"))):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("strong",null,(0,d.__)("Disabled","gutenverse"))," ",(0,a.createElement)("span",null,(0,d.__)("Only enable WP DEBUG if you are on development server, once on production server, you will need to disable WP Debug","gutenverse")))),(0,a.createElement)(Vc,{id:"php_memory_limit",title:(0,d.__)("PHP Memory Limit","gutenverse"),flag:zc(c)>=v?"green":"yellow"},zc(c)>=v?(0,a.createElement)("mark",{className:"yes"},c):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("mark",{className:"error"},c," ",(0,d.__)(" - We recommend setting memory to at least 256MB.","gutenverse"))," ",(0,a.createElement)("a",{href:"http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP",target:"_blank",rel:"noreferrer"},(0,d.__)("See: Increasing memory allocated to PHP","gutenverse")))),(0,a.createElement)(Vc,{id:"wp_memory_limit",title:(0,d.__)("WP Memory Limit","gutenverse"),flag:zc(u)>=v?"green":"yellow"},zc(u)>=v?(0,a.createElement)("mark",{className:"yes"},u):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("mark",{className:"error"},u," ",(0,d.__)(" - We recommend setting memory to at least 256MB.","gutenverse"))," ",(0,a.createElement)("a",{href:"http://support.jegtheme.com/documentation/system-status/#memory-limit",target:"_blank",rel:"noreferrer"},(0,d.__)("See: Increasing the WordPress Memory Limit","gutenverse")))),(0,a.createElement)(Bc,{id:"wp_language",title:(0,d.__)("WP Language","gutenverse"),description:(0,d.__)("Default Language of your WordPress Installation","gutenverse"),value:p}),(0,a.createElement)(Vc,{id:"writeable_upload",title:(0,d.__)("Writeable Upload Directory","gutenverse"),flag:f?"green":"red"},f?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)(a.Fragment,null,(0,a.createElement)("mark",{className:"error"},(0,a.createElement)(m.IconTimesSVG,null)," ",(0,d.__)("Please make sure your upload directory writeable. Some feature may not work as expected.","gutenverse")))),(0,a.createElement)(Bc,{id:"number_category",title:(0,d.__)("Number of Category","gutenverse"),description:(0,d.__)("The current number of post category on your site","gutenverse"),value:g}),(0,a.createElement)(Bc,{id:"number_tag",title:(0,d.__)("Number of Tag","gutenverse"),description:(0,d.__)("The current number of post tag on your site","gutenverse"),value:h})))},Wc=function(e){var t=e.system,n=t.server_info,r=t.php_version,o=t.post_max_size,i=t.max_execution_time,s=t.max_input_vars,l=t.suhosin,c=t.wp_remote_get,u=t.imagick,p=t.gd,f=t.gd_webp,g=t.fileinfo,h=t.curl,v=_n().minSatisfying([r],">=7.4.30"),E=3e3,b=2e3;return(0,a.createElement)(Uc,{header:(0,d.__)("Server Environtment","gutenverse")},(0,a.createElement)(a.Fragment,null,(0,a.createElement)(Bc,{id:"server_info",title:(0,d.__)("Server Info","gutenverse"),description:(0,d.__)("Information about the web server that is currently hosting your site","gutenverse"),value:n}),(0,a.createElement)(Vc,{id:"php_version",title:(0,d.__)("PHP Version","gutenverse"),flag:null===v?"yellow":"green"},null!==v?r:(0,a.createElement)("mark",{className:"error"},r," ",(0,a.createElement)("span",null,(0,d.__)("We recommend a minimum PHP version of 7.4","gutenverse")))),(0,a.createElement)(Bc,{id:"post_max_size",title:(0,d.__)("PHP Post Max Size","gutenverse"),description:(0,d.__)("The largest filesize that can be contained in one post","gutenverse"),value:o}),(0,a.createElement)(Vc,{id:"php_time_limit",title:(0,d.__)("PHP Time Limit","gutenverse"),flag:i>=E?"green":"yellow"},i>=E?i:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("mark",{className:"error"},i," ",(0,a.createElement)("span",null,(0,d.__)("max_execution_time should be bigger than ","gutenverse")+E+(0,d.__)(", otherwise import process may not finished as expected","gutenverse"))))),(0,a.createElement)(Vc,{id:"php_max_input",title:(0,d.__)("PHP Max Input Vars","gutenverse"),flag:s>=b?"green":"yellow"},s>=b?s:(0,a.createElement)(a.Fragment,null,(0,a.createElement)("mark",{className:"error"},s," ",(0,a.createElement)("span",null,(0,d.__)("max_input_vars should be bigger than ","gutenverse")+b+(0,d.__)(", otherwise you may not able to save setting on option panel","gutenverse"))))),(0,a.createElement)(Bc,{id:"suhosin",title:(0,d.__)("SUHOSIN Installed","gutenverse"),description:(0,d.__)("Suhosin is an advanced protection system for PHP installations. It was designed to protect your servers on the one hand against a number of well known problems in PHP applications and on the other hand against potential unknown vulnerabilities within these applications or the PHP core itself. If enabled on your server, Suhosin may need to be configured to increase its data submission limits.","gutenverse"),value:l?(0,a.createElement)(m.IconCheckCircleSVG,null):(0,a.createElement)(m.IconTimesSVG,null)}),(0,a.createElement)(Vc,{id:"wp_remote_get",title:(0,d.__)("WP Remote Get","gutenverse"),flag:c?"green":"red"},c?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)("mark",{className:"error"},(0,a.createElement)("span",null,(0,d.__)("Please Enable WP Remote Get, some plugin feature may not work if remote get disabled.","gutenverse")))),(0,a.createElement)(Vc,{id:"php_image",title:(0,d.__)("PHP Image library installed","gutenverse"),flag:u?"green":"yellow"},u?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)("mark",{className:"error"},(0,a.createElement)("span",null,(0,d.__)("Please install PHP image Magic library","gutenverse")))),(0,a.createElement)(Vc,{id:"php_gd",title:(0,d.__)("PHP GD library installed","gutenverse"),flag:p?"green":"yellow"},p?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)("mark",{className:"error"},(0,a.createElement)("span",null,(0,d.__)("Please install PHP GD library","gutenverse")))),(0,a.createElement)(Vc,{id:"php_gd_webp",title:(0,d.__)("PHP GD WebP supported","gutenverse"),flag:f?"green":"yellow"},f?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)("mark",{className:"error"},(0,a.createElement)(m.IconTimesSVG,null))),(0,a.createElement)(Vc,{id:"php_fileinfo",title:(0,d.__)("PHP fileinfo library installed","gutenverse"),flag:g?"green":"yellow"},g?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)("mark",{className:"error"},(0,a.createElement)(m.IconTimesSVG,null))),(0,a.createElement)(Vc,{id:"curl",title:(0,d.__)("CURL Installed","gutenverse"),flag:h?"green":"yellow"},h?(0,a.createElement)("mark",{className:"yes"},(0,a.createElement)(m.IconCheckCircleSVG,null)):(0,a.createElement)("mark",{className:"error"},(0,a.createElement)(m.IconTimesSVG,null)))))},$c=function(e){var t=e.system.plugins;return(0,a.createElement)(Uc,{header:(0,d.__)("Installed Plugin","gutenverse")},t.map((function(e,t){return(0,a.createElement)(Gc,{key:t,plugin:e})})))},Xc=function(e){var t=e.theme_name,n=e.theme_version,r=e.is_child_theme,o=e.parent_theme,a=e.parent_version,i="### THEME INFO ###\n\n";i+="Theme Name : ".concat(t,"\n"),i+="Theme Version : ".concat(n,"\n"),r&&(i+="Parent Theme : ".concat(o,"\n"),i+="Parent Theme Version : ".concat(a,"\n"));var s=e.home_url,l=e.site_url,c=e.login_url,u=e.wp_version,p=e.is_multisite,m=e.wp_debug,f=e.memory_limit,g=e.wp_memory_limit,h=e.wp_language,v=e.writeable_upload,E=e.count_category,b=e.count_tag;i+="\n\n### WordPress Environment ###\n\n",i+="Home URL : ".concat(s,"\n"),i+="Site URL : ".concat(l,"\n"),i+="Login URL : ".concat(c,"\n"),i+="WP Version : ".concat(u,"\n"),i+="WP Multisite : ".concat(p?"✔":"-","\n"),i+="WP Debug Mode : ".concat(m?(0,d.__)("Enabled","gutenverse"):(0,d.__)("Disabled","gutenverse"),"\n"),i+="PHP Memory Limit : ".concat(f,"\n"),i+="WP Memory Limit : ".concat(g,"\n"),i+="WP Language : ".concat(h,"\n"),i+="WP Upload Directory : ".concat(v?"✔":"-","\n"),i+="Number of Category : ".concat(E,"\n"),i+="Number of Tag : ".concat(b,"\n");var y=e.server_info,w=e.php_version,_=e.post_max_size,O=e.max_execution_time,S=e.max_input_vars,N=e.suhosin,P=e.wp_remote_get,C=e.imagick,T=e.gd,R=e.gd_webp,k=e.fileinfo,L=e.curl;i+="\n\n### Server Environment ###\n\n",i+="Server Info : ".concat(y,"\n"),i+="PHP Version : ".concat(w,"\n"),i+="PHP Post Max Size : ".concat(_,"\n"),i+="PHP Time Limit : ".concat(O,"\n"),i+="PHP Max Input Vars : ".concat(S,"\n"),i+="SUHOSIN Installed : ".concat(N?"✔":"-","\n"),i+="WP Remote Get : ".concat(P?"✔":"-","\n"),i+="PHP Image library installed : ".concat(C?"✔":"-","\n"),i+="PHP GD library installed : ".concat(T?"✔":"-","\n"),i+="PHP GD WebP supported : ".concat(R?"✔":"-","\n"),i+="PHP fileinfo library installed : ".concat(k?"✔":"-","\n"),i+="CURL Installed : ".concat(L?"✔":"-","\n");var I=e.plugins;return i+="\n\n### Active Plugins ###\n\n",I.map((function(e){var t=e.title,n=e.link_text,r=e.additional_text;i+="".concat(t," : ").concat((0,d.__)("by","gutenverse")," ").concat(n," - ").concat(r,"\n")})),i};const Zc=function(){var e=(0,d.__)("Copy System Status","gutenverse"),t=window.GutenverseDashboard.system,n=c((0,u.useState)(e),2),r=n[0],o=n[1],i=function(){var n=y(_().mark((function n(){var r;return _().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Xc(t),n.next=3,navigator.clipboard.writeText(r);case 3:o((0,d.__)("Copied...","gutenverse")),setTimeout((function(){o(e)}),500);case 5:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();return(0,a.createElement)(Dt,null,(0,a.createElement)(Ft,null,(0,a.createElement)("h2",null,(0,d.__)("System Status","gutenverse")),(0,a.createElement)("div",{className:"gutenverse-button",onClick:function(){return i()}},r)),(0,a.createElement)(Mt,null,(0,a.createElement)(Hc,{system:t}),(0,a.createElement)(qc,{system:t}),(0,a.createElement)(Wc,{system:t}),(0,a.createElement)($c,{system:t})))},Kc=function(){return(0,a.createElement)(a.Fragment,null)},Yc=function(e){var t=e.location,n=window.GutenverseDashboard.pluginVersions,r=t.pathname,o=t.search,i=new URLSearchParams(o),s=i.get("page"),l=i.get("path"),m=c((0,u.useState)({name:"",versions:[]}),2),g=m[0],h=m[1],v=g.name,E=g.versions,b=i.get("plugin")||Object.keys(n).length&&Object.keys(n)[0],y=i.get("version")||b&&b in n&&n[b].currentNotice;(0,u.useEffect)((function(){if(b){var e=b&&b in n&&n[b].name||"",t=b&&b in n&&n[b].noticeVersions||[];h({name:e,versions:t})}}),[b]);var w=c((0,u.useState)(3),2),_=w[0],O=w[1],S=(0,f.applyFilters)("gutenverse.dashboard.notice.header",(0,a.createElement)("div",null,(0,a.createElement)("h3",{className:"upgrade-notice-title"},(0,d.sprintf)((0,d.__)("%s","gutenverse"),v)," ",(0,a.createElement)("span",null,(0,d.sprintf)((0,d.__)("Version %s","gutenverse"),y)))),b,y),N=(0,f.applyFilters)("gutenverse.dashboard.notice.content",(0,a.createElement)(a.Fragment,null),b,y),P=function(){return O(_+3)},C=E.findIndex((function(e){return e===y})),T=C<E.length-1?E[C+1]:y,R=C>0?E[C-1]:y;return C>=_&&P(),(0,a.createElement)(Dt,null,(0,a.createElement)("div",{id:"gutenverse-upgrade-notice",className:"".concat(v.toLowerCase()+"-"+y.split(".").join(""))},(0,a.createElement)("div",{className:"tabs"},Object.keys(n).length>1&&Object.keys(n).map((function(e){var t;return(0,a.createElement)(p.Link,{key:e,index:y,to:{pathname:r,search:"?page=".concat(s,"&plugin=").concat(e,"&path=").concat(l)}},(0,a.createElement)("div",{className:"tab ".concat(b===e?"active":""),key:e},null===(t=n[e])||void 0===t?void 0:t.name))}))),(0,a.createElement)("div",{className:"upgrade-notice-head"},S),(0,a.createElement)("div",{className:"upgrade-notice-body"},(0,a.createElement)("div",null,N)),(0,a.createElement)("div",{className:"upgrade-notice-footer"},(0,a.createElement)("div",null,(0,a.createElement)("div",{className:"upgrade-history"},(0,a.createElement)("h2",null,(0,d.__)("Version History","gutenverse")),(0,a.createElement)("ul",{className:_>=E.length?"loaded":""},E.slice(0,_).map((function(e){return(0,a.createElement)("li",{key:e},(0,a.createElement)(p.Link,{index:e,to:{pathname:r,search:"?page=".concat(s,"&plugin=").concat(b,"&path=").concat(l,"&version=").concat(e)}},(0,d.__)("Version %s","gutenverse").replace("%s",e)))})),_<E.length&&(0,a.createElement)("li",{className:"load-version"},(0,a.createElement)("a",{onClick:function(){return P()}},(0,a.createElement)("sup",null,". . .")))),(0,a.createElement)("div",{className:"buttons"},(0,a.createElement)(p.Link,{to:{pathname:r,search:"?page=".concat(s,"&plugin=").concat(b,"&path=").concat(l,"&version=").concat(T)}},(0,a.createElement)("button",{className:"prev ".concat(E[E.length-1]===y?"disable":"")},(0,d.__)("Prev","gutenverse"))),(0,a.createElement)(p.Link,{to:{pathname:r,search:"?page=".concat(s,"&plugin=").concat(b,"&path=").concat(l,"&version=").concat(R)}},(0,a.createElement)("button",{className:"next ".concat(E[0]===y?"disable":"")},(0,d.__)("Next","gutenverse")))))))))};var Jc=["plugin","plugins"],Qc=["pluginEcosystem","fetching"];function eu(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 tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nu=function(e){var t=e.plugin,n=e.plugins,r=Bn(e,Jc),o=t.slug,i=t.name,s=t.version,l=t.icons,p=t.description,f=t.incoming,g=t.icon,v=t.url,E=t.host,b=c((0,u.useState)(""),2),y=b[0],w=b[1],_=c((0,u.useState)(!1),2),O=_[0],S=_[1],N=c((0,u.useState)(!0),2),P=N[0],C=N[1],T=n[o],R=null,k=function(e){window.location.href=e},L=function(){S(!0),w((0,d.__)("Installing Plugin","gutenverse")),At()({path:"wp/v2/plugins",method:"POST",data:{slug:o,status:"active"}}).then((function(e){var t=e.version,n=e.name,a=e.plugin;r.installPlugin({slug:o,name:n,path:a,version:t}),S(!1)})).then((function(){})).catch((function(){alert("Error during installing plugin")})).finally((function(){S(!1),w("")}))},I=function(){S(!0),w((0,d.__)("Disabling Plugin","gutenverse")),T&&At()({path:"wp/v2/plugins/plugin?plugin=".concat(null==T?void 0:T.path),method:"POST",data:{status:"inactive"}}).then((function(){return w((0,d.__)("Deleting Plugin","gutenverse")),At()({path:"wp/v2/plugins/plugin?plugin=".concat(null==T?void 0:T.path),method:"DELETE"})})).then((function(){L()}))},A=function e(t){t?I():(S(!0),w((0,d.__)("Activating Plugin","gutenverse")),At()({path:"wp/v2/plugins/plugin?plugin=".concat(null==T?void 0:T.path),method:"POST",data:{status:"active"}}).then((function(e){var t=e.plugin.split("/");r.activatePlugin(t[0]),S(!1),w("")})).catch((function(){P&&(C(!1),e(!1))})))},x=En()("install-action",{loading:O}),j=O&&(0,a.createElement)("div",{className:"rotating",style:{display:"flex"}},(0,a.createElement)(qt,{size:20}));if(T){var D=!h()(s)&&!_n().gte(T.version,s||"0.0.0"),F=D?(0,d.__)("Update & Activate Plugin","gutenverse"):(0,d.__)("Activate Plugin","gutenverse");!1===T.active?R=(0,a.createElement)("div",{className:"".concat(x," update"),onClick:function(){A(D),C(!0)}},j,O?y:F):(D&&(R=(0,a.createElement)("div",{className:"".concat(x," update"),onClick:function(){return"server"===E?k(v):I()}},j,O?y:(0,d.__)("Update Plugin","gutenverse"))),R=(0,a.createElement)("div",{className:"".concat(x," installed")},j,O?y:(0,d.__)("Downloaded","gutenverse")))}else R=T||0!=f?(0,a.createElement)("div",{className:"".concat(x," installed")},j,O?y:(0,d.__)("Release Soon","gutenverse")):(0,a.createElement)("div",{className:x,onClick:function(){return"server"===E?k(v):L()}},j,O?y:(0,d.__)("Download Plugin","gutenverse"));return(0,a.createElement)("div",{key:o,className:"plugin-item"},"1"===f&&(0,a.createElement)("div",{className:"ribbon"},"SOON"),g?(0,a.createElement)("div",{className:"icon-wrapper"},(0,a.createElement)("img",{className:"icon-plugin",src:g[0]})," "):l?(0,a.createElement)("div",{className:"icon-wrapper"},(0,a.createElement)("img",{className:"icon-plugin",src:l})):(0,a.createElement)("div",{className:"icon-wrapper"},(0,a.createElement)(m.LogoIconGutenverseSVG,{className:"icon-plugin"})),(0,a.createElement)("div",{className:"details"},(0,a.createElement)("h2",{className:"plugin-title"},i.includes("Gutenverse")?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("span",null,(0,d.__)("Gutenverse","gutenverse"))," ",i.split("Gutenverse").join("")):i),s?(0,a.createElement)("p",{className:"plugin-version"},(0,d.__)("Version ","gutenverse"),s):(0,a.createElement)("p",{className:"plugin-version"},(0,d.__)("Coming Soon","gutenverse")),p&&(0,a.createElement)("p",{className:"plugin-description"},p.substring(0,80)+"...")),(0,a.createElement)("div",{className:"plugin-actions"},R))},ru=function(e){var t=e.pluginEcosystem,n=e.fetching,r=Bn(e,Qc);return n?(0,a.createElement)(a.Fragment,null,(0,a.createElement)("div",{className:"ecosystem-data fetching"}),(0,a.createElement)("div",{className:"ecosystem-data fetching"}),(0,a.createElement)("div",{className:"ecosystem-data fetching"}),(0,a.createElement)("div",{className:"ecosystem-data fetching"})):t&&t.map((function(e,t){return(0,a.createElement)(nu,tu({key:t,plugin:e},r))}))};const ou=(0,Cn.compose)((0,yn.withSelect)((function(e){var t=e("gutenverse/library"),n=t.getLibraryData,r=t.getPluginData;return{library:n(),plugins:r()}})),(0,yn.withDispatch)((function(e){var t=e("gutenverse/library");return{installPlugin:t.installPlugin,activatePlugin:t.activatePlugin,updatePlugin:t.updatePlugin}})))((function(e){var t=e.library,n=void 0===t?null:t,r=e.plugins,o=e.installPlugin,i=e.activatePlugin,s=e.updatePlugin,l=n.pluginEcosystem,p=c((0,u.useState)(!0),2),m=p[0],f=p[1];(0,u.useEffect)((function(){n.pluginEcosystem&&f(!1)}),[n]);var g={fetching:m,plugins:null==r?void 0:r.installedPlugin,pluginEcosystem:l,installPlugin:o,activatePlugin:i,updatePlugin:s};return(0,a.createElement)(Dt,null,(0,a.createElement)(Ft,null,(0,a.createElement)("h2",null,(0,d.__)("Gutenverse Ecosystem","gutenverse"))),(0,a.createElement)(Mt,null,(0,a.createElement)(v.BannerPro,{title:(0,a.createElement)(a.Fragment,null,(0,d.__)("Make Your ","gutenverse"),(0,a.createElement)("span",null,(0,d.__)(" Workflow More Efficient ","gutenverse")),(0,a.createElement)("br",null),(0,d.__)(" by Using Gutenverse PRO!","gutenverse")),customStyles:{margin:"0 0 40px"},container:"ecosystem",leftBannerImg:"ecosystem-graphic-ecosystem-left.png",rightBannerImg:"ecosystem-graphic-ecosystem-right.png",backgroundGradient:"banner-dasboard-bg.png",link:"".concat(xt.upgradeProUrl,"?utm_source=gutenverse&utm_medium=dashboard&utm_client_site=").concat(xt.clientUrl,"&utm_client_theme=").concat(xt.activeTheme)}),(0,a.createElement)("div",{className:"ecosystem-wrapper"},(0,a.createElement)(ru,tu({},g)))))}));function au(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 iu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?au(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):au(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const su=(0,Cn.compose)((0,yn.withDispatch)((function(e){var t=e("gutenverse/library");return{initialLibraryData:t.initialLibraryData,initialPluginData:t.initialPluginData}})))((function(e){var t,n,r=e.initialLibraryData,i=e.initialPluginData,s=e.location,l=(0,yn.useDispatch)(bn.store),p=l.createInfoNotice,m=l.createErrorNotice,g=new URLSearchParams(null==s?void 0:s.search),h=g.get("page"),v=g.get("path"),E=window.GutenverseDashboard.homeSlug,b=window.GutenverseSettings.settingsData,w=c((0,u.useState)(b),2),O=w[0],S=w[1],N=c((0,u.useState)(!1),2),P=N[0],C=N[1];(0,u.useEffect)((function(){var e=function(){var e=y(_().mark((function e(t){var n;return _().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,Pn.fetchLibraryData)(t);case 2:n=e.sent,r({layoutData:n["layout-data"],layoutCategories:n["layout-categories"],themeData:n["theme-data"],themeCategories:n["theme-categories"],sectionData:n["section-data"],sectionCategories:n["section-categories"],pluginEcosystem:n["plugin-ecosystem"]});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();e(!1);var t=window.GutenverseDashboard.plugins;i({installedPlugin:t})}),[]);var T=null,R={saving:P,saveData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];C(!0),At()({path:"gutenverse-client/v1/settings/modify",method:"POST",data:{setting:Object.keys(iu({},O)).filter((function(t){return e.includes(t)})).reduce((function(e,t){return e[t]=O[t],e}),{})}}).then((function(){C(!1),p((0,d.__)("Setting Saved","gutenverse"),{type:"snackbar",isDismissible:!0})})).catch((function(){C(!1),m((0,d.__)("Saving Data Error","gutenverse"),{type:"snackbar",isDismissible:!0})}))},settingValues:O,updateValues:function(e,t){S(iu(iu({},O),{},o({},e,t)))},updateSettingValues:function(e,t,n){S(iu(iu({},O),{},o({},e,iu(iu({},O[e]),{},o({},t,n)))))},location:s};if(E===h){switch(v){case"theme-list":T=(0,a.createElement)(Fn,iu({},R));break;case"block-list":T=(0,a.createElement)(Un,iu({},R));break;case"settings":T=(0,a.createElement)(Kn,iu({},R));break;case"update-notice":T=(0,a.createElement)(Yc,iu({},R));break;case"system":T=(0,a.createElement)(Zc,iu({},R));break;case"license":T=(0,a.createElement)(Kc,iu({},R));break;case"ecosystem":T=(0,a.createElement)(ou,iu({},R));break;case"upgrade-pro":v="dashboard",(null===(t=window)||void 0===t||null===(t=t.GutenverseDashboard)||void 0===t?void 0:t.upgradeProUrl)&&window.open(null===(n=window)||void 0===n||null===(n=n.GutenverseDashboard)||void 0===n?void 0:n.upgradeProUrl,"_blank"),T=(0,a.createElement)(Bt,iu({},R));break;default:v="dashboard",T=(0,a.createElement)(Bt,iu({},R))}T=(0,f.applyFilters)("gutenverse.dashboard.route.content",T,v)}return(0,a.createElement)("div",{className:"content-wrapper ".concat(v||"dashboard")},T)}));var lu=function(){return window.GutenverseDashboard.requireProUpdate.need_update?(0,a.createElement)("div",{className:"pro-update"},(0,a.createElement)("div",{className:"pro-update-wrapper"},(0,a.createElement)("span",null,(0,a.createElement)(m.IconInfoGraySVG,null)),(0,a.createElement)("p",{dangerouslySetInnerHTML:{__html:(0,d.sprintf)((0,d.__)("Some of your plugin need more advance version of <strong>%s</strong>. Please update your <strong>%s</strong> Plugin.","gutenverse"),"Gutenverse Pro","Gutenverse Pro")}}))):null};function cu(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 uu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cu(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}gutenverseCore.store;var pu=function(){var e=document.getElementById("gutenverse-dashboard"),t=(window.GutenverseConfig||window.GutenverseDashboard||{}).eventBanner,n=new Date,r=new Date(null==t?void 0:t.expired),o=function(){return(0,a.createElement)(a.Fragment,null,t&&n<=r&&(0,a.createElement)("div",{className:"event-banner-wrapper"},(0,a.createElement)("a",{href:null==t?void 0:t.url,target:"_blank",rel:"noreferrer"},(0,a.createElement)("img",{src:null==t?void 0:t.banner,alt:"event-banner"}))))};e&&(0,u.render)((0,a.createElement)(p.Routing,null,(function(e){return(0,a.createElement)(a.Fragment,null,(0,a.createElement)(E,uu({},e)),(0,a.createElement)(o,null),(0,a.createElement)(lu,null),(0,a.createElement)(su,uu({},e)))})),e)};"complete"===document.readyState||"interactive"===document.readyState?pu():window.addEventListener("load",(function(){pu()}))})()})();
| ver. 1.4 |
Github
|
.
| PHP 5.4.45 | Generation time: 0 |
proxy
|
phpinfo
|
Settings