Heray-Was-Here
Server : LiteSpeed
System : Linux server310.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
User : myveqfxv ( 6863)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/myveqfxv/public_html/wp-content/plugins/gutenverse/lib/framework/assets/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/myveqfxv/public_html/wp-content/plugins/gutenverse/lib/framework/assets/js/components.js
/*! For license information please see components.js.LICENSE.txt */
(()=>{var e={226(e){function t(){return new DOMException("The request is not allowed","NotAllowedError")}e.exports=async function(e){try{await async function(e){if(!navigator.clipboard)throw t();return navigator.clipboard.writeText(e)}(e)}catch(n){try{await async function(e){const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",n.style.webkitUserSelect="auto",n.style.userSelect="all",document.body.appendChild(n);const r=window.getSelection(),o=window.document.createRange();r.removeAllRanges(),o.selectNode(n),r.addRange(o);let i=!1;try{i=window.document.execCommand("copy")}finally{r.removeAllRanges(),window.document.body.removeChild(n)}if(!i)throw t()}(e)}catch(e){throw e||n||t()}}}},3871(e,t,n){"use strict";var r=n(3635),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=f(n);o&&o!==h&&e(t,o,r)}var a=u(n);d&&(a=a.concat(d(n)));for(var s=l(t),g=l(n),v=0;v<a.length;++v){var m=a[v];if(!(i[m]||r&&r[m]||g&&g[m]||s&&s[m])){var b=p(n,m);try{c(t,m,b)}catch(e){}}}}return t}},4009(e){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],u=0;(l=new Error(t.replace(/%s/g,function(){return c[u++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},9011(e,t,n){var r=n(919)(n(7650),"DataView");e.exports=r},8422(e,t,n){var r=n(9197),o=n(9405),i=n(3620),a=n(5760),s=n(3872);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},5126(e,t,n){var r=n(1837),o=n(7933),i=n(7524),a=n(5072),s=n(8496);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},9638(e,t,n){var r=n(919)(n(7650),"Map");e.exports=r},2822(e,t,n){var r=n(9645),o=n(7309),i=n(8532),a=n(7728),s=n(6752);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},7073(e,t,n){var r=n(919)(n(7650),"Promise");e.exports=r},5700(e,t,n){var r=n(919)(n(7650),"Set");e.exports=r},2408(e,t,n){var r=n(5126),o=n(1083),i=n(3471),a=n(5198),s=n(5162),l=n(9010);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},1238(e,t,n){var r=n(7650).Symbol;e.exports=r},9995(e,t,n){var r=n(7650).Uint8Array;e.exports=r},8674(e,t,n){var r=n(919)(n(7650),"WeakMap");e.exports=r},5900(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},8059(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},6434(e,t,n){var r=n(589),o=n(4727),i=n(7482),a=n(8009),s=n(6412),l=n(8270),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),d=!n&&!u&&a(e),p=!n&&!u&&!d&&l(e),f=n||u||d||p,h=f?r(e.length,String):[],g=h.length;for(var v in e)!t&&!c.call(e,v)||f&&("length"==v||d&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,g))||h.push(v);return h}},4011(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},3029(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},8178(e,t,n){var r=n(3053),o=n(6177),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},9366(e,t,n){var r=n(6177);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},1742(e,t,n){var r=n(1492),o=n(3951);e.exports=function(e,t){return e&&r(t,o(t),e)}},5241(e,t,n){var r=n(1492),o=n(4820);e.exports=function(e,t){return e&&r(t,o(t),e)}},3053(e,t,n){var r=n(3728);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},1698(e,t,n){var r=n(2408),o=n(5900),i=n(8178),a=n(1742),s=n(5241),l=n(3631),c=n(9582),u=n(8254),d=n(1577),p=n(3845),f=n(1814),h=n(9850),g=n(6562),v=n(8340),m=n(9816),b=n(7482),y=n(8009),w=n(4173),x=n(320),j=n(2123),O=n(3951),C=n(4820),S="[object Arguments]",_="[object Function]",E="[object Object]",I={};I[S]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[E]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[_]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,k,P,N,T){var R,L=1&n,D=2&n,A=4&n;if(k&&(R=N?k(t,P,N,T):k(t)),void 0!==R)return R;if(!x(t))return t;var F=b(t);if(F){if(R=g(t),!L)return c(t,R)}else{var M=h(t),V=M==_||"[object GeneratorFunction]"==M;if(y(t))return l(t,L);if(M==E||M==S||V&&!N){if(R=D||V?{}:m(t),!L)return D?d(t,s(R,t)):u(t,a(R,t))}else{if(!I[M])return N?t:{};R=v(t,M,L)}}T||(T=new r);var B=T.get(t);if(B)return B;T.set(t,R),j(t)?t.forEach(function(r){R.add(e(r,n,k,r,t,T))}):w(t)&&t.forEach(function(r,o){R.set(o,e(r,n,k,o,t,T))});var U=F?void 0:(A?D?f:p:D?C:O)(t);return o(U||t,function(r,o){U&&(r=t[o=r]),i(R,o,e(r,n,k,o,t,T))}),R}},4287(e,t,n){var r=n(320),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},1496(e,t,n){var r=n(3029),o=n(7482);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},4847(e,t,n){var r=n(1238),o=n(1034),i=n(6713),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},9095(e,t,n){var r=n(4847),o=n(6487);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},5997(e,t,n){var r=n(9850),o=n(6487);e.exports=function(e){return o(e)&&"[object Map]"==r(e)}},1260(e,t,n){var r=n(7331),o=n(7771),i=n(320),a=n(3590),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,d=c.hasOwnProperty,p=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},3947(e,t,n){var r=n(9850),o=n(6487);e.exports=function(e){return o(e)&&"[object Set]"==r(e)}},7054(e,t,n){var r=n(4847),o=n(9471),i=n(6487),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},9791(e,t,n){var r=n(4478),o=n(6205),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},788(e,t,n){var r=n(320),o=n(4478),i=n(8046),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},7008(e,t,n){var r=n(8178),o=n(1858),i=n(6412),a=n(320),s=n(9044);e.exports=function(e,t,n,l){if(!a(e))return e;for(var c=-1,u=(t=o(t,e)).length,d=u-1,p=e;null!=p&&++c<u;){var f=s(t[c]),h=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=d){var g=p[f];void 0===(h=l?l(g,f,p):void 0)&&(h=a(g)?g:i(t[c+1])?[]:{})}r(p,f,h),p=p[f]}return e}},589(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},3583(e,t,n){var r=n(1238),o=n(4011),i=n(7482),a=n(4151),s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7687(e,t,n){var r=n(1725),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},6352(e){e.exports=function(e){return function(t){return e(t)}}},1858(e,t,n){var r=n(7482),o=n(8671),i=n(3033),a=n(2479);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},6094(e,t,n){var r=n(9995);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},3631(e,t,n){e=n.nmd(e);var r=n(7650),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},2108(e,t,n){var r=n(6094);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},9360(e){var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},9617(e,t,n){var r=n(1238),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},3076(e,t,n){var r=n(6094);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},9582(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},1492(e,t,n){var r=n(8178),o=n(3053);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(n[c],e[c],c,n,e):void 0;void 0===u&&(u=e[c]),a?o(n,c,u):r(n,c,u)}return n}},8254(e,t,n){var r=n(1492),o=n(2167);e.exports=function(e,t){return r(e,o(e),t)}},1577(e,t,n){var r=n(1492),o=n(5484);e.exports=function(e,t){return r(e,o(e),t)}},330(e,t,n){var r=n(7650)["__core-js_shared__"];e.exports=r},3728(e,t,n){var r=n(919),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},683(e,t,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},3845(e,t,n){var r=n(1496),o=n(2167),i=n(3951);e.exports=function(e){return r(e,i,o)}},1814(e,t,n){var r=n(1496),o=n(5484),i=n(4820);e.exports=function(e){return r(e,i,o)}},2136(e,t,n){var r=n(4999);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},919(e,t,n){var r=n(1260),o=n(6639);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},956(e,t,n){var r=n(8298)(Object.getPrototypeOf,Object);e.exports=r},1034(e,t,n){var r=n(1238),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},2167(e,t,n){var r=n(8059),o=n(2350),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},5484(e,t,n){var r=n(3029),o=n(956),i=n(2167),a=n(2350),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},9850(e,t,n){var r=n(9011),o=n(9638),i=n(7073),a=n(5700),s=n(8674),l=n(4847),c=n(3590),u="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",g=c(r),v=c(o),m=c(i),b=c(a),y=c(s),w=l;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=p||s&&w(new s)!=f)&&(w=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 h;case v:return u;case m:return d;case b:return p;case y:return f}return t}),e.exports=w},6639(e){e.exports=function(e,t){return null==e?void 0:e[t]}},9197(e,t,n){var r=n(3333);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9405(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},3620(e,t,n){var r=n(3333),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},5760(e,t,n){var r=n(3333),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},3872(e,t,n){var r=n(3333);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},6562(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},8340(e,t,n){var r=n(6094),o=n(2108),i=n(9360),a=n(9617),s=n(3076);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},9816(e,t,n){var r=n(4287),o=n(956),i=n(4478);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},6412(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},8671(e,t,n){var r=n(7482),o=n(4151),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}},4999(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7771(e,t,n){var r,o=n(330),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4478(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},1837(e){e.exports=function(){this.__data__=[],this.size=0}},7933(e,t,n){var r=n(9366),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},7524(e,t,n){var r=n(9366);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},5072(e,t,n){var r=n(9366);e.exports=function(e){return r(this.__data__,e)>-1}},8496(e,t,n){var r=n(9366);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},9645(e,t,n){var r=n(8422),o=n(5126),i=n(9638);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},7309(e,t,n){var r=n(2136);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},8532(e,t,n){var r=n(2136);e.exports=function(e){return r(this,e).get(e)}},7728(e,t,n){var r=n(2136);e.exports=function(e){return r(this,e).has(e)}},6752(e,t,n){var r=n(2136);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},9297(e,t,n){var r=n(143);e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},3333(e,t,n){var r=n(919)(Object,"create");e.exports=r},6205(e,t,n){var r=n(8298)(Object.keys,Object);e.exports=r},8046(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},4886(e,t,n){e=n.nmd(e);var r=n(683),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},6713(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},8298(e){e.exports=function(e,t){return function(n){return e(t(n))}}},7650(e,t,n){var r=n(683),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},1083(e,t,n){var r=n(5126);e.exports=function(){this.__data__=new r,this.size=0}},3471(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},5198(e){e.exports=function(e){return this.__data__.get(e)}},5162(e){e.exports=function(e){return this.__data__.has(e)}},9010(e,t,n){var r=n(5126),o=n(9638),i=n(2822);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},3033(e,t,n){var r=n(9297),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},9044(e,t,n){var r=n(4151);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},3590(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""}},1725(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},664(e,t,n){var r=n(1698);e.exports=function(e){return r(e,5)}},9852(e,t,n){var r=n(320),o=n(3819),i=n(7167),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,f,h=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function b(t){var n=l,r=c;return l=c=void 0,h=t,d=e.apply(r,n)}function y(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-h>=u}function w(){var e=o();if(y(e))return x(e);p=setTimeout(w,function(e){var n=t-(e-f);return v?s(n,u-(e-h)):n}(e))}function x(e){return p=void 0,m&&l?b(e):(l=c=void 0,d)}function j(){var e=o(),n=y(e);if(l=arguments,c=this,f=e,n){if(void 0===p)return function(e){return h=e,p=setTimeout(w,t),g?b(e):d}(f);if(v)return clearTimeout(p),p=setTimeout(w,t),b(f)}return void 0===p&&(p=setTimeout(w,t)),d}return t=i(t)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?a(i(n.maxWait)||0,t):u,m="trailing"in n?!!n.trailing:m),j.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=c=p=void 0},j.flush=function(){return void 0===p?d:x(o())},j}},6177(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},4727(e,t,n){var r=n(9095),o=n(6487),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},7482(e){var t=Array.isArray;e.exports=t},7349(e,t,n){var r=n(7331),o=n(9471);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},8009(e,t,n){e=n.nmd(e);var r=n(7650),o=n(4368),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},9686(e,t,n){var r=n(9791),o=n(9850),i=n(4727),a=n(7482),s=n(7349),l=n(8009),c=n(4478),u=n(8270),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(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(d.call(e,n))return!1;return!0}},7331(e,t,n){var r=n(4847),o=n(320);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}},9471(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},4173(e,t,n){var r=n(5997),o=n(6352),i=n(4886),a=i&&i.isMap,s=a?o(a):r;e.exports=s},320(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6487(e){e.exports=function(e){return null!=e&&"object"==typeof e}},2123(e,t,n){var r=n(3947),o=n(6352),i=n(4886),a=i&&i.isSet,s=a?o(a):r;e.exports=s},4151(e,t,n){var r=n(4847),o=n(6487);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},8270(e,t,n){var r=n(7054),o=n(6352),i=n(4886),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},3951(e,t,n){var r=n(6434),o=n(9791),i=n(7349);e.exports=function(e){return i(e)?r(e):o(e)}},4820(e,t,n){var r=n(6434),o=n(788),i=n(7349);e.exports=function(e){return i(e)?r(e,!0):o(e)}},143(e,t,n){var r=n(2822);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},3819(e,t,n){var r=n(7650);e.exports=function(){return r.Date.now()}},4627(e,t,n){var r=n(7008);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},2350(e){e.exports=function(){return[]}},4368(e){e.exports=function(){return!1}},4015(e,t,n){var r=n(9852),o=n(320);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},7167(e,t,n){var r=n(7687),o=n(320),i=n(4151),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):a.test(e)?NaN:+e}},2479(e,t,n){var r=n(3583);e.exports=function(e){return null==e?"":r(e)}},4039(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))n.call(i,c)&&(s[c]=i[c]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},6870(e,t,n){"use strict";var r=n(6701);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==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:i,resetWarningCache:o};return n.PropTypes=n,n}},3108(e,t,n){e.exports=n(6870)()},6701(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2700(e){var t="undefined"!=typeof Element,n="function"==typeof Map,r="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,a){if(e===a)return!0;if(e&&a&&"object"==typeof e&&"object"==typeof a){if(e.constructor!==a.constructor)return!1;var s,l,c,u;if(Array.isArray(e)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(!i(e[l],a[l]))return!1;return!0}if(n&&e instanceof Map&&a instanceof Map){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;for(u=e.entries();!(l=u.next()).done;)if(!i(l.value[1],a.get(l.value[0])))return!1;return!0}if(r&&e instanceof Set&&a instanceof Set){if(e.size!==a.size)return!1;for(u=e.entries();!(l=u.next()).done;)if(!a.has(l.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(a)){if((s=e.length)!=a.length)return!1;for(l=s;0!==l--;)if(e[l]!==a[l])return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof a.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof a.toString)return e.toString()===a.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(a).length)return!1;for(l=s;0!==l--;)if(!Object.prototype.hasOwnProperty.call(a,c[l]))return!1;if(t&&e instanceof Element)return!1;for(l=s;0!==l--;)if(("_owner"!==c[l]&&"__v"!==c[l]&&"__o"!==c[l]||!e.$$typeof)&&!i(e[c[l]],a[c[l]]))return!1;return!0}return e!=e&&a!=a}e.exports=function(e,t){try{return i(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}},5575(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,g=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case i:case s:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case v:case g:case l:return e;default:return t}}case o:return t}}}function j(e){return x(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=i,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return j(e)||x(e)===u},t.isConcurrentMode=j,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===g},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===f||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===m)},t.typeOf=x},3635(e,t,n){"use strict";e.exports=n(5575)},8557(e,t){var n;t=e.exports=g,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=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],i=t.safeRe=[],a=t.src=[],s=t.tokens={},l=0;function c(e){s[e]=l++}var u="[a-zA-Z0-9-]",d=[["\\s",1],["\\d",256],[u,250]];function p(e){for(var t=0;t<d.length;t++){var n=d[t][0],r=d[t][1];e=e.split(n+"*").join(n+"{0,"+r+"}").split(n+"+").join(n+"{1,"+r+"}")}return e}c("NUMERICIDENTIFIER"),a[s.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[s.NUMERICIDENTIFIERLOOSE]="\\d+",c("NONNUMERICIDENTIFIER"),a[s.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-]"+u+"*",c("MAINVERSION"),a[s.MAINVERSION]="("+a[s.NUMERICIDENTIFIER]+")\\.("+a[s.NUMERICIDENTIFIER]+")\\.("+a[s.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[s.MAINVERSIONLOOSE]="("+a[s.NUMERICIDENTIFIERLOOSE]+")\\.("+a[s.NUMERICIDENTIFIERLOOSE]+")\\.("+a[s.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[s.PRERELEASEIDENTIFIER]="(?:"+a[s.NUMERICIDENTIFIER]+"|"+a[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[s.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[s.NUMERICIDENTIFIERLOOSE]+"|"+a[s.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[s.PRERELEASE]="(?:-("+a[s.PRERELEASEIDENTIFIER]+"(?:\\."+a[s.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[s.PRERELEASELOOSE]="(?:-?("+a[s.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[s.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[s.BUILDIDENTIFIER]=u+"+",c("BUILD"),a[s.BUILD]="(?:\\+("+a[s.BUILDIDENTIFIER]+"(?:\\."+a[s.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[s.FULLPLAIN]="v?"+a[s.MAINVERSION]+a[s.PRERELEASE]+"?"+a[s.BUILD]+"?",a[s.FULL]="^"+a[s.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[s.LOOSEPLAIN]="[v=\\s]*"+a[s.MAINVERSIONLOOSE]+a[s.PRERELEASELOOSE]+"?"+a[s.BUILD]+"?",c("LOOSE"),a[s.LOOSE]="^"+a[s.LOOSEPLAIN]+"$",c("GTLT"),a[s.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[s.XRANGEIDENTIFIERLOOSE]=a[s.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[s.XRANGEIDENTIFIER]=a[s.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[s.XRANGEPLAIN]="[v=\\s]*("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:\\.("+a[s.XRANGEIDENTIFIER]+")(?:"+a[s.PRERELEASE]+")?"+a[s.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[s.XRANGEPLAINLOOSE]="[v=\\s]*("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[s.XRANGEIDENTIFIERLOOSE]+")(?:"+a[s.PRERELEASELOOSE]+")?"+a[s.BUILD]+"?)?)?",c("XRANGE"),a[s.XRANGE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[s.XRANGELOOSE]="^"+a[s.GTLT]+"\\s*"+a[s.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[s.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),o[s.COERCERTL]=new RegExp(a[s.COERCE],"g"),i[s.COERCERTL]=new RegExp(p(a[s.COERCE]),"g"),c("LONETILDE"),a[s.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[s.TILDETRIM]="(\\s*)"+a[s.LONETILDE]+"\\s+",o[s.TILDETRIM]=new RegExp(a[s.TILDETRIM],"g"),i[s.TILDETRIM]=new RegExp(p(a[s.TILDETRIM]),"g"),c("TILDE"),a[s.TILDE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[s.TILDELOOSE]="^"+a[s.LONETILDE]+a[s.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[s.LONECARET]="(?:\\^)",c("CARETTRIM"),a[s.CARETTRIM]="(\\s*)"+a[s.LONECARET]+"\\s+",o[s.CARETTRIM]=new RegExp(a[s.CARETTRIM],"g"),i[s.CARETTRIM]=new RegExp(p(a[s.CARETTRIM]),"g"),c("CARET"),a[s.CARET]="^"+a[s.LONECARET]+a[s.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[s.CARETLOOSE]="^"+a[s.LONECARET]+a[s.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[s.COMPARATORLOOSE]="^"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[s.COMPARATOR]="^"+a[s.GTLT]+"\\s*("+a[s.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[s.COMPARATORTRIM]="(\\s*)"+a[s.GTLT]+"\\s*("+a[s.LOOSEPLAIN]+"|"+a[s.XRANGEPLAIN]+")",o[s.COMPARATORTRIM]=new RegExp(a[s.COMPARATORTRIM],"g"),i[s.COMPARATORTRIM]=new RegExp(p(a[s.COMPARATORTRIM]),"g"),c("HYPHENRANGE"),a[s.HYPHENRANGE]="^\\s*("+a[s.XRANGEPLAIN]+")\\s+-\\s+("+a[s.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[s.HYPHENRANGELOOSE]="^\\s*("+a[s.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[s.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[s.STAR]="(<|>)?=?\\s*\\*";for(var f=0;f<l;f++)n(f,a[f]),o[f]||(o[f]=new RegExp(a[f]),i[f]=new RegExp(p(a[f])));function h(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[s.LOOSE]:i[s.FULL]).test(e))return null;try{return new g(e,t)}catch(e){return null}}function g(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof g){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof g))return new g(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[s.LOOSE]:i[s.FULL]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e}):this.prerelease=[],this.build=o[5]?o[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=g,g.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},g.prototype.toString=function(){return this.version},g.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof g||(e=new g(e,this.options)),this.compareMain(e)||this.comparePre(e)},g.prototype.compareMain=function(e){return e instanceof g||(e=new g(e,this.options)),m(this.major,e.major)||m(this.minor,e.minor)||m(this.patch,e.patch)},g.prototype.comparePre=function(e){if(e instanceof g||(e=new g(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 m(r,o)}while(++t)},g.prototype.compareBuild=function(e){e instanceof g||(e=new g(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 m(r,o)}while(++t)},g.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 g(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(x(e,t))return null;var n=h(e),r=h(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=m;var v=/^[0-9]+$/;function m(e,t){var n=v.test(e),r=v.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function b(e,t,n){return new g(e,n).compare(new g(t,n))}function y(e,t,n){return b(e,t,n)>0}function w(e,t,n){return b(e,t,n)<0}function x(e,t,n){return 0===b(e,t,n)}function j(e,t,n){return 0!==b(e,t,n)}function O(e,t,n){return b(e,t,n)>=0}function C(e,t,n){return b(e,t,n)<=0}function S(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 x(e,n,r);case"!=":return j(e,n,r);case">":return y(e,n,r);case">=":return O(e,n,r);case"<":return w(e,n,r);case"<=":return C(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function _(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof _){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof _))return new _(e,t);e=e.trim().split(/\s+/).join(" "),n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===E?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return m(t,e)},t.major=function(e,t){return new g(e,t).major},t.minor=function(e,t){return new g(e,t).minor},t.patch=function(e,t){return new g(e,t).patch},t.compare=b,t.compareLoose=function(e,t){return b(e,t,!0)},t.compareBuild=function(e,t,n){var r=new g(e,n),o=new g(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return b(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=y,t.lt=w,t.eq=x,t.neq=j,t.gte=O,t.lte=C,t.cmp=S,t.Comparator=_;var E={};function I(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof I)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new I(e.raw,t);if(e instanceof _)return new I(e.value,t);if(!(this instanceof I))return new I(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 k(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 P(e){return!e||"x"===e.toLowerCase()||"*"===e}function N(e,t,n,r,o,i,a,s,l,c,u,d,p){return((t=P(n)?"":P(r)?">="+n+".0.0":P(o)?">="+n+"."+r+".0":">="+t)+" "+(s=P(l)?"":P(c)?"<"+(+l+1)+".0.0":P(u)?"<"+l+"."+(+c+1)+".0":d?"<="+l+"."+c+"."+u+"-"+d:"<="+s)).trim()}function T(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!==E&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function R(e,t,n){try{t=new I(t,n)}catch(e){return!1}return t.test(e)}function L(e,t,n,r){var o,i,a,s,l;switch(e=new g(e,r),t=new I(t,r),n){case">":o=y,i=C,a=w,s=">",l=">=";break;case"<":o=w,i=O,a=y,s="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(R(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,p=null;if(u.forEach(function(e){e.semver===E&&(e=new _(">=0.0.0")),d=d||e,p=p||e,o(e.semver,d.semver,r)?d=e:a(e.semver,p.semver,r)&&(p=e)}),d.operator===s||d.operator===l)return!1;if((!p.operator||p.operator===s)&&i(e,p.semver))return!1;if(p.operator===l&&a(e,p.semver))return!1}return!0}_.prototype.parse=function(e){var t=this.options.loose?i[s.COMPARATORLOOSE]:i[s.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 g(n[2],this.options.loose):this.semver=E},_.prototype.toString=function(){return this.value},_.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===E||e===E)return!0;if("string"==typeof e)try{e=new g(e,this.options)}catch(e){return!1}return S(e,this.operator,this.semver,this.options)},_.prototype.intersects=function(e,t){if(!(e instanceof _))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 I(e.value,t),R(this.value,n,t));if(""===e.operator)return""===e.value||(n=new I(this.value,t),R(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=S(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),l=S(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||s||l},t.Range=I,I.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},I.prototype.toString=function(){return this.range},I.prototype.parseRange=function(e){var t=this.options.loose,r=t?i[s.HYPHENRANGELOOSE]:i[s.HYPHENRANGE];e=e.replace(r,N),n("hyphen replace",e),e=e.replace(i[s.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[s.COMPARATORTRIM]),e=(e=(e=e.replace(i[s.TILDETRIM],"$1~")).replace(i[s.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[s.COMPARATORLOOSE]:i[s.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?i[s.CARETLOOSE]:i[s.CARET];return e.replace(r,function(t,r,o,i,a){var s;return n("caret",e,t,r,o,i,a),P(r)?s="":P(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":P(i)?s="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+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?i[s.TILDELOOSE]:i[s.TILDE];return e.replace(r,function(t,r,o,i,a){var s;return n("tilde",e,t,r,o,i,a),P(r)?s="":P(o)?s=">="+r+".0.0 <"+(+r+1)+".0.0":P(i)?s=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):s=">="+r+"."+o+"."+i+" <"+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?i[s.XRANGELOOSE]:i[s.XRANGE];return e.replace(r,function(r,o,i,a,s,l){n("xRange",e,r,o,i,a,s,l);var c=P(i),u=c||P(a),d=u||P(s),p=d;return"="===o&&p&&(o=""),l=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),s=0,">"===o?(o=">=",u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+s+l):u?r=">="+i+".0.0"+l+" <"+(+i+1)+".0.0"+l:d&&(r=">="+i+"."+a+".0"+l+" <"+i+"."+(+a+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(i[s.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 _(e,this.options)},this)},I.prototype.intersects=function(e,t){if(!(e instanceof I))throw new TypeError("a Range is required");return this.set.some(function(n){return k(n,t)&&e.set.some(function(e){return k(e,t)&&n.every(function(n){return e.every(function(e){return n.intersects(e,t)})})})})},t.toComparators=function(e,t){return new I(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},I.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new g(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(T(this.set[t],e,this.options))return!0;return!1},t.satisfies=R,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new I(t,n)}catch(e){return null}return e.forEach(function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new g(r=e,n)))}),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new I(t,n)}catch(e){return null}return e.forEach(function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new g(r=e,n)))}),r},t.minVersion=function(e,t){e=new I(e,t);var n=new g("0.0.0");if(e.test(n))return n;if(n=new g("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 g(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!y(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 I(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return L(e,t,"<",n)},t.gtr=function(e,t,n){return L(e,t,">",n)},t.outside=L,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 I(e,n),t=new I(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof g)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=i[s.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[s.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[s.COERCERTL].lastIndex=-1}else n=e.match(i[s.COERCE]);return null===n?null:h(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}},5768(e){var t=function(e,n){return this instanceof t?e instanceof t?e:((e="string"==typeof e?this.select(e,n):e)&&e.nodeName&&(e=[e]),void(this.nodes=this.slice(e))):new t(e,n)};t.prototype={get length(){return this.nodes.length}},t.prototype.nodes=[],t.prototype.addClass=function(){return this.eacharg(arguments,function(e,t){e.classList.add(t)})},t.prototype.adjacent=function(e,n,r){return"number"==typeof n&&(n=0===n?[]:new Array(n).join().split(",").map(Number.call,Number)),this.each(function(o,i){var a=document.createDocumentFragment();t(n||{}).map(function(n,r){return"string"==typeof(r="function"==typeof e?e.call(this,n,r,o,i):e)?this.generate(r):t(r)}).each(function(e){this.isInPage(e)?a.appendChild(t(e).clone().first()):a.appendChild(e)}),r.call(this,o,a)})},t.prototype.after=function(e,t){return this.adjacent(e,t,function(e,t){e.parentNode.insertBefore(t,e.nextSibling)})},t.prototype.append=function(e,t){return this.adjacent(e,t,function(e,t){e.appendChild(t)})},t.prototype.args=function(e,t,n){return(e="string"!=typeof(e="function"==typeof e?e(t,n):e)?this.slice(e).map(this.str(t,n)):e).toString().split(/[\s,]+/).filter(function(e){return e.length})},t.prototype.array=function(e){var n=this;return this.nodes.reduce(function(r,o,i){var a;return e?(a="string"==typeof(a=(a=e.call(n,o,i))||!1)?t(a):a)instanceof t&&(a=a.nodes):a=o.innerHTML,r.concat(!1!==a?a:[])},[])},t.prototype.attr=function(e,t,n){return n=n?"data-":"",this.pairs(e,t,function(e,t){return e.getAttribute(n+t)},function(e,t,r){r?e.setAttribute(n+t,r):e.removeAttribute(n+t)})},t.prototype.before=function(e,t){return this.adjacent(e,t,function(e,t){e.parentNode.insertBefore(t,e)})},t.prototype.children=function(e){return this.map(function(e){return this.slice(e.children)}).filter(e)},t.prototype.clone=function(){return this.map(function(e,t){var n=e.cloneNode(!0),r=this.getAll(n);return this.getAll(e).each(function(e,t){for(var n in this.mirror)this.mirror[n]&&this.mirror[n](e,r.nodes[t])}),n})},t.prototype.getAll=function(e){return t([e].concat(t("*",e).nodes))},t.prototype.mirror={},t.prototype.mirror.events=function(e,n){if(e._e)for(var r in e._e)e._e[r].forEach(function(e){t(n).on(r,e.callback)})},t.prototype.mirror.select=function(e,n){t(e).is("select")&&(n.value=e.value)},t.prototype.mirror.textarea=function(e,n){t(e).is("textarea")&&(n.value=e.value)},t.prototype.closest=function(e){return this.map(function(n){do{if(t(n).is(e))return n}while((n=n.parentNode)&&n!==document)})},t.prototype.data=function(e,t){return this.attr(e,t,!0)},t.prototype.each=function(e){return this.nodes.forEach(e.bind(this)),this},t.prototype.eacharg=function(e,t){return this.each(function(n,r){this.args(e,n,r).forEach(function(e){t.call(this,n,e)},this)})},t.prototype.empty=function(){return this.each(function(e){for(;e.firstChild;)e.removeChild(e.firstChild)})},t.prototype.filter=function(e){var n=e instanceof t?function(t){return-1!==e.nodes.indexOf(t)}:"function"==typeof e?e:function(t){return t.matches=t.matches||t.msMatchesSelector||t.webkitMatchesSelector,t.matches(e||"*")};return t(this.nodes.filter(n))},t.prototype.find=function(e){return this.map(function(n){return t(e||"*",n)})},t.prototype.first=function(){return this.nodes[0]||!1},t.prototype.generate=function(e){return/^\s*<tr[> ]/.test(e)?t(document.createElement("table")).html(e).children().children().nodes:/^\s*<t(h|d)[> ]/.test(e)?t(document.createElement("table")).html(e).children().children().children().nodes:/^\s*</.test(e)?t(document.createElement("div")).html(e).children().nodes:document.createTextNode(e)},t.prototype.handle=function(){var e=this.slice(arguments).map(function(e){return"function"==typeof e?function(t){t.preventDefault(),e.apply(this,arguments)}:e},this);return this.on.apply(this,e)},t.prototype.hasClass=function(){return this.is("."+this.args(arguments).join("."))},t.prototype.html=function(e){return void 0===e?this.first().innerHTML||"":this.each(function(t){t.innerHTML=e})},t.prototype.is=function(e){return 0<this.filter(e).length},t.prototype.isInPage=function(e){return e!==document.body&&document.body.contains(e)},t.prototype.last=function(){return this.nodes[this.length-1]||!1},t.prototype.map=function(e){return e?t(this.array(e)).unique():this},t.prototype.not=function(e){return this.filter(function(n){return!t(n).is(e||!0)})},t.prototype.off=function(e,n,r){var o=null==n&&null==r,i=null,a=n;return"string"==typeof n&&(i=n,a=r),this.eacharg(e,function(e,n){t(e._e?e._e[n]:[]).each(function(t){(o||t.orig_callback===a&&t.selector===i)&&e.removeEventListener(n,t.callback)})})},t.prototype.on=function(e,n,r){function o(e,t){try{Object.defineProperty(e,"currentTarget",{value:t,configurable:!0})}catch(e){}}var i=null,a=n;function s(e){return n.apply(this,[e].concat(e.detail||[]))}return"string"==typeof n&&(i=n,a=r,n=function(e){var n=arguments;t(e.currentTarget).find(i).each(function(t){var i;t.contains(e.target)&&(i=e.currentTarget,o(e,t),r.apply(t,n),o(e,i))})}),this.eacharg(e,function(e,t){e.addEventListener(t,s),e._e=e._e||{},e._e[t]=e._e[t]||[],e._e[t].push({callback:s,orig_callback:a,selector:i})})},t.prototype.pairs=function(e,t,n,r){var o;return void 0!==t&&(o=e,(e={})[o]=t),"object"==typeof e?this.each(function(t,n){for(var o in e)"function"==typeof e[o]?r(t,o,e[o](t,n)):r(t,o,e[o])}):this.length?n(this.first(),e):""},t.prototype.param=function(e){return Object.keys(e).map(function(t){return this.uri(t)+"="+this.uri(e[t])}.bind(this)).join("&")},t.prototype.parent=function(e){return this.map(function(e){return e.parentNode}).filter(e)},t.prototype.prepend=function(e,t){return this.adjacent(e,t,function(e,t){e.insertBefore(t,e.firstChild)})},t.prototype.remove=function(){return this.each(function(e){e.parentNode&&e.parentNode.removeChild(e)})},t.prototype.removeClass=function(){return this.eacharg(arguments,function(e,t){e.classList.remove(t)})},t.prototype.replace=function(e,n){var r=[];return this.adjacent(e,n,function(e,t){r=r.concat(this.slice(t.children)),e.parentNode.replaceChild(t,e)}),t(r)},t.prototype.scroll=function(){var e=this.first();return e&&e.scrollIntoView({behavior:"smooth"}),this},t.prototype.select=function(e,n){return e=e.replace(/^\s*/,"").replace(/\s*$/,""),/^</.test(e)?t().generate(e):(n||document).querySelectorAll(e)},t.prototype.serialize=function(){var e=this;return this.slice(this.first().elements).reduce(function(n,r){return!r.name||r.disabled||"file"===r.type||/(checkbox|radio)/.test(r.type)&&!r.checked?n:"select-multiple"===r.type?(t(r.options).each(function(t){t.selected&&(n+="&"+e.uri(r.name)+"="+e.uri(t.value))}),n):n+"&"+e.uri(r.name)+"="+e.uri(r.value)},"").slice(1)},t.prototype.siblings=function(e){return this.parent().children(e).not(this)},t.prototype.size=function(){var e=this.first();return e?e.getBoundingClientRect():null},t.prototype.slice=function(e){return e&&0!==e.length&&"string"!=typeof e&&"[object Function]"!==e.toString()?e.length?[].slice.call(e.nodes||e):[e]:[]},t.prototype.str=function(e,t){return function(n){return"function"==typeof n?n.call(this,e,t):n.toString()}},t.prototype.text=function(e){return void 0===e?this.first().textContent||"":this.each(function(t){t.textContent=e})},t.prototype.toggleClass=function(e,t){return!!t===t?this[t?"addClass":"removeClass"](e):this.eacharg(e,function(e,t){e.classList.toggle(t)})},t.prototype.trigger=function(e){var t=this.slice(arguments).slice(1);return this.eacharg(e,function(e,n){var r,o={bubbles:!0,cancelable:!0,detail:t};try{r=new window.CustomEvent(n,o)}catch(e){(r=document.createEvent("CustomEvent")).initCustomEvent(n,!0,!0,t)}e.dispatchEvent(r)})},t.prototype.unique=function(){return t(this.nodes.reduce(function(e,t){return null!=t&&!1!==t&&-1===e.indexOf(t)?e.concat(t):e},[]))},t.prototype.uri=function(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")},t.prototype.wrap=function(e){return this.map(function(n){return t(e).each(function(e){(function(e){for(;e.firstElementChild;)e=e.firstElementChild;return t(e)})(e).append(n.cloneNode(!0)),n.parentNode.replaceChild(e,n)})})},e.exports&&(e.exports=t,e.exports.u=t)},3698(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=a(e,i(n)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(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 i=t[r]={id:r,loaded:!1,exports:{}};return e[r](i,i.exports,n),i.loaded=!0,i.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:()=>Ne,hasStandardBrowserEnv:()=>Re,hasStandardBrowserWebWorkerEnv:()=>Le,navigator:()=>Te,origin:()=>De});const t=window.wp.hooks,r=gutenverseCore.helper,o=window.wp.element,i=window.wp.i18n,a=window.ReactJSXRuntime;function s(e){return s="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},s(e)}function l(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function c(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(0,t.addAction)("editor.ErrorBoundary.errorLogged","gutenverse/error/handler",function(){if((0,r.isFSE)()){var e=window.GutenverseConfig.adminUrl+"site-editor.php?postType=wp_template";(0,o.render)((0,a.jsxs)("div",{className:"gutenverse-error-wrapper editor-error-boundary",children:[(0,a.jsx)("h3",{children:(0,i.__)("If recovery doesn't work, you can try reseting your template. Visit this All template Link to reset Template.","gutenverse")}),(0,a.jsx)("a",{href:e,children:(0,i.__)("Reset Template","gutenverse")})]}),document.getElementById("gutenverse-error"))}});const u=window.wp.data;function d(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var f={styles:{},fonts:{},googleFonts:{},customFonts:{},elements:{}},h={getStyles:function(e){return void 0===e?{}:e.styles},getFonts:function(e){return void 0===e?{}:e.fonts},getGoogleFonts:function(e){return void 0===e?{}:e.googleFonts},getCustomFonts:function(e){return void 0===e?{}:e.customFonts},elementExist:function(e,t){return void 0!==e&&Object.keys(e.elements).find(function(n){return e.elements[n].elementId===t})},findElement:function(e,t){return void 0!==e&&(t&&e.elements[t]?e.elements[t]:void 0)}},g=(0,u.createReduxStore)("gutenverse/style",{reducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"INJECT_STYLE":return p(p({},e),{},{styles:p(p({},e.styles),{},c({},t.id,t.style))});case"INJECT_FONT":return p(p({},e),{},{fonts:p(p({},e.fonts),{},c({},t.id,t.font))});case"INJECT_GOOGLE_FONTS":return p(p({},e),{},{googleFonts:p(p({},e.googleFonts),{},c({},t.id,t.data))});case"INJECT_CUSTOM_FONTS":return p(p({},e),{},{customFonts:p(p({},e.customFonts),{},c({},t.id,t.data))});case"REGISTER_ELEMENT":case"SET_COLUMN_WIDTH":return p(p({},e),{},{elements:p(p({},e.elements),{},c({},t.id,p(p({},e.elements[t.id]),t.data)))});case"INJECT_REF":return p(p({},e),{},{elements:p(p({},e.elements),{},c({},t.id,p(p({},e.elements[t.id]),{},{ref:t.ref})))})}},actions:{setStyle:function(e,t){return{type:"INJECT_STYLE",id:e,style:t}},setFont:function(e,t){return{type:"INJECT_FONT",id:e,font:t}},setGoogleFonts:function(e,t){return{type:"INJECT_GOOGLE_FONTS",id:e,data:t}},setCustomFonts:function(e,t){return{type:"INJECT_CUSTOM_FONTS",id:e,data:t}},registerElement:function(e,t){return{type:"REGISTER_ELEMENT",id:e,data:t}},setColumnWidth:function(e,t){return{type:"SET_COLUMN_WIDTH",id:e,data:{columnWidth:t}}},injectRef:function(e,t){return{type:"INJECT_REF",id:e,ref:t}}},selectors:h});function v(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 m(e,t){if(e){if("string"==typeof e)return v(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)?v(e,t):void 0}}function b(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||m(e)||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.")}()}function y(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,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.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&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||m(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.")}()}function w(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function x(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){w(i,r,o,a,s,"next",e)}function s(e){w(i,r,o,a,s,"throw",e)}a(void 0)})}}(0,u.register)(g);const j=gutenverseCore.config,O=window.wp.editor;function C(e,t){return function(){return e.apply(t,arguments)}}const{toString:S}=Object.prototype,{getPrototypeOf:_}=Object,{iterator:E,toStringTag:I}=Symbol,k=(P=Object.create(null),e=>{const t=S.call(e);return P[t]||(P[t]=t.slice(8,-1).toLowerCase())});var P;const N=e=>(e=e.toLowerCase(),t=>k(t)===e),T=e=>t=>typeof t===e,{isArray:R}=Array,L=T("undefined");function D(e){return null!==e&&!L(e)&&null!==e.constructor&&!L(e.constructor)&&M(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A=N("ArrayBuffer"),F=T("string"),M=T("function"),V=T("number"),B=e=>null!==e&&"object"==typeof e,U=e=>{if("object"!==k(e))return!1;const t=_(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||I in e||E in e)},G=N("Date"),z=N("File"),H=N("Blob"),q=N("FileList"),$="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{},W=void 0!==$.FormData?$.FormData:void 0,X=N("URLSearchParams"),[K,Y,J,Z]=["ReadableStream","Request","Response","Headers"].map(N);function Q(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),R(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(D(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function ee(e,t){if(D(e))return null;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 te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,ne=e=>!L(e)&&e!==te,re=(oe="undefined"!=typeof Uint8Array&&_(Uint8Array),e=>oe&&e instanceof oe);var oe;const ie=N("HTMLFormElement"),ae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),se=N("RegExp"),le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Q(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},ce=N("AsyncFunction"),ue=(de="function"==typeof setImmediate,pe=M(te.postMessage),de?setImmediate:pe?((e,t)=>(te.addEventListener("message",({source:n,data:r})=>{n===te&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),te.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e));var de,pe;const fe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(te):"undefined"!=typeof process&&process.nextTick||ue,he={isArray:R,isArrayBuffer:A,isBuffer:D,isFormData:e=>{let t;return e&&(W&&e instanceof W||M(e.append)&&("formdata"===(t=k(e))||"object"===t&&M(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&A(e.buffer),t},isString:F,isNumber:V,isBoolean:e=>!0===e||!1===e,isObject:B,isPlainObject:U,isEmptyObject:e=>{if(!B(e)||D(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:K,isRequest:Y,isResponse:J,isHeaders:Z,isUndefined:L,isDate:G,isFile:z,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:H,isRegExp:se,isFunction:M,isStream:e=>B(e)&&M(e.pipe),isURLSearchParams:X,isTypedArray:re,isFileList:q,forEach:Q,merge:function e(){const{caseless:t,skipUndefined:n}=ne(this)&&this||{},r={},o=(o,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;const a=t&&ee(r,i)||i;U(r[a])&&U(o)?r[a]=e(r[a],o):U(o)?r[a]=e({},o):R(o)?r[a]=o.slice():n&&L(o)||(r[a]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Q(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Q(t,(t,r)=>{n&&M(t)?Object.defineProperty(e,r,{value:C(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{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),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:k,kindOfTest:N,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(R(e))return e;let t=e.length;if(!V(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[E]).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:ie,hasOwnProperty:ae,hasOwnProp:ae,reduceDescriptors:le,freezeMethods:e=>{le(e,(t,n)=>{if(M(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];M(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 R(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:ee,global:te,isContextDefined:ne,isSpecCompliantForm:function(e){return!!(e&&M(e.append)&&"FormData"===e[I]&&e[E])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(B(e)){if(t.indexOf(e)>=0)return;if(D(e))return e;if(!("toJSON"in e)){t[r]=e;const o=R(e)?[]:{};return Q(e,(e,t)=>{const i=n(e,r+1);!L(i)&&(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:ce,isThenable:e=>e&&(B(e)||M(e))&&M(e.then)&&M(e.catch),setImmediate:ue,asap:fe,isIterable:e=>null!=e&&M(e[E])};class ge extends Error{static from(e,t,n,r,o,i){const a=new ge(e.message,t||e.code,n,r,o);return a.cause=e,a.name=e.name,null!=e.status&&null==a.status&&(a.status=e.status),i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){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:he.toJSONObject(this.config),code:this.code,status:this.status}}}ge.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",ge.ERR_BAD_OPTION="ERR_BAD_OPTION",ge.ECONNABORTED="ECONNABORTED",ge.ETIMEDOUT="ETIMEDOUT",ge.ERR_NETWORK="ERR_NETWORK",ge.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",ge.ERR_DEPRECATED="ERR_DEPRECATED",ge.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",ge.ERR_BAD_REQUEST="ERR_BAD_REQUEST",ge.ERR_CANCELED="ERR_CANCELED",ge.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",ge.ERR_INVALID_URL="ERR_INVALID_URL";const ve=ge;function me(e){return he.isPlainObject(e)||he.isArray(e)}function be(e){return he.endsWith(e,"[]")?e.slice(0,-2):e}function ye(e,t,n){return e?e.concat(t).map(function(e,t){return e=be(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const we=he.toFlatObject(he,{},null,function(e){return/^is[A-Z]/.test(e)}),xe=function(e,t,n){if(!he.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=he.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!he.isUndefined(t[e])})).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&he.isSpecCompliantForm(t);if(!he.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(he.isDate(e))return e.toISOString();if(he.isBoolean(e))return e.toString();if(!s&&he.isBlob(e))throw new ve("Blob is not supported. Use a Buffer instead.");return he.isArrayBuffer(e)||he.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(he.isReactNative(t)&&he.isReactNativeBlob(e))return t.append(ye(o,n,i),l(e)),!1;if(e&&!o&&"object"==typeof e)if(he.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(he.isArray(e)&&function(e){return he.isArray(e)&&!e.some(me)}(e)||(he.isFileList(e)||he.endsWith(n,"[]"))&&(s=he.toArray(e)))return n=be(n),s.forEach(function(e,r){!he.isUndefined(e)&&null!==e&&t.append(!0===a?ye([n],r,i):null===a?n:n+"[]",l(e))}),!1;return!!me(e)||(t.append(ye(o,n,i),l(e)),!1)}const u=[],d=Object.assign(we,{defaultVisitor:c,convertValue:l,isVisitable:me});if(!he.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!he.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),he.forEach(n,function(n,i){!0===(!(he.isUndefined(n)||null===n)&&o.call(t,n,he.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function je(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Oe(e,t){this._pairs=[],e&&xe(e,this,t)}const Ce=Oe.prototype;Ce.append=function(e,t){this._pairs.push([e,t])},Ce.toString=function(e){const t=e?function(t){return e.call(this,t,je)}:je;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const Se=Oe;function _e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ee(e,t,n){if(!t)return e;const r=n&&n.encode||_e,o=he.isFunction(n)?{serialize:n}:n,i=o&&o.serialize;let a;if(a=i?i(t,o):he.isURLSearchParams(t)?t.toString():new Se(t,o).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const Ie=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){he.forEach(this.handlers,function(t){null!==t&&e(t)})}},ke={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Pe={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Se,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Ne="undefined"!=typeof window&&"undefined"!=typeof document,Te="object"==typeof navigator&&navigator||void 0,Re=Ne&&(!Te||["ReactNative","NativeScript","NS"].indexOf(Te.product)<0),Le="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,De=Ne&&window.location.href||"http://localhost",Ae={...e,...Pe},Fe=function(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;return i=!i&&he.isArray(r)?r.length:i,s?(he.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&he.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&he.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a)}if(he.isFormData(e)&&he.isFunction(e.entries)){const n={};return he.forEachEntry(e,(e,r)=>{t(function(e){return he.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null},Me={transitional:ke,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=he.isObject(e);if(o&&he.isHTMLForm(e)&&(e=new FormData(e)),he.isFormData(e))return r?JSON.stringify(Fe(e)):e;if(he.isArrayBuffer(e)||he.isBuffer(e)||he.isStream(e)||he.isFile(e)||he.isBlob(e)||he.isReadableStream(e))return e;if(he.isArrayBufferView(e))return e.buffer;if(he.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return xe(e,new Ae.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ae.isNode&&he.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=he.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return xe(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(he.isString(e))try{return(0,JSON.parse)(e),he.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(he.isResponse(e)||he.isReadableStream(e))return e;if(e&&he.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw ve.from(e,ve.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:Ae.classes.FormData,Blob:Ae.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};he.forEach(["delete","get","head","post","put","patch"],e=>{Me.headers[e]={}});const Ve=Me,Be=he.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"]),Ue=Symbol("internals");function Ge(e){return e&&String(e).trim().toLowerCase()}function ze(e){return!1===e||null==e?e:he.isArray(e)?e.map(ze):String(e).replace(/[\r\n]+$/,"")}function He(e,t,n,r,o){return he.isFunction(r)?r.call(this,t,n):(o&&(t=n),he.isString(t)?he.isString(r)?-1!==t.indexOf(r):he.isRegExp(r)?r.test(t):void 0:void 0)}class qe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Ge(t);if(!o)throw new Error("header name must be a non-empty string");const i=he.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ze(e))}const i=(e,t)=>he.forEach(e,(e,n)=>o(e,n,t));if(he.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(he.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((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]&&Be[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(he.isObject(e)&&he.isIterable(e)){let n,r,o={};for(const t of e){if(!he.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?he.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Ge(e)){const n=he.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(he.isFunction(t))return t.call(this,e,n);if(he.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Ge(e)){const n=he.findKey(this,e);return!(!n||void 0===this[n]||t&&!He(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Ge(e)){const o=he.findKey(n,e);!o||t&&!He(0,n[o],o,t)||(delete n[o],r=!0)}}return he.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&&!He(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return he.forEach(this,(r,o)=>{const i=he.findKey(n,o);if(i)return t[i]=ze(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete t[o],t[a]=ze(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return he.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&he.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")}getSetCookie(){return this.get("set-cookie")||[]}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[Ue]=this[Ue]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Ge(e);t[r]||(function(e,t){const n=he.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 he.isArray(e)?e.forEach(r):r(e),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),he.reduceDescriptors(qe.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),he.freezeMethods(qe);const $e=qe;function We(e,t){const n=this||Ve,r=t||n,o=$e.from(r.headers);let i=r.data;return he.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Xe(e){return!(!e||!e.__CANCEL__)}const Ke=class extends ve{constructor(e,t,n){super(null==e?"canceled":e,ve.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function Ye(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ve("Request failed with status code "+n.status,[ve.ERR_BAD_REQUEST,ve.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const Je=(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,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-s)))},()=>n&&a(n)]}(n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},Ze=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Qe=e=>(...t)=>he.asap(()=>e(...t)),et=Ae.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ae.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ae.origin),Ae.navigator&&/(msie|trident)/i.test(Ae.navigator.userAgent)):()=>!0,tt=Ae.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];he.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),he.isString(r)&&s.push(`path=${r}`),he.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),he.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function nt(e,t,n){let r=!("string"==typeof(o=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o));var o;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const rt=e=>e instanceof $e?{...e}:e;function ot(e,t){t=t||{};const n={};function r(e,t,n,r){return he.isPlainObject(e)&&he.isPlainObject(t)?he.merge.call({caseless:r},e,t):he.isPlainObject(t)?he.merge({},t):he.isArray(t)?t.slice():t}function o(e,t,n,o){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!he.isUndefined(t))return r(void 0,t)}function a(e,t){return he.isUndefined(t)?he.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t,n)=>o(rt(e),rt(t),0,!0)};return he.forEach(Object.keys({...e,...t}),function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const i=he.hasOwnProp(l,r)?l[r]:o,a=i(e[r],t[r],r);he.isUndefined(a)&&i!==s||(n[r]=a)}),n}const it=e=>{const t=ot({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=$e.from(a),t.url=Ee(nt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),he.isFormData(n))if(Ae.hasStandardBrowserEnv||Ae.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(he.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}if(Ae.hasStandardBrowserEnv&&(r&&he.isFunction(r)&&(r=r(t)),r||!1!==r&&et(t.url))){const e=o&&i&&tt.read(i);e&&a.set(o,e)}return t},at="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=it(e);let o=r.data;const i=$e.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let g=new XMLHttpRequest;function v(){if(!g)return;const r=$e.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders());Ye(function(e){t(e),h()},function(e){n(e),h()},{data:d&&"text"!==d&&"json"!==d?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g}),g=null}g.open(r.method.toUpperCase(),r.url,!0),g.timeout=r.timeout,"onloadend"in g?g.onloadend=v:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(v)},g.onabort=function(){g&&(n(new ve("Request aborted",ve.ECONNABORTED,e,g)),g=null)},g.onerror=function(t){const r=t&&t.message?t.message:"Network Error",o=new ve(r,ve.ERR_NETWORK,e,g);o.event=t||null,n(o),g=null},g.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ke;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new ve(t,o.clarifyTimeoutError?ve.ETIMEDOUT:ve.ECONNABORTED,e,g)),g=null},void 0===o&&i.setContentType(null),"setRequestHeader"in g&&he.forEach(i.toJSON(),function(e,t){g.setRequestHeader(t,e)}),he.isUndefined(r.withCredentials)||(g.withCredentials=!!r.withCredentials),d&&"json"!==d&&(g.responseType=r.responseType),f&&([l,u]=Je(f,!0),g.addEventListener("progress",l)),p&&g.upload&&([s,c]=Je(p),g.upload.addEventListener("progress",s),g.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{g&&(n(!t||t.type?new Ke(null,e,g):t),g.abort(),g=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);m&&-1===Ae.protocols.indexOf(m)?n(new ve("Unsupported protocol "+m+":",ve.ERR_BAD_REQUEST,e)):g.send(o||null)})},st=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof ve?t:new Ke(t instanceof Error?t.message:t))}};let i=t&&setTimeout(()=>{i=null,o(new ve(`timeout of ${t}ms exceeded`,ve.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>he.asap(a),s}},lt=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},ct=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*lt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:ut}=he,dt=(({Request:e,Response:t})=>({Request:e,Response:t}))(he.global),{ReadableStream:pt,TextEncoder:ft}=he.global,ht=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},gt=e=>{e=he.merge.call({skipUndefined:!0},dt,e);const{fetch:t,Request:n,Response:r}=e,o=t?ut(t):"function"==typeof fetch,i=ut(n),a=ut(r);if(!o)return!1;const s=o&&ut(pt),l=o&&("function"==typeof ft?(c=new ft,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=i&&s&&ht(()=>{let e=!1;const t=new pt,r=new n(Ae.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r}),d=a&&s&&ht(()=>he.isReadableStream(new r("").body)),p={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!p[e]&&(p[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new ve(`Response type '${e}' is not supported`,ve.ERR_NOT_SUPPORT,n)})});return async e=>{let{url:o,method:a,data:s,signal:c,cancelToken:f,timeout:h,onDownloadProgress:g,onUploadProgress:v,responseType:m,headers:b,withCredentials:y="same-origin",fetchOptions:w}=it(e),x=t||fetch;m=m?(m+"").toLowerCase():"text";let j=st([c,f&&f.toAbortSignal()],h),O=null;const C=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let S;try{if(v&&u&&"get"!==a&&"head"!==a&&0!==(S=await(async(e,t)=>{const r=he.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(he.isBlob(e))return e.size;if(he.isSpecCompliantForm(e)){const t=new n(Ae.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return he.isArrayBufferView(e)||he.isArrayBuffer(e)?e.byteLength:(he.isURLSearchParams(e)&&(e+=""),he.isString(e)?(await l(e)).byteLength:void 0)})(t):r})(b,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(he.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Ze(S,Je(Qe(v)));s=ct(t.body,65536,e,n)}}he.isString(y)||(y=y?"include":"omit");const t=i&&"credentials"in n.prototype,c={...w,signal:j,method:a.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?y:void 0};O=i&&new n(o,c);let f=await(i?x(O,w):x(o,c));const h=d&&("stream"===m||"response"===m);if(d&&(g||h&&C)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=f[t]});const t=he.toFiniteNumber(f.headers.get("content-length")),[n,o]=g&&Ze(t,Je(Qe(g),!0))||[];f=new r(ct(f.body,65536,n,()=>{o&&o(),C&&C()}),e)}m=m||"text";let _=await p[he.findKey(p,m)||"text"](f,e);return!h&&C&&C(),await new Promise((t,n)=>{Ye(t,n,{data:_,headers:$e.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:O})})}catch(t){if(C&&C(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ve("Network Error",ve.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t});throw ve.from(t,t&&t.code,e,O,t&&t.response)}}},vt=new Map,mt=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=vt;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:gt(t)),c=s;return s},bt=(mt(),{http:null,xhr:at,fetch:{get:mt}});he.forEach(bt,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const yt=e=>`- ${e}`,wt=e=>he.isFunction(e)||null===e||!1===e,xt=function(e,t){e=he.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!wt(r)&&(o=bt[(n=String(r)).toLowerCase()],void 0===o))throw new ve(`Unknown adapter '${n}'`);if(o&&(he.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(yt).join("\n"):" "+yt(e[0]):"as no adapter specified";throw new ve("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return o};function jt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ke(null,e)}function Ot(e){return jt(e),e.headers=$e.from(e.headers),e.data=We.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),xt(e.adapter||Ve.adapter,e)(e).then(function(t){return jt(e),t.data=We.call(e,e.transformResponse,t),t.headers=$e.from(t.headers),t},function(t){return Xe(t)||(jt(e),t&&t.response&&(t.response.data=We.call(e,e.transformResponse,t.response),t.response.headers=$e.from(t.response.headers))),Promise.reject(t)})}const Ct="1.14.0",St={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{St[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const _t={};St.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ct+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new ve(r(o," has been removed"+(t?" in "+t:"")),ve.ERR_DEPRECATED);return t&&!_t[o]&&(_t[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},St.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Et={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ve("options must be an object",ve.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new ve("option "+i+" must be "+n,ve.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new ve("Unknown option "+i,ve.ERR_BAD_OPTION)}},validators:St},It=Et.validators;class kt{constructor(e){this.defaults=e||{},this.interceptors={request:new Ie,response:new Ie}}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=ot(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Et.assertOptions(n,{silentJSONParsing:It.transitional(It.boolean),forcedJSONParsing:It.transitional(It.boolean),clarifyTimeoutError:It.transitional(It.boolean),legacyInterceptorReqResOrdering:It.transitional(It.boolean)},!1),null!=r&&(he.isFunction(r)?t.paramsSerializer={serialize:r}:Et.assertOptions(r,{encode:It.function,serialize:It.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Et.assertOptions(t,{baseUrl:It.spelling("baseURL"),withXsrfToken:It.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&he.merge(o.common,o[t.method]);o&&he.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=$e.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||ke;n&&n.legacyInterceptorReqResOrdering?a.unshift(e.fulfilled,e.rejected):a.push(e.fulfilled,e.rejected)});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Ot.bind(this),void 0];for(e.unshift(...a),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(e){t.call(this,e);break}}try{c=Ot.call(this,p)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ee(nt((e=ot(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}he.forEach(["delete","get","head","options"],function(e){kt.prototype[e]=function(t,n){return this.request(ot(n||{},{method:e,url:t,data:(n||{}).data}))}}),he.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(ot(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}kt.prototype[e]=t(),kt.prototype[e+"Form"]=t(!0)});const Pt=kt;class Nt{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 Ke(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new Nt(function(t){e=t}),cancel:e}}}const Tt=Nt,Rt={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Rt).forEach(([e,t])=>{Rt[t]=e});const Lt=Rt,Dt=function e(t){const n=new Pt(t),r=C(Pt.prototype.request,n);return he.extend(r,Pt.prototype,n,{allOwnKeys:!0}),he.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(ot(t,n))},r}(Ve);Dt.Axios=Pt,Dt.CanceledError=Ke,Dt.CancelToken=Tt,Dt.isCancel=Xe,Dt.VERSION=Ct,Dt.toFormData=xe,Dt.AxiosError=ve,Dt.Cancel=Dt.CanceledError,Dt.all=function(e){return Promise.all(e)},Dt.spread=function(e){return function(t){return e.apply(null,t)}},Dt.isAxiosError=function(e){return he.isObject(e)&&!0===e.isAxiosError},Dt.mergeConfig=ot,Dt.AxiosHeaders=$e,Dt.formToJSON=e=>Fe(he.isHTMLForm(e)?new FormData(e):e),Dt.getAdapter=xt,Dt.HttpStatusCode=Lt,Dt.default=Dt;const At=Dt;function Ft(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 Mt(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)?Mt(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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Mt(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 Vt(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Bt(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Bt(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Bt(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Bt(d,"constructor",c),Bt(c,"constructor",l),l.displayName="GeneratorFunction",Bt(c,o,"GeneratorFunction"),Bt(d),Bt(d,o,"Generator"),Bt(d,r,function(){return this}),Bt(d,"toString",function(){return"[object Generator]"}),(Vt=function(){return{w:i,m:p}})()}function Bt(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Bt=function(e,t,n,r){function i(t,n){Bt(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Bt(e,t,n,r)}var Ut=["fas ","far ","fab ","gtn "],Gt=function(e){return"string"==typeof e&&Ut.some(function(t){return e.startsWith(t)})},zt=function(){var e=x(Vt().m(function e(t){var n,r,o,i,a=arguments;return Vt().w(function(e){for(;;)switch(e.p=e.n){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:5,r=a.length>2&&void 0!==a[2]?a[2]:50,e.p=1,e.n=2,At.get(j.libraryApi+"/get-svg-font",{params:{name:t.toLowerCase()}});case 2:if(o=e.v,!1===(i=o.data).data){e.n=3;break}return e.a(2,btoa(i.data));case 3:case 6:return e.a(2,null);case 4:if(e.p=4,e.v,!(n>0)){e.n=6;break}return e.n=5,new Promise(function(e){return setTimeout(e,r)});case 5:return e.a(2,zt(t,n-1,r))}},e,null,[[1,4]])}));return function(t){return e.apply(this,arguments)}}(),Ht=function(){var e=x(Vt().m(function e(t){var n,r,o,i,a,s,l,c,u,d,p,f,h,g,v,m;return Vt().w(function(e){for(;;)switch(e.n){case 0:if(n=t.attributes,r=t.clientId,n){e.n=1;break}return e.a(2,null);case 1:o={},i=!1,a=0,s=Object.entries(n);case 2:if(!(a<s.length)){e.n=5;break}if(l=y(s[a],2),c=l[0],u=l[1],!Gt(u)){e.n=4;break}if(d="".concat(c,"Type"),p="".concat(c,"SVG"),f=n[d],h=n[p],"icon"!==f||h){e.n=4;break}return e.n=3,zt(u);case 3:(g=e.v)?(o[d]="svg",o[p]=g,i=!0,v={reset:"color: inherit",green:"color: #4caf50; font-weight: bold",cyan:"color: #00bcd4; font-weight: bold",yellow:"color: #ff9800; font-weight: bold",dim:"color: #9e9e9e",red:"color: #f44336; font-weight: bold"},console.log("%c[Success]%c ".concat(c," (").concat(u,")\n%c         └─ from: %c").concat(t.name," (").concat(r,")\n"),v.green,v.cyan,v.dim,v.yellow)):(m={reset:"color: inherit",green:"color: #4caf50; font-weight: bold",cyan:"color: #00bcd4; font-weight: bold",yellow:"color: #ff9800; font-weight: bold",dim:"color: #9e9e9e",red:"color: #f44336; font-weight: bold"},console.log("%c[Failed]%c ".concat(c," (").concat(u,")\n%c         └─ from: %c").concat(t.name," (").concat(r,")\n"),m.red,m.cyan,m.dim,m.yellow));case 4:a++,e.n=2;break;case 5:return e.a(2,i?{clientId:r,updatedAttributes:o}:null)}},e)}));return function(t){return e.apply(this,arguments)}}(),qt=function(){var e=x(Vt().m(function e(t){var n,r,o,i,a,s,l;return Vt().w(function(e){for(;;)switch(e.p=e.n){case 0:n=[],r=Ft(t),e.p=1,r.s();case 2:if((o=r.n()).done){e.n=6;break}return i=o.value,e.n=3,Ht(i);case 3:if((a=e.v)&&n.push(a),!(i.innerBlocks&&i.innerBlocks.length>0)){e.n=5;break}return e.n=4,qt(i.innerBlocks);case 4:s=e.v,n.push.apply(n,b(s));case 5:e.n=2;break;case 6:e.n=8;break;case 7:e.p=7,l=e.v,r.e(l);case 8:return e.p=8,r.f(),e.f(8);case 9:return e.a(2,n)}},e,null,[[1,7,8,9]])}));return function(t){return e.apply(this,arguments)}}(),$t=function(){var e=x(Vt().m(function e(){var t,n,r,o;return Vt().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t={success:!1,convertedCount:0,errors:[]},n=function(){var e=x(Vt().m(function e(){var n,r,o,i,a,s,l;return Vt().w(function(e){for(;;)switch(e.n){case 0:if((n=(0,u.select)("core/block-editor").getBlocks())&&0!==n.length){e.n=1;break}return console.log("[ConvertToSVG] No blocks found in the editor"),t.success=!0,e.a(2,t);case 1:return console.log("[ConvertToSVG] Starting conversion... Found ".concat(n.length," top-level blocks")),e.n=2,qt(n);case 2:r=e.v,o=(0,u.dispatch)("core/block-editor"),i=o.updateBlockAttributes,a=Ft(r);try{for(a.s();!(s=a.n()).done;){l=s.value;try{i(l.clientId,l.updatedAttributes),t.convertedCount++}catch(e){t.errors.push({clientId:l.clientId,error:e.message})}}}catch(e){a.e(e)}finally{a.f()}t.success=!0,console.log("[ConvertToSVG] Conversion complete. Converted ".concat(t.convertedCount," icon(s) to SVG."));case 3:return e.a(2)}},e)}));return function(){return e.apply(this,arguments)}}(),e.p=1,r=(0,u.select)(O.store).getRenderingMode(),(0,(0,u.dispatch)("core/editor").setRenderingMode)("post-only"),"post-only"!==r){e.n=3;break}return e.n=2,n();case 2:e.n=4;break;case 3:return e.n=4,new Promise(function(e){setTimeout(x(Vt().m(function t(){return Vt().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,n();case 1:e();case 2:return t.a(2)}},t)})),2500)});case 4:e.n=6;break;case 5:e.p=5,o=e.v,t.errors.push({error:o.message});case 6:return e.a(2,t)}},e,null,[[1,5]])}));return function(){return e.apply(this,arguments)}}();window.gutenverseConvertToSvg=$t;const Wt=window.wp.plugins,Xt=window.wp.editPost,Kt=window.wp.blocks;var Yt=n(226),Jt=n.n(Yt);const Zt=window.wp.notices,Qt=gutenverseCore.icons;var en=function(){var e=(0,u.useSelect)(function(e){return e("core/blocks")},[]).getBlockTypes,t=[];return e().map(function(e){var n=e.name,r=e.allowCopyStyle;n.startsWith("gutenverse")&&!0===r&&(t=[].concat(b(t),[n]))}),t},tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r;return!0===(null===(r=e[n])||void 0===r?void 0:r.copyStyle)&&(t[n]=!0),t},{})};(0,Wt.registerPlugin)("gutenverse-block-menu-setting-copy",{render:function(){var e=(0,u.useDispatch)(Zt.store).createInfoNotice,t=en(),n=(0,u.useSelect)(function(e){return e("core/block-editor")},[]).getSelectedBlock,r=O.PluginBlockSettingsMenuItem?O.PluginBlockSettingsMenuItem:Xt.PluginBlockSettingsMenuItem;return r?(0,a.jsx)(r,{allowedBlocks:t,label:(0,i.__)("Copy Style","gutenverse"),icon:(0,a.jsx)(Qt.GradientIconCopySVG,{}),onClick:function(){var t=n(),r=t.attributes,o=t.name,a=(0,Kt.getBlockType)(o),s=a.title,l=a.attributes,c=a.styleGroup,u={},d=tn(l);Object.keys(d).forEach(function(e){u[e]=r[e]}),u={gutenverse:!0,type:o,styleGroup:c,attributes:u},Jt()(JSON.stringify(u)).then(function(){e((0,i.sprintf)((0,i.__)('Gutenverse "%s" Style Copied',"gutenverse"),s),{type:"snackbar",isDismissible:!0})})}}):null}});const nn=window.wp.blockEditor,rn=[..."abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~"],on=[..."0123456789"],an=[..."CDEHKMPRTUWXY012458"],sn=[..."!\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"],ln=[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"],cn=(e,t)=>e[t]+(e[t+1]<<8),un=(e,t,n)=>{const r=t.length,o=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let a="",s=0;for(;s<e;){const l=n(i);let c=0;for(;c<i&&s<e;){const e=cn(l,c);c+=2,e>o||(a+=t[e%r],s++)}}return a},dn=new Set([void 0,"hex","base64","url-safe","numeric","distinguishable","ascii-printable","alphanumeric"]),pn=(e,t,n)=>({length:r,type:o,characters:i})=>{if(!(r>=0&&Number.isFinite(r)))throw new TypeError("Expected a `length` to be a non-negative finite number");if(void 0!==o&&void 0!==i)throw new TypeError("Expected either `type` or `characters`");if(void 0!==i&&"string"!=typeof i)throw new TypeError("Expected `characters` to be string");if(!dn.has(o))throw new TypeError(`Unknown type: ${o}`);if(void 0===o&&void 0===i&&(o="hex"),"hex"===o||void 0===o&&void 0===i)return t(Math.ceil(.5*r),"hex",r);if("base64"===o)return t(Math.ceil(.75*r),"base64",r);if("url-safe"===o)return e(r,rn,n);if("numeric"===o)return e(r,on,n);if("distinguishable"===o)return e(r,an,n);if("ascii-printable"===o)return e(r,sn,n);if("alphanumeric"===o)return e(r,ln,n);if(0===i.length)throw new TypeError("Expected `characters` string length to be greater than or equal to 1");if(i.length>65536)throw new TypeError("Expected `characters` string length to be less or equal to 65536");return e(r,i,n)},fn=e=>[...e].map(e=>e.toString(16).padStart(2,"0")).join(""),hn=e=>btoa(String.fromCodePoint(...e));function gn(e){const t=new Uint8Array(e);for(let n=0;n<e;n+=65536)t.set(crypto.getRandomValues(new Uint8Array(Math.min(65536,e-n))),n);return t}function vn(e,t,n){const r=gn(e);return("hex"===t?fn:hn)(r).slice(0,n)}const mn=function(e,t){return pn(un,e,t)}(vn,gn);function bn(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 yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bn(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}pn(async(e,t,n)=>{const r=t.length,o=Math.floor(65536/r)*r-1,i=2*Math.ceil(1.1*e);let a="",s=0;for(;s<e;){const l=await n(i);let c=0;for(;c<i&&s<e;){const e=cn(l,c);c+=2,e>o||(a+=t[e%r],s++)}}return a},vn,gn),(0,Wt.registerPlugin)("gutenverse-block-menu-setting-paste",{render:function(){var e=(0,u.useDispatch)(Zt.store).createInfoNotice,t=(0,u.useDispatch)(nn.store).updateBlockAttributes,n=en(),r=(0,u.useSelect)(function(e){return e("core/block-editor")},[]).getSelectedBlock,o=function(t){e(t,{type:"snackbar",isDismissible:!0})},s=O.PluginBlockSettingsMenuItem?O.PluginBlockSettingsMenuItem:Xt.PluginBlockSettingsMenuItem;return s?(0,a.jsx)(s,{allowedBlocks:n,label:(0,i.__)("Paste Style","gutenverse"),icon:(0,a.jsx)(Qt.GradientIconPasteSVG,{}),onClick:function(){navigator.clipboard?navigator.clipboard.readText().then(function(e){var n=JSON.parse(e),a=n.gutenverse,s=n.type,l=n.styleGroup,c=n.attributes;if(a){var u=r(),d=u.clientId,p=u.name,f=(0,Kt.getBlockType)(p),h=null==f?void 0:f.styleGroup,g=(null==f?void 0:f.attributes)||{},v=tn(g),m=Object.keys(c||{}).reduce(function(e,t){return v[t]&&(e[t]=c[t]),e},{}),b=p===s;b||!b&&l&&l===h?(t(d,yn(yn({},m),{},{refreshStyleId:"refresh-"+mn({length:6,type:"alphanumeric"})})),o((0,i.__)("Gutenverse Style Pasted","gutenverse"))):o((0,i.__)("Failed! Please paste style to the same block type or compatible style group","gutenverse"))}}).catch(function(){o((0,i.__)("Failed to Paste Style","gutenverse"))}):o((0,i.__)("Unable to read Paste Style","gutenverse"))}}):null}});const wn=window.React;var xn=n.n(wn),jn=n(3108),On=n.n(jn);function Cn(){return Cn=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},Cn.apply(this,arguments)}var Sn=(0,wn.forwardRef)(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,i=void 0===o?24:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return xn().createElement("svg",Cn({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),xn().createElement("line",{x1:"12",y1:"2",x2:"12",y2:"6"}),xn().createElement("line",{x1:"12",y1:"18",x2:"12",y2:"22"}),xn().createElement("line",{x1:"4.93",y1:"4.93",x2:"7.76",y2:"7.76"}),xn().createElement("line",{x1:"16.24",y1:"16.24",x2:"19.07",y2:"19.07"}),xn().createElement("line",{x1:"2",y1:"12",x2:"6",y2:"12"}),xn().createElement("line",{x1:"18",y1:"12",x2:"22",y2:"12"}),xn().createElement("line",{x1:"4.93",y1:"19.07",x2:"7.76",y2:"16.24"}),xn().createElement("line",{x1:"16.24",y1:"7.76",x2:"19.07",y2:"4.93"}))});Sn.propTypes={color:On().string,size:On().oneOfType([On().string,On().number])},Sn.displayName="Loader";const _n=Sn;var En=n(3698),In=n.n(En);const kn=gutenverseCore.requests;var Pn=n(9686),Nn=n.n(Pn),Tn=n(8557),Rn=n.n(Tn);const Ln=function(e){var t=e.icon,n=e.title,r=e.description,o=e.buttonText,i=e.onClick,s=e.onClose,l=e.cancelButtonText,c=e.cancelButton,u=void 0!==c&&c,d=e.scheme,p=void 0===d?"normal":d,f=e.confirmation,h=void 0!==f&&f,g=e.isChecked,v=void 0!==g&&g,m=e.setIsChecked,b=void 0===m?function(){}:m,y=e.checkBoxText,w=void 0===y?"":y;return(0,a.jsx)("div",{id:"gutenverse-warn",children:(0,a.jsx)("div",{className:"gutenverse-editor-warn",children:(0,a.jsxs)("div",{className:"gutenverse-warn-wrapper notice-content ".concat(p),children:[(0,a.jsx)("div",{className:"close-icon",onClick:function(){return s()},children:(0,a.jsx)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M12.998 4.5493L11.4488 3L7.99805 6.52113L4.54734 3L2.99805 4.5493L6.51917 8L2.99805 11.4507L4.54734 13L7.99805 9.47887L11.4488 13L12.998 11.4507L9.47692 8L12.998 4.5493Z",fill:"#99A2A9"})})}),(0,a.jsx)("div",{className:"lock-icon",children:t}),(0,a.jsx)("h3",{children:n}),(0,a.jsx)("p",{children:r}),(0,a.jsxs)("div",{className:"buttons",children:[(0,a.jsx)("button",{className:"primary",onClick:function(){return i()},children:o}),u&&(0,a.jsx)("button",{className:"cancel",onClick:function(){return s()},children:l})]}),h&&(0,a.jsxs)("label",{className:"checkbox ".concat(v?"checked":""),children:[(0,a.jsx)("input",{type:"checkbox",checked:v,onChange:function(e){b(e.target.checked)}}),(0,a.jsx)("span",{children:w})]})]})})})};var Dn=function(e,t){var n,r=null!=t?t:{},o=r.keyword,i=r.license,a=r.categories,s=r.author,l=r.like,c=(r.status,{});return a&&(null==a||a.forEach(function(e){e.parent in c?c[e.parent].push(e.id):c[e.parent]=[e.id]})),null===(n=e)||void 0===n?void 0:n.filter(function(e){var t,n,r=e.data,u=e.author,d=e.categories,p=e.like,f=r.name,h=(r.status,u.name),g=!0,v=!0,m=!0,b=!0,y=!0;return l&&(m=p),o&&(v=f.toLowerCase().includes(o.toLowerCase())),i&&!Nn()(i)&&(t=null==r?void 0:r.available,g=!(!Array.isArray(i)||!Array.isArray(t))&&(1===t.length&&""===t[0]||i.some(function(e){return t.includes(null==e?void 0:e.value)}))),Nn()(a)||(n=!1,Object.keys(c).forEach(function(e){d.some(function(t){return c[e].includes(t.id.toString())})&&(n=!0)}),b=n),s&&(y=h!==s),g&&v&&m&&b&&y&&!0})},An=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}},Fn=function(e,t,n){var r=(null!=t?t:{}).paging,o=Dn(e,t).map(function(e){var t=e.id,n=e.name,r=e.data,o=e.like,i=e.author,a=e.customAPI,s=e.customArgs;return{id:t,pro:"1"===r.pro,licenseType:r.tier,slug:r.slug,title:n,cover:r.cover,like:o,demo:r.demo,compatibleVersion:r.compatible_version,requirements:r.requirements,customAPI:a,customArgs:s,author:i,listedIn:r.listed_in}});return An(o,r,n)},Mn=function(e,t,n,r){var o,i;return o="layout"===r?Dn(e,n):Un(e,n),t&&(i=t.map(function(e){return e.count=Bn(o,e.id),e.childs&&(e.childs=e.childs.map(function(e){return e.count=Bn(o,parseInt(e.id)),e})),e})),b(i).sort(function(e,t){return t.count-e.count})},Vn=function(e){return(0,a.jsx)("div",{className:"library-export-notice",children:(0,a.jsx)("div",{className:"library-export-notice-container",children:(0,a.jsxs)("div",{className:"importing-notice",children:[(0,a.jsxs)("div",{className:"notice-inner",children:[(0,a.jsx)("span",{children:e.message}),(0,a.jsx)("span",{children:e.progress})]}),(0,a.jsx)("div",{className:"bar-progress-container",children:(0,a.jsx)("div",{className:"notice-bar-progress "+"".concat(function(){switch(e.progress){case"1/4":return"twenty-five";case"2/4":return"fifty";case"3/4":return"seventy-five";case"4/4":return"hundred";default:return"zero"}}(),"-percent")})})]})})})},Bn=function(e,t){var n=0;return e.map(function(e){e.categories.map(function(e){e.id===t&&n++})}),n},Un=function(e,t){var n=null!=t?t:{},r=n.license,o=n.categories,i=n.author,a=n.like,s=(n.status,{});return o&&(null==o||o.forEach(function(e){e.parent in s?s[e.parent].push(e.id):s[e.parent]=[e.id]})),e.filter(function(e){var t,n,l,c=e.data,u=e.author,d=e.categories,p=e.like,f=(c.status,u.name),h=!0,g=!0,v=!0,m=!0;return a&&(m=p),r&&!Nn()(r)&&(t=null==c?void 0:c.available,h=!(!Array.isArray(r)||!Array.isArray(t))&&(1===t.length&&""===t[0]||r.some(function(e){return t.includes(null==e?void 0:e.value)}))),Nn()(o)||(n=0,(l=Object.keys(s)).forEach(function(e){d.some(function(t){return s[e].includes(t.id.toString())})&&n++}),g=n===l.length),i&&(v=f===i),h&&g&&v&&m})},Gn=function(e){var t,n=e.plugins,r=e.requirements,o=e.compatibleVersion,i=(window.GutenverseConfig?window.GutenverseConfig:window.GutenverseDashboard).pluginVersions,a=(null==i||null===(t=i.gutenverse)||void 0===t?void 0:t.version)||"0.0.0",s=null==r?void 0:r.map(function(e){var t=n[e.slug];return void 0===t?e.installed=!1:(e.installed=!0,e.active=t.active,Nn()(e.version)?e.validVersion=!0:e.validVersion=Rn().gte(t.version,e.version||"0.0.0")),e}).filter(function(e){return!1===e.installed||!1===e.active||!1===e.validVersion});return Rn().gte(a,o||"0.0.0")||(s=[{installed:!0,name:"Gutenverse",slug:"gutenverse",version:a}].concat(b(s))),s},zn=function(e,t){(0,u.dispatch)("gutenverse/library").layoutLike({slug:e,flag:t}),(0,kn.saveLayoutLikeState)({slug:e,state:t})},Hn=function(e,t,n){var r=(null!=t?t:{}).paging,o=Un(e,t).map(function(e){var t=e.id,n=e.data,r=e.like,o=e.customAPI,i=e.customArgs,a=e.author,s=e.name,l=e.categories,c=s;return{id:t,pro:"1"===n.pro,licenseType:n.tier,categories:l,slug:n.slug,cover:n.cover,like:r,compatibleVersion:n.compatible_version,requirements:n.requirements,customAPI:o,customArgs:i,author:a,name:c=c.replace("PRO","").replace("&#8211;","").replace("Dark","- Dark").replace("Free","")}});return An(o,r,n)},qn=function(e,t){(0,u.dispatch)("gutenverse/library").sectionLike({slug:e,flag:t}),(0,kn.saveSectionLikeState)({slug:e,state:t})},$n=function(e){var t=e.resolve,n=e.blocks,r=e.setLibraryError,o=e.supportGlobalImport,s=void 0!==o&&o,l=e.processGlobalStyle,c=void 0===l?function(){}:l,d=(0,u.useDispatch)(O.store).setRenderingMode,p=(0,u.dispatch)("core/block-editor").insertBlocks;return(0,a.jsx)(Ln,{icon:(0,a.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.4286 0.517446C11.0653 -0.172482 9.93558 -0.172482 9.5723 0.517446L0.122776 18.4514C0.0377128 18.6121 -0.0044578 18.7922 0.000372931 18.9742C0.00520366 19.1562 0.0568709 19.3338 0.150341 19.4898C0.24381 19.6457 0.375894 19.7747 0.533723 19.8641C0.691551 19.9535 0.869741 20.0004 1.05093 20H19.95C20.131 20.0004 20.3091 19.9536 20.4668 19.8642C20.6246 19.7749 20.7565 19.646 20.8499 19.4901C20.9433 19.3342 20.9949 19.1567 20.9996 18.9749C21.0044 18.793 20.9622 18.613 20.8771 18.4524L11.4286 0.517446ZM11.5504 16.8352H9.45051V14.7253H11.5504V16.8352ZM9.45051 12.6154V7.34077H11.5504L11.5515 12.6154H9.45051Z",fill:"#FFB200"})}),title:(0,i.__)("Import Section Notice","gutenverse"),description:(0,i.__)("We can't import content because the Post Content is missing from your Template. Would you like to switch to Post View instead in order to import the content?","gutenverse"),buttonText:(0,i.__)("Keep Import","gutenverse"),cancelButtonText:(0,i.__)("Dismiss","gutenverse"),cancelButton:!0,onClick:function(){s&&c(),t(),r(!1),d("post-only"),setTimeout(function(){p(n)},500)},onClose:function(){r(!1),t()}})};const Wn=gutenverseCore.components,Xn=gutenverseCore.router,Kn=window.wp.apiFetch;var Yn=n.n(Kn),Jn=Object.defineProperty,Zn=(e,t,n)=>((e,t,n)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);const Qn={Log(...e){console&&console.log&&console.log(...e)},Error(...e){console&&console.error&&console.error(...e)},Warn(...e){console&&console.warn&&console.warn(...e)},Debug(...e){console&&console.debug&&console.debug(...e)}},er=2147483647;function tr(e){return typeof e>"u"||"function"==typeof e||"object"==typeof e&&null!==e}function nr(e){const t={};Object.entries(e).forEach(([e,n])=>{tr(n)||(t[e]=n)});const{sandbox:n}=e;return n&&n.ctx&&n.token&&(t.s_ctx_ts=n.ctx,t.sandbox=n.token),t}function rr(){return typeof window>"u"}function or(e,t){if(null==e)throw new Error(t)}class ir{constructor(e){Zn(this,"styleElement"),Zn(this,"bodyScrollDisableClassName"),Zn(this,"isFlashingBrowser"),Zn(this,"overflow",{x:0,y:0}),Zn(this,"metaColorSchemeValue",null),Zn(this,"metaColorSchemeElement",null),this.guid=e,this.bodyScrollDisableClassName=`is-fs-checkout-open-${this.guid}`,this.styleElement=document.createElement("style"),this.styleElement.textContent+=this.getBasicStyle(),this.isFlashingBrowser=function(){let e=!1;try{const t=navigator.userAgent.toLowerCase();/edge\/|trident\/|msie /.test(t)?e=!0:-1!==t.indexOf("safari")&&(t.indexOf("chrome")>-1||(e=!0))}catch{}return e}()||!rr()&&!!document.querySelector("#___gatsby"),this.metaColorSchemeElement=document.head.querySelector('meta[name="color-scheme"]')}addStyle(e){this.styleElement.textContent+=e}attach(){return document.head.appendChild(this.styleElement),this}remove(){return document.head.contains(this.styleElement)&&document.head.removeChild(this.styleElement),this}disableBodyScroll(){this.backupScrollPosition(),document.body.classList.add(this.bodyScrollDisableClassName)}enableBodyScroll(){document.body.classList.remove(this.bodyScrollDisableClassName),this.restoreScrollPosition()}disableMetaColorScheme(){this.metaColorSchemeElement&&(this.metaColorSchemeValue=this.metaColorSchemeElement.getAttribute("content"),this.metaColorSchemeElement.setAttribute("content","light"))}enableMetaColorScheme(){this.metaColorSchemeElement&&this.metaColorSchemeValue&&(this.metaColorSchemeElement.setAttribute("content",this.metaColorSchemeValue),this.metaColorSchemeValue=null)}getBasicStyle(){return`body.${this.bodyScrollDisableClassName} { overflow: hidden !important; }`}backupScrollPosition(){this.overflow={x:document.documentElement.scrollTop,y:document.documentElement.scrollLeft}}restoreScrollPosition(){document.documentElement.scrollTop=this.overflow.x,document.documentElement.scrollLeft=this.overflow.y}}const ar=class e{constructor(e,t,n="Loading Freemius Checkout"){Zn(this,"loaderElement"),Zn(this,"isOpen",!1),Zn(this,"loaderElementId"),this.style=e,this.loaderElementId=`fs-loader-${this.style.guid}`,this.loaderElement=document.createElement("div"),this.loaderElement.id=this.loaderElementId,this.loaderElement.innerHTML=`<img src="${t}" alt="${n}" />`,this.style.addStyle(this.getStyle())}show(){return this.isOpen||(this.loaderElement.classList.add("show"),document.body.appendChild(this.loaderElement),this.isOpen=!0),this}hide(){return this.isOpen?(this.loaderElement.classList.remove("show"),this.isOpen=!1,setTimeout(()=>{this.hideImmediate()},e.TRANSITION_TIME),this):this}hideImmediate(){return this.loaderElement.parentNode&&(this.loaderElement.classList.remove("show"),this.loaderElement.parentNode.removeChild(this.loaderElement),this.isOpen=!1),this}getStyle(){return`#${this.loaderElementId} { display: none; position: fixed; z-index: ${er-1}; width: 100%; height: 100%; top: 0; left: 0; right: 0; bottom: 0; text-align: left; background: rgba(0, 0, 0, 0.6); transition: opacity ${e.TRANSITION_TIME}ms ease-out; will-change: opacity; opacity: 0; } #${this.loaderElementId}.show { opacity: 1; display: block; } #${this.loaderElementId} img { position: absolute; top: 40%; left: 50%; width: auto; height: auto; margin-left: -25px; background: #fff; padding: 10px; border-radius: 50%; box-shadow: 2px 2px 2px rgba(0,0,0,0.1); }`}};Zn(ar,"TRANSITION_TIME",200);let sr=ar;const lr=class e{constructor(e,t,n,r,o){Zn(this,"postman",null),Zn(this,"iFrame"),Zn(this,"iFrameWrapper"),Zn(this,"loadedEventListeners",new Set),Zn(this,"closedEventListeners",new Set),this.baseUrl=e,this.visibleClass=r,this.checkoutOptions=o;const{iFrame:i,iFrameWrapper:a}=this.attachIFrame(e,t,n);this.iFrame=i,this.iFrameWrapper=a,this.addEventListeners()}static getWrapperID(e){return`${e}-wrapper`}close(){this.postman?.post("close",null)}onClosed(e){this.closedEventListeners.add(e)}onLoaded(e){this.loadedEventListeners.add(e)}addToExitIntent(e){e.addListener(()=>{this.postman?.post("exit_intent",null),this.checkoutOptions.onExitIntent?.()})}attachIFrame(t,n,r){const o=`${t}/?${function(e){const t=[];return Object.keys(e).forEach(n=>{const r=function(e){return tr(e)?null:null===e?"null":!0===e?"1":!1===e?"0":encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")}(e[n]);null!==r&&t.push(`${n}=${r}`)}),t.join("&")}(n)}#${encodeURIComponent(document.location.href)}`,i=document.createElement("iframe");i.id=r,i.src=o,i.setAttribute("allowTransparency","true"),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("style","background: rgba(0,0,0,0.003); border: 0 none transparent;"),i.setAttribute("frameborder","0"),i.setAttribute("data-testid",i.id);const a=this.checkoutOptions.modal_title??e.DEFAULT_TITLE;i.setAttribute("title",a);const s=document.createElement("div");return s.setAttribute("role","dialog"),s.setAttribute("aria-label",a),s.setAttribute("aria-modal","true"),s.setAttribute("data-testid",`${i.id}-wrapper`),s.id=e.getWrapperID(r),s.appendChild(i),document.body.appendChild(s),{iFrame:i,iFrameWrapper:s}}addEventListeners(){const{success:e,purchaseCompleted:t,cancel:n,track:r,afterOpen:o,afterClose:i}=this.checkoutOptions;this.postman=function(e,t){const n=e.contentWindow,r=e.src,o={};if(!n||!r)return null;const i=function(e){if(!(e&&e.origin&&e.origin.indexOf("js.stripe.com")>0||e.origin.indexOf("www.paypal.com")>0)&&e.origin===t&&e&&e.data&&"string"==typeof e.data&&"{"===e.data.charAt(0))try{const t=JSON.parse(e.data);"object"==typeof t&&t.type&&o[t.type]&&o[t.type].forEach(e=>{e(t.data)})}catch(e){Qn.Error(e)}};return window.addEventListener("message",i),{on(e,t){o[e]||(o[e]=[]),o[e].push(t)},one(e,t,n=!1){n&&delete o[e],!o[e]&&this.on(e,t)},destroy(){window.removeEventListener("message",i)},post(e,t){n.postMessage(JSON.stringify({type:e,data:t}),r.replace(/([^:]+:\/\/[^/]+).*/,"$1"))}}}(this.iFrame,this.baseUrl),this.postman?.one("upgraded",t=>{try{e?.(t)}catch(e){Qn.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),i?.()},!0),this.postman?.one("purchaseCompleted",e=>{try{t?.(e)}catch(e){Qn.Error(e)}},!0),this.postman?.one("canceled",()=>{try{n?.()}catch(e){Qn.Error(e)}this.dispatchOnClosed(),this.removeIFrameAndPostman(),i?.()},!0),this.postman?.on("track",e=>{try{r?.(e.event,e)}catch(e){Qn.Error(e)}}),this.postman?.one("loaded",()=>{this.dispatchOnLoaded(),this.iFrame?.classList.add(this.visibleClass);try{o?.()}catch(e){Qn.Error(e)}},!0)}removeIFrameAndPostman(){this.postman?.destroy(),this.postman=null,this.iFrame.remove(),this.iFrameWrapper.remove(),this.closedEventListeners.clear(),this.loadedEventListeners.clear()}dispatchOnLoaded(){this.loadedEventListeners.forEach(e=>e())}dispatchOnClosed(){this.closedEventListeners.forEach(e=>e())}};Zn(lr,"DEFAULT_TITLE","Checkout");let cr=lr;const ur=class e{constructor(e,t,n){Zn(this,"iFrameID"),this.style=e,this.options=t,this.baseUrl=n,this.iFrameID=`fs-checkout-page-${this.style.guid}`}create(t){const n={...this.options,...t};return new cr(this.baseUrl,this.getQueryParams(n),this.iFrameID,e.VISIBLE_CLASS,n)}addStyle(){this.style.addStyle(this.getStyle())}getQueryParams(e){return{mode:"dialog",guid:this.style.guid,_fs_checkout:!0,...nr(e)}}getStyle(){return`#${this.iFrameID} { z-index: ${er-1}; background: rgba(0,0,0,0.003); border: 0 none transparent; visibility: ${this.style.isFlashingBrowser?"hidden":"visible"}; margin: 0; padding: 0; position: fixed; left: 0px; top: 0px; width: 100%; height: 100%; -webkit-tap-highlight-color: transparent; overflow: hidden; } #${this.iFrameID}.${e.VISIBLE_CLASS} { visibility: visible; } #${cr.getWrapperID(this.iFrameID)} { z-index: ${er-1}; position: fixed; top: 0px; left: 0px; width: 100%; height: 100%; overflow: hidden; }`}};Zn(ur,"VISIBLE_CLASS","show");let dr=ur;class pr{constructor(e,t,n,r,o){Zn(this,"checkoutIFrameBuilder"),Zn(this,"checkoutIFrame",null),Zn(this,"lastFocusedElement",null),this.style=e,this.exitIntent=t,this.loader=n,this.checkoutIFrameBuilder=new dr(this.style,o,r),this.checkoutIFrameBuilder.addStyle()}isOpen(){return null!==this.checkoutIFrame}open(e){return this.isOpen()||(this.backupFocusedElement(),this.style.attach(),this.style.disableBodyScroll(),this.style.disableMetaColorScheme(),this.loader.show(),this.exitIntent.attach(),this.checkoutIFrame=this.checkoutIFrameBuilder.create(e),this.checkoutIFrame.onLoaded(this.onLoaded.bind(this)),this.checkoutIFrame.onClosed(this.onClosed.bind(this)),this.checkoutIFrame.addToExitIntent(this.exitIntent)),this}close(){return this.checkoutIFrame?.close(),this.loader.hideImmediate(),this}onLoaded(){this.loader.hide()}onClosed(){this.checkoutIFrame=null,this.loader.hide(),this.style.enableBodyScroll(),this.style.enableMetaColorScheme(),this.exitIntent.detach(),this.restoreFocusedElement(),this.style.remove()}backupFocusedElement(){this.lastFocusedElement=document.activeElement??null}restoreFocusedElement(){this.lastFocusedElement&&(this.lastFocusedElement.focus?.(),this.lastFocusedElement=null)}}class fr{constructor(e){Zn(this,"exitIntentId"),Zn(this,"exitIntentDiv",null),Zn(this,"clearExitIntentListener",null),Zn(this,"listeners",[]),this.style=e,this.exitIntentId=`fs-exit-intent-${this.style.guid}`,this.style.addStyle(this.getStyle())}isAttached(){return null!==this.exitIntentDiv}addListener(...e){this.listeners.push(...e)}attach(...e){if(e&&this.addListener(...e),this.isAttached())return this;this.exitIntentDiv=document.createElement("div"),this.exitIntentDiv.id=this.exitIntentId,document.body.appendChild(this.exitIntentDiv);const t=document.documentElement;let n=null;const r=e=>{e.pageY<=20&&(n=window.setTimeout(()=>{try{this.fireListeners()}catch(e){Qn.Error(e)}},300))},o=()=>{n&&(clearTimeout(n),n=null)};return t.addEventListener("mouseleave",r),t.addEventListener("mouseenter",o),this.clearExitIntentListener=()=>{n&&(clearTimeout(n),n=null),t.removeEventListener("mouseleave",r),t.removeEventListener("mouseenter",o)},this}detach(){return this.isAttached()?(this.exitIntentDiv?.remove(),this.exitIntentDiv=null,this.clearExitIntentListener?.(),this):this}fireListeners(){this.listeners.forEach(e=>{e()})}getStyle(){return`#${this.exitIntentId} { z-index: ${er}; border: 0; background: transparent; position: fixed; padding: 0; margin: 0; height: 10px; left: 0; right: 0; width: 100%; top: 0; }`}}const hr=class e{constructor(e){Zn(this,"queryParams",null),this.url=e,this.queryParams=this.parseQueryStringForCart()}hasCart(){return null!==this.queryParams}getPluginID(){return or(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_id}getPluginPublicKey(){return or(this.queryParams,e.NO_CART_FOUND_MESSAGE),this.queryParams.__fs_plugin_public_key}matchesPluginID(e){const t=Number.parseInt(this.getPluginID(),10),n=Number.parseInt(e.toString(),10);return Number.isFinite(t)&&Number.isFinite(n)&&t===n}getCheckoutOptions(){or(this.queryParams,e.NO_CART_FOUND_MESSAGE);const t={plugin_id:"",public_key:""};return Object.entries(this.queryParams).forEach(([e,n])=>{"__fs_plugin_id"===e?t.plugin_id=n:"__fs_plugin_public_key"===e?t.public_key=n:t[e]=n}),t}parseQueryStringForCart(){const e=new URLSearchParams(this.url.search);if(!e.has("__fs_authorization"))return null;const t={};return e.forEach((e,n)=>{n.startsWith("__fs_")&&(t[n]=e)}),t}};Zn(hr,"NO_CART_FOUND_MESSAGE","No cart was found");let gr=hr;const vr="https://checkout.freemius.com";class mr{constructor(e,t=!0,n=null){Zn(this,"options",{plugin_id:0,public_key:""}),Zn(this,"guid"),Zn(this,"baseUrl"),Zn(this,"style"),Zn(this,"loader"),Zn(this,"checkoutPopup"),Zn(this,"exitIntent"),Zn(this,"cart"),this.baseUrl=n??vr;const{plugin_id:r,product_id:o,public_key:i,...a}=e;if(!r&&!o)throw new Error("Must provide a product_id to options.");this.options={...a,public_key:i,plugin_id:o??r},this.guid=function(){const e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}(),!rr()&&(this.baseUrl=n??(window.FS?.__FS__IS_TEST__?"http://checkout.freemius-local.com:8080":vr),this.style=new ir(this.guid),this.loader=new sr(this.style,e.loadingImageUrl??`${this.baseUrl}/assets/img/spinner.svg`,e.loadingImageAlt),this.exitIntent=new fr(this.style),this.checkoutPopup=new pr(this.style,this.exitIntent,this.loader,this.baseUrl,this.options),this.cart=new gr(new URL(window.location.href)),t&&this.recoverCart())}async open(e){if(!rr()){if(this.checkoutPopup?.isOpen())return void Qn.Warn("Checkout popup already open. Please close it first before opening it again.");if(!document.body)return new Promise(t=>{document.addEventListener("DOMContentLoaded",()=>{this.checkoutPopup?.open(e),t()},{once:!0})});this.checkoutPopup?.open(e)}}close(){rr()||this.checkoutPopup?.close()}destroy(){rr()||this.close()}getGuid(){return this.guid}recoverCart(){if(this.cart?.hasCart()&&this.cart?.matchesPluginID(this.options.plugin_id)){const e=this.cart.getCheckoutOptions();this.open(e)}}}function br(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 yr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?br(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):br(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var wr={active_promotion:[],is_event_sales:!1,event_expired:"",checkout_provider:"default",default_checkout_url:""},xr="GutenverseTempPricingDataPromise",jr=function(){return"undefined"==typeof window?null:window.GutenverseTempPricingData||null},Or=function(){return"undefined"==typeof window?null:window[xr]||null},Cr=function(e){return"undefined"==typeof window||(e?window[xr]=e:delete window[xr]),e},Sr=function(e){return Boolean(e&&"object"===s(e)&&Array.isArray(null==e?void 0:e.active_promotion)&&Object.prototype.hasOwnProperty.call(e,"is_event_sales")&&Object.prototype.hasOwnProperty.call(e,"event_expired"))},_r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return yr(yr({},wr),Sr(e)?e:{})},Er=function(e){return"undefined"==typeof window||(window.GutenverseTempPricingData=e,("undefined"==typeof window?[]:["GutenverseConfig","GutenverseDashboard","GutenverseData"].map(function(e){return window[e]}).filter(Boolean)).forEach(function(t){t.pricingPlan=e})),e},Ir=function(){var e=("undefined"==typeof window?[]:["GutenverseDashboard","GutenverseConfig","GutenverseData"].map(function(e){return window[e]}).filter(Boolean)).find(function(e){return Sr(null==e?void 0:e.pricingPlan)})||{};return _r(null==e?void 0:e.pricingPlan)},kr=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).force,t=void 0!==e&&e,n=_r(jr()),r=Ir();if(!t&&jr())return Promise.resolve(Er(n));if(!t&&Or())return Or();var o=Yn()({path:"gutenverse-client/v1/pricing-plan",method:"GET"}).then(function(e){var t=(null==e?void 0:e.pricingPlan)||e;return Sr(t)?Er(_r(t)):Er(r)}).catch(function(){return Er(r)}).finally(function(){Cr(null)});return Cr(o)},Pr=function(){kr()};function Nr(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return Tr(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(Tr(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,Tr(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,Tr(d,"constructor",c),Tr(c,"constructor",l),l.displayName="GeneratorFunction",Tr(c,o,"GeneratorFunction"),Tr(d),Tr(d,o,"Generator"),Tr(d,r,function(){return this}),Tr(d,"toString",function(){return"[object Generator]"}),(Nr=function(){return{w:i,m:p}})()}function Tr(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}Tr=function(e,t,n,r){function i(t,n){Tr(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},Tr(e,t,n,r)}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 Lr(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){c(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}var Dr="gutenverse:pricing-popup-close-request",Ar="gutenverse-lemon-squeezy-js",Fr="default",Mr=["freemius","lemon_squeezy","default"],Vr={lemon:"lemon_squeezy",lemonsqueezy:"lemon_squeezy","lemon-squeezy":"lemon_squeezy"},Br=[(0,i.__)("No Credit Card Required","gutenverse"),(0,i.__)("Lifetime Support","gutenverse"),(0,i.__)("Money-Back Guarantee","gutenverse")],Ur={main:[{label:(0,i.__)("1 Sites Licenses","gutenverse"),include:["basic"]},{label:(0,i.__)("10 Sites Licenses","gutenverse"),include:["professional"]},{label:(0,i.__)("100 Sites Licenses","gutenverse"),include:["agency"]},{label:(0,i.__)("1000 Sites Licenses","gutenverse"),include:["enterprise"]},{label:(0,i.__)("Priority Support","gutenverse"),include:["all"]},{label:(0,i.__)("Lifetime Updates","gutenverse"),include:["all"]}],essential_features:[{label:(0,i.__)("User-First UI/UX","gutenverse"),include:["all"]},{label:(0,i.__)("FSE (Full Site Editing) Compatible","gutenverse"),include:["all"]},{label:(0,i.__)("Smooth Responsive Editor Preview","gutenverse"),include:["all"]},{label:(0,i.__)("Global Color & Typography","gutenverse"),include:["all"]},{label:(0,i.__)("Multipurpose Blocks","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Form Blocks","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("News Blocks","gutenverse"),include:["all"],limited:["basic"]}],fse:[{label:(0,i.__)("Latest Native WordPress Standard","gutenverse"),include:["all"]},{label:(0,i.__)("Seamless Editing","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Editor Responsive Breakpoints","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Header","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Footer","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Templates","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Patterns","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Pages","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Archives","gutenverse"),include:["all"]}],demo:[{label:(0,i.__)("10 Unibiz Demos"),include:["basic"]},{label:(0,i.__)("50 Unibiz Demos","gutenverse"),include:["professional","agency","enterprise"]},{label:(0,i.__)("350+ Section Template","gutenverse"),include:["basic"]},{label:(0,i.__)("800+ Section Template","gutenverse"),include:["professional","agency","enterprise"]},{label:(0,i.__)("25 Layouts","gutenverse"),include:["basic"]},{label:(0,i.__)("40 Layouts","gutenverse"),include:["professional","agency","enterprise"]},{label:(0,i.__)("4000+ Icons","gutenverse"),include:["all"]},{label:(0,i.__)("One Click Import","gutenverse"),include:["all"]}],animation:[{label:(0,i.__)("Standard Animation Effects","gutenverse"),include:["all"]},{label:(0,i.__)("Responsive Animation Breakpoints","gutenverse"),include:["all"]},{label:(0,i.__)("Advanced Animation Effect","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Layout Animation","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Mouse Animation Effects","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Background Animation Effects","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Lottie Animation Support","gutenverse"),include:["all"],except:["basic"]}],adv_script_style:[{label:(0,i.__)("Advance Responsive Control","gutenverse"),include:["all"]},{label:(0,i.__)("Shape Divider","gutenverse"),include:["all"]},{label:(0,i.__)("Sticky Block","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Advance Visual Effect & Styling","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Custom JS & CSS Scripts","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Custom Font","gutenverse"),include:["all"],except:["basic"]}],data_builder:[{label:(0,i.__)("Mega Menu Builder","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Dynamic Data","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Conditional Logic Content","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Advance Slider","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Advance Tabs","gutenverse"),include:["all"]}],popup:[{label:(0,i.__)("Drag and drop Popup builder","gutenverse"),include:["all"]},{label:(0,i.__)("Popup Builder","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Advance Trigger Options","gutenverse"),include:["all"],except:["basic"]}],news:[{label:(0,i.__)("Advance Posts Filter","gutenverse"),include:["all"]},{label:(0,i.__)("Advance Posts Sorting","gutenverse"),include:["all"]},{label:(0,i.__)("Advance Posts Blocks","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Single Posts Blocks","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("News Archives Blocks","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Unique Content Group","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Auto Update RSS Blocks","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Single Post Pagination","gutenverse"),include:["all"],except:["basic"]}],form:[{label:(0,i.__)("Basic Form Block & Builder","gutenverse"),include:["all"]},{label:(0,i.__)("Custom Actions","gutenverse"),include:["all"]},{label:(0,i.__)("Form Security & Compliance","gutenverse"),include:["all"]},{label:(0,i.__)("Email & Notifications","gutenverse"),include:["all"]},{label:(0,i.__)("Form Data Management","gutenverse"),include:["all"]},{label:(0,i.__)("Advance Form Logic & inputs","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Advance Form Builder","gutenverse"),include:["all"],limited:["basic"]},{label:(0,i.__)("Payment Form","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Multi Step Form","gutenverse"),include:["all"],except:["basic"]},{label:(0,i.__)("Calculation Form","gutenverse"),include:["all"],except:["basic"]}],performance:[{label:(0,i.__)("FSE Optimized","gutenverse"),include:["all"]},{label:(0,i.__)("Lightweight Assets","gutenverse"),include:["all"]},{label:(0,i.__)("Optimize DOM Size","gutenverse"),include:["all"]},{label:(0,i.__)("Modular & Minified JS/CSS","gutenverse"),include:["all"]},{label:(0,i.__)("Lazy Loading & Responsive Images","gutenverse"),include:["all"]},{label:(0,i.__)("Core Web Vitals Ready","gutenverse"),include:["all"]},{label:(0,i.__)("Smart Style File Management","gutenverse"),include:["all"]},{label:(0,i.__)("Instant Preload","gutenverse"),include:["all"],except:["basic"]}],theme_builder:[{label:(0,i.__)("Drag and Drop Themes Creation","gutenverse"),include:["all"]},{label:(0,i.__)("Advance Theme Styling & Customization","gutenverse"),include:["all"]},{label:(0,i.__)("Global Style & fonts Manager","gutenverse"),include:["all"]},{label:(0,i.__)("Modular & Minified JS/CSS","gutenverse"),include:["all"]},{label:(0,i.__)("Lazy Loading & Responsive Images","gutenverse"),include:["all"]},{label:(0,i.__)("Assets Manager","gutenverse"),include:["all"]},{label:(0,i.__)("One Click Export","gutenverse"),include:["all"]}]},Gr={basic:(0,i.__)("Suitable for individual WordPress site users.","gutenverse"),professional:(0,i.__)("Ideal for users who own multiple WordPress sites.","gutenverse"),agency:(0,i.__)("Suitable for an agency who works for dozens of clients.","gutenverse"),enterprise:(0,i.__)("Great for enterprises who manage a lot of websites.","gutenverse")},zr={main:(0,i.__)("","gutenverse"),essential_features:(0,i.__)("Essential Features","gutenverse"),fse:(0,i.__)("FSE (Full Site Editing)","gutenverse"),demo:(0,i.__)("Demo & Library","gutenverse"),animation:(0,i.__)("Animation","gutenverse"),adv_script_style:(0,i.__)("Advanced Script & Style","gutenverse"),data_builder:(0,i.__)("Data & Builder","gutenverse"),popup:(0,i.__)("Popup","gutenverse"),news:(0,i.__)("News","gutenverse"),form:(0,i.__)("Form","gutenverse"),performance:(0,i.__)("Performance Optimization","gutenverse"),theme_builder:(0,i.__)("Themes Builder","gutenverse")},Hr=(0,i.__)("Limited","gutenverse"),qr=function(e){var t=e.isExcept;return(0,a.jsx)("svg",{className:"gutenverse-pricing-card__feature-icon",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:t?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"7",cy:"7",r:"7",fill:"currentColor",opacity:"1"}),(0,a.jsx)("path",{d:"M4.375 4.375L9.625 9.625M9.625 4.375L4.375 9.625",stroke:"white",strokeWidth:"1.4",strokeLinecap:"round"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("circle",{cx:"7",cy:"7",r:"7",fill:"currentColor",opacity:"`"}),(0,a.jsx)("path",{d:"M4.375 7.175L6.125 8.925L9.625 5.425",stroke:"white",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round"})]})})},$r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD";return"number"!=typeof e||Number.isNaN(e)?null:new Intl.NumberFormat(void 0,{style:"currency",currency:t,minimumFractionDigits:e%1==0?0:1,maximumFractionDigits:1}).format(e)},Wr=function(e){if(!e)return!0;var t=new Date(e);return!!Number.isNaN(t.getTime())||t.getTime()<=Date.now()},Xr=null,Kr=function(){var e;return"undefined"!=typeof window&&(null===(e=window)||void 0===e||null===(e=e.LemonSqueezy)||void 0===e?void 0:e.Url)&&"function"==typeof window.LemonSqueezy.Url.Open},Yr=function(){return Kr()?window.LemonSqueezy:("undefined"!=typeof window&&"function"==typeof window.createLemonSqueezy&&window.createLemonSqueezy(),Kr()?window.LemonSqueezy:null)},Jr=function(){var e=Yr();return e?Promise.resolve(e):Xr||(Xr=new Promise(function(e,t){if("undefined"!=typeof document){var n=0,r=function(){var o=Yr();o?e(o):n>=200?t(new Error((0,i.__)("Lemon Squeezy checkout script failed to initialize.","gutenverse"))):(n+=1,window.setTimeout(r,50))},o=document.getElementById(Ar)||document.querySelector('script[src*="app.lemonsqueezy.com/js/lemon.js"]');o||((o=document.createElement("script")).id=Ar,o.src="https://app.lemonsqueezy.com/js/lemon.js",o.defer=!0,o.async=!0,document.head.appendChild(o)),o.addEventListener("load",r),o.addEventListener("error",function(){t(new Error((0,i.__)("Failed to load Lemon Squeezy checkout script.","gutenverse")))},{once:!0}),r()}else t(new Error((0,i.__)("Lemon Squeezy checkout is not available.","gutenverse")))}).catch(function(e){throw Xr=null,e}))};const Zr=function(e){var t=e.onClose,n=e.pricingUrl,r=void 0===n?"":n,s=window.GutenverseConfig?window.GutenverseConfig:window.GutenverseDashboard,l=y((0,o.useState)(function(){return Ir()}),2),c=l[0],u=l[1],d=y((0,o.useState)({planKey:null,loading:!1,error:""}),2),p=d[0],f=d[1],h=(c.active_promotion||[]).map(function(e){return function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).eventExpired,n=void 0!==t&&t,r=(null==e?void 0:e.slug)||"",o=(null==e?void 0:e.currency)||"USD",a=null==e?void 0:e.actual_price,s=Number((null==e?void 0:e.discount_amount)||0),l=null==e?void 0:e.discounted_price,c=s>0&&a&&!n,u=c?l:a||l,d=u/12,p=a/12;return Lr(Lr({},e),{},{name:(null==e?void 0:e.label)||(null==e?void 0:e.name)||"",featured:Boolean(null==e?void 0:e.is_featured)||"professional"===r,price:$r(d,o)||(0,i.__)("Contact Us","gutenverse"),oldPrice:c?$r(p,o):null,billed:(0,i.sprintf)((0,i.__)("Billed annually. Pay %s/year today","gutenverse"),$r(u,o)),renewal:c?(0,i.sprintf)((0,i.__)("Renew at regular rate %s/year","gutenverse"),$r(a,o)):null,description:Gr[r]||(0,i.__)("Upgrade to unlock more Gutenverse features.","gutenverse"),sale:c?(0,i.sprintf)((0,i.__)("Sale %s%%","gutenverse"),s):null})}(e,{eventExpired:Wr(null==c?void 0:c.event_expired)})}),g=(0,o.useRef)(null),v=(0,o.useRef)(null),m=(0,o.useRef)(!1),b=(0,o.useRef)(null),w=(0,o.useRef)(!1),j=h.length>0,O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fr,t=Vr[e]||e;return Mr.includes(t)?t:Fr}((null==c?void 0:c.checkout_provider)||(null==c?void 0:c.payment_provider)),C="lemon_squeezy"===O&&p.loading,S=function(){var e,t,n,o,i,a,l,u,d=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=d.action,f=d.plan,h=void 0===f?null:f,g=d.checkoutData,v=void 0===g?null:g,m=null;try{m=new URL(r||(null==s?void 0:s.upgradeProUrl)||"").searchParams}catch(e){m=null}return{action:p,source:(null===(e=m)||void 0===e?void 0:e.get("utm_source"))||"gutenverse",medium:(null===(t=m)||void 0===t?void 0:t.get("utm_medium"))||"pricing-popup",campaign:(null===(n=m)||void 0===n?void 0:n.get("utm_campaign"))||(null==c?void 0:c.event_name)||"freemius-checkout",client_site:(null===(o=m)||void 0===o?void 0:o.get("utm_client_site"))||(null==s?void 0:s.clientUrl)||(null==s?void 0:s.url)||(null===(i=window)||void 0===i||null===(i=i.location)||void 0===i?void 0:i.origin)||"",client_theme:(null===(a=m)||void 0===a?void 0:a.get("utm_client_theme"))||(null==s?void 0:s.activeTheme)||"",current_url:(null===(l=window)||void 0===l||null===(l=l.location)||void 0===l?void 0:l.href)||"",pricing_url:r||(null==s?void 0:s.upgradeProUrl)||"",product_id:(null==c?void 0:c.product_id)||null,plan_id:(null==h?void 0:h.plan_id)||(null==v?void 0:v.plan_id)||null,pricing_id:(null==h?void 0:h.pricing_id)||(null==v?void 0:v.pricing_id)||null,plan_slug:(null==h?void 0:h.slug)||null,plan_name:(null==h?void 0:h.name)||null,coupon_code:Wr(null==c?void 0:c.event_expired)?"":null==h?void 0:h.coupon_code,discount_amount:Wr(null==c?void 0:c.event_expired)?"":null==h?void 0:h.discount_amount,external_id:null==v||null===(u=v.purchase)||void 0===u?void 0:u.license_id,checkout_data:v}},_=function(e){return(null==e?void 0:e.slug)||(null==e?void 0:e.plan_id)||(null==e?void 0:e.pricing_id)||(null==e?void 0:e.name)},E=function(){var e=x(Nr().m(function e(t){var n,r;return Nr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(null!=t&&t.pricing_url){e.n=1;break}return e.a(2);case 1:return n="undefined"!=typeof AbortController?new AbortController:null,r=n?window.setTimeout(function(){return n.abort()},2e3):null,e.p=2,e.n=3,Yn()({path:"gutenverse-client/v1/freemius/checkout-tracking",method:"POST",data:t,signal:null==n?void 0:n.signal});case 3:e.n=5;break;case 4:return e.p=4,e.v,e.a(2,null);case 5:return e.p=5,r&&window.clearTimeout(r),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(t){return e.apply(this,arguments)}}(),I=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.action,r=void 0===n?"close_popup":n,o=e.plan,i=void 0===o?null:o,a=e.checkoutData,s=void 0===a?null:a;return m.current||(m.current=!0,t(),v.current=E(S({action:r,plan:i,checkoutData:s})).finally(function(){v.current=null})),v.current};b.current=I,(0,o.useEffect)(function(){var e=!0;kr().then(function(t){e&&u(t)});var t=function(){var e;null===(e=b.current)||void 0===e||e.call(b)};return document.addEventListener(Dr,t),function(){e=!1,w.current=!1,document.removeEventListener(Dr,t)}},[]);var k=function(e){var t=S({action:"lemon_checkout_open",plan:e}),n=(null==e?void 0:e.lemon_variant_id)||(null==e?void 0:e.variant_id)||"";return{product_id:(null==e?void 0:e.product_id)||(null==c?void 0:c.product_id)||"",variant_id:n,lemon_variant_id:n,plan_slug:(null==e?void 0:e.slug)||"",tier:(null==e?void 0:e.tier)||(null==e?void 0:e.slug)||"",plan_name:(null==e?void 0:e.name)||"",coupon_code:(null==t?void 0:t.coupon_code)||"",source:(null==t?void 0:t.source)||"",medium:(null==t?void 0:t.medium)||"",campaign:(null==t?void 0:t.campaign)||"",client_site:(null==t?void 0:t.client_site)||"",client_theme:(null==t?void 0:t.client_theme)||"",current_url:(null==t?void 0:t.current_url)||"",pricing_url:(null==t?void 0:t.pricing_url)||"",custom:{action:(null==t?void 0:t.action)||"",source:(null==t?void 0:t.source)||"",medium:(null==t?void 0:t.medium)||"",campaign:(null==t?void 0:t.campaign)||"",client_site:(null==t?void 0:t.client_site)||"",client_theme:(null==t?void 0:t.client_theme)||"",current_url:(null==t?void 0:t.current_url)||"",pricing_url:(null==t?void 0:t.pricing_url)||""}}},P=function(e,t){E(S({action:"checkout_success",plan:e,checkoutData:t}))},N=function(){var e=x(Nr().m(function e(n){var r,o,a,s,l,c;return Nr().w(function(e){for(;;)switch(e.p=e.n){case 0:if(!w.current){e.n=1;break}return e.a(2);case 1:return w.current=!0,r=_(n),f({planKey:r,loading:!0,error:""}),e.p=2,e.n=3,Yn()({path:"gutenverse-client/v1/lemon-squeezy/checkout-url",method:"POST",data:k(n)});case 3:if(a=e.v,s=(null==a?void 0:a.checkout_url)||""){e.n=4;break}throw new Error((null==a?void 0:a.message)||(0,i.__)("No checkout URL returned.","gutenverse"));case 4:return e.n=5,Jr();case 5:l=e.v,null===(o=l.Setup)||void 0===o||o.call(l,{eventHandler:function(e){"Checkout.Success"===(null==e?void 0:e.event)&&P(n,(null==e?void 0:e.data)||e)}}),w.current=!1,f({planKey:null,loading:!1,error:""}),t(),l.Url.Open(s),e.n=7;break;case 6:e.p=6,c=e.v,w.current=!1,f({planKey:r,loading:!1,error:(null==c?void 0:c.message)||(0,i.__)("Failed to request Lemon checkout URL.","gutenverse")});case 7:return e.a(2)}},e,null,[[2,6]])}));return function(t){return e.apply(this,arguments)}}();return(0,a.jsxs)("div",{className:"gutenverse-pricing-popup",children:[(0,a.jsx)("button",{type:"button",className:"gutenverse-pricing-popup__close","aria-label":(0,i.__)("Close pricing popup","gutenverse"),onClick:function(){return t()},children:(0,a.jsx)(Qt.IconCloseSVG,{size:20})}),(0,a.jsx)("div",{className:"gutenverse-pricing-popup__hero",children:j?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-pricing-popup__title",children:(0,i.__)("Affordable Pricing Plan","gutenverse")}),(0,a.jsx)("p",{className:"gutenverse-pricing-popup__subtitle",children:(0,i.__)("Gutenverse helps maximize your WordPress website's potential. Upgrade to PRO for more features.","gutenverse")}),(0,a.jsx)("div",{className:"gutenverse-pricing-popup__badges",children:Br.map(function(e){return(0,a.jsx)("span",{className:"gutenverse-pricing-popup__badge",children:e},e)})})]}):(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"gutenverse-pricing-popup__empty-state",children:[(0,a.jsx)("h2",{className:"gutenverse-pricing-popup__title",children:(0,i.__)("Pricing plans are currently under maintenance.","gutenverse")}),(0,a.jsx)("p",{className:"gutenverse-pricing-popup__subtitle",children:(0,i.__)("Please check back soon. New plans will be available soon.","gutenverse")})]})})}),(0,a.jsx)("div",{className:"gutenverse-pricing-popup__cards",children:j&&h.map(function(e){var t,n=(t=e.slug,Object.entries(Ur).map(function(e){var n=y(e,2),r=n[0],o=n[1];return{key:r,title:zr[r],features:o.filter(function(e){var n=e.include,r=void 0===n?[]:n;return r.includes("all")||r.includes(t)}).map(function(e){var n,r;return Lr(Lr({},e),{},{isLimited:null==e||null===(n=e.limited)||void 0===n?void 0:n.includes(t),isExcept:null==e||null===(r=e.except)||void 0===r?void 0:r.includes(t)})})}}).filter(function(e){return e.features.length})),o=_(e),l=p.loading&&p.planKey===o,u=C,d=p.planKey===o?p.error:"";return(0,a.jsxs)("article",{className:"gutenverse-pricing-card".concat(e.featured?" is-featured":""),children:[(0,a.jsxs)("div",{className:"gutenverse-pricing-card__header",children:[(0,a.jsx)("h3",{children:e.name}),e.featured&&(0,a.jsx)("span",{className:"gutenverse-pricing-card__pill",children:(0,i.__)("Popular","gutenverse")})]}),(0,a.jsxs)("div",{className:"gutenverse-pricing-card__body",children:[(0,a.jsxs)("div",{className:"gutenverse-pricing-card__pricing",children:[e.oldPrice&&(0,a.jsx)("span",{className:"gutenverse-pricing-card__old-price",children:e.oldPrice}),e.sale&&(0,a.jsx)("span",{className:"gutenverse-pricing-card__sale",children:e.sale}),(0,a.jsxs)("div",{className:"gutenverse-pricing-card__price-row",children:[(0,a.jsx)("span",{className:"gutenverse-pricing-card__price",children:e.price}),(0,a.jsx)("span",{className:"gutenverse-pricing-card__period",children:(0,i.__)("/mo","gutenverse")})]}),(0,a.jsx)("p",{className:"gutenverse-pricing-card__billing",children:e.billed}),e.renewal&&(0,a.jsx)("p",{className:"gutenverse-pricing-card__renewal",children:e.renewal})]}),(0,a.jsxs)("div",{className:"gutenverse-pricing-card__button","aria-disabled":u,onClick:function(){u||function(e){if("lemon_squeezy"!==O)if("default"!==O){if(null!=c&&c.public_key&&null!=c&&c.product_id){if(!g.current){var t={product_id:null==c?void 0:c.product_id,public_key:null==c?void 0:c.public_key};null!=c&&c.sandbox&&(t.sandbox=null==c?void 0:c.sandbox),g.current=new mr(t)}var n={title:(0,i.__)("Gutenverse Checkout","gutenverse-pro"),plan_id:e.plan_id,pricing_id:e.pricing_id,billing_cycle:"annual",currency:"auto",readonly_user:!0,coupon:Wr(null==c?void 0:c.event_expired)?"":null==e?void 0:e.coupon_code,success:function(t){return I({action:"checkout_success",plan:e,checkoutData:t})}};g.current.open(n)}}else{var o=(null==c?void 0:c.default_checkout_url)||r||(null==s?void 0:s.upgradeProUrl)||"";o&&window.open(o,"_blank","noopener,noreferrer")}else N(e)}(e)},children:[(0,a.jsx)("span",{children:l?(0,i.__)("Preparing Checkout...","gutenverse"):(0,i.__)("Purchase Now","gutenverse")}),(0,a.jsx)("span",{"aria-hidden":"true",children:"›"})]}),d&&(0,a.jsx)("div",{className:"gutenverse-pricing-card__checkout-error",children:d}),(0,a.jsx)("p",{className:"gutenverse-pricing-card__description",children:e.description}),(0,a.jsx)("div",{className:"gutenverse-pricing-card__feature-groups",children:n.map(function(t){return(0,a.jsxs)("div",{className:"gutenverse-pricing-card__feature-group",children:[(0,a.jsx)("h4",{className:"gutenverse-pricing-card__feature-title",children:t.title}),(0,a.jsx)("ul",{className:"gutenverse-pricing-card__features",children:t.features.map(function(n){return(0,a.jsxs)("li",{className:n.isExcept?"is-except":"",children:[(0,a.jsx)(qr,{isExcept:n.isExcept}),(0,a.jsx)("span",{children:n.label}),n.isLimited&&(0,a.jsx)("span",{className:"gutenverse-pricing-card__feature-badge",children:Hr})]},"".concat(e.name,"-").concat(t.key,"-").concat(n.label))})})]},"".concat(e.name,"-").concat(t.key))})})]})]},e.name)})})]})};function Qr(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 eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qr(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var to="gutenverse-freemius-modal",no="gutenverse-freemius-modal-content",ro="gutenverse-freemius-modal-open",oo=['a[href*="page=gutenverse&path=upgrade-pro"]','a[href*="page=gutenverse-dashboard&path=upgrade-pro"]',"#wp-admin-bar-gutenverse-pro > .ab-item"].join(", "),io=function(){return window.GutenverseConfig||window.GutenverseDashboard||window.GutenverseData||{}},ao=function(){var e=io(),t=e.freemius,n=void 0===t?{}:t,r=e.upgradeProUrl;return eo(eo({},n),{},{pricingUrl:(null==n?void 0:n.pricingUrl)||r})},so=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ao().pricingUrl,r=e||n;if(!r)return null;var o=io();try{var i,a=new URL(r);return a.searchParams.get("utm_source")||a.searchParams.set("utm_source",(null==t?void 0:t.source)||"gutenverse"),!a.searchParams.get("utm_medium")&&null!=t&&t.medium&&a.searchParams.set("utm_medium",t.medium),a.searchParams.get("utm_campaign")||a.searchParams.set("utm_campaign",(null==t?void 0:t.campaign)||function(){var e,t=io(),n=t.pricingPlan,r=void 0===n?{}:n,o=t.eventBanner,i=void 0===o?{}:o,a=(null==r||null===(e=r.active_promotion)||void 0===e?void 0:e[0])||{};return(null==r?void 0:r.event_name)||(null==r?void 0:r.event_title)||(null==r?void 0:r.eventTitle)||(null==r?void 0:r.campaign)||(null==a?void 0:a.event_title)||(null==a?void 0:a.campaign)||(null==a?void 0:a.label)||(null==a?void 0:a.name)||(null==i?void 0:i.title)||(null==i?void 0:i.event_title)||"freemius-checkout"}()),a.searchParams.get("utm_client_site")||a.searchParams.set("utm_client_site",(null==t?void 0:t.clientSite)||(null==o?void 0:o.clientUrl)||(null==o?void 0:o.url)||(null===(i=window)||void 0===i||null===(i=i.location)||void 0===i?void 0:i.origin)||""),a.searchParams.get("utm_client_theme")||a.searchParams.set("utm_client_theme",(null==t?void 0:t.clientTheme)||(null==o?void 0:o.activeTheme)||""),a.toString()}catch(e){return r}},lo=function(){var e=document.getElementById(to),t=document.getElementById(no);t&&(0,o.render)(null,t),e&&(e.classList.remove("active"),e.setAttribute("aria-hidden","true")),document.body.classList.remove(ro)},co=function(){var e=document.getElementById(no);null!=e&&e.hasChildNodes()?document.dispatchEvent(new CustomEvent("gutenverse:pricing-popup-close-request")):lo()},uo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null!=e&&e.preventDefault&&e.preventDefault();var r=ao().pricingUrl,i=so(t||r,n);if(!i)return!1;var s=function(){var e=document.getElementById(to);return e||((e=document.createElement("div")).id=to,e.className="gutenverse-freemius-modal",e.setAttribute("aria-hidden","true"),e.innerHTML='\n        <div class="gutenverse-freemius-modal__backdrop"></div>\n        <div class="gutenverse-freemius-modal__dialog" role="dialog" aria-modal="true" aria-label="Gutenverse plans and pricing">\n            <div id="'.concat(no,'" class="gutenverse-freemius-modal__content"></div>\n        </div>\n    '),e.querySelector(".gutenverse-freemius-modal__backdrop").addEventListener("click",co),document.addEventListener("keydown",function(e){"Escape"===e.key&&co()}),document.body.appendChild(e),e)}(),l=s.querySelector("#".concat(no));return kr(),(0,o.render)((0,a.jsx)(Zr,{onClose:lo,pricingUrl:i}),l),s.classList.add("active"),s.setAttribute("aria-hidden","false"),document.body.classList.add(ro),!0},po=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=ao().pricingUrl,r=so(e||n,t)||"#";return"#"!==r?{href:r,onClick:function(e){return uo(e,r,t)}}:{href:r,target:"_blank",rel:"noreferrer"}},fo=function(e){e&&"true"!==e.dataset.gutenverseFreemiusBound&&(e.dataset.gutenverseFreemiusBound="true",e.addEventListener("mouseenter",function(){kr()}),e.addEventListener("focus",function(){kr()}),e.addEventListener("click",function(t){var n=ao().pricingUrl,r=so(n||e.href);r&&uo(t,r)}))},ho=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;"undefined"!=typeof document&&e.querySelectorAll(oo).forEach(fo)};function go(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 vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?go(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):go(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}!function(){if("undefined"!=typeof window&&"undefined"!=typeof document&&!window.gutenverseFreemiusInitialized){window.gutenverseFreemiusInitialized=!0;var e=function(){ho(),function(){if("undefined"==typeof window)return!1;var e=new URLSearchParams(window.location.search),t=e.get("page");return"upgrade-pro"===e.get("path")&&["gutenverse","gutenverse-dashboard"].includes(t)}()&&uo(null,null,{medium:"dashboardnav"}),new MutationObserver(function(){ho()}).observe(document.body,{childList:!0,subtree:!0})};document.body?e():document.addEventListener("DOMContentLoaded",e,{once:!0})}}();const mo=function(e){var n=e.text,r=void 0===n?(0,i.__)("Upgrade To PRO","gutenverse"):n,o=e.align,s=void 0===o?"left":o,l=e.thin,u=void 0!==l&&l,d=e.smallText,p=void 0!==d&&d,f=e.fullWidth,h=void 0!==f&&f,g=e.customStyles,v=void 0===g?{}:g,m=e.link,b=void 0===m?null:m,y=e.location,w=void 0===y?"":y,x=e.isBanner,j=void 0!==x&&x,O=e.licenseActiveButton,C=void 0===O?(0,a.jsx)(a.Fragment,{}):O,S=e.licenseType,_=void 0===S?null:S,E=e.onClick,I=void 0===E?function(){}:E,k=window.GutenverseConfig||window.GutenverseDashboard||{},P=k.upgradeProUrl,N=k.adminUrl,T={medium:"dashboard-navigation"===w?"dashboardnav":"popup"===w||"themeList"===w||"ecosystem"===w?"dashboard":"library"===w||"card-pro"===w?"library":"form-builder"===w?"formProNotice":"blockeditor"},R=In()("button-upgrade-pro",c(c(c(c({},"thin",u),"text-sm",p),"full",h),"".concat(s),s),j&&"button-upgrade-pro-banner"),L=b||P,D=N+"admin.php?page=gutenverse&path=license",A={onMouseEnter:function(){return Pr()},onFocus:function(){return Pr()}},F=function(e,t,n,r){var o,i;return"themeList"!==w&&"ecosystem"!==w||r?(0,a.jsx)("a",vo(vo(vo({},r?(i=po(o=L,T),I&&null!=i&&i.onClick?vo(vo({},i),{},{onClick:function(e){var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),I(e),window.setTimeout(function(){uo(null,o,T)},0)}}):i):{href:D,target:"_blank",rel:"noreferrer"}),r?A:{}),{},{className:R,style:v,children:(0,a.jsxs)(a.Fragment,{children:[e,"crown"===t?(0,a.jsx)(Qt.IconCrownBannerSVG,{}):(0,a.jsx)(Qt.IconKeySVG,{})]})})):(0,a.jsx)(Xn.Link,{index:"license",to:{pathname:"/wp-admin/admin.php",search:"?page=gutenverse&path=license"},className:R,style:v,children:n?(0,a.jsxs)(a.Fragment,{children:["crown"===t?(0,a.jsx)(Qt.IconCrownBannerSVG,{}):(0,a.jsx)(Qt.IconKeySVG,{}),e]}):(0,a.jsxs)(a.Fragment,{children:[e,"crown"===t?(0,a.jsx)(Qt.IconCrownBannerSVG,{}):(0,a.jsx)(Qt.IconKeySVG,{})]})})},M=(0,t.applyFilters)("gutenverse.button.pro.library",function(){var e;return Nn()(null===(e=window)||void 0===e?void 0:e.gprodata)?F(r,"crown","dashboard-navigation"===w,!0):"dashboard-navigation"!==w?(0,t.applyFilters)("gutenverse.button.pro.banner",F((0,i.__)("Activate License","gutenverse"),"key",!1,!1),F((0,i.__)("Renew License","gutenverse"),"key",!1,!1),C,null,_):void 0},{location:w,isBanner:j});return(0,a.jsx)(M,{})};function bo(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return yo(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(yo(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,yo(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,yo(d,"constructor",c),yo(c,"constructor",l),l.displayName="GeneratorFunction",yo(c,o,"GeneratorFunction"),yo(d),yo(d,o,"Generator"),yo(d,r,function(){return this}),yo(d,"toString",function(){return"[object Generator]"}),(bo=function(){return{w:i,m:p}})()}function yo(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}yo=function(e,t,n,r){function i(t,n){yo(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yo(e,t,n,r)}function wo(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 xo(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)?xo(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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function xo(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 jo(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 Oo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jo(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Co=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getLibraryData,r=t.getPluginData,o=t.getImporterData;return{library:n(),plugins:r(),importer:o()}})(function(e){var n,o,s,l,c=e.data,d=e.activePage,p=e.closeImporter,f=e.plugins,h=e.importer,g=e.setPluginInstallMode,v=e.setExporting,m=e.setLibraryError,b=c.isPro,y=c.licenseType,w=c.slug,C=c.title,S=c.compatibleVersion,_=c.requirements,E=c.customAPI,I=void 0===E?null:E,k=c.customArgs,P=void 0===k?{}:k,N=Gn({plugins:f.installedPlugin,requirements:_,compatibleVersion:S}),T=function(){v({show:!0,message:"Fetching Data...",progress:""}),(0,u.dispatch)("gutenverse/library").setLayoutProgress((0,i.__)("Fetching Data","gutenverse")),(0,u.dispatch)("gutenverse/library").setLockLayoutImport({layout:w,title:C});var e=0,n=I?Oo({slug:w,active:d},P):(0,t.applyFilters)("gutenverse.library.import.parameter",{slug:w,active:d});setTimeout(function(){v({show:!0,message:"Fetching Data...",progress:"1/4"})},300);var o=function(){var t=x(bo().m(function t(n){var r,o,i,a,s,l,c,u,d;return bo().w(function(t){for(;;)switch(t.p=t.n){case 0:r=n.images,o=n.contents,i=0,a=[],s=wo(r),t.p=1,s.s();case 2:if((l=s.n()).done){t.n=5;break}return c=l.value,i++,v(function(e){return Oo(Oo({},e),{},{message:"Importing Image Assets ".concat(i," of ").concat(r.length+1),progress:"2/4"})}),t.n=3,(0,kn.importImage)(c).catch(function(){a.push({id:0,url:""}),e++});case 3:(u=t.v)&&a.push(u);case 4:t.n=2;break;case 5:t.n=7;break;case 6:t.p=6,d=t.v,s.e(d);case 7:return t.p=7,s.f(),t.f(7);case 8:return t.a(2,{images:a,contents:o})}},t,null,[[1,6,7,8]])}));return function(e){return t.apply(this,arguments)}}();(0,kn.importSingleLayoutContent)(n,I).then(function(e){var t=JSON.parse(e);return(0,u.dispatch)("gutenverse/library").setLayoutProgress((0,i.__)("Importing Assets","gutenverse")),v({show:!0,message:"Importing Assets...",progress:"2/4"}),new Promise(function(e){setTimeout(function(){e(o(t))},1e3)})}).then(function(e){return(0,u.dispatch)("gutenverse/library").setLayoutProgress((0,i.__)("Deploying Content","gutenverse")),v({show:!0,message:"Deploying Content...",progress:"3/4"}),new Promise(function(t){setTimeout(function(){t(function(e){return new Promise(function(t){var n=(0,u.dispatch)("core/block-editor").insertBlocks,o=e.contents,i=e.images,s=(0,r.injectImagesToContent)(o,i),l=(0,Kt.parse)(s);"template-locked"===(0,u.select)(O.store).getRenderingMode()?m(function(){return(0,a.jsx)($n,{resolve:t,blocks:l,supportGlobalImport:!1,setLibraryError:m,processGlobalStyle:function(){}})}):(n(l),t())})}(e))},500)})}).finally(function(){v({show:!0,message:"Done!",progress:"4/4"}),setTimeout(function(){(0,u.dispatch)("gutenverse/library").setLockLayoutImport({layout:null,title:null}),p(),v({show:!1,message:"Done!",progress:""}),e&&(0,u.dispatch)("gutenverse/library").setImportNotice("".concat(e," image not imported."))},300)}).catch(function(){v({show:!0,message:"Failed!",progress:"4/4"}),setTimeout(function(){(0,u.dispatch)("gutenverse/library").setImportNotice("Please Try Again."),v({show:!1,message:"Failed!",progress:""})},300)})},R=function(){return null!=N&&N.length?(0,a.jsx)("div",{className:"layout-button manage",onClick:function(){g(!0)},children:(0,a.jsx)("span",{children:(0,i.__)("Manage Required Plugin","gutenverse")})}):(0,a.jsxs)("div",{className:"layout-button import-page",onClick:T,children:[(0,a.jsx)("span",{children:(0,i.__)("Import this page","gutenverse")}),(0,a.jsx)(Qt.IconDownload2SVG,{})]})},L=function(){return(0,a.jsx)(mo,{licenseType:y,licenseActiveButton:R(),isBanner:!0,link:"".concat(j.upgradeProUrl,"?utm_source=gutenverse&utm_medium=librarylayout&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme),location:"card-pro",customStyles:{padding:"12px 20px"}})};return l=b?(0,a.jsx)(L,{}):(0,a.jsx)(R,{}),null!==(n=h.lockLayoutImport)&&void 0!==n&&n.layout&&(l=w!==(null===(o=h.lockLayoutImport)||void 0===o?void 0:o.layout)?(0,a.jsxs)("div",{className:"layout-button import-page loading",children:[(0,a.jsx)(_n,{size:18}),(0,a.jsxs)("span",{children:[(0,i.__)("Importing ","gutenverse")," ",null===(s=h.lockLayoutImport)||void 0===s?void 0:s.title]})]}):(0,a.jsxs)("div",{className:"layout-button import-page loading",children:[(0,a.jsx)(_n,{size:18}),(0,a.jsx)("span",{children:h.layoutProgress})]})),l});var So=function(e){var t=e.requirementStatus,n=e.setPluginInstallMode;if(t.length>0)return(0,a.jsx)(_o,{requirementStatus:t,setPluginInstallMode:n})},_o=function(e){var t=e.requirementStatus,n=e.setPluginInstallMode;return(0,a.jsxs)("div",{className:"plugin-requirement-notice",children:[(0,a.jsx)("div",{className:"plugin-requirement-icon",children:(0,a.jsx)(Qt.IconInfoYellowSVG,{})}),(0,a.jsxs)("div",{className:"plugin-requirement-content",children:[(0,a.jsx)("h3",{children:(0,i.__)("Plugin Requirements","gutenverse")}),(0,a.jsx)("p",{children:(0,i.sprintf)((0,i._n)("There is plugin need to be installed or updated for this layout work correctly.","There are %s plugins need to be installed or updated for this layout work correctly.",t.length,"gutenverse"),t.length)}),(0,a.jsx)("a",{href:"#",onClick:function(e){n(!0),e.preventDefault()},children:(0,i.__)("Manage Plugin Requirement →","gutenverse")})]})]})};const Eo=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getLibraryData,r=t.getPluginData;return{libraryData:n(),pluginData:r()}})(function(e){var t=e.libraryData,n=e.pluginData,r=e.id,s=e.slug,l=e.setSingleId,c=e.backText,u=e.closeImporter,d=e.setSingleData,p=e.singleData,f=e.setPluginInstallMode,h=e.setLibraryError,g=y((0,o.useState)(0),2),v=g[0],m=g[1],w=(0,o.useRef)(null),x=y((0,o.useState)(null),2),j=x[0],O=x[1],C=y((0,o.useState)(!1),2),S=C[0],_=C[1],E=y((0,o.useState)({show:!1,message:"",progress:""}),2),I=E[0],k=E[1],P=n.installedPlugin,N=t.layoutData;(0,o.useEffect)(function(){if(null!==p){var e=p.requirements,t=p.compatibleVersion,n=Gn({plugins:P,requirements:e,compatibleVersion:t});_(n)}},[p,n]),(0,o.useEffect)(function(){O(null),null!==p&&void 0!==p.pages[v]&&O(p.pages[v].fullImage)},[v,p]),(0,o.useEffect)(function(){d(null),N.map(function(e){if(e.id===r){var t=e.id,n=e.name,o=e.data,i=e.like,a=e.customAPI,s=e.customArgs,l=e.author,c=o.pro,u=o.tier,p=o.slug,f=o.demo,h=o.pages,g=o.compatible_version,v=o.requirements,m=[];h.map(function(e){var t=e.index,n=e.title,r=e.coverImage,o=e.fullImage;m=[].concat(b(m),[{id:t,title:n,coverImage:r[0],fullImage:o[0]}])}),d({id:t,title:n,pages:m,demo:f,isPro:"1"===c,licenseType:u,slug:p,like:i,compatibleVersion:g,requirements:v,customAPI:a,customArgs:s,author:l})}})},[r,N]);var T=In()("gutenverse-library-single-layout",{loading:null===p});return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:T,children:null===p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"single-previewer",children:(0,a.jsx)(Wn.LeftSkeleton,{})}),(0,a.jsx)("div",{className:"single-wrapper",children:(0,a.jsx)(Wn.RightSkeleton,{})})]}):p.pages.length>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"back-button",onClick:function(){return l(null)},children:[(0,a.jsx)(Qt.IconArrowLeftSVG,{}),(0,a.jsx)("span",{children:c})]}),(0,a.jsxs)("div",{className:"single-previewer-container",children:[(0,a.jsxs)("div",{className:"single-previewer",children:[(0,a.jsx)("div",{className:In()("layout-content",{loading:null===j}),ref:w,children:null===j?(0,a.jsx)("div",{className:"layout-loader",children:(0,a.jsx)("div",{className:"rotating",children:(0,a.jsx)(_n,{size:20})})}):(0,a.jsx)("img",{src:j},j)}),I.show?(0,a.jsx)(Vn,{message:I.message,progress:I.progress}):(0,a.jsxs)("div",{className:"layout-action",children:[(0,a.jsx)(Co,{activePage:v,data:p,closeImporter:u,setPluginInstallMode:f,setExporting:k,setLibraryError:h}),p.demo&&(0,a.jsxs)("a",{href:p.demo,className:"layout-button",target:"_blank",rel:"noreferrer",children:[(0,i.__)("View Demo","gutenverse")," ",(0,a.jsx)(Qt.IconEyeSVG,{width:12.8,height:12.8})]})]})]}),(0,a.jsxs)("div",{className:"single-wrapper",children:[(0,a.jsxs)("h2",{children:[p.title," ",p.isPro&&(0,a.jsx)("div",{className:"single-pro",children:"PRO"})]}),(0,a.jsxs)("div",{className:"single-layout-meta",children:[p.author&&(0,a.jsxs)("span",{className:"single-layout-author",children:[(0,i.__)("by ","gutenverse"),(0,a.jsx)("a",{href:p.author.url,target:"_blank",rel:"noreferrer",children:p.author.name})]}),p.like?(0,a.jsxs)("div",{className:"single-like active",onClick:function(){return zn(p.slug,!1)},children:[(0,a.jsx)(Qt.IconHeartFullSVG,{size:14})," ",(0,i.__)("Liked","gutenverse")]}):(0,a.jsxs)("div",{className:"single-like",onClick:function(){return zn(p.slug,!0)},children:[(0,a.jsx)(Qt.IconLoveSVG,{size:16})," ",(0,i.__)("Like","gutenverse")]}),(0,a.jsxs)("span",{children:[p.isPro,p.pages.length," ",(0,i.__)("Layouts","gutenverse")]})]}),S&&(0,a.jsx)(So,{requirementStatus:S,library:t,slug:s,singleData:p,setActive:m,active:v,setPluginInstallMode:f}),(0,a.jsx)("div",{className:"single-layout-list",children:void 0!==p.pages&&p.pages.map(function(e){var t=In()("layout-single",{active:e.id===v});return(0,a.jsxs)("div",{className:t,onClick:function(){return function(e){m(e),w.current.scrollTop=0}(e.id)},children:[(0,a.jsx)("img",{src:e.coverImage},e.coverImage),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:e.title}})]},e.id)})})]})]})]}):(0,a.jsx)("div",{className:"empty-content",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"empty-wrapper",children:[(0,a.jsx)("div",{className:"empty-svg",children:(0,a.jsx)(Qt.IconEmpty2SVG,{})}),(0,a.jsx)("h3",{children:(0,i.__)("No Result Found","gutenverse")}),(0,a.jsx)("span",{children:(0,i.__)("It seems we can't find any results based on your search.","gutenverse")})]}),(0,a.jsx)("div",{className:"back-button",onClick:function(){return l(null)},children:(0,a.jsx)("span",{children:c})})]})})})})});var Io=function(e){var t=y((0,o.useState)(!1),2),n=t[0],r=t[1],s=y((0,o.useState)(!0),2),l=s[0],c=s[1],u=y((0,o.useState)(""),2),d=u[0],p=u[1],f=e.plugin,h=e.plugins,g=f.slug,v=f.name,m=f.version,b=f.url,w=h[g],x=null,j=function(){r(!0),p((0,i.__)("Installing Plugin","gutenverse")),Yn()({path:"wp/v2/plugins",method:"POST",data:{slug:g,status:"active"}}).then(function(t){var n=t.version,o=t.name,i=t.plugin,a=i.split("/");e.installPlugin({slug:a[0],name:o,path:i,version:n}),r(!1)}).then(function(){e.increaseCounter()}).catch(function(){alert("Error during installing plugin")}).finally(function(){r(!1),p("")})},O=function(){r(!0),p((0,i.__)("Disabling Plugin","gutenverse")),Yn()({path:"wp/v2/plugins/plugin?plugin=".concat(w.path),method:"POST",data:{status:"inactive"}}).then(function(){return p((0,i.__)("Deleting Plugin","gutenverse")),Yn()({path:"wp/v2/plugins/plugin?plugin=".concat(w.path),method:"DELETE"})}).then(function(){j()})},C=function(t){t?O():(r(!0),p((0,i.__)("Activating Plugin","gutenverse")),Yn()({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),p("")}).catch(function(){l&&(c(!1),C(!1))}))},S=In()("install-action",{loading:n}),_=n&&(0,a.jsx)("div",{className:"rotating",style:{display:"flex"},children:(0,a.jsx)(_n,{size:20})}),E=(0,a.jsxs)("a",{href:b,target:"_blank",rel:"noreferrer",children:[(0,i.__)("Go to Plugin Page","gutenverse")," →"]});if(void 0===w)x=Nn()(b)?(0,a.jsxs)("div",{className:S,onClick:function(){return j()},children:[_,n?d:(0,i.__)("Install Plugin","gutenverse")]}):E;else{var I=!Nn()(m)&&!Rn().gte(w.version,f.version||"0.0.0"),k=I?(0,i.__)("Update & Activate Plugin","gutenverse"):(0,i.__)("Activate Plugin","gutenverse");!1===w.active?x=Nn()(b)?(0,a.jsxs)("div",{className:S,onClick:function(){C(I),c(!0)},children:[_,n?d:k]}):E:I&&(x=Nn()(b)?(0,a.jsxs)("div",{className:S,onClick:function(){return O()},children:[_,n?d:(0,i.__)("Update Plugin","gutenverse")]}):E)}return"gutenverse-pro"!==g||w||(x=(0,a.jsx)(mo,{isBanner:!0,location:"card-pro"})),(0,a.jsxs)("div",{className:"plugin-install-item",children:[(0,a.jsx)(ko,{name:v,version:m,flag:null===x,installedVersion:null==w?void 0:w.version}),(0,a.jsx)("div",{className:"plugin-install-action",children:null===x?(0,a.jsx)("div",{className:"install-action done",children:(0,i.__)("Installed & Activated","gutenverse")}):x})]})},ko=function(e){var t=e.version,n=e.name,r=e.installedVersion,o=e.flag;return(0,a.jsxs)("div",{className:"plugin-install-detail",children:[(0,a.jsx)("h2",{children:n}),o?(0,a.jsx)("span",{children:(0,i.sprintf)((0,i.__)("Installed version %s","gutenverse"),r)}):!Nn()(t)&&(0,a.jsx)("span",{children:(0,i.sprintf)((0,i.__)("Required version %s or later","gutenverse"),t)})]})};const Po=(0,u.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,u.dispatch)("gutenverse/library").installPlugin({slug:t,name:n,path:r,version:o})},activatePlugin:function(e){(0,u.dispatch)("gutenverse/library").activatePlugin(e)},updatePlugin:function(e){var t=e.slug,n=e.version;(0,u.dispatch)("gutenverse/library").updatePlugin({slug:t,version:n})}}})(function(e){var t=e.backString,n=e.plugins,r=e.data,s=e.setPluginInstallMode,l=n.installedPlugin,c=r.requirements,u=r.compatibleVersion,d=y((0,o.useState)(0),2),p=d[0],f=d[1],h=function(){f(function(e){return e+1})},g=In()("plugin-install-popup",{"show-counter":p>0});return(0,a.jsx)("div",{className:g,children:(0,a.jsxs)("div",{className:"plugin-install-wrapper",children:[(0,a.jsxs)("div",{className:"back-button",onClick:function(){return s(!1)},children:[(0,a.jsx)(Qt.IconArrowLeftSVG,{}),(0,a.jsx)("span",{children:t})]}),p>0&&(0,a.jsxs)("div",{className:"plugin-requirement-notice",children:[(0,a.jsx)("div",{className:"plugin-requirement-icon",children:(0,a.jsx)(Qt.IconInfoYellowSVG,{})}),(0,a.jsxs)("div",{className:"plugin-requirement-content",children:[(0,a.jsx)("strong",{children:(0,i.__)("Attention!","gutenverse")})," ",(0,a.jsx)("span",{children:(0,i.__)("Please refresh this page after install or update plugin","gutenverse")})]})]}),(0,a.jsxs)("div",{className:"plugin-install-container",children:[(0,a.jsxs)("div",{className:"plugin-install-inner",children:[(0,a.jsx)("h2",{children:(0,i.__)("Plugin Requirement","gutenverse")}),(0,a.jsx)("p",{children:(0,i.__)("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.jsx)(Io,{plugin:{installed:!0,name:"Gutenverse",slug:"gutenverse",version:u},plugins:l,installPlugin:e.installPlugin,activatePlugin:e.activatePlugin,updatePlugin:e.updatePlugin,increaseCounter:h}),c.map(function(t){var n=t.slug;return(0,a.jsx)(Io,{plugin:t,plugins:l,installPlugin:e.installPlugin,activatePlugin:e.activatePlugin,updatePlugin:e.updatePlugin,increaseCounter:h},n)})]})]})})});var No=n(9852),To=n.n(No);const Ro=function(e){var t=e.placeholder,n=e.onChange,r=y((0,o.useState)(""),2),i=r[0],s=r[1],l=(0,o.useCallback)(To()(function(e){n(e)},250),[]);return(0,a.jsxs)("div",{className:"gutenverse-library-search-bar",children:[(0,a.jsx)("input",{type:"text",placeholder:t,value:i,onChange:function(e){return s((t=e).target.value),void l(t.target.value);var t}}),""===i?(0,a.jsx)(Qt.IconSearchSVG,{}):(0,a.jsx)(Qt.IconCloseSVG,{onClick:function(e){return function(e){e.stopPropagation(),n(""),s("")}(e)}})]})};function Lo(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 Do(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ao(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(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Fo=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}function Vo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bo(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,l(r.key),r)}}function Uo(e,t,n){return t&&Bo(e.prototype,t),n&&Bo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Go(e,t){return Go=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Go(e,t)}function zo(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&&Go(e,t)}function Ho(e){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ho(e)}function qo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(qo=function(){return!!e})()}function $o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wo(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $o(e)}var Xo=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}(),Ko=Math.abs,Yo=String.fromCharCode,Jo=Object.assign;function Zo(e){return e.trim()}function Qo(e,t,n){return e.replace(t,n)}function ei(e,t){return e.indexOf(t)}function ti(e,t){return 0|e.charCodeAt(t)}function ni(e,t,n){return e.slice(t,n)}function ri(e){return e.length}function oi(e){return e.length}function ii(e,t){return t.push(e),e}var ai=1,si=1,li=0,ci=0,ui=0,di="";function pi(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:ai,column:si,length:a,return:""}}function fi(e,t){return Jo(pi("",null,null,"",null,null,0),e,{length:-e.length},t)}function hi(){return ui=ci>0?ti(di,--ci):0,si--,10===ui&&(si=1,ai--),ui}function gi(){return ui=ci<li?ti(di,ci++):0,si++,10===ui&&(si=1,ai++),ui}function vi(){return ti(di,ci)}function mi(){return ci}function bi(e,t){return ni(di,e,t)}function yi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function wi(e){return ai=si=1,li=ri(di=e),ci=0,[]}function xi(e){return di="",e}function ji(e){return Zo(bi(ci-1,Si(91===e?e+2:40===e?e+1:e)))}function Oi(e){for(;(ui=vi())&&ui<33;)gi();return yi(e)>2||yi(ui)>3?"":" "}function Ci(e,t){for(;--t&&gi()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return bi(e,mi()+(t<6&&32==vi()&&32==gi()))}function Si(e){for(;gi();)switch(ui){case e:return ci;case 34:case 39:34!==e&&39!==e&&Si(ui);break;case 40:41===e&&Si(e);break;case 92:gi()}return ci}function _i(e,t){for(;gi()&&e+ui!==57&&(e+ui!==84||47!==vi()););return"/*"+bi(t,ci-1)+"*"+Yo(47===e?e:gi())}function Ei(e){for(;!yi(vi());)gi();return bi(e,ci)}var Ii="-ms-",ki="-moz-",Pi="-webkit-",Ni="comm",Ti="rule",Ri="decl",Li="@keyframes";function Di(e,t){for(var n="",r=oi(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ai(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Ri:return e.return=e.return||e.value;case Ni:return"";case Li:return e.return=e.value+"{"+Di(e.children,r)+"}";case Ti:e.value=e.props.join(",")}return ri(n=Di(e.children,r))?e.return=e.value+"{"+n+"}":""}function Fi(e){return xi(Mi("",null,null,null,[""],e=wi(e),0,[0],e))}function Mi(e,t,n,r,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,g=1,v=1,m=1,b=0,y="",w=o,x=i,j=r,O=y;v;)switch(h=b,b=gi()){case 40:if(108!=h&&58==ti(O,d-1)){-1!=ei(O+=Qo(ji(b),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:O+=ji(b);break;case 9:case 10:case 13:case 32:O+=Oi(h);break;case 92:O+=Ci(mi()-1,7);continue;case 47:switch(vi()){case 42:case 47:ii(Bi(_i(gi(),mi()),t,n),l);break;default:O+="/"}break;case 123*g:s[c++]=ri(O)*m;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==m&&(O=Qo(O,/\f/g,"")),f>0&&ri(O)-d&&ii(f>32?Ui(O+";",r,n,d-1):Ui(Qo(O," ","")+";",r,n,d-2),l);break;case 59:O+=";";default:if(ii(j=Vi(O,t,n,c,u,o,s,y,w=[],x=[],d),i),123===b)if(0===u)Mi(O,t,j,j,w,i,d,s,x);else switch(99===p&&110===ti(O,3)?100:p){case 100:case 108:case 109:case 115:Mi(e,j,j,r&&ii(Vi(e,j,j,0,0,o,s,y,o,w=[],d),x),o,x,d,s,r?w:x);break;default:Mi(O,j,j,j,[""],x,0,s,x)}}c=u=f=0,g=m=1,y=O="",d=a;break;case 58:d=1+ri(O),f=h;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==hi())continue;switch(O+=Yo(b),b*g){case 38:m=u>0?1:(O+="\f",-1);break;case 44:s[c++]=(ri(O)-1)*m,m=1;break;case 64:45===vi()&&(O+=ji(gi())),p=vi(),u=d=ri(y=O+=Ei(mi())),b++;break;case 45:45===h&&2==ri(O)&&(g=0)}}return i}function Vi(e,t,n,r,o,i,a,s,l,c,u){for(var d=o-1,p=0===o?i:[""],f=oi(p),h=0,g=0,v=0;h<r;++h)for(var m=0,b=ni(e,d+1,d=Ko(g=a[h])),y=e;m<f;++m)(y=Zo(g>0?p[m]+" "+b:Qo(b,/&\f/g,p[m])))&&(l[v++]=y);return pi(e,t,n,0===o?Ti:s,l,c,u)}function Bi(e,t,n){return pi(e,t,n,Ni,Yo(ui),ni(e,2,-2),0)}function Ui(e,t,n,r){return pi(e,t,n,Ri,ni(e,0,r),ni(e,r+1,-1),r)}var Gi=function(e,t,n){for(var r=0,o=0;r=o,o=vi(),38===r&&12===o&&(t[n]=1),!yi(o);)gi();return bi(e,ci)},zi=new WeakMap,Hi=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||zi.get(n))&&!r){zi.set(e,!0);for(var o=[],i=function(e,t){return xi(function(e,t){var n=-1,r=44;do{switch(yi(r)){case 0:38===r&&12===vi()&&(t[n]=1),e[n]+=Gi(ci-1,t,n);break;case 2:e[n]+=ji(r);break;case 4:if(44===r){e[++n]=58===vi()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Yo(r)}}while(r=gi());return e}(wi(e),t))}(t,o),a=n.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},qi=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function $i(e,t){switch(function(e,t){return 45^ti(e,0)?(((t<<2^ti(e,0))<<2^ti(e,1))<<2^ti(e,2))<<2^ti(e,3):0}(e,t)){case 5103:return Pi+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pi+e+ki+e+Ii+e+e;case 6828:case 4268:return Pi+e+Ii+e+e;case 6165:return Pi+e+Ii+"flex-"+e+e;case 5187:return Pi+e+Qo(e,/(\w+).+(:[^]+)/,Pi+"box-$1$2"+Ii+"flex-$1$2")+e;case 5443:return Pi+e+Ii+"flex-item-"+Qo(e,/flex-|-self/,"")+e;case 4675:return Pi+e+Ii+"flex-line-pack"+Qo(e,/align-content|flex-|-self/,"")+e;case 5548:return Pi+e+Ii+Qo(e,"shrink","negative")+e;case 5292:return Pi+e+Ii+Qo(e,"basis","preferred-size")+e;case 6060:return Pi+"box-"+Qo(e,"-grow","")+Pi+e+Ii+Qo(e,"grow","positive")+e;case 4554:return Pi+Qo(e,/([^-])(transform)/g,"$1"+Pi+"$2")+e;case 6187:return Qo(Qo(Qo(e,/(zoom-|grab)/,Pi+"$1"),/(image-set)/,Pi+"$1"),e,"")+e;case 5495:case 3959:return Qo(e,/(image-set\([^]*)/,Pi+"$1$`$1");case 4968:return Qo(Qo(e,/(.+:)(flex-)?(.*)/,Pi+"box-pack:$3"+Ii+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pi+e+e;case 4095:case 3583:case 4068:case 2532:return Qo(e,/(.+)-inline(.+)/,Pi+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ri(e)-1-t>6)switch(ti(e,t+1)){case 109:if(45!==ti(e,t+4))break;case 102:return Qo(e,/(.+:)(.+)-([^]+)/,"$1"+Pi+"$2-$3$1"+ki+(108==ti(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ei(e,"stretch")?$i(Qo(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ti(e,t+1))break;case 6444:switch(ti(e,ri(e)-3-(~ei(e,"!important")&&10))){case 107:return Qo(e,":",":"+Pi)+e;case 101:return Qo(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Pi+(45===ti(e,14)?"inline-":"")+"box$3$1"+Pi+"$2$3$1"+Ii+"$2box$3")+e}break;case 5936:switch(ti(e,t+11)){case 114:return Pi+e+Ii+Qo(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pi+e+Ii+Qo(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pi+e+Ii+Qo(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Pi+e+Ii+e+e}return e}var Wi=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ri:e.return=$i(e.value,e.length);break;case Li:return Di([fi(e,{value:Qo(e.value,"@","@"+Pi)})],r);case Ti:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,function(t){switch(function(e){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return Di([fi(e,{props:[Qo(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return Di([fi(e,{props:[Qo(t,/:(plac\w+)/,":"+Pi+"input-$1")]}),fi(e,{props:[Qo(t,/:(plac\w+)/,":-moz-$1")]}),fi(e,{props:[Qo(t,/:(plac\w+)/,Ii+"input-$1")]})],r)}return""})}}],Xi=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var r,o,i=e.stylisPlugins||Wi,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)});var l,c,u,d,p=[Ai,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[Hi,qi].concat(i,p),u=oi(c),function(e,t,n,r){for(var o="",i=0;i<u;i++)o+=c[i](e,t,n,r)||"";return o});o=function(e,t,n,r){l=n,Di(Fi(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new Xo({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return h.sheet.hydrate(s),h},Ki=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Yi={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ji(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Zi=/[A-Z]|^ms/g,Qi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ea=function(e){return 45===e.charCodeAt(1)},ta=function(e){return null!=e&&"boolean"!=typeof e},na=Ji(function(e){return ea(e)?e:e.replace(Zi,"-$&").toLowerCase()}),ra=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Qi,function(e,t,n){return ia={name:t,styles:n,next:ia},t})}return 1===Yi[e]||ea(e)||"number"!=typeof t||0===t?t:t+"px"};function oa(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var o=n;if(1===o.anim)return ia={name:o.name,styles:o.styles,next:ia},o.name;var i=n;if(void 0!==i.styles){var a=i.next;if(void 0!==a)for(;void 0!==a;)ia={name:a.name,styles:a.styles,next:ia},a=a.next;return i.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=oa(e,t,n[o])+";";else for(var i in n){var a=n[i];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=i+"{"+t[s]+"}":ta(s)&&(r+=na(i)+":"+ra(i,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=oa(e,t,a);switch(i){case"animation":case"animationName":r+=na(i)+":"+l+";";break;default:r+=i+"{"+l+"}"}}else for(var c=0;c<a.length;c++)ta(a[c])&&(r+=na(i)+":"+ra(i,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ia,l=n(e);return ia=s,oa(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var ia,aa=/label:\s*([^\s;{]+)\s*(;|$)/g;function sa(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";ia=void 0;var i=e[0];null==i||void 0===i.raw?(r=!1,o+=oa(n,t,i)):o+=i[0];for(var a=1;a<e.length;a++)o+=oa(n,t,e[a]),r&&(o+=i[a]);aa.lastIndex=0;for(var s,l="";null!==(s=aa.exec(o));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+l;return{name:c,styles:o,next:ia}}var la,ca,ua=!!wn.useInsertionEffect&&wn.useInsertionEffect,da=ua||function(e){return e()},pa=(ua||wn.useLayoutEffect,wn.createContext("undefined"!=typeof HTMLElement?Xi({key:"css"}):null)),fa=(pa.Provider,function(e){return(0,wn.forwardRef)(function(t,n){var r=(0,wn.useContext)(pa);return e(t,r,n)})}),ha=wn.createContext({}),ga={}.hasOwnProperty,va="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ma=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ki(t,n,r),da(function(){return function(e,t,n){Ki(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)}),null},ba=fa(function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var o=e[va],i=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")}),r}(t.registered,i,e.className):null!=e.className&&(a=e.className+" ");var s=sa(i,void 0,wn.useContext(ha));a+=t.key+"-"+s.name;var l={};for(var c in e)ga.call(e,c)&&"css"!==c&&c!==va&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),wn.createElement(wn.Fragment,null,wn.createElement(ma,{cache:t,serialized:s,isStringTag:"string"==typeof o}),wn.createElement(o,l))}),ya=ba,wa=(n(3871),function(e,t){var n=arguments;if(null==t||!ga.call(t,"css"))return wn.createElement.apply(void 0,n);var r=n.length,o=new Array(r);o[0]=ya,o[1]=function(e,t){var n={};for(var r in t)ga.call(t,r)&&(n[r]=t[r]);return n[va]=e,n}(e,t);for(var i=2;i<r;i++)o[i]=n[i];return wn.createElement.apply(null,o)});function xa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return sa(t)}la=wa||(wa={}),ca||(ca=la.JSX||(la.JSX={}));const ja=window.ReactDOM,Oa=Math.min,Ca=Math.max,Sa=Math.round,_a=Math.floor,Ea=e=>({x:e,y:e});function Ia(){return"undefined"!=typeof window}function ka(e){return Ta(e)?(e.nodeName||"").toLowerCase():"#document"}function Pa(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Na(e){var t;return null==(t=(Ta(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ta(e){return!!Ia()&&(e instanceof Node||e instanceof Pa(e).Node)}function Ra(e){return!!Ia()&&(e instanceof Element||e instanceof Pa(e).Element)}function La(e){return!!Ia()&&(e instanceof HTMLElement||e instanceof Pa(e).HTMLElement)}function Da(e){return!(!Ia()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Pa(e).ShadowRoot)}function Aa(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}let Fa;function Ma(e){return Pa(e).getComputedStyle(e)}function Va(e){const t=function(e){if("html"===ka(e))return e;const t=e.assignedSlot||e.parentNode||Da(e)&&e.host||Na(e);return Da(t)?t.host:t}(e);return function(e){return/^(html|body|#document)$/.test(ka(e))}(t)?e.ownerDocument?e.ownerDocument.body:e.body:La(t)&&Aa(t)?t:Va(t)}function Ba(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Va(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=Pa(o);if(i){const e=Ua(a);return t.concat(a,a.visualViewport||[],Aa(o)?o:[],e&&n?Ba(e):[])}return t.concat(o,Ba(o,[],n))}function Ua(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ga(e){return Ra(e)?e:e.contextElement}function za(e){const t=Ga(e);if(!La(t))return Ea(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=function(e){const t=Ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=La(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=Sa(n)!==i||Sa(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}(t);let a=(i?Sa(n.width):n.width)/r,s=(i?Sa(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Ha=Ea(0);function qa(e){const t=Pa(e);return null==Fa&&(Fa="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Fa&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Ha}function $a(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Ga(e);let a=Ea(1);t&&(r?Ra(r)&&(a=za(r)):a=za(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Pa(e))&&t}(i,n,r)?qa(i):Ea(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=Pa(i),t=r&&Ra(r)?Pa(r):r;let n=e,o=Ua(n);for(;o&&r&&t!==n;){const e=za(o),t=o.getBoundingClientRect(),r=Ma(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=Pa(o),o=Ua(n)}}return function(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}({width:u,height:d,x:l,y:c})}function Wa(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}var Xa=wn.useLayoutEffect,Ka=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Ya=function(){};function Ja(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Za(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var a in t)t.hasOwnProperty(a)&&t[a]&&i.push("".concat(Ja(e,a)));return i.filter(function(e){return e}).map(function(e){return String(e).trim()}).join(" ")}var Qa=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===s(e)&&null!==e?[e]:[];var t},es=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,Do({},Ao(e,Ka))},ts=function(e,t,n){var r=e.cx,o=e.getStyles,i=e.getClassNames,a=e.className;return{css:o(t,e),className:r(null!=n?n:{},i(t,e),a)}};function ns(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function rs(e){return ns(e)?window.pageYOffset:e.scrollTop}function os(e,t){ns(e)?window.scrollTo(0,t):e.scrollTop=t}function is(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ya,o=rs(e),i=t-o,a=0;!function t(){var s=function(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}(a+=10,o,i,n);os(e,s),a<n?window.requestAnimationFrame(t):r(e)}()}function as(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?os(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&os(e,Math.max(t.offsetTop-o,0))}function ss(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var ls=!1,cs={get passive(){return ls=!0}},us="undefined"!=typeof window?window:{};us.addEventListener&&us.removeEventListener&&(us.addEventListener("p",Ya,cs),us.removeEventListener("p",Ya,!1));var ds=ls;function ps(e){return null!=e}function fs(e,t,n){return e?t:n}var hs=["children","innerProps"],gs=["children","innerProps"];var vs,ms,bs,ys=function(e){return"auto"===e?"bottom":e},ws=(0,wn.createContext)(null),xs=function(e){var t=e.children,n=e.minMenuHeight,r=e.maxMenuHeight,o=e.menuPlacement,i=e.menuPosition,a=e.menuShouldScrollIntoView,s=e.theme,l=((0,wn.useContext)(ws)||{}).setPortalPlacement,c=(0,wn.useRef)(null),u=y((0,wn.useState)(r),2),d=u[0],p=u[1],f=y((0,wn.useState)(null),2),h=f[0],g=f[1],v=s.spacing.controlHeight;return Xa(function(){var e=c.current;if(e){var t="fixed"===i,s=function(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,a=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,h=p.height,g=p.top,v=n.offsetParent.getBoundingClientRect().top,m=a||ns(u=l)?window.innerHeight:u.clientHeight,b=rs(l),y=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),x=v-w,j=m-g,O=x+b,C=d-b-g,S=f-m+b+y,_=b+g-w,E=160;switch(o){case"auto":case"bottom":if(j>=h)return{placement:"bottom",maxHeight:t};if(C>=h&&!a)return i&&is(l,S,E),{placement:"bottom",maxHeight:t};if(!a&&C>=r||a&&j>=r)return i&&is(l,S,E),{placement:"bottom",maxHeight:a?j-y:C-y};if("auto"===o||a){var I=t,k=a?x:O;return k>=r&&(I=Math.min(k-y-s,t)),{placement:"top",maxHeight:I}}if("bottom"===o)return i&&os(l,S),{placement:"bottom",maxHeight:t};break;case"top":if(x>=h)return{placement:"top",maxHeight:t};if(O>=h&&!a)return i&&is(l,_,E),{placement:"top",maxHeight:t};if(!a&&O>=r||a&&x>=r){var P=t;return(!a&&O>=r||a&&x>=r)&&(P=a?x-w:O-w),i&&is(l,_,E),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}({maxHeight:r,menuEl:e,minHeight:n,placement:o,shouldScroll:a&&!t,isFixedPosition:t,controlHeight:v});p(s.maxHeight),g(s.placement),null==l||l(s.placement)}},[r,o,i,a,n,l,v]),t({ref:c,placerProps:Do(Do({},e),{},{placement:h||ys(o),maxHeight:d})})},js=function(e,t){var n=e.theme,r=n.spacing.baseUnit,o=n.colors;return Do({textAlign:"center"},t?{}:{color:o.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},Os=js,Cs=js,Ss=["size"],_s=["innerProps","isRtl","size"],Es={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},Is=function(e){var t=e.size,n=Ao(e,Ss);return wa("svg",Mo({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:Es},n))},ks=function(e){return wa(Is,Mo({size:20},e),wa("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Ps=function(e){return wa(Is,Mo({size:20},e),wa("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ns=function(e,t){var n=e.isFocused,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Do({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*o,":hover":{color:n?i.neutral80:i.neutral40}})},Ts=Ns,Rs=Ns,Ls=function(){var e=xa.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(vs||(ms=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],bs||(bs=ms.slice(0)),vs=Object.freeze(Object.defineProperties(ms,{raw:{value:Object.freeze(bs)}})))),Ds=function(e){var t=e.delay,n=e.offset;return wa("span",{css:xa({animation:"".concat(Ls," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},As=["data"],Fs=["innerRef","isDisabled","isHidden","inputClassName"],Ms={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Vs={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":Do({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},Ms)},Bs=function(e){return Do({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},Ms)},Us=function(e){var t=e.children,n=e.innerProps;return wa("div",n,t)},Gs={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return wa("div",Mo({},ts(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||wa(ks,null))},Control:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.innerRef,i=e.innerProps,a=e.menuIsOpen;return wa("div",Mo({ref:o},ts(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":a}),i,{"aria-disabled":n||void 0}),t)},DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return wa("div",Mo({},ts(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||wa(Ps,null))},DownChevron:Ps,CrossIcon:ks,Group:function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.getClassNames,i=e.Heading,a=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return wa("div",Mo({},ts(e,"group",{group:!0}),s),wa(i,Mo({},a,{selectProps:u,theme:c,getStyles:r,getClassNames:o,cx:n}),l),wa("div",null,t))},GroupHeading:function(e){var t=es(e);t.data;var n=Ao(t,As);return wa("div",Mo({},ts(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return wa("div",Mo({},ts(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return wa("span",Mo({},t,ts(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=es(e),o=r.innerRef,i=r.isDisabled,a=r.isHidden,s=r.inputClassName,l=Ao(r,Fs);return wa("div",Mo({},ts(e,"input",{"input-container":!0}),{"data-value":n||""}),wa("input",Mo({className:t({input:!0},s),ref:o,style:Bs(a),disabled:i},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,o=void 0===r?4:r,i=Ao(e,_s);return wa("div",Mo({},ts(Do(Do({},i),{},{innerProps:t,isRtl:n,size:o}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),wa(Ds,{delay:0,offset:n}),wa(Ds,{delay:160,offset:!0}),wa(Ds,{delay:320,offset:!n}))},Menu:function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return wa("div",Mo({},ts(e,"menu",{menu:!0}),{ref:n},r),t)},MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,o=e.isMulti;return wa("div",Mo({},ts(e,"menuList",{"menu-list":!0,"menu-list--is-multi":o}),{ref:r},n),t)},MenuPortal:function(e){var t=e.appendTo,n=e.children,r=e.controlElement,o=e.innerProps,i=e.menuPlacement,a=e.menuPosition,s=(0,wn.useRef)(null),l=(0,wn.useRef)(null),c=y((0,wn.useState)(ys(i)),2),u=c[0],d=c[1],p=(0,wn.useMemo)(function(){return{setPortalPlacement:d}},[]),f=y((0,wn.useState)(null),2),h=f[0],g=f[1],v=(0,wn.useCallback)(function(){if(r){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(r),t="fixed"===a?0:window.pageYOffset,n=e[u]+t;n===(null==h?void 0:h.offset)&&e.left===(null==h?void 0:h.rect.left)&&e.width===(null==h?void 0:h.rect.width)||g({offset:n,rect:e})}},[r,a,u,null==h?void 0:h.offset,null==h?void 0:h.rect.left,null==h?void 0:h.rect.width]);Xa(function(){v()},[v]);var m=(0,wn.useCallback)(function(){"function"==typeof l.current&&(l.current(),l.current=null),r&&s.current&&(l.current=function(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Ga(e),u=o||i?[...c?Ba(c):[],...t?Ba(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Na(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:d,width:p,height:f}=c;if(s||t(),!p||!f)return;const h={rootMargin:-_a(d)+"px "+-_a(o.clientWidth-(u+p))+"px "+-_a(o.clientHeight-(d+f))+"px "+-_a(u)+"px",threshold:Ca(0,Oa(1,l))||1};let g=!0;function v(t){const r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||Wa(c,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(v,{...h,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),i}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),n()}),c&&!l&&h.observe(c),t&&h.observe(t));let g=l?$a(e):null;return l&&function t(){const r=$a(e);g&&!Wa(g,r)&&n(),g=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}(r,s.current,v,{elementResize:"ResizeObserver"in window}))},[r,v]);Xa(function(){m()},[m]);var b=(0,wn.useCallback)(function(e){s.current=e,m()},[m]);if(!t&&"fixed"!==a||!h)return null;var w=wa("div",Mo({ref:b},ts(Do(Do({},e),{},{offset:h.offset,position:a,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),n);return wa(ws.Provider,{value:p},t?(0,ja.createPortal)(w,t):w)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,o=Ao(e,gs);return wa("div",Mo({},ts(Do(Do({},o),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,o=Ao(e,hs);return wa("div",Mo({},ts(Do(Do({},o),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:function(e){var t=e.children,n=e.components,r=e.data,o=e.innerProps,i=e.isDisabled,a=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return wa(l,{data:r,innerProps:Do(Do({},ts(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":i})),o),selectProps:s},wa(c,{data:r,innerProps:Do({},ts(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),wa(u,{data:r,innerProps:Do(Do({},ts(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},a),selectProps:s}))},MultiValueContainer:Us,MultiValueLabel:Us,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return wa("div",Mo({role:"button"},n),t||wa(ks,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.innerRef,a=e.innerProps;return wa("div",Mo({},ts(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":o}),{ref:i,"aria-disabled":n},a),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return wa("div",Mo({},ts(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,o=e.isRtl;return wa("div",Mo({},ts(e,"container",{"--is-disabled":r,"--is-rtl":o}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return wa("div",Mo({},ts(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,o=e.hasValue;return wa("div",Mo({},ts(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":o}),n),t)}},zs=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Hs(e,t){return e===t||!(!zs(e)||!zs(t))}function qs(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Hs(e[n],t[n]))return!1;return!0}for(var $s={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Ws=function(e){return wa("span",Mo({css:$s},e))},Xs={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.tabSelectsValue,o=e.context,i=e.isInitialFocus;switch(o){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(r?", press Tab to select the option and exit the menu":"",".");case"input":return i?"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,o=e.labels,i=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(o.length>1?"s":""," ").concat(o.join(","),", selected.");case"select-option":return"option ".concat(r,i?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,o=e.label,i=void 0===o?"":o,a=e.selectValue,s=e.isDisabled,l=e.isSelected,c=e.isAppleDevice,u=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&a)return"value ".concat(i," focused, ").concat(u(a,n),".");if("menu"===t&&c){var d=s?" disabled":"",p="".concat(l?" selected":"").concat(d);return"".concat(i).concat(p,", ").concat(u(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Ks=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,o=e.focusableOptions,i=e.isFocused,a=e.selectValue,s=e.selectProps,l=e.id,c=e.isAppleDevice,u=s.ariaLiveMessages,d=s.getOptionLabel,p=s.inputValue,f=s.isMulti,h=s.isOptionDisabled,g=s.isSearchable,v=s.menuIsOpen,m=s.options,b=s.screenReaderStatus,y=s.tabSelectsValue,w=s.isLoading,x=s["aria-label"],j=s["aria-live"],O=(0,wn.useMemo)(function(){return Do(Do({},Xs),u||{})},[u]),C=(0,wn.useMemo)(function(){var e,n="";if(t&&O.onChange){var r=t.option,o=t.options,i=t.removedValue,s=t.removedValues,l=t.value,c=i||r||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",p=o||s||void 0,f=p?p.map(d):[],g=Do({isDisabled:c&&h(c,a),label:u,labels:f},t);n=O.onChange(g)}return n},[t,O,h,a,d]),S=(0,wn.useMemo)(function(){var e="",t=n||r,i=!!(n&&a&&a.includes(n));if(t&&O.onFocus){var s={focused:t,label:d(t),isDisabled:h(t,a),isSelected:i,options:o,context:t===n?"menu":"value",selectValue:a,isAppleDevice:c};e=O.onFocus(s)}return e},[n,r,d,h,O,o,a,c]),_=(0,wn.useMemo)(function(){var e="";if(v&&m.length&&!w&&O.onFilter){var t=b({count:o.length});e=O.onFilter({inputValue:p,resultsMessage:t})}return e},[o,p,v,O,m,b,w]),E="initial-input-focus"===(null==t?void 0:t.action),I=(0,wn.useMemo)(function(){var e="";if(O.guidance){var t=r?"value":v?"menu":"input";e=O.guidance({"aria-label":x,context:t,isDisabled:n&&h(n,a),isMulti:f,isSearchable:g,tabSelectsValue:y,isInitialFocus:E})}return e},[x,n,r,f,h,g,v,O,a,y,E]),k=wa(wn.Fragment,null,wa("span",{id:"aria-selection"},C),wa("span",{id:"aria-focused"},S),wa("span",{id:"aria-results"},_),wa("span",{id:"aria-guidance"},I));return wa(wn.Fragment,null,wa(Ws,{id:l},E&&k),wa(Ws,{"aria-live":j,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},i&&!E&&k))},Ys=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],Js=new RegExp("["+Ys.map(function(e){return e.letters}).join("")+"]","g"),Zs={},Qs=0;Qs<Ys.length;Qs++)for(var el=Ys[Qs],tl=0;tl<el.letters.length;tl++)Zs[el.letters[tl]]=el.base;var nl=function(e){return e.replace(Js,function(e){return Zs[e]})},rl=function(e,t){void 0===t&&(t=qs);var n=null;function r(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var i=e.apply(this,r);return n={lastResult:i,lastArgs:r,lastThis:this},i}return r.clear=function(){n=null},r}(nl),ol=function(e){return e.replace(/^\s+|\s+$/g,"")},il=function(e){return"".concat(e.label," ").concat(e.value)},al=["innerRef"];function sl(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Object.entries(e).filter(function(e){var t=y(e,1)[0];return!n.includes(t)});return o.reduce(function(e,t){var n=y(t,2),r=n[0],o=n[1];return e[r]=o,e},{})}(Ao(e,al),"onExited","in","enter","exit","appear");return wa("input",Mo({ref:t},n,{css:xa({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var ll=["boxSizing","height","overflow","paddingRight","position"],cl={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function ul(e){e.cancelable&&e.preventDefault()}function dl(e){e.stopPropagation()}function pl(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function fl(){return"ontouchstart"in window||navigator.maxTouchPoints}var hl=!("undefined"==typeof window||!window.document||!window.document.createElement),gl=0,vl={capture:!1,passive:!1},ml=function(e){var t=e.target;return t.ownerDocument.activeElement&&t.ownerDocument.activeElement.blur()},bl={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function yl(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=function(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,a=(0,wn.useRef)(!1),s=(0,wn.useRef)(!1),l=(0,wn.useRef)(0),c=(0,wn.useRef)(null),u=(0,wn.useCallback)(function(e,t){if(null!==c.current){var l=c.current,u=l.scrollTop,d=l.scrollHeight,p=l.clientHeight,f=c.current,h=t>0,g=d-p-u,v=!1;g>t&&a.current&&(r&&r(e),a.current=!1),h&&s.current&&(i&&i(e),s.current=!1),h&&t>g?(n&&!a.current&&n(e),f.scrollTop=d,v=!0,a.current=!0):!h&&-t>u&&(o&&!s.current&&o(e),f.scrollTop=0,v=!0,s.current=!0),v&&function(e){e.cancelable&&e.preventDefault(),e.stopPropagation()}(e)}},[n,r,o,i]),d=(0,wn.useCallback)(function(e){u(e,e.deltaY)},[u]),p=(0,wn.useCallback)(function(e){l.current=e.changedTouches[0].clientY},[]),f=(0,wn.useCallback)(function(e){var t=l.current-e.changedTouches[0].clientY;u(e,t)},[u]),h=(0,wn.useCallback)(function(e){if(e){var t=!!ds&&{passive:!1};e.addEventListener("wheel",d,t),e.addEventListener("touchstart",p,t),e.addEventListener("touchmove",f,t)}},[f,p,d]),g=(0,wn.useCallback)(function(e){e&&(e.removeEventListener("wheel",d,!1),e.removeEventListener("touchstart",p,!1),e.removeEventListener("touchmove",f,!1))},[f,p,d]);return(0,wn.useEffect)(function(){if(t){var e=c.current;return h(e),function(){g(e)}}},[t,h,g]),function(e){c.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),i=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,o=(0,wn.useRef)({}),i=(0,wn.useRef)(null),a=(0,wn.useCallback)(function(e){if(hl){var t=document.body,n=t&&t.style;if(r&&ll.forEach(function(e){var t=n&&n[e];o.current[e]=t}),r&&gl<1){var i=parseInt(o.current.paddingRight,10)||0,a=document.body?document.body.clientWidth:0,s=window.innerWidth-a+i||0;Object.keys(cl).forEach(function(e){var t=cl[e];n&&(n[e]=t)}),n&&(n.paddingRight="".concat(s,"px"))}t&&fl()&&(t.addEventListener("touchmove",ul,vl),e&&(e.addEventListener("touchstart",pl,vl),e.addEventListener("touchmove",dl,vl))),gl+=1}},[r]),s=(0,wn.useCallback)(function(e){if(hl){var t=document.body,n=t&&t.style;gl=Math.max(gl-1,0),r&&gl<1&&ll.forEach(function(e){var t=o.current[e];n&&(n[e]=t)}),t&&fl()&&(t.removeEventListener("touchmove",ul,vl),e&&(e.removeEventListener("touchstart",pl,vl),e.removeEventListener("touchmove",dl,vl)))}},[r]);return(0,wn.useEffect)(function(){if(t){var e=i.current;return a(e),function(){s(e)}}},[t,a,s]),function(e){i.current=e}}({isEnabled:n});return wa(wn.Fragment,null,n&&wa("div",{onClick:ml,css:bl}),t(function(e){o(e),i(e)}))}var wl={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},xl=function(e){var t=e.name,n=e.onFocus;return wa("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:wl,value:"",onChange:function(){}})};function jl(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function Ol(){return jl(/^Mac/i)}var Cl={clearIndicator:Rs,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.theme,i=o.colors,a=o.borderRadius;return Do({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:o.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?i.neutral5:i.neutral0,borderColor:n?i.neutral10:r?i.primary:i.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(i.primary):void 0,"&:hover":{borderColor:r?i.primary:i.neutral30}})},dropdownIndicator:Ts,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,o=n.spacing;return Do({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*o.baseUnit,paddingRight:3*o.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing.baseUnit,i=r.colors;return Do({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?i.neutral10:i.neutral20,marginBottom:2*o,marginTop:2*o})},input:function(e,t){var n=e.isDisabled,r=e.value,o=e.theme,i=o.spacing,a=o.colors;return Do(Do({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Vs),t?{}:{margin:i.baseUnit/2,paddingBottom:i.baseUnit/2,paddingTop:i.baseUnit/2,color:a.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,o=e.theme,i=o.colors,a=o.spacing.baseUnit;return Do({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?i.neutral60:i.neutral20,padding:2*a})},loadingMessage:Cs,menu:function(e,t){var n,r=e.placement,o=e.theme,i=o.borderRadius,a=o.spacing,s=o.colors;return Do((c(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),c(n,"position","absolute"),c(n,"width","100%"),c(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:i,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return Do({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors;return Do({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:i.neutral10,borderRadius:o/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,o=n.colors,i=e.cropWithEllipsis;return Do({overflow:"hidden",textOverflow:i||void 0===i?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:o.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,o=n.borderRadius,i=n.colors,a=e.isFocused;return Do({alignItems:"center",display:"flex"},t?{}:{borderRadius:o/2,backgroundColor:a?i.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:i.dangerLight,color:i.danger}})},noOptionsMessage:Os,option:function(e,t){var n=e.isDisabled,r=e.isFocused,o=e.isSelected,i=e.theme,a=i.spacing,s=i.colors;return Do({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:o?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:o?s.neutral0:"inherit",padding:"".concat(2*a.baseUnit,"px ").concat(3*a.baseUnit,"px"),":active":{backgroundColor:n?void 0:o?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,o=n.colors;return Do({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:o.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,o=r.spacing,i=r.colors;return Do({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?i.neutral40:i.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,o=e.hasValue,i=e.selectProps.controlShouldRenderValue;return Do({alignItems:"center",display:r&&o&&i?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}},Sl={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},_l={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:ss(),captureMenuScroll:!ss(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Do({ignoreCase:!0,ignoreAccents:!0,stringify:il,trim:!0,matchFrom:"any"},void 0),r=n.ignoreCase,o=n.ignoreAccents,i=n.stringify,a=n.trim,s=n.matchFrom,l=a?ol(t):t,c=a?ol(i(e)):i(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),o&&(l=rl(l),c=nl(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function El(e,t,n,r){return{type:"option",data:t,isDisabled:Dl(e,t,n),isSelected:Al(e,t,n),label:Rl(e,t),value:Ll(e,t),index:r}}function Il(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(n,r){return El(e,n,t,r)}).filter(function(t){return Nl(e,t)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=El(e,n,t,r);return Nl(e,i)?i:void 0}).filter(ps)}function kl(e){return e.reduce(function(e,t){return"group"===t.type?e.push.apply(e,b(t.options.map(function(e){return e.data}))):e.push(t.data),e},[])}function Pl(e,t){return e.reduce(function(e,n){return"group"===n.type?e.push.apply(e,b(n.options.map(function(e){return{data:e.data,id:"".concat(t,"-").concat(n.index,"-").concat(e.index)}}))):e.push({data:n.data,id:"".concat(t,"-").concat(n.index)}),e},[])}function Nl(e,t){var n=e.inputValue,r=void 0===n?"":n,o=t.data,i=t.isSelected,a=t.label,s=t.value;return(!Ml(e)||!i)&&Fl(e,{label:a,value:s,data:o},r)}var Tl=function(e,t){var n;return(null===(n=e.find(function(e){return e.data===t}))||void 0===n?void 0:n.id)||null},Rl=function(e,t){return e.getOptionLabel(t)},Ll=function(e,t){return e.getOptionValue(t)};function Dl(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Al(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ll(e,t);return n.some(function(t){return Ll(e,t)===r})}function Fl(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Ml=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Vl=1,Bl=function(e){zo(n,e);var t=function(e){var t=qo();return function(){var n,r=Ho(e);if(t){var o=Ho(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wo(this,n)}}(n);function n(e){var r;if(Vo(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:"",isAppleDevice:!1},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,o=n.onChange,i=n.name;t.name=i,r.ariaOnChange(e,t),o(e,t)},r.setValue=function(e,t,n){var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti,s=o.inputValue;r.onInputChange("",{action:"set-value",prevInputValue:s}),i&&(r.setState({inputIsHiddenAfterUpdate:!a}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=t.name,a=r.state.selectValue,s=o&&r.isOptionSelected(e,a),l=r.isOptionDisabled(e,a);if(s){var c=r.getOptionValue(e);r.setValue(a.filter(function(e){return r.getOptionValue(e)!==c}),"deselect-option",e)}else{if(l)return void r.ariaOnChange(e,{action:"select-option",option:e,name:i});o?r.setValue([].concat(b(a),[e]),"select-option",e):r.setValue(e,"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,o=r.getOptionValue(e),i=n.filter(function(e){return r.getOptionValue(e)!==o}),a=fs(t,i,i[0]||null);r.onChange(a,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(fs(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],o=t.slice(0,t.length-1),i=fs(e,o,o[0]||null);n&&r.onChange(i,{action:"pop-value",removedValue:n})},r.getFocusedOptionId=function(e){return Tl(r.state.focusableOptionsWithIds,e)},r.getFocusableOptionsWithIds=function(){return Pl(Il(r.props,r.state.selectValue),r.getElementId("option"))},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Za.apply(void 0,[r.props.classNamePrefix].concat(t))},r.getOptionLabel=function(e){return Rl(r.props,e)},r.getOptionValue=function(e){return Ll(r.props,e)},r.getStyles=function(e,t){var n=r.props.unstyled,o=Cl[e](t,n);o.boxSizing="border-box";var i=r.props.styles[e];return i?i(o,t):o},r.getClassNames=function(e,t){var n,o;return null===(n=(o=r.props.classNames)[e])||void 0===n?void 0:n.call(o,t)},r.getElementId=function(e){return"".concat(r.state.instancePrefix,"-").concat(e)},r.getComponents=function(){return e=r.props,Do(Do({},Gs),e.components);var e},r.buildCategorizedOptions=function(){return Il(r.props,r.state.selectValue)},r.getCategorizedOptions=function(){return r.props.menuIsOpen?r.buildCategorizedOptions():[]},r.buildFocusableOptions=function(){return kl(r.buildCategorizedOptions())},r.getFocusableOptions=function(){return r.props.menuIsOpen?r.buildFocusableOptions():[]},r.ariaOnChange=function(e,t){r.setState({ariaSelection:Do({value:e},t)})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){if(!e.defaultPrevented){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.setState({inputIsHiddenAfterUpdate:!n}),r.onMenuClose()):r.openMenu("first"),e.preventDefault()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.preventDefault(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout(function(){return r.focusInput()}))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&ns(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches,n=t&&t.item(0);n&&(r.initialTouchX=n.clientX,r.initialTouchY=n.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches,n=t&&t.item(0);if(n){var o=Math.abs(n.clientX-r.initialTouchX),i=Math.abs(n.clientY-r.initialTouchY);r.userIsDragging=o>5||i>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=r.props.inputValue,n=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(n,{action:"input-change",prevInputValue:t}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){var t=r.props.inputValue;r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur",prevInputValue:t}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){if(!r.blockOptionHover&&r.state.focusedOption!==e){var t=r.getFocusableOptions().indexOf(e);r.setState({focusedOption:e,focusedOptionId:t>-1?r.getFocusedOptionId(e):null})}},r.shouldHideSelectedOptions=function(){return Ml(r.props)},r.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),r.focus()},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,f=r.state,h=f.focusedOption,g=f.focusedValue,v=f.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(g)r.removeValue(g);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!h||p&&r.isOptionSelected(h,v))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(c){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close",prevInputValue:a}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!c){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.state.instancePrefix="react-select-"+(r.props.instanceId||++Vl),r.state.selectValue=Qa(e.value),e.menuIsOpen&&r.state.selectValue.length){var o=r.getFocusableOptionsWithIds(),i=r.buildFocusableOptions(),a=i.indexOf(r.state.selectValue[0]);r.state.focusableOptionsWithIds=o,r.state.focusedOption=i[a],r.state.focusedOptionId=Tl(o,i[a])}return r}return Uo(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&as(this.menuListRef,this.focusedOptionRef),(Ol()||jl(/^iPhone/i)||jl(/^iPad/i)||Ol()&&navigator.maxTouchPoints>1)&&this.setState({isAppleDevice:!0})}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,o=this.state.isFocused;(o&&!n&&e.isDisabled||o&&r&&!e.menuIsOpen)&&this.focusInput(),o&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):o||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(as(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,o=n.isFocused,i=this.buildFocusableOptions(),a="first"===e?0:i.length-1;if(!this.props.isMulti){var s=i.indexOf(r[0]);s>-1&&(a=s)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:i[a],focusedOptionId:this.getFocusedOptionId(i[a])},function(){return t.onMenuOpen()})}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var o=n.indexOf(r);r||(o=-1);var i=n.length-1,a=-1;if(n.length){switch(e){case"previous":a=0===o?0:-1===o?i:o-1;break;case"next":o>-1&&o<i&&(a=o+1)}this.setState({inputIsHidden:-1!==a,focusedValue:n[a]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var o=0,i=r.indexOf(n);n||(i=-1),"up"===e?o=i>0?i-1:r.length-1:"down"===e?o=(i+1)%r.length:"pageup"===e?(o=i-t)<0&&(o=0):"pagedown"===e?(o=i+t)>r.length-1&&(o=r.length-1):"last"===e&&(o=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[o],focusedValue:null,focusedOptionId:this.getFocusedOptionId(r[o])})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(Sl):Do(Do({},Sl),this.props.theme):Sl}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,o=this.getValue,i=this.selectOption,a=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:o,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:i,selectProps:s,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Dl(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Al(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Fl(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,a=e.form,s=e.menuIsOpen,l=e.required,c=this.getComponents().Input,u=this.state,d=u.inputIsHidden,p=u.ariaSelection,f=this.commonProps,h=r||this.getElementId("input"),g=Do(Do(Do({"aria-autocomplete":"list","aria-expanded":s,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":l,role:"combobox","aria-activedescendant":this.state.isAppleDevice?void 0:this.state.focusedOptionId||""},s&&{"aria-controls":this.getElementId("listbox")}),!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==p?void 0:p.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?wn.createElement(c,Mo({},f,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:t,isHidden:d,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:a,type:"text",value:o},g)):wn.createElement(sl,Mo({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Ya,onFocus:this.onInputFocus,disabled:t,tabIndex:i,inputMode:"none",form:a,value:""},g))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,a=t.SingleValue,s=t.Placeholder,l=this.commonProps,c=this.props,u=c.controlShouldRenderValue,d=c.isDisabled,p=c.isMulti,f=c.inputValue,h=c.placeholder,g=this.state,v=g.selectValue,m=g.focusedValue,b=g.isFocused;if(!this.hasValue()||!u)return f?null:wn.createElement(s,Mo({},l,{key:"placeholder",isDisabled:d,isFocused:b,innerProps:{id:this.getElementId("placeholder")}}),h);if(p)return v.map(function(t,a){var s=t===m,c="".concat(e.getOptionLabel(t),"-").concat(e.getOptionValue(t));return wn.createElement(n,Mo({},l,{components:{Container:r,Label:o,Remove:i},isFocused:s,isDisabled:d,key:c,index:a,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault()}},data:t}),e.formatOptionLabel(t,"value"))});if(f)return null;var y=v[0];return wn.createElement(a,Mo({},l,{data:y,isDisabled:d}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var a={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return wn.createElement(e,Mo({},t,{innerProps:a,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;return e&&o?wn.createElement(e,Mo({},t,{innerProps:{"aria-hidden":"true"},isDisabled:r,isFocused:i})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return wn.createElement(n,Mo({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return wn.createElement(e,Mo({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,a=t.MenuPortal,s=t.LoadingMessage,l=t.NoOptionsMessage,c=t.Option,u=this.commonProps,d=this.state.focusedOption,p=this.props,f=p.captureMenuScroll,h=p.inputValue,g=p.isLoading,v=p.loadingMessage,m=p.minMenuHeight,b=p.maxMenuHeight,y=p.menuIsOpen,w=p.menuPlacement,x=p.menuPosition,j=p.menuPortalTarget,O=p.menuShouldBlockScroll,C=p.menuShouldScrollIntoView,S=p.noOptionsMessage,_=p.onMenuScrollToTop,E=p.onMenuScrollToBottom;if(!y)return null;var I,k=function(t,n){var r=t.type,o=t.data,i=t.isDisabled,a=t.isSelected,s=t.label,l=t.value,p=d===o,f=i?void 0:function(){return e.onOptionHover(o)},h=i?void 0:function(){return e.selectOption(o)},g="".concat(e.getElementId("option"),"-").concat(n),v={id:g,onClick:h,onMouseMove:f,onMouseOver:f,tabIndex:-1,role:"option","aria-selected":e.state.isAppleDevice?void 0:a};return wn.createElement(c,Mo({},u,{innerProps:v,data:o,isDisabled:i,isSelected:a,key:g,label:s,type:r,value:l,isFocused:p,innerRef:p?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())I=this.getCategorizedOptions().map(function(t){if("group"===t.type){var o=t.data,i=t.options,a=t.index,s="".concat(e.getElementId("group"),"-").concat(a),l="".concat(s,"-heading");return wn.createElement(n,Mo({},u,{key:s,data:o,options:i,Heading:r,headingProps:{id:l,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map(function(e){return k(e,"".concat(a,"-").concat(e.index))}))}if("option"===t.type)return k(t,"".concat(t.index))});else if(g){var P=v({inputValue:h});if(null===P)return null;I=wn.createElement(s,u,P)}else{var N=S({inputValue:h});if(null===N)return null;I=wn.createElement(l,u,N)}var T={minMenuHeight:m,maxMenuHeight:b,menuPlacement:w,menuPosition:x,menuShouldScrollIntoView:C},R=wn.createElement(xs,Mo({},u,T),function(t){var n=t.ref,r=t.placerProps,a=r.placement,s=r.maxHeight;return wn.createElement(o,Mo({},u,T,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:a}),wn.createElement(yl,{captureEnabled:f,onTopArrive:_,onBottomArrive:E,lockEnabled:O},function(t){return wn.createElement(i,Mo({},u,{innerRef:function(n){e.getMenuListRef(n),t(n)},innerProps:{role:"listbox","aria-multiselectable":u.isMulti,id:e.getElementId("listbox")},isLoading:g,maxHeight:s,focusedOption:d}),I)}))});return j||"fixed"===x?wn.createElement(a,Mo({},u,{appendTo:j,controlElement:this.controlRef,menuPlacement:w,menuPosition:x}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,a=t.required,s=this.state.selectValue;if(a&&!this.hasValue()&&!r)return wn.createElement(xl,{name:i,onFocus:this.onValueInputFocus});if(i&&!r){if(o){if(n){var l=s.map(function(t){return e.getOptionValue(t)}).join(n);return wn.createElement("input",{name:i,type:"hidden",value:l})}var c=s.length>0?s.map(function(t,n){return wn.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})}):wn.createElement("input",{name:i,type:"hidden",value:""});return wn.createElement("div",null,c)}var u=s[0]?this.getOptionValue(s[0]):"";return wn.createElement("input",{name:i,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.isFocused,a=t.selectValue,s=this.getFocusableOptions();return wn.createElement(Ks,Mo({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:r,focusedValue:o,isFocused:i,selectValue:a,focusableOptions:s,isAppleDevice:this.state.isAppleDevice}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,a=i.className,s=i.id,l=i.isDisabled,c=i.menuIsOpen,u=this.state.isFocused,d=this.commonProps=this.getCommonProps();return wn.createElement(r,Mo({},d,{className:a,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:l,isFocused:u}),this.renderLiveRegion(),wn.createElement(t,Mo({},d,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:l,isFocused:u,menuIsOpen:c}),wn.createElement(o,Mo({},d,{isDisabled:l}),this.renderPlaceholderOrValue(),this.renderInput()),wn.createElement(n,Mo({},d,{isDisabled:l}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,o=t.inputIsHiddenAfterUpdate,i=t.ariaSelection,a=t.isFocused,s=t.prevWasFocused,l=t.instancePrefix,c=e.options,u=e.value,d=e.menuIsOpen,p=e.inputValue,f=e.isMulti,h=Qa(u),g={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||p!==n.inputValue)){var v=d?function(e,t){return kl(Il(e,t))}(e,h):[],m=d?Pl(Il(e,h),"".concat(l,"-option")):[],b=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,h):null,y=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,v);g={selectValue:h,focusedOption:y,focusedOptionId:Tl(m,y),focusableOptionsWithIds:m,focusedValue:b,clearFocusValueOnUpdate:!1}}var w=null!=o&&e!==n?{inputIsHidden:o,inputIsHiddenAfterUpdate:void 0}:{},x=i,j=a&&s;return a&&!j&&(x={value:fs(f,h,h[0]||null),options:h,action:"initial-input-focus"},j=!s),"initial-input-focus"===(null==i?void 0:i.action)&&(x=null),Do(Do(Do({},g),w),{},{prevProps:e,ariaSelection:x,prevWasFocused:j})}}]),n}(wn.Component);Bl.defaultProps=_l;var Ul=(0,wn.forwardRef)(function(e,t){var n=function(e){var t=e.defaultInputValue,n=void 0===t?"":t,r=e.defaultMenuIsOpen,o=void 0!==r&&r,i=e.defaultValue,a=void 0===i?null:i,s=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,d=e.onMenuClose,p=e.onMenuOpen,f=e.value,h=Ao(e,Fo),g=y((0,wn.useState)(void 0!==s?s:n),2),v=g[0],m=g[1],b=y((0,wn.useState)(void 0!==l?l:o),2),w=b[0],x=b[1],j=y((0,wn.useState)(void 0!==f?f:a),2),O=j[0],C=j[1],S=(0,wn.useCallback)(function(e,t){"function"==typeof c&&c(e,t),C(e)},[c]),_=(0,wn.useCallback)(function(e,t){var n;"function"==typeof u&&(n=u(e,t)),m(void 0!==n?n:e)},[u]),E=(0,wn.useCallback)(function(){"function"==typeof p&&p(),x(!0)},[p]),I=(0,wn.useCallback)(function(){"function"==typeof d&&d(),x(!1)},[d]),k=void 0!==s?s:v,P=void 0!==l?l:w,N=void 0!==f?f:O;return Do(Do({},h),{},{inputValue:k,menuIsOpen:P,onChange:S,onInputChange:_,onMenuClose:I,onMenuOpen:E,value:N})}(e);return wn.createElement(Bl,Mo({ref:t},n))}),Gl=Ul,zl=n(4015),Hl=n.n(zl);const ql=function(e){var t=e.current,n=e.total,r=e.scroller,s=function(e){var r=20;Array.prototype.slice.call(e.target.children).map(function(e){r+=e.offsetHeight});var o=e.target.scrollTop,i=e.target.offsetHeight;t<n&&o+i+500>r&&(0,u.dispatch)("gutenverse/library").setPaging(t+1)};return(0,o.useEffect)(function(){if(r){var e,t=Hl()(s,100);return null==r||null===(e=r.current)||void 0===e||e.addEventListener("scroll",t),function(){var e;null==r||null===(e=r.current)||void 0===e||e.removeEventListener("scroll",t)}}}),t<n?(0,a.jsx)("div",{className:"gutenverse-paging",children:(0,a.jsx)("div",{className:In()("gutenverse-paging-button"),onClick:function(){(0,u.dispatch)("gutenverse/library").setPaging(t+1)},children:(0,i.__)("Load More","gutenverse")})}):null},$l=function(e){var n=e.subtitle,r=e.title,o=e.leftBannerImg,i=e.rightBannerImg,s=e.backgroundGradient,l=e.container,c=e.customStyles,u=void 0===c?{}:c,d=e.link,p=window.GutenverseConfig||window.GutenverseDashboard||{},f=p.eventBanner,h=p.imgDir,g=f,v=new Date,m=new Date(null==g?void 0:g.expired),b=(0,a.jsxs)("div",{className:"banner-pro",style:u,children:[h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"banner-image-background",src:"".concat(h,"/").concat(s)}),(0,a.jsx)("img",{className:"banner-image-left",src:"".concat(h,"/").concat(o)}),(0,a.jsx)("img",{className:"banner-image-right",src:"".concat(h,"/").concat(i)}),(0,a.jsx)("img",{className:"banner-image-arrow ".concat(l),src:"".concat(h,"/banner-arrow-blue.png")}),(0,a.jsx)("img",{className:"banner-image-blink ".concat(l),src:"".concat(h,"/banner-graphic-blink.png")})]}),!Nn()(n)&&(0,a.jsx)("p",{className:"subtitle",children:n}),!Nn()(r)&&(0,a.jsx)("h4",{className:"title",children:r}),(0,a.jsx)("div",{className:"buttons",children:(0,a.jsx)(mo,{location:l,isBanner:!0,link:d})})]}),y=(0,t.applyFilters)("gutenverse.pro.upgrade.banner",b,null),w=function(){return(0,a.jsx)(a.Fragment,{children:g&&v<=m&&"library"===l?(0,a.jsx)("div",{className:"event-banner-wrapper",children:(0,a.jsx)("a",{href:null==g?void 0:g.url,target:"_blank",rel:"noreferrer",children:(0,a.jsx)("img",{src:"library"===l?null==g?void 0:g.bannerLibrary:null==g?void 0:g.banner,alt:"event-banner"})})}):(!g||v>m)&&y})};return(0,a.jsx)(w,{})};function Wl(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 Xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wl(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wl(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Kl=function(e){var t=e.libraryData,n=e.modalData,r=e.content,s=e.setContent,l=e.setSingleId,c=e.setSlug,d=e.burger,p=n.layoutContentData,f=y((0,o.useState)([]),2),h=f[0],g=f[1],v=y((0,o.useState)(null),2),m=v[0],b=v[1],w=y((0,o.useState)(""),2),x=w[0],O=(w[1],y((0,o.useState)(null),2)),C=O[0],S=O[1],_=(0,o.useRef)(),E=(null!=p?p:{}).keyword;return(0,o.useEffect)(function(){S(_)},[_]),(0,o.useEffect)(function(){var e=t.layoutData,n=Fn(e,p,12),r=n.data,o=n.total,i=n.current;s(function(){return{data:r,total:o,current:i}})},[p,t]),(0,o.useEffect)(function(){var e=t.layoutData,n=t.layoutCategories,r=Mn(e,n,{license:m,status:null==x?void 0:x.value,keyword:E},"layout");g(r)},[m,E]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"gutenverse-library-sidebar ".concat(!d&&"hide-sidebar"),children:[(0,a.jsx)(Ro,{placeholder:(0,i.__)("Search Layout","gutenverse"),onChange:function(e){(0,u.dispatch)("gutenverse/library").setKeyword(e)}}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Licenses","gutenverse")}),(0,a.jsx)(Yl,{license:m,setLicense:b})]}),!1,(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Categories","gutenverse")}),(0,a.jsx)(Jl,{categories:h,slug:"category",data:p,type:"layout"}),(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Style","gutenverse")}),(0,a.jsx)(Jl,{categories:h,slug:"style",data:p,type:"layout"}),(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Color","gutenverse")}),(0,a.jsx)(Jl,{categories:h,slug:"color",data:p,type:"layout"})]}),(0,a.jsxs)("div",{className:"gutenverse-library-inner",ref:_,children:[(0,a.jsx)($l,{subtitle:(0,i.__)("Welcome to Gutenverse Library","gutenverse"),title:(0,a.jsxs)(a.Fragment,{children:[(0,i.__)("Discover ","gutenverse"),(0,a.jsx)("span",{children:(0,i.__)(" Premium Layouts ","gutenverse")}),(0,a.jsx)("br",{}),(0,i.__)(" and Sections You Never Meet Before!","gutenverse")]}),customStyles:{paddingTop:"30px"},container:"library",leftBannerImg:"library-graphic-library-left.png",rightBannerImg:"library-graphic-library-right.png",backgroundGradient:"library-bg-library.png",link:"".concat(j.upgradeProUrl,"?utm_source=gutenverse&utm_medium=library&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme)}),(0,a.jsx)(Ql,{current:r.current,data:r.data,total:r.total,setSingleId:l,setSlug:c,scroller:C})]})]})},Yl=function(e){var t=e.license,n=e.setLicense;return(0,a.jsx)("div",{className:"gutenverse-library-select",children:(0,a.jsx)(Gl,{isMulti:!0,value:t,onChange:function(e){n(e),(0,u.dispatch)("gutenverse/library").setLicense(e)},components:Nn()(t)?null:{DropdownIndicator:function(){return null},IndicatorSeparator:function(){return null}},options:[{value:"basic",label:(0,i.__)("Basic","gutenverse")},{value:"professional",label:(0,i.__)("Professional","gutenverse")},{value:"agency",label:(0,i.__)("Agency","gutenverse")},{value:"Enterprise",label:(0,i.__)("Enterprise","gutenverse")},{value:"free",label:(0,i.__)("Free","gutenverse")}]})})},Jl=function(e){var t=e.categories,n=e.data,r=e.showCount,o=void 0===r||r,i=e.slug;if(!Nn()(t)){var s,l=t.findIndex(function(e){return e.slug===i}),c=null===(s=t[l])||void 0===s?void 0:s.childs;return l>=0&&(0,a.jsx)("ul",{className:"gutenverse-sidebar-list",children:Object.keys(c).map(function(e){var r,i=c[e];return(0,a.jsxs)("li",{className:null!=n&&null!==(r=n.categories)&&void 0!==r&&r.some(function(e){return e.id===i.id})?"active":"",onClick:function(){var e,n={id:i.id,parent:null===(e=t[l])||void 0===e?void 0:e.id};(0,u.dispatch)("gutenverse/library").setCategories(n),(0,u.dispatch)("gutenverse/library").setPaging(1)},children:[(0,a.jsx)("i",{className:"checkblock"}),(0,a.jsx)("span",{dangerouslySetInnerHTML:{__html:Zl(i,o)}})]},i.id)})})}},Zl=function(e,t){return t?"".concat(e.name," (").concat(e.count,")"):"".concat(e.name)},Ql=function(e){var t=e.data,n=e.current,r=e.total,o=e.setSingleId,s=e.setSlug,l=e.scroller;return void 0!==t?0===t.length?(0,a.jsx)("div",{className:"empty-content",children:(0,a.jsxs)("div",{className:"empty-wrapper",children:[(0,a.jsx)("div",{className:"empty-svg",children:(0,a.jsx)(Qt.IconEmpty2SVG,{})}),(0,a.jsx)("h3",{children:(0,i.__)("No Result Found","gutenverse")}),(0,a.jsx)("span",{children:(0,i.__)("It seems we can't find any results based on your search.","gutenverse")})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ec,{data:t,setSingleId:o,setSlug:s,scroller:l}),(0,a.jsx)(ql,{current:n,total:r,scroller:l})]}):null},ec=function(e){var t=e.data,n=e.setSingleId,r=e.setSlug,o=function(e,t){n(e),r(t)};return(0,a.jsx)("div",{className:"library-items-wrapper layout",children:t.map(function(e){var t;return null!==(t=e.listedIn)&&void 0!==t&&t.includes("library")||Nn()(e.listedIn)?(0,a.jsx)(tc,{item:e,showSingleLayout:o},e.id):(0,a.jsx)(a.Fragment,{})})})},tc=function(e){var t=e.item,n=e.showSingleLayout,r=(null==t?void 0:t.cover[2])/(null==t?void 0:t.cover[1])*100<10?0:(null==t?void 0:t.cover[2])/(null==t?void 0:t.cover[1])*100,s=0===r?"44px":"unset",l=y((0,o.useState)(!1),2),c=l[0],u=l[1];return(0,a.jsxs)("div",{className:"library-item layout",children:[(0,a.jsx)("div",{className:"library-item-content",children:(0,a.jsxs)("div",{className:"library-item-holder",style:{paddingBottom:"".concat(r,"%"),minHeight:{minHeight:s},background:c?"white":"",zIndex:c?"5":""},onClick:function(){return n(t.id,t.slug)},children:[t.pro&&(0,a.jsx)("div",{className:"pro-flag",onClick:function(){return n(t.id)},children:(0,i.__)("PRO","gutenverse")}),(0,a.jsx)("img",{src:t.cover[0],onLoad:function(){return u(!0)}})]})}),(0,a.jsxs)("div",{className:"library-item-detail",children:[(0,a.jsx)("div",{className:"library-item-wrapper",children:(0,a.jsx)("h2",{onClick:function(){return n(t.id)},children:t.title})}),t.like?(0,a.jsx)("div",{className:"library-like active",onClick:function(){return zn(t.slug,!1)},children:(0,a.jsx)(Qt.IconHeartFullSVG,{size:14})}):(0,a.jsx)("div",{className:"library-like",onClick:function(){return zn(t.slug,!0)},children:(0,a.jsx)(Qt.IconLoveSVG,{size:16})})]})]},t.id)};const nc=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getLibraryData;return{modalData:(0,t.getModalData)(),libraryData:n()}})(function(e){var t=y((0,o.useState)(null),2),n=t[0],r=t[1],s=y((0,o.useState)(null),2),l=s[0],c=s[1],u=y((0,o.useState)([]),2),d=u[0],p=u[1],f=y((0,o.useState)(!1),2),h=f[0],g=f[1],v=y((0,o.useState)(null),2),m=v[0],b=v[1];return(0,a.jsxs)(a.Fragment,{children:[h&&(0,a.jsx)(Po,{name:m.title,data:m,setPluginInstallMode:g,backString:(0,i.sprintf)((0,i.__)("Back to %s","gutenverse"),m.title)}),null!==l&&(0,a.jsx)(Eo,{id:l,slug:n,setSingleId:c,setSlug:r,backText:(0,i.__)("Back to Layouts","gutenverse"),closeImporter:e.closeImporter,setSingleData:b,singleData:m,pluginInstallMode:h,setPluginInstallMode:g,setLibraryError:e.setLibraryError}),(0,a.jsx)("div",{className:"gutenverse-library-inner-body",children:(0,a.jsx)(Kl,Xl(Xl({},e),{},{content:d,setContent:p,setSlug:r,setSingleId:c,burger:e.burger}))})]})});function rc(){return rc=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},rc.apply(this,arguments)}function oc(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 ic(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oc(Object(n),!0).forEach(function(t){ac(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ac(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class sc extends xn().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame(()=>{this.reCalculateColumnCount()})):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,r=t.default||2;for(let o in t){const i=parseInt(o);i>0&&e<=i&&i<n&&(n=i,r=t[o])}r=Math.max(1,parseInt(r)||1),this.state.columnCount!==r&&this.setState({columnCount:r})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=xn().Children.toArray(this.props.children);for(let r=0;r<n.length;r++){const o=r%e;t[o]||(t[o]=[]),t[o].push(n[r])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,r=this.itemsInColumns(),o=100/r.length+"%";let i=n;i&&"string"!=typeof i&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===i&&(i="my-masonry-grid_column"));const a=ic(ic(ic({},e),t),{},{style:ic(ic({},t.style),{},{width:o}),className:i});return r.map((e,t)=>xn().createElement("div",rc({},a,{key:t}),e))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:r,columnAttrs:o,column:i,className:a}=e,s=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let l=a;return"string"!=typeof a&&(this.logDeprecated('The property "className" requires a string'),void 0===a&&(l="my-masonry-grid")),xn().createElement("div",rc({},s,{className:l}),this.renderColumns())}}sc.defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};const lc=sc,cc=gutenverseCore.editorHelper;var uc=n(664),dc=n.n(uc),pc=n(4627),fc=n.n(pc);const hc={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let gc;const vc=new Uint8Array(16),mc=[];for(let e=0;e<256;++e)mc.push((e+256).toString(16).slice(1));const bc=function(e,t,n){if(hc.randomUUID&&!t&&!e)return hc.randomUUID();const r=(e=e||{}).random??e.rng?.()??function(){if(!gc){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");gc=crypto.getRandomValues.bind(crypto)}return gc(vc)}();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){if((n=n||0)<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(mc[e[t+0]]+mc[e[t+1]]+mc[e[t+2]]+mc[e[t+3]]+"-"+mc[e[t+4]]+mc[e[t+5]]+"-"+mc[e[t+6]]+mc[e[t+7]]+"-"+mc[e[t+8]]+mc[e[t+9]]+"-"+mc[e[t+10]]+mc[e[t+11]]+mc[e[t+12]]+mc[e[t+13]]+mc[e[t+14]]+mc[e[t+15]]).toLowerCase()}(r)},yc=gutenverseCore.styling,wc=window.wp.coreData;function xc(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 jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xc(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Oc=function(){var e,n=(0,u.select)("gutenverse/global-style"),o=n.getGoogleFont,i=n.getCustomFont,a=n.getVariable,l=(0,u.dispatch)("gutenverse/global-style"),c=l.setGoogleFonts,d=l.setCustomFonts,p=a(),f=window.GutenverseConfig.uploadPath,h=function(e,t,n){"google"===(null==t?void 0:t.type)?c(e,jc(jc({},t),{},{weight:n})):"custom_font_pro"===(null==t?void 0:t.type)&&d(e,jc(jc({},t),{},{weight:n}))},g=[];null!=p&&p.fonts&&("object"===s(g=null==p?void 0:p.fonts)&&(g=Object.values(g)),g.map(function(e){var t=e.id,n=e.font;return n&&Cc(n,h,t)}));var v=o(),m=new Map;Object.values(v).forEach(function(e){var t=e.value,n=e.weight;m.has(t)||m.set(t,new Set),m.get(t).add(n)});var b=Object.fromEntries(Array.from(m,function(e){var t=y(e,2),n=t[0],r=t[1];return[n,Array.from(r)]})),w=i(),x=new Set;Object.values(w).forEach(function(e){var t=e.value;x.add(t)});var j=Array.from(x),O=(0,r.isNotEmpty)(j)&&(0,t.applyFilters)("gutenverse.v3.apply-custom-font",j,f),C=(0,u.select)(wc.store).__experimentalGetCurrentGlobalStylesId(),S=C?(0,u.select)(wc.store).getEditedEntityRecord("root","globalStyles",C):void 0;return{colors:null==S||null===(e=S.settings)||void 0===e||null===(e=e.color)||void 0===e?void 0:e.palette,googleArr:b,customArr:O,fonts:g}},Cc=function(e,t,n){var r,o,i=null!=e&&e.weight&&"italic"===(null==e?void 0:e.style)?"".concat(null==e?void 0:e.weight,"italic"):null==e?void 0:e.weight;r={controlId:n,addFont:t,font:e.font,weight:i},null!==(o=r.font)&&(0,r.addFont)(r.controlId,o,r.weight)};function Sc(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return _c(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(_c(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,_c(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,_c(d,"constructor",c),_c(c,"constructor",l),l.displayName="GeneratorFunction",_c(c,o,"GeneratorFunction"),_c(d),_c(d,o,"Generator"),_c(d,r,function(){return this}),_c(d,"toString",function(){return"[object Generator]"}),(Sc=function(){return{w:i,m:p}})()}function _c(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}_c=function(e,t,n,r){function i(t,n){_c(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},_c(e,t,n,r)}function Ec(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 Ic(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)?Ic(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 i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function Ic(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 kc(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 Pc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kc(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Nc=(0,u.withSelect)(function(e){return{importer:(0,e("gutenverse/library").getImporterData)()}})(function(e){var n,o=e.data,l=e.closeImporter,c=e.importer,d=e.setShowOverlay,p=e.setExporting,f=e.setSelectItem,h=e.setLibraryError,g=e.setSingleId,v=e.setSingleData,m=e.singleData,y=e.dataToImport,w=e.unavailableGlobalFonts,C=e.unavailableGlobalColors,S=e.supportGlobalImport,_=o.pro,E=o.licenseType,I=o.slug,k=o.customAPI,P=void 0===k?null:k,N=o.customArgs,T=void 0===N?{}:N,R=Oc(),L=(0,cc.useGlobalStylesConfig)(),D=L.userConfig,A=L.setUserConfig,F=D.settings.color&&D.settings.color.palette&&D.settings.color.palette.custom,M=(0,u.dispatch)("gutenverse/global-style").addVariableFont,V=0,B=F?F.map(function(e){return Pc(Pc({},e),{},{key:e.key?e.key:mn({length:6,type:"alphanumeric"})})}):[],U=function(){cc.signal.globalStyleSignal.dispatch(bc());var e,t=0,n=[],r=Ec(C);try{for(r.s();!(e=r.n()).done;){var o=e.value;t++,p(function(e){return Pc(Pc({},e),{},{message:"Importing Global Color ".concat(t," of ").concat(C.length+1),progress:"3/4"})});var i=mn({length:6,type:"alphanumeric"}),a=o.color;a?n.push({slug:a.slug.toLowerCase(),key:i,name:a.name,color:a.color}):n.push({slug:o.id.toLowerCase(),key:i,name:o.id.toLowerCase(),color:{}})}}catch(e){r.e(e)}finally{r.f()}A(function(e){var t=dc()(e);return fc()(t,"settings.color.palette.custom",[].concat(b(B),n)),t});var s,l=0,c=Ec(w);try{for(c.s();!(s=c.n()).done;){var u=s.value;l++,p(function(e){return Pc(Pc({},e),{},{message:"Importing Global Font ".concat(l," of ").concat(w.length+1),progress:"3/4"})}),M({id:null==u?void 0:u.slug,name:null==u?void 0:u.name,font:JSON.parse(null==u?void 0:u.font)})}}catch(e){c.e(e)}finally{c.f()}},G=function(){return m?(0,a.jsx)("div",{className:"section-button import-section",children:(0,a.jsxs)("div",{className:"section-button-inner",onClick:function(n){(function(n,c){p({show:!0,message:"Fetching Data...",progress:""}),f(o),d(!0),setTimeout(function(){p(function(e){return Pc(Pc({},e),{},{progress:"1/4"})})},1e3),n.stopPropagation(),(0,u.dispatch)("gutenverse/library").setSectionProgress((0,i.__)("Fetching Data","gutenverse")),(0,u.dispatch)("gutenverse/library").setLockSectionImport(I);var g=P?Pc({slug:I},T):(0,t.applyFilters)("gutenverse.library.import.parameter",{slug:I}),v=function(){var e=x(Sc().m(function e(t){var n,r,o,i,a,s,l,c,u,d,f;return Sc().w(function(e){for(;;)switch(e.p=e.n){case 0:n=t.images,r=t.contents,o=t.contents_global,i=t.global,a=0,s=[],l=Ec(n),e.p=1,l.s();case 2:if((c=l.n()).done){e.n=5;break}return u=c.value,a++,p(function(e){return Pc(Pc({},e),{},{message:"Importing Image Assets ".concat(a," of ").concat(n.length+1),progress:"2/4"})}),e.n=3,(0,kn.importImage)(u).catch(function(){s.push({id:0,url:""}),V++});case 3:(d=e.v)&&s.push(d);case 4:e.n=2;break;case 5:e.n=7;break;case 6:e.p=6,f=e.v,l.e(f);case 7:return e.p=7,l.f(),e.f(7);case 8:return e.a(2,{images:s,contents:r,contents_global:o,global:i})}},e,null,[[1,6,7,8]])}));return function(t){return e.apply(this,arguments)}}();(0,kn.importSingleSectionContent)(g,P).then(function(e){var t=JSON.parse(e);return p(function(e){return Pc(Pc({},e),{},{message:"Importing Assets...",progress:"2/4"})}),(0,u.dispatch)("gutenverse/library").setSectionProgress((0,i.__)("Importing Assets","gutenverse")),v(t)}).then(function(t){return p(function(e){return Pc(Pc({},e),{},{message:"Deploying Content...",progress:"3/4"})}),(0,u.dispatch)("gutenverse/library").setSectionProgress((0,i.__)("Deploying Content","gutenverse")),function(t,n){return new Promise(function(o){var i,l=(0,u.dispatch)("core/block-editor").insertBlocks,c=t.contents,d=t.images,p=t.contents_global;i="global"===y&&p?(0,r.injectImagesToContent)(p,d):(0,r.injectImagesToContent)(c,d);var f=(0,Kt.parse)(i).map(function(e){var t=JSON.stringify(e).replace(/class=\\"([^"]*)\\"/g,function(e,t){var n=t.split(/\s+/).filter(function(e){return"guten-text-highlight"===e}).join(" ");return n?'class=\\"'.concat(n,'\\"'):'class=\\"\\"'}).replace(/"className":"[^"]*"/g,'"className":""').replace(/"elementId":"guten-[^"]+"/g,function(){var e="guten-"+mn({length:6,type:"alphanumeric"});return'"elementId":"'.concat(e,'"')}),n=JSON.parse(t);return function e(t){var n=function(){var n=t[r];if("typography"===r&&null!=n&&n.id){var o=R.fonts.find(function(e){return e.id===n.id});if(o){var i=o.font,a=i.decoration,l=i.font,c=void 0===l?{}:l,u=i.lineHeight,d=void 0===u?{}:u,p=i.size,f=void 0===p?{}:p,h=i.spacing,g=void 0===h?{}:h,v=i.style,m=i.transform,b=i.weight;for(var y in Object.assign(n,Pc(Pc({},n),{},{decoration:a,font:c,lineHeight:d,size:f,spacing:g,style:v,transform:m,weight:b})),n){var w=n[y];(null==w||"object"===s(w)&&0===Object.keys(w).length||"string"==typeof w&&""===w.trim())&&delete n[y]}}}else"object"===s(n)&&null!==n&&e(n)};for(var r in t)n()}(n),n});"template-locked"===(0,u.select)(O.store).getRenderingMode()?h(function(){return(0,a.jsx)($n,{resolve:o,blocks:f,supportGlobalImport:n,setLibraryError:h,processGlobalStyle:U})}):(n&&U(),e.onSectionSelect?e.onSectionSelect(f):l(f),o())})}(t,c)}).finally(function(){p(function(e){return Pc(Pc({},e),{},{message:"Done!",progress:"4/4"})}),setTimeout(function(){d(!1),(0,u.dispatch)("gutenverse/library").setLockSectionImport(null),l(),p({show:!1,message:"Done!",progress:""}),V&&(0,u.dispatch)("gutenverse/library").setImportNotice("".concat(V," image not imported."))},300)}).catch(function(){p(function(e){return Pc(Pc({},e),{},{message:"Failed!",progress:"4/4"})}),setTimeout(function(){(0,u.dispatch)("gutenverse/library").setImportNotice("Please Try Again."),d(!1),p({show:!1,message:"Failed!",progress:""})},300)})})(n,S),g(null),v(null)},children:[(0,a.jsx)("span",{children:(0,i.__)("Import this section","gutenverse")}),(0,a.jsx)(Qt.IconDownload2SVG,{})]})}):(0,a.jsx)("div",{className:"section-button import-section",onClick:function(){g(o.id),v(o)},children:(0,a.jsxs)("div",{className:"section-button-inner",children:[(0,a.jsx)("span",{children:(0,i.__)("Preview Section","gutenverse")}),(0,a.jsx)(Qt.IconEyeSVG,{width:12.8,height:12.8})]})})},z=function(){return(0,a.jsx)(mo,{licenseType:E,licenseActiveButton:G(),link:"".concat(j.upgradeProUrl,"?utm_source=gutenverse&utm_medium=librarysection&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme),isBanner:!0,location:"card-pro"})};return n=_?(0,a.jsx)(z,{}):(0,a.jsx)(G,{}),c.lockSectionImport&&(n=I!=c.lockSectionImport?(0,a.jsx)("div",{className:"section-button import-section importing",children:(0,a.jsx)("div",{className:"section-button-inner",children:(0,a.jsx)("span",{children:(0,i.__)("Import on Progress","gutenverse")})})}):(0,a.jsx)("div",{className:"section-button import-section importing",children:(0,a.jsxs)("div",{className:"section-button-inner",children:[(0,a.jsx)("div",{className:"rotating",children:(0,a.jsx)(_n,{size:18})}),(0,a.jsx)("span",{children:c.sectionProgress})]})})),n});function Tc(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}var Rc=function(e,t,n){var r=new Set,o=t.filter(function(e){return!n.some(function(t){return t.id===e.slug})}).filter(function(e){return!r.has(e.slug)&&(r.add(e.slug),!0)});return o.forEach(function(t){var n=new RegExp('"type":"variable","id":"'.concat(t.slug,'",'),"g");e=e.replace(n,"")}),{updatedContent:e,nonExistedFont:o}},Lc=function(e){var t=e.content;return null===t?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"single-previewer",children:(0,a.jsx)("div",{style:{padding:"10px",width:"100%",boxSizing:"border-box"},children:(0,a.jsx)(Wn.Skeleton,{variant:"rect",height:"1000px",borderRadius:2})})})}):(0,a.jsx)(Dc,{content:t})},Dc=function(e){var t=e.content,n=(0,o.useRef)(null),r=(0,o.useMemo)(function(){return t?(0,Kt.parse)(t):[]},[t]);return(0,o.useEffect)(function(){var e=new MutationObserver(function(){if(n.current){var e=n.current.querySelector("iframe");if(e){var t=document.querySelector(".single-previewer-container").getBoundingClientRect().height,r=function(){var n,r=e.contentDocument||(null===(n=e.contentWindow)||void 0===n?void 0:n.document);if(r){var o=r.createElement("style");o.innerHTML="\n                            :root{\n                                --size: 48px;\n                                --light: #ffffff;\n                                --dark:  #dcdcdcff;\n                            }\n\n                            .is-root-container {\n                                background-color: var(--light);\n                                background-image:\n                                    linear-gradient(45deg, var(--dark) 25%, transparent 25%, transparent 75%, var(--dark) 75%),\n                                    linear-gradient(45deg, var(--dark) 25%, transparent 25%, transparent 75%, var(--dark) 75%);\n                                background-size: calc(var(--size) * 2) calc(var(--size) * 2);\n                                background-position: 0 0, calc(var(--size)) calc(var(--size));\n                                background-repeat: repeat;\n                            }\n\n                            .is-root-container,\n                            .guten-popup-builder  {\n                                min-height: ".concat(100*t/80,"px;\n                                display: block;\n                            }\n\n                            .input-warning,\n                            .guten-hide-desktop,\n                            .guten-hide-input,\n                            .guten-popup-holder {\n                                display: none !important;\n                            }\n\n                            .guten-popup:not(.show) {\n                                display: block !important;\n                            }\n\n                            /* You can add more custom styles here */\n                        "),o.className="custom-preview-style",r.body.appendChild(o)}};return e.addEventListener("load",r),function(){e.removeEventListener("load",r)}}}});return n.current&&e.observe(n.current,{childList:!0,subtree:!0}),function(){return e.disconnect()}},[r]),(0,a.jsx)("div",{ref:n,children:(0,a.jsx)(nn.BlockPreview,{blocks:r,additionalStyles:[{css:"body .is-root-container { display: flex; justify-content: center; flex-direction: column; min-height: 860px;} body .is-root-container > * { transform: scale(0.8); }"}]})})};const Ac=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getLibraryData,r=t.getPluginData;return{libraryData:n(),pluginData:r()}})(function(e){var n=e.setSingleId,r=e.backText,s=e.closeImporter,l=e.setSingleData,u=e.singleData,d=e.setExporting,p=e.setSelectItem,f=e.setLibraryError,h=y((0,o.useState)(null),2),g=h[0],v=h[1],m=y((0,o.useState)(null),2),b=m[0],w=m[1],x=u.slug,j=u.customAPI,O=void 0===j?null:j,C=u.customArgs,S=void 0===C?{}:C,_=y((0,o.useState)("default"),2),E=_[0],I=_[1],k=y((0,o.useState)(u),2),P=k[0],N=k[1],T=y((0,o.useState)([]),2),R=T[0],L=T[1],D=y((0,o.useState)([]),2),A=D[0],F=D[1],M=(window.GutenverseConfig||window.GutenverseData||{}).supportGlobalImport,V=(0,o.useRef)(null),B=(0,o.useRef)(null),U=function(e){I(e.target.value),N(e.target.value),"global"===e.target.value?(V.current.style.opacity="0",V.current.style.zIndex="1",V.current.style.pointerEvents="none",B.current.style.opacity="1",B.current.style.zIndex="2",B.current.style.pointerEvents="auto"):(V.current.style.opacity="1",V.current.style.zIndex="2",V.current.style.pointerEvents="auto",B.current.style.opacity="0",B.current.style.zIndex="1",B.current.style.pointerEvents="none")},G=In()("gutenverse-library-single-section",{loading:null===u});(0,o.useEffect)(function(){if(u){var e=O?function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tc(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({slug:x},S):(0,t.applyFilters)("gutenverse.library.import.parameter",{slug:x});(0,kn.importSingleSectionContent)(e,O).then(function(e){var t=JSON.parse(e);if(t){var n=t.contents.replace(/\{\{\{image:(\d+):url\}\}\}/g,function(e,n){return t.images[n]});if(t.contents_global){var r,o=null===(r=t.contents_global)||void 0===r?void 0:r.replace(/\{\{\{image:(\d+):url\}\}\}/g,function(e,n){return t.images[n]}),i=function(e,t,n,r){var o=Oc(),i=[],a=Rc(e,t.font,o.fonts),s=a.updatedContent,l=a.nonExistedFont,c=s.replace(/({"type":"variable","id":")([^"]+)("})/g,function(e,n,r,a){var s,l,c,u,d=!1,p={},f=(null!==(s=null===(l=o.colors)||void 0===l?void 0:l.custom)&&void 0!==s?s:[]).concat(null!==(c=null===(u=o.colors)||void 0===u?void 0:u.theme)&&void 0!==c?c:[]),h=null==f?void 0:f.find(function(e){var t;return(null==e||null===(t=e.slug)||void 0===t?void 0:t.toLowerCase())===(null==r?void 0:r.toLowerCase())});return h||(p=t.color.find(function(e){var t;return(null===(t=e.slug)||void 0===t?void 0:t.toLowerCase())===(null==r?void 0:r.toLowerCase())}),i.push({id:r,color:p}),d=!0),d?"".concat(JSON.stringify((0,cc.hexToRgb)(p?p.color:{}))):"".concat(n).concat(null==r?void 0:r.toLowerCase()).concat(a)});return n(l),r(i),c}(o,t.global,L,F);w(i)}v(n)}})}},[u,b,g,E]);var z="library-content-container";return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:G,children:null===u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"single-previewer",children:(0,a.jsx)(Wn.LeftSkeleton,{})}),(0,a.jsx)("div",{className:"single-wrapper",children:(0,a.jsx)(Wn.RightSkeleton,{})})]}):null!==u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"single-previewer-toolbar",children:[(0,a.jsxs)("div",{className:"back-button",onClick:function(){return n(null)},children:[(0,a.jsx)(Qt.IconArrowLeftSVG,{}),(0,a.jsx)("span",{children:r})]}),(0,a.jsxs)("div",{className:"single-previewer-control",children:[M&&null!==b&&(0,a.jsxs)("div",{className:"previewer-options-container",children:[(0,a.jsxs)("label",{className:"default"===E?"selected":"",children:[(0,a.jsx)("input",{type:"radio",name:"styleOption",value:"default",checked:"default"===E,onChange:U}),"Use Default Style"]}),(0,a.jsxs)("label",{className:"global"===E?"selected":"",children:[(0,a.jsx)("input",{type:"radio",name:"styleOption",value:"global",checked:"global"===E,onChange:U}),"Use Current Global Style"]})]}),(0,a.jsx)(Nc,{data:u,closeImporter:s,setShowOverlay:function(){},setExporting:d,setSelectItem:p,setLibraryError:f,setSingleId:n,singleData:u,setSingleData:l,dataToImport:P,extractTypographyBlocks:Rc,unavailableGlobalFonts:R,unavailableGlobalColors:A,supportGlobalImport:M,onSectionSelect:e.onSectionSelect})]})]}),(0,a.jsx)("div",{className:"single-previewer-container",children:(0,a.jsx)("div",{className:"single-previewer",children:(0,a.jsx)(nn.RecursionProvider,{uniqueId:u.id,children:(0,a.jsx)("div",{className:"editor-styles-wrapper wrapper-imitator",children:(0,a.jsx)("div",{className:"is-root-container wrapper-imitator",children:u?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{ref:V,className:"".concat(z," normal-content"),children:(0,a.jsx)(Lc,{content:g})}),M&&null!==b&&(0,a.jsx)("div",{ref:B,className:"".concat(z," global-content"),children:(0,a.jsx)(Lc,{content:b})})]}):(0,a.jsx)(Wn.FullSkeleton,{})})})})})})]}):(0,a.jsx)("div",{className:"empty-content",children:(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{className:"empty-wrapper",children:[(0,a.jsx)("div",{className:"empty-svg",children:(0,a.jsx)(Qt.IconEmpty2SVG,{})}),(0,a.jsx)("h3",{children:(0,i.__)("No Result Found","gutenverse")}),(0,a.jsx)("span",{children:(0,i.__)("It seems we can't find any results based on your search.","gutenverse")})]}),(0,a.jsx)("div",{className:"back-button",onClick:function(){return n(null)},children:(0,a.jsx)("span",{children:r})})]})})})})});function Fc(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 Mc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Vc=function(e){var t=e.modalData,n=e.closeImporter,r=e.setExporting,s=e.exporting,l=e.setCurrentItem,c=e.setPluginInstallMode,d=e.dispatchData,p=e.libraryData,f=e.burger,h=e.setLibraryError,g=e.setSingleId,v=e.setSingleData,m=e.selectItem,b=e.setSelectItem,w=t.layoutContentData,x=y((0,o.useState)({}),2),O=x[0],C=x[1],S=y((0,o.useState)(null),2),_=S[0],E=S[1],I=y((0,o.useState)(""),2),k=I[0],P=(I[1],y((0,o.useState)({}),2)),N=P[0],T=P[1],R=y((0,o.useState)(null),2),L=R[0],D=R[1],A=y((0,o.useState)(""),2),F=A[0],M=A[1],V=(0,o.useRef)(),B=(0,o.useRef)(0);(0,o.useEffect)(function(){D(V)},[V]),(0,o.useEffect)(function(){1===w.paging&&(V.current.scrollTop=0);var e=p.sectionData,t=Hn(e,w,20),n=t.data,r=t.total,o=t.current;T(function(){return{data:n,total:r,current:o}})},[w,p]),(0,o.useEffect)(function(){V.current&&(V.current.scrollTop=B.current)}),(0,o.useEffect)(function(){var e=p.sectionData,t=p.sectionCategories,n=Mn(e,t,{license:_,status:null==k?void 0:k.value},"section");C(n)},[_]);var U=function(e,t){(0,u.dispatch)("gutenverse/library").setPaging(1),M(t)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"gutenverse-library-sidebar ".concat(!f&&"hide-sidebar"),children:[(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h2",{className:"gutenverse-library-side-heading",style:{marginTop:0},children:[" ",(0,i.__)("Licenses","gutenverse")]}),(0,a.jsx)(Yl,{license:_,setLicense:E,dispatchData:d})]}),!1,Array.isArray(O)&&O.some(function(e){var t;return"style"===e.slug&&(null===(t=e.childs)||void 0===t?void 0:t.length)>0})&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Style","gutenverse")}),(0,a.jsx)(Jl,{categories:O,slug:"style",categoryListClicked:U,data:w,type:"section"})]}),Array.isArray(O)&&O.some(function(e){var t;return"category"===e.slug&&(null===(t=e.childs)||void 0===t?void 0:t.length)>0})&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Categories","gutenverse")}),(0,a.jsx)(Jl,{categories:O,slug:"category",categoryListClicked:U,data:w,type:"section"})]})]}),(0,a.jsxs)("div",{className:"gutenverse-library-inner",ref:V,onScroll:function(){V.current&&(B.current=V.current.scrollTop)},children:[(0,a.jsx)($l,{subtitle:(0,i.__)("Welcome to Gutenverse Library","gutenverse"),title:(0,a.jsxs)(a.Fragment,{children:[(0,i.__)("Discover ","gutenverse"),(0,a.jsx)("span",{children:(0,i.__)(" Premium Layouts ","gutenverse")}),(0,a.jsx)("br",{}),(0,i.__)(" and Sections You Never Meet Before!","gutenverse")]}),customStyles:{paddingTop:"30px"},container:"library",leftBannerImg:"library-graphic-library-left.png",rightBannerImg:"library-graphic-library-right.png",backgroundGradient:"library-bg-library.png",link:"".concat(j.upgradeProUrl,"?utm_source=gutenverse&utm_medium=library&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme)}),(0,a.jsx)(Bc,{current:N.current,data:N.data,total:N.total,changePaging:function(e){(0,u.dispatch)("gutenverse/library").setPaging(e)},closeImporter:n,categoryCache:F,scroller:L,setCurrentItem:l,setPluginInstallMode:c,setLibraryError:h,setSingleId:g,setSingleData:v,setExporting:r,exporting:s,selectItem:m,setSelectItem:b,onSectionSelect:e.onSectionSelect})]})]})},Bc=function(e){var t=e.data,n=e.current,r=e.total,o=e.changePaging,s=e.setExporting,l=e.exporting,c=e.closeImporter,u=e.categoryCache,d=e.scroller,p=e.setCurrentItem,f=e.setPluginInstallMode,h=e.setLibraryError,g=e.setSingleId,v=e.setSingleData,m=e.selectItem,b=e.setSelectItem;return void 0!==t?0===t.length?(0,a.jsx)("div",{className:"empty-content",children:(0,a.jsxs)("div",{className:"empty-wrapper",children:[(0,a.jsx)("div",{className:"empty-svg",children:(0,a.jsx)(Qt.IconEmpty2SVG,{})}),(0,a.jsx)("h3",{children:(0,i.__)("No Result Found","gutenverse")}),(0,a.jsx)("span",{children:(0,i.__)("It seems we can't find any results based on your search.","gutenverse")})]})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Uc,{categoryCache:u,data:t,closeImporter:c,setCurrentItem:p,setPluginInstallMode:f,setLibraryError:h,setSingleId:g,setSingleData:v,setExporting:s,exporting:l,selectItem:m,setSelectItem:b,onSectionSelect:e.onSectionSelect}),(0,a.jsx)(ql,{current:n,total:r,changePaging:o,scroller:d})]}):null},Uc=function(e){var t=e.categoryCache,n=e.closeImporter,r=e.setSingleId,o=e.setSingleData,i=e.setExporting,s=e.exporting,l=e.selectItem,c=e.setSelectItem,u=e.data,d={default:3,1100:3,700:2,500:1};return"Header"===t&&(d={default:2,1100:2,700:1,500:1}),u=u.filter(function(e){return void 0!==e}),(0,a.jsx)(lc,{breakpointCols:d,className:"library-items-wrapper section",columnClassName:"my-masonry-grid_column",children:u&&u.map(function(t){return(0,a.jsx)(Gc,{item:t,closeImporter:n,setCurrentItem:e.setCurrentItem,setPluginInstallMode:e.setPluginInstallMode,setSelectItem:c,selectItem:l,setSingleId:r,setSingleData:o,setLibraryError:e.setLibraryError,setExporting:i,exporting:s,onSectionSelect:e.onSectionSelect},null==t?void 0:t.id)})})},Gc=function(e){var t=(0,u.useSelect)(function(e){return e("gutenverse/library")},[]),n=t.getLibraryData,r=(0,t.getPluginData)(),s=n(),l=e.item,c=e.closeImporter,d=e.setCurrentItem,p=e.setExporting,f=e.exporting,h=e.setPluginInstallMode,g=e.selectItem,v=e.setSelectItem,m=e.setLibraryError,b=e.setSingleId,w=e.setSingleData,x=y((0,o.useState)(""),2),j=x[0],O=x[1],C=y((0,o.useState)(!1),2),S=C[0],_=C[1],E=s.section,I=y((0,o.useState)(!1),2),k=I[0],P=I[1],N=r.installedPlugin,T=y((0,o.useState)(""),2),R=T[0],L=T[1],D=y((0,o.useState)(!1),2),A=D[0],F=D[1];(0,o.useEffect)(function(){if(void 0!==l.categories&&l.categories.length>0){var e=l.categories.map(function(e){return e.name});L(e.join(", "))}else L(l.name)},[]),(0,o.useEffect)(function(){var e=l.requirements,t=l.compatibleVersion,n=Gn({plugins:N,requirements:e,compatibleVersion:t});P(n)},[l,N]);var M=In()("library-item",{importing:E===l.id});(0,o.useEffect)(function(){var e=new Image;e.onload=function(){O(l.cover[0])},e.src=l.cover[0]});var V=function(){d(l),h(!0)},B=(null==l?void 0:l.cover[2])/(null==l?void 0:l.cover[1])*100<10?0:(null==l?void 0:l.cover[2])/(null==l?void 0:l.cover[1])*100,U=0===B?50:0;return(0,a.jsxs)("div",{className:M,children:[(0,a.jsxs)("div",{className:"library-item-content",children:[E===l.id&&(0,a.jsx)("div",{className:"library-item-loader",children:(0,a.jsx)("div",{className:"rotating",children:(0,a.jsx)(_n,{size:20})})}),(0,a.jsxs)("div",{className:"library-item-holder ",style:{paddingBottom:"".concat(B,"%"),minHeight:"".concat(U,"px"),background:A?"white":"",zIndex:A?"5":""},children:[(0,a.jsx)("img",{src:j,onLoad:function(){return F(!0)}}),(0,a.jsxs)("div",{className:"library-item-detail",children:[0===(null==k?void 0:k.length)?(0,a.jsx)("div",{className:"library-item-overlay ".concat(S?"show-overlay":""),children:(0,a.jsx)(Nc,{data:l,closeImporter:c,setShowOverlay:_,setExporting:p,setSelectItem:v,setLibraryError:m,setSingleId:b,setSingleData:w,onSectionSelect:e.onSectionSelect})}):(0,a.jsx)("div",{className:"library-item-overlay",children:(0,a.jsx)("div",{className:"section-button import-section",onClick:function(){return V()},children:(0,a.jsx)("div",{className:"section-button-inner",children:(0,a.jsxs)("span",{children:[(0,i.__)("Missing Requirement","gutenverse"),(0,a.jsx)("br",{}),(0,i.__)("Click for more detail","gutenverse")]})})})}),l.pro&&(0,a.jsx)("div",{className:"pro-flag",children:(0,i.__)("PRO","gutenverse")})]})]})]}),null!=f&&f.show&&g.id===l.id?(0,a.jsx)(Vn,{message:null==f?void 0:f.message,progress:null==f?void 0:f.progress}):(0,a.jsx)("div",{className:"library-item-bottom",children:(0,a.jsxs)("div",{className:"library-item-wrapper",children:[(0,a.jsx)("div",{className:"library-item-left",children:(0,a.jsx)("span",{className:"by",children:R})}),(0,a.jsxs)("div",{className:"library-item-right",children:[(null==k?void 0:k.length)>0&&(0,a.jsxs)("div",{className:"section-requirement",children:[(0,a.jsxs)("div",{className:"section-requirement-detail",children:[(0,a.jsx)("p",{children:(0,i.sprintf)((0,i._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.",k.length,"gutenverse"),k.length)}),(0,a.jsx)("a",{href:"#",onClick:function(e){V(),e.preventDefault()},children:(0,i.__)("Manage Plugin Requirement →","gutenverse")})]}),(0,a.jsx)("div",{className:"section-requirement-icon",onClick:function(){return V()},children:(0,a.jsx)(Qt.IconInfoYellowSVG,{})})]}),l.like?(0,a.jsx)("div",{className:"library-like active",onClick:function(){return qn(l.slug,!1)},children:(0,a.jsx)(Qt.IconHeartFullSVG,{size:14})}):(0,a.jsx)("div",{className:"library-like",onClick:function(){return qn(l.slug,!0)},children:(0,a.jsx)(Qt.IconLoveSVG,{size:16})})]})]})})]})};const zc=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getLibraryData;return{modalData:(0,t.getModalData)(),libraryData:n()}})(function(e){var t=y((0,o.useState)(null),2),n=t[0],r=t[1],s=y((0,o.useState)(!1),2),l=s[0],c=s[1],u=y((0,o.useState)(null),2),d=u[0],p=u[1],f=y((0,o.useState)(null),2),h=f[0],g=f[1],v=y((0,o.useState)({show:!1,message:"",progress:""}),2),m=v[0],b=v[1],w=y((0,o.useState)({}),2),x=w[0],j=w[1];return(0,a.jsxs)(a.Fragment,{children:[l&&(0,a.jsx)(Po,{name:n.title,data:n,setPluginInstallMode:c,backString:(0,i.__)("Back to sections","gutenverse")}),null!==d&&(0,a.jsx)(Ac,{id:d,setSingleId:p,backText:(0,i.__)("Back to sections","gutenverse"),closeImporter:e.closeImporter,setSingleData:g,setCurrentItem:r,singleData:h,pluginInstallMode:l,setPluginInstallMode:c,setExporting:b,setSelectItem:j,setLibraryError:e.setLibraryError,onSectionSelect:e.onSectionSelect}),(0,a.jsx)("div",{className:"gutenverse-library-inner-body",children:(0,a.jsx)(Vc,Mc(Mc({},e),{},{closeImporter:e.closeImporter,setPluginInstallMode:c,setCurrentItem:r,setSingleId:p,setSingleData:g,setExporting:b,exporting:m,selectItem:x,setSelectItem:j}))})]})});function Hc(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 qc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hc(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var $c=function(e){var t=e.singleId,n=e.layoutContentData,r=e.slug,o=e.setSingleId,s=e.changeContentLike,l=e.setCurrentItem,c=e.currentItem,u=e.pluginInstallMode,d=e.setPluginInstallMode,p=e.content,f=e.setSlug;return(0,a.jsxs)(a.Fragment,{children:[null!==t&&"layout"===n.library&&(0,a.jsx)(Eo,{id:t,slug:r,setSingleId:o,backText:(0,i.__)("Back to Favorite Layout","gutenverse"),closeImporter:e.closeImporter,changeContentLike:s,setSingleData:l,singleData:c,pluginInstallMode:u,setPluginInstallMode:d}),(0,a.jsx)(Ql,{current:p.current,data:p.data,total:p.total,changePaging:null,setSingleId:o,setSlug:f,changeContentLike:s})]})},Wc=function(e){var t=e.pluginInstallMode,n=e.setPluginInstallMode,r=y((0,o.useState)(null),2),s=r[0],l=r[1],c=y((0,o.useState)(null),2),u=c[0],d=c[1],p=y((0,o.useState)(null),2),f=p[0],h=p[1],g=y((0,o.useState)({show:!1,message:"",progress:""}),2),v=g[0],m=g[1],b=y((0,o.useState)({}),2),w=b[0],x=b[1];return(0,a.jsxs)(a.Fragment,{children:[null!==s&&(0,a.jsx)(Ac,{id:s,setSingleId:l,backText:(0,i.__)("Back to Favorite sections","gutenverse"),closeImporter:e.closeImporter,setSingleData:d,setCurrentItem:h,singleData:u,pluginInstallMode:t,setPluginInstallMode:n,setExporting:m,selectItem:w,setSelectItem:x,setLibraryError:e.setLibraryError}),(0,a.jsx)(Bc,qc({singleData:u,setSingleData:d,singleId:s,setSingleId:l,currentItem:f,exporting:v,selectItem:w,setExporting:m,setSelectItem:x,setCurrentItem:h},e))]})};const Xc=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getModalData,r=t.getLibraryData;return{modalData:n(),library:r()}})(function(e){var t=e.modalData,n=e.library,r=e.burger,s=t.layoutContentData,l=y((0,o.useState)({}),2),c=l[0],d=l[1],p=y((0,o.useState)(null),2),f=p[0],h=p[1],g=y((0,o.useState)(!1),2),v=g[0],m=g[1],b=y((0,o.useState)([]),2),w=b[0],x=b[1],O=y((0,o.useState)([]),2),C=O[0],S=O[1],_=y((0,o.useState)(""),2),E=_[0],I=(_[1],y((0,o.useState)(null),2)),k=I[0],P=I[1],N=(0,o.useRef)(),T=y((0,o.useState)(null),2),R=T[0],L=T[1],D=y((0,o.useState)(!1),2),A=D[0],F=D[1];(0,o.useEffect)(function(){(0,u.dispatch)("gutenverse/library").setCategories([]),(0,u.dispatch)("gutenverse/library").setAuthor(""),(0,u.dispatch)("gutenverse/library").setLicense(""),(0,u.dispatch)("gutenverse/library").setStatus(""),(0,u.dispatch)("gutenverse/library").setPaging(1)},[]);var M=function(e){var t=e.data,n=e.total,r=e.current;d({data:t,total:n,current:r})},V=function(e){(0,u.dispatch)("gutenverse/library").setLibrary(e)};(0,o.useEffect)(function(){var e;!1!==v&&(e={value:"",label:(0,i.__)("All","gutenverse")},m(e),(0,u.dispatch)("gutenverse/library").setLicense(e.value))},[s.library]),(0,o.useEffect)(function(){!function(){var e=n.layoutData,t=n.layoutCategories,r=Mn(e,t,{license:null==v?void 0:v.value,like:!0,status:null==E?void 0:E.value},"layout");x(r);var o=n.sectionData,i=n.sectionCategories;r=Mn(o,i,{license:null==v?void 0:v.value,like:!0,status:null==E?void 0:E.value},"section"),S(r)}()},[v,n]),(0,o.useEffect)(function(){N.current.scrollTop=0},[s]),(0,o.useEffect)(function(){var e=n.layoutData,t=n.sectionData;if("layout"===s.library){var r=Fn(e,qc(qc({},s),{},{like:!0}));M(r)}else{var o=Hn(t,qc(qc({},s),{},{like:!0}));M(o)}},[s,n]);var B=function(e,t){var n=c.data.map(function(n){return n.id===e&&(n.like=t),n});d(qc(qc({},c),{},{data:n})),(0,kn.saveLayoutLikeState)({id:e,state:t})};return(0,a.jsxs)(a.Fragment,{children:[A&&(0,a.jsx)(Po,{name:R.title,data:R,setPluginInstallMode:F,backString:"layout"===s.library?(0,i.sprintf)((0,i.__)("Back to %s","gutenverse"),R.title):(0,i.__)("Back to Favorite sections","gutenverse")}),null!==f&&"layout"===s.library&&(0,a.jsx)(Eo,{id:f,slug:k,setSingleId:h,backText:(0,i.__)("Back to Favorite Layout","gutenverse"),closeImporter:e.closeImporter,changeContentLike:B,setSingleData:L,singleData:R,pluginInstallMode:A,setPluginInstallMode:F}),(0,a.jsxs)("div",{className:"gutenverse-library-inner-body",children:[(0,a.jsxs)("div",{className:"gutenverse-library-sidebar ".concat(!r&&"hide-sidebar"),children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",style:{marginTop:0},children:(0,i.__)("Library","gutenverse")}),(0,a.jsxs)("ul",{className:"gutenverse-sidebar-list",children:[(0,a.jsxs)("li",{className:"layout"===s.library?"active":"",onClick:function(){V("layout"),(0,u.dispatch)("gutenverse/library").setCategories([])},children:[(0,a.jsx)(Qt.IconLayoutsSVG,{}),(0,a.jsx)("span",{children:(0,i.__)("Layout","gutenverse")})]}),(0,a.jsxs)("li",{className:"section"===s.library?"active":"",onClick:function(){V("section"),(0,u.dispatch)("gutenverse/library").setCategories([])},children:[(0,a.jsx)(Qt.IconBlocksSVG,{}),(0,a.jsx)("span",{children:(0,i.__)("Section","gutenverse")})]})]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Licenses","gutenverse")}),(0,a.jsx)(Yl,{license:v,setLicense:m})]}),!1,"layout"===s.library?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Categories","gutenverse")}),(0,a.jsx)(Jl,{categories:w,slug:"category",data:s,type:"layout"}),(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Style","gutenverse")}),(0,a.jsx)(Jl,{categories:w,slug:"style",data:s,type:"layout"}),(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Color","gutenverse")}),(0,a.jsx)(Jl,{categories:w,slug:"color",data:s,type:"layout"})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Style","gutenverse")}),(0,a.jsx)(Jl,{categories:C,slug:"style",data:s,type:"section"}),(0,a.jsx)("h2",{className:"gutenverse-library-side-heading",children:(0,i.__)("Categories","gutenverse")}),(0,a.jsx)(Jl,{categories:C,slug:"category",data:s,type:"section"})]})]}),(0,a.jsxs)("div",{className:"gutenverse-library-inner",ref:N,children:[(0,a.jsx)($l,{subtitle:(0,i.__)("Welcome to Gutenverse Library","gutenverse"),title:(0,a.jsxs)(a.Fragment,{children:[(0,i.__)("Discover ","gutenverse"),(0,a.jsx)("span",{children:(0,i.__)(" Premium Layouts ","gutenverse")}),(0,a.jsx)("br",{}),(0,i.__)(" and Sections You Never Meet Before!","gutenverse")]}),customStyles:{paddingTop:"30px"},container:"library",leftBannerImg:"library-graphic-library-left.png",rightBannerImg:"library-graphic-library-right.png",backgroundGradient:"library-bg-library.png",link:"".concat(j.upgradeProUrl,"?utm_source=gutenverse&utm_medium=library&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme)}),(0,a.jsxs)(a.Fragment,{children:["layout"===s.library&&(0,a.jsx)($c,{singleId:f,layoutContentData:s,slug:k,setSingleId:h,changeContentLike:B,setCurrentItem:L,currentItem:R,pluginInstallMode:A,setPluginInstallMode:F,content:c,setSlug:P,closeImporter:e.closeImporter}),"section"===s.library&&(0,a.jsx)(Wc,{current:c.current,data:c.data,total:c.total,changePaging:null,closeImporter:e.closeImporter,pluginInstallMode:A,setPluginInstallMode:F,setCurrentItem:L})]})]})]})]})}),Kc=window.wp.components;function Yc(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 Jc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yc(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Zc=function(e){var t=null;switch(e.active){case"favorite":t=(0,a.jsx)(Xc,Jc({},e));break;case"section":t=(0,a.jsx)(zc,Jc({},e));break;case"layout":t=(0,a.jsx)(nc,Jc({},e))}return t};const Qc=(0,u.withSelect)(function(e){var t=e("gutenverse/library"),n=t.getModalData,r=t.getImporterData;return{modalData:n(),importer:r()}})(function(e){var n,r,s,l,c=e.open,d=e.visible,p=e.setVisibility,f=e.setLibraryError,h=e.loading,g=e.modalData,v=e.importer.importNotice,m=window.GutenverseConfig||{},w=m.activeTheme,x=(m.plugins,m.adminUrl),j=y((0,o.useState)(1),2),O=j[0],C=j[1],S=y((0,o.useState)([]),2),_=S[0],E=S[1],I=!1;"themes"!==(null===(n=g.libraryData)||void 0===n?void 0:n.active)&&(I=!0);var k=function(){p(!1)},P=y((0,o.useState)({display:""}),2),N=(P[0],P[1]),T=function(e){var t=e.message,n=y((0,o.useState)(!0),2),r=n[0],s=n[1];return(0,o.useEffect)(function(){var e=setTimeout(function(){s(!1),setTimeout(function(){(0,u.dispatch)("gutenverse/library").setImportNotice(null)},300)},1e4);return function(){return clearTimeout(e)}},[]),(0,a.jsx)("div",{className:"gutenverse-library-notice ".concat(r?"":"notice-hidden"),onClick:function(){s(!1)},children:(0,a.jsxs)(Kc.Snackbar,{children:[(0,a.jsx)(Qt.IconInfoGraySVG,{}),(0,a.jsx)("span",{children:(0,i.__)("Import Failed!","gutenverse")}),t]})})},R=y((0,o.useState)(!1),2),L=R[0],D=R[1],A=In()("gutenverse-library-wrapper",{visible:d});return!(!c||h)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:A,children:[(0,a.jsx)("div",{className:"gutenverse-library-overlay",onClick:k}),(0,a.jsxs)("div",{className:"gutenverse-library-container",children:[(0,a.jsxs)("div",{className:"gutenverse-library-header",children:[(0,a.jsx)("div",{className:"gutenverse-header-burger",onClick:function(){D(!L),N(L?{display:"block !important"}:{display:"none !important"})},children:L?(0,a.jsx)(Qt.IconCloseSVG,{}):(0,a.jsx)(Qt.IconHamburgerSVG,{size:16})}),(0,a.jsxs)("div",{className:"gutenverse-header-logo",children:[(0,a.jsx)(Qt.LogoFullColorSVG,{}),(0,i.__)("Library","gutenverse")]}),(0,a.jsx)("div",{className:"gutenverse-section-switcher",children:null===(r=g.libraryData)||void 0===r?void 0:r.tabs.map(function(e,t){var n,r,o=e.id===(null===(n=g.libraryData)||void 0===n?void 0:n.active)?"active":"",i=null===(r=g.libraryData)||void 0===r?void 0:r.attributes,s=i.emptyLicense,l=i.companionActive,c=s&&l;return(0,a.jsx)(a.Fragment,{children:"unibiz"===w&&"themes"===e.id?c||!l?(0,a.jsxs)("div",{className:"gutenverse-library-type ".concat(o),onClick:function(){(0,u.dispatch)("gutenverse/library").setActiveLiblary(e.id),(0,u.dispatch)("gutenverse/library").setCategories([]),(0,u.dispatch)("gutenverse/library").setAuthor(""),(0,u.dispatch)("gutenverse/library").setLicense(""),(0,u.dispatch)("gutenverse/library").setStatus(""),(0,u.dispatch)("gutenverse/library").setPaging(1)},children:[e.icon,(0,a.jsx)("span",{children:e.label})]},t):(0,a.jsxs)("a",{className:"gutenverse-library-type ".concat(o),href:"".concat(x,"admin.php?page=gutenverse-companion-dashboard&path=demo"),target:"_blank",rel:"noreferrer",children:[e.icon,(0,a.jsx)("span",{children:e.label})]},t):(0,a.jsxs)("div",{className:"gutenverse-library-type ".concat(o),onClick:function(){(0,u.dispatch)("gutenverse/library").setActiveLiblary(e.id),(0,u.dispatch)("gutenverse/library").setCategories([]),(0,u.dispatch)("gutenverse/library").setAuthor(""),(0,u.dispatch)("gutenverse/library").setLicense(""),(0,u.dispatch)("gutenverse/library").setStatus(""),(0,u.dispatch)("gutenverse/library").setPaging(1)},children:[e.icon,(0,a.jsx)("span",{children:e.label})]},t)})})}),(0,a.jsx)("div",{className:"gutenverse-close-wrapper",children:(0,a.jsx)("div",{className:"gutenverse-close",onClick:k,children:(0,a.jsx)(Qt.IconCloseSVG,{})})})]}),(0,a.jsx)("div",{className:"gutenverse-library-body ".concat(null===(s=g.libraryData)||void 0===s?void 0:s.active),children:(0,a.jsx)(Zc,{modalData:g,setPage:C,page:O,active:null===(l=g.libraryData)||void 0===l?void 0:l.active,closeImporter:k,burger:L,setLibraryError:f,getDemo:function(e){return new Promise(function(n){Yn()({path:"gutenverse-companion/v1/demo/get",method:"POST",data:(0,t.applyFilters)("gutenverse.library.import.parameter",Jc({theme_slug:"unibiz"},e))}).then(function(e){var t;if(I)return n([]);var r=e.demo_list,o=(null===(t=g.themeContentData)||void 0===t?void 0:t.data)||_,i=new Set(o.map(function(e){return e.demo_id})),a=r.filter(function(e){return!i.has(e.demo_id)});(0,u.dispatch)("gutenverse/library").initialModalData(Jc(Jc({},g),{},{themeContentData:{data:[].concat(b(o),b(a)),totalDemo:e.total_item,currentPage:O}})),E(function(){return[].concat(b(o),b(a))}),n(e)}).catch(function(e){I||alert(e.message),n([])})})},demoList:_,setDemoList:E,onSectionSelect:e.onSectionSelect})})]})]}),v&&(0,a.jsx)(T,{message:v})]})}),eu=function(e){var t=e.execute,n=function(e){27===e.keyCode&&t()};return(0,o.useEffect)(function(){return document.addEventListener("keydown",n,!1),function(){document.removeEventListener("keydown",n,!1)}},[]),null};gutenverseCore.store;const tu=function(){var e=y((0,o.useState)(!0),2),t=e[0],n=e[1],r=(0,u.useSelect)(function(e){return{renderingMode:e(O.store).getRenderingMode?e(O.store).getRenderingMode():"_return",currentPostType:e(O.store).getCurrentPostType?e(O.store).getCurrentPostType():"_return"}},[]),s=r.renderingMode,l=r.currentPostType,c=(0,u.useDispatch)(O.store).setRenderingMode;(0,o.useEffect)(function(){"_return"!==s&&"_return"!==l||n(!1)},[s]);var d=(0,a.jsx)(Kc.ToolbarButton,{className:"gutenverse-lock-button-wrapper",onClick:function(){c(c&&"template-locked"===s?"post-only":"template-locked")},label:"template-locked"===s?(0,i.__)("You are on Show Template mode. Click to go into Content Editing.","gutenverse"):(0,i.__)("You are currently in Content Editing mode. Click to go to Show Template mode.","gutenverse"),children:(0,a.jsx)("div",{className:"gutenverse-lock-button ".concat("template-locked"===s?"locked":"unlocked"),children:"template-locked"===s?(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83464C5.83268 3.53297 7.69768 1.66797 9.99935 1.66797C12.301 1.66797 14.166 3.53297 14.166 5.83464V8.33464H14.4993C15.2327 8.33464 15.8327 8.93464 15.8327 9.66797V15.5013C15.8327 16.6013 14.9327 17.5013 13.8327 17.5013H6.16602C5.06602 17.5013 4.16602 16.6013 4.16602 15.5013V9.66797C4.16602 8.93464 4.76602 8.33464 5.49935 8.33464H5.83268V5.83464ZM12.4993 5.83464V8.33464H7.49935V5.83464C7.49935 4.45297 8.61768 3.33464 9.99935 3.33464C11.381 3.33464 12.4993 4.45297 12.4993 5.83464ZM9.99935 10.2096C9.66796 10.2093 9.34634 10.3218 9.08746 10.5287C8.82858 10.7356 8.64787 11.0244 8.5751 11.3477C8.50232 11.671 8.54183 12.0095 8.68711 12.3073C8.83239 12.6051 9.07478 12.8446 9.37435 12.9863V15.0013C9.37435 15.1671 9.4402 15.326 9.55741 15.4432C9.67462 15.5605 9.83359 15.6263 9.99935 15.6263C10.1651 15.6263 10.3241 15.5605 10.4413 15.4432C10.5585 15.326 10.6243 15.1671 10.6243 15.0013V12.9863C10.9239 12.8446 11.1663 12.6051 11.3116 12.3073C11.4569 12.0095 11.4964 11.671 11.4236 11.3477C11.3508 11.0244 11.1701 10.7356 10.9112 10.5287C10.6524 10.3218 10.3307 10.2093 9.99935 10.2096Z",fill:"#FFB200"})}):(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83258C5.83128 4.81744 6.20053 3.8367 6.87108 3.07455C7.54164 2.31239 8.46736 1.82125 9.47442 1.69336C10.4815 1.56547 11.5006 1.80963 12.3404 2.37998C13.1801 2.95033 13.7828 3.80764 14.0352 4.79091C14.0904 5.00497 14.0584 5.2322 13.9461 5.42263C13.8338 5.61305 13.6505 5.75108 13.4364 5.80633C13.2224 5.86158 12.9951 5.82954 12.8047 5.71725C12.6143 5.60497 12.4763 5.42163 12.421 5.20758C12.2697 4.61747 11.9081 4.1029 11.4042 3.76056C10.9003 3.41822 10.2887 3.27165 9.6844 3.3484C9.08005 3.42514 8.52452 3.71992 8.12218 4.17735C7.71983 4.63478 7.49835 5.22338 7.49935 5.83258V8.33258H14.4993C15.2327 8.33258 15.8327 8.93258 15.8327 9.66591V15.4992C15.8327 16.5992 14.9327 17.4992 13.8327 17.4992H6.16602C5.06602 17.4992 4.16602 16.5992 4.16602 15.4992V9.66591C4.16602 8.93258 4.76602 8.33258 5.49935 8.33258H5.83268V5.83258ZM9.99935 10.2076C9.66796 10.2072 9.34634 10.3198 9.08746 10.5266C8.82858 10.7335 8.64787 11.0224 8.5751 11.3457C8.50232 11.669 8.54183 12.0074 8.68711 12.3052C8.83239 12.6031 9.07478 12.8426 9.37435 12.9842V14.9992C9.37435 15.165 9.4402 15.324 9.55741 15.4412C9.67462 15.5584 9.83359 15.6242 9.99935 15.6242C10.1651 15.6242 10.3241 15.5584 10.4413 15.4412C10.5585 15.324 10.6243 15.165 10.6243 14.9992V12.9842C10.9239 12.8426 11.1663 12.6031 11.3116 12.3052C11.4569 12.0074 11.4964 11.669 11.4236 11.3457C11.3508 11.0224 11.1701 10.7335 10.9112 10.5266C10.6524 10.3198 10.3307 10.2072 9.99935 10.2076Z",fill:"#12B76A"})})})});return(0,a.jsx)(a.Fragment,{children:t&&["post","page"].includes(l)&&d})};var nu;function ru(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return ou(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(ou(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,ou(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,ou(d,"constructor",c),ou(c,"constructor",l),l.displayName="GeneratorFunction",ou(c,o,"GeneratorFunction"),ou(d),ou(d,o,"Generator"),ou(d,r,function(){return this}),ou(d,"toString",function(){return"[object Generator]"}),(ru=function(){return{w:i,m:p}})()}function ou(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}ou=function(e,t,n,r){function i(t,n){ou(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},ou(e,t,n,r)}var iu=window.GutenverseConfig||{},au=(iu.activeTheme,iu.plugins),su=(0,t.applyFilters)("gutenverse.panel.tab.pro.content",!0),lu=null==au||null===(nu=au["gutenverse-companion"])||void 0===nu?void 0:nu.active,cu={attributes:{emptyLicense:su,companionActive:lu},active:"layout",tabs:[{id:"layout",icon:(0,a.jsx)(Qt.IconLayoutsSVG,{}),label:(0,i.__)("Layouts","gutenverse")},{id:"section",icon:(0,a.jsx)(Qt.IconBlocksSVG,{}),label:(0,i.__)("Sections","gutenverse")},{id:"favorite",icon:(0,a.jsx)(Qt.IconLoveSVG,{}),label:(0,i.__)("Favorite","gutenverse")}]},uu={categories:[],license:"",keyword:"",author:"",paging:1,library:"layout"};const du=function(e){var n=e.uuid,r=y((0,o.useState)(!1),2),s=r[0],l=r[1],c=y((0,o.useState)(!0),2),d=c[0],p=c[1],f=y((0,o.useState)(null),2),h=f[0],g=f[1],v=y((0,o.useState)(null),2),m=(v[0],v[1]),b=y((0,o.useState)(!0),2),w=b[0],j=b[1],O=y((0,o.useState)(!1),2),C=O[0],S=O[1],_=function(e){m(e)};(0,o.useEffect)(function(){var e=cc.signal.refreshSignal.add(_);return function(){e&&e.detach()}});var E=(0,a.jsx)("div",{className:"gutenverse-top-button",children:(0,a.jsxs)("div",{className:"gutenverse-library-button",id:"gutenverse-library-button",onClick:function(){l(!0),p(!0)},children:[w&&s?(0,a.jsx)("div",{style:{marginRight:"10px"},children:(0,a.jsx)("div",{className:"rotating",style:{display:"flex"},children:(0,a.jsx)(_n,{size:20})})}):(0,a.jsx)("div",{style:{marginRight:"7px",display:"flex"},children:(0,a.jsx)(Qt.LogoFullWhiteNoTextSVG,{})}),(0,a.jsx)("span",{children:w&&s?(0,i.__)("Updating ...","gutenverse"):(0,i.__)("Gutenverse Library","gutenverse")})]})}),I=(0,a.jsx)(tu,{}),k=(0,a.jsxs)(a.Fragment,{children:[E,I]});(0,o.useEffect)(function(){(0,cc.getEditSiteHeader)().then(function(e){g(e)})},[n]),(0,o.useEffect)(function(){if(s){var e=function(){var e=x(ru().m(function e(t){var n;return ru().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,kn.fetchLibraryData)(t);case 1:n=e.v,(0,u.dispatch)("gutenverse/library").initialLibraryData({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"]}),j(!1);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();e(!1);var n=window.GutenverseConfig.plugins;(0,u.dispatch)("gutenverse/library").initialPluginData({installedPlugin:n}),setTimeout(function(){cu=(0,t.applyFilters)("gutenverse.library.states",cu,lu),(0,u.dispatch)("gutenverse/library").initialModalData({libraryData:cu,layoutContentData:uu})},500)}},[s]);var P=(0,a.jsx)(Qc,{open:s,setOpen:l,visible:d,setVisibility:p,loading:w,setLoading:j,setLibraryError:S});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(eu,{execute:function(){return p(!1)}}),(0,o.createPortal)(P,document.getElementById("gutenverse-root")),h&&(0,o.createPortal)(k,h),!1!==C&&(0,o.createPortal)(C,document.getElementById("gutenverse-error"))]})};(0,Wt.registerPlugin)("gutenverse-library",{render:function(){var e=y((0,o.useState)(bc()),2),t=e[0],n=e[1];return(0,cc.useUrlChange)(function(){return n(bc())}),(0,a.jsx)(du,{uuid:t})}});const pu=window.wp.compose;function fu(){return fu=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},fu.apply(this,arguments)}var hu=(0,wn.forwardRef)(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,i=void 0===o?24:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return xn().createElement("svg",fu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),xn().createElement("line",{x1:"19",y1:"12",x2:"5",y2:"12"}),xn().createElement("polyline",{points:"12 19 5 12 12 5"}))});hu.propTypes={color:On().string,size:On().oneOfType([On().string,On().number])},hu.displayName="ArrowLeft";const gu=hu;function vu(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 mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vu(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vu(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const bu=function(e){var n=e.title,r=e.description,o=e.img,s=e.isOpen,l=e.permaLink,c=window.GutenverseConfig,u=c.videoDir,d=c.upgradeProUrl,p=c.documentationUrl,f=c.proDemoUrl,h=(0,t.applyFilters)("gutenverse.pro-panel-button",function(){var e;return Nn()(null===(e=window)||void 0===e?void 0:e.gprodata)&&(0,a.jsxs)("a",mu(mu({className:"gutenverse-button-available-pro"},po("".concat(d,"?utm_source=gutenverse&utm_medium=blockeditor&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme))),{},{children:[" ",(0,i.__)("Upgrade To Pro","gutenverse")," ",(0,a.jsx)(Qt.IconCrownBannerSVG,{})," "]}))});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h2",{className:"title",children:n}),(0,a.jsx)("div",{children:(0,a.jsx)("span",{className:"description",children:r})}),(0,a.jsx)("div",{children:(0,a.jsx)(h,{})}),(0,a.jsx)("div",{children:o&&(0,a.jsx)("video",{autoPlay:s,loop:s,children:(0,a.jsx)("source",{src:"".concat(u,"/").concat(o),type:"video/mp4"})})}),(0,a.jsxs)("div",{className:"more-details",children:[(0,a.jsxs)("div",{className:"more-detail",children:[(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("circle",{cx:"8",cy:"8",r:"7.75",stroke:"#3B57F7",strokeWidth:"0.5"}),(0,a.jsx)("path",{d:"M6.21875 11.1128V4.89062L11.1076 8.00174L6.21875 11.1128Z",fill:"#3B57F7"})]}),(0,a.jsx)("a",{href:"".concat(f,"/").concat(l||""),target:"_blank",rel:"noreferrer",children:(0,i.__)("Learn More","gutenverse")})]}),(0,a.jsxs)("div",{className:"more-detail",children:[(0,a.jsxs)("svg",{width:"15",height:"12",viewBox:"0 0 15 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.7381 1.96275C13.532 1.3059 12.3251 0.976562 11.119 0.976562C9.913 0.976562 8.70605 1.3059 7.5 1.96275V10.9289C8.70605 10.3255 9.913 10.0242 11.119 10.0242C12.3251 10.0242 13.532 10.3255 14.7381 10.9289V1.96275Z",stroke:"#3B57F7",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{d:"M12.9819 3.04573C12.3622 2.87201 11.7424 2.78516 11.1217 2.78516C10.5011 2.78516 9.8822 2.87201 9.26153 3.04573M12.9819 4.85525C12.3622 4.68154 11.7424 4.59468 11.1217 4.59468C10.5011 4.59468 9.8822 4.68154 9.26153 4.85525M12.9819 6.66478C12.3622 6.49106 11.7424 6.4042 11.1217 6.4042C10.5011 6.4042 9.8822 6.49106 9.26153 6.66478M12.9819 8.4743C12.3622 8.30058 11.7424 8.21373 11.1217 8.21373C10.5011 8.21373 9.8822 8.30058 9.26153 8.4743M5.74382 3.04573C5.12315 2.87201 4.50429 2.78516 3.88363 2.78516C3.26296 2.78516 2.6441 2.87201 2.02344 3.04573M5.74382 4.85525C5.12315 4.68154 4.50429 4.59468 3.88363 4.59468C3.26296 4.59468 2.6441 4.68154 2.02344 4.85525M5.74382 6.66478C5.12406 6.49106 4.50429 6.4042 3.88363 6.4042C3.26296 6.4042 2.6441 6.49106 2.02344 6.66478M5.74382 8.4743C5.12406 8.30058 4.50429 8.21373 3.88363 8.21373C3.26296 8.21373 2.6441 8.30058 2.02344 8.4743",stroke:"#3B57F7",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.50372 1.96275C6.29767 1.3059 5.09072 0.976562 3.88467 0.976562C2.67863 0.976562 1.47167 1.3059 0.265625 1.96275V10.9289C1.47167 10.3255 2.67863 10.0242 3.88467 10.0242C5.09072 10.0242 6.29767 10.3255 7.50372 10.9289V1.96275Z",stroke:"#3B57F7",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"})]}),(0,a.jsx)("a",{href:p,target:"_blank",rel:"noreferrer",children:(0,i.__)("Documentation","gutenverse")})]})]})]})};function yu(){return yu=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},yu.apply(this,arguments)}var wu=(0,wn.forwardRef)(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,i=void 0===o?24:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return xn().createElement("svg",yu({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),xn().createElement("path",{d:"M12 20h9"}),xn().createElement("path",{d:"M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z"}))});wu.propTypes={color:On().string,size:On().oneOfType([On().string,On().number])},wu.displayName="Edit3";const xu=wu,ju=gutenverseCore.controls;function Ou(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 Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ou(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ou(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Su=function(e){var t=e.setStage;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ju.AlertControl,{children:(0,a.jsx)("span",{children:(0,i.__)("Current color and font variables are tied to your current active theme.","gutenverse")})}),(0,a.jsx)("h3",{children:(0,i.__)("CSS Variable","gutenverse")}),(0,a.jsx)("div",{className:"global-style-options",children:(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{onClick:function(){return t("color")},children:[(0,i.__)("Color Variable","gutenverse"),(0,a.jsx)(xu,{size:12})]}),(0,a.jsxs)("li",{onClick:function(){return t("font")},children:[(0,i.__)("Font Variable","gutenverse"),(0,a.jsx)(xu,{size:12})]})]})})]})};const _u=function(e){var n=e.stage,r=e.setStage,o=["custom_css","custom_js"],s=(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"global-style-options",children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{className:"upgrade-locked",onClick:function(){return r("custom_css_locked")},children:(0,i.__)("Custom CSS","gutenverse")}),(0,a.jsx)("li",{className:"upgrade-locked",onClick:function(){return r("custom_js_locked")},children:(0,i.__)("Custom JS","gutenverse")})]})})});return(0,a.jsxs)("div",{className:"drawer-content-wrapper",children:[!o.includes(n)&&(0,a.jsx)(Su,Cu({},e)),(0,a.jsx)("h3",{children:(0,i.__)("Additional Settings","gutenverse-pro")}),(0,a.jsx)("div",{className:"global-style-options",children:(0,t.applyFilters)("gutenverse.after.global.style",s,Cu({additionalSettings:o},e))})]})};function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})),r.forEach(function(t){c(e,t,n[t])})}return e}var Iu=n(4009),ku=n.n(Iu),Pu=function(){function e(){Vo(this,e),c(this,"refs",{})}return Uo(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find(function(t){return t.node.sortableInfo.index==e.active.index})}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(Nu)}}]),e}();function Nu(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function Tu(e,t){return Object.keys(e).reduce(function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n},{})}var Ru={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Lu=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function Du(e,t){Object.keys(t).forEach(function(n){e.style[n]=t[n]})}function Au(e,t){e.style["".concat(Lu,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function Fu(e,t){e.style["".concat(Lu,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function Mu(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Vu(e,t,n){return Math.max(e,Math.min(n,t))}function Bu(e){return"px"===e.substr(-2)?parseFloat(e):0}function Uu(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function Gu(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function zu(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function Hu(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:Hu(e.parentNode,t,r)}}function qu(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);ku()(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=s[1]}return ku()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function $u(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find(function(e){return n.test(t[e])})}(e)?e:$u(e.parentNode):null}var Wu="BUTTON",Xu="INPUT",Ku="OPTION",Yu="TEXTAREA",Ju="SELECT";function Zu(e){return null!=e.sortableHandle}var Qu=function(){function e(t,n){Vo(this,e),this.container=t,this.onScrollCallback=n}return Uo(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,s={x:0,y:0},l={x:1,y:1},c=this.container,u=c.scrollTop,d=c.scrollLeft,p=c.scrollHeight,f=c.scrollWidth,h=0===u,g=p-u-c.clientHeight===0,v=0===d,m=f-d-c.clientWidth===0;n.y>=o.y-a/2&&!g?(s.y=1,l.y=10*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!m?(s.x=1,l.x=10*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!h?(s.y=-1,l.y=10*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!v&&(s.x=-1,l.x=10*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===s.x&&0===s.y||(this.interval=setInterval(function(){t.isAutoScrolling=!0;var e={left:l.x*s.x,top:l.y*s.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)},5))}}]),e}(),ed={axis:On().oneOf(["x","y","xy"]),contentWindow:On().any,disableAutoscroll:On().bool,distance:On().number,getContainer:On().func,getHelperDimensions:On().func,helperClass:On().string,helperContainer:On().oneOfType([On().func,"undefined"==typeof HTMLElement?On().any:On().instanceOf(HTMLElement)]),hideSortableGhost:On().bool,keyboardSortingTransitionDuration:On().number,lockAxis:On().string,lockOffset:On().oneOfType([On().number,On().string,On().arrayOf(On().oneOfType([On().number,On().string]))]),lockToContainerEdges:On().bool,onSortEnd:On().func,onSortMove:On().func,onSortOver:On().func,onSortStart:On().func,pressDelay:On().number,pressThreshold:On().number,keyCodes:On().shape({lift:On().arrayOf(On().number),drop:On().arrayOf(On().number),cancel:On().arrayOf(On().number),up:On().arrayOf(On().number),down:On().arrayOf(On().number)}),shouldCancelStart:On().func,transitionDuration:On().number,updateBeforeSortStart:On().func,useDragHandle:On().bool,useWindowAsScrollContainer:On().bool},td={lift:[32],drop:[32],cancel:[27],up:[38,37],down:[40,39]},nd={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:td,shouldCancelStart:function(e){return-1!==[Xu,Yu,Ju,Ku,Wu].indexOf(e.target.tagName)||!!Mu(e.target,function(e){return"true"===e.contentEditable})},transitionDuration:300,useWindowAsScrollContainer:!1},rd=Object.keys(ed),od=(0,wn.createContext)({manager:{}}),id={index:On().number.isRequired,collection:On().oneOfType([On().number,On().string]),disabled:On().bool},ad=Object.keys(id);function sd(){return sd=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},sd.apply(this,arguments)}var ld=(0,wn.forwardRef)(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,i=void 0===o?24:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return xn().createElement("svg",sd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),xn().createElement("path",{d:"M17 3a2.828 2.828 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5L17 3z"}))});ld.propTypes={color:On().string,size:On().oneOfType([On().string,On().number])},ld.displayName="Edit2";const cd=ld;function ud(){return ud=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},ud.apply(this,arguments)}var dd=(0,wn.forwardRef)(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,i=void 0===o?24:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return xn().createElement("svg",ud({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),xn().createElement("polyline",{points:"3 6 5 6 21 6"}),xn().createElement("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}))});dd.propTypes={color:On().string,size:On().oneOfType([On().string,On().number])},dd.displayName="Trash";const pd=dd;function fd(){return fd=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},fd.apply(this,arguments)}var hd=(0,wn.forwardRef)(function(e,t){var n=e.color,r=void 0===n?"currentColor":n,o=e.size,i=void 0===o?24:o,a=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["color","size"]);return xn().createElement("svg",fd({ref:t,xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:r,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},a),xn().createElement("polyline",{points:"23 4 23 10 17 10"}),xn().createElement("polyline",{points:"1 20 1 14 7 14"}),xn().createElement("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"}))});hd.propTypes={color:On().string,size:On().oneOfType([On().string,On().number])},hd.displayName="RefreshCw";const gd=hd;var vd,md=n(2700),bd=n.n(md),yd=n(4039),wd=n.n(yd),xd={LINK:"link",SCRIPT:"script",STYLE:"style",HEAD:"head",BODY:"body"},jd=(Object.values(xd),"cssText"),Od="innerHTML",Cd="rel",Sd={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_d=Object.keys(Sd).reduce(function(e,t){return e[Sd[t]]=t,e},{}),Ed=[xd.SCRIPT,xd.STYLE],Id="data-react-helmet",kd=function(e){return Nd(e,"onChangeClientState")||function(){}},Pd=function(e,t,n){var r={};return n.filter(function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&Ad("Helmet: ".concat(e,' should be of type "Array". Instead found type "').concat(s(t[e]),'"')),!1)}).map(function(t){return t[e]}).reverse().reduce(function(e,n){var o={};n.filter(function(e){for(var n,i=Object.keys(e),a=0;a<i.length;a++){var s=i[a],l=s.toLowerCase();-1===t.indexOf(l)||n===Cd&&"canonical"===e[n].toLowerCase()||l===Cd&&"stylesheet"===e[l].toLowerCase()||(n=l),-1===t.indexOf(s)||s!==Od&&s!==jd&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),o[n]||(o[n]={}),!r[n][c]&&(o[n][c]=!0,!0)}).reverse().forEach(function(t){return e.push(t)});for(var i=Object.keys(o),a=0;a<i.length;a++){var s=i[a],l=wd()({},r[s],o[s]);r[s]=l}return e},[]).reverse()},Nd=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.hasOwnProperty(t))return r[t]}return null},Td=(vd=Date.now(),function(e){var t=Date.now();t-vd>16?(vd=t,e(t)):setTimeout(function(){Td(e)},0)}),Rd=function(e){return clearTimeout(e)},Ld="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||Td:n.g.requestAnimationFrame||Td,Dd="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Rd:n.g.cancelAnimationFrame||Rd,Ad=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},Fd=null,Md=function(e,t){var n=e.linkTags,r=e.onChangeClientState,o=e.scriptTags,i=e.styleTags,a=e.head,s={linkTags:Vd(xd.LINK,n,a),scriptTags:Vd(xd.SCRIPT,o,a),styleTags:Vd(xd.STYLE,i,a)},l={},c={};Object.keys(s).forEach(function(e){var t=s[e],n=t.newTags,r=t.oldTags;n.length&&(l[e]=n),r.length&&(c[e]=s[e].oldTags)}),t&&t(),r(e,l,c)},Vd=function(e,t,n){var r,o=n||document.head||document.querySelector(xd.HEAD),i=o.querySelectorAll("".concat(e,"[").concat(Id,"]")),a=Array.prototype.slice.call(i),s=[];return t&&t.length&&t.forEach(function(t){var n=document.createElement(e);for(var o in t)if(t.hasOwnProperty(o))if(o===Od)n.innerHTML=t.innerHTML;else if(o===jd)n.styleSheet?n.styleSheet.cssText=t.cssText:n.appendChild(document.createTextNode(t.cssText));else{var i=void 0===t[o]?"":t[o];n.setAttribute(o,i)}n.setAttribute(Id,"true"),a.some(function(e,t){return r=t,n.isEqualNode(e)})?a.splice(r,1):s.push(n)}),a.forEach(function(e){e.parentNode&&e.parentNode.contains(e)&&e.parentNode.removeChild(e)}),s.forEach(function(e){return o.appendChild(e)}),{oldTags:a,newTags:s}},Bd=function(e,t,n){return{toComponent:function(){return function(e,t){return t.map(function(t,n){var r=c({key:n},Id,!0);return Object.keys(t).forEach(function(e){var n=Sd[e]||e;if(n===Od||n===jd){var o=t.innerHTML||t.cssText;r.dangerouslySetInnerHTML={__html:o}}else r[n]=t[e]}),(0,o.createElement)(e,r)})}(e,t)},toString:function(){return function(e,t,n){return t.reduce(function(t,r){var o=Object.keys(r).filter(function(e){return!(e===Od||e===jd)}).reduce(function(e,t){var o=void 0===r[t]?t:"".concat(t,'="').concat(function(e){return!1===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}(r[t],n),'"');return e?"".concat(e," ").concat(o):o},""),i=r.innerHTML||r.cssText||"",a=-1===Ed.indexOf(e);return"".concat(t,"<").concat(e," ").concat(Id,'="true" ').concat(o).concat(a?"/>":">".concat(i,"</").concat(e,">"))},"")}(e,t,n)}}},Ud=function(e){var t=e.encode,n=e.linkTags,r=e.scriptTags,o=e.styleTags;return{link:Bd(xd.LINK,n,t),script:Bd(xd.SCRIPT,r,t),style:Bd(xd.STYLE,o,t)}};function Gd(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 zd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(zd=function(){return!!e})()}var Hd=!("undefined"==typeof window||!window.document||!window.document.createElement),qd=["children"],$d=["children"];function Wd(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 Xd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wd(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Kd=function(){return!!e})()}var Yd,Jd,Zd=function(e,t,n){if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(r){if("function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function s(){o=e(i.map(function(e){return e.props})),l.canUseDOM?t(o):n&&(o=n(o))}var l=function(e){function t(e){var n;return Vo(this,t),n=function(e,t,n){return t=Ho(t),Wo(e,zd()?Reflect.construct(t,n||[],Ho(e).constructor):t.apply(e,n))}(this,t,[e]),i.push(n),s(),n}return zo(t,e),Uo(t,[{key:"componentDidUpdate",value:function(){s()}},{key:"componentWillUnmount",value:function(){var e=i.indexOf(this);i.splice(e,1),s()}},{key:"render",value:function(){return(0,a.jsx)(r,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gd(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gd(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},this.props))}}],[{key:"peek",value:function(){return o}},{key:"rewind",value:function(){if(t.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=o;return o=void 0,i=[],e}}])}(wn.PureComponent);return c(l,"displayName","SideEffect(".concat(function(e){return e.displayName||e.name||"Component"}(r),")")),c(l,"canUseDOM",Hd),l}}(function(e){return{defer:Nd(e,"defer"),encode:Nd(e,"encodeSpecialCharacters"),linkTags:Pd(xd.LINK,[Cd,"href"],e),onChangeClientState:kd(e),scriptTags:Pd(xd.SCRIPT,["src",Od],e),styleTags:Pd(xd.STYLE,[jd],e),head:Nd(e,"head")}},function(e){Fd&&Dd(Fd),e.defer?Fd=Ld(function(){Md(e,function(){Fd=null})}):(Md(e),Fd=null)},Ud)(function(){return null}),Qd=(Yd=Zd,Jd=function(e){function t(){return Vo(this,t),function(e,t,n){return t=Ho(t),Wo(e,Kd()?Reflect.construct(t,n||[],Ho(e).constructor):t.apply(e,n))}(this,t,arguments)}return zo(t,e),Uo(t,[{key:"shouldComponentUpdate",value:function(e){return!bd()(this.props,e)}},{key:"mapNestedChildrenToProps",value:function(e,t){if(!t)return null;switch(e.type){case xd.SCRIPT:return{innerHTML:t};case xd.STYLE:return{cssText:t}}throw new Error("<".concat(e.type," /> elements are self-closing and can not contain children. Refer to our API for more information."))}},{key:"flattenArrayTypeChildren",value:function(e){var t=e.child,n=e.arrayTypeChildren,r=e.newChildProps,o=e.nestedChildren;return Xd(Xd({},n),{},c({},t.type,[].concat(b(n[t.type]||[]),[Xd(Xd({},r),this.mapNestedChildrenToProps(t,o))])))}},{key:"mapObjectTypeChildren",value:function(e){var t=e.child,n=e.newProps,r=e.newChildProps;return Xd(Xd({},n),{},c({},t.type,Xd({},r)))}},{key:"mapArrayTypeChildrenToProps",value:function(e,t){var n=Xd({},t);return Object.keys(e).forEach(function(t){n=Xd(Xd({},n),{},c({},t,e[t]))}),n}},{key:"warnOnInvalidChildren",value:function(e,t){return!0}},{key:"mapChildrenToProps",value:function(e,t){var n=this,r={};return o.Children.forEach(e,function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce(function(t,n){return t[_d[n]||n]=e[n],t},t)}(Ao(o,qd));switch(n.warnOnInvalidChildren(e,i),e.type){case xd.LINK:case xd.SCRIPT:case xd.STYLE:r=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:r,newChildProps:a,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}}),t=this.mapArrayTypeChildrenToProps(r,t)}},{key:"render",value:function(){var e=this.props,t=e.children,n=Xd({},Ao(e,$d));return t&&(n=this.mapChildrenToProps(t,n)),(0,a.jsx)(Yd,Xd({},n))}}],[{key:"canUseDOM",set:function(e){Yd.canUseDOM=e}}])}(o.Component),c(Jd,"propTypes",{children:On().oneOfType([On().arrayOf(On().node),On().node]),defer:On().bool,encodeSpecialCharacters:On().bool,link:On().arrayOf(On().object),onChangeClientState:On().func,script:On().arrayOf(On().object),style:On().arrayOf(On().object)}),c(Jd,"defaultProps",{defer:!0,encodeSpecialCharacters:!0}),c(Jd,"peek",Yd.peek),c(Jd,"rewind",function(){var e=Yd.rewind();return e||(e=Ud({encodeSpecialCharacters:!0,linkTags:[],scriptTags:[],styleTags:[]})),e}),Jd);Qd.renderStatic=Qd.rewind,n(5768),window.__gutenverseDynamicCache||(window.__gutenverseDynamicCache={contentCache:{},urlCache:{},contentPromises:{},urlPromises:{}});var ep=window.__gutenverseDynamicCache;function tp(e,t){return Array.isArray(e)?e.includes(t):e}function np(){const e=(0,wn.useRef)(null),[t,n]=(0,wn.useState)({width:1,height:1});(0,wn.useLayoutEffect)(()=>{const t=()=>{e.current&&n((e=>{const t=e.getBoundingClientRect();return{width:t.width,height:t.height}})(e.current))};window.addEventListener("resize",t,!1);const r=new ResizeObserver(([{contentBoxSize:e}])=>{n({height:e[0].blockSize,width:e[0].inlineSize})});return e.current&&r.observe(e.current),()=>{window.removeEventListener("resize",t,!1),r.disconnect()}},[]);const r=(0,wn.useCallback)(()=>{const{left:t=1,right:n=1,top:r=1,bottom:o=1}=e.current?.getBoundingClientRect()??{};return{left:t,right:n,top:r,bottom:o}},[]);return[e,t,r]}function rp(e,t,n){return e<t?t:e>n?n:e}ep.contentCache,ep.urlCache,ep.contentPromises,ep.urlPromises;var op=new class{convert(e,t){let n=this.toHex("#000000"),r=this.hex2rgb(n),o=this.rgb2hsv(r);if("hex"===e){const e=t;n=this.toHex(e),r=this.hex2rgb(n),n.startsWith("rgba")&&(r=this.toRgb(n),n=this.rgb2hex(r)),o=this.rgb2hsv(r)}else"rgb"===e?(r=t,n=this.rgb2hex(r),o=this.rgb2hsv(r)):"hsv"===e&&(o=t,r=this.hsv2rgb(o),n=this.rgb2hex(r));return{hex:n,rgb:r,hsv:o}}toHex(e){if(!e.startsWith("#")){const t=document.createElement("canvas").getContext("2d");if(!t)throw new Error("2d context not supported or canvas already initialized");return t.fillStyle=e,t.fillStyle}return 4===e.length||5===e.length?(e=e.split("").map((e,t)=>t?t<4?e+e:"f"===e?void 0:e+e:"#").join(""),e):7===e.length?e:9===e.length?e.endsWith("ff")?e.slice(0,7):e:"#000000"}toRgb(e){const t=e.match(/\d+(\.\d+)?/gu)??[],[n,r,o,i]=Array.from({length:4}).map((e,n)=>rp(+(t[n]??(n<3?0:1)),0,n<3?255:1));return{r:n,g:r,b:o,a:i}}toHsv(e){const t=e.match(/\d+(\.\d+)?/gu)??[],[n,r,o,i]=Array.from({length:4}).map((e,n)=>rp(+(t[n]??(n<3?0:1)),0,n?n<3?100:1:360));return{h:n,s:r,v:o,a:i}}hex2rgb(e){e=e.slice(1);let[t,n,r,o]=Array.from({length:4}).map((t,n)=>parseInt(e.slice(2*n,2*n+2),16));return o=Number.isNaN(o)?1:o/255,{r:t,g:n,b:r,a:o}}rgb2hsv({r:e,g:t,b:n,a:r}){e/=255,t/=255,n/=255;const o=Math.max(e,t,n),i=o-Math.min(e,t,n);return{h:i?60*(o===e?(t-n)/i+(t<n?6:0):o===t?2+(n-e)/i:4+(e-t)/i):0,s:o?i/o*100:0,v:100*o,a:r}}hsv2rgb({h:e,s:t,v:n,a:r}){const o=~~(e/60),i=e/60-o,a=(n/=100)*(1-(t/=100)),s=n*(1-t*i),l=n*(1-t*(1-i)),c=o%6;return{r:255*[n,s,a,a,l,n][c],g:255*[l,n,n,s,a,a][c],b:255*[a,a,l,n,n,s][c],a:r}}rgb2hex({r:e,g:t,b:n,a:r}){const[o,i,a,s]=[e,t,n,r].map((e,t)=>Math.round(t<3?e:255*e).toString(16).padStart(2,"0"));return["#",o,i,a,"ff"===s?"":s].join("")}};function ip(e){return"touches"in e}var ap=(0,wn.memo)(({onCoordinateChange:e,children:t,disabled:n})=>{const[r,{width:o,height:i},a]=np(),s=(0,wn.useCallback)((t,n=!1)=>{const{left:r,top:s}=a(),l=rp(t.clientX-r,0,o),c=rp(t.clientY-s,0,i);e(n,l,c)},[o,i,a,e]),l=(0,wn.useCallback)(e=>{if(!ip(e)&&0!==e.button)return;const t=e=>{s(ip(e)?e.touches[0]:e)},n=e=>{s(ip(e)?e.changedTouches[0]:e,!0),document.removeEventListener(ip(e)?"touchmove":"mousemove",t,!1),document.removeEventListener(ip(e)?"touchend":"mouseup",n,!1)};t(e),document.addEventListener(ip(e)?"touchmove":"mousemove",t,!1),document.addEventListener(ip(e)?"touchend":"mouseup",n,!1)},[s]);return wn.createElement("div",{ref:r,className:"rcp-interactive",onMouseDown:l,onTouchStart:l,"aria-disabled":n},t)}),sp=(0,wn.memo)(({color:e,disabled:t,onChange:n,onChangeComplete:r})=>{const[o,{width:i}]=np(),a=(0,wn.useMemo)(()=>({x:e.hsv.a*i}),[e.hsv.a,i]),s=(0,wn.useCallback)((t,o)=>{const a=op.convert("hsv",{...e.hsv,a:o/i});n(a),t&&r?.(a)},[e.hsv,i,n,r]),l=(0,wn.useMemo)(()=>[e.rgb.r,e.rgb.g,e.rgb.b].join(" "),[e.rgb.r,e.rgb.g,e.rgb.b]),c=(0,wn.useMemo)(()=>[l,e.rgb.a].join(" / "),[l,e.rgb.a]);return wn.createElement(ap,{disabled:t,onCoordinateChange:s},wn.createElement("div",{ref:o,style:{background:`linear-gradient(to right, rgb(${l} / 0), rgb(${l} / 1)) top left / auto auto,\n                      conic-gradient(#666 0.25turn, #999 0.25turn 0.5turn, #666 0.5turn 0.75turn, #999 0.75turn) top left / 12px 12px\n                      repeat`},className:"rcp-alpha"},wn.createElement("div",{style:{left:a.x,background:`linear-gradient(to right, rgb(${c}), rgb(${c})) top left / auto auto,\n                        conic-gradient(#666 0.25turn, #999 0.25turn 0.5turn, #666 0.5turn 0.75turn, #999 0.75turn) ${-a.x-4}px 2px / 12px 12px\n                        repeat`},className:"rcp-alpha-cursor"})))});function lp(e,t){return Math.round(e*10**t)/10**t}function cp({r:e,g:t,b:n,a:r}){const o=[Math.round(e),Math.round(t),Math.round(n)],i=lp(r,3);return i<1&&o.push(i),o.join(", ")}function up({h:e,s:t,v:n,a:r}){const o=[`${Math.round(e)}°`,`${Math.round(t)}%`,`${Math.round(n)}%`],i=lp(r,3);return i<1&&o.push(i),o.join(", ")}var dp=(0,wn.memo)(({hideInput:e,color:t,disabled:n,onChange:r,onChangeComplete:o})=>{const[i,a]=(0,wn.useState)({hex:{value:t.hex,inputted:!1},rgb:{value:cp(t.rgb),inputted:!1},hsv:{value:up(t.hsv),inputted:!1}});(0,wn.useEffect)(()=>{i.hex.inputted||a(e=>({...e,hex:{...e.hex,value:t.hex}}))},[i.hex.inputted,t.hex]),(0,wn.useEffect)(()=>{i.rgb.inputted||a(e=>({...e,rgb:{...e.rgb,value:cp(t.rgb)}}))},[i.rgb.inputted,t.rgb]),(0,wn.useEffect)(()=>{i.hsv.inputted||a(e=>({...e,hsv:{...e.hsv,value:up(t.hsv)}}))},[i.hsv.inputted,t.hsv]);const s=(0,wn.useCallback)(e=>t=>{const{value:n}=t.target;a(t=>({...t,[e]:{...t[e],value:n}})),r("hsv"===e?op.convert("hsv",op.toHsv(n)):"rgb"===e?op.convert("rgb",op.toRgb(n)):op.convert("hex",n))},[r]),l=(0,wn.useCallback)(e=>()=>{a(t=>({...t,[e]:{...t[e],inputted:!0}}))},[]),c=(0,wn.useCallback)(e=>t=>{const{value:n}=t.target;a(t=>({...t,[e]:{...t[e],inputted:!1}})),o?.("hsv"===e?op.convert("hsv",op.toHsv(n)):"rgb"===e?op.convert("rgb",op.toRgb(n)):op.convert("hex",n))},[o]);return wn.createElement("div",{className:"rcp-fields"},!tp(e,"hex")&&wn.createElement("div",{className:"rcp-fields-floor"},wn.createElement("div",{className:"rcp-field"},wn.createElement("input",{id:"hex",className:"rcp-field-input",readOnly:n,value:i.hex.value,onChange:s("hex"),onFocus:l("hex"),onBlur:c("hex")}),wn.createElement("label",{htmlFor:"hex",className:"rcp-field-label"},"HEX"))),(!tp(e,"rgb")||!tp(e,"hsv"))&&wn.createElement("div",{className:"rcp-fields-floor"},!tp(e,"rgb")&&wn.createElement("div",{className:"rcp-field"},wn.createElement("input",{id:"rgb",className:"rcp-field-input",readOnly:n,value:i.rgb.value,onChange:s("rgb"),onFocus:l("rgb"),onBlur:c("rgb")}),wn.createElement("label",{htmlFor:"rgb",className:"rcp-field-label"},"RGB")),!tp(e,"hsv")&&wn.createElement("div",{className:"rcp-field"},wn.createElement("input",{id:"hsv",className:"rcp-field-input",readOnly:n,value:i.hsv.value,onChange:s("hsv"),onFocus:l("hsv"),onBlur:c("hsv")}),wn.createElement("label",{htmlFor:"hsv",className:"rcp-field-label"},"HSV"))))}),pp=(0,wn.memo)(({color:e,disabled:t,onChange:n,onChangeComplete:r})=>{const[o,{width:i}]=np(),a=(0,wn.useMemo)(()=>({x:e.hsv.h/360*i}),[e.hsv.h,i]),s=(0,wn.useCallback)((t,o)=>{const a=op.convert("hsv",{...e.hsv,h:o/i*360});n(a),t&&r?.(a)},[e.hsv,i,n,r]),l=(0,wn.useMemo)(()=>[e.hsv.h,"100%","50%"].join(" "),[e.hsv.h]);return wn.createElement(ap,{disabled:t,onCoordinateChange:s},wn.createElement("div",{ref:o,className:"rcp-hue"},wn.createElement("div",{style:{left:a.x,backgroundColor:`hsl(${l})`},className:"rcp-hue-cursor"})))}),fp=(0,wn.memo)(({height:e,color:t,disabled:n,onChange:r,onChangeComplete:o})=>{const[i,{width:a}]=np(),s=(0,wn.useMemo)(()=>({x:t.hsv.s/100*a,y:(100-t.hsv.v)/100*e}),[t.hsv.s,t.hsv.v,a,e]),l=(0,wn.useCallback)((n,i,s)=>{const l=op.convert("hsv",{...t.hsv,s:i/a*100,v:100-s/e*100});r(l),n&&o?.(l)},[t.hsv,a,e,r,o]),c=(0,wn.useMemo)(()=>[t.hsv.h,"100%","50%"].join(" "),[t.hsv.h]),u=(0,wn.useMemo)(()=>[t.rgb.r,t.rgb.g,t.rgb.b].join(" "),[t.rgb.r,t.rgb.g,t.rgb.b]);return wn.createElement(ap,{disabled:n,onCoordinateChange:l},wn.createElement("div",{ref:i,style:{height:e,backgroundColor:`hsl(${c})`},className:"rcp-saturation"},wn.createElement("div",{style:{left:s.x,top:s.y,backgroundColor:`rgb(${u})`},className:"rcp-saturation-cursor"})))}),hp=(0,wn.memo)(({height:e=200,hideAlpha:t=!1,hideInput:n=!1,color:r,disabled:o=!1,onChange:i,onChangeComplete:a})=>wn.createElement("div",{className:"rcp-root rcp"},wn.createElement(fp,{height:e,color:r,disabled:o,onChange:i,onChangeComplete:a}),wn.createElement("div",{className:"rcp-body"},wn.createElement("section",{className:"rcp-section"},wn.createElement(pp,{color:r,disabled:o,onChange:i,onChangeComplete:a}),!t&&wn.createElement(sp,{color:r,disabled:o,onChange:i,onChangeComplete:a})),(!tp(n,"hex")||!tp(n,"rgb")||!tp(n,"hsv"))&&wn.createElement("section",{className:"rcp-section"},wn.createElement(dp,{hideInput:n,color:r,disabled:o,onChange:i,onChangeComplete:a})))));function gp(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 vp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gp(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var mp=function(e){return!e||Nn()(e)?op.convert("hex","#000000"):void 0!==e.r?op.convert("rgb",vp(vp({},e),{},{a:null!==(t=e.a)&&void 0!==t?t:1})):"string"==typeof e?op.convert("hex",e):op.convert("hex","#000000");var t};const bp=function(e){var t=e.color,n=e.onChange,r=e.onChangeComplete,i=e.disableAlpha,s=e.classNames,l=y((0,o.useState)(mp(t)),2),c=l[0],u=l[1],d=(0,o.useRef)(null);(0,o.useEffect)(function(){var e=mp(t);u(function(t){return function(e,t){return!(!e||!t)&&e.rgb.r===t.rgb.r&&e.rgb.g===t.rgb.g&&e.rgb.b===t.rgb.b&&e.rgb.a===t.rgb.a}(e,t)?t:e})},[t]);var p=function(e){return vp(vp({},e),{},{rgb:{r:Math.round(e.rgb.r),g:Math.round(e.rgb.g),b:Math.round(e.rgb.b),a:e.rgb.a}})};return(0,a.jsx)("div",{className:s,children:(0,a.jsx)(hp,{hideAlpha:i,color:c,onChange:function(e){u(e),n&&n(p(e)),r&&(clearTimeout(d.current),d.current=setTimeout(function(){r(p(e))},100))}})})},yp=function(){var e=(window.GutenverseConfig||window.GutenverseDashboard||{}).upgradeProUrl,n=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"guten-pro-themes-wrapper",children:(0,a.jsxs)("div",{className:"guten-card-pro-wrapper guten-pro-themes-full",style:{backgroundImage:"url(".concat(window.GutenverseConfig.imgDir+"/pop-up-bg-popup-banner.png",")")},children:[(0,a.jsxs)("div",{className:"guten-card-pro-image-wrapper",children:[(0,a.jsx)("img",{className:"guten-card-pro-mockup-library",src:window.GutenverseConfig.imgDir+"/pop-up-mockup-pro.png"}),(0,a.jsx)("img",{className:"guten-card-pro-3d-cube",src:window.GutenverseConfig.imgDir+"/pop-up-3d-cube-2.png"}),(0,a.jsx)("img",{className:"guten-card-pro-icon-lottie",src:window.GutenverseConfig.imgDir+"/pop-up-icon-element-3.png"}),(0,a.jsx)("img",{className:"guten-card-pro-icon-nav",src:window.GutenverseConfig.imgDir+"/pop-up-icon-element-2.png"})]}),(0,a.jsxs)("div",{className:"guten-card-pro-content-wrapper",children:[(0,a.jsxs)("div",{className:"guten-card-pro-title",children:["Unlock Extra Features with",(0,a.jsx)("span",{children:" Gutenverse PRO!"}),(0,a.jsx)("img",{className:"guten-card-pro-blink",src:window.GutenverseConfig.imgDir+"/banner-graphic-blink.png",alt:"Guten Card Pro Blink"})]}),(0,a.jsx)("img",{className:"guten-card-pro-arrow",src:window.GutenverseConfig.imgDir+"/banner-arrow-blue.png",alt:"Guten Card Pro Arrow"}),(0,a.jsx)(mo,{isBanner:!0,location:"card-pro",link:"".concat(e,"?utm_source=gutenverse&utm_medium=blockeditor&utm_client_site=").concat(j.clientUrl,"&utm_client_theme=").concat(j.activeTheme)})]})]})}),(0,a.jsx)("br",{})]});return(0,t.applyFilters)("gutenverse.pro.upgrade.banner",n,null)};function wp(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 xp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wp(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var jp=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Vo(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c($o($o(t=Wo(this,(e=Ho(n)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,wn.createRef)()),t}return zo(n,t),Uo(n,[{key:"componentDidMount",value:function(){(0,ja.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return ku()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,wn.createElement)(e,Mo({ref:t},this.props))}}]),n}(wn.Component),c(t,"displayName",Uu("sortableHandle",e)),n}(function(){return(0,a.jsx)("div",{className:"repeater-drag-handle",children:(0,a.jsx)(Qt.IconDragSVG,{})})}),Op=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){var e,t;Vo(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return c($o($o(t=Wo(this,(e=Ho(n)).call.apply(e,[this].concat(o))))),"wrappedInstance",(0,wn.createRef)()),t}return zo(n,t),Uo(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,ja.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return ku()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,wn.createElement)(e,Mo({ref:t},Tu(this.props,ad)))}}]),n}(wn.Component),c(t,"displayName",Uu("sortableElement",e)),c(t,"contextType",od),c(t,"propTypes",id),c(t,"defaultProps",{collection:0}),n}(function(e){var t=e.value,n=e.idx,r=e.updateValue,o=e.deleteValue,i=e.items,s=e.stage,l=e.showDelete,c=e.showEditSlug,u=e.isDragable;return(0,a.jsx)(a.Fragment,{children:"font"===s?(0,a.jsx)(Ep,{value:t,updateFont:function(e){return r(e,n)},deleteFont:o,checkDoubleSlug:function(e){return _p(e,n,i)},isDragable:u}):"color"===s?(0,a.jsx)(Ip,{value:t,updateColor:function(e){return r(n,e)},deleteColor:function(){return o(n)},showDelete:l,showEditSlug:c,checkDoubleSlug:function(e){return _p(e,n,i)},isDragable:u}):void 0})}),Cp=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;Vo(this,n),c($o($o(t=Wo(this,Ho(n).call(this,e)))),"state",{}),c($o($o(t)),"handleStart",function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=zu(e);var i=Mu(e.target,function(e){return null!=e.sortableInfo});if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,s=i.sortableInfo,l=s.index,c=s.collection;if(s.disabled)return;if(a&&!Mu(e.target,Zu))return;t.manager.active={collection:c,index:l},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||"A"!==e.target.tagName||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout(function(){return t.handlePress(e)},t.props.pressDelay))}}}),c($o($o(t)),"nodeIsChild",function(e){return e.sortableInfo.manager===t.manager}),c($o($o(t)),"handleMove",function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=zu(e),a={x:t.position.x-i.x,y:t.position.y-i.y},s=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||o&&!(s>=o)?r&&s>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}}),c($o($o(t)),"handleEnd",function(){t.touched=!1,t.cancel()}),c($o($o(t)),"cancel",function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)}),c($o($o(t)),"handlePress",function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n,r,o=p.sortableInfo.index,c=(n=p,{bottom:Bu((r=window.getComputedStyle(n)).marginBottom),left:Bu(r.marginLeft),right:Bu(r.marginRight),top:Bu(r.marginTop)}),g=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:Bu(t.gridColumnGap),y:Bu(t.gridRowGap)}:{x:0,y:0}}(t.container),v=t.scrollContainer.getBoundingClientRect(),m=a({index:o,node:p,collection:f});if(t.node=p,t.margin=c,t.gridGap=g,t.width=m.width,t.height=m.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=p.getBoundingClientRect(),t.containerBoundingRect=v,t.index=o,t.newIndex=o,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=Hu(p,t.container),t.initialOffset=zu(h?Eu({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild(function(e){var t="input, textarea, select, canvas, [contenteditable]",n=e.querySelectorAll(t),r=e.cloneNode(!0);return b(r.querySelectorAll(t)).forEach(function(e,t){"file"!==e.type&&(e.value=n[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),"CANVAS"===e.tagName&&n[t].width>0&&n[t].height>0&&e.getContext("2d").drawImage(n[t],0,0)}),r}(p)),Du(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-c.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-c.top,"px"),width:"".concat(t.width,"px")}),h&&t.helper.focus(),l&&(t.sortableGhost=p,Du(p,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},h){var y=d?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,w=y.top,x=y.left,j=y.width,O=w+y.height,C=x+j;t.axis.x&&(t.minTranslate.x=x-t.boundingClientRect.left,t.maxTranslate.x=C-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=w-t.boundingClientRect.top,t.maxTranslate.y=O-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(d?0:v.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(d?t.contentWindow.innerWidth:v.left+v.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(d?0:v.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(d?t.contentWindow.innerHeight:v.top+v.height)-t.boundingClientRect.top-t.height/2);s&&s.split(" ").forEach(function(e){return t.helper.classList.add(e)}),t.listenerNode=e.touches?e.target:t.contentWindow,h?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(Ru.move.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)}),Ru.end.forEach(function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)})),t.setState({sorting:!0,sortingIndex:o}),u&&u({node:p,index:o,collection:f,isKeySorting:h,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),h&&t.keyMove(0)},o=t.props,i=o.axis,a=o.getHelperDimensions,s=o.helperClass,l=o.hideSortableGhost,c=o.updateBeforeSortStart,u=o.onSortStart,d=o.useWindowAsScrollContainer,p=n.node,f=n.collection,h=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=function(t,n){try{var r=function(){var t=p.sortableInfo.index;return Promise.resolve(c({collection:f,index:t,node:p,isKeySorting:h},e)).then(function(){})}()}catch(e){return n(!0,e)}return r&&r.then?r.then(n.bind(null,!1),n.bind(null,!0)):n(!1,value)}(0,function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n});if(n&&n.then)return n.then(function(){})}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),c($o($o(t)),"handleSortMove",function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.cancelable&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)}),c($o($o(t)),"handleSortEnd",function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager,a=i.active.collection,s=i.isKeySorting,l=t.manager.getOrderedRefs();t.listenerNode&&(s?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(Ru.move.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)}),Ru.end.forEach(function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)}))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&Du(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=l.length;c<u;c++){var d=l[c],p=d.node;d.edgeOffset=null,d.boundingClientRect=null,Au(p,null),Fu(p,null),d.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:s,nodes:l},e),t.touched=!1}),c($o($o(t)),"autoscroll",function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=Eu({},t.translate),o=0,i=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-r.y),t.translate=r,Au(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}}),c($o($o(t)),"onAutoScroll",function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()}),c($o($o(t)),"handleKeyDown",function(e){var n=e.keyCode,r=t.props,o=r.shouldCancelStart,i=r.keyCodes,a=Eu({},td,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||a.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(n)&&!t.manager.active?t.keyLift(e):a.drop.includes(n)&&t.manager.active?t.keyDrop(e):a.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):a.up.includes(n)?t.keyMove(-1):a.down.includes(n)&&t.keyMove(1))}),c($o($o(t)),"keyLift",function(e){var n=e.target,r=Mu(n,function(e){return null!=e.sortableInfo}).sortableInfo,o=r.index,i=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:i},t.handlePress(e)}),c($o($o(t)),"keyMove",function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,i=t.newIndex;if(!(o<0||o>r)){t.prevIndex=i,t.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),s=n.find(function(e){return e.node.sortableInfo.index===a}),l=s.node,c=t.containerScrollDelta,u=s.boundingClientRect||Gu(l,c),d=s.translate||{x:0,y:0},p=u.top+d.y-c.top,f=u.left+d.x-c.left,h=i<o,g=h&&t.axis.x?l.offsetWidth-t.width:0,v=h&&t.axis.y?l.offsetHeight-t.height:0;t.handleSortMove({pageX:f+g,pageY:p+v,ignoreTransition:0===e})}}),c($o($o(t)),"keyDrop",function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()}),c($o($o(t)),"handleKeyEnd",function(e){t.manager.active&&t.keyDrop(e)}),c($o($o(t)),"isValidSortingTarget",function(e){var n=t.props.useDragHandle,r=e.target,o=Mu(r,function(e){return null!=e.sortableInfo});return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Zu(r):r.sortableInfo)});var r=new Pu;return function(e){ku()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=r,t.wrappedInstance=(0,wn.createRef)(),t.sortableContextValue={manager:r},t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return zo(n,t),Uo(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then(function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:$u(e.container)||e.container,e.autoScroller=new Qu(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach(function(t){return Ru[t].forEach(function(n){return e.container.addEventListener(n,e.events[t],!1)})}),e.container.addEventListener("keydown",e.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(t){return Ru[t].forEach(function(n){return e.container.removeEventListener(n,e.events[t])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,s=void 0===a?i:a,l=this.manager.isKeySorting,c=e.ignoreTransition,u=zu(e),d={x:u.x-this.initialOffset.x,y:u.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,o){var p=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];ku()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=y(o,2),a=i[0],s=i[1];return[qu({height:t,lockOffset:a,width:n}),qu({height:t,lockOffset:s,width:n})]}({height:this.height,lockOffset:r,width:this.width}),f=y(p,2),h=f[0],g=f[1],v={x:this.width/2-h.x,y:this.height/2-h.y},m={x:this.width/2-g.x,y:this.height/2-g.y};d.x=Vu(this.minTranslate.x+v.x,this.maxTranslate.x-m.x,d.x),d.y=Vu(this.minTranslate.y+v.y,this.maxTranslate.y-m.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),l&&s&&!c&&Fu(this.helper,s),Au(this.helper,d)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),s=this.offsetEdge.left+this.translate.x+o.left,l=this.offsetEdge.top+this.translate.y+o.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var d=0,p=a.length;d<p;d++){var f=a[d].node,h=f.sortableInfo.index,g=f.offsetWidth,v=f.offsetHeight,m={height:this.height>v?v/2:this.height/2,width:this.width>g?g/2:this.width/2},b=c&&h>this.index&&h<=u,y=c&&h<this.index&&h>=u,w={x:0,y:0},x=a[d].edgeOffset;x||(x=Hu(f,this.container),a[d].edgeOffset=x,c&&(a[d].boundingClientRect=Gu(f,o)));var j=d<a.length-1&&a[d+1],O=d>0&&a[d-1];j&&!j.edgeOffset&&(j.edgeOffset=Hu(j.node,this.container),c&&(j.boundingClientRect=Gu(j.node,o))),h!==this.index?(t&&Fu(f,t),this.axis.x?this.axis.y?y||h<this.index&&(s+i.left-m.width<=x.left&&l+i.top<=x.top+m.height||l+i.top+m.height<=x.top)?(w.x=this.width+this.marginOffset.x,x.left+w.x>this.containerBoundingRect.width-m.width&&j&&(w.x=j.edgeOffset.left-x.left,w.y=j.edgeOffset.top-x.top),null===this.newIndex&&(this.newIndex=h)):(b||h>this.index&&(s+i.left+m.width>=x.left&&l+i.top+m.height>=x.top||l+i.top+m.height>=x.top+v))&&(w.x=-(this.width+this.marginOffset.x),x.left+w.x<this.containerBoundingRect.left+m.width&&O&&(w.x=O.edgeOffset.left-x.left,w.y=O.edgeOffset.top-x.top),this.newIndex=h):b||h>this.index&&s+i.left+m.width>=x.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=h):(y||h<this.index&&s+i.left<=x.left+m.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=h)):this.axis.y&&(b||h>this.index&&l+i.top+m.height>=x.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=h):(y||h<this.index&&l+i.top<=x.top+m.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=h))),Au(f,w),a[d].translate=w):n&&(this.sortableGhost=f,Du(f,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var C=c?this.prevIndex:u;r&&this.newIndex!==C&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:C,isKeySorting:c,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return ku()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,ja.findDOMNode)(this):e(r.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=r.withRef?this.wrappedInstance:null;return(0,wn.createElement)(od.Provider,{value:this.sortableContextValue},(0,wn.createElement)(e,Mo({ref:t},Tu(this.props,rd))))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(wn.Component),c(t,"displayName",Uu("sortableList",e)),c(t,"defaultProps",nd),c(t,"propTypes",ed),n}(function(e){var t=e.items;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("ul",{children:t.map(function(t,n){return(0,a.jsx)(Op,xp({index:n,idx:n,value:t},e),n)})})})}),Sp=function(e){var t=e.items,n=e.onValueChange,r=e.isDragable;return(0,a.jsx)(Cp,xp(xp({},e),{},{onSortEnd:function(e){var r,o,i,a=e.oldIndex,s=e.newIndex;n((r=t,o=a,i=s,function(e,t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const r=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(r,0,o)}}(r=[...r],o,i),r))},useDragHandle:!0,disabled:!r,shouldCancelStart:function(e){return function(e,t){for(;e;){if(t(e))return!0;e=e.parentElement}return!1}(e.target,function(e){return["button"].includes(e.tagName.toLowerCase())})},helperClass:"sortable-drag"}))},_p=function(e,t,n){var r=!1;if(n.forEach(function(n,o){o!==t&&n.id===e&&(r=!0)}),r){var o="".concat(e,"-").concat(Math.floor(100*Math.random()));return _p(o,t,n)}return e},Ep=function(e){var t=e.value,n=e.updateFont,s=e.deleteFont,l=e.checkDoubleSlug,u=e.isDragable,d=y((0,o.useState)(!1),2),p=d[0],f=d[1],h=y((0,o.useState)(!1),2),g=h[0],v=h[1],m=y((0,o.useState)(!0),2),b=m[0],w=m[1],x=y((0,o.useState)(!1),2),j=x[0],O=x[1],C=y((0,o.useState)(null),2),S=C[0],_=C[1],E=(0,o.useRef)(),I=(0,o.useRef)(),k=In()("control-body","control-toggle-body","triangle",c({},"hide",!p)),P=In()("typography-icon",c({},"active",p)),N=function(e){return n(xp(xp({},t),{},{font:e}))};return(0,a.jsxs)("div",{className:In()("gutenverse-control-wrapper","gutenverse-control-typography"),children:[(0,a.jsxs)("div",{className:"single-variable-font-wrapper",children:[u&&(0,a.jsx)(jp,{}),(0,a.jsxs)("div",{className:"single-variable-item-wrapper",children:[(0,a.jsx)(Kc.Tooltip,{text:(0,i.__)("Edit","gutenverse"),children:(0,a.jsx)("div",{className:P,onClick:function(){f(function(e){return!e})},ref:I,children:(0,a.jsx)(cd,{size:12})})}),(0,a.jsx)("input",{type:"text",value:t.name,onChange:function(e){n(xp(xp({},t),{},{name:e.target.value}))},className:"font-name"})]}),(0,a.jsx)(Kc.Tooltip,{text:(0,i.__)("Delete","gutenverse"),children:(0,a.jsx)("div",{className:"font-delete",onClick:function(){v(!0),_(t)},children:(0,a.jsx)(pd,{size:12})})})]}),p&&(0,a.jsxs)("div",{className:"gutenverse-variable-detail-wrapper",children:[(0,a.jsxs)("div",{className:k,ref:E,children:[(0,a.jsxs)("div",{className:"gutenverse-control-heading",children:[(0,a.jsx)("h2",{children:(0,i.__)("Typography","gutenverse")}),(0,a.jsx)(Kc.Tooltip,{text:(0,i.__)("Refresh","gutenverse"),children:(0,a.jsx)("span",{children:(0,a.jsx)(gd,{onClick:function(){return N({})}})})},"reset")]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ju.FontControl,{label:(0,i.__)("Font Family","gutenverse"),value:t.font.font,onValueChange:function(e){return N(xp(xp({},t.font),{},{font:e}))}}),(0,a.jsxs)("div",{className:"font-value-wrapper",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)(ju.SizeControl,{label:(0,i.__)("Size","gutenverse"),value:t.font.size,allowDeviceControl:!0,hideRange:!0,onValueChange:function(e){return N(xp(xp({},t.font),{},{size:e}))},onLocalChange:function(e){return N(xp(xp({},t.font),{},{size:e}))}}),(0,a.jsx)(ju.SelectControl,{label:(0,i.__)("Weight","gutenverse"),value:t.font.weight,onValueChange:function(e){return N(xp(xp({},t.font),{},{weight:e}))},options:[{label:(0,i.__)("Default","gutenverse"),value:"default"},{label:(0,i.__)("Normal","gutenverse"),value:"normal"},{label:(0,i.__)("Bold","gutenverse"),value:"bold"},{label:"100",value:"100"},{label:"200",value:"200"},{label:"300",value:"300"},{label:"400",value:"400"},{label:"500",value:"500"},{label:"600",value:"600"},{label:"700",value:"700"},{label:"800",value:"800"},{label:"900",value:"900"}]}),(0,a.jsx)(ju.SelectControl,{label:(0,i.__)("Decoration","gutenverse"),value:t.font.decoration,onValueChange:function(e){return N(xp(xp({},t.font),{},{decoration:e}))},options:[{label:(0,i.__)("Default","gutenverse"),value:"default"},{label:(0,i.__)("Underline","gutenverse"),value:"underline"},{label:(0,i.__)("Overline","gutenverse"),value:"overline"},{label:(0,i.__)("Line Through","gutenverse"),value:"line-through"},{label:(0,i.__)("None","gutenverse"),value:"none"}]})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)(ju.SizeControl,{label:(0,i.__)("Line Height","gutenverse"),value:t.font.lineHeight,allowDeviceControl:!0,hideRange:!0,units:{px:{text:"px",min:1,max:200,step:1,unit:"px"},em:{text:"em",min:.1,max:10,step:.1,unit:"em"}},onValueChange:function(e){return N(xp(xp({},t.font),{},{lineHeight:e}))},onLocalChange:function(e){return N(xp(xp({},t.font),{},{lineHeight:e}))}}),(0,a.jsx)(ju.SelectControl,{label:(0,i.__)("Transform","gutenverse"),value:t.font.transform,onValueChange:function(e){return N(xp(xp({},t.font),{},{transform:e}))},options:[{label:(0,i.__)("Default","gutenverse"),value:"default"},{label:(0,i.__)("Uppercase","gutenverse"),value:"uppercase"},{label:(0,i.__)("Lowercase","gutenverse"),value:"lowercase"},{label:(0,i.__)("Capitalize","gutenverse"),value:"capitalize"},{label:(0,i.__)("Normal","gutenverse"),value:"normal"}]}),(0,a.jsx)(ju.SelectControl,{label:(0,i.__)("Style","gutenverse"),value:t.font.style,onValueChange:function(e){return N(xp(xp({},t.font),{},{style:e}))},options:[{label:(0,i.__)("Default","gutenverse"),value:"default"},{label:(0,i.__)("Normal","gutenverse"),value:"normal"},{label:(0,i.__)("Italic","gutenverse"),value:"italic"},{label:(0,i.__)("Oblique","gutenverse"),value:"oblique"}]})]})]}),(0,a.jsx)(ju.RangeControl,{label:(0,i.__)("Letter Spacing","gutenverse"),min:-10,max:10,step:.1,value:t.font.spacing,allowDeviceControl:!0,onValueChange:function(e){return N(xp(xp({},t.font),{},{spacing:e}))},onLocalChange:function(e){return N(xp(xp({},t.font),{},{spacing:e}))}})]})]}),(0,a.jsxs)("div",{className:"gutenverse-variable-slug",children:[(0,a.jsx)("div",{className:"gutenverse-control-heading",children:(0,a.jsx)("h2",{children:(0,i.__)("Typography Slug","gutenverse")})}),(0,a.jsx)("div",{className:"variable-input-wrapper",children:b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"variable-input",children:(0,a.jsx)("input",{type:"text",value:t.id,readOnly:!0})}),(0,a.jsx)("div",{className:"variable-input-lock",onClick:function(){return O(!0)},children:(0,a.jsx)(Kc.Tooltip,{placement:"bottom",text:(0,i.__)("Unlock to edit slug","gutenverse"),children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83464C5.83268 3.53297 7.69768 1.66797 9.99935 1.66797C12.301 1.66797 14.166 3.53297 14.166 5.83464V8.33464H14.4993C15.2327 8.33464 15.8327 8.93464 15.8327 9.66797V15.5013C15.8327 16.6013 14.9327 17.5013 13.8327 17.5013H6.16602C5.06602 17.5013 4.16602 16.6013 4.16602 15.5013V9.66797C4.16602 8.93464 4.76602 8.33464 5.49935 8.33464H5.83268V5.83464ZM12.4993 5.83464V8.33464H7.49935V5.83464C7.49935 4.45297 8.61768 3.33464 9.99935 3.33464C11.381 3.33464 12.4993 4.45297 12.4993 5.83464ZM9.99935 10.2096C9.66796 10.2093 9.34634 10.3218 9.08746 10.5287C8.82858 10.7356 8.64787 11.0244 8.5751 11.3477C8.50232 11.671 8.54183 12.0095 8.68711 12.3073C8.83239 12.6051 9.07478 12.8446 9.37435 12.9863V15.0013C9.37435 15.1671 9.4402 15.326 9.55741 15.4432C9.67462 15.5605 9.83359 15.6263 9.99935 15.6263C10.1651 15.6263 10.3241 15.5605 10.4413 15.4432C10.5585 15.326 10.6243 15.1671 10.6243 15.0013V12.9863C10.9239 12.8446 11.1663 12.6051 11.3116 12.3073C11.4569 12.0095 11.4964 11.671 11.4236 11.3477C11.3508 11.0244 11.1701 10.7356 10.9112 10.5287C10.6524 10.3218 10.3307 10.2093 9.99935 10.2096Z",fill:"#FFB200"})})})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"variable-input",children:(0,a.jsx)("input",{type:"text",value:t.id,onChange:function(e){return function(e){var o=(0,r.slugify)(e.target.value);o=l(o),n(xp(xp({},t),{},{id:o}))}(e)}})}),(0,a.jsx)("div",{className:"variable-input-lock",onClick:function(){return w(!0)},children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83258C5.83128 4.81744 6.20053 3.8367 6.87108 3.07455C7.54164 2.31239 8.46736 1.82125 9.47442 1.69336C10.4815 1.56547 11.5006 1.80963 12.3404 2.37998C13.1801 2.95033 13.7828 3.80764 14.0352 4.79091C14.0904 5.00497 14.0584 5.2322 13.9461 5.42263C13.8338 5.61305 13.6505 5.75108 13.4364 5.80633C13.2224 5.86158 12.9951 5.82954 12.8047 5.71725C12.6143 5.60497 12.4763 5.42163 12.421 5.20758C12.2697 4.61747 11.9081 4.1029 11.4042 3.76056C10.9003 3.41822 10.2887 3.27165 9.6844 3.3484C9.08005 3.42514 8.52452 3.71992 8.12218 4.17735C7.71983 4.63478 7.49835 5.22338 7.49935 5.83258V8.33258H14.4993C15.2327 8.33258 15.8327 8.93258 15.8327 9.66591V15.4992C15.8327 16.5992 14.9327 17.4992 13.8327 17.4992H6.16602C5.06602 17.4992 4.16602 16.5992 4.16602 15.4992V9.66591C4.16602 8.93258 4.76602 8.33258 5.49935 8.33258H5.83268V5.83258ZM9.99935 10.2076C9.66796 10.2072 9.34634 10.3198 9.08746 10.5266C8.82858 10.7335 8.64787 11.0224 8.5751 11.3457C8.50232 11.669 8.54183 12.0074 8.68711 12.3052C8.83239 12.6031 9.07478 12.8426 9.37435 12.9842V14.9992C9.37435 15.165 9.4402 15.324 9.55741 15.4412C9.67462 15.5584 9.83359 15.6242 9.99935 15.6242C10.1651 15.6242 10.3241 15.5584 10.4413 15.4412C10.5585 15.324 10.6243 15.165 10.6243 14.9992V12.9842C10.9239 12.8426 11.1663 12.6031 11.3116 12.3052C11.4569 12.0074 11.4964 11.669 11.4236 11.3457C11.3508 11.0224 11.1701 10.7335 10.9112 10.5266C10.6524 10.3198 10.3307 10.2072 9.99935 10.2076Z",fill:"#12B76A"})})})]})})]})]}),j&&(0,o.createPortal)((0,a.jsx)(Ln,{icon:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83464C5.83268 3.53297 7.69768 1.66797 9.99935 1.66797C12.301 1.66797 14.166 3.53297 14.166 5.83464V8.33464H14.4993C15.2327 8.33464 15.8327 8.93464 15.8327 9.66797V15.5013C15.8327 16.6013 14.9327 17.5013 13.8327 17.5013H6.16602C5.06602 17.5013 4.16602 16.6013 4.16602 15.5013V9.66797C4.16602 8.93464 4.76602 8.33464 5.49935 8.33464H5.83268V5.83464ZM12.4993 5.83464V8.33464H7.49935V5.83464C7.49935 4.45297 8.61768 3.33464 9.99935 3.33464C11.381 3.33464 12.4993 4.45297 12.4993 5.83464ZM9.99935 10.2096C9.66796 10.2093 9.34634 10.3218 9.08746 10.5287C8.82858 10.7356 8.64787 11.0244 8.5751 11.3477C8.50232 11.671 8.54183 12.0095 8.68711 12.3073C8.83239 12.6051 9.07478 12.8446 9.37435 12.9863V15.0013C9.37435 15.1671 9.4402 15.326 9.55741 15.4432C9.67462 15.5605 9.83359 15.6263 9.99935 15.6263C10.1651 15.6263 10.3241 15.5605 10.4413 15.4432C10.5585 15.326 10.6243 15.1671 10.6243 15.0013V12.9863C10.9239 12.8446 11.1663 12.6051 11.3116 12.3073C11.4569 12.0095 11.4964 11.671 11.4236 11.3477C11.3508 11.0244 11.1701 10.7356 10.9112 10.5287C10.6524 10.3218 10.3307 10.2093 9.99935 10.2096Z",fill:"#FFB200"})}),title:(0,i.__)("Font Slug Edit is Locked","gutenverse"),description:(0,i.__)("Warning: All blocks assigned to this will lose their font. Only unlock if you understand the consequences","gutenverse"),buttonText:(0,i.__)("Unlock Slug","gutenverse"),onClick:function(){w(!1),O(!1)},onClose:function(){return O(!1)},scheme:"danger"}),document.getElementById("gutenverse-root")),g&&(0,a.jsx)(Ln,{icon:(0,a.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.4286 0.517446C11.0653 -0.172482 9.93558 -0.172482 9.5723 0.517446L0.122776 18.4514C0.0377128 18.6121 -0.0044578 18.7922 0.000372931 18.9742C0.00520366 19.1562 0.0568709 19.3338 0.150341 19.4898C0.24381 19.6457 0.375894 19.7747 0.533723 19.8641C0.691551 19.9535 0.869741 20.0004 1.05093 20H19.95C20.131 20.0004 20.3091 19.9536 20.4668 19.8642C20.6246 19.7749 20.7565 19.646 20.8499 19.4901C20.9433 19.3342 20.9949 19.1567 20.9996 18.9749C21.0044 18.793 20.9622 18.613 20.8771 18.4524L11.4286 0.517446ZM11.5504 16.8352H9.45051V14.7253H11.5504V16.8352ZM9.45051 12.6154V7.34077H11.5504L11.5515 12.6154H9.45051Z",fill:"#FFB200"})}),title:(0,i.__)("Delete Font Variable?","gutenverse"),description:(0,i.__)("You are about to delete one of your Font Variable. If you are assign this variable to blocks, it will lost the typography.","gutenverse"),buttonText:(0,i.__)("Delete","gutenverse"),cancelButtonText:(0,i.__)("Cancel","gutenverse"),cancelButton:!0,onClick:function(){s(null==S?void 0:S.id),v(!1)},onClose:function(){return v(!1)},scheme:"danger"})]})},Ip=function(e){var t=e.value,n=e.updateColor,s=e.deleteColor,l=e.showDelete,c=e.showEditSlug,u=void 0!==c&&c,d=e.checkDoubleSlug,p=e.isDragable,f=y((0,o.useState)(!1),2),h=f[0],g=f[1],v=y((0,o.useState)(!1),2),m=v[0],b=v[1],w=y((0,o.useState)(t),2),x=w[0],j=w[1],O=y((0,o.useState)(!0),2),C=O[0],S=O[1],_=y((0,o.useState)(!1),2),E=_[0],I=_[1],k=(0,o.useRef)(),P=(0,o.useRef)();(0,wn.useEffect)(function(){j(t)},[t]);var N=function(){g(function(e){return!e})};return(0,a.jsxs)("div",{className:In()("gutenverse-control-wrapper","single-variable-color","gutenverse-control-color"),children:[(0,a.jsxs)("div",{className:"single-variable-color-wrapper",children:[p&&(0,a.jsx)(jp,{}),(0,a.jsxs)("div",{className:"single-variable-item-wrapper",children:[(0,a.jsx)("div",{className:"control-color",onClick:function(){return N()},ref:P,children:(0,a.jsx)("div",{style:{backgroundColor:(0,cc.renderColor)(x.color)}})}),(0,a.jsx)("input",{type:"text",value:t.name,onChange:function(e){n(xp(xp({},t),{},{name:e.target.value}))},className:"color-name"})]}),l?(0,a.jsx)("div",{className:"color-delete",onClick:function(){return b(!0)},children:(0,a.jsx)(pd,{size:12})}):(0,a.jsx)("div",{className:"color-delete",onClick:function(){return N()},children:(0,a.jsx)(cd,{size:12})})]}),h?(0,a.jsxs)("div",{className:"gutenverse-variable-detail-wrapper",children:[(0,a.jsxs)("div",{className:"control-color-display",ref:k,children:[(0,a.jsx)("div",{className:"gutenverse-control-heading",children:(0,a.jsx)("h2",{children:(0,i.__)("Color Picker","gutenverse")})}),(0,a.jsx)(bp,{color:x.color,onChange:function(e){j(xp(xp({},t),{},{color:e.rgb}))},onChangeComplete:function(e){n(xp(xp({},t),{},{color:e.rgb}))}})]}),u&&(0,a.jsxs)("div",{className:"gutenverse-variable-slug",children:[(0,a.jsx)("div",{className:"gutenverse-control-heading",children:(0,a.jsx)("h2",{children:(0,i.__)("Color Slug","gutenverse")})}),(0,a.jsx)("div",{className:"variable-input-wrapper",children:C?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"variable-input",children:(0,a.jsx)("input",{type:"text",value:t.id,readOnly:!0})}),(0,a.jsx)("div",{className:"variable-input-lock",onClick:function(){return I(!0)},children:(0,a.jsx)(Kc.Tooltip,{placement:"bottom",text:(0,i.__)("Unlock to edit slug","gutenverse"),children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83464C5.83268 3.53297 7.69768 1.66797 9.99935 1.66797C12.301 1.66797 14.166 3.53297 14.166 5.83464V8.33464H14.4993C15.2327 8.33464 15.8327 8.93464 15.8327 9.66797V15.5013C15.8327 16.6013 14.9327 17.5013 13.8327 17.5013H6.16602C5.06602 17.5013 4.16602 16.6013 4.16602 15.5013V9.66797C4.16602 8.93464 4.76602 8.33464 5.49935 8.33464H5.83268V5.83464ZM12.4993 5.83464V8.33464H7.49935V5.83464C7.49935 4.45297 8.61768 3.33464 9.99935 3.33464C11.381 3.33464 12.4993 4.45297 12.4993 5.83464ZM9.99935 10.2096C9.66796 10.2093 9.34634 10.3218 9.08746 10.5287C8.82858 10.7356 8.64787 11.0244 8.5751 11.3477C8.50232 11.671 8.54183 12.0095 8.68711 12.3073C8.83239 12.6051 9.07478 12.8446 9.37435 12.9863V15.0013C9.37435 15.1671 9.4402 15.326 9.55741 15.4432C9.67462 15.5605 9.83359 15.6263 9.99935 15.6263C10.1651 15.6263 10.3241 15.5605 10.4413 15.4432C10.5585 15.326 10.6243 15.1671 10.6243 15.0013V12.9863C10.9239 12.8446 11.1663 12.6051 11.3116 12.3073C11.4569 12.0095 11.4964 11.671 11.4236 11.3477C11.3508 11.0244 11.1701 10.7356 10.9112 10.5287C10.6524 10.3218 10.3307 10.2093 9.99935 10.2096Z",fill:"#FFB200"})})})})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"variable-input",children:(0,a.jsx)("input",{type:"text",value:t.id,onChange:function(e){return function(e){var o=(0,r.slugify)(e.target.value);o=d(o),n(xp(xp({},t),{},{id:o}))}(e)}})}),(0,a.jsx)("div",{className:"variable-input-lock",onClick:function(){return S(!0)},children:(0,a.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83258C5.83128 4.81744 6.20053 3.8367 6.87108 3.07455C7.54164 2.31239 8.46736 1.82125 9.47442 1.69336C10.4815 1.56547 11.5006 1.80963 12.3404 2.37998C13.1801 2.95033 13.7828 3.80764 14.0352 4.79091C14.0904 5.00497 14.0584 5.2322 13.9461 5.42263C13.8338 5.61305 13.6505 5.75108 13.4364 5.80633C13.2224 5.86158 12.9951 5.82954 12.8047 5.71725C12.6143 5.60497 12.4763 5.42163 12.421 5.20758C12.2697 4.61747 11.9081 4.1029 11.4042 3.76056C10.9003 3.41822 10.2887 3.27165 9.6844 3.3484C9.08005 3.42514 8.52452 3.71992 8.12218 4.17735C7.71983 4.63478 7.49835 5.22338 7.49935 5.83258V8.33258H14.4993C15.2327 8.33258 15.8327 8.93258 15.8327 9.66591V15.4992C15.8327 16.5992 14.9327 17.4992 13.8327 17.4992H6.16602C5.06602 17.4992 4.16602 16.5992 4.16602 15.4992V9.66591C4.16602 8.93258 4.76602 8.33258 5.49935 8.33258H5.83268V5.83258ZM9.99935 10.2076C9.66796 10.2072 9.34634 10.3198 9.08746 10.5266C8.82858 10.7335 8.64787 11.0224 8.5751 11.3457C8.50232 11.669 8.54183 12.0074 8.68711 12.3052C8.83239 12.6031 9.07478 12.8426 9.37435 12.9842V14.9992C9.37435 15.165 9.4402 15.324 9.55741 15.4412C9.67462 15.5584 9.83359 15.6242 9.99935 15.6242C10.1651 15.6242 10.3241 15.5584 10.4413 15.4412C10.5585 15.324 10.6243 15.165 10.6243 14.9992V12.9842C10.9239 12.8426 11.1663 12.6031 11.3116 12.3052C11.4569 12.0074 11.4964 11.669 11.4236 11.3457C11.3508 11.0224 11.1701 10.7335 10.9112 10.5266C10.6524 10.3198 10.3307 10.2072 9.99935 10.2076Z",fill:"#12B76A"})})})]})})]})]}):null,E&&(0,o.createPortal)((0,a.jsx)(Ln,{icon:(0,a.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83268 5.83464C5.83268 3.53297 7.69768 1.66797 9.99935 1.66797C12.301 1.66797 14.166 3.53297 14.166 5.83464V8.33464H14.4993C15.2327 8.33464 15.8327 8.93464 15.8327 9.66797V15.5013C15.8327 16.6013 14.9327 17.5013 13.8327 17.5013H6.16602C5.06602 17.5013 4.16602 16.6013 4.16602 15.5013V9.66797C4.16602 8.93464 4.76602 8.33464 5.49935 8.33464H5.83268V5.83464ZM12.4993 5.83464V8.33464H7.49935V5.83464C7.49935 4.45297 8.61768 3.33464 9.99935 3.33464C11.381 3.33464 12.4993 4.45297 12.4993 5.83464ZM9.99935 10.2096C9.66796 10.2093 9.34634 10.3218 9.08746 10.5287C8.82858 10.7356 8.64787 11.0244 8.5751 11.3477C8.50232 11.671 8.54183 12.0095 8.68711 12.3073C8.83239 12.6051 9.07478 12.8446 9.37435 12.9863V15.0013C9.37435 15.1671 9.4402 15.326 9.55741 15.4432C9.67462 15.5605 9.83359 15.6263 9.99935 15.6263C10.1651 15.6263 10.3241 15.5605 10.4413 15.4432C10.5585 15.326 10.6243 15.1671 10.6243 15.0013V12.9863C10.9239 12.8446 11.1663 12.6051 11.3116 12.3073C11.4569 12.0095 11.4964 11.671 11.4236 11.3477C11.3508 11.0244 11.1701 10.7356 10.9112 10.5287C10.6524 10.3218 10.3307 10.2093 9.99935 10.2096Z",fill:"#FFB200"})}),title:(0,i.__)("Color Slug Edit is Locked","gutenverse"),description:(0,i.__)("Warning: Changing this will cause all assigned blocks to lose their color. Only proceed if you fully understand the consequences.","gutenverse"),buttonText:(0,i.__)("Unlock Slug","gutenverse"),onClick:function(){S(!1),I(!1)},onClose:function(){return I(!1)},scheme:"danger"}),document.getElementById("gutenverse-root")),m&&(0,a.jsx)(Ln,{icon:(0,a.jsx)("svg",{width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M11.4286 0.517446C11.0653 -0.172482 9.93558 -0.172482 9.5723 0.517446L0.122776 18.4514C0.0377128 18.6121 -0.0044578 18.7922 0.000372931 18.9742C0.00520366 19.1562 0.0568709 19.3338 0.150341 19.4898C0.24381 19.6457 0.375894 19.7747 0.533723 19.8641C0.691551 19.9535 0.869741 20.0004 1.05093 20H19.95C20.131 20.0004 20.3091 19.9536 20.4668 19.8642C20.6246 19.7749 20.7565 19.646 20.8499 19.4901C20.9433 19.3342 20.9949 19.1567 20.9996 18.9749C21.0044 18.793 20.9622 18.613 20.8771 18.4524L11.4286 0.517446ZM11.5504 16.8352H9.45051V14.7253H11.5504V16.8352ZM9.45051 12.6154V7.34077H11.5504L11.5515 12.6154H9.45051Z",fill:"#FFB200"})}),title:(0,i.__)("Delete Color Variable?","gutenverse"),description:(0,i.__)("You are about to delete one of your Color Variable. If you are assign this color variable to blocks, it will lost the color.","gutenverse"),buttonText:(0,i.__)("Delete","gutenverse"),cancelButtonText:(0,i.__)("Cancel","gutenverse"),cancelButton:!0,onClick:function(){return s(null==t?void 0:t.id,b(!1))},onClose:function(){return b(!1)},scheme:"danger"})]})};function kp(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 Pp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kp(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var Np=function(e){var t=e.value;return(0,a.jsx)("div",{className:In()("gutenverse-control-wrapper","single-variable-color","gutenverse-control-color"),children:(0,a.jsx)("div",{className:"single-variable-color-wrapper",children:(0,a.jsxs)("div",{className:"single-variable-item-wrapper",style:{width:"100%"},children:[(0,a.jsx)("div",{className:"control-color",children:(0,a.jsx)("div",{style:{backgroundColor:(0,cc.renderColor)(t.color)}})}),(0,a.jsx)("span",{className:"color-name",children:t.name})]})})})},Tp=function(e){var t=e.userConfig,n=e.setUserConfig,s=t.settings.color&&t.settings.color.palette&&t.settings.color.palette.custom,l=(0,o.useRef)(!0),c=y((0,o.useState)(s?s.map(function(e){return{key:mn({length:6,type:"alphanumeric"}),id:e.slug,slug:e.slug,type:"custom",name:e.name,color:(0,cc.hexToRgb)(e.color)}}):[]),2),u=c[0],d=c[1],p=function(){var e,t="".concat((0,i.__)("Variable Color","gutenverse")," #").concat((0,r.getLastSequence)(u)),n=function(e){return/^[a-z0-9]+(-[a-z0-9]+)*$/.test(e)}(e=mn({length:6,type:"alphanumeric"}))?e:e.match(/[A-Z]?[a-z]+|[A-Z]+(?![a-z])|\d+/g).map(function(e){return e.toLowerCase()}).join("-"),o={key:n,id:n,slug:n,type:"custom",name:t,color:(0,cc.hexToRgb)("#fff")};d([].concat(b(u),[o]))};return(0,o.useEffect)(function(){l.current?l.current=!1:n(function(e){var t=dc()(e);return fc()(t,"settings.color.palette.custom",u.map(function(e){return Pp(Pp({},e),{},{color:(0,r.rgbToHex)(e.color)})})),t})},[u]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{style:{marginTop:0},children:(0,i.__)("Custom Colors","gutenverse")}),!Nn()(u)&&(0,a.jsx)(Sp,Pp({items:u,isDragable:!0,onValueChange:function(e){d(e)},updateValue:function(e,t){var n=t.id,r={slug:n,id:n,key:t.key,name:t.name,color:t.color},o=b(u);o[e]=r,d(o)},deleteValue:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=u.filter(function(t,n){return e!==n});d(b(n)),t()},showDelete:!0,showEditSlug:!0},e)),Nn()(u)&&(0,a.jsx)("div",{className:"empty-variable",onClick:function(){return p()},children:(0,i.__)("Empty Variable Color","gutenverse")}),(0,a.jsx)("div",{className:"color-variable-add",children:(0,a.jsx)("div",{onClick:function(){return p()},children:(0,i.__)("Add Color","gutenverse")})})]})},Rp=function(e){var t=e.userConfig,n=(0,r.useSettingFallback)("color.palette.default"),o=!Nn()(n)&&n.map(function(e){return{id:e.slug,type:"default",name:e.name,color:(0,cc.hexToRgb)(e.color)}});return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{children:(0,i.__)("Default Colors","gutenverse")}),!Nn()(o)&&o.map(function(e){return(0,a.jsx)(Np,{value:e,allowChange:!1,userConfig:t},e.slug)})]})},Lp=function(e){var t=e.userConfig,n=e.setUserConfig,s=(0,o.useRef)(!0),l=t.settings.color&&t.settings.color.palette&&t.settings.color.palette.theme,c=y((0,o.useState)(l?l.map(function(e){return{key:mn({length:6,type:"alphanumeric"}),id:e.slug,slug:e.slug,type:"theme",name:e.name,color:(0,cc.hexToRgb)(e.color)}}):[]),2),u=c[0],d=c[1];return(0,o.useEffect)(function(){s.current?s.current=!1:n(function(e){var t=dc()(e);return fc()(t,"settings.color.palette.theme",u.map(function(e){return Pp(Pp({},e),{},{color:(0,r.rgbToHex)(e.color)})})),t})},[u]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{children:(0,i.__)("Theme Colors","gutenverse")}),!Nn()(u)&&(0,a.jsx)(Sp,Pp({items:u,isDragable:!0,onValueChange:function(e){d(e)},updateValue:function(e,t){var n=t.id,r=t.name,o=t.color,i={key:t.key,id:n,slug:n,name:r,color:o},a=b(u);a[e]=i,d(a)},deleteValue:function(){},showDelete:!1},e))]})};const Dp=function(e){var t=e.stage,n=(0,cc.useGlobalStylesConfig)(),r=n.userConfig,o=n.setUserConfig;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"color-variable-wrapper",children:[(0,a.jsx)(Tp,{userConfig:r,setUserConfig:o,stage:t}),(0,a.jsx)("div",{style:{display:"block",height:"10px"}}),(0,a.jsx)(Lp,{userConfig:r,setUserConfig:o,stage:t}),(0,a.jsx)("div",{style:{display:"block",height:"10px"}}),(0,a.jsx)(Rp,{userConfig:r,setUserConfig:o})]})})};function Ap(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 Fp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ap(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ap(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Mp=function(e){var t=e.variableFont,n=e.addFontVar,r=e.editFontVar,o=e.deleteFontVar,l=e.addFont,c=e.setVariableFont;"object"===s(t)&&(t=Object.values(t));var u=function(){var e={id:mn({length:6,type:"alphanumeric"}),name:(0,i.__)("Variable Font","gutenverse"),font:{}};n(e)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ju.PanelTutorial,{style:{margin:"0 0 15px"},title:(0,i.__)("Font Variable","gutenverse"),list:[{title:(0,i.__)("Where it shown?","gutenverse"),description:(0,i.__)("All Font Registered on this panel, will shown on each typography option of block.","gutenverse")},{title:(0,i.__)("What happened if i change this option.","gutenverse"),description:(0,i.__)("By Changing this option, you will also change every block typograhpy assigned to this option.","gutenverse")},{title:(0,i.__)("Save Behaviour","gutenverse"),description:(0,i.__)("Option will automatically saved after you change it.","gutenverse")}]}),Nn()(t)?(0,a.jsxs)("div",{className:"font-variable-wrapper",children:[(0,a.jsx)("div",{className:"empty-variable",onClick:function(){return u()},children:(0,i.__)("Empty Variable Font","gutenverse")}),(0,a.jsx)("div",{className:"font-variable-add",children:(0,a.jsx)("div",{onClick:function(){return u()},children:(0,i.__)("Create Font","gutenverse")})})]}):(0,a.jsxs)("div",{className:"font-variable-wrapper",children:[(0,a.jsx)(Sp,Fp({items:t,isDragable:!0,onValueChange:c,updateValue:function(e,t){r(e,t),e.font&&function(e,t,n){var r=e.weight&&"italic"===e.style?"".concat(e.weight,"italic"):e.weight;(0,yc.injectFont)({controlId:n,addFont:t.addFont,font:e.font,weight:r})}(e.font,{addFont:l},e.id)},deleteValue:function(e){o(e)}},e)),(0,a.jsx)("div",{className:"font-variable-add",children:(0,a.jsx)("div",{onClick:function(){return u()},children:(0,i.__)("Add Font","gutenverse")})})]})]})};function Vp(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 Bp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vp(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const Up=function(e){var n=e.stage,r=e.setStage,s=new URLSearchParams(window.location.search);switch((0,o.useEffect)(function(){var e=s.get("gutenverse-state-global");"open"===s.get("gutenverse-global-sidebar")&&e&&r(e)},[]),n){case"color":return(0,a.jsx)(Dp,Bp(Bp({},e),{},{stage:n}));case"font":return(0,a.jsx)(Mp,Bp(Bp({},e),{},{stage:n}));case"custom_css_locked":return(0,a.jsx)("div",{className:"gutenverse-control-wrapper gutenverse-control-locked gutenverse-control-locked-layout",children:(0,t.applyFilters)("gutenverse.custom.css.locked",(0,a.jsx)(bu,{title:(0,i.__)("Unlock Custom CSS","gutenverse"),description:(0,i.__)("Have a styling you need to fix? You can do your own custom CSS for each page.","gutenverse"),isOpen:!0,permaLink:(0,i.__)("animation-effects/")}),Bp({},e))});case"custom_js_locked":return(0,a.jsx)("div",{className:"gutenverse-control-wrapper gutenverse-control-locked gutenverse-control-locked-layout",children:(0,t.applyFilters)("gutenverse.custom.js.locked",(0,a.jsx)(bu,{title:(0,i.__)("Unlock Custom JS","gutenverse"),description:(0,i.__)("Need to run a specific script? You can do your own custom JS for each page.","gutenverse"),isOpen:!0,permaLink:(0,i.__)("animation-effects/")}),Bp({},e))});default:return(0,a.jsx)(_u,Bp({},e))}};function Gp(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 zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gp(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hp(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 qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hp(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}const $p=(0,pu.compose)((0,u.withSelect)(function(e){var t=e("gutenverse/global-style"),n=t.getVariable,r=t.getGoogleFont,o=t.getCustomFont;return{variable:n(),googleFont:r(),customFont:o()}}),(0,u.withDispatch)(function(e){var t=e("gutenverse/global-style");return{initFontVar:t.initVariableFont,addFontVar:t.addVariableFont,editFontVar:t.editVariableFont,deleteFontVar:t.deleteVariableFont,setGoogleFonts:t.setGoogleFonts,setCustomFonts:t.setCustomFonts,setVariableFont:t.setVariableFont}}),function(e){return function(t){var n=t.variable,i=t.googleFont,s=t.setCustomFonts,l=t.setGoogleFonts,c=(0,cc.useGlobalStylesConfig)().userConfig,u=(window.GutenverseConfig||{}).globalColors,d=(0,o.useCallback)(To()(function(e){return(0,kn.modifyGlobalVariable)(e)},200),[]);return(0,o.useEffect)(function(){cc.signal.globalStyleSignal.dispatch(bc())},[]),(0,o.useEffect)(function(){Nn()(null==n?void 0:n.colors)&&(n.colors={pallete:{theme:(null==u?void 0:u.theme)||[],default:(null==u?void 0:u.default)||[],custom:(null==u?void 0:u.custom)||[]}}),d({variable:n,colors:null==n?void 0:n.colors,fonts:null==n?void 0:n.fonts,googlefont:(0,r.getGoogleFontDatas)(i)}),cc.signal.globalStyleSignal.dispatch(bc())},[n]),(0,o.useEffect)(function(){var e,t,o=dc()(n);o.colors=dc()(null==c||null===(e=c.settings)||void 0===e?void 0:e.color),d({variable:o,colors:null==c||null===(t=c.settings)||void 0===t?void 0:t.color,fonts:null==n?void 0:n.fonts,googlefont:(0,r.getGoogleFontDatas)(i)}),cc.signal.globalStyleSignal.dispatch(bc())},[c]),(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(e,zp(zp({},t),{},{addFont:function(e,t,n){"google"===(null==t?void 0:t.type)?l(e,zp(zp({},t),{},{weight:n})):"custom_font_pro"===(null==t?void 0:t.type)&&s(e,zp(zp({},t),{},{weight:n}))}}))})}})(function(e){var t=e.variable,n=e.googleFont,i=y((0,o.useState)(),2),s=i[0],l=i[1];(0,o.useEffect)(function(){var e=cc.signal?cc.signal.styleDrawerSignal.add(c):null;return function(){e&&e.detach()}});var c=function(e){l(e)},u=(0,r.isNotEmpty)(O.PluginSidebar)?O.PluginSidebar:Xt.PluginSidebar;return(0,a.jsx)(u,{name:"gutenverse-sidebar",title:(0,a.jsxs)("div",{className:"global-style-extended",children:[s&&(0,a.jsx)(gu,{size:20,className:"back-button",onClick:function(){return l("")}}),(0,a.jsx)("span",{children:"Global Style Extended"})]}),icon:(0,a.jsxs)("div",{className:"gutenverse-icon",children:[(0,a.jsx)("span",{className:"logo-color",children:(0,a.jsx)(Qt.LogoColorSVG,{})}),(0,a.jsx)("span",{className:"logo-white",children:(0,a.jsx)(Qt.LogoWhiteSVG,{})})]}),children:(0,a.jsxs)(Kc.PanelBody,{children:[(0,a.jsx)(yp,{}),(0,a.jsx)(Up,qp({},qp(qp({stage:s,setStage:l},e),{},{variableFont:t.fonts,googleFont:n})))]})})});(0,Wt.registerPlugin)("gutenverse-global-style",{render:function(){return(0,a.jsx)($p,{})}});var Wp=function(e){var t=e.name,n=e.isValid,r=e.validationIssues;return!!t&&!(n||null==r||!r.length)},Xp=function(e,t){return e.map(function(e){var n,r,o,i,a,s=e;if((0,Kt.isReusableBlock)((0,Kt.getBlockType)(e.name))){var l,c=e.attributes.ref,d=(0,u.select)("core").getEntityRecords("postType","wp_block",{include:[c]}),p=(r=d?(0,Kt.parse)(null==d||null===(l=d[0])||void 0===l||null===(l=l.content)||void 0===l?void 0:l.raw):[],o=b(r),i=!1,a=function(e){e.forEach(function(e){var t;if(Wp(e)){i=!0;var n=Kp(e);for(var r in n)e[r]=n[r]}null!==(t=e.innerBlocks)&&void 0!==t&&t.length&&a(e.innerBlocks)})},a(o),[o,i]),f=y(p,2),h=f[0];if(f[1])return t(),Yp(s),{blocks:h,isReusable:!0,ref:c}}if(s.innerBlocks&&null!==(n=s.innerBlocks)&&void 0!==n&&n.length){var g=Xp(s.innerBlocks,t);g.some(function(e){return e.recovered})&&(s.innerBlocks=g,s.replacedClientId=s.clientId,s.recovered=!0)}if(Wp(s)){t();var v=Kp(s);return v.replacedClientId=s.clientId,v.recovered=!0,Yp(s),v}return s})},Kp=function(e){var t=e.name,n=e.attributes,r=e.innerBlocks;return(0,Kt.createBlock)(t,n,r)},Yp=function(e){var t="%c"+(0,i.__)("Notice: ","auto-block-recovery")+e.name+(0,i.__)(" was auto recovery.","auto-block-recovery")+"\n"+(0,i.__)("Please check this page in preview and update this page.","auto-block-recovery");console.log(t,"width: 100%; padding: 6px 12px; background-color: #fef8ee; color: #1e1e1e;")},Jp=To()(function(){var e;if(null!==(e=window)&&void 0!==e&&null!==(e=e.GutenverseConfig)&&void 0!==e&&e.autoBlockRecovery){var t=0;Xp((0,u.select)("core/block-editor").getBlocks(),function(){t++}).forEach(function(e){e.isReusable&&e.ref&&(0,u.dispatch)("core").editEntityRecord("postType","wp_block",e.ref,{content:(0,Kt.serialize)(e.blocks)}).then(),e.recovered&&e.replacedClientId&&(0,u.dispatch)("core/block-editor").replaceBlock(e.replacedClientId,e)}),t&&(0,u.dispatch)("core/notices").createNotice("info",(0,i.sprintf)((0,i.__)("%s Block%s Recovered","gutenverse"),t,1===t?"":"s"),{type:"snackbar",isDismissible:!0})}},1e3);(0,Wt.registerPlugin)("gutenverse-auto-recovery",{render:function(){var e=y((0,u.useSelect)(function(e){return[e("core/editor").getEditedPostContent(),e("core/editor").getCurrentPostType()]}),2),t=e[0],n=e[1];(0,o.useEffect)(function(){Jp()},[t,n])}});var Zp=["plugin","plugins"],Qp=["pluginEcosystem"];function ef(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function i(n,r,o,i){var l=r&&r.prototype instanceof s?r:s,c=Object.create(l.prototype);return tf(c,"_invoke",function(n,r,o){var i,s,l,c=0,u=o||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,s=0,l=e,p.n=n,a}};function f(n,r){for(s=n,l=r,t=0;!d&&c&&!o&&t<u.length;t++){var o,i=u[t],f=p.p,h=i[2];n>3?(o=h===r)&&(l=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=e):i[0]<=f&&((o=n<2&&f<i[1])?(s=0,p.v=r,p.n=i[1]):f<h&&(o=n<3||i[0]>r||r>h)&&(i[4]=n,i[5]=r,p.n=h,s=0))}if(o||n>1)return a;throw d=!0,r}return function(o,u,h){if(c>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,h),s=u,l=h;(t=s<2?e:l)||!d;){i||(s?s<3?(s>1&&(p.n=-1),f(s,l)):p.n=l:p.v=l);try{if(c=2,i){if(s||(o="next"),t=i[o]){if(!(t=t.call(i,l)))throw TypeError("iterator result is not an object");if(!t.done)return t;l=t.value,s<2&&(s=0)}else 1===s&&(t=i.return)&&t.call(i),s<2&&(l=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=e}else if((t=(d=p.n<0)?l:n.call(r,p))!==a)break}catch(t){i=e,s=1,l=t}finally{c=1}}return{value:t,done:d}}}(n,o,i),!0),c}var a={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][r]?t(t([][r]())):(tf(t={},r,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,tf(e,o,"GeneratorFunction")),e.prototype=Object.create(d),e}return l.prototype=c,tf(d,"constructor",c),tf(c,"constructor",l),l.displayName="GeneratorFunction",tf(c,o,"GeneratorFunction"),tf(d),tf(d,o,"Generator"),tf(d,r,function(){return this}),tf(d,"toString",function(){return"[object Generator]"}),(ef=function(){return{w:i,m:p}})()}function tf(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}tf=function(e,t,n,r){function i(t,n){tf(e,t,function(e){return this._invoke(t,n,e)})}t?o?o(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},tf(e,t,n,r)}function nf(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 rf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nf(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var of=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||(t=(0,u.select)("core/block-editor").getBlocks());var n=[];return t.forEach(function(t){if("core/missing"===t.name&&t.attributes&&t.attributes.originalName){var r=t.attributes.originalName;e.some(function(e){return r.startsWith(e)})&&!n.includes(r)&&(console.log("Unsupported block found in content: ".concat(r)),n.push(r))}if(t.innerBlocks&&t.innerBlocks.length>0){var o=of(e,t.innerBlocks);n=[].concat(b(n),b(o))}}),n},af=function(e){var t,n=e.missingBlock,r=y((0,o.useState)(!0),2),s=r[0],l=r[1],u=y((0,o.useState)(!1),2),d=u[0],p=u[1],f=y((0,o.useState)(!1),2),h=f[0],g=f[1],v=y((0,o.useState)(!1),2),m=v[0],w=v[1],j=y((0,o.useState)(null===(t=window.GutenverseConfig)||void 0===t?void 0:t.plugins),2),O=j[0],C=j[1],S=y((0,o.useState)(!1),2),_=S[0],E=S[1];(0,o.useEffect)(function(){window.GutenverseConfig.missingBlocksWarn=!d},[d]);var I=function(e){E(!0),C(function(t){return t[e]?rf(rf({},t),{},c({},e,rf(rf({},t[e]),{},{active:!0}))):t})},k=function(e){var t=e.slug,n=e.name,r=e.path,o=e.version;E(!0),C(function(e){return rf(rf({},e),{},c({},t,{active:!0,name:n,path:r,version:o}))})};return(0,o.useEffect)(function(){if(h){var e=new Set;n.forEach(function(t){var n=t.split("/"),r=n[0],o=n[1].split("-")[0],i="".concat(r,"-").concat(o);e.add(i)});var t=h.filter(function(t){return e.has(t.slug)}),r=new Set(t.map(function(e){return e.slug}));if(b(e).some(function(e){return!r.has(e)})){var o=h.find(function(e){return"gutenverse"===e.slug});o&&t.push(o)}w({plugins:O,pluginEcosystem:t,installPlugin:k,activatePlugin:I})}else{var i=function(){var e=x(ef().m(function e(t){var n;return ef().w(function(e){for(;;)switch(e.n){case 0:return e.n=1,(0,kn.fetchLibraryData)(t);case 1:n=e.v,g(null==n?void 0:n["plugin-ecosystem"]);case 2:return e.a(2)}},e)}));return function(t){return e.apply(this,arguments)}}();i(!1)}},[s,h,O]),s&&m&&m.pluginEcosystem.length?(0,a.jsx)("div",{className:"gutenverse-editor-warn",children:(0,a.jsxs)("div",{className:"gutenverse-warn-wrapper",children:[(0,a.jsx)("div",{className:"gutenverse-warn-header",children:(0,a.jsx)("span",{children:(0,i.__)("Missing Gutenverse Block","gutenverse")})}),(0,a.jsx)("div",{className:"gutenverse-warn-description",children:(0,i.__)("Some blocks are missing. Please check if any blocks are disabled or if plugins from the corresponding Gutenverse plugin need to be installed and activated.","gutenverse")}),(0,a.jsx)("div",{className:"gutenverse-warn-plugin-list",children:(0,a.jsx)(lf,rf({},m))}),_?(0,a.jsxs)("div",{className:"gutenverse-warn-refresh-notice",children:[(0,a.jsx)("div",{className:"warn-icon",children:(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",fill:"none",children:(0,a.jsx)("path",{fill:"#FFC908",d:"M7.5 0a7.501 7.501 0 0 0 0 15 7.5 7.5 0 1 0 0-15m0 3.327a1.27 1.27 0 1 1 0 2.54 1.27 1.27 0 0 1 0-2.54m1.694 7.681c0 .2-.163.363-.363.363H6.169a.363.363 0 0 1-.363-.363v-.726c0-.2.163-.363.363-.363h.363V7.984H6.17a.363.363 0 0 1-.363-.363v-.726c0-.2.163-.363.363-.363h1.936c.2 0 .363.163.363.363V9.92h.363c.2 0 .363.163.363.363z"})})}),(0,a.jsx)("span",{children:(0,i.__)("Please refresh this page after install & update the plugin","gutenverse")})]}):"",(0,a.jsxs)("div",{className:"gutenverse-warn-footer",children:[(0,a.jsxs)("div",{className:"warn-checkbox",onClick:function(){p(!d)},children:[d?(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:"#3B57F7"}),(0,a.jsx)("path",{d:"M12 5L6.5 10.5L4 8",stroke:"#3B57F7",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})]}):(0,a.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",fill:"white"}),(0,a.jsx)("rect",{x:"0.5",y:"0.5",width:"15",height:"15",rx:"1.5",stroke:"#BDBEBF"})]}),(0,i.__)("Do not show this again","gutenverse")]}),(0,a.jsx)("button",{onClick:function(){l(!1),d&&Yn()({path:"gutenverse-client/v1/settings/modify",method:"POST",data:{setting:{editor_settings:{missing_block_warn:!1}}}}),_&&window.location.reload()},children:d?(0,i.__)("OK","gutenverse"):(0,i.__)("Dismiss","gutenverse")})]})]})}):null},sf=function(e){var t=e.plugin,n=e.plugins,r=Ao(e,Zp),s=t.slug,l=t.name,c=t.version,u=t.icons,d=(t.description,t.incoming),p=t.icon,f=t.url,h=t.host,g=y((0,o.useState)(""),2),v=g[0],m=g[1],b=y((0,o.useState)(!1),2),w=b[0],x=b[1],j=y((0,o.useState)(!0),2),O=j[0],C=j[1],S=n[s],_=null,E=function(e){window.location.href=e},I=function(){x(!0),m((0,i.__)("Installing Plugin","gutenverse")),Yn()({path:"wp/v2/plugins",method:"POST",data:{slug:s,status:"active"}}).then(function(e){var t=e.version,n=e.name,o=e.plugin;r.installPlugin({slug:s,name:n,path:o,version:t}),x(!1)}).then(function(){}).catch(function(){alert("Error during installing plugin")}).finally(function(){x(!1),m("")})},k=function(){x(!0),m((0,i.__)("Disabling Plugin","gutenverse")),S&&Yn()({path:"wp/v2/plugins/plugin?plugin=".concat(null==S?void 0:S.path),method:"POST",data:{status:"inactive"}}).then(function(){return m((0,i.__)("Deleting Plugin","gutenverse")),Yn()({path:"wp/v2/plugins/plugin?plugin=".concat(null==S?void 0:S.path),method:"DELETE"})}).then(function(){I()})},P=function(e){e?k():(x(!0),m((0,i.__)("Activating Plugin","gutenverse")),Yn()({path:"wp/v2/plugins/plugin?plugin=".concat(null==S?void 0:S.path),method:"POST",data:{status:"active"}}).then(function(e){var t=e.plugin.split("/");r.activatePlugin(t[0]),x(!1),m("")}).catch(function(){O&&(C(!1),P(!1))}))},N=In()("install-action",{loading:w}),T=w&&(0,a.jsx)("div",{className:"rotating",style:{display:"flex"},children:(0,a.jsx)(_n,{size:20})});if(S){var R=!Nn()(c)&&!Rn().gte(S.version,c||"0.0.0"),L=R?(0,i.__)("Update & Activate Plugin","gutenverse"):(0,i.__)("Activate Plugin","gutenverse");!1===S.active?_=(0,a.jsxs)("div",{className:"".concat(N," update"),onClick:function(){P(R),C(!0)},children:[T,w?v:L]}):(R&&(_=(0,a.jsxs)("div",{className:"".concat(N," update"),onClick:function(){return"server"===h?E(f):k()},children:[T,w?v:(0,i.__)("Update Plugin","gutenverse")]})),_=(0,a.jsxs)("div",{className:"".concat(N," installed"),children:[T,w?v:(0,i.__)("Activated","gutenverse")]}))}else _=S||0!=d?(0,a.jsxs)("div",{className:"".concat(N," installed"),children:[T,w?v:(0,i.__)("Release Soon","gutenverse")]}):(0,a.jsxs)("div",{className:N,onClick:function(){return"server"===h?E(f):I()},children:[T,w?v:(0,i.__)("Download Plugin","gutenverse")]});return(0,a.jsxs)("div",{className:"plugin-item",children:["1"===d&&(0,a.jsx)("div",{className:"ribbon",children:"SOON"}),p?(0,a.jsxs)("div",{className:"icon-wrapper",children:[(0,a.jsx)("img",{className:"icon-plugin",src:p[0]})," "]}):u?(0,a.jsx)("div",{className:"icon-wrapper",children:(0,a.jsx)("img",{className:"icon-plugin",src:u})}):(0,a.jsx)("div",{className:"icon-wrapper",children:(0,a.jsx)(Qt.LogoIconGutenverseSVG,{className:"icon-plugin"})}),(0,a.jsxs)("div",{className:"details",children:[(0,a.jsx)("h2",{className:"plugin-title",children:l.includes("Gutenverse")?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{children:(0,i.__)("Gutenverse","gutenverse")})," ",l.split("Gutenverse").join("")]}):l}),c?(0,a.jsxs)("p",{className:"plugin-version",children:[(0,i.__)("Version ","gutenverse"),c]}):(0,a.jsx)("p",{className:"plugin-version",children:(0,i.__)("Coming Soon","gutenverse")})]}),(0,a.jsx)("div",{className:"plugin-actions",children:_})]},s)},lf=function(e){var t=e.pluginEcosystem,n=Ao(e,Qp);return t&&t.map(function(e,t){return(0,a.jsx)(sf,rf({plugin:e},n),t)})};(0,Wt.registerPlugin)("gutenverse-warn-missing",{render:function(){var e=y((0,o.useState)(null),2),t=e[0],n=e[1],r=y((0,u.useSelect)(function(e){return[e("core/editor").getEditedPostContent(),e("core/editor").getCurrentPostType()]}),2),i=r[0],s=r[1];return(0,o.useEffect)(function(){n(function(){var e;if(null!==(e=window)&&void 0!==e&&null!==(e=e.GutenverseConfig)&&void 0!==e&&e.missingBlocksWarn){var t=of(["gutenverse"]);if(t&&t.length>0)return(0,a.jsx)("div",{id:"gutenverse-warn",children:(0,a.jsx)(af,{missingBlock:t})})}return null}())},[i,s]),(0,a.jsx)(a.Fragment,{children:(0,o.createPortal)(t,document.getElementById("gutenverse-error"))})}})})()})();

Hry