Current path: home/webdevt/www/bricolagevincennes.fr/wp-content/plugins/extendify/public/build/
?? Go up: /home/webdevt/www/bricolagevincennes.fr/wp-content/plugins/extendify/public
!function(){var e,t,n={184:function(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];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var s=o.apply(null,n);s&&e.push(s)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},960:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(n=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===n.Tag||e.type===n.Script||e.type===n.Style},t.Root=n.Root,t.Text=n.Text,t.Directive=n.Directive,t.Comment=n.Comment,t.Script=n.Script,t.Style=n.Style,t.Tag=n.Tag,t.CDATA=n.CDATA,t.Doctype=n.Doctype},915:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=n(960),s=n(790);o(n(790),t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,n){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=a),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:a,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new s.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?i.ElementType.Tag:void 0,r=new s.Element(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new s.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new s.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new s.Text(""),t=new s.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new s.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},790:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var s=n(960),a=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),E(this,e)},e}();t.Node=a;var l=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(a);t.DataNode=l;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=u;var d=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=s.ElementType.Directive,r}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var m=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(a);t.NodeWithChildren=m;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(m);t.CDATA=p;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=s.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(m);t.Document=f;var h=function(e){function t(t,n,r,o){void 0===r&&(r=[]),void 0===o&&(o="script"===t?s.ElementType.Script:"style"===t?s.ElementType.Style:s.ElementType.Tag);var i=e.call(this,r)||this;return i.name=t,i.attribs=n,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(m);function g(e){return(0,s.isTag)(e)}function y(e){return e.type===s.ElementType.CDATA}function v(e){return e.type===s.ElementType.Text}function b(e){return e.type===s.ElementType.Comment}function x(e){return e.type===s.ElementType.Directive}function w(e){return e.type===s.ElementType.Root}function E(e,t){var n;if(void 0===t&&(t=!1),v(e))n=new c(e.data);else if(b(e))n=new u(e.data);else if(g(e)){var r=t?C(e.children):[],o=new h(e.name,i({},e.attribs),r);r.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),n=o}else if(y(e)){r=t?C(e.children):[];var s=new p(r);r.forEach((function(e){return e.parent=s})),n=s}else if(w(e)){r=t?C(e.children):[];var a=new f(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!x(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),n=l}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function C(e){for(var t=e.map((function(e){return E(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}t.Element=h,t.isTag=g,t.isCDATA=y,t.isText=v,t.isComment=b,t.isDirective=x,t.isDocument=w,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=E},885:function(e,t){t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"]},276:function(e){var t="html",n="head",r="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,s=/<body[^]*>/i,a=function(){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},l=function(){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},c="object"==typeof window&&window.DOMParser;if("function"==typeof c){var u=new c;a=l=function(e,t){return t&&(e="<"+t+">"+e+"</"+t+">"),u.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var d=document.implementation.createHTMLDocument();a=function(e,t){return t?(d.documentElement.querySelector(t).innerHTML=e,d):(d.documentElement.innerHTML=e,d)}}var m,p="object"==typeof document?document.createElement("template"):{};p.content&&(m=function(e){return p.innerHTML=e,p.content.childNodes}),e.exports=function(e){var c,u,d,p,f=e.match(o);switch(f&&f[1]&&(c=f[1].toLowerCase()),c){case t:return u=l(e),i.test(e)||(d=u.querySelector(n))&&d.parentNode.removeChild(d),s.test(e)||(d=u.querySelector(r))&&d.parentNode.removeChild(d),u.querySelectorAll(t);case n:case r:return p=(u=a(e)).querySelectorAll(c),s.test(e)&&i.test(e)?p[0].parentNode.childNodes:p;default:return m?m(e):(d=a(e,r).querySelector(r)).childNodes}}},152:function(e,t,n){var r=n(276),o=n(507).formatDOM,i=/<(![a-zA-Z\s]+)>/;e.exports=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(""===e)return[];var t,n=e.match(i);return n&&n[1]&&(t=n[1]),o(r(e),null,t)}},507:function(e,t,n){for(var r,o=n(915),i=n(885).CASE_SENSITIVE_TAG_NAMES,s=o.Comment,a=o.Element,l=o.ProcessingInstruction,c=o.Text,u={},d=0,m=i.length;d<m;d++)r=i[d],u[r.toLowerCase()]=r;function p(e){for(var t,n={},r=0,o=e.length;r<o;r++)n[(t=e[r]).name]=t.value;return n}function f(e){return function(e){return u[e]}(e=e.toLowerCase())||e}t.formatAttributes=p,t.formatDOM=function e(t,n,r){n=n||null;for(var o,i=[],u=0,d=t.length;u<d;u++){var m,h=t[u];switch(h.nodeType){case 1:o=f(h.nodeName),(m=new a(o,p(h.attributes))).children=e("template"===o?h.content.childNodes:h.childNodes,m);break;case 3:m=new c(h.nodeValue);break;case 8:m=new s(h.nodeValue);break;default:continue}var g=i[u-1]||null;g&&(g.next=m),m.parent=n,m.prev=g,m.next=null,i.push(m)}return r&&((m=new l(r.substring(0,r.indexOf(" ")).toLowerCase(),r)).next=i[0]||null,m.parent=n,i.unshift(m),i[1]&&(i[1].prev=i[0])),i}},488:function(e,t,n){var r=n(915),o=n(152),i=n(484),s=n(670);o="function"==typeof o.default?o.default:o;var a={lowerCaseAttributeNames:!1};function l(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:s(o(e,(t=t||{}).htmlparser2||a),t)}l.domToReact=s,l.htmlToDOM=o,l.attributesToProps=i,l.Comment=r.Comment,l.Element=r.Element,l.ProcessingInstruction=r.ProcessingInstruction,l.Text=r.Text,e.exports=l,l.default=l},484:function(e,t,n){var r=n(726),o=n(606),i=["checked","value"],s=["input","select","textarea"],a={reset:!0,submit:!0};function l(e){return r.possibleStandardNames[e]}e.exports=function(e,t){var n,c,u,d,m,p={},f=(e=e||{}).type&&a[e.type];for(n in e)if(u=e[n],r.isCustomAttribute(n))p[n]=u;else if(d=l(c=n.toLowerCase()))switch(m=r.getPropertyInfo(d),-1===i.indexOf(d)||-1===s.indexOf(t)||f||(d=l("default"+c)),p[d]=u,m&&m.type){case r.BOOLEAN:p[d]=!0;break;case r.OVERLOADED_BOOLEAN:""===u&&(p[d]=!0)}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(p[n]=u);return o.setStyleProp(e.style,p),p}},670:function(e,t,n){var r=n(196),o=n(484),i=n(606),s=i.setStyleProp,a=i.canTextBeChildOfNode;function l(e){return i.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&i.isCustomComponent(e.name,e.attribs)}e.exports=function e(t,n){for(var c,u,d,m,p,f=(n=n||{}).library||r,h=f.cloneElement,g=f.createElement,y=f.isValidElement,v=[],b="function"==typeof n.replace,x=n.transform||i.returnFirstArg,w=n.trim,E=0,C=t.length;E<C;E++)if(c=t[E],b&&y(d=n.replace(c)))C>1&&(d=h(d,{key:d.key||E})),v.push(x(d,c,E));else if("text"!==c.type){switch(m=c.attribs,l(c)?s(m.style,m):m&&(m=o(m,c.name)),p=null,c.type){case"script":case"style":c.children[0]&&(m.dangerouslySetInnerHTML={__html:c.children[0].data});break;case"tag":"textarea"===c.name&&c.children[0]?m.defaultValue=c.children[0].data:c.children&&c.children.length&&(p=e(c.children,n));break;default:continue}C>1&&(m.key=E),v.push(x(g(c.name,m,p),c,E))}else{if((u=!c.data.trim().length)&&c.parent&&!a(c.parent))continue;if(w&&u)continue;v.push(x(c.data,c,E))}return 1===v.length?v[0]:v}},606:function(e,t,n){var r=n(196),o=n(476).default,i=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0},a=r.version.split(".")[0]>=16,l=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);e.exports={PRESERVE_CUSTOM_ATTRIBUTES:a,ELEMENTS_WITH_NO_TEXT_CHILDREN:l,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n="function"==typeof t,r={},o={};for(var i in e){var s=e[i];n&&(r=t(i,s))&&2===r.length?o[r[0]]=r[1]:"string"==typeof s&&(o[s]=i)}return o},isCustomComponent:function(e,t){return-1===e.indexOf("-")?t&&"string"==typeof t.is:!i.has(e)},setStyleProp:function(e,t){if(null!=e)try{t.style=o(e,s)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!l.has(e.name)},returnFirstArg:function(e){return e}}},370:function(e){var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,l=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(l,c):c}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,m=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");m=~r?e.length-r:m+e.length}function f(){var e={line:d,column:m};return function(t){return t.position=new h(e),b(),t}}function h(e){this.start=e,this.end={line:d,column:m},this.source=l.source}h.prototype.content=e;var g=[];function y(t){var n=new Error(l.source+":"+d+":"+m+": "+t);if(n.reason=t,n.filename=l.source,n.line=d,n.column=m,n.source=e,!l.silent)throw n;g.push(n)}function v(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){v(r)}function x(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=f();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;c!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,c===e.charAt(n-1))return y("End of comment missing");var r=e.slice(2,n-2);return m+=2,p(r),e=e.slice(n),m+=2,t({type:"comment",comment:r})}}function E(){var e=f(),n=v(o);if(n){if(w(),!v(i))return y("property missing ':'");var r=v(s),l=e({type:"declaration",property:u(n[0].replace(t,c)),value:r?u(r[0].replace(t,c)):c});return v(a),l}}return b(),function(){var e,t=[];for(x(t);e=E();)!1!==e&&(t.push(e),x(t));return t}()}},726:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t,n,r,o,i,s){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}Object.defineProperty(t,"__esModule",{value:!0});var i={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){i[e]=new o(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t,n,s=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],_n=!0,s=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);_n=!0);}catch(e){s=!0,o=e}finally{try{_n||null==n.return||n.return()}finally{if(s)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(t,n)||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.")}()),a=s[0],l=s[1];i[a]=new o(a,1,!1,l,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){i[e]=new o(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){i[e]=new o(e,2,!1,e,null,!1,!1)})),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach((function(e){i[e]=new o(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){i[e]=new o(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){i[e]=new o(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){i[e]=new o(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){i[e]=new o(e,5,!1,e.toLowerCase(),null,!1,!1)}));var s=/[\-\:]([a-z])/g,a=function(e){return e[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach((function(e){var t=e.replace(s,a);i[t]=new o(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(s,a);i[t]=new o(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(s,a);i[t]=new o(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!1,!1)})),i.xlinkHref=new o("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){i[e]=new o(e,1,!1,e.toLowerCase(),null,!0,!0)}));var l=n(229),c=l.CAMELCASE,u=l.SAME,d=l.possibleStandardNames,m=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),p=Object.keys(d).reduce((function(e,t){var n=d[t];return n===u?e[t]=t:n===c?e[t.toLowerCase()]=t:e[t]=n,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return i.hasOwnProperty(e)?i[e]:null},t.isCustomAttribute=m,t.possibleStandardNames=p},229:function(e,t){t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},476:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(848)),i=n(678);t.default=function(e,t){var n={};return e&&"string"==typeof e?((0,o.default)(e,(function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)})),n):n}},678:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9-]+$/,r=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||n.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(s,l):e.replace(i,l)).replace(r,a))}},848:function(e,t,n){var r=n(370);function o(e,t){var n,o=null;if(!e||"string"!=typeof e)return o;for(var i,s,a=r(e),l="function"==typeof t,c=0,u=a.length;c<u;c++)i=(n=a[c]).property,s=n.value,l?t(i,s,n):s&&(o||(o={}),o[i]=s);return o}e.exports=o,e.exports.default=o},250:function(e,t,n){"use strict";var r=n(196),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,s=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,u=r[1];return a((function(){o.value=n,o.getSnapshot=t,c(o)&&u({inst:o})}),[e,n,t]),s((function(){return c(o)&&u({inst:o}),e((function(){c(o)&&u({inst:o})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},139:function(e,t,n){"use strict";var r=n(196),o=n(688),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},s=o.useSyncExternalStore,a=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=a(null);if(null===d.current){var m={hasValue:!1,value:null};d.current=m}else m=d.current;d=c((function(){function e(e){if(!l){if(l=!0,s=e,e=r(e),void 0!==o&&m.hasValue){var t=m.value;if(o(t,e))return a=t}return a=e}if(t=a,i(s,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(s=e,a=n)}var s,a,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,o]);var p=s(e,d[0],d[1]);return l((function(){m.hasValue=!0,m.value=p}),[p]),u(p),p}},688:function(e,t,n){"use strict";e.exports=n(250)},798:function(e,t,n){"use strict";e.exports=n(139)},196:function(e){"use strict";e.exports=window.React}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((function(e){s[e]=function(){return n[e]}}));return s.default=function(){return n},o.d(i,s),i},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){"use strict";var e=window.wp.element,t=window.wp.i18n,n=window.wp.components,r=window.wp.hooks,i=window.wp.plugins,s=o(196),a=o.t(s,2),l=o(688);const c=()=>{},u=c(),d=Object,m=e=>e===u,p=e=>"function"==typeof e,f=(e,t)=>({...e,...t}),h=new WeakMap;let g=0;const y=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(d(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=h.get(e),o)return o;if(o=++g+"~",h.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=y(e[i])+",";h.set(e,o)}if(n==d){o="#";const t=d.keys(e).sort();for(;!m(i=t.pop());)m(e[i])||(o+=i+":"+y(e[i])+",");h.set(e,o)}}return o},v=new WeakMap,b={},x={},w="undefined",E=typeof window!=w,C=typeof document!=w,S=(e,t)=>{const n=v.get(e);return[()=>!m(t)&&e.get(t)||b,r=>{if(!m(t)){const o=e.get(t);t in x||(x[t]=o),n[5](t,f(o,r),o||b)}},n[6],()=>!m(t)&&t in x?x[t]:!m(t)&&e.get(t)||b]};let T=!0;const[k,_]=E&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[c,c],A={isOnline:()=>T,isVisible:()=>{const e=C&&document.visibilityState;return m(e)||"hidden"!==e}},P={initFocus:e=>(C&&document.addEventListener("visibilitychange",e),k("focus",e),()=>{C&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{const t=()=>{T=!0,e()},n=()=>{T=!1};return k("online",t),k("offline",n),()=>{_("online",t),_("offline",n)}}},L=!s.useId,N=!E||"Deno"in window,D=N?s.useEffect:s.useLayoutEffect,O="undefined"!=typeof navigator&&navigator.connection,R=!N&&O&&(["slow-2g","2g"].includes(O.effectiveType)||O.saveData),M=e=>{if(p(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?y(e):"",t]};let F=0;const j=()=>++F;async function V(...e){const[t,n,r,o]=e,i=f({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{});let s=i.populateCache;const a=i.rollbackOnError;let l=i.optimisticData;const c=!1!==i.revalidate,d=i.throwOnError;if(p(n)){const e=n,r=[],o=t.keys();for(const n of o)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&r.push(n);return Promise.all(r.map(h))}return h(n);async function h(n){const[o]=M(n);if(!o)return;const[i,f]=S(t,o),[h,g,y,b]=v.get(t),x=()=>{const e=h[o];return c&&(delete y[o],delete b[o],e&&e[0])?e[0](2).then((()=>i().data)):i().data};if(e.length<3)return x();let w,E=r;const C=j();g[o]=[C,0];const T=!m(l),k=i(),_=k.data,A=k._c,P=m(A)?_:A;if(T&&(l=p(l)?l(P,_):l,f({data:l,_c:P})),p(E))try{E=E(P)}catch(e){w=e}if(E&&p(E.then)){if(E=await E.catch((e=>{w=e})),C!==g[o][0]){if(w)throw w;return E}w&&T&&(e=>"function"==typeof a?a(e):!1!==a)(w)&&(s=!0,f({data:P,_c:u}))}if(s&&!w)if(p(s)){const e=s(E,P);f({data:e,error:u,_c:u})}else f({data:E,error:u,_c:u});if(g[o][1]=j(),Promise.resolve(x()).then((()=>{f({_c:u})})),!w)return E;if(d)throw w}}const I=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},B=(e,t)=>{if(!v.has(e)){const n=f(P,t),r={},o=V.bind(u,e);let i=c;const s={},a=(e,t)=>{const n=s[e]||[];return s[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},l=(t,n,r)=>{e.set(t,n);const o=s[t];if(o)for(const e of o)e(n,r)},d=()=>{if(!v.has(e)&&(v.set(e,[r,{},{},{},o,l,a]),!N)){const t=n.initFocus(setTimeout.bind(u,I.bind(u,r,0))),o=n.initReconnect(setTimeout.bind(u,I.bind(u,r,1)));i=()=>{t&&t(),o&&o(),v.delete(e)}}};return d(),[e,o,d,i]}return[e,v.get(e)[4]]},[U,H]=B(new Map),z=f({onLoadingSlow:c,onSuccess:c,onError:c,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!m(o)&&i>o||setTimeout(n,s,r)},onDiscarded:c,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:R?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:R?5e3:3e3,compare:(e,t)=>y(e)==y(t),isPaused:()=>!1,cache:U,mutate:H,fallback:{}},A),q=(e,t)=>{const n=f(e,t);if(t){const{use:r,fallback:o}=e,{use:i,fallback:s}=t;r&&i&&(n.use=r.concat(i)),o&&s&&(n.fallback=f(o,s))}return n},W=(0,s.createContext)({}),$=E&&window.__SWR_DEVTOOLS_USE__,Z=$?window.__SWR_DEVTOOLS_USE__:[],G=e=>p(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],X=Z.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=M(t),[,,,o]=v.get(U);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return m(i)?n(...e):(delete o[r],i)}),r)));$&&(window.__SWR_DEVTOOLS_REACT__=s);const Y=s.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),K={dedupe:!0},J=d.defineProperty((e=>{const{value:t}=e,n=(0,s.useContext)(W),r=p(t),o=(0,s.useMemo)((()=>r?t(n):t),[r,n,t]),i=(0,s.useMemo)((()=>r?o:q(n,o)),[r,n,o]),a=o&&o.provider,l=(0,s.useRef)(u);a&&!l.current&&(l.current=B(a(i.cache||U),o));const c=l.current;return c&&(i.cache=c[0],i.mutate=c[1]),D((()=>{if(c)return c[2]&&c[2](),c[3]}),[]),(0,s.createElement)(W.Provider,f(e,{value:i}))}),"defaultValue",{value:z}),Q=(ee=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:a,revalidateOnMount:c,revalidateIfStale:d,refreshInterval:h,refreshWhenHidden:g,refreshWhenOffline:y,keepPreviousData:b}=n,[x,C,T,k]=v.get(r),[_,A]=M(e),P=(0,s.useRef)(!1),O=(0,s.useRef)(!1),R=(0,s.useRef)(_),F=(0,s.useRef)(t),I=(0,s.useRef)(n),B=()=>I.current,U=()=>B().isVisible()&&B().isOnline(),[H,z,q,W]=S(r,_),$=(0,s.useRef)({}).current,Z=m(a)?n.fallback[_]:a,G=(e,t)=>{for(const n in $){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!m(e[r]))return!1;if(!o(ie,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},X=(0,s.useMemo)((()=>{const e=!!_&&!!t&&(m(c)?!B().isPaused()&&!i&&(!!m(d)||d):c),n=t=>{const n=f(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=H(),o=W(),s=n(r),a=r===o?s:n(o);let l=s;return[()=>{const e=n(H());return G(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]}),[r,_]),J=(0,l.useSyncExternalStore)((0,s.useCallback)((e=>q(_,((t,n)=>{G(n,t)||e()}))),[r,_]),X[0],X[1]),Q=!P.current,ee=x[_]&&x[_].length>0,te=J.data,ne=m(te)?Z:te,re=J.error,oe=(0,s.useRef)(ne),ie=b?m(te)?oe.current:te:ne,se=!(ee&&!m(re))&&(Q&&!m(c)?c:!B().isPaused()&&(i?!m(ne)&&d:m(ne)||d)),ae=!!(_&&t&&Q&&se),le=m(J.isValidating)?ae:J.isValidating,ce=m(J.isLoading)?ae:J.isLoading,ue=(0,s.useCallback)((async e=>{const t=F.current;if(!_||!t||O.current||B().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!T[_]||!a.dedupe,c=()=>L?!O.current&&_===R.current&&P.current:_===R.current,d={isValidating:!1,isLoading:!1},f=()=>{z(d)},h=()=>{const e=T[_];e&&e[1]===i&&delete T[_]},g={isValidating:!0};m(H().data)&&(g.isLoading=!0);try{if(l&&(z(g),n.loadingTimeout&&m(H().data)&&setTimeout((()=>{s&&c()&&B().onLoadingSlow(_,n)}),n.loadingTimeout),T[_]=[t(A),j()]),[r,i]=T[_],r=await r,l&&setTimeout(h,n.dedupingInterval),!T[_]||T[_][1]!==i)return l&&c()&&B().onDiscarded(_),!1;d.error=u;const e=C[_];if(!m(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),l&&c()&&B().onDiscarded(_),!1;const a=H().data;d.data=o(a,r)?a:r,l&&c()&&B().onSuccess(r,_,n)}catch(e){h();const t=B(),{shouldRetryOnError:n}=t;t.isPaused()||(d.error=e,l&&c()&&(t.onError(e,_,t),(!0===n||p(n)&&n(e))&&U()&&t.onErrorRetry(e,_,t,(e=>{const t=x[_];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0}),[_,r]),de=(0,s.useCallback)(((...e)=>V(r,R.current,...e)),[]);if(D((()=>{F.current=t,I.current=n,m(te)||(oe.current=te)})),D((()=>{if(!_)return;const e=ue.bind(u,K);let t=0;const n=((e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}})(_,x,((n,r={})=>{if(0==n){const n=Date.now();B().revalidateOnFocus&&n>t&&U()&&(t=n+B().focusThrottleInterval,e())}else if(1==n)B().revalidateOnReconnect&&U()&&e();else{if(2==n)return ue();if(3==n)return ue(r)}}));return O.current=!1,R.current=_,P.current=!0,z({_k:A}),se&&(m(ne)||N?e():(e=>{E&&typeof window.requestAnimationFrame!=w?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{O.current=!0,n()}}),[_]),D((()=>{let e;function t(){const t=p(h)?h(H().data):h;t&&-1!==e&&(e=setTimeout(n,t))}function n(){H().error||!g&&!B().isVisible()||!y&&!B().isOnline()?t():ue(K).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[h,g,y,_]),(0,s.useDebugValue)(ie),i&&m(ne)&&_){if(!L&&N)throw new Error("Fallback data is required when using suspense in SSR.");F.current=t,I.current=n,O.current=!1;const e=k[_];if(!m(e)){const t=de(e);Y(t)}if(!m(re))throw re;{const e=ue(K);m(ie)||(e.status="fulfilled",e.value=!0),Y(e)}}return{mutate:de,get data(){return $.data=!0,ie},get error(){return $.error=!0,re},get isValidating(){return $.isValidating=!0,le},get isLoading(){return $.isLoading=!0,ce}}},function(...e){const t=f(z,(0,s.useContext)(W)),[n,r,o]=G(e),i=q(t,o);let a=ee;const{use:l}=i,c=(l||[]).concat(X);for(let e=c.length;e--;)a=c[e](a);return a(n,r||i.fetcher||null,i)});var ee,te=(0,e.forwardRef)((function({icon:t,size:n=24,...r},o){return(0,e.cloneElement)(t,{width:n,height:n,...r,ref:o})})),ne=window.wp.primitives,re=(0,e.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(ne.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function oe(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,oe),r}function ie(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var se,ae=((se=ae||{})[se.None=0]="None",se[se.RenderStrategy=1]="RenderStrategy",se[se.Static=2]="Static",se),le=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(le||{});function ce({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=de(t,e);if(i)return ue(a,n,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=a;if(e)return ue(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=a;return oe(e?0:1,{0(){return null},1(){return ue({...t,hidden:!0,style:{display:"none"}},n,r,s)}})}return ue(a,n,r,s)}function ue(e,t={},n,r){let{as:o=n,children:i,refName:a="ref",...l}=fe(e,["unmount","static"]),c=void 0!==e.ref?{[a]:e.ref}:{},u="function"==typeof i?i(t):i;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(o===s.Fragment&&Object.keys(pe(l)).length>0){if(!(0,s.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>ie(null==e?void 0:e.className(...t),l.className):ie(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return(0,s.cloneElement)(u,Object.assign({},de(u.props,pe(fe(l,["ref"]))),d,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}}(u.ref,c.ref),n))}return(0,s.createElement)(o,Object.assign({},fe(l,["ref"]),o!==s.Fragment&&c,o!==s.Fragment&&d),u)}function de(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let e in n)Object.assign(t,{[e](t,...r){let o=n[e];for(let e of o){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function me(e){var t;return Object.assign((0,s.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function pe(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function fe(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var he=Object.defineProperty,ge=(e,t,n)=>(((e,t,n)=>{t in e?he(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ye=new class{constructor(){ge(this,"current",this.detect()),ge(this,"handoffState","pending"),ge(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},ve=(e,t)=>{ye.isServer?(0,s.useEffect)(e,t):(0,s.useLayoutEffect)(e,t)};function be(e){let t=(0,s.useRef)(e);return ve((()=>{t.current=e}),[e]),t}let xe=function(e){let t=be(e);return s.useCallback(((...e)=>t.current(...e)),[t])},we=Symbol();function Ee(...e){let t=(0,s.useRef)(e);(0,s.useEffect)((()=>{t.current=e}),[e]);let n=xe((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[we])))?void 0:n}var Ce,Se=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Se||{});function Te(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in a&&a.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=s.useState(ye.isHandoffComplete);return t&&!1===ye.isHandoffComplete&&n(!1),s.useEffect((()=>{!0!==t&&n(!0)}),[t]),s.useEffect((()=>ye.handoff()),[]),!e&&t}let ke=null!=(Ce=s.useId)?Ce:function(){let e=Te(),[t,n]=s.useState(e?()=>ye.nextId():null);return ve((()=>{null===t&&n(ye.nextId())}),[t]),null!=t?""+t:void 0};var _e=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(_e||{});let Ae=me((function(e,t){let{features:n=1,...r}=e;return ce({ourProps:{ref:t,"aria-hidden":2==(2&n)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&n)&&2!=(2&n)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Pe(e){return ye.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let Le=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Ne,De,Oe=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e))(Oe||{}),Re=((De=Re||{})[De.Error=0]="Error",De[De.Overflow=1]="Overflow",De[De.Success=2]="Success",De[De.Underflow=3]="Underflow",De),Me=((Ne=Me||{})[Ne.Previous=-1]="Previous",Ne[Ne.Next=1]="Next",Ne);var Fe=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Fe||{});var je=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(je||{});function Ve(e){null==e||e.focus({preventScroll:!0})}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Ie=["textarea","input"].join(",");function Be(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?function(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Le)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&s.length>1&&(s=s.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let a,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,s.indexOf(r))-1;if(4&t)return Math.max(0,s.indexOf(r))+1;if(8&t)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,m=s.length;do{if(d>=m||d+m<=0)return 0;let e=c+d;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}a=s[e],null==a||a.focus(u),d+=l}while(a!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Ie))&&n}(a)&&a.select(),2}function Ue(e,t,n){let r=be(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var He=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(He||{});function ze(){let e=(0,s.useRef)(!1);return ve((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function qe(...e){return(0,s.useMemo)((()=>Pe(...e)),[...e])}function We(e,t,n,r){let o=be(n);(0,s.useEffect)((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}function $e(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Ze(e,t){let n=(0,s.useRef)([]),r=xe(e);(0,s.useEffect)((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}function Ge(){let e=[],t={addEventListener(e,n,r,o){return e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))},requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame(...e){return t.requestAnimationFrame((()=>t.requestAnimationFrame(...e)))},setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return $e((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Ge();return e(t),this.add((()=>t.dispose()))},add(t){return e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}},dispose(){for(let t of e.splice(0))t()}};return t}function Xe(e){let t=xe(e),n=(0,s.useRef)(!1);(0,s.useEffect)((()=>(n.current=!1,()=>{n.current=!0,$e((()=>{n.current&&t()}))})),[t])}function Ye(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}var Ke=(e=>(e[e.None=1]="None",e[e.InitialFocus=2]="InitialFocus",e[e.TabLock=4]="TabLock",e[e.FocusLock=8]="FocusLock",e[e.RestoreFocus=16]="RestoreFocus",e[e.All=30]="All",e))(Ke||{});let Je=me((function(e,t){let n=(0,s.useRef)(null),r=Ee(n,t),{initialFocus:o,containers:i,features:a=30,...l}=e;Te()||(a=1);let c=qe(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=(0,s.useRef)(et.slice());return Ze((([e],[n])=>{!0===n&&!1===e&&$e((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=et.slice())}),[e,et,t]),xe((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Ze((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Ve(n())}),[t]),Xe((()=>{t&&Ve(n())}))}({ownerDocument:c},Boolean(16&a));let u=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,s.useRef)(null),i=ze();return Ze((()=>{if(!r)return;let s=t.current;s&&$e((()=>{if(!i.current)return;let t=null==e?void 0:e.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===t)return void(o.current=t)}else if(s.contains(t))return void(o.current=t);null!=n&&n.current?Ve(n.current):Be(s,Oe.First)===Re.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:c,container:n,initialFocus:o},Boolean(2&a));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=ze();We(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let s=Ye(n);t.current instanceof HTMLElement&&s.add(t.current);let a=r.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?tt(s,l)?(r.current=l,Ve(l)):(e.preventDefault(),e.stopPropagation(),Ve(a)):Ve(r.current)}),!0)}({ownerDocument:c,container:n,containers:i,previousActiveElement:u},Boolean(8&a));let d=function(){let e=(0,s.useRef)(0);return Ue("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),m=xe((e=>{let t=n.current;t&&oe(d.current,{[He.Forwards]:()=>{Be(t,Oe.First,{skipElements:[e.relatedTarget]})},[He.Backwards]:()=>{Be(t,Oe.Last,{skipElements:[e.relatedTarget]})}})})),p=function(){let[e]=(0,s.useState)(Ge);return(0,s.useEffect)((()=>()=>e.dispose()),[e]),e}(),f=(0,s.useRef)(!1),h={ref:r,onKeyDown(e){"Tab"==e.key&&(f.current=!0,p.requestAnimationFrame((()=>{f.current=!1})))},onBlur(e){let t=Ye(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(tt(t,r)||(f.current?Be(n.current,oe(d.current,{[He.Forwards]:()=>Oe.Next,[He.Backwards]:()=>Oe.Previous})|Oe.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Ve(e.target)))}};return s.createElement(s.Fragment,null,Boolean(4&a)&&s.createElement(Ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:_e.Focusable}),ce({ourProps:h,theirProps:l,defaultTag:"div",name:"FocusTrap"}),Boolean(4&a)&&s.createElement(Ae,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:_e.Focusable}))})),Qe=Object.assign(Je,{features:Ke}),et=[];function tt(e,t){for(let n of e)if(n.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&((()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&et[0]!==e.target&&(et.unshift(e.target),et=et.filter((e=>null!=e&&e.isConnected)),et.splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})})(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}();var nt=window.ReactDOM;let rt=(0,s.createContext)(!1);function ot(){return(0,s.useContext)(rt)}function it(e){return s.createElement(rt.Provider,{value:e.force},e.children)}let st=s.Fragment,at=s.Fragment,lt=(0,s.createContext)(null),ct=(0,s.createContext)(null),ut=me((function(e,t){let n=e,r=(0,s.useRef)(null),o=Ee(function(e,t=!0){return Object.assign(e,{[we]:t})}((e=>{r.current=e})),t),i=qe(r),a=function(e){let t=ot(),n=(0,s.useContext)(lt),r=qe(e),[o,i]=(0,s.useState)((()=>{if(!t&&null!==n||ye.isServer)return null;let e=null==r?void 0:r.getElementById("headlessui-portal-root");if(e)return e;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return(0,s.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,s.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[l]=(0,s.useState)((()=>{var e;return ye.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),c=(0,s.useContext)(ct),u=Te();return ve((()=>{!a||!l||a.contains(l)||(l.setAttribute("data-headlessui-portal",""),a.appendChild(l))}),[a,l]),ve((()=>{if(l&&c)return c.register(l)}),[c,l]),Xe((()=>{var e;!a||!l||(l instanceof Node&&a.contains(l)&&a.removeChild(l),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))})),u&&a&&l?(0,nt.createPortal)(ce({ourProps:{ref:o},theirProps:n,defaultTag:st,name:"Portal"}),l):null})),dt=me((function(e,t){let{target:n,...r}=e,o={ref:Ee(t)};return s.createElement(lt.Provider,{value:n},ce({ourProps:o,theirProps:r,defaultTag:at,name:"Popover.Group"}))})),mt=Object.assign(ut,{Group:dt}),pt=(0,s.createContext)(null);function ft(){let e=(0,s.useContext)(pt);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,ft),e}return e}let ht=me((function(e,t){let n=ke(),{id:r=`headlessui-description-${n}`,...o}=e,i=ft(),s=Ee(t);return ve((()=>i.register(r)),[r,i.register]),ce({ourProps:{ref:s,...i.props,id:r},theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})})),gt=Object.assign(ht,{}),yt=(0,s.createContext)(null);yt.displayName="OpenClosedContext";var vt=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(vt||{});function bt(){return(0,s.useContext)(yt)}let xt=(0,s.createContext)((()=>{}));xt.displayName="StackContext";var wt=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(wt||{});function Et({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=(0,s.useContext)(xt),a=xe(((...e)=>{null==t||t(...e),i(...e)}));return ve((()=>{let e=void 0===o||!0===o;return e&&a(0,n,r),()=>{e&&a(1,n,r)}}),[a,n,r,o]),s.createElement(xt.Provider,{value:a},e)}function Ct(e,t,n){let r=be(t);(0,s.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function St(e,t,n=!0){let r=(0,s.useRef)(!1);function o(n,o){if(!r.current||n.defaultPrevented)return;let i=o(n);if(null===i||!i.getRootNode().contains(i)||!i.isConnected)return;let s=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e);for(let e of s){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(i)||n.composed&&n.composedPath().includes(t))return}return!function(e,t=0){var n;return e!==(null==(n=Pe(e))?void 0:n.body)&&oe(t,{0(){return e.matches(Le)},1(){let t=e;for(;null!==t;){if(t.matches(Le))return!0;t=t.parentElement}return!1}})}(i,Fe.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,s.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,s.useRef)(null);Ct("pointerdown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ct("mousedown",(e=>{var t,n;r.current&&(i.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)}),!0),Ct("click",(e=>{i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),Ct("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),Ue("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}const Tt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:kt,useEffect:_t,useLayoutEffect:At,useDebugValue:Pt}=a;function Lt(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!Tt(n,e)}catch{return!0}}const Nt="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t,n){return t()}:function(e,t,n){const r=t(),[{inst:o},i]=kt({inst:{value:r,getSnapshot:t}});return At((()=>{o.value=r,o.getSnapshot=t,Lt(o)&&i({inst:o})}),[e,r,t]),_t((()=>(Lt(o)&&i({inst:o}),e((()=>{Lt(o)&&i({inst:o})})))),[e]),Pt(r),r},Dt="useSyncExternalStore"in a?(e=>e.useSyncExternalStore)(a):Nt;function Ot(){let e;return{before({doc:t}){var n;let r=t.documentElement;e=(null!=(n=t.defaultView)?n:window).innerWidth-r.clientWidth},after({doc:t,d:n}){let r=t.documentElement,o=r.clientWidth-r.offsetWidth,i=e-o;n.style(r,"paddingRight",`${i}px`)}}}function Rt(){if(!(/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0))return{};let e;return{before(){e=window.pageYOffset},after({doc:t,d:n,meta:r}){function o(e){return r.containers.flatMap((e=>e())).some((t=>t.contains(e)))}n.microTask((()=>{if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=Ge();e.style(t.documentElement,"scroll-behavior","auto"),n.add((()=>n.microTask((()=>e.dispose()))))}n.style(t.body,"marginTop",`-${e}px`),window.scrollTo(0,0);let r=null;n.addEventListener(t,"click",(e=>{if(e.target instanceof HTMLElement)try{let n=e.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),s=t.querySelector(i);s&&!o(s)&&(r=s)}catch{}}),!0),n.addEventListener(t,"touchmove",(e=>{e.target instanceof HTMLElement&&!o(e.target)&&e.preventDefault()}),{passive:!1}),n.add((()=>{window.scrollTo(0,window.pageYOffset+e),r&&r.isConnected&&(r.scrollIntoView({block:"nearest"}),r=null)}))}))}}}function Mt(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ft=function(e,t){let n=new Map,r=new Set;return{getSnapshot(){return n},subscribe(e){return r.add(e),()=>r.delete(e)},dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}(0,{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Ge(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Mt(n)},o=[Rt(),Ot(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Ft.subscribe((()=>{let e=Ft.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Ft.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Ft.dispatch("TEARDOWN",n)}}));let jt=new Map,Vt=new Map;function It(e,t=!0){ve((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=Vt.get(r))?n:0;return Vt.set(r,o+1),0!==o||(jt.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),function(){var e;if(!r)return;let t=null!=(e=Vt.get(r))?e:1;if(1===t?Vt.delete(r):Vt.set(r,t-1),1!==t)return;let n=jt.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,jt.delete(r))}}),[e,t])}function Bt({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=(0,s.useRef)(null!=(r=null==n?void 0:n.current)?r:null),i=qe(o),a=xe((()=>{var n;let r=[];for(let t of e)null!==t&&(t instanceof HTMLElement?r.push(t):"current"in t&&t.current instanceof HTMLElement&&r.push(t.current));if(null!=t&&t.current)for(let e of t.current)r.push(e);for(let e of null!=(n=null==i?void 0:i.querySelectorAll("html > *, body > *"))?n:[])e!==document.body&&e!==document.head&&e instanceof HTMLElement&&"headlessui-portal-root"!==e.id&&(e.contains(o.current)||r.some((t=>e.contains(t)))||r.push(e));return r}));return{resolveContainers:a,contains:xe((e=>a().some((t=>t.contains(e))))),mainTreeNodeRef:o,MainTreeNode:(0,s.useMemo)((()=>function(){return null!=n?null:s.createElement(Ae,{features:_e.Hidden,ref:o})}),[o,n])}}var Ut=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ut||{}),Ht=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Ht||{});let zt={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},qt=(0,s.createContext)(null);function Wt(e){let t=(0,s.useContext)(qt);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Wt),t}return t}function $t(e,t){return oe(t.type,zt,e,t)}qt.displayName="DialogContext";let Zt=ae.RenderStrategy|ae.Static,Gt=me((function(e,t){var n;let r=ke(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:a,initialFocus:l,__demoMode:c=!1,...u}=e,[d,m]=(0,s.useState)(0),p=bt();void 0===i&&null!==p&&(i=(p&vt.Open)===vt.Open);let f=(0,s.useRef)(null),h=Ee(f,t),g=qe(f),y=e.hasOwnProperty("open")||null!==p,v=e.hasOwnProperty("onClose");if(!y&&!v)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!y)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!v)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof i)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof a)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${a}`);let b=i?0:1,[x,w]=(0,s.useReducer)($t,{titleId:null,descriptionId:null,panelRef:(0,s.createRef)()}),E=xe((()=>a(!1))),C=xe((e=>w({type:0,id:e}))),S=!!Te()&&!c&&0===b,T=d>1,k=null!==(0,s.useContext)(qt),[_,A]=function(){let e=(0,s.useContext)(ct),t=(0,s.useRef)([]),n=xe((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=xe((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),o=(0,s.useMemo)((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,(0,s.useMemo)((()=>function({children:e}){return s.createElement(ct.Provider,{value:o},e)}),[o])]}(),{resolveContainers:P,mainTreeNodeRef:L,MainTreeNode:N}=Bt({portals:_,defaultContainers:[null!=(n=x.panelRef.current)?n:f.current]}),D=T?"parent":"leaf",O=null!==p&&(p&vt.Closing)===vt.Closing,R=!k&&!O&&S,M=(0,s.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==g?void 0:g.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(L.current)&&e instanceof HTMLElement)))?t:null}),[L]);It(M,R);let F=!!T||S,j=(0,s.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==g?void 0:g.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(L.current)&&e instanceof HTMLElement)))?t:null}),[L]);It(j,F),St(P,E,!(!S||T));let V=!(T||0!==b);We(null==g?void 0:g.defaultView,"keydown",(e=>{V&&(e.defaultPrevented||e.key===Se.Escape&&(e.preventDefault(),e.stopPropagation(),E()))})),function(e,t,n=(()=>[document.body])){!function(e,t,n){let r=function(e){return Dt(e.subscribe,e.getSnapshot,e.getSnapshot)}(Ft),o=e?r.get(e):void 0,i=!!o&&o.count>0;ve((()=>{if(e&&t)return Ft.dispatch("PUSH",e,n),()=>Ft.dispatch("POP",e,n)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(g,!(O||0!==b||k),P),(0,s.useEffect)((()=>{if(0!==b||!f.current)return;let e=new ResizeObserver((e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&E()}}));return e.observe(f.current),()=>e.disconnect()}),[b,f,E]);let[I,B]=function(){let[e,t]=(0,s.useState)([]);return[e.length>0?e.join(" "):void 0,(0,s.useMemo)((()=>function(e){let n=xe((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=(0,s.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return s.createElement(pt.Provider,{value:r},e.children)}),[t])]}(),U=(0,s.useMemo)((()=>[{dialogState:b,close:E,setTitleId:C},x]),[b,x,E,C]),H=(0,s.useMemo)((()=>({open:0===b})),[b]),z={ref:h,id:o,role:"dialog","aria-modal":0===b||void 0,"aria-labelledby":x.titleId,"aria-describedby":I};return s.createElement(Et,{type:"Dialog",enabled:0===b,element:f,onUpdate:xe(((e,t)=>{"Dialog"===t&&oe(e,{[wt.Add]:()=>m((e=>e+1)),[wt.Remove]:()=>m((e=>e-1))})}))},s.createElement(it,{force:!0},s.createElement(mt,null,s.createElement(qt.Provider,{value:U},s.createElement(mt.Group,{target:f},s.createElement(it,{force:!1},s.createElement(B,{slot:H,name:"Dialog.Description"},s.createElement(Qe,{initialFocus:l,containers:P,features:S?oe(D,{parent:Qe.features.RestoreFocus,leaf:Qe.features.All&~Qe.features.FocusLock}):Qe.features.None},s.createElement(A,null,ce({ourProps:z,theirProps:u,slot:H,defaultTag:"div",features:Zt,visible:0===b,name:"Dialog"}))))))))),s.createElement(N,null))})),Xt=me((function(e,t){let n=ke(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},a]=Wt("Dialog.Backdrop"),l=Ee(t);(0,s.useEffect)((()=>{if(null===a.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[a.panelRef]);let c=(0,s.useMemo)((()=>({open:0===i})),[i]);return s.createElement(it,{force:!0},s.createElement(mt,null,ce({ourProps:{ref:l,id:r,"aria-hidden":!0},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Backdrop"})))})),Yt=me((function(e,t){let n=ke(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},a]=Wt("Dialog.Panel"),l=Ee(t,a.panelRef),c=(0,s.useMemo)((()=>({open:0===i})),[i]);return ce({ourProps:{ref:l,id:r,onClick:xe((e=>{e.stopPropagation()}))},theirProps:o,slot:c,defaultTag:"div",name:"Dialog.Panel"})})),Kt=me((function(e,t){let n=ke(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:a}]=Wt("Dialog.Overlay");return ce({ourProps:{ref:Ee(t),id:r,"aria-hidden":!0,onClick:xe((e=>{if(e.target===e.currentTarget){if(function(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),a()}}))},theirProps:o,slot:(0,s.useMemo)((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),Jt=me((function(e,t){let n=ke(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:a}]=Wt("Dialog.Title"),l=Ee(t);(0,s.useEffect)((()=>(a(r),()=>a(null))),[r,a]);let c=(0,s.useMemo)((()=>({open:0===i})),[i]);return ce({ourProps:{ref:l,id:r},theirProps:o,slot:c,defaultTag:"h2",name:"Dialog.Title"})})),Qt=Object.assign(Gt,{Backdrop:Xt,Panel:Yt,Overlay:Kt,Title:Jt,Description:gt});const en=e=>{let t;const n=new Set,r=(e,r)=>{const o="function"==typeof e?e(t):e;if(!Object.is(o,t)){const e=t;t=(null!=r?r:"object"!=typeof o)?o:Object.assign({},t,o),n.forEach((n=>n(t,e)))}},o=()=>t,i={setState:r,getState:o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,o,i),i};var tn=o(798);const{useSyncExternalStoreWithSelector:nn}=tn;let rn=!1;const on=e=>{"function"!=typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"==typeof e?(e=>e?en(e):en)(e):e,n=(e,n)=>function(e,t=e.getState,n){n&&!rn&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),rn=!0);const r=nn(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,s.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},sn=e=>e?on(e):on,an=new Map,ln=e=>{const t=an.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},cn=(e,t={})=>(n,r,o)=>{const{enabled:i,anonymousActionType:s,store:a,...l}=t;let c;try{c=(null==i||i)&&window.__REDUX_DEVTOOLS_EXTENSION__}catch(e){}if(!c)return i&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,o);const{connection:u,...d}=((e,t,n)=>{if(void 0===e)return{type:"untracked",connection:t.connect(n)};const r=an.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return an.set(n.name,o),{type:"tracked",store:e,...o}})(a,c,l);let m=!0;o.setState=(e,t,i)=>{const c=n(e,t);if(!m)return c;const d=void 0===i?{type:s||"anonymous"}:"string"==typeof i?{type:i}:i;return void 0===a?(null==u||u.send(d,r()),c):(null==u||u.send({...d,type:`${a}/${d.type}`},{...ln(l.name),[a]:o.getState()}),c)};const p=(...e)=>{const t=m;m=!1,n(...e),m=t},f=e(o.setState,r,o);if("untracked"===d.type?null==u||u.init(f):(d.stores[d.store]=o,null==u||u.init(Object.fromEntries(Object.entries(d.stores).map((([e,t])=>[e,e===d.store?f:t.getState()]))))),o.dispatchFromDevtools&&"function"==typeof o.dispatch){let e=!1;const t=o.dispatch;o.dispatch=(...n)=>{"__setState"!==n[0].type||e||(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),e=!0),t(...n)}}return u.subscribe((e=>{var t;switch(e.type){case"ACTION":return"string"!=typeof e.payload?void console.error("[zustand devtools middleware] Unsupported action format"):un(e.payload,(e=>{if("__setState"!==e.type)o.dispatchFromDevtools&&"function"==typeof o.dispatch&&o.dispatch(e);else{if(void 0===a)return void p(e.state);1!==Object.keys(e.state).length&&console.error('\n [zustand devtools middleware] Unsupported __setState action format. \n When using \'store\' option in devtools(), the \'state\' should have only one key, which is a value of \'store\' that was passed in devtools(),\n and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }\n ');const t=e.state[a];if(null==t)return;JSON.stringify(o.getState())!==JSON.stringify(t)&&p(t)}}));case"DISPATCH":switch(e.payload.type){case"RESET":return p(f),void 0===a?null==u?void 0:u.init(o.getState()):null==u?void 0:u.init(ln(l.name));case"COMMIT":return void 0===a?void(null==u||u.init(o.getState())):null==u?void 0:u.init(ln(l.name));case"ROLLBACK":return un(e.state,(e=>{if(void 0===a)return p(e),void(null==u||u.init(o.getState()));p(e[a]),null==u||u.init(ln(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return un(e.state,(e=>{void 0!==a?JSON.stringify(o.getState())!==JSON.stringify(e[a])&&p(e[a]):p(e)}));case"IMPORT_STATE":{const{nextLiftedState:n}=e.payload,r=null==(t=n.computedStates.slice(-1)[0])?void 0:t.state;if(!r)return;return p(void 0===a?r:r[a]),void(null==u||u.send(null,n))}case"PAUSE_RECORDING":return m=!m}return}})),f},un=(e,t)=>{let n;try{n=JSON.parse(e)}catch(e){console.error("[zustand devtools middleware] Could not parse the received json",e)}void 0!==n&&t(n)};function dn(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;const o=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(r=n.getItem(e))?r:null;return i instanceof Promise?i.then(o):o(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}const mn=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return mn(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return mn(t)(e)}}}},pn=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,o)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const a=new Set,l=new Set;let c;try{c=i.getStorage()}catch(e){}if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=mn(i.serialize),d=()=>{const e=i.partialize({...r()});let t;const n=u({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},m=o.setState;o.setState=(e,t)=>{m(e,t),d()};const p=e(((...e)=>{n(...e),d()}),r,o);let f;const h=()=>{var e;if(!c)return;s=!1,a.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return mn(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=i.merge(e,null!=(t=r())?t:p),n(f,!0),d()})).then((()=>{null==t||t(f,void 0),s=!0,l.forEach((e=>e(f)))})).catch((e=>{null==t||t(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},h(),f||p})(e,t)):((e,t)=>(n,r,o)=>{let i={storage:dn((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const a=new Set,l=new Set;let c=i.storage;if(!c)return e(((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...e)}),r,o);const u=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},d=o.setState;o.setState=(e,t)=>{d(e,t),u()};const m=e(((...e)=>{n(...e),u()}),r,o);let p;const f=()=>{var e,t;if(!c)return;s=!1,a.forEach((e=>{var t;return e(null!=(t=r())?t:m)}));const o=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:m))||void 0;return mn(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=i.merge(e,null!=(t=r())?t:m),n(p,!0),u()})).then((()=>{null==o||o(p,void 0),p=r(),s=!0,l.forEach((e=>e(p)))})).catch((e=>{null==o||o(void 0,e)}))};return o.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>f(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},i.skipHydration||f(),p||m})(e,t);function fn(e,t){return function(){return e.apply(t,arguments)}}const{toString:hn}=Object.prototype,{getPrototypeOf:gn}=Object,yn=(e=>t=>{const n=hn.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),vn=e=>(e=e.toLowerCase(),t=>yn(t)===e),bn=e=>t=>typeof t===e,{isArray:xn}=Array,wn=bn("undefined"),En=vn("ArrayBuffer"),Cn=bn("string"),Sn=bn("function"),Tn=bn("number"),kn=e=>null!==e&&"object"==typeof e,An=e=>{if("object"!==yn(e))return!1;const t=gn(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Pn=vn("Date"),Ln=vn("File"),Nn=vn("Blob"),Dn=vn("FileList"),On=vn("URLSearchParams");function Rn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),xn(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let s;for(r=0;r<i;r++)s=o[r],t.call(null,e[s],s,e)}}function Mn(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Fn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,jn=e=>!wn(e)&&e!==Fn,Vn=(In="undefined"!=typeof Uint8Array&&gn(Uint8Array),e=>In&&e instanceof In);var In;const Bn=vn("HTMLFormElement"),Un=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Hn=vn("RegExp"),zn=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Rn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},qn="abcdefghijklmnopqrstuvwxyz",Wn="0123456789",$n={DIGIT:Wn,ALPHA:qn,ALPHA_DIGIT:qn+qn.toUpperCase()+Wn},Zn=vn("AsyncFunction");var Gn={isArray:xn,isArrayBuffer:En,isBuffer:function(e){return null!==e&&!wn(e)&&null!==e.constructor&&!wn(e.constructor)&&Sn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Sn(e.append)&&("formdata"===(t=yn(e))||"object"===t&&Sn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&En(e.buffer),t},isString:Cn,isNumber:Tn,isBoolean:e=>!0===e||!1===e,isObject:kn,isPlainObject:An,isUndefined:wn,isDate:Pn,isFile:Ln,isBlob:Nn,isRegExp:Hn,isFunction:Sn,isStream:e=>kn(e)&&Sn(e.pipe),isURLSearchParams:On,isTypedArray:Vn,isFileList:Dn,forEach:Rn,merge:function e(){const{caseless:t}=jn(this)&&this||{},n={},r=(r,o)=>{const i=t&&Mn(n,o)||o;An(n[i])&&An(r)?n[i]=e(n[i],r):An(r)?n[i]=e({},r):xn(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Rn(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Rn(t,((t,r)=>{n&&Sn(t)?e[r]=fn(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],r&&!r(s,e,t)||a[s]||(t[s]=e[s],a[s]=!0);e=!1!==n&&gn(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:yn,kindOfTest:vn,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(xn(e))return e;let t=e.length;if(!Tn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Bn,hasOwnProperty:Un,hasOwnProp:Un,reduceDescriptors:zn,freezeMethods:e=>{zn(e,((t,n)=>{if(Sn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Sn(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 xn(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)=>(e=+e,Number.isFinite(e)?e:t),findKey:Mn,global:Fn,isContextDefined:jn,ALPHABET:$n,generateString:(e=16,t=$n.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&Sn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(kn(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=xn(e)?[]:{};return Rn(e,((e,t)=>{const i=n(e,r+1);!wn(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Zn,isThenable:e=>e&&(kn(e)||Sn(e))&&Sn(e.then)&&Sn(e.catch)};function Xn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Gn.inherits(Xn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Gn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Yn=Xn.prototype,Kn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Kn[e]={value:e}})),Object.defineProperties(Xn,Kn),Object.defineProperty(Yn,"isAxiosError",{value:!0}),Xn.from=(e,t,n,r,o,i)=>{const s=Object.create(Yn);return Gn.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Xn.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var Jn=Xn;function Qn(e){return Gn.isPlainObject(e)||Gn.isArray(e)}function er(e){return Gn.endsWith(e,"[]")?e.slice(0,-2):e}function tr(e,t,n){return e?e.concat(t).map((function(e,t){return e=er(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const nr=Gn.toFlatObject(Gn,{},null,(function(e){return/^is[A-Z]/.test(e)}));var rr=function(e,t,n){if(!Gn.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Gn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Gn.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Gn.isSpecCompliantForm(t);if(!Gn.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Gn.isDate(e))return e.toISOString();if(!a&&Gn.isBlob(e))throw new Jn("Blob is not supported. Use a Buffer instead.");return Gn.isArrayBuffer(e)||Gn.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(Gn.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Gn.isArray(e)&&function(e){return Gn.isArray(e)&&!e.some(Qn)}(e)||(Gn.isFileList(e)||Gn.endsWith(n,"[]"))&&(a=Gn.toArray(e)))return n=er(n),a.forEach((function(e,r){!Gn.isUndefined(e)&&null!==e&&t.append(!0===s?tr([n],r,i):null===s?n:n+"[]",l(e))})),!1;return!!Qn(e)||(t.append(tr(o,n,i),l(e)),!1)}const u=[],d=Object.assign(nr,{defaultVisitor:c,convertValue:l,isVisitable:Qn});if(!Gn.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Gn.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Gn.forEach(n,(function(n,i){!0===(!(Gn.isUndefined(n)||null===n)&&o.call(t,n,Gn.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function or(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ir(e,t){this._pairs=[],e&&rr(e,this,t)}const sr=ir.prototype;sr.append=function(e,t){this._pairs.push([e,t])},sr.toString=function(e){const t=e?function(t){return e.call(this,t,or)}:or;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ar=ir;function lr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cr(e,t,n){if(!t)return e;const r=n&&n.encode||lr,o=n&&n.serialize;let i;if(i=o?o(t,n):Gn.isURLSearchParams(t)?t.toString():new ar(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var ur=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){Gn.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ar,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:(()=>{let e;return("undefined"==typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]},pr=function(e){function t(e,n,r,o){let i=e[o++];const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&Gn.isArray(r)?r.length:i,a?(Gn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&Gn.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&Gn.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])),!s)}if(Gn.isFormData(e)&&Gn.isFunction(e.entries)){const n={};return Gn.forEachEntry(e,((e,r)=>{t(function(e){return Gn.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const fr={transitional:dr,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Gn.isObject(e);if(o&&Gn.isHTMLForm(e)&&(e=new FormData(e)),Gn.isFormData(e))return r&&r?JSON.stringify(pr(e)):e;if(Gn.isArrayBuffer(e)||Gn.isBuffer(e)||Gn.isStream(e)||Gn.isFile(e)||Gn.isBlob(e))return e;if(Gn.isArrayBufferView(e))return e.buffer;if(Gn.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 rr(e,new mr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return mr.isNode&&Gn.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Gn.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return rr(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Gn.isString(e))try{return(0,JSON.parse)(e),Gn.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fr.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&Gn.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw Jn.from(e,Jn.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:mr.classes.FormData,Blob:mr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Gn.forEach(["delete","get","head","post","put","patch"],(e=>{fr.headers[e]={}}));var hr=fr;const gr=Gn.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"]),yr=Symbol("internals");function vr(e){return e&&String(e).trim().toLowerCase()}function br(e){return!1===e||null==e?e:Gn.isArray(e)?e.map(br):String(e)}function xr(e,t,n,r,o){return Gn.isFunction(r)?r.call(this,t,n):(o&&(t=n),Gn.isString(t)?Gn.isString(r)?-1!==t.indexOf(r):Gn.isRegExp(r)?r.test(t):void 0:void 0)}class wr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=vr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Gn.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=br(e))}const i=(e,t)=>Gn.forEach(e,((e,n)=>o(e,n,t)));return Gn.isPlainObject(e)||e instanceof this.constructor?i(e,t):Gn.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]&&gr[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t):null!=e&&o(t,e,n),this}get(e,t){if(e=vr(e)){const n=Gn.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(Gn.isFunction(t))return t.call(this,e,n);if(Gn.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vr(e)){const n=Gn.findKey(this,e);return!(!n||void 0===this[n]||t&&!xr(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=vr(e)){const o=Gn.findKey(n,e);!o||t&&!xr(0,n[o],o,t)||(delete n[o],r=!0)}}return Gn.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&&!xr(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Gn.forEach(this,((r,o)=>{const i=Gn.findKey(n,o);if(i)return t[i]=br(r),void delete t[o];const s=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();s!==o&&delete t[o],t[s]=br(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Gn.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Gn.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[yr]=this[yr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=vr(e);t[r]||(function(e,t){const n=Gn.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 Gn.isArray(e)?e.forEach(r):r(e),this}}wr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Gn.reduceDescriptors(wr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Gn.freezeMethods(wr);var Er=wr;function Cr(e,t){const n=this||hr,r=t||n,o=Er.from(r.headers);let i=r.data;return Gn.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Sr(e){return!(!e||!e.__CANCEL__)}function Tr(e,t,n){Jn.call(this,null==e?"canceled":e,Jn.ERR_CANCELED,t,n),this.name="CanceledError"}Gn.inherits(Tr,Jn,{__CANCEL__:!0});var kr=Tr,_r=mr.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const s=[];s.push(e+"="+encodeURIComponent(t)),Gn.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Gn.isString(r)&&s.push("path="+r),Gn.isString(o)&&s.push("domain="+o),!0===i&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ar(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var Pr=mr.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Gn.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Lr(e,t){let n=0;const r=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,s=0;return t=void 0!==t?t:1e3,function(a){const l=Date.now(),c=r[s];o||(o=l),n[i]=a,r[i]=l;let u=s,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===s&&(s=(s+1)%e),l-o<t)return;const m=c&&l-c;return m?Math.round(1e3*d/m):void 0}}(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,a=i-n,l=r(a);n=i;const c={loaded:i,total:s,progress:s?i/s:void 0,bytes:a,rate:l||void 0,estimated:l&&s&&i<=s?(s-i)/l:void 0,event:o};c[t?"download":"upload"]=!0,e(c)}}const Nr={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Er.from(e.headers).normalize(),i=e.responseType;let s,a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}Gn.isFormData(r)&&(mr.isStandardBrowserEnv||mr.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?Gn.isString(a=o.getContentType())&&o.setContentType(a.replace(/^\s*(multipart\/form-data);+/,"$1")):o.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(t+":"+n))}const u=Ar(e.baseURL,e.url);function d(){if(!c)return;const r=Er.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Jn("Request failed with status code "+n.status,[Jn.ERR_BAD_REQUEST,Jn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),l()}),(function(e){n(e),l()}),{data:i&&"text"!==i&&"json"!==i?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:r,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),cr(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=d:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(d)},c.onabort=function(){c&&(n(new Jn("Request aborted",Jn.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new Jn("Network Error",Jn.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||dr;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new Jn(t,r.clarifyTimeoutError?Jn.ETIMEDOUT:Jn.ECONNABORTED,e,c)),c=null},mr.isStandardBrowserEnv){const t=(e.withCredentials||Pr(u))&&e.xsrfCookieName&&_r.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&Gn.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),Gn.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",Lr(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Lr(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{c&&(n(!t||t.type?new kr(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const m=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u);m&&-1===mr.protocols.indexOf(m)?n(new Jn("Unsupported protocol "+m+":",Jn.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};Gn.forEach(Nr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Dr=e=>`- ${e}`,Or=e=>Gn.isFunction(e)||null===e||!1===e;var Rr=e=>{e=Gn.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Or(n)&&(r=Nr[(t=String(n)).toLowerCase()],void 0===r))throw new Jn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let n=t?e.length>1?"since :\n"+e.map(Dr).join("\n"):" "+Dr(e[0]):"as no adapter specified";throw new Jn("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function Mr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new kr(null,e)}function Fr(e){return Mr(e),e.headers=Er.from(e.headers),e.data=Cr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Rr(e.adapter||hr.adapter)(e).then((function(t){return Mr(e),t.data=Cr.call(e,e.transformResponse,t),t.headers=Er.from(t.headers),t}),(function(t){return Sr(t)||(Mr(e),t&&t.response&&(t.response.data=Cr.call(e,e.transformResponse,t.response),t.response.headers=Er.from(t.response.headers))),Promise.reject(t)}))}const jr=e=>e instanceof Er?e.toJSON():e;function Vr(e,t){t=t||{};const n={};function r(e,t,n){return Gn.isPlainObject(e)&&Gn.isPlainObject(t)?Gn.merge.call({caseless:n},e,t):Gn.isPlainObject(t)?Gn.merge({},t):Gn.isArray(t)?t.slice():t}function o(e,t,n){return Gn.isUndefined(t)?Gn.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Gn.isUndefined(t))return r(void 0,t)}function s(e,t){return Gn.isUndefined(t)?Gn.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(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:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(e,t)=>o(jr(e),jr(t),!0)};return Gn.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,s=i(e[r],t[r],r);Gn.isUndefined(s)&&i!==a||(n[r]=s)})),n}const Ir={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Ir[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Br={};Ir.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Jn(r(o," has been removed"+(t?" in "+t:"")),Jn.ERR_DEPRECATED);return t&&!Br[o]&&(Br[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)}};var Ur={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Jn("options must be an object",Jn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const t=e[i],n=void 0===t||s(t,i,e);if(!0!==n)throw new Jn("option "+i+" must be "+n,Jn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Jn("Unknown option "+i,Jn.ERR_BAD_OPTION)}},validators:Ir};const Hr=Ur.validators;class zr{constructor(e){this.defaults=e,this.interceptors={request:new ur,response:new ur}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Vr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ur.assertOptions(n,{silentJSONParsing:Hr.transitional(Hr.boolean),forcedJSONParsing:Hr.transitional(Hr.boolean),clarifyTimeoutError:Hr.transitional(Hr.boolean)},!1),null!=r&&(Gn.isFunction(r)?t.paramsSerializer={serialize:r}:Ur.assertOptions(r,{encode:Hr.function,serialize:Hr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Gn.merge(o.common,o[t.method]);o&&Gn.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Er.concat(i,o);const s=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,s.unshift(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(!a){const e=[Fr.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=s.length;let m=t;for(d=0;d<u;){const e=s[d++],t=s[d++];try{m=e(m)}catch(e){t.call(this,e);break}}try{c=Fr.call(this,m)}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 cr(Ar((e=Vr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Gn.forEach(["delete","get","head","options"],(function(e){zr.prototype[e]=function(t,n){return this.request(Vr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Gn.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Vr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}zr.prototype[e]=t(),zr.prototype[e+"Form"]=t(!0)}));var qr=zr;class Wr{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 kr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;const t=new Wr((function(t){e=t}));return{token:t,cancel:e}}}var $r=Wr;const Zr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Zr).forEach((([e,t])=>{Zr[t]=e}));var Gr=Zr;const Xr=function e(t){const n=new qr(t),r=fn(qr.prototype.request,n);return Gn.extend(r,qr.prototype,n,{allOwnKeys:!0}),Gn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Vr(t,n))},r}(hr);Xr.Axios=qr,Xr.CanceledError=kr,Xr.CancelToken=$r,Xr.isCancel=Sr,Xr.VERSION="1.5.1",Xr.toFormData=rr,Xr.AxiosError=Jn,Xr.Cancel=Xr.CanceledError,Xr.all=function(e){return Promise.all(e)},Xr.spread=function(e){return function(t){return e.apply(null,t)}},Xr.isAxiosError=function(e){return Gn.isObject(e)&&!0===e.isAxiosError},Xr.mergeConfig=Vr,Xr.AxiosHeaders=Er,Xr.formToJSON=e=>pr(Gn.isHTMLForm(e)?new FormData(e):e),Xr.getAdapter=Rr,Xr.HttpStatusCode=Gr,Xr.default=Xr;const Yr=Xr.create({baseURL:window.extAssistData.root,headers:{"X-WP-Nonce":window.extAssistData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Assist":!0,"X-Extendify":!0}});Yr.interceptors.request.use((e=>Kr(e)),(e=>console.log(e)||e)),Yr.interceptors.response.use((e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e),(e=>console.log(e)||e));const Kr=e=>(e.headers["X-Extendify-Assist-Dev-Mode"]=window.location.search.indexOf("DEVMODE")>-1,e.headers["X-Extendify-Assist-Local-Mode"]=window.location.search.indexOf("LOCALMODE")>-1,e);var Jr;const Qr={dismissedNotices:[],dismissedBanners:[],modals:[],...null!==(Jr=(window.extAssistData.userData.globalData?.data||{})?.state)&&void 0!==Jr?Jr:{}},eo={getItem:async()=>JSON.stringify(await Yr.get("assist/global-data")),setItem:async(e,t)=>{return await(n=t,Yr.post("assist/global-data",{data:n}));var n},removeItem:()=>{}},to=sn(pn(cn(((e,t)=>({...Qr,pushModal(t){e((e=>({modals:[t,...e.modals]})))},popModal(){e((e=>({modals:e.modals.slice(1)})))},clearModals(){e({modals:[]})},isDismissed(e){return t().dismissedNotices.some((t=>t.id===e))},dismissNotice(n){if(t().isDismissed(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedNotices:[...e.dismissedNotices,r]})))},isDismissedBanner(e){return t().dismissedBanners.some((t=>t.id===e))},dismissBanner(n){if(t().isDismissedBanner(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedBanners:[...e.dismissedBanners,r]})))}})),{name:"Extendify Assist Globals"}),{name:"extendify-assist-globals",storage:dn((()=>eo)),skipHydration:!0,partialize:e=>(delete e.modals,e)})),no=()=>{const{modals:r,popModal:o}=to(),i=r[0],[s,a]=(0,e.useState)("");return(0,e.useEffect)((()=>{r[0]||a("")}),[r]),(0,e.createElement)(Qt,{as:"div",className:"extendify-assist",open:r.length>0,onClose:o},(0,e.createElement)("div",{className:"fixed top-0 mx-auto w-full h-full overflow-hidden p-2 md:p-6 md:flex justify-center items-center z-high"},(0,e.createElement)("div",{className:"fixed inset-0 bg-black/40 transition-opacity","aria-hidden":"true"}),(0,e.createElement)("div",{className:"sm:flex relative shadow-2xl sm:overflow-hidden mx-auto bg-white flex flex-col sm:min-w-md rounded-sm"},(0,e.createElement)("div",{className:"flex items-center justify-between"},(0,e.createElement)(Qt.Title,{className:"m-0 px-6 text-base text-gray-900"},s),(0,e.createElement)(n.Button,{className:"border-0 cursor-pointer m-4",onClick:o,icon:(0,e.createElement)(te,{icon:re,size:24}),label:(0,t.__)("Close Modal","extendify-local"),showTooltip:!1})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative"},r?.length>0&&(0,e.createElement)(i,{popModal:o,setModalTitle:a})))))},ro="undefined"!=typeof document,oo=ro?s.useLayoutEffect:s.useEffect;function io(){const e=(0,s.useRef)(!1);return oo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}const so=e=>e;class ao{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){const t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}}const lo=["prepare","read","update","preRender","render","postRender"],{schedule:co,cancel:uo,state:mo,steps:po}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=lo.reduce(((e,t)=>(e[t]=function(e){let t=new ao,n=new ao,r=0,o=!1,i=!1;const s=new WeakSet,a={schedule:(e,i=!1,a=!1)=>{const l=a&&o,c=l?t:n;return i&&s.add(e),c.add(e)&&l&&o&&(r=t.order.length),e},cancel:e=>{n.remove(e),s.delete(e)},process:l=>{if(o)i=!0;else{if(o=!0,[t,n]=[n,t],n.clear(),r=t.order.length,r)for(let n=0;n<r;n++){const r=t.order[n];r(l),s.has(r)&&(a.schedule(r),e())}o=!1,i&&(i=!1,a.process(l))}}};return a}((()=>n=!0)),e)),{}),s=e=>i[e].process(o),a=()=>{const t=performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(t-o.timestamp,40),1),o.timestamp=t,o.isProcessing=!0,lo.forEach(s),o.isProcessing=!1,n&&(r=!1,e(a))};return{schedule:lo.reduce(((t,s)=>{const l=i[s];return t[s]=(t,i=!1,s=!1)=>(n||(n=!0,r=!0,o.isProcessing||e(a)),l.schedule(t,i,s)),t}),{}),cancel:e=>lo.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:so),fo=(0,s.createContext)(null);function ho(e){const t=(0,s.useRef)(null);return null===t.current&&(t.current=e()),t.current}class go extends s.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function yo({children:e,isPresent:t}){const n=(0,s.useId)(),r=(0,s.useRef)(null),o=(0,s.useRef)({width:0,height:0,top:0,left:0});return(0,s.useInsertionEffect)((()=>{const{width:e,height:i,top:s,left:a}=o.current;if(t||!r.current||!e||!i)return;r.current.dataset.motionPopId=n;const l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`\n [data-motion-pop-id="${n}"] {\n position: absolute !important;\n width: ${e}px !important;\n height: ${i}px !important;\n top: ${s}px !important;\n left: ${a}px !important;\n }\n `),()=>{document.head.removeChild(l)}}),[t]),s.createElement(go,{isPresent:t,childRef:r,sizeRef:o},s.cloneElement(e,{ref:r}))}const vo=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a})=>{const l=ho(bo),c=(0,s.useId)(),u=(0,s.useMemo)((()=>({id:c,initial:t,isPresent:n,custom:o,onExitComplete:e=>{l.set(e,!0);for(const e of l.values())if(!e)return;r&&r()},register:e=>(l.set(e,!1),()=>l.delete(e))})),i?void 0:[n]);return(0,s.useMemo)((()=>{l.forEach(((e,t)=>l.set(t,!1)))}),[n]),s.useEffect((()=>{!n&&!l.size&&r&&r()}),[n]),"popLayout"===a&&(e=s.createElement(yo,{isPresent:n},e)),s.createElement(fo.Provider,{value:u},e)};function bo(){return new Map}const xo=(0,s.createContext)({});let wo=so,Eo=so;const Co=e=>e.key||"",So=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:a="sync"})=>{Eo(!o,"Replace exitBeforeEnter with mode='wait'");const l=(0,s.useContext)(xo).forceRender||function(){const e=io(),[t,n]=(0,s.useState)(0),r=(0,s.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,s.useCallback)((()=>co.postRender(r)),[r]),t]}()[0],c=io(),u=function(e){const t=[];return s.Children.forEach(e,(e=>{(0,s.isValidElement)(e)&&t.push(e)})),t}(e);let d=u;const m=(0,s.useRef)(new Map).current,p=(0,s.useRef)(d),f=(0,s.useRef)(new Map).current,h=(0,s.useRef)(!0);var g;if(oo((()=>{h.current=!1,function(e,t){e.forEach((e=>{const n=Co(e);t.set(n,e)}))}(u,f),p.current=d})),g=()=>{h.current=!0,f.clear(),m.clear()},(0,s.useEffect)((()=>()=>g()),[]),h.current)return s.createElement(s.Fragment,null,d.map((e=>s.createElement(vo,{key:Co(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:a},e))));d=[...d];const y=p.current.map(Co),v=u.map(Co),b=y.length;for(let e=0;e<b;e++){const t=y[e];-1!==v.indexOf(t)||m.has(t)||m.set(t,void 0)}return"wait"===a&&m.size&&(d=[]),m.forEach(((e,n)=>{if(-1!==v.indexOf(n))return;const o=f.get(n);if(!o)return;const h=y.indexOf(n);let g=e;if(!g){const e=()=>{f.delete(n),m.delete(n);const e=p.current.findIndex((e=>e.key===n));if(p.current.splice(e,1),!m.size){if(p.current=u,!1===c.current)return;l(),r&&r()}};g=s.createElement(vo,{key:Co(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:a},o),m.set(n,g)}d.splice(h,0,g)})),d=d.map((e=>{const t=e.key;return m.has(t)?e:s.createElement(vo,{key:Co(e),isPresent:!0,presenceAffectsLayout:i,mode:a},e)})),s.createElement(s.Fragment,null,m.size?d:d.map((e=>(0,s.cloneElement)(e))))},To=(0,s.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),ko=(0,s.createContext)({}),_o=(0,s.createContext)({strict:!1});function Ao(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Po(e){return"string"==typeof e||Array.isArray(e)}function Lo(e){return"object"==typeof e&&"function"==typeof e.start}const No=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Do=["initial",...No];function Oo(e){return Lo(e.animate)||Do.some((t=>Po(e[t])))}function Ro(e){return Boolean(Oo(e)||e.variants)}function Mo(e){return Array.isArray(e)?e.join(" "):e}const Fo={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},jo={};for(const e in Fo)jo[e]={isEnabled:t=>Fo[e].some((e=>!!t[e]))};const Vo=(0,s.createContext)({}),Io=Symbol.for("motionComponentSymbol");function Bo({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)jo[t]={...jo[t],...e[t]}}(e);const i=(0,s.forwardRef)((function(i,a){let l;const c={...(0,s.useContext)(To),...i,layoutId:Uo(i)},{isStatic:u}=c,d=function(e){const{initial:t,animate:n}=function(e,t){if(Oo(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Po(t)?t:void 0,animate:Po(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,s.useContext)(ko));return(0,s.useMemo)((()=>({initial:t,animate:n})),[Mo(t),Mo(n)])}(i),m=r(i,u);if(!u&&ro){d.visualElement=function(e,t,n,r){const{visualElement:o}=(0,s.useContext)(ko),i=(0,s.useContext)(_o),a=(0,s.useContext)(fo),l=(0,s.useContext)(To).reducedMotion,c=(0,s.useRef)();r=r||i.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:o,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:l}));const u=c.current;(0,s.useInsertionEffect)((()=>{u&&u.update(n,a)}));const d=(0,s.useRef)(Boolean(window.HandoffAppearAnimations));return oo((()=>{u&&(u.render(),d.current&&u.animationState&&u.animationState.animateChanges())})),(0,s.useEffect)((()=>{u&&(u.updateFeatures(),!d.current&&u.animationState&&u.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,d.current=!1)})),u}(o,m,c,t);const n=(0,s.useContext)(Vo),r=(0,s.useContext)(_o).strict;d.visualElement&&(l=d.visualElement.loadFeatures(c,r,e,n))}return s.createElement(ko.Provider,{value:d},l&&d.visualElement?s.createElement(l,{visualElement:d.visualElement,...c}):null,n(o,i,function(e,t,n){return(0,s.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Ao(n)&&(n.current=r))}),[t])}(m,d.visualElement,a),m,u,d.visualElement))}));return i[Io]=o,i}function Uo({layoutId:e}){const t=(0,s.useContext)(xo).id;return t&&void 0!==e?t+"-"+e:e}function Ho(e){function t(t,n={}){return Bo(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,r)=>(n.has(r)||n.set(r,t(r)),n.get(r))})}const zo=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function qo(e){return"string"==typeof e&&!e.includes("-")&&!!(zo.indexOf(e)>-1||/[A-Z]/.test(e))}const Wo={},$o=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zo=new Set($o);function Go(e,{layout:t,layoutId:n}){return Zo.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Wo[e]||"opacity"===e)}const Xo=e=>Boolean(e&&e.getVelocity),Yo={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ko=$o.length,Jo=e=>t=>"string"==typeof t&&t.startsWith(e),Qo=Jo("--"),ei=Jo("var(--"),ti=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ni=(e,t,n)=>Math.min(Math.max(n,e),t),ri={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},oi={...ri,transform:e=>ni(0,1,e)},ii={...ri,default:1},si=e=>Math.round(1e5*e)/1e5,ai=/(-)?([\d]*\.?[\d])+/g,li=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,ci=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function ui(e){return"string"==typeof e}const di=e=>({test:t=>ui(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),mi=di("deg"),pi=di("%"),fi=di("px"),hi=di("vh"),gi=di("vw"),yi={...pi,parse:e=>pi.parse(e)/100,transform:e=>pi.transform(100*e)},vi={...ri,transform:Math.round},bi={borderWidth:fi,borderTopWidth:fi,borderRightWidth:fi,borderBottomWidth:fi,borderLeftWidth:fi,borderRadius:fi,radius:fi,borderTopLeftRadius:fi,borderTopRightRadius:fi,borderBottomRightRadius:fi,borderBottomLeftRadius:fi,width:fi,maxWidth:fi,height:fi,maxHeight:fi,size:fi,top:fi,right:fi,bottom:fi,left:fi,padding:fi,paddingTop:fi,paddingRight:fi,paddingBottom:fi,paddingLeft:fi,margin:fi,marginTop:fi,marginRight:fi,marginBottom:fi,marginLeft:fi,rotate:mi,rotateX:mi,rotateY:mi,rotateZ:mi,scale:ii,scaleX:ii,scaleY:ii,scaleZ:ii,skew:mi,skewX:mi,skewY:mi,distance:fi,translateX:fi,translateY:fi,translateZ:fi,x:fi,y:fi,z:fi,perspective:fi,transformPerspective:fi,opacity:oi,originX:yi,originY:yi,originZ:fi,zIndex:vi,fillOpacity:oi,strokeOpacity:oi,numOctaves:vi};function xi(e,t,n,r){const{style:o,vars:i,transform:s,transformOrigin:a}=e;let l=!1,c=!1,u=!0;for(const e in t){const n=t[e];if(Qo(e)){i[e]=n;continue}const r=bi[e],d=ti(n,r);if(Zo.has(e)){if(l=!0,s[e]=d,!u)continue;n!==(r.default||0)&&(u=!1)}else e.startsWith("origin")?(c=!0,a[e]=d):o[e]=d}if(t.transform||(l||r?o.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},r,o){let i="";for(let t=0;t<Ko;t++){const n=$o[t];void 0!==e[n]&&(i+=`${Yo[n]||n}(${e[n]}) `)}return t&&!e.z&&(i+="translateZ(0)"),i=i.trim(),o?i=o(e,r?"":i):n&&r&&(i="none"),i}(e.transform,n,u,r):o.transform&&(o.transform="none")),c){const{originX:e="50%",originY:t="50%",originZ:n=0}=a;o.transformOrigin=`${e} ${t} ${n}`}}const wi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ei(e,t,n){for(const r in t)Xo(t[r])||Go(r,n)||(e[r]=t[r])}function Ci(e,t,n){const r={},o=function(e,t,n){const r={};return Ei(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,s.useMemo)((()=>{const r=wi();return xi(r,t,{enableHardwareAcceleration:!n},e),Object.assign({},r.vars,r.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=o,r}const Si=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Ti(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Si.has(e)}let ki=e=>!Ti(e);try{(_i=require("@emotion/is-prop-valid").default)&&(ki=e=>e.startsWith("on")?!Ti(e):_i(e))}catch(e){}var _i;function Ai(e,t,n){return"string"==typeof e?e:fi.transform(t+n*e)}const Pi={offset:"stroke-dashoffset",array:"stroke-dasharray"},Li={offset:"strokeDashoffset",array:"strokeDasharray"};function Ni(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,m){if(xi(e,c,u,m),d)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:h}=e;p.transform&&(h&&(f.transform=p.transform),delete p.transform),h&&(void 0!==o||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${Ai(t,e.x,e.width)} ${Ai(n,e.y,e.height)}`}(h,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==r&&(p.scale=r),void 0!==s&&function(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Pi:Li;e[i.offset]=fi.transform(-r);const s=fi.transform(t),a=fi.transform(n);e[i.array]=`${s} ${a}`}(p,s,a,l,!1)}const Di=()=>({...wi(),attrs:{}}),Oi=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Ri(e,t,n,r){const o=(0,s.useMemo)((()=>{const n=Di();return Ni(n,t,{enableHardwareAcceleration:!1},Oi(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};Ei(t,e.style,e),o.style={...t,...o.style}}return o}function Mi(e=!1){return(t,n,r,{latestValues:o},i)=>{const a=(qo(t)?Ri:Ci)(n,o,i,t),l=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(ki(o)||!0===n&&Ti(o)||!t&&!Ti(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),c={...l,...a,ref:r},{children:u}=n,d=(0,s.useMemo)((()=>Xo(u)?u.get():u),[u]);return(0,s.createElement)(t,{...c,children:d})}}const Fi=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function ji(e,{style:t,vars:n},r,o){Object.assign(e.style,t,o&&o.getProjectionStyles(r));for(const t in n)e.style.setProperty(t,n[t])}const Vi=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Ii(e,t,n,r){ji(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Vi.has(n)?n:Fi(n),t.attrs[n])}function Bi(e,t){const{style:n}=e,r={};for(const o in n)(Xo(n[o])||t.style&&Xo(t.style[o])||Go(o,e))&&(r[o]=n[o]);return r}function Ui(e,t){const n=Bi(e,t);for(const r in e)(Xo(e[r])||Xo(t[r]))&&(n[-1!==$o.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function Hi(e,t,n,r={},o={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,r,o)),t}const zi=e=>Array.isArray(e),qi=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Wi=e=>zi(e)?e[e.length-1]||0:e;function $i(e){const t=Xo(e)?e.get():e;return qi(t)?t.toValue():t}const Zi=e=>(t,n)=>{const r=(0,s.useContext)(ko),o=(0,s.useContext)(fo),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Gi(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():ho(i)};function Gi(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=$i(i[e]);let{initial:s,animate:a}=e;const l=Oo(e),c=Ro(e);t&&c&&!l&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===a&&(a=t.animate));let u=!!n&&!1===n.initial;u=u||!1===s;const d=u?a:s;return d&&"boolean"!=typeof d&&!Lo(d)&&(Array.isArray(d)?d:[d]).forEach((t=>{const n=Hi(e,t);if(!n)return;const{transitionEnd:r,transition:i,...s}=n;for(const e in s){let t=s[e];Array.isArray(t)&&(t=t[u?t.length-1:0]),null!==t&&(o[e]=t)}for(const e in r)o[e]=r[e]})),o}const Xi={useVisualState:Zi({scrapeMotionValuesFromProps:Ui,createRenderState:Di,onMount:(e,t,{renderState:n,latestValues:r})=>{co.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),co.render((()=>{Ni(n,r,{enableHardwareAcceleration:!1},Oi(t.tagName),e.transformTemplate),Ii(t,n)}))}})},Yi={useVisualState:Zi({scrapeMotionValuesFromProps:Bi,createRenderState:wi})};function Ki(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Ji=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function Qi(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const es=e=>t=>Ji(t)&&e(t,Qi(t));function ts(e,t,n,r){return Ki(e,t,es(n),r)}const ns=(e,t)=>n=>t(e(n)),rs=(...e)=>e.reduce(ns);function os(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const is=os("dragHorizontal"),ss=os("dragVertical");function as(e){let t=!1;if("y"===e)t=ss();else if("x"===e)t=is();else{const e=is(),n=ss();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function ls(){const e=as(!0);return!e||(e(),!1)}class cs{constructor(e){this.isMounted=!1,this.node=e}update(){}}function us(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return ts(e.current,n,((n,o)=>{if("touch"===n.type||ls())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&co.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const ds=(e,t)=>!!t&&(e===t||ds(e,t.parentElement));function ms(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,Qi(n))}const ps=new WeakMap,fs=new WeakMap,hs=e=>{const t=ps.get(e.target);t&&t(e)},gs=e=>{e.forEach(hs)};const ys={some:0,all:1},vs={inView:{Feature:class extends cs{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:ys[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;fs.has(n)||fs.set(n,{});const r=fs.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(gs,{root:e,...t})),r[o]}(t);return ps.set(e,n),r.observe(e),()=>{ps.delete(e),r.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=t?n:r;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends cs{constructor(){super(...arguments),this.removeStartListeners=so,this.removeEndListeners=so,this.removeAccessibleListeners=so,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=ts(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();co.update((()=>{ds(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=ts(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=rs(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Ki(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Ki(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&ms("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&co.update((()=>n(e,t)))}))})),ms("down",((e,t)=>{this.startPress(e,t)})))})),t=Ki(this.node.current,"blur",(()=>{this.isPressing&&ms("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=rs(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&co.update((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!ls()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&co.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=ts(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Ki(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=rs(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends cs{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=rs(Ki(this.node.current,"focus",(()=>this.onFocus())),Ki(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends cs{mount(){this.unmount=rs(us(this.node,!0),us(this.node,!1))}unmount(){}}}};function bs(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function xs(e,t,n){const r=e.getProps();return Hi(r,t,void 0!==n?n:r.custom,function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.get())),t}(e),function(e){const t={};return e.values.forEach(((e,n)=>t[n]=e.getVelocity())),t}(e))}const ws="data-"+Fi("framerAppearId"),Es=e=>1e3*e,Cs=e=>e/1e3,Ss=e=>Array.isArray(e)&&"number"==typeof e[0];function Ts(e){return Boolean(!e||"string"==typeof e&&_s[e]||Ss(e)||Array.isArray(e)&&e.every(Ts))}const ks=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,_s={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ks([0,.65,.55,1]),circOut:ks([.55,0,1,.45]),backIn:ks([.31,.01,.66,-.59]),backOut:ks([.33,1.53,.69,.99])};function As(e){if(e)return Ss(e)?ks(e):Array.isArray(e)?e.map(As):_s[e]}const Ps=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function Ls(e,t,n,r){if(e===t&&n===r)return so;return o=>0===o||1===o?o:Ps(function(e,t,n,r,o){let i,s,a=0;do{s=t+(n-t)/2,i=Ps(s,r,o)-e,i>0?n=s:t=s}while(Math.abs(i)>1e-7&&++a<12);return s}(o,0,1,e,n),t,r)}const Ns=Ls(.42,0,1,1),Ds=Ls(0,0,.58,1),Os=Ls(.42,0,.58,1),Rs=e=>Array.isArray(e)&&"number"!=typeof e[0],Ms=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Fs=e=>t=>1-e(1-t),js=e=>1-Math.sin(Math.acos(e)),Vs=Fs(js),Is=Ms(Vs),Bs=Ls(.33,1.53,.69,.99),Us=Fs(Bs),Hs=Ms(Us),zs={linear:so,easeIn:Ns,easeInOut:Os,easeOut:Ds,circIn:js,circInOut:Is,circOut:Vs,backIn:Us,backInOut:Hs,backOut:Bs,anticipate:e=>(e*=2)<1?.5*Us(e):.5*(2-Math.pow(2,-10*(e-1)))},qs=e=>{if(Array.isArray(e)){Eo(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return Ls(t,n,r,o)}return"string"==typeof e?(Eo(void 0!==zs[e],`Invalid easing type '${e}'`),zs[e]):e},Ws=(e,t)=>n=>Boolean(ui(n)&&ci.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),$s=(e,t,n)=>r=>{if(!ui(r))return r;const[o,i,s,a]=r.match(ai);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Zs={...ri,transform:e=>Math.round((e=>ni(0,255,e))(e))},Gs={test:Ws("rgb","red"),parse:$s("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zs.transform(e)+", "+Zs.transform(t)+", "+Zs.transform(n)+", "+si(oi.transform(r))+")"},Xs={test:Ws("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Gs.transform},Ys={test:Ws("hsl","hue"),parse:$s("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+pi.transform(si(t))+", "+pi.transform(si(n))+", "+si(oi.transform(r))+")"},Ks={test:e=>Gs.test(e)||Xs.test(e)||Ys.test(e),parse:e=>Gs.test(e)?Gs.parse(e):Ys.test(e)?Ys.parse(e):Xs.parse(e),transform:e=>ui(e)?e:e.hasOwnProperty("red")?Gs.transform(e):Ys.transform(e)},Js=(e,t,n)=>-n*e+n*t+e;function Qs(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}const ea=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},ta=[Xs,Gs,Ys];function na(e){const t=(e=>ta.find((t=>t.test(e))))(e);Eo(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Ys&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,i=0,s=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,a=2*n-r;o=Qs(a,r,e+1/3),i=Qs(a,r,e),s=Qs(a,r,e-1/3)}else o=i=s=n;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*s),alpha:r}}(n)),n}const ra=(e,t)=>{const n=na(e),r=na(t),o={...n};return e=>(o.red=ea(n.red,r.red,e),o.green=ea(n.green,r.green,e),o.blue=ea(n.blue,r.blue,e),o.alpha=Js(n.alpha,r.alpha,e),Gs.transform(o))},oa={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:so},ia={regex:li,countKey:"Colors",token:"${c}",parse:Ks.parse},sa={regex:ai,countKey:"Numbers",token:"${n}",parse:ri.parse};function aa(e,{regex:t,countKey:n,token:r,parse:o}){const i=e.tokenised.match(t);i&&(e["num"+n]=i.length,e.tokenised=e.tokenised.replace(t,r),e.values.push(...i.map(o)))}function la(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&aa(n,oa),aa(n,ia),aa(n,sa),n}function ca(e){return la(e).values}function ua(e){const{values:t,numColors:n,numVars:r,tokenised:o}=la(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(oa.token,e[o]):o<r+n?t.replace(ia.token,Ks.transform(e[o])):t.replace(sa.token,si(e[o]));return t}}const da=e=>"number"==typeof e?0:e,ma={test:function(e){var t,n;return isNaN(e)&&ui(e)&&((null===(t=e.match(ai))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(li))||void 0===n?void 0:n.length)||0)>0},parse:ca,createTransformer:ua,getAnimatableNone:function(e){const t=ca(e);return ua(e)(t.map(da))}},pa=(e,t)=>n=>`${n>0?t:e}`;function fa(e,t){return"number"==typeof e?n=>Js(e,t,n):Ks.test(e)?ra(e,t):e.startsWith("var(")?pa(e,t):ya(e,t)}const ha=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>fa(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ga=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=fa(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ya=(e,t)=>{const n=ma.createTransformer(t),r=la(e),o=la(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?rs(ha(r.values,o.values),n):(wo(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),pa(e,t))},va=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ba=(e,t)=>n=>Js(e,t,n);function xa(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(Eo(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?ba:"string"==typeof e?Ks.test(e)?ra:ya:Array.isArray(e)?ha:"object"==typeof e?ga:ba}(e[0]),i=e.length-1;for(let n=0;n<i;n++){let i=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||so:t;i=rs(e,i)}r.push(i)}return r}(t,r,o),a=s.length,l=t=>{let n=0;if(a>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const r=va(e[n],e[n+1],t);return s[n](r)};return n?t=>l(ni(e[0],e[i-1],t)):l}function wa({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=Rs(r)?r.map(qs):qs(r),i={done:!1,value:t[0]},s=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:function(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=va(0,t,r);e.push(Js(n,1,o))}}(t,e.length-1),t}(t),e),a=xa(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||Os)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function Ea(e,t){return t?e*(1e3/t):0}const Ca=5;function Sa(e,t,n){const r=Math.max(t-Ca,0);return Ea(n-e(r),t-r)}const Ta=.001,ka=.01,_a=10,Aa=.05,Pa=1;const La=12;function Na(e,t){return e*Math.sqrt(1-t*t)}const Da=["duration","bounce"],Oa=["stiffness","damping","mass"];function Ra(e,t){return t.some((t=>void 0!==e[t]))}function Ma({keyframes:e,restDelta:t,restSpeed:n,...r}){const o=e[0],i=e[e.length-1],s={done:!1,value:o},{stiffness:a,damping:l,mass:c,velocity:u,duration:d,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Ra(e,Oa)&&Ra(e,Da)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;wo(e<=Es(_a),"Spring duration must be 10 seconds or less");let s=1-t;s=ni(Aa,Pa,s),e=ni(ka,_a,Cs(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=Na(t,s),l=Math.exp(-o);return Ta-i/a*l},i=t=>{const r=t*s*e,i=r*n+n,a=Math.pow(s,2)*Math.pow(t,2)*e,l=Math.exp(-r),c=Na(Math.pow(t,2),s);return(-o(t)+Ta>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-Ta,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<La;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=Es(e),isNaN(a))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(a,2)*r;return{stiffness:t,damping:2*s*Math.sqrt(r*t),duration:e}}}(e);t={...t,...n,velocity:0,mass:1},t.isResolvedFromDuration=!0}return t}(r),p=u?-Cs(u):0,f=l/(2*Math.sqrt(a*c)),h=i-o,g=Cs(Math.sqrt(a/c)),y=Math.abs(h)<5;let v;if(n||(n=y?.01:2),t||(t=y?.005:.5),f<1){const e=Na(g,f);v=t=>{const n=Math.exp(-f*g*t);return i-n*((p+f*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===f)v=e=>i-Math.exp(-g*e)*(h+(p+g*h)*e);else{const e=g*Math.sqrt(f*f-1);v=t=>{const n=Math.exp(-f*g*t),r=Math.min(e*t,300);return i-n*((p+f*g*h)*Math.sinh(r)+e*h*Math.cosh(r))/e}}return{calculatedDuration:m&&d||null,next:e=>{const r=v(e);if(m)s.done=e>=d;else{let o=p;0!==e&&(o=f<1?Sa(v,e,r):0);const a=Math.abs(o)<=n,l=Math.abs(i-r)<=t;s.done=a&&l}return s.value=s.done?i:r,s}}}function Fa({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){const d=e[0],m={done:!1,value:d},p=e=>void 0===a?l:void 0===l||Math.abs(a-e)<Math.abs(l-e)?a:l;let f=n*t;const h=d+f,g=void 0===s?h:s(h);g!==h&&(f=g-d);const y=e=>-f*Math.exp(-e/r),v=e=>g+y(e),b=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let x,w;const E=e=>{(e=>void 0!==a&&e<a||void 0!==l&&e>l)(m.value)&&(x=e,w=Ma({keyframes:[m.value,p(m.value)],velocity:Sa(v,e,m.value),damping:o,stiffness:i,restDelta:c,restSpeed:u}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==x||(t=!0,b(e),E(e)),void 0!==x&&e>x?w.next(e-x):(!t&&b(e),m)}}}const ja=e=>{const t=({timestamp:t})=>e(t);return{start:()=>co.update(t,!0),stop:()=>uo(t),now:()=>mo.isProcessing?mo.timestamp:performance.now()}},Va=2e4;function Ia(e){let t=0,n=e.next(t);for(;!n.done&&t<Va;)t+=50,n=e.next(t);return t>=Va?1/0:t}const Ba={decay:Fa,inertia:Fa,tween:wa,keyframes:wa,spring:Ma};function Ua({autoplay:e=!0,delay:t=0,driver:n=ja,keyframes:r,type:o="keyframes",repeat:i=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:c,onComplete:u,onUpdate:d,...m}){let p,f,h=1,g=!1;const y=()=>{f=new Promise((e=>{p=e}))};let v;y();const b=Ba[o]||wa;let x;b!==wa&&"number"!=typeof r[0]&&(x=xa([0,100],r,{clamp:!1}),r=[0,100]);const w=b({...m,keyframes:r});let E;"mirror"===a&&(E=b({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let C="idle",S=null,T=null,k=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=Ia(w));const{calculatedDuration:_}=w;let A=1/0,P=1/0;null!==_&&(A=_+s,P=A*(i+1)-s);let L=0;const N=e=>{if(null===T)return;h>0&&(T=Math.min(T,e)),h<0&&(T=Math.min(e-P/h,T)),L=null!==S?S:Math.round(e-T)*h;const n=L-t*(h>=0?1:-1),o=h>=0?n<0:n>P;L=Math.max(n,0),"finished"===C&&null===S&&(L=P);let l=L,c=w;if(i){const e=L/A;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,i+1);const r=Boolean(t%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/A)):"mirror"===a&&(c=E));let o=ni(0,1,n);L>P&&(o="reverse"===a&&r?1:0),l=o*A}const u=o?{done:!1,value:r[0]}:c.next(l);x&&(u.value=x(u.value));let{done:m}=u;o||null===_||(m=h>=0?L>=P:L<=0);const p=null===S&&("finished"===C||"running"===C&&m);return d&&d(u.value),p&&R(),u},D=()=>{v&&v.stop(),v=void 0},O=()=>{C="idle",D(),p(),y(),T=k=null},R=()=>{C="finished",u&&u(),D(),p()},M=()=>{if(g)return;v||(v=n(N));const e=v.now();l&&l(),null!==S?T=e-S:T&&"finished"!==C||(T=e),"finished"===C&&y(),k=T,S=null,C="running",v.start()};e&&M();const F={then(e,t){return f.then(e,t)},get time(){return Cs(L)},set time(e){e=Es(e),L=e,null===S&&v&&0!==h?T=v.now()-e/h:S=e},get duration(){const e=null===w.calculatedDuration?Ia(w):w.calculatedDuration;return Cs(e)},get speed(){return h},set speed(e){e!==h&&v&&(h=e,F.time=Cs(L))},get state(){return C},play:M,pause:()=>{C="paused",S=L},stop:()=>{g=!0,"idle"!==C&&(C="idle",c&&c(),O())},cancel:()=>{null!==k&&N(k),O()},complete:()=>{C="finished"},sample:e=>(T=0,N(e))};return F}const Ha=function(e){let t;return()=>(void 0===t&&(t=Object.hasOwnProperty.call(Element.prototype,"animate")),t)}(),za=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);const qa={type:"spring",stiffness:500,damping:25,restSpeed:10},Wa={type:"keyframes",duration:.8},$a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Za=(e,{keyframes:t})=>t.length>2?Wa:Zo.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:qa:$a,Ga=(e,t)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!ma.test(t)&&"0"!==t||t.startsWith("url("))),Xa=new Set(["brightness","contrast","saturate","opacity"]);function Ya(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(ai)||[];if(!r)return e;const o=n.replace(r,"");let i=Xa.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Ka=/([a-z-]*)\(.*?\)/g,Ja={...ma,getAnimatableNone:e=>{const t=e.match(Ka);return t?t.map(Ya).join(" "):e}},Qa={...bi,color:Ks,backgroundColor:Ks,outlineColor:Ks,fill:Ks,stroke:Ks,borderColor:Ks,borderTopColor:Ks,borderRightColor:Ks,borderBottomColor:Ks,borderLeftColor:Ks,filter:Ja,WebkitFilter:Ja},el=e=>Qa[e];function tl(e,t){let n=el(e);return n!==Ja&&(n=ma),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const nl=e=>/^0[^.\s]+$/.test(e);function rl(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||nl(e):void 0}function ol(e,t){return e[t]||e.default||e}const il=(e,t,n,r={})=>o=>{const i=ol(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=Es(s);const l=function(e,t,n,r){const o=Ga(t,n);let i;i=Array.isArray(n)?[...n]:[null,n];const s=void 0!==r.from?r.from:e.get();let a;const l=[];for(let e=0;e<i.length;e++)null===i[e]&&(i[e]=0===e?s:i[e-1]),rl(i[e])&&l.push(e),"string"==typeof i[e]&&"none"!==i[e]&&"0"!==i[e]&&(a=i[e]);if(o&&l.length&&a)for(let e=0;e<l.length;e++)i[l[e]]=tl(t,a);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Ga(e,c),m=Ga(e,u);wo(d===m,`You are trying to animate ${e} from "${c}" to "${u}". ${c} is not an animatable value - to enable this animation set ${c} to a value animatable to ${u} via the \`style\` property.`);let p={keyframes:l,velocity:t.getVelocity(),ease:"easeOut",...i,delay:-a,onUpdate:e=>{t.set(e),i.onUpdate&&i.onUpdate(e)},onComplete:()=>{o(),i.onComplete&&i.onComplete()}};if(function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}(i)||(p={...p,...Za(e,p)}),p.duration&&(p.duration=Es(p.duration)),p.repeatDelay&&(p.repeatDelay=Es(p.repeatDelay)),!d||!m||!1===i.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:r}){const o=()=>(n&&n(e[e.length-1]),r&&r(),{time:0,speed:1,duration:0,play:so,pause:so,stop:so,then:e=>(e(),Promise.resolve()),cancel:so,complete:so});return t?Ua({keyframes:[0,1],duration:0,delay:t,onComplete:o}):o()}(p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){const n=function(e,t,{onUpdate:n,onComplete:r,...o}){if(!Ha()||!za.has(t)||o.repeatDelay||"mirror"===o.repeatType||0===o.damping||"inertia"===o.type)return!1;let i,s,a=!1;const l=()=>{s=new Promise((e=>{i=e}))};l();let{keyframes:c,duration:u=300,ease:d,times:m}=o;if(((e,t)=>"spring"===t.type||"backgroundColor"===e||!Ts(t.ease))(t,o)){const e=Ua({...o,repeat:0,delay:0});let t={done:!1,value:c[0]};const n=[];let r=0;for(;!t.done&&r<2e4;)t=e.sample(r),n.push(t.value),r+=10;m=void 0,c=n,u=r-10,d="linear"}const p=function(e,t,n,{delay:r=0,duration:o,repeat:i=0,repeatType:s="loop",ease:a,times:l}={}){const c={[t]:n};l&&(c.offset=l);const u=As(a);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:o,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(e.owner.current,t,c,{...o,duration:u,ease:d,times:m});o.syncStart&&(p.startTime=mo.isProcessing?mo.timestamp:document.timeline?document.timeline.currentTime:performance.now());const f=()=>p.cancel(),h=()=>{co.update(f),i(),l()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){return e[t&&"loop"!==n&&t%2==1?0:e.length-1]}(c,o)),r&&r(),h()},{then(e,t){return s.then(e,t)},attachTimeline(e){return p.timeline=e,p.onfinish=null,so},get time(){return Cs(p.currentTime||0)},set time(e){p.currentTime=Es(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return Cs(u)},play:()=>{a||(p.play(),uo(f))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=Ua({...o,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}h()},complete:()=>p.finish(),cancel:h}}(t,e,p);if(n)return n}return Ua(p)};function sl(e){return Boolean(Xo(e)&&e.add)}const al=e=>/^\-?\d*\.?\d+$/.test(e);function ll(e,t){-1===e.indexOf(t)&&e.push(t)}function cl(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class ul{constructor(){this.subscriptions=[]}add(e){return ll(this.subscriptions,e),()=>cl(this.subscriptions,e)}notify(e,t,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(let o=0;o<r;o++){const r=this.subscriptions[o];r&&r(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const dl={current:void 0};class ml{constructor(e,t={}){var n;this.version="10.16.4",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;const{delta:n,timestamp:r}=mo;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,co.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>co.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new ul);const n=this.events[e].add(t);return"change"===e?()=>{n(),co.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return dl.current&&dl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Ea(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pl(e,t){return new ml(e,t)}const fl=e=>t=>t.test(e),hl=[ri,fi,pi,mi,gi,hi,{test:e=>"auto"===e,parse:e=>e}],gl=e=>hl.find(fl(e)),yl=[...hl,Ks,ma],vl=e=>yl.find(fl(e));function bl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,pl(n))}function xl(e,t){if(t)return(t[e]||t.default||t).from}function wl({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function El(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...a}=e.makeTargetAnimatable(t);const l=e.getValue("willChange");r&&(i=r);const c=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const t in a){const r=e.getValue(t),o=a[t];if(!r||void 0===o||u&&wl(u,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[ws];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,co),s.syncStart=!0)}r.start(il(t,r,o,e.shouldReduceMotion&&Zo.has(t)?{type:!1}:s));const d=r.animation;sl(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return s&&Promise.all(c).then((()=>{s&&function(e,t){const n=xs(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)bl(e,t,Wi(i[t]))}(e,s)})),c}function Cl(e,t,n={}){const r=xs(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(El(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(r=0)=>{const{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(e,t,n=0,r=0,o=1,i){const s=[],a=(e.variantChildren.size-1)*r,l=1===o?(e=0)=>e*r:(e=0)=>a-e*r;return Array.from(e.variantChildren).sort(Sl).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(Cl(e,t,{...i,delay:n+l(r)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(s)}(e,t,i+r,s,a,n)}:()=>Promise.resolve(),{when:a}=o;if(a){const[e,t]="beforeChildren"===a?[i,s]:[s,i];return e().then((()=>t()))}return Promise.all([i(),s(n.delay)])}function Sl(e,t){return e.sortNodePosition(t)}const Tl=[...No].reverse(),kl=No.length;function _l(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Cl(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=Cl(e,t,n);else{const o="function"==typeof t?xs(e,t,n.custom):t;r=Promise.all(El(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}(e);const n={animate:Al(!0),whileInView:Al(),whileHover:Al(),whileTap:Al(),whileDrag:Al(),whileFocus:Al(),exit:Al()};let r=!0;const o=(t,n)=>{const r=xs(e,n);if(r){const{transition:e,transitionEnd:n,...o}=r;t={...t,...o,...n}}return t};function i(i,s){const a=e.getProps(),l=e.getVariantContext(!0)||{},c=[],u=new Set;let d={},m=1/0;for(let t=0;t<kl;t++){const h=Tl[t],g=n[h],y=void 0!==a[h]?a[h]:l[h],v=Po(y),b=h===s?g.isActive:null;!1===b&&(m=t);let x=y===l[h]&&y!==a[h]&&v;if(x&&r&&e.manuallyAnimateOnMount&&(x=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||Lo(y)||"boolean"==typeof y)continue;const w=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!bs(f,p));let E=w||h===s&&g.isActive&&!x&&v||t>m&&v;const C=Array.isArray(y)?y:[y];let S=C.reduce(o,{});!1===b&&(S={});const{prevResolvedValues:T={}}=g,k={...T,...S},_=e=>{E=!0,u.delete(e),g.needsAnimating[e]=!0};for(const e in k){const t=S[e],n=T[e];d.hasOwnProperty(e)||(t!==n?zi(t)&&zi(n)?!bs(t,n)||w?_(e):g.protectedKeys[e]=!0:void 0!==t?_(e):u.add(e):void 0!==t&&u.has(e)?_(e):g.protectedKeys[e]=!0)}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(d={...d,...S}),r&&e.blockInitialAnimation&&(E=!1),E&&!x&&c.push(...C.map((e=>({animation:e,options:{type:h,...i}}))))}var p,f;if(u.size){const t={};u.forEach((n=>{const r=e.getBaseTarget(n);void 0!==r&&(t[n]=r)})),c.push({animation:t})}let h=Boolean(c.length);return r&&!1===a.initial&&!e.manuallyAnimateOnMount&&(h=!1),r=!1,h?t(c):Promise.resolve()}return{animateChanges:i,setActive:function(t,r,o){var s;if(n[t].isActive===r)return Promise.resolve();null===(s=e.variantChildren)||void 0===s||s.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;const a=i(o,t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n}}function Al(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let Pl=0;const Ll={animation:{Feature:class extends cs{constructor(e){super(e),e.animationState||(e.animationState=_l(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),Lo(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends cs{constructor(){super(...arguments),this.id=Pl++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const o=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Nl=(e,t)=>Math.abs(e-t);class Dl{constructor(e,t,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Ml(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Nl(e.x,t.x),r=Nl(e.y,t.y);return Math.sqrt(n**2+r**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:r}=e,{timestamp:o}=mo;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ol(t,this.transformPagePoint),co.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=Ml("pointercancel"===e.type?this.lastMoveEventInfo:Ol(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Ji(e))return;this.handlers=t,this.transformPagePoint=n;const r=Ol(Qi(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=mo;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,Ml(r,this.history)),this.removeListeners=rs(ts(window,"pointermove",this.handlePointerMove),ts(window,"pointerup",this.handlePointerUp),ts(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),uo(this.updatePoint)}}function Ol(e,t){return t?{point:t(e.point)}:e}function Rl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ml({point:e},t){return{point:e,delta:Rl(e,jl(t)),offset:Rl(e,Fl(t)),velocity:Vl(t,.1)}}function Fl(e){return e[0]}function jl(e){return e[e.length-1]}function Vl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=jl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>Es(t)));)n--;if(!r)return{x:0,y:0};const i=Cs(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Il(e){return e.max-e.min}function Bl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Ul(e,t,n,r=.5){e.origin=r,e.originPoint=Js(t.min,t.max,e.origin),e.scale=Il(n)/Il(t),(Bl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Js(n.min,n.max,e.origin)-e.originPoint,(Bl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Hl(e,t,n,r){Ul(e.x,t.x,n.x,r?r.originX:void 0),Ul(e.y,t.y,n.y,r?r.originY:void 0)}function zl(e,t,n){e.min=n.min+t.min,e.max=e.min+Il(t)}function ql(e,t,n){e.min=t.min-n.min,e.max=e.min+Il(t)}function Wl(e,t,n){ql(e.x,t.x,n.x),ql(e.y,t.y,n.y)}function $l(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Zl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}const Gl=.35;function Xl(e,t,n){return{min:Yl(e,t),max:Yl(e,n)}}function Yl(e,t){return"number"==typeof e?e:e[t]||0}const Kl=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Jl=()=>({x:{min:0,max:0},y:{min:0,max:0}});function Ql(e){return[e("x"),e("y")]}function ec({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tc(e){return void 0===e||1===e}function nc({scale:e,scaleX:t,scaleY:n}){return!tc(e)||!tc(t)||!tc(n)}function rc(e){return nc(e)||oc(e)||e.z||e.rotate||e.rotateX||e.rotateY}function oc(e){return ic(e.x)||ic(e.y)}function ic(e){return e&&"0%"!==e}function sc(e,t,n){return n+t*(e-n)}function ac(e,t,n,r,o){return void 0!==o&&(e=sc(e,o,r)),sc(e,n,r)+t}function lc(e,t=0,n=1,r,o){e.min=ac(e.min,t,n,r,o),e.max=ac(e.max,t,n,r,o)}function cc(e,{x:t,y:n}){lc(e.x,t.translate,t.scale,t.originPoint),lc(e.y,n.translate,n.scale,n.originPoint)}function uc(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function dc(e,t){e.min=e.min+t,e.max=e.max+t}function mc(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Js(e.min,e.max,i);lc(e,t[n],t[r],s,t.scale)}const pc=["x","scaleX","originX"],fc=["y","scaleY","originY"];function hc(e,t){mc(e.x,t,pc),mc(e.y,t,fc)}function gc(e,t){return ec(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}const yc=new WeakMap;class vc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Jl(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new Dl(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(Qi(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=as(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ql((e=>{let t=this.getAxisMotionValue(e).get()||0;if(pi.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Il(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&co.update((()=>o(e,t)),!1,!0);const{animationState:i}=this.visualElement;i&&i.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:s}=t;if(r&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint()}))}stop(e,t){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&co.update((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:r}=this.getProps();if(!n||!bc(e,r,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?Js(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Js(n,e,r.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){const{dragConstraints:e,dragElastic:t}=this.getProps(),{layout:n}=this.visualElement.projection||{},r=this.constraints;e&&Ao(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:$l(e.x,n,o),y:$l(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Gl){return!1===e?e=0:!0===e&&(e=Gl),{x:Xl(e,"left","right"),y:Xl(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Ql((e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ao(e))return!1;const n=e.current;Eo(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(e,t,n){const r=gc(e,n),{scroll:o}=t;return o&&(dc(r.x,o.offset.x),dc(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Zl(e.x,t.x),y:Zl(e.y,t.y)}}(r.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ec(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Ql((s=>{if(!bc(s,t,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const c=r?200:1e6,u=r?40:1e7,d={type:"inertia",velocity:n?e[s]:0,bounceStiffness:c,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(il(e,n,0,t))}stopAnimation(){Ql((e=>this.getAxisMotionValue(e).stop()))}getAxisMotionValue(e){const t="_drag"+e.toUpperCase(),n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ql((t=>{const{drag:n}=this.getProps();if(!bc(t,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(t);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[t];o.set(e[t]-Js(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ao(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Ql((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Il(e),o=Il(t);return o>r?n=va(t.min,t.max-r,e.min):r>o&&(n=va(e.min,e.max-o,t.min)),ni(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ql((t=>{if(!bc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Js(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;yc.set(this.visualElement,this);const e=ts(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Ao(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),t();const o=Ki(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ql((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),r(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Gl,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function bc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const xc=e=>(t,n)=>{e&&co.update((()=>e(t,n)))},wc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ec(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Cc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!fi.test(e))return e;e=parseFloat(e)}return`${Ec(e,t.target.x)}% ${Ec(e,t.target.y)}%`}},Sc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ma.parse(e);if(o.length>5)return r;const i=ma.createTransformer(e),s="number"!=typeof o[0]?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;o[0+s]/=a,o[1+s]/=l;const c=Js(a,l,.5);return"number"==typeof o[2+s]&&(o[2+s]/=c),"number"==typeof o[3+s]&&(o[3+s]/=c),i(o)}};class Tc extends s.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=_c,Object.assign(Wo,i),o&&(t.group&&t.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),wc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||co.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function kc(e){const[t,n]=function(){const e=(0,s.useContext)(fo);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,s.useId)();return(0,s.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,s.useContext)(xo);return s.createElement(Tc,{...e,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(Vo),isPresent:t,safeToRemove:n})}const _c={borderRadius:{...Cc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Cc,borderTopRightRadius:Cc,borderBottomLeftRadius:Cc,borderBottomRightRadius:Cc,boxShadow:Sc},Ac=["TopLeft","TopRight","BottomLeft","BottomRight"],Pc=Ac.length,Lc=e=>"string"==typeof e?parseFloat(e):e,Nc=e=>"number"==typeof e||fi.test(e);function Dc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const Oc=Mc(0,.5,Vs),Rc=Mc(.5,.95,so);function Mc(e,t,n){return r=>r<e?0:r>t?1:n(va(e,t,r))}function Fc(e,t){e.min=t.min,e.max=t.max}function jc(e,t){Fc(e.x,t.x),Fc(e.y,t.y)}function Vc(e,t,n,r,o){return e=sc(e-=t,1/n,r),void 0!==o&&(e=sc(e,1/o,r)),e}function Ic(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(pi.test(t)&&(t=parseFloat(t),t=Js(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=Js(i.min,i.max,r);e===i&&(a-=t),e.min=Vc(e.min,t,n,a,o),e.max=Vc(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Bc=["x","scaleX","originX"],Uc=["y","scaleY","originY"];function Hc(e,t,n,r){Ic(e.x,t,Bc,n?n.x:void 0,r?r.x:void 0),Ic(e.y,t,Uc,n?n.y:void 0,r?r.y:void 0)}function zc(e){return 0===e.translate&&1===e.scale}function qc(e){return zc(e.x)&&zc(e.y)}function Wc(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function $c(e){return Il(e.x)/Il(e.y)}class Zc{constructor(){this.members=[]}add(e){ll(this.members,e),e.scheduleRender()}remove(e){if(cl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Gc(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(r=`translate3d(${o}px, ${i}px, 0) `),1===t.x&&1===t.y||(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{rotate:e,rotateX:t,rotateY:o}=n;e&&(r+=`rotate(${e}deg) `),t&&(r+=`rotateX(${t}deg) `),o&&(r+=`rotateY(${o}deg) `)}const s=e.x.scale*t.x,a=e.y.scale*t.y;return 1===s&&1===a||(r+=`scale(${s}, ${a})`),r||"none"}const Xc=(e,t)=>e.depth-t.depth;class Yc{constructor(){this.children=[],this.isDirty=!1}add(e){ll(this.children,e),this.isDirty=!0}remove(e){cl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Xc),this.isDirty=!1,this.children.forEach(e)}}const Kc=["","X","Y","Z"];let Jc=0;const Qc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function eu({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Jc++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{var e;Qc.totalNodes=Qc.resolvedTargetDeltas=Qc.recalculatedProjection=0,this.nodes.forEach(ru),this.nodes.forEach(uu),this.nodes.forEach(du),this.nodes.forEach(ou),e=Qc,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Yc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new ul),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=performance.now(),r=({timestamp:t})=>{const o=t-n;o>=250&&(uo(r),e(o-250))};return co.read(r,!0),()=>uo(r)}(r),wc.hasAnimatedSinceResize&&(wc.hasAnimatedSinceResize=!1,this.nodes.forEach(cu))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||s.getDefaultTransition()||yu,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Wc(this.targetLayout,r)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...ol(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||cu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,uo(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mu),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(su);this.isUpdating||this.nodes.forEach(au),this.isUpdating=!1,this.nodes.forEach(lu),this.nodes.forEach(tu),this.nodes.forEach(nu),this.clearAllSnapshots();const e=performance.now();mo.delta=ni(0,1e3/60,e-mo.timestamp),mo.timestamp=e,mo.isProcessing=!0,po.update.process(mo),po.preRender.process(mo),po.render.process(mo),mo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(iu),this.sharedNodes.forEach(pu)}scheduleUpdateProjection(){co.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){co.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Jl(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!qc(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||rc(this.latestValues)||i)&&(o(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var r;return e&&(n=this.removeTransform(n)),xu((r=n).x),xu(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Jl();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(dc(t.x,n.offset.x),dc(t.y,n.offset.y)),t}removeElementScroll(e){const t=Jl();jc(t,e);for(let n=0;n<this.path.length;n++){const r=this.path[n],{scroll:o,options:i}=r;if(r!==this.root&&o&&i.layoutScroll){if(o.isRoot){jc(t,e);const{scroll:n}=this.root;n&&(dc(t.x,-n.offset.x),dc(t.y,-n.offset.y))}dc(t.x,o.offset.x),dc(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=Jl();jc(n,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&hc(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rc(r.latestValues)&&hc(n,r.latestValues)}return rc(this.latestValues)&&hc(n,this.latestValues),n}removeTransform(e){const t=Jl();jc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!rc(n.latestValues))continue;nc(n.latestValues)&&n.updateSnapshot();const r=Jl();jc(r,n.measurePageBox()),Hc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rc(this.latestValues)&&Hc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==mo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(e||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=mo.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jl(),this.relativeTargetOrigin=Jl(),Wl(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),jc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=Jl(),this.targetWithTransforms=Jl()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,zl(s.x,a.x,l.x),zl(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):jc(this.target,this.layout.layoutBox),cc(this.target,this.targetDelta)):jc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Jl(),this.relativeTargetOrigin=Jl(),Wl(this.relativeTargetOrigin,this.target,e.target),jc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Qc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!nc(this.parent.latestValues)&&!oc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===mo.timestamp&&(r=!1),r)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;jc(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){const o=n.length;if(!o)return;let i,s;t.x=t.y=1;for(let a=0;a<o;a++){i=n[a],s=i.projectionDelta;const o=i.instance;o&&o.style&&"contents"===o.style.display||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&hc(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,cc(e,s)),r&&rc(i.latestValues)&&hc(e,i.latestValues))}t.x=uc(t.x),t.y=uc(t.y)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);const{target:l}=t;if(!l)return void(this.projectionTransform&&(this.projectionDelta=Kl(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Kl(),this.projectionDeltaWithTransform=Kl());const c=this.projectionTransform;Hl(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Gc(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Qc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(e,t=!1){const n=this.snapshot,r=n?n.latestValues:{},o={...this.latestValues},i=Kl();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=Jl(),a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,u=Boolean(a&&!c&&!0===this.options.crossfade&&!this.path.some(gu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;fu(i.x,e.x,n),fu(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Wl(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){hu(e.x,t.x,n.x,r),hu(e.y,t.y,n.y,r)}(this.relativeTarget,this.relativeTargetOrigin,s,n),d&&function(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d=Jl()),jc(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Js(0,void 0!==n.opacity?n.opacity:1,Oc(r)),e.opacityExit=Js(void 0!==t.opacity?t.opacity:1,0,Rc(r))):i&&(e.opacity=Js(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let o=0;o<Pc;o++){const i=`border${Ac[o]}Radius`;let s=Dc(t,i),a=Dc(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||Nc(s)===Nc(a)?(e[i]=Math.max(Js(Lc(s),Lc(a),r),0),(pi.test(a)||pi.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Js(t.rotate||0,n.rotate||0,r))}(o,r,this.latestValues,n,u,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(uo(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=co.update((()=>{wc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Xo(0)?0:pl(0);return r.start(il("",r,1e3,n)),r.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:r,latestValues:o}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&wu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Jl();const t=Il(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Il(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}jc(t,n),hc(t,o),Hl(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Zc),this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;const r={};for(let t=0;t<Kc.length;t++){const o="rotate"+Kc[t];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}e.render();for(const t in r)e.setStaticValue(t,r[t]);e.scheduleRender()}getProjectionStyles(e={}){var t,n;const r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";const o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=$i(e.pointerEvents)||"",r.transform=o?o(this.latestValues,""):"none",r;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=$i(e.pointerEvents)||""),this.hasProjected&&!rc(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Gc(this.projectionDeltaWithTransform,this.treeScale,s),o&&(r.transform=o(s,r.transform));const{x:a,y:l}=this.projectionDelta;r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,i.animationValues?r.opacity=i===this?null!==(n=null!==(t=s.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=i===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0;for(const e in Wo){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Wo[e],o="none"===r.transform?s[e]:t(s[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)r[n[t]]=o}else r[e]=o}return this.options.layoutId&&(r.pointerEvents=i===this?$i(e.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(su),this.root.sharedNodes.clear()}}}function tu(e){e.updateLayout()}function nu(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:r}=e.layout,{animationType:o}=e.options,i=n.source!==e.layout.source;"size"===o?Ql((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Il(r);r.min=t[e].min,r.max=r.min+o})):wu(o,n.layoutBox,t)&&Ql((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=Il(t[r]);o.max=o.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+s)}));const s=Kl();Hl(s,t,n.layoutBox);const a=Kl();i?Hl(a,e.applyTransform(r,!0),n.measuredBox):Hl(a,t,n.layoutBox);const l=!qc(s);let c=!1;if(!e.resumeFrom){const r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s=Jl();Wl(s,n.layoutBox,o.layoutBox);const a=Jl();Wl(a,t,i.layoutBox),Wc(s,a)||(c=!0),r.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function ru(e){Qc.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function ou(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iu(e){e.clearSnapshot()}function su(e){e.clearMeasurements()}function au(e){e.isLayoutDirty=!1}function lu(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function cu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function uu(e){e.resolveTargetDelta()}function du(e){e.calcProjection()}function mu(e){e.resetRotation()}function pu(e){e.removeLeadSnapshot()}function fu(e,t,n){e.translate=Js(t.translate,0,n),e.scale=Js(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function hu(e,t,n,r){e.min=Js(t.min,n.min,r),e.max=Js(t.max,n.max,r)}function gu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const yu={duration:.45,ease:[.4,0,.1,1]},vu=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),bu=vu("applewebkit/")&&!vu("chrome/")?Math.round:so;function xu(e){e.min=bu(e.min),e.max=bu(e.max)}function wu(e,t,n){return"position"===e||"preserve-aspect"===e&&!Bl($c(t),$c(n),.2)}const Eu=eu({attachResizeListener:(e,t)=>Ki(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Cu={current:void 0},Su=eu({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cu.current){const e=new Eu({});e.mount(window),e.setOptions({layoutScroll:!0}),Cu.current=e}return Cu.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),Tu={pan:{Feature:class extends cs{constructor(){super(...arguments),this.removePointerDownListener=so}onPointerDown(e){this.session=new Dl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:xc(e),onStart:xc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&co.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=ts(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends cs{constructor(e){super(e),this.removeGroupControls=so,this.removeListeners=so,this.controls=new vc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||so}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Su,MeasureLayout:kc}},ku=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function _u(e,t,n=1){Eo(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,o]=function(e){const t=ku.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]}(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const e=i.trim();return al(e)?parseFloat(e):e}return ei(o)?_u(o,t,n+1):o}const Au=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Pu=e=>Au.has(e),Lu=e=>e===ri||e===fi,Nu=(e,t)=>parseFloat(e.split(", ")[t]),Du=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return Nu(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?Nu(t[1],e):0}},Ou=new Set(["x","y","z"]),Ru=$o.filter((e=>!Ou.has(e))),Mu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:Du(4,13),y:Du(5,14)};Mu.translateX=Mu.x,Mu.translateY=Mu.y;function Fu(e,t,n,r){return(e=>Object.keys(e).some(Pu))(t)?((e,t,n={},r={})=>{t={...t},r={...r};const o=Object.keys(t).filter(Pu);let i=[],s=!1;const a=[];if(o.forEach((o=>{const l=e.getValue(o);if(!e.hasValue(o))return;let c=n[o],u=gl(c);const d=t[o];let m;if(zi(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=gl(c);for(let n=t;n<e&&null!==d[n];n++)m?Eo(gl(d[n])===m,"All keyframes must be of the same type"):(m=gl(d[n]),Eo(m===u||Lu(u)&&Lu(m),"Keyframes must be of the same dimension as the current value"))}else m=gl(d);if(u!==m)if(Lu(u)&&Lu(m)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&m===fi&&(t[o]=d.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==m?void 0:m.transform)&&(0===c||0===d)?0===c?l.set(m.transform(c)):t[o]=u.transform(d):(s||(i=function(e){const t=[];return Ru.forEach((n=>{const r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),s=!0),a.push(o),r[o]=void 0!==r[o]?r[o]:t[o],l.jump(d))})),a.length){const n=a.indexOf("height")>=0?window.pageYOffset:null,o=((e,t,n)=>{const r=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:s}=i,a={};"none"===s&&t.setStaticValue("display",e.display||"block"),n.forEach((e=>{a[e]=Mu[e](r,i)})),t.render();const l=t.measureViewportBox();return n.forEach((n=>{const r=t.getValue(n);r&&r.jump(a[n]),e[n]=Mu[n](l,i)})),e})(t,e,a);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),ro&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}})(e,t,n,r):{target:t,transitionEnd:r}}const ju={current:null},Vu={current:!1},Iu=new WeakMap,Bu=Object.keys(jo),Uu=Bu.length,Hu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],zu=Do.length;class qu{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>co.render(this.render,!1,!0);const{latestValues:s,renderState:a}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=a,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=i,this.isControllingVariants=Oo(t),this.isVariantNode=Ro(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(const e in c){const t=c[e];void 0!==s[e]&&Xo(t)&&(t.set(s[e],!1),sl(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Iu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Vu.current||function(){if(Vu.current=!0,ro)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ju.current=e.matches;e.addListener(t),t()}else ju.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||ju.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Iu.delete(this.current),this.projection&&this.projection.unmount(),uo(this.notifyUpdate),uo(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){const n=Zo.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&co.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{r(),o()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,r,o){let i,s;for(let e=0;e<Uu;e++){const n=Bu[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=jo[n];a&&(i=a),r(t)&&(!this.features[n]&&o&&(this.features[n]=new o(this)),l&&(s=l))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);const{layoutId:e,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=t;this.projection.setOptions({layoutId:e,layout:n,alwaysMeasureLayout:Boolean(r)||s&&Ao(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:o,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(const e in this.features){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Jl()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Hu.length;t++){const n=Hu[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){const{willChange:r}=t;for(const o in t){const i=t[o],s=n[o];if(Xo(i))e.addValue(o,i),sl(r)&&r.add(o);else if(Xo(s))e.addValue(o,pl(i,{owner:e})),sl(r)&&r.remove(o);else if(s!==i)if(e.hasValue(o)){const t=e.getValue(o);!t.hasAnimated&&t.set(i)}else{const t=e.getStaticValue(o);e.addValue(o,pl(void 0!==t?t:i,{owner:e}))}}for(const r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<zu;e++){const n=Do[e],r=this.props[n];(Po(r)||!1===r)&&(t[n]=r)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=pl(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(t=Hi(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||Xo(o)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new ul),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Wu extends qu{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:r},o){let i=function(e,t,n){const r={};for(const o in e){const e=xl(o,t);if(void 0!==e)r[o]=e;else{const e=n.getValue(o);e&&(r[o]=e.get())}}return r}(n,e||{},this);if(r&&(t&&(t=r(t)),n&&(n=r(n)),i&&(i=r(i))),o){!function(e,t,n){var r,o;const i=Object.keys(t).filter((t=>!e.hasValue(t))),s=i.length;if(s)for(let a=0;a<s;a++){const s=i[a],l=t[s];let c=null;Array.isArray(l)&&(c=l[0]),null===c&&(c=null!==(o=null!==(r=n[s])&&void 0!==r?r:e.readValue(s))&&void 0!==o?o:t[s]),null!=c&&("string"==typeof c&&(al(c)||nl(c))?c=parseFloat(c):!vl(c)&&ma.test(l)&&(c=tl(s,l)),e.addValue(s,pl(c,{owner:e})),void 0===n[s]&&(n[s]=c),null!==c&&e.setBaseTarget(s,c))}}(this,n,i);const e=((e,t,n,r)=>{const o=function(e,{...t},n){const r=e.current;if(!(r instanceof Element))return{target:t,transitionEnd:n};n&&(n={...n}),e.values.forEach((e=>{const t=e.get();if(!ei(t))return;const n=_u(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!ei(o))continue;const i=_u(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return Fu(e,t=o.target,n,r=o.transitionEnd)})(this,n,i,t);t=e.transitionEnd,n=e.target}return{transition:e,transitionEnd:t,...n}}}class $u extends Wu{readValueFromInstance(e,t){if(Zo.has(t)){const e=el(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(Qo(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return gc(e,t)}build(e,t,n,r){xi(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Bi(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Xo(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){ji(e,t,n,r)}}class Zu extends Wu{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Zo.has(t)){const e=el(t);return e&&e.default||0}return t=Vi.has(t)?t:Fi(t),e.getAttribute(t)}measureInstanceViewportBox(){return Jl()}scrapeMotionValuesFromProps(e,t){return Ui(e,t)}build(e,t,n,r){Ni(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Ii(e,t,0,r)}mount(e){this.isSVGTag=Oi(e.tagName),super.mount(e)}}const Gu=(e,t)=>qo(e)?new Zu(t,{enableHardwareAcceleration:!1}):new $u(t,{enableHardwareAcceleration:!0}),Xu={...Ll,...vs,...Tu,layout:{ProjectionNode:Su,MeasureLayout:kc}},Yu=Ho(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...qo(e)?Xi:Yi,preloadedFeatures:n,useRender:Mi(t),createVisualElement:r,Component:e}}(e,t,Xu,Gu)));var Ku,Ju=(0,e.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(ne.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),Qu=window.wp.apiFetch,ed=o.n(Qu);const td="/extendify/v1/assist/support-articles-data",nd={getItem:async()=>await ed()({path:td}),setItem:async(e,t)=>await ed()({path:td,method:"POST",data:{state:t}})},rd={articles:[],recentArticles:[],viewedArticles:[],activeCategory:null,searchTerm:"",...null!==(Ku=(window.extAssistData.userData.supportArticlesData?.data||{})?.state)&&void 0!==Ku?Ku:{}},od=sn(pn(cn((e=>({...rd,pushArticle(t){const{slug:n,title:r}=t;e((e=>{const o=(new Date).toISOString(),i=o,s=e.viewedArticles.find((e=>e.slug===n));return{articles:[t,...e.articles],recentArticles:[t,...e.recentArticles.slice(0,9)],viewedArticles:[...e.viewedArticles.filter((e=>e.slug!==n)),s?{...s,count:s.count+1,lastViewedAt:o}:{slug:n,title:r,firstViewedAt:i,lastViewedAt:o,count:1}]}}))},popArticle(){e((e=>({articles:e.articles.slice(1)})))},clearArticles(){e({articles:[]})},setActiveCategory(t){e({activeCategory:t})},reset(){e({articles:[],activeCategory:null,searchTerm:""})},updateTitle(t,n){e((e=>({articles:e.articles.map((e=>(e.slug===t&&(e.title=n),e)))})))},clearSearchTerm(){e({searchTerm:""})},setSearchTerm(t){e({searchTerm:t})}})),{name:"Extendify Assist Knowledge Base"}),{name:"extendify-assist-knowledge-base",storage:dn((()=>nd)),skipHydration:!0,partialize:e=>(delete e.articles,delete e.activeCategory,delete e.searchTerm,e)}));function id(t){return(0,e.createElement)("svg",{width:"111",height:"93",viewBox:"0 0 111 93",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},(0,e.createElement)("path",{d:"M14.5101 87.2398C13.3358 90.2964 16.3444 93.2964 19.3977 92.1131L83.0531 65.0925L39.2382 22.4141L14.5101 87.2398Z",fill:"#495683"}),(0,e.createElement)("path",{d:"M40.2877 20.4995C36.3109 24.4124 42.7996 37.4558 54.7806 49.6327C66.7617 61.8097 79.6982 68.5091 83.6746 64.5962C87.6515 60.6834 81.1626 47.6398 69.1815 35.463C59.517 25.6405 49.2321 19.3822 43.5285 19.3828C42.1614 19.383 41.0566 19.7428 40.2877 20.4995Z",fill:"#2A3453"}),(0,e.createElement)("path",{d:"M34.2276 35.5482L33.7734 36.7374C33.7734 36.7393 33.7734 36.7413 33.7714 36.745C32.9333 41.096 37.9937 50.1253 46.3655 58.6339C54.4862 66.8873 63.1487 72.0336 67.6437 71.6321L69.788 70.722L74.5851 68.6868C73.5111 68.8561 72.1976 68.7082 70.7024 68.2774C65.3515 66.7413 57.6872 61.5758 50.4106 54.1803C43.3562 47.0103 38.4029 39.5096 36.7851 34.1605C36.3386 32.6887 36.1476 31.3786 36.2352 30.2852L34.2276 35.5482Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M28.0033 51.8643L27.8588 52.2422C27.8588 52.2442 27.8588 52.2462 27.8569 52.2481C26.9798 55.3069 30.699 62.0787 36.9658 68.4509C43.3477 74.9363 50.19 78.7863 53.1799 77.7709C53.186 77.7689 53.1895 77.7669 53.1934 77.7648L53.5014 77.6362L58.9633 75.3164C57.9282 75.7277 56.4508 75.5835 54.6846 74.9658C50.7841 73.6011 45.4804 69.9227 40.4276 64.7882C35.4825 59.7628 31.9351 54.5173 30.5667 50.6187C29.9605 48.8857 29.781 47.4198 30.1047 46.3594L28.0033 51.8643Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M22.4938 66.3067V66.3088L22.1664 67.1665C21.9033 69.3261 24.3282 73.5798 28.2773 77.5935C32.4528 81.8371 36.9223 84.381 38.9535 83.8079L39.3509 83.6403L44.2223 81.572C43.152 81.8135 41.5655 81.3867 39.7134 80.4219C37.2789 79.1547 34.3844 76.9579 31.6009 74.1275C28.8776 71.3596 26.7607 68.496 25.5211 66.0728C24.5426 64.1665 24.1079 62.5329 24.3516 61.4375L22.4938 66.3067Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M17.6223 79.0764C17.6223 79.0764 17.6223 79.0784 17.6203 79.0784L17.4352 79.5675C17.291 80.788 18.6574 83.1856 20.8834 85.4467C23.1446 87.7451 25.5596 89.1603 26.7645 88.9828H26.7665L27.2263 88.7861L31.1579 87.1174C30.1093 87.3239 28.2771 86.5131 26.273 84.9984C25.3824 84.3298 24.4583 83.5207 23.5539 82.6008C22.6963 81.7294 21.9359 80.8402 21.3006 79.9846C19.8446 78.0216 19.0298 76.2185 19.131 75.1211L17.6223 79.0764Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M105.061 51.8608C105.061 53.294 106.222 54.4556 107.655 54.4556C109.088 54.4556 110.25 53.294 110.25 51.8608C110.25 50.4275 109.088 49.2656 107.655 49.2656C106.222 49.2656 105.061 50.4275 105.061 51.8608Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M101.401 34.3311C101.401 36.3521 103.039 37.9907 105.06 37.9907C107.081 37.9907 108.719 36.3521 108.719 34.3311C108.719 32.31 107.081 30.6719 105.06 30.6719C103.039 30.6719 101.401 32.31 101.401 34.3311Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M85.2651 78.0852C85.2651 80.106 86.9037 81.7446 88.9244 81.7446C90.9454 81.7446 92.5837 80.106 92.5837 78.0852C92.5837 76.0641 90.9454 74.4258 88.9244 74.4258C86.9037 74.4258 85.2651 76.0641 85.2651 78.0852Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M64.5986 70.4947C64.5986 73.3612 66.9221 75.6847 69.7885 75.6847C72.6548 75.6847 74.9779 73.3612 74.9779 70.4947C74.9779 67.6282 72.6548 65.3047 69.7885 65.3047C66.9221 65.3047 64.5986 67.6282 64.5986 70.4947Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M83.1626 31.3154C83.1626 34.1817 85.4863 36.5055 88.3527 36.5055C91.2188 36.5055 93.5423 34.1817 93.5423 31.3154C93.5423 28.449 91.2188 26.125 88.3527 26.125C85.4863 26.125 83.1626 28.449 83.1626 31.3154Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M0.75 32.3154C0.75 35.1817 3.07369 37.5055 5.94006 37.5055C8.8062 37.5055 11.1297 35.1817 11.1297 32.3154C11.1297 29.449 8.8062 27.125 5.94006 27.125C3.07369 27.125 0.75 29.449 0.75 32.3154Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M85.7578 6.7825C85.7578 8.21584 86.9194 9.37751 88.3527 9.37751C89.7858 9.37751 90.9477 8.21584 90.9477 6.7825C90.9477 5.34938 89.7858 4.1875 88.3527 4.1875C86.9194 4.1875 85.7578 5.34938 85.7578 6.7825Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M24.0698 34.3311C24.0698 36.3521 25.7081 37.9907 27.7291 37.9907C29.7501 37.9907 31.3884 36.3521 31.3884 34.3311C31.3884 32.31 29.7501 30.6719 27.7291 30.6719C25.7081 30.6719 24.0698 32.31 24.0698 34.3311Z",fill:"#F5995C"}),(0,e.createElement)("path",{d:"M23.8223 16.169C23.8223 17.6023 24.9841 18.7638 26.4172 18.7638C27.8503 18.7638 29.0121 17.6023 29.0121 16.169C29.0121 14.7359 27.8503 13.5742 26.4172 13.5742C24.9841 13.5742 23.8223 14.7359 23.8223 16.169Z",fill:"#758BD2"}),(0,e.createElement)("path",{d:"M46.7744 3.0625C55.0321 9.74224 56.3113 21.8517 49.6318 30.1097",stroke:"#F5995C",strokeWidth:"4.48332",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M77.8042 8.66016C76.7538 12.07 69.3024 9.77439 68.2518 13.1842C67.2014 16.5942 74.6526 18.8898 73.6022 22.2998C72.5516 25.7099 65.1002 23.4141 64.0498 26.8239C62.9992 30.2343 70.4506 32.5301 69.3998 35.9404C68.3492 39.3508 60.8978 37.055 59.8472 40.4655",stroke:"#F5995C",strokeWidth:"4.48332",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,e.createElement)("path",{d:"M69.4951 54.7159C77.5638 47.8088 89.7037 48.7506 96.6105 56.8195",stroke:"#F5995C",strokeWidth:"4.48332",strokeMiterlimit:"10",strokeLinecap:"round"}))}var sd=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M6.87171 7C7.02416 7 7.17037 7.05737 7.27818 7.15948C7.38598 7.2616 7.44654 7.40009 7.44654 7.54451V10.8115C7.44654 11.2448 7.62823 11.6603 7.95164 11.9666C8.27504 12.273 8.71367 12.4451 9.17104 12.4451H16.9807L14.3032 9.90984C14.2497 9.85922 14.2073 9.79911 14.1784 9.73297C14.1495 9.66682 14.1346 9.59593 14.1346 9.52433C14.1346 9.45273 14.1495 9.38184 14.1784 9.31569C14.2073 9.24955 14.2497 9.18945 14.3032 9.13882C14.4111 9.03658 14.5575 8.97914 14.7101 8.97914C14.7857 8.97914 14.8606 8.99324 14.9304 9.02064C15.0002 9.04804 15.0637 9.08819 15.1171 9.13882L18.7754 12.6041C18.8289 12.6546 18.8714 12.7147 18.9003 12.7809C18.9293 12.847 18.9442 12.9179 18.9442 12.9896C18.9442 13.0612 18.9293 13.1321 18.9003 13.1983C18.8714 13.2644 18.8289 13.3245 18.7754 13.3751L15.1171 16.8403C15.0092 16.9426 14.8628 17 14.7101 17C14.5575 17 14.4111 16.9426 14.3032 16.8403C14.1952 16.7381 14.1346 16.5994 14.1346 16.4548C14.1346 16.3102 14.1952 16.1715 14.3032 16.0693L16.9807 13.5341H9.17104C8.40876 13.5341 7.67771 13.2472 7.1387 12.7367C6.59969 12.2261 6.29688 11.5336 6.29688 10.8115V7.54451C6.29687 7.40009 6.35744 7.2616 6.46524 7.15948C6.57304 7.05737 6.71925 7 6.87171 7Z"})),ad=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M12,4C7.584,4 4,7.584 4,12C4,16.416 7.584,20 12,20C16.416,20 20,16.416 20,12C20,7.584 16.416,4 12,4ZM17.968,9.696L15.744,10.616C15.336,9.528 14.48,8.664 13.384,8.264L14.304,6.04C15.984,6.68 17.32,8.016 17.968,9.696ZM12,14.4C10.672,14.4 9.6,13.328 9.6,12C9.6,10.672 10.672,9.6 12,9.6C13.328,9.6 14.4,10.672 14.4,12C14.4,13.328 13.328,14.4 12,14.4ZM9.704,6.032L10.64,8.256C9.536,8.656 8.664,9.528 8.256,10.632L6.032,9.704C6.68,8.016 8.016,6.68 9.704,6.032ZM6.032,14.296L8.256,13.376C8.664,14.48 9.528,15.344 10.632,15.744L9.696,17.968C8.016,17.32 6.68,15.984 6.032,14.296ZM14.304,17.968L13.384,15.744C14.48,15.336 15.344,14.472 15.744,13.368L17.968,14.304C17.32,15.984 15.984,17.32 14.304,17.968Z"})),ld=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M19.773,11.573L18.679,12.667L12,5.988L5.321,12.667L4.227,11.573L12,3.8L16.129,7.929L16.129,5.865L18.194,5.865L18.194,9.994L19.773,11.573ZM18.194,13.637L18.194,19.8L5.806,19.8L5.806,13.637L12,7.454L18.194,13.637ZM15.297,13.725C15.394,13.637 15.432,13.501 15.387,13.378L15.388,13.376C15.326,13.208 15.251,13.047 15.165,12.892L15.099,12.778C15.006,12.623 14.901,12.476 14.787,12.338C14.704,12.237 14.566,12.202 14.441,12.242L13.881,12.419C13.74,12.463 13.586,12.435 13.462,12.355C13.393,12.311 13.322,12.27 13.249,12.232C13.116,12.164 13.015,12.045 12.984,11.902L12.858,11.327C12.83,11.199 12.731,11.097 12.601,11.076C12.406,11.043 12.206,11.027 12.001,11.027C11.797,11.027 11.596,11.043 11.402,11.077C11.272,11.099 11.173,11.2 11.145,11.329L11.019,11.903C10.987,12.047 10.885,12.166 10.754,12.233C10.68,12.27 10.61,12.312 10.541,12.356C10.415,12.436 10.263,12.466 10.121,12.421L9.561,12.243C9.437,12.204 9.299,12.237 9.215,12.339C9.101,12.477 8.997,12.624 8.904,12.779L8.837,12.894C8.751,13.049 8.676,13.21 8.614,13.378C8.569,13.501 8.607,13.637 8.705,13.725L9.141,14.123C9.251,14.222 9.302,14.368 9.294,14.517C9.293,14.558 9.292,14.599 9.292,14.641C9.292,14.683 9.293,14.724 9.294,14.765C9.302,14.912 9.249,15.059 9.141,15.159L8.705,15.555C8.607,15.643 8.569,15.78 8.614,15.903C8.676,16.071 8.751,16.231 8.837,16.387L8.904,16.501C8.997,16.656 9.101,16.803 9.215,16.941C9.299,17.041 9.437,17.077 9.561,17.037L10.12,16.858C10.261,16.813 10.415,16.842 10.539,16.923C10.608,16.967 10.679,17.008 10.752,17.046C10.884,17.113 10.987,17.232 11.018,17.376L11.143,17.95C11.171,18.079 11.27,18.18 11.4,18.202C11.595,18.234 11.795,18.251 12,18.251C12.205,18.251 12.405,18.234 12.6,18.202C12.729,18.18 12.828,18.079 12.857,17.95L12.982,17.376C13.015,17.232 13.116,17.113 13.247,17.046C13.321,17.009 13.391,16.967 13.461,16.923C13.586,16.842 13.739,16.813 13.88,16.858L14.44,17.036C14.564,17.075 14.703,17.041 14.786,16.94C14.9,16.802 15.005,16.655 15.098,16.5L15.164,16.385C15.25,16.23 15.325,16.069 15.387,15.901C15.432,15.778 15.394,15.641 15.297,15.554L14.861,15.157C14.751,15.059 14.7,14.912 14.707,14.764C14.708,14.723 14.71,14.682 14.71,14.639C14.71,14.597 14.708,14.556 14.707,14.515C14.7,14.368 14.752,14.222 14.861,14.122L15.297,13.725ZM12.8,15.438C12.588,15.649 12.301,15.769 12.001,15.769C11.702,15.769 11.415,15.649 11.203,15.438C10.991,15.226 10.872,14.939 10.872,14.639C10.872,14.34 10.991,14.053 11.203,13.841C11.415,13.629 11.702,13.51 12.001,13.51C12.301,13.51 12.588,13.629 12.8,13.841C13.011,14.053 13.13,14.34 13.13,14.639C13.13,14.939 13.011,15.226 12.8,15.438Z"})),cd=(0,e.memo)((t=>{const{className:n,...r}=t;return(0,e.createElement)("svg",{className:n,viewBox:"0 0 2524 492",xmlns:"http://www.w3.org/2000/svg",...r},(0,e.createElement)("path",{d:"M609.404 378.5C585.07 378.5 563.404 373 544.404 362C525.737 350.667 511.07 335.333 500.404 316C489.737 296.333 484.404 273.833 484.404 248.5C484.404 222.833 489.57 200.167 499.904 180.5C510.237 160.833 524.737 145.5 543.404 134.5C562.07 123.167 583.404 117.5 607.404 117.5C632.404 117.5 653.904 122.833 671.904 133.5C689.904 143.833 703.737 158.333 713.404 177C723.404 195.667 728.404 218 728.404 244V262.5L516.404 263L517.404 224H667.904C667.904 207 662.404 193.333 651.404 183C640.737 172.667 626.237 167.5 607.904 167.5C593.57 167.5 581.404 170.5 571.404 176.5C561.737 182.5 554.404 191.5 549.404 203.5C544.404 215.5 541.904 230.167 541.904 247.5C541.904 274.167 547.57 294.333 558.904 308C570.57 321.667 587.737 328.5 610.404 328.5C627.07 328.5 640.737 325.333 651.404 319C662.404 312.667 669.57 303.667 672.904 292H729.404C724.07 319 710.737 340.167 689.404 355.5C668.404 370.833 641.737 378.5 609.404 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M797.529 372H728.029L813.029 251L728.029 125H799.029L853.529 209L906.029 125H974.529L890.529 250.5L972.029 372H902.029L849.029 290.5L797.529 372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M994.142 125H1150.14V176H994.142V125ZM1102.64 372H1041.64V48H1102.64V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1278.62 378.5C1254.29 378.5 1232.62 373 1213.62 362C1194.96 350.667 1180.29 335.333 1169.62 316C1158.96 296.333 1153.62 273.833 1153.62 248.5C1153.62 222.833 1158.79 200.167 1169.12 180.5C1179.46 160.833 1193.96 145.5 1212.62 134.5C1231.29 123.167 1252.62 117.5 1276.62 117.5C1301.62 117.5 1323.12 122.833 1341.12 133.5C1359.12 143.833 1372.96 158.333 1382.62 177C1392.62 195.667 1397.62 218 1397.62 244V262.5L1185.62 263L1186.62 224H1337.12C1337.12 207 1331.62 193.333 1320.62 183C1309.96 172.667 1295.46 167.5 1277.12 167.5C1262.79 167.5 1250.62 170.5 1240.62 176.5C1230.96 182.5 1223.62 191.5 1218.62 203.5C1213.62 215.5 1211.12 230.167 1211.12 247.5C1211.12 274.167 1216.79 294.333 1228.12 308C1239.79 321.667 1256.96 328.5 1279.62 328.5C1296.29 328.5 1309.96 325.333 1320.62 319C1331.62 312.667 1338.79 303.667 1342.12 292H1398.62C1393.29 319 1379.96 340.167 1358.62 355.5C1337.62 370.833 1310.96 378.5 1278.62 378.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1484.44 372H1423.44V125H1479.94L1484.94 157C1492.61 144.667 1503.44 135 1517.44 128C1531.78 121 1547.28 117.5 1563.94 117.5C1594.94 117.5 1618.28 126.667 1633.94 145C1649.94 163.333 1657.94 188.333 1657.94 220V372H1596.94V234.5C1596.94 213.833 1592.28 198.5 1582.94 188.5C1573.61 178.167 1560.94 173 1544.94 173C1525.94 173 1511.11 179 1500.44 191C1489.78 203 1484.44 219 1484.44 239V372Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1798.38 378.5C1774.38 378.5 1753.71 373.167 1736.38 362.5C1719.38 351.5 1706.04 336.333 1696.38 317C1687.04 297.667 1682.38 275.167 1682.38 249.5C1682.38 223.833 1687.04 201.167 1696.38 181.5C1706.04 161.5 1719.88 145.833 1737.88 134.5C1755.88 123.167 1777.21 117.5 1801.88 117.5C1819.21 117.5 1835.04 121 1849.38 128C1863.71 134.667 1874.71 144.167 1882.38 156.5V0H1942.88V372H1886.88L1882.88 333.5C1875.54 347.5 1864.21 358.5 1848.88 366.5C1833.88 374.5 1817.04 378.5 1798.38 378.5ZM1811.88 322.5C1826.21 322.5 1838.54 319.5 1848.88 313.5C1859.21 307.167 1867.21 298.333 1872.88 287C1878.88 275.333 1881.88 262.167 1881.88 247.5C1881.88 232.5 1878.88 219.5 1872.88 208.5C1867.21 197.167 1859.21 188.333 1848.88 182C1838.54 175.333 1826.21 172 1811.88 172C1797.88 172 1785.71 175.333 1775.38 182C1765.04 188.333 1757.04 197.167 1751.38 208.5C1746.04 219.833 1743.38 232.833 1743.38 247.5C1743.38 262.167 1746.04 275.167 1751.38 286.5C1757.04 297.833 1765.04 306.667 1775.38 313C1785.71 319.333 1797.88 322.5 1811.88 322.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M1996.45 372V125H2057.45V372H1996.45ZM2026.45 75.5C2016.11 75.5 2007.28 72 1999.95 65C1992.95 57.6667 1989.45 48.8333 1989.45 38.5C1989.45 28.1667 1992.95 19.5 1999.95 12.5C2007.28 5.50001 2016.11 2.00002 2026.45 2.00002C2036.78 2.00002 2045.45 5.50001 2052.45 12.5C2059.78 19.5 2063.45 28.1667 2063.45 38.5C2063.45 48.8333 2059.78 57.6667 2052.45 65C2045.45 72 2036.78 75.5 2026.45 75.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2085.97 125H2240.97V176H2085.97V125ZM2241.47 2.5V54.5C2238.14 54.5 2234.64 54.5 2230.97 54.5C2227.64 54.5 2224.14 54.5 2220.47 54.5C2205.14 54.5 2194.8 58.1667 2189.47 65.5C2184.47 72.8333 2181.97 82.6667 2181.97 95V372H2121.47V95C2121.47 72.3333 2125.14 54.1667 2132.47 40.5C2139.8 26.5 2150.14 16.3333 2163.47 10C2176.8 3.33334 2192.3 0 2209.97 0C2214.97 0 2220.14 0.166671 2225.47 0.5C2231.14 0.833329 2236.47 1.49999 2241.47 2.5Z",fill:"currentColor"}),(0,e.createElement)("path",{d:"M2330.4 125L2410.9 353L2377.9 415.5L2265.9 125H2330.4ZM2272.4 486.5V436H2308.9C2316.9 436 2323.9 435 2329.9 433C2335.9 431.333 2341.24 428 2345.9 423C2350.9 418 2355.07 410.667 2358.4 401L2460.9 125H2523.9L2402.9 427C2393.9 449.667 2382.57 466.167 2368.9 476.5C2355.24 486.833 2338.24 492 2317.9 492C2309.24 492 2301.07 491.5 2293.4 490.5C2286.07 489.833 2279.07 488.5 2272.4 486.5Z",fill:"currentColor"}),(0,e.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M226.926 25.1299H310.197C333.783 25.1299 342.32 27.5938 350.948 32.1932C359.576 36.8108 366.326 43.5822 370.941 52.1969C375.556 60.8298 378 69.3715 378 92.9707V176.289C378 199.888 375.537 208.43 370.941 217.063C366.326 225.696 359.558 232.449 350.948 237.066C347.091 239.131 343.244 240.83 338.064 242.047V308.355C338.064 344.802 334.261 357.994 327.162 371.327C320.034 384.66 309.583 395.09 296.285 402.221C282.96 409.353 269.775 413.13 233.349 413.13H104.744C68.3172 413.13 55.1327 409.325 41.8073 402.221C28.4819 395.09 18.0583 384.632 10.9308 371.327C3.80323 358.023 0 344.802 0 308.355V179.706C0 143.259 3.80323 130.067 10.9026 116.734C18.0301 103.401 28.4819 92.9431 41.8073 85.8116C55.1045 78.7082 68.3172 74.9028 104.744 74.9028H159.808C160.841 64.0747 162.996 58.1666 166.165 52.2151C170.78 43.5822 177.547 36.8108 186.175 32.1932C194.785 27.5938 203.34 25.1299 226.926 25.1299ZM184.128 78.1641C184.128 62.7001 196.658 50.1641 212.114 50.1641H324.991C340.448 50.1641 352.978 62.7001 352.978 78.1641V191.096C352.978 206.56 340.448 219.096 324.991 219.096H212.114C196.658 219.096 184.128 206.56 184.128 191.096V78.1641Z",fill:"currentColor"}))})),ud=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M10.578,17.689L13.422,17.689C13.422,18.471 12.782,19.111 12,19.111C11.218,19.111 10.578,18.471 10.578,17.689ZM9.156,16.978L14.844,16.978L14.844,15.556L9.156,15.556L9.156,16.978ZM17.333,10.222C17.333,12.939 15.442,14.389 14.652,14.844L9.348,14.844C8.558,14.389 6.667,12.939 6.667,10.222C6.667,7.278 9.056,4.889 12,4.889C14.944,4.889 17.333,7.278 17.333,10.222ZM15.911,10.222C15.911,8.068 14.155,6.311 12,6.311C9.845,6.311 8.089,8.068 8.089,10.222C8.089,11.979 9.148,12.988 9.76,13.422L14.24,13.422C14.852,12.988 15.911,11.979 15.911,10.222ZM20.796,8.708L19.822,9.156L20.796,9.604L21.244,10.578L21.692,9.604L22.667,9.156L21.692,8.708L21.244,7.733L20.796,8.708ZM19.111,7.733L19.78,6.268L21.244,5.6L19.78,4.932L19.111,3.467L18.443,4.932L16.978,5.6L18.443,6.268L19.111,7.733Z"})),dd=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M20,6.544L10.872,15.68L7.48,12.288L8.608,11.16L10.872,13.424L18.872,5.424L20,6.544ZM18.232,10.576C18.336,11.032 18.4,11.512 18.4,12C18.4,15.536 15.536,18.4 12,18.4C8.464,18.4 5.6,15.536 5.6,12C5.6,8.464 8.464,5.6 12,5.6C13.264,5.6 14.432,5.968 15.424,6.6L16.576,5.448C15.28,4.536 13.704,4 12,4C7.584,4 4,7.584 4,12C4,16.416 7.584,20 12,20C16.416,20 20,16.416 20,12C20,11.048 19.824,10.136 19.52,9.288L18.232,10.576Z"})),md=(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)("path",{d:"M18.72,8.267L20,8.267L20,17.653C20,18.949 18.95,20 17.654,20L6.56,20L6.56,18.72L17.654,18.72C18.243,18.72 18.72,18.242 18.72,17.653L18.72,8.267Z"}),(0,e.createElement)("path",{d:"M16.8,5.387L16.8,15.413C16.8,16.179 16.179,16.8 15.413,16.8L5.387,16.8C4.621,16.8 4,16.179 4,15.413L4,5.387C4,4.621 4.621,4 5.387,4L15.413,4C16.179,4 16.8,4.621 16.8,5.387ZM15.52,5.387C15.52,5.328 15.472,5.28 15.413,5.28L5.387,5.28C5.328,5.28 5.28,5.328 5.28,5.387L5.28,15.413C5.28,15.472 5.328,15.52 5.387,15.52L15.413,15.52C15.472,15.52 15.52,15.472 15.52,15.413L15.52,5.387Z"}),(0,e.createElement)("path",{d:"M9.573,13.839L8.667,12.934L10.775,10.827L8.667,8.719L9.573,7.814L12.585,10.827L9.573,13.839Z"}));function pd(t){return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...t},(0,e.createElement)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM8 14.5V5.5L14 10L8 14.5Z"}))}function fd(t){return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",...t},(0,e.createElement)("path",{d:"M10 0C4.48 0 0 4.48 0 10C0 15.52 4.48 20 10 20C15.52 20 20 15.52 20 10C20 4.48 15.52 0 10 0ZM10 16.5C6.69 16.5 4 13.81 4 10.5H6C6 12.71 7.79 14.5 10 14.5C12.21 14.5 14 12.71 14 10.5C14 8.26 12.15 6.41 9.84 6.51L11.41 8.08L10 9.5L6 5.5L10 1.5L11.41 2.91L9.81 4.51C13.28 4.4 16 7.18 16 10.5C16 13.81 13.31 16.5 10 16.5Z"}))}const hd=()=>{const n=window.extAssistData.resourceData.supportArticles,{navigateTo:r}=yp(),{pushArticle:o,clearArticles:i,reset:s}=od();if(n&&0===n?.length)return(0,e.createElement)("div",{className:"assist-knowledge-base-module w-full bg-white p-4 lg:p-8"},(0,t.__)("No support articles found...","extendify-local"));const a=JSON.parse(JSON.stringify(n)).sort(((e,t)=>e.id-t.id)).slice(0,5);return(0,e.createElement)("div",{id:"assist-knowledge-base-module",className:"w-full bg-white p-4 lg:p-8 text-base"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h3",{className:"text-lg leading-tight m-0 flex-1"},(0,t.__)("Knowledge Base","extendify-local")),(0,e.createElement)("a",{onClick:s,href:"admin.php?page=extendify-assist#knowledge-base",className:"inline-flex items-center no-underline hover:underline text-sm text-design-main"},(0,t.__)("Show all","extendify-local"),(0,e.createElement)(te,{icon:Ju,className:"fill-current"}))),(0,e.createElement)("div",{className:"w-full mx-auto text-sm mt-4 flex flex-col gap-2",id:"assist-knowledge-base-module-list"},a.map((({slug:t,title:n})=>(0,e.createElement)("button",{"aria-label":n,type:"button",key:t,onClick:e=>{e.preventDefault(),i(),o({slug:t,title:n}),r("knowledge-base")},className:"flex items-center gap-2 no-underline hover:underline hover:text-design-main bg-transparent p-0 w-full cursor-pointer"},(0,e.createElement)(te,{icon:sd,className:"text-gray-600 fill-current"}),(0,e.createElement)("span",{className:"leading-snug text-left -mt-px"},n))))))};var gd=o(184),yd=o.n(gd);const vd={"site-type":{step:(0,t.__)("Site Industry","extendify-local"),title:(0,t.__)("Let's Start Building Your Website","extendify-local"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify-local"),buttonText:(0,t.__)("Select Site Industry","extendify-local")},"site-title":{step:(0,t.__)("Site Title","extendify-local"),title:(0,t.__)("Continue Building Your Website","extendify-local"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify-local"),buttonText:(0,t.__)("Set Site Title","extendify-local")},goals:{step:(0,t.__)("Goals","extendify-local"),title:(0,t.__)("Continue Building Your Website","extendify-local"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify-local"),buttonText:(0,t.__)("Select Site Goals","extendify-local")},layout:{step:(0,t.__)("Design","extendify-local"),title:(0,t.__)("Continue Building Your Website","extendify-local"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify-local"),buttonText:(0,t.__)("Select Site Design","extendify-local")},pages:{step:(0,t.__)("Pages","extendify-local"),title:(0,t.__)("Continue Building Your Website","extendify-local"),description:(0,t.__)("Create a super-fast, beautiful, and fully customized site in minutes with our Site Launcher.","extendify-local"),buttonText:(0,t.__)("Select Site Pages","extendify-local")}},bd=()=>{const[t,n]=(0,e.useState)();let r=!1;return(0,e.useEffect)((()=>{t||n((()=>{const e=JSON.parse(localStorage.getItem(`extendify-pages-${window.extAssistData.siteId}`))||{state:{}},t=e?.state?.currentPageSlug;return Object.keys(vd).includes(t)?t:"site-type"})())}),[t]),(0,e.createElement)("div",{className:"w-full border border-gray-300 text-base bg-white relative mb-6 pt-8 rounded overflow-hidden"},(0,e.createElement)("img",{className:"max-w-lg w-full block mx-auto",src:window.extAssistData.asset_path+"/extendify-preview.png"}),(0,e.createElement)("div",{className:"px-3 mx-6 text-center"},(0,e.createElement)("h2",{className:"text-2xl mb-4 mt-8"},vd[t]?.title),(0,e.createElement)("p",{className:"my-4 text-base"},vd[t]?.description),(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-launch`,className:"inline-block rounded my-4 px-4 py-2 bg-design-main text-white border-none no-underline cursor-pointer"},vd[t]?.buttonText)),(0,e.createElement)("div",{className:"justify-between items-center mt-4 py-6 px-20 flex bg-gray-50"},Object.keys(vd).map(((n,o)=>(n===t&&(r=!0),(0,e.createElement)(e.Fragment,{key:n},(0,e.createElement)(xd,{reached:r,stepName:vd[n].step,current:n===t}),o!==Object.keys(vd).length-1&&(0,e.createElement)("div",{className:yd()("hidden lg:block border-0 border-b-2 border-solid h-0 grow w-full",{"border-design-main":!r,"border-gray-300":r})})))))))},xd=({reached:t,current:n,stepName:r,bgColor:o})=>(0,e.createElement)("div",{className:"flex-none text-sm flex items-center gap-x-2"},(0,e.createElement)("span",{style:{background:t?void 0:o},className:yd()("w-6 h-6 rounded-full flex items-center justify-center text-white",{"disc-checked bg-design-main border-design-main/10":!t,"disc-number bg-gray-300":t&&!n,"border-dashed border-2 border-design-main":n})},!t&&(0,e.createElement)("span",{className:"dashicons dashicons-saved"})),(0,e.createElement)("span",{className:"sr-only"},r)),wd=()=>{const n=window.extAssistData.resourceData.quickLinks;return 0===n.length?(0,e.createElement)("div",{className:"assist-quick-links-module w-full bg-white p-4 lg:p-8"},(0,t.__)("No quick links found...","extendify-local")):(0,e.createElement)("div",{id:"assist-quick-links-module",className:"w-full bg-white p-4 lg:p-8"},(0,e.createElement)("h3",{className:"text-lg leading-tight m-0"},(0,t.__)("Quick Links","extendify-local")),(0,e.createElement)("div",{className:"grid grid-cols-1 xs:grid-cols-2 gap-4 mt-4",id:"assist-quick-links-module-list"},n.map((t=>(0,e.createElement)("a",{key:t.slug,className:"flex items-center no-underline hover:underline text-black hover:text-design-main text-sm",href:"view-site"==t.slug?`${window.extAssistData.home}`:`${window.extAssistData.adminUrl}${t.internalLink}`},(0,e.createElement)("span",null,t.name),(0,e.createElement)(te,{icon:Ju,className:"fill-current"}))))))};var Ed,Cd=(0,e.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(ne.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const Sd={viewedRecommendations:[],dismissedRecommendations:[],...null!==(Ed=(window.extAssistData.userData.recommendationData?.data||{})?.state)&&void 0!==Ed?Ed:{}},Td={getItem:async()=>JSON.stringify(await Yr.get("assist/recommendation-data")),setItem:async(e,t)=>{return await(n=t,Yr.post("assist/recommendation-data",{data:n}));var n},removeItem:()=>{}},kd=sn(pn(((e,t)=>({...Sd,track(t){const n=(new Date).toISOString(),r=n;e((({viewedRecommendations:e})=>{const o=e.find((e=>e.slug===t));return{viewedRecommendations:[...e.filter((e=>e.slug!==t)),o?{...o,count:o.count+1,lastViewedAt:n}:{slug:t,firstViewedAt:r,lastViewedAt:n,count:1}]}}))},isDismissedRecommendation(e){return t().dismissedRecommendations.some((t=>t.id===e))},dismissRecommendation(n){if(t().isDismissedRecommendation(n))return;const r={id:n,dismissedAt:(new Date).toISOString()};e((e=>({dismissedRecommendations:[...e.dismissedRecommendations,r]})))}})),{name:"extendify-assist-recommendations",storage:dn((()=>Td)),skipHydration:!0})),_d=({rec:r})=>{const{track:o,isDismissedRecommendation:i,dismissRecommendation:s}=kd();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{key:r.slug,className:"w-full p-2 lg:p-4 relative"},(0,e.createElement)("div",{className:"flex flex-col"},(0,e.createElement)("h3",{className:"m-0 mb-2 text-lg"},r.title),(0,e.createElement)("p",{className:"m-0 text-sm"},r.description),(0,e.createElement)("a",{className:"px-3 py-2 mt-4 w-max leading-tight min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded relative cursor-pointer text-center no-underline text-sm",href:"externalLink"===r.linkType?`${r.externalLink}`:`${window.extAssistData.adminUrl}${r.internalLink}`,onClick:()=>o(r.slug),target:"externalLink"===r.linkType?"_blank":"",rel:"externalLink"===r.linkType?"noreferrer":void 0},(0,e.createElement)("span",null,r.buttonText))),i(r.slug)?(0,e.createElement)("div",{className:"w-5"}):(0,e.createElement)(n.Dropdown,{className:"w-5 absolute top-0 right-0 m-2 lg:m-4",position:"bottom left",popoverProps:{placement:"bottom-end"},renderContent:({onClose:n})=>(0,e.createElement)("button",{onClick:()=>{n(),s(r.slug)},type:"button",className:"-m-2 p-2 px-4 text-gray-900 text-sm border-0 cursor-pointer rounded-none bg-white hover:bg-gray-100 text-center no-underline"},(0,t.__)("Dismiss","extendify-local")),renderToggle:({onToggle:t})=>(0,e.createElement)("button",{onClick:t,type:"button",className:"p-0 text-white text-xs border-0 rounded cursor-pointer bg-transparent text-center no-underline relative"},(0,e.createElement)(te,{icon:Cd,className:""}))})))};var Ad;const Pd=`extendify-site-selection-${window.extAssistData.siteId}`,Ld={siteType:{},siteInformation:{title:void 0},siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[],...null!==(Ad=(window.extAssistData.userData.userSelectionData?.data||{})?.state)&&void 0!==Ad?Ad:{}},Nd={getItem:async()=>JSON.stringify(await Yr.get("assist/user-selection-data")),setItem:async(e,t)=>{return await(n=t,Yr.post("assist/user-selection-data",{data:n}));var n},removeItem:()=>{}},Dd=sn(pn(cn((()=>({...Ld})),{name:"Extendify User Selections"}),{name:Pd,storage:dn((()=>Nd)),skipHydration:!0}));var Od;const Rd={activeTests:[],seenTasks:[],completedTasks:[],inProgressTasks:[],...null!==(Od=(window.extAssistData.userData.taskData?.data||{})?.state)&&void 0!==Od?Od:{}},Md={getItem:async()=>JSON.stringify(await Yr.get("assist/task-data")),setItem:async(e,t)=>{return await(n=t,Yr.post("assist/task-data",{data:n}));var n},removeItem:()=>{}},Fd=sn(pn(cn(((e,t)=>({...Rd,isCompleted(e){return t().completedTasks.some((t=>t?.id===e))},completeTask(n){t().isCompleted(n)||(e((e=>({completedTasks:[...e.completedTasks,{id:n,completedAt:(new Date).toISOString()}]}))),window.dispatchEvent(new CustomEvent("extendify-assist-task-completed",{detail:{...t()}})))},dismissTask(n){t().completeTask(n),e((e=>{const{completedTasks:t}=e,r=t.find((e=>e.id===n));return{completedTasks:[...t.filter((e=>e.id!==n)),{...r,dismissed:!0}]}}))},isSeen(e){return t().seenTasks.some((t=>t?.id===e))},seeTask(n){if(t().isSeen(n))return;const r={id:n,firstSeenAt:(new Date).toISOString()};e((e=>({seenTasks:[...e.seenTasks,r]})))},uncompleteTask(t){e((e=>({completedTasks:e.completedTasks.filter((e=>e.id!==t))})))},toggleCompleted(e){t().isCompleted(e)?t().uncompleteTask(e):t().completeTask(e)}})),{name:"Extendify Assist Tasks"}),{name:"extendify-assist-tasks",storage:dn((()=>Md)),skipHydration:!0})),jd=()=>{var e,t,n,r,o,i,s;const{goals:a}=Dd(),{completedTasks:l}=Fd(),{siteCreatedAt:c,resourceData:u}=null!==(e=window.extAssistData)&&void 0!==e?e:{},{activePlugins:d,recommendations:m}=null!=u?u:{};if(!Array.isArray(m))return[];const p=null!==(t=m?.filter((e=>d?.some((t=>e?.pluginDepSlugs?.includes(t))))))&&void 0!==t?t:[],f=null!==(n=m?.filter((e=>a?.some((t=>e?.goalDepSlugs?.includes(t?.slug))))))&&void 0!==n?n:[],h=null!==(r=m?.filter((e=>l?.some((t=>e?.taskDepSlugs?.includes(t?.id))))))&&void 0!==r?r:[],g=(null!==(o=m?.filter((({generalExclusions:e})=>null!==e)))&&void 0!==o?o:[]).filter((e=>{if(e.generalExclusions.includes("sslEnabled")&&"https:"!==location.protocol)return e})),y=(null!==(i=m?.filter((e=>null!==e?.pluginExclusions)))&&void 0!==i?i:[]).filter((e=>!d.some((t=>e?.pluginExclusions?.includes(t)))));return{recommendations:[...null!==(s=m?.filter((({goalDepSlugs:e,taskDepSlugs:t,pluginDepSlugs:n,generalExclusions:r,pluginExclusions:o})=>null===e&&null===t&&null===n&&null===r&&null===o)))&&void 0!==s?s:[],...p,...f,...h,...g,...y].sort(((e,t)=>t.priority-e.priority)).filter((e=>{var t;return!!((e=new Date,t=0)=>{const n=Math.floor((new Date-new Date(e))/864e5);return Math.max(0,n)>=Number(t)})(c,null!==(t=e?.showAfterDay)&&void 0!==t?t:0)&&e}))}},Vd=()=>{const{recommendations:r,loading:o,error:i}=jd(),{isDismissedRecommendation:s}=kd(),a=r?.filter((e=>!s(e.slug)));return o||i?(0,e.createElement)("div",{className:"assist-recommendations-module w-full flex justify-center bg-white border border-gray-300 p-2 lg:p-4 rounded"},(0,e.createElement)(n.Spinner,null)):(0,e.createElement)("div",{id:"assist-recommendations-module",className:"w-full border border-gray-300 text-base bg-white p-4 md:p-8 rounded"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h2",{className:"text-lg leading-tight m-0 flex flex-1 items-center gap-1"},(0,e.createElement)("span",null,(0,t.__)("Recommendations","extendify-local"))),(0,e.createElement)("a",{href:"admin.php?page=extendify-assist#recommendations",className:"inline-flex items-center no-underline text-sm text-design-main hover:underline"},a?.length>0?(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("View all (%s)","extendify-local"),r?.length):(0,t.__)("View all recommendations","extendify-local"),(0,e.createElement)(te,{icon:Ju,className:"fill-current"}))),0===a.length?(0,e.createElement)(Bd,null):(0,e.createElement)("div",{className:"border border-b-0 border-gray-300 mt-4",id:"assist-recommendations-module-list"},(0,e.createElement)(So,null,a.slice(0,3).map((t=>(0,e.createElement)(Yu.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(Id,{rec:t})))))))},Id=({rec:t,Action:n})=>(0,e.createElement)("div",{className:"px-3 sm:px-4 py-3 flex gap-2 justify-between border-0 border-b border-gray-300 relative items-center min-h-16"},(0,e.createElement)(_d,{rec:t,Action:n})),Bd=()=>(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-gray-300 p-4 lg:p-8"},(0,e.createElement)(id,{"aria-hidden":!0}),(0,e.createElement)("p",{className:"mb-0 text-lg font-bold"},(0,t.__)("All caught up!","extendify-local")),(0,e.createElement)("p",{className:"mb-0 text-sm"},(0,t.__)("Congratulations! Take a moment to celebrate.","extendify-local")));var Ud=(0,e.createElement)(ne.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(ne.Path,{d:"M12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM15.5303 8.46967C15.8232 8.76256 15.8232 9.23744 15.5303 9.53033L13.0607 12L15.5303 14.4697C15.8232 14.7626 15.8232 15.2374 15.5303 15.5303C15.2374 15.8232 14.7626 15.8232 14.4697 15.5303L12 13.0607L9.53033 15.5303C9.23744 15.8232 8.76256 15.8232 8.46967 15.5303C8.17678 15.2374 8.17678 14.7626 8.46967 14.4697L10.9393 12L8.46967 9.53033C8.17678 9.23744 8.17678 8.76256 8.46967 8.46967C8.76256 8.17678 9.23744 8.17678 9.53033 8.46967L12 10.9393L14.4697 8.46967C14.7626 8.17678 15.2374 8.17678 15.5303 8.46967Z"}));const Hd=()=>{const{isDismissedBanner:n,dismissBanner:r}=to(),o=window.extAssistData.resourceData.recommendationsBanner;if(!window.extAssistData.dismissedNotices.find((e=>"welcome-message"===e.id)))return null;const i=o?.filter((({slug:e,siteAssistant:t})=>t&&!n(e)))?.at(0);return i?.link?(0,e.createElement)("div",{className:"w-full relative mt-4 mb-2"},(0,e.createElement)("a",{key:i.slug,className:"",href:i.link,target:"_blank",rel:"noreferrer"},(0,e.createElement)("img",{src:i.mobileImageURL,className:"w-full sm:hidden"}),(0,e.createElement)("img",{src:i.desktopImageURL,className:"w-full hidden sm:block"})),(0,e.createElement)("button",{"aria-label":(0,t.__)("Dismiss Banner","extendify-local"),type:"button",className:"absolute top-0 right-0 m-3.5 p-0 bg-transparent cursor-pointer transition-opacity duration-200 opacity-60 hover:opacity-90",onClick:()=>r(i.slug)},(0,e.createElement)(te,{icon:Ud,className:"text-white fill-current w-6 h-6"}))):null},zd=()=>{const n=window.extAssistData.adminUrl+"admin.php?page=extendify-launch";return(0,e.createElement)("div",{className:"flex flex-col",id:"assist-settings-module-restart-launch"},(0,e.createElement)("h3",{className:"m-0 mb-1 mt-6 text-lg"},(0,t.__)("Start over?","extendify-local")),(0,e.createElement)("p",{className:"my-0"},(0,t.__)("Go through the onboarding process again to create a new site.","extendify-local")),(0,e.createElement)("div",{className:"mt-5"},(0,e.createElement)("button",{className:"h-10 px-4 py-2 leading-tight min-w-20 min-h-10 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm cursor-pointer no-underline text-sm",type:"button",onClick:()=>window.location=n},(0,t.__)("Start over","extendify-local"))))},{Slot:qd}=(0,n.createSlotFill)("Extendify/Assist/Settings"),Wd=()=>(0,e.createElement)(qd,null,(n=>(n.length>0||window.extAssistData.canSeeRestartLaunch)&&(0,e.createElement)("div",{id:"assist-settings-module",className:"extendify-assist-settings w-full border border-gray-300 p-4 md:p-8 bg-white rounded mt-6"},(0,e.createElement)("h2",{className:"text-lg leading-tight m-0"},(0,t.__)("Settings","extendify-local")),(0,e.createElement)("div",{className:"grid grid-cols-1 divide-y"},n,window.extAssistData.canSeeRestartLaunch&&(0,e.createElement)(zd,null))))),$d=t=>{var n;const{themeSlug:r,launchCompleted:o}=window.extAssistData,i=window.extAssistData.resourceData.tasks,{isCompleted:s}=Fd(),[a,l]=(0,e.useState)(null!==(n=i?.filter((({slug:e})=>!s(e))).length)&&void 0!==n?n:0);return(0,e.useEffect)((()=>{const e=()=>{l((e=>e-1<0?0:e-1))};return window.addEventListener("extendify-assist-task-completed",e),()=>window.removeEventListener("extendify-assist-task-completed",e)}),[l,i,s]),"extendable"===r&&o?0===a?null:(0,e.createElement)("span",{className:"awaiting-mod",...t},a>9?"9":a):null},Zd=(e,t)=>Yr.post("assist/options",{option:e,value:t}),Gd=async e=>{const{data:t}=await Yr.get("assist/options",{params:{option:e}});return t},Xd=({task:t})=>{const{completeTask:n}=Fd(),[r,o]=(0,e.useState)("edit-homepage"===t.slug?null:t.internalLink),i=(0,e.useCallback)((()=>{!t.doneDependencies&&n(t.slug)}),[t,n]);return(0,e.useLayoutEffect)((()=>{if("edit-homepage"===t.slug){const e=t.internalLink.split("$");Gd("page_on_front").then((t=>{o(e[0]+t+e[1])}))}}),[t]),(0,e.createElement)("a",{href:window.extAssistData.adminUrl+r,target:"_blank",rel:"noreferrer",className:yd()("px-3 py-2 leading-tight min-w-20 sm:min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm transition ease-linear duration-150",{"text-gray-900":r,"text-gray-600 pointer-events-none":!r}),onClick:i,"aria-disabled":!r},t.buttonTextToDo)};var Yd=window.wp.blob,Kd=window.wp.coreData,Jd=window.wp.data,Qd=window.wp.mediaUtils;const em=({type:o,onUpdate:i,title:s,actionLabel:a})=>{const{popModal:l}=to(),[c,u]=(0,e.useState)(!1),[d,m]=(0,e.useState)(0),p=(0,Jd.useSelect)((e=>e(Kd.store).getMedia(d)),[d]),{mediaWidth:f,mediaHeight:h,mediaSourceUrl:g}=(e=>{var t,n,o;if(!e)return{};const i=(0,r.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id);if(i in(null!==(t=e?.media_details?.sizes)&&void 0!==t?t:{}))return{mediaWidth:e.media_details.sizes[i].width,mediaHeight:e.media_details.sizes[i].height,mediaSourceUrl:e.media_details.sizes[i].source_url};const s=(0,r.applyFilters)("editor.PostFeaturedImage.imageSize","medium",e.id);if(s in(null!==(n=e?.media_details?.sizes)&&void 0!==n?n:{}))return{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url};const a=(0,r.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id);return a in(null!==(o=e?.media_details?.sizes)&&void 0!==o?o:{})?{mediaWidth:e.media_details.sizes[a].width,mediaHeight:e.media_details.sizes[a].height,mediaSourceUrl:e.media_details.sizes[a].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}})(p);(0,e.useEffect)((()=>{Gd(o).then((e=>m(Number(e))))}),[o]);const y=e=>{m(e.id),Zd(o,e.id),i()},v=e=>{(0,Qd.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Yd.isBlobURL)(e?.url)?u(!0):(y(e),u(!1))},onError(e){console.error({message:e})}})};return(0,e.createElement)("div",null,(0,e.createElement)(tm,null,(0,e.createElement)(Qd.MediaUpload,{title:s,onSelect:y,allowedTypes:["image"],value:d,modalClass:"",render:({open:r})=>(0,e.createElement)("div",{className:"relative block"},(0,e.createElement)(n.Button,{className:"editor-post-featured-image__toggle extendify-assist-upload-logo p-0 m-0 border-0 cursor-pointer flex w-full min-w-full text-center relative bg-gray-100 hover:bg-gray-300 hover:text-current h-48 justify-center text-gray-900",onClick:r,"aria-label":d?(0,t.__)("Edit or update the image","extendify-local"):null,"aria-describedby":d?`image-${d}-describedby`:null},Boolean(d)&&p&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(n.ResponsiveWrapper,{naturalWidth:f,naturalHeight:h,isInline:!0},(0,e.createElement)("img",{className:"block m-auto w-auto h-auto max-w-full max-h-48 inset-0 p-6",src:g,alt:""}))),c&&(0,e.createElement)(n.Spinner,null),!d&&!c&&a),(0,e.createElement)(n.DropZone,{className:"w-full h-full absolute inset-0",onFilesDrop:v}))})),Boolean(d)&&(0,e.createElement)("div",{className:"mt-6 gap-4 flex justify-between"},(0,e.createElement)(tm,null,(0,e.createElement)("div",null,d&&(0,e.createElement)(Qd.MediaUpload,{title:s,onSelect:y,unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"image__media-modal",render:({open:r})=>(0,e.createElement)(n.Button,{onClick:r,variant:"secondary"},(0,t.__)("Replace image","extendify-local"))}),(0,e.createElement)(n.Button,{onClick:()=>{m(0),Zd(o,0)},variant:"link",className:"ml-4",isDestructive:!0},(0,t.__)("Remove image","extendify-local"))),(0,e.createElement)("div",null,(0,e.createElement)(n.Button,{variant:"primary",onClick:l,className:"bg-design-main text-design-text"},(0,t.__)("Done","extendify-local"))))))},tm=({fallback:t=null,children:r})=>{const{checkingPermissions:o,hasUploadPermissions:i}=(0,Jd.useSelect)((e=>{const t=e("core");return{hasUploadPermissions:t.canUser("read","media"),checkingPermissions:!t.hasFinishedResolution("canUser",["read","media"])}}));return(0,e.createElement)(e.Fragment,null,o&&(0,e.createElement)(n.Spinner,null),!o&&i?r:t)},nm=({setModalTitle:n})=>{const{completeTask:r}=Fd();return(0,e.useEffect)((()=>{n((0,t.__)("Upload site logo","extendify-local"))}),[n]),(0,e.createElement)(em,{type:"site_logo",title:(0,t.__)("Site logo","extendify-local"),actionLabel:(0,t.__)("Set site logo","extendify-local"),onUpdate:()=>{r("logo")}})},rm=({popModal:n,setModalTitle:r})=>{const[o,i]=(0,e.useState)(void 0),[s,a]=(0,e.useState)(void 0),l=(0,e.useRef)(),{completeTask:c}=Fd();return(0,e.useEffect)((()=>{r((0,t.__)("Add site description","extendify-local"))}),[r]),(0,e.useEffect)((()=>{Gd("blogdescription").then((e=>{i(e),a(e)}))}),[i]),(0,e.useEffect)((()=>{l?.current?.focus()}),[s]),void 0===o?(0,e.createElement)("div",{className:"h-32"},(0,t.__)("Loading...","extendify-local")):(0,e.createElement)("form",{className:"gap-6 flex flex-col",onSubmit:e=>e.preventDefault()},(0,e.createElement)("div",null,(0,e.createElement)("label",{className:"block mb-1 text-gray-900 text-sm",htmlFor:"extendify-site-description-input"},(0,t.__)("Site description","extendify-local")),(0,e.createElement)("input",{ref:l,type:"text",name:"extendify-site-description-input",id:"extendify-site-description-input",className:"w-96 max-w-full border border-gray-900 px-2 h-12 input-focus",onChange:e=>{i(e.target.value)},value:o,placeholder:(0,t.__)("Enter a site description...","extendify-local")})),(0,e.createElement)("div",null,(0,e.createElement)("button",{disabled:o===s,className:yd()("px-4 py-3 text-white bg-design-main button-focus border-0 rounded relative cursor-pointer w-1/5",{"opacity-50 cursor-default":o===s}),onClick:async()=>{await Zd("blogdescription",o),c("site-description"),n()}},(0,t.__)("Save","extendify-local"))))},om=({setModalTitle:n})=>{const{completeTask:r}=Fd();return(0,e.useEffect)((()=>{n((0,t.__)("Upload site icon","extendify-local"))}),[n]),(0,e.createElement)(em,{type:"site_icon",title:(0,t.__)("Site icon","extendify-local"),actionLabel:(0,t.__)("Set site icon","extendify-local"),onUpdate:()=>{r("site-icon")}})},im=({task:t})=>{const{pushModal:n}=to(),{isCompleted:r}=Fd(),o={UpdateLogo:nm,UpdateSiteDescription:rm,UpdateSiteIcon:om};return o[t.modalFunction]?(0,e.createElement)("button",{className:"px-3 py-2 leading-tight min-w-20 sm:min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm",type:"button",onClick:()=>n(o[t.modalFunction])},r(t.slug)?t.buttonTextDone:t.buttonTextToDo):null};var sm;const am={currentTour:null,currentStep:void 0,preparingStep:void 0,progress:[],...null!==(sm=(window.extAssistData.userData.tourData?.data||{})?.state)&&void 0!==sm?sm:{}},lm={getItem:async()=>JSON.stringify(await Yr.get("assist/tour-data")),setItem:async(e,t)=>{return await(n=t,Yr.post("assist/tour-data",{data:n}));var n},removeItem:()=>{}},cm=sn(pn(cn(((e,t)=>({...am,startTour:async n=>{const{trackTourProgress:r,updateProgress:o,getStepData:i,onTourPage:s}=t();s(n?.settings?.startFrom)&&(await(n?.onStart?.(n)),n.steps=n.steps?.filter((e=>e?.showOnlyIf?.()||void 0===e?.showOnlyIf?.()))||[],await(i(0,n)?.events?.beforeAttach?.(n))),e({currentTour:n,currentStep:0,preparingStep:void 0});const a=r(n.id);o(a.id,{openedCount:a.openedCount+1,lastAction:"started"})},onTourPage(e=null){const n=window.location.href;if(e?.includes(n))return!0;const{currentTour:r}=t();return r?.settings?.startFrom?.includes(n)},completeCurrentTour:async()=>{const{currentTour:n,finishedTour:r,findTourProgress:o,updateProgress:i}=t(),s=o(n?.id);s?.id&&(r(s.id)||i(s.id,{completedAt:(new Date).toISOString(),lastAction:"completed"}),i(s.id,{completedCount:s.completedCount+1,lastAction:"completed"}),await(n?.onDetach?.()),await(n?.onFinish?.()),e({currentTour:null,currentStep:void 0}))},closeCurrentTour:async n=>{const{currentTour:r,findTourProgress:o,updateProgress:i}=t(),s=o(r?.id);if(!s?.id)return;const a={};return["redirected"].includes(n)?i(s?.id,{lastAction:n}):["closed-by-caught-error"].includes(n)?i(s?.id,{lastAction:n,errored:!0}):("closed-manually"===n&&(a.closedManuallyCount=s.closedManuallyCount+1),await(r?.onDetach?.()),await(r?.onFinish?.()),i(s?.id,{lastAction:n,...a}),void e({currentTour:null,currentStep:void 0,preparingStep:void 0}))},findTourProgress(e){return t().progress.find((t=>t.id===e))},finishedTour(e){return t().findTourProgress(e)?.completedAt},wasOpened(e){return t().findTourProgress(e)?.openedCount>0},isSeen(e){return t().findTourProgress(e)?.firstSeenAt},trackTourProgress(n){const{findTourProgress:r}=t();return r(n)||e((e=>({progress:[...e.progress,{id:n,firstSeenAt:(new Date).toISOString(),updatedAt:(new Date).toISOString(),completedAt:null,lastAction:"init",currentStep:0,openedCount:0,closedManuallyCount:0,completedCount:0,errored:!1}]}))),r(n)},updateProgress(t,n){var r;const o=null!==(r=n?.lastAction)&&void 0!==r?r:"unknown";e((e=>({progress:e.progress.map((e=>e.id===t?{...e,...n,lastAction:o,updatedAt:(new Date).toISOString()}:e))})))},getStepData(e,n=t().currentTour){var r;return null!==(r=n?.steps?.[e])&&void 0!==r?r:{}},hasNextStep(){return!!t().currentTour&&t().currentStep<t().currentTour.steps.length-1},nextStep:async()=>{const{currentTour:e,goToStep:n,updateProgress:r,currentStep:o}=t(),i=o+1;await n(i),r(e.id,{currentStep:i,lastAction:"next"})},hasPreviousStep(){return!!t().currentTour&&t().currentStep>0},prevStep:async()=>{const{currentTour:e,goToStep:n,updateProgress:r,currentStep:o}=t(),i=o-1;await n(i),r(e.id,{currentStep:i,lastAction:"prev"})},goToStep:async n=>{const{currentTour:r,updateProgress:o,closeCurrentTour:i,getStepData:s}=t(),a=r;if(n<0||n>a.steps.length-1)return void i("closed-by-caught-error");o(a.id,{currentStep:n,lastAction:`go-to-step-${n}`});const l=s(n)?.events;l?.beforeAttach&&(e((()=>({preparingStep:n}))),await Promise.allSettled([l.beforeAttach?.(a),new Promise((e=>setTimeout(e,300)))]),e((()=>({preparingStep:void 0})))),e((()=>({currentStep:n})))}})),{name:"Extendify Assist Tour Progress"}),{name:"extendify-assist-tour-progress",storage:dn((()=>lm)),skipHydration:!0,partialize:e=>{const{currentTour:t,currentStep:n,preparingStep:r,...o}=e;return o}})),um=e=>new Promise((t=>{const n=setInterval((()=>{document.querySelector(e)&&(clearInterval(n),t())}),50)})),dm=e=>new Promise((t=>{const n=setInterval((()=>{document.querySelector(e)||(clearInterval(n),t())}),50)}));var mm={id:"library-tour",settings:{allowOverflow:!0,hideDotsNav:!0,startFrom:[window.extAssistData.adminUrl+"post-new.php?post_type=page"]},onStart:async()=>{await um("#extendify-templates-inserter-btn"),document.querySelector(`[aria-label="${(0,t.__)("Settings")}"].is-pressed`)?.click()},steps:[{title:(0,t.__)("Open the Pattern Library","extendify-local"),text:(0,t.__)("The Extendify pattern library can be opened by clicking the button to the left.","extendify-local"),attachTo:{element:"#extendify-templates-inserter-btn",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>dispatchEvent(new CustomEvent("extendify::close-library"))}},{title:(0,t.__)("Patterns and Layouts","extendify-local"),text:(0,t.__)("Choose to insert individual block patterns, or full blown templates.","extendify-local"),attachTo:{element:"#patterns-toggle",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},options:{blockPointerEvents:!0},events:{beforeAttach:async()=>(dispatchEvent(new CustomEvent("extendify::open-library")),await um("#patterns-toggle"))}},{title:(0,t.__)("Filter Patterns","extendify-local"),text:(0,t.__)("Click on any pattern category to refine the selection.","extendify-local"),attachTo:{element:"#filter-patterns",position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>{document.querySelector("ul#filter-patterns > li:first-of-type button").click()}}},{title:(0,t.__)("Select a Pattern","extendify-local"),text:(0,t.__)("Simply select any pattern you wish to insert into a page by clicking on it.","extendify-local"),attachTo:{element:"#masonry-grid > div:first-child > div:first-child",position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:async()=>(dispatchEvent(new CustomEvent("extendify::open-library")),await um("#masonry-grid > div:first-child > div:first-child"))}},{title:(0,t.__)("View the Inserted Pattern","extendify-local"),text:(0,t.__)("The selected pattern has been inserted into the page.","extendify-local"),attachTo:{element:".wp-block-group:last-child",frame:'iframe[name="editor-canvas"]',offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector("#masonry-grid > div:first-child > div:first-child > div")?.click(),await dm("#masonry-grid"))},options:{hideBackButton:!0}}]},pm=window.wp.blocks;const fm=()=>!!document.querySelector('iframe[name="editor-canvas"]'),hm=e=>{var t;return null!==(t=13!==e.keyCode)&&void 0!==t?t:e.preventDefault()};var gm={id:"page-editor-tour",settings:{allowOverflow:!0,startFrom:[window.extAssistData.adminUrl+"post-new.php?post_type=page"]},onStart:()=>(document.querySelector(`[aria-label="${(0,t.__)("Settings")}"].is-pressed`)?.click(),dispatchEvent(new CustomEvent("extendify::close-library"))),steps:[{title:(0,t.__)("Add a Block","extendify-local"),text:(0,t.__)("Click the plus to open the block inserter.","extendify-local"),attachTo:{element:".edit-post-header-toolbar__inserter-toggle",offset:{marginTop:15,marginLeft:0},position:{x:"left",y:"bottom"},hook:"top left"},events:{beforeAttach:async()=>(window.wp.data.select("core/edit-post").isFeatureActive("welcomeGuide")&&await window.wp.data.dispatch("core/edit-post").toggleFeature("welcomeGuide"),await um(".edit-post-header-toolbar__inserter-toggle"))}},{title:(0,t.__)("Block Inserter","extendify-local"),text:(0,t.__)("Add a block by clicking or dragging it onto the page.","extendify-local"),attachTo:{element:".block-editor-inserter__menu",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},options:{blockPointerEvents:!0},events:{beforeAttach:async()=>(document.querySelector(".edit-post-header-toolbar__inserter-toggle:not(.is-pressed)")?.click(),await um(".block-editor-inserter__tabs")),onAttach:()=>{const e=document.querySelector(".edit-post-header-toolbar__inserter-toggle");ym.observe(e,{attributes:!0}),window.addEventListener("keydown",hm)},onDetach:async()=>{ym.disconnect(),window.removeEventListener("keydown",hm),document.querySelector(".edit-post-header-toolbar__inserter-toggle.is-pressed")?.click(),await dm(".block-editor-inserter__block-list"),requestAnimationFrame((()=>{document.getElementById("assist-tour-next-button")?.focus()}))}}},{title:(0,t.__)("Page Title","extendify-local"),text:(0,t.__)("Edit the page title by clicking it. Note: The title may or may not show up on the published page, depending on the page template used.","extendify-local"),attachTo:{element:()=>fm()?'iframe[name="editor-canvas"]':".wp-block-post-title",offset:()=>({marginTop:fm()?15:0,marginLeft:fm()?-15:15}),position:{x:"right",y:"top"},hook:()=>fm()?"top right":"top left"},events:{beforeAttach:async()=>{await window.wp.data.dispatch("core/editor").editPost({title:"Sample Post"})}}},{title:(0,t.__)("Blocks","extendify-local"),text:(0,t.__)("Each block will show up on the page and can be edited by clicking on it.","extendify-local"),attachTo:{element:()=>fm()?'iframe[name="editor-canvas"]':".wp-block-post-content > p",offset:()=>({marginTop:fm()?15:0,marginLeft:fm()?-15:15}),position:{x:"right",y:"top"},hook:()=>fm()?"top right":"top left"},events:{beforeAttach:async()=>{if(await window.wp.data.select("core/block-editor").getBlockCount()>0)return;const e=(0,pm.createBlock)("core/paragraph",{content:(0,t.__)("This is a sample paragraph block. It can be several sentences long and will span multiple rows. You can add as many blocks as you'd like to the page.","extendify-local")});return await window.wp.data.dispatch("core/block-editor").insertBlock(e),fm()?await window.wp.data.dispatch("core/block-editor").flashBlock(e.clientId):null}}},{title:(0,t.__)("Page and Block Settings","extendify-local"),text:(0,t.__)("Select either page or block to change the settings for the entire page or the block that is selected.","extendify-local"),attachTo:{element:".interface-interface-skeleton__sidebar",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>{document.querySelector(`[aria-label="${(0,t.__)("Settings")}"]:not(.is-pressed)`)?.click(),await um(".interface-interface-skeleton__sidebar"),document.querySelector(".edit-post-sidebar__panel-tab")?.click(),await um(".edit-post-post-status"),document.querySelector(".edit-post-post-status:not(.is-opened) button")?.click(),await um(".edit-post-post-status.is-opened")}}},{title:(0,t.__)("Preview","extendify-local"),text:(0,t.__)("Click preview to view how your changes look on the front end of your site.","extendify-local"),attachTo:{element:".block-editor-post-preview__button-toggle",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{}},{title:(0,t.__)("Publish or Save","extendify-local"),text:(0,t.__)("Click publish or update to save the changes you’ve made to the page and make them live on the site.","extendify-local"),attachTo:{element:".editor-post-publish-button__button",offset:{marginTop:15},position:{x:"right",y:"bottom"},hook:"top right"},events:{}}]};const ym=new MutationObserver((()=>{document.querySelector(".edit-post-header-toolbar__inserter-toggle:not(.is-pressed)")?.click()}));var vm={id:"plugin-install-tour",settings:{allowOverflow:!1,startFrom:[window.extAssistData.adminUrl+"plugin-install.php"]},onStart:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.add("opensub")},steps:[{title:(0,t.__)("Add New plugin menu","extendify-local"),text:(0,t.__)("Click here to access the Add Plugins page.","extendify-local"),attachTo:{element:'#menu-plugins .wp-submenu a[href="plugin-install.php"]',offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onDetach:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.remove("opensub")}}},{title:(0,t.__)("Search","extendify-local"),text:(0,t.__)("Search for a plugin by name or functionality.","extendify-local"),attachTo:{element:".search-form.search-plugins",offset:{marginTop:5,marginLeft:-15},boxPadding:{top:-5,bottom:3,left:5,right:5},position:{x:"left",y:"top"},hook:"top right"},events:{}},{title:(0,t.__)("Plugin details","extendify-local"),text:(0,t.__)("See important information about each plugin.","extendify-local"),attachTo:{element:"#the-list .plugin-card:first-child .plugin-card-bottom",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"bottom"},hook:"bottom left"},events:{}},{title:(0,t.__)("Install now","extendify-local"),text:(0,t.__)("Install the plugin. Then, press this button again to activate the plugin.","extendify-local"),attachTo:{element:"#the-list .plugin-card:first-child .install-now",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Upload Plugin","extendify-local"),text:(0,t.__)("If you have a plugin from an external source, you can upload it directly here.","extendify-local"),attachTo:{element:".upload-view-toggle",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}}]},bm={id:"plugin-management-tour",settings:{allowOverflow:!1,startFrom:[window.extAssistData.adminUrl+"plugins.php"]},onStart:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.add("opensub")},steps:[{title:(0,t.__)("Installed Plugins menu","extendify-local"),text:(0,t.__)("Click this menu to see and manage the plugins you have installed.","extendify-local"),attachTo:{element:"#menu-plugins ul > li:nth-child(2)",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onDetach:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-plugins").classList.remove("opensub")}}},{title:(0,t.__)("Installed plugins","extendify-local"),text:(0,t.__)("See all plugins installed on your site. This includes plugins that are active and deactivated.","extendify-local"),attachTo:{element:"tbody#the-list > tr:nth-child(1)",offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"bottom"},hook:"top right"},events:{}},{title:(0,t.__)("Deactivate/activate option","extendify-local"),text:(0,t.__)("Under each plugin you can activate or deactivate it.","extendify-local"),attachTo:{element:"tbody#the-list > tr:nth-child(1) > td.plugin-title",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Add another","extendify-local"),text:(0,t.__)("Click here to add another plugin to your site.","extendify-local"),attachTo:{element:"a.page-title-action",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}}]},xm={id:"site-assistant-tour",settings:{allowOverflow:!1,startFrom:[window.extAssistData.adminUrl+"admin.php?page=extendify-assist#dashboard"]},steps:[{title:(0,t.__)("Site Assistant","extendify-local"),text:(0,t.__)("The Site Assistant gives you personalized recommendations and helps with creating and maintaining your site.","extendify-local"),attachTo:{element:"#assist-menu-bar",offset:{marginTop:20,marginLeft:-5},position:{x:"left",y:"bottom"},hook:"top left",boxPadding:{top:5,bottom:5,left:5,right:5}},events:{}},{title:(0,t.__)("Tasks","extendify-local"),text:(0,t.__)("Now that you've created your starter site, make it your own with these follow up tasks.","extendify-local"),showOnlyIf:()=>document.querySelector(".assist-tasks-module"),attachTo:{element:"#assist-tasks-module",offset:{marginTop:window.innerWidth<=1151?-15:2,marginLeft:window.innerWidth<=1151?-25:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Recommendations","extendify-local"),text:(0,t.__)("See our personalized recommendations for you that will help you accomplish your goals.","extendify-local"),showOnlyIf:()=>document.querySelector("#assist-recommendations-module"),attachTo:{element:"#assist-recommendations-module",offset:{marginTop:window.innerWidth<=1151?-15:2,marginLeft:window.innerWidth<=1151?-25:15},position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>um("#assist-recommendations-module"),onAttach:()=>{document.querySelector("#assist-recommendations-module")?.scrollIntoView()}}},{title:(0,t.__)("Knowledge Base","extendify-local"),text:(0,t.__)("Find articles with information on accomplishing different things with WordPress, including screenshots, and videos.","extendify-local"),attachTo:{element:"#assist-knowledge-base-module",offset:{marginTop:window.innerWidth<=1151?-15:2,marginLeft:window.innerWidth<=1151?-25:-15},position:{x:window.innerWidth<=1151?"right":"left",y:"top"},hook:window.innerWidth<=1151?"top left":"top right"},events:{beforeAttach:()=>um("#assist-knowledge-base-module"),onAttach:()=>{document.querySelector("#assist-knowledge-base-module")?.scrollIntoView()}}},{title:(0,t.__)("Tours","extendify-local"),text:(0,t.__)("See additional tours of the different parts of WordPress. Restart your completed tours at any time.","extendify-local"),attachTo:{element:"#assist-tours-module",offset:{marginTop:window.innerWidth<=1151?-15:0,marginLeft:window.innerWidth<=1151?-25:-15},position:{x:window.innerWidth<=1151?"right":"left",y:"top"},hook:window.innerWidth<=1151?"top left":"top right"},events:{beforeAttach:()=>um("#assist-tours-module"),onAttach:()=>{document.querySelector("#assist-tours-module")?.scrollIntoView()}}},{title:(0,t.__)("Quick Links","extendify-local"),text:(0,t.__)("Easily access some of the most common items in WordPress with these quick links.","extendify-local"),attachTo:{element:"#assist-quick-links-module",offset:{marginTop:window.innerWidth<=1151?-15:0,marginLeft:window.innerWidth<=1151?-25:-15},position:{x:window.innerWidth<=1151?"right":"left",y:"top"},hook:window.innerWidth<=1151?"top left":"top right"},events:{beforeAttach:()=>um("#assist-quick-links-module"),onAttach:()=>{document.querySelector("#assist-quick-links-module")?.scrollIntoView()}}},{title:(0,t.__)("Site Assistant","extendify-local"),text:(0,t.__)("Come back to the Site Assistant any time by clicking the menu item.","extendify-local"),attachTo:{element:"#toplevel_page_extendify-admin-page",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onAttach:()=>{document.body.classList.contains("folded")&&(document.body.classList.remove("folded"),document.body.classList.add("temp-open")),document.querySelector("#extendify-assist-landing-page").scrollIntoView({block:"start"})},onDetach:()=>{document.body.classList.contains("temp-open")&&(document.body.classList.remove("temp-open"),document.body.classList.add("folded"))}}}]};const{adminUrl:wm,themeSlug:Em,blockTheme:Cm}=window.extAssistData;var Sm={id:"style-editor-tour",settings:{allowOverflow:!1,startFrom:[wm+`site-editor.php?canvas=edit&postType=wp_template&postId=${Em}%2F%2Fhome`],enabled:null!=Cm&&Cm},onStart:()=>{document.querySelector(".components-modal__header > button")?.click()},steps:[{title:(0,t.__)("Style Editor","extendify-local"),text:(0,t.__)("The style editor allows you to edit the styles, colors, and typographic elements of your site. To access the style editor, first open the Editor via Appearance > Editor.","extendify-local"),image:"https://placehold.co/342x240",attachTo:{element:".interface-pinned-items button:nth-child(2)",offset:{marginTop:10,marginLeft:-30},position:{x:"left",y:"bottom"},hook:"top left"},events:{beforeAttach:()=>um(".interface-pinned-items")}},{title:(0,t.__)("Styles Panel","extendify-local"),text:(0,t.__)("The styles panel allows you to customize the appearance of your site. It includes style variations, colors, typography, and more.","extendify-local"),attachTo:{element:".edit-site-global-styles-sidebar",offset:{marginTop:1,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".interface-pinned-items button:nth-child(2):not(.is-pressed)")?.click(),await um(".edit-site-global-styles-sidebar"))}},{title:(0,t.__)("Style Variations","extendify-local"),text:(0,t.__)("The Browse Styles button opens the style variations panel.","extendify-local"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/variations"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await um(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Style Variations","extendify-local"),text:(0,t.__)("Choose a style you like to preview how it will look on your site.","extendify-local"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/variations"]')?.click(),await um(".edit-site-global-styles-header__description"))}},{title:(0,t.__)("Typography","extendify-local"),text:(0,t.__)("The Typography button opens the typography settings panel.","extendify-local"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/typography"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await um(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Typography","extendify-local"),text:(0,t.__)("Choose a typographic element to customize.","extendify-local"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/typography"]')?.click(),await um(".edit-site-global-styles-header__description"))}},{title:(0,t.__)("Colors","extendify-local"),text:(0,t.__)("The Colors button opens the color settings panel.","extendify-local"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/colors"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await um(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Colors","extendify-local"),text:(0,t.__)("Select the theme's palette or individual elements to customize their colors.","extendify-local"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/colors"]')?.click(),await um(".edit-site-global-styles-header__description"))}},{title:(0,t.__)("Layout","extendify-local"),text:(0,t.__)("The Layout button opens the layout settings panel.","extendify-local"),attachTo:{element:'.edit-site-global-styles-sidebar button[id="/layout"]',offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await um(".edit-site-global-styles-preview__iframe"))}},{title:(0,t.__)("Layout","extendify-local"),text:(0,t.__)("From here you can customize the dimensions, padding, and margins used for your site layout.","extendify-local"),attachTo:{element:".edit-site-global-styles-sidebar__navigator-screen",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:async()=>(document.querySelector('.edit-site-global-styles-sidebar button[id="/layout"]')?.click(),await um(".components-tools-panel"))}}],onFinish:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await um(".edit-site-global-styles-preview__iframe"))},Tm={id:"users-screen-tour",settings:{allowOverflow:!0,startFrom:[window.extAssistData.adminUrl+"users.php"]},onStart:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-users").classList.add("opensub")},steps:[{title:(0,t.__)("All Users menu","extendify-local"),text:(0,t.__)("Click here to view and manage the users on your site.","extendify-local"),attachTo:{element:"#menu-users ul > li:nth-child(2)",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onDetach:()=>{document.body.classList.contains("folded")&&document.querySelector("#menu-users").classList.remove("opensub")}}},{title:(0,t.__)("Users","extendify-local"),text:(0,t.__)("See all of your users, including admin users in this table.","extendify-local"),attachTo:{element:"tbody#the-list > tr:nth-child(1)",offset:{marginTop:15,marginLeft:0},position:{x:"right",y:"bottom"},hook:"top right"},events:{}},{title:(0,t.__)("Edit user information","extendify-local"),text:(0,t.__)("Click the edit button to change the user's role, manage their account, or change their profile information.","extendify-local"),attachTo:{element:"tbody#the-list > tr:nth-child(1) > td.username",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{onAttach:()=>{document.querySelector("tbody#the-list > tr:nth-child(1) > td.username .row-actions").style.left="0"},onDetach:()=>{document.querySelector("tbody#the-list > tr:nth-child(1) > td.username .row-actions").style.left="-9999em"}}},{title:(0,t.__)("Search for users","extendify-local"),text:(0,t.__)("Use the search bar to find a particular user.","extendify-local"),attachTo:{element:"p.search-box",offset:{marginTop:-5,marginLeft:-15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"left",y:"top"},hook:"top right"},events:{}},{title:(0,t.__)("Add a new user","extendify-local"),text:(0,t.__)("Click the Add New button to add a new user to your site.","extendify-local"),attachTo:{element:".page-title-action",offset:{marginTop:-5,marginLeft:15},boxPadding:{top:5,bottom:5,left:5,right:5},position:{x:"right",y:"top"},hook:"top left"},events:{}}]},km={"welcome-tour":{id:"welcome-tour",settings:{allowOverflow:!0,startFrom:[window.extAssistData.adminUrl+"index.php",window.extAssistData.adminUrl+"admin.php?page=extendify-assist#dashboard"],minBoxWidth:"360px"},onStart:()=>{document.body.classList.contains("folded")&&(document.body.classList.remove("folded"),document.body.classList.add("temp-open"))},onFinish:()=>{document.body.classList.contains("temp-open")&&(document.body.classList.remove("temp-open"),document.body.classList.add("folded"))},steps:[{title:(0,t.__)("View Site","extendify-local"),text:(0,t.__)("At any time, you can view your site (from a visitor's perspective) from the top admin bar under your site's name.","extendify-local"),image:"https://assets.extendify.com/tours/welcome/view-site.gif",attachTo:{element:"#wp-admin-bar-view-site",offset:{marginTop:0,marginLeft:10},position:{x:"right",y:"top"},hook:"top left"},events:{beforeAttach:()=>{const e=document.querySelector("#wp-admin-bar-site-name .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onAttach:()=>{const e=document.querySelector("#wp-admin-bar-site-name .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onDetach:()=>{const e=document.querySelector("#wp-admin-bar-site-name .ab-sub-wrapper");e.style.position="absolute",e.style.display=""}}},{title:(0,t.__)("Site Assistant","extendify-local"),text:(0,t.__)("Access the Site Assistant at any time.","extendify-local"),attachTo:{element:"#toplevel_page_extendify-admin-page",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Dashboard","extendify-local"),text:(0,t.__)("The default WordPress dashboard will have some overall site metrics and modules added from certain plugins.","extendify-local"),attachTo:{element:"#menu-dashboard",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Posts","extendify-local"),text:(0,t.__)("Manage and create blog posts.","extendify-local"),attachTo:{element:"#menu-posts",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Media","extendify-local"),text:(0,t.__)("Add, edit, or remove images and other media from your library. When you upload an image to be used on your site, it will be added to the library.","extendify-local"),attachTo:{element:"#menu-media",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Pages","extendify-local"),text:(0,t.__)("Use the pages menu to add, delete, or edit the pages on your site.","extendify-local"),image:"https://assets.extendify.com/tours/welcome/add-pages.gif",attachTo:{element:"#menu-pages",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Comments","extendify-local"),text:(0,t.__)("If you have commenting enabled on your posts, you can manage those comments here.","extendify-local"),attachTo:{element:"#menu-comments",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Appearance","extendify-local"),text:(0,t.__)("Manage your theme and access the Site Editor from the Appearance menu. The Site Editor is where you can make global changes to your site (such as the menu, header/footer, and styles).","extendify-local"),attachTo:{element:"#menu-appearance",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Plugins","extendify-local"),text:(0,t.__)("Add or manage the plugins on your site.","extendify-local"),attachTo:{element:"#menu-plugins",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Users","extendify-local"),text:(0,t.__)("Add or manage users on your site, both admin users and others.","extendify-local"),attachTo:{element:"#menu-users",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Tools","extendify-local"),text:(0,t.__)("Import/export post data, check site health, and edit theme or plugin files directly in the WordPress admin.","extendify-local"),attachTo:{element:"#menu-tools",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Settings","extendify-local"),text:(0,t.__)("Advanced settings for your site and for certain plugins.","extendify-local"),attachTo:{element:"#menu-settings",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("Collapse menu","extendify-local"),text:(0,t.__)("Use this toggle to collapse or expand the sidebar menu.","extendify-local"),attachTo:{element:"#collapse-menu",offset:{marginTop:0,marginLeft:15},position:{x:"right",y:"top"},hook:"top left"},events:{}},{title:(0,t.__)("User","extendify-local"),text:(0,t.__)("Manage your profile or log out of your account here.","extendify-local"),attachTo:{element:"#wp-admin-bar-user-actions",offset:{marginTop:0,marginLeft:-15},position:{x:"left",y:"top"},hook:"top right"},events:{beforeAttach:()=>{const e=document.querySelector("#wp-admin-bar-my-account .ab-sub-wrapper");e.style.position="relative",e.style.display="block"},onAttach:()=>{const e=document.querySelector("#wp-admin-bar-my-account .ab-sub-wrapper");e.style.position="relative",e.style.display="block",document.querySelector("#assist-tour-next-button")?.focus()},onDetach:()=>{const e=document.querySelector("#wp-admin-bar-my-account .ab-sub-wrapper");e.style.position="absolute",e.style.display=""}}}]},"plugin-install-tour":vm,"plugin-management-tour":bm,"page-editor-tour":gm,"library-tour":mm,"style-editor-tour":Sm,"users-screen-tour":Tm,"site-assistant-tour":xm};const _m=({task:n})=>{const{startTour:r,wasOpened:o}=cm();return km[n.slug]?(0,e.createElement)("button",{className:"px-3 py-2 leading-tight min-w-20 sm:min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm relative z-10 cursor-pointer text-center no-underline text-sm",type:"button",onClick:()=>r(km[n.slug])},(()=>{const{buttonTextDone:e,buttonTextToDo:r}=n;return o(n.slug)?null!=e?e:(0,t.__)("Restart Tour","extendify-local"):null!=r?r:(0,t.__)("Start Tour","extendify-local")})()):null},Am=({task:r})=>{const{isCompleted:o,dismissTask:i}=Fd(),{slug:s}=r,a={modal:im,tour:_m,"internal link":Xd},l=r?.taskType?a[r.taskType]:null;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flex gap-1 sm:gap-2 items-center"},(0,e.createElement)("div",{className:"sr-only"},o(s)?(0,t.__)("Completed","extendify-local"):(0,t.__)("Not completed","extendify-local")),(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",className:"shrink-0 w-6 h-6 rounded-full text-gray-400"},(0,e.createElement)("circle",{className:"checkbox__background",r:"5",cx:"8",cy:"8",stroke:o(s)?"var(--ext-design-main, #3959e9)":"currentColor",fill:o(s)?"var(--ext-design-main, #3959e9)":"none",strokeWidth:"1"}),(0,e.createElement)("polyline",{className:"checkbox__checkmark",points:"5,8 8,10 11,6",stroke:o(s)?"#fff":"transparent",strokeWidth:"1",fill:"none"})),(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("span",{className:"text-sm font-medium mr-2"},r.title))),(0,e.createElement)("div",{className:"flex items-center justify-end gap-1 sm:gap-3"},l&&(0,e.createElement)(l,{task:r}),o(s)?(0,e.createElement)("div",{className:"w-5"}):(0,e.createElement)(n.Dropdown,{className:"w-5",position:"bottom left",popoverProps:{placement:"bottom-end"},renderContent:({onClose:n})=>(0,e.createElement)("button",{onClick:()=>{n(),i(r.slug)},type:"button",className:"-m-2 p-2 px-4 text-gray-900 text-sm border-0 cursor-pointer rounded-none bg-white hover:bg-gray-100 text-center no-underline"},(0,t.__)("Dismiss","extendify-local")),renderToggle:({onToggle:t})=>(0,e.createElement)("button",{onClick:t,type:"button",className:"p-0 text-white text-xs border-0 rounded cursor-pointer bg-transparent text-center no-underline"},(0,e.createElement)(te,{icon:Cd,className:""}))})))},Pm=()=>{const{seeTask:n,isCompleted:r}=Fd(),o=window.extAssistData.resourceData.tasks,i=o?.filter((e=>!r(e.slug)));if((0,e.useEffect)((()=>{i?.length&&i.forEach((e=>n(e.slug)))}),[i,n]),0===o?.length)return(0,e.createElement)("div",{className:"assist-tasks-module w-full bg-white border border-gray-300 p-2 lg:p-4 mb-6 rounded"},(0,t.__)("No tasks found...","extendify-local"));const s=window.getComputedStyle(document?.querySelector("#wpadminbar"))?.["background-color"];return(0,e.createElement)("div",{id:"assist-tasks-module",className:"assist-tasks-module w-full border border-gray-300 text-base bg-white p-4 md:p-8 rounded mb-6"},(0,e.createElement)("div",{className:"flex justify-between items-center gap-2"},(0,e.createElement)("h2",{className:"text-lg leading-tight m-0 flex flex-1 items-center gap-1"},(0,e.createElement)("span",null,(0,t.__)("Tasks","extendify-local")),i?.length>0?(0,e.createElement)("span",{className:"rounded-full py-0 px-1.5 text-xss flex justify-center items-center text-white w-4 h-4",style:{backgroundColor:s}},(0,e.createElement)($d,null)):null),(0,e.createElement)("a",{href:"admin.php?page=extendify-assist#tasks",className:"inline-flex items-center no-underline text-sm text-design-main hover:underline"},i?.length>0?(0,t.sprintf)((0,t.__)("View all (%s)","extendify-local"),o?.length):(0,t.__)("View completed tasks","extendify-local"),(0,e.createElement)(te,{icon:Ju,className:"fill-current"}))),0===i.length?(0,e.createElement)(Nm,null):(0,e.createElement)("div",{className:"border border-b-0 border-gray-300 mt-4",id:"assist-tasks-module-list"},(0,e.createElement)(So,null,i.slice(0,5).map((t=>(0,e.createElement)(Yu.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(Lm,{task:t})))))))},Lm=({task:t,Action:n})=>(0,e.createElement)("div",{className:"px-3 sm:px-4 py-3 flex gap-2 justify-between border-0 border-b border-gray-300 relative items-center min-h-16"},(0,e.createElement)(Am,{task:t,Action:n})),Nm=()=>(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-gray-300 p-4 lg:p-8"},(0,e.createElement)(id,{"aria-hidden":!0}),(0,e.createElement)("p",{className:"mb-0 text-lg font-bold"},(0,t.__)("All caught up!","extendify-local")),(0,e.createElement)("p",{className:"mb-0 text-sm"},(0,t.__)("Congratulations! Take a moment to celebrate.","extendify-local"))),Dm=()=>{const n=window.extAssistData.resourceData.tours,{startTour:r,wasOpened:o}=cm();return 0===n.length?(0,e.createElement)("div",{className:"assist-tours-module w-full p-4 lg:p-8"},(0,t.__)("No tours found...","extendify-local")):(0,e.createElement)("div",{id:"assist-tours-module",className:"w-full bg-white p-4 lg:p-8 text-base"},(0,e.createElement)("div",{className:"flex flex-1 justify-between items-center gap-2"},(0,e.createElement)("h3",{className:"text-lg leading-tight m-0"},(0,t.__)("Tours","extendify-local")),n.length>5&&(0,e.createElement)("a",{href:"admin.php?page=extendify-assist#tours",className:"inline-flex items-center no-underline text-sm text-design-main hover:underline"},(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("View all %s","extendify-local"),n?.length),(0,e.createElement)(te,{icon:Ju,className:"fill-current"}))),(0,e.createElement)("div",{className:"w-full text-base flex flex-col gap-3 mt-4 relative",id:"assist-tours-module-list"},n.slice(0,5).map((({title:t,slug:n})=>(0,e.createElement)("button",{key:n,className:"p-4 button-focus bg-gray-100 hover:bg-gray-200 hover:text-design-main focus:shadow-button cursor-pointer no-underline flex justify-between gap-2 group text-sm",type:"button",onClick:()=>r(km[n])},(0,e.createElement)("span",{className:"text-gray-900"},t),(t=>o(t)?(0,e.createElement)(fd,{className:"w-5 h-5 group-hover:fill-current"}):(0,e.createElement)(pd,{className:"w-5 h-5 group-hover:fill-current"}))(n)))),(0,e.createElement)("div",{className:"bg-black/75 rounded w-full h-full p-6 absolute inset-0 flex lg:hidden items-center justify-center"},(0,e.createElement)("h3",{className:"text-lg m-0 text-white text-center"},(0,t.__)("Guided tours are optimized for large screens, ensuring the best possible experience.","extendify-local")))))},Om="welcome-message",Rm=()=>{const{isDismissed:n,dismissNotice:r}=to(),o=window.extAssistData.dismissedNotices.find((e=>e.id===Om)),{startTour:i,progress:s}=cm(),{launchCompleted:a}=window.extAssistData,l=s?.filter((e=>"site-assistant-tour"===e.id)),c=l?.[0]?.completedCount;return(0,e.useEffect)((()=>{o||n(Om)||c>0&&r(Om)}),[o,n,r,c]),a?o||n(Om)||c>0?null:(0,e.createElement)("div",{id:"assist-welcome-notice",className:"bg-design-main text-design-text w-full text-base p-6 md:p-8 rounded mb-6 relative"},(0,e.createElement)("div",{className:"absolute right-0 top-0"},(0,e.createElement)("button",{className:"bg-white/70 hover:bg-white/80 rounded-bl px-0.5 h-6 w-6 cursor-pointer flex items-center",type:"button",onClick:()=>{r(Om)}},(0,e.createElement)("span",{className:"dashicons dashicons-no-alt"}))),(0,e.createElement)("div",{className:"flex flex-col md:flex-row justify-between items-start md:items-center gap-8"},(0,e.createElement)("div",{className:"flex-1"},(0,e.createElement)("h3",{className:"text-2xl mt-0 mb-3 text-design-text"},(0,t.__)("Your site is ready!","extendify-local")),(0,e.createElement)("p",{className:"text-sm my-0"},(0,t.__)("The Site Assistant is your go-to dashboard to help you get the most out of your site.","extendify-local"))),(0,e.createElement)("button",{className:"h-12 bg-white border-none cursor-pointer gap-3 grid grid-flow-col items-center no-underline px-5 py-3 rounded-sm text-design-main text-base hover:bg-gray-200 focus:shadow-button",onClick:()=>{i(xm)}},(0,t.__)("Take a tour","extendify-local"),(0,e.createElement)(pd,{className:"w-5 h-5 group-hover:fill-current fill-current"})))):null},Mm=({children:t})=>(0,e.createElement)("div",{className:"max-w-screen-2xl mx-4 md:mx-12 3xl:mx-auto pt-2 xl:pt-8 flex justify-center flex-col"},t),Fm=()=>{const{themeSlug:t,launchCompleted:n}=window.extAssistData;return"extendable"!==t||n?"extendable"===t?(0,e.createElement)(Pm,null):null:(0,e.createElement)(bd,null)},jm=()=>{var n,r,o;const{searchTerm:i,setSearchTerm:s,activeCategory:a,articles:l,clearArticles:c,popArticle:u,reset:d}=od();return a||l?(0,e.createElement)("div",{className:"flex items-center py-3 px-8 text-gray-700 bg-white border-l border-r border-gray-300"},(0,e.createElement)("button",{"aria-label":(0,t.__)("Knowledge Base home","extendify-local"),type:"button",className:"flex items-center underline p-0 text-xs bg-transparent text-gray-700 cursor-pointer",onClick:d},(0,e.createElement)(te,{icon:ad,className:"fill-current"})),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(te,{icon:Ju,className:"fill-current"}),(0,e.createElement)("button",{type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:()=>{d(),s(i)}},(0,t.sprintf)(
// translators: %s is the search term
(0,t.__)('Search results for "%s"',"extendify-local"),i))),a&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(te,{icon:Ju,className:"fill-current"}),(0,e.createElement)("button",{"aria-label":a?.title,type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:c},a?.title)),l?.[1]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(te,{icon:Ju,className:"fill-current"}),(0,e.createElement)("button",{"aria-label":null!==(n=l?.[1]?.title)&&void 0!==n?n:l?.[1]?.slug,type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:u},null!==(r=l?.[1]?.title)&&void 0!==r?r:l?.[1]?.slug)),l?.[0]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(te,{icon:Ju,className:"fill-current"}),(0,e.createElement)("span",null,null!==(o=l?.[0]?.title||l?.[0]?.title)&&void 0!==o?o:l?.[0]?.slug))):null};var Vm=(0,e.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(ne.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),Im=(0,e.createElement)(ne.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(ne.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"}));const Bm="https://kb.extendify.com",Um=({handleSubmission:n})=>{const{searchTerm:r,clearSearchTerm:o,reset:i}=od(),[s,a]=(0,e.useState)(!1),[l,c]=(0,e.useState)(null!=r?r:""),u=(0,e.useRef)();return(0,e.useEffect)((()=>{r||c("")}),[r]),(0,e.useEffect)((()=>{const e=setTimeout((()=>{n(l)}),300);return()=>clearTimeout(e)}),[l,n]),(0,e.createElement)("form",{method:"get",onSubmit:e=>{e.preventDefault(),n(r)},className:"relative w-full max-w-xs h-8"},(0,e.createElement)("label",{htmlFor:"ext-s",className:"sr-only"},(0,t.__)("Search for articles","extendify-local")),(0,e.createElement)("input",{ref:u,name:"s",id:"ext-s",type:"text",value:l,onFocus:()=>{s||(a(!0),fetch(`${Bm}/api/posts?boot=true`,{method:"POST"}))},onChange:e=>c(e.target.value),placeholder:(0,t.__)("Search...","extendify-local"),className:"input w-full placeholder-gray-400 text-sm pr-16 h-full"}),(0,e.createElement)("div",{className:"absolute right-0 text-gray-400 flex items-center justify-center inset-y-0"},(0,e.createElement)(te,{icon:r?Im:Vm,className:yd()("fill-current",{"cursor-pointer":r}),onClick:()=>{i(),o(),u.current?.focus()},size:30})))},Hm=({searchResponse:r})=>{const{data:o,loading:i,error:s}=r;return i?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(n.Spinner,null)):s?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("There was an error loading articles","extendify-local"),(0,e.createElement)("br",null),s):o?.length?(0,e.createElement)("div",{className:"flex items-center flex-wrap justify-center"},(0,e.createElement)("div",{className:"max-w-4xl w-full flex flex-col gap-2","data-test":"search-results"},o.map((t=>(0,e.createElement)(zm,{key:t.id,...t}))))):(0,e.createElement)("div",{className:"p-8 text-base text-center","data-test":"no-results"},(0,t.__)("Sorry, we couldn't find anything","extendify-local"))},zm=({slug:n,title:r,summary:o})=>{const{pushArticle:i}=od();return(0,e.createElement)("button",{"aria-label":(0,t.__)("Show all","extendify-local"),type:"button",className:"p-4 flex flex-col gap-1 no-underline bg-transparent w-full cursor-pointer text-gray-900 hover:bg-gray-100 focus:outline-none ring-design-main focus:ring-wp focus:ring-offset-1 focus:ring-offset-white",onClick:()=>{i({slug:n,title:r})}},(0,e.createElement)("h3",{className:"font-semibold text-lg text-left m-0"},r),(0,e.createElement)("div",{className:"text-sm text-left",dangerouslySetInnerHTML:{__html:(s=o,s?.replaceAll((0,t.__)("Go to the list of Blocks","extendify-local"),"")?.replaceAll((0,t.__)("Go back to the list of Blocks","extendify-local"),"")?.replace(/<\/?p>/g,""))}}));var s};var qm=o(488),Wm=(qm.domToReact,qm.htmlToDOM,qm.attributesToProps,qm.Comment,qm.Element,qm.ProcessingInstruction,qm.Text,qm);const $m=((e,t)=>(...n)=>{const[r,o,i]=G(n),s=(i.use||[]).concat(t);return e(r,o,{...i,use:s})})(Q,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))),Zm=e=>{const t=window.extAssistData.wpLanguage||null,n=new URLSearchParams({lang:t});return fetch(`${Bm}/api/posts/${e}?${n.toString()}`).then((e=>{if(404===e.status)throw new Error("Not found");if(!e.ok)throw new Error(e.statusText);return e.json()}))},Gm=()=>{const{articles:r,pushArticle:o,popArticle:i,updateTitle:s}=od(),[a,l]=(0,e.useState)(),c=(0,e.useRef)(),u=r?.[0]?.slug,{data:d,error:m,loading:p}=(e=>{const{data:t,error:n}=$m(e,Zm);return{data:t,error:n,loading:!t&&!n}})(u),f=d?.title;return(0,e.useEffect)((()=>{if(!m)return l(!1);a||(l(!0),i(),window.open(`https://wordpress.org/documentation/article/${u}`,"_blank"))}),[m,u,a,i]),(0,e.useEffect)((()=>{u&&f&&s(u,f)}),[f,s,u]),(0,e.useEffect)((()=>{if(!c.current)return;const e=c.current?.querySelectorAll("a"),t=async e=>{var t;if(e.preventDefault(),e.ctrlKey||e.metaKey)return e.stopPropagation(),window.open(e.target.href,"_blank");const n=null!==(t=e.target?.href)&&void 0!==t?t:e.target?.closest("a")?.href,{pathname:r}=new URL(n),i=r.split("/").filter(Boolean)?.at(-1),s=await(e=>Yr.get("assist/get-redirect",{params:{path:e}}))(r);if(!s)return r.startsWith("/documentation/article/")?o({slug:i,title:void 0}):window.open(`https://wordpress.org${r}`,"_blank");o({slug:s.split("/").filter(Boolean)?.at(-1)})},n=e=>{e.preventDefault(),window.open(e.target.href,"_blank")},r=e=>e.preventDefault();return e.forEach((e=>{const{hash:o,host:i,pathname:s}=new URL(e.href);if(o&&i===window.location.host||s.startsWith("/support/category"))return e.addEventListener("click",r),e.setAttribute("aria-disabled","true"),void e.classList.add("link-disabled");if(s.match(/\.(jpg|jpeg|png|gif|pdf|doc|docx|xls|xlsx|ppt|pptx)$/))return void e.addEventListener("click",r);if(s.startsWith("/documentation/article")||s.startsWith("/support/article"))return void e.addEventListener("click",t);e.addEventListener("click",n);const a=document.createElement("span");a.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" class="components-external-link__icon css-rvs7bx esh4a730" aria-hidden="true" focusable="false"><path d="M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"></path></svg>',e.appendChild(a)})),()=>{e.forEach((e=>{e?.removeEventListener("click",t),e?.removeEventListener("click",n),e?.removeEventListener("click",r)}))}}),[d,o]),p?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(n.Spinner,null)):m?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("There was an error loading this article","extendify-local")):(0,e.createElement)("article",{ref:c,className:"extendify-documentation w-full","data-test":"kb-article-content"},(0,e.createElement)("h1",{className:"m-0 text-3xl"},f),d?.content&&Wm(d?.content))},Xm=async e=>{if(e.length<3)return null;const t=new URLSearchParams({lang:window.extAssistData.wpLanguage||null,search:e});return await fetch(`${Bm}/api/posts?${t.toString()}`,{method:"POST"}).then((e=>{if(!e.ok)throw new Error(e.statusText);return e.json()}))},Ym=()=>{const{setSearchTerm:n,searchTerm:r,reset:o,articles:i,activeCategory:s}=od(),a=(e=>{const{data:t,error:n}=$m(e||null,Xm);return{data:t,error:n,loading:!t&&!n}})(r);return(0,e.useEffect)((()=>(hp.onRouteChange(o),()=>hp.removeOnRouteChange(o))),[o]),(0,e.createElement)("div",{className:"my-4"},(0,e.createElement)("div",{className:"bg-design-main p-8 m-0 rounded-t flex gap-3 flex-col md:flex-row justify-between"},(0,e.createElement)("h2",{className:"m-0"},(0,e.createElement)("button",{onClick:o,title:(0,t.__)("Back to Knowledge Base home","extendify-local"),type:"button",className:"text-design-text text-xl cursor-pointer font-normal focus:outline-none bg-transparent p-0 m-0"},(0,t.__)("Knowledge Base","extendify-local"))),(0,e.createElement)(Um,{handleSubmission:e=>{e!==r&&(o(),n(e))}})),(i?.length>0||s||a?.data?.length>0)&&(0,e.createElement)(jm,null),(0,e.createElement)("div",{className:"flex flex-col w-full bg-white border border-gray-300 p-4 lg:p-8 min-h-half","data-test":"kb-content"},(0,e.createElement)(Km,{articles:i,search:r,searchResponse:a})))},Km=({articles:t,search:n,searchResponse:r})=>t?.length>0?(0,e.createElement)(Gm,null):n?.length>2?(0,e.createElement)(Hm,{searchResponse:r}):(0,e.createElement)(Jm,{articles:t}),Jm=()=>{const{activeCategory:r,setActiveCategory:o,pushArticle:i}=od(),s=window.extAssistData.resourceData.supportArticleCategories,a=window.extAssistData.resourceData.supportArticles;if(!s)return(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(n.Spinner,null));if(a&&0===a?.length)return(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,t.__)("No support articles found...","extendify-local"));const l=s?.map((e=>{const t=a?.filter((t=>t.cats?.includes(e.slug)));return{...e,articles:t}}));return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"grid md:grid-cols-2 xl:grid-cols-3 gap-x-4 gap-y-8","data-test":"kb-cats-list"},l.filter((({slug:e})=>!r||e===r.slug)).map((n=>(0,e.createElement)("div",{key:n.slug},(0,e.createElement)("button",{"aria-label":n.title,type:"button",className:yd()("mt-0 mb-4 text-base font-semibold no-underline bg-transparent p-0",{"hover:underline":!r,"hover:text-design-main":!r,"cursor-pointer":!r}),onClick:()=>o({title:n.title,slug:n.slug})},n.title),n.articles.filter(((e,t)=>r||t<5)).map((({slug:t,title:r})=>(0,e.createElement)("button",{"aria-label":r,key:t,type:"button",className:"flex items-center gap-2 no-underline hover:underline hover:text-design-main bg-transparent mb-3 p-0 w-full cursor-pointer",onClick:()=>{o(n),i({slug:t,title:r})}},(0,e.createElement)(te,{icon:sd,className:"text-gray-600 fill-current"}),(0,e.createElement)("span",{className:"leading-tight font-normal text-left text-sm -mt-px"},r)))),!r&&n.articles.length>5&&(0,e.createElement)("button",{"aria-label":(0,t.__)("Show all","extendify-local"),type:"button",className:"text-left no-underline hover:underline hover:text-design-main bg-transparent mb-3 mt-4 p-0 w-full cursor-pointer font-semibold text-design-main flex items-center",onClick:()=>{o({title:n.title,slug:n.slug})}},(0,t.__)("Show all","extendify-local"),(0,e.createElement)(te,{icon:Ju,className:"fill-current"})))))))},Qm=()=>{const{recommendations:n}=jd(),{isDismissedRecommendation:r}=kd(),[o,i]=(0,e.useState)(!1),s=n?.filter((e=>r(e.slug))),a=n?.filter((e=>!r(e.slug)));return(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,t.__)("Personalized recommendations for your site","extendify-local")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("%s dismissed","extendify-local"),s.length)),s.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,"·"),(0,e.createElement)("button",{type:"button",className:"underline cursor-pointer p-0 bg-white",onClick:()=>{i(!o)}},o?(0,t.__)("Hide","extendify-local"):(0,t.__)("Show","extendify-local"))))),(0,e.createElement)("div",{className:"not-dismissed-recs w-full border border-b-0 border-gray-300","data-test":"not-dismissed-recs"},o?a.map((t=>(0,e.createElement)(ep,{key:t.slug,rec:t}))):0===a.length?(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-b border-gray-300 p-2 lg:p-8"},(0,e.createElement)(id,{"aria-hidden":!0}),(0,e.createElement)("p",{className:"mb-0 text-lg font-bold"},(0,t.__)("All caught up!","extendify-local")),(0,e.createElement)("p",{className:"mb-0 text-sm"},(0,t.__)("Congratulations! Take a moment to celebrate.","extendify-local"))):(0,e.createElement)(So,null,a.map((t=>(0,e.createElement)(Yu.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(ep,{rec:t})))))),o&&(0,e.createElement)("div",{className:"dismissed-tasks w-full border border-b-0 border-t-0 border-gray-300"},s.map((t=>(0,e.createElement)(ep,{key:t.slug,rec:t})))))},ep=({rec:t})=>(0,e.createElement)("div",{className:"px-3 sm:px-4 py-3 flex gap-2 justify-between border-0 border-b border-gray-300 relative items-center min-h-16"},(0,e.createElement)(_d,{rec:t})),tp=()=>{const{seeTask:n,isCompleted:r}=Fd(),o=window.extAssistData.resourceData.tasks,[i,s]=(0,e.useState)(!1),a=o?.filter((e=>r(e.slug))),l=o?.filter((e=>!r(e.slug)));return(0,e.useEffect)((()=>{o?.length&&o.forEach((e=>n(e.slug)))}),[o,n]),0===o?.length||0===o?.length?(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded","data-test":"no-tasks-found"},(0,t.__)("No tasks found...","extendify-local")):(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,t.__)("Personalized tasks for your site","extendify-local")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("%s completed","extendify-local"),a.length)),a.length>0&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("span",null,"·"),(0,e.createElement)("button",{className:"underline cursor-pointer p-0 bg-white",onClick:()=>{s(!i)}},i?(0,t.__)("Hide","extendify-local"):(0,t.__)("Show","extendify-local"))))),(0,e.createElement)("div",{className:"uncompleted-tasks w-full border border-b-0 border-gray-300","data-test":"uncompleted-tasks"},i?l.map((t=>(0,e.createElement)(np,{key:t.slug,task:t}))):0===l.length?(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-b border-gray-300 p-2 lg:p-8"},(0,e.createElement)(id,{"aria-hidden":!0}),(0,e.createElement)("p",{className:"mb-0 text-lg font-bold"},(0,t.__)("All caught up!","extendify-local")),(0,e.createElement)("p",{className:"mb-0 text-sm"},(0,t.__)("Congratulations! Take a moment to celebrate.","extendify-local"))):(0,e.createElement)(So,null,l.map((t=>(0,e.createElement)(Yu.div,{key:t.slug,variants:{fade:{opacity:0,x:15,transition:{duration:.5}},shrink:{height:0,transition:{delay:.5,duration:.2}}},exit:["fade","shrink"]},(0,e.createElement)(np,{task:t})))))),i&&(0,e.createElement)("div",{className:"completed-tasks w-full border border-b-0 border-t-0 border-gray-300"},a.map((t=>(0,e.createElement)(np,{key:t.slug,task:t})))))},np=({task:t})=>(0,e.createElement)("div",{className:"px-3 sm:px-4 py-3 flex gap-2 justify-between border-0 border-b border-gray-300 relative items-center min-h-16"},(0,e.createElement)(Am,{task:t})),rp=({tour:n})=>{const{wasOpened:r}=cm(),{slug:o}=n;return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{className:"flex gap-3 items-center"},(0,e.createElement)("div",{className:"sr-only"},r(o)?(0,t.__)("Completed","extendify-local"):(0,t.__)("Not completed","extendify-local")),(0,e.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":"true",focusable:"false",className:"shrink-0 w-6 h-6 rounded-full text-gray-400"},(0,e.createElement)("circle",{className:"checkbox__background",r:"5",cx:"8",cy:"8",stroke:r(o)?"var(--ext-design-main, #3959e9)":"currentColor",fill:r(o)?"var(--ext-design-main, #3959e9)":"none",strokeWidth:"1"}),(0,e.createElement)("polyline",{className:"checkbox__checkmark",points:"5,8 8,10 11,6",stroke:r(o)?"#fff":"transparent",strokeWidth:"1",fill:"none"})),(0,e.createElement)("div",{className:"flex items-center"},(0,e.createElement)("span",{className:"text-base font-semibold mr-2"},n.title))),(0,e.createElement)("div",{className:"flex items-center justify-end gap-3"},(0,e.createElement)(_m,{task:n,className:"px-3 py-2 leading-tight min-w-30 button-focus bg-gray-100 hover:bg-gray-200 focus:shadow-button text-gray-900 rounded-sm relative cursor-pointer text-center no-underline text-sm"})))},op=()=>{const n=window.extAssistData.resourceData.tours,{wasOpened:r}=cm(),o=n?.filter((e=>r(e.slug))),i=n?.filter((e=>{var t;return null===(t=km[e.slug]?.settings?.enabled)||void 0===t||t}));return 0===i?.length?(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded","data-test":"no-tours-found"},(0,t.__)("No tours found...","extendify-local")):(0,e.createElement)("div",{className:"my-4 w-full bg-white border border-gray-300 p-4 lg:p-8 rounded"},(0,e.createElement)("div",{className:"mb-6 flex gap-0 flex-col"},(0,e.createElement)("h2",{className:"my-0 text-lg"},(0,t.__)("Get going with these WordPress tours","extendify-local")),(0,e.createElement)("div",{className:"flex gap-1"},(0,e.createElement)("span",null,(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("%s completed","extendify-local"),o.length)))),(0,e.createElement)("div",{className:"all-tours w-full border border-b-0 border-gray-300 relative","data-test":"all-tours"},i.map((t=>(0,e.createElement)(ip,{key:t.slug,tour:t}))),(0,e.createElement)("div",{className:"bg-black/75 rounded w-full h-full p-6 absolute inset-0 flex lg:hidden items-center justify-center"},(0,e.createElement)("h3",{className:"text-lg m-0 text-white text-center"},(0,t.__)("Guided tours are optimized for large screens, ensuring the best possible experience.","extendify-local")))))},ip=({tour:t})=>(0,e.createElement)("div",{className:"tour-item-wrapper p-3 flex gap-3 justify-between border-0 border-b border-gray-300 bg-white relative items-center"},(0,e.createElement)(rp,{tour:t})),sp=[{slug:"dashboard",name:(0,t.__)("Dashboard","extendify-local"),icon:ld,component:()=>{const{disableRecommendations:n}=window.extAssistData;return(0,e.createElement)(Mm,null,(0,e.createElement)(Hd,null),(0,e.createElement)("div",{className:"grid grid-cols-1 xl:grid-cols-12 gap-6 items-start my-4"},(0,e.createElement)("div",{className:"col-span-12 xl:col-span-7"},(0,e.createElement)(Rm,null),(0,e.createElement)(Fm,null),n?null:(0,e.createElement)(Vd,null)),(0,e.createElement)("div",{className:"col-span-12 xl:col-span-5"},(0,e.createElement)("h2",{className:"text-base leading-tight m-0 bg-gray-800 text-white px-8 py-4 rounded-t-lg"},(0,t.__)("Help Center","extendify-local")),(0,e.createElement)("div",{className:"border-l border-r border-b border-gray-300 rounded-b-lg overflow-hidden divide-y divide-gray-300"},(0,e.createElement)(hd,null),(0,e.createElement)(Dm,null),(0,e.createElement)(wd,null)),(0,e.createElement)(Wd,null))))}},{slug:"tasks",name:(0,t.__)("Tasks","extendify-local"),icon:dd,component:()=>(0,e.createElement)(Mm,null,(0,e.createElement)(tp,null))},{slug:"tours",name:(0,t.__)("Tours","extendify-local"),icon:md,component:()=>(0,e.createElement)(Mm,null,(0,e.createElement)(op,null))},{slug:"recommendations",name:(0,t.__)("Recommendations","extendify-local"),icon:ud,component:()=>(0,e.createElement)(Mm,null,(0,e.createElement)(Qm,null))},{slug:"knowledge-base",name:(0,t.__)("Knowledge Base","extendify-local"),icon:ad,component:()=>(0,e.createElement)(Mm,null,(0,e.createElement)(Ym,null))}],{themeSlug:ap,launchCompleted:lp,disableRecommendations:cp}=window.extAssistData,up="extendable"!==ap||!lp,dp=sp.filter((e=>{const t="tasks"===e.slug&&up,n="recommendations"===e.slug&&cp;return!t&&!n}));let mp=[];const pp={getItem:async()=>JSON.stringify(await Yr.get("assist/router-data")),setItem:async(e,t)=>{return await(n=t,Yr.post("assist/router-data",{data:n}));var n},removeItem:()=>{}},fp=sn(pn(cn(((e,t)=>{var n;return{history:[],viewedPages:[],current:null,...null!==(n=(window.extAssistData.userData.routerData?.data||{})?.state)&&void 0!==n?n:{},setCurrent:async n=>{if(n){for(const e of mp)await e(n,{...t()});t().history[0]?.slug!==n.slug&&e((e=>{const t=(new Date).toISOString(),r=t,o=e.viewedPages.find((e=>e.slug===n.slug));return{history:[n,...e.history].filter(Boolean),current:n,viewedPages:[...e.viewedPages.filter((e=>e.slug!==n.slug)),o?{...o,count:o.count+1,lastViewedAt:t}:{slug:n.slug,firstViewedAt:r,lastViewedAt:t,count:1}]}}))}}}}),{name:"Extendify Assist Router"}),{name:"extendify-assist-router",storage:dn((()=>pp)),skipHydration:!0,partialize:({viewedPages:e})=>({viewedPages:e})})),hp={onRouteChange:e=>{mp.includes(e)||(mp=[...mp,e])},removeOnRouteChange:e=>{mp=mp.filter((t=>t!==e))}};let gp=!1;const yp=()=>{var t;const{current:n,setCurrent:r,history:o}=fp(),i=null!==(t=n?.component)&&void 0!==t?t:()=>null,s=e=>{window.location.hash!==`#${e}`?window.location.hash=`#${e}`:window.dispatchEvent(new Event("hashchange"))};return(0,e.useLayoutEffect)((()=>{var e;window.location.hash||(window.location.hash=`#${null!==(e=n?.slug)&&void 0!==e?e:"dashboard"}`)}),[n]),(0,e.useEffect)((()=>{if(gp)return;gp=!0;const e=()=>{const e=window.location.hash.replace("#",""),t=dp.find((t=>t.slug===e));var o;t?(r(t),document.title=t.name):s(null!==(o=n?.slug)&&void 0!==o?o:"dashboard")};return window.addEventListener("hashchange",e),n||e(),()=>{gp=!1,window.removeEventListener("hashchange",e)}}),[n,r]),{current:n,CurrentPage:(0,e.useCallback)((()=>(0,e.createElement)("div",{role:"region","aria-live":"polite"},(0,e.createElement)("h1",{className:"sr-only"},n?.name),(0,e.createElement)(i,null))),[n]),filteredPages:dp,navigateTo:s,history:o}},vp=sn(pn(cn((e=>({designColors:{},queuedTour:null,setDesignColors(t){e({designColors:t})},queueTourForRedirect(t){e({queuedTour:t})},clearQueuedTour(){e({queuedTour:null})}})),{name:"Extendify Assist Globals Sync"}),{name:"extendify-assist-globals-sync"})),bp=e=>{const{top:t,right:n,bottom:r,left:o,width:i,height:s,x:a,y:l}=e.getBoundingClientRect();return{top:t,right:n,bottom:r,left:o,width:i,height:s,x:a,y:l}},xp=()=>{var n,r;const o=(0,e.useRef)(),{currentTour:i,currentStep:s,startTour:a,closeCurrentTour:l,getStepData:c,onTourPage:u}=cm(),{settings:d}=i||{},{image:m,title:p,text:f,attachTo:h,events:g,options:y}=c(s),{queueTourForRedirect:v,queuedTour:b,clearQueuedTour:x}=vp(),{element:w,frame:E,offset:C,position:S,hook:T,boxPadding:k}=h||{},_=(0,e.useMemo)((()=>"function"==typeof w?w():w),[w]),A=(0,e.useMemo)((()=>"function"==typeof E?E():E),[E]),P=(0,e.useMemo)((()=>"function"==typeof C?C():C),[C]),L=(0,e.useMemo)((()=>"function"==typeof T?T():T),[T]),[N,D]=(0,e.useState)(null),O=(0,e.useRef)(),[R,M]=(0,e.useState)(!1),[F,j]=(0,e.useState)(!1),[V,I]=(0,e.useState)(null),[B,U]=(0,e.useState)({x:void 0,y:void 0,...P}),H=(0,e.useCallback)(((e,t)=>{U(20===e?{x:e,y:t}:{x:e,y:t,...P})}),[P]),z=(0,e.useCallback)((()=>{const e=L?.split(" ")||[];return{x:e.includes("right")?o.current?.offsetWidth:0,y:e.includes("bottom")?o.current?.offsetHeight:0}}),[L]),q=(0,e.useCallback)((()=>{var e,t,n,r;if(!N)return;const i=A&&null!==(e=document.querySelector(A)?.contentDocument)&&void 0!==e?e:document,s=bp(null!==(t=i.querySelector(_))&&void 0!==t?t:N);if(i!==document){const e=bp(i.defaultView.frameElement);s.x+=e.x,s.left+=e.x,s.right+=e.x,s.y+=e.y,s.top+=e.y,s.bottom+=e.y}if(window.innerWidth<=960)return void l("closed-resize");if(void 0===S?.x)return H(void 0,void 0),I(null),void j(!1);const a=s?.[S.x]-z().x,c=s?.[S.y]-z().y,u=o.current;H(Math.min(a,window.innerWidth-(null!==(n=u?.offsetWidth)&&void 0!==n?n:0)-20),Math.min(c,window.innerHeight-(null!==(r=u?.offsetHeight)&&void 0!==r?r:0)-20)),I(s)}),[N,S,z,H,A,_,l]);if((0,e.useLayoutEffect)((()=>{d?.startFrom&&(u()||(M(!0),v(i.id),l("redirected"),window.location.assign(d?.startFrom[0]),window.location.href.split("#")[0]===d.startFrom[0].split("#")[0]&&window.location.reload()))}),[d?.startFrom,i,v,l,u]),(0,e.useLayoutEffect)((()=>{if(R)return;const e=b;let t=0;if(!e||!km[e])return x();const n=()=>{requestAnimationFrame((()=>{a(km[e])})),x()};return addEventListener("load",n),"complete"===document.readyState&&(t=requestAnimationFrame(n)),()=>{cancelAnimationFrame(t),removeEventListener("load",n)}}),[a,b,x,R]),(0,e.useEffect)((()=>{var e;const t=(A&&null!==(e=document.querySelector(A)?.contentDocument)&&void 0!==e?e:document).querySelector(_);if(t)return D(t),()=>D(null)}),[A,_]),(0,e.useLayoutEffect)((()=>{if(N&&!R)return j(!0),q(),addEventListener("resize",q),N.style.pointerEvents="none",()=>{removeEventListener("resize",q),N.style.pointerEvents="auto"}}),[R,N,q]),(0,e.useEffect)((()=>{if(void 0===s||!N)return;g?.onAttach?.(N);let e=0;const t=requestAnimationFrame((()=>{e=requestAnimationFrame(q)}));return N.scrollIntoView({block:"end"}),O?.current?.focus(),()=>{g?.onDetach?.(N),cancelAnimationFrame(t),cancelAnimationFrame(e)}}),[s,g,N,q,O]),(0,e.useLayoutEffect)((()=>{if(d?.allowOverflow)return document.documentElement.classList.add("ext-force-overflow-auto"),()=>{document.documentElement.classList.remove("ext-force-overflow-auto")}}),[d]),(0,e.useEffect)((()=>{const e=()=>l("assist-route-change");return hp.onRouteChange(e),()=>hp.removeOnRouteChange(e)}),[l]),!F)return null;const W=Ep(V,k);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(So,null,Boolean(i)&&(0,e.createElement)(Qt,{as:Yu.div,static:!0,initialFocus:O,className:"extendify-assist",open:Boolean(i),onClose:()=>{}},(0,e.createElement)("div",{className:"relative z-max"},(0,e.createElement)(Yu.div,{ref:o,animate:{opacity:1,...B},initial:{opacity:0,...B},onAnimationComplete:()=>{q()},transition:{duration:.5,ease:"easeInOut"},className:"fixed top-0 left-0 shadow-2xl sm:overflow-hidden bg-transparent flex flex-col max-w-xs z-20",style:{minWidth:null!==(n=d?.minBoxWidth)&&void 0!==n?n:"325px"}},(0,e.createElement)("button",{"data-test":"close-tour",className:"absolute bg-white cursor-pointer flex ring-gray-200 ring-1 focus:ring-wp focus:ring-design-main focus:shadow-none h-6 items-center justify-center leading-none m-2 outline-none p-0 right-0 rounded-full top-0 w-6 border-0 z-20",onClick:()=>l("closed-manually"),"aria-label":(0,t.__)("Close Modal","extendify-local")},(0,e.createElement)(te,{icon:re,className:"w-4 h-4"})),(0,e.createElement)(Qt.Title,{className:"sr-only"},null!==(r=i?.title)&&void 0!==r?r:(0,t.__)("Tour","extendify-local")),m&&(0,e.createElement)("div",{className:"w-full p-6",style:{minHeight:150,background:"linear-gradient(58.72deg, #485563 7.71%, #29323C 92.87%)"}},(0,e.createElement)("img",{src:m,className:"w-full block",alt:p})),(0,e.createElement)("div",{className:"m-0 p-6 pt-0 text-left relative bg-white"},p&&(0,e.createElement)("h2",{className:"text-xl font-medium mb-2"},p),f&&(0,e.createElement)("p",{className:"mb-6"},f),(0,e.createElement)(wp,{initialFocus:O})))))),y?.blockPointerEvents&&(0,e.createElement)("div",{"aria-hidden":!0,className:"fixed inset-0 z-max-1"}),(0,e.createElement)(So,null,Boolean(i)&&void 0!==V?.left&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Yu.div,{initial:{opacity:0,clipPath:"polygon(0px 0px, 100% 0px, 100% 100%, 0px 100%, 0 0)"},animate:{opacity:1,clipPath:`polygon(0px 0px, 100% 0px, 100% 100%, 0px 100%, 0 0, ${W.left}px 0, ${W.left}px ${W?.bottom}px, ${W?.right}px ${W.bottom}px, ${W.right}px ${W.top}px, ${W.left}px ${W.top}px)`},transition:{duration:.5,ease:"easeInOut"},className:"hidden lg:block fixed inset-0 bg-black/70 z-max-1","aria-hidden":"true"}),(0,e.createElement)(Yu.div,{initial:{opacity:0,...null!=W?W:{}},animate:{opacity:1,...null!=W?W:{}},transition:{duration:.5,ease:"easeInOut"},className:"hidden lg:block fixed inset-0 border-2 border-design-main z-high","aria-hidden":"true"}))))},wp=({initialFocus:r})=>{const{goToStep:o,completeCurrentTour:i,currentStep:s,preparingStep:a,getStepData:l,hasNextStep:c,nextStep:u,hasPreviousStep:d,prevStep:m,currentTour:p}=cm(),{options:f={}}=l(s),{hideBackButton:h=!1}=f,{id:g,steps:y,settings:v}=p||{},{completeTask:b}=Fd();return(0,e.createElement)("div",{id:"extendify-tour-navigation",className:"flex justify-between items-center w-full"},(0,e.createElement)("div",{className:"flex-1 flex justify-start"},(0,e.createElement)(So,null,d()&&!h&&(0,e.createElement)(Yu.div,{initial:{opacity:0},animate:{opacity:1}},(0,e.createElement)("button",{className:"flex gap-2 p-0 h-8 rounded-sm items-center justify-center bg-transparent hover:bg-transparent focus:outline-none ring-design-main focus:ring-wp focus:ring-offset-1 focus:ring-offset-white text-gray-900 disabled:opacity-60",onClick:m,disabled:a>-1},a<s&&(0,e.createElement)(n.Spinner,{className:"text-design-main m-0 h-4"}),(0,e.createElement)("span",null,(0,t.__)("Back","extendify-local")))))),y?.length>2&&!v?.hideDotsNav?(0,e.createElement)("nav",{role:"navigation","aria-label":(0,t.__)("Tour Steps","extendify-local"),className:"flex-1 flex items-center justify-center gap-1 -translate-x-3"},y.map(((n,r)=>(0,e.createElement)("div",{key:r},(0,e.createElement)("button",{"aria-label":(0,t.sprintf)(
// translators: %1$s is the current step, %2$s is the total number of steps
(0,t.__)("%1$s of %2$s","extendify-local"),r+1,y.length),"aria-current":r===s,className:"focus:ring-wp focus:outline-none ring-offset-1 ring-offset-white focus:ring-design-main block cursor-pointer w-2.5 h-2.5 m-0 p-0 rounded-full "+(r===s?"bg-design-main":"bg-gray-300"),onClick:()=>o(r),disabled:a>-1}))))):null,(0,e.createElement)("div",{className:"flex-1 flex justify-end"},c()?(0,e.createElement)(n.Button,{ref:r,id:"assist-tour-next-button","data-test":"assist-tour-next-button",onClick:u,disabled:a>-1,className:"flex gap-2 text-design-text bg-design-main focus:text-design-text disabled:opacity-60",variant:"primary"},a>s&&(0,e.createElement)(n.Spinner,{className:"text-design-main m-0 h-4"}),(0,e.createElement)("span",null,(0,t.__)("Next","extendify-local"))):(0,e.createElement)(n.Button,{id:"assist-tour-next-button","data-test":"assist-tour-next-button",onClick:()=>{b(g),i()},className:"bg-design-main",variant:"primary"},(0,t.__)("Done","extendify-local"))))},Ep=(e,t)=>{var n,r,o,i,s,a,l,c,u,d;return{top:e.top-(null!==(n=t?.top)&&void 0!==n?n:0),left:e.left-(null!==(r=t?.left)&&void 0!==r?r:0),right:e.right+(null!==(o=t?.right)&&void 0!==o?o:0),bottom:e.bottom+(null!==(i=t?.bottom)&&void 0!==i?i:0),width:e.width+(null!==(s=t?.left)&&void 0!==s?s:0)+(null!==(a=t?.right)&&void 0!==a?a:0),height:e.height+(null!==(l=t?.top)&&void 0!==l?l:0)+(null!==(c=t?.bottom)&&void 0!==c?c:0),x:e.x-(null!==(u=t?.left)&&void 0!==u?u:0),y:e.y-(null!==(d=t?.top)&&void 0!==d?d:0)}};var Cp={grad:.9,turn:360,rad:360/(2*Math.PI)},Sp=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},Tp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},kp=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},_p=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},Ap=function(e){return{r:kp(e.r,0,255),g:kp(e.g,0,255),b:kp(e.b,0,255),a:kp(e.a)}},Pp=function(e){return{r:Tp(e.r),g:Tp(e.g),b:Tp(e.b),a:Tp(e.a,3)}},Lp=/^#([0-9a-f]{3,8})$/i,Np=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Dp=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),s=i-Math.min(t,n,r),a=s?i===t?(n-r)/s:i===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:i?s/i*100:0,v:i/255*100,a:o}},Op=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),s=r*(1-n),a=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,a,s,s,l,r][c],g:255*[l,r,r,a,s,s][c],b:255*[s,s,l,r,r,a][c],a:o}},Rp=function(e){return{h:_p(e.h),s:kp(e.s,0,100),l:kp(e.l,0,100),a:kp(e.a)}},Mp=function(e){return{h:Tp(e.h),s:Tp(e.s),l:Tp(e.l),a:Tp(e.a,3)}},Fp=function(e){return Op((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},jp=function(e){return{h:(t=Dp(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},Vp=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ip=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Bp=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Up=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hp={string:[[function(e){var t=Lp.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Tp(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?Tp(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Bp.exec(e)||Up.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:Ap({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=Vp.exec(e)||Ip.exec(e);if(!t)return null;var n,r,o=Rp({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(Cp[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return Fp(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return Sp(t)&&Sp(n)&&Sp(r)?Ap({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!Sp(t)||!Sp(n)||!Sp(r))return null;var s=Rp({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return Fp(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!Sp(t)||!Sp(n)||!Sp(r))return null;var s=function(e){return{h:_p(e.h),s:kp(e.s,0,100),v:kp(e.v,0,100),a:kp(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return Op(s)},"hsv"]]},zp=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},qp=function(e,t){var n=jp(e);return{h:n.h,s:kp(n.s+100*t,0,100),l:n.l,a:n.a}},Wp=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},$p=function(e,t){var n=jp(e);return{h:n.h,s:n.s,l:kp(n.l+100*t,0,100),a:n.a}},Zp=function(){function e(e){this.parsed=function(e){return"string"==typeof e?zp(e.trim(),Hp.string):"object"==typeof e&&null!==e?zp(e,Hp.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return Tp(Wp(this.rgba),2)},e.prototype.isDark=function(){return Wp(this.rgba)<.5},e.prototype.isLight=function(){return Wp(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=Pp(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?Np(Tp(255*o)):"","#"+Np(t)+Np(n)+Np(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return Pp(this.rgba)},e.prototype.toRgbString=function(){return t=(e=Pp(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return Mp(jp(this.rgba))},e.prototype.toHslString=function(){return t=(e=Mp(jp(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=Dp(this.rgba),{h:Tp(e.h),s:Tp(e.s),v:Tp(e.v),a:Tp(e.a,3)};var e},e.prototype.invert=function(){return Gp({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Gp(qp(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Gp(qp(this.rgba,-e))},e.prototype.grayscale=function(){return Gp(qp(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Gp($p(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Gp($p(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Gp({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):Tp(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=jp(this.rgba);return"number"==typeof e?Gp({h:e,s:t.s,l:t.l,a:t.a}):Tp(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Gp(e).toHex()},e}(),Gp=function(e){return e instanceof Zp?e:new Zp(e)};const Xp=({pages:n,activePage:r,setActivePage:o,hideMenu:i})=>{const[s,a]=(0,e.useState)(),[l,c]=(0,e.useState)();return(0,e.useLayoutEffect)((()=>{const e=window.getComputedStyle(document.body).getPropertyValue("--ext-banner-main"),t=Gp(e||"#000000"),n=t.isDark()?t.lighten(.1):t.darken(.1);a(n.toHex());const r=t.isDark()?t.lighten(.3):t.darken(.3);c(r.toHex())}),[]),(0,e.createElement)("nav",{"aria-labelledby":"assist-landing-nav"},(0,e.createElement)("h2",{id:"assist-landing-nav",className:"sr-only"},(0,t.__)("Assist navigation","extendify-local")),(0,e.createElement)("ul",{className:"lg:space-x-1 flex flex-wrap lg:flex-nowrap rounded-t-sm overflow-hidden m-0 p-0 px-1 pb-2 lg:pb-0 lg:gap-1.5 bg-white/5 lg:bg-transparent"},n.map((t=>(0,e.createElement)("li",{className:"list-none m-0 p-0 py-1 w-full lg:w-auto",key:t.slug},(0,e.createElement)("button",{onClick:()=>{o(t.slug),i()},type:"button","aria-current":r===t.slug,style:{"--tw-ring-color":l,"--ext-override":s,background:r===t.slug?s:"transparent"},className:"rounded-sm w-full px-3 lg:px-2 lg:pr-3 py-2 text-sm text-banner-text whitespace-nowrap cursor-pointer flex gap-1.5 items-center hover:bg-override focus:ring-wp focus:ring-offset-1 focus:ring-offset-banner-main focus:outline-none transition-colors duration-200"},t.icon&&(0,e.createElement)(te,{icon:t.icon,className:"fill-current flex"}),t.name))))))},Yp=()=>{const{filteredPages:n,navigateTo:r,current:o}=yp(),[i,s]=(0,e.useState)(!1),[a,l]=(0,e.useState)(),[c,u]=(0,e.useState)();return(0,e.useLayoutEffect)((()=>{const e=window.getComputedStyle(document.body).getPropertyValue("--ext-banner-main"),t=Gp(e||"#000000"),n=t.isDark()?t.lighten(.1):t.darken(.1);l(n.toHex());const r=t.isDark()?t.lighten(.3):t.darken(.3);u(r.toHex())}),[]),(0,e.createElement)("header",{className:"w-full flex bg-banner-main"},(0,e.createElement)("div",{className:"max-w-screen-2xl w-full mx-4 md:mx-12 3xl:mx-auto mt-auto flex flex-col"},(0,e.createElement)("div",{className:"flex flex-wrap justify-between items-center my-6 xl:my-8 gap-x-4 gap-y-2"},window.extAssistData?.partnerLogo&&(0,e.createElement)("div",{className:"w-40 h-16 flex items-center"},(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-assist`},(0,e.createElement)("img",{className:"h-full w-full",src:window.extAssistData.partnerLogo,alt:window.extAssistData.partnerName}))),!window.extAssistData?.partnerLogo&&(0,e.createElement)("a",{href:`${window.extAssistData.adminUrl}admin.php?page=extendify-assist`},(0,e.createElement)(cd,{className:"logo text-banner-text w-32 sm:w-40"})),(0,e.createElement)("div",{className:"lg:hidden"},(0,e.createElement)("button",{type:"button",className:yd()("cursor-pointer bg-transparent hover:bg-white/20 text-banner-text h-8 rounded-sm flex items-center gap-2 text-base",{"bg-white/20":i}),onClick:()=>s((e=>!e))},(0,e.createElement)("span",{className:"dashicons dashicons-menu-alt text-banner-text"}),(0,t.__)("Menu","extendify-local"))),(0,e.createElement)("div",{id:"assist-menu-bar",className:yd()("lg:flex lg:w-auto flex-wrap gap-4 items-center",{hidden:!i,block:i,"w-full":i})},(0,e.createElement)(Xp,{hideMenu:()=>s(!1),pages:n,activePage:o?.slug,setActivePage:r}),(0,e.createElement)("a",{style:{borderColor:a,"--tw-ring-color":c,"--ext-override":c},className:"text-sm text-center bg-design-main text-design-text border cursor-pointer rounded-b-sm lg:rounded-sm py-2 px-3 no-underline block lg:inline-block hover:border-override hover:bg-transparent hover:text-banner-text focus:ring-wp focus:ring-offset-1 focus:ring-offset-banner-main focus:outline-none transition-colors duration-200",href:window.extAssistData.home,target:"_blank",rel:"noreferrer"},(0,t.__)("View site","extendify-local"))))))},Kp=()=>{const{CurrentPage:t}=yp(),[o,s]=(0,e.useState)((0,i.getPlugins)());return(0,e.useEffect)((()=>{const e=()=>s((0,i.getPlugins)());return(0,r.addAction)("plugins.pluginRegistered","extendify-assist",e),(0,r.addAction)("plugins.pluginUnregistered","extendify-assist",e),()=>{(0,r.removeAction)("plugins.pluginRegistered","extendify-assist"),(0,r.removeAction)("plugins.pluginUnregistered","extendify-assist")}}),[]),(0,e.createElement)(n.SlotFillProvider,null,(0,e.createElement)(Yp,null),(0,e.createElement)(t,null),o.map((({name:t,render:n})=>(0,e.createElement)("div",{key:t},n()))))},Jp=()=>(0,e.createElement)(J,{value:{onErrorRetry:(e,t,n,r,{retryCount:o})=>{404!==e.status&&(403!==e?.data?.status?setTimeout((()=>r({retryCount:o})),5e3):window.location.reload())}}},(0,e.createElement)(Kp,null),(0,e.createElement)(no,null),(0,e.createElement)(xp,null));(()=>{const n=document.getElementById("extendify-assist-landing-page");var r,o;n&&(document.querySelector(".screen-reader-shortcut").insertAdjacentHTML("afterend",`<a href="#extendify-assist-landing-page" class="screen-reader-shortcut">${(0,t.__)("Skip to Assist","extendify-local")}</a>`),r=(0,e.createElement)(Jp,null),o=n,"function"==typeof e.createRoot?(0,e.createRoot)(o).render(r):(0,e.render)(r,o))})()}()}();