whoami7 - Manager
:
/
home
/
ezdajrnh
/
www
/
wp-content
/
plugins
/
wordpress-seo
/
js
/
dist
/
Upload File:
files >> /home/ezdajrnh/www/wp-content/plugins/wordpress-seo/js/dist/general-page.js
(()=>{var e={4184:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)){if(s.length){var o=n.apply(null,s);o&&e.push(o)}}else if("object"===a){if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]")){e.push(s.toString());continue}for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},8133:(e,t,s)=>{"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},a=function(){function e(e,t){for(var s=0;s<t.length;s++){var r=t[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,s,r){return s&&e(t.prototype,s),r&&e(t,r),t}}(),o=c(s(9196)),i=c(s(5890)),l=c(s(4306));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},p=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function m(e){for(var t=arguments.length,s=Array(t>1?t-1:0),r=1;r<t;r++)s[r-1]=arguments[r];if(!s.length)return e;for(var n={},a=Object.keys(e),o=0;o<a.length;o++){var i=a[o];-1===s.indexOf(i)&&(n[i]=e[i])}return n}function h(e){e.forEach((function(e){return cancelAnimationFrame(e)}))}function f(e){return!isNaN(parseFloat(e))&&isFinite(e)}function y(e){return"string"==typeof e&&e.search("%")===e.length-1&&f(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));s.animationFrameIDs=[];var r="auto",a="visible";f(e.height)?(r=e.height<0||"0"===e.height?0:e.height,a="hidden"):y(e.height)&&(r="0%"===e.height?0:e.height,a="hidden"),s.animationStateClasses=n({},u,e.animationStateClasses);var o=s.getStaticStateClasses(r);return s.state={animationStateClasses:o,height:r,overflow:a,shouldUseTransitions:!1},s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var s,r,n=this,a=this.props,o=a.delay,i=a.duration,c=a.height,u=a.onAnimationEnd,p=a.onAnimationStart;if(this.contentElement&&c!==e.height){var m;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var b=i+o,x=null,w={height:null,overflow:"hidden"},S="auto"===t.height;f(c)?(x=c<0||"0"===c?0:c,w.height=x):y(c)?(x="0%"===c?0:c,w.height=x):(x=v,w.height="auto",w.overflow=null),S&&(w.height=x,x=v);var E=(0,l.default)((d(m={},this.animationStateClasses.animating,!0),d(m,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),d(m,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),d(m,this.animationStateClasses.animatingToHeightZero,0===w.height),d(m,this.animationStateClasses.animatingToHeightAuto,"auto"===w.height),d(m,this.animationStateClasses.animatingToHeightSpecific,w.height>0),m)),_=this.getStaticStateClasses(w.height);this.setState({animationStateClasses:E,height:x,overflow:"hidden",shouldUseTransitions:!S}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),S?(w.shouldUseTransitions=!0,h(this.animationFrameIDs),this.animationFrameIDs=(s=function(){n.setState(w),g(p,{newHeight:w.height})},(r=[])[0]=requestAnimationFrame((function(){r[1]=requestAnimationFrame((function(){s()}))})),r),this.animationClassesTimeoutID=setTimeout((function(){n.setState({animationStateClasses:_,shouldUseTransitions:!1}),n.hideContent(w.height),g(u,{newHeight:w.height})}),b)):(g(p,{newHeight:x}),this.timeoutID=setTimeout((function(){w.animationStateClasses=_,w.shouldUseTransitions=!1,n.setState(w),"auto"!==c&&n.hideContent(x),g(u,{newHeight:x})}),b))}}},{key:"componentWillUnmount",value:function(){h(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,s=this.props,r=s.animateOpacity,a=s.applyInlineTransitions,i=s.children,c=s.className,u=s.contentClassName,h=s.delay,f=s.duration,y=s.easing,g=s.id,v=s.style,b=this.state,x=b.height,w=b.overflow,S=b.animationStateClasses,E=b.shouldUseTransitions,_=n({},v,{height:x,overflow:w||v.overflow});E&&a&&(_.transition="height "+f+"ms "+y+" "+h+"ms",v.transition&&(_.transition=v.transition+", "+_.transition),_.WebkitTransition=_.transition);var j={};r&&(j.transition="opacity "+f+"ms "+y+" "+h+"ms",j.WebkitTransition=j.transition,0===x&&(j.opacity=0));var C=(0,l.default)((d(e={},S,!0),d(e,c,c),e)),k=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===x;return o.default.createElement("div",n({},m.apply(void 0,[this.props].concat(p)),{"aria-hidden":k,className:C,id:g,style:_}),o.default.createElement("div",{className:u,style:j,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);v.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,s){var n=e[t];return"number"==typeof n&&n>=0||y(n)||"auto"===n?null:new TypeError('value "'+n+'" of type "'+(void 0===n?"undefined":r(n))+'" is invalid type for '+t+" in "+s+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=v},4306:(e,t)=>{var s;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t<arguments.length;t++){var s=arguments[t];if(s){var a=typeof s;if("string"===a||"number"===a)e.push(s);else if(Array.isArray(s)&&s.length){var o=n.apply(null,s);o&&e.push(o)}else if("object"===a)for(var i in s)r.call(s,i)&&s[i]&&e.push(i)}}return e.join(" ")}e.exports?(n.default=n,e.exports=n):void 0===(s=function(){return n}.apply(t,[]))||(e.exports=s)}()},591:e=>{for(var t=[],s=0;s<256;++s)t[s]=(s+256).toString(16).substr(1);e.exports=function(e,s){var r=s||0,n=t;return[n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],"-",n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]],n[e[r++]]].join("")}},9176:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var s=new Uint8Array(16);e.exports=function(){return t(s),s}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},3409:(e,t,s)=>{var r=s(9176),n=s(591);e.exports=function(e,t,s){var a=t&&s||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var o=(e=e||{}).random||(e.rng||r)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t)for(var i=0;i<16;++i)t[a+i]=o[i];return t||n(o)}},9196:e=>{"use strict";e.exports=window.React},5890:e=>{"use strict";e.exports=window.yoast.propTypes}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,s),a.exports}s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};s.r(e),s.d(e,{DISMISS_ALERT:()=>hp});const t=window.wp.components,r=window.wp.data,n=window.wp.domReady;var a=s.n(n);const o=window.wp.element,i=window.yoast.dashboardFrontend,l=window.yoast.uiLibrary,c=window.lodash;var d=s(9196),u=s.n(d);const p=window.ReactDOM;function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},m.apply(this,arguments)}var h;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(h||(h={}));const f="popstate";function y(e,t){if(!1===e||null==e)throw new Error(t)}function g(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function b(e,t,s,r){return void 0===s&&(s=null),m({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?w(t):t,{state:s,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function x(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&"?"!==s&&(t+="?"===s.charAt(0)?s:"?"+s),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function w(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function S(e,t,s,r){void 0===r&&(r={});let{window:n=document.defaultView,v5Compat:a=!1}=r,o=n.history,i=h.Pop,l=null,c=d();function d(){return(o.state||{idx:null}).idx}function u(){i=h.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:i,location:g.location,delta:t})}function p(e){let t="null"!==n.location.origin?n.location.origin:n.location.href,s="string"==typeof e?e:x(e);return s=s.replace(/ $/,"%20"),y(t,"No window.location.(origin|href) available to create URL for href: "+s),new URL(s,t)}null==c&&(c=0,o.replaceState(m({},o.state,{idx:c}),""));let g={get action(){return i},get location(){return e(n,o)},listen(e){if(l)throw new Error("A history only accepts one active listener");return n.addEventListener(f,u),l=e,()=>{n.removeEventListener(f,u),l=null}},createHref:e=>t(n,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=h.Push;let r=b(g.location,e,t);s&&s(r,e),c=d()+1;let u=v(r,c),p=g.createHref(r);try{o.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;n.location.assign(p)}a&&l&&l({action:i,location:g.location,delta:1})},replace:function(e,t){i=h.Replace;let r=b(g.location,e,t);s&&s(r,e),c=d();let n=v(r,c),u=g.createHref(r);o.replaceState(n,"",u),a&&l&&l({action:i,location:g.location,delta:0})},go:e=>o.go(e)};return g}var E;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(E||(E={}));const _=new Set(["lazy","caseSensitive","path","id","index","children"]);function j(e,t,s,r){return void 0===s&&(s=[]),void 0===r&&(r={}),e.map(((e,n)=>{let a=[...s,String(n)],o="string"==typeof e.id?e.id:a.join("-");if(y(!0!==e.index||!e.children,"Cannot specify children on an index route"),y(!r[o],'Found a route id collision on id "'+o+"\". Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let s=m({},e,t(e),{id:o});return r[o]=s,s}{let s=m({},e,t(e),{id:o,children:void 0});return r[o]=s,e.children&&(s.children=j(e.children,t,a,r)),s}}))}function C(e,t,s){return void 0===s&&(s="/"),k(e,t,s,!1)}function k(e,t,s,r){let n=B(("string"==typeof t?w(t):t).pathname||"/",s);if(null==n)return null;let a=R(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let s=e.length===t.length&&e.slice(0,-1).every(((e,s)=>e===t[s]));return s?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e){let t=U(n);o=F(a[e],t,r)}return o}function R(e,t,s,r){void 0===t&&(t=[]),void 0===s&&(s=[]),void 0===r&&(r="");let n=(e,n,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};o.relativePath.startsWith("/")&&(y(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let i=W([r,o.relativePath]),l=s.concat(o);e.children&&e.children.length>0&&(y(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),R(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:D(i,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var s;if(""!==e.path&&null!=(s=e.path)&&s.includes("?"))for(let s of O(e.path))n(e,t,s);else n(e,t)})),t}function O(e){let t=e.split("/");if(0===t.length)return[];let[s,...r]=t,n=s.endsWith("?"),a=s.replace(/\?$/,"");if(0===r.length)return n?[a,""]:[a];let o=O(r.join("/")),i=[];return i.push(...o.map((e=>""===e?a:[a,e].join("/")))),n&&i.push(...o),i.map((t=>e.startsWith("/")&&""===t?"/":t))}const N=/^:[\w-]+$/,P=3,T=2,L=1,M=10,A=-2,I=e=>"*"===e;function D(e,t){let s=e.split("/"),r=s.length;return s.some(I)&&(r+=A),t&&(r+=T),s.filter((e=>!I(e))).reduce(((e,t)=>e+(N.test(t)?P:""===t?L:M)),r)}function F(e,t,s){void 0===s&&(s=!1);let{routesMeta:r}=e,n={},a="/",o=[];for(let e=0;e<r.length;++e){let i=r[e],l=e===r.length-1,c="/"===a?t:t.slice(a.length)||"/",d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),u=i.route;if(!d&&l&&s&&!r[r.length-1].route.index&&(d=z({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(n,d.params),o.push({params:n,pathname:W([a,d.pathname]),pathnameBase:G(W([a,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(a=W([a,d.pathnameBase]))}return o}function z(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[s,r]=function(e,t,s){void 0===t&&(t=!1),void 0===s&&(s=!0),g("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],n="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,s)=>(r.push({paramName:t,isOptional:null!=s}),s?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(r.push({paramName:"*"}),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),n=t.match(s);if(!n)return null;let a=n[0],o=a.replace(/(.)\/+$/,"$1"),i=n.slice(1);return{params:r.reduce(((e,t,s)=>{let{paramName:r,isOptional:n}=t;if("*"===r){let e=i[s]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[s];return e[r]=n&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function U(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return g(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&"/"!==r?null:e.slice(s)||"/"}function q(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+s+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function $(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function H(e,t){let s=$(e);return t?s.map(((e,t)=>t===s.length-1?e.pathname:e.pathnameBase)):s.map((e=>e.pathnameBase))}function V(e,t,s,r){let n;void 0===r&&(r=!1),"string"==typeof e?n=w(e):(n=m({},e),y(!n.pathname||!n.pathname.includes("?"),q("?","pathname","search",n)),y(!n.pathname||!n.pathname.includes("#"),q("#","pathname","hash",n)),y(!n.search||!n.search.includes("#"),q("#","search","hash",n)));let a,o=""===e||""===n.pathname,i=o?"/":n.pathname;if(null==i)a=s;else{let e=t.length-1;if(!r&&i.startsWith("..")){let t=i.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:s,search:r="",hash:n=""}="string"==typeof e?w(e):e,a=s?s.startsWith("/")?s:function(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?s.length>1&&s.pop():"."!==e&&s.push(e)})),s.length>1?s.join("/"):"/"}(s,t):t;return{pathname:a,search:K(r),hash:Y(n)}}(n,a),c=i&&"/"!==i&&i.endsWith("/"),d=(o||"."===i)&&s.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}const W=e=>e.join("/").replace(/\/\/+/g,"/"),G=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),K=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Y=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class Z{constructor(e,t,s,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}}function J(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Q=["post","put","patch","delete"],X=new Set(Q),ee=["get",...Q],te=new Set(ee),se=new Set([301,302,303,307,308]),re=new Set([307,308]),ne={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ae={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},oe={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ie=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,le=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),ce="remix-router-transitions";function de(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,s=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,r=!s;let n;if(y(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)n=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;n=e=>({hasErrorBoundary:t(e)})}else n=le;let a,o,i,l={},c=j(e.routes,n,void 0,l),d=e.basename||"/",u=e.unstable_dataStrategy||ve,p=e.unstable_patchRoutesOnNavigation,f=m({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),v=null,x=new Set,w=1e3,S=new Set,R=null,O=null,N=null,P=null!=e.hydrationData,T=C(c,e.history.location,d),L=null;if(null==T&&!p){let t=Ne(404,{pathname:e.history.location.pathname}),{matches:s,route:r}=Oe(c);T=s,L={[r.id]:t}}if(T&&!e.hydrationData&&pt(T,c,e.history.location.pathname).active&&(T=null),T)if(T.some((e=>e.route.lazy)))o=!1;else if(T.some((e=>e.route.loader)))if(f.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,s=e.hydrationData?e.hydrationData.errors:null,r=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||s&&void 0!==s[e.route.id]);if(s){let e=T.findIndex((e=>void 0!==s[e.route.id]));o=T.slice(0,e+1).every(r)}else o=T.every(r)}else o=null!=e.hydrationData;else o=!0;else if(o=!1,T=[],f.v7_partialHydration){let t=pt(null,c,e.history.location.pathname);t.active&&t.matches&&(T=t.matches)}let M,A,I={historyAction:e.history.action,location:e.history.location,matches:T,initialized:o,navigation:ne,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},D=h.Pop,F=!1,z=!1,U=new Map,q=null,$=!1,H=!1,V=[],W=new Set,G=new Map,K=0,Y=-1,Z=new Map,Q=new Set,X=new Map,ee=new Map,te=new Set,se=new Map,de=new Map,he=new Map;function fe(e,t){void 0===t&&(t={}),I=m({},I,e);let s=[],r=[];f.v7_fetcherPersist&&I.fetchers.forEach(((e,t)=>{"idle"===e.state&&(te.has(t)?r.push(t):s.push(t))})),[...x].forEach((e=>e(I,{deletedFetchers:r,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync}))),f.v7_fetcherPersist&&(s.forEach((e=>I.fetchers.delete(e))),r.forEach((e=>Xe(e))))}function Ee(t,s,r){var n,o;let i,{flushSync:l}=void 0===r?{}:r,d=null!=I.actionData&&null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&"loading"===I.navigation.state&&!0!==(null==(n=t.state)?void 0:n._isRedirect);i=s.actionData?Object.keys(s.actionData).length>0?s.actionData:null:d?I.actionData:null;let u=s.loaderData?Ce(I.loaderData,s.loaderData,s.matches||[],s.errors):I.loaderData,p=I.blockers;p.size>0&&(p=new Map(p),p.forEach(((e,t)=>p.set(t,oe))));let f,y=!0===F||null!=I.navigation.formMethod&&ze(I.navigation.formMethod)&&!0!==(null==(o=t.state)?void 0:o._isRedirect);if(a&&(c=a,a=void 0),$||D===h.Pop||(D===h.Push?e.history.push(t,t.state):D===h.Replace&&e.history.replace(t,t.state)),D===h.Pop){let e=U.get(I.location.pathname);e&&e.has(t.pathname)?f={currentLocation:I.location,nextLocation:t}:U.has(t.pathname)&&(f={currentLocation:t,nextLocation:I.location})}else if(z){let e=U.get(I.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(I.location.pathname,e)),f={currentLocation:I.location,nextLocation:t}}fe(m({},s,{actionData:i,loaderData:u,historyAction:D,location:t,initialized:!0,navigation:ne,revalidation:"idle",restoreScrollPosition:ut(t,s.matches||I.matches),preventScrollReset:y,blockers:p}),{viewTransitionOpts:f,flushSync:!0===l}),D=h.Pop,F=!1,z=!1,$=!1,H=!1,V=[]}async function _e(t,s,r){M&&M.abort(),M=null,D=t,$=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(R&&N){let s=dt(e,t);R[s]=N()}}(I.location,I.matches),F=!0===(r&&r.preventScrollReset),z=!0===(r&&r.enableViewTransition);let n=a||c,o=r&&r.overrideNavigation,i=C(n,s,d),l=!0===(r&&r.flushSync),u=pt(i,n,s.pathname);if(u.active&&u.matches&&(i=u.matches),!i){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return void Ee(s,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:l})}if(I.initialized&&!H&&(p=I.location,y=s,p.pathname===y.pathname&&p.search===y.search&&(""===p.hash?""!==y.hash:p.hash===y.hash||""!==y.hash))&&!(r&&r.submission&&ze(r.submission.formMethod)))return void Ee(s,{matches:i},{flushSync:l});var p,y;M=new AbortController;let g,v=Se(e.history,s,M.signal,r&&r.submission);if(r&&r.pendingError)g=[Re(i).route.id,{type:E.error,error:r.pendingError}];else if(r&&r.submission&&ze(r.submission.formMethod)){let t=await async function(e,t,s,r,n,a){void 0===a&&(a={}),Ye();let o,i=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,s);if(fe({navigation:i},{flushSync:!0===a.flushSync}),n){let s=await mt(r,t.pathname,e.signal);if("aborted"===s.type)return{shortCircuited:!0};if("error"===s.type){let{boundaryId:e,error:r}=lt(t.pathname,s);return{matches:s.partialMatches,pendingActionResult:[e,{type:E.error,error:r}]}}if(!s.matches){let{notFoundMatches:e,error:s,route:r}=it(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:E.error,error:s}]}}r=s.matches}let l=He(r,t);if(l.route.action||l.route.lazy){if(o=(await Fe("action",I,e,[l],r,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:E.error,error:Ne(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Ie(o)){let t;return t=a&&null!=a.replace?a.replace:we(o.response.headers.get("Location"),new URL(e.url),d)===I.location.pathname+I.location.search,await De(e,o,!0,{submission:s,replace:t}),{shortCircuited:!0}}if(Me(o))throw Ne(400,{type:"defer-action"});if(Ae(o)){let e=Re(r,l.route.id);return!0!==(a&&a.replace)&&(D=h.Push),{matches:r,pendingActionResult:[e.route.id,o]}}return{matches:r,pendingActionResult:[l.route.id,o]}}(v,s,r.submission,i,u.active,{replace:r.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(Ae(r)&&J(r.error)&&404===r.error.status)return M=null,void Ee(s,{matches:t.matches,loaderData:{},errors:{[e]:r.error}})}i=t.matches||i,g=t.pendingActionResult,o=We(s,r.submission),l=!1,u.active=!1,v=Se(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:w,errors:S}=await async function(t,s,r,n,o,i,l,u,p,h,y){let g=o||We(s,i),v=i||l||Ve(g),b=!($||f.v7_partialHydration&&p);if(n){if(b){let e=Te(y);fe(m({navigation:g},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await mt(r,s.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:r}=lt(s.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:r}}}if(!e.matches){let{error:e,notFoundMatches:t,route:r}=it(s.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}r=e.matches}let x=a||c,[w,S]=me(e.history,I,r,v,s,f.v7_partialHydration&&!0===p,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,x,d,y);if(ct((e=>!(r&&r.some((t=>t.route.id===e)))||w&&w.some((t=>t.route.id===e)))),Y=++K,0===w.length&&0===S.length){let e=st();return Ee(s,m({matches:r,loaderData:{},errors:y&&Ae(y[1])?{[y[0]]:y[1].error}:null},ke(y),e?{fetchers:new Map(I.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!n){e.navigation=g;let t=Te(y);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),s=Ge(void 0,t?t.data:void 0);I.fetchers.set(e.key,s)})),new Map(I.fetchers)}(S)),fe(e,{flushSync:h})}S.forEach((e=>{G.has(e.key)&&et(e.key),e.controller&&G.set(e.key,e.controller)}));let E=()=>S.forEach((e=>et(e.key)));M&&M.signal.addEventListener("abort",E);let{loaderResults:_,fetcherResults:j}=await $e(I,r,w,S,t);if(t.signal.aborted)return{shortCircuited:!0};M&&M.signal.removeEventListener("abort",E),S.forEach((e=>G.delete(e.key)));let C=Pe(_);if(C)return await De(t,C.result,!0,{replace:u}),{shortCircuited:!0};if(C=Pe(j),C)return Q.add(C.key),await De(t,C.result,!0,{replace:u}),{shortCircuited:!0};let{loaderData:k,errors:R}=je(I,r,0,_,y,S,j,se);se.forEach(((e,t)=>{e.subscribe((s=>{(s||e.done)&&se.delete(t)}))})),f.v7_partialHydration&&p&&I.errors&&Object.entries(I.errors).filter((e=>{let[t]=e;return!w.some((e=>e.route.id===t))})).forEach((e=>{let[t,s]=e;R=Object.assign(R||{},{[t]:s})}));let O=st(),N=rt(Y),P=O||N||S.length>0;return m({matches:r,loaderData:k,errors:R},P?{fetchers:new Map(I.fetchers)}:{})}(v,s,i,u.active,o,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&!0===r.initialHydration,l,g);b||(M=null,Ee(s,m({matches:x||i},ke(g),{loaderData:w,errors:S})))}function Te(e){return e&&!Ae(e[1])?{[e[0]]:e[1].data}:I.actionData?0===Object.keys(I.actionData).length?null:I.actionData:void 0}async function De(r,n,a,o){let{submission:i,fetcherSubmission:l,replace:c}=void 0===o?{}:o;n.response.headers.has("X-Remix-Revalidate")&&(H=!0);let u=n.response.headers.get("Location");y(u,"Expected a Location header on the redirect Response"),u=we(u,new URL(r.url),d);let p=b(I.location,u,{_isRedirect:!0});if(s){let s=!1;if(n.response.headers.has("X-Remix-Reload-Document"))s=!0;else if(ie.test(u)){const r=e.history.createURL(u);s=r.origin!==t.location.origin||null==B(r.pathname,d)}if(s)return void(c?t.location.replace(u):t.location.assign(u))}M=null;let f=!0===c||n.response.headers.has("X-Remix-Replace")?h.Replace:h.Push,{formMethod:g,formAction:v,formEncType:x}=I.navigation;!i&&!l&&g&&v&&x&&(i=Ve(I.navigation));let w=i||l;if(re.has(n.response.status)&&w&&ze(w.formMethod))await _e(f,p,{submission:m({},w,{formAction:u}),preventScrollReset:F,enableViewTransition:a?z:void 0});else{let e=We(p,i);await _e(f,p,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:F,enableViewTransition:a?z:void 0})}}async function Fe(e,t,s,r,a,o){let i,c={};try{i=await async function(e,t,s,r,n,a,o,i,l,c){let d=a.map((e=>e.route.lazy?async function(e,t,s){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let n=s[e.id];y(n,"No route found in manifest");let a={};for(let e in r){let t=void 0!==n[e]&&"hasErrorBoundary"!==e;g(!t,'Route "'+n.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||_.has(e)||(a[e]=r[e])}Object.assign(n,a),Object.assign(n,m({},t(n),{lazy:void 0}))}(e.route,l,i):void 0)),u=a.map(((e,s)=>{let a=d[s],o=n.some((t=>t.route.id===e.route.id));return m({},e,{shouldLoad:o,resolve:async s=>(s&&"GET"===r.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,s,r,n,a){let o,i,l=r=>{let o,l=new Promise(((e,t)=>o=t));i=()=>o(),t.signal.addEventListener("abort",i);let c=n=>"function"!=typeof r?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+s.route.id+"]")):r({request:t,params:s.params,context:a},...void 0!==n?[n]:[]),d=(async()=>{try{return{type:"data",result:await(n?n((e=>c(e))):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let n=s.route[e];if(r)if(n){let e,[t]=await Promise.all([l(n).catch((t=>{e=t})),r]);if(void 0!==e)throw e;o=t}else{if(await r,n=s.route[e],!n){if("action"===e){let e=new URL(t.url),r=e.pathname+e.search;throw Ne(405,{method:t.method,pathname:r,routeId:s.route.id})}return{type:E.data,result:void 0}}o=await l(n)}else{if(!n){let e=new URL(t.url);throw Ne(404,{pathname:e.pathname+e.search})}o=await l(n)}y(void 0!==o.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+s.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:E.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return o}(t,r,e,a,s,c):Promise.resolve({type:E.data,result:void 0}))})})),p=await e({matches:u,request:r,params:a[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch(e){}return p}(u,e,0,s,r,a,o,l,n)}catch(e){return r.forEach((t=>{c[t.route.id]={type:E.error,error:e}})),c}for(let[e,t]of Object.entries(i))if(Le(t)){let r=t.result;c[e]={type:E.redirect,response:xe(r,s,e,a,d,f.v7_relativeSplatPath)}}else c[e]=await be(t);return c}async function $e(t,s,r,n,a){let o=t.matches,i=Fe("loader",0,a,r,s,null),l=Promise.all(n.map((async t=>{if(t.matches&&t.match&&t.controller){let s=(await Fe("loader",0,Se(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:s}}return Promise.resolve({[t.key]:{type:E.error,error:Ne(404,{pathname:t.path})}})}))),c=await i,d=(await l).reduce(((e,t)=>Object.assign(e,t)),{});return await Promise.all([Ue(s,c,a.signal,o,t.loaderData),Be(s,d,n)]),{loaderResults:c,fetcherResults:d}}function Ye(){H=!0,V.push(...ct()),X.forEach(((e,t)=>{G.has(t)&&(W.add(t),et(t))}))}function Ze(e,t,s){void 0===s&&(s={}),I.fetchers.set(e,t),fe({fetchers:new Map(I.fetchers)},{flushSync:!0===(s&&s.flushSync)})}function Je(e,t,s,r){void 0===r&&(r={});let n=Re(I.matches,t);Xe(e),fe({errors:{[n.route.id]:s},fetchers:new Map(I.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Qe(e){return f.v7_fetcherPersist&&(ee.set(e,(ee.get(e)||0)+1),te.has(e)&&te.delete(e)),I.fetchers.get(e)||ae}function Xe(e){let t=I.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&Z.has(e)||et(e),X.delete(e),Z.delete(e),Q.delete(e),te.delete(e),W.delete(e),I.fetchers.delete(e)}function et(e){let t=G.get(e);y(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function tt(e){for(let t of e){let e=Ke(Qe(t).data);I.fetchers.set(t,e)}}function st(){let e=[],t=!1;for(let s of Q){let r=I.fetchers.get(s);y(r,"Expected fetcher: "+s),"loading"===r.state&&(Q.delete(s),e.push(s),t=!0)}return tt(e),t}function rt(e){let t=[];for(let[s,r]of Z)if(r<e){let e=I.fetchers.get(s);y(e,"Expected fetcher: "+s),"loading"===e.state&&(et(s),Z.delete(s),t.push(s))}return tt(t),t.length>0}function nt(e){I.blockers.delete(e),de.delete(e)}function at(e,t){let s=I.blockers.get(e)||oe;y("unblocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"blocked"===t.state||"blocked"===s.state&&"proceeding"===t.state||"blocked"===s.state&&"unblocked"===t.state||"proceeding"===s.state&&"unblocked"===t.state,"Invalid blocker state transition: "+s.state+" -> "+t.state);let r=new Map(I.blockers);r.set(e,t),fe({blockers:r})}function ot(e){let{currentLocation:t,nextLocation:s,historyAction:r}=e;if(0===de.size)return;de.size>1&&g(!1,"A router only supports one blocker at a time");let n=Array.from(de.entries()),[a,o]=n[n.length-1],i=I.blockers.get(a);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:s,historyAction:r})?a:void 0}function it(e){let t=Ne(404,{pathname:e}),s=a||c,{matches:r,route:n}=Oe(s);return ct(),{notFoundMatches:r,route:n,error:t}}function lt(e,t){return{boundaryId:Re(t.partialMatches).route.id,error:Ne(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function ct(e){let t=[];return se.forEach(((s,r)=>{e&&!e(r)||(s.cancel(),t.push(r),se.delete(r))})),t}function dt(e,t){return O&&O(e,t.map((e=>function(e,t){let{route:s,pathname:r,params:n}=e;return{id:s.id,pathname:r,params:n,data:t[s.id],handle:s.handle}}(e,I.loaderData))))||e.key}function ut(e,t){if(R){let s=dt(e,t),r=R[s];if("number"==typeof r)return r}return null}function pt(e,t,s){if(p){if(S.has(s))return{active:!1,matches:e};if(!e)return{active:!0,matches:k(t,s,d,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:k(t,s,d,!0)}}return{active:!1,matches:null}}async function mt(e,t,s){let r=e;for(;;){let e=null==a,o=a||c;try{await ye(p,t,r,o,l,n,he,s)}catch(e){return{type:"error",error:e,partialMatches:r}}finally{e&&(c=[...c])}if(s.aborted)return{type:"aborted"};let i=C(o,t,d);if(i)return ht(t,S),{type:"success",matches:i};let u=k(o,t,d,!0);if(!u||r.length===u.length&&r.every(((e,t)=>e.route.id===u[t].route.id)))return ht(t,S),{type:"success",matches:null};r=u}}function ht(e,t){if(t.size>=w){let e=t.values().next().value;t.delete(e)}t.add(e)}return i={get basename(){return d},get future(){return f},get state(){return I},get routes(){return c},get window(){return t},initialize:function(){if(v=e.history.listen((t=>{let{action:s,location:r,delta:n}=t;if(A)return A(),void(A=void 0);g(0===de.size||null!=n,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let a=ot({currentLocation:I.location,nextLocation:r,historyAction:s});if(a&&null!=n){let t=new Promise((e=>{A=e}));return e.history.go(-1*n),void at(a,{state:"blocked",location:r,proceed(){at(a,{state:"proceeding",proceed:void 0,reset:void 0,location:r}),t.then((()=>e.history.go(n)))},reset(){let e=new Map(I.blockers);e.set(a,oe),fe({blockers:e})}})}return _e(s,r)})),s){!function(e,t){try{let s=e.sessionStorage.getItem(ce);if(s){let e=JSON.parse(s);for(let[s,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(s,new Set(r||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let s={};for(let[e,r]of t)s[e]=[...r];try{e.sessionStorage.setItem(ce,JSON.stringify(s))}catch(e){g(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return I.initialized||_e(h.Pop,I.location,{initialHydration:!0}),i},subscribe:function(e){return x.add(e),()=>x.delete(e)},enableScrollRestoration:function(e,t,s){if(R=e,N=t,O=s||null,!P&&I.navigation===ne){P=!0;let e=ut(I.location,I.matches);null!=e&&fe({restoreScrollPosition:e})}return()=>{R=null,N=null,O=null}},navigate:async function t(s,r){if("number"==typeof s)return void e.history.go(s);let n=ue(I.location,I.matches,d,f.v7_prependBasename,s,f.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=pe(f.v7_normalizeFormMethod,!1,n,r),l=I.location,c=b(I.location,a,r&&r.state);c=m({},c,e.history.encodeLocation(c));let u=r&&null!=r.replace?r.replace:void 0,p=h.Push;!0===u?p=h.Replace:!1===u||null!=o&&ze(o.formMethod)&&o.formAction===I.location.pathname+I.location.search&&(p=h.Replace);let y=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,g=!0===(r&&r.unstable_flushSync),v=ot({currentLocation:l,nextLocation:c,historyAction:p});if(!v)return await _e(p,c,{submission:o,pendingError:i,preventScrollReset:y,replace:r&&r.replace,enableViewTransition:r&&r.unstable_viewTransition,flushSync:g});at(v,{state:"blocked",location:c,proceed(){at(v,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(s,r)},reset(){let e=new Map(I.blockers);e.set(v,oe),fe({blockers:e})}})},fetch:function(t,s,n,o){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(t)&&et(t);let i=!0===(o&&o.unstable_flushSync),l=a||c,u=ue(I.location,I.matches,d,f.v7_prependBasename,n,f.v7_relativeSplatPath,s,null==o?void 0:o.relative),p=C(l,u,d),m=pt(p,l,u);if(m.active&&m.matches&&(p=m.matches),!p)return void Je(t,s,Ne(404,{pathname:u}),{flushSync:i});let{path:h,submission:g,error:v}=pe(f.v7_normalizeFormMethod,!0,u,o);if(v)return void Je(t,s,v,{flushSync:i});let b=He(p,h);F=!0===(o&&o.preventScrollReset),g&&ze(g.formMethod)?async function(t,s,r,n,o,i,l,u){function p(e){if(!e.route.action&&!e.route.lazy){let e=Ne(405,{method:u.formMethod,pathname:r,routeId:s});return Je(t,s,e,{flushSync:l}),!0}return!1}if(Ye(),X.delete(t),!i&&p(n))return;let m=I.fetchers.get(t);Ze(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,m),{flushSync:l});let h=new AbortController,g=Se(e.history,r,h.signal,u);if(i){let e=await mt(o,r,g.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:l})}if(!e.matches)return void Je(t,s,Ne(404,{pathname:r}),{flushSync:l});if(p(n=He(o=e.matches,r)))return}G.set(t,h);let v=K,b=(await Fe("action",0,g,[n],o,t))[n.route.id];if(g.signal.aborted)return void(G.get(t)===h&&G.delete(t));if(f.v7_fetcherPersist&&te.has(t)){if(Ie(b)||Ae(b))return void Ze(t,Ke(void 0))}else{if(Ie(b))return G.delete(t),Y>v?void Ze(t,Ke(void 0)):(Q.add(t),Ze(t,Ge(u)),De(g,b,!1,{fetcherSubmission:u}));if(Ae(b))return void Je(t,s,b.error)}if(Me(b))throw Ne(400,{type:"defer-action"});let x=I.navigation.location||I.location,w=Se(e.history,x,h.signal),S=a||c,E="idle"!==I.navigation.state?C(S,I.navigation.location,d):I.matches;y(E,"Didn't find any matches after fetcher action");let _=++K;Z.set(t,_);let j=Ge(u,b.data);I.fetchers.set(t,j);let[k,R]=me(e.history,I,E,u,x,!1,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,S,d,[n.route.id,b]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,s=I.fetchers.get(t),r=Ge(void 0,s?s.data:void 0);I.fetchers.set(t,r),G.has(t)&&et(t),e.controller&&G.set(t,e.controller)})),fe({fetchers:new Map(I.fetchers)});let O=()=>R.forEach((e=>et(e.key)));h.signal.addEventListener("abort",O);let{loaderResults:N,fetcherResults:P}=await $e(I,E,k,R,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",O),Z.delete(t),G.delete(t),R.forEach((e=>G.delete(e.key)));let T=Pe(N);if(T)return De(w,T.result,!1);if(T=Pe(P),T)return Q.add(T.key),De(w,T.result,!1);let{loaderData:L,errors:A}=je(I,E,0,N,void 0,R,P,se);if(I.fetchers.has(t)){let e=Ke(b.data);I.fetchers.set(t,e)}rt(_),"loading"===I.navigation.state&&_>Y?(y(D,"Expected pending action"),M&&M.abort(),Ee(I.navigation.location,{matches:E,loaderData:L,errors:A,fetchers:new Map(I.fetchers)})):(fe({errors:A,loaderData:Ce(I.loaderData,L,E,A),fetchers:new Map(I.fetchers)}),H=!1)}(t,s,h,b,p,m.active,i,g):(X.set(t,{routeId:s,path:h}),async function(t,s,r,n,a,o,i,l){let c=I.fetchers.get(t);Ze(t,Ge(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=Se(e.history,r,d.signal);if(o){let e=await mt(a,r,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:n}=lt(r,e);return void Je(t,s,n,{flushSync:i})}if(!e.matches)return void Je(t,s,Ne(404,{pathname:r}),{flushSync:i});n=He(a=e.matches,r)}G.set(t,d);let p=K,m=(await Fe("loader",0,u,[n],a,t))[n.route.id];if(Me(m)&&(m=await qe(m,u.signal,!0)||m),G.get(t)===d&&G.delete(t),!u.signal.aborted){if(!te.has(t))return Ie(m)?Y>p?void Ze(t,Ke(void 0)):(Q.add(t),void await De(u,m,!1)):void(Ae(m)?Je(t,s,m.error):(y(!Me(m),"Unhandled fetcher deferred data"),Ze(t,Ke(m.data))));Ze(t,Ke(void 0))}}(t,s,h,b,p,m.active,i,g))},revalidate:function(){Ye(),fe({revalidation:"loading"}),"submitting"!==I.navigation.state&&("idle"!==I.navigation.state?_e(D||I.historyAction,I.navigation.location,{overrideNavigation:I.navigation,enableViewTransition:!0===z}):_e(I.historyAction,I.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Qe,deleteFetcher:function(e){if(f.v7_fetcherPersist){let t=(ee.get(e)||0)-1;t<=0?(ee.delete(e),te.add(e)):ee.set(e,t)}else Xe(e);fe({fetchers:new Map(I.fetchers)})},dispose:function(){v&&v(),q&&q(),x.clear(),M&&M.abort(),I.fetchers.forEach(((e,t)=>Xe(t))),I.blockers.forEach(((e,t)=>nt(t)))},getBlocker:function(e,t){let s=I.blockers.get(e)||oe;return de.get(e)!==t&&de.set(e,t),s},deleteBlocker:nt,patchRoutes:function(e,t){let s=null==a;ge(e,t,a||c,l,n),s&&(c=[...c],fe({}))},_internalFetchControllers:G,_internalActiveDeferreds:se,_internalSetRoutes:function(e){l={},a=j(e,n,void 0,l)}},i}function ue(e,t,s,r,n,a,o,i){let l,c;if(o){l=[];for(let e of t)if(l.push(e),e.route.id===o){c=e;break}}else l=t,c=t[t.length-1];let d=V(n||".",H(l,a),B(e.pathname,s)||e.pathname,"path"===i);return null==n&&(d.search=e.search,d.hash=e.hash),null!=n&&""!==n&&"."!==n||!c||!c.route.index||$e(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&"/"!==s&&(d.pathname="/"===d.pathname?s:W([s,d.pathname])),x(d)}function pe(e,t,s,r){if(!r||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(r))return{path:s};if(r.formMethod&&(n=r.formMethod,!te.has(n.toLowerCase())))return{path:s,error:Ne(405,{method:r.formMethod})};var n;let a,o,i=()=>({path:s,error:Ne(400,{type:"invalid-body"})}),l=r.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Te(s);if(void 0!==r.body){if("text/plain"===r.formEncType){if(!ze(c))return i();let e="string"==typeof r.body?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce(((e,t)=>{let[s,r]=t;return""+e+s+"="+r+"\n"}),""):String(r.body);return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===r.formEncType){if(!ze(c))return i();try{let e="string"==typeof r.body?JSON.parse(r.body):r.body;return{path:s,submission:{formMethod:c,formAction:d,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(y("function"==typeof FormData,"FormData is not available in this environment"),r.formData)a=Ee(r.formData),o=r.formData;else if(r.body instanceof FormData)a=Ee(r.body),o=r.body;else if(r.body instanceof URLSearchParams)a=r.body,o=_e(a);else if(null==r.body)a=new URLSearchParams,o=new FormData;else try{a=new URLSearchParams(r.body),o=_e(a)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(ze(u.formMethod))return{path:s,submission:u};let p=w(s);return t&&p.search&&$e(p.search)&&a.append("index",""),p.search="?"+a,{path:x(p),submission:u}}function me(e,t,s,r,n,a,o,i,l,c,d,u,p,h,f,y){let g=y?Ae(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),b=e.createURL(n),x=y&&Ae(y[1])?y[0]:void 0,w=x?function(e,t){let s=e;if(t){let r=e.findIndex((e=>e.route.id===t));r>=0&&(s=e.slice(0,r))}return s}(s,x):s,S=y?y[1].statusCode:void 0,E=o&&S&&S>=400,_=w.filter(((e,s)=>{let{route:n}=e;if(n.lazy)return!0;if(null==n.loader)return!1;if(a)return!("function"==typeof n.loader&&!n.loader.hydrate&&(void 0!==t.loaderData[n.id]||t.errors&&void 0!==t.errors[n.id]));if(function(e,t,s){let r=!t||s.route.id!==t.route.id,n=void 0===e[s.route.id];return r||n}(t.loaderData,t.matches[s],e)||l.some((t=>t===e.route.id)))return!0;let o=t.matches[s],c=e;return fe(e,m({currentUrl:v,currentParams:o.params,nextUrl:b,nextParams:c.params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!E&&(i||v.pathname+v.search===b.pathname+b.search||v.search!==b.search||he(o,c))}))})),j=[];return u.forEach(((e,n)=>{if(a||!s.some((t=>t.route.id===e.routeId))||d.has(n))return;let o=C(h,e.path,f);if(!o)return void j.push({key:n,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(n),u=He(o,e.path),y=!1;p.has(n)?y=!1:c.has(n)?(c.delete(n),y=!0):y=l&&"idle"!==l.state&&void 0===l.data?i:fe(u,m({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:b,nextParams:s[s.length-1].params},r,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!E&&i})),y&&j.push({key:n,routeId:e.routeId,path:e.path,matches:o,match:u,controller:new AbortController})})),[_,j]}function he(e,t){let s=e.route.path;return e.pathname!==t.pathname||null!=s&&s.endsWith("*")&&e.params["*"]!==t.params["*"]}function fe(e,t){if(e.route.shouldRevalidate){let s=e.route.shouldRevalidate(t);if("boolean"==typeof s)return s}return t.defaultShouldRevalidate}async function ye(e,t,s,r,n,a,o,i){let l=[t,...s.map((e=>e.route.id))].join("-");try{let d=o.get(l);d||(d=e({path:t,matches:s,patch:(e,t)=>{i.aborted||ge(e,t,r,n,a)}}),o.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{o.delete(l)}var c}function ge(e,t,s,r,n){if(e){var a;let s=r[e];y(s,"No route found to patch children into: routeId = "+e);let o=j(t,n,[e,"patch",String((null==(a=s.children)?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let e=j(t,n,["patch",String(s.length||"0")],r);s.push(...e)}}async function ve(e){let{matches:t}=e,s=t.filter((e=>e.shouldLoad));return(await Promise.all(s.map((e=>e.resolve())))).reduce(((e,t,r)=>Object.assign(e,{[s[r].route.id]:t})),{})}async function be(e){let{result:t,type:s}=e;if(Fe(t)){let e;try{let s=t.headers.get("Content-Type");e=s&&/\bapplication\/json\b/.test(s)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:E.error,error:e}}return s===E.error?{type:E.error,error:new Z(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:E.data,data:e,statusCode:t.status,headers:t.headers}}if(s===E.error){if(De(t)){var r,n;if(t.data instanceof Error)return{type:E.error,error:t.data,statusCode:null==(n=t.init)?void 0:n.status};t=new Z((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:E.error,error:t,statusCode:J(t)?t.status:void 0}}var a,o,i,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:E.deferred,deferredData:t,statusCode:null==(a=t.init)?void 0:a.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:De(t)?{type:E.data,data:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:E.data,data:t}}function xe(e,t,s,r,n,a){let o=e.headers.get("Location");if(y(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ie.test(o)){let i=r.slice(0,r.findIndex((e=>e.route.id===s))+1);o=ue(new URL(t.url),i,n,!0,o,a),e.headers.set("Location",o)}return e}function we(e,t,s){if(ie.test(e)){let r=e,n=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=null!=B(n.pathname,s);if(n.origin===t.origin&&a)return n.pathname+n.search+n.hash}return e}function Se(e,t,s,r){let n=e.createURL(Te(t)).toString(),a={signal:s};if(r&&ze(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),"application/json"===t?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):"text/plain"===t?a.body=r.text:"application/x-www-form-urlencoded"===t&&r.formData?a.body=Ee(r.formData):a.body=r.formData}return new Request(n,a)}function Ee(e){let t=new URLSearchParams;for(let[s,r]of e.entries())t.append(s,"string"==typeof r?r:r.name);return t}function _e(e){let t=new FormData;for(let[s,r]of e.entries())t.append(s,r);return t}function je(e,t,s,r,n,a,o,i){let{loaderData:l,errors:c}=function(e,t,s,r,n){let a,o={},i=null,l=!1,c={},d=s&&Ae(s[1])?s[1].error:void 0;return e.forEach((s=>{if(!(s.route.id in t))return;let u=s.route.id,p=t[u];if(y(!Ie(p),"Cannot handle redirect results in processLoaderData"),Ae(p)){let t=p.error;if(void 0!==d&&(t=d,d=void 0),i=i||{},n)i[u]=t;else{let s=Re(e,u);null==i[s.route.id]&&(i[s.route.id]=t)}o[u]=void 0,l||(l=!0,a=J(p.error)?p.error.status:500),p.headers&&(c[u]=p.headers)}else Me(p)?(r.set(u,p.deferredData),o[u]=p.deferredData.data,null==p.statusCode||200===p.statusCode||l||(a=p.statusCode),p.headers&&(c[u]=p.headers)):(o[u]=p.data,p.statusCode&&200!==p.statusCode&&!l&&(a=p.statusCode),p.headers&&(c[u]=p.headers))})),void 0!==d&&s&&(i={[s[0]]:d},o[s[0]]=void 0),{loaderData:o,errors:i,statusCode:a||200,loaderHeaders:c}}(t,r,n,i,!1);return a.forEach((t=>{let{key:s,match:r,controller:n}=t,a=o[s];if(y(a,"Did not find corresponding fetcher result"),!n||!n.signal.aborted)if(Ae(a)){let t=Re(e.matches,null==r?void 0:r.route.id);c&&c[t.route.id]||(c=m({},c,{[t.route.id]:a.error})),e.fetchers.delete(s)}else if(Ie(a))y(!1,"Unhandled fetcher revalidation redirect");else if(Me(a))y(!1,"Unhandled fetcher deferred data");else{let t=Ke(a.data);e.fetchers.set(s,t)}})),{loaderData:l,errors:c}}function Ce(e,t,s,r){let n=m({},t);for(let a of s){let s=a.route.id;if(t.hasOwnProperty(s)?void 0!==t[s]&&(n[s]=t[s]):void 0!==e[s]&&a.route.loader&&(n[s]=e[s]),r&&r.hasOwnProperty(s))break}return n}function ke(e){return e?Ae(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Re(e,t){return(t?e.slice(0,e.findIndex((e=>e.route.id===t))+1):[...e]).reverse().find((e=>!0===e.route.hasErrorBoundary))||e[0]}function Oe(e){let t=1===e.length?e[0]:e.find((e=>e.index||!e.path||"/"===e.path))||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Ne(e,t){let{pathname:s,routeId:r,method:n,type:a,message:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===a?l='Unable to match URL "'+s+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+o:n&&s&&r?l="You made a "+n+' request to "'+s+'" but did not provide a `loader` for route "'+r+'", so there is no way to handle the request.':"defer-action"===a?l="defer() is not supported in actions":"invalid-body"===a&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+r+'" does not match URL "'+s+'"'):404===e?(i="Not Found",l='No route matches URL "'+s+'"'):405===e&&(i="Method Not Allowed",n&&s&&r?l="You made a "+n.toUpperCase()+' request to "'+s+'" but did not provide an `action` for route "'+r+'", so there is no way to handle the request.':n&&(l='Invalid request method "'+n.toUpperCase()+'"')),new Z(e||500,i,new Error(l),!0)}function Pe(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[s,r]=t[e];if(Ie(r))return{key:s,result:r}}}function Te(e){return x(m({},"string"==typeof e?w(e):e,{hash:""}))}function Le(e){return Fe(e.result)&&se.has(e.result.status)}function Me(e){return e.type===E.deferred}function Ae(e){return e.type===E.error}function Ie(e){return(e&&e.type)===E.redirect}function De(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Fe(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function ze(e){return X.has(e.toLowerCase())}async function Ue(e,t,s,r,n){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[i,l]=a[o],c=e.find((e=>(null==e?void 0:e.route.id)===i));if(!c)continue;let d=r.find((e=>e.route.id===c.route.id)),u=null!=d&&!he(d,c)&&void 0!==(n&&n[c.route.id]);Me(l)&&u&&await qe(l,s,!1).then((e=>{e&&(t[i]=e)}))}}async function Be(e,t,s){for(let r=0;r<s.length;r++){let{key:n,routeId:a,controller:o}=s[r],i=t[n];e.find((e=>(null==e?void 0:e.route.id)===a))&&Me(i)&&(y(o,"Expected an AbortController for revalidating fetcher deferred result"),await qe(i,o.signal,!0).then((e=>{e&&(t[n]=e)})))}}async function qe(e,t,s){if(void 0===s&&(s=!1),!await e.deferredData.resolveData(t)){if(s)try{return{type:E.data,data:e.deferredData.unwrappedData}}catch(e){return{type:E.error,error:e}}return{type:E.data,data:e.deferredData.data}}}function $e(e){return new URLSearchParams(e).getAll("index").some((e=>""===e))}function He(e,t){let s="string"==typeof t?w(t).search:t.search;if(e[e.length-1].route.index&&$e(s||""))return e[e.length-1];let r=$(e);return r[r.length-1]}function Ve(e){let{formMethod:t,formAction:s,formEncType:r,text:n,formData:a,json:o}=e;if(t&&s&&r)return null!=n?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:void 0,text:n}:null!=a?{formMethod:t,formAction:s,formEncType:r,formData:a,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:o,text:void 0}:void 0}function We(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ge(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Ke(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ye.apply(this,arguments)}Symbol("deferred");const Ze=d.createContext(null),Je=d.createContext(null),Qe=d.createContext(null),Xe=d.createContext(null),et=d.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=d.createContext(null);function st(){return null!=d.useContext(Xe)}function rt(){return st()||y(!1),d.useContext(Xe).location}function nt(e){d.useContext(Qe).static||d.useLayoutEffect(e)}function at(){let{isDataRoute:e}=d.useContext(et);return e?function(){let{router:e}=ft(mt.UseNavigateStable),t=gt(ht.UseNavigateStable),s=d.useRef(!1);return nt((()=>{s.current=!0})),d.useCallback((function(r,n){void 0===n&&(n={}),s.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Ye({fromRouteId:t},n)))}),[e,t])}():function(){st()||y(!1);let e=d.useContext(Ze),{basename:t,future:s,navigator:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,s.v7_relativeSplatPath)),i=d.useRef(!1);return nt((()=>{i.current=!0})),d.useCallback((function(s,n){if(void 0===n&&(n={}),!i.current)return;if("number"==typeof s)return void r.go(s);let l=V(s,JSON.parse(o),a,"path"===n.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:W([t,l.pathname])),(n.replace?r.replace:r.push)(l,n.state,n)}),[t,r,o,a,e])}()}const ot=d.createContext(null);function it(e,t){let{relative:s}=void 0===t?{}:t,{future:r}=d.useContext(Qe),{matches:n}=d.useContext(et),{pathname:a}=rt(),o=JSON.stringify(H(n,r.v7_relativeSplatPath));return d.useMemo((()=>V(e,JSON.parse(o),a,"path"===s)),[e,o,a,s])}function lt(e,t,s,r){st()||y(!1);let{navigator:n}=d.useContext(Qe),{matches:a}=d.useContext(et),o=a[a.length-1],i=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let c,u=rt();if(t){var p;let e="string"==typeof t?w(t):t;"/"===l||(null==(p=e.pathname)?void 0:p.startsWith(l))||y(!1),c=e}else c=u;let m=c.pathname||"/",f=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=C(e,{pathname:f}),v=function(e,t,s,r){var n;if(void 0===t&&(t=[]),void 0===s&&(s=null),void 0===r&&(r=null),null==e){var a;if(!s)return null;if(s.errors)e=s.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!s.initialized&&s.matches.length>0))return null;e=s.matches}}let o=e,i=null==(n=s)?void 0:n.errors;if(null!=i){let e=o.findIndex((e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id])));e>=0||y(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(s&&r&&r.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=s,n=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||n){l=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,r,n)=>{let a,u=!1,p=null,m=null;var h;s&&(a=i&&r.route.id?i[r.route.id]:void 0,p=r.route.errorElement||dt,l&&(c<0&&0===n?(xt[h="route-fallback"]||(xt[h]=!0),u=!0,m=null):c===n&&(u=!0,m=r.route.hydrateFallbackElement||null)));let f=t.concat(o.slice(0,n+1)),y=()=>{let t;return t=a?p:u?m:r.route.Component?d.createElement(r.route.Component,null):r.route.element?r.route.element:e,d.createElement(pt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=s},children:t})};return s&&(r.route.ErrorBoundary||r.route.errorElement||0===n)?d.createElement(ut,{location:s.location,revalidation:s.revalidation,component:p,error:a,children:y(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):y()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:W([l,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:W([l,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,s,r);return t&&v?d.createElement(Xe.Provider,{value:{location:Ye({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:h.Pop}},v):v}function ct(){let e=vt(),t=J(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),s?d.createElement("pre",{style:r},s):null,null)}const dt=d.createElement(ct,null);class ut extends d.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?d.createElement(et.Provider,{value:this.props.routeContext},d.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function pt(e){let{routeContext:t,match:s,children:r}=e,n=d.useContext(Ze);return n&&n.static&&n.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=s.route.id),d.createElement(et.Provider,{value:t},r)}var mt=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(mt||{}),ht=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ht||{});function ft(e){let t=d.useContext(Ze);return t||y(!1),t}function yt(e){let t=d.useContext(Je);return t||y(!1),t}function gt(e){let t=function(e){let t=d.useContext(et);return t||y(!1),t}(),s=t.matches[t.matches.length-1];return s.route.id||y(!1),s.route.id}function vt(){var e;let t=d.useContext(tt),s=yt(ht.UseRouteError),r=gt(ht.UseRouteError);return void 0!==t?t:null==(e=s.errors)?void 0:e[r]}let bt=0;const xt={};function wt(e){let{to:t,replace:s,state:r,relative:n}=e;st()||y(!1);let{future:a,static:o}=d.useContext(Qe),{matches:i}=d.useContext(et),{pathname:l}=rt(),c=at(),u=V(t,H(i,a.v7_relativeSplatPath),l,"path"===n),p=JSON.stringify(u);return d.useEffect((()=>c(JSON.parse(p),{replace:s,state:r,relative:n})),[c,p,n,s,r]),null}function St(e){return function(e){let t=d.useContext(et).outlet;return t?d.createElement(ot.Provider,{value:e},t):t}(e.context)}function Et(e){y(!1)}function _t(e){let{basename:t="/",children:s=null,location:r,navigationType:n=h.Pop,navigator:a,static:o=!1,future:i}=e;st()&&y(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo((()=>({basename:l,navigator:a,static:o,future:Ye({v7_relativeSplatPath:!1},i)})),[l,i,a,o]);"string"==typeof r&&(r=w(r));let{pathname:u="/",search:p="",hash:m="",state:f=null,key:g="default"}=r,v=d.useMemo((()=>{let e=B(u,l);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:g},navigationType:n}}),[l,u,p,m,f,g,n]);return null==v?null:d.createElement(Qe.Provider,{value:c},d.createElement(Xe.Provider,{children:s,value:v}))}function jt(e,t){void 0===t&&(t=[]);let s=[];return d.Children.forEach(e,((e,r)=>{if(!d.isValidElement(e))return;let n=[...t,r];if(e.type===d.Fragment)return void s.push.apply(s,jt(e.props.children,n));e.type!==Et&&y(!1),e.props.index&&e.props.children&&y(!1);let a={id:e.props.id||n.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=jt(e.props.children,n)),s.push(a)})),s}function Ct(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:d.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:d.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:d.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},kt.apply(this,arguments)}d.startTransition,new Promise((()=>{})),d.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const Rt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"];try{window.__reactRouterVersion="6"}catch($a){}function Ot(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=kt({},t,{errors:Nt(t.errors)})),t}function Nt(e){if(!e)return null;let t=Object.entries(e),s={};for(let[e,r]of t)if(r&&"RouteErrorResponse"===r.__type)s[e]=new Z(r.status,r.statusText,r.data,!0===r.internal);else if(r&&"Error"===r.__type){if(r.__subType){let t=window[r.__subType];if("function"==typeof t)try{let n=new t(r.message);n.stack="",s[e]=n}catch(e){}}if(null==s[e]){let t=new Error(r.message);t.stack="",s[e]=t}}else s[e]=r;return s}const Pt=d.createContext({isTransitioning:!1}),Tt=d.createContext(new Map),Lt=d.startTransition,Mt=p.flushSync;function At(e){Mt?Mt(e):e()}d.useId;class It{constructor(){this.status="pending",this.promise=new Promise(((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}}))}}function Dt(e){let{fallbackElement:t,router:s,future:r}=e,[n,a]=d.useState(s.state),[o,i]=d.useState(),[l,c]=d.useState({isTransitioning:!1}),[u,p]=d.useState(),[m,h]=d.useState(),[f,y]=d.useState(),g=d.useRef(new Map),{v7_startTransition:v}=r||{},b=d.useCallback((e=>{v?function(e){Lt?Lt(e):e()}(e):e()}),[v]),x=d.useCallback(((e,t)=>{let{deletedFetchers:r,unstable_flushSync:n,unstable_viewTransitionOpts:o}=t;r.forEach((e=>g.current.delete(e))),e.fetchers.forEach(((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)}));let l=null==s.window||null==s.window.document||"function"!=typeof s.window.document.startViewTransition;if(o&&!l){if(n){At((()=>{m&&(u&&u.resolve(),m.skipTransition()),c({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})}));let t=s.window.document.startViewTransition((()=>{At((()=>a(e)))}));return t.finished.finally((()=>{At((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})}))})),void At((()=>h(t)))}m?(u&&u.resolve(),m.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(i(e),c({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else n?At((()=>a(e))):b((()=>a(e)))}),[s.window,m,u,g,b]);d.useLayoutEffect((()=>s.subscribe(x)),[s,x]),d.useEffect((()=>{l.isTransitioning&&!l.flushSync&&p(new It)}),[l]),d.useEffect((()=>{if(u&&o&&s.window){let e=o,t=u.promise,r=s.window.document.startViewTransition((async()=>{b((()=>a(e))),await t}));r.finished.finally((()=>{p(void 0),h(void 0),i(void 0),c({isTransitioning:!1})})),h(r)}}),[b,o,u,s.window]),d.useEffect((()=>{u&&o&&n.location.key===o.location.key&&u.resolve()}),[u,m,n.location,o]),d.useEffect((()=>{!l.isTransitioning&&f&&(i(f.state),c({isTransitioning:!0,flushSync:!1,currentLocation:f.currentLocation,nextLocation:f.nextLocation}),y(void 0))}),[l.isTransitioning,f]),d.useEffect((()=>{}),[]);let w=d.useMemo((()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:e=>s.navigate(e),push:(e,t,r)=>s.navigate(e,{state:t,preventScrollReset:null==r?void 0:r.preventScrollReset}),replace:(e,t,r)=>s.navigate(e,{replace:!0,state:t,preventScrollReset:null==r?void 0:r.preventScrollReset})})),[s]),S=s.basename||"/",E=d.useMemo((()=>({router:s,navigator:w,static:!1,basename:S})),[s,w,S]),_=d.useMemo((()=>({v7_relativeSplatPath:s.future.v7_relativeSplatPath})),[s.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(Ze.Provider,{value:E},d.createElement(Je.Provider,{value:n},d.createElement(Tt.Provider,{value:g.current},d.createElement(Pt.Provider,{value:l},d.createElement(_t,{basename:S,location:n.location,navigationType:n.historyAction,navigator:w,future:_},n.initialized||s.future.v7_partialHydration?d.createElement(Ft,{routes:s.routes,future:s.future,state:n}):t))))),null)}const Ft=d.memo(zt);function zt(e){let{routes:t,future:s,state:r}=e;return lt(t,void 0,r,s)}const Ut="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,Bt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qt=d.forwardRef((function(e,t){let s,{onClick:r,relative:n,reloadDocument:a,replace:o,state:i,target:l,to:c,preventScrollReset:u,unstable_viewTransition:p}=e,m=function(e,t){if(null==e)return{};var s,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)s=a[r],t.indexOf(s)>=0||(n[s]=e[s]);return n}(e,Rt),{basename:h}=d.useContext(Qe),f=!1;if("string"==typeof c&&Bt.test(c)&&(s=c,Ut))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),s=B(t.pathname,h);t.origin===e.origin&&null!=s?c=s+t.search+t.hash:f=!0}catch(e){}let g=function(e,t){let{relative:s}=void 0===t?{}:t;st()||y(!1);let{basename:r,navigator:n}=d.useContext(Qe),{hash:a,pathname:o,search:i}=it(e,{relative:s}),l=o;return"/"!==r&&(l="/"===o?r:W([r,o])),n.createHref({pathname:l,search:i,hash:a})}(c,{relative:n}),v=function(e,t){let{target:s,replace:r,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i}=void 0===t?{}:t,l=at(),c=rt(),u=it(e,{relative:o});return d.useCallback((t=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(t,s)){t.preventDefault();let s=void 0!==r?r:x(c)===x(u);l(e,{replace:s,state:n,preventScrollReset:a,relative:o,unstable_viewTransition:i})}}),[c,l,u,r,n,s,e,a,o,i])}(c,{replace:o,state:i,target:l,preventScrollReset:u,relative:n,unstable_viewTransition:p});return d.createElement("a",kt({},m,{href:s||g,onClick:f||a?r:function(e){r&&r(e),e.defaultPrevented||v(e)},ref:t,target:l}))}));var $t,Ht;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})($t||($t={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Ht||(Ht={}));const Vt=window.wp.i18n,Wt=(e,t)=>{try{return(0,o.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},Gt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))}));var Kt=s(5890),Yt=s.n(Kt);const Zt=window.ReactJSXRuntime,Jt=({link:e})=>{const t=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO" academy, which is a clickable link. */ (0,Vt.__)("Want to learn SEO from Team Yoast? Check out our %1$s!","wordpress-seo"),"<link/>"),{link:(0,Zt.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Vt.__)("Learn SEO","wordpress-seo")}),(0,Zt.jsxs)("p",{children:[t,(0,Zt.jsx)("br",{}),(0,Vt.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,Zt.jsxs)(l.Link,{href:e,className:"yst-block yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ (0,Vt.__)("Check out %1$s","wordpress-seo"),"Yoast SEO academy"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(Gt,{className:"yst-w-3 yst-h-3 yst-mb-[1px] yst-icon-rtl yst-inline-block"})]})]})};Jt.propTypes={link:Yt().string.isRequired};const Qt=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))}));d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))})),Yt().string.isRequired,Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().string,Yt().string,Yt().string;const Xt=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Zt.jsx)(l.Button,{onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});Xt.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const es=({handleRefreshClick:e,supportLink:t})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Zt.jsx)(l.Button,{className:"yst-order-last",onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Zt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});es.propTypes={handleRefreshClick:Yt().func.isRequired,supportLink:Yt().string.isRequired};const ts=({error:e,children:t=null})=>(0,Zt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Zt.jsx)(l.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Vt.__)("Undefined error message.","wordpress-seo")}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});ts.propTypes={error:Yt().object.isRequired,children:Yt().node},ts.VerticalButtons=es,ts.HorizontalButtons=Xt;var ss;function rs(){return rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},rs.apply(this,arguments)}Yt().string,Yt().node.isRequired,Yt().node.isRequired,Yt().node,Yt().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}}));const ns=e=>d.createElement("svg",rs({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),ss||(ss=d.createElement("path",{fill:"#fff",d:"M500 0C223.9 0 0 223.9 0 500s223.9 500 500 500 500-223.9 500-500S776.1 0 500 0Zm87.2 412.4c0-21.9 4.3-40.2 13.1-54.4s24-27.1 45.9-38.2l10.1-4.9c17.8-9 22.4-16.7 22.4-26 0-11.1-9.5-19.1-25-19.1-18.3 0-32.2 9.5-41.8 28.9l-24.7-24.8c5.4-11.6 14.1-20.9 25.8-28.1a70.8 70.8 0 0 1 38.9-11.1c17.8 0 33.3 4.6 45.9 14.2s19.4 22.7 19.4 39.4c0 26.6-15 42.9-43.1 57.3l-15.7 8c-16.8 8.5-25.1 16-27.4 29.4h85.4v35.4H587.2Zm-82.1 373.3c-157.8 0-285.7-127.9-285.7-285.7s127.9-285.7 285.7-285.7a286.4 286.4 0 0 1 55.9 5.5l-55.9 116.9c-90 0-163.3 73.3-163.3 163.3s73.3 163.3 163.3 163.3a162.8 162.8 0 0 0 106.4-39.6l61.8 107.2a283.9 283.9 0 0 1-168.2 54.8ZM705 704.1l-70.7-122.5H492.9l70.7-122.4H705l70.7 122.4Z"}))),as=({to:e,idSuffix:t="",...s})=>{const r=(0,o.useMemo)((()=>(0,c.replace)((0,c.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,Zt.jsx)(l.SidebarNavigation.SubmenuItem,{as:qt,pathProp:"to",id:`${r}${t}`,to:e,...s})};as.propTypes={to:Yt().string.isRequired,idSuffix:Yt().string};const os=({href:e,children:t=null,...s})=>(0,Zt.jsxs)(l.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]});os.propTypes={href:Yt().string.isRequired,children:Yt().node};const is=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))})),ls=[(0,Vt.__)("AI tools included","wordpress-seo"),(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO academy". */ (0,Vt.__)("%1$s access","wordpress-seo"),"Yoast SEO academy"),(0,Vt.__)("24/7 support","wordpress-seo")],cs=[(0,Vt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Vt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Vt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Vt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Vt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Vt.__)("Access to friendly help when you need it, day or night","wordpress-seo")],ds=(e=!1)=>e?ls:cs,us=(e=!1)=>{if(e)return ls;const t=[...cs];return t[1]=(0,Vt.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var ps,ms,hs;function fs(){return fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},fs.apply(this,arguments)}const ys=e=>d.createElement("svg",fs({xmlns:"http://www.w3.org/2000/svg",id:"star-rating-half_svg__Layer_1","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),ps||(ps=d.createElement("defs",null,d.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),ms||(ms=d.createElement("path",{d:"M250 392.04 98.15 471.87l29-169.09L4.3 183.03l169.77-24.67L250 4.52l75.93 153.84 169.77 24.67-122.85 119.75 29 169.09L250 392.04z",className:"star-rating-half_svg__cls-1"})),hs||(hs=d.createElement("path",{d:"m250 9.04 73.67 149.27.93 1.88 2.08.3 164.72 23.94-119.19 116.19-1.51 1.47.36 2.07 28.14 164.06-147.34-77.46-1.86-1-1.86 1-147.34 77.46 28.14-164.06.36-2.07-1.51-1.47L8.6 184.43l164.72-23.9 2.08-.3.93-1.88L250 9.04m0-9-77.25 156.49L0 181.64l125 121.89-29.51 172L250 394.3l154.51 81.23-29.51-172 125-121.89-172.75-25.11L250 0Z",className:"star-rating-half_svg__cls-1"})),d.createElement("path",{d:"m500 181.64-172.75-25.11L250 0v394.3l154.51 81.23L375 303.48l125-121.84z",style:{fill:"#f3f4f6"}}));function gs(){return gs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},gs.apply(this,arguments)}const vs=e=>d.createElement("svg",gs({xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 500 475.53"},e),d.createElement("path",{d:"m250 0 77.25 156.53L500 181.64 375 303.48l29.51 172.05L250 394.3 95.49 475.53 125 303.48 0 181.64l172.75-25.11L250 0z",style:{fill:"#fbbf24"}}));var bs,xs,ws;function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Ss.apply(this,arguments)}const Es=e=>d.createElement("svg",Ss({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),bs||(bs=d.createElement("g",{clipPath:"url(#yoast-premium-logo-new_svg__a)"},d.createElement("path",{fill:"url(#yoast-premium-logo-new_svg__b)",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#6C2548",d:"m56.016.125-36.06 63.75H64v-53.76c0-4.88-3.414-8.96-7.984-9.987",opacity:.35}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#CD82AB",d:"M57.402 58.086H43.888v1.197h13.514v-1.197ZM53.75 53.366l-3.103-5.76v.004l-.004-.004-3.104 5.76-4.777-3.42 1.126 7.702h13.514l1.126-7.702-4.777 3.42Z"}))),xs||(xs=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),ws||(ws=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-premium-logo-new_svg__b",x1:-2.912,x2:68.509,y1:25.843,y2:38.438,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#5D237A"}),d.createElement("stop",{offset:.08,stopColor:"#702175"}),d.createElement("stop",{offset:.22,stopColor:"#872070"}),d.createElement("stop",{offset:.36,stopColor:"#981E6C"}),d.createElement("stop",{offset:.51,stopColor:"#A21E69"}),d.createElement("stop",{offset:.7,stopColor:"#A61E69"})),d.createElement("clipPath",{id:"yoast-premium-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"})))));var _s,js,Cs;function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ks.apply(this,arguments)}const Rs=e=>d.createElement("svg",ks({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),_s||(_s=d.createElement("g",{clipPath:"url(#woo-seo-logo-new_svg__a)"},d.createElement("path",{fill:"#0E1E65",d:"M64 64H10.24C4.586 64 0 59.414 0 53.76V10.24C0 4.586 4.586 0 10.24 0h43.52C59.414 0 64 4.586 64 10.24V64Z"}),d.createElement("path",{fill:"#0075B3",d:"M56.016.253 19.956 64H64V10.24c0-4.88-3.414-8.96-7.984-9.987Z"}),d.createElement("path",{fill:"#fff",d:"M9.523 43.174v4.468c2.765-.116 4.928-1.024 6.759-2.88 1.83-1.856 3.507-4.864 5.107-9.332L33.242 3.686h-5.735L17.96 30.208l-4.736-14.874H7.975l6.963 17.895a7.352 7.352 0 0 1 0 5.35c-.704 1.818-1.971 3.955-5.415 4.595Z"}),d.createElement("path",{fill:"#9FDA4F",d:"M53.274 5.11c-5.99-3.382-13.59-1.27-16.976 4.72-3.386 5.99-1.27 13.59 4.72 16.976 5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#FEC228",d:"M37.731 32.608s-.012-.006-.019-.013c-.006 0-.01-.006-.016-.01a8.134 8.134 0 0 0-11.091 3.085 8.145 8.145 0 0 0 3.104 11.108 8.139 8.139 0 0 0 11.075-3.095 8.14 8.14 0 0 0-3.05-11.072"}),d.createElement("path",{fill:"#FF4E47",d:"M28.454 57.61a4.89 4.89 0 0 0-2.477-4.256 4.863 4.863 0 0 0-2.4-.634c-2.69 0-4.892 2.18-4.892 4.883a4.882 4.882 0 0 0 4.883 4.893 4.882 4.882 0 0 0 4.893-4.883"}),d.createElement("path",{fill:"#77B227",d:"M53.274 5.11 41.018 26.806c5.99 3.386 13.59 1.27 16.976-4.72 3.382-5.99 1.27-13.59-4.72-16.976Z"}),d.createElement("path",{fill:"#F49A00",d:"m37.696 32.586-8.01 14.179a8.145 8.145 0 0 0 11.095-3.085 8.144 8.144 0 0 0-3.085-11.094Z"}),d.createElement("path",{fill:"#ED261F",d:"m25.971 53.35-4.806 8.51a4.882 4.882 0 0 0 6.656-1.854 4.882 4.882 0 0 0-1.853-6.656"}),d.createElement("path",{fill:"#A1CCE3",d:"M58.102 46.806a1.26 1.26 0 0 0-1.219.938l-.157.582a40.97 40.97 0 0 0-10.857 1.261c-.013 0-.023.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.86c.083.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.011h10.592a.507.507 0 0 0 .506-.505c0-1.149-.775-2.15-1.888-2.442L57.862 48a.25.25 0 0 1 .243-.186h.932a.507.507 0 0 0 0-1.01h-.931l-.004.002ZM57.018 59.92a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),js||(js=d.createElement("path",{stroke:"#fff",d:"M10 .5h44a9.5 9.5 0 0 1 9.5 9.5v53.5H10A9.5 9.5 0 0 1 .5 54V10A9.5 9.5 0 0 1 10 .5Z"})),Cs||(Cs=d.createElement("defs",null,d.createElement("clipPath",{id:"woo-seo-logo-new_svg__a"},d.createElement("path",{fill:"#fff",d:"M0 10C0 4.477 4.477 0 10 0h44c5.523 0 10 4.477 10 10v54H10C4.477 64 0 59.523 0 54V10Z"}))))),Os=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"}))}));var Ns=s(4184),Ps=s.n(Ns);const Ts=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const n=r?us:ds,a=(0,o.useMemo)((()=>r?(0,Vt.__)("SEO that scales with your product catalog.","wordpress-seo"):(0,Vt.__)("Now with Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")),[r]);let i=(0,Vt.__)("Buy now","wordpress-seo");const c=Wt(r?(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %1$s and %2$s expand to a span wrap to avoid linebreaks. %3$s expands to "Yoast SEO Premium". */ (0,Vt.__)("%1$s%2$s %3$s","wordpress-seo"),"<nowrap>","</nowrap>","Yoast SEO Premium"),{nowrap:(0,Zt.jsx)("span",{className:"yst-whitespace-nowrap"})}),d=s("black-friday-promotion");return d&&(i=(0,Vt.__)("Buy now for 30% off","wordpress-seo")),(0,Zt.jsxs)("div",{className:Ps()("yst-p-6 yst-rounded-lg yst-text-white yst-shadow",r?"yst-bg-woo-dark":"yst-bg-primary-500"),children:[(0,Zt.jsx)("figure",{className:"yst-logo-square yst-w-16 yst-h-16 yst-mx-auto yst-overflow-hidden yst-relative yst-z-10 yst-mt-[-2.6rem]",children:r?(0,Zt.jsx)(Rs,{}):(0,Zt.jsx)(Es,{})}),d&&(0,Zt.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,Zt.jsx)("div",{className:"sidebar__sale_banner",children:(0,Zt.jsx)("span",{className:"banner_text",children:(0,Vt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,Zt.jsx)(l.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white",children:c}),(0,Zt.jsx)("p",{className:"yst-mt-2 yst-font-medium",children:a}),(0,Zt.jsx)("ul",{className:"yst-list-outside yst-text-white yst-mt-2",children:n(!0).map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,Zt.jsx)(Os,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,Zt.jsx)("span",{children:e})]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:e,target:"_blank",rel:"noopener",className:"yst-flex yst-justify-center yst-gap-2 yst-mt-4 focus:yst-ring-offset-primary-500",...t,children:[(0,Zt.jsx)("span",{children:i}),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]}),(0,Zt.jsx)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-normal yst-leading-5 yst-italic yst-mt-2",children:(0,Vt.__)("30-day money back guarantee","wordpress-seo")}),(0,Zt.jsx)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,Zt.jsx)("a",{className:"yst-block yst-mt-4 yst-no-underline",href:"https://www.g2.com/products/yoast-yoast/reviews",target:"_blank",rel:"noopener noreferrer",children:(0,Zt.jsxs)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center",children:[(0,Zt.jsx)(ns,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsxs)("span",{className:"yst-flex yst-gap-1",children:[(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(vs,{className:"yst-w-5 yst-h-5"}),(0,Zt.jsx)(ys,{className:"yst-w-5 yst-h-5"})]}),(0,Zt.jsx)("span",{className:"yst-text-sm yst-font-semibold yst-text-white",children:"4.6 / 5"})]})})]})};Ts.propTypes={link:Yt().string.isRequired,linkProps:Yt().object.isRequired,isPromotionActive:Yt().func.isRequired};const Ls=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))}));var Ms;function As(){return As=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},As.apply(this,arguments)}const Is=e=>d.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ms||(Ms=d.createElement("path",{fill:"#CD82AB",d:"M10.989 6.74 7.885.98v.002L7.882.98 4.778 6.74 0 3.32l1.126 7.702H14.64l1.126-7.703L10.99 6.74Z"})));var Ds;function Fs(){return Fs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Fs.apply(this,arguments)}const zs=e=>d.createElement("svg",Fs({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),Ds||(Ds=d.createElement("path",{fill:"#0075B3",d:"M12.613.445a1.26 1.26 0 0 0-1.22.937l-.156.583A40.97 40.97 0 0 0 .379 3.225c-.013 0-.022.007-.035.01a.503.503 0 0 0-.317.64 40.344 40.344 0 0 0 1.99 4.861c.084.173.26.282.455.282h7.542c.64 0 1.213.403 1.427 1.008h-10a.507.507 0 0 0 0 1.01h10.592a.507.507 0 0 0 .506-.505c0-1.149-.774-2.15-1.888-2.441l1.722-6.452a.25.25 0 0 1 .243-.185h.931a.507.507 0 0 0 0-1.011h-.931l-.003.003Zm-1.085 13.114a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Zm-8.573 0a1.008 1.008 0 1 1 0-2.016 1.008 1.008 0 0 1 0 2.016Z"}))),Us=({premiumLink:e,premiumUpsellConfig:t={},isPromotionActive:s,isWooCommerceActive:r})=>{const n=s("black-friday-promotion"),a=r?us:ds,o=[...r?["Yoast SEO Premium"]:[],"Local SEO","News SEO","Video SEO",(0,Vt.__)("Google Docs add-on (1 seat)","wordpress-seo")],i=r?Ps()("yst-bg-woo-light","yst-text-[#006499]"):Ps()("yst-bg-primary-500","yst-text-primary-500");let c=r?(0,Vt.sprintf)(/* translators: %s expands to "Yoast WooCommerce SEO" */ (0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast WooCommerce SEO"):(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Vt.__)("Explore %s now!","wordpress-seo"),"Yoast SEO Premium");return n&&(c=(0,Vt.__)("Get 30% off now!","wordpress-seo")),(0,Zt.jsxs)(l.Paper,{as:"div",className:"yst-max-w-4xl",children:[n&&(0,Zt.jsxs)("div",{className:"yst-rounded-t-lg yst-h-9 yst-flex yst-justify-between yst-items-center yst-bg-black yst-text-amber-300 yst-px-4 yst-text-lg yst-border-b yst-border-amber-300 yst-border-solid yst-font-medium",children:[(0,Zt.jsx)("div",{children:(0,Vt.__)("30% OFF","wordpress-seo")}),(0,Zt.jsx)("div",{children:(0,Vt.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,Zt.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-items-center",children:r?(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast WooCommerce SEO")}),(0,Zt.jsx)(zs,{className:"yst-ml-2 yst-w-4 yst-h-3"})]}):(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-xl "+(r?"yst-text-woo-light":"yst-text-primary-500 "),children:(0,Vt.sprintf)(/* translators: %s expands to "Yoast SEO" Premium */ (0,Vt.__)("Upgrade to %s","wordpress-seo"),"Yoast SEO Premium")}),(0,Zt.jsx)(Is,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,Zt.jsxs)("div",{className:"yst-font-medium yst-text-slate-800 yst-text-xs yst-leading-7 yst-mt-2",children:[(0,Zt.jsx)("span",{className:"yst-mr-2",children:(0,Vt.__)("Now includes:","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-inline-block",children:o.map(((e,t)=>(0,Zt.jsx)(l.Badge,{size:"small",variant:"plain",className:Ps()("yst-mr-2 yst-bg-opacity-15",i),children:e},`now-including-${t}`)))})]}),(0,Zt.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-gap-y-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-4",children:a().map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-6 sm:yst-max-w-sm",target:"_blank",rel:"noopener",...t,children:[c,(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Us.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const Bs=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:n})=>(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 min-[783px]:yst-grid-cols-1 lg:yst-grid-cols-2 xl:yst-grid-cols-1 yst-gap-4",children:[(0,Zt.jsx)(Ts,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:n}),(0,Zt.jsx)(Jt,{link:s})]});Bs.propTypes={premiumLink:Yt().string.isRequired,premiumUpsellConfig:Yt().object.isRequired,academyLink:Yt().string.isRequired,isPromotionActive:Yt().func.isRequired,isWooCommerceActive:Yt().bool.isRequired};const qs=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"}))})),$s=({isOpen:e,onClose:t=c.noop,onDiscard:s=c.noop,title:r,description:n,dismissLabel:a,discardLabel:o})=>{const i=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{closeButtonScreenReaderText:(0,Vt.__)("Close","wordpress-seo"),children:[(0,Zt.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,Zt.jsx)("div",{className:"yst-mx-auto yst-flex-shrink-0 yst-flex yst-items-center yst-justify-center yst-h-12 yst-w-12 yst-rounded-full yst-bg-red-100 sm:yst-mx-0 sm:yst-h-10 sm:yst-w-10",children:(0,Zt.jsx)(qs,{className:"yst-h-6 yst-w-6 yst-text-red-600",...i})}),(0,Zt.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,Zt.jsx)(l.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,Zt.jsx)(l.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:n})]})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,Zt.jsx)(l.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:o}),(0,Zt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:a})]})]})})};$s.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func,onDiscard:Yt().func,title:Yt().string.isRequired,description:Yt().string.isRequired,dismissLabel:Yt().string.isRequired,discardLabel:Yt().string.isRequired};const Hs=window.yoast.reactHelmet,Vs="request",Ws="success",Gs="error",Ks="loading";var Ys,Zs;function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Js.apply(this,arguments)}Yt().string.isRequired,Yt().shape({src:Yt().string.isRequired,width:Yt().string,height:Yt().string}).isRequired,Yt().shape({value:Yt().bool.isRequired,status:Yt().string.isRequired,set:Yt().func.isRequired}).isRequired,Yt().bool;const Qs=e=>d.createElement("svg",Js({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),Ys||(Ys=d.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),Zs||(Zs=d.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),Xs=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))}));var er,tr,sr,rr,nr,ar,or,ir,lr,cr,dr,ur,pr,mr,hr,fr,yr,gr,vr,br,xr,wr,Sr,Er,_r,jr,Cr,kr,Rr,Or,Nr,Pr,Tr,Lr,Mr,Ar,Ir,Dr,Fr,zr,Ur,Br,qr,$r,Hr,Vr,Wr,Gr,Kr,Yr,Zr,Jr,Qr,Xr,en,tn,sn,rn,nn,an,on,ln,cn,dn,un,pn,mn,hn,fn;function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},yn.apply(this,arguments)}const gn=e=>d.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),er||(er=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__a"},d.createElement("stop",{offset:0,stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610b39"}),d.createElement("stop",{offset:.15,stopColor:"#79164b"}),d.createElement("stop",{offset:.29,stopColor:"#8c1e59"}),d.createElement("stop",{offset:.44,stopColor:"#9a2463"}),d.createElement("stop",{offset:.63,stopColor:"#a22768"}),d.createElement("stop",{offset:1,stopColor:"#a4286a"}))),tr||(tr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__b",x1:49.556,x2:49.556,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"})),sr||(sr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__c",x1:82.801,x2:82.801,y1:38.819,y2:20.113,gradientUnits:"userSpaceOnUse"})),rr||(rr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__d",x1:62.504,x2:62.504,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"})),nr||(nr=d.createElement("linearGradient",{xlinkHref:"#yoast-connect-google-site-kit_svg__a",id:"yoast-connect-google-site-kit_svg__e",x1:73.951,x2:73.951,y1:36.276,y2:23.046,gradientUnits:"userSpaceOnUse"})),ar||(ar=d.createElement("linearGradient",{id:"yoast-connect-google-site-kit_svg__f",x1:25.237,x2:25.237,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{offset:0,stopColor:"#77b227"}),d.createElement("stop",{offset:.47,stopColor:"#75b027"}),d.createElement("stop",{offset:.64,stopColor:"#6eab27"}),d.createElement("stop",{offset:.75,stopColor:"#63a027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3c8028"}),d.createElement("stop",{offset:1,stopColor:"#246b29"}))),or||(or=d.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},d.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),ir||(ir=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__b)",fillRule:"evenodd",d:"M36.765 29.643c0-3.42 1.83-6.49 6.405-6.49 4.402 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624zm8.432-2.74c-1.174-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.316.039 3.092-5.067 2.027-6.562z",clipRule:"evenodd"})),lr||(lr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__c)",d:"M80.278 33.094v-6.631h2.368v-2.874h-2.368v-3.476h-3.66v3.476h-1.856v2.876h1.857v6.258c0 3.553 2.477 5.665 5.092 6.102l1.092-2.948c-1.524-.194-2.51-1.333-2.525-2.783z"})),cr||(cr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__d)",fillRule:"evenodd",d:"M61.81 27.062v4.981c0 .7.196 1.67.426 2.803.088.436.182.897.27 1.376h-3.523l-.611-1.472c-4.118 2.994-8.053.974-8.053-2.168 0-4.131 4.01-4.632 7.777-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007l-.034-.04-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.143-1.555 10.46 2.47.019.174.028.347.03.52zm-6.52 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284z",clipRule:"evenodd"})),dr||(dr=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__e)",d:"M67.439 26.794c0-1.227 1.966-1.8 5.064-.386l1.072-2.605c-4.17-1.262-9.866-1.371-9.904 2.991-.017 2.091 1.324 3.216 3.255 3.934 1.337.497 3.268.754 3.262 1.82-.007 1.391-3 1.604-5.725-.268l-1.101 2.823c3.716 1.85 10.627 1.902 10.59-2.734-.03-4.583-6.513-3.798-6.513-5.575z"})),ur||(ur=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit_svg__f)",d:"m35.218 16.875-5.305 14.734-2.54-7.956h-3.779l4.23 10.866a3.956 3.956 0 0 1 0 2.877c-.474 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924z"})),pr||(pr=d.createElement("path",{fill:"#f0ecf0",d:"M124.088 57.357c15.427 0 27.934-12.506 27.934-27.933S139.515 1.49 124.088 1.49 96.155 13.997 96.155 29.424s12.506 27.933 27.933 27.933z"})),mr||(mr=d.createElement("path",{fill:"#9e005d",d:"M122.68 23.422c5.075-5.662 3.282-.196 13.081-2.26 2.792-.587 7.802-1.905 9.067.833 1.427 3.092 4.014 3.471 3.211 5.47-1.412 3.512-6.46 4.52-7.887.556-1.819-1.232-8.98 2.24-11.167 2.775-.813.198-.868-2.038-1.675-2.168-.529-.085-.462-.17-.939-.575-4.613-3.918-4.904-3.277-5.22-4.126.482-.115.95-.396 1.531-.503z"})),hr||(hr=d.createElement("path",{fill:"#6c2548",d:"M145.465 25.27c-1.744-.556-3.859.788-3.015 2.668.204.456 1.233 2.392 1.665 2.536 1.633.552 5.651-2.227 1.35-5.204z"})),fr||(fr=d.createElement("path",{fill:"#ffc399",d:"M145.972 26.652c-.452-.226-2.526.313-2.3 1.188.281 1.084.758 1.655 1.395 1.998 1.627.875 1.365 2.531 3.684 2.5 1.12-.015 4.022-1.557 4.118-.456.157 1.823.464 3.564.792 3.17.792-.951 1.109-1.03 1.188-4.2.021-.887-2.14-1.506-3.013-2.854-.473-.733-2.932-.714-5.866-1.348z"})),yr||(yr=d.createElement("path",{fill:"#be1e2d",d:"M109.348 16.345c-2.102-1.797-8.454 4.23-7.974 6.137.479-.51 1.186-1.505 1.973-1.316-2.719 1.838-3.191 6.484-1.784 9.259.158-.735.439-1.525.897-2.123-.778 3.037.466 8.256 4.271 10.873-.26-1.915-1.201-5.028.477-6.267 2.485-1.836 5.651-2.398 7.153-5.43 3.716-7.506-7.675-12.913-5.013-11.135z"})),gr||(gr=d.createElement("path",{fill:"#9e005d",d:"M111.503 27.227c-1.65.136-7.152 11.633.475 20.362 1.067 1.222 2.372 3.568 3.92 3.78 3.256.442 11.848-1.813 15.059-3.189 12.146-5.202 1.267-10.842-.308-16.792-1.421-5.366-1.725-8.762-7.928-8.997-2.92-.11-11.15 1.768-11.95 5.058-.224.108-.109-.08.732-.224z"})),vr||(vr=d.createElement("path",{fill:"#6c2548",d:"M123.196 23.817c3.828 1.233 6.256 5.375 7.755 8.771-1.38-4.316-2.059-8.262-7.932-8.95-.013-.072.419-.694.177.18z"})),br||(br=d.createElement("path",{fill:"#6c2548",d:"M127.718 23.362c1.071.893 1.961 2.794 2.438 3.984.522 1.306.088 3.329.571 4.638-1.292-3.232-1.307-5.14-3.007-8.622z"})),xr||(xr=d.createElement("path",{fill:"#ffc399",d:"M125.772 33.468c-1.058.375-2.898.677-4.103 1.248-2.187 1.037-4.936-1.725-7.313-1.188-.858.194-3.845-.873-4.082-1.942-.293-1.325-.745-1.352-.078-2.22 2.619-3.402 2.815-1.566 2.932-6.896.019-.886-.2-1.312.079-2.061.279-.75.21.017 1.09-.143.879-.16 2.996-1.05 3.869-.652 1.533.699.513 3.972 1.61 5.107 1.139 1.177 3.841-.028 4.989 1.128 1.439 1.45 1.324 6.848 1.005 7.621z"})),wr||(wr=d.createElement("path",{fill:"#e57c57",d:"M123.021 27.88c.285-.57.221-1.564-.026-2.586-1.175-.034-2.504.164-3.217-.575-.65-.671-.558-2.085-.692-3.277a3.502 3.502 0 0 1-.607-.122c-1.263-.372-2.67-.835-4.069-1.077-.039.008-.077.017-.111.023-.405.075-.605-.057-.733-.143l-.213-.017c-.04.05-.085.141-.144.303-.271.728-.073 1.156-.079 1.995 1.386 3.614 6.644 11.98 9.895 5.477z"})),Sr||(Sr=d.createElement("path",{fill:"#f1f2f2",d:"M116.06 33.648c7.293 3.488 11.969 5.47 13.635 9.989-1.031-4.757-.893-8.622-4.459-15.161.675 7.425-8.761 5.37-9.176 5.172z"})),Er||(Er=d.createElement("path",{fill:"#6c2548",d:"M129.697 43.002c.157-3.884-1.057-18.564-4.44-20.057-1.056-.466-10.726 1.174-7.768 1.348 4.625.27 7.293 2.775 7.928 4.28.792 1.11 3.081 8.599 4.28 14.427z"})),_r||(_r=d.createElement("path",{fill:"#9e005d",d:"M129.616 43.001c.157-3.884-1.93-18.723-5.311-20.214-1.056-.467-9.776 1.333-6.819 1.505 4.626.27 7.294 2.775 7.928 4.28.792 1.11 3.003 8.599 4.202 14.427z"})),jr||(jr=d.createElement("path",{fill:"#ffc399",d:"M126.288 12.877c.555 2.457-.397 1.902.078 3.488.375 1.25.729 2.066.635 3.488-.241 3.656-2.983 6.876-3.086 6.978-1.45 1.45-3.132 1.295-5.476.077-4.364-2.266-6.898-4.994-7.532-11.823-.471-5.072 3.763-8.847 9.014-8.313 3.249.332 5.449 2.04 6.367 6.103z"})),Cr||(Cr=d.createElement("path",{fill:"#be1e2d",d:"M114.461 9.389c3.944-.179 3.02 1.925 6.539 2.973 2.794.832 5.707-1.012 5.173 3.745-.475 4.212 9.401-4.116 1.46-7.591-1.269-.556-1.137-1.414-2.378-3.013-2.598-3.343-11.337-7.055-15.061-.873-.944 1.567 2.657 4.101 4.265 4.757z"})),kr||(kr=d.createElement("path",{fill:"#be1e2d",d:"M114.282 9.508c.912 3.597-.161 4.23-.653 5.47-.541 1.364-.803 2.65-1.487 3.925-.992-2.07-2.184-.317-5.276-4.36-5.537-7.24 9.782-16.915 7.416-5.035z"})),Rr||(Rr=d.createElement("path",{fill:"#ffc399",d:"M112.336 19.497c.617-1.633-4.029-4.43-3.599-1.043.209 1.642 1.516 2.574 2.913 3.152 2.294.945 1.195-1.676.569-3.058l.119.952z"})),Or||(Or=d.createElement("path",{fill:"#be1e2d",d:"M113.168 14.026c.309 1.25-.03 6.814 1.785 8.997-3.152-1.714-2.37-5.13-1.785-8.997z"})),Nr||(Nr=d.createElement("path",{fill:"#be1e2d",d:"M112.691 15.573c-.728.415-1.441 3.388-.323 5.705.006-.021.483-4.91.323-5.705z"})),Pr||(Pr=d.createElement("path",{fill:"#9e005d",d:"M117.012 34.121c-2.877-1.74-5.509-2.068-4.725-7.2.867-1.004.747-1.897.807-3.383-1.109.396-4.086 1.948-5.434 2.655-1.985 1.04-4.361 3.41-2.458 5.39.703.73-1.758 1.923.937 6.759 1.506-2.617 2.711-4.855 3.661-4.934 3.33-.079 4.431 1.667 7.372 2.378 7.214 1.744 11.654 6.501 12.525 8.164.036-1.051-1.269-4.914-12.683-9.829z"})),Tr||(Tr=d.createElement("path",{fill:"#9e005d",d:"M108.45 34.202c-8.258 11.429 2.709 12.432 5.351 22.998.119.48.656 1.17 1.503 1.322 5.051.903 10.884-1.744 15.862-6.92 1.408-1.463.247-4.902-1.546-5.648-2.319-1.546-7.378 4.023-13.006 2.992-.677-1.02-1.505-13.477-8.164-14.744z"})),Lr||(Lr=d.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),Mr||(Mr=d.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),Ar||(Ar=d.createElement("path",{fill:"#66a7ab",d:"M150.965 40.959c2.473.277 3.211 6.54 2.498 9.037-.119-.12-3.567-.833-3.686-.713-1.718-1.964-.992-8.57 1.188-8.324z"})),Ir||(Ir=d.createElement("path",{fill:"#467d7f",d:"M154.983 40.783s.153-1.902 0-2.02c-.153-.12-6.641-.655-6.641-.655-.776 1.706-.431 1.282 6.641 2.675z"})),Dr||(Dr=d.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),Fr||(Fr=d.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),zr||(zr=d.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Ur||(Ur=d.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Br||(Br=d.createElement("path",{fill:"#a0c9cb",d:"M155.648 39.988c0 1.052-1.046 1.052-1.046 0s1.046-1.052 1.046 0z"})),qr||(qr=d.createElement("path",{fill:"#a0c9cb",d:"M147.639 38.502c1.501-.95.058-.881 7.713.317-1.38 1.189-.053 1.07-7.713-.317z"})),$r||($r=d.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Hr||(Hr=d.createElement("path",{fill:"#6b1523",d:"M117.374 55.11c1.071-.299.06-1.962.713-4.862-1.972 4.042-1.699 5.134-.713 4.862z"})),Vr||(Vr=d.createElement("path",{fill:"#6b1523",d:"M119.989 48.095c.059-.594-2.913-8.918-9.097-9.276 3.448.12 10.494 9.176 8.452 9.395-1.853.535-6.076 2.32-4.41 3.925 1.307.773 1.605-3.152 4.627-3.895 4.567.882 7.438-3.94 10.415-1.874-2.809-3.503-5.362 2.14-9.989 1.725z"})),Wr||(Wr=d.createElement("path",{fill:"#6c2548",d:"M127.793 46.647c.309-.639 1.427-.396 2.336-1.56.449-.576.948-.203 1.687-.222 1.541-.043 2.544 2.996 1.737 4.15-.445.635-2.745 1.297-3.62 1.518-1.771.445-3.511-3.036-2.14-3.884z"})),Gr||(Gr=d.createElement("path",{fill:"#c44c31",d:"M123.081 15.099c-.993 1.109 1.35 4.64.988 6.262-.284 1.27-1.827.705-2.617-.157.694.027 1.78.445 1.982.078.76-1.384-1.539-4.914-.353-6.183z"})),Kr||(Kr=d.createElement("path",{fill:"#be1e2d",d:"M124.031 23.074c-2.5.504-4.483.504-5.69-.194.579.55 1.976 1.906 3.268 1.887 1.293-.02 1.235-.569 1.355-1.11.076-.206.528-.326 1.064-.586z"})),Yr||(Yr=d.createElement("path",{fill:"#e57c57",d:"M117.389 23.045c0-.616.545-.83 1.075-.93-.441.295-.092.88-.098.904-.481-.272-.62-.174-.977.026z"})),Zr||(Zr=d.createElement("path",{fill:"#35602c",d:"m150.614 40.5-2.973-.396.428 8.839 2.736-.024c2.241-.23 2.479-8.077-.191-8.42z"})),Jr||(Jr=d.createElement("path",{fill:"#569d48",d:"M149.867 44.427c.285 5.88-3.738 6.075-4.023.194-.285-5.88 3.737-6.075 4.023-.194z"})),Qr||(Qr=d.createElement("path",{fill:"#e57c57",d:"M136.434 42.288c5.055-.658 5.866-2.932 6.341-1.11.315.786-1.069 1.442-1.903 1.755-.443.164-1.044-.055-1.551-.104-1.12-.109-1.822.562-2.885.65-.123-.631.296-1.046 0-1.189z"})),Xr||(Xr=d.createElement("path",{fill:"#35602c",d:"M139.873 43.184c.168-.905 5.647-1.784 7.051-1.867 1.803-.107 2.161 6.066.475 6.184-2.362.164-4.487.357-6.872-.392-1.388-.435-1.904-.588-1.927-2.106-.017-1.12.749-2.068 1.273-1.819z"})),en||(en=d.createElement("g",{fill:"#ffc399"},d.createElement("path",{d:"M131.123 45.597c3.759-1.073 7.006-4.783 7.689-4.023 1.091 1.212-.543 2.16-1.06 3.489-.698 1.797 1.054-.037-.403 1.784-.634.792-1.961.179-2.793.179-.556.157-1.863 1.328-2.498 1.486-1.031-.158-2.364-2.042-.937-2.913z"}),d.createElement("path",{d:"M138.898 41.243c3.239.682 4.923-.098 5.189 1.152.181.856 1.606 3.358 1.559 4.323-1.725.462-2.504-2.683-3.13-3.156-.426-.321-2.909.188-3.733.077-.824-.111-1.378-2.191.115-2.396z"}),d.createElement("path",{d:"M141.004 43.042c.573 1.983 2.144 3.145 1.51 3.79-.848.863-1.691 1.404-2.013 1.263-1.976-.87.322-1.169-.004-1.496-.326-.328-1.995-2.12-2.34-2.198.24-.924-.094-1.263-.303-2.212.211.07 2.865.35 3.152.853z"}),d.createElement("path",{d:"M137.707 42.446c.958-.115 1.457 1.48 1.546 1.784.166.567 1.348 1.806 1.427 2.379.179 1.277-1.071 1.188-1.755 1.456-.564.298-1.991-.743-.683-1.576-.935-.019-3.073-1.497-2.694-2.016.241-.004 1.148-2.383 2.157-2.025z"}),d.createElement("path",{d:"M137.599 43.08c.556 1.11 1.03 3.964.873 4.28-.271.544-.865 1.07-1.51 1.34s-1.026-.943-1.978-1.893c.792-.713 1.691-.128 1.665.239-.03.438.079-.318.396-.239-.238-.317-.884-1.365-1.188-1.982-.434-.88.635-2.536 1.744-1.744zM143.91 28.315c.475 1.744-.187 2.5-.238 3.092-.085.99.758 1.205 1.348 1.901.873 1.031.792 2.22 1.505 2.775 1.983-.873.015-3.264-.193-3.786-.158-.396.034-2.875 2.016-3.032-1.348-1.665-3.249-2.22-4.44-.952z"}))),tn||(tn=d.createElement("path",{fill:"#6b1523",d:"M112.653 25.483c-1.903.93-5.883 2.474-6.737 4.518-.599 1.431 5.707 1.11 13.081 5.31-3.805-2.774-9.996-4.01-10.307-4.992-.106-.335 2.715-4.87 3.963-4.836zM105.279 31.507c.839 1.118 2.3 1.11 4.202 1.586-.878-.434-4.779.837-4.361 0 .157-.317-.167-.875.157-1.586z"})),sn||(sn=d.createElement("path",{fill:"#f1f2f2",d:"M116.341 17.639c.007-.03.462-.848 2.206-1.014.678-.064 1.896.509 1.795 1.169-1.007.43-1.888.675-4.001-.155z"})),rn||(rn=d.createElement("path",{fill:"#231f20",d:"M120.347 17.688c-.062-.337-.441-.754-.918-.767-.526-.015-1.035.55-1.044.897-.004.153.086.276.224.37.684.015 1.19-.162 1.733-.394a.422.422 0 0 0 .005-.106z"})),nn||(nn=d.createElement("path",{fill:"#231f20",d:"M120.368 17.667c-.102-.768-1.512-1.3-2.404-1.303-1.244 0-1.491 1.171-2.272.735.177.703 1.141.928 1.801.933-2.327-.695 2.14-2.302 2.875-.365z"})),an||(an=d.createElement("path",{fill:"#f1f2f2",d:"M123.27 17.549c.977.332 2.076-.19 2.44-.741.592-.899-1.629-2.066-2.44.74z"})),on||(on=d.createElement("path",{fill:"#231f20",d:"M124.226 17.238a.33.33 0 0 0 .122.373c.604-.115 1.132-.452 1.365-.803a.576.576 0 0 0 .093-.245c-.323-.585-1.245-.539-1.58.675z"})),ln||(ln=d.createElement("path",{fill:"#231f20",d:"M123.249 17.568c.092-.724.417-1.478 1.329-1.887 1.175-.528 1.537.92 1.938-.268-.147 1.467-.592 1.476-1.523 1.987 1.022-.356.958-1.906-.373-1.403-1.062.402-1.196 1.152-1.369 1.571z"})),cn||(cn=d.createElement("path",{fill:"#be1e2d",d:"M126.024 14.621c.517.586-.337-.17-1.304-.06-.321.039-.841.352-1.122.365.554-1.076 1.663-1.17 2.426-.305zM119.708 14.939c-3.103-.776-3.531.176-4.685 1.79 2.238-2.446 3.518-.587 5.132-1.94-.245.024-.473.103-.447.15z"})),dn||(dn=d.createElement("path",{fill:"#6b1523",d:"M106.375 37.808c.416-1.427 1.651-3.48 2.315-3.607 4.108-.792 14.097 5.034 17.246 5.866-5.053-1.248-12.544-5.41-17.122-4.876-.586.192-2.081 1.901-2.439 2.617z"})),un||(un=d.createElement("path",{fill:"#642243",d:"M140.501 28.713c-.421-1.256-1.179-2.587-.805-4.042.379-1.475 2.232-2.05 2.815-3.43-1.65-.713-1.58 1.923-2.468 2.349-.038-.782-.142-1.516-.129-2.324-1.54 2.028-.703 4.913.589 7.45zM127.184 21.222c7.849.713 7.253 7.135 12.485 6.303-5.471 1.426-7.017-6.303-12.485-6.303z"})),pn||(pn=d.createElement("path",{fill:"#c44c31",d:"M120.525 19.497c0 .236-.594.236-.594 0s.594-.237.594 0zM118.622 19.852c0 .236-.358.236-.358 0s.358-.236.358 0zM124.39 19.02c0 .316-.474.316-.474 0 0-.315.474-.315.474 0zM125.28 19.972c0 .237-.475.237-.475 0s.475-.236.475 0zM125.638 18.784c0 .236-.474.236-.474 0 0-.237.474-.237.474 0zM120.406 20.685c0 .236-.475.236-.475 0s.475-.236.475 0z"})),mn||(mn=d.createElement("path",{fill:"#569d48",d:"M136.975 46.802c-.364-.268-.53-.656-.498-1.16-4.862.762-12.996 10.236-26.102 8.07.919.613 1.743 1.082 2.706 1.382 10.638 1.337 19.676-7.331 23.896-8.292z"})),hn||(hn=d.createElement("path",{fill:"#5f6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074zm5.892 1.084c0 .339-.124.637-.364.877s-.529.364-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878zm-.355 3.22v9.327h-1.755v-9.328zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.778-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.538 2.367-.538 1.275 0 2.293.306 3.046.927.761.621 1.266 1.308 1.522 2.087l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53s-1.224.166-1.68.505c-.455.34-.679.77-.679 1.3 0 .504.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.439c.422 0 .778.15 1.067.44.291.289.439.645.439 1.067 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44zm-.05 1.937h2.234v10.362h-2.234zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756.439-.845 1.052-1.523 1.838-2.02s1.68-.754 2.682-.754c1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.714z"})),fn||(fn=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit_svg__g)",clipRule:"evenodd"},d.createElement("path",{fill:"#fbbc05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394z"}),d.createElement("path",{fill:"#ea4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.103z"}),d.createElement("path",{fill:"#34a853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268z"}),d.createElement("path",{fill:"#4285f4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.284 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753z"})))),vn=({isOpen:e,onClose:t,onGrantConsent:s=null,learnMoreLink:r=""})=>{const n=(0,l.useSvgAria)();return(0,Zt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Zt.jsxs)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,Zt.jsx)(l.Modal.CloseButton,{className:"yst-bg-transparent yst-text-gray-500 focus:yst-ring-offset-0",onClick:t,screenReaderText:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,Zt.jsx)(gn,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,Zt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Zt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Zt.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Vt.__)("Grant consent to connect with Site Kit by Google","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:[(0,Vt.__)("Give us permission to access your Site Kit data, allowing insights from tools like Google Analytics and Search Console to be displayed directly on your dashboard.","wordpress-seo")," ",(0,Zt.jsxs)(os,{className:"yst-no-underline yst-font-medium",variant:"primary",href:r,children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(Xs,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,Zt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,Zt.jsx)(l.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,Vt.__)("Grant consent","wordpress-seo")})}),(0,Zt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,Vt.__)("Close","wordpress-seo")})]})]})})};vn.propTypes={isOpen:Yt().bool.isRequired,onClose:Yt().func.isRequired,onGrantConsent:Yt().func,learnMoreLink:Yt().string},Yt().func.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired,Yt().string.isRequired;const bn=({userName:e,features:t,links:s,sitekitFeatureEnabled:r})=>{ /** * translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page. * %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page. **/ const n=(0,Vt.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. Get even more insights by enabling the ‘SEO analysis’ and the ‘Readability analysis’ in your %1$sSite features%2$s or your %3$suser profile settings%4$s.","wordpress-seo"),a=(0,Vt.__)("It looks like the ‘SEO analysis’ and the ‘Readability analysis’ are currently disabled in your %1$sSite features%2$s or your %3$suser profile settings%4$s. Enable these features to start seeing all the insights you need right here!","wordpress-seo"),o=r?n:a,i=r?(0,Vt.__)("Oops! You can’t see the overview of your SEO insights right now because you’re in a non-production environment.","wordpress-seo"):(0,Vt.__)("Oops! You can’t see the overview of your SEO scores and readability scores right now because you’re in a non-production environment.","wordpress-seo"); /** * translators: %1$s and %2$s expand to an opening and closing anchor tag, to the site features page. * %3$s and %4$s expand to an opening and closing anchor tag, to the user profile page. **/return(0,Zt.jsx)(l.Paper,{className:"yst-shadow-md",children:(0,Zt.jsxs)(l.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-4 yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{as:"h1",children:(0,Vt.sprintf)(/* translators: %s expands to the username */ (0,Vt.__)("Hi %s,","wordpress-seo"),e)}),(0,Zt.jsx)("p",{className:"yst-text-tiny",children:!t.indexables||t.seoAnalysis||t.readabilityAnalysis?Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s expand to an opening and closing anchor tag. */ (0,Vt.__)("Welcome to your dashboard! Check your content's SEO performance, readability, and overall strengths and opportunities. %1$sLearn more about the dashboard%2$s.","wordpress-seo"),"<link>","</link>"),{link:(0,Zt.jsx)(os,{href:s.dashboardLearnMore,children:" "})}):Wt((0,Vt.sprintf)(o,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,Zt.jsx)(l.Link,{href:"admin.php?page=wpseo_page_settings#/site-features",children:" "}),profilelink:(0,Zt.jsx)(l.Link,{href:"profile.php",children:" "})})}),!t.indexables&&(0,Zt.jsx)(l.Alert,{type:"info",children:i})]})})},xn=({widgetFactory:e,userName:t,features:s,links:r,sitekitFeatureEnabled:n,dataProvider:a})=>{const l=(0,o.useCallback)((()=>a.getSiteKitConfiguration()),[a]),c=(0,o.useCallback)((e=>a.subscribe(e)),[a]);return(0,o.useSyncExternalStore)(c,l),(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(bn,{userName:t,features:s,links:r,sitekitFeatureEnabled:n}),(0,Zt.jsx)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6",children:(0,Zt.jsx)(i.Dashboard,{widgetFactory:e})})]})};function wn(e,t){return e.get(function(e,t,s){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:s;throw new TypeError("Private element is not present on this object")}(e,t))}function Sn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,wn(t,e))}function En(e,t,s){return function(e,t,s){if(t.set)t.set.call(e,s);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=s}}(e,wn(t,e),s),s}function jn(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var Cn=new WeakMap,kn=new WeakMap,Rn=new WeakMap,On=new WeakMap,Nn=new WeakMap,Pn=new WeakMap,Tn=new WeakMap,Ln=new WeakMap;class Mn{constructor({contentTypes:e,userName:t,features:s,endpoints:r,headers:n,links:a,siteKitConfiguration:o}){jn(this,Cn,{writable:!0,value:void 0}),jn(this,kn,{writable:!0,value:void 0}),jn(this,Rn,{writable:!0,value:void 0}),jn(this,On,{writable:!0,value:void 0}),jn(this,Nn,{writable:!0,value:void 0}),jn(this,Pn,{writable:!0,value:void 0}),jn(this,Tn,{writable:!0,value:void 0}),jn(this,Ln,{writable:!0,value:new Set}),En(this,Cn,e),En(this,kn,t),En(this,Rn,s),En(this,On,r),En(this,Nn,n),En(this,Pn,a),En(this,Tn,o)}subscribe(e){return Sn(this,Ln).add(e),()=>Sn(this,Ln).delete(e)}notifySubscribers(){Sn(this,Ln).forEach((e=>e()))}getContentTypes(){return Sn(this,Cn)}getUserName(){return Sn(this,kn)}getStepsStatuses(){return[Sn(this,Tn).connectionStepsStatuses.isInstalled,Sn(this,Tn).connectionStepsStatuses.isActive,Sn(this,Tn).connectionStepsStatuses.isSetupCompleted,Sn(this,Tn).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=Sn(this,Rn))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=Sn(this,On))||void 0===t?void 0:t[e]}getHeaders(){return Sn(this,Nn)}getLink(e){var t;return null===(t=Sn(this,Pn))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return Sn(this,Tn)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex((e=>!e))}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,c.cloneDeep)(Sn(this,Tn));t.connectionStepsStatuses.isConsentGranted=e,En(this,Tn,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){En(this,Tn,{...Sn(this,Tn),isSetupWidgetDismissed:e}),this.notifySubscribers()}}function An(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var In=new WeakMap,Dn=new WeakMap,Fn=new WeakMap;class zn{constructor(e,t){An(this,In,{writable:!0,value:void 0}),An(this,Dn,{writable:!0,value:void 0}),An(this,Fn,{writable:!0,value:void 0}),En(this,In,e.data),En(this,Dn,e.endpoint),En(this,Fn,t)}getTrackingElement(e){var t;return null===(t=Sn(this,In))||void 0===t?void 0:t[e]}track(e){const t=(0,c.cloneDeep)(Sn(this,In));let s=!1;Object.entries(e).forEach((([e,r])=>{void 0!==t[e]&&t[e]!==r&&(t[e]=r,s=!0)})),s&&(En(this,In,t),this.storeData(t))}storeData(e,t){Sn(this,Fn).fetchJson(Sn(this,Dn),e,{...t,method:"POST"}).catch(c.noop)}}const Un=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))})),Bn=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}))}));var qn,$n,Hn,Vn,Wn,Gn,Kn,Yn,Zn,Jn;function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Qn.apply(this,arguments)}const Xn=e=>d.createElement("svg",Qn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 252 60"},e),qn||(qn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__a)",fillRule:"evenodd",d:"M36.962 29.643c0-3.42 1.83-6.49 6.405-6.49 4.403 0 6.375 2.8 6.386 6.698.008 3.2-1.785 6.416-6.386 6.416-4.602 0-6.405-3.072-6.405-6.624Zm8.432-2.74c-1.173-1.64-4.688-1.64-4.8 2.932.046 2.582 1.245 3.614 2.773 3.63 3.317.039 3.093-5.067 2.027-6.562Z",clipRule:"evenodd"})),$n||($n=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__b)",d:"M80.475 33.094v-6.63h2.369v-2.875h-2.369v-3.475h-3.659v3.475H74.96v2.877h1.856v6.258c0 3.552 2.477 5.665 5.092 6.102L83 35.877c-1.524-.193-2.51-1.332-2.525-2.783Z"})),Hn||(Hn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__c)",fillRule:"evenodd",d:"M62.008 27.062v4.981c0 .7.196 1.67.425 2.803.089.436.182.897.27 1.376H59.18l-.611-1.472c-4.117 2.994-8.052.974-8.052-2.168 0-4.131 4.01-4.632 7.776-4.632l.003-.249c.01-.465.02-.985-.24-1.336v-.007c-.01-.014-.022-.027-.034-.04l-.011-.013c-.602-.675-2.327-1.028-5.21.341l-1.283-2.575c4.428-1.546 10.144-1.555 10.461 2.47.018.174.028.347.029.52Zm-6.521 3.81c-2.718 1.331-.064 4.384 2.835 1.14v-1.425c-.949 0-2.035.012-2.835.284Z",clipRule:"evenodd"})),Vn||(Vn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__d)",d:"M67.636 26.794c0-1.227 1.966-1.801 5.065-.386l1.071-2.606c-4.17-1.262-9.866-1.37-9.904 2.992-.016 2.09 1.324 3.216 3.255 3.933 1.337.498 3.269.755 3.263 1.82-.007 1.392-3.001 1.605-5.726-.267l-1.1 2.823c3.715 1.85 10.627 1.901 10.59-2.734-.03-4.583-6.514-3.798-6.514-5.575Z"})),Wn||(Wn=d.createElement("path",{fill:"url(#yoast-connect-google-site-kit-success_svg__e)",d:"M35.415 16.875 30.11 31.609l-2.54-7.956h-3.779l4.23 10.866a3.957 3.957 0 0 1 0 2.877c-.473 1.213-1.26 2.25-3.177 2.508v3.221c3.734 0 5.753-2.295 7.554-7.326l7.06-18.924h-4.043Z"})),Gn||(Gn=d.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),Kn||(Kn=d.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),Yn||(Yn=d.createElement("path",{fill:"#5F6368",d:"M238.632 23.565h2.267v.074l-5.066 5.844 5.405 7.63v.075h-2.151l-4.437-6.357-2.094 2.419v3.94h-1.754V23.564h1.754v7.027h.074l6.002-7.027Zm5.892 1.084c0 .339-.124.637-.364.877a1.19 1.19 0 0 1-.877.364c-.34 0-.638-.124-.877-.364a1.198 1.198 0 0 1-.365-.877c0-.348.124-.637.365-.878.239-.24.53-.364.877-.364.339 0 .637.124.877.364.248.249.364.538.364.878Zm-.355 3.22v9.328h-1.755v-9.329h1.755Zm5.604 9.477c-.762 0-1.392-.232-1.896-.704-.505-.472-.762-1.126-.77-1.962v-5.215h-1.639v-1.597h1.639v-2.856h1.754v2.856h2.285v1.597h-2.284v4.644c0 .62.124 1.043.364 1.266.24.224.513.332.819.332.141 0 .273-.017.414-.05a2.19 2.19 0 0 0 .373-.124l.554 1.564c-.471.166-1.001.249-1.613.249Zm-55.489-.878c-.969-.704-1.631-1.697-1.995-2.972l2.151-.878c.216.803.597 1.448 1.151 1.962.547.505 1.209.761 1.978.761.721 0 1.324-.182 1.829-.554.505-.373.754-.886.754-1.531 0-.596-.224-1.085-.662-1.474-.439-.389-1.209-.777-2.31-1.167l-.91-.323c-.977-.338-1.796-.827-2.459-1.464-.662-.637-.992-1.473-.992-2.515 0-.721.198-1.383.587-1.995.389-.613.935-1.093 1.639-1.458.695-.355 1.482-.537 2.367-.537 1.275 0 2.293.305 3.046.927.761.62 1.266 1.307 1.522 2.086l-2.051.868c-.15-.464-.43-.87-.853-1.217-.421-.356-.96-.53-1.622-.53-.662 0-1.224.166-1.68.505-.455.34-.679.77-.679 1.3 0 .505.207.91.612 1.241.406.323 1.043.638 1.913.935l.911.306c1.249.431 2.209 1.002 2.896 1.698.687.695 1.027 1.63 1.027 2.797 0 .952-.241 1.747-.729 2.383a4.482 4.482 0 0 1-1.862 1.433 5.981 5.981 0 0 1-2.326.463c-1.209 0-2.293-.348-3.253-1.05Zm9.924-11.571a1.45 1.45 0 0 1-.439-1.067c0-.423.149-.779.439-1.069a1.444 1.444 0 0 1 1.067-.438c.422 0 .779.149 1.067.438.291.29.439.646.439 1.068 0 .422-.149.778-.438 1.067a1.455 1.455 0 0 1-1.067.44c-.423-.01-.779-.15-1.068-.44Zm-.05 1.937h2.234v10.362h-2.234V26.834Zm7.093 10.304a2.898 2.898 0 0 1-.993-.588c-.579-.579-.878-1.373-.878-2.375v-5.372h-1.812v-1.97h1.812v-2.92h2.235v2.93h2.517v1.97h-2.517v4.874c0 .555.108.952.323 1.176.207.273.555.405 1.06.405.231 0 .43-.033.612-.091.174-.058.364-.157.571-.298v2.177c-.447.207-.985.306-1.622.306a3.735 3.735 0 0 1-1.308-.224Zm6.133-.33a4.946 4.946 0 0 1-1.887-1.962c-.455-.836-.679-1.771-.679-2.814 0-.994.224-1.904.662-2.756a5.157 5.157 0 0 1 1.838-2.02c.786-.497 1.68-.754 2.682-.754 1.043 0 1.945.232 2.714.688a4.572 4.572 0 0 1 1.747 1.887c.397.803.596 1.697.596 2.707 0 .19-.017.43-.058.711h-7.946c.083.96.423 1.706 1.026 2.227.58.512 1.33.79 2.103.778.637 0 1.192-.141 1.655-.439a3.185 3.185 0 0 0 1.126-1.192l1.887.894c-.488.853-1.126 1.523-1.912 2.011-.786.489-1.73.729-2.823.729-1.018.016-1.927-.215-2.731-.695Zm5.397-6.01a2.497 2.497 0 0 0-.348-1.084 2.486 2.486 0 0 0-.927-.902c-.413-.24-.918-.364-1.515-.364-.72 0-1.324.215-1.821.637-.496.422-.836 1.001-1.026 1.713h5.637Z"})),Zn||(Zn=d.createElement("g",{fillRule:"evenodd",clipPath:"url(#yoast-connect-google-site-kit-success_svg__f)",clipRule:"evenodd"},d.createElement("path",{fill:"#FBBC05",d:"m170.119 26.56 2.576 1.97a4.563 4.563 0 0 0 0 2.85l-2.576 1.97a7.667 7.667 0 0 1-.785-3.395c0-1.22.283-2.373.785-3.394Z"}),d.createElement("path",{fill:"#EA4335",d:"m172.696 28.53-2.577-1.97a7.64 7.64 0 0 1 6.877-4.266c1.95 0 3.691.731 5.049 1.915l-2.229 2.229a4.428 4.428 0 0 0-2.82-1.01 4.518 4.518 0 0 0-4.3 3.102Z"}),d.createElement("path",{fill:"#34A853",d:"m170.118 33.347 2.576-1.975a4.514 4.514 0 0 0 4.301 3.11c2.124 0 3.726-1.08 4.109-2.96h-4.109v-2.96h7.139c.104.452.174.94.174 1.392 0 4.875-3.482 7.661-7.313 7.661a7.637 7.637 0 0 1-6.877-4.268Z"}),d.createElement("path",{fill:"#4285F4",d:"m181.988 35.707-2.446-1.893c.8-.505 1.357-1.283 1.562-2.293h-4.109v-2.96h7.138c.105.453.175.94.175 1.393 0 2.497-.914 4.446-2.32 5.753Z"}))),Jn||(Jn=d.createElement("defs",null,d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__a",x1:49.753,x2:49.753,y1:36.267,y2:23.152,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__b",x1:82.999,x2:82.999,y1:38.82,y2:20.114,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__c",x1:62.701,x2:62.701,y1:36.222,y2:23.113,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__d",x1:74.149,x2:74.149,y1:36.275,y2:23.046,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#570732"}),d.createElement("stop",{offset:.04,stopColor:"#610B39"}),d.createElement("stop",{offset:.15,stopColor:"#79164B"}),d.createElement("stop",{offset:.29,stopColor:"#8C1E59"}),d.createElement("stop",{offset:.44,stopColor:"#9A2463"}),d.createElement("stop",{offset:.63,stopColor:"#A22768"}),d.createElement("stop",{offset:1,stopColor:"#A4286A"})),d.createElement("linearGradient",{id:"yoast-connect-google-site-kit-success_svg__e",x1:25.434,x2:25.434,y1:16.169,y2:36.914,gradientUnits:"userSpaceOnUse"},d.createElement("stop",{stopColor:"#77B227"}),d.createElement("stop",{offset:.47,stopColor:"#75B027"}),d.createElement("stop",{offset:.64,stopColor:"#6EAB27"}),d.createElement("stop",{offset:.75,stopColor:"#63A027"}),d.createElement("stop",{offset:.85,stopColor:"#529228"}),d.createElement("stop",{offset:.93,stopColor:"#3C8028"}),d.createElement("stop",{offset:1,stopColor:"#246B29"})),d.createElement("clipPath",{id:"yoast-connect-google-site-kit-success_svg__f"},d.createElement("path",{fill:"#fff",d:"M169.334 22h14.973v15.909h-14.973z"}))))),ea=[{children:(0,Vt.__)("INSTALL","wordpress-seo"),id:"install"},{children:(0,Vt.__)("ACTIVATE","wordpress-seo"),id:"activate"},{children:(0,Vt.__)("SET UP","wordpress-seo"),id:"setup"},{children:(0,Vt.__)("CONNECT","wordpress-seo"),id:"connect"}],ta={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},sa=(e,t)=>[ta.setup,ta.grantConsent,ta.successfullyConnected].includes(e)&&!t,ra=({isSiteKitConnectionCompleted:e})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Title,{size:"2",className:"yst-mb-4",children:e?(0,Vt.__)("You’ve successfully connected your site with Site Kit by Google!","wordpress-seo"):(0,Vt.__)("Expand your dashboard with insights from Google!","wordpress-seo")}),!e&&(0,Zt.jsx)("p",{className:"yst-mb-4",children:(0,Vt.__)("Bring together powerful tools like Google Analytics and Search Console for a complete overview of your website's performance, all in one seamless dashboard.","wordpress-seo")})]}),na=({capabilities:e,currentStep:t,isVersionSupported:s,isConsentGranted:r})=>{const n="yst-mt-6";return sa(t,s)?r?(0,Zt.jsx)(l.Alert,{className:n,variant:"error",children:(0,Vt.__)("Your current version of the Site Kit by Google plugin is no longer compatible with Yoast SEO. Please update to the latest version to restore the connection.","wordpress-seo")}):(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You are using an outdated version of the Site Kit by Google plugin. Please update to the latest version to connect Yoast SEO with Site Kit by Google.","wordpress-seo")}):t===ta.successfullyConnected?null:!e.installPlugins&&t<ta.grantConsent?(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("Please contact your WordPress admin to install, activate, and set up the Site Kit by Google plugin.","wordpress-seo")}):e.viewSearchConsoleData||t!==ta.grantConsent?void 0:(0,Zt.jsx)(l.Alert,{className:n,children:(0,Vt.__)("You don’t have view access to Site Kit by Google. Please contact the admin who set it up.","wordpress-seo")})},aa=({dashboardUrl:e})=>(0,Zt.jsx)(l.Alert,{className:"yst-mb-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s and %2$s: Expands to an opening and closing link tag. */ (0,Vt.__)("You’re back in Yoast SEO. If you still have tasks to finish in Site Kit by Google, you can %1$s return to their dashboard%2$s anytime.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{href:e})})}),oa=({currentStep:e,config:t,isConnectionCompleted:s,onDismissWidget:r,onShowConsent:n})=>{const a=(0,o.useCallback)(((e,s="installPlugins")=>{var r;return null!==(r=t.capabilities)&&void 0!==r&&r[s]?e:null}),[t.capabilities]);if(sa(e,t.isVersionSupported))return(0,Zt.jsx)(l.Button,{as:"a",href:t.updateUrl,children:(0,Vt.__)("Update Site Kit by Google","wordpress-seo")});if(s)return(0,Zt.jsx)(l.Button,{onClick:r,children:(0,Vt.__)("Got it!","wordpress-seo")});switch(e){case ta.install:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.installUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Install Site Kit by Google","wordpress-seo")});case ta.activate:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.activateUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Activate Site Kit by Google","wordpress-seo")});case ta.setup:return(0,Zt.jsx)(l.Button,{as:"a",href:a(t.setupUrl),disabled:!t.capabilities.installPlugins,"aria-disabled":!t.capabilities.installPlugins,children:(0,Vt.__)("Set up Site Kit by Google","wordpress-seo")});case ta.grantConsent:return(0,Zt.jsx)(l.Button,{disabled:!t.capabilities.viewSearchConsoleData,onClick:n,children:(0,Vt.__)("Connect Site Kit by Google","wordpress-seo")})}return null},ia=({dataProvider:e,remoteDataProvider:t,dataTracker:s})=>{const{grantConsent:r,dismissPermanently:n}=((e,t)=>({grantConsent:(0,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConsentManagement"),{consent:String(!0)},{...s,method:"POST"}).then((({success:t})=>{t&&e.setSiteKitConsentGranted(!0)})).catch(c.noop)}),[e,t]),dismissPermanently:(0,o.useCallback)((s=>{t.fetchJson(e.getEndpoint("siteKitConfigurationDismissal"),{is_dismissed:String(!0)},{...s,method:"POST"}).catch(c.noop),e.setSiteKitConfigurationDismissed(!0)}),[t,e])}))(e,t),a=e.getSiteKitCurrentConnectionStep(),d=e.getSiteKitConfiguration(),u=e.isSiteKitConnectionCompleted()&&d.isVersionSupported;((e,t)=>{(0,o.useEffect)((()=>{const s=(r=t,null===(n=Object.entries(ta).find((([,e])=>e===r)))||void 0===n?void 0:n[0]);var r,n;"no"===e.getTrackingElement("setupWidgetLoaded")?e.track({setupWidgetLoaded:"yes",firstInteractionStage:s,lastInteractionStage:s}):"yes"===e.getTrackingElement("setupWidgetLoaded")&&e.track({lastInteractionStage:s})}),[e,t])})(s,a);const p=(0,o.useCallback)((()=>{e.setSiteKitConfigurationDismissed(!0)}),[e]),m=(0,o.useCallback)((()=>{p(),s.track({setupWidgetTemporarilyDismissed:"yes"})}),[s,p]),[h,,,f,y]=(0,l.useToggleState)(!1),g=(0,o.useCallback)((()=>{n(),s.track({setupWidgetPermanentlyDismissed:"yes"})}),[s,a]),v=e.getLink("siteKitLearnMore"),b=e.getLink("siteKitConsentLearnMore");return(0,Zt.jsxs)(i.Widget,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4",children:[(0,Zt.jsx)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4",children:u?(0,Zt.jsx)(Xn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,Zt.jsx)(gn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})}),!sa(a,d.isVersionSupported)&&(0,Zt.jsx)(l.Stepper,{steps:ea,currentStep:a===ta.successfullyConnected?ea.length:a,className:"yst-mb-6"}),(0,Zt.jsxs)(l.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,Zt.jsx)(l.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Vt.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,Zt.jsxs)(l.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,Zt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-slate-600 yst-border-b yst-border-slate-200 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:m,children:[(0,Zt.jsx)(Un,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0"}),(0,Vt.__)("Remove until next visit","wordpress-seo")]}),(0,Zt.jsxs)(l.DropdownMenu.ButtonItem,{className:"yst-text-red-500 yst-flex yst-py-2 yst-justify-start yst-gap-2 yst-px-4 yst-font-normal",onClick:g,children:[(0,Zt.jsx)(Bn,{className:"yst-w-4 yst-shrink-0"}),(0,Vt.__)("Remove permanently","wordpress-seo")]})]})]}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),d.isRedirectedFromSiteKit&&(0,Zt.jsx)(aa,{dashboardUrl:d.dashboardUrl}),(0,Zt.jsxs)("div",{className:"yst-max-w-2xl",children:[(0,Zt.jsx)(ra,{isSiteKitConnectionCompleted:u}),(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium",children:u?(0,Vt.__)("You're all set, here are some benefits:","wordpress-seo"):(0,Vt.__)("Here's what you'll unlock:","wordpress-seo")}),(0,Zt.jsxs)("ul",{children:[(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Grow your audience with actionable SEO and user behavior insights.","wordpress-seo")]}),(0,Zt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-w-5 yst-text-green-400 yst-shrink-0"}),(0,Vt.__)("Fine-tune your SEO and optimize your content using key performance metrics (KPI).","wordpress-seo")]})]}),(0,Zt.jsx)(na,{capabilities:d.capabilities,currentStep:a,isVersionSupported:d.isVersionSupported,isConsentGranted:d.connectionStepsStatuses.isConsentGranted})]}),(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-1.5 yst-mt-6 yst-items-center",children:[(0,Zt.jsx)(oa,{currentStep:a,config:d,isConnectionCompleted:u,onDismissWidget:p,onShowConsent:f}),!u&&(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.Button,{as:"a",href:v,variant:"tertiary",className:"yst-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",target:"_blank",rel:"noopener",children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),(0,Zt.jsx)(vn,{isOpen:a===ta.grantConsent&&h,onClose:y,onGrantConsent:r,learnMoreLink:b})]})]})]})};function la(e,t,s){!function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}(e,t),t.set(e,s)}var ca=new WeakMap,da=new WeakMap,ua=new WeakMap,pa=new WeakMap,ma=new WeakMap;class ha{constructor(e,t,s,r,n){la(this,ca,{writable:!0,value:void 0}),la(this,da,{writable:!0,value:void 0}),la(this,ua,{writable:!0,value:void 0}),la(this,pa,{writable:!0,value:void 0}),la(this,ma,{writable:!0,value:void 0}),En(this,ca,e),En(this,da,t),En(this,ua,s),En(this,pa,r),En(this,ma,n)}getRemoteDataProvider(e){var t;return null!==(t=Sn(this,ua)[e])&&void 0!==t?t:Sn(this,da)}get types(){return{siteKitSetup:"siteKitSetup",searchRankingCompare:"searchRankingCompare",organicSessions:"organicSessions",topPages:"topPages",topQueries:"topQueries",seoScores:"seoScores",readabilityScores:"readabilityScores"}}createWidget(e){const{isFeatureEnabled:t,isSetupWidgetDismissed:s,isAnalyticsConnected:r,capabilities:n,isVersionSupported:a}=Sn(this,ca).getSiteKitConfiguration(),o=Sn(this,ca).isSiteKitConnectionCompleted(),l=t&&o&&a,c=l&&n.viewSearchConsoleData,d=l&&r&&n.viewAnalyticsData;switch(e){case this.types.seoScores:return Sn(this,ca).hasFeature("indexables")&&Sn(this,ca).hasFeature("seoAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"seo",dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.readabilityScores:return Sn(this,ca).hasFeature("indexables")&&Sn(this,ca).hasFeature("readabilityAnalysis")?(0,Zt.jsx)(i.ScoreWidget,{analysisType:"readability",dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.topPages:return c?(0,Zt.jsx)(i.TopPagesWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).plainMetricsDataFormatter},e):null;case this.types.siteKitSetup:return!t||s?null:(0,Zt.jsx)(ia,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataTracker:Sn(this,ma).setupWidgetDataTracker},e);case this.types.topQueries:return c?(0,Zt.jsx)(i.TopQueriesWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).plainMetricsDataFormatter},e):null;case this.types.searchRankingCompare:return c?(0,Zt.jsx)(i.SearchRankingCompareWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).comparisonMetricsDataFormatter},e):null;case this.types.organicSessions:return d?(0,Zt.jsx)(i.OrganicSessionsWidget,{dataProvider:Sn(this,ca),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:Sn(this,pa).comparisonMetricsDataFormatter},e):null;default:return null}}}const fa=window.yoast.reduxJsToolkit,ya="adminUrl",ga=(0,fa.createSlice)({name:ya,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),va=ga.getInitialState,ba={selectAdminUrl:e=>(0,c.get)(e,ya,"")};ba.selectAdminLink=(0,fa.createSelector)([ba.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}));const xa=ga.actions,wa=ga.reducer,Sa=window.wp.apiFetch;var Ea=s.n(Sa);const _a="hasConsent",ja=(0,fa.createSlice)({name:_a,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Ca=(ja.getInitialState,ja.actions,ja.reducer,window.wp.url),ka="linkParams",Ra=(0,fa.createSlice)({name:ka,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),Oa=Ra.getInitialState,Na={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${ka}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,ka,{})};Na.selectLink=(0,fa.createSelector)([Na.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Ca.addQueryArgs)(t,{...e,...s})));const Pa=Ra.actions,Ta=Ra.reducer,La=(0,fa.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:s="default",title:r,description:n})=>({payload:{id:e||(0,fa.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),Ma=(La.getInitialState,La.actions,La.reducer,"pluginUrl"),Aa=(0,fa.createSlice)({name:Ma,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ia=(Aa.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,Ma,"")});Ia.selectImageLink=(0,fa.createSelector)([Ia.selectPluginUrl,(e,t,s="images")=>s,(e,t)=>t],((e,t,s)=>[(0,c.trimEnd)(e,"/"),(0,c.trim)(t,"/"),(0,c.trimStart)(s,"/")].join("/"))),Aa.actions,Aa.reducer;const Da="wistiaEmbedPermission",Fa=(0,fa.createSlice)({name:Da,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${Da}/${Vs}`,(e=>{e.status=Ks})),e.addCase(`${Da}/${Ws}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${Da}/${Gs}`,((e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,c.get)(t,"error.code",500),message:(0,c.get)(t,"error.message","Unknown")}}))}});var za;Fa.getInitialState,Fa.actions,Fa.reducer;const Ua=(0,fa.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(za=document)||void 0===za?void 0:za.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function Ba(...e){return e.filter(Boolean).join(" ")}function qa(e,t,...s){if(e in t){let r=t[e];return"function"==typeof r?r(...s):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,qa),r}Ua.getInitialState,Ua.actions,Ua.reducer;var $a,Ha,Va=((Ha=Va||{})[Ha.None=0]="None",Ha[Ha.RenderStrategy=1]="RenderStrategy",Ha[Ha.Static=2]="Static",Ha),Wa=(($a=Wa||{})[$a.Unmount=0]="Unmount",$a[$a.Hidden=1]="Hidden",$a);function Ga({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:a=!0,name:o}){let i=Ya(t,e);if(a)return Ka(i,s,r,o);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=i;if(e)return Ka(t,s,r,o)}if(1&l){let{unmount:e=!0,...t}=i;return qa(e?0:1,{0:()=>null,1:()=>Ka({...t,hidden:!0,style:{display:"none"}},s,r,o)})}return Ka(i,s,r,o)}function Ka(e,t={},s,r){var n;let{as:a=s,children:o,refName:i="ref",...l}=Qa(e,["unmount","static"]),c=void 0!==e.ref?{[i]:e.ref}:{},u="function"==typeof o?o(t):o;l.className&&"function"==typeof l.className&&(l.className=l.className(t));let p={};if(t){let e=!1,s=[];for(let[r,n]of Object.entries(t))"boolean"==typeof n&&(e=!0),!0===n&&s.push(r);e&&(p["data-headlessui-state"]=s.join(" "))}if(a===d.Fragment&&Object.keys(Ja(l)).length>0){if(!(0,d.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=Ba(null==(n=u.props)?void 0:n.className,l.className),t=e?{className:e}:{};return(0,d.cloneElement)(u,Object.assign({},Ya(u.props,Ja(Qa(l,["ref"]))),p,c,function(...e){return{ref:e.every((e=>null==e))?void 0:t=>{for(let s of e)null!=s&&("function"==typeof s?s(t):s.current=t)}}}(u.ref,c.ref),t))}return(0,d.createElement)(a,Object.assign({},Qa(l,["ref"]),a!==d.Fragment&&c,a!==d.Fragment&&p),u)}function Ya(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},s={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=s[e]||(s[e]=[]),s[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(s).map((e=>[e,void 0]))));for(let e in s)Object.assign(t,{[e](t,...r){let n=s[e];for(let e of n){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;e(t,...r)}}});return t}function Za(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Ja(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Qa(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let Xa=(0,d.createContext)(null);Xa.displayName="OpenClosedContext";var eo=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(eo||{});function to(){return(0,d.useContext)(Xa)}function so({value:e,children:t}){return d.createElement(Xa.Provider,{value:e},t)}var ro=Object.defineProperty,no=(e,t,s)=>(((e,t,s)=>{t in e?ro(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let ao=new class{constructor(){no(this,"current",this.detect()),no(this,"handoffState","pending"),no(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}},oo=(e,t)=>{ao.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function io(){let e=(0,d.useRef)(!1);return oo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function lo(e){let t=(0,d.useRef)(e);return oo((()=>{t.current=e}),[e]),t}function co(){let[e,t]=(0,d.useState)(ao.isHandoffComplete);return e&&!1===ao.isHandoffComplete&&t(!1),(0,d.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,d.useEffect)((()=>ao.handoff()),[]),e}let uo=function(e){let t=lo(e);return d.useCallback(((...e)=>t.current(...e)),[t])},po=Symbol();function mo(e,t=!0){return Object.assign(e,{[po]:t})}function ho(...e){let t=(0,d.useRef)(e);(0,d.useEffect)((()=>{t.current=e}),[e]);let s=uo((e=>{for(let s of t.current)null!=s&&("function"==typeof s?s(e):s.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[po])))?void 0:s}function fo(){let e=[],t=[],s={enqueue(e){t.push(e)},addEventListener:(e,t,r,n)=>(e.addEventListener(t,r,n),s.add((()=>e.removeEventListener(t,r,n)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return s.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>s.requestAnimationFrame((()=>s.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return s.add((()=>clearTimeout(t)))},microTask(...e){let t={current:!0};return function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{t.current&&e[0]()})),s.add((()=>{t.current=!1}))},add:t=>(e.push(t),()=>{let s=e.indexOf(t);if(s>=0){let[t]=e.splice(s,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return s}function yo(e,...t){e&&t.length>0&&e.classList.add(...t)}function go(e,...t){e&&t.length>0&&e.classList.remove(...t)}function vo(){let[e]=(0,d.useState)(fo);return(0,d.useEffect)((()=>()=>e.dispose()),[e]),e}function bo({container:e,direction:t,classes:s,onStart:r,onStop:n}){let a=io(),o=vo(),i=lo(t);oo((()=>{let t=fo();o.add(t.dispose);let l=e.current;if(l&&"idle"!==i.current&&a.current)return t.dispose(),r.current(i.current),t.add(function(e,t,s,r){let n=s?"enter":"leave",a=fo(),o=void 0!==r?function(e){let t={called:!1};return(...s)=>{if(!t.called)return t.called=!0,e(...s)}}(r):()=>{};"enter"===n&&(e.removeAttribute("hidden"),e.style.display="");let i=qa(n,{enter:()=>t.enter,leave:()=>t.leave}),l=qa(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=qa(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return go(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),yo(e,...i,...c),a.nextFrame((()=>{go(e,...c),yo(e,...l),function(e,t){let s=fo();if(!e)return s.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(e),[a,o]=[r,n].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t}));if(a+o!==0){let r=s.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();s.add((()=>t())),s.dispose}(e,(()=>(go(e,...i),yo(e,...t.entered),o())))})),a.dispose}(l,s.current,"enter"===i.current,(()=>{t.dispose(),n.current(i.current)}))),t.dispose}),[t])}function xo(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let wo=(0,d.createContext)(null);wo.displayName="TransitionContext";var So=(e=>(e.Visible="visible",e.Hidden="hidden",e))(So||{});let Eo=(0,d.createContext)(null);function _o(e){return"children"in e?_o(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function jo(e,t){let s=lo(e),r=(0,d.useRef)([]),n=io(),a=vo(),o=uo(((e,t=Wa.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(qa(t,{[Wa.Unmount](){r.current.splice(o,1)},[Wa.Hidden](){r.current[o].state="hidden"}}),a.microTask((()=>{var e;!_o(r)&&n.current&&(null==(e=s.current)||e.call(s))})))})),i=uo((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>o(e,Wa.Unmount)})),l=(0,d.useRef)([]),c=(0,d.useRef)(Promise.resolve()),u=(0,d.useRef)({enter:[],leave:[],idle:[]}),p=uo(((e,s,r)=>{l.current.splice(0),t&&(t.chains.current[s]=t.chains.current[s].filter((([t])=>t!==e))),null==t||t.chains.current[s].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[s].push([e,new Promise((e=>{Promise.all(u.current[s].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===s?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(s))):r(s)})),m=uo(((e,t,s)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>s(t)))}));return(0,d.useMemo)((()=>({children:r,register:i,unregister:o,onStart:p,onStop:m,wait:c,chains:u})),[i,o,r,p,m,u,c])}function Co(){}Eo.displayName="NestingContext";let ko=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ro(e){var t;let s={};for(let r of ko)s[r]=null!=(t=e[r])?t:Co;return s}let Oo=Va.RenderStrategy,No=Za((function(e,t){let{beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a,enter:o,enterFrom:i,enterTo:l,entered:c,leave:u,leaveFrom:p,leaveTo:m,...h}=e,f=(0,d.useRef)(null),y=ho(f,t),g=h.unmount?Wa.Unmount:Wa.Hidden,{show:v,appear:b,initial:x}=function(){let e=(0,d.useContext)(wo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,S]=(0,d.useState)(v?"visible":"hidden"),E=function(){let e=(0,d.useContext)(Eo);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:_,unregister:j}=E,C=(0,d.useRef)(null);(0,d.useEffect)((()=>_(f)),[_,f]),(0,d.useEffect)((()=>{if(g===Wa.Hidden&&f.current)return v&&"visible"!==w?void S("visible"):qa(w,{hidden:()=>j(f),visible:()=>_(f)})}),[w,f,_,j,v,g]);let k=lo({enter:xo(o),enterFrom:xo(i),enterTo:xo(l),entered:xo(c),leave:xo(u),leaveFrom:xo(p),leaveTo:xo(m)}),R=function(e){let t=(0,d.useRef)(Ro(e));return(0,d.useEffect)((()=>{t.current=Ro(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a}),O=co();(0,d.useEffect)((()=>{if(O&&"visible"===w&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,w,O]);let N=x&&!b,P=!O||N||C.current===v?"idle":v?"enter":"leave",T=uo((e=>qa(e,{enter:()=>R.current.beforeEnter(),leave:()=>R.current.beforeLeave(),idle:()=>{}}))),L=uo((e=>qa(e,{enter:()=>R.current.afterEnter(),leave:()=>R.current.afterLeave(),idle:()=>{}}))),M=jo((()=>{S("hidden"),j(f)}),E);bo({container:f,classes:k,direction:P,onStart:lo((e=>{M.onStart(f,e,T)})),onStop:lo((e=>{M.onStop(f,e,L),"leave"===e&&!_o(M)&&(S("hidden"),j(f))}))}),(0,d.useEffect)((()=>{!N||(g===Wa.Hidden?C.current=null:C.current=v)}),[v,N,w]);let A=h,I={ref:y};return b&&v&&ao.isServer&&(A={...A,className:Ba(h.className,...k.current.enter,...k.current.enterFrom)}),d.createElement(Eo.Provider,{value:M},d.createElement(so,{value:qa(w,{visible:eo.Open,hidden:eo.Closed})},Ga({ourProps:I,theirProps:A,defaultTag:"div",features:Oo,visible:"visible"===w,name:"Transition.Child"})))})),Po=Za((function(e,t){let{show:s,appear:r=!1,unmount:n,...a}=e,o=(0,d.useRef)(null),i=ho(o,t);co();let l=to();if(void 0===s&&null!==l&&(s=qa(l,{[eo.Open]:!0,[eo.Closed]:!1})),![!0,!1].includes(s))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=(0,d.useState)(s?"visible":"hidden"),p=jo((()=>{u("hidden")})),[m,h]=(0,d.useState)(!0),f=(0,d.useRef)([s]);oo((()=>{!1!==m&&f.current[f.current.length-1]!==s&&(f.current.push(s),h(!1))}),[f,s]);let y=(0,d.useMemo)((()=>({show:s,appear:r,initial:m})),[s,r,m]);(0,d.useEffect)((()=>{if(s)u("visible");else if(_o(p)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[s,p]);let g={unmount:n};return d.createElement(Eo.Provider,{value:p},d.createElement(wo.Provider,{value:y},Ga({ourProps:{...g,as:d.Fragment,children:d.createElement(No,{ref:i,...g,...a})},theirProps:{},defaultTag:d.Fragment,features:Oo,visible:"visible"===c,name:"Transition"})))})),To=Za((function(e,t){let s=null!==(0,d.useContext)(wo),r=null!==to();return d.createElement(d.Fragment,null,!s&&r?d.createElement(Po,{ref:t,...e}):d.createElement(No,{ref:t,...e}))})),Lo=Object.assign(Po,{Child:To,Root:Po});const Mo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"}))})),Ao=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"}))})),Io=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"}))})),Do=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"}))})),Fo=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"}))})),zo="@yoast/general",Uo=(0,o.createContext)({Icon:null,bulletClass:"",iconClass:""}),Bo=({id:e="",nonce:t="",dismissed:s=!1,message:n=""})=>{const{bulletClass:a=""}=(0,o.useContext)(Uo),{toggleAlertStatus:i}=(0,r.useDispatch)(zo),c=s?Do:Fo,d=(0,o.useCallback)((async()=>{i(e,t,s)}),[e,t,s,i]);return(0,Zt.jsxs)("li",{className:"yst-flex yst-justify-between yst-gap-x-5 yst-border-b yst-border-slate-200 last:yst-border-b-0 yst-py-6 first:yst-pt-0 last:yst-pb-0",children:[(0,Zt.jsx)("div",{className:Ps()("yst-mt-1",s&&"yst-opacity-50"),children:(0,Zt.jsx)("svg",{width:"11",height:"11",className:a,children:(0,Zt.jsx)("circle",{cx:"5.5",cy:"5.5",r:"5.5"})})}),(0,Zt.jsx)("div",{className:Ps()("yst-text-sm yst-text-slate-600 yst-grow",s&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:n}}),(0,Zt.jsx)(l.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:d,children:(0,Zt.jsx)(c,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})})]},e)};Bo.propTypes={id:Yt().string,nonce:Yt().string,dismissed:Yt().bool,message:Yt().string};const qo=({className:e="",items:t=[]})=>0===t.length?null:(0,Zt.jsx)("ul",{className:e,children:t.map((e=>(0,Zt.jsx)(Bo,{id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message},e.id)))});qo.propTypes={className:Yt().string,items:Yt().arrayOf(Yt().shape({message:Yt().string,id:Yt().string,nonce:Yt().string,dismissed:Yt().bool}))};const $o=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))})),Ho=({title:e,counts:t=0,children:s=null})=>{const{Icon:r=$o,iconClass:n=""}=(0,o.useContext)(Uo);return(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(r,{className:Ps()("yst-w-6 yst-h-6",n)}),(0,Zt.jsxs)(l.Title,{className:"yst-grow",as:"h2",size:"2",children:[e," ",`(${t})`]})]}),s]})};var Vo;Ho.propTypes={title:Yt().string.isRequired,counts:Yt().number,children:Yt().node};let Wo=null!=(Vo=d.useId)?Vo:function(){let e=co(),[t,s]=d.useState(e?()=>ao.nextId():null);return oo((()=>{null===t&&s(ao.nextId())}),[t]),null!=t?""+t:void 0};var Go=(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))(Go||{});function Ko(e){let t=e.parentElement,s=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(s=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}(s))&&r}function Yo(e){var t;if(e.type)return e.type;let s=null!=(t=e.as)?t:"button";return"string"==typeof s&&"button"===s.toLowerCase()?"button":void 0}function Zo(e,t){let[s,r]=(0,d.useState)((()=>Yo(e)));return oo((()=>{r(Yo(e))}),[e.type,e.as]),oo((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}function Jo(e){return ao.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var Qo,Xo=((Qo=Xo||{})[Qo.Open=0]="Open",Qo[Qo.Closed=1]="Closed",Qo),ei=(e=>(e[e.ToggleDisclosure=0]="ToggleDisclosure",e[e.CloseDisclosure=1]="CloseDisclosure",e[e.SetButtonId=2]="SetButtonId",e[e.SetPanelId=3]="SetPanelId",e[e.LinkPanel=4]="LinkPanel",e[e.UnlinkPanel=5]="UnlinkPanel",e))(ei||{});let ti={0:e=>({...e,disclosureState:qa(e.disclosureState,{0:1,1:0})}),1:e=>1===e.disclosureState?e:{...e,disclosureState:1},4:e=>!0===e.linkedPanel?e:{...e,linkedPanel:!0},5:e=>!1===e.linkedPanel?e:{...e,linkedPanel:!1},2:(e,t)=>e.buttonId===t.buttonId?e:{...e,buttonId:t.buttonId},3:(e,t)=>e.panelId===t.panelId?e:{...e,panelId:t.panelId}},si=(0,d.createContext)(null);function ri(e){let t=(0,d.useContext)(si);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ri),t}return t}si.displayName="DisclosureContext";let ni=(0,d.createContext)(null);function ai(e){let t=(0,d.useContext)(ni);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ai),t}return t}ni.displayName="DisclosureAPIContext";let oi=(0,d.createContext)(null);function ii(e,t){return qa(t.type,ti,e,t)}oi.displayName="DisclosurePanelContext";let li=d.Fragment,ci=Za((function(e,t){let{defaultOpen:s=!1,...r}=e,n=(0,d.useRef)(null),a=ho(t,mo((e=>{n.current=e}),void 0===e.as||e.as===d.Fragment)),o=(0,d.useRef)(null),i=(0,d.useRef)(null),l=(0,d.useReducer)(ii,{disclosureState:s?0:1,linkedPanel:!1,buttonRef:i,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:u},p]=l,m=uo((e=>{p({type:1});let t=Jo(n);if(!t||!u)return;let s=e?e instanceof HTMLElement?e:e.current instanceof HTMLElement?e.current:t.getElementById(u):t.getElementById(u);null==s||s.focus()})),h=(0,d.useMemo)((()=>({close:m})),[m]),f=(0,d.useMemo)((()=>({open:0===c,close:m})),[c,m]),y={ref:a};return d.createElement(si.Provider,{value:l},d.createElement(ni.Provider,{value:h},d.createElement(so,{value:qa(c,{0:eo.Open,1:eo.Closed})},Ga({ourProps:y,theirProps:r,slot:f,defaultTag:li,name:"Disclosure"}))))})),di=Za((function(e,t){let s=Wo(),{id:r=`headlessui-disclosure-button-${s}`,...n}=e,[a,o]=ri("Disclosure.Button"),i=(0,d.useContext)(oi),l=null!==i&&i===a.panelId,c=(0,d.useRef)(null),u=ho(c,t,l?null:a.buttonRef);(0,d.useEffect)((()=>{if(!l)return o({type:2,buttonId:r}),()=>{o({type:2,buttonId:null})}}),[r,o,l]);let p=uo((e=>{var t;if(l){if(1===a.disclosureState)return;switch(e.key){case Go.Space:case Go.Enter:e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case Go.Space:case Go.Enter:e.preventDefault(),e.stopPropagation(),o({type:0})}})),m=uo((e=>{e.key===Go.Space&&e.preventDefault()})),h=uo((t=>{var s;Ko(t.currentTarget)||e.disabled||(l?(o({type:0}),null==(s=a.buttonRef.current)||s.focus()):o({type:0}))})),f=(0,d.useMemo)((()=>({open:0===a.disclosureState})),[a]),y=Zo(e,c);return Ga({ourProps:l?{ref:u,type:y,onKeyDown:p,onClick:h}:{ref:u,id:r,type:y,"aria-expanded":e.disabled?void 0:0===a.disclosureState,"aria-controls":a.linkedPanel?a.panelId:void 0,onKeyDown:p,onKeyUp:m,onClick:h},theirProps:n,slot:f,defaultTag:"button",name:"Disclosure.Button"})})),ui=Va.RenderStrategy|Va.Static,pi=Za((function(e,t){let s=Wo(),{id:r=`headlessui-disclosure-panel-${s}`,...n}=e,[a,o]=ri("Disclosure.Panel"),{close:i}=ai("Disclosure.Panel"),l=ho(t,a.panelRef,(e=>{o({type:e?4:5})}));(0,d.useEffect)((()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})})),[r,o]);let c=to(),u=null!==c?c===eo.Open:0===a.disclosureState,p=(0,d.useMemo)((()=>({open:0===a.disclosureState,close:i})),[a,i]),m={ref:l,id:r};return d.createElement(oi.Provider,{value:a.panelId},Ga({ourProps:m,theirProps:n,slot:p,defaultTag:"div",features:ui,visible:u,name:"Disclosure.Panel"}))})),mi=Object.assign(ci,{Button:di,Panel:pi});const hi=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),fi=({label:e,children:t})=>(0,Zt.jsx)(mi,{children:({open:s})=>(0,Zt.jsxs)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border",children:[(0,Zt.jsxs)(mi.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center",children:[(0,Zt.jsx)("div",{className:"yst-font-medium",children:e}),(0,Zt.jsx)(hi,{className:Ps()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",s?"yst-rotate-180":"")})]}),(0,Zt.jsx)(mi.Panel,{className:"yst-px-6",children:t})]})});function yi({title:e,id:t,isDismissable:s,children:n,className:a=""}){const i=(0,l.useSvgAria)(),{dismissNotice:c}=(0,r.useDispatch)(zo),d=(0,o.useCallback)((()=>{setTimeout((()=>{c(t)}),0)}),[c,t]);return(0,Zt.jsxs)("div",{id:t,className:Ps()("yst-p-3 yst-rounded-md yoast-general-page-notice",a),children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]",children:[(0,Zt.jsx)("span",{className:"yoast-icon"}),e&&(0,Zt.jsx)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),s&&(0,Zt.jsx)("div",{className:"yst-relative yst-ms-auto",children:(0,Zt.jsxs)("button",{type:"button",className:"notice-dismiss",onClick:d,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:(0,Vt.__)("Close","wordpress-seo")}),(0,Zt.jsx)(Un,{className:"yst-h-5 yst-w-5",...i})]})})]}),n&&(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:n}})]})}fi.propTypes={label:Yt().string.isRequired,children:Yt().node.isRequired},yi.propTypes={title:Yt().string.isRequired,id:Yt().string.isRequired,isDismissable:Yt().bool.isRequired,children:Yt().string.isRequired,className:Yt().string};const gi=()=>{const e=(0,r.useSelect)((e=>e(zo).selectActiveNotifications()),[]),t=(0,r.useSelect)((e=>e(zo).selectDismissedNotifications()),[]),s=t.length,n=(0,Vt._n)("hidden notification","hidden notifications",s,"wordpress-seo"),a={Icon:Ao,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Uo.Provider,{value:{...a},children:[(0,Zt.jsx)(Ho,{counts:e.length,title:(0,Vt.__)("Notifications","wordpress-seo"),children:0===e.length&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:(0,Vt.__)("No new notifications.","wordpress-seo")})}),(0,Zt.jsx)(qo,{items:e}),s>0&&(0,Zt.jsx)(fi,{label:`${s} ${n}`,children:(0,Zt.jsx)(qo,{className:"yst-pb-6",items:t})})]})})})},vi=()=>{const e=(0,r.useSelect)((e=>e(zo).selectActiveProblems()),[]),t=(0,r.useSelect)((e=>e(zo).selectDismissedProblems()),[]),s=t.length,n=(0,Vt._n)("hidden problem","hidden problems",s,"wordpress-seo"),a={Icon:$o,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,Zt.jsx)(l.Paper,{children:(0,Zt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Zt.jsxs)(Uo.Provider,{value:{...a},children:[(0,Zt.jsx)(Ho,{title:(0,Vt.__)("Problems","wordpress-seo"),counts:e.length,children:(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:e.length>0?(0,Vt.__)("We have detected the following issues that affect the SEO of your site.","wordpress-seo"):(0,Vt.__)("Good job! We could detect no serious SEO problems.","wordpress-seo")})}),(0,Zt.jsx)(qo,{items:e}),s>0&&(0,Zt.jsx)(fi,{label:`${s} ${n}`,children:(0,Zt.jsx)(qo,{className:"yst-pb-6",items:t})})]})})})},bi=(e,t,s)=>{const r=e.querySelector(t);return r&&(r.textContent=s),r},xi=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,n;return null===(r=(n=t(zo))[e])||void 0===r?void 0:r.call(n,...s)}),t),wi=({className:e=""})=>{const t=(0,o.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),s=xi("selectLink",[],"https://yoa.st/general-error-support"),r=vt();return(0,Zt.jsx)(l.Paper,{className:e,children:(0,Zt.jsx)(ts,{error:r,children:(0,Zt.jsx)(ts.HorizontalButtons,{handleRefreshClick:t,supportLink:s})})})};wi.propTypes={className:Yt().string};var Si={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Ei=function(e){var t=e.message,s=e["aria-live"];return u().createElement("div",{style:Si,role:"log","aria-live":s},t||"")};Ei.propTypes={};const _i=Ei;function ji(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Ci=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=ji(this,e.call.apply(e,[this].concat(a))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},ji(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.getDerivedStateFromProps=function(e,t){var s=t.oldPolitemessage,r=t.oldPoliteMessageId,n=t.oldAssertiveMessage,a=t.oldAssertiveMessageId,o=e.politeMessage,i=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return s!==o||r!==i?{politeMessage1:t.setAlternatePolite?"":o,politeMessage2:t.setAlternatePolite?o:"",oldPolitemessage:o,oldPoliteMessageId:i,setAlternatePolite:!t.setAlternatePolite}:n!==l||a!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},t.prototype.render=function(){var e=this.state,t=e.assertiveMessage1,s=e.assertiveMessage2,r=e.politeMessage1,n=e.politeMessage2;return u().createElement("div",null,u().createElement(_i,{"aria-live":"assertive",message:t}),u().createElement(_i,{"aria-live":"assertive",message:s}),u().createElement(_i,{"aria-live":"polite",message:r}),u().createElement(_i,{"aria-live":"polite",message:n}))},t}(d.Component);Ci.propTypes={};const ki=Ci;function Ri(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const Oi=u().createContext({announceAssertive:Ri,announcePolite:Ri}),Ni=function(e){function t(s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,s));return r.announcePolite=function(e,t){r.setState({announcePoliteMessage:e,politeMessageId:t||""})},r.announceAssertive=function(e,t){r.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},r.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:r.announcePolite,announceAssertive:r.announceAssertive}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.state,t=e.announcePoliteMessage,s=e.politeMessageId,r=e.announceAssertiveMessage,n=e.assertiveMessageId,a=e.updateFunctions;return u().createElement(Oi.Provider,{value:a},this.props.children,u().createElement(ki,{assertiveMessage:r,assertiveMessageId:n,politeMessage:t,politeMessageId:s}))},t}(d.Component);var Pi=s(3409),Ti=s.n(Pi);function Li(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Mi=function(e){function t(){var s,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];return s=r=Li(this,e.call.apply(e,[this].concat(a))),r.announce=function(){var e=r.props,t=e.message,s=e["aria-live"],n=e.announceAssertive,a=e.announcePolite;"assertive"===s&&n(t||"",Ti()()),"polite"===s&&a(t||"",Ti()())},Li(r,s)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.componentDidMount=function(){this.announce()},t.prototype.componentDidUpdate=function(e){this.props.message!==e.message&&this.announce()},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.clearOnUnmount,s=e.announceAssertive,r=e.announcePolite;!0!==t&&"true"!==t||(s(""),r(""))},t.prototype.render=function(){return null},t}(d.Component);Mi.propTypes={};const Ai=Mi;var Ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},Di=function(e){return u().createElement(Oi.Consumer,null,(function(t){return u().createElement(Ai,Ii({},t,e))}))};Di.propTypes={};const Fi=Di;const zi=({children:e,title:t,description:s=null})=>{const r=(0,Vt.sprintf)(/* translators: 1: Settings' section title, 2: Yoast SEO */ (0,Vt.__)("%1$s Dashboard - %2$s","wordpress-seo"),t,"Yoast SEO");return(0,Zt.jsxs)(Ni,{children:[(0,Zt.jsx)(Fi,{message:r,"aria-live":"polite"}),(0,Zt.jsx)(Hs.Helmet,{children:(0,Zt.jsx)("title",{children:"Dashboard"})}),(0,Zt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Zt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:t}),s&&(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:s})]})}),e]})};var Ui,Bi;function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},qi.apply(this,arguments)}zi.propTypes={children:Yt().node.isRequired,title:Yt().string.isRequired,description:Yt().node};const $i=e=>d.createElement("svg",qi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Ui||(Ui=d.createElement("path",{d:"M73 405.26a66.79 66.79 0 0 1-6.54-1.7 64.75 64.75 0 0 1-6.28-2.31c-1-.42-2-.89-3-1.37-1.49-.72-3-1.56-4.77-2.56-1.5-.88-2.71-1.64-3.83-2.39-.9-.61-1.8-1.26-2.68-1.92a70.154 70.154 0 0 1-5.08-4.19 69.21 69.21 0 0 1-8.4-9.17c-.92-1.2-1.68-2.25-2.35-3.24a70.747 70.747 0 0 1-3.44-5.64 68.29 68.29 0 0 1-8.29-32.55V142.13a68.26 68.26 0 0 1 8.29-32.55c1-1.92 2.21-3.82 3.44-5.64s2.55-3.58 4-5.27a69.26 69.26 0 0 1 14.49-13.25C50.37 84.19 52.27 83 54.2 82A67.59 67.59 0 0 1 73 75.09a68.75 68.75 0 0 1 13.75-1.39h169.66L263 55.39H86.75A86.84 86.84 0 0 0 0 142.13v196.09A86.84 86.84 0 0 0 86.75 425h11.32v-18.35H86.75A68.75 68.75 0 0 1 73 405.26zM368.55 60.85l-1.41-.53-6.41 17.18 1.41.53a68.06 68.06 0 0 1 8.66 4c1.93 1 3.82 2.2 5.65 3.43A69.19 69.19 0 0 1 391 98.67c1.4 1.68 2.72 3.46 3.95 5.27s2.39 3.72 3.44 5.64a68.29 68.29 0 0 1 8.29 32.55v264.52H233.55l-.44.76c-3.07 5.37-6.26 10.48-9.49 15.19L222 425h203V142.13a87.2 87.2 0 0 0-56.45-81.28z"})),Bi||(Bi=d.createElement("path",{stroke:"#000",strokeMiterlimit:10,strokeWidth:3.81,d:"M119.8 408.28v46c28.49-1.12 50.73-10.6 69.61-29.58 19.45-19.55 36.17-50 52.61-96L363.94 1.9H305l-98.25 272.89-48.86-153h-54l71.7 184.18a75.67 75.67 0 0 1 0 55.12c-7.3 18.68-20.25 40.66-55.79 47.19z"}))),Hi=()=>{const{handleDismiss:e}=(0,l.useToastContext)(),t=(0,l.useSvgAria)(),s=xi("selectAdminLink",[],"?page=wpseo_page_settings#/llms-txt"),r=(0,o.useCallback)((async()=>{var t;e(),null===(t=sessionStorage)||void 0===t||t.setItem("yoast-highlight-setting","llm-txt"),window.location.href=s}),[s]);return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:[(0,Zt.jsx)(l.Button,{size:"small",variant:"tertiary",onClick:e,children:(0,Vt.__)("Dismiss","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{size:"small",className:"yst-gap-1",onClick:r,children:[(0,Vt.__)("Show me","wordpress-seo"),(0,Zt.jsx)(is,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180",...t})]})]})},Vi=()=>{const{setOptInNotificationSeen:e,hideOptInNotification:t}=(0,r.useDispatch)(zo),s=(0,l.useSvgAria)(),[n,a,i]=(0,l.useToggleState)(!1);return(0,o.useEffect)((()=>(e("wpseo_seen_llm_txt_opt_in_notification"),a(),()=>{t("wpseo_seen_llm_txt_opt_in_notification")})),[]),(0,Zt.jsx)(l.Toast,{id:"wpseo_seen_llm_txt_opt_in_notification",isVisible:n,className:"yst-w-96",position:"bottom-left",setIsVisible:i,onDismiss:t,children:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-3",children:[(0,Zt.jsx)("div",{className:"yst-flex-shrink-0",children:(0,Zt.jsx)($i,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...s})}),(0,Zt.jsxs)("div",{className:"yst-flex-1",children:[(0,Zt.jsx)(l.Toast.Title,{title:(0,Vt.__)("New: Prepare your site for AI-driven discovery!","wordpress-seo"),className:"yst-mb-1"}),(0,Zt.jsx)("p",{children:(0,Vt.__)("Automatically generate an llms.txt file that highlights key content for AI systems.","wordpress-seo")})]}),(0,Zt.jsx)("div",{children:(0,Zt.jsx)(l.Toast.Close,{dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo")})})]}),(0,Zt.jsx)(Hi,{})]})})},Wi=((0,Vt.__)("E.g. https://www.facebook.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.instagram.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.linkedin.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.myspace.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.pinterest.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.soundcloud.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.tumblr.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.twitter.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.youtube.com/yoast","wordpress-seo"),(0,Vt.__)("E.g. https://www.wikipedia.com/yoast","wordpress-seo"),e=>`error-${e}`),Gi=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":Wi(e)}:{};function Ki({active:e,selected:t}){return Ps()("yst-relative yst-cursor-default yst-select-none yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",t&&"yst-bg-primary-500 yst-text-white",e&&!t&&"yst-bg-primary-200 yst-text-slate-700",!e&&!t&&"yst-text-slate-700")}function Yi(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function Zi(e,t){let s=(0,c.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=Yi(s,2),s.companyOrPerson=t.payload,s.companyOrPersonLabel=s.companyOrPersonOptions.filter((e=>e.value===t.payload)).pop().label,s;case"CHANGE_COMPANY_NAME":return s=Yi(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=Yi(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=Yi(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=Yi(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=Yi(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=Yi(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=Yi(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=Yi(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=Yi(s,3),s.socialProfiles[t.payload.socialMedium]=t.payload.value,s.errorFields=s.errorFields.filter((e=>"facebookUrl"===t.payload.socialMedium?"facebook_site"!==e:"twitterUsername"!==t.payload.socialMedium||"twitter_site"!==e)),s;case"CHANGE_OTHERS_SOCIAL_PROFILE":return s=Yi(s,3),s.socialProfiles.otherSocialUrls[t.payload.index]=t.payload.value,s.errorFields=s.errorFields.filter((e=>e!==`other_social_urls-${t.payload.index}`)),s;case"ADD_OTHERS_SOCIAL_PROFILE":return s=Yi(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=Yi(s,3),s.socialProfiles.otherSocialUrls.splice(t.payload.index,1),s.errorFields=(r=s.errorFields,n=t.payload.index,r.map((e=>{const t=parseInt(e.replace("other_social_urls-",""),10);return t===n?"remove":t>n?"other_social_urls-"+(t-1):e})).filter((e=>"remove"!==e))),s;case"SET_ERROR_FIELDS":return s.errorFields=t.payload,s;case"SET_STEP_ERROR":return s.stepErrors[t.payload.step]=t.payload.message,s;case"REMOVE_STEP_ERROR":return s.stepErrors=(0,c.pickBy)(s.stepErrors,((e,s)=>s!==t.payload)),s;case"SET_TRACKING":return s=Yi(s,4),s.tracking=t.payload,s;default:return s}var r,n}const Ji=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z",clipRule:"evenodd"}))})),Qi=({items:e,onAddProfile:t,onRemoveProfile:s,onChangeProfile:r,errorFields:n=[],fieldType:a,addButtonChildren:i=(0,Vt.__)("Add another profile","wordpress-seo")})=>{const c=(0,o.useCallback)((e=>{s(parseInt(e.currentTarget.dataset.index,10))}),[s]);return(0,Zt.jsxs)("div",{children:[e.map(((e,t)=>(0,Zt.jsx)("div",{children:(0,Zt.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4",children:[(0,Zt.jsx)(a,{className:"yst-grow",label:(0,Vt.__)("Other social profile","wordpress-seo"),id:`social-input-other-url-${t}`,value:e,socialMedium:"other",index:t,onChange:r,placeholder:(0,Vt.__)("E.g. https://social-platform.com/yoast","wordpress-seo"),feedback:{type:"error",isVisible:n.includes("other_social_urls-"+t),message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")]}}),(0,Zt.jsxs)("button",{type:"button",className:"yst-mt-[27.5px] yst-ml-2 yst-p-3 yst-text-slate-500 yst-rounded-md hover:yst-text-primary-500 focus:yst-text-primary-500 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-primary-500 yst-no-underline;",id:`remove-profile-${t}`,"data-index":t,onClick:c,children:[(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("Delete item","wordpress-seo")}),(0,Zt.jsx)(Bn,{className:"yst-w-5 yst-h-5"})]})]})},`url-${t}`))),(0,Zt.jsxs)(l.Button,{id:"add-profile",variant:"secondary",className:"yst-items-center yst-mt-8",onClick:t,"data-hiive-event-name":"clicked_add_profile",children:[(0,Zt.jsx)(Ji,{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i]})]})};Qi.propTypes={fieldType:Yt().elementType.isRequired,items:Yt().array.isRequired,onAddProfile:Yt().func.isRequired,onRemoveProfile:Yt().func.isRequired,onChangeProfile:Yt().func.isRequired,errorFields:Yt().array,addButtonChildren:Yt().node};const Xi=Qi,el=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),tl=({texts:e,id:t,as:s="p",...r})=>{const n=(0,o.useMemo)((()=>(0,c.last)(e)),[e]);return(0,Zt.jsx)(s,{id:t,...r,children:e.map(((e,s)=>(0,Zt.jsxs)(o.Fragment,{children:[e,n!==e&&(0,Zt.jsx)("br",{})]},`${t}-text-${s}`)))})};tl.propTypes={texts:Yt().arrayOf(Yt().string).isRequired,id:Yt().string.isRequired,as:Yt().oneOfType([Yt().string,Yt().elementType])};const sl=tl;function rl({hasError:e=!1,hasSuccess:t=!1}){return e?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(el,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})}):t?(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Zt.jsx)(Ls,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})}):null}function nl({className:e="",id:t,label:s="",description:r=null,value:n="",onChange:a,placeholder:i="",feedback:l={message:[],isVisible:!1},type:c="text",...d}){const u=c||"text",p=(0,o.useMemo)((()=>l.isVisible&&"error"===l.type),[l.isVisible,l.type]),m=(0,o.useMemo)((()=>l.isVisible&&"success"===l.type),[l.isVisible,l.type]);return(0,Zt.jsxs)("div",{className:e,children:[s&&(0,Zt.jsx)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",htmlFor:t,children:s}),(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsx)("input",{id:t,type:u,value:n,className:Ps()("yst-block yst-w-full yst-h-[40px] yst-input focus:yst-ring-1",{"yst-border-red-300 yst-text-red-900 focus:yst-ring-red-500 focus:yst-border-red-500":p,"yst-border-emerald-600 yst-text-slate-700 focus:yst-ring-emerald-600 focus:yst-border-emerald-600":m,"yst-text-slate-700 yst-border-slate-300 focus:yst-ring-primary-500 focus:yst-border-primary-500":!p&&!m}),onChange:a,placeholder:i,...Gi(t,l),...d}),(0,Zt.jsx)(rl,{hasError:p,hasSuccess:m})]}),l.isVisible&&(0,Zt.jsx)(sl,{id:`${p?"error-":"success-"}${t}`,className:Ps()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":m}),texts:l.message}),r]})}function al({id:e,onChange:t,socialMedium:s="",isDisabled:r=!1,...n}){const a=(0,o.useCallback)((e=>{t(e.target.value,"other"===s?n.index:s)}),[s,n.index]);return(0,Zt.jsx)(nl,{onChange:a,disabled:r,id:e,...n})}function ol({socialProfiles:e,errorFields:t=[],dispatch:s}){const r=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_SOCIAL_PROFILE",payload:{socialMedium:t,value:e}})}),[]),n=(0,o.useCallback)(((e,t)=>{s({type:"CHANGE_OTHERS_SOCIAL_PROFILE",payload:{index:t,value:e}})}),[]),a=(0,o.useCallback)((()=>{s({type:"ADD_OTHERS_SOCIAL_PROFILE",payload:{value:""}})}),[]),i=(0,o.useCallback)((e=>{s({type:"REMOVE_OTHERS_SOCIAL_PROFILE",payload:{index:e}})}),[]);return(0,Zt.jsx)(il,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:n,onAddProfileHandler:a,onRemoveProfileHandler:i,errorFields:t})}function il({socialProfiles:e,onChangeHandler:t,onChangeOthersHandler:s,onAddProfileHandler:r,onRemoveProfileHandler:n,errorFields:a}){return(0,Zt.jsxs)("div",{id:"social-input-section",children:[(0,Zt.jsx)(al,{className:"yst-mt-4",label:(0,Vt.__)("Facebook","wordpress-seo"),id:"social-input-facebook-url",value:e.facebookUrl,socialMedium:"facebookUrl",onChange:t,placeholder:(0,Vt.__)("E.g. https://facebook.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL.","wordpress-seo")],isVisible:a.includes("facebook_site"),type:"error"}}),(0,Zt.jsx)(al,{className:"yst-mt-4",label:(0,Vt.__)("X","wordpress-seo"),id:"social-input-twitter-url",value:e.twitterUsername,socialMedium:"twitterUsername",onChange:t,placeholder:(0,Vt.__)("E.g. https://x.com/yoast","wordpress-seo"),feedback:{message:[(0,Vt.__)("Could not save this value. Please check the URL or username.","wordpress-seo")],isVisible:a.includes("twitter_site"),type:"error"}}),(0,Zt.jsx)(Xi,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:n,onChangeProfile:s,errorFields:a,fieldType:al})]})}rl.propTypes={hasError:Kt.PropTypes.bool,hasSuccess:Kt.PropTypes.bool},nl.propTypes={className:Kt.PropTypes.string,id:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string,description:Kt.PropTypes.node,value:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,placeholder:Kt.PropTypes.string,feedback:Kt.PropTypes.shape({type:Kt.PropTypes.string,message:Kt.PropTypes.array,isVisible:Kt.PropTypes.bool}),type:Kt.PropTypes.string},al.propTypes={id:Yt().string.isRequired,onChange:Yt().func.isRequired,socialMedium:Yt().string,isDisabled:Yt().bool},ol.propTypes={socialProfiles:Yt().object.isRequired,dispatch:Yt().func.isRequired,errorFields:Yt().array},il.propTypes={socialProfiles:Yt().object.isRequired,onChangeHandler:Yt().func.isRequired,onChangeOthersHandler:Yt().func.isRequired,onAddProfileHandler:Yt().func.isRequired,onRemoveProfileHandler:Yt().func.isRequired,errorFields:Yt().array.isRequired};const ll=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z",clipRule:"evenodd"}))})),cl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z",clipRule:"evenodd"}))})),dl=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))}));var ul=s(8133);function pl({type:e="info",children:t,className:s=""}){let r,n;switch(e){case"info":r=(0,Zt.jsx)(ll,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-blue-500"}),n="yst-bg-blue-100 yst-text-blue-800";break;case"warning":r=(0,Zt.jsx)(cl,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-yellow-500"}),n="yst-bg-yellow-100 yst-text-yellow-800";break;case"error":r=(0,Zt.jsx)(dl,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-red-500"}),n="yst-bg-red-100 yst-text-red-800";break;case"success":r=(0,Zt.jsx)(Ls,{"aria-hidden":"true",className:"yst-flex-shrink-0 yst-w-5 yst-h-5 yst-text-emerald-600"}),n="yst-bg-green-100 yst-text-green-800"}return(0,Zt.jsxs)("div",{className:Ps()("yst-flex yst-p-4 yst-rounded-md",n,s),children:[r,(0,Zt.jsx)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm",children:t})]})}function ml({id:e,isVisible:t,expandDuration:s=400,type:r="info",children:n,className:a=""}){const[i,l]=(0,o.useState)(t?"yst-opacity-100":"yst-opacity-0"),c=(0,o.useCallback)((()=>{l("yst-opacity-100")}),[]);return(0,Zt.jsx)(ul.Z,{id:e,height:t?"auto":0,easing:"linear",duration:s,onAnimationEnd:c,children:(0,Zt.jsx)(pl,{type:r,className:Ps()("yst-transition-opacity yst-duration-300 yst-mt-4",i,a),children:n})})}function hl({state:e,dispatch:t,setErrorFields:s}){const r=(0,Vt.__)("If you select a Person to represent this site, we will use the social profiles from the selected user's profile page.","wordpress-seo"),n=Wt((0,Vt.sprintf)( // translators: %1$s is replaced by the selected person's username. (0,Vt.__)("You have selected the user %1$s as the person this site represents.","wordpress-seo"),`<b>${e.personName}</b>`),{b:(0,Zt.jsx)("b",{})}),a=Wt((0,Vt.sprintf)( // translators: %1$s and %2$s is replaced by a link to the selected person's profile page. (0,Vt.__)("You can %1$supdate or add social profiles to this user profile%2$s.","wordpress-seo"),"<a>","</a>"),{a:(0,Zt.jsx)("a",{id:"yoast-configuration-person-social-profiles-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",e.personId),target:"_blank",rel:"noopener noreferrer","data-hiive-event-name":"clicked_update_or_add_profile | social profiles"})}),i=(0,Vt.__)("You're not allowed to edit the social profiles of this user. Please ask this user or an admin to do this.","wordpress-seo");return["company","emptyChoice"].includes(e.companyOrPerson)?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Vt.__)("Fantastic work! Add your organization's social media accounts below. This allows us to fine-tune the metadata for these platforms.","wordpress-seo")}),(0,Zt.jsx)(ol,{socialProfiles:e.socialProfiles,dispatch:t,errorFields:e.errorFields,setErrorFields:s})]}):0===e.personId?(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:r}),(0,Zt.jsx)(pl,{type:"info",className:"yst-mt-5",children: /* translators: please note that "Site representation" here refers to the name of a step in the first-time configuration, * so this occurrence needs to be translated in the same manner as that step's heading. */ (0,Vt.__)("Please select a user in the Site representation step.","wordpress-seo")})]}):(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsxs)("p",{children:[n," ",e.canEditUser?a:i]})})}pl.propTypes={type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string},ml.propTypes={id:Yt().string.isRequired,isVisible:Yt().bool.isRequired,type:Yt().oneOf(["info","warning","error","success"]),children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,expandDuration:Yt().number,className:Yt().string},hl.propTypes={state:Yt().object.isRequired,dispatch:Yt().func.isRequired,setErrorFields:Yt().func.isRequired};const fl={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},yl={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},{slideDuration:gl,delayUntilStepFaded:vl}=yl,bl=`yst-transition-opacity ${gl} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function xl(e){return`${bl} ${e?"yst-opacity-100":`${vl} yst-opacity-0`}`}function wl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-primary-500 ${xl(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"})})}function Sl({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${xl(e)}`,children:(0,Zt.jsx)(Os,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"})})}function El({isVisible:e=!0}){return(0,Zt.jsx)("span",{className:`yst-bg-white yst-border-slate-300 ${xl(e)}`,children:(0,Zt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"})})}function _l({activationDelay:e=0,deactivationDelay:t=0,isFinished:s}){const{activeStepIndex:r,stepIndex:n,lastStepIndex:a}=Al(),i=n===a,l=r===n,[c,d]=(0,o.useState)((()=>!!l&&!i));return(0,o.useEffect)((()=>{if(l){const t=setTimeout((()=>{d(!0)}),e);return()=>clearTimeout(t)}const s=setTimeout((()=>{d(!1)}),t);return()=>clearTimeout(s)}),[l,i,e,t]),(0,Zt.jsxs)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full",children:[(0,Zt.jsx)(El,{isVisible:!0}),(0,Zt.jsx)(Sl,{isVisible:s}),(0,Zt.jsx)(wl,{isVisible:c&&!i})]})}function jl(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function Cl({name:e,description:t="",isFinished:s,children:r=null}){const{stepIndex:n,activeStepIndex:a,lastStepIndex:i}=Al(),l=a===n,c=i===n,[d,u]=(0,o.useState)(jl(s,l,c));return(0,o.useEffect)((()=>{if(l){const e=jl(s,l,c),t=setTimeout((()=>u(e)),fl.delayBeforeOpening);return()=>clearTimeout(t)}const e=jl(s,l,c);u(e)}),[a,s,c,jl]),(0,Zt.jsxs)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":l?"step":null,children:[(0,Zt.jsx)("span",{className:"yst-flex yst-items-center","aria-hidden":l?"true":null,children:(0,Zt.jsx)(_l,{activationDelay:fl.delayBeforeOpening,deactivationDelay:0,isFinished:s})}),(0,Zt.jsxs)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col",children:[(0,Zt.jsx)("span",{className:`yst-transition-colors yst-duration-500 yst-text-xs yst-font-[650] yst-tracking-wide yst-uppercase ${d}`,children:e}),t&&(0,Zt.jsx)("span",{className:"yst-text-sm yst-text-slate-600",children:t})]}),r]})}wl.propTypes={isVisible:Yt().bool},Sl.propTypes={isVisible:Yt().bool},El.propTypes={isVisible:Yt().bool},_l.propTypes={isFinished:Yt().bool.isRequired,activationDelay:Yt().number,deactivationDelay:Yt().number},Cl.propTypes={name:Yt().string.isRequired,isFinished:Yt().bool.isRequired,description:Yt().string,children:Yt().node};const{slideDuration:kl,delayBeforeOpening:Rl,delayBeforeFadingIn:Ol,delayBeforeClosing:Nl}=fl,{fadeDuration:Pl,delayUntilStepFaded:Tl,slideDuration:Ll}=yl,Ml=(0,o.createContext)();function Al(){const e=(0,o.useContext)(Ml);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function Il({beforeGo:e=null,children:t=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Continue","wordpress-seo")}),destination:s=1,...r}){const{stepIndex:n,setActiveStepIndex:a,lastStepIndex:i}=Al(),c=(0,o.useCallback)((()=>{a("string"==typeof s?"last"===s?i:0:n+s)}),[n,i,a,s]),d=(0,o.useCallback)((async()=>{let t=!0;e&&(t=!1,t=await e()),t&&c()}),[c,e]);return(0,Zt.jsx)(l.Button,{onClick:d,...r,children:t})}function Dl({children:e=(0,Zt.jsx)(o.Fragment,{children:(0,Vt.__)("Edit","wordpress-seo")}),...t}){const{stepIndex:s,setActiveStepIndex:r}=Al(),n=(0,o.useCallback)((()=>{r(s)}),[r,s]);return(0,Zt.jsx)(l.Button,{onClick:n,variant:"secondary",size:"small",...t,children:e})}function Fl({children:e}){const{lastStepIndex:t,stepIndex:s,activeStepIndex:r}=Al();return(0,Zt.jsxs)(o.Fragment,{children:[s!==t&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("div",{className:"yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-h-full yst-bg-slate-300 yst--bottom-6","aria-hidden":"true"}),(0,Zt.jsx)("div",{className:Ps()("yst-h-12 yst-transition-transform yst-ease-linear",Tl,Ll,s<r?"yst-scale-y-1":"yst-scale-y-0","yst-origin-top yst--ms-px yst-absolute yst-start-4 yst-w-0.5 yst-bg-primary-500 yst-top-8"),"aria-hidden":"true"})]}),e]})}function zl({id:e,message:t,className:s=""}){return(0,Zt.jsx)(ml,{id:e,type:"error",isVisible:!!t,className:s,children:(0,Vt.sprintf)(/* translators: %1$s expands to the error message returned by the server */ (0,Vt.__)("An error has occurred: %1$s","wordpress-seo"),t)})}function Ul({children:e}){const{activeStepIndex:t,stepIndex:s}=Al(),r=t===s,[n,a]=(0,o.useState)(r?"auto":0),[i,l]=(0,o.useState)(!r);return(0,o.useEffect)((()=>{r?(a("auto"),setTimeout((()=>l(!1)),Ol)):(l(!0),a(0))}),[r]),(0,Zt.jsx)(o.Fragment,{children:(0,Zt.jsx)(ul.Z,{id:`content-${s}`,delay:0===n?Nl:Rl,height:n,easing:"ease-in-out",duration:kl,children:(0,Zt.jsx)("div",{className:Ps()("yst-transition-opacity yst-relative yst-ms-12 yst-mt-4 yst-pb-1 yst-max-w-xl",Pl,i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"),children:e})})})}function Bl({children:e,setActiveStepIndex:t,activeStepIndex:s,isStepperFinished:r=!1}){return(0,Zt.jsx)("ol",{children:e.map(((n,a)=>(0,Zt.jsx)("li",{className:(a===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none",children:(0,Zt.jsx)(Ml.Provider,{value:{stepIndex:a,activeStepIndex:s,setActiveStepIndex:t,lastStepIndex:e.length-1,isStepperFinished:r},children:n})},`${n.props.name}-${a}`)))})}Il.propTypes={beforeGo:Yt().func,children:Yt().node,destination:Yt().oneOfType([Yt().number,Yt().oneOf(["first","last"])])},Dl.propTypes={children:Yt().node},Fl.propTypes={children:Yt().node.isRequired},zl.propTypes={id:Yt().string.isRequired,message:Yt().string.isRequired,className:Yt().string},Ul.propTypes={children:Yt().node.isRequired},Bl.propTypes={setActiveStepIndex:Yt().func.isRequired,activeStepIndex:Yt().number.isRequired,isStepperFinished:Yt().bool,children:Yt().node.isRequired},Fl.Content=Ul,Fl.Error=zl,Fl.Header=Cl,Fl.GoButton=Il,Fl.EditButton=Dl;const ql={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},$l={[ql.optimizeSeoData]:"data optimization",[ql.siteRepresentation]:"site representation",[ql.socialProfiles]:"social profiles",[ql.personalPreferences]:"personal preferences"};function Hl({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(Fl.GoButton,{id:`button-${e}-continue`,variant:"primary",className:t,destination:1,beforeGo:s,"data-hiive-event-name":`clicked_continue | ${$l[e]}`,...n,children:r})}function Vl({stepId:e,additionalClasses:t="",isVisible:s=!0,beforeGo:r=null,children:n=null,...a}){const o=`yst-transition-opacity ${yl.slideDuration} yst-ease-out ${s?"yst-opacity-100":`${yl.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,Zt.jsx)(Fl.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:Ps()(o,t),destination:0,beforeGo:r,"data-hiive-event-name":`clicked_edit | ${$l[e]}`,...a,children:n})}function Wl({stepId:e,additionalClasses:t="",beforeGo:s=null,children:r=null,...n}){return(0,Zt.jsx)(Fl.GoButton,{id:`button-${e}-back`,variant:"secondary",className:t,destination:-1,beforeGo:s,"data-hiive-event-name":`clicked_go_back | ${$l[e]}`,...n,children:r})}function Gl({stepId:e,beforeContinue:t=null,continueLabel:s=(0,Vt.__)("Continue","wordpress-seo"),beforeBack:r=null,backLabel:n=(0,Vt.__)("Go back","wordpress-seo")}){return(0,Zt.jsxs)("div",{className:"yst-mt-12",children:[(0,Zt.jsx)(Hl,{stepId:e,beforeGo:t,children:s}),(0,Zt.jsx)(Wl,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:r,children:n})]})}function Kl({stepId:e,stepperFinishedOnce:t,saveFunction:s,setEditState:r}){const n=(0,o.useCallback)((async()=>{const e=await s();return r(!e),e}),[s]);return t?(0,Zt.jsx)(Fl.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${$l[e]}`,children:(0,Vt.__)("Save changes","wordpress-seo")}):(0,Zt.jsx)(Gl,{stepId:e,beforeContinue:s,continueLabel:(0,Vt.__)("Save and continue","wordpress-seo")})}Hl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},Vl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,isVisible:Yt().bool,beforeGo:Yt().func,children:Yt().node},Wl.propTypes={stepId:Yt().string.isRequired,additionalClasses:Yt().string,beforeGo:Yt().func,children:Yt().node},Gl.propTypes={stepId:Yt().string.isRequired,beforeContinue:Yt().func,continueLabel:Yt().string,beforeBack:Yt().func,backLabel:Yt().string},Kl.propTypes={stepId:Yt().string.isRequired,stepperFinishedOnce:Yt().bool.isRequired,saveFunction:Yt().func.isRequired,setEditState:Yt().func.isRequired};const Yl=window.yoast.helpers;class Zl extends Error{constructor(e,t,s,r,n){super(e),this.name="RequestError",this.url=t,this.method=s,this.statusCode=r,this.stackTrace=n}}const{stripTagsFromHtmlString:Jl}=Yl.strings,Ql=["a","p"];function Xl({title:e,value:t=""}){return t?(0,Zt.jsxs)("p",{children:[(0,Zt.jsx)("strong",{children:e}),(0,Zt.jsx)("br",{}),t]}):null}function ec({title:e,value:t=""}){return t?(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:e}),(0,Zt.jsx)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4",children:t})]}):null}function tc({message:e,error:t,className:s=""}){return(0,Zt.jsxs)(pl,{type:"error",className:s,children:[(0,Zt.jsx)("div",{dangerouslySetInnerHTML:{__html:Jl(e,Ql)}}),(0,Zt.jsxs)("details",{children:[(0,Zt.jsx)("summary",{children:(0,Vt.__)("Error details","wordpress-seo")}),(0,Zt.jsxs)("div",{className:"yst-mt-2",children:[(0,Zt.jsx)(Xl,{title:(0,Vt.__)("Request URL","wordpress-seo"),value:t.url}),(0,Zt.jsx)(Xl,{title:(0,Vt.__)("Request method","wordpress-seo"),value:t.method}),(0,Zt.jsx)(Xl,{title:(0,Vt.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,Zt.jsx)(Xl,{title:(0,Vt.__)("Error message","wordpress-seo"),value:t.message}),(0,Zt.jsx)(ec,{title:(0,Vt.__)("Response","wordpress-seo"),value:t.parseString}),(0,Zt.jsx)(ec,{title:(0,Vt.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}Xl.propTypes={title:Yt().string.isRequired,value:Yt().any},ec.propTypes={title:Yt().string.isRequired,value:Yt().string},tc.propTypes={message:Yt().string.isRequired,error:Yt().oneOfType([Yt().instanceOf(Error),Yt().instanceOf(Zl)]).isRequired,className:Yt().string};class sc extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const rc="idle",nc="in_progress",ac="errored",oc="completed";class ic extends o.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:rc,processed:0,error:null,amount:parseInt(this.settings.amount,10),firstTime:"1"===this.settings.firstTime},this.startIndexing=this.startIndexing.bind(this),this.stopIndexing=this.stopIndexing.bind(this)}async doIndexingRequest(e,t){const s=await fetch(e,{method:"POST",headers:{"X-WP-Nonce":t}}),r=await s.text();let n;try{n=JSON.parse(r)}catch(e){throw new sc("Error parsing the response to JSON.",r)}if(!s.ok){const t=n.data?n.data.stackTrace:"";throw new Zl(n.message,e,"POST",s.status,t)}return n}async doPreIndexingAction(e){"function"==typeof this.props.preIndexingActions[e]&&await this.props.preIndexingActions[e](this.settings)}async doPostIndexingAction(e,t){"function"==typeof this.props.indexingActions[e]&&await this.props.indexingActions[e](t.objects,this.settings)}async doIndexing(e){let t=this.settings.restApi.root+this.settings.restApi.indexing_endpoints[e];for(;this.isState(nc)&&!1!==t;)try{await this.doPreIndexingAction(e);const s=await this.doIndexingRequest(t,this.settings.restApi.nonce);await this.doPostIndexingAction(e,s),(0,o.flushSync)((()=>{this.setState((e=>({processed:e.processed+s.objects.length,firstTime:!1})))})),t=s.next_url}catch(e){(0,o.flushSync)((()=>{this.setState({state:ac,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(ac)||this.isState(rc)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:nc},this.index)}completeIndexing(){this.setState({state:oc})}stopIndexing(){this.setState((e=>({state:rc,processed:0,amount:e.amount-e.processed})))}componentDidMount(){var e,t;if(!this.settings.disabled&&(this.props.indexingStateCallback(0===this.state.amount?"already_done":this.state.state),"true"===new URLSearchParams(window.location.search).get("start-indexation"))){const s=function(e,t){const s=new URL(e);return s.searchParams.delete("start-indexation"),s.href}(window.location.href);e=document.title,t=s,window.history.pushState(null,e,t),this.startIndexing()}}componentDidUpdate(e,t){this.state.state!==t.state&&this.props.indexingStateCallback(this.state.state)}isState(e){return this.state.state===e}renderFirstIndexationNotice(){return(0,Zt.jsx)(pl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("This feature includes and replaces the Text Link Counter and Internal Linking Analysis","wordpress-seo")})}renderStartButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.startIndexing,id:"indexation-data-optimization","data-hiive-event-name":"clicked_start_data_optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}renderStopButton(){return(0,Zt.jsx)(l.Button,{variant:"secondary",onClick:this.stopIndexing,children:(0,Vt.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("p",{children:(0,Zt.jsx)(l.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}),(0,Zt.jsx)(pl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("SEO data optimization is disabled for non-production environments.","wordpress-seo")})]})}renderProgressBar(){let e=0;return this.isState(oc)&&(e=100),this.isState(nc)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,Zt.jsx)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4",children:(0,Zt.jsx)("div",{className:"yst-transition-[width] yst-ease-linear yst-bg-primary-500 yst-h-2.5 yst-rounded-full",style:{width:`${e}%`}})})}renderCaption(){return(0,Zt.jsx)(ul.Z,{id:"optimization-in-progress-text",height:this.isState(nc)?"auto":0,easing:"linear",duration:300,children:(0,Zt.jsx)("p",{className:"yst-text-sm yst-italic yst-mb-4 yst-mt-4",children:(0,Vt.__)("SEO data optimization is running… You can safely move on to the next steps of this configuration.","wordpress-seo")})})}renderErrorAlert(){return(0,Zt.jsx)(tc,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,Zt.jsxs)("div",{className:"yst-relative",children:[this.props.children,(0,Zt.jsxs)(Lo,{unmount:!1,show:this.isState(ac)||this.isState(nc)||this.isState(rc)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[this.renderProgressBar(),this.isState(ac)&&this.renderErrorAlert(),this.isState(nc)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(rc)&&this.state.firstTime&&this.renderFirstIndexationNotice()]})]})}}ic.propTypes={indexingActions:Yt().object,preIndexingActions:Yt().object,indexingStateCallback:Yt().func,children:Yt().node},ic.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const lc=ic;function cc({indexingStateCallback:e,indexingState:t,isStepperFinished:s=!1}){return(0,Zt.jsx)(lc,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e,children:(0,Zt.jsx)(Lo,{unmount:!1,show:["completed","already_done"].includes(t),enter:"yst-transition-opacity yst-duration-1000",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:(0,Zt.jsx)(pl,{type:"success",children:"already_done"!==t||s?(0,Vt.__)("We've successfully analyzed your site & optimized your SEO data!","wordpress-seo"):(0,Vt.__)("We've already successfully analyzed your site. You can move on to the next step.","wordpress-seo")})})})}function dc({children:e,className:t=""}){return(0,Zt.jsx)(l.Paper,{className:Ps()("yst-flex yst-px-4 yst-py-4 yst-rounded-md yst-max-w-xl yst-border yst-border-primary-200",t),children:(0,Zt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-font-normal",children:e})})}cc.propTypes={indexingStateCallback:Yt().func.isRequired,indexingState:Yt().string.isRequired,isStepperFinished:Yt().bool},dc.propTypes={children:Yt().oneOfType([Yt().arrayOf(Yt().node),Yt().node]).isRequired,className:Yt().string};const uc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"}))})),pc=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{d:"M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z"}),d.createElement("path",{d:"M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z"}))}));function mc({state:e,indexingState:t,setIndexingState:s,showRunIndexationAlert:r=!1,isStepperFinished:n=!1}){return(0,Zt.jsxs)("div",{className:"yst-@container",children:[(0,Zt.jsxs)("div",{className:"yst-mb-4",children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line",children:(0,Vt.__)("Let's start by running the SEO data optimization. That means we'll scan your site and create a database with optimized SEO data. It won't change any content or settings on your site and you don't need to do anything, just hit start!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-sm yst-whitespace-pre-line yst-mt-4",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ (0,Vt.__)("%1$sNote%2$s: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo"),"<span>","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]}),(0,Zt.jsx)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container",children:(0,Zt.jsx)(cc,{indexingStateCallback:s,indexingState:t,isStepperFinished:n})}),(0,Zt.jsx)(ml,{id:"indexation-alert",isVisible:"idle"===t&&r,expandDuration:400,type:"info",children:(0,Vt.__)("Be aware that you should run the SEO data optimization for this configuration to take maximum effect.","wordpress-seo")}),!e.isPremium&&(0,Zt.jsxs)(dc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(uc,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Want deeper insights?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast SEO Premium. */ (0,Vt.__)("%s gives you in-depth analysis and guidance for every post, helping you write content that ranks even better.","wordpress-seo"),"Yoast SEO Premium")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.indexationLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.__)("Learn more about Premium","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(pc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function hc(e,t){let[s,r]=(0,d.useState)(e),n=lo(e);return oo((()=>r(n.current)),[n,r,...t]),s}mc.propTypes={indexingState:Yt().string.isRequired,setIndexingState:Yt().func.isRequired,showRunIndexationAlert:Yt().bool,isStepperFinished:Yt().bool};var fc=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(fc||{});function yc(e,t){let s=t.resolveItems();if(s.length<=0)return null;let r=t.resolveActiveIndex(),n=null!=r?r:-1,a=(()=>{switch(e.focus){case 0:return s.findIndex((e=>!t.resolveDisabled(e)));case 1:{let e=s.slice().reverse().findIndex(((e,s,r)=>!(-1!==n&&r.length-s-1>=n||t.resolveDisabled(e))));return-1===e?e:s.length-1-e}case 2:return s.findIndex(((e,s)=>!(s<=n||t.resolveDisabled(e))));case 3:{let e=s.slice().reverse().findIndex((e=>!t.resolveDisabled(e)));return-1===e?e:s.length-1-e}case 4:return s.findIndex((s=>t.resolveId(s)===e.id));case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}})();return-1===a?r:a}let gc=["[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 vc,bc=(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))(bc||{}),xc=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(xc||{}),wc=((vc=wc||{})[vc.Previous=-1]="Previous",vc[vc.Next=1]="Next",vc),Sc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Sc||{});function Ec(e,t=0){var s;return e!==(null==(s=Jo(e))?void 0:s.body)&&qa(t,{0:()=>e.matches(gc),1(){let t=e;for(;null!==t;){if(t.matches(gc))return!0;t=t.parentElement}return!1}})}function _c(e,t=(e=>e)){return e.slice().sort(((e,s)=>{let r=t(e),n=t(s);if(null===r||null===n)return 0;let a=r.compareDocumentPosition(n);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function jc(e,t,s){let r=lo(t);(0,d.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function Cc(e,t,s=!0){let r=(0,d.useRef)(!1);function n(s,n){if(!r.current||s.defaultPrevented)return;let a=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e),o=n(s);if(null!==o&&o.getRootNode().contains(o)){for(let e of a){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||s.composed&&s.composedPath().includes(t))return}return!Ec(o,Sc.Loose)&&-1!==o.tabIndex&&s.preventDefault(),t(s,o)}}(0,d.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let a=(0,d.useRef)(null);jc("mousedown",(e=>{var t,s;r.current&&(a.current=(null==(s=null==(t=e.composedPath)?void 0:t.call(e))?void 0:s[0])||e.target)}),!0),jc("click",(e=>{!a.current||(n(e,(()=>a.current)),a.current=null)}),!0),jc("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var kc=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(kc||{});let Rc=Za((function(e,t){let{features:s=1,...r}=e;return Ga({ourProps:{ref:t,"aria-hidden":2==(2&s)||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&s)&&2!=(2&s)&&{display:"none"}}},theirProps:r,slot:{},defaultTag:"div",name:"Hidden"})}));function Oc(e={},t=null,s=[]){for(let[r,n]of Object.entries(e))Pc(s,Nc(t,r),n);return s}function Nc(e,t){return e?e+"["+t+"]":t}function Pc(e,t,s){if(Array.isArray(s))for(let[r,n]of s.entries())Pc(e,Nc(t,r.toString()),n);else s instanceof Date?e.push([t,s.toISOString()]):"boolean"==typeof s?e.push([t,s?"1":"0"]):"string"==typeof s?e.push([t,s]):"number"==typeof s?e.push([t,`${s}`]):null==s?e.push([t,""]):Oc(s,t,e)}function Tc(e,t,s){let[r,n]=(0,d.useState)(s),a=void 0!==e,o=(0,d.useRef)(a),i=(0,d.useRef)(!1),l=(0,d.useRef)(!1);return!a||o.current||i.current?!a&&o.current&&!l.current&&(l.current=!0,o.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(i.current=!0,o.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:r,uo((e=>(a||n(e),null==t?void 0:t(e))))]}function Lc(e){return[e.screenX,e.screenY]}function Mc(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let s=Lc(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=Lc(t)}}}var Ac=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Ac||{}),Ic=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Ic||{}),Dc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Dc||{}),Fc=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.RegisterLabel=7]="RegisterLabel",e))(Fc||{});function zc(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=_c(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let Uc={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||1===e.listboxState)return e;let r=zc(e),n=yc(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let s=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),n=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+s).concat(e.options.slice(0,e.activeOptionIndex+s)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),a=n?e.options.indexOf(n):-1;return-1===a||a===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:a,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=zc(e,(e=>[...e,s]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s)),{...e,...r}},6:(e,t)=>{let s=zc(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},7:(e,t)=>({...e,labelId:t.id})},Bc=(0,d.createContext)(null);function qc(e){let t=(0,d.useContext)(Bc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,qc),t}return t}Bc.displayName="ListboxActionsContext";let $c=(0,d.createContext)(null);function Hc(e){let t=(0,d.useContext)($c);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Hc),t}return t}function Vc(e,t){return qa(t.type,Uc,e,t)}$c.displayName="ListboxDataContext";let Wc=d.Fragment,Gc=Za((function(e,t){let{value:s,defaultValue:r,name:n,onChange:a,by:o=((e,t)=>e===t),disabled:i=!1,horizontal:l=!1,multiple:c=!1,...u}=e;const p=l?"horizontal":"vertical";let m=ho(t),[h=(c?[]:void 0),f]=Tc(s,a,r),[y,g]=(0,d.useReducer)(Vc,{dataRef:(0,d.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=uo("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),E=(0,d.useCallback)((e=>qa(_.mode,{1:()=>h.some((t=>S(t,e))),0:()=>S(h,e)})),[h]),_=(0,d.useMemo)((()=>({...y,value:h,disabled:i,mode:c?1:0,orientation:p,compare:S,isSelected:E,optionsPropsRef:v,labelRef:b,buttonRef:x,optionsRef:w})),[h,i,c,y]);oo((()=>{y.dataRef.current=_}),[_]),Cc([_.buttonRef,_.optionsRef],((e,t)=>{var s;g({type:1}),Ec(t,Sc.Loose)||(e.preventDefault(),null==(s=_.buttonRef.current)||s.focus())}),0===_.listboxState);let j=(0,d.useMemo)((()=>({open:0===_.listboxState,disabled:i,value:h})),[_,i,h]),C=uo((e=>{let t=_.options.find((t=>t.id===e));!t||L(t.dataRef.current.value)})),k=uo((()=>{if(null!==_.activeOptionIndex){let{dataRef:e,id:t}=_.options[_.activeOptionIndex];L(e.current.value),g({type:2,focus:fc.Specific,id:t})}})),R=uo((()=>g({type:0}))),O=uo((()=>g({type:1}))),N=uo(((e,t,s)=>e===fc.Specific?g({type:2,focus:fc.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s}))),P=uo(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),T=uo((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),L=uo((e=>qa(_.mode,{0:()=>null==f?void 0:f(e),1(){let t=_.value.slice(),s=t.findIndex((t=>S(t,e)));return-1===s?t.push(e):t.splice(s,1),null==f?void 0:f(t)}}))),M=uo((e=>g({type:3,value:e}))),A=uo((()=>g({type:4}))),I=(0,d.useMemo)((()=>({onChange:L,registerOption:P,registerLabel:T,goToOption:N,closeListbox:O,openListbox:R,selectActiveOption:k,selectOption:C,search:M,clearSearch:A})),[]),D={ref:m},F=(0,d.useRef)(null),z=vo();return(0,d.useEffect)((()=>{!F.current||void 0!==r&&z.addEventListener(F.current,"reset",(()=>{L(r)}))}),[F,L]),d.createElement(Bc.Provider,{value:I},d.createElement($c.Provider,{value:_},d.createElement(so,{value:qa(_.listboxState,{0:eo.Open,1:eo.Closed})},null!=n&&null!=h&&Oc({[n]:h}).map((([e,t],s)=>d.createElement(Rc,{features:kc.Hidden,ref:0===s?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ja({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Ga({ourProps:D,theirProps:u,slot:j,defaultTag:Wc,name:"Listbox"}))))})),Kc=Za((function(e,t){var s;let r=Wo(),{id:n=`headlessui-listbox-button-${r}`,...a}=e,o=Hc("Listbox.Button"),i=qc("Listbox.Button"),l=ho(o.buttonRef,t),c=vo(),u=uo((e=>{switch(e.key){case Go.Space:case Go.Enter:case Go.ArrowDown:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(fc.First)}));break;case Go.ArrowUp:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(fc.Last)}))}})),p=uo((e=>{e.key===Go.Space&&e.preventDefault()})),m=uo((e=>{if(Ko(e.currentTarget))return e.preventDefault();0===o.listboxState?(i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}))):(e.preventDefault(),i.openListbox())})),h=hc((()=>{if(o.labelId)return[o.labelId,n].join(" ")}),[o.labelId,n]),f=(0,d.useMemo)((()=>({open:0===o.listboxState,disabled:o.disabled,value:o.value})),[o]);return Ga({ourProps:{ref:l,id:n,type:Zo(e,o.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(s=o.optionsRef.current)?void 0:s.id,"aria-expanded":o.disabled?void 0:0===o.listboxState,"aria-labelledby":h,disabled:o.disabled,onKeyDown:u,onKeyUp:p,onClick:m},theirProps:a,slot:f,defaultTag:"button",name:"Listbox.Button"})})),Yc=Za((function(e,t){let s=Wo(),{id:r=`headlessui-listbox-label-${s}`,...n}=e,a=Hc("Listbox.Label"),o=qc("Listbox.Label"),i=ho(a.labelRef,t);oo((()=>o.registerLabel(r)),[r]);let l=uo((()=>{var e;return null==(e=a.buttonRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.listboxState,disabled:a.disabled})),[a]);return Ga({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Listbox.Label"})})),Zc=Va.RenderStrategy|Va.Static,Jc=Za((function(e,t){var s;let r=Wo(),{id:n=`headlessui-listbox-options-${r}`,...a}=e,o=Hc("Listbox.Options"),i=qc("Listbox.Options"),l=ho(o.optionsRef,t),c=vo(),u=vo(),p=to(),m=null!==p?p===eo.Open:0===o.listboxState;(0,d.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=Jo(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let h=uo((e=>{switch(u.dispose(),e.key){case Go.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case Go.Enter:if(e.preventDefault(),e.stopPropagation(),null!==o.activeOptionIndex){let{dataRef:e}=o.options[o.activeOptionIndex];i.onChange(e.current.value)}0===o.mode&&(i.closeListbox(),fo().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case qa(o.orientation,{vertical:Go.ArrowDown,horizontal:Go.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(fc.Next);case qa(o.orientation,{vertical:Go.ArrowUp,horizontal:Go.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(fc.Previous);case Go.Home:case Go.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(fc.First);case Go.End:case Go.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(fc.Last);case Go.Escape:return e.preventDefault(),e.stopPropagation(),i.closeListbox(),c.nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})}));case Go.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),u.setTimeout((()=>i.clearSearch()),350))}})),f=hc((()=>{var e,t,s;return null!=(s=null==(e=o.labelRef.current)?void 0:e.id)?s:null==(t=o.buttonRef.current)?void 0:t.id}),[o.labelRef.current,o.buttonRef.current]),y=(0,d.useMemo)((()=>({open:0===o.listboxState})),[o]);return Ga({ourProps:{"aria-activedescendant":null===o.activeOptionIndex||null==(s=o.options[o.activeOptionIndex])?void 0:s.id,"aria-multiselectable":1===o.mode||void 0,"aria-labelledby":f,"aria-orientation":o.orientation,id:n,onKeyDown:h,role:"listbox",tabIndex:0,ref:l},theirProps:a,slot:y,defaultTag:"ul",features:Zc,visible:m,name:"Listbox.Options"})})),Qc=Za((function(e,t){let s=Wo(),{id:r=`headlessui-listbox-option-${s}`,disabled:n=!1,value:a,...o}=e,i=Hc("Listbox.Option"),l=qc("Listbox.Option"),c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,u=i.isSelected(a),p=(0,d.useRef)(null),m=lo({disabled:n,value:a,domRef:p,get textValue(){var e,t;return null==(t=null==(e=p.current)?void 0:e.textContent)?void 0:t.toLowerCase()}}),h=ho(t,p);oo((()=>{if(0!==i.listboxState||!c||0===i.activationTrigger)return;let e=fo();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=p.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[p,c,i.listboxState,i.activationTrigger,i.activeOptionIndex]),oo((()=>l.registerOption(r,m)),[m,r]);let f=uo((e=>{if(n)return e.preventDefault();l.onChange(a),0===i.mode&&(l.closeListbox(),fo().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),y=uo((()=>{if(n)return l.goToOption(fc.Nothing);l.goToOption(fc.Specific,r)})),g=Mc(),v=uo((e=>g.update(e))),b=uo((e=>{!g.wasMoved(e)||n||c||l.goToOption(fc.Specific,r,0)})),x=uo((e=>{!g.wasMoved(e)||n||!c||l.goToOption(fc.Nothing)})),w=(0,d.useMemo)((()=>({active:c,selected:u,disabled:n})),[c,u,n]);return Ga({ourProps:{id:r,ref:h,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":u,disabled:void 0,onClick:f,onFocus:y,onPointerEnter:v,onMouseEnter:v,onPointerMove:b,onMouseMove:b,onPointerLeave:x,onMouseLeave:x},theirProps:o,slot:w,defaultTag:"li",name:"Listbox.Option"})})),Xc=Object.assign(Gc,{Button:Kc,Label:Yc,Options:Jc,Option:Qc});const ed=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{fillRule:"evenodd",d:"M10 3a1 1 0 01.707.293l3 3a1 1 0 01-1.414 1.414L10 5.414 7.707 7.707a1 1 0 01-1.414-1.414l3-3A1 1 0 0110 3zm-3.707 9.293a1 1 0 011.414 0L10 14.586l2.293-2.293a1 1 0 011.414 1.414l-3 3a1 1 0 01-1.414 0l-3-3a1 1 0 010-1.414z",clipRule:"evenodd"}))}));function td({id:e,value:t,choices:s,label:r="",onChange:n,error:a={message:"",isVisible:!1},disabled:i=!1}){const l=(0,o.useMemo)((()=>{const e=s.find((e=>t===e.value));return e?e.label:(0,Vt.__)("Select an option","wordpress-seo")}),[s,t]);return(0,Zt.jsx)(Xc,{id:e,as:"div",value:t,onChange:n,disabled:i,children:({open:n})=>(0,Zt.jsxs)(Zt.Fragment,{children:[r&&(0,Zt.jsx)(Xc.Label,{className:"yst-block yst-max-w-sm yst-mb-2 yst-text-sm yst-font-medium yst-text-slate-800",children:r}),(0,Zt.jsxs)("div",{className:"yst-max-w-sm",children:[(0,Zt.jsxs)("div",{className:"yst-relative",children:[(0,Zt.jsxs)(Xc.Button,{"data-id":`button-${e} `,className:Ps()("yst-relative yst-h-[40px] yst-w-full yst-leading-6 yst-py-2 yst-ps-3 yst-pe-10 yst-text-start yst-bg-white yst-border yst-border-slate-300 yst-rounded-md yst-shadow-sm yst-cursor-default focus:yst-outline-none focus:yst-ring-1 focus:yst-ring-primary-500 focus:yst-border-primary-500 sm:yst-text-sm",{"yst-border-red-300":a.isVisible,"yst-opacity-50":i},"emptyChoice"===t?"yst-text-slate-400":"yst-text-slate-700"),...Gi(e,a),children:[(0,Zt.jsx)("span",{className:"yst-block yst-truncate",children:l}),(0,Zt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-2 yst-pointer-events-none",children:(0,Zt.jsx)(ed,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})}),a.isVisible&&(0,Zt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8",children:(0,Zt.jsx)(el,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})})]}),(0,Zt.jsx)(Lo,{show:n,as:o.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,Zt.jsx)(Xc.Options,{static:!0,className:"yst-absolute yst-z-10 yst-w-full yst-mt-1 yst-overflow-auto yst-bg-white yst-rounded-md yst-shadow-lg yst-max-h-60 yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:s.map((e=>(0,Zt.jsx)(Xc.Option,{as:o.Fragment,value:e.value,children:({selected:t,active:s})=>(0,Zt.jsxs)("li",{className:Ki({selected:t,active:s}),children:[(0,Zt.jsx)("span",{className:Ps()(t?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate"),children:e.label}),t?(0,Zt.jsx)("span",{className:Ps()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4"),children:(0,Zt.jsx)(Os,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})}):null]})},e.id)))})})]}),a.isVisible&&(0,Zt.jsx)(sl,{id:Wi(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:a.message})]})]})})}td.propTypes={value:Kt.PropTypes.oneOfType([Kt.PropTypes.string,Kt.PropTypes.number]).isRequired,choices:Kt.PropTypes.arrayOf(Kt.PropTypes.shape({id:Kt.PropTypes.oneOfType([Kt.PropTypes.number,Kt.PropTypes.string]).isRequired,value:Kt.PropTypes.string.isRequired,label:Kt.PropTypes.string.isRequired})).isRequired,label:Kt.PropTypes.string,onChange:Kt.PropTypes.func.isRequired,id:Kt.PropTypes.string.isRequired,error:Kt.PropTypes.shape({message:Kt.PropTypes.string,isVisible:Kt.PropTypes.bool}),disabled:Kt.PropTypes.bool},window.yoast.socialMetadataForms;const sd=e=>({type:e.subtype,width:e.width,height:e.height,url:e.url,id:e.id,sizes:e.sizes,alt:e.alt||e.title||e.name});function rd(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();e(sd(s.attributes))})),t})(e).open()}const nd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"}))})),ad=({className:e=""})=>(0,Zt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:Ps()("yst-animate-spin",e),children:[(0,Zt.jsx)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Zt.jsx)("path",{className:"yst-opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]});ad.propTypes={className:Yt().string};const od=ad;function id({id:e,imageAltText:t="",url:s="",fallbackUrl:r="",label:n="",onSelectImageClick:a=c.noop,onRemoveImageClick:i=c.noop,className:d="",error:u={message:"",isVisible:!1},status:p="idle"}){const m=Ps()("yst-relative yst-w-full yst-h-48 yst-mt-2 yst-flex yst-justify-center yst-items-center yst-rounded-md yst-mb-4 focus:yst-outline-none focus:yst-ring-2 focus:yst-ring-offset-2 focus:yst-ring-primary-500",u.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),h=(0,o.useCallback)((()=>"loading"===p?(0,Zt.jsxs)("div",{className:"yst-text-center",children:[(0,Zt.jsx)(od,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-mt-3",children:(0,Vt.__)("Uploading image…","wordpress-seo")})]}):s?(0,Zt.jsx)("img",{src:s,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,Zt.jsx)("img",{src:r,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):(0,Zt.jsx)(nd,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[p,e,s,t]);return(0,Zt.jsxs)("div",{className:Ps()("yst-max-w-sm",d),...Gi(e,u),children:[(0,Zt.jsx)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-800",children:n}),(0,Zt.jsx)("button",{id:e,className:m,onClick:a,type:"button","data-hiive-event-name":"clicked_select_image",children:h()}),(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(l.Button,{id:s?e+"__replace-image":e+"__select-image",variant:"secondary",className:"yst-me-2",onClick:a,"data-hiive-event-name":s?"clicked_replace_image":"clicked_select_image",children:s?(0,Vt.__)("Replace image","wordpress-seo"):(0,Vt.__)("Select image","wordpress-seo")}),s&&(0,Zt.jsx)(l.Link,{id:`${e}__remove-image`,as:"button",type:"button",variant:"error",onClick:i,className:"yst-px-3 yst-py-2 yst-rounded-md","data-hiive-event-name":"clicked_remove_image",children:(0,Vt.__)("Remove image","wordpress-seo")})]}),"error"===p&&(0,Zt.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:u}),u.isVisible&&(0,Zt.jsx)(sl,{id:Wi(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:u.message})]})}function ld({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",organizationName:r="",fallbackOrganizationName:n="",errorFields:a=[]}){const i=(0,o.useCallback)((()=>{rd((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[rd]),l=(0,o.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})}),[e]),c=(0,o.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}),[e]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(nl,{className:"yst-mt-6",id:"organization-name-input",name:"organization-name",label:(0,Vt.__)("Organization name","wordpress-seo"),value:""===r?n:r,onChange:c,feedback:{isVisible:a.includes("company_name"),message:[(0,Vt.__)("We could not save the organization name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(id,{className:"yst-mt-6",id:"organization-logo-input",url:t,fallbackUrl:s,onSelectImageClick:i,onRemoveImageClick:l,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Organization logo","wordpress-seo")})]})}function cd(e,t){let s=(0,d.useRef)([]),r=uo(e);(0,d.useEffect)((()=>{let e=[...s.current];for(let[n,a]of t.entries())if(s.current[n]!==a){let n=r(t,e);return s.current=t,n}}),[r,...t])}id.propTypes={label:Yt().string,id:Yt().string.isRequired,url:Yt().string,fallbackUrl:Yt().string,imageAltText:Yt().string,onRemoveImageClick:Yt().func,onSelectImageClick:Yt().func,className:Yt().string,error:Yt().shape({message:Yt().string,isVisible:Yt().bool}),status:Yt().string},ld.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,organizationName:Yt().string,fallbackOrganizationName:Yt().string,errorFields:Yt().array};var dd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(dd||{}),ud=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(ud||{}),pd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(pd||{}),md=(e=>(e[e.OpenCombobox=0]="OpenCombobox",e[e.CloseCombobox=1]="CloseCombobox",e[e.GoToOption=2]="GoToOption",e[e.RegisterOption=3]="RegisterOption",e[e.UnregisterOption=4]="UnregisterOption",e[e.RegisterLabel=5]="RegisterLabel",e))(md||{});function hd(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=_c(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),n=s?r.indexOf(s):null;return-1===n&&(n=null),{options:r,activeOptionIndex:n}}let fd={1:e=>e.dataRef.current.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1},0(e){if(e.dataRef.current.disabled||0===e.comboboxState)return e;let t=e.activeOptionIndex,{isSelected:s}=e.dataRef.current,r=e.options.findIndex((e=>s(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,comboboxState:0,activeOptionIndex:t}},2(e,t){var s;if(e.dataRef.current.disabled||e.dataRef.current.optionsRef.current&&!e.dataRef.current.optionsPropsRef.current.static&&1===e.comboboxState)return e;let r=hd(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let n=yc(t,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,activeOptionIndex:n,activationTrigger:null!=(s=t.trigger)?s:1}},3:(e,t)=>{let s={id:t.id,dataRef:t.dataRef},r=hd(e,(e=>[...e,s]));null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(s));let n={...e,...r,activationTrigger:1};return e.dataRef.current.__demoMode&&void 0===e.dataRef.current.value&&(n.activeOptionIndex=0),n},4:(e,t)=>{let s=hd(e,(e=>{let s=e.findIndex((e=>e.id===t.id));return-1!==s&&e.splice(s,1),e}));return{...e,...s,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},yd=(0,d.createContext)(null);function gd(e){let t=(0,d.useContext)(yd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,gd),t}return t}yd.displayName="ComboboxActionsContext";let vd=(0,d.createContext)(null);function bd(e){let t=(0,d.useContext)(vd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,bd),t}return t}function xd(e,t){return qa(t.type,fd,e,t)}vd.displayName="ComboboxDataContext";let wd=d.Fragment,Sd=Za((function(e,t){let{value:s,defaultValue:r,onChange:n,name:a,by:o=((e,t)=>e===t),disabled:i=!1,__demoMode:l=!1,nullable:c=!1,multiple:u=!1,...p}=e,[m=(u?[]:void 0),h]=Tc(s,n,r),[f,y]=(0,d.useReducer)(xd,{dataRef:(0,d.createRef)(),comboboxState:l?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),g=(0,d.useRef)(!1),v=(0,d.useRef)({static:!1,hold:!1}),b=(0,d.useRef)(null),x=(0,d.useRef)(null),w=(0,d.useRef)(null),S=(0,d.useRef)(null),E=uo("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),_=(0,d.useCallback)((e=>qa(j.mode,{1:()=>m.some((t=>E(t,e))),0:()=>E(m,e)})),[m]),j=(0,d.useMemo)((()=>({...f,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:w,optionsRef:S,value:m,defaultValue:r,disabled:i,mode:u?1:0,get activeOptionIndex(){if(g.current&&null===f.activeOptionIndex&&f.options.length>0){let e=f.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return f.activeOptionIndex},compare:E,isSelected:_,nullable:c,__demoMode:l})),[m,r,i,u,c,l,f]);oo((()=>{f.dataRef.current=j}),[j]),Cc([j.buttonRef,j.inputRef,j.optionsRef],(()=>A.closeCombobox()),0===j.comboboxState);let C=(0,d.useMemo)((()=>({open:0===j.comboboxState,disabled:i,activeIndex:j.activeOptionIndex,activeOption:null===j.activeOptionIndex?null:j.options[j.activeOptionIndex].dataRef.current.value,value:m})),[j,i,m]),k=uo((e=>{let t=j.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),R=uo((()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];M(e.current.value),A.goToOption(fc.Specific,t)}})),O=uo((()=>{y({type:0}),g.current=!0})),N=uo((()=>{y({type:1}),g.current=!1})),P=uo(((e,t,s)=>(g.current=!1,e===fc.Specific?y({type:2,focus:fc.Specific,id:t,trigger:s}):y({type:2,focus:e,trigger:s})))),T=uo(((e,t)=>(y({type:3,id:e,dataRef:t}),()=>y({type:4,id:e})))),L=uo((e=>(y({type:5,id:e}),()=>y({type:5,id:null})))),M=uo((e=>qa(j.mode,{0:()=>null==h?void 0:h(e),1(){let t=j.value.slice(),s=t.findIndex((t=>E(t,e)));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}}))),A=(0,d.useMemo)((()=>({onChange:M,registerOption:T,registerLabel:L,goToOption:P,closeCombobox:N,openCombobox:O,selectActiveOption:R,selectOption:k})),[]),I=null===t?{}:{ref:t},D=(0,d.useRef)(null),F=vo();return(0,d.useEffect)((()=>{!D.current||void 0!==r&&F.addEventListener(D.current,"reset",(()=>{M(r)}))}),[D,M]),d.createElement(yd.Provider,{value:A},d.createElement(vd.Provider,{value:j},d.createElement(so,{value:qa(j.comboboxState,{0:eo.Open,1:eo.Closed})},null!=a&&null!=m&&Oc({[a]:m}).map((([e,t],s)=>d.createElement(Rc,{features:kc.Hidden,ref:0===s?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...Ja({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Ga({ourProps:I,theirProps:p,slot:C,defaultTag:wd,name:"Combobox"}))))})),Ed=Za((function(e,t){var s,r,n,a;let o=Wo(),{id:i=`headlessui-combobox-input-${o}`,onChange:l,displayValue:c,type:u="text",...p}=e,m=bd("Combobox.Input"),h=gd("Combobox.Input"),f=ho(m.inputRef,t),y=(0,d.useRef)(!1),g=vo(),v=function(){var e;return"function"==typeof c&&void 0!==m.value?null!=(e=c(m.value))?e:"":"string"==typeof m.value?m.value:""}();cd((([e,t],[s,r])=>{y.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),[v,m.comboboxState]),cd((([e],[t])=>{if(0===e&&1===t){let e=m.inputRef.current;if(!e)return;let t=e.value,{selectionStart:s,selectionEnd:r,selectionDirection:n}=e;e.value="",e.value=t,null!==n?e.setSelectionRange(s,r,n):e.setSelectionRange(s,r)}}),[m.comboboxState]);let b=(0,d.useRef)(!1),x=uo((()=>{b.current=!0})),w=uo((()=>{setTimeout((()=>{b.current=!1}))})),S=uo((e=>{switch(y.current=!0,e.key){case Go.Backspace:case Go.Delete:if(0!==m.mode||!m.nullable)return;let t=e.currentTarget;g.requestAnimationFrame((()=>{""===t.value&&(h.onChange(null),m.optionsRef.current&&(m.optionsRef.current.scrollTop=0),h.goToOption(fc.Nothing))}));break;case Go.Enter:if(y.current=!1,0!==m.comboboxState||b.current)return;if(e.preventDefault(),e.stopPropagation(),null===m.activeOptionIndex)return void h.closeCombobox();h.selectActiveOption(),0===m.mode&&h.closeCombobox();break;case Go.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),qa(m.comboboxState,{0:()=>{h.goToOption(fc.Next)},1:()=>{h.openCombobox()}});case Go.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),qa(m.comboboxState,{0:()=>{h.goToOption(fc.Previous)},1:()=>{h.openCombobox(),g.nextFrame((()=>{m.value||h.goToOption(fc.Last)}))}});case Go.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(fc.First);case Go.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(fc.First);case Go.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(fc.Last);case Go.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(fc.Last);case Go.Escape:return y.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Go.Tab:if(y.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),E=uo((e=>{h.openCombobox(),null==l||l(e)})),_=uo((()=>{y.current=!1})),j=hc((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),C=(0,d.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return Ga({ourProps:{ref:f,id:i,role:"combobox",type:u,"aria-controls":null==(s=m.optionsRef.current)?void 0:s.id,"aria-expanded":m.disabled?void 0:0===m.comboboxState,"aria-activedescendant":null===m.activeOptionIndex||null==(r=m.options[m.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===m.mode||void 0,"aria-labelledby":j,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(n=e.defaultValue)?n:void 0!==m.defaultValue?null==c?void 0:c(m.defaultValue):null)?a:m.defaultValue,disabled:m.disabled,onCompositionStart:x,onCompositionEnd:w,onKeyDown:S,onChange:E,onBlur:_},theirProps:p,slot:C,defaultTag:"input",name:"Combobox.Input"})})),_d=Za((function(e,t){var s;let r=bd("Combobox.Button"),n=gd("Combobox.Button"),a=ho(r.buttonRef,t),o=Wo(),{id:i=`headlessui-combobox-button-${o}`,...l}=e,c=vo(),u=uo((e=>{switch(e.key){case Go.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&n.openCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Go.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(n.openCombobox(),c.nextFrame((()=>{r.value||n.goToOption(fc.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Go.Escape:return 0!==r.comboboxState?void 0:(e.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&e.stopPropagation(),n.closeCombobox(),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})})));default:return}})),p=uo((e=>{if(Ko(e.currentTarget))return e.preventDefault();0===r.comboboxState?n.closeCombobox():(e.preventDefault(),n.openCombobox()),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}))})),m=hc((()=>{if(r.labelId)return[r.labelId,i].join(" ")}),[r.labelId,i]),h=(0,d.useMemo)((()=>({open:0===r.comboboxState,disabled:r.disabled,value:r.value})),[r]);return Ga({ourProps:{ref:a,id:i,type:Zo(e,r.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(s=r.optionsRef.current)?void 0:s.id,"aria-expanded":r.disabled?void 0:0===r.comboboxState,"aria-labelledby":m,disabled:r.disabled,onClick:p,onKeyDown:u},theirProps:l,slot:h,defaultTag:"button",name:"Combobox.Button"})})),jd=Za((function(e,t){let s=Wo(),{id:r=`headlessui-combobox-label-${s}`,...n}=e,a=bd("Combobox.Label"),o=gd("Combobox.Label"),i=ho(a.labelRef,t);oo((()=>o.registerLabel(r)),[r]);let l=uo((()=>{var e;return null==(e=a.inputRef.current)?void 0:e.focus({preventScroll:!0})})),c=(0,d.useMemo)((()=>({open:0===a.comboboxState,disabled:a.disabled})),[a]);return Ga({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Cd=Va.RenderStrategy|Va.Static,kd=Za((function(e,t){let s=Wo(),{id:r=`headlessui-combobox-options-${s}`,hold:n=!1,...a}=e,o=bd("Combobox.Options"),i=ho(o.optionsRef,t),l=to(),c=null!==l?l===eo.Open:0===o.comboboxState;oo((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),oo((()=>{o.optionsPropsRef.current.hold=n}),[o.optionsPropsRef,n]),function({container:e,accept:t,walk:s,enabled:r=!0}){let n=(0,d.useRef)(t),a=(0,d.useRef)(s);(0,d.useEffect)((()=>{n.current=t,a.current=s}),[t,s]),oo((()=>{if(!e||!r)return;let t=Jo(e);if(!t)return;let s=n.current,o=a.current,i=Object.assign((e=>s(e)),{acceptNode:s}),l=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,i,!1);for(;l.nextNode();)o(l.currentNode)}),[e,r,n,a])}({container:o.optionsRef.current,enabled:0===o.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let u=hc((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return Ga({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:i},theirProps:a,slot:(0,d.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:Cd,visible:c,name:"Combobox.Options"})})),Rd=Za((function(e,t){var s,r;let n=Wo(),{id:a=`headlessui-combobox-option-${n}`,disabled:o=!1,value:i,...l}=e,c=bd("Combobox.Option"),u=gd("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,m=c.isSelected(i),h=(0,d.useRef)(null),f=lo({disabled:o,value:i,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),y=ho(t,h),g=uo((()=>u.selectOption(a)));oo((()=>u.registerOption(a,f)),[f,a]);let v=(0,d.useRef)(!c.__demoMode);oo((()=>{if(!c.__demoMode)return;let e=fo();return e.requestAnimationFrame((()=>{v.current=!0})),e.dispose}),[]),oo((()=>{if(0!==c.comboboxState||!p||!v.current||0===c.activationTrigger)return;let e=fo();return e.requestAnimationFrame((()=>{var e,t;null==(t=null==(e=h.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})),e.dispose}),[h,p,c.comboboxState,c.activationTrigger,c.activeOptionIndex]);let b=uo((e=>{if(o)return e.preventDefault();g(),0===c.mode&&u.closeCombobox()})),x=uo((()=>{if(o)return u.goToOption(fc.Nothing);u.goToOption(fc.Specific,a)})),w=Mc(),S=uo((e=>w.update(e))),E=uo((e=>{!w.wasMoved(e)||o||p||u.goToOption(fc.Specific,a,0)})),_=uo((e=>{!w.wasMoved(e)||o||!p||c.optionsPropsRef.current.hold||u.goToOption(fc.Nothing)})),j=(0,d.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return Ga({ourProps:{id:a,ref:y,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":m,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:E,onMouseMove:E,onPointerLeave:_,onMouseLeave:_},theirProps:l,slot:j,defaultTag:"li",name:"Combobox.Option"})})),Od=Object.assign(Sd,{Input:Ed,Button:_d,Label:jd,Options:kd,Option:Rd});function Nd(e){return e&&e.label?e.label:null}function Pd({id:e,value:t=null,label:s="",onChange:r,onQueryChange:n=null,options:a,placeholder:i=(0,Vt.__)("Select an option","wordpress-seo"),isLoading:l=!1}){const[c,d]=(0,o.useState)(a),[u,p]=(0,o.useState)(""),m=(0,o.useCallback)((e=>{p(e.target.value)}),[p]),h=(0,o.useCallback)((()=>{p("")}),[p]);(0,o.useEffect)((()=>{d(a)}),[a]),(0,o.useEffect)((()=>{n?n(u):d(a.filter((e=>e.label.toLowerCase().includes(u.toLowerCase()))))}),[u,n]);const f=(0,o.useCallback)(((e,t)=>({selected:s,active:r})=>Ki({selected:s||e===t,active:r})),[Ki]),y=(0,o.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,Zt.jsx)(Od,{id:e,as:"div",value:t,onChange:r,onBlur:h,children:({open:r})=>(0,Zt.jsxs)(o.Fragment,{children:[s&&(0,Zt.jsx)(Od.Label,{className:"yst-block yst-mb-2 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-800",children:s}),(0,Zt.jsxs)("div",{className:"yst-h-[40px] yst-max-w-sm yst-relative",children:[(0,Zt.jsxs)(Od.Button,{"data-id":`button-${e}`,role:"button",className:"yst-w-full yst-h-full yst-rounded-md yst-border yst-border-slate-300 yst-flex yst-items-center yst-rounded-r-md yst-ps-3 yst-pe-2 focus-within:yst-border-primary-500 focus-within:yst-outline-none focus-within:yst-ring-1 focus-within:yst-ring-primary-500",as:"div",children:[(0,Zt.jsx)(Od.Input,{"data-id":`input-${e}`,className:"yst-w-full yst-text-slate-700 yst-rounded-md yst-border-0 yst-outline-none yst-bg-white yst-py-1 yst-ps-0 yst-pe-10 yst-shadow-none sm:yst-text-sm",onChange:m,displayValue:Nd,placeholder:i,onClick:y(r)}),(0,Zt.jsx)(ed,{className:"yst-h-5 yst-w-5 yst-text-slate-400 yst-inset-y-0 yst-end-0","aria-hidden":"true"})]}),c.length>0&&(0,Zt.jsxs)(Od.Options,{className:"yst-absolute yst-z-10 yst-mt-1 yst-max-h-60 yst-w-full yst-overflow-auto yst-rounded-md yst-bg-white yst-text-base yst-shadow-lg yst-ring-1 yst-ring-black yst-ring-opacity-5 focus:yst-outline-none sm:yst-text-sm",children:[l&&(0,Zt.jsxs)("div",{className:"yst-flex yst-bg-white yst-sticky yst-z-20 yst-text-sm yst-italic yst-top-0 yst-py-2 yst-ps-3 yst-pe-9 yst-my-0",children:[(0,Zt.jsx)(od,{className:"yst-text-primary-500 yst-h-4 yst-w-4 yst-me-2 yst-self-center"}),(0,Vt.__)("Loading…","wordpress-seo")]}),c.map((e=>(0,Zt.jsx)(Od.Option,{value:e,className:f(e.value,t.value),children:({selected:s})=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("span",{className:Ps()("yst-block yst-truncate",(s||t.value===e.value)&&"yst-font-semibold"),children:e.label}),(s||t.value===e.value)&&(0,Zt.jsx)("span",{className:"yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4 yst-text-white",children:(0,Zt.jsx)(Os,{className:"yst-h-5 yst-w-5","aria-hidden":"true"})})]})},`yst-option-${e.value}`)))]})]})]})})}Pd.propTypes={onChange:Yt().func.isRequired,options:Yt().array.isRequired,id:Yt().string.isRequired,value:Yt().shape({value:Yt().number,label:Yt().string}),label:Yt().string,onQueryChange:Yt().func,placeholder:Yt().string,isLoading:Yt().bool};const Td={"X-WP-NONCE":wpApiSettings.nonce},Ld=wpApiSettings.root;function Md({initialValue:e={id:0,name:""},onChangeCallback:t=c.noop,placeholder:s=(0,Vt.__)("Select a user","wordpress-seo")}){const[r,n]=(0,o.useState)([]),[a,i]=(0,o.useState)({value:e.id,label:e.name}),[l,d]=(0,o.useState)(!1),u=(0,o.useRef)(!0);(0,o.useEffect)((()=>()=>{u.current=!1}),[]);const p=(0,o.useCallback)((e=>{i(e),t(e)})),m=(0,o.useCallback)((0,c.debounce)((async e=>{d(!0);const t=await function(e=""){const t=`${Ld}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,Yl.sendRequest)(t,{method:"GET",headers:Td})}(e);u.current&&(d(!1),n(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,Zt.jsx)(Pd,{id:"yoast-configuration-user-select",value:a,label:(0,Vt.__)("Name","wordpress-seo"),onChange:p,onQueryChange:m,options:r,placeholder:s,isLoading:l})}function Ad({dispatch:e,imageUrl:t="",fallbackImageUrl:s="",person:r={id:0,name:""},canEditUser:n}){const a=(0,o.useCallback)((()=>{rd((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[rd]),i=(0,o.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})}),[e]),l=(0,o.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),Ea()({path:`yoast/v1/configuration/check_capability?user_id=${t.value}`}).then((t=>{e({type:"SET_CAN_EDIT_USER",payload:t.success})})).catch((e=>{console.error(e.message)}))}),[e]),c=(0,Vt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. %2$sUpdate this profile to make sure the information is correct%3$s.","wordpress-seo"),d=(0,Vt.__)("You have selected the user %1$s as the person this site represents. This user profile information will now be used in search results. You're not allowed to update this user profile, so please ask this user or an admin to make sure the information is correct.","wordpress-seo"),u=(0,o.useMemo)((()=>Wt((0,Vt.sprintf)(n?c:d,`<b>${r.name}</b>`,"<a>","</a>"),{b:(0,Zt.jsx)("b",{}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-user-selector-user-link",href:window.wpseoScriptData.userEditUrl.replace("{user_id}",r.id),target:"_blank",rel:"noopener noreferrer"})})),[r.id,r.name,n]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Md,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:(0,Vt.__)("Select a user","wordpress-seo")}),(0,Zt.jsx)(ml,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5",children:u}),(0,Zt.jsx)(id,{className:"yst-mt-6",id:"person-logo-input",url:t,fallbackUrl:s,onSelectImageClick:a,onRemoveImageClick:i,imageAltText:"",hasPreview:!0,label:(0,Vt.__)("Personal logo or avatar","wordpress-seo")})]})}Md.propTypes={initialValue:Yt().shape({id:Yt().number,name:Yt().string}),onChangeCallback:Yt().func,placeholder:Yt().string},Ad.propTypes={dispatch:Yt().func.isRequired,imageUrl:Yt().string,fallbackImageUrl:Yt().string,person:Yt().shape({id:Yt().number,name:Yt().string}),canEditUser:Yt().bool.isRequired};const Id=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3h2l.4 2M7 13h10l4-8H5.4M7 13L5.4 5M7 13l-2.293 2.293c-.63.63-.184 1.707.707 1.707H17m0 0a2 2 0 100 4 2 2 0 000-4zm-8 2a2 2 0 11-4 0 2 2 0 014 0z"}))})),Dd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"}))}));function Fd({onOrganizationOrPersonChange:e,dispatch:t,state:s,siteRepresentationEmpty:r}){const[n,a]=(0,o.useState)("emptyChoice"===s.companyOrPerson?"yst-opacity-0":"yst-opacity-100"),i=(0,o.useCallback)((()=>{a("yst-opacity-100")}),[a]),c=(0,o.useCallback)((e=>{t({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})}),[t]),d=Wt((0,Vt.sprintf)( /* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag, %3$s expands to opening 'a' HTML tag, %4$s expands to closing 'a' HTML tag. */ (0,Vt.__)("Completing this step helps Google to understand your site even better. %1$sBonus%2$s: You'll improve your chance of getting %3$srich results%4$s!","wordpress-seo"),"<span>","</span>","<a>","</a>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"}),a:(0,Zt.jsx)("a",{id:"yoast-configuration-rich-text-link",href:"https://yoa.st/config-workout-rich-results",target:"_blank",rel:"noopener noreferrer"})});return(0,Zt.jsxs)(o.Fragment,{children:[window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,Zt.jsx)(pl,{type:"info",children:window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage}),(0,Zt.jsx)("p",{className:Ps()("yst-text-sm yst-whitespace-pre-line yst-mb-6",s.shouldForceCompany?"yst-mt-4":"yst-mt-0"),children:s.shouldForceCompany?d:(0,Zt.jsxs)(o.Fragment,{children:[(0,Vt.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),(0,Zt.jsx)("br",{}),d]})}),(0,Zt.jsx)(td,{id:"organization-person-select",htmlFor:"organization-person-select",name:"organization",label:(0,Vt.__)("Does your site represent an Organization or Person?","wordpress-seo"),value:s.shouldForceCompany?"company":s.companyOrPerson,onChange:e,choices:s.companyOrPersonOptions,disabled:!!s.shouldForceCompany}),!("company"===s.companyOrPerson&&s.companyName&&s.companyLogo||"company"===s.companyOrPerson&&!s.companyLogoFallback||"person"===s.companyOrPerson&&s.personLogo||"person"===s.companyOrPerson&&!s.personLogoFallback)&&(0,Zt.jsx)(pl,{type:"info",className:"yst-mt-6",children:(0,Vt.__)("We took the liberty of using your website name and logo for the organization name and logo. Feel free to change them below.","wordpress-seo")}),(0,Zt.jsx)(nl,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Vt.__)("Website name","wordpress-seo"),value:s.websiteName||s.fallbackWebsiteName,onChange:c,feedback:{isVisible:s.errorFields.includes("website_name"),message:[(0,Vt.__)("We could not save the website name. Please check the value.","wordpress-seo")],type:"error"}}),(0,Zt.jsx)(ul.Z,{height:["company","person"].includes(s.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i,children:(0,Zt.jsxs)("div",{className:Ps()("yst-transition-opacity yst-duration-300 yst-mt-6",n),children:["company"===s.companyOrPerson&&(0,Zt.jsx)(ld,{dispatch:t,imageUrl:s.companyLogo,fallbackImageUrl:s.companyLogoFallback,organizationName:s.companyName,fallbackOrganizationName:s.fallbackCompanyName,errorFields:s.errorFields}),"person"===s.companyOrPerson&&(0,Zt.jsx)(Ad,{dispatch:t,imageUrl:s.personLogo,fallbackImageUrl:s.personLogoFallback,person:{id:s.personId,name:s.personName},canEditUser:!!s.canEditUser,errorFields:s.errorFields})]})}),(0,Zt.jsx)(ml,{id:"site-representation-empty-alert",isVisible:r,className:"yst-mt-6",children:(0,Vt.__)("You're almost there! Complete all settings in this step so search engines know what your site is about.","wordpress-seo")}),!s.isPremium&&s.isWooCommerceActive&&!s.isWooCommerceSeoActive&&(0,Zt.jsxs)(dc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Id,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Running an online store?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast WooCommerce SEO. */ (0,Vt.__)("%s helps your products stand out in Google Shopping and Rich Results.","wordpress-seo"),"Yoast WooCommerce SEO")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.reprWoocommerceLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.sprintf)(/* translators: %s expands to WooCommerce SEO. */ (0,Vt.__)("Learn more about %s","wordpress-seo"),"WooCommerce SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(pc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]}),"company"===s.companyOrPerson&&!s.isPremium&&!s.isWooCommerceActive&&(0,Zt.jsxs)(dc,{className:"yst-mt-6 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Dd,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Have a physical location?","wordpress-seo")})]}),(0,Zt.jsx)("p",{children:(0,Vt.sprintf)(/* translators: %s expands to Yoast Local SEO. */ (0,Vt.__)("%s helps you show up in Google Maps and local results. Complete your visibility where it matters most!","wordpress-seo"),"Yoast Local SEO")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:(0,Zt.jsxs)(l.Button,{id:"ftc-indexing-learn-more",as:"a",href:window.wpseoFirstTimeConfigurationData.shortlinks.reprLocalLearnMore,variant:"tertiary",target:"_blank",className:"yst-p-0",children:[(0,Vt.sprintf)(/* translators: %s expands to Local SEO. */ (0,Vt.__)("Learn more about %s","wordpress-seo"),"Local SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(pc,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})})]})]})}function zd(e,t,s=""){return Wt(e,{a:(0,Zt.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}Fd.propTypes={onOrganizationOrPersonChange:Yt().func.isRequired,dispatch:Yt().func.isRequired,state:Yt().object.isRequired,siteRepresentationEmpty:Yt().bool.isRequired};const Ud=(0,Vt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),Bd=(0,Vt.__)("Please enter a valid email address.","wordpress-seo"),qd=(0,Vt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function $d({gdprLink:e=""}){const[t,s]=(0,o.useState)(""),[r,n]=(0,o.useState)("waiting"),[a,i]=(0,o.useState)(""),l=(0,o.useCallback)((async function(){if(!(0,Ca.isEmail)(t))return n("error"),void i(Bd);n("loading"),(await async function(e){return(await fetch("https://my.yoast.com/api/Mailing-list/subscribe",{method:"POST",mode:"cors",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},redirect:"follow",referrerPolicy:"no-referrer",body:JSON.stringify({customerDetails:{firstName:"",email:e},list:"Yoast newsletter",source:"free"})})).json()}(t)).error?(n("error"),i(Ud)):(n("success"),i(qd))}),[t]),c=(0,o.useCallback)((e=>{n("waiting"),s(e.target.value)}),[s]);return(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Get free weekly SEO tips!","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-mb-2",children:(0,Vt.sprintf)(/* translators: %1$s expands to "Yoast SEO", %2$s expands to "Yoast SEO". */ (0,Vt.__)("Subscribe to the %1$s newsletter to receive best practices for improving your rankings, save time on SEO tasks, stay up-to-date with the latest SEO news, and get expert guidance on how to make the most of %2$s!","wordpress-seo"),"Yoast SEO","Yoast SEO")}),(0,Zt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4 yst-mb-2",children:[(0,Zt.jsx)(nl,{label:(0,Vt.__)("Email address","wordpress-seo"),id:"newsletter-email",name:"newsletter email",value:t,onChange:c,className:"yst-grow",type:"email",placeholder:(0,Vt.__)("E.g. example@email.com","wordpress-seo"),feedback:{isVisible:["error","success"].includes(r),type:r,message:[a]}}),(0,Zt.jsx)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[40px] yst-items-center yst-mt-[27.5px] yst-shrink-0",onClick:l,disabled:"loading"===r,"data-hiive-event-name":"clicked_signup | personal preferences",children:(0,Vt.__)("Yes, give me your free tips!","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-text-slate-500 yst-text-xxs yst-leading-4",children:zd((0,Vt.sprintf)( // translators: %1$s and %2$s are replaced by opening and closing anchor tags. (0,Vt.__)("Yoast respects your privacy. Read %1$sour privacy policy%2$s on how we handle your personal information.","wordpress-seo"),"<a>","</a>"),e,"yoast-configuration-gdpr-link")})]})}$d.propTypes={gdprLink:Yt().string};const Hd={variant:{default:"","inline-block":"yst-radio--inline-block"}},Vd={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Wd=({id:e,name:t,value:s,label:r,variant:n="default",className:a="",...o})=>(0,Zt.jsxs)("div",{className:Ps()("yst-radio",Hd.variant[n],a),children:[(0,Zt.jsx)("input",{type:"radio",id:e,name:t,value:s,className:"yst-radio__input",...o}),r&&(0,Zt.jsx)(Gd,{htmlFor:e,className:"yst-radio__label",children:r})]});Wd.propTypes={name:Yt().string.isRequired,id:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired,variant:Yt().oneOf(Object.keys(Hd.variant)),className:Yt().string};const Gd=({children:e,as:t="label",className:s="",...r})=>(0,Zt.jsx)(t,{className:Ps()("yst-label",s),...r,children:e});Gd.propTypes={children:Yt().node.isRequired,as:Yt().elementType,className:Yt().string};const Kd=({children:e=null,id:t,name:s,value:r,label:n=null,options:a,onChange:i,variant:l="default",className:c="",...d})=>{const u=(0,o.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,Zt.jsxs)("fieldset",{className:Ps()("yst-radio-group",Vd.variant[l],c),children:[n&&(0,Zt.jsx)(Gd,{as:"legend",className:"yst-radio-group__label",children:n}),e&&(0,Zt.jsx)("div",{className:"yst-radio-group__description",children:e}),(0,Zt.jsx)("div",{className:"yst-radio-group__options",children:a.map(((e,n)=>{const a=`${t}-${n}`;return(0,Zt.jsx)(Wd,{id:a,name:s,value:e.value,label:e.label,variant:l,checked:r===e.value,onChange:u,...d},a)}))})]})};Kd.propTypes={children:Yt().node,id:Yt().string.isRequired,name:Yt().string.isRequired,value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,options:Yt().arrayOf(Yt().shape({value:Yt().oneOfType([Yt().string,Yt().number]).isRequired,label:Yt().string.isRequired})).isRequired,onChange:Yt().func.isRequired,label:Yt().node,variant:Yt().oneOf(Object.keys(Vd.variant)),className:Yt().string};const Yd=Kd,Zd=(0,Yl.makeOutboundLink)();function Jd({state:e,setTracking:t}){return(0,Zt.jsxs)(o.Fragment,{children:[!e.isPremium&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)($d,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,Zt.jsx)("hr",{className:"yst-bg-slate-200 yst-my-6"})]}),(0,Zt.jsx)("h4",{className:"yst-text-slate-800 yst-text-sm yst-leading-6 yst-font-medium",children:(0,Vt.__)("Are you open to help us improve our services?","wordpress-seo")}),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,Zt.jsx)(pl,{type:"warning",children:(0,Vt.__)("This feature has been disabled by the network admin.","wordpress-seo")}),!e.isMainSite&&(0,Zt.jsx)(pl,{type:"warning",children:(0,Vt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")}),(0,Zt.jsx)("p",{className:Ps()("yst-text-normal yst-mb-4",e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50"),children:(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */ (0,Vt.__)("Can we collect anonymous information about your website to enhance %1$s?","wordpress-seo"),"Yoast SEO")}),(0,Zt.jsx)(Yd,{id:"yoast-configuration-tracking-radio-button",name:"yoast-configuration-tracking",value:e.tracking,onChange:t,className:e.isMainSite&&e.isTrackingAllowedMultisite?"":"yst-opacity-50",disabled:!e.isMainSite||!e.isTrackingAllowedMultisite,options:[{value:0,label:(0,Vt.__)("No, I don't want to share my site data","wordpress-seo")},{value:1,label:(0,Vt.__)("Yes, you can collect my site data","wordpress-seo")}]}),!!e.isMainSite&&!!e.isTrackingAllowedMultisite&&(0,Zt.jsxs)(o.Fragment,{children:[(0,Zt.jsx)(Zd,{className:"yst-inline-block yst-mt-4",href:"https://yoa.st/config-workout-tracking",children:(0,Vt.__)("What data will be collected and why?","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-my-2 yst-italic",children:Wt((0,Vt.sprintf)(/* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to closing 'span' HTML tag. */ (0,Vt.__)("%1$sImportant:%2$s We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo"),"<span>","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})})]})]})}Jd.propTypes={state:Yt().object.isRequired,setTracking:Yt().func.isRequired};const Qd=d.forwardRef((function(e,t){return d.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),d.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13 10V3L4 14h7v7l9-11h-7z"}))}));function Xd(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function eu({state:e}){const t=(0,c.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config"),s=[(0,Vt.__)("Optimize for multiple keyphrases per page to reach a wider audience.","wordpress-seo"),(0,Vt.__)("Get smart internal linking suggestions that strengthen your site structure.","wordpress-seo"),(0,Vt.__)("Automatically redirect broken URLs so you don’t lose traffic or SEO value.","wordpress-seo"),(0,Vt.__)("Save time with AI-powered title and meta description suggestions.","wordpress-seo")];return(0,Zt.jsx)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst-mt-4",children:(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-4",children:(0,Vt.sprintf)(/* translators: 1: Yoast. */ (0,Vt.__)("Great work! Thanks to the details you've provided, %1$s has enhanced your site for search engines, giving them a clearer picture of what your site is all about.","wordpress-seo"),"Yoast")}),(0,Zt.jsx)("p",{className:"yst-text-sm yst-mb-6",children:(0,Vt.__)("If your goal is to increase your rankings, you need to work on your SEO regularly. That can be overwhelming, so let's tackle it one step at a time!","wordpress-seo")}),(0,Zt.jsxs)(l.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:t,target:"_blank","data-hiive-event-name":"clicked_to_onboarding_page",children:[(0,Vt.sprintf)(/* translators: 1: Yoast SEO. */ (0,Vt.__)("Learn how to increase your rankings with %1$s","wordpress-seo"),"Yoast SEO"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")}),(0,Zt.jsx)(pc,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})]}),(0,Zt.jsx)("p",{className:"yst-mt-6",children:(0,Zt.jsxs)(l.Button,{id:"link-webinar-register",as:"a",onClick:Xd,"data-hiive-event-name":"clicked_seo_dashboard",variant:"tertiary",children:[(0,Vt.__)("Or go to your SEO dashboard","wordpress-seo"),(0,Zt.jsx)(is,{className:"yst-ms-1 yst-w-4 yst-h-4 yst-icon-rtl"})]})}),!e.isPremium&&(0,Zt.jsxs)(dc,{className:"yst-mt-8 yst-gap-2",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-2 yst-items-center",children:[(0,Zt.jsx)(Qd,{className:"yst-text-primary-300 yst-w-4 yst-h-4 yst-inline-block"}),(0,Zt.jsx)("p",{className:"yst-font-medium yst-text-slate-800",children:(0,Vt.__)("Your site’s ready to shine! Want to take it to the next level?","wordpress-seo")})]}),(0,Zt.jsx)("p",{className:"yst-mt-4",children:Wt((0,Vt.sprintf)( /* translators: %1$s expands to opening 'span' HTML tag, %2$s expands to Yoast SEO Premium, %3$s expands to closing 'span' HTML tag. */ (0,Vt.__)("%1$s%2$s%3$s helps you:","wordpress-seo"),"<span>","Yoast SEO Premium","</span>"),{span:(0,Zt.jsx)("span",{className:"yst-text-slate-800 yst-font-medium"})})}),(0,Zt.jsx)("ul",{className:"yst-flex yst-flex-col yst-gap-2 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-2",children:s.map(((e,t)=>(0,Zt.jsxs)("li",{className:"yst-flex yst-items-start",children:[(0,Zt.jsx)(Ls,{className:"yst-mr-2 yst-text-green-500 yst-w-[19.5px] yst-h-[19.5px] yst-flex-shrink-0"}),e]},`upsell-benefit-${t}`)))})]}),(0,Zt.jsx)("p",{className:"yst-mt-5",children:(0,Zt.jsxs)(l.Button,{as:"a",variant:"upsell",href:window.wpseoFirstTimeConfigurationData.shortlinks.finishLearnMore,className:"yst-gap-2 sm:yst-max-w-sm",target:"_blank",rel:"noopener",children:[(0,Zt.jsx)(Qt,{className:"yst-w-4 yst-h-4"}),(0,Vt.__)("Unlock all Premium features","wordpress-seo"),(0,Zt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]})})]})]})})}function tu(e,t){const{companyName:s,companyLogo:r,companyOrPersonOptions:n,shouldForceCompany:a,fallbackCompanyName:o,websiteName:i,fallbackWebsiteName:l}=e;let{companyOrPerson:c}=e;return("company"!==c||s||r||t(ql.siteRepresentation))&&!a||(c="company"),{...e,personId:Number(e.personId),personLogoId:Number(e.personLogoId),companyLogoId:Number(e.companyLogoId),tracking:Number(e.tracking),companyOrPerson:c,companyOrPersonOptions:n,errorFields:[],stepErrors:{},editedSteps:[],companyName:s||o,websiteName:i||l}}function su(){const{removeAlert:e,dismissNotice:t,restoreNotice:s}=(0,r.useDispatch)(zo),[n,a]=(0,o.useState)(window.wpseoFirstTimeConfigurationData.finishedSteps),i=(0,o.useCallback)((e=>n.includes(e)),[n]),l=(0,o.useCallback)((e=>{a((t=>(0,c.uniq)([...t,e])))}),[a]);(0,o.useEffect)((()=>{!async function(e){const t=await Ea()({path:"yoast/v1/configuration/save_configuration_state",method:"POST",data:{finishedSteps:e}});await t.json}(n),window.wpseoFirstTimeConfigurationData.finishedSteps=n}),[n]);const[d,u]=(0,o.useReducer)(Zi,{...tu(window.wpseoFirstTimeConfigurationData,i)}),[p,m]=(0,o.useState)((()=>"0"===window.yoastIndexingData.amount?"already_done":"idle")),[h,f]=(0,o.useState)(!1),[y,g]=(0,o.useState)(!1),v=(0,o.useCallback)(((e,t)=>{u({type:"SET_STEP_ERROR",payload:{step:e,message:t}})}),[]),b=(0,o.useCallback)((e=>{u({type:"REMOVE_STEP_ERROR",payload:e})}),[]);(0,o.useEffect)((()=>{"completed"===p&&(e("wpseo-reindex"),window.yoastIndexingData.amount="0")}),[p,e]);const x=i(ql.optimizeSeoData),w=i(ql.siteRepresentation),S=i(ql.socialProfiles),E=i(ql.personalPreferences),_=(0,o.useCallback)((e=>{u({type:"SET_TRACKING",payload:parseInt(e,10)})})),j=(0,o.useCallback)((e=>{u({type:"SET_ERROR_FIELDS",payload:e})})),C=(0,o.useCallback)((()=>{""!==d.companyLogo&&0!==d.companyLogoId&&""!==d.companyName?t("yoast-local-missing-organization-info-notice"):s("yoast-local-missing-organization-info-notice")}),[t,s,d.companyLogo,d.companyLogoId,d.companyName]),k=(0,o.useCallback)((()=>{t("yoast-first-time-configuration-notice")}),[t]),R=!("company"!==d.companyOrPerson||d.companyName&&(d.companyLogo||d.companyLogoFallback)&&d.websiteName),O=!("person"!==d.companyOrPerson||d.personId&&(d.personLogo||d.personLogoFallback)&&d.websiteName),N=(0,o.useCallback)((e=>u({type:"SET_COMPANY_OR_PERSON",payload:e})),[u]),P=[x,w,S,E].every(Boolean),T=[i(ql.optimizeSeoData),i(ql.siteRepresentation),i(ql.socialProfiles),i(ql.personalPreferences),P],[L,M]=(0,o.useState)(function(e){if(!Array.isArray(e)||0===e.length)return 0;const t=e.findIndex((e=>!1===e));return-1!==t?t:e.every(Boolean)?e.length-1:0}(T)),[A,I]=(0,o.useState)(P),[D,F]=(0,o.useState)(!1),[z,U]=(0,o.useState)(A&&!D);function B(){return U(!1),F(!0),!0}(0,o.useEffect)((()=>{P&&I(!0)}),[P]),(0,o.useEffect)((()=>{U(A&&!D)}),[A,D]),(0,o.useEffect)((()=>{function e(e){"Enter"===e.key&&"first-time-configuration-tab"===document.querySelector(".nav-tab.nav-tab-active").id&&"INPUT"===e.target.tagName&&e.preventDefault()}return addEventListener("keydown",e),()=>removeEventListener("keydown",e)}),[]),(0,o.useEffect)((()=>{d.editedSteps.includes(L+1)||"in_progress"===p?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[d.editedSteps,p,L]);const q=(0,o.useCallback)((e=>{(d.editedSteps.includes(L+1)||"in_progress"===p)&&(-1===location.href.indexOf("page=wpseo_dashboard#top#first-time-configuration")&&-1===location.href.indexOf("page=wpseo_dashboard#/first-time-configuration")||(e.preventDefault(),e.returnValue=""))}),[d.editedSteps,p,L]);return(0,o.useEffect)((()=>(window.addEventListener("beforeunload",q),()=>{window.removeEventListener("beforeunload",q)})),[q]),(0,Zt.jsxs)(Bl,{setActiveStepIndex:M,activeStepIndex:L,isStepperFinished:P,children:[(0,Zt.jsxs)(Fl,{children:[(0,Zt.jsx)(Fl.Header,{name:(0,Vt.__)("SEO data optimization","wordpress-seo"),isFinished:x,children:(0,Zt.jsx)(Vl,{stepId:ql.optimizeSeoData,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Fl.Content,{children:[(0,Zt.jsx)(mc,{state:d,setIndexingState:m,indexingState:p,showRunIndexationAlert:y,isStepperFinished:P}),(0,Zt.jsx)(Hl,{stepId:ql.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return y||"idle"!==p||"1"===window.yoastIndexingData.disabled?(F(!1),l(ql.optimizeSeoData),!0):(g(!0),!1)},destination:A?"last":1,children:(0,Vt.__)("Continue","wordpress-seo")})]})]}),(0,Zt.jsxs)(Fl,{children:[(0,Zt.jsx)(Fl.Header,{name:(0,Vt.__)("Site representation","wordpress-seo"),isFinished:w,children:(0,Zt.jsx)(Vl,{stepId:ql.siteRepresentation,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Fl.Content,{children:[(0,Zt.jsx)(Fd,{onOrganizationOrPersonChange:N,dispatch:u,state:d,siteRepresentationEmpty:h}),(0,Zt.jsx)(Fl.Error,{id:"yoast-site-representation-step-error",message:d.stepErrors[ql.siteRepresentation]||""}),(0,Zt.jsx)(Kl,{stepId:ql.siteRepresentation,stepperFinishedOnce:A,saveFunction:function(){return!h&&R||!h&&O?(f(!0),!1):h||"emptyChoice"!==d.companyOrPerson?(f("emptyChoice"===d.companyOrPerson||R||O),async function(e){const t={company_or_person:"emptyChoice"===e.companyOrPerson?"company":e.companyOrPerson,company_name:e.companyName,company_logo:e.companyLogo,company_logo_id:e.companyLogoId?e.companyLogoId:0,website_name:e.websiteName,person_logo:e.personLogo,person_logo_id:e.personLogoId?e.personLogoId:0,company_or_person_user_id:e.personId},s=await Ea()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(d).then((()=>(j([]),b(ql.siteRepresentation),l(ql.siteRepresentation),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...d},C(),!0))).catch((e=>e.failures?(j(e.failures),!1):(e.message&&v(ql.siteRepresentation,e.message),!1)))):(f(!0),!1)},setEditState:F})]})]}),(0,Zt.jsxs)(Fl,{children:[(0,Zt.jsx)(Fl.Header,{name:(0,Vt.__)("Social profiles","wordpress-seo"),isFinished:S,children:(0,Zt.jsx)(Vl,{stepId:ql.socialProfiles,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Fl.Content,{children:[(0,Zt.jsx)(hl,{state:d,dispatch:u,setErrorFields:j}),(0,Zt.jsx)(Fl.Error,{id:"yoast-social-profiles-step-error",message:d.stepErrors[ql.socialProfiles]||""}),(0,Zt.jsx)(Kl,{stepId:ql.socialProfiles,stepperFinishedOnce:A,saveFunction:function(){return"person"===d.companyOrPerson?(l(ql.socialProfiles),!0):async function(e){const t={facebook_site:e.socialProfiles.facebookUrl,twitter_site:e.socialProfiles.twitterUsername,other_social_urls:e.socialProfiles.otherSocialUrls},s=await Ea()({path:"yoast/v1/configuration/social_profiles",method:"POST",data:t});return await s.json}(d).then((e=>!1===e.success?(j(e.failures),Promise.reject("There were errors saving social profiles")):e)).then((()=>{j([]),b(ql.socialProfiles),l(ql.socialProfiles)})).then((()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=d.socialProfiles,!0))).catch((e=>(e.failures&&j(e.failures),e.message&&v(ql.socialProfiles,e.message),!1)))},setEditState:F})]})]}),(0,Zt.jsxs)(Fl,{children:[(0,Zt.jsx)(Fl.Header,{name:(0,Vt.__)("Personal preferences","wordpress-seo"),isFinished:E,children:(0,Zt.jsx)(Vl,{stepId:ql.personalPreferences,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Zt.jsxs)(Fl.Content,{children:[(0,Zt.jsx)(Jd,{state:d,setTracking:_}),(0,Zt.jsx)(Fl.Error,{id:"yoast-personal-preferences-step-error",message:d.stepErrors[ql.personalPreferences]||""}),(0,Zt.jsx)(Kl,{stepId:ql.personalPreferences,stepperFinishedOnce:A,saveFunction:function(){return async function(e){if(0!==e.tracking&&1!==e.tracking)throw"Value not set!";const t={tracking:e.tracking},s=await Ea()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(d).then((()=>l(ql.personalPreferences))).then((()=>(b(ql.personalPreferences),window.wpseoFirstTimeConfigurationData.tracking=d.tracking,k(),!0))).catch((e=>(e.message&&v(ql.personalPreferences,e.message),!1)))},setEditState:F})]})]}),(0,Zt.jsxs)(Fl,{children:[(0,Zt.jsx)(Fl.Header,{name:(0,Vt.__)("Finish configuration","wordpress-seo"),isFinished:P}),(0,Zt.jsx)(Fl.Content,{children:(0,Zt.jsx)(eu,{state:d})})]})]})}const ru=()=>{const e=function(e){let{router:t,basename:s}=ft(mt.UseBlocker),r=yt(ht.UseBlocker),[n,a]=d.useState(""),o=d.useCallback((t=>{if("/"===s)return e(t);let{currentLocation:r,nextLocation:n,historyAction:a}=t;return e({currentLocation:Ye({},r,{pathname:B(r.pathname,s)||r.pathname}),nextLocation:Ye({},n,{pathname:B(n.pathname,s)||n.pathname}),historyAction:a})}),[s,e]);return d.useEffect((()=>{let e=String(++bt);return a(e),()=>t.deleteBlocker(e)}),[t]),d.useEffect((()=>{""!==n&&t.getBlocker(n,o)}),[t,n,o]),n&&r.blockers.has(n)?r.blockers.get(n):oe}((({currentLocation:e,nextLocation:t})=>(0,c.get)(window,"isStepBeingEdited",!1)&&"/first-time-configuration"===e.pathname&&"/first-time-configuration"!==t.pathname));return(0,Zt.jsxs)(l.Paper,{children:[(0,Zt.jsx)(zi,{title:(0,Vt.__)("First-time configuration","wordpress-seo"),description:(0,Vt.__)("Tell us about your site, so we can get it ranked! Let's get your site in tip-top shape for the search engines. Follow these 5 steps to make Google understand what your site is about.","wordpress-seo"),children:(0,Zt.jsx)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]",children:(0,Zt.jsx)(su,{})})}),(0,Zt.jsx)($s,{isOpen:"blocked"===e.state,onClose:e.reset,title:(0,Vt.__)("Unsaved changes","wordpress-seo"),description:(0,Vt.__)("There are unsaved changes in one or more steps of the first-time configuration. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo"),onDiscard:e.proceed,dismissLabel:(0,Vt.__)("No, continue editing","wordpress-seo"),discardLabel:(0,Vt.__)("Yes, leave page","wordpress-seo")})]})},nu=()=>(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(l.Paper,{className:"yst-p-8 yst-grow",children:(0,Zt.jsxs)("header",{className:"yst-max-w-screen-sm",children:[(0,Zt.jsx)(l.Title,{children:(0,Vt.__)("Alert center","wordpress-seo")}),(0,Zt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:(0,Vt.__)("Monitor and manage potential SEO problems affecting your site and stay informed with important notifications and updates.","wordpress-seo")})]})}),(0,Zt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 @3xl:yst-grid-cols-2 yst-gap-6 yst-my-6 yst-grow yst-items-start",children:[(0,Zt.jsx)(vi,{}),(0,Zt.jsx)(gi,{})]})]}),au="/alert-center",ou="/first-time-configuration",iu=()=>{const e=xi("selectIsOptInNotificationSeen",[],"wpseo_seen_llm_txt_opt_in_notification"),t=xi("selectPreference",[],"llmTxtEnabled"),{pathname:s}=rt();return s===ou||t||e||null===sessionStorage?null:(0,Zt.jsx)("div",{children:(0,Zt.jsx)(Vi,{})})},lu=(0,window.wp.compose.compose)([(0,r.withSelect)(((e,t)=>{const{isAlertDismissed:s}=e(t.store||"yoast-seo/editor");return{isAlertDismissed:s(t.alertKey)}})),(0,r.withDispatch)(((e,t)=>{const{dismissAlert:s}=e(t.store||"yoast-seo/editor");return{onDismissed:()=>s(t.alertKey)}}))]),cu=lu,du=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:a,onDismissed:o})=>a?null:(0,Zt.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,Zt.jsxs)("div",{className:"notice-yoast__container",children:[(0,Zt.jsxs)("div",{children:[(0,Zt.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,Zt.jsx)("span",{className:"yoast-icon"}),(0,Zt.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,Zt.jsx)("div",{className:"notice-yoast-content",children:(0,Zt.jsx)("p",{children:e})})]}),n&&(0,Zt.jsx)(n,{height:"60"})]}),(0,Zt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:o,children:(0,Zt.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */ (0,Vt.__)("Dismiss this notice.","wordpress-seo")})})]});du.propTypes={children:Yt().node.isRequired,id:Yt().string.isRequired,hasIcon:Yt().bool,title:Yt().any.isRequired,image:Yt().elementType,isAlertDismissed:Yt().bool.isRequired,onDismissed:Yt().func.isRequired};const uu=cu(du);var pu,mu,hu,fu,yu,gu,vu,bu,xu,wu,Su,Eu,_u,ju,Cu,ku,Ru,Ou,Nu,Pu,Tu,Lu,Mu,Au,Iu,Du,Fu,zu,Uu,Bu,qu,$u,Hu,Vu,Wu,Gu,Ku,Yu,Zu,Ju,Qu,Xu,ep,tp,sp,rp,np;function ap(){return ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r])}return e},ap.apply(this,arguments)}const op=e=>d.createElement("svg",ap({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),pu||(pu=d.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),mu||(mu=d.createElement("path",{fill:"#fbd2a6",d:"M173.53 189.38s-35.47-5.3-41.78-11c-9.39-24.93-29.61-48-35.47-66.21-.71-2.24 3.72-11.39 3.53-15.41s-5.34-11.64-5.23-14-.09-15.27-.09-15.27l-4.75-.72s-5.13 6.07-3.56 9.87c-1.73-4.19 4.3 7.93.5 9.35 0 0-6-5.94-11.76-8.27s-19.57-3.65-19.57-3.65L43.19 73l-4.42.6L31 69.7l-2.85 5.12 7.53 5.29L40.86 92l17.19 10.2 10.2 10.56 9.86 3.56s26.49 79.67 45 92c17 11.33 37.23 15.92 37.23 15.92z"})),hu||(hu=d.createElement("path",{fill:"#a4286a",d:"M270.52 345.13c2.76-14.59 15.94-35.73 30.24-54.58 16.22-21.39 14-79.66-33.19-91.46-17.3-4.32-52.25-1-59.85-3.41C186.54 189 170 187 168 190.17c-5 10.51-7.73 27.81-5.51 36.26 1.18 4.73 3.54 5.91 20.49 13.4-5.12 15-16.35 26.3-22.86 37s7.88 27.2 7.1 33.51c-.48 3.8-4.26 21.13-7.18 34.25a149.47 149.47 0 0 0 110.3 8.66 25.66 25.66 0 0 1 .18-8.12z"})),fu||(fu=d.createElement("path",{fill:"#9a5815",d:"M206.76 66.43c-5 14.4-1.42 25.67-3.93 40.74-10 60.34-24.08 43.92-31.44 93.6 7.24-14.19 14.32-15.82 20.63-23.11-.83 3.09-10.25 13.75-8.05 34.81 9.85-8.51 6.35-8.75 11.86-8.54.36 3.25 3.53 3.22-3.59 10.53 2.52.69 17.42-14.32 20.16-12.66s0 5.72-6 7.76c2.15 2.2 30.47-3.87 43.81-14.71 4.93-4 10-13.16 13.38-18.2 7.17-10.62 12.38-24.77 17.71-36.6 8.94-19.87 15.09-39.34 16.11-61.31.53-10.44-3.41-18.44-4.41-28.86-2.57-27.8-67.63-37.26-86.24 16.55z"})),yu||(yu=d.createElement("path",{fill:"#efb17c",d:"M277.74 179.06c.62-.79 1.24-1.59 1.84-2.39-.85 2.59-1.52 3.73-1.84 2.39z"})),gu||(gu=d.createElement("path",{fill:"#fbd2a6",d:"M216.1 206.72c3.69-5.42 8.28-3.35 15.57-8.28 3.76-3.06 1.57-9.46 1.77-11.82 18.25 4.56 37.38-1.18 49.07-16 .62 5.16-2.77 22.27-.2 27 4.73 8.67 13.4 18.92 13.4 18.92-35.47-2.76-63.45 39-89.86 44.54 5.52-28.74-2.36-35.84 10.25-54.36z"})),vu||(vu=d.createElement("path",{fill:"#f6b488",d:"m235.21 167.9 53.21-25.23s-3.65 24-6.5 32.72c-64.05 62.66-46.47-7.33-46.71-7.49z"})),bu||(bu=d.createElement("path",{fill:"#fbd2a6",d:"M226.86 50.64C215 59.31 206.37 93.21 204 95.57c-19.46 19.47-3.59 41.39-3.94 51.24-.2 5.52-4.14 25.42 5.72 29.36 22.22 8.89 60-3.48 67.19-12.61 13.28-16.75 40.89-94.78 17.74-108.19-7.92-4.58-42.78-20.18-63.85-4.73z"})),xu||(xu=d.createElement("path",{fill:"#e5766c",d:"M243.69 143.66c-10.7-6.16-8.56-6.73-19.76-12.71-3.86-2.07-3.94.64-6.32 0-2.91-.79-1.39-2.74-5.37-3.48-6.52-1.21-3.67 3.63-3.15 6 1.32 6.15-8.17 17.3 3.26 21.42 12.65 4.55 21.38-9.41 31.34-11.23z"})),wu||(wu=d.createElement("path",{fill:"#fff",d:"M240.68 143.9c-11.49-5.53-11.65-8.17-24.64-11.69-8.6-2.32-5.53 1-5.69 4.42-.2 4.16-1.26 9.87 4.9 12.66 9 4.09 18.16-6.02 25.43-5.39zm.7-40.9c-.16 1.26-.06 4.9 5.46 8.25 11.43-4.73 16.36-2.56 17-3.33 1.48-1.76-2-8.87-7.88-9.85-5.58-.94-14.14 1.24-14.58 4.93z"})),Su||(Su=d.createElement("path",{fill:"#000001",d:"M263.53 108.19c-4.32-4.33-6.85-6.24-12.26-8.21-2.77-1-6.18.18-8.65 1.67a3.65 3.65 0 0 0-1.24 1.23h-.12a3.73 3.73 0 0 1 1-1.52 12.53 12.53 0 0 1 11.93-3c4.73 1 9.43 4.63 9.42 9.82z"})),Eu||(Eu=d.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),_u||(_u=d.createElement("path",{fill:"#fff",d:"M225.26 99.22c-.29 1-6.6 3.45-10.92 1.48-1.15-3.24-5-6.43-5.25-6.71-.5-2.86 5.55-8 10.06-6.3a10.21 10.21 0 0 1 6.11 11.53z"})),ju||(ju=d.createElement("path",{fill:"#000001",d:"M209.29 94.21c-.19-2.34 1.84-4.1 3.65-5.2 7-3.87 13.18 3 12.43 10h-.12c-.14-4-2.38-8.44-6.47-9.11a3.19 3.19 0 0 0-2.42.31c-1.37.85-2.38 2-3.89 2.56-1 .45-1.92.42-3 1.4h-.22z"})),Cu||(Cu=d.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),ku||(ku=d.createElement("path",{fill:"#efb17c",d:"M218.66 120.27a27.32 27.32 0 0 0 4.54 3.45c-2.29-.72-4.28-.69-6.32-2.27-2.53-2-3.39-5.16-.73-7.72 10.24-9.82 12.56-13.82 14.77-24.42-1 12.37-6 17.77-10.63 23.18-2.53 2.97-4.68 5.06-1.63 7.78z"})),Ru||(Ru=d.createElement("path",{fill:"#a57c52",d:"M231.22 69.91c-.67-3.41-8.78-2.83-11.06-1.93-3.48 1.39-6.08 5.22-7.13 8.53 2.9-4.3 6.74-8.12 12.46-6 1.16.42 3.18 2.35 4.48 1.85s1.03-2.2 1.25-2.45zm32.16 8.56c-2.75-1.66-12.24-5.08-12.18.82 2.56.24 5-.19 7.64.95 11.22 4.76 12.77 17.61 12.85 17.86.2-.53.1 1.26.23.7-.02.2.95-12.12-8.54-20.33z"})),Ou||(Ou=d.createElement("path",{fill:"#fbd2a6",d:"M53.43 250.73c6.29 0-.6-.17 7.34 0 1.89.05-2.38-.7 0-.69 4.54-4.2 12.48-.74 20.6-2.45 4.55.35 3.93 1.35 5.59 4.19 4.89 8.38 4.78 14.21 14 19.56 16.42 8.38 66 12.92 88.49 18.86 5.52.83 42.64-20.15 61-23.75 6.51 10.74 11.46 28.68 8.39 34.93-6.54 13.3-57.07 25.4-75.91 25.15C156.47 326.18 94 294 92.2 293c-.94-.57.7-.7-7.68 0s-10.15.72-17.47-1.4c-3-.87-4.61-1.33-6.33-3.54-2 .22-3.39.2-4.78-1-3.15-2.74-4.84-6.61-2.73-10.06h-.12c-3.35-2.48-6.54-7.69-3.08-11.72 1-1.18 6.06-1.94 7.77-2.28-1.58-.29-6.37.19-7.49-.72-3.06-2.5-4.96-11.55 3.14-11.55z"})),Nu||(Nu=d.createElement("path",{fill:"#a4286a",d:"M303.22 237.52c-9.87-11.88-41.59 8.19-47.8 12.34s-14.89 17.95-14.89 17.95c6 9.43 8.36 31 5.65 46.34l30.51-3s18-15.62 22.59-28.7 6.3-42.54 6.3-42.54"})),Pu||(Pu=d.createElement("path",{fill:"#cb9833",d:"M278.63 31.67c-6.08 0-22.91 4.07-22.93 12.91 0 11 47.9 38.38 16.14 85.85 10.21-.79 10.79-8.12 14.92-14.93-3.66 77-49.38 93.58-40.51 142.25 7.68-25.81 20.3-11.62 38.13-33.84 3.45 4.88 9 18.28-9.46 33.78 50-31.26 57.31-56.6 51.92-95C319.93 113.53 348.7 42 278.63 31.67z"})),Tu||(Tu=d.createElement("path",{fill:"#fbd2a6",d:"M283.64 126.83c-2.42 9.67-8 15.76-1.48 16.46A21.26 21.26 0 0 0 302 132.6c5.17-8.52 3.93-16.44-2.46-18s-13.48 2.56-15.9 12.23z"})),Lu||(Lu=d.createElement("path",{fill:"#efb17c",d:"M38 73.45c1.92 2 4.25 9.21 6.32 10.91 2.25 1.85 5.71 2.12 8.1 4.45 3.66-2 6-8.72 10-9.31-2.59 1.31-4.42 3.5-6.93 4.88-1.42.8-3 1.31-4.38 2.25-2.16-1.46-4.27-1.77-6.26-3.38-2.52-2.02-5.31-8-6.85-9.8z"})),Mu||(Mu=d.createElement("path",{fill:"#efb17c",d:"M39 74.4c4.83 1.1 12.52 6.44 15.89 10-3.22-1.34-14.73-6.15-15.89-10zm.62-1.5c6.71-.79 18 1.54 23.29 5.9-3.85-.2-5.42-1.48-9-2.94-4.08-1.69-8.83-2.03-14.29-2.96zm46.43 14.58c-3.72-1.32-10.52-1.13-13.22 3.52 2-1.16 1.84-2.11 4.18-1.72-3.81-4.15 8.16-.74 11.6-.24m-2.78 13.15c.56-3.29-8-7.81-10.58-9.17-6.25-3.29-12.16 1.36-19.33-4.53 5.94 6.1 14.23 2.5 19.55 5.76 3.06 1.88 8.65 6.09 9.35 9.38-.23-.4 1.29-1.44 1.01-1.44z"})),Au||(Au=d.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),Iu||(Iu=d.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),Du||(Du=d.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Fu||(Fu=d.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),zu||(zu=d.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Uu||(Uu=d.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Bu||(Bu=d.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),qu||(qu=d.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),$u||($u=d.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Hu||(Hu=d.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Vu||(Vu=d.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Wu||(Wu=d.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Gu||(Gu=d.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Ku||(Ku=d.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Yu||(Yu=d.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Zu||(Zu=d.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),Ju||(Ju=d.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Qu||(Qu=d.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Xu||(Xu=d.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),ep||(ep=d.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),tp||(tp=d.createElement("path",{fill:"#71b026",d:"M78.58 178.43C54.36 167.26 32 198.93 5 198.93c19.56 20.49 63.53 1.52 69 15.5 1.48-14.01 4.11-30.9 4.58-36z"})),sp||(sp=d.createElement("path",{fill:"#074a67",d:"M67.75 251.08c0-4.65 10.13-72.65 10.13-72.65h2.8l-9.09 72.3z"})),rp||(rp=d.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),np||(np=d.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),ip=({store:e="yoast-seo/editor",image:t=op,url:s,...n})=>(0,r.useSelect)((t=>t(e).getIsPremium()))?null:(0,Zt.jsxs)(uu,{alertKey:"webinar-promo-notification",store:e,id:"webinar-promo-notification",title:(0,Vt.__)("Join our FREE webinar for SEO success","wordpress-seo"),image:t,url:s,...n,children:[(0,Vt.__)("Feeling lost when it comes to optimizing your site for the search engines? Join our FREE webinar to gain the confidence that you need in order to start optimizing like a pro! You'll obtain the knowledge and tools to start effectively implementing SEO.","wordpress-seo")," ",(0,Zt.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Vt.__)("Sign up today!","wordpress-seo")})]});ip.propTypes={store:Yt().string,image:Yt().elementType,url:Yt().string.isRequired};const lp=ip,cp=({idSuffix:e=""})=>{const t=(0,l.useSvgAria)(),s=xi("selectPreference",[],"isPremium");return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:(0,Zt.jsx)(qt,{id:`link-yoast-logo${e}`,to:"/",className:"yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO"+(s?" Premium":""),children:(0,Zt.jsx)(Qs,{className:"yst-w-40",...t})})}),(0,Zt.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,Zt.jsx)(as,{to:"/",label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Mo,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Dashboard","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(as,{to:au,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Ao,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Alert center","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Zt.jsx)(as,{to:ou,label:(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsx)(Io,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("First-time configuration","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"})]})]})};cp.propTypes={idSuffix:Yt().string};const dp=()=>{const e=(0,r.useSelect)((e=>e(zo).selectNotices()),[]);(0,o.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:t}=rt(),s=xi("selectAlertToggleError",[],[]),{setAlertToggleError:n}=(0,r.useDispatch)(zo);(()=>{const e=(0,r.useSelect)((e=>e(zo).selectActiveAlertsCount()),[]);(0,o.useEffect)((()=>{(e=>{const t=(0,Vt.sprintf)(/* translators: Hidden accessibility text; %s: number of notifications. */ (0,Vt._n)("%s notification","%s notifications",e,"wordpress-seo"),e),s=document.querySelectorAll("#toplevel_page_wpseo_dashboard .update-plugins");for(const r of s)r.className=`update-plugins count-${e}`,bi(r,".plugin-count",String(e)),bi(r,".screen-reader-text",t);const r=document.querySelectorAll("#wp-admin-bar-wpseo-menu .yoast-issue-counter");for(const s of r)s.classList.toggle("wpseo-no-adminbar-notifications",0===e),bi(s,".yoast-issues-count",String(e)),bi(s,".screen-reader-text",t)})(e)}),[e])})();const a=(0,o.useCallback)((()=>{n(null)}),[n]),i=(0,r.useSelect)((e=>e(zo).selectLinkParams()),[]),c=(0,Ca.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,Zt.jsxs)(Zt.Fragment,{children:[(0,Zt.jsxs)(l.SidebarNavigation,{activePath:t,children:[(0,Zt.jsx)(l.SidebarNavigation.Mobile,{openButtonId:"button-open-dashboard-navigation-mobile",closeButtonId:"button-close-dashboard-navigation-mobile" /* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,Vt.__)("Open dashboard navigation","wordpress-seo") /* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,Vt.__)("Close dashboard navigation","wordpress-seo"),"aria-label":(0,Vt.__)("Dashboard navigation","wordpress-seo"),children:(0,Zt.jsx)(cp,{idSuffix:"-mobile"})}),(0,Zt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,Zt.jsx)("aside",{className:"yst-sidebar yst-sidebar-nav yst-shrink-0 yst-hidden min-[783px]:yst-block yst-pb-6 yst-bottom-0 yst-w-56",children:(0,Zt.jsx)(l.SidebarNavigation.Sidebar,{children:(0,Zt.jsx)(cp,{})})}),(0,Zt.jsx)("div",{className:"yst-grow yst-max-w-page",children:(0,Zt.jsx)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:(0,Zt.jsx)("main",{children:(0,Zt.jsxs)(Lo,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:[t!==ou&&(0,Zt.jsxs)("div",{children:[(0,Zt.jsx)(lp,{store:zo,url:c,image:null}),e.length>0&&(0,Zt.jsxs)("div",{className:e.filter((e=>!e.isDismissed)).length>0?"yst-space-y-3 yoast-general-page-notices":"yst-hidden",children:[" ",e.map(((e,t)=>(0,Zt.jsx)(yi,{id:e.id||"yoast-general-page-notice-"+t,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":"",children:e.content},t)))]})]}),(0,Zt.jsx)(St,{})]},t)})})})]})]}),(0,Zt.jsxs)(l.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all yst-start-48",position:"bottom-left",children:[(0,Zt.jsx)(iu,{}),s&&(0,Zt.jsx)(l.Notifications.Notification,{id:"toggle-alert-error",title:(0,Vt.__)("Something went wrong","wordpress-seo"),variant:"error",dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo"),size:"large",autoDismiss:4e3,onDismiss:a,children:"error"===s.type?(0,Vt.__)("This problem can't be hidden at this time. Please try again later.","wordpress-seo"):(0,Vt.__)("This notification can't be hidden at this time. Please try again later.","wordpress-seo")})]})]})},up=()=>{const e=xi("selectPreference",[],"isPremium"),t=xi("selectUpsellSettingsAsProps"),{isPromotionActive:s}=(0,r.useSelect)(zo),n=xi("selectLink",[],"https://yoa.st/17h"),a=xi("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),o=xi("selectPreference",[],"isWooCommerceActive");return e?null:(0,Zt.jsx)(Us,{premiumLink:o?a:n,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:o})},pp=({contentClassName:e="",children:t=null})=>{const s=xi("selectPreference",[],"isPremium"),n=xi("selectLink",[],"https://yoa.st/jj"),a=xi("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),o=xi("selectUpsellSettingsAsProps"),i=xi("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,r.useSelect)(zo),c=xi("selectPreference",[],"isWooCommerceActive");return(0,Zt.jsxs)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col",children:[(0,Zt.jsx)("div",{className:Ps()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t}),!s&&(0,Zt.jsx)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]",children:(0,Zt.jsx)("div",{className:"yst-sticky yst-top-16",children:(0,Zt.jsx)(Bs,{premiumLink:c?a:n,premiumUpsellConfig:o,academyLink:i,isPromotionActive:l,isWooCommerceActive:c})})})]})},mp=window.yoast.externals.redux;function hp({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const fp="adminNotices",yp=(0,fa.createSlice)({name:fp,initialState:{notices:function(){const e=[...Array.from(document.querySelectorAll(".notice-yoast:not(.yoast-webinar-dashboard)")),...Array.from(document.querySelectorAll(".yoast-migrated-notice"))],t=e.map((e=>e.id)),s=e.map((e=>e.querySelector(".yoast-notice-migrated-header"))),r=function(e){return e.forEach((e=>{e&&e.querySelectorAll("a.button").forEach((e=>{e.classList.remove("button"),e.classList.add("yst-button"),e.classList.add("yst-button--primary"),e.classList.add("yst-mt-4")}))})),e}(e.map((e=>e.querySelector(".notice-yoast-content")))),n=e.map((e=>e.classList.contains("is-dismissible")));return e.map(((e,a)=>({originalNotice:e,id:t[a],header:s[a].outerHTML,content:r[a].outerHTML,isDismissable:n[a],isDismissed:!1})))}()},reducers:{dismissNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!0)}))},restoreNotice(e,{payload:t}){e.notices.map((e=>{e.id===t&&(e.isDismissed=!1)}))}}}),gp=yp.getInitialState,vp={selectNotices:e=>(0,c.get)(e,`${fp}.notices`,[])},bp=yp.actions,xp=yp.reducer,wp="alertCenter",Sp="toggleAlertVisibility",Ep=(0,fa.createSlice)({name:wp,initialState:{alertToggleError:null,alerts:[]},reducers:{toggleAlert:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));-1!==s&&(e.alerts[s].dismissed=!e.alerts[s].dismissed)},setAlertToggleError:(e,t)=>{const s=e.alerts.findIndex((e=>e.id===t));e.alertToggleError=-1===s?null:e.alerts[s]},removeAlert(e,{payload:t}){e.alerts=e.alerts.filter((e=>e.id!==t))}},extraReducers:e=>{e.addCase(`${Sp}/${Ws}`,((e,{payload:{id:t}})=>{Ep.caseReducers.toggleAlert(e,t)})),e.addCase(`${Sp}/${Gs}`,((e,{payload:{id:t}})=>{Ep.caseReducers.setAlertToggleError(e,t)}))}}),_p=Ep.getInitialState,jp=e=>(0,c.get)(e,`${wp}.alerts`,[]),Cp=(0,fa.createSelector)([jp],(e=>e.filter((e=>!e.dismissed)))),kp={selectActiveProblems:(0,fa.createSelector)([Cp],(e=>e.filter((e=>"error"===e.type)))),selectDismissedProblems:(0,fa.createSelector)([jp],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,fa.createSelector)([Cp],(e=>e.filter((e=>"warning"===e.type)))),selectDismissedNotifications:(0,fa.createSelector)([jp],(e=>e.filter((e=>"warning"===e.type&&e.dismissed)))),selectAlertToggleError:e=>(0,c.get)(e,`${wp}.alertToggleError`,null),selectAlert:(0,fa.createSelector)([jp,(e,t)=>t],((e,t)=>e.find((e=>e.id===t)))),selectActiveAlertsCount:(0,fa.createSelector)([Cp],(e=>e.length))},Rp={...Ep.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${Sp}/${Vs}`};try{return yield{type:Sp,payload:{id:e,nonce:t,hidden:s}},{type:`${Sp}/${Ws}`,payload:{id:e}}}catch(t){return{type:`${Sp}/${Gs}`,payload:{id:e}}}}},Op={[Sp]:async({payload:e})=>{const t=new URLSearchParams;t.append("action",e.hidden?"yoast_restore_notification":"yoast_dismiss_notification"),t.append("notification",e.id),t.append("nonce",e.nonce);const s=(0,r.select)(zo).selectPreference("ajaxUrl");if(!(await fetch(s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},body:t.toString()})).ok)throw new Error("Failed to dismiss notification")}},Np=Ep.reducer,Pp=()=>({...(0,c.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,c.get)(window,"ajaxurl","")}),Tp=(0,fa.createSlice)({name:"preferences",initialState:Pp(),reducers:{}}),Lp={selectPreference:(e,t,s={})=>(0,c.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,c.get)(e,"preferences",{})};Lp.selectUpsellSettingsAsProps=(0,fa.createSelector)([e=>Lp.selectPreference(e,"upsellSettings",{}),(e,t="premiumCtbId")=>t],((e,t)=>({"data-action":null==e?void 0:e.actionId,"data-ctb-id":null==e?void 0:e[t]})));const Mp=Tp.actions,Ap=Tp.reducer,Ip="optInNotification",Dp="setOptInNotificationSeen",Fp=(0,fa.createSlice)({name:Ip,initialState:{seen:{}},reducers:{hideOptInNotification(e,t){const s=t.payload;e.seen[s]=!0}}}),zp=Fp.getInitialState,Up={selectIsOptInNotificationSeen:(e,t)=>(0,c.get)(e,[Ip,"seen",t],!1)},Bp={...Fp.actions,setOptInNotificationSeen:function*(e){yield{type:`${Dp}/${Vs}`};try{return yield{type:Dp,payload:e},{type:`${Dp}/${Ws}`,payload:e}}catch(t){return console.error("Error setting opt-in notification as seen:",t),{type:`${Dp}/${Gs}`,payload:e}}}},qp={[Dp]:async({payload:e})=>{await Ea()({path:"yoast/v1/seen-opt-in-notification",method:"POST",data:{key:e}})}},$p=Fp.reducer,{currentPromotions:Hp,dismissedAlerts:Vp,isPremium:Wp}=mp.reducers,{isAlertDismissed:Gp,getIsPremium:Kp,isPromotionActive:Yp}=mp.selectors,{dismissAlert:Zp,setCurrentPromotions:Jp,setDismissedAlerts:Qp,setIsPremium:Xp}=mp.actions;a()((()=>{var s,n;const a=document.getElementById("yoast-seo-general");if(!a)return;(({initialState:t={}}={})=>{(0,r.register)((({initialState:t})=>(0,r.createReduxStore)(zo,{actions:{...xa,...Pa,...Mp,...Rp,dismissAlert:Zp,setCurrentPromotions:Jp,setDismissedAlerts:Qp,setIsPremium:Xp,...bp,...Bp},selectors:{...ba,...Na,...Lp,...kp,isAlertDismissed:Gp,getIsPremium:Kp,isPromotionActive:Yp,...vp,...Up},initialState:(0,c.merge)({},{[ya]:va(),[ka]:Oa(),preferences:Pp(),[wp]:_p(),currentPromotions:{promotions:[]},[fp]:gp(),[Ip]:zp()},t),reducer:(0,r.combineReducers)({[ya]:wa,[ka]:Ta,preferences:Ap,[wp]:Np,currentPromotions:Hp,dismissedAlerts:Vp,isPremium:Wp,[fp]:xp,[Ip]:$p}),controls:{...Op,...e,...qp}}))({initialState:t}))})({initialState:{[ya]:(0,c.get)(window,"wpseoScriptData.adminUrl",""),[ka]:(0,c.get)(window,"wpseoScriptData.linkParams",{}),[wp]:{alerts:(0,c.get)(window,"wpseoScriptData.alerts",[])},currentPromotions:{promotions:(0,c.get)(window,"wpseoScriptData.currentPromotions",[])},dismissedAlerts:(0,c.get)(window,"wpseoScriptData.dismissedAlerts",{}),isPremium:(0,c.get)(window,"wpseoScriptData.preferences.isPremium",!1),[fp]:{resolvedNotices:[]},[Ip]:{seen:(0,c.get)(window,"wpseoScriptData.optInNotificationSeen",!1)}}});const d=(0,r.select)(zo).selectPreference("isRtl",!1),u=(0,c.get)(window,"wpseoScriptData.dashboard.contentTypes",[]),p=(0,c.get)(window,"wpseoScriptData.dashboard.displayName","User"),m=(null===(s=document.getElementsByTagName("html"))||void 0===s||null===(n=s[0])||void 0===n?void 0:n.getAttribute("lang"))||"en-US",h={indexables:(0,c.get)(window,"wpseoScriptData.dashboard.indexablesEnabled",!1),seoAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.keyphraseAnalysis",!1),readabilityAnalysis:(0,c.get)(window,"wpseoScriptData.dashboard.enabledAnalysisFeatures.readabilityAnalysis",!1)},f={seoScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.seoScores",""),readabilityScores:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.readabilityScores",""),timeBasedSeoMetrics:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.timeBasedSeoMetrics",""),siteKitConfigurationDismissal:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConfigurationDismissal",""),siteKitConsentManagement:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.siteKitConsentManagement",""),setupStepsTracking:(0,c.get)(window,"wpseoScriptData.dashboard.endpoints.setupStepsTracking","")},y={"X-Wp-Nonce":(0,c.get)(window,"wpseoScriptData.dashboard.nonce","")},v={dashboardLearnMore:(0,r.select)(zo).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,r.select)(zo).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,r.select)(zo).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,r.select)(zo).selectLink("https://yoa.st/dashboard-site-kit-consent-learn-more")},E=(0,c.get)(window,"wpseoScriptData.dashboard.siteKitConfiguration",{installUrl:"",activateUrl:"",setupUrl:"",dashboardUrl:"",isAnalyticsConnected:!1,isFeatureEnabled:!1,isSetupWidgetDismissed:!1,isVersionSupported:!1,capabilities:{installPlugins:!1,viewSearchConsoleData:!1,viewAnalyticsData:!1},connectionStepsStatuses:{isInstalled:!1,isActive:!1,isSetupCompleted:!1,isConsentGranted:!1},isRedirectedFromSiteKit:!1}),_={storagePrefix:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.storagePrefix",""),yoastVersion:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.yoastVersion",""),widgetsCacheTtl:(0,c.get)(window,"wpseoScriptData.dashboard.browserCache.widgetsCacheTtl",{})},j=new i.RemoteDataProvider({headers:y}),C=new Mn({contentTypes:u,userName:p,features:h,endpoints:f,headers:y,links:v,siteKitConfiguration:E}),k={comparisonMetricsDataFormatter:new i.ComparisonMetricsDataFormatter({locale:m}),plainMetricsDataFormatter:new i.PlainMetricsDataFormatter({locale:m})},R=Object.entries(_.widgetsCacheTtl).reduce(((e,[t,s])=>(e[t]=new i.RemoteCachedDataProvider({headers:y},_.storagePrefix,_.yoastVersion,s.ttl),e)),{}),O={data:{setupWidgetLoaded:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetLoaded","no"),firstInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.firstInteractionStage",""),lastInteractionStage:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.lastInteractionStage",""),setupWidgetTemporarilyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetTemporarilyDismissed",""),setupWidgetPermanentlyDismissed:(0,c.get)(window,"wpseoScriptData.dashboard.setupStepsTracking.setupWidgetPermanentlyDismissed","")},endpoint:C.getEndpoint("setupStepsTracking")},N={setupWidgetDataTracker:new zn(O,j)},P=new ha(C,j,R,k,N);C.isSiteKitConnectionCompleted()&&E.isVersionSupported&&C.setSiteKitConfigurationDismissed(!0);const T=(L=jt((0,Zt.jsxs)(Et,{path:"/",element:(0,Zt.jsx)(dp,{}),errorElement:(0,Zt.jsx)(wi,{className:"yst-m-8"}),children:[(0,Zt.jsx)(Et,{path:"/",element:(0,Zt.jsxs)(pp,{children:[(0,Zt.jsx)(xn,{widgetFactory:P,userName:p,features:h,links:v,sitekitFeatureEnabled:E.isFeatureEnabled,dataProvider:C}),(0,Zt.jsx)(up,{})]}),errorElement:(0,Zt.jsx)(wi,{})}),(0,Zt.jsx)(Et,{path:au,element:(0,Zt.jsxs)(pp,{children:[(0,Zt.jsx)(nu,{}),(0,Zt.jsx)(up,{})]}),errorElement:(0,Zt.jsx)(wi,{})}),(0,Zt.jsx)(Et,{path:ou,element:(0,Zt.jsx)(ru,{}),errorElement:(0,Zt.jsx)(wi,{})}),(0,Zt.jsx)(Et,{path:"*",element:(0,Zt.jsx)(wt,{to:"/",replace:!0})})]})),de({basename:void 0,future:kt({},void 0,{v7_prependBasename:!0}),history:(M={window:void 0},void 0===M&&(M={}),S((function(e,t){let{pathname:s="/",search:r="",hash:n=""}=w(e.location.hash.substr(1));return s.startsWith("/")||s.startsWith(".")||(s="/"+s),b("",{pathname:s,search:r,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let s=e.document.querySelector("base"),r="";if(s&&s.getAttribute("href")){let t=e.location.href,s=t.indexOf("#");r=-1===s?t:t.slice(0,s)}return r+"#"+("string"==typeof t?t:x(t))}),(function(e,t){g("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),M)),hydrationData:Ot(),routes:L,mapRouteProperties:Ct,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var L,M;(0,o.createRoot)(a).render((0,Zt.jsx)(l.Root,{context:{isRtl:d},children:(0,Zt.jsx)(t.SlotFillProvider,{children:(0,Zt.jsx)(Dt,{router:T})})}))}))})()})();
Copyright ©2021 || Defacer Indonesia