Current path: home/webdevt/www/wdp/wp-content/plugins/extendify/public/build/
?? Go up: /home/webdevt/www/wdp/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 x(e){return e.type===s.ElementType.Comment}function b(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(x(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(!b(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=x,t.isDirective=b,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=[],x="function"==typeof n.replace,b=n.transform||i.returnFirstArg,w=n.trim,E=0,C=t.length;E<C;E++)if(c=t[E],x&&y(d=n.replace(c)))C>1&&(d=h(d,{key:d.key||E})),v.push(b(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(b(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(b(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),x(),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 x(){v(r)}function b(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 x(),function(){var e,t=[];for(b(t);e=E();)!1!==e&&(t.push(e),b(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.url;function r(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 i=(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"})),s=(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"}));function a(t){return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},(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"}))}var l=(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"}));(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"}))}));var c=(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"})),u=(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"})),d=(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 m(t){return(0,e.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},(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 p(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 f(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 h=(0,n.addQueryArgs)(`${window.extAssistData.adminUrl}admin.php`,{page:"extendify-admin-page"}),g=()=>(0,e.createElement)("a",{href:h,id:"assist-help-center",className:"ab-item ltr:pl-1 ltr:pr-2 rtl:pl-2 rtl:pr-1 inline-flex justify-center items-center gap-2"},(0,e.createElement)(a,{className:"w-6 h-6 fill-current leading-loose"}),(0,e.createElement)("span",null,(0,t.__)("Help Center","extendify-local"))),y=(0,n.addQueryArgs)(`${window.extAssistData.adminUrl}admin.php`,{page:"extendify-assist"}),v=()=>(0,e.createElement)("ul",{className:"ab-submenu"},(0,e.createElement)("li",null,(0,e.createElement)("a",{href:`${y}#knowledge-base`,className:"ab-item"},(0,t.__)("Knowledge Base","extendify-local"))),(0,e.createElement)("li",null,(0,e.createElement)("a",{href:`${y}#tours`,className:"ab-item"},(0,t.__)("Tours","extendify-local")))),x=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 b=o(196),w=o.t(b,2),E=o(798);const{useSyncExternalStoreWithSelector:C}=E;let S=!1;const T=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?x(e):x)(e):e,n=(e,n)=>function(e,t=e.getState,n){n&&!S&&(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"),S=!0);const r=C(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,b.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},k=e=>e?T(e):T,_=new Map,A=e=>{const t=_.get(e);return t?Object.fromEntries(Object.entries(t.stores).map((([e,t])=>[e,t.getState()]))):{}},L=(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=_.get(n.name);if(r)return{type:"tracked",store:e,...r};const o={connection:t.connect(n),stores:{}};return _.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}`},{...A(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"):P(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(A(l.name));case"COMMIT":return void 0===a?void(null==u||u.init(o.getState())):null==u?void 0:u.init(A(l.name));case"ROLLBACK":return P(e.state,(e=>{if(void 0===a)return p(e),void(null==u||u.init(o.getState()));p(e[a]),null==u||u.init(A(l.name))}));case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return P(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},P=(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 N(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 D=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(e){return D(e)(n)},catch(e){return this}}}catch(e){return{then(e){return this},catch(t){return D(t)(e)}}}},O=(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=D(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 D(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:N((()=>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 D(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 R(e,t){return function(){return e.apply(t,arguments)}}const{toString:M}=Object.prototype,{getPrototypeOf:F}=Object,j=(e=>t=>{const n=M.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),V=e=>(e=e.toLowerCase(),t=>j(t)===e),B=e=>t=>typeof t===e,{isArray:I}=Array,U=B("undefined"),H=V("ArrayBuffer"),z=B("string"),q=B("function"),W=B("number"),$=e=>null!==e&&"object"==typeof e,Z=e=>{if("object"!==j(e))return!1;const t=F(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},G=V("Date"),X=V("File"),Y=V("Blob"),K=V("FileList"),J=V("URLSearchParams");function Q(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),I(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 ee(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 te="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,ne=e=>!U(e)&&e!==te,re=(oe="undefined"!=typeof Uint8Array&&F(Uint8Array),e=>oe&&e instanceof oe);var oe;const ie=V("HTMLFormElement"),se=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ae=V("RegExp"),le=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Q(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},ce="abcdefghijklmnopqrstuvwxyz",ue="0123456789",de={DIGIT:ue,ALPHA:ce,ALPHA_DIGIT:ce+ce.toUpperCase()+ue},me=V("AsyncFunction");var pe={isArray:I,isArrayBuffer:H,isBuffer:function(e){return null!==e&&!U(e)&&null!==e.constructor&&!U(e.constructor)&&q(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||q(e.append)&&("formdata"===(t=j(e))||"object"===t&&q(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&H(e.buffer),t},isString:z,isNumber:W,isBoolean:e=>!0===e||!1===e,isObject:$,isPlainObject:Z,isUndefined:U,isDate:G,isFile:X,isBlob:Y,isRegExp:ae,isFunction:q,isStream:e=>$(e)&&q(e.pipe),isURLSearchParams:J,isTypedArray:re,isFileList:K,forEach:Q,merge:function e(){const{caseless:t}=ne(this)&&this||{},n={},r=(r,o)=>{const i=t&&ee(n,o)||o;Z(n[i])&&Z(r)?n[i]=e(n[i],r):Z(r)?n[i]=e({},r):I(r)?n[i]=r.slice():n[i]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Q(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Q(t,((t,r)=>{n&&q(t)?e[r]=R(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&&F(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:j,kindOfTest:V,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(I(e))return e;let t=e.length;if(!W(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:ie,hasOwnProperty:se,hasOwnProp:se,reduceDescriptors:le,freezeMethods:e=>{le(e,((t,n)=>{if(q(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];q(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 I(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:ee,global:te,isContextDefined:ne,ALPHABET:de,generateString:(e=16,t=de.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&q(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if($(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=I(e)?[]:{};return Q(e,((e,t)=>{const i=n(e,r+1);!U(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:me,isThenable:e=>e&&($(e)||q(e))&&q(e.then)&&q(e.catch)};function fe(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)}pe.inherits(fe,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:pe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const he=fe.prototype,ge={};["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=>{ge[e]={value:e}})),Object.defineProperties(fe,ge),Object.defineProperty(he,"isAxiosError",{value:!0}),fe.from=(e,t,n,r,o,i)=>{const s=Object.create(he);return pe.toFlatObject(e,s,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),fe.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var ye=fe;function ve(e){return pe.isPlainObject(e)||pe.isArray(e)}function xe(e){return pe.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map((function(e,t){return e=xe(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const we=pe.toFlatObject(pe,{},null,(function(e){return/^is[A-Z]/.test(e)}));var Ee=function(e,t,n){if(!pe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=pe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!pe.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,s=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&pe.isSpecCompliantForm(t);if(!pe.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(pe.isDate(e))return e.toISOString();if(!a&&pe.isBlob(e))throw new ye("Blob is not supported. Use a Buffer instead.");return pe.isArrayBuffer(e)||pe.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(pe.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(pe.isArray(e)&&function(e){return pe.isArray(e)&&!e.some(ve)}(e)||(pe.isFileList(e)||pe.endsWith(n,"[]"))&&(a=pe.toArray(e)))return n=xe(n),a.forEach((function(e,r){!pe.isUndefined(e)&&null!==e&&t.append(!0===s?be([n],r,i):null===s?n:n+"[]",l(e))})),!1;return!!ve(e)||(t.append(be(o,n,i),l(e)),!1)}const u=[],d=Object.assign(we,{defaultVisitor:c,convertValue:l,isVisitable:ve});if(!pe.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!pe.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),pe.forEach(n,(function(n,i){!0===(!(pe.isUndefined(n)||null===n)&&o.call(t,n,pe.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t};function Ce(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Se(e,t){this._pairs=[],e&&Ee(e,this,t)}const Te=Se.prototype;Te.append=function(e,t){this._pairs.push([e,t])},Te.toString=function(e){const t=e?function(t){return e.call(this,t,Ce)}:Ce;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ke=Se;function _e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ae(e,t,n){if(!t)return e;const r=n&&n.encode||_e,o=n&&n.serialize;let i;if(i=o?o(t,n):pe.isURLSearchParams(t)?t.toString():new ke(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}var Le=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){pe.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Pe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ne={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ke,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"]},De=function(e){function t(e,n,r,o){let i=e[o++];const s=Number.isFinite(+i),a=o>=e.length;return i=!i&&pe.isArray(r)?r.length:i,a?(pe.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!s):(r[i]&&pe.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&pe.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(pe.isFormData(e)&&pe.isFunction(e.entries)){const n={};return pe.forEachEntry(e,((e,r)=>{t(function(e){return pe.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null};const Oe={transitional:Pe,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=pe.isObject(e);if(o&&pe.isHTMLForm(e)&&(e=new FormData(e)),pe.isFormData(e))return r&&r?JSON.stringify(De(e)):e;if(pe.isArrayBuffer(e)||pe.isBuffer(e)||pe.isStream(e)||pe.isFile(e)||pe.isBlob(e))return e;if(pe.isArrayBufferView(e))return e.buffer;if(pe.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 Ee(e,new Ne.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Ne.isNode&&pe.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=pe.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ee(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(pe.isString(e))try{return(0,JSON.parse)(e),pe.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Oe.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&pe.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 ye.from(e,ye.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:Ne.classes.FormData,Blob:Ne.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pe.forEach(["delete","get","head","post","put","patch"],(e=>{Oe.headers[e]={}}));var Re=Oe;const Me=pe.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"]),Fe=Symbol("internals");function je(e){return e&&String(e).trim().toLowerCase()}function Ve(e){return!1===e||null==e?e:pe.isArray(e)?e.map(Ve):String(e)}function Be(e,t,n,r,o){return pe.isFunction(r)?r.call(this,t,n):(o&&(t=n),pe.isString(t)?pe.isString(r)?-1!==t.indexOf(r):pe.isRegExp(r)?r.test(t):void 0:void 0)}class Ie{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=je(t);if(!o)throw new Error("header name must be a non-empty string");const i=pe.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=Ve(e))}const i=(e,t)=>pe.forEach(e,((e,n)=>o(e,n,t)));return pe.isPlainObject(e)||e instanceof this.constructor?i(e,t):pe.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]&&Me[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=je(e)){const n=pe.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(pe.isFunction(t))return t.call(this,e,n);if(pe.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=je(e)){const n=pe.findKey(this,e);return!(!n||void 0===this[n]||t&&!Be(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=je(e)){const o=pe.findKey(n,e);!o||t&&!Be(0,n[o],o,t)||(delete n[o],r=!0)}}return pe.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&&!Be(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return pe.forEach(this,((r,o)=>{const i=pe.findKey(n,o);if(i)return t[i]=Ve(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]=Ve(r),n[s]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return pe.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&pe.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[Fe]=this[Fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=je(e);t[r]||(function(e,t){const n=pe.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 pe.isArray(e)?e.forEach(r):r(e),this}}Ie.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),pe.reduceDescriptors(Ie.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),pe.freezeMethods(Ie);var Ue=Ie;function He(e,t){const n=this||Re,r=t||n,o=Ue.from(r.headers);let i=r.data;return pe.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function ze(e){return!(!e||!e.__CANCEL__)}function qe(e,t,n){ye.call(this,null==e?"canceled":e,ye.ERR_CANCELED,t,n),this.name="CanceledError"}pe.inherits(qe,ye,{__CANCEL__:!0});var We=qe,$e=Ne.isStandardBrowserEnv?{write:function(e,t,n,r,o,i){const s=[];s.push(e+"="+encodeURIComponent(t)),pe.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),pe.isString(r)&&s.push("path="+r),pe.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 Ze(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 Ge=Ne.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=pe.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Xe(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 Ye={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let r=e.data;const o=Ue.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)}pe.isFormData(r)&&(Ne.isStandardBrowserEnv||Ne.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.getContentType(/^\s*multipart\/form-data/)?pe.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=Ze(e.baseURL,e.url);function d(){if(!c)return;const r=Ue.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());!function(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new ye("Request failed with status code "+n.status,[ye.ERR_BAD_REQUEST,ye.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(),Ae(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 ye("Request aborted",ye.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new ye("Network Error",ye.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||Pe;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new ye(t,r.clarifyTimeoutError?ye.ETIMEDOUT:ye.ECONNABORTED,e,c)),c=null},Ne.isStandardBrowserEnv){const t=(e.withCredentials||Ge(u))&&e.xsrfCookieName&&$e.read(e.xsrfCookieName);t&&o.set(e.xsrfHeaderName,t)}void 0===r&&o.setContentType(null),"setRequestHeader"in c&&pe.forEach(o.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),pe.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&"json"!==i&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",Xe(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Xe(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=t=>{c&&(n(!t||t.type?new We(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===Ne.protocols.indexOf(m)?n(new ye("Unsupported protocol "+m+":",ye.ERR_BAD_REQUEST,e)):c.send(r||null)}))}};pe.forEach(Ye,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ke=e=>`- ${e}`,Je=e=>pe.isFunction(e)||null===e||!1===e;var Qe=e=>{e=pe.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,!Je(n)&&(r=Ye[(t=String(n)).toLowerCase()],void 0===r))throw new ye(`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(Ke).join("\n"):" "+Ke(e[0]):"as no adapter specified";throw new ye("There is no suitable adapter to dispatch the request "+n,"ERR_NOT_SUPPORT")}return r};function et(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new We(null,e)}function tt(e){return et(e),e.headers=Ue.from(e.headers),e.data=He.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qe(e.adapter||Re.adapter)(e).then((function(t){return et(e),t.data=He.call(e,e.transformResponse,t),t.headers=Ue.from(t.headers),t}),(function(t){return ze(t)||(et(e),t&&t.response&&(t.response.data=He.call(e,e.transformResponse,t.response),t.response.headers=Ue.from(t.response.headers))),Promise.reject(t)}))}const nt=e=>e instanceof Ue?e.toJSON():e;function rt(e,t){t=t||{};const n={};function r(e,t,n){return pe.isPlainObject(e)&&pe.isPlainObject(t)?pe.merge.call({caseless:n},e,t):pe.isPlainObject(t)?pe.merge({},t):pe.isArray(t)?t.slice():t}function o(e,t,n){return pe.isUndefined(t)?pe.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!pe.isUndefined(t))return r(void 0,t)}function s(e,t){return pe.isUndefined(t)?pe.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(nt(e),nt(t),!0)};return pe.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,s=i(e[r],t[r],r);pe.isUndefined(s)&&i!==a||(n[r]=s)})),n}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const it={};ot.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 ye(r(o," has been removed"+(t?" in "+t:"")),ye.ERR_DEPRECATED);return t&&!it[o]&&(it[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 st={assertOptions:function(e,t,n){if("object"!=typeof e)throw new ye("options must be an object",ye.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 ye("option "+i+" must be "+n,ye.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new ye("Unknown option "+i,ye.ERR_BAD_OPTION)}},validators:ot};const at=st.validators;class lt{constructor(e){this.defaults=e,this.interceptors={request:new Le,response:new Le}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=rt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&st.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=r&&(pe.isFunction(r)?t.paramsSerializer={serialize:r}:st.assertOptions(r,{encode:at.function,serialize:at.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&pe.merge(o.common,o[t.method]);o&&pe.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Ue.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=[tt.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=tt.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 Ae(Ze((e=rt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}pe.forEach(["delete","get","head","options"],(function(e){lt.prototype[e]=function(t,n){return this.request(rt(n||{},{method:e,url:t,data:(n||{}).data}))}})),pe.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(rt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}lt.prototype[e]=t(),lt.prototype[e+"Form"]=t(!0)}));var ct=lt;class ut{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 We(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 ut((function(t){e=t}));return{token:t,cancel:e}}}var dt=ut;const mt={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(mt).forEach((([e,t])=>{mt[t]=e}));var pt=mt;const ft=function e(t){const n=new ct(t),r=R(ct.prototype.request,n);return pe.extend(r,ct.prototype,n,{allOwnKeys:!0}),pe.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(rt(t,n))},r}(Re);ft.Axios=ct,ft.CanceledError=We,ft.CancelToken=dt,ft.isCancel=ze,ft.VERSION="1.5.1",ft.toFormData=Ee,ft.AxiosError=ye,ft.Cancel=ft.CanceledError,ft.all=function(e){return Promise.all(e)},ft.spread=function(e){return function(t){return e.apply(null,t)}},ft.isAxiosError=function(e){return pe.isObject(e)&&!0===e.isAxiosError},ft.mergeConfig=rt,ft.AxiosHeaders=Ue,ft.formToJSON=e=>De(pe.isHTMLForm(e)?new FormData(e):e),ft.getAdapter=Qe,ft.HttpStatusCode=pt,ft.default=ft;const ht=ft.create({baseURL:window.extAssistData.root,headers:{"X-WP-Nonce":window.extAssistData.nonce,"X-Requested-With":"XMLHttpRequest","X-Extendify-Assist":!0,"X-Extendify":!0}});ht.interceptors.request.use((e=>gt(e)),(e=>console.log(e)||e)),ht.interceptors.response.use((e=>Object.prototype.hasOwnProperty.call(e,"data")?e.data:e),(e=>console.log(e)||e));const gt=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 yt;const vt={currentTour:null,currentStep:void 0,preparingStep:void 0,progress:[],...null!==(yt=(window.extAssistData.userData.tourData?.data||{})?.state)&&void 0!==yt?yt:{}},xt={getItem:async()=>JSON.stringify(await ht.get("assist/tour-data")),setItem:async(e,t)=>{return await(n=t,ht.post("assist/tour-data",{data:n}));var n},removeItem:()=>{}},bt=k(O(L(((e,t)=>({...vt,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:N((()=>xt)),skipHydration:!0,partialize:e=>{const{currentTour:t,currentStep:n,preparingStep:r,...o}=e;return o}})),wt=e=>new Promise((t=>{const n=setInterval((()=>{document.querySelector(e)&&(clearInterval(n),t())}),50)})),Et=e=>new Promise((t=>{const n=setInterval((()=>{document.querySelector(e)||(clearInterval(n),t())}),50)}));var Ct={id:"library-tour",settings:{allowOverflow:!0,hideDotsNav:!0,startFrom:[window.extAssistData.adminUrl+"post-new.php?post_type=page"]},onStart:async()=>{await wt("#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 wt("#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 wt("#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 Et("#masonry-grid"))},options:{hideBackButton:!0}}]},St=window.wp.blocks;const Tt=()=>!!document.querySelector('iframe[name="editor-canvas"]'),kt=e=>{var t;return null!==(t=13!==e.keyCode)&&void 0!==t?t:e.preventDefault()};var _t={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 wt(".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 wt(".block-editor-inserter__tabs")),onAttach:()=>{const e=document.querySelector(".edit-post-header-toolbar__inserter-toggle");At.observe(e,{attributes:!0}),window.addEventListener("keydown",kt)},onDetach:async()=>{At.disconnect(),window.removeEventListener("keydown",kt),document.querySelector(".edit-post-header-toolbar__inserter-toggle.is-pressed")?.click(),await Et(".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:()=>Tt()?'iframe[name="editor-canvas"]':".wp-block-post-title",offset:()=>({marginTop:Tt()?15:0,marginLeft:Tt()?-15:15}),position:{x:"right",y:"top"},hook:()=>Tt()?"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:()=>Tt()?'iframe[name="editor-canvas"]':".wp-block-post-content > p",offset:()=>({marginTop:Tt()?15:0,marginLeft:Tt()?-15:15}),position:{x:"right",y:"top"},hook:()=>Tt()?"top right":"top left"},events:{beforeAttach:async()=>{if(await window.wp.data.select("core/block-editor").getBlockCount()>0)return;const e=(0,St.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),Tt()?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 wt(".interface-interface-skeleton__sidebar"),document.querySelector(".edit-post-sidebar__panel-tab")?.click(),await wt(".edit-post-post-status"),document.querySelector(".edit-post-post-status:not(.is-opened) button")?.click(),await wt(".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 At=new MutationObserver((()=>{document.querySelector(".edit-post-header-toolbar__inserter-toggle:not(.is-pressed)")?.click()}));var Lt={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:{}}]},Pt={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:{}}]},Nt={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:()=>wt("#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:()=>wt("#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:()=>wt("#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:()=>wt("#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:Dt,themeSlug:Ot,blockTheme:Rt}=window.extAssistData;var Mt={id:"style-editor-tour",settings:{allowOverflow:!1,startFrom:[Dt+`site-editor.php?canvas=edit&postType=wp_template&postId=${Ot}%2F%2Fhome`],enabled:null!=Rt&&Rt},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:()=>wt(".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 wt(".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 wt(".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 wt(".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 wt(".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 wt(".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 wt(".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 wt(".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 wt(".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 wt(".components-tools-panel"))}}],onFinish:async()=>(document.querySelector(".edit-site-global-styles-sidebar button.components-navigator-back-button")?.click(),await wt(".edit-site-global-styles-preview__iframe"))},Ft={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:{}}]},jt={"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":Lt,"plugin-management-tour":Pt,"page-editor-tour":_t,"library-tour":Ct,"style-editor-tour":Mt,"users-screen-tour":Ft,"site-assistant-tour":Nt};const Vt=()=>{const{startTour:n,wasOpened:r}=bt(),o=Object.values(jt).filter((e=>e?.settings?.startFrom.includes(window.location.href)));if(!o.length)return null;const i=document?.querySelector("a.wp-has-current-submenu, li.current > a.current"),s=document?.querySelector("#wpadminbar"),a=r(o[0].id)?window.getComputedStyle(s)?.["background-color"]:window.getComputedStyle(i)?.["background-color"];return(0,e.createElement)("button",{onClick:()=>n(o[0]),className:"ab-item ltr:pl-1 ltr:pr-2 rtl:pl-2 rtl:pr-1 inline-flex justify-center items-center gap-2 rounded-full h-6 mt-1 pl-2.5 pr-3 cursor-pointer",style:{backgroundColor:a,color:"#fff"}},(0,e.createElement)(m,{className:"w-6 h-6 fill-current"}),(0,e.createElement)("span",null,(0,t.__)("Tour this page","extendify-local")))};var Bt=window.wp.components,It=(0,e.forwardRef)((function({icon:t,size:n=24,...r},o){return(0,e.cloneElement)(t,{width:n,height:n,...r,ref:o})})),Ut=window.wp.primitives,Ht=(0,e.createElement)(Ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Ut.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 zt(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,zt),r}function qt(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Wt,$t=((Wt=$t||{})[Wt.None=0]="None",Wt[Wt.RenderStrategy=1]="RenderStrategy",Wt[Wt.Static=2]="Static",Wt),Zt=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Zt||{});function Gt({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s}){let a=Yt(t,e);if(i)return Xt(a,n,r,s);let l=null!=o?o:0;if(2&l){let{static:e=!1,...t}=a;if(e)return Xt(t,n,r,s)}if(1&l){let{unmount:e=!0,...t}=a;return zt(e?0:1,{0(){return null},1(){return Xt({...t,hidden:!0,style:{display:"none"}},n,r,s)}})}return Xt(a,n,r,s)}function Xt(e,t={},n,r){let{as:o=n,children:i,refName:s="ref",...a}=Qt(e,["unmount","static"]),l=void 0!==e.ref?{[s]:e.ref}:{},c="function"==typeof i?i(t):i;"className"in a&&a.className&&"function"==typeof a.className&&(a.className=a.className(t));let u={};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&&(u["data-headlessui-state"]=n.join(" "))}if(o===b.Fragment&&Object.keys(Jt(a)).length>0){if(!(0,b.isValidElement)(c)||Array.isArray(c)&&c.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(a).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=c.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>qt(null==e?void 0:e.className(...t),a.className):qt(null==e?void 0:e.className,a.className),n=t?{className:t}:{};return(0,b.cloneElement)(c,Object.assign({},Yt(c.props,Jt(Qt(a,["ref"]))),u,l,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)}}}(c.ref,l.ref),n))}return(0,b.createElement)(o,Object.assign({},Qt(a,["ref"]),o!==b.Fragment&&l,o!==b.Fragment&&u),c)}function Yt(...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 Kt(e){var t;return Object.assign((0,b.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Jt(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Qt(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}var en=Object.defineProperty,tn=(e,t,n)=>(((e,t,n)=>{t in e?en(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let nn=new class{constructor(){tn(this,"current",this.detect()),tn(this,"handoffState","pending"),tn(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}},rn=(e,t)=>{nn.isServer?(0,b.useEffect)(e,t):(0,b.useLayoutEffect)(e,t)};function on(e){let t=(0,b.useRef)(e);return rn((()=>{t.current=e}),[e]),t}let sn=function(e){let t=on(e);return b.useCallback(((...e)=>t.current(...e)),[t])},an=Symbol();function ln(...e){let t=(0,b.useRef)(e);(0,b.useEffect)((()=>{t.current=e}),[e]);let n=sn((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[an])))?void 0:n}var cn,un=(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))(un||{});function dn(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in w&&w.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=b.useState(nn.isHandoffComplete);return t&&!1===nn.isHandoffComplete&&n(!1),b.useEffect((()=>{!0!==t&&n(!0)}),[t]),b.useEffect((()=>nn.handoff()),[]),!e&&t}let mn=null!=(cn=b.useId)?cn:function(){let e=dn(),[t,n]=b.useState(e?()=>nn.nextId():null);return rn((()=>{null===t&&n(nn.nextId())}),[t]),null!=t?""+t:void 0};var pn=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(pn||{});let fn=Kt((function(e,t){let{features:n=1,...r}=e;return Gt({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 hn(e){return nn.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}let gn=["[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 yn,vn,xn=(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))(xn||{}),bn=((vn=bn||{})[vn.Error=0]="Error",vn[vn.Overflow=1]="Overflow",vn[vn.Success=2]="Success",vn[vn.Underflow=3]="Underflow",vn),wn=((yn=wn||{})[yn.Previous=-1]="Previous",yn[yn.Next=1]="Next",yn);var En=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(En||{});var Cn=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Cn||{});function Sn(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 Tn=["textarea","input"].join(",");function kn(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(gn)).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,Tn))&&n}(a)&&a.select(),2}function An(e,t,n){let r=on(t);(0,b.useEffect)((()=>{function t(e){r.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)}),[e,n])}var Ln=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Ln||{});function Pn(){let e=(0,b.useRef)(!1);return rn((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Nn(...e){return(0,b.useMemo)((()=>hn(...e)),[...e])}function Dn(e,t,n,r){let o=on(n);(0,b.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 On(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Rn(e,t){let n=(0,b.useRef)([]),r=sn(e);(0,b.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 Mn(){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 On((()=>{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=Mn();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 Fn(e){let t=sn(e),n=(0,b.useRef)(!1);(0,b.useEffect)((()=>(n.current=!1,()=>{n.current=!0,On((()=>{n.current&&t()}))})),[t])}function jn(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 Vn=(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))(Vn||{});let Bn=Kt((function(e,t){let n=(0,b.useRef)(null),r=ln(n,t),{initialFocus:o,containers:i,features:s=30,...a}=e;dn()||(s=1);let l=Nn(n);!function({ownerDocument:e},t){let n=function(e=!0){let t=(0,b.useRef)(Un.slice());return Rn((([e],[n])=>{!0===n&&!1===e&&On((()=>{t.current.splice(0)})),!1===n&&!0===e&&(t.current=Un.slice())}),[e,Un,t]),sn((()=>{var e;return null!=(e=t.current.find((e=>null!=e&&e.isConnected)))?e:null}))}(t);Rn((()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&Sn(n())}),[t]),Fn((()=>{t&&Sn(n())}))}({ownerDocument:l},Boolean(16&s));let c=function({ownerDocument:e,container:t,initialFocus:n},r){let o=(0,b.useRef)(null),i=Pn();return Rn((()=>{if(!r)return;let s=t.current;s&&On((()=>{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?Sn(n.current):kn(s,xn.First)===bn.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),o.current=null==e?void 0:e.activeElement}))}),[r]),o}({ownerDocument:l,container:n,initialFocus:o},Boolean(2&s));!function({ownerDocument:e,container:t,containers:n,previousActiveElement:r},o){let i=Pn();Dn(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!i.current)return;let s=jn(n);t.current instanceof HTMLElement&&s.add(t.current);let a=r.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?Hn(s,l)?(r.current=l,Sn(l)):(e.preventDefault(),e.stopPropagation(),Sn(a)):Sn(r.current)}),!0)}({ownerDocument:l,container:n,containers:i,previousActiveElement:c},Boolean(8&s));let u=function(){let e=(0,b.useRef)(0);return An("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),d=sn((e=>{let t=n.current;t&&zt(u.current,{[Ln.Forwards]:()=>{kn(t,xn.First,{skipElements:[e.relatedTarget]})},[Ln.Backwards]:()=>{kn(t,xn.Last,{skipElements:[e.relatedTarget]})}})})),m=function(){let[e]=(0,b.useState)(Mn);return(0,b.useEffect)((()=>()=>e.dispose()),[e]),e}(),p=(0,b.useRef)(!1),f={ref:r,onKeyDown(e){"Tab"==e.key&&(p.current=!0,m.requestAnimationFrame((()=>{p.current=!1})))},onBlur(e){let t=jn(i);n.current instanceof HTMLElement&&t.add(n.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(Hn(t,r)||(p.current?kn(n.current,zt(u.current,{[Ln.Forwards]:()=>xn.Next,[Ln.Backwards]:()=>xn.Previous})|xn.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&Sn(e.target)))}};return b.createElement(b.Fragment,null,Boolean(4&s)&&b.createElement(fn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:pn.Focusable}),Gt({ourProps:f,theirProps:a,defaultTag:"div",name:"FocusTrap"}),Boolean(4&s)&&b.createElement(fn,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:d,features:pn.Focusable}))})),In=Object.assign(Bn,{features:Vn}),Un=[];function Hn(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&&Un[0]!==e.target&&(Un.unshift(e.target),Un=Un.filter((e=>null!=e&&e.isConnected)),Un.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 zn=window.ReactDOM;let qn=(0,b.createContext)(!1);function Wn(){return(0,b.useContext)(qn)}function $n(e){return b.createElement(qn.Provider,{value:e.force},e.children)}let Zn=b.Fragment,Gn=b.Fragment,Xn=(0,b.createContext)(null),Yn=(0,b.createContext)(null),Kn=Kt((function(e,t){let n=e,r=(0,b.useRef)(null),o=ln(function(e,t=!0){return Object.assign(e,{[an]:t})}((e=>{r.current=e})),t),i=Nn(r),s=function(e){let t=Wn(),n=(0,b.useContext)(Xn),r=Nn(e),[o,i]=(0,b.useState)((()=>{if(!t&&null!==n||nn.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,b.useEffect)((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),(0,b.useEffect)((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}(r),[a]=(0,b.useState)((()=>{var e;return nn.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),l=(0,b.useContext)(Yn),c=dn();return rn((()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))}),[s,a]),rn((()=>{if(a&&l)return l.register(a)}),[l,a]),Fn((()=>{var e;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s)))})),c&&s&&a?(0,zn.createPortal)(Gt({ourProps:{ref:o},theirProps:n,defaultTag:Zn,name:"Portal"}),a):null})),Jn=Kt((function(e,t){let{target:n,...r}=e,o={ref:ln(t)};return b.createElement(Xn.Provider,{value:n},Gt({ourProps:o,theirProps:r,defaultTag:Gn,name:"Popover.Group"}))})),Qn=Object.assign(Kn,{Group:Jn}),er=(0,b.createContext)(null);function tr(){let e=(0,b.useContext)(er);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,tr),e}return e}let nr=Kt((function(e,t){let n=mn(),{id:r=`headlessui-description-${n}`,...o}=e,i=tr(),s=ln(t);return rn((()=>i.register(r)),[r,i.register]),Gt({ourProps:{ref:s,...i.props,id:r},theirProps:o,slot:i.slot||{},defaultTag:"p",name:i.name||"Description"})})),rr=Object.assign(nr,{}),or=(0,b.createContext)(null);or.displayName="OpenClosedContext";var ir=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ir||{});function sr(){return(0,b.useContext)(or)}let ar=(0,b.createContext)((()=>{}));ar.displayName="StackContext";var lr=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(lr||{});function cr({children:e,onUpdate:t,type:n,element:r,enabled:o}){let i=(0,b.useContext)(ar),s=sn(((...e)=>{null==t||t(...e),i(...e)}));return rn((()=>{let e=void 0===o||!0===o;return e&&s(0,n,r),()=>{e&&s(1,n,r)}}),[s,n,r,o]),b.createElement(ar.Provider,{value:s},e)}function ur(e,t,n){let r=on(t);(0,b.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)}),[e,n])}function dr(e,t,n=!0){let r=(0,b.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=hn(e))?void 0:n.body)&&zt(t,{0(){return e.matches(gn)},1(){let t=e;for(;null!==t;){if(t.matches(gn))return!0;t=t.parentElement}return!1}})}(i,En.Loose)&&-1!==i.tabIndex&&n.preventDefault(),t(n,i)}(0,b.useEffect)((()=>{requestAnimationFrame((()=>{r.current=n}))}),[n]);let i=(0,b.useRef)(null);ur("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),ur("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),ur("click",(e=>{i.current&&(o(e,(()=>i.current)),i.current=null)}),!0),ur("touchend",(e=>o(e,(()=>e.target instanceof HTMLElement?e.target:null))),!0),An("blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}const mr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},{useState:pr,useEffect:fr,useLayoutEffect:hr,useDebugValue:gr}=w;function yr(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!mr(n,e)}catch{return!0}}const vr="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]=pr({inst:{value:r,getSnapshot:t}});return hr((()=>{o.value=r,o.getSnapshot=t,yr(o)&&i({inst:o})}),[e,r,t]),fr((()=>(yr(o)&&i({inst:o}),e((()=>{yr(o)&&i({inst:o})})))),[e]),gr(r),r},xr="useSyncExternalStore"in w?(e=>e.useSyncExternalStore)(w):vr;function br(){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 wr(){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=Mn();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 Er(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Cr=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:Mn(),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:Er(n)},o=[wr(),br(),{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)}});Cr.subscribe((()=>{let e=Cr.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)&&Cr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Cr.dispatch("TEARDOWN",n)}}));let Sr=new Map,Tr=new Map;function kr(e,t=!0){rn((()=>{var n;if(!t)return;let r="function"==typeof e?e():e.current;if(!r)return;let o=null!=(n=Tr.get(r))?n:0;return Tr.set(r,o+1),0!==o||(Sr.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=Tr.get(r))?e:1;if(1===t?Tr.delete(r):Tr.set(r,t-1),1!==t)return;let n=Sr.get(r);n&&(null===n["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",n["aria-hidden"]),r.inert=n.inert,Sr.delete(r))}}),[e,t])}function _r({defaultContainers:e=[],portals:t,mainTreeNodeRef:n}={}){var r;let o=(0,b.useRef)(null!=(r=null==n?void 0:n.current)?r:null),i=Nn(o),s=sn((()=>{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:s,contains:sn((e=>s().some((t=>t.contains(e))))),mainTreeNodeRef:o,MainTreeNode:(0,b.useMemo)((()=>function(){return null!=n?null:b.createElement(fn,{features:pn.Hidden,ref:o})}),[o,n])}}var Ar=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ar||{}),Lr=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Lr||{});let Pr={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},Nr=(0,b.createContext)(null);function Dr(e){let t=(0,b.useContext)(Nr);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Dr),t}return t}function Or(e,t){return zt(t.type,Pr,e,t)}Nr.displayName="DialogContext";let Rr=$t.RenderStrategy|$t.Static,Mr=Kt((function(e,t){var n;let r=mn(),{id:o=`headlessui-dialog-${r}`,open:i,onClose:s,initialFocus:a,__demoMode:l=!1,...c}=e,[u,d]=(0,b.useState)(0),m=sr();void 0===i&&null!==m&&(i=(m&ir.Open)===ir.Open);let p=(0,b.useRef)(null),f=ln(p,t),h=Nn(p),g=e.hasOwnProperty("open")||null!==m,y=e.hasOwnProperty("onClose");if(!g&&!y)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!g)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!y)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 s)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${s}`);let v=i?0:1,[x,w]=(0,b.useReducer)(Or,{titleId:null,descriptionId:null,panelRef:(0,b.createRef)()}),E=sn((()=>s(!1))),C=sn((e=>w({type:0,id:e}))),S=!!dn()&&!l&&0===v,T=u>1,k=null!==(0,b.useContext)(Nr),[_,A]=function(){let e=(0,b.useContext)(Yn),t=(0,b.useRef)([]),n=sn((n=>(t.current.push(n),e&&e.register(n),()=>r(n)))),r=sn((n=>{let r=t.current.indexOf(n);-1!==r&&t.current.splice(r,1),e&&e.unregister(n)})),o=(0,b.useMemo)((()=>({register:n,unregister:r,portals:t})),[n,r,t]);return[t,(0,b.useMemo)((()=>function({children:e}){return b.createElement(Yn.Provider,{value:o},e)}),[o])]}(),{resolveContainers:L,mainTreeNodeRef:P,MainTreeNode:N}=_r({portals:_,defaultContainers:[null!=(n=x.panelRef.current)?n:p.current]}),D=T?"parent":"leaf",O=null!==m&&(m&ir.Closing)===ir.Closing,R=!k&&!O&&S,M=(0,b.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==h?void 0:h.querySelectorAll("body > *"))?e:[]).find((e=>"headlessui-portal-root"!==e.id&&e.contains(P.current)&&e instanceof HTMLElement)))?t:null}),[P]);kr(M,R);let F=!!T||S,j=(0,b.useCallback)((()=>{var e,t;return null!=(t=Array.from(null!=(e=null==h?void 0:h.querySelectorAll("[data-headlessui-portal]"))?e:[]).find((e=>e.contains(P.current)&&e instanceof HTMLElement)))?t:null}),[P]);kr(j,F),dr(L,E,!(!S||T));let V=!(T||0!==v);Dn(null==h?void 0:h.defaultView,"keydown",(e=>{V&&(e.defaultPrevented||e.key===un.Escape&&(e.preventDefault(),e.stopPropagation(),E()))})),function(e,t,n=(()=>[document.body])){!function(e,t,n){let r=function(e){return xr(e.subscribe,e.getSnapshot,e.getSnapshot)}(Cr),o=e?r.get(e):void 0,i=!!o&&o.count>0;rn((()=>{if(e&&t)return Cr.dispatch("PUSH",e,n),()=>Cr.dispatch("POP",e,n)}),[t,e])}(e,t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}(h,!(O||0!==v||k),L),(0,b.useEffect)((()=>{if(0!==v||!p.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(p.current),()=>e.disconnect()}),[v,p,E]);let[B,I]=function(){let[e,t]=(0,b.useState)([]);return[e.length>0?e.join(" "):void 0,(0,b.useMemo)((()=>function(e){let n=sn((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,b.useMemo)((()=>({register:n,slot:e.slot,name:e.name,props:e.props})),[n,e.slot,e.name,e.props]);return b.createElement(er.Provider,{value:r},e.children)}),[t])]}(),U=(0,b.useMemo)((()=>[{dialogState:v,close:E,setTitleId:C},x]),[v,x,E,C]),H=(0,b.useMemo)((()=>({open:0===v})),[v]),z={ref:f,id:o,role:"dialog","aria-modal":0===v||void 0,"aria-labelledby":x.titleId,"aria-describedby":B};return b.createElement(cr,{type:"Dialog",enabled:0===v,element:p,onUpdate:sn(((e,t)=>{"Dialog"===t&&zt(e,{[lr.Add]:()=>d((e=>e+1)),[lr.Remove]:()=>d((e=>e-1))})}))},b.createElement($n,{force:!0},b.createElement(Qn,null,b.createElement(Nr.Provider,{value:U},b.createElement(Qn.Group,{target:p},b.createElement($n,{force:!1},b.createElement(I,{slot:H,name:"Dialog.Description"},b.createElement(In,{initialFocus:a,containers:L,features:S?zt(D,{parent:In.features.RestoreFocus,leaf:In.features.All&~In.features.FocusLock}):In.features.None},b.createElement(A,null,Gt({ourProps:z,theirProps:c,slot:H,defaultTag:"div",features:Rr,visible:0===v,name:"Dialog"}))))))))),b.createElement(N,null))})),Fr=Kt((function(e,t){let n=mn(),{id:r=`headlessui-dialog-backdrop-${n}`,...o}=e,[{dialogState:i},s]=Dr("Dialog.Backdrop"),a=ln(t);(0,b.useEffect)((()=>{if(null===s.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[s.panelRef]);let l=(0,b.useMemo)((()=>({open:0===i})),[i]);return b.createElement($n,{force:!0},b.createElement(Qn,null,Gt({ourProps:{ref:a,id:r,"aria-hidden":!0},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))})),jr=Kt((function(e,t){let n=mn(),{id:r=`headlessui-dialog-panel-${n}`,...o}=e,[{dialogState:i},s]=Dr("Dialog.Panel"),a=ln(t,s.panelRef),l=(0,b.useMemo)((()=>({open:0===i})),[i]);return Gt({ourProps:{ref:a,id:r,onClick:sn((e=>{e.stopPropagation()}))},theirProps:o,slot:l,defaultTag:"div",name:"Dialog.Panel"})})),Vr=Kt((function(e,t){let n=mn(),{id:r=`headlessui-dialog-overlay-${n}`,...o}=e,[{dialogState:i,close:s}]=Dr("Dialog.Overlay");return Gt({ourProps:{ref:ln(t),id:r,"aria-hidden":!0,onClick:sn((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(),s()}}))},theirProps:o,slot:(0,b.useMemo)((()=>({open:0===i})),[i]),defaultTag:"div",name:"Dialog.Overlay"})})),Br=Kt((function(e,t){let n=mn(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Dr("Dialog.Title"),a=ln(t);(0,b.useEffect)((()=>(s(r),()=>s(null))),[r,s]);let l=(0,b.useMemo)((()=>({open:0===i})),[i]);return Gt({ourProps:{ref:a,id:r},theirProps:o,slot:l,defaultTag:"h2",name:"Dialog.Title"})})),Ir=Object.assign(Mr,{Backdrop:Fr,Panel:jr,Overlay:Vr,Title:Br,Description:rr});const Ur="undefined"!=typeof document,Hr=Ur?b.useLayoutEffect:b.useEffect;function zr(){const e=(0,b.useRef)(!1);return Hr((()=>(e.current=!0,()=>{e.current=!1})),[]),e}const qr=e=>e;class Wr{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 $r=["prepare","read","update","preRender","render","postRender"],{schedule:Zr,cancel:Gr,state:Xr,steps:Yr}=function(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=$r.reduce(((e,t)=>(e[t]=function(e){let t=new Wr,n=new Wr,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,$r.forEach(s),o.isProcessing=!1,n&&(r=!1,e(a))};return{schedule:$r.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=>$r.forEach((t=>i[t].cancel(e))),state:o,steps:i}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:qr),Kr=(0,b.createContext)(null);function Jr(e){const t=(0,b.useRef)(null);return null===t.current&&(t.current=e()),t.current}class Qr extends b.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 eo({children:e,isPresent:t}){const n=(0,b.useId)(),r=(0,b.useRef)(null),o=(0,b.useRef)({width:0,height:0,top:0,left:0});return(0,b.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]),b.createElement(Qr,{isPresent:t,childRef:r,sizeRef:o},b.cloneElement(e,{ref:r}))}const to=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:s})=>{const a=Jr(no),l=(0,b.useId)(),c=(0,b.useMemo)((()=>({id:l,initial:t,isPresent:n,custom:o,onExitComplete:e=>{a.set(e,!0);for(const e of a.values())if(!e)return;r&&r()},register:e=>(a.set(e,!1),()=>a.delete(e))})),i?void 0:[n]);return(0,b.useMemo)((()=>{a.forEach(((e,t)=>a.set(t,!1)))}),[n]),b.useEffect((()=>{!n&&!a.size&&r&&r()}),[n]),"popLayout"===s&&(e=b.createElement(eo,{isPresent:n},e)),b.createElement(Kr.Provider,{value:c},e)};function no(){return new Map}const ro=(0,b.createContext)({});let oo=qr,io=qr;const so=e=>e.key||"",ao=({children:e,custom:t,initial:n=!0,onExitComplete:r,exitBeforeEnter:o,presenceAffectsLayout:i=!0,mode:s="sync"})=>{io(!o,"Replace exitBeforeEnter with mode='wait'");const a=(0,b.useContext)(ro).forceRender||function(){const e=zr(),[t,n]=(0,b.useState)(0),r=(0,b.useCallback)((()=>{e.current&&n(t+1)}),[t]);return[(0,b.useCallback)((()=>Zr.postRender(r)),[r]),t]}()[0],l=zr(),c=function(e){const t=[];return b.Children.forEach(e,(e=>{(0,b.isValidElement)(e)&&t.push(e)})),t}(e);let u=c;const d=(0,b.useRef)(new Map).current,m=(0,b.useRef)(u),p=(0,b.useRef)(new Map).current,f=(0,b.useRef)(!0);var h;if(Hr((()=>{f.current=!1,function(e,t){e.forEach((e=>{const n=so(e);t.set(n,e)}))}(c,p),m.current=u})),h=()=>{f.current=!0,p.clear(),d.clear()},(0,b.useEffect)((()=>()=>h()),[]),f.current)return b.createElement(b.Fragment,null,u.map((e=>b.createElement(to,{key:so(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:i,mode:s},e))));u=[...u];const g=m.current.map(so),y=c.map(so),v=g.length;for(let e=0;e<v;e++){const t=g[e];-1!==y.indexOf(t)||d.has(t)||d.set(t,void 0)}return"wait"===s&&d.size&&(u=[]),d.forEach(((e,n)=>{if(-1!==y.indexOf(n))return;const o=p.get(n);if(!o)return;const f=g.indexOf(n);let h=e;if(!h){const e=()=>{p.delete(n),d.delete(n);const e=m.current.findIndex((e=>e.key===n));if(m.current.splice(e,1),!d.size){if(m.current=c,!1===l.current)return;a(),r&&r()}};h=b.createElement(to,{key:so(o),isPresent:!1,onExitComplete:e,custom:t,presenceAffectsLayout:i,mode:s},o),d.set(n,h)}u.splice(f,0,h)})),u=u.map((e=>{const t=e.key;return d.has(t)?e:b.createElement(to,{key:so(e),isPresent:!0,presenceAffectsLayout:i,mode:s},e)})),b.createElement(b.Fragment,null,d.size?u:u.map((e=>(0,b.cloneElement)(e))))},lo=(0,b.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),co=(0,b.createContext)({}),uo=(0,b.createContext)({strict:!1});function mo(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function po(e){return"string"==typeof e||Array.isArray(e)}function fo(e){return"object"==typeof e&&"function"==typeof e.start}const ho=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],go=["initial",...ho];function yo(e){return fo(e.animate)||go.some((t=>po(e[t])))}function vo(e){return Boolean(yo(e)||e.variants)}function xo(e){return Array.isArray(e)?e.join(" "):e}const bo={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"]},wo={};for(const e in bo)wo[e]={isEnabled:t=>bo[e].some((e=>!!t[e]))};const Eo=(0,b.createContext)({}),Co=Symbol.for("motionComponentSymbol");function So({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:o}){e&&function(e){for(const t in e)wo[t]={...wo[t],...e[t]}}(e);const i=(0,b.forwardRef)((function(i,s){let a;const l={...(0,b.useContext)(lo),...i,layoutId:To(i)},{isStatic:c}=l,u=function(e){const{initial:t,animate:n}=function(e,t){if(yo(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,b.useContext)(co));return(0,b.useMemo)((()=>({initial:t,animate:n})),[xo(t),xo(n)])}(i),d=r(i,c);if(!c&&Ur){u.visualElement=function(e,t,n,r){const{visualElement:o}=(0,b.useContext)(co),i=(0,b.useContext)(uo),s=(0,b.useContext)(Kr),a=(0,b.useContext)(lo).reducedMotion,l=(0,b.useRef)();r=r||i.renderer,!l.current&&r&&(l.current=r(e,{visualState:t,parent:o,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));const c=l.current;(0,b.useInsertionEffect)((()=>{c&&c.update(n,s)}));const u=(0,b.useRef)(Boolean(window.HandoffAppearAnimations));return Hr((()=>{c&&(c.render(),u.current&&c.animationState&&c.animationState.animateChanges())})),(0,b.useEffect)((()=>{c&&(c.updateFeatures(),!u.current&&c.animationState&&c.animationState.animateChanges(),window.HandoffAppearAnimations=void 0,u.current=!1)})),c}(o,d,l,t);const n=(0,b.useContext)(Eo),r=(0,b.useContext)(uo).strict;u.visualElement&&(a=u.visualElement.loadFeatures(l,r,e,n))}return b.createElement(co.Provider,{value:u},a&&u.visualElement?b.createElement(a,{visualElement:u.visualElement,...l}):null,n(o,i,function(e,t,n){return(0,b.useCallback)((r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):mo(n)&&(n.current=r))}),[t])}(d,u.visualElement,s),d,c,u.visualElement))}));return i[Co]=o,i}function To({layoutId:e}){const t=(0,b.useContext)(ro).id;return t&&void 0!==e?t+"-"+e:e}function ko(e){function t(t,n={}){return So(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 _o=["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 Ao(e){return"string"==typeof e&&!e.includes("-")&&!!(_o.indexOf(e)>-1||/[A-Z]/.test(e))}const Lo={},Po=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],No=new Set(Po);function Do(e,{layout:t,layoutId:n}){return No.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!Lo[e]||"opacity"===e)}const Oo=e=>Boolean(e&&e.getVelocity),Ro={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Mo=Po.length,Fo=e=>t=>"string"==typeof t&&t.startsWith(e),jo=Fo("--"),Vo=Fo("var(--"),Bo=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Io=(e,t,n)=>Math.min(Math.max(n,e),t),Uo={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},Ho={...Uo,transform:e=>Io(0,1,e)},zo={...Uo,default:1},qo=e=>Math.round(1e5*e)/1e5,Wo=/(-)?([\d]*\.?[\d])+/g,$o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Zo=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Go(e){return"string"==typeof e}const Xo=e=>({test:t=>Go(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=Xo("deg"),Ko=Xo("%"),Jo=Xo("px"),Qo=Xo("vh"),ei=Xo("vw"),ti={...Ko,parse:e=>Ko.parse(e)/100,transform:e=>Ko.transform(100*e)},ni={...Uo,transform:Math.round},ri={borderWidth:Jo,borderTopWidth:Jo,borderRightWidth:Jo,borderBottomWidth:Jo,borderLeftWidth:Jo,borderRadius:Jo,radius:Jo,borderTopLeftRadius:Jo,borderTopRightRadius:Jo,borderBottomRightRadius:Jo,borderBottomLeftRadius:Jo,width:Jo,maxWidth:Jo,height:Jo,maxHeight:Jo,size:Jo,top:Jo,right:Jo,bottom:Jo,left:Jo,padding:Jo,paddingTop:Jo,paddingRight:Jo,paddingBottom:Jo,paddingLeft:Jo,margin:Jo,marginTop:Jo,marginRight:Jo,marginBottom:Jo,marginLeft:Jo,rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:zo,scaleX:zo,scaleY:zo,scaleZ:zo,skew:Yo,skewX:Yo,skewY:Yo,distance:Jo,translateX:Jo,translateY:Jo,translateZ:Jo,x:Jo,y:Jo,z:Jo,perspective:Jo,transformPerspective:Jo,opacity:Ho,originX:ti,originY:ti,originZ:Jo,zIndex:ni,fillOpacity:Ho,strokeOpacity:Ho,numOctaves:ni};function oi(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(jo(e)){i[e]=n;continue}const r=ri[e],d=Bo(n,r);if(No.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<Mo;t++){const n=Po[t];void 0!==e[n]&&(i+=`${Ro[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 ii=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function si(e,t,n){for(const r in t)Oo(t[r])||Do(r,n)||(e[r]=t[r])}function ai(e,t,n){const r={},o=function(e,t,n){const r={};return si(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t,n){return(0,b.useMemo)((()=>{const r=ii();return oi(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 li=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 ci(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||li.has(e)}let ui=e=>!ci(e);try{(di=require("@emotion/is-prop-valid").default)&&(ui=e=>e.startsWith("on")?!ci(e):di(e))}catch(e){}var di;function mi(e,t,n){return"string"==typeof e?e:Jo.transform(t+n*e)}const pi={offset:"stroke-dashoffset",array:"stroke-dasharray"},fi={offset:"strokeDashoffset",array:"strokeDasharray"};function hi(e,{attrX:t,attrY:n,attrScale:r,originX:o,originY:i,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,d,m){if(oi(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`${mi(t,e.x,e.width)} ${mi(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:fi;e[i.offset]=Jo.transform(-r);const s=Jo.transform(t),a=Jo.transform(n);e[i.array]=`${s} ${a}`}(p,s,a,l,!1)}const gi=()=>({...ii(),attrs:{}}),yi=e=>"string"==typeof e&&"svg"===e.toLowerCase();function vi(e,t,n,r){const o=(0,b.useMemo)((()=>{const n=gi();return hi(n,t,{enableHardwareAcceleration:!1},yi(r),e.transformTemplate),{...n.attrs,style:{...n.style}}}),[t]);if(e.style){const t={};si(t,e.style,e),o.style={...t,...o.style}}return o}function xi(e=!1){return(t,n,r,{latestValues:o},i)=>{const s=(Ao(t)?vi:ai)(n,o,i,t),a=function(e,t,n){const r={};for(const o in e)"values"===o&&"object"==typeof e.values||(ui(o)||!0===n&&ci(o)||!t&&!ci(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),l={...a,...s,ref:r},{children:c}=n,u=(0,b.useMemo)((()=>Oo(c)?c.get():c),[c]);return(0,b.createElement)(t,{...l,children:u})}}const bi=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function wi(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 Ei=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 Ci(e,t,n,r){wi(e,t,void 0,r);for(const n in t.attrs)e.setAttribute(Ei.has(n)?n:bi(n),t.attrs[n])}function Si(e,t){const{style:n}=e,r={};for(const o in n)(Oo(n[o])||t.style&&Oo(t.style[o])||Do(o,e))&&(r[o]=n[o]);return r}function Ti(e,t){const n=Si(e,t);for(const r in e)(Oo(e[r])||Oo(t[r]))&&(n[-1!==Po.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}function ki(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 _i=e=>Array.isArray(e),Ai=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),Li=e=>_i(e)?e[e.length-1]||0:e;function Pi(e){const t=Oo(e)?e.get():e;return Ai(t)?t.toValue():t}const Ni=e=>(t,n)=>{const r=(0,b.useContext)(co),o=(0,b.useContext)(Kr),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,o,i){const s={latestValues:Di(r,o,i,e),renderState:t()};return n&&(s.mount=e=>n(r,e,s)),s}(e,t,r,o);return n?i():Jr(i)};function Di(e,t,n,r){const o={},i=r(e,{});for(const e in i)o[e]=Pi(i[e]);let{initial:s,animate:a}=e;const l=yo(e),c=vo(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&&!fo(d)&&(Array.isArray(d)?d:[d]).forEach((t=>{const n=ki(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 Oi={useVisualState:Ni({scrapeMotionValuesFromProps:Ti,createRenderState:gi,onMount:(e,t,{renderState:n,latestValues:r})=>{Zr.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),Zr.render((()=>{hi(n,r,{enableHardwareAcceleration:!1},yi(t.tagName),e.transformTemplate),Ci(t,n)}))}})},Ri={useVisualState:Ni({scrapeMotionValuesFromProps:Si,createRenderState:ii})};function Mi(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const Fi=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ji(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}const Vi=e=>t=>Fi(t)&&e(t,ji(t));function Bi(e,t,n,r){return Mi(e,t,Vi(n),r)}const Ii=(e,t)=>n=>t(e(n)),Ui=(...e)=>e.reduce(Ii);function Hi(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}const zi=Hi("dragHorizontal"),qi=Hi("dragVertical");function Wi(e){let t=!1;if("y"===e)t=qi();else if("x"===e)t=zi();else{const e=zi(),n=qi();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function $i(){const e=Wi(!0);return!e||(e(),!1)}class Zi{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Gi(e,t){const n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Bi(e.current,n,((n,o)=>{if("touch"===n.type||$i())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t),i[r]&&Zr.update((()=>i[r](n,o)))}),{passive:!e.getProps()[r]})}const Xi=(e,t)=>!!t&&(e===t||Xi(e,t.parentElement));function Yi(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ji(n))}const Ki=new WeakMap,Ji=new WeakMap,Qi=e=>{const t=Ki.get(e.target);t&&t(e)},es=e=>{e.forEach(Qi)};const ts={some:0,all:1},ns={inView:{Feature:class extends Zi{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:ts[r]};return function(e,t,n){const r=function({root:e,...t}){const n=e||document;Ji.has(n)||Ji.set(n,{});const r=Ji.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(es,{root:e,...t})),r[o]}(t);return Ki.set(e,n),r.observe(e),()=>{Ki.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 Zi{constructor(){super(...arguments),this.removeStartListeners=qr,this.removeEndListeners=qr,this.removeAccessibleListeners=qr,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;const n=this.node.getProps(),r=Bi(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:r}=this.node.getProps();Zr.update((()=>{Xi(this.node.current,e.target)?n&&n(e,t):r&&r(e,t)}))}),{passive:!(n.onTap||n.onPointerUp)}),o=Bi(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ui(r,o),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=Mi(this.node.current,"keydown",(e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=Mi(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Yi("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&Zr.update((()=>n(e,t)))}))})),Yi("down",((e,t)=>{this.startPress(e,t)})))})),t=Mi(this.node.current,"blur",(()=>{this.isPressing&&Yi("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ui(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&&Zr.update((()=>n(e,t)))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!$i()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&Zr.update((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Bi(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=Mi(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ui(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Zi{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=Ui(Mi(this.node.current,"focus",(()=>this.onFocus())),Mi(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Zi{mount(){this.unmount=Ui(Gi(this.node,!0),Gi(this.node,!1))}unmount(){}}}};function rs(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 os(e,t,n){const r=e.getProps();return ki(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 is="data-"+bi("framerAppearId"),ss=e=>1e3*e,as=e=>e/1e3,ls=e=>Array.isArray(e)&&"number"==typeof e[0];function cs(e){return Boolean(!e||"string"==typeof e&&ds[e]||ls(e)||Array.isArray(e)&&e.every(cs))}const us=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ds={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:us([0,.65,.55,1]),circOut:us([.55,0,1,.45]),backIn:us([.31,.01,.66,-.59]),backOut:us([.33,1.53,.69,.99])};function ms(e){if(e)return ls(e)?us(e):Array.isArray(e)?e.map(ms):ds[e]}const ps=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function fs(e,t,n,r){if(e===t&&n===r)return qr;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 hs=fs(.42,0,1,1),gs=fs(0,0,.58,1),ys=fs(.42,0,.58,1),vs=e=>Array.isArray(e)&&"number"!=typeof e[0],xs=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,bs=e=>t=>1-e(1-t),ws=e=>1-Math.sin(Math.acos(e)),Es=bs(ws),Cs=xs(Es),Ss=fs(.33,1.53,.69,.99),Ts=bs(Ss),ks=xs(Ts),_s={linear:qr,easeIn:hs,easeInOut:ys,easeOut:gs,circIn:ws,circInOut:Cs,circOut:Es,backIn:Ts,backInOut:ks,backOut:Ss,anticipate:e=>(e*=2)<1?.5*Ts(e):.5*(2-Math.pow(2,-10*(e-1)))},As=e=>{if(Array.isArray(e)){io(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,o]=e;return fs(t,n,r,o)}return"string"==typeof e?(io(void 0!==_s[e],`Invalid easing type '${e}'`),_s[e]):e},Ls=(e,t)=>n=>Boolean(Go(n)&&Zo.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),Ps=(e,t,n)=>r=>{if(!Go(r))return r;const[o,i,s,a]=r.match(Wo);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},Ns={...Uo,transform:e=>Math.round((e=>Io(0,255,e))(e))},Ds={test:Ls("rgb","red"),parse:Ps("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ns.transform(e)+", "+Ns.transform(t)+", "+Ns.transform(n)+", "+qo(Ho.transform(r))+")"},Os={test:Ls("#"),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:Ds.transform},Rs={test:Ls("hsl","hue"),parse:Ps("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ko.transform(qo(t))+", "+Ko.transform(qo(n))+", "+qo(Ho.transform(r))+")"},Ms={test:e=>Ds.test(e)||Os.test(e)||Rs.test(e),parse:e=>Ds.test(e)?Ds.parse(e):Rs.test(e)?Rs.parse(e):Os.parse(e),transform:e=>Go(e)?e:e.hasOwnProperty("red")?Ds.transform(e):Rs.transform(e)},Fs=(e,t,n)=>-n*e+n*t+e;function js(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 Vs=(e,t,n)=>{const r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Bs=[Os,Ds,Rs];function Is(e){const t=(e=>Bs.find((t=>t.test(e))))(e);io(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===Rs&&(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=js(a,r,e+1/3),i=js(a,r,e),s=js(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 Us=(e,t)=>{const n=Is(e),r=Is(t),o={...n};return e=>(o.red=Vs(n.red,r.red,e),o.green=Vs(n.green,r.green,e),o.blue=Vs(n.blue,r.blue,e),o.alpha=Fs(n.alpha,r.alpha,e),Ds.transform(o))},Hs={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:qr},zs={regex:$o,countKey:"Colors",token:"${c}",parse:Ms.parse},qs={regex:Wo,countKey:"Numbers",token:"${n}",parse:Uo.parse};function Ws(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 $s(e){const t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&Ws(n,Hs),Ws(n,zs),Ws(n,qs),n}function Zs(e){return $s(e).values}function Gs(e){const{values:t,numColors:n,numVars:r,tokenised:o}=$s(e),i=t.length;return e=>{let t=o;for(let o=0;o<i;o++)t=o<r?t.replace(Hs.token,e[o]):o<r+n?t.replace(zs.token,Ms.transform(e[o])):t.replace(qs.token,qo(e[o]));return t}}const Xs=e=>"number"==typeof e?0:e,Ys={test:function(e){var t,n;return isNaN(e)&&Go(e)&&((null===(t=e.match(Wo))||void 0===t?void 0:t.length)||0)+((null===(n=e.match($o))||void 0===n?void 0:n.length)||0)>0},parse:Zs,createTransformer:Gs,getAnimatableNone:function(e){const t=Zs(e);return Gs(e)(t.map(Xs))}},Ks=(e,t)=>n=>`${n>0?t:e}`;function Js(e,t){return"number"==typeof e?n=>Fs(e,t,n):Ms.test(e)?Us(e,t):e.startsWith("var(")?Ks(e,t):ta(e,t)}const Qs=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>Js(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},ea=(e,t)=>{const n={...e,...t},r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=Js(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}},ta=(e,t)=>{const n=Ys.createTransformer(t),r=$s(e),o=$s(t);return r.numVars===o.numVars&&r.numColors===o.numColors&&r.numNumbers>=o.numNumbers?Ui(Qs(r.values,o.values),n):(oo(!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.`),Ks(e,t))},na=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},ra=(e,t)=>n=>Fs(e,t,n);function oa(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(io(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?ra:"string"==typeof e?Ms.test(e)?Us:ta:Array.isArray(e)?Qs:"object"==typeof e?ea:ra}(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]||qr:t;i=Ui(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=na(e[n],e[n+1],t);return s[n](r)};return n?t=>l(Io(e[0],e[i-1],t)):l}function ia({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=vs(r)?r.map(As):As(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=na(0,t,r);e.push(Fs(n,1,o))}}(t,e.length-1),t}(t),e),a=oa(s,t,{ease:Array.isArray(o)?o:(l=t,c=o,l.map((()=>c||ys)).splice(0,l.length-1))});var l,c;return{calculatedDuration:e,next:t=>(i.value=a(t),i.done=t>=e,i)}}function sa(e,t){return t?e*(1e3/t):0}const aa=5;function la(e,t,n){const r=Math.max(t-aa,0);return sa(n-e(r),t-r)}const ca=.001,ua=.01,da=10,ma=.05,pa=1;const fa=12;function ha(e,t){return e*Math.sqrt(1-t*t)}const ga=["duration","bounce"],ya=["stiffness","damping","mass"];function va(e,t){return t.some((t=>void 0!==e[t]))}function xa({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(!va(e,ya)&&va(e,ga)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,i;oo(e<=ss(da),"Spring duration must be 10 seconds or less");let s=1-t;s=Io(ma,pa,s),e=Io(ua,da,as(e)),s<1?(o=t=>{const r=t*s,o=r*e,i=r-n,a=ha(t,s),l=Math.exp(-o);return ca-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=ha(Math.pow(t,2),s);return(-o(t)+ca>0?-1:1)*((i-a)*l)/c}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-ca,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const a=function(e,t,n){let r=n;for(let n=1;n<fa;n++)r-=e(r)/t(r);return r}(o,i,5/e);if(e=ss(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?-as(u):0,f=l/(2*Math.sqrt(a*c)),h=i-o,g=as(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=ha(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?la(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 ba({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),x=e=>{const t=y(e),n=v(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n};let b,w;const E=e=>{(e=>void 0!==a&&e<a||void 0!==l&&e>l)(m.value)&&(b=e,w=xa({keyframes:[m.value,p(m.value)],velocity:la(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!==b||(t=!0,x(e),E(e)),void 0!==b&&e>b?w.next(e-b):(!t&&x(e),m)}}}const wa=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Zr.update(t,!0),stop:()=>Gr(t),now:()=>Xr.isProcessing?Xr.timestamp:performance.now()}},Ea=2e4;function Ca(e){let t=0,n=e.next(t);for(;!n.done&&t<Ea;)t+=50,n=e.next(t);return t>=Ea?1/0:t}const Sa={decay:ba,inertia:ba,tween:ia,keyframes:ia,spring:xa};function Ta({autoplay:e=!0,delay:t=0,driver:n=wa,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 x=Sa[o]||ia;let b;x!==ia&&"number"!=typeof r[0]&&(b=oa([0,100],r,{clamp:!1}),r=[0,100]);const w=x({...m,keyframes:r});let E;"mirror"===a&&(E=x({...m,keyframes:[...r].reverse(),velocity:-(m.velocity||0)}));let C="idle",S=null,T=null,k=null;null===w.calculatedDuration&&i&&(w.calculatedDuration=Ca(w));const{calculatedDuration:_}=w;let A=1/0,L=1/0;null!==_&&(A=_+s,L=A*(i+1)-s);let P=0;const N=e=>{if(null===T)return;h>0&&(T=Math.min(T,e)),h<0&&(T=Math.min(e-L/h,T)),P=null!==S?S:Math.round(e-T)*h;const n=P-t*(h>=0?1:-1),o=h>=0?n<0:n>L;P=Math.max(n,0),"finished"===C&&null===S&&(P=L);let l=P,c=w;if(i){const e=P/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=Io(0,1,n);P>L&&(o="reverse"===a&&r?1:0),l=o*A}const u=o?{done:!1,value:r[0]}:c.next(l);b&&(u.value=b(u.value));let{done:m}=u;o||null===_||(m=h>=0?P>=L:P<=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 as(P)},set time(e){e=ss(e),P=e,null===S&&v&&0!==h?T=v.now()-e/h:S=e},get duration(){const e=null===w.calculatedDuration?Ca(w):w.calculatedDuration;return as(e)},get speed(){return h},set speed(e){e!==h&&v&&(h=e,F.time=as(P))},get state(){return C},play:M,pause:()=>{C="paused",S=P},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 ka=function(e){let t;return()=>(void 0===t&&(t=Object.hasOwnProperty.call(Element.prototype,"animate")),t)}(),_a=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);const Aa={type:"spring",stiffness:500,damping:25,restSpeed:10},La={type:"keyframes",duration:.8},Pa={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Na=(e,{keyframes:t})=>t.length>2?La:No.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Aa:Pa,Da=(e,t)=>!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!Ys.test(t)&&"0"!==t||t.startsWith("url("))),Oa=new Set(["brightness","contrast","saturate","opacity"]);function Ra(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(Wo)||[];if(!r)return e;const o=n.replace(r,"");let i=Oa.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Ma=/([a-z-]*)\(.*?\)/g,Fa={...Ys,getAnimatableNone:e=>{const t=e.match(Ma);return t?t.map(Ra).join(" "):e}},ja={...ri,color:Ms,backgroundColor:Ms,outlineColor:Ms,fill:Ms,stroke:Ms,borderColor:Ms,borderTopColor:Ms,borderRightColor:Ms,borderBottomColor:Ms,borderLeftColor:Ms,filter:Fa,WebkitFilter:Fa},Va=e=>ja[e];function Ba(e,t){let n=Va(e);return n!==Fa&&(n=Ys),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ia=e=>/^0[^.\s]+$/.test(e);function Ua(e){return"number"==typeof e?0===e:null!==e?"none"===e||"0"===e||Ia(e):void 0}function Ha(e,t){return e[t]||e.default||e}const za=(e,t,n,r={})=>o=>{const i=Ha(r,e)||{},s=i.delay||r.delay||0;let{elapsed:a=0}=r;a-=ss(s);const l=function(e,t,n,r){const o=Da(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]),Ua(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]]=Ba(t,a);return i}(t,e,n,i),c=l[0],u=l[l.length-1],d=Da(e,c),m=Da(e,u);oo(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,...Na(e,p)}),p.duration&&(p.duration=ss(p.duration)),p.repeatDelay&&(p.repeatDelay=ss(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:qr,pause:qr,stop:qr,then:e=>(e(),Promise.resolve()),cancel:qr,complete:qr});return t?Ta({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(!ka()||!_a.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||!cs(t.ease))(t,o)){const e=Ta({...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=ms(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=Xr.isProcessing?Xr.timestamp:document.timeline?document.timeline.currentTime:performance.now());const f=()=>p.cancel(),h=()=>{Zr.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,qr},get time(){return as(p.currentTime||0)},set time(e){p.currentTime=ss(e)},get speed(){return p.playbackRate},set speed(e){p.playbackRate=e},get duration(){return as(u)},play:()=>{a||(p.play(),Gr(f))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;const{currentTime:t}=p;if(t){const n=Ta({...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 Ta(p)};function qa(e){return Boolean(Oo(e)&&e.add)}const Wa=e=>/^\-?\d*\.?\d+$/.test(e);function $a(e,t){-1===e.indexOf(t)&&e.push(t)}function Za(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Ga{constructor(){this.subscriptions=[]}add(e){return $a(this.subscriptions,e),()=>Za(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 Xa={current:void 0};class Ya{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}=Xr;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,Zr.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=()=>Zr.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 Ga);const n=this.events[e].add(t);return"change"===e?()=>{n(),Zr.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 Xa.current&&Xa.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?sa(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 Ka(e,t){return new Ya(e,t)}const Ja=e=>t=>t.test(e),Qa=[Uo,Jo,Ko,Yo,ei,Qo,{test:e=>"auto"===e,parse:e=>e}],el=e=>Qa.find(Ja(e)),tl=[...Qa,Ms,Ys],nl=e=>tl.find(Ja(e));function rl(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ka(n))}function ol(e,t){if(t)return(t[e]||t.default||t).from}function il({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}function sl(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&&il(u,t))continue;const s={delay:n,elapsed:0,...i};if(window.HandoffAppearAnimations&&!r.hasAnimated){const n=e.getProps()[is];n&&(s.elapsed=window.HandoffAppearAnimations(n,t,r,Zr),s.syncStart=!0)}r.start(za(t,r,o,e.shouldReduceMotion&&No.has(t)?{type:!1}:s));const d=r.animation;qa(l)&&(l.add(t),d.then((()=>l.remove(t)))),c.push(d)}return s&&Promise.all(c).then((()=>{s&&function(e,t){const n=os(e,t);let{transitionEnd:r={},transition:o={},...i}=n?e.makeTargetAnimatable(n,!1):{};i={...i,...r};for(const t in i)rl(e,t,Li(i[t]))}(e,s)})),c}function al(e,t,n={}){const r=os(e,t,n.custom);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(sl(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(ll).forEach(((e,r)=>{e.notify("AnimationStart",t),s.push(al(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 ll(e,t){return e.sortNodePosition(t)}const cl=[...ho].reverse(),ul=ho.length;function dl(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=>al(e,t,n)));r=Promise.all(o)}else if("string"==typeof t)r=al(e,t,n);else{const o="function"==typeof t?os(e,t,n.custom):t;r=Promise.all(sl(e,o,n))}return r.then((()=>e.notify("AnimationComplete",t)))}(e,t,n))))}(e);const n={animate:ml(!0),whileInView:ml(),whileHover:ml(),whileTap:ml(),whileDrag:ml(),whileFocus:ml(),exit:ml()};let r=!0;const o=(t,n)=>{const r=os(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<ul;t++){const h=cl[t],g=n[h],y=void 0!==a[h]?a[h]:l[h],v=po(y),x=h===s?g.isActive:null;!1===x&&(m=t);let b=y===l[h]&&y!==a[h]&&v;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...d},!g.isActive&&null===x||!y&&!g.prevProp||fo(y)||"boolean"==typeof y)continue;const w=(p=g.prevProp,"string"==typeof(f=y)?f!==p:!!Array.isArray(f)&&!rs(f,p));let E=w||h===s&&g.isActive&&!b&&v||t>m&&v;const C=Array.isArray(y)?y:[y];let S=C.reduce(o,{});!1===x&&(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?_i(t)&&_i(n)?!rs(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&&!b&&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 ml(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let pl=0;const fl={animation:{Feature:class extends Zi{constructor(e){super(e),e.animationState||(e.animationState=dl(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();this.unmount(),fo(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 Zi{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(){}}}},hl=(e,t)=>Math.abs(e-t);class gl{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=xl(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=hl(e.x,t.x),r=hl(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}=Xr;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=yl(t,this.transformPagePoint),Zr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const{onEnd:n,onSessionEnd:r}=this.handlers,o=xl("pointercancel"===e.type?this.lastMoveEventInfo:yl(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!Fi(e))return;this.handlers=t,this.transformPagePoint=n;const r=yl(ji(e),this.transformPagePoint),{point:o}=r,{timestamp:i}=Xr;this.history=[{...o,timestamp:i}];const{onSessionStart:s}=t;s&&s(e,xl(r,this.history)),this.removeListeners=Ui(Bi(window,"pointermove",this.handlePointerMove),Bi(window,"pointerup",this.handlePointerUp),Bi(window,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Gr(this.updatePoint)}}function yl(e,t){return t?{point:t(e.point)}:e}function vl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function xl({point:e},t){return{point:e,delta:vl(e,wl(t)),offset:vl(e,bl(t)),velocity:El(t,.1)}}function bl(e){return e[0]}function wl(e){return e[e.length-1]}function El(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=wl(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>ss(t)));)n--;if(!r)return{x:0,y:0};const i=as(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 Cl(e){return e.max-e.min}function Sl(e,t=0,n=.01){return Math.abs(e-t)<=n}function Tl(e,t,n,r=.5){e.origin=r,e.originPoint=Fs(t.min,t.max,e.origin),e.scale=Cl(n)/Cl(t),(Sl(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Fs(n.min,n.max,e.origin)-e.originPoint,(Sl(e.translate)||isNaN(e.translate))&&(e.translate=0)}function kl(e,t,n,r){Tl(e.x,t.x,n.x,r?r.originX:void 0),Tl(e.y,t.y,n.y,r?r.originY:void 0)}function _l(e,t,n){e.min=n.min+t.min,e.max=e.min+Cl(t)}function Al(e,t,n){e.min=t.min-n.min,e.max=e.min+Cl(t)}function Ll(e,t,n){Al(e.x,t.x,n.x),Al(e.y,t.y,n.y)}function Pl(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 Nl(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 Dl=.35;function Ol(e,t,n){return{min:Rl(e,t),max:Rl(e,n)}}function Rl(e,t){return"number"==typeof e?e:e[t]||0}const Ml=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),Fl=()=>({x:{min:0,max:0},y:{min:0,max:0}});function jl(e){return[e("x"),e("y")]}function Vl({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bl(e){return void 0===e||1===e}function Il({scale:e,scaleX:t,scaleY:n}){return!Bl(e)||!Bl(t)||!Bl(n)}function Ul(e){return Il(e)||Hl(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Hl(e){return zl(e.x)||zl(e.y)}function zl(e){return e&&"0%"!==e}function ql(e,t,n){return n+t*(e-n)}function Wl(e,t,n,r,o){return void 0!==o&&(e=ql(e,o,r)),ql(e,n,r)+t}function $l(e,t=0,n=1,r,o){e.min=Wl(e.min,t,n,r,o),e.max=Wl(e.max,t,n,r,o)}function Zl(e,{x:t,y:n}){$l(e.x,t.translate,t.scale,t.originPoint),$l(e.y,n.translate,n.scale,n.originPoint)}function Gl(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Xl(e,t){e.min=e.min+t,e.max=e.max+t}function Yl(e,t,[n,r,o]){const i=void 0!==t[o]?t[o]:.5,s=Fs(e.min,e.max,i);$l(e,t[n],t[r],s,t.scale)}const Kl=["x","scaleX","originX"],Jl=["y","scaleY","originY"];function Ql(e,t){Yl(e.x,t,Kl),Yl(e.y,t,Jl)}function ec(e,t){return Vl(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 tc=new WeakMap;class nc{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=Fl(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new gl(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(ji(e,"page").point)},onStart:(e,t)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Wi(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),jl((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Ko.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[e];r&&(t=Cl(r)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Zr.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&&Zr.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||!rc(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?Fs(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?Fs(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&&mo(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!n)&&function(e,{top:t,left:n,bottom:r,right:o}){return{x:Pl(e.x,n,o),y:Pl(e.y,t,r)}}(n.layoutBox,e),this.elastic=function(e=Dl){return!1===e?e=0:!0===e&&(e=Dl),{x:Ol(e,"left","right"),y:Ol(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&jl((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||!mo(e))return!1;const n=e.current;io(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=ec(e,n),{scroll:o}=t;return o&&(Xl(r.x,o.offset.x),Xl(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:Nl(e.x,t.x),y:Nl(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=Vl(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=jl((s=>{if(!rc(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(za(e,n,0,t))}stopAnimation(){jl((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){jl((t=>{const{drag:n}=this.getProps();if(!rc(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]-Fs(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!mo(t)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};jl((e=>{const t=this.getAxisMotionValue(e);if(t){const n=t.get();r[e]=function(e,t){let n=.5;const r=Cl(e),o=Cl(t);return o>r?n=na(t.min,t.max-r,e.min):r>o&&(n=na(e.min,e.max-o,t.min)),Io(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(),jl((t=>{if(!rc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];n.set(Fs(o,i,r[t]))}))}addListeners(){if(!this.visualElement.current)return;tc.set(this.visualElement,this);const e=Bi(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();mo(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=Mi(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(jl((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=Dl,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function rc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const oc=e=>(t,n)=>{e&&Zr.update((()=>e(t,n)))},ic={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function sc(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const ac={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Jo.test(e))return e;e=parseFloat(e)}return`${sc(e,t.target.x)}% ${sc(e,t.target.y)}%`}},lc={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=Ys.parse(e);if(o.length>5)return r;const i=Ys.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=Fs(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 cc extends b.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=e;var i;i=dc,Object.assign(Lo,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()})),ic.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()||Zr.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 uc(e){const[t,n]=function(){const e=(0,b.useContext)(Kr);if(null===e)return[!0,null];const{isPresent:t,onExitComplete:n,register:r}=e,o=(0,b.useId)();return(0,b.useEffect)((()=>r(o)),[]),!t&&n?[!1,()=>n&&n(o)]:[!0]}(),r=(0,b.useContext)(ro);return b.createElement(cc,{...e,layoutGroup:r,switchLayoutGroup:(0,b.useContext)(Eo),isPresent:t,safeToRemove:n})}const dc={borderRadius:{...ac,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ac,borderTopRightRadius:ac,borderBottomLeftRadius:ac,borderBottomRightRadius:ac,boxShadow:lc},mc=["TopLeft","TopRight","BottomLeft","BottomRight"],pc=mc.length,fc=e=>"string"==typeof e?parseFloat(e):e,hc=e=>"number"==typeof e||Jo.test(e);function gc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const yc=xc(0,.5,Es),vc=xc(.5,.95,qr);function xc(e,t,n){return r=>r<e?0:r>t?1:n(na(e,t,r))}function bc(e,t){e.min=t.min,e.max=t.max}function wc(e,t){bc(e.x,t.x),bc(e.y,t.y)}function Ec(e,t,n,r,o){return e=ql(e-=t,1/n,r),void 0!==o&&(e=ql(e,1/o,r)),e}function Cc(e,t,[n,r,o],i,s){!function(e,t=0,n=1,r=.5,o,i=e,s=e){if(Ko.test(t)&&(t=parseFloat(t),t=Fs(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let a=Fs(i.min,i.max,r);e===i&&(a-=t),e.min=Ec(e.min,t,n,a,o),e.max=Ec(e.max,t,n,a,o)}(e,t[n],t[r],t[o],t.scale,i,s)}const Sc=["x","scaleX","originX"],Tc=["y","scaleY","originY"];function kc(e,t,n,r){Cc(e.x,t,Sc,n?n.x:void 0,r?r.x:void 0),Cc(e.y,t,Tc,n?n.y:void 0,r?r.y:void 0)}function _c(e){return 0===e.translate&&1===e.scale}function Ac(e){return _c(e.x)&&_c(e.y)}function Lc(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 Pc(e){return Cl(e.x)/Cl(e.y)}class Nc{constructor(){this.members=[]}add(e){$a(this.members,e),e.scheduleRender()}remove(e){if(Za(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 Dc(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 Oc=(e,t)=>e.depth-t.depth;class Rc{constructor(){this.children=[],this.isDirty=!1}add(e){$a(this.children,e),this.isDirty=!0}remove(e){Za(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Oc),this.isDirty=!1,this.children.forEach(e)}}const Mc=["","X","Y","Z"];let Fc=0;const jc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Vc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=Fc++,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;jc.totalNodes=jc.resolvedTargetDeltas=jc.recalculatedProjection=0,this.nodes.forEach(Uc),this.nodes.forEach(Gc),this.nodes.forEach(Xc),this.nodes.forEach(Hc),e=jc,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 Rc)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ga),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&&(Gr(r),e(o-250))};return Zr.read(r,!0),()=>Gr(r)}(r),ic.hasAnimatedSinceResize&&(ic.hasAnimatedSinceResize=!1,this.nodes.forEach(Zc))}))}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()||tu,{onLayoutAnimationStart:i,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!Lc(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={...Ha(o,"layout"),onPlay:i,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Zc(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,Gr(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(Yc),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(qc);this.isUpdating||this.nodes.forEach(Wc),this.isUpdating=!1,this.nodes.forEach($c),this.nodes.forEach(Bc),this.nodes.forEach(Ic),this.clearAllSnapshots();const e=performance.now();Xr.delta=Io(0,1e3/60,e-Xr.timestamp),Xr.timestamp=e,Xr.isProcessing=!0,Yr.update.process(Xr),Yr.preRender.process(Xr),Yr.render.process(Xr),Xr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((()=>this.update())))}clearAllSnapshots(){this.nodes.forEach(zc),this.sharedNodes.forEach(Kc)}scheduleUpdateProjection(){Zr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){Zr.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=Fl(),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&&!Ac(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Ul(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)),ou((r=n).x),ou(r.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:e}=this.options;if(!e)return Fl();const t=e.measureViewportBox(),{scroll:n}=this.root;return n&&(Xl(t.x,n.offset.x),Xl(t.y,n.offset.y)),t}removeElementScroll(e){const t=Fl();wc(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){wc(t,e);const{scroll:n}=this.root;n&&(Xl(t.x,-n.offset.x),Xl(t.y,-n.offset.y))}Xl(t.x,o.offset.x),Xl(t.y,o.offset.y)}}return t}applyTransform(e,t=!1){const n=Fl();wc(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&&Ql(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),Ul(r.latestValues)&&Ql(n,r.latestValues)}return Ul(this.latestValues)&&Ql(n,this.latestValues),n}removeTransform(e){const t=Fl();wc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!Ul(n.latestValues))continue;Il(n.latestValues)&&n.updateSnapshot();const r=Fl();wc(r,n.measurePageBox()),kc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return Ul(this.latestValues)&&kc(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!==Xr.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=Xr.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Fl(),this.relativeTargetOrigin=Fl(),Ll(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),wc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,l;if(this.target||(this.target=Fl(),this.targetWithTransforms=Fl()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,_l(s.x,a.x,l.x),_l(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):wc(this.target,this.layout.layoutBox),Zl(this.target,this.targetDelta)):wc(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=Fl(),this.relativeTargetOrigin=Fl(),Ll(this.relativeTargetOrigin,this.target,e.target),wc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}jc.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Il(this.parent.latestValues)&&!Hl(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===Xr.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;wc(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&&Ql(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,Zl(e,s)),r&&Ul(i.latestValues)&&Ql(e,i.latestValues))}t.x=Gl(t.x),t.y=Gl(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=Ml(),this.projectionTransform="none",this.scheduleRender()));this.projectionDelta||(this.projectionDelta=Ml(),this.projectionDeltaWithTransform=Ml());const c=this.projectionTransform;kl(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=Dc(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===s&&this.treeScale.y===a||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),jc.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=Ml();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const s=Fl(),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(eu));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;Jc(i.x,e.x,n),Jc(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ll(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,n,r){Qc(e.x,t.x,n.x,r),Qc(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=Fl()),wc(d,this.relativeTarget)),a&&(this.animationValues=o,function(e,t,n,r,o,i){o?(e.opacity=Fs(0,void 0!==n.opacity?n.opacity:1,yc(r)),e.opacityExit=Fs(void 0!==t.opacity?t.opacity:1,0,vc(r))):i&&(e.opacity=Fs(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${mc[o]}Radius`;let s=gc(t,i),a=gc(n,i);void 0===s&&void 0===a||(s||(s=0),a||(a=0),0===s||0===a||hc(s)===hc(a)?(e[i]=Math.max(Fs(fc(s),fc(a),r),0),(Ko.test(a)||Ko.test(s))&&(e[i]+="%")):e[i]=a)}(t.rotate||n.rotate)&&(e.rotate=Fs(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&&(Gr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Zr.update((()=>{ic.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const r=Oo(0)?0:Ka(0);return r.start(za("",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&&iu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Fl();const t=Cl(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const r=Cl(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}wc(t,n),Ql(t,o),kl(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Nc),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<Mc.length;t++){const o="rotate"+Mc[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=Pi(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=Pi(e.pointerEvents)||""),this.hasProjected&&!Ul(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const s=i.animationValues||i.latestValues;this.applyTransformsToTarget(),r.transform=Dc(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 Lo){if(void 0===s[e])continue;const{correct:t,applyTo:n}=Lo[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?Pi(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(qc),this.root.sharedNodes.clear()}}}function Bc(e){e.updateLayout()}function Ic(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?jl((e=>{const r=i?n.measuredBox[e]:n.layoutBox[e],o=Cl(r);r.min=t[e].min,r.max=r.min+o})):iu(o,n.layoutBox,t)&&jl((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=Cl(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=Ml();kl(s,t,n.layoutBox);const a=Ml();i?kl(a,e.applyTransform(r,!0),n.measuredBox):kl(a,t,n.layoutBox);const l=!Ac(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=Fl();Ll(s,n.layoutBox,o.layoutBox);const a=Fl();Ll(a,t,i.layoutBox),Lc(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 Uc(e){jc.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 Hc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function zc(e){e.clearSnapshot()}function qc(e){e.clearMeasurements()}function Wc(e){e.isLayoutDirty=!1}function $c(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Zc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Gc(e){e.resolveTargetDelta()}function Xc(e){e.calcProjection()}function Yc(e){e.resetRotation()}function Kc(e){e.removeLeadSnapshot()}function Jc(e,t,n){e.translate=Fs(t.translate,0,n),e.scale=Fs(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Qc(e,t,n,r){e.min=Fs(t.min,n.min,r),e.max=Fs(t.max,n.max,r)}function eu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const tu={duration:.45,ease:[.4,0,.1,1]},nu=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),ru=nu("applewebkit/")&&!nu("chrome/")?Math.round:qr;function ou(e){e.min=ru(e.min),e.max=ru(e.max)}function iu(e,t,n){return"position"===e||"preserve-aspect"===e&&!Sl(Pc(t),Pc(n),.2)}const su=Vc({attachResizeListener:(e,t)=>Mi(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),au={current:void 0},lu=Vc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!au.current){const e=new su({});e.mount(window),e.setOptions({layoutScroll:!0}),au.current=e}return au.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),cu={pan:{Feature:class extends Zi{constructor(){super(...arguments),this.removePointerDownListener=qr}onPointerDown(e){this.session=new gl(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:oc(e),onStart:oc(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&Zr.update((()=>r(e,t)))}}}mount(){this.removePointerDownListener=Bi(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 Zi{constructor(e){super(e),this.removeGroupControls=qr,this.removeListeners=qr,this.controls=new nc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||qr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:lu,MeasureLayout:uc}},uu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function du(e,t,n=1){io(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=uu.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 Wa(e)?parseFloat(e):e}return Vo(o)?du(o,t,n+1):o}const mu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),pu=e=>mu.has(e),fu=e=>e===Uo||e===Jo,hu=(e,t)=>parseFloat(e.split(", ")[t]),gu=(e,t)=>(n,{transform:r})=>{if("none"===r||!r)return 0;const o=r.match(/^matrix3d\((.+)\)$/);if(o)return hu(o[1],t);{const t=r.match(/^matrix\((.+)\)$/);return t?hu(t[1],e):0}},yu=new Set(["x","y","z"]),vu=Po.filter((e=>!yu.has(e))),xu={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:gu(4,13),y:gu(5,14)};xu.translateX=xu.x,xu.translateY=xu.y;function bu(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=el(c);const d=t[o];let m;if(_i(d)){const e=d.length,t=null===d[0]?1:0;c=d[t],u=el(c);for(let n=t;n<e&&null!==d[n];n++)m?io(el(d[n])===m,"All keyframes must be of the same type"):(m=el(d[n]),io(m===u||fu(u)&&fu(m),"Keyframes must be of the same dimension as the current value"))}else m=el(d);if(u!==m)if(fu(u)&&fu(m)){const e=l.get();"string"==typeof e&&l.set(parseFloat(e)),"string"==typeof d?t[o]=parseFloat(d):Array.isArray(d)&&m===Jo&&(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 vu.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]=xu[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]=xu[n](l,i)})),e})(t,e,a);return i.length&&i.forEach((([t,n])=>{e.getValue(t).set(n)})),e.render(),Ur&&null!==n&&window.scrollTo({top:n}),{target:o,transitionEnd:r}}return{target:t,transitionEnd:r}})(e,t,n,r):{target:t,transitionEnd:r}}const wu={current:null},Eu={current:!1},Cu=new WeakMap,Su=Object.keys(wo),Tu=Su.length,ku=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],_u=go.length;class Au{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=()=>Zr.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=yo(t),this.isVariantNode=vo(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]&&Oo(t)&&(t.set(s[e],!1),qa(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,Cu.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))),Eu.current||function(){if(Eu.current=!0,Ur)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>wu.current=e.matches;e.addListener(t),t()}else wu.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||wu.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Cu.delete(this.current),this.projection&&this.projection.unmount(),Gr(this.notifyUpdate),Gr(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=No.has(e),r=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Zr.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<Tu;e++){const n=Su[e],{isEnabled:r,Feature:o,ProjectionNode:a,MeasureLayout:l}=wo[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&&mo(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):Fl()}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<ku.length;t++){const n=ku[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(Oo(i))e.addValue(o,i),qa(r)&&r.add(o);else if(Oo(s))e.addValue(o,Ka(i,{owner:e})),qa(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,Ka(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<_u;e++){const n=go[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=Ka(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=ki(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||Oo(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 Ga),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Lu extends Au{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=ol(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&&(Wa(c)||Ia(c))?c=parseFloat(c):!nl(c)&&Ys.test(l)&&(c=Ba(s,l)),e.addValue(s,Ka(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(!Vo(t))return;const n=du(t,r);n&&e.set(n)}));for(const e in t){const o=t[e];if(!Vo(o))continue;const i=du(o,r);i&&(t[e]=i,n||(n={}),void 0===n[e]&&(n[e]=o))}return{target:t,transitionEnd:n}}(e,t,r);return bu(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 Pu extends Lu{readValueFromInstance(e,t){if(No.has(t)){const e=Va(t);return e&&e.default||0}{const r=(n=e,window.getComputedStyle(n)),o=(jo(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return ec(e,t)}build(e,t,n,r){oi(e,t,n,r.transformTemplate)}scrapeMotionValuesFromProps(e,t){return Si(e,t)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Oo(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}renderInstance(e,t,n,r){wi(e,t,n,r)}}class Nu extends Lu{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(No.has(t)){const e=Va(t);return e&&e.default||0}return t=Ei.has(t)?t:bi(t),e.getAttribute(t)}measureInstanceViewportBox(){return Fl()}scrapeMotionValuesFromProps(e,t){return Ti(e,t)}build(e,t,n,r){hi(e,t,n,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,n,r){Ci(e,t,0,r)}mount(e){this.isSVGTag=yi(e.tagName),super.mount(e)}}const Du=(e,t)=>Ao(e)?new Nu(t,{enableHardwareAcceleration:!1}):new Pu(t,{enableHardwareAcceleration:!0}),Ou={...fl,...ns,...cu,layout:{ProjectionNode:lu,MeasureLayout:uc}},Ru=ko(((e,t)=>function(e,{forwardMotionProps:t=!1},n,r){return{...Ao(e)?Oi:Ri,preloadedFeatures:n,useRender:xi(t),createVisualElement:r,Component:e}}(e,t,Ou,Du)));var Mu,Fu=(0,e.createElement)(Ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Ut.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),ju=window.wp.apiFetch,Vu=o.n(ju);const Bu="/extendify/v1/assist/support-articles-data",Iu={getItem:async()=>await Vu()({path:Bu}),setItem:async(e,t)=>await Vu()({path:Bu,method:"POST",data:{state:t}})},Uu={articles:[],recentArticles:[],viewedArticles:[],activeCategory:null,searchTerm:"",...null!==(Mu=(window.extAssistData.userData.supportArticlesData?.data||{})?.state)&&void 0!==Mu?Mu:{}},Hu=k(O(L((e=>({...Uu,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:N((()=>Iu)),skipHydration:!0,partialize:e=>(delete e.articles,delete e.activeCategory,delete e.searchTerm,e)})),zu=()=>{const n=window.extAssistData.resourceData.supportArticles,{navigateTo:r}=wp(),{pushArticle:o,clearArticles:s,reset:a}=Hu();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 l=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:a,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)(It,{icon:Fu,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"},l.map((({slug:t,title:n})=>(0,e.createElement)("button",{"aria-label":n,type:"button",key:t,onClick:e=>{e.preventDefault(),s(),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)(It,{icon:i,className:"text-gray-600 fill-current"}),(0,e.createElement)("span",{className:"leading-snug text-left -mt-px"},n))))))};var qu=o(184),Wu=o.n(qu);const $u={"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")}},Zu=()=>{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($u).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"},$u[t]?.title),(0,e.createElement)("p",{className:"my-4 text-base"},$u[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"},$u[t]?.buttonText)),(0,e.createElement)("div",{className:"justify-between items-center mt-4 py-6 px-20 flex bg-gray-50"},Object.keys($u).map(((n,o)=>(n===t&&(r=!0),(0,e.createElement)(e.Fragment,{key:n},(0,e.createElement)(Gu,{reached:r,stepName:$u[n].step,current:n===t}),o!==Object.keys($u).length-1&&(0,e.createElement)("div",{className:Wu()("hidden lg:block border-0 border-b-2 border-solid h-0 grow w-full",{"border-design-main":!r,"border-gray-300":r})})))))))},Gu=({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:Wu()("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)),Xu=()=>{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)(It,{icon:Fu,className:"fill-current"}))))))};var Yu,Ku=(0,e.createElement)(Ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Ut.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));const Ju={viewedRecommendations:[],dismissedRecommendations:[],...null!==(Yu=(window.extAssistData.userData.recommendationData?.data||{})?.state)&&void 0!==Yu?Yu:{}},Qu={getItem:async()=>JSON.stringify(await ht.get("assist/recommendation-data")),setItem:async(e,t)=>{return await(n=t,ht.post("assist/recommendation-data",{data:n}));var n},removeItem:()=>{}},ed=k(O(((e,t)=>({...Ju,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:N((()=>Qu)),skipHydration:!0})),td=({rec:n})=>{const{track:r,isDismissedRecommendation:o,dismissRecommendation:i}=ed();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("div",{key:n.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"},n.title),(0,e.createElement)("p",{className:"m-0 text-sm"},n.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"===n.linkType?`${n.externalLink}`:`${window.extAssistData.adminUrl}${n.internalLink}`,onClick:()=>r(n.slug),target:"externalLink"===n.linkType?"_blank":"",rel:"externalLink"===n.linkType?"noreferrer":void 0},(0,e.createElement)("span",null,n.buttonText))),o(n.slug)?(0,e.createElement)("div",{className:"w-5"}):(0,e.createElement)(Bt.Dropdown,{className:"w-5 absolute top-0 right-0 m-2 lg:m-4",position:"bottom left",popoverProps:{placement:"bottom-end"},renderContent:({onClose:r})=>(0,e.createElement)("button",{onClick:()=>{r(),i(n.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)(It,{icon:Ku,className:""}))})))};var nd;const rd=`extendify-site-selection-${window.extAssistData.siteId}`,od={siteType:{},siteInformation:{title:void 0},siteTypeSearch:[],style:null,pages:[],plugins:[],goals:[],...null!==(nd=(window.extAssistData.userData.userSelectionData?.data||{})?.state)&&void 0!==nd?nd:{}},id={getItem:async()=>JSON.stringify(await ht.get("assist/user-selection-data")),setItem:async(e,t)=>{return await(n=t,ht.post("assist/user-selection-data",{data:n}));var n},removeItem:()=>{}},sd=k(O(L((()=>({...od})),{name:"Extendify User Selections"}),{name:rd,storage:N((()=>id)),skipHydration:!0}));var ad;const ld={activeTests:[],seenTasks:[],completedTasks:[],inProgressTasks:[],...null!==(ad=(window.extAssistData.userData.taskData?.data||{})?.state)&&void 0!==ad?ad:{}},cd={getItem:async()=>JSON.stringify(await ht.get("assist/task-data")),setItem:async(e,t)=>{return await(n=t,ht.post("assist/task-data",{data:n}));var n},removeItem:()=>{}},ud=k(O(L(((e,t)=>({...ld,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:N((()=>cd)),skipHydration:!0})),dd=()=>{var e,t,n,r,o,i,s;const{goals:a}=sd(),{completedTasks:l}=ud(),{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}))}},md=()=>{const{recommendations:n,loading:r,error:o}=dd(),{isDismissedRecommendation:i}=ed(),s=n?.filter((e=>!i(e.slug)));return r||o?(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)(Bt.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"},s?.length>0?(0,t.sprintf)(
// translators: %s is the number of tasks
(0,t.__)("View all (%s)","extendify-local"),n?.length):(0,t.__)("View all recommendations","extendify-local"),(0,e.createElement)(It,{icon:Fu,className:"fill-current"}))),0===s.length?(0,e.createElement)(fd,null):(0,e.createElement)("div",{className:"border border-b-0 border-gray-300 mt-4",id:"assist-recommendations-module-list"},(0,e.createElement)(ao,null,s.slice(0,3).map((t=>(0,e.createElement)(Ru.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)(pd,{rec:t})))))))},pd=({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)(td,{rec:t,Action:n})),fd=()=>(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-gray-300 p-4 lg:p-8"},(0,e.createElement)(r,{"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 hd,gd=(0,e.createElement)(Ut.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,e.createElement)(Ut.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 yd={dismissedNotices:[],dismissedBanners:[],modals:[],...null!==(hd=(window.extAssistData.userData.globalData?.data||{})?.state)&&void 0!==hd?hd:{}},vd={getItem:async()=>JSON.stringify(await ht.get("assist/global-data")),setItem:async(e,t)=>{return await(n=t,ht.post("assist/global-data",{data:n}));var n},removeItem:()=>{}},xd=k(O(L(((e,t)=>({...yd,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:N((()=>vd)),skipHydration:!0,partialize:e=>(delete e.modals,e)})),bd=()=>{const{isDismissedBanner:n,dismissBanner:r}=xd(),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)(It,{icon:gd,className:"text-white fill-current w-6 h-6"}))):null},wd=()=>{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:Ed}=(0,Bt.createSlotFill)("Extendify/Assist/Settings"),Cd=()=>(0,e.createElement)(Ed,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)(wd,null))))),Sd=t=>{var n;const{themeSlug:r,launchCompleted:o}=window.extAssistData,i=window.extAssistData.resourceData.tasks,{isCompleted:s}=ud(),[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},Td=(e,t)=>ht.post("assist/options",{option:e,value:t}),kd=async e=>{const{data:t}=await ht.get("assist/options",{params:{option:e}});return t},_d=({task:t})=>{const{completeTask:n}=ud(),[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("$");kd("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:Wu()("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 Ad=window.wp.blob,Ld=window.wp.coreData,Pd=window.wp.data,Nd=window.wp.mediaUtils,Dd=window.wp.hooks;const Od=({type:n,onUpdate:r,title:o,actionLabel:i})=>{const{popModal:s}=xd(),[a,l]=(0,e.useState)(!1),[c,u]=(0,e.useState)(0),d=(0,Pd.useSelect)((e=>e(Ld.store).getMedia(c)),[c]),{mediaWidth:m,mediaHeight:p,mediaSourceUrl:f}=(e=>{var t,n,r;if(!e)return{};const o=(0,Dd.applyFilters)("editor.PostFeaturedImage.imageSize","large",e.id);if(o in(null!==(t=e?.media_details?.sizes)&&void 0!==t?t:{}))return{mediaWidth:e.media_details.sizes[o].width,mediaHeight:e.media_details.sizes[o].height,mediaSourceUrl:e.media_details.sizes[o].source_url};const i=(0,Dd.applyFilters)("editor.PostFeaturedImage.imageSize","medium",e.id);if(i in(null!==(n=e?.media_details?.sizes)&&void 0!==n?n:{}))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,Dd.applyFilters)("editor.PostFeaturedImage.imageSize","thumbnail",e.id);return s in(null!==(r=e?.media_details?.sizes)&&void 0!==r?r:{})?{mediaWidth:e.media_details.sizes[s].width,mediaHeight:e.media_details.sizes[s].height,mediaSourceUrl:e.media_details.sizes[s].source_url}:{mediaWidth:e.media_details.width,mediaHeight:e.media_details.height,mediaSourceUrl:e.source_url}})(d);(0,e.useEffect)((()=>{kd(n).then((e=>u(Number(e))))}),[n]);const h=e=>{u(e.id),Td(n,e.id),r()},g=e=>{(0,Nd.uploadMedia)({allowedTypes:["image"],filesList:e,onFileChange([e]){(0,Ad.isBlobURL)(e?.url)?l(!0):(h(e),l(!1))},onError(e){console.error({message:e})}})};return(0,e.createElement)("div",null,(0,e.createElement)(Rd,null,(0,e.createElement)(Nd.MediaUpload,{title:o,onSelect:h,allowedTypes:["image"],value:c,modalClass:"",render:({open:n})=>(0,e.createElement)("div",{className:"relative block"},(0,e.createElement)(Bt.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:n,"aria-label":c?(0,t.__)("Edit or update the image","extendify-local"):null,"aria-describedby":c?`image-${c}-describedby`:null},Boolean(c)&&d&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Bt.ResponsiveWrapper,{naturalWidth:m,naturalHeight:p,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:f,alt:""}))),a&&(0,e.createElement)(Bt.Spinner,null),!c&&!a&&i),(0,e.createElement)(Bt.DropZone,{className:"w-full h-full absolute inset-0",onFilesDrop:g}))})),Boolean(c)&&(0,e.createElement)("div",{className:"mt-6 gap-4 flex justify-between"},(0,e.createElement)(Rd,null,(0,e.createElement)("div",null,c&&(0,e.createElement)(Nd.MediaUpload,{title:o,onSelect:h,unstableFeaturedImageFlow:!0,allowedTypes:["image"],modalClass:"image__media-modal",render:({open:n})=>(0,e.createElement)(Bt.Button,{onClick:n,variant:"secondary"},(0,t.__)("Replace image","extendify-local"))}),(0,e.createElement)(Bt.Button,{onClick:()=>{u(0),Td(n,0)},variant:"link",className:"ml-4",isDestructive:!0},(0,t.__)("Remove image","extendify-local"))),(0,e.createElement)("div",null,(0,e.createElement)(Bt.Button,{variant:"primary",onClick:s,className:"bg-design-main text-design-text"},(0,t.__)("Done","extendify-local"))))))},Rd=({fallback:t=null,children:n})=>{const{checkingPermissions:r,hasUploadPermissions:o}=(0,Pd.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,r&&(0,e.createElement)(Bt.Spinner,null),!r&&o?n:t)},Md=({setModalTitle:n})=>{const{completeTask:r}=ud();return(0,e.useEffect)((()=>{n((0,t.__)("Upload site logo","extendify-local"))}),[n]),(0,e.createElement)(Od,{type:"site_logo",title:(0,t.__)("Site logo","extendify-local"),actionLabel:(0,t.__)("Set site logo","extendify-local"),onUpdate:()=>{r("logo")}})},Fd=({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}=ud();return(0,e.useEffect)((()=>{r((0,t.__)("Add site description","extendify-local"))}),[r]),(0,e.useEffect)((()=>{kd("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:Wu()("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 Td("blogdescription",o),c("site-description"),n()}},(0,t.__)("Save","extendify-local"))))},jd=({setModalTitle:n})=>{const{completeTask:r}=ud();return(0,e.useEffect)((()=>{n((0,t.__)("Upload site icon","extendify-local"))}),[n]),(0,e.createElement)(Od,{type:"site_icon",title:(0,t.__)("Site icon","extendify-local"),actionLabel:(0,t.__)("Set site icon","extendify-local"),onUpdate:()=>{r("site-icon")}})},Vd=({task:t})=>{const{pushModal:n}=xd(),{isCompleted:r}=ud(),o={UpdateLogo:Md,UpdateSiteDescription:Fd,UpdateSiteIcon:jd};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},Bd=({task:n})=>{const{startTour:r,wasOpened:o}=bt();return jt[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(jt[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},Id=({task:n})=>{const{isCompleted:r,dismissTask:o}=ud(),{slug:i}=n,s={modal:Vd,tour:Bd,"internal link":_d},a=n?.taskType?s[n.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"},r(i)?(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(i)?"var(--ext-design-main, #3959e9)":"currentColor",fill:r(i)?"var(--ext-design-main, #3959e9)":"none",strokeWidth:"1"}),(0,e.createElement)("polyline",{className:"checkbox__checkmark",points:"5,8 8,10 11,6",stroke:r(i)?"#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"},n.title))),(0,e.createElement)("div",{className:"flex items-center justify-end gap-1 sm:gap-3"},a&&(0,e.createElement)(a,{task:n}),r(i)?(0,e.createElement)("div",{className:"w-5"}):(0,e.createElement)(Bt.Dropdown,{className:"w-5",position:"bottom left",popoverProps:{placement:"bottom-end"},renderContent:({onClose:r})=>(0,e.createElement)("button",{onClick:()=>{r(),o(n.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)(It,{icon:Ku,className:""}))})))},Ud=()=>{const{seeTask:n,isCompleted:r}=ud(),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)(Sd,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)(It,{icon:Fu,className:"fill-current"}))),0===i.length?(0,e.createElement)(zd,null):(0,e.createElement)("div",{className:"border border-b-0 border-gray-300 mt-4",id:"assist-tasks-module-list"},(0,e.createElement)(ao,null,i.slice(0,5).map((t=>(0,e.createElement)(Ru.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)(Hd,{task:t})))))))},Hd=({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)(Id,{task:t,Action:n})),zd=()=>(0,e.createElement)("div",{className:"flex flex-col items-center justify-center border-gray-300 p-4 lg:p-8"},(0,e.createElement)(r,{"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"))),qd=()=>{const n=window.extAssistData.resourceData.tours,{startTour:r,wasOpened:o}=bt();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)(It,{icon:Fu,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(jt[n])},(0,e.createElement)("span",{className:"text-gray-900"},t),(t=>o(t)?(0,e.createElement)(f,{className:"w-5 h-5 group-hover:fill-current"}):(0,e.createElement)(p,{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")))))},Wd="welcome-message",$d=()=>{const{isDismissed:n,dismissNotice:r}=xd(),o=window.extAssistData.dismissedNotices.find((e=>e.id===Wd)),{startTour:i,progress:s}=bt(),{launchCompleted:a}=window.extAssistData,l=s?.filter((e=>"site-assistant-tour"===e.id)),c=l?.[0]?.completedCount;return(0,e.useEffect)((()=>{o||n(Wd)||c>0&&r(Wd)}),[o,n,r,c]),a?o||n(Wd)||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(Wd)}},(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(Nt)}},(0,t.__)("Take a tour","extendify-local"),(0,e.createElement)(p,{className:"w-5 h-5 group-hover:fill-current fill-current"})))):null},Zd=({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),Gd=()=>{const{themeSlug:t,launchCompleted:n}=window.extAssistData;return"extendable"!==t||n?"extendable"===t?(0,e.createElement)(Ud,null):null:(0,e.createElement)(Zu,null)},Xd=()=>{var n,r,o;const{searchTerm:i,setSearchTerm:a,activeCategory:l,articles:c,clearArticles:u,popArticle:d,reset:m}=Hu();return l||c?(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:m},(0,e.createElement)(It,{icon:s,className:"fill-current"})),i&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(It,{icon:Fu,className:"fill-current"}),(0,e.createElement)("button",{type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:()=>{m(),a(i)}},(0,t.sprintf)(
// translators: %s is the search term
(0,t.__)('Search results for "%s"',"extendify-local"),i))),l&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(It,{icon:Fu,className:"fill-current"}),(0,e.createElement)("button",{"aria-label":l?.title,type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:u},l?.title)),c?.[1]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(It,{icon:Fu,className:"fill-current"}),(0,e.createElement)("button",{"aria-label":null!==(n=c?.[1]?.title)&&void 0!==n?n:c?.[1]?.slug,type:"button",className:"p-0 text-s cursor-pointer bg-transparent text-gray-700",onClick:d},null!==(r=c?.[1]?.title)&&void 0!==r?r:c?.[1]?.slug)),c?.[0]&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(It,{icon:Fu,className:"fill-current"}),(0,e.createElement)("span",null,null!==(o=c?.[0]?.title||c?.[0]?.title)&&void 0!==o?o:c?.[0]?.slug))):null};var Yd=(0,e.createElement)(Ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Ut.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"})),Kd=(0,e.createElement)(Ut.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,e.createElement)(Ut.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 Jd="https://kb.extendify.com",Qd=({handleSubmission:n})=>{const{searchTerm:r,clearSearchTerm:o,reset:i}=Hu(),[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(`${Jd}/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)(It,{icon:r?Kd:Yd,className:Wu()("fill-current",{"cursor-pointer":r}),onClick:()=>{i(),o(),u.current?.focus()},size:30})))},em=({searchResponse:n})=>{const{data:r,loading:o,error:i}=n;return o?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(Bt.Spinner,null)):i?(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),i):r?.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"},r.map((t=>(0,e.createElement)(tm,{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"))},tm=({slug:n,title:r,summary:o})=>{const{pushArticle:i}=Hu();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 nm=o(488),rm=(nm.domToReact,nm.htmlToDOM,nm.attributesToProps,nm.Comment,nm.Element,nm.ProcessingInstruction,nm.Text,nm),om=o(688);const im=()=>{},sm=im(),am=Object,lm=e=>e===sm,cm=e=>"function"==typeof e,um=(e,t)=>({...e,...t}),dm=new WeakMap;let mm=0;const pm=e=>{const t=typeof e,n=e&&e.constructor,r=n==Date;let o,i;if(am(e)!==e||r||n==RegExp)o=r?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(o=dm.get(e),o)return o;if(o=++mm+"~",dm.set(e,o),n==Array){for(o="@",i=0;i<e.length;i++)o+=pm(e[i])+",";dm.set(e,o)}if(n==am){o="#";const t=am.keys(e).sort();for(;!lm(i=t.pop());)lm(e[i])||(o+=i+":"+pm(e[i])+",");dm.set(e,o)}}return o},fm=new WeakMap,hm={},gm={},ym="undefined",vm=typeof window!=ym,xm=typeof document!=ym,bm=(e,t)=>{const n=fm.get(e);return[()=>!lm(t)&&e.get(t)||hm,r=>{if(!lm(t)){const o=e.get(t);t in gm||(gm[t]=o),n[5](t,um(o,r),o||hm)}},n[6],()=>!lm(t)&&t in gm?gm[t]:!lm(t)&&e.get(t)||hm]};let wm=!0;const[Em,Cm]=vm&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[im,im],Sm={isOnline:()=>wm,isVisible:()=>{const e=xm&&document.visibilityState;return lm(e)||"hidden"!==e}},Tm={initFocus:e=>(xm&&document.addEventListener("visibilitychange",e),Em("focus",e),()=>{xm&&document.removeEventListener("visibilitychange",e),Cm("focus",e)}),initReconnect:e=>{const t=()=>{wm=!0,e()},n=()=>{wm=!1};return Em("online",t),Em("offline",n),()=>{Cm("online",t),Cm("offline",n)}}},km=!b.useId,_m=!vm||"Deno"in window,Am=_m?b.useEffect:b.useLayoutEffect,Lm="undefined"!=typeof navigator&&navigator.connection,Pm=!_m&&Lm&&(["slow-2g","2g"].includes(Lm.effectiveType)||Lm.saveData),Nm=e=>{if(cm(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?pm(e):"",t]};let Dm=0;const Om=()=>++Dm;async function Rm(...e){const[t,n,r,o]=e,i=um({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,u=i.throwOnError;if(cm(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(d))}return d(n);async function d(n){const[o]=Nm(n);if(!o)return;const[i,d]=bm(t,o),[m,p,f,h]=fm.get(t),g=()=>{const e=m[o];return c&&(delete f[o],delete h[o],e&&e[0])?e[0](2).then((()=>i().data)):i().data};if(e.length<3)return g();let y,v=r;const x=Om();p[o]=[x,0];const b=!lm(l),w=i(),E=w.data,C=w._c,S=lm(C)?E:C;if(b&&(l=cm(l)?l(S,E):l,d({data:l,_c:S})),cm(v))try{v=v(S)}catch(e){y=e}if(v&&cm(v.then)){if(v=await v.catch((e=>{y=e})),x!==p[o][0]){if(y)throw y;return v}y&&b&&(e=>"function"==typeof a?a(e):!1!==a)(y)&&(s=!0,d({data:S,_c:sm}))}if(s&&!y)if(cm(s)){const e=s(v,S);d({data:e,error:sm,_c:sm})}else d({data:v,error:sm,_c:sm});if(p[o][1]=Om(),Promise.resolve(g()).then((()=>{d({_c:sm})})),!y)return v;if(u)throw y}}const Mm=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},Fm=(e,t)=>{if(!fm.has(e)){const n=um(Tm,t),r={},o=Rm.bind(sm,e);let i=im;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)},c=()=>{if(!fm.has(e)&&(fm.set(e,[r,{},{},{},o,l,a]),!_m)){const t=n.initFocus(setTimeout.bind(sm,Mm.bind(sm,r,0))),o=n.initReconnect(setTimeout.bind(sm,Mm.bind(sm,r,1)));i=()=>{t&&t(),o&&o(),fm.delete(e)}}};return c(),[e,o,c,i]}return[e,fm.get(e)[4]]},[jm,Vm]=Fm(new Map),Bm=um({onLoadingSlow:im,onSuccess:im,onError:im,onErrorRetry:(e,__,t,n,r)=>{const o=t.errorRetryCount,i=r.retryCount,s=~~((Math.random()+.5)*(1<<(i<8?i:8)))*t.errorRetryInterval;!lm(o)&&i>o||setTimeout(n,s,r)},onDiscarded:im,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Pm?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Pm?5e3:3e3,compare:(e,t)=>pm(e)==pm(t),isPaused:()=>!1,cache:jm,mutate:Vm,fallback:{}},Sm),Im=(e,t)=>{const n=um(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=um(o,s))}return n},Um=(0,b.createContext)({}),Hm=vm&&window.__SWR_DEVTOOLS_USE__,zm=Hm?window.__SWR_DEVTOOLS_USE__:[],qm=e=>cm(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Wm=zm.concat((e=>(t,n,r)=>e(t,n&&((...e)=>{const[r]=Nm(t),[,,,o]=fm.get(jm);if(r.startsWith("$inf$"))return n(...e);const i=o[r];return lm(i)?n(...e):(delete o[r],i)}),r)));Hm&&(window.__SWR_DEVTOOLS_REACT__=b);const $m=b.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)}),Zm={dedupe:!0},Gm=(am.defineProperty((e=>{const{value:t}=e,n=(0,b.useContext)(Um),r=cm(t),o=(0,b.useMemo)((()=>r?t(n):t),[r,n,t]),i=(0,b.useMemo)((()=>r?o:Im(n,o)),[r,n,o]),s=o&&o.provider,a=(0,b.useRef)(sm);s&&!a.current&&(a.current=Fm(s(i.cache||jm),o));const l=a.current;return l&&(i.cache=l[0],i.mutate=l[1]),Am((()=>{if(l)return l[2]&&l[2](),l[3]}),[]),(0,b.createElement)(Um.Provider,um(e,{value:i}))}),"defaultValue",{value:Bm}),Xm=(e,t,n)=>{const{cache:r,compare:o,suspense:i,fallbackData:s,revalidateOnMount:a,revalidateIfStale:l,refreshInterval:c,refreshWhenHidden:u,refreshWhenOffline:d,keepPreviousData:m}=n,[p,f,h,g]=fm.get(r),[y,v]=Nm(e),x=(0,b.useRef)(!1),w=(0,b.useRef)(!1),E=(0,b.useRef)(y),C=(0,b.useRef)(t),S=(0,b.useRef)(n),T=()=>S.current,k=()=>T().isVisible()&&T().isOnline(),[_,A,L,P]=bm(r,y),N=(0,b.useRef)({}).current,D=lm(s)?n.fallback[y]:s,O=(e,t)=>{for(const n in N){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!lm(e[r]))return!1;if(!o(H,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},R=(0,b.useMemo)((()=>{const e=!!y&&!!t&&(lm(a)?!T().isPaused()&&!i&&(!!lm(l)||l):a),n=t=>{const n=um(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=_(),o=P(),s=n(r),c=r===o?s:n(o);let u=s;return[()=>{const e=n(_());return O(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>c]}),[r,y]),M=(0,om.useSyncExternalStore)((0,b.useCallback)((e=>L(y,((t,n)=>{O(n,t)||e()}))),[r,y]),R[0],R[1]),F=!x.current,j=p[y]&&p[y].length>0,V=M.data,B=lm(V)?D:V,I=M.error,U=(0,b.useRef)(B),H=m?lm(V)?U.current:V:B,z=!(j&&!lm(I))&&(F&&!lm(a)?a:!T().isPaused()&&(i?!lm(B)&&l:lm(B)||l)),q=!!(y&&t&&F&&z),W=lm(M.isValidating)?q:M.isValidating,$=lm(M.isLoading)?q:M.isLoading,Z=(0,b.useCallback)((async e=>{const t=C.current;if(!y||!t||w.current||T().isPaused())return!1;let r,i,s=!0;const a=e||{},l=!h[y]||!a.dedupe,c=()=>km?!w.current&&y===E.current&&x.current:y===E.current,u={isValidating:!1,isLoading:!1},d=()=>{A(u)},m=()=>{const e=h[y];e&&e[1]===i&&delete h[y]},g={isValidating:!0};lm(_().data)&&(g.isLoading=!0);try{if(l&&(A(g),n.loadingTimeout&&lm(_().data)&&setTimeout((()=>{s&&c()&&T().onLoadingSlow(y,n)}),n.loadingTimeout),h[y]=[t(v),Om()]),[r,i]=h[y],r=await r,l&&setTimeout(m,n.dedupingInterval),!h[y]||h[y][1]!==i)return l&&c()&&T().onDiscarded(y),!1;u.error=sm;const e=f[y];if(!lm(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return d(),l&&c()&&T().onDiscarded(y),!1;const a=_().data;u.data=o(a,r)?a:r,l&&c()&&T().onSuccess(r,y,n)}catch(e){m();const t=T(),{shouldRetryOnError:n}=t;t.isPaused()||(u.error=e,l&&c()&&(t.onError(e,y,t),(!0===n||cm(n)&&n(e))&&k()&&t.onErrorRetry(e,y,t,(e=>{const t=p[y];t&&t[0]&&t[0](3,e)}),{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,d(),!0}),[y,r]),G=(0,b.useCallback)(((...e)=>Rm(r,E.current,...e)),[]);if(Am((()=>{C.current=t,S.current=n,lm(V)||(U.current=V)})),Am((()=>{if(!y)return;const e=Z.bind(sm,Zm);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())}})(y,p,((n,r={})=>{if(0==n){const n=Date.now();T().revalidateOnFocus&&n>t&&k()&&(t=n+T().focusThrottleInterval,e())}else if(1==n)T().revalidateOnReconnect&&k()&&e();else{if(2==n)return Z();if(3==n)return Z(r)}}));return w.current=!1,E.current=y,x.current=!0,A({_k:v}),z&&(lm(B)||_m?e():(e=>{vm&&typeof window.requestAnimationFrame!=ym?window.requestAnimationFrame(e):setTimeout(e,1)})(e)),()=>{w.current=!0,n()}}),[y]),Am((()=>{let e;function t(){const t=cm(c)?c(_().data):c;t&&-1!==e&&(e=setTimeout(n,t))}function n(){_().error||!u&&!T().isVisible()||!d&&!T().isOnline()?t():Z(Zm).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[c,u,d,y]),(0,b.useDebugValue)(H),i&&lm(B)&&y){if(!km&&_m)throw new Error("Fallback data is required when using suspense in SSR.");C.current=t,S.current=n,w.current=!1;const e=g[y];if(!lm(e)){const t=G(e);$m(t)}if(!lm(I))throw I;{const e=Z(Zm);lm(H)||(e.status="fulfilled",e.value=!0),$m(e)}}return{mutate:G,get data(){return N.data=!0,H},get error(){return N.error=!0,I},get isValidating(){return N.isValidating=!0,W},get isLoading(){return N.isLoading=!0,$}}},function(...e){const t=um(Bm,(0,b.useContext)(Um)),[n,r,o]=qm(e),i=Im(t,o);let s=Xm;const{use:a}=i,l=(a||[]).concat(Wm);for(let e=l.length;e--;)s=l[e](s);return s(n,r||i.fetcher||null,i)});var Xm;const Ym=((e,t)=>(...n)=>{const[r,o,i]=qm(n),s=(i.use||[]).concat(t);return e(r,o,{...i,use:s})})(Gm,(e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)))),Km=e=>{const t=window.extAssistData.wpLanguage||null,n=new URLSearchParams({lang:t});return fetch(`${Jd}/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()}))},Jm=()=>{const{articles:n,pushArticle:r,popArticle:o,updateTitle:i}=Hu(),[s,a]=(0,e.useState)(),l=(0,e.useRef)(),c=n?.[0]?.slug,{data:u,error:d,loading:m}=(e=>{const{data:t,error:n}=Ym(e,Km);return{data:t,error:n,loading:!t&&!n}})(c),p=u?.title;return(0,e.useEffect)((()=>{if(!d)return a(!1);s||(a(!0),o(),window.open(`https://wordpress.org/documentation/article/${c}`,"_blank"))}),[d,c,s,o]),(0,e.useEffect)((()=>{c&&p&&i(c,p)}),[p,i,c]),(0,e.useEffect)((()=>{if(!l.current)return;const e=l.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:o}=new URL(n),i=o.split("/").filter(Boolean)?.at(-1),s=await(e=>ht.get("assist/get-redirect",{params:{path:e}}))(o);if(!s)return o.startsWith("/documentation/article/")?r({slug:i,title:void 0}):window.open(`https://wordpress.org${o}`,"_blank");r({slug:s.split("/").filter(Boolean)?.at(-1)})},n=e=>{e.preventDefault(),window.open(e.target.href,"_blank")},o=e=>e.preventDefault();return e.forEach((e=>{const{hash:r,host:i,pathname:s}=new URL(e.href);if(r&&i===window.location.host||s.startsWith("/support/category"))return e.addEventListener("click",o),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",o);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",o)}))}}),[u,r]),m?(0,e.createElement)("div",{className:"p-8 text-base text-center"},(0,e.createElement)(Bt.Spinner,null)):d?(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:l,className:"extendify-documentation w-full","data-test":"kb-article-content"},(0,e.createElement)("h1",{className:"m-0 text-3xl"},p),u?.content&&rm(u?.content))},Qm=async e=>{if(e.length<3)return null;const t=new URLSearchParams({lang:window.extAssistData.wpLanguage||null,search:e});return await fetch(`${Jd}/api/posts?${t.toString()}`,{method:"POST"}).then((e=>{if(!e.ok)throw new Error(e.statusText);return e.json()}))},ep=()=>{const{setSearchTerm:n,searchTerm:r,reset:o,articles:i,activeCategory:s}=Hu(),a=(e=>{const{data:t,error:n}=Ym(e||null,Qm);return{data:t,error:n,loading:!t&&!n}})(r);return(0,e.useEffect)((()=>(xp.onRouteChange(o),()=>xp.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)(Qd,{handleSubmission:e=>{e!==r&&(o(),n(e))}})),(i?.length>0||s||a?.data?.length>0)&&(0,e.createElement)(Xd,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)(tp,{articles:i,search:r,searchResponse:a})))},tp=({articles:t,search:n,searchResponse:r})=>t?.length>0?(0,e.createElement)(Jm,null):n?.length>2?(0,e.createElement)(em,{searchResponse:r}):(0,e.createElement)(np,{articles:t}),np=()=>{const{activeCategory:n,setActiveCategory:r,pushArticle:o}=Hu(),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)(Bt.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})=>!n||e===n.slug)).map((s=>(0,e.createElement)("div",{key:s.slug},(0,e.createElement)("button",{"aria-label":s.title,type:"button",className:Wu()("mt-0 mb-4 text-base font-semibold no-underline bg-transparent p-0",{"hover:underline":!n,"hover:text-design-main":!n,"cursor-pointer":!n}),onClick:()=>r({title:s.title,slug:s.slug})},s.title),s.articles.filter(((e,t)=>n||t<5)).map((({slug:t,title:n})=>(0,e.createElement)("button",{"aria-label":n,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:()=>{r(s),o({slug:t,title:n})}},(0,e.createElement)(It,{icon:i,className:"text-gray-600 fill-current"}),(0,e.createElement)("span",{className:"leading-tight font-normal text-left text-sm -mt-px"},n)))),!n&&s.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:()=>{r({title:s.title,slug:s.slug})}},(0,t.__)("Show all","extendify-local"),(0,e.createElement)(It,{icon:Fu,className:"fill-current"})))))))},rp=()=>{const{recommendations:n}=dd(),{isDismissedRecommendation:o}=ed(),[i,s]=(0,e.useState)(!1),a=n?.filter((e=>o(e.slug))),l=n?.filter((e=>!o(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"),a.length)),a.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:()=>{s(!i)}},i?(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"},i?l.map((t=>(0,e.createElement)(op,{key:t.slug,rec: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)(r,{"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)(ao,null,l.map((t=>(0,e.createElement)(Ru.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)(op,{rec:t})))))),i&&(0,e.createElement)("div",{className:"dismissed-tasks w-full border border-b-0 border-t-0 border-gray-300"},a.map((t=>(0,e.createElement)(op,{key:t.slug,rec:t})))))},op=({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)(td,{rec:t})),ip=()=>{const{seeTask:n,isCompleted:o}=ud(),i=window.extAssistData.resourceData.tasks,[s,a]=(0,e.useState)(!1),l=i?.filter((e=>o(e.slug))),c=i?.filter((e=>!o(e.slug)));return(0,e.useEffect)((()=>{i?.length&&i.forEach((e=>n(e.slug)))}),[i,n]),0===i?.length||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-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"),l.length)),l.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:()=>{a(!s)}},s?(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"},s?c.map((t=>(0,e.createElement)(sp,{key:t.slug,task:t}))):0===c.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)(r,{"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)(ao,null,c.map((t=>(0,e.createElement)(Ru.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)(sp,{task:t})))))),s&&(0,e.createElement)("div",{className:"completed-tasks w-full border border-b-0 border-t-0 border-gray-300"},l.map((t=>(0,e.createElement)(sp,{key:t.slug,task:t})))))},sp=({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)(Id,{task:t})),ap=({tour:n})=>{const{wasOpened:r}=bt(),{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)(Bd,{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"})))},lp=()=>{const n=window.extAssistData.resourceData.tours,{wasOpened:r}=bt(),o=n?.filter((e=>r(e.slug))),i=n?.filter((e=>{var t;return null===(t=jt[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)(cp,{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")))))},cp=({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)(ap,{tour:t})),up=[{slug:"dashboard",name:(0,t.__)("Dashboard","extendify-local"),icon:l,component:()=>{const{disableRecommendations:n}=window.extAssistData;return(0,e.createElement)(Zd,null,(0,e.createElement)(bd,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)($d,null),(0,e.createElement)(Gd,null),n?null:(0,e.createElement)(md,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)(zu,null),(0,e.createElement)(qd,null),(0,e.createElement)(Xu,null)),(0,e.createElement)(Cd,null))))}},{slug:"tasks",name:(0,t.__)("Tasks","extendify-local"),icon:u,component:()=>(0,e.createElement)(Zd,null,(0,e.createElement)(ip,null))},{slug:"tours",name:(0,t.__)("Tours","extendify-local"),icon:d,component:()=>(0,e.createElement)(Zd,null,(0,e.createElement)(lp,null))},{slug:"recommendations",name:(0,t.__)("Recommendations","extendify-local"),icon:c,component:()=>(0,e.createElement)(Zd,null,(0,e.createElement)(rp,null))},{slug:"knowledge-base",name:(0,t.__)("Knowledge Base","extendify-local"),icon:s,component:()=>(0,e.createElement)(Zd,null,(0,e.createElement)(ep,null))}],{themeSlug:dp,launchCompleted:mp,disableRecommendations:pp}=window.extAssistData,fp="extendable"!==dp||!mp,hp=up.filter((e=>{const t="tasks"===e.slug&&fp,n="recommendations"===e.slug&&pp;return!t&&!n}));let gp=[];const yp={getItem:async()=>JSON.stringify(await ht.get("assist/router-data")),setItem:async(e,t)=>{return await(n=t,ht.post("assist/router-data",{data:n}));var n},removeItem:()=>{}},vp=k(O(L(((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 gp)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:N((()=>yp)),skipHydration:!0,partialize:({viewedPages:e})=>({viewedPages:e})})),xp={onRouteChange:e=>{gp.includes(e)||(gp=[...gp,e])},removeOnRouteChange:e=>{gp=gp.filter((t=>t!==e))}};let bp=!1;const wp=()=>{var t;const{current:n,setCurrent:r,history:o}=vp(),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(bp)return;bp=!0;const e=()=>{const e=window.location.hash.replace("#",""),t=hp.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(),()=>{bp=!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:hp,navigateTo:s,history:o}},Ep=k(O(L((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"})),Cp=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}},Sp=()=>{var n,r;const o=(0,e.useRef)(),{currentTour:i,currentStep:s,startTour:a,closeCurrentTour:l,getStepData:c,onTourPage:u}=bt(),{settings:d}=i||{},{image:m,title:p,text:f,attachTo:h,events:g,options:y}=c(s),{queueTourForRedirect:v,queuedTour:x,clearQueuedTour:b}=Ep(),{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]),L=(0,e.useMemo)((()=>"function"==typeof C?C():C),[C]),P=(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,B]=(0,e.useState)(null),[I,U]=(0,e.useState)({x:void 0,y:void 0,...L}),H=(0,e.useCallback)(((e,t)=>{U(20===e?{x:e,y:t}:{x:e,y:t,...L})}),[L]),z=(0,e.useCallback)((()=>{const e=P?.split(" ")||[];return{x:e.includes("right")?o.current?.offsetWidth:0,y:e.includes("bottom")?o.current?.offsetHeight:0}}),[P]),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=Cp(null!==(t=i.querySelector(_))&&void 0!==t?t:N);if(i!==document){const e=Cp(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),B(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)),B(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=x;let t=0;if(!e||!jt[e])return b();const n=()=>{requestAnimationFrame((()=>{a(jt[e])})),b()};return addEventListener("load",n),"complete"===document.readyState&&(t=requestAnimationFrame(n)),()=>{cancelAnimationFrame(t),removeEventListener("load",n)}}),[a,x,b,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 xp.onRouteChange(e),()=>xp.removeOnRouteChange(e)}),[l]),!F)return null;const W=kp(V,k);return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(ao,null,Boolean(i)&&(0,e.createElement)(Ir,{as:Ru.div,static:!0,initialFocus:O,className:"extendify-assist",open:Boolean(i),onClose:()=>{}},(0,e.createElement)("div",{className:"relative z-max"},(0,e.createElement)(Ru.div,{ref:o,animate:{opacity:1,...I},initial:{opacity:0,...I},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)(It,{icon:Ht,className:"w-4 h-4"})),(0,e.createElement)(Ir.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)(Tp,{initialFocus:O})))))),y?.blockPointerEvents&&(0,e.createElement)("div",{"aria-hidden":!0,className:"fixed inset-0 z-max-1"}),(0,e.createElement)(ao,null,Boolean(i)&&void 0!==V?.left&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)(Ru.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)(Ru.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"}))))},Tp=({initialFocus:n})=>{const{goToStep:r,completeCurrentTour:o,currentStep:i,preparingStep:s,getStepData:a,hasNextStep:l,nextStep:c,hasPreviousStep:u,prevStep:d,currentTour:m}=bt(),{options:p={}}=a(i),{hideBackButton:f=!1}=p,{id:h,steps:g,settings:y}=m||{},{completeTask:v}=ud();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)(ao,null,u()&&!f&&(0,e.createElement)(Ru.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:d,disabled:s>-1},s<i&&(0,e.createElement)(Bt.Spinner,{className:"text-design-main m-0 h-4"}),(0,e.createElement)("span",null,(0,t.__)("Back","extendify-local")))))),g?.length>2&&!y?.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"},g.map(((n,o)=>(0,e.createElement)("div",{key:o},(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"),o+1,g.length),"aria-current":o===i,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 "+(o===i?"bg-design-main":"bg-gray-300"),onClick:()=>r(o),disabled:s>-1}))))):null,(0,e.createElement)("div",{className:"flex-1 flex justify-end"},l()?(0,e.createElement)(Bt.Button,{ref:n,id:"assist-tour-next-button","data-test":"assist-tour-next-button",onClick:c,disabled:s>-1,className:"flex gap-2 text-design-text bg-design-main focus:text-design-text disabled:opacity-60",variant:"primary"},s>i&&(0,e.createElement)(Bt.Spinner,{className:"text-design-main m-0 h-4"}),(0,e.createElement)("span",null,(0,t.__)("Next","extendify-local"))):(0,e.createElement)(Bt.Button,{id:"assist-tour-next-button","data-test":"assist-tour-next-button",onClick:()=>{v(h),o()},className:"bg-design-main",variant:"primary"},(0,t.__)("Done","extendify-local"))))},kp=(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)}},_p=(t,n)=>{"function"==typeof e.createRoot?(0,e.createRoot)(n).render(t):(0,e.render)(t,n)};(()=>{const t=new URLSearchParams(window.location.search);if(["page"].includes(t.get("extendify-launch")))return;if(!document.getElementById("extendify-assist-landing-page")){const t=Object.assign(document.createElement("div"),{className:"extendify-assist"});document.body.append(t),_p((0,e.createElement)(Sp,null),t);const n=Object.assign(document.createElement("li"),{id:"wp-admin-bar-extendify-assist-tour-button",className:"extendify-assist"});document.querySelector("#wp-admin-bar-my-account")?.after(n),_p((0,e.createElement)(Vt,null),n)}document.querySelector("#toplevel_page_extendify-admin-page.wp-has-current-submenu")?.classList.add("current"),document.querySelectorAll(".extendify-assist-badge-count")?.forEach((t=>_p((0,e.createElement)(Sd,null),t)));const n=Object.assign(document.createElement("li"),{id:"wp-admin-bar-extendify-assist-help-center",className:"extendify-assist menupop"});document.querySelector("#wp-admin-bar-my-account")?.after(n),_p((0,e.createElement)(g,null),n);const r=Object.assign(document.createElement("div"),{id:"wp-admin-bar-extendify-assist-help-center-sub-menu",className:"ab-sub-wrapper",style:"margin-top: -7px"});document.querySelector("#assist-help-center")?.after(r),_p((0,e.createElement)(v,null),r)})()}()}();