????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.32.1  /  Your IP : 216.73.216.191
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/././tempvsty/././././peekmysite.com/wp-content/plugins/wordpress-seo/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/././tempvsty/././././peekmysite.com/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"},E="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),E&&(w.height=x,x=v);var S=(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:S,height:x,overflow:"hidden",shouldUseTransitions:!E}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),E?(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,E=b.animationStateClasses,S=b.shouldUseTransitions,_=n({},v,{height:x,overflow:w||v.overflow});S&&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={},E,!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:()=>ch});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 E(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 S;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(S||(S={}));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 P(e.path))n(e,t,s);else n(e,t)})),t}function P(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=P(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 O=/^:[\w-]+$/,N=3,T=2,M=1,L=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+(O.test(t)?N:""===t?M:L)),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:Z(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:G(r),hash:K(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,"/"),Z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),G=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",K=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class Y{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,E=new Set,R=null,P=null,O=null,N=null!=e.hydrationData,T=C(c,e.history.location,d),M=null;if(null==T&&!p){let t=Oe(404,{pathname:e.history.location.pathname}),{matches:s,route:r}=Pe(c);T=s,M={[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 L,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||M,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,Z=new Map,G=0,K=-1,Y=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 Se(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){L&&L.abort(),L=null,D=t,$=!0===(r&&r.startUninterruptedRevalidation),function(e,t){if(R&&O){let s=dt(e,t);R[s]=O()}}(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 Se(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 Se(s,{matches:i},{flushSync:l});var p,y;L=new AbortController;let g,v=Ee(e.history,s,L.signal,r&&r.submission);if(r&&r.pendingError)g=[Re(i).route.id,{type:S.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={}),Ke();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:S.error,error:r}]}}if(!s.matches){let{notFoundMatches:e,error:s,route:r}=it(t.pathname);return{matches:e,pendingActionResult:[r.id,{type:S.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:S.error,error:Oe(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(Le(o))throw Oe(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 L=null,void Se(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=Ee(e.history,v.url,v.signal)}let{shortCircuited:b,matches:x,loaderData:w,errors:E}=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,E]=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)))),K=++G,0===w.length&&0===E.length){let e=st();return Se(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)}E.length>0&&(e.fetchers=function(e){return e.forEach((e=>{let t=I.fetchers.get(e.key),s=Ze(void 0,t?t.data:void 0);I.fetchers.set(e.key,s)})),new Map(I.fetchers)}(E)),fe(e,{flushSync:h})}E.forEach((e=>{Z.has(e.key)&&et(e.key),e.controller&&Z.set(e.key,e.controller)}));let S=()=>E.forEach((e=>et(e.key)));L&&L.signal.addEventListener("abort",S);let{loaderResults:_,fetcherResults:j}=await $e(I,r,w,E,t);if(t.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",S),E.forEach((e=>Z.delete(e.key)));let C=Ne(_);if(C)return await De(t,C.result,!0,{replace:u}),{shortCircuited:!0};if(C=Ne(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,E,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 P=st(),O=rt(K),N=P||O||E.length>0;return m({matches:r,loaderData:k,errors:R},N?{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||(L=null,Se(s,m({matches:x||i},ke(g),{loaderData:w,errors:E})))}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))}L=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 Oe(405,{method:t.method,pathname:r,routeId:s.route.id})}return{type:S.data,result:void 0}}o=await l(n)}else{if(!n){let e=new URL(t.url);throw Oe(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:S.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return o}(t,r,e,a,s,c):Promise.resolve({type:S.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:S.error,error:e}})),c}for(let[e,t]of Object.entries(i))if(Me(t)){let r=t.result;c[e]={type:S.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,Ee(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:S.error,error:Oe(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 Ke(){H=!0,V.push(...ct()),X.forEach(((e,t)=>{Z.has(t)&&(W.add(t),et(t))}))}function Ye(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);!Z.has(e)||t&&"loading"===t.state&&Y.has(e)||et(e),X.delete(e),Y.delete(e),Q.delete(e),te.delete(e),W.delete(e),I.fetchers.delete(e)}function et(e){let t=Z.get(e);y(t,"Expected fetch controller: "+e),t.abort(),Z.delete(e)}function tt(e){for(let t of e){let e=Ge(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 Y)if(r<e){let e=I.fetchers.get(s);y(e,"Expected fetcher: "+s),"loading"===e.state&&(et(s),Y.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=Oe(404,{pathname:e}),s=a||c,{matches:r,route:n}=Pe(s);return ct(),{notFoundMatches:r,route:n,error:t}}function lt(e,t){return{boundaryId:Re(t.partialMatches).route.id,error:Oe(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 P&&P(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(E.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,E),{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,E),{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,O=t,P=s||null,!N&&I.navigation===ne){N=!0;let e=ut(I.location,I.matches);null!=e&&fe({restoreScrollPosition:e})}return()=>{R=null,O=null,P=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.");Z.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,Oe(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=Oe(405,{method:u.formMethod,pathname:r,routeId:s});return Je(t,s,e,{flushSync:l}),!0}return!1}if(Ke(),X.delete(t),!i&&p(n))return;let m=I.fetchers.get(t);Ye(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=Ee(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,Oe(404,{pathname:r}),{flushSync:l});if(p(n=He(o=e.matches,r)))return}Z.set(t,h);let v=G,b=(await Fe("action",0,g,[n],o,t))[n.route.id];if(g.signal.aborted)return void(Z.get(t)===h&&Z.delete(t));if(f.v7_fetcherPersist&&te.has(t)){if(Ie(b)||Ae(b))return void Ye(t,Ge(void 0))}else{if(Ie(b))return Z.delete(t),K>v?void Ye(t,Ge(void 0)):(Q.add(t),Ye(t,Ze(u)),De(g,b,!1,{fetcherSubmission:u}));if(Ae(b))return void Je(t,s,b.error)}if(Le(b))throw Oe(400,{type:"defer-action"});let x=I.navigation.location||I.location,w=Ee(e.history,x,h.signal),E=a||c,S="idle"!==I.navigation.state?C(E,I.navigation.location,d):I.matches;y(S,"Didn't find any matches after fetcher action");let _=++G;Y.set(t,_);let j=Ze(u,b.data);I.fetchers.set(t,j);let[k,R]=me(e.history,I,S,u,x,!1,f.v7_skipActionErrorRevalidation,H,V,W,te,X,Q,E,d,[n.route.id,b]);R.filter((e=>e.key!==t)).forEach((e=>{let t=e.key,s=I.fetchers.get(t),r=Ze(void 0,s?s.data:void 0);I.fetchers.set(t,r),Z.has(t)&&et(t),e.controller&&Z.set(t,e.controller)})),fe({fetchers:new Map(I.fetchers)});let P=()=>R.forEach((e=>et(e.key)));h.signal.addEventListener("abort",P);let{loaderResults:O,fetcherResults:N}=await $e(I,S,k,R,w);if(h.signal.aborted)return;h.signal.removeEventListener("abort",P),Y.delete(t),Z.delete(t),R.forEach((e=>Z.delete(e.key)));let T=Ne(O);if(T)return De(w,T.result,!1);if(T=Ne(N),T)return Q.add(T.key),De(w,T.result,!1);let{loaderData:M,errors:A}=je(I,S,0,O,void 0,R,N,se);if(I.fetchers.has(t)){let e=Ge(b.data);I.fetchers.set(t,e)}rt(_),"loading"===I.navigation.state&&_>K?(y(D,"Expected pending action"),L&&L.abort(),Se(I.navigation.location,{matches:S,loaderData:M,errors:A,fetchers:new Map(I.fetchers)})):(fe({errors:A,loaderData:Ce(I.loaderData,M,S,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);Ye(t,Ze(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=Ee(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,Oe(404,{pathname:r}),{flushSync:i});n=He(a=e.matches,r)}Z.set(t,d);let p=G,m=(await Fe("loader",0,u,[n],a,t))[n.route.id];if(Le(m)&&(m=await qe(m,u.signal,!0)||m),Z.get(t)===d&&Z.delete(t),!u.signal.aborted){if(!te.has(t))return Ie(m)?K>p?void Ye(t,Ge(void 0)):(Q.add(t),void await De(u,m,!1)):void(Ae(m)?Je(t,s,m.error):(y(!Le(m),"Unhandled fetcher deferred data"),Ye(t,Ge(m.data))));Ye(t,Ge(void 0))}}(t,s,h,b,p,m.active,i,g))},revalidate:function(){Ke(),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(),L&&L.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:Z,_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:Oe(405,{method:r.formMethod})};var n;let a,o,i=()=>({path:s,error:Oe(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=Se(r.formData),o=r.formData;else if(r.body instanceof FormData)a=Se(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,E=y?y[1].statusCode:void 0,S=o&&E&&E>=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:E,defaultShouldRevalidate:!S&&(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:E,defaultShouldRevalidate:!S&&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:S.error,error:e}}return s===S.error?{type:S.error,error:new Y(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:S.data,data:e,statusCode:t.status,headers:t.headers}}if(s===S.error){if(De(t)){var r,n;if(t.data instanceof Error)return{type:S.error,error:t.data,statusCode:null==(n=t.init)?void 0:n.status};t=new Y((null==(r=t.init)?void 0:r.status)||500,void 0,t.data)}return{type:S.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:S.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:S.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:S.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 Ee(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=Se(r.formData):a.body=r.formData}return new Request(n,a)}function Se(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 Le(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(Le(a))y(!1,"Unhandled fetcher deferred data");else{let t=Ge(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 Pe(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 Oe(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 Y(e||500,i,new Error(l),!0)}function Ne(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 Me(e){return Fe(e.result)&&se.has(e.result.status)}function Le(e){return e.type===S.deferred}function Ae(e){return e.type===S.error}function Ie(e){return(e&&e.type)===S.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]);Le(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))&&Le(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:S.data,data:e.deferredData.unwrappedData}}catch(e){return{type:S.error,error:e}}return{type:S.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 Ze(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 Ge(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 Ke(){return Ke=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},Ke.apply(this,arguments)}Symbol("deferred");const Ye=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,Ke({fromRouteId:t},n)))}),[e,t])}():function(){st()||y(!1);let e=d.useContext(Ye),{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:Ke({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(Ye);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(Ye);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 Et(e){return function(e){let t=d.useContext(et).outlet;return t?d.createElement(ot.Provider,{value:e},t):t}(e.context)}function St(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:Ke({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!==St&&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(Ga){}function Pt(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=kt({},t,{errors:Ot(t.errors)})),t}function Ot(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 Y(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 Nt=d.createContext({isTransitioning:!1}),Tt=d.createContext(new Map),Mt=d.startTransition,Lt=p.flushSync;function At(e){Lt?Lt(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){Mt?Mt(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]),E=s.basename||"/",S=d.useMemo((()=>({router:s,navigator:w,static:!1,basename:E})),[s,w,E]),_=d.useMemo((()=>({v7_relativeSplatPath:s.future.v7_relativeSplatPath})),[s.future.v7_relativeSplatPath]);return d.createElement(d.Fragment,null,d.createElement(Ye.Provider,{value:S},d.createElement(Je.Provider,{value:n},d.createElement(Tt.Provider,{value:g.current},d.createElement(Nt.Provider,{value:l},d.createElement(_t,{basename:E,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}};var Zt=s(5890),Gt=s.n(Zt);const Kt=window.ReactJSXRuntime,Yt=({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,Kt.jsx)("a",{href:e,target:"_blank",rel:"noopener",children:"Yoast SEO academy"})})),[]);return(0,Kt.jsxs)(l.Paper,{as:"div",className:"yst-p-6 yst-space-y-3",children:[(0,Kt.jsx)(l.Title,{as:"h2",size:"4",className:"yst-text-base yst-text-primary-500",children:(0,Vt.__)("Learn SEO","wordpress-seo")}),(0,Kt.jsxs)("p",{children:[t,(0,Kt.jsx)("br",{}),(0,Vt.__)("We have both free and premium online courses to learn everything you need to know about SEO.","wordpress-seo")]}),(0,Kt.jsx)(l.Link,{href:e,className:"yst-block",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")})]})};Yt.propTypes={link:Gt().string.isRequired};const Jt=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"}))})),Qt=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"}))})),Xt=({learnMoreLink:e,thumbnail:t,wistiaEmbedPermission:s,upsellLink:r,upsellLabel:n,newToText:a,ctbId:o})=>{const{onClose:i,initialFocus:c}=(0,l.useModalContext)(),d={a:(0,Kt.jsx)(is,{href:e,className:"yst-inline-flex yst-items-center yst-gap-1 yst-no-underline yst-font-medium",variant:"primary"}),ArrowNarrowRightIcon:(0,Kt.jsx)(Qt,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),br:(0,Kt.jsx)("br",{})};return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("div",{className:"yst-px-10 yst-pt-10 yst-introduction-gradient yst-text-center",children:[(0,Kt.jsxs)("div",{className:"yst-relative yst-w-full",children:[(0,Kt.jsx)(Qs,{videoId:"vun9z1dpfh",thumbnail:t,wistiaEmbedPermission:s}),(0,Kt.jsx)(l.Badge,{className:"yst-absolute yst-end-4 yst-text-center yst-justify-center",variant:"info",style:{top:"-8px"},children:(0,Vt.__)("Beta","wordpress-seo")})]}),(0,Kt.jsx)("div",{className:"yst-mt-6 yst-text-xs yst-font-medium yst-flex yst-flex-col yst-items-center",children:(0,Kt.jsxs)("span",{className:"yst-introduction-modal-uppercase yst-flex yst-gap-2 yst-items-center",children:[(0,Kt.jsx)("span",{className:"yst-logo-icon"}),a]})})]}),(0,Kt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Kt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Kt.jsx)("h3",{className:"yst-text-slate-900 yst-text-lg yst-font-medium",children:(0,Vt.sprintf)(/* translators: %s: Expands to "Yoast AI" */
(0,Vt.__)("Optimize your SEO content with %s","wordpress-seo"),"Yoast AI")}),(0,Kt.jsx)("div",{className:"yst-mt-2 yst-text-slate-600 yst-text-sm",children:Wt((0,Vt.sprintf)(/* translators: %1$s is a break tag; %2$s and %3$s are anchor tags; %4$s is the arrow icon. */
(0,Vt.__)("Make content editing a breeze! Optimize your SEO content with quick, actionable suggestions at the click of a button.%1$s%2$sLearn more%3$s%4$s","wordpress-seo"),"<br/>","<a>","<ArrowNarrowRightIcon />","</a>"),d)})]}),(0,Kt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-6",children:(0,Kt.jsxs)(l.Button,{as:"a",className:"yst-grow",size:"extra-large",variant:"upsell",href:r,target:"_blank",ref:c,"data-action":"load-nfd-ctb","data-ctb-id":o,children:[(0,Kt.jsx)(Jt,{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5"}),n,(0,Kt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]})}),(0,Kt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:i,children:(0,Vt.__)("Close","wordpress-seo")})]})]})};Xt.propTypes={learnMoreLink:Gt().string.isRequired,upsellLink:Gt().string.isRequired,thumbnail:Gt().shape({src:Gt().string.isRequired,width:Gt().string,height:Gt().string}).isRequired,wistiaEmbedPermission:Gt().shape({value:Gt().bool.isRequired,status:Gt().string.isRequired,set:Gt().func.isRequired}).isRequired,upsellLabel:Gt().string,newToText:Gt().string,ctbId:Gt().string},Xt.defaultProps={upsellLabel:(0,Vt.sprintf)(/* translators: %1$s expands to Yoast SEO Premium. */
(0,Vt.__)("Unlock with %1$s","wordpress-seo"),"Yoast SEO Premium"),newToText:"Yoast SEO Premium",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"};const es=({handleRefreshClick:e,supportLink:t})=>(0,Kt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Kt.jsx)(l.Button,{onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Kt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});es.propTypes={handleRefreshClick:Gt().func.isRequired,supportLink:Gt().string.isRequired};const ts=({handleRefreshClick:e,supportLink:t})=>(0,Kt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Kt.jsx)(l.Button,{className:"yst-order-last",onClick:e,children:(0,Vt.__)("Refresh this page","wordpress-seo")}),(0,Kt.jsx)(l.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Vt.__)("Contact support","wordpress-seo")})]});ts.propTypes={handleRefreshClick:Gt().func.isRequired,supportLink:Gt().string.isRequired};const ss=({error:e,children:t})=>(0,Kt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Kt.jsx)(l.Title,{children:(0,Vt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Kt.jsx)("p",{children:(0,Vt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Kt.jsx)(l.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Vt.__)("Undefined error message.","wordpress-seo")}),(0,Kt.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]});ss.propTypes={error:Gt().object.isRequired,children:Gt().node},ss.VerticalButtons=ts,ss.HorizontalButtons=es;var rs;function ns(){return ns=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},ns.apply(this,arguments)}Gt().string,Gt().node.isRequired,Gt().node.isRequired,Gt().node,Gt().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 as=e=>d.createElement("svg",ns({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 1000 1000"},e),rs||(rs=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"}))),os=({to:e,idSuffix:t="",...s})=>{const r=(0,o.useMemo)((()=>(0,c.replace)((0,c.replace)(`link-${e}`,"/","-"),"--","-")),[e]);return(0,Kt.jsx)(l.SidebarNavigation.SubmenuItem,{as:qt,pathProp:"to",id:`${r}${t}`,to:e,...s})};os.propTypes={to:Gt().string.isRequired,idSuffix:Gt().string};const is=({href:e,children:t,...s})=>(0,Kt.jsxs)(l.Link,{target:"_blank",rel:"noopener noreferrer",...s,href:e,children:[t,(0,Kt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]});is.propTypes={href:Gt().string.isRequired,children:Gt().node},is.defaultProps={children:null};const ls=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"}))})),cs=[(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")],ds=[(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")],us=(e=!1)=>e?cs:ds,ps=(e=!1)=>{if(e)return cs;const t=[...ds];return t[1]=(0,Vt.__)("Boost visibility for your products, from 10 or 10,000+","wordpress-seo"),t};var ms,hs,fs;function ys(){return ys=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},ys.apply(this,arguments)}const gs=e=>d.createElement("svg",ys({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),ms||(ms=d.createElement("defs",null,d.createElement("style",null,".star-rating-half_svg__cls-1{fill:#fbbf24}"))),hs||(hs=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"})),fs||(fs=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 vs(){return vs=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},vs.apply(this,arguments)}const bs=e=>d.createElement("svg",vs({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 xs,ws,Es;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 _s=e=>d.createElement("svg",Ss({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),xs||(xs=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"}))),ws||(ws=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"})),Es||(Es=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 js,Cs,ks;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)}const Ps=e=>d.createElement("svg",Rs({xmlns:"http://www.w3.org/2000/svg",width:64,height:64,fill:"none"},e),js||(js=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"}))),Cs||(Cs=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"})),ks||(ks=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),Ts=s.n(Ns);const Ms=({link:e,linkProps:t,isPromotionActive:s,isWooCommerceActive:r})=>{const n=r?ps:us,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,Kt.jsx)("span",{className:"yst-whitespace-nowrap"})}),d=s("black-friday-promotion");return d&&(i=(0,Vt.__)("Buy now for 30% off","wordpress-seo")),(0,Kt.jsxs)("div",{className:Ts()("yst-p-6 yst-rounded-lg yst-text-white  yst-shadow",r?"yst-bg-woo-dark":"yst-bg-primary-500"),children:[(0,Kt.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,Kt.jsx)(Ps,{}):(0,Kt.jsx)(_s,{})}),d&&(0,Kt.jsx)("div",{className:"sidebar__sale_banner_container",children:(0,Kt.jsx)("div",{className:"sidebar__sale_banner",children:(0,Kt.jsx)("span",{className:"banner_text",children:(0,Vt.__)("BLACK FRIDAY | 30% OFF","wordpress-seo")})})}),(0,Kt.jsx)(l.Title,{as:"h2",className:"yst-mt-6 yst-text-base yst-font-extrabold yst-text-white",children:c}),(0,Kt.jsx)("p",{className:"yst-mt-2 yst-font-medium",children:a}),(0,Kt.jsx)("ul",{className:"yst-ps-[1em] yst-list-outside yst-text-white yst-mt-2",children:n(!0).map(((e,t)=>(0,Kt.jsxs)("li",{className:"yst-flex yst-items-center yst-gap-2",children:[(0,Kt.jsx)(Os,{className:"yst-w-4 yst-h-4 yst-text-green-400"}),(0,Kt.jsx)("span",{children:e})]},`upsell-benefit-${t}`)))}),(0,Kt.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,Kt.jsx)("span",{children:i}),(0,Kt.jsx)(ls,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]}),(0,Kt.jsx)("p",{className:"yst-text-center yst-text-xs yst-mx-2 yst-font-light yst-leading-5 yst-italic yst-mt-2",children:(0,Vt.__)("30-day money back guarantee","wordpress-seo")}),(0,Kt.jsx)("hr",{className:"yst-border-t yst-border-primary-300 yst-my-4"}),(0,Kt.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,Kt.jsxs)("span",{className:"yst-flex yst-gap-2 yst-mt-2 yst-items-center",children:[(0,Kt.jsx)(as,{className:"yst-w-5 yst-h-5"}),(0,Kt.jsxs)("span",{className:"yst-flex yst-gap-1",children:[(0,Kt.jsx)(bs,{className:"yst-w-5 yst-h-5"}),(0,Kt.jsx)(bs,{className:"yst-w-5 yst-h-5"}),(0,Kt.jsx)(bs,{className:"yst-w-5 yst-h-5"}),(0,Kt.jsx)(bs,{className:"yst-w-5 yst-h-5"}),(0,Kt.jsx)(gs,{className:"yst-w-5 yst-h-5"})]}),(0,Kt.jsx)("span",{className:"yst-text-sm yst-font-semibold yst-text-white",children:"4.6 / 5"})]})})]})};var Ls;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)}Ms.propTypes={link:Gt().string.isRequired,linkProps:Gt().object,isPromotionActive:Gt().func},Ms.defaultProps={linkProps:{},isPromotionActive:c.noop};const Is=e=>d.createElement("svg",As({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),Ls||(Ls=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?ps:us;let o=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&&(o=(0,Vt.__)("Get 30% off now!","wordpress-seo")),(0,Kt.jsxs)(l.Paper,{as:"div",className:"xl:yst-max-w-3xl",children:[n&&(0,Kt.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,Kt.jsx)("div",{children:(0,Vt.__)("30% OFF","wordpress-seo")}),(0,Kt.jsx)("div",{children:(0,Vt.__)("BLACK FRIDAY","wordpress-seo")})]}),(0,Kt.jsxs)("div",{className:"yst-p-6 yst-flex yst-flex-col",children:[(0,Kt.jsx)("div",{className:"yst-flex yst-items-center",children:r?(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.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,Kt.jsx)(zs,{className:"yst-ml-2 yst-w-4 yst-h-3"})]}):(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.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,Kt.jsx)(Is,{className:"yst-ml-2 yst-w-4 yst-h-3"})]})}),(0,Kt.jsx)("span",{className:"yst-font-medium yst-text-slate-500 yst-text-xs yst-leading-5 yst-uppercase yst-mt-2",children:(0,Vt.__)("Now includes Local, News & Video SEO + 1 Google Docs seat!","wordpress-seo")}),(0,Kt.jsx)("ul",{className:"yst-grid yst-grid-cols-1 sm:yst-grid-cols-2 yst-gap-x-6 yst-list-none yst-list-outside yst-text-slate-600 yst-mt-6",children:a().map(((e,t)=>(0,Kt.jsxs)("li",{children:[(0,Kt.jsx)("span",{className:"yst-mx-2",children:"•"}),e]},`upsell-benefit-${t}`)))}),(0,Kt.jsxs)(l.Button,{as:"a",variant:"upsell",size:"extra-large",href:e,className:"yst-gap-2 yst-mt-4",target:"_blank",rel:"noopener",...t,children:[o,(0,Kt.jsx)(ls,{className:"yst-w-4 yst-h-4 yst-icon-rtl"})]})]})]})};Us.propTypes={premiumLink:Gt().string.isRequired,premiumUpsellConfig:Gt().object,isPromotionActive:Gt().func,isWooCommerceActive:Gt().bool.isRequired},Us.defaultProps={premiumUpsellConfig:{},isPromotionActive:c.noop};const Bs=({premiumLink:e,premiumUpsellConfig:t,academyLink:s,isPromotionActive:r,isWooCommerceActive:n})=>(0,Kt.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,Kt.jsx)(Ms,{link:e,linkProps:t,isPromotionActive:r,isWooCommerceActive:n}),(0,Kt.jsx)(Yt,{link:s})]});Bs.propTypes={premiumLink:Gt().string.isRequired,premiumUpsellConfig:Gt().object.isRequired,academyLink:Gt().string.isRequired,isPromotionActive:Gt().func.isRequired,isWooCommerceActive:Gt().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,Kt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Kt.jsxs)(l.Modal.Panel,{closeButtonScreenReaderText:(0,Vt.__)("Close","wordpress-seo"),children:[(0,Kt.jsxs)("div",{className:"sm:yst-flex sm:yst-items-start",children:[(0,Kt.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,Kt.jsx)(qs,{className:"yst-h-6 yst-w-6 yst-text-red-600",...i})}),(0,Kt.jsxs)("div",{className:"yst-mt-3 yst-text-center sm:yst-mt-0 sm:yst-ms-4 sm:yst-text-start",children:[(0,Kt.jsx)(l.Modal.Title,{className:"yst-text-lg yst-leading-6 yst-font-medium yst-text-slate-900 yst-mb-3",children:r}),(0,Kt.jsx)(l.Modal.Description,{className:"yst-text-sm yst-text-slate-500",children:n})]})]}),(0,Kt.jsxs)("div",{className:"yst-flex yst-flex-col sm:yst-flex-row-reverse yst-gap-3 yst-mt-6",children:[(0,Kt.jsx)(l.Button,{type:"button",variant:"error",onClick:s,className:"yst-block",children:o}),(0,Kt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:t,className:"yst-block",children:a})]})]})})};$s.propTypes={isOpen:Gt().bool.isRequired,onClose:Gt().func,onDiscard:Gt().func,title:Gt().string.isRequired,description:Gt().string.isRequired,dismissLabel:Gt().string.isRequired,discardLabel:Gt().string.isRequired};const Hs=window.yoast.reactHelmet,Vs="request",Ws="success",Zs="error",Gs="loading",Ks="showPlay",Ys="askPermission",Js="isPlaying",Qs=({videoId:e,thumbnail:t,wistiaEmbedPermission:s})=>{const[r,n]=(0,o.useState)(s.value?Js:Ks),a=(0,o.useCallback)((()=>n(Js)),[n]),i=(0,o.useCallback)((()=>{s.value?a():n(Ys)}),[s.value,a,n]),c=(0,o.useCallback)((()=>n(Ks)),[n]),d=(0,o.useCallback)((()=>{s.set(!0),a()}),[s.set,a]);return(0,Kt.jsxs)(Kt.Fragment,{children:[s.value&&(0,Kt.jsx)(Hs.Helmet,{children:(0,Kt.jsx)("script",{src:"https://fast.wistia.com/assets/external/E-v1.js",async:!0})}),(0,Kt.jsxs)("div",{className:"yst-relative yst-w-full yst-h-0 yst-pt-[56.25%] yst-overflow-hidden yst-rounded-md yst-drop-shadow-md yst-bg-white",children:[r===Ks&&(0,Kt.jsx)("button",{type:"button",className:"yst-absolute yst-inset-0 yst-button yst-p-0 yst-border-none yst-bg-white yst-transition-opacity yst-duration-1000 yst-opacity-100",onClick:i,children:(0,Kt.jsx)("img",{className:"yst-w-full yst-h-auto",alt:"",loading:"lazy",decoding:"async",...t})}),r===Ys&&(0,Kt.jsxs)("div",{className:"yst-absolute yst-inset-0 yst-flex yst-flex-col yst-items-center yst-justify-center yst-bg-white",children:[(0,Kt.jsxs)("p",{className:"yst-max-w-xs yst-mx-auto yst-text-center",children:[s.status===Gs&&(0,Kt.jsx)(l.Spinner,{}),s.status!==Gs&&(0,Vt.sprintf)(/* translators: %1$s expands to Yoast SEO. %2$s expands to Wistia. */
(0,Vt.__)("To see this video, you need to allow %1$s to load embedded videos from %2$s.","wordpress-seo"),"Yoast SEO","Wistia")]}),(0,Kt.jsxs)("div",{className:"yst-flex yst-mt-6 yst-gap-x-4",children:[(0,Kt.jsx)(l.Button,{type:"button",variant:"secondary",onClick:c,disabled:s.status===Gs,children:(0,Vt.__)("Deny","wordpress-seo")}),(0,Kt.jsx)(l.Button,{type:"button",variant:"primary",onClick:d,disabled:s.status===Gs,children:(0,Vt.__)("Allow","wordpress-seo")})]})]}),s.value&&r===Js&&(0,Kt.jsxs)("div",{className:"yst-absolute yst-w-full yst-h-full yst-top-0 yst-right-0",children:[null===e&&(0,Kt.jsx)(l.Spinner,{className:"yst-h-full yst-mx-auto"}),null!==e&&(0,Kt.jsx)("div",{className:`wistia_embed wistia_async_${e} videoFoam=true`})]})]})]})};var Xs,er;function tr(){return tr=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},tr.apply(this,arguments)}Qs.propTypes={videoId:Gt().string.isRequired,thumbnail:Gt().shape({src:Gt().string.isRequired,width:Gt().string,height:Gt().string}).isRequired,wistiaEmbedPermission:Gt().shape({value:Gt().bool.isRequired,status:Gt().string.isRequired,set:Gt().func.isRequired}).isRequired};const sr=e=>d.createElement("svg",tr({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),Xs||(Xs=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"})),er||(er=d.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"}))),rr=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 nr,ar,or,ir,lr,cr,dr,ur,pr,mr,hr,fr,yr,gr,vr,br,xr,wr,Er,Sr,_r,jr,Cr,kr,Rr,Pr,Or,Nr,Tr,Mr,Lr,Ar,Ir,Dr,Fr,zr,Ur,Br,qr,$r,Hr,Vr,Wr,Zr,Gr,Kr,Yr,Jr,Qr,Xr,en,tn,sn,rn,nn,an,on,ln,cn,dn,un,pn,mn,hn,fn,yn,gn,vn,bn;function xn(){return xn=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},xn.apply(this,arguments)}const wn=e=>d.createElement("svg",xn({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",viewBox:"0 0 252 60"},e),nr||(nr=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"}))),ar||(ar=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"})),or||(or=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"})),ir||(ir=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"})),lr||(lr=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"})),cr||(cr=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"}))),dr||(dr=d.createElement("clipPath",{id:"yoast-connect-google-site-kit_svg__g"},d.createElement("path",{d:"M169.334 22h14.973v15.909h-14.973z"}))),ur||(ur=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"})),pr||(pr=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"})),mr||(mr=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"})),hr||(hr=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"})),fr||(fr=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"})),yr||(yr=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"})),gr||(gr=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"})),vr||(vr=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"})),br||(br=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"})),xr||(xr=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"})),wr||(wr=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"})),Er||(Er=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"})),Sr||(Sr=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"})),_r||(_r=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"})),jr||(jr=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"})),Cr||(Cr=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"})),kr||(kr=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"})),Rr||(Rr=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"})),Pr||(Pr=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"})),Or||(Or=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"})),Nr||(Nr=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"})),Tr||(Tr=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"})),Mr||(Mr=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"})),Lr||(Lr=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"})),Ar||(Ar=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"})),Ir||(Ir=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"})),Dr||(Dr=d.createElement("path",{fill:"#a0c9cb",d:"m155.213 40.425-.27 9.99-6.399-1.368-.094-9.712z"})),Fr||(Fr=d.createElement("path",{fill:"#75b0b3",d:"m155.48 50.235-.509.238c.085-11.096-.171-10.3.509-10.166v9.93z"})),zr||(zr=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"})),Ur||(Ur=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"})),Br||(Br=d.createElement("path",{fill:"#67a8ac",d:"m152.371 30.436 2.881 8.443-6.729-1.15-3.307-9.016z"})),qr||(qr=d.createElement("path",{fill:"#55989b",d:"m152.988 32.518.101.02-.716-2.1-7.155-1.725.656 1.786z"})),$r||($r=d.createElement("path",{fill:"#519093",d:"m148.766 37.79-1.127.713-2.679-8.541 1.25-.893z"})),Hr||(Hr=d.createElement("path",{fill:"#b1d3d4",d:"m152.794 30.08-.922 1.069-6.552-1.01.869-1.011z"})),Vr||(Vr=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"})),Wr||(Wr=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"})),Zr||(Zr=d.createElement("path",{fill:"#75b0b3",d:"m155.354 38.879-1.037.832-2.444-8.681.922-1.07z"})),Gr||(Gr=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"})),Kr||(Kr=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"})),Yr||(Yr=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"})),Jr||(Jr=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"})),Qr||(Qr=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"})),Xr||(Xr=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"})),en||(en=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"})),tn||(tn=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"})),sn||(sn=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"})),rn||(rn=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"})),nn||(nn=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"}))),an||(an=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"})),on||(on=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"})),ln||(ln=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"})),cn||(cn=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"})),dn||(dn=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"})),un||(un=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"})),pn||(pn=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"})),mn||(mn=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"})),hn||(hn=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"})),fn||(fn=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"})),yn||(yn=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"})),gn||(gn=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"})),vn||(vn=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"})),bn||(bn=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"})))),En=({isOpen:e,onClose:t,onGrantConsent:s,learnMoreLink:r=""})=>{const n=(0,l.useSvgAria)();return(0,Kt.jsx)(l.Modal,{isOpen:e,onClose:t,children:(0,Kt.jsxs)(l.Modal.Panel,{className:"yst-max-w-lg yst-p-0 yst-rounded-3xl",hasCloseButton:!1,children:[(0,Kt.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,Kt.jsx)("div",{className:"yst-px-10 yst-pt-10 yst-bg-gradient-to-b yst-from-primary-500/25 yst-to-[80%]",children:(0,Kt.jsx)(wn,{className:"yst-aspect-video yst-max-w-[432px] yst-p-7 yst-bg-white yst-rounded-md yst-drop-shadow-md"})}),(0,Kt.jsxs)("div",{className:"yst-px-10 yst-pb-4 yst-flex yst-flex-col yst-items-center",children:[(0,Kt.jsxs)("div",{className:"yst-mt-4 yst-mx-1.5 yst-text-center",children:[(0,Kt.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,Kt.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,Kt.jsxs)(is,{className:"yst-no-underline yst-font-medium",variant:"primary",href:r,children:[(0,Vt.__)("Learn more","wordpress-seo"),(0,Kt.jsx)(rr,{className:"yst-inline yst-h-4 yst-w-4 yst-ms-1 rtl:yst-rotate-180",...n})]})]})]}),(0,Kt.jsx)("div",{className:"yst-w-full yst-flex yst-mt-10",children:(0,Kt.jsx)(l.Button,{className:"yst-grow",size:"extra-large",variant:"primary",onClick:s||t,children:(0,Vt.__)("Grant consent","wordpress-seo")})}),(0,Kt.jsx)(l.Button,{as:"a",className:"yst-mt-4",variant:"tertiary",onClick:t,children:(0,Vt.__)("Close","wordpress-seo")})]})]})})};En.propTypes={isOpen:Gt().bool.isRequired,onClose:Gt().func.isRequired,onGrantConsent:Gt().func,learnMoreLink:Gt().string},Gt().func.isRequired,Gt().string.isRequired,Gt().string.isRequired,Gt().string.isRequired,Gt().string.isRequired;const Sn=({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,Kt.jsx)(l.Paper,{className:"yst-shadow-md",children:(0,Kt.jsxs)(l.Paper.Content,{className:"yst-flex yst-flex-col yst-gap-y-4 yst-max-w-screen-sm",children:[(0,Kt.jsx)(l.Title,{as:"h1",children:(0,Vt.sprintf)(/* translators: %s expands to the username */
(0,Vt.__)("Hi %s,","wordpress-seo"),e)}),(0,Kt.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,Kt.jsx)(is,{href:s.dashboardLearnMore,children:" "})}):Wt((0,Vt.sprintf)(o,"<link>","</link>","<profilelink>","</profilelink>"),{link:(0,Kt.jsx)(l.Link,{href:"admin.php?page=wpseo_page_settings#/site-features",children:" "}),profilelink:(0,Kt.jsx)(l.Link,{href:"profile.php",children:" "})})}),!t.indexables&&(0,Kt.jsx)(l.Alert,{type:"info",children:i})]})})},jn=({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,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(Sn,{userName:t,features:s,links:r,sitekitFeatureEnabled:n}),(0,Kt.jsx)("div",{className:"yst-@container yst-grid yst-grid-cols-4 yst-gap-6 yst-my-6",children:(0,Kt.jsx)(i.Dashboard,{widgetFactory:e})})]})};function Cn(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 kn(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,Cn(t,e))}function Rn(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,Cn(t,e),s),s}function Pn(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 On=new WeakMap,Nn=new WeakMap,Tn=new WeakMap,Mn=new WeakMap,Ln=new WeakMap,An=new WeakMap,In=new WeakMap,Dn=new WeakMap;class Fn{constructor({contentTypes:e,userName:t,features:s,endpoints:r,headers:n,links:a,siteKitConfiguration:o}){Pn(this,On,{writable:!0,value:void 0}),Pn(this,Nn,{writable:!0,value:void 0}),Pn(this,Tn,{writable:!0,value:void 0}),Pn(this,Mn,{writable:!0,value:void 0}),Pn(this,Ln,{writable:!0,value:void 0}),Pn(this,An,{writable:!0,value:void 0}),Pn(this,In,{writable:!0,value:void 0}),Pn(this,Dn,{writable:!0,value:new Set}),Rn(this,On,e),Rn(this,Nn,t),Rn(this,Tn,s),Rn(this,Mn,r),Rn(this,Ln,n),Rn(this,An,a),Rn(this,In,o)}subscribe(e){return kn(this,Dn).add(e),()=>kn(this,Dn).delete(e)}notifySubscribers(){kn(this,Dn).forEach((e=>e()))}getContentTypes(){return kn(this,On)}getUserName(){return kn(this,Nn)}getStepsStatuses(){return[kn(this,In).connectionStepsStatuses.isInstalled,kn(this,In).connectionStepsStatuses.isActive,kn(this,In).connectionStepsStatuses.isSetupCompleted,kn(this,In).connectionStepsStatuses.isConsentGranted]}hasFeature(e){var t;return!0===(null===(t=kn(this,Tn))||void 0===t?void 0:t[e])}getEndpoint(e){var t;return null===(t=kn(this,Mn))||void 0===t?void 0:t[e]}getHeaders(){return kn(this,Ln)}getLink(e){var t;return null===(t=kn(this,An))||void 0===t?void 0:t[e]}getSiteKitConfiguration(){return kn(this,In)}getSiteKitCurrentConnectionStep(){return this.getStepsStatuses().findIndex((e=>!e))}isSiteKitConnectionCompleted(){return-1===this.getSiteKitCurrentConnectionStep()}setSiteKitConsentGranted(e){const t=(0,c.cloneDeep)(kn(this,In));t.connectionStepsStatuses.isConsentGranted=e,Rn(this,In,t),this.notifySubscribers()}setSiteKitConfigurationDismissed(e){Rn(this,In,{...kn(this,In),isSetupWidgetDismissed:e}),this.notifySubscribers()}}function zn(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 Un=new WeakMap,Bn=new WeakMap,qn=new WeakMap;class $n{constructor(e,t){zn(this,Un,{writable:!0,value:void 0}),zn(this,Bn,{writable:!0,value:void 0}),zn(this,qn,{writable:!0,value:void 0}),Rn(this,Un,e.data),Rn(this,Bn,e.endpoint),Rn(this,qn,t)}getTrackingElement(e){var t;return null===(t=kn(this,Un))||void 0===t?void 0:t[e]}track(e){const t=(0,c.cloneDeep)(kn(this,Un));let s=!1;Object.entries(e).forEach((([e,r])=>{void 0!==t[e]&&t[e]!==r&&(t[e]=r,s=!0)})),s&&(Rn(this,Un,t),this.storeData(t))}storeData(e,t){kn(this,qn).fetchJson(kn(this,Bn),e,{...t,method:"POST"}).catch(c.noop)}}const Hn=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"}))})),Vn=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"}))})),Wn=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 Zn,Gn,Kn,Yn,Jn,Qn,Xn,ea,ta,sa;function ra(){return ra=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},ra.apply(this,arguments)}const na=e=>d.createElement("svg",ra({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 252 60"},e),Zn||(Zn=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"})),Gn||(Gn=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"})),Kn||(Kn=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"})),Yn||(Yn=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"})),Jn||(Jn=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"})),Qn||(Qn=d.createElement("circle",{cx:126,cy:30,r:30,fill:"#DCFCE7"})),Xn||(Xn=d.createElement("path",{stroke:"#16A34A",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3,d:"m117.045 31.25 5 5 12.5-12.5"})),ea||(ea=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"})),ta||(ta=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"}))),sa||(sa=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"}))))),aa=[{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"}],oa={install:0,activate:1,setup:2,grantConsent:3,successfullyConnected:-1},ia=(e,t)=>[oa.setup,oa.grantConsent,oa.successfullyConnected].includes(e)&&!t,la=({isSiteKitConnectionCompleted:e})=>(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.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,Kt.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")})]}),ca=({capabilities:e,currentStep:t,isVersionSupported:s,isConsentGranted:r})=>{const n="yst-mt-6";return ia(t,s)?r?(0,Kt.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,Kt.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===oa.successfullyConnected?null:!e.installPlugins&&t<oa.grantConsent?(0,Kt.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!==oa.grantConsent?void 0:(0,Kt.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")})},da=({dashboardUrl:e})=>(0,Kt.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,Kt.jsx)("a",{href:e})})}),ua=({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(ia(e,t.isVersionSupported))return(0,Kt.jsx)(l.Button,{as:"a",href:t.updateUrl,children:(0,Vt.__)("Update Site Kit by Google","wordpress-seo")});if(s)return(0,Kt.jsx)(l.Button,{onClick:r,children:(0,Vt.__)("Got it!","wordpress-seo")});switch(e){case oa.install:return(0,Kt.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 oa.activate:return(0,Kt.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 oa.setup:return(0,Kt.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 oa.grantConsent:return(0,Kt.jsx)(l.Button,{disabled:!t.capabilities.viewSearchConsoleData,onClick:n,children:(0,Vt.__)("Connect Site Kit by Google","wordpress-seo")})}return null},pa=({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(oa).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,Kt.jsxs)(i.Widget,{className:"yst-paper__content yst-relative @3xl:yst-col-span-2 yst-col-span-4",children:[(0,Kt.jsx)("div",{className:"yst-flex yst-justify-center yst-mb-6 yst-mt-4",children:u?(0,Kt.jsx)(na,{className:"yst-aspect-[21/5] yst-max-w-[252px]"}):(0,Kt.jsx)(wn,{className:"yst-aspect-[21/5] yst-max-w-[252px]"})}),!ia(a,d.isVersionSupported)&&(0,Kt.jsx)(l.Stepper,{steps:aa,currentStep:a===oa.successfullyConnected?aa.length:a,className:"yst-mb-6"}),(0,Kt.jsxs)(l.DropdownMenu,{as:"span",className:"yst-absolute yst-top-4 yst-end-4",children:[(0,Kt.jsx)(l.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,Vt.__)("Open Site Kit widget dropdown menu","wordpress-seo"),className:"yst-float-end"}),(0,Kt.jsxs)(l.DropdownMenu.List,{className:"yst-mt-8 yst-w-56",children:[(0,Kt.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,Kt.jsx)(Hn,{className:"yst-w-4 yst-text-slate-400 yst-shrink-0"}),(0,Vt.__)("Remove until next visit","wordpress-seo")]}),(0,Kt.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,Kt.jsx)(Vn,{className:"yst-w-4 yst-shrink-0"}),(0,Vt.__)("Remove permanently","wordpress-seo")]})]})]}),(0,Kt.jsx)("hr",{className:"yst-bg-slate-200 yst-mb-6"}),d.isRedirectedFromSiteKit&&(0,Kt.jsx)(da,{dashboardUrl:d.dashboardUrl}),(0,Kt.jsxs)("div",{className:"yst-max-w-2xl",children:[(0,Kt.jsx)(la,{isSiteKitConnectionCompleted:u}),(0,Kt.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,Kt.jsxs)("ul",{children:[(0,Kt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Kt.jsx)(Wn,{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,Kt.jsxs)("li",{className:"yst-gap-2 yst-flex yst-mt-2 yst-items-start",children:[(0,Kt.jsx)(Wn,{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,Kt.jsx)(ca,{capabilities:d.capabilities,currentStep:a,isVersionSupported:d.isVersionSupported,isConsentGranted:d.connectionStepsStatuses.isConsentGranted})]}),(0,Kt.jsxs)("div",{className:"yst-flex yst-gap-1.5 yst-mt-6 yst-items-center",children:[(0,Kt.jsx)(ua,{currentStep:a,config:d,isConnectionCompleted:u,onDismissWidget:p,onShowConsent:f}),!u&&(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.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,Kt.jsx)(ls,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180"}),(0,Kt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),(0,Kt.jsx)(En,{isOpen:a===oa.grantConsent&&h,onClose:y,onGrantConsent:r,learnMoreLink:b})]})]})]})};function ma(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 ha=new WeakMap,fa=new WeakMap,ya=new WeakMap,ga=new WeakMap,va=new WeakMap;class ba{constructor(e,t,s,r,n){ma(this,ha,{writable:!0,value:void 0}),ma(this,fa,{writable:!0,value:void 0}),ma(this,ya,{writable:!0,value:void 0}),ma(this,ga,{writable:!0,value:void 0}),ma(this,va,{writable:!0,value:void 0}),Rn(this,ha,e),Rn(this,fa,t),Rn(this,ya,s),Rn(this,ga,r),Rn(this,va,n)}getRemoteDataProvider(e){var t;return null!==(t=kn(this,ya)[e])&&void 0!==t?t:kn(this,fa)}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}=kn(this,ha).getSiteKitConfiguration(),o=kn(this,ha).isSiteKitConnectionCompleted(),l=t&&o&&a,c=l&&n.viewSearchConsoleData,d=l&&r&&n.viewAnalyticsData;switch(e){case this.types.seoScores:return kn(this,ha).hasFeature("indexables")&&kn(this,ha).hasFeature("seoAnalysis")?(0,Kt.jsx)(i.ScoreWidget,{analysisType:"seo",dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.readabilityScores:return kn(this,ha).hasFeature("indexables")&&kn(this,ha).hasFeature("readabilityAnalysis")?(0,Kt.jsx)(i.ScoreWidget,{analysisType:"readability",dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e)},e):null;case this.types.topPages:return c?(0,Kt.jsx)(i.TopPagesWidget,{dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:kn(this,ga).plainMetricsDataFormatter},e):null;case this.types.siteKitSetup:return!t||s?null:(0,Kt.jsx)(pa,{dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e),dataTracker:kn(this,va).setupWidgetDataTracker},e);case this.types.topQueries:return c?(0,Kt.jsx)(i.TopQueriesWidget,{dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:kn(this,ga).plainMetricsDataFormatter},e):null;case this.types.searchRankingCompare:return c?(0,Kt.jsx)(i.SearchRankingCompareWidget,{dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:kn(this,ga).comparisonMetricsDataFormatter},e):null;case this.types.organicSessions:return d?(0,Kt.jsx)(i.OrganicSessionsWidget,{dataProvider:kn(this,ha),remoteDataProvider:this.getRemoteDataProvider(e),dataFormatter:kn(this,ga).comparisonMetricsDataFormatter},e):null;default:return null}}}const xa=window.yoast.reduxJsToolkit,wa="adminUrl",Ea=(0,xa.createSlice)({name:wa,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),Sa=Ea.getInitialState,_a={selectAdminUrl:e=>(0,c.get)(e,wa,"")};_a.selectAdminLink=(0,xa.createSelector)([_a.selectAdminUrl,(e,t)=>t],((e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}));const ja=Ea.actions,Ca=Ea.reducer,ka=window.wp.apiFetch;var Ra=s.n(ka);const Pa="hasConsent",Oa=(0,xa.createSlice)({name:Pa,initialState:{hasConsent:!1,endpoint:"yoast/v1/ai_generator/consent"},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),Na=(Oa.getInitialState,Oa.actions,Oa.reducer,window.wp.url),Ta="linkParams",Ma=(0,xa.createSlice)({name:Ta,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),La=Ma.getInitialState,Aa={selectLinkParam:(e,t,s={})=>(0,c.get)(e,`${Ta}.${t}`,s),selectLinkParams:e=>(0,c.get)(e,Ta,{})};Aa.selectLink=(0,xa.createSelector)([Aa.selectLinkParams,(e,t)=>t,(e,t,s={})=>s],((e,t,s)=>(0,Na.addQueryArgs)(t,{...e,...s})));const Ia=Ma.actions,Da=Ma.reducer,Fa=(0,xa.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,xa.nanoid)(),variant:t,size:s,title:r||"",description:n}})},removeNotification:(e,{payload:t})=>(0,c.omit)(e,t)}}),za=(Fa.getInitialState,Fa.actions,Fa.reducer,"pluginUrl"),Ua=(0,xa.createSlice)({name:za,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),Ba=(Ua.getInitialState,{selectPluginUrl:e=>(0,c.get)(e,za,"")});Ba.selectImageLink=(0,xa.createSelector)([Ba.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("/"))),Ua.actions,Ua.reducer;const qa="wistiaEmbedPermission",$a=(0,xa.createSlice)({name:qa,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${qa}/${Vs}`,(e=>{e.status=Gs})),e.addCase(`${qa}/${Ws}`,((e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)})),e.addCase(`${qa}/${Zs}`,((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 Ha;$a.getInitialState,$a.actions,$a.reducer;const Va=(0,xa.createSlice)({name:"documentTitle",initialState:(0,c.defaultTo)(null===(Ha=document)||void 0===Ha?void 0:Ha.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}});function Wa(...e){return e.filter(Boolean).join(" ")}function Za(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,Za),r}Va.getInitialState,Va.actions,Va.reducer;var Ga,Ka,Ya=((Ka=Ya||{})[Ka.None=0]="None",Ka[Ka.RenderStrategy=1]="RenderStrategy",Ka[Ka.Static=2]="Static",Ka),Ja=((Ga=Ja||{})[Ga.Unmount=0]="Unmount",Ga[Ga.Hidden=1]="Hidden",Ga);function Qa({ourProps:e,theirProps:t,slot:s,defaultTag:r,features:n,visible:a=!0,name:o}){let i=eo(t,e);if(a)return Xa(i,s,r,o);let l=null!=n?n:0;if(2&l){let{static:e=!1,...t}=i;if(e)return Xa(t,s,r,o)}if(1&l){let{unmount:e=!0,...t}=i;return Za(e?0:1,{0:()=>null,1:()=>Xa({...t,hidden:!0,style:{display:"none"}},s,r,o)})}return Xa(i,s,r,o)}function Xa(e,t={},s,r){var n;let{as:a=s,children:o,refName:i="ref",...l}=ro(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(so(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=Wa(null==(n=u.props)?void 0:n.className,l.className),t=e?{className:e}:{};return(0,d.cloneElement)(u,Object.assign({},eo(u.props,so(ro(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({},ro(l,["ref"]),a!==d.Fragment&&c,a!==d.Fragment&&p),u)}function eo(...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 to(e){var t;return Object.assign((0,d.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function so(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function ro(e,t=[]){let s=Object.assign({},e);for(let e of t)e in s&&delete s[e];return s}let no=(0,d.createContext)(null);no.displayName="OpenClosedContext";var ao=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ao||{});function oo(){return(0,d.useContext)(no)}function io({value:e,children:t}){return d.createElement(no.Provider,{value:e},t)}var lo=Object.defineProperty,co=(e,t,s)=>(((e,t,s)=>{t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s})(e,"symbol"!=typeof t?t+"":t,s),s);let uo=new class{constructor(){co(this,"current",this.detect()),co(this,"handoffState","pending"),co(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}},po=(e,t)=>{uo.isServer?(0,d.useEffect)(e,t):(0,d.useLayoutEffect)(e,t)};function mo(){let e=(0,d.useRef)(!1);return po((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ho(e){let t=(0,d.useRef)(e);return po((()=>{t.current=e}),[e]),t}function fo(){let[e,t]=(0,d.useState)(uo.isHandoffComplete);return e&&!1===uo.isHandoffComplete&&t(!1),(0,d.useEffect)((()=>{!0!==e&&t(!0)}),[e]),(0,d.useEffect)((()=>uo.handoff()),[]),e}let yo=function(e){let t=ho(e);return d.useCallback(((...e)=>t.current(...e)),[t])},go=Symbol();function vo(e,t=!0){return Object.assign(e,{[go]:t})}function bo(...e){let t=(0,d.useRef)(e);(0,d.useEffect)((()=>{t.current=e}),[e]);let s=yo((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[go])))?void 0:s}function xo(){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 wo(e,...t){e&&t.length>0&&e.classList.add(...t)}function Eo(e,...t){e&&t.length>0&&e.classList.remove(...t)}function So(){let[e]=(0,d.useState)(xo);return(0,d.useEffect)((()=>()=>e.dispose()),[e]),e}function _o({container:e,direction:t,classes:s,onStart:r,onStop:n}){let a=mo(),o=So(),i=ho(t);po((()=>{let t=xo();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=xo(),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=Za(n,{enter:()=>t.enter,leave:()=>t.leave}),l=Za(n,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Za(n,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Eo(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),wo(e,...i,...c),a.nextFrame((()=>{Eo(e,...c),wo(e,...l),function(e,t){let s=xo();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,(()=>(Eo(e,...i),wo(e,...t.entered),o())))})),a.dispose}(l,s.current,"enter"===i.current,(()=>{t.dispose(),n.current(i.current)}))),t.dispose}),[t])}function jo(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Co=(0,d.createContext)(null);Co.displayName="TransitionContext";var ko=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ko||{});let Ro=(0,d.createContext)(null);function Po(e){return"children"in e?Po(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Oo(e,t){let s=ho(e),r=(0,d.useRef)([]),n=mo(),a=So(),o=yo(((e,t=Ja.Hidden)=>{let o=r.current.findIndex((({el:t})=>t===e));-1!==o&&(Za(t,{[Ja.Unmount](){r.current.splice(o,1)},[Ja.Hidden](){r.current[o].state="hidden"}}),a.microTask((()=>{var e;!Po(r)&&n.current&&(null==(e=s.current)||e.call(s))})))})),i=yo((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,Ja.Unmount)})),l=(0,d.useRef)([]),c=(0,d.useRef)(Promise.resolve()),u=(0,d.useRef)({enter:[],leave:[],idle:[]}),p=yo(((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=yo(((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 No(){}Ro.displayName="NestingContext";let To=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Mo(e){var t;let s={};for(let r of To)s[r]=null!=(t=e[r])?t:No;return s}let Lo=Ya.RenderStrategy,Ao=to((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=bo(f,t),g=h.unmount?Ja.Unmount:Ja.Hidden,{show:v,appear:b,initial:x}=function(){let e=(0,d.useContext)(Co);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[w,E]=(0,d.useState)(v?"visible":"hidden"),S=function(){let e=(0,d.useContext)(Ro);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}=S,C=(0,d.useRef)(null);(0,d.useEffect)((()=>_(f)),[_,f]),(0,d.useEffect)((()=>{if(g===Ja.Hidden&&f.current)return v&&"visible"!==w?void E("visible"):Za(w,{hidden:()=>j(f),visible:()=>_(f)})}),[w,f,_,j,v,g]);let k=ho({enter:jo(o),enterFrom:jo(i),enterTo:jo(l),entered:jo(c),leave:jo(u),leaveFrom:jo(p),leaveTo:jo(m)}),R=function(e){let t=(0,d.useRef)(Mo(e));return(0,d.useEffect)((()=>{t.current=Mo(e)}),[e]),t}({beforeEnter:s,afterEnter:r,beforeLeave:n,afterLeave:a}),P=fo();(0,d.useEffect)((()=>{if(P&&"visible"===w&&null===f.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[f,w,P]);let O=x&&!b,N=!P||O||C.current===v?"idle":v?"enter":"leave",T=yo((e=>Za(e,{enter:()=>R.current.beforeEnter(),leave:()=>R.current.beforeLeave(),idle:()=>{}}))),M=yo((e=>Za(e,{enter:()=>R.current.afterEnter(),leave:()=>R.current.afterLeave(),idle:()=>{}}))),L=Oo((()=>{E("hidden"),j(f)}),S);_o({container:f,classes:k,direction:N,onStart:ho((e=>{L.onStart(f,e,T)})),onStop:ho((e=>{L.onStop(f,e,M),"leave"===e&&!Po(L)&&(E("hidden"),j(f))}))}),(0,d.useEffect)((()=>{!O||(g===Ja.Hidden?C.current=null:C.current=v)}),[v,O,w]);let A=h,I={ref:y};return b&&v&&uo.isServer&&(A={...A,className:Wa(h.className,...k.current.enter,...k.current.enterFrom)}),d.createElement(Ro.Provider,{value:L},d.createElement(io,{value:Za(w,{visible:ao.Open,hidden:ao.Closed})},Qa({ourProps:I,theirProps:A,defaultTag:"div",features:Lo,visible:"visible"===w,name:"Transition.Child"})))})),Io=to((function(e,t){let{show:s,appear:r=!1,unmount:n,...a}=e,o=(0,d.useRef)(null),i=bo(o,t);fo();let l=oo();if(void 0===s&&null!==l&&(s=Za(l,{[ao.Open]:!0,[ao.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=Oo((()=>{u("hidden")})),[m,h]=(0,d.useState)(!0),f=(0,d.useRef)([s]);po((()=>{!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(Po(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(Ro.Provider,{value:p},d.createElement(Co.Provider,{value:y},Qa({ourProps:{...g,as:d.Fragment,children:d.createElement(Ao,{ref:i,...g,...a})},theirProps:{},defaultTag:d.Fragment,features:Lo,visible:"visible"===c,name:"Transition"})))})),Do=to((function(e,t){let s=null!==(0,d.useContext)(Co),r=null!==oo();return d.createElement(d.Fragment,null,!s&&r?d.createElement(Io,{ref:t,...e}):d.createElement(Ao,{ref:t,...e}))})),Fo=Object.assign(Io,{Child:Do,Root:Io});const zo=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"}))})),Uo=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"}))})),Bo=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"}))})),qo=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"}))})),$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:"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"}))})),Ho=(0,o.createContext)({Icon:null,bulletClass:"",iconClass:""}),Vo="@yoast/general",Wo=({id:e,nonce:t,dismissed:s,message:n})=>{const{bulletClass:a=""}=(0,o.useContext)(Ho),{toggleAlertStatus:i}=(0,r.useDispatch)(Vo),c=s?qo:$o,d=(0,o.useCallback)((async()=>{i(e,t,s)}),[e,t,s,i]);return(0,Kt.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,Kt.jsx)("div",{className:Ts()("yst-mt-1",s&&"yst-opacity-50"),children:(0,Kt.jsx)("svg",{width:"11",height:"11",className:a,children:(0,Kt.jsx)("circle",{cx:"5.5",cy:"5.5",r:"5.5"})})}),(0,Kt.jsx)("div",{className:Ts()("yst-text-sm yst-text-slate-600 yst-grow",s&&"yst-opacity-50"),dangerouslySetInnerHTML:{__html:n}}),(0,Kt.jsx)(l.Button,{variant:"secondary",size:"small",className:"yst-self-center yst-h-8",onClick:d,children:(0,Kt.jsx)(c,{className:"yst-w-4 yst-h-4 yst-text-neutral-700"})})]},e)};Wo.propTypes={id:Gt().string,nonce:Gt().string,dismissed:Gt().bool,message:Gt().string};const Zo=({className:e="",items:t=[]})=>0===t.length?null:(0,Kt.jsx)("ul",{className:e,children:t.map((e=>(0,Kt.jsx)(Wo,{id:e.id,nonce:e.nonce,dismissed:e.dismissed,message:e.message},e.id)))});Zo.propTypes={className:Gt().string,items:Gt().arrayOf(Gt().shape({message:Gt().string}))};const Go=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"}))})),Ko=({title:e,counts:t=0,children:s=null})=>{const{Icon:r=Go,iconClass:n=""}=(0,o.useContext)(Ho);return(0,Kt.jsxs)("div",{children:[(0,Kt.jsxs)("div",{className:"yst-flex yst-justify-between yst-gap-2 yst-items-center",children:[(0,Kt.jsx)(r,{className:Ts()("yst-w-6 yst-h-6",n)}),(0,Kt.jsxs)(l.Title,{className:"yst-grow",as:"h2",size:"2",children:[e," ",`(${t})`]})]}),s]})};var Yo;Ko.propTypes={title:Gt().string,counts:Gt().number,children:Gt().node};let Jo=null!=(Yo=d.useId)?Yo:function(){let e=fo(),[t,s]=d.useState(e?()=>uo.nextId():null);return po((()=>{null===t&&s(uo.nextId())}),[t]),null!=t?""+t:void 0};var Qo=(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))(Qo||{});function Xo(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 ei(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 ti(e,t){let[s,r]=(0,d.useState)((()=>ei(e)));return po((()=>{r(ei(e))}),[e.type,e.as]),po((()=>{s||!t.current||t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[s,t]),s}function si(e){return uo.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}var ri,ni=((ri=ni||{})[ri.Open=0]="Open",ri[ri.Closed=1]="Closed",ri),ai=(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))(ai||{});let oi={0:e=>({...e,disclosureState:Za(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}},ii=(0,d.createContext)(null);function li(e){let t=(0,d.useContext)(ii);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,li),t}return t}ii.displayName="DisclosureContext";let ci=(0,d.createContext)(null);function di(e){let t=(0,d.useContext)(ci);if(null===t){let t=new Error(`<${e} /> is missing a parent <Disclosure /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,di),t}return t}ci.displayName="DisclosureAPIContext";let ui=(0,d.createContext)(null);function pi(e,t){return Za(t.type,oi,e,t)}ui.displayName="DisclosurePanelContext";let mi=d.Fragment,hi=to((function(e,t){let{defaultOpen:s=!1,...r}=e,n=(0,d.useRef)(null),a=bo(t,vo((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)(pi,{disclosureState:s?0:1,linkedPanel:!1,buttonRef:i,panelRef:o,buttonId:null,panelId:null}),[{disclosureState:c,buttonId:u},p]=l,m=yo((e=>{p({type:1});let t=si(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(ii.Provider,{value:l},d.createElement(ci.Provider,{value:h},d.createElement(io,{value:Za(c,{0:ao.Open,1:ao.Closed})},Qa({ourProps:y,theirProps:r,slot:f,defaultTag:mi,name:"Disclosure"}))))})),fi=to((function(e,t){let s=Jo(),{id:r=`headlessui-disclosure-button-${s}`,...n}=e,[a,o]=li("Disclosure.Button"),i=(0,d.useContext)(ui),l=null!==i&&i===a.panelId,c=(0,d.useRef)(null),u=bo(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=yo((e=>{var t;if(l){if(1===a.disclosureState)return;switch(e.key){case Qo.Space:case Qo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0}),null==(t=a.buttonRef.current)||t.focus()}}else switch(e.key){case Qo.Space:case Qo.Enter:e.preventDefault(),e.stopPropagation(),o({type:0})}})),m=yo((e=>{e.key===Qo.Space&&e.preventDefault()})),h=yo((t=>{var s;Xo(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=ti(e,c);return Qa({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"})})),yi=Ya.RenderStrategy|Ya.Static,gi=to((function(e,t){let s=Jo(),{id:r=`headlessui-disclosure-panel-${s}`,...n}=e,[a,o]=li("Disclosure.Panel"),{close:i}=di("Disclosure.Panel"),l=bo(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=oo(),u=null!==c?c===ao.Open:0===a.disclosureState,p=(0,d.useMemo)((()=>({open:0===a.disclosureState,close:i})),[a,i]),m={ref:l,id:r};return d.createElement(ui.Provider,{value:a.panelId},Qa({ourProps:m,theirProps:n,slot:p,defaultTag:"div",features:yi,visible:u,name:"Disclosure.Panel"}))})),vi=Object.assign(hi,{Button:fi,Panel:gi});const bi=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"}))})),xi=({label:e,children:t})=>(0,Kt.jsx)(vi,{children:({open:s})=>(0,Kt.jsxs)("div",{className:"yst-shadow-sm yst-border-slate-300 yst-rounded-md yst-border",children:[(0,Kt.jsxs)(vi.Button,{className:"yst-w-full yst-flex yst-justify-between yst-py-4 yst-pe-4 yst-ps-6 yst-items-center",children:[(0,Kt.jsx)("div",{className:"yst-font-medium",children:e}),(0,Kt.jsx)(bi,{className:Ts()("yst-h-5 yst-w-5 flex-shrink-0 yst-text-slate-400",s?"yst-rotate-180":"")})]}),(0,Kt.jsx)(vi.Panel,{className:"yst-px-6",children:t})]})});function wi({title:e,id:t,isDismissable:s,children:n,className:a}){const i=(0,l.useSvgAria)(),{dismissNotice:c}=(0,r.useDispatch)(Vo),d=(0,o.useCallback)((()=>{setTimeout((()=>{c(t)}),0)}),[c,t]);return(0,Kt.jsxs)("div",{id:t,className:Ts()("yst-p-3 yst-rounded-md yoast-general-page-notice",a),children:[(0,Kt.jsxs)("div",{className:"yst-flex yst-flex-row yst-items-center yst-min-h-[24px]",children:[(0,Kt.jsx)("span",{className:"yoast-icon"}),e&&(0,Kt.jsx)("div",{className:"yst-text-sm yst-font-medium",dangerouslySetInnerHTML:{__html:e}}),s&&(0,Kt.jsx)("div",{className:"yst-relative yst-ms-auto",children:(0,Kt.jsxs)("button",{type:"button",className:"notice-dismiss",onClick:d,children:[(0,Kt.jsx)("span",{className:"yst-sr-only",children:(0,Vt.__)("Close","wordpress-seo")}),(0,Kt.jsx)(Hn,{className:"yst-h-5 yst-w-5",...i})]})})]}),n&&(0,Kt.jsx)("div",{className:"yst-flex-1 yst-text-sm yst-max-w-[600px] yst-ps-[29px]",dangerouslySetInnerHTML:{__html:n}})]})}xi.propTypes={label:Gt().string,children:Gt().node},wi.propTypes={title:Gt().string.isRequired,id:Gt().string.isRequired,isDismissable:Gt().bool.isRequired,children:Gt().string.isRequired,className:Gt().string};const Ei=()=>{const e=(0,r.useSelect)((e=>e(Vo).selectActiveNotifications()),[]),t=(0,r.useSelect)((e=>e(Vo).selectDismissedNotifications()),[]),s=t.length,n=(0,Vt._n)("hidden notification","hidden notifications",s,"wordpress-seo"),a={Icon:Uo,bulletClass:"yst-fill-blue-500",iconClass:"yst-text-blue-500"};return(0,Kt.jsx)(l.Paper,{children:(0,Kt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Kt.jsxs)(Ho.Provider,{value:{...a},children:[(0,Kt.jsx)(Ko,{counts:e.length,title:(0,Vt.__)("Notifications","wordpress-seo"),children:0===e.length&&(0,Kt.jsx)("p",{className:"yst-mt-2 yst-text-sm",children:(0,Vt.__)("No new notifications.","wordpress-seo")})}),(0,Kt.jsx)(Zo,{items:e}),s>0&&(0,Kt.jsx)(xi,{label:`${s} ${n}`,children:(0,Kt.jsx)(Zo,{className:"yst-pb-6",items:t})})]})})})},Si=()=>{const e=(0,r.useSelect)((e=>e(Vo).selectActiveProblems()),[]),t=(0,r.useSelect)((e=>e(Vo).selectDismissedProblems()),[]),s=t.length,n=(0,Vt._n)("hidden problem","hidden problems",s,"wordpress-seo"),a={Icon:Go,bulletClass:"yst-fill-red-500",iconClass:"yst-text-red-500"};return(0,Kt.jsx)(l.Paper,{children:(0,Kt.jsx)(l.Paper.Content,{className:"yst-max-w-[600px] yst-flex yst-flex-col yst-gap-y-6",children:(0,Kt.jsxs)(Ho.Provider,{value:{...a},children:[(0,Kt.jsx)(Ko,{title:(0,Vt.__)("Problems","wordpress-seo"),counts:e.length,children:(0,Kt.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,Kt.jsx)(Zo,{items:e}),s>0&&(0,Kt.jsx)(xi,{label:`${s} ${n}`,children:(0,Kt.jsx)(Zo,{className:"yst-pb-6",items:t})})]})})})},_i=(e,t,s)=>{const r=e.querySelector(t);return r&&(r.textContent=s),r},ji=(e,t=[],...s)=>(0,r.useSelect)((t=>{var r,n;return null===(r=(n=t(Vo))[e])||void 0===r?void 0:r.call(n,...s)}),t),Ci=({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=ji("selectLink",[],"https://yoa.st/general-error-support"),r=vt();return(0,Kt.jsx)(l.Paper,{className:e,children:(0,Kt.jsx)(ss,{error:r,children:(0,Kt.jsx)(ss.HorizontalButtons,{handleRefreshClick:t,supportLink:s})})})};Ci.propTypes={className:Gt().string};var ki={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Ri=function(e){var t=e.message,s=e["aria-live"];return u().createElement("div",{style:ki,role:"log","aria-live":s},t||"")};Ri.propTypes={};const Pi=Ri;function Oi(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 Ni=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=Oi(this,e.call.apply(e,[this].concat(a))),r.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},Oi(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(Pi,{"aria-live":"assertive",message:t}),u().createElement(Pi,{"aria-live":"assertive",message:s}),u().createElement(Pi,{"aria-live":"polite",message:r}),u().createElement(Pi,{"aria-live":"polite",message:n}))},t}(d.Component);Ni.propTypes={};const Ti=Ni;function Mi(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const Li=u().createContext({announceAssertive:Mi,announcePolite:Mi}),Ai=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(Li.Provider,{value:a},this.props.children,u().createElement(Ti,{assertiveMessage:r,assertiveMessageId:n,politeMessage:t,politeMessageId:s}))},t}(d.Component);var Ii=s(3409),Di=s.n(Ii);function Fi(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 zi=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=Fi(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||"",Di()()),"polite"===s&&a(t||"",Di()())},Fi(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);zi.propTypes={};const Ui=zi;var Bi=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},qi=function(e){return u().createElement(Li.Consumer,null,(function(t){return u().createElement(Ui,Bi({},t,e))}))};qi.propTypes={};const $i=qi;const Hi=({children:e,title:t,description:s})=>{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,Kt.jsxs)(Ai,{children:[(0,Kt.jsx)($i,{message:r,"aria-live":"polite"}),(0,Kt.jsx)(Hs.Helmet,{children:(0,Kt.jsx)("title",{children:"Dashboard"})}),(0,Kt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Kt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Kt.jsx)(l.Title,{children:t}),s&&(0,Kt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:s})]})}),e]})};var Vi,Wi;function Zi(){return Zi=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},Zi.apply(this,arguments)}Hi.propTypes={children:Gt().node.isRequired,title:Gt().string.isRequired,description:Gt().node};const Gi=e=>d.createElement("svg",Zi({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 425 456.27"},e),Vi||(Vi=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"})),Wi||(Wi=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"}))),Ki=()=>{const e=ji("selectPreference",[],"llmTxtNotificationSeen");if(ji("selectPreference",[],"llmTxtEnabled")||e||null===sessionStorage)return null;const t=(0,l.useSvgAria)(),s=ji("selectAdminLink",[],"?page=wpseo_page_settings#/llms-txt"),[r,n,a]=(0,l.useToggleState)(!1);(0,o.useEffect)((()=>{n()}),[]);const i=(0,o.useCallback)((()=>{var e;null===(e=sessionStorage)||void 0===e||e.setItem("yoast-highlight-setting","llm-txt"),window.location.href=s}),[s]);return(0,Kt.jsx)(l.Toast,{id:"llmt-txt-toast",isVisible:r,className:"yst-w-96",position:"bottom-left",setIsVisible:a,children:(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)("div",{className:"yst-flex yst-gap-3",children:[(0,Kt.jsx)("div",{className:"yst-flex-shrink-0",children:(0,Kt.jsx)(Gi,{className:"yst-w-5 yst-h-5 yst-fill-primary-500",...t})}),(0,Kt.jsxs)("div",{className:"yst-flex-1",children:[(0,Kt.jsx)(l.Toast.Title,{title:(0,Vt.__)("New: Prepare your site for AI-driven discovery!","wordpress-seo"),className:"yst-mb-1"}),(0,Kt.jsx)("p",{children:(0,Vt.__)("Automatically generate an llms.txt file that highlights key content for AI systems.","wordpress-seo")})]}),(0,Kt.jsx)("div",{children:(0,Kt.jsx)(l.Toast.Close,{dismissScreenReaderLabel:(0,Vt.__)("Dismiss","wordpress-seo")})})]}),(0,Kt.jsxs)("div",{className:"yst-flex yst-gap-3 yst-justify-end yst-mt-3",children:[(0,Kt.jsx)(l.Button,{size:"small",variant:"tertiary",onClick:n,children:(0,Vt.__)("Dismiss","wordpress-seo")}),(0,Kt.jsxs)(l.Button,{size:"small",className:"yst-gap-1",onClick:i,children:[(0,Vt.__)("Show me","wordpress-seo"),(0,Kt.jsx)(ls,{className:"yst-w-4 yst-h-4 rtl:yst-rotate-180",...t})]})]})]})})},Yi=(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)}}))]),Ji=Yi,Qi=({children:e,id:t,hasIcon:s=!0,title:r,image:n=null,isAlertDismissed:a,onDismissed:o})=>a?null:(0,Kt.jsxs)("div",{id:t,className:"notice-yoast yoast is-dismissible yoast-webinar-dashboard yoast-general-page-notices",children:[(0,Kt.jsxs)("div",{className:"notice-yoast__container",children:[(0,Kt.jsxs)("div",{children:[(0,Kt.jsxs)("div",{className:"notice-yoast__header",children:[s&&(0,Kt.jsx)("span",{className:"yoast-icon"}),(0,Kt.jsx)("h2",{className:"notice-yoast__header-heading yoast-notice-migrated-header",children:r})]}),(0,Kt.jsx)("div",{className:"notice-yoast-content",children:(0,Kt.jsx)("p",{children:e})})]}),n&&(0,Kt.jsx)(n,{height:"60"})]}),(0,Kt.jsx)("button",{type:"button",className:"notice-dismiss",onClick:o,children:(0,Kt.jsx)("span",{className:"screen-reader-text",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("Dismiss this notice.","wordpress-seo")})})]});Qi.propTypes={children:Gt().node.isRequired,id:Gt().string.isRequired,hasIcon:Gt().bool,title:Gt().any.isRequired,image:Gt().elementType,isAlertDismissed:Gt().bool.isRequired,onDismissed:Gt().func.isRequired};const Xi=Ji(Qi);var el,tl,sl,rl,nl,al,ol,il,ll,cl,dl,ul,pl,ml,hl,fl,yl,gl,vl,bl,xl,wl,El,Sl,_l,jl,Cl,kl,Rl,Pl,Ol,Nl,Tl,Ml,Ll,Al,Il,Dl,Fl,zl,Ul,Bl,ql,$l,Hl,Vl,Wl;function Zl(){return Zl=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},Zl.apply(this,arguments)}const Gl=e=>d.createElement("svg",Zl({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 448 360"},e),el||(el=d.createElement("circle",{cx:226,cy:211,r:149,fill:"#f0ecf0"})),tl||(tl=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"})),sl||(sl=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"})),rl||(rl=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"})),nl||(nl=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"})),al||(al=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"})),ol||(ol=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"})),il||(il=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"})),ll||(ll=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"})),cl||(cl=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"})),dl||(dl=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"})),ul||(ul=d.createElement("circle",{cx:254.13,cy:104.05,r:4.19,fill:"#000001"})),pl||(pl=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"})),ml||(ml=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"})),hl||(hl=d.createElement("circle",{cx:219.55,cy:95.28,r:4,fill:"#000001"})),fl||(fl=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"})),yl||(yl=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"})),gl||(gl=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"})),vl||(vl=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"})),bl||(bl=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"})),xl||(xl=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"})),wl||(wl=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"})),El||(El=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"})),Sl||(Sl=d.createElement("circle",{cx:38.13,cy:30.03,r:3.14,fill:"#b89ac8"})),_l||(_l=d.createElement("circle",{cx:60.26,cy:39.96,r:3.14,fill:"#e31e0c"})),jl||(jl=d.createElement("circle",{cx:50.29,cy:25.63,r:3.14,fill:"#3baa45"})),Cl||(Cl=d.createElement("circle",{cx:22.19,cy:19.21,r:3.14,fill:"#2ca9e1"})),kl||(kl=d.createElement("circle",{cx:22.19,cy:30.03,r:3.14,fill:"#e31e0c"})),Rl||(Rl=d.createElement("circle",{cx:26.86,cy:8.28,r:3.14,fill:"#3baa45"})),Pl||(Pl=d.createElement("circle",{cx:49.32,cy:39.99,r:3.14,fill:"#e31e0c"})),Ol||(Ol=d.createElement("circle",{cx:63.86,cy:59.52,r:3.14,fill:"#f8ad39"})),Nl||(Nl=d.createElement("circle",{cx:50.88,cy:50.72,r:3.14,fill:"#3baa45"})),Tl||(Tl=d.createElement("circle",{cx:63.47,cy:76.17,r:3.14,fill:"#e31e0c"})),Ml||(Ml=d.createElement("circle",{cx:38.34,cy:14.83,r:3.14,fill:"#2ca9e1"})),Ll||(Ll=d.createElement("circle",{cx:44.44,cy:5.92,r:3.14,fill:"#f8ad39"})),Al||(Al=d.createElement("circle",{cx:57.42,cy:10.24,r:3.14,fill:"#e31e0c"})),Il||(Il=d.createElement("circle",{cx:66.81,cy:12.4,r:3.14,fill:"#2ca9e1"})),Dl||(Dl=d.createElement("circle",{cx:77.95,cy:5.14,r:3.14,fill:"#b89ac8"})),Fl||(Fl=d.createElement("circle",{cx:77.95,cy:30.34,r:3.14,fill:"#e31e0c"})),zl||(zl=d.createElement("circle",{cx:80.97,cy:16.55,r:3.14,fill:"#f8ad39"})),Ul||(Ul=d.createElement("circle",{cx:62.96,cy:27.27,r:3.14,fill:"#3baa45"})),Bl||(Bl=d.createElement("circle",{cx:75.36,cy:48.67,r:3.14,fill:"#2ca9e1"})),ql||(ql=d.createElement("circle",{cx:76.11,cy:65.31,r:3.14,fill:"#3baa45"})),$l||($l=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"})),Hl||(Hl=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"})),Vl||(Vl=d.createElement("ellipse",{cx:255.38,cy:103.18,fill:"#fff",rx:1.84,ry:1.77})),Wl||(Wl=d.createElement("ellipse",{cx:221.24,cy:94.75,fill:"#fff",rx:1.84,ry:1.77}))),Kl=({store:e="yoast-seo/editor",image:t=Gl,url:s,...n})=>(0,r.useSelect)((t=>t(e).getIsPremium()))?null:(0,Kt.jsxs)(Xi,{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,Kt.jsx)("a",{href:s,target:"_blank",rel:"noreferrer",children:(0,Vt.__)("Sign up today!","wordpress-seo")})]});Kl.propTypes={store:Gt().string,image:Gt().elementType,url:Gt().string.isRequired};const Yl=Kl,Jl=(e="yoast-seo/editor")=>{const t=(0,r.select)(e).isPromotionActive("black-friday-2023-checklist"),s=(0,r.select)(e).isAlertDismissed("black-friday-2023-sidebar-checklist");return!t||s},Ql=((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}`),Xl=(e,{isVisible:t})=>t?{"aria-invalid":!0,"aria-describedby":Ql(e)}:{};function ec({active:e,selected:t}){return Ts()("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 tc(e,t){const s=function(e,t){return e.includes(t)?[...e]:[...e,t]}(e.editedSteps,t);return{...e,editedSteps:s}}function sc(e,t){let s=(0,c.cloneDeep)(e);switch(t.type){case"SET_COMPANY_OR_PERSON":return s=tc(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=tc(s,2),s.companyName=t.payload,s;case"SET_COMPANY_LOGO":return s=tc(s,2),s.companyLogo=t.payload.url,s.companyLogoId=t.payload.id,s;case"REMOVE_COMPANY_LOGO":return s=tc(s,2),s.companyLogo="",s.companyLogoId="",s;case"CHANGE_WEBSITE_NAME":return s=tc(s,2),s.websiteName=t.payload,s;case"SET_PERSON_LOGO":return s=tc(s,2),s.personLogo=t.payload.url,s.personLogoId=t.payload.id,s;case"REMOVE_PERSON_LOGO":return s=tc(s,2),s.personLogo="",s.personLogoId="",s;case"SET_PERSON":return s=tc(s,2),s.personId=t.payload.value,s.personName=t.payload.label,s;case"SET_CAN_EDIT_USER":return s=tc(s,2),s.canEditUser=!0===t.payload?1:0,s;case"CHANGE_SOCIAL_PROFILE":return s=tc(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=tc(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=tc(s,3),s.socialProfiles.otherSocialUrls=[...s.socialProfiles.otherSocialUrls,t.payload.value],s;case"REMOVE_OTHERS_SOCIAL_PROFILE":return s=tc(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=tc(s,4),s.tracking=t.payload,s;default:return s}var r,n}const rc=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"}))})),nc=({items:e,onAddProfile:t,onRemoveProfile:s,onChangeProfile:r,errorFields:n,fieldType:a,addButtonChildren:i})=>{const c=(0,o.useCallback)((e=>{s(parseInt(e.currentTarget.dataset.index,10))}),[s]);return(0,Kt.jsxs)("div",{children:[e.map(((e,t)=>(0,Kt.jsx)("div",{children:(0,Kt.jsxs)("div",{className:"yst-w-full yst-flex yst-items-start yst-mt-4",children:[(0,Kt.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,Kt.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,Kt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */
(0,Vt.__)("Delete item","wordpress-seo")}),(0,Kt.jsx)(Vn,{className:"yst-w-5 yst-h-5"})]})]})},`url-${t}`))),(0,Kt.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,Kt.jsx)(rc,{className:"yst-w-5 yst-h-5 yst-me-1 yst-text-slate-400"}),i]})]})};nc.propTypes={fieldType:Gt().elementType.isRequired,items:Gt().array.isRequired,onAddProfile:Gt().func.isRequired,onRemoveProfile:Gt().func.isRequired,onChangeProfile:Gt().func.isRequired,errorFields:Gt().array,addButtonChildren:Gt().node},nc.defaultProps={errorFields:[],addButtonChildren:(0,Vt.__)("Add another profile","wordpress-seo")};const ac=nc,oc=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"}))})),ic=({texts:e,id:t,as:s,...r})=>{const n=(0,o.useMemo)((()=>(0,c.last)(e)),[e]);return(0,Kt.jsx)(s,{id:t,...r,children:e.map(((e,s)=>(0,Kt.jsxs)(o.Fragment,{children:[e,n!==e&&(0,Kt.jsx)("br",{})]},`${t}-text-${s}`)))})};ic.defaultProps={as:"p"},ic.propTypes={texts:Gt().arrayOf(Gt().string).isRequired,id:Gt().string.isRequired,as:Gt().oneOfType([Gt().string,Gt().elementType])};const lc=ic;function cc({hasError:e,hasSuccess:t}){return e?(0,Kt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Kt.jsx)(oc,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})}):t?(0,Kt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-3",children:(0,Kt.jsx)(Wn,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-emerald-600"})}):null}function dc({className:e,id:t,label:s,description:r,value:n,onChange:a,placeholder:i,feedback:l,type:c,...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,Kt.jsxs)("div",{className:e,children:[s&&(0,Kt.jsx)("label",{className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-700",htmlFor:t,children:s}),(0,Kt.jsxs)("div",{className:"yst-relative",children:[(0,Kt.jsx)("input",{id:t,type:u,value:n,className:Ts()("yst-block yst-w-full yst-h-[45px] 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,...Xl(t,l),...d}),(0,Kt.jsx)(cc,{hasError:p,hasSuccess:m})]}),l.isVisible&&(0,Kt.jsx)(lc,{id:`${p?"error-":"success-"}${t}`,className:Ts()("yst-mt-2 yst-text-sm",{"yst-text-red-600":p,"yst-text-emerald-600":m}),texts:l.message}),r]})}function uc({id:e,onChange:t,socialMedium:s,isDisabled:r,...n}){const a=(0,o.useCallback)((e=>{t(e.target.value,"other"===s?n.index:s)}),[s,n.index]);return(0,Kt.jsx)(dc,{onChange:a,disabled:r,id:e,...n})}function pc({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,Kt.jsx)(mc,{socialProfiles:e,onChangeHandler:r,onChangeOthersHandler:n,onAddProfileHandler:a,onRemoveProfileHandler:i,errorFields:t})}function mc({socialProfiles:e,onChangeHandler:t,onChangeOthersHandler:s,onAddProfileHandler:r,onRemoveProfileHandler:n,errorFields:a}){return(0,Kt.jsxs)("div",{id:"social-input-section",children:[(0,Kt.jsx)(uc,{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,Kt.jsx)(uc,{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,Kt.jsx)(ac,{items:e.otherSocialUrls,onAddProfile:r,onRemoveProfile:n,onChangeProfile:s,errorFields:a,fieldType:uc})]})}cc.propTypes={hasError:Zt.PropTypes.bool,hasSuccess:Zt.PropTypes.bool},cc.defaultProps={hasError:!1,hasSuccess:!1},dc.propTypes={className:Zt.PropTypes.string,id:Zt.PropTypes.string.isRequired,label:Zt.PropTypes.string,description:Zt.PropTypes.node,value:Zt.PropTypes.string,onChange:Zt.PropTypes.func.isRequired,placeholder:Zt.PropTypes.string,feedback:Zt.PropTypes.shape({type:Zt.PropTypes.string,message:Zt.PropTypes.array,isVisible:Zt.PropTypes.bool}),type:Zt.PropTypes.string},dc.defaultProps={value:"",className:"",label:"",description:null,placeholder:"",feedback:{message:[],isVisible:!1},type:"text"},uc.propTypes={id:Gt().string.isRequired,onChange:Gt().func.isRequired,socialMedium:Gt().string,isDisabled:Gt().bool},uc.defaultProps={socialMedium:"",isDisabled:!1},pc.propTypes={socialProfiles:Gt().object.isRequired,dispatch:Gt().func.isRequired,errorFields:Gt().array},pc.defaultProps={errorFields:[]},mc.propTypes={socialProfiles:Gt().object.isRequired,onChangeHandler:Gt().func.isRequired,onChangeOthersHandler:Gt().func.isRequired,onAddProfileHandler:Gt().func.isRequired,onRemoveProfileHandler:Gt().func.isRequired,errorFields:Gt().array.isRequired};const hc=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"}))})),fc=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"}))})),yc=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 gc=s(8133);function vc({type:e,children:t,className:s}){let r,n;switch(e){case"info":r=(0,Kt.jsx)(hc,{"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,Kt.jsx)(fc,{"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,Kt.jsx)(yc,{"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,Kt.jsx)(Wn,{"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,Kt.jsxs)("div",{className:Ts()("yst-flex yst-p-4 yst-rounded-md",n,s),children:[r,(0,Kt.jsx)("div",{className:"yst-flex-1 yst-ms-3 yst-text-sm",children:t})]})}function bc({id:e,isVisible:t,expandDuration:s,type:r,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,Kt.jsx)(gc.Z,{id:e,height:t?"auto":0,easing:"linear",duration:s,onAnimationEnd:c,children:(0,Kt.jsx)(vc,{type:r,className:Ts()("yst-transition-opacity yst-duration-300 yst-mt-4",i,a),children:n})})}function xc({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,Kt.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,Kt.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,Kt.jsxs)(o.Fragment,{children:[(0,Kt.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,Kt.jsx)(pc,{socialProfiles:e.socialProfiles,dispatch:t,errorFields:e.errorFields,setErrorFields:s})]}):0===e.personId?(0,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)("p",{children:r}),(0,Kt.jsx)(vc,{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,Kt.jsx)(o.Fragment,{children:(0,Kt.jsxs)("p",{children:[n," ",e.canEditUser?a:i]})})}vc.propTypes={type:Gt().oneOf(["info","warning","error","success"]),children:Gt().oneOfType([Gt().arrayOf(Gt().node),Gt().node]).isRequired,className:Gt().string},vc.defaultProps={type:"info",className:""},bc.propTypes={id:Gt().string.isRequired,isVisible:Gt().bool.isRequired,type:Gt().oneOf(["info","warning","error","success"]),children:Gt().oneOfType([Gt().arrayOf(Gt().node),Gt().node]).isRequired,expandDuration:Gt().number,className:Gt().string},bc.defaultProps={expandDuration:400,type:"info",className:""},xc.propTypes={state:Gt().object.isRequired,dispatch:Gt().func.isRequired,setErrorFields:Gt().func.isRequired};const wc={slideDuration:500,fadeDuration:200,delayBeforeOpening:900,delayBeforeFadingIn:1400,delayBeforeClosing:200},Ec={fadeDuration:"yst-duration-200",slideDuration:"yst-duration-500",delayBeforeOpening:"yst-delay-[900ms]",delayUntilStepFaded:"yst-delay-200"},{slideDuration:Sc,delayUntilStepFaded:_c}=Ec,jc=`yst-transition-opacity ${Sc} yst-absolute yst-inset-0 yst-border-2 yst-flex yst-items-center yst-justify-center yst-rounded-full`;function Cc(e){return`${jc} ${e?"yst-opacity-100":`${_c} yst-opacity-0`}`}function kc({isVisible:e}){return(0,Kt.jsx)("span",{className:`yst-bg-white yst-border-primary-500 ${Cc(e)}`,children:(0,Kt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-primary-500"})})}function Rc({isVisible:e}){return(0,Kt.jsx)("span",{className:`yst-bg-primary-500 yst-border-primary-500 ${Cc(e)}`,children:(0,Kt.jsx)(Os,{className:"yst-w-5 yst-h-5 yst-text-white","aria-hidden":"true"})})}function Pc({isVisible:e}){return(0,Kt.jsx)("span",{className:`yst-bg-white yst-border-slate-300 ${Cc(e)}`,children:(0,Kt.jsx)("span",{className:"yst-h-2.5 yst-w-2.5 yst-rounded-full yst-bg-transparent"})})}function Oc({activationDelay:e,deactivationDelay:t,isFinished:s}){const{activeStepIndex:r,stepIndex:n,lastStepIndex:a}=Bc(),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,Kt.jsxs)("span",{className:"yst-relative yst-z-10 yst-w-8 yst-h-8 yst-rounded-full",children:[(0,Kt.jsx)(Pc,{isVisible:!0}),(0,Kt.jsx)(Rc,{isVisible:s}),(0,Kt.jsx)(kc,{isVisible:c&&!i})]})}function Nc(e,t,s){return t&&!s?"yst-text-primary-500":e?"yst-text-slate-900":"yst-text-slate-600"}function Tc({name:e,description:t,isFinished:s,children:r}){const{stepIndex:n,activeStepIndex:a,lastStepIndex:i}=Bc(),l=a===n,c=i===n,[d,u]=(0,o.useState)(Nc(s,l,c));return(0,o.useEffect)((()=>{if(l){const e=Nc(s,l,c),t=setTimeout((()=>u(e)),wc.delayBeforeOpening);return()=>clearTimeout(t)}const e=Nc(s,l,c);u(e)}),[a,s,c,Nc]),(0,Kt.jsxs)("div",{className:"yst-relative yst-flex yst-items-center yst-group","aria-current":l?"step":null,children:[(0,Kt.jsx)("span",{className:"yst-flex yst-items-center","aria-hidden":l?"true":null,children:(0,Kt.jsx)(Oc,{activationDelay:wc.delayBeforeOpening,deactivationDelay:0,isFinished:s})}),(0,Kt.jsxs)("span",{className:"yst-ms-4 yst-min-w-0 yst-flex yst-flex-col",children:[(0,Kt.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,Kt.jsx)("span",{className:"yst-text-sm yst-text-slate-600",children:t})]}),r]})}kc.propTypes={isVisible:Gt().bool},kc.defaultProps={isVisible:!0},Rc.propTypes={isVisible:Gt().bool},Rc.defaultProps={isVisible:!0},Pc.propTypes={isVisible:Gt().bool},Pc.defaultProps={isVisible:!0},Oc.propTypes={isFinished:Gt().bool.isRequired,activationDelay:Gt().number,deactivationDelay:Gt().number},Oc.defaultProps={activationDelay:0,deactivationDelay:0},Tc.propTypes={name:Gt().string.isRequired,isFinished:Gt().bool.isRequired,description:Gt().string,children:Gt().node},Tc.defaultProps={description:"",children:[]};const{slideDuration:Mc,delayBeforeOpening:Lc,delayBeforeFadingIn:Ac,delayBeforeClosing:Ic}=wc,{fadeDuration:Dc,delayUntilStepFaded:Fc,slideDuration:zc}=Ec,Uc=(0,o.createContext)();function Bc(){const e=(0,o.useContext)(Uc);if(!e)throw new Error("Stepper compound components cannot be rendered outside the Stepper component");return e}function qc({beforeGo:e,children:t,destination:s,...r}){const{stepIndex:n,setActiveStepIndex:a,lastStepIndex:i}=Bc(),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,Kt.jsx)(l.Button,{onClick:d,...r,children:t})}function $c({children:e,...t}){const{stepIndex:s,setActiveStepIndex:r}=Bc(),n=(0,o.useCallback)((()=>{r(s)}),[r,s]);return(0,Kt.jsx)(l.Button,{onClick:n,variant:"secondary",size:"small",...t,children:e})}function Hc({children:e}){const{lastStepIndex:t,stepIndex:s,activeStepIndex:r}=Bc();return(0,Kt.jsxs)(o.Fragment,{children:[s!==t&&(0,Kt.jsxs)(o.Fragment,{children:[(0,Kt.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,Kt.jsx)("div",{className:`yst-h-12 yst-transition-transform ${Fc} yst-ease-linear ${zc} ${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 Vc({id:e,message:t,className:s}){return(0,Kt.jsx)(bc,{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 Wc({children:e}){const{activeStepIndex:t,stepIndex:s}=Bc(),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)),Ac)):(l(!0),a(0))}),[r]),(0,Kt.jsx)(o.Fragment,{children:(0,Kt.jsx)(gc.Z,{id:`content-${s}`,delay:0===n?Ic:Lc,height:n,easing:"ease-in-out",duration:Mc,children:(0,Kt.jsx)("div",{className:`yst-transition-opacity ${Dc} yst-relative yst-ms-12 yst-mt-4 yst-pb-1 ${i?"yst-opacity-0 yst-pointer-events-none":"yst-opacity-100"}`,children:e})})})}function Zc({children:e,setActiveStepIndex:t,activeStepIndex:s,isStepperFinished:r}){return(0,Kt.jsx)("ol",{children:e.map(((n,a)=>(0,Kt.jsx)("li",{className:(a===e.length-1?"":"yst-pb-8")+" yst-mb-0 yst-relative yst-max-w-none",children:(0,Kt.jsx)(Uc.Provider,{value:{stepIndex:a,activeStepIndex:s,setActiveStepIndex:t,lastStepIndex:e.length-1,isStepperFinished:r},children:n})},`${n.props.name}-${a}`)))})}qc.propTypes={beforeGo:Gt().func,children:Gt().node,destination:Gt().oneOfType([Gt().number,Gt().oneOf(["first","last"])])},qc.defaultProps={beforeGo:null,children:(0,Kt.jsx)(o.Fragment,{children:(0,Vt.__)("Continue","wordpress-seo")}),destination:1},$c.propTypes={children:Gt().node},$c.defaultProps={children:(0,Kt.jsx)(o.Fragment,{children:(0,Vt.__)("Edit","wordpress-seo")})},Hc.propTypes={children:Gt().node.isRequired},Vc.propTypes={id:Gt().string.isRequired,message:Gt().string.isRequired,className:Gt().string},Vc.defaultProps={className:""},Wc.propTypes={children:Gt().node.isRequired},Zc.propTypes={setActiveStepIndex:Gt().func.isRequired,activeStepIndex:Gt().number.isRequired,isStepperFinished:Gt().bool,children:Gt().node.isRequired},Zc.defaultProps={isStepperFinished:!1},Hc.Content=Wc,Hc.Error=Vc,Hc.Header=Tc,Hc.GoButton=qc,Hc.EditButton=$c;const Gc={optimizeSeoData:"optimizeSeoData",siteRepresentation:"siteRepresentation",socialProfiles:"socialProfiles",personalPreferences:"personalPreferences"},Kc={[Gc.optimizeSeoData]:"data optimization",[Gc.siteRepresentation]:"site representation",[Gc.socialProfiles]:"social profiles",[Gc.personalPreferences]:"personal preferences"};function Yc({stepId:e,beforeGo:t,children:s,additionalClasses:r,...n}){return(0,Kt.jsx)(Hc.GoButton,{id:`button-${e}-continue`,variant:"primary",className:r,destination:1,beforeGo:t,"data-hiive-event-name":`clicked_continue | ${Kc[e]}`,...n,children:s})}function Jc({stepId:e,beforeGo:t,isVisible:s,children:r,additionalClasses:n,...a}){const o=`yst-transition-opacity ${Ec.slideDuration} yst-ease-out ${s?"yst-opacity-100":`${Ec.delayBeforeOpening} yst-opacity-0 yst-pointer-events-none yst-hidden`}`;return(0,Kt.jsx)(Hc.GoButton,{id:`button-${e}-edit`,variant:"secondary",size:"small",className:Ts()(o,n),destination:0,beforeGo:t,"data-hiive-event-name":`clicked_edit | ${Kc[e]}`,...a,children:r})}function Qc({stepId:e,beforeGo:t,children:s,additionalClasses:r,...n}){return(0,Kt.jsx)(Hc.GoButton,{id:`button-${e}-back`,variant:"secondary",className:r,destination:-1,beforeGo:t,"data-hiive-event-name":`clicked_go_back | ${Kc[e]}`,...n,children:s})}function Xc({stepId:e,beforeContinue:t,continueLabel:s,beforeBack:r,backLabel:n}){return(0,Kt.jsxs)("div",{className:"yst-mt-12",children:[(0,Kt.jsx)(Yc,{stepId:e,beforeGo:t,children:s}),(0,Kt.jsx)(Qc,{stepId:e,additionalClasses:"yst-ms-3",beforeGo:r,children:n})]})}function ed({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,Kt.jsx)(Hc.GoButton,{id:`button-${e}-go`,variant:"primary",className:"yst-mt-12",destination:"last",beforeGo:n,"data-hiive-event-name":`clicked_save_changes | ${Kc[e]}`,children:(0,Vt.__)("Save changes","wordpress-seo")}):(0,Kt.jsx)(Xc,{stepId:e,beforeContinue:s,continueLabel:(0,Vt.__)("Save and continue","wordpress-seo")})}var td,sd,rd,nd,ad,od,id,ld,cd,dd,ud,pd,md,hd,fd,yd,gd,vd,bd,xd,wd,Ed,Sd,_d,jd,Cd,kd,Rd,Pd,Od,Nd,Td,Md,Ld,Ad,Id,Dd,Fd,zd,Ud,Bd,qd,$d,Hd,Vd,Wd,Zd,Gd,Kd,Yd,Jd;function Qd(){return Qd=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},Qd.apply(this,arguments)}Yc.propTypes={stepId:Gt().string.isRequired,additionalClasses:Gt().string,beforeGo:Gt().func,children:Gt().node},Yc.defaultProps={additionalClasses:"",beforeGo:null,children:null},Jc.propTypes={stepId:Gt().string.isRequired,additionalClasses:Gt().string,isVisible:Gt().bool,beforeGo:Gt().func,children:Gt().node},Jc.defaultProps={additionalClasses:"",isVisible:!0,beforeGo:null,children:null},Qc.propTypes={stepId:Gt().string.isRequired,additionalClasses:Gt().string,beforeGo:Gt().func,children:Gt().node},Qc.defaultProps={additionalClasses:"",beforeGo:null,children:null},Xc.propTypes={stepId:Gt().string.isRequired,beforeContinue:Gt().func,continueLabel:Gt().string,beforeBack:Gt().func,backLabel:Gt().string},Xc.defaultProps={beforeContinue:null,continueLabel:(0,Vt.__)("Continue","wordpress-seo"),beforeBack:null,backLabel:(0,Vt.__)("Go back","wordpress-seo")},ed.propTypes={stepId:Gt().string.isRequired,stepperFinishedOnce:Gt().bool.isRequired,saveFunction:Gt().func.isRequired,setEditState:Gt().func.isRequired};const Xd=e=>d.createElement("svg",Qd({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",viewBox:"0 0 262.37 284.15"},e),td||(td=d.createElement("path",{fill:"#f0ecf0",d:"M262.37 153A131.19 131.19 0 1 0 54.71 259.56a28.08 28.08 0 0 1 1.91-7.37c2-4.92-12.06-11.1-7.52-26.48 3.49-11.81 30.9-25.16 37.1-41.56 2.4-6.32 12-30.34 29.69-35.66 9-2.7 48.29-13.29 60.25-11.07s37.48 11 31.66 41.46c-10.26 53.79-44.8 59.12-46.28 94.64a27.46 27.46 0 0 0 .65 6.94A131.23 131.23 0 0 0 262.37 153Z"})),sd||(sd=d.createElement("path",{fill:"#006531",d:"M161.52 273.52c1.44-35.53 36-40.85 46.28-94.64 5.82-30.51-19.7-39.25-31.66-41.46s-51.23 8.37-60.25 11.07c-17.72 5.32-27.29 29.34-29.69 35.66-6.2 16.4-33.61 29.75-37.1 41.56-4.54 15.38 9.53 21.56 7.52 26.48a28.08 28.08 0 0 0-1.91 7.37 131.71 131.71 0 0 0 12.68 8.05 184.18 184.18 0 0 1 7.18-34.05c-4.12-2.43-8.32-4-19.15-2.33 16.06-23.66 34.79-45.11 64.9-65.12 2.54 22.59 3.65 40.75 14.49 60-14.93-3.2-25.12 0-32 4.77a103.74 103.74 0 0 0-4.6 49.12 132 132 0 0 0 64 .49 27.23 27.23 0 0 1-.69-6.97Z"})),rd||(rd=d.createElement("path",{fill:"#89bc3b",d:"M102.8 230.9c6.89-4.73 17.08-8 32-4.77-10.84-19.27-12-37.43-14.49-60-30.11 20-48.84 41.46-64.9 65.12 10.83-1.66 15-.1 19.15 2.33a184.18 184.18 0 0 0-7.18 34A130.42 130.42 0 0 0 98.21 280a103.65 103.65 0 0 1 4.59-49.1Z"})),nd||(nd=d.createElement("path",{fill:"#093f22",d:"M61.29 184.66c-4.39 13.11-15 33.6-14.52 47.42 11.9-18 34.83-42.28 46.73-60.26 2.69-4.08 1.49-10.8-3.21-13.29-3.83-2-8.45-.15-11.7 1.92-8.3 5.28-14.21 14.98-17.3 24.21Zm72.61 58.65 18.32-60.92s.51 11.07 1.1 9.3 16.4-28.8 16.4-28.8l-28.14 81Z"})),ad||(ad=d.createElement("path",{fill:"#006531",d:"M169.31 113.64c.71 13.17 6.24 22.36 5.36 25.68-33.67 6.42-49.16 29.46-54 28.88-6.67-3.85-5.76-14.39-5.54-17.71 3.55-6.65-.12-17.65 1.77-23.89 1.4-4.6 9.38-12.6 18.1-14.53s33.93-5.54 34.31 1.57Z"})),od||(od=d.createElement("path",{fill:"#b498c6",d:"M122.32 166.11c6.09-9.75 11.1-30.31 14.62-33.9 3.33-3.39 22.1-12 26.12-13.51 1.56-1.22 2-2.55 2.09-6.65l.23-19.82-45.16 16.39 2.53 37.22c.67 5.09.35 10.08-.43 20.27Z"})),id||(id=d.createElement("path",{fill:"#8b6c9c",d:"m166.15 92.89-.64 7.17c-.94 12.77-25.4 31.3-38.1 30.12-4.6-.42-5.78-10.38-7.39-15.06l-2.61-9.52Z"})),ld||(ld=d.createElement("path",{fill:"#b498c6",d:"M157.71 192S128 247.74 126 254s-.23 13.67 4.49 15.24 16.51.6 24.27-7.47c5.9-6.14 28.74-39.14 29.45-39.85.06-13.3-7.49-22.14-26.5-29.92Z"})),cd||(cd=d.createElement("ellipse",{cx:106.71,cy:192.91,fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,rx:8.8,ry:5.58,transform:"rotate(-19.17 106.716 192.914)"})),dd||(dd=d.createElement("path",{fill:"#f19018",d:"M92.72 206.13c4.25-1.18 9.78-1.68 17-1.26-6.39 3.89-15.24 15.48-15.51 17.65a87.16 87.16 0 0 1 11-1.88c-16 10.81-23.79 31.12-22.85 30.75-1.24.41-3.63-21.77 6.06-31.06a32.05 32.05 0 0 0-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3Z"})),ud||(ud=d.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"M92.72 206.13c4.25-1.18 9.78-1.68 17-1.26-6.39 3.89-15.24 15.48-15.51 17.65a87.16 87.16 0 0 1 11-1.88c-16 10.81-23.79 31.12-22.85 30.75-1.24.41-3.63-21.77 6.06-31.06a32.05 32.05 0 0 0-7.73 1.1c1.68-4.03 6.97-11.62 12.03-15.3Z"})),pd||(pd=d.createElement("path",{fill:"#006531",d:"M183.45 223.15c-3.73-9.11-19.27-19.94-31.68-20.38 7.54-16.39 11.46-29.12 19.31-42.24 0 0-5.74-22.74-1-22.2 8.52 1 19-7.56 33.67-4.23 14.25 3.23 20.27 23.26 17 38-4.47 19.9-40.04 54.49-37.3 51.05Z"})),md||(md=d.createElement("path",{fill:"#8b6c9c",d:"M80 254.38C77.79 252.17 71.81 244 65.6 244s-33 6.87-33 6.87l-.45 9.3s16.69 1.77 19.94 2.22 16-3.55 16-3.55Z"})),hd||(hd=d.createElement("path",{fill:"#8b6c9c",d:"M72.14 260.36c-12.31-.11-23.45 6.28-26.55 5.39-4.1-1.33-4.21.82-6.64.59s-6.7-3.65-6.7-3.65l.12-12.3 39 7.09Z"})),fd||(fd=d.createElement("path",{fill:"#8b6c9c",d:"M50.63 262.9c-4.43-2.21-15.73 4.28-17.74 2.71-4.64-3.65-8.27-6.21-9.3-8.42s2.47-5.91 1.59-16.1c-.44-5.07 4.31-5.32 6.09-1.33.93 2.1 1.33 13.51 1.33 13.51l7.63 2.1Z"})),yd||(yd=d.createElement("path",{fill:"#b498c6",d:"M100.38 163.12c.89 4-22.61 60.35-31.91 76.3S40.9 257.36 40.9 257.36s-14.48-.79-9.17-22.05 24.47-27.82 31.55-37.42 20.27-29 20.27-33.45c0-3.1 15.95-5.31 16.83-1.32Z"})),gd||(gd=d.createElement("path",{fill:"#8b6c9c",d:"M100.48 163.09a3.78 3.78 0 0 1 0 .95 9.1 9.1 0 0 1-.16.91c-.12.6-.29 1.19-.44 1.78-.33 1.17-.69 2.34-1.06 3.5-.76 2.32-1.56 4.62-2.38 6.92Q94 184 91.28 190.83q-5.4 13.59-11.26 27-2.92 6.71-6 13.34A63.91 63.91 0 0 1 66.55 244 35.8 35.8 0 0 1 55 253.26a38.85 38.85 0 0 1-14.07 4.2v-.2a41.07 41.07 0 0 0 6.94-2.09 39.27 39.27 0 0 0 6.44-3.17A35.56 35.56 0 0 0 65 242.71a26.19 26.19 0 0 0 2-2.9c.66-1 1.22-2.05 1.8-3.1q1.74-3.18 3.36-6.44c2.2-4.33 4.31-8.71 6.37-13.12q6.14-13.23 11.79-26.7 2.85-6.72 5.53-13.51c.88-2.27 1.74-4.55 2.56-6.84.4-1.14.79-2.29 1.15-3.46.17-.58.35-1.16.48-1.75a6.54 6.54 0 0 0 .18-.88 3.19 3.19 0 0 0 .06-.87Z"})),vd||(vd=d.createElement("path",{fill:"#8b6c9c",d:"M98.61 166.22s10.4-10 11.73-14c1.78-5.31-.21-15.41 2.56-22.17 1.13-2.77 5-12.4 5.3-13.28s-3.13-2.36-4.76-1.77a17.06 17.06 0 0 0-6.26 5.61c-1.33 2.22-.68 10.15-4.37 11.34s-18.23 10.61-18.38 17.4.44 11.85 14.18 16.87Z"})),bd||(bd=d.createElement("path",{fill:"#8b6c9c",d:"m100.38 163.12 8.42-13.74-13.74-19s4.35-12 5.09-16.39 3.84-11.14.56-18.17c-2.12-4.55-4.79-5-5.09-2.1s-1.16 13.72-2.62 17.12-8.08 14.62-8.08 14.62l-12.4 14.62Z"})),xd||(xd=d.createElement("path",{fill:"#b498c6",d:"M138.58 5.48c-20.7-.38-38 19.23-39.7 21.63-1.34 1.94-5.06 12-6.58 19.34.42-1.33.87-2.62 1.33-3.85 13.19-6.56 37.64-4.79 70.11 2.89 1.75 6.74 1.36 12.38 1.15 20.18 0 0-15.4 8.58-24.28 9.94-7.5 1.16-11.68-1.37-14.5-3.62-4-3.18-7.61-9.22-13.15-9.67-5.81-.47-7.83 9.3-10.72 9-1.73-.18-7.25.7-9.63 2.76a34.28 34.28 0 0 0-.24 9.16c1.25 5.91 5.63 11.61 8.16 14.52s4.19 11.43 8.45 15.76c9.81 9.93 47-6.94 55.48-17.25 3.75-4.53 8.8-28 8.8-28s10.52-10.21 10.46-16.87c-.21-22.82-17.07-45.4-45.14-45.92Z"})),wd||(wd=d.createElement("path",{fill:"#fcee21",d:"M92.41 51.14a78.25 78.25 0 0 1 .88-8.53C83.1 69 92.42 74.26 92.61 74.09a39.64 39.64 0 0 1 2.9-8.67s-3.36-7.58-3.1-14.28Z"})),Ed||(Ed=d.createElement("path",{fill:"#fbb03b",d:"M102.24 71.33c2.89.29 4.91-9.48 10.72-9 5.54.45 9.14 6.49 13.15 9.67 2.82 2.25 7 4.78 14.5 3.62 8.88-1.36 24.28-9.94 24.28-9.94.21-7.8.6-13.44-1.15-20.18-32.47-7.69-56.92-9.5-70.11-2.9-.89 2-1.63 13.3-1.63 13.3-.3 5 .89 6.64 3.47 9.52a42 42 0 0 0-2.82 8.67c2.35-2.09 7.86-2.94 9.59-2.76Z"})),Sd||(Sd=d.createElement("path",{fill:"#89bc3b",d:"M156 194.13c7.53-.89 21.71 6.87 26.81 12.62 14.42-12.32 25.39-37.37 27.91-45.19 6.64-20.6-11.52-28.35-11.52-28.35l2.44.66s18.38 5.76 14.84 31.9c-1.24 9.13-14.64 33.72-28.8 46.3.89 1.55 2.22 3.32 2.66 4.87l-6.65 6.43c-2.66-8.42-22.81-20.82-31.9-20.6Z"})),_d||(_d=d.createElement("path",{fill:"#b498c6",d:"M86.65 168.87c-.89-1.32-17.89-25.57-18.34-28.67s4.69-7.7 6.13-7c9.64 4.61 24.21 17.67 26 22.1s-.71 11.59-.71 11.59Zm-8.86-38.1s12.14-11.89 15.09-12 10.11 6 13.11 7.91c3.2 2 3.87 7.13 8.23 10.45.44 2.07-2.22 3.42-5.62 2.39s-7.34-6.81-7.34-6.81l-7.12-3.46-8.38 6.88Z"})),jd||(jd=d.createElement("path",{fill:"#b498c6",d:"M74.24 133s11.93-9 13.4-9 12.38 7.59 13.42 9.22 1.88 8.59 3.75 14.86c.65 2.17-3.28 5.17-6.53 1.33s-4.77-10.32-4.77-10.32l-7.33-4.61-5.29 3.85Z"})),Cd||(Cd=d.createElement("path",{fill:"#8b6c9c",d:"M84.58 124.87a4.75 4.75 0 0 1 3-1.15 7.83 7.83 0 0 1 3.22.82 21.82 21.82 0 0 1 2.69 1.76c.86.62 1.71 1.25 2.56 1.89a47.7 47.7 0 0 1 4.94 4.14 4.21 4.21 0 0 1 .55.71 5.87 5.87 0 0 1 .36.81c.18.53.33 1.05.46 1.57.26 1 .48 2.08.7 3.12.44 2.07.87 4.14 1.37 6.19.25 1 .53 2 .82 3a2.42 2.42 0 0 1 .12 1 2.36 2.36 0 0 1-.26.93 3.58 3.58 0 0 1-1.21 1.34 4 4 0 0 1-3.47.47 5.93 5.93 0 0 1-2.73-2.06 12.37 12.37 0 0 1-2.52-5.93 36.66 36.66 0 0 0 3.3 5.3 5 5 0 0 0 2.26 1.74 3 3 0 0 0 2.6-.35 1.93 1.93 0 0 0 1-2.16c-.3-1-.58-2.06-.83-3.09-.51-2.07-.94-4.15-1.38-6.22-.22-1-.44-2.07-.69-3.08-.13-.51-.27-1-.43-1.49a2.76 2.76 0 0 0-.7-1.17 49.75 49.75 0 0 0-4.81-4c-.84-.63-1.69-1.26-2.55-1.88s-1.75-1.16-2.57-1.8a6.81 6.81 0 0 0-2.78-1.11 4.77 4.77 0 0 0-3.02.7Z"})),kd||(kd=d.createElement("path",{fill:"#b498c6",d:"M72.62 133.87s5-4.31 6.43-4.66c2.52-.63 12.51 5.9 13.36 7.77 1.31 2.91 2.2 7.57 3.87 11.4.9 2.06-2.84 2.15-5.49.53s-3.57-6.71-3.57-6.71c-2.51-1.89-4.82-2.52-6.54-3.69-.3 2.47-2.6 5.07-7 8.07Z"})),Rd||(Rd=d.createElement("path",{fill:"#8b6c9c",d:"M79.05 129.21a5.63 5.63 0 0 1 2.7.27c.88.26 1.73.57 2.58.91a28.34 28.34 0 0 1 4.81 2.54c.77.48 1.53 1 2.27 1.52a12.53 12.53 0 0 1 2.14 1.84 2.76 2.76 0 0 1 .45.71c.09.21.17.44.24.66a12.73 12.73 0 0 1 .38 1.34c.21.9.37 1.8.52 2.68a38.28 38.28 0 0 0 1.15 5.2c.13.41.29.82.46 1.22a2.2 2.2 0 0 1 .2.84 1.33 1.33 0 0 1-.37 1 2.48 2.48 0 0 1-1.56.62 6 6 0 0 1-1.47-.08 8.62 8.62 0 0 1-2.69-.94 5.84 5.84 0 0 1-2.1-2 15.27 15.27 0 0 1-2-5.2l.19.31a9.76 9.76 0 0 0-2.57-1.41 12.13 12.13 0 0 1-3-1.25l.74-.19a14 14 0 0 1-2.58 2.75 8.41 8.41 0 0 0-2.18 2.84 8.13 8.13 0 0 1 1.78-3.21 14.17 14.17 0 0 0 2.08-2.85l.23-.52.5.33a5.89 5.89 0 0 0 1.27.66l1.46.5a10.54 10.54 0 0 1 2.83 1.55l.15.11v.2a14.16 14.16 0 0 0 1.83 4.84 4.89 4.89 0 0 0 1.75 1.69 7.75 7.75 0 0 0 2.38.83 5 5 0 0 0 1.22.06 1.54 1.54 0 0 0 .92-.31c.13-.13.14-.32 0-.72s-.35-.86-.49-1.3a36.1 36.1 0 0 1-1.18-5.34c-.15-.88-.31-1.76-.51-2.61a13 13 0 0 0-.35-1.26 3.72 3.72 0 0 0-.49-1 11.48 11.48 0 0 0-1.94-1.67c-.72-.52-1.46-1-2.22-1.48-1.5-1-3.1-1.75-4.62-2.68-.78-.44-1.57-.86-2.38-1.22a5.79 5.79 0 0 0-2.53-.78Z"})),Pd||(Pd=d.createElement("path",{fill:"#006531",d:"M167.62 84.35c22.06 1.45 35.92 5.68 36.5-3.92S197.69 6.63 141.9.54C89-5.24 83.2 37.33 82.73 45s7.68 8.3 7.68 8.3c.22-4 2.07-7.82 3.22-10.71 15.18-4.88 64.17 1.48 67.52 6.22s.8 13 1.47 16.45 9.68 6.8 9.68 6.8Z"})),Od||(Od=d.createElement("path",{fill:"#093f22",d:"M202.05 84.6c2.39-1.92-8.89-16.64-20.3-20.87l-6 7.31-.26 12.81c7.99 2.15 22.68 3.88 26.56.75Z"})),Nd||(Nd=d.createElement("path",{fill:"#b498c6",d:"M180.18 72.06c3.68 2.46 4 8.69 2.45 12.56s-10.89 10.8-13.28 11.15a26.88 26.88 0 0 1-5.15-.2L171 71.7s5.51-2.1 9.18.36Z"})),Td||(Td=d.createElement("path",{fill:"#191a1a",d:"M165.72 67.49s-13.58 37.88-20.45 41.87c1 1 7.06-1.52 9-3.51 3.55-2.44 16.85-34.8 16.85-34.8Z"})),Md||(Md=d.createElement("path",{fill:"#093f22",d:"M136.35 21.41c-1.17-2.11 21.15-11.14 32.7-11.14 2.66 0 10.64 6.2 11.52 9.74-15.29-.23-43.05 3.5-44.22 1.4Zm4.82 11.1c-.92-3 31.73-6.14 43.24-3.93 6.28 1.2 8.82 13.26 4.14 11.81-12.21-3.78-46.78-5.97-47.38-7.88ZM99.94 23c2.07-.89.29-4.14-1.48-10.93a19.93 19.93 0 0 0-7.35 7.62s6.76 4.16 8.83 3.31Zm-5.66 8.72c.18-1.29-5.85-5.57-6.48-4.62a17.56 17.56 0 0 0-2.94 8.78s9.23-2.88 9.42-4.16Z"})),Ld||(Ld=d.createElement("path",{fill:"#fcee21",d:"M95.9 65.56c4.07.42 7.79 1.24 12.23-1 0 0-4-8.79-8.72-8s-3.51 9-3.51 9Z"})),Ad||(Ad=d.createElement("path",{fill:"#f15a24",d:"M108.08 64.63c-5.34-9-13.34-9.9-12.12.92-.49.07-1.34-1.88-1.61-2.93-1.29-5.79 4.65-9.51 9.59-5.14 3.17 2.79 4.45 7.01 4.14 7.15Z"})),Id||(Id=d.createElement("path",{fill:"#f15a24",d:"M106.93 52c1.27.52 2.88 4 1.65 3.5A18.34 18.34 0 0 0 92 57.38c.7-5.91 13-6.22 14.93-5.38Z"})),Dd||(Dd=d.createElement("path",{fill:"#8b6c9c",d:"M121.12 71.07c.66 1.59 1.38 3.39-.41 4.53s-4.33-2-5.87-1.57-3.88 2.72-5.55 2.41c-3.52-.66-3.15-3.48-3.15-3.48s-1.61 5.55 4 5.62c3.81 0 4.23-2.58 7.44-2.27s3.46 2.53 4.89 1.61c2.88-1.82.31-6.69-1.35-6.85Z"})),Fd||(Fd=d.createElement("path",{fill:"#8b6c9c",d:"M106.73 75.68s-2.65.74-1.19 2.49c-3.18 0-3.08-4.59-1.32-6-.75 2.66 2.51 3.51 2.51 3.51Z"})),zd||(zd=d.createElement("ellipse",{cx:98.36,cy:62.94,fill:"#f15a24",rx:3.53,ry:3.42,transform:"rotate(-5.96 98.33 62.903)"})),Ud||(Ud=d.createElement("path",{fill:"#8b6c9c",d:"M138.73 83.69c-8.66 7.53-14.4 12.67-22.62 13-9.3.32-7.2-7.2-7.2-7.2s.85-2.54 5.63-2.77 20.66-2.78 24.19-3.03Z"})),Bd||(Bd=d.createElement("path",{fill:"#4b3f51",d:"M108.91 89.78c.34-.46 1.86-1.93 2.29-1 1.92 3.93 8.45 1.71 28.05-5.2-15 2.26-17.88.24-20.85.48s-3.62 1.67-4.72 1.45-3.43-1.68-4.73-1.1c-3.03 1.27-2.05 3.67-.04 5.37Z"})),qd||(qd=d.createElement("path",{fill:"#8b6c9c",d:"M132.64 76.68c1.08 1.47 9.51 5.88 9.51 5.88a60.71 60.71 0 0 1-2.89 6.3c.41 0 1.39-5-.85-6.64-1.72-1.22-4.64-2.58-5.77-5.54Z"})),$d||($d=d.createElement("path",{fill:"#b498c6",d:"M65.82 248.62c-4.13-.44-11-7.38-15.72-6.64s-9.53 5.31-9.53 5.31-12.7-4.87-16.84-4-9.45 2.36-10.63 3.54-.59 5.91 2.22 5.76 6.05-1 9.3-.44 8.73 6.36 12.41 8c14.17 6.2 29.24.44 29.24.44s3.73-11.52-.45-11.97Z"})),Hd||(Hd=d.createElement("path",{fill:"#8b6c9c",d:"M64.15 248c-2.62.11-5-1.72-6.28-2.59-3.86-2.56-4.62-2.62-19.34 1.45-5.79-2.69-4.72-1.58-7.88-2.74a18.46 18.46 0 0 1 8.14 1.76c-.64 0 13-5.16 16.5-3.92s6.23 5.3 8.86 6.04Z"})),Vd||(Vd=d.createElement("path",{fill:"#093f22",d:"M90.49 53.46a87 87 0 0 1 3.14-10.86c19.79-3.78 64.81 2.3 67.52 6.22s1.23 13.54 1.18 16.09 8.72 6.72 8.72 6.72l4.57-.74s-8.51-2.28-8.66-6.71 1.56-16.78-3.22-18.69c-29.19-11.62-64.36-8.8-72.53-6.65-6.5 1.7-9.09 6.62-7.44 10.27s6.72 4.35 6.72 4.35Zm70 24.59 7.38 2.95-3.99 9.31-7.34-2.07 3.95-10.19z"})),Wd||(Wd=d.createElement("path",{fill:"#b498c6",d:"M153.33 236.52c-10.63-4-31.44 3.41-44.53 5.89-29.24 5.53-37.33 5.55-44.09 6-5 .33-3.44 8.5-2.43 12.17 34.11 6.21 41.2 8.42 72 8.92 22.36-5.62 29.72-28.99 19.05-32.98Z"})),Zd||(Zd=d.createElement("path",{fill:"#8b6c9c",d:"M131.58 242.4c.39-2 .09-3.41.48-5.52l2.21-.22a53.48 53.48 0 0 0-2.69 5.74Z"})),Gd||(Gd=d.createElement("path",{fill:"#fc3",d:"M148.89 45c2 6.65 5.32 17.43 2.44 27.4-2.29 1-10 3.61-12.33 3.39.66-5.76.44-23.11-3.77-32.64 2.31.14 8.22 1.03 13.66 1.85Z"})),Kd||(Kd=d.createElement("path",{fill:"#fcee21",d:"M145.22 62.31c-3.94 1.59-12.14 3.79-17.43 1.19 0 0-1.22-9.33 5.51-8.76s11.92 7.57 11.92 7.57Z"})),Yd||(Yd=d.createElement("path",{fill:"#f15a24",d:"M127.69 63.52c-1.85-4-.92-8.41 4.11-9.48 4.24-.75 11.08 1.85 13.5 8.21-.29.22-7.6-8.06-14-6.15-4.44 1.33-3.13 7.35-3.61 7.42Zm-4.81-17.78c-1.23.51.14 4 1.3 4.36s9.23-2.79 12.1-2.41 8.81 4.79 11.58 7c-.44-1.88-7.92-9.3-10.88-9.92s-12.87.45-14.1.97Z"})),Jd||(Jd=d.createElement("ellipse",{cx:131.8,cy:60.56,fill:"#f15a24",rx:3.76,ry:3.99,transform:"rotate(-5.96 131.772 60.6)"}))),eu=window.yoast.helpers;class tu 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:su}=eu.strings,ru=["a","p"];function nu({title:e,value:t}){return t?(0,Kt.jsxs)("p",{children:[(0,Kt.jsx)("strong",{children:e}),(0,Kt.jsx)("br",{}),t]}):null}function au({title:e,value:t}){return t?(0,Kt.jsxs)("details",{children:[(0,Kt.jsx)("summary",{children:e}),(0,Kt.jsx)("pre",{className:"yst-overflow-x-scroll yst-max-w-[500px] yst-border-px yst-p-4",children:t})]}):null}function ou({message:e,error:t,className:s}){return(0,Kt.jsxs)(vc,{type:"error",className:s,children:[(0,Kt.jsx)("div",{dangerouslySetInnerHTML:{__html:su(e,ru)}}),(0,Kt.jsxs)("details",{children:[(0,Kt.jsx)("summary",{children:(0,Vt.__)("Error details","wordpress-seo")}),(0,Kt.jsxs)("div",{className:"yst-mt-2",children:[(0,Kt.jsx)(nu,{title:(0,Vt.__)("Request URL","wordpress-seo"),value:t.url}),(0,Kt.jsx)(nu,{title:(0,Vt.__)("Request method","wordpress-seo"),value:t.method}),(0,Kt.jsx)(nu,{title:(0,Vt.__)("Status code","wordpress-seo"),value:t.statusCode}),(0,Kt.jsx)(nu,{title:(0,Vt.__)("Error message","wordpress-seo"),value:t.message}),(0,Kt.jsx)(au,{title:(0,Vt.__)("Response","wordpress-seo"),value:t.parseString}),(0,Kt.jsx)(au,{title:(0,Vt.__)("Error stack trace","wordpress-seo"),value:t.stackTrace})]})]})]})}nu.propTypes={title:Gt().string.isRequired,value:Gt().any},nu.defaultProps={value:""},au.propTypes={title:Gt().string.isRequired,value:Gt().string},au.defaultProps={value:""},ou.propTypes={message:Gt().string.isRequired,error:Gt().oneOfType([Gt().instanceOf(Error),Gt().instanceOf(tu)]).isRequired,className:Gt().string},ou.defaultProps={className:""};class iu extends Error{constructor(e,t){super(e),this.name="ParseError",this.parseString=t}}const lu="idle",cu="in_progress",du="errored",uu="completed";class pu extends o.Component{constructor(e){super(e),this.settings=yoastIndexingData,this.state={state:lu,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 iu("Error parsing the response to JSON.",r)}if(!s.ok){const t=n.data?n.data.stackTrace:"";throw new tu(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(cu)&&!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:du,error:e,firstTime:!1})}))}}async index(){for(const e of Object.keys(this.settings.restApi.indexing_endpoints))await this.doIndexing(e);this.isState(du)||this.isState(lu)||this.completeIndexing()}async startIndexing(){this.setState({processed:0,state:cu},this.index)}completeIndexing(){this.setState({state:uu})}stopIndexing(){this.setState((e=>({state:lu,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,Kt.jsx)(vc,{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,Kt.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,Kt.jsx)(l.Button,{variant:"secondary",onClick:this.stopIndexing,children:(0,Vt.__)("Stop SEO data optimization","wordpress-seo")})}renderDisabledTool(){return(0,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)("p",{children:(0,Kt.jsx)(l.Button,{variant:"secondary",disabled:!0,id:"indexation-data-optimization",children:(0,Vt.__)("Start SEO data optimization","wordpress-seo")})}),(0,Kt.jsx)(vc,{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(uu)&&(e=100),this.isState(cu)&&(e=this.state.processed/parseInt(this.state.amount,10)*100),(0,Kt.jsx)("div",{className:"yst-w-full yst-bg-slate-200 yst-rounded-full yst-h-2.5 yst-mb-4",children:(0,Kt.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,Kt.jsx)(gc.Z,{id:"optimization-in-progress-text",height:this.isState(cu)?"auto":0,easing:"linear",duration:300,children:(0,Kt.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,Kt.jsx)(ou,{message:yoastIndexingData.errorMessage,error:this.state.error,className:"yst-mb-4"})}render(){return this.settings.disabled?this.renderDisabledTool():(0,Kt.jsxs)("div",{className:"yst-relative",children:[this.props.children,(0,Kt.jsxs)(Fo,{unmount:!1,show:this.isState(du)||this.isState(cu)||this.isState(lu)&&this.state.amount>0,leave:"yst-transition-opacity yst-duration-1000",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:[this.renderProgressBar(),this.isState(du)&&this.renderErrorAlert(),this.isState(cu)?this.renderStopButton():this.renderStartButton(),this.renderCaption(),this.isState(lu)&&this.state.firstTime&&this.renderFirstIndexationNotice()]})]})}}pu.propTypes={indexingActions:Gt().object,preIndexingActions:Gt().object,indexingStateCallback:Gt().func,children:Gt().node},pu.defaultProps={indexingActions:{},preIndexingActions:{},indexingStateCallback:()=>{},children:null};const mu=pu;function hu({indexingStateCallback:e,indexingState:t,isStepperFinished:s}){return(0,Kt.jsx)(mu,{preIndexingActions:window.yoast.indexing.preIndexingActions,indexingActions:window.yoast.indexing.indexingActions,indexingStateCallback:e,children:(0,Kt.jsx)(Fo,{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,Kt.jsx)(vc,{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 fu({indexingState:e,setIndexingState:t,showRunIndexationAlert:s,isStepperFinished:r}){return(0,Kt.jsxs)("div",{className:"yst-@container",children:[(0,Kt.jsxs)("div",{className:"yst-flex yst-flex-col @lg:yst-flex-row yst-gap-6 yst-mb-8",children:[(0,Kt.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!\n\nNote: If you have a lot of content, this optimization could take a moment. But trust us, it's worth it!","wordpress-seo")}),(0,Kt.jsx)(Xd,{className:"yst-shrink-0 yst-h-28 yst-w-24"})]}),(0,Kt.jsx)("div",{id:"yoast-configuration-indexing-container",className:"indexation-container",children:(0,Kt.jsx)(hu,{indexingStateCallback:t,indexingState:e,isStepperFinished:r})}),(0,Kt.jsx)(bc,{id:"indexation-alert",isVisible:"idle"===e&&s,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")})]})}function yu(e,t,s=""){return Wt(e,{a:(0,Kt.jsx)("a",{id:s,href:t,target:"_blank",rel:"noopener noreferrer"})})}function gu(e,t){let[s,r]=(0,d.useState)(e),n=ho(e);return po((()=>r(n.current)),[n,r,...t]),s}hu.propTypes={indexingStateCallback:Gt().func.isRequired,indexingState:Gt().string.isRequired,isStepperFinished:Gt().bool},hu.defaultProps={isStepperFinished:!1},fu.propTypes={indexingState:Gt().string.isRequired,setIndexingState:Gt().func.isRequired,showRunIndexationAlert:Gt().bool,isStepperFinished:Gt().bool},fu.defaultProps={showRunIndexationAlert:!1,isStepperFinished:!1};var vu=(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))(vu||{});function bu(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 xu=["[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 wu,Eu=(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))(Eu||{}),Su=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Su||{}),_u=((wu=_u||{})[wu.Previous=-1]="Previous",wu[wu.Next=1]="Next",wu),ju=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(ju||{});function Cu(e,t=0){var s;return e!==(null==(s=si(e))?void 0:s.body)&&Za(t,{0:()=>e.matches(xu),1(){let t=e;for(;null!==t;){if(t.matches(xu))return!0;t=t.parentElement}return!1}})}function ku(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 Ru(e,t,s){let r=ho(t);(0,d.useEffect)((()=>{function t(e){r.current(e)}return document.addEventListener(e,t,s),()=>document.removeEventListener(e,t,s)}),[e,s])}function Pu(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!Cu(o,ju.Loose)&&-1!==o.tabIndex&&s.preventDefault(),t(s,o)}}(0,d.useEffect)((()=>{requestAnimationFrame((()=>{r.current=s}))}),[s]);let a=(0,d.useRef)(null);Ru("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),Ru("click",(e=>{!a.current||(n(e,(()=>a.current)),a.current=null)}),!0),Ru("blur",(e=>n(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}["textarea","input"].join(",");var Ou=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ou||{});let Nu=to((function(e,t){let{features:s=1,...r}=e;return Qa({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 Tu(e={},t=null,s=[]){for(let[r,n]of Object.entries(e))Lu(s,Mu(t,r),n);return s}function Mu(e,t){return e?e+"["+t+"]":t}function Lu(e,t,s){if(Array.isArray(s))for(let[r,n]of s.entries())Lu(e,Mu(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,""]):Tu(s,t,e)}function Au(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,yo((e=>(a||n(e),null==t?void 0:t(e))))]}function Iu(e){return[e.screenX,e.screenY]}function Du(){let e=(0,d.useRef)([-1,-1]);return{wasMoved(t){let s=Iu(t);return(e.current[0]!==s[0]||e.current[1]!==s[1])&&(e.current=s,!0)},update(t){e.current=Iu(t)}}}var Fu=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Fu||{}),zu=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(zu||{}),Uu=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Uu||{}),Bu=(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))(Bu||{});function qu(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=ku(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 $u={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=qu(e),n=bu(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=qu(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=qu(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})},Hu=(0,d.createContext)(null);function Vu(e){let t=(0,d.useContext)(Hu);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Vu),t}return t}Hu.displayName="ListboxActionsContext";let Wu=(0,d.createContext)(null);function Zu(e){let t=(0,d.useContext)(Wu);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Zu),t}return t}function Gu(e,t){return Za(t.type,$u,e,t)}Wu.displayName="ListboxDataContext";let Ku=d.Fragment,Yu=to((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=bo(t),[h=(c?[]:void 0),f]=Au(s,a,r),[y,g]=(0,d.useReducer)(Gu,{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),E=yo("string"==typeof o?(e,t)=>{let s=o;return(null==e?void 0:e[s])===(null==t?void 0:t[s])}:o),S=(0,d.useCallback)((e=>Za(_.mode,{1:()=>h.some((t=>E(t,e))),0:()=>E(h,e)})),[h]),_=(0,d.useMemo)((()=>({...y,value:h,disabled:i,mode:c?1:0,orientation:p,compare:E,isSelected:S,optionsPropsRef:v,labelRef:b,buttonRef:x,optionsRef:w})),[h,i,c,y]);po((()=>{y.dataRef.current=_}),[_]),Pu([_.buttonRef,_.optionsRef],((e,t)=>{var s;g({type:1}),Cu(t,ju.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=yo((e=>{let t=_.options.find((t=>t.id===e));!t||M(t.dataRef.current.value)})),k=yo((()=>{if(null!==_.activeOptionIndex){let{dataRef:e,id:t}=_.options[_.activeOptionIndex];M(e.current.value),g({type:2,focus:vu.Specific,id:t})}})),R=yo((()=>g({type:0}))),P=yo((()=>g({type:1}))),O=yo(((e,t,s)=>e===vu.Specific?g({type:2,focus:vu.Specific,id:t,trigger:s}):g({type:2,focus:e,trigger:s}))),N=yo(((e,t)=>(g({type:5,id:e,dataRef:t}),()=>g({type:6,id:e})))),T=yo((e=>(g({type:7,id:e}),()=>g({type:7,id:null})))),M=yo((e=>Za(_.mode,{0:()=>null==f?void 0:f(e),1(){let t=_.value.slice(),s=t.findIndex((t=>E(t,e)));return-1===s?t.push(e):t.splice(s,1),null==f?void 0:f(t)}}))),L=yo((e=>g({type:3,value:e}))),A=yo((()=>g({type:4}))),I=(0,d.useMemo)((()=>({onChange:M,registerOption:N,registerLabel:T,goToOption:O,closeListbox:P,openListbox:R,selectActiveOption:k,selectOption:C,search:L,clearSearch:A})),[]),D={ref:m},F=(0,d.useRef)(null),z=So();return(0,d.useEffect)((()=>{!F.current||void 0!==r&&z.addEventListener(F.current,"reset",(()=>{M(r)}))}),[F,M]),d.createElement(Hu.Provider,{value:I},d.createElement(Wu.Provider,{value:_},d.createElement(io,{value:Za(_.listboxState,{0:ao.Open,1:ao.Closed})},null!=n&&null!=h&&Tu({[n]:h}).map((([e,t],s)=>d.createElement(Nu,{features:Ou.Hidden,ref:0===s?e=>{var t;F.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...so({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Qa({ourProps:D,theirProps:u,slot:j,defaultTag:Ku,name:"Listbox"}))))})),Ju=to((function(e,t){var s;let r=Jo(),{id:n=`headlessui-listbox-button-${r}`,...a}=e,o=Zu("Listbox.Button"),i=Vu("Listbox.Button"),l=bo(o.buttonRef,t),c=So(),u=yo((e=>{switch(e.key){case Qo.Space:case Qo.Enter:case Qo.ArrowDown:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(vu.First)}));break;case Qo.ArrowUp:e.preventDefault(),i.openListbox(),c.nextFrame((()=>{o.value||i.goToOption(vu.Last)}))}})),p=yo((e=>{e.key===Qo.Space&&e.preventDefault()})),m=yo((e=>{if(Xo(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=gu((()=>{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 Qa({ourProps:{ref:l,id:n,type:ti(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"})})),Qu=to((function(e,t){let s=Jo(),{id:r=`headlessui-listbox-label-${s}`,...n}=e,a=Zu("Listbox.Label"),o=Vu("Listbox.Label"),i=bo(a.labelRef,t);po((()=>o.registerLabel(r)),[r]);let l=yo((()=>{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 Qa({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Listbox.Label"})})),Xu=Ya.RenderStrategy|Ya.Static,ep=to((function(e,t){var s;let r=Jo(),{id:n=`headlessui-listbox-options-${r}`,...a}=e,o=Zu("Listbox.Options"),i=Vu("Listbox.Options"),l=bo(o.optionsRef,t),c=So(),u=So(),p=oo(),m=null!==p?p===ao.Open:0===o.listboxState;(0,d.useEffect)((()=>{var e;let t=o.optionsRef.current;!t||0===o.listboxState&&t!==(null==(e=si(t))?void 0:e.activeElement)&&t.focus({preventScroll:!0})}),[o.listboxState,o.optionsRef]);let h=yo((e=>{switch(u.dispose(),e.key){case Qo.Space:if(""!==o.searchQuery)return e.preventDefault(),e.stopPropagation(),i.search(e.key);case Qo.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(),xo().nextFrame((()=>{var e;return null==(e=o.buttonRef.current)?void 0:e.focus({preventScroll:!0})})));break;case Za(o.orientation,{vertical:Qo.ArrowDown,horizontal:Qo.ArrowRight}):return e.preventDefault(),e.stopPropagation(),i.goToOption(vu.Next);case Za(o.orientation,{vertical:Qo.ArrowUp,horizontal:Qo.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),i.goToOption(vu.Previous);case Qo.Home:case Qo.PageUp:return e.preventDefault(),e.stopPropagation(),i.goToOption(vu.First);case Qo.End:case Qo.PageDown:return e.preventDefault(),e.stopPropagation(),i.goToOption(vu.Last);case Qo.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 Qo.Tab:e.preventDefault(),e.stopPropagation();break;default:1===e.key.length&&(i.search(e.key),u.setTimeout((()=>i.clearSearch()),350))}})),f=gu((()=>{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 Qa({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:Xu,visible:m,name:"Listbox.Options"})})),tp=to((function(e,t){let s=Jo(),{id:r=`headlessui-listbox-option-${s}`,disabled:n=!1,value:a,...o}=e,i=Zu("Listbox.Option"),l=Vu("Listbox.Option"),c=null!==i.activeOptionIndex&&i.options[i.activeOptionIndex].id===r,u=i.isSelected(a),p=(0,d.useRef)(null),m=ho({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=bo(t,p);po((()=>{if(0!==i.listboxState||!c||0===i.activationTrigger)return;let e=xo();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]),po((()=>l.registerOption(r,m)),[m,r]);let f=yo((e=>{if(n)return e.preventDefault();l.onChange(a),0===i.mode&&(l.closeListbox(),xo().nextFrame((()=>{var e;return null==(e=i.buttonRef.current)?void 0:e.focus({preventScroll:!0})})))})),y=yo((()=>{if(n)return l.goToOption(vu.Nothing);l.goToOption(vu.Specific,r)})),g=Du(),v=yo((e=>g.update(e))),b=yo((e=>{!g.wasMoved(e)||n||c||l.goToOption(vu.Specific,r,0)})),x=yo((e=>{!g.wasMoved(e)||n||!c||l.goToOption(vu.Nothing)})),w=(0,d.useMemo)((()=>({active:c,selected:u,disabled:n})),[c,u,n]);return Qa({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"})})),sp=Object.assign(Yu,{Button:Ju,Label:Qu,Options:ep,Option:tp});const rp=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 np({id:e,value:t,choices:s,label:r,onChange:n,error:a,disabled:i}){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,Kt.jsx)(sp,{id:e,as:"div",value:t,onChange:n,disabled:i,children:({open:n})=>(0,Kt.jsxs)(Kt.Fragment,{children:[r&&(0,Kt.jsx)(sp.Label,{className:"yst-block yst-max-w-sm yst-mb-1 yst-text-sm yst-font-medium yst-text-slate-700",children:r}),(0,Kt.jsxs)("div",{className:"yst-max-w-sm",children:[(0,Kt.jsxs)("div",{className:"yst-relative",children:[(0,Kt.jsxs)(sp.Button,{"data-id":`button-${e} `,className:Ts()("yst-relative yst-h-[45px] 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"),...Xl(e,a),children:[(0,Kt.jsx)("span",{className:"yst-block yst-truncate",children:l}),(0,Kt.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,Kt.jsx)(rp,{className:"yst-w-5 yst-h-5 yst-text-slate-400","aria-hidden":"true"})}),a.isVisible&&(0,Kt.jsx)("div",{className:"yst-flex yst-items-center yst-absolute yst-inset-y-0 yst-end-0 yst-me-8",children:(0,Kt.jsx)(oc,{className:"yst-pointer-events-none yst-h-5 yst-w-5 yst-text-red-500"})})]}),(0,Kt.jsx)(Fo,{show:n,as:o.Fragment,leave:"yst-transition yst-ease-in yst-duration-100",leaveFrom:"yst-opacity-100",leaveTo:"yst-opacity-0",children:(0,Kt.jsx)(sp.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,Kt.jsx)(sp.Option,{as:o.Fragment,value:e.value,children:({selected:t,active:s})=>(0,Kt.jsxs)("li",{className:ec({selected:t,active:s}),children:[(0,Kt.jsx)("span",{className:Ts()(t?"yst-font-semibold":"yst-font-normal","yst-block yst-truncate"),children:e.label}),t?(0,Kt.jsx)("span",{className:Ts()("yst-text-white yst-absolute yst-inset-y-0 yst-end-0 yst-flex yst-items-center yst-pe-4"),children:(0,Kt.jsx)(Os,{className:"yst-w-5 yst-h-5","aria-hidden":"true"})}):null]})},e.id)))})})]}),a.isVisible&&(0,Kt.jsx)(lc,{id:Ql(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:a.message})]})]})})}np.propTypes={value:Zt.PropTypes.string.isRequired,choices:Zt.PropTypes.arrayOf(Zt.PropTypes.shape({id:Zt.PropTypes.oneOfType([Zt.PropTypes.number,Zt.PropTypes.string]).isRequired,value:Zt.PropTypes.string.isRequired,label:Zt.PropTypes.string.isRequired})).isRequired,label:Zt.PropTypes.string.isRequired,onChange:Zt.PropTypes.func.isRequired,id:Zt.PropTypes.string.isRequired,error:Zt.PropTypes.shape({message:Zt.PropTypes.string,isVisible:Zt.PropTypes.bool}),disabled:Zt.PropTypes.bool},np.defaultProps={error:{message:"",isVisible:!1},disabled:!1};const ap=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"}))})),op=({className:e})=>(0,Kt.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",className:Ts()("yst-animate-spin",e),children:[(0,Kt.jsx)("circle",{className:"yst-opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,Kt.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"})]});op.propTypes={className:Gt().string},op.defaultProps={className:""};const ip=op;function lp({id:e,imageAltText:t,url:s,fallbackUrl:r,label:n,onSelectImageClick:a,onRemoveImageClick:i,className:c,error:d,status:u}){const p=Ts()("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",d.isVisible?"yst-border-red-300":"yst-border-slate-300","yst-border-2 yst-border-dashed"),m=(0,o.useCallback)((()=>"loading"===u?(0,Kt.jsxs)("div",{className:"yst-text-center",children:[(0,Kt.jsx)(ip,{size:"10",color:"gray-400",className:"yst-inline-block"}),(0,Kt.jsx)("p",{className:"yst-mt-3",children:(0,Vt.__)("Uploading image…","wordpress-seo")})]}):s?(0,Kt.jsx)("img",{src:s,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):r?(0,Kt.jsx)("img",{src:r,alt:t,className:"yst-w-full yst-h-full yst-object-contain"}):(0,Kt.jsx)(ap,{id:`${e}-no-image-svg`,className:"yst-w-14 yst-h-14 yst-text-slate-500"})),[u,e,s,t]);return(0,Kt.jsxs)("div",{className:Ts()("yst-max-w-sm",c),...Xl(e,d),children:[(0,Kt.jsx)("label",{htmlFor:e,className:"yst-block yst-mb-2 yst-font-medium yst-text-slate-700",children:n}),(0,Kt.jsx)("button",{id:e,className:p,onClick:a,type:"button","data-hiive-event-name":"clicked_select_image",children:m()}),(0,Kt.jsxs)("div",{children:[(0,Kt.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,Kt.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"===u&&(0,Kt.jsx)("p",{className:"yst-mt-2 yst-text-sm yst-text-red-600",children:d}),d.isVisible&&(0,Kt.jsx)(lc,{id:Ql(e),className:"yst-mt-2 yst-text-sm yst-text-red-600",texts:d.message})]})}lp.propTypes={label:Gt().string,id:Gt().string.isRequired,url:Gt().string,fallbackUrl:Gt().string,imageAltText:Gt().string,onRemoveImageClick:Gt().func,onSelectImageClick:Gt().func,className:Gt().string,error:Gt().shape({message:Gt().string,isVisible:Gt().bool}),status:Gt().string},lp.defaultProps={label:"",url:"",fallbackUrl:"",imageAltText:"",onRemoveImageClick:c.noop,onSelectImageClick:c.noop,className:"",error:{message:"",isVisible:!1},status:"idle"},window.yoast.socialMetadataForms;const cp=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 dp(e){(function(e){const t=window.wp.media();return t.on("select",(()=>{const s=t.state().get("selection").first();e(cp(s.attributes))})),t})(e).open()}function up({dispatch:e,imageUrl:t,fallbackImageUrl:s,organizationName:r,fallbackOrganizationName:n,errorFields:a}){const i=(0,o.useCallback)((()=>{dp((t=>{e({type:"SET_COMPANY_LOGO",payload:{...t}})}))}),[dp]),l=(0,o.useCallback)((()=>{e({type:"REMOVE_COMPANY_LOGO"})})),c=(0,o.useCallback)((t=>{e({type:"CHANGE_COMPANY_NAME",payload:t.target.value})}));return(0,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)(dc,{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,Kt.jsx)(lp,{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 pp(e,t){let s=(0,d.useRef)([]),r=yo(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])}up.propTypes={dispatch:Gt().func.isRequired,imageUrl:Gt().string,fallbackImageUrl:Gt().string,organizationName:Gt().string,fallbackOrganizationName:Gt().string,errorFields:Gt().array},up.defaultProps={imageUrl:"",fallbackImageUrl:"",organizationName:"",fallbackOrganizationName:"",errorFields:[]};var mp=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(mp||{}),hp=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(hp||{}),fp=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(fp||{}),yp=(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))(yp||{});function gp(e,t=(e=>e)){let s=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=ku(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 vp={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=gp(e);if(null===r.activeOptionIndex){let e=r.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(r.activeOptionIndex=e)}let n=bu(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=gp(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=gp(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})},bp=(0,d.createContext)(null);function xp(e){let t=(0,d.useContext)(bp);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,xp),t}return t}bp.displayName="ComboboxActionsContext";let wp=(0,d.createContext)(null);function Ep(e){let t=(0,d.useContext)(wp);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ep),t}return t}function Sp(e,t){return Za(t.type,vp,e,t)}wp.displayName="ComboboxDataContext";let _p=d.Fragment,jp=to((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]=Au(s,n,r),[f,y]=(0,d.useReducer)(Sp,{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),E=(0,d.useRef)(null),S=yo("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=>Za(j.mode,{1:()=>m.some((t=>S(t,e))),0:()=>S(m,e)})),[m]),j=(0,d.useMemo)((()=>({...f,optionsPropsRef:v,labelRef:b,inputRef:x,buttonRef:w,optionsRef:E,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:S,isSelected:_,nullable:c,__demoMode:l})),[m,r,i,u,c,l,f]);po((()=>{f.dataRef.current=j}),[j]),Pu([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=yo((e=>{let t=j.options.find((t=>t.id===e));!t||L(t.dataRef.current.value)})),R=yo((()=>{if(null!==j.activeOptionIndex){let{dataRef:e,id:t}=j.options[j.activeOptionIndex];L(e.current.value),A.goToOption(vu.Specific,t)}})),P=yo((()=>{y({type:0}),g.current=!0})),O=yo((()=>{y({type:1}),g.current=!1})),N=yo(((e,t,s)=>(g.current=!1,e===vu.Specific?y({type:2,focus:vu.Specific,id:t,trigger:s}):y({type:2,focus:e,trigger:s})))),T=yo(((e,t)=>(y({type:3,id:e,dataRef:t}),()=>y({type:4,id:e})))),M=yo((e=>(y({type:5,id:e}),()=>y({type:5,id:null})))),L=yo((e=>Za(j.mode,{0:()=>null==h?void 0:h(e),1(){let t=j.value.slice(),s=t.findIndex((t=>S(t,e)));return-1===s?t.push(e):t.splice(s,1),null==h?void 0:h(t)}}))),A=(0,d.useMemo)((()=>({onChange:L,registerOption:T,registerLabel:M,goToOption:N,closeCombobox:O,openCombobox:P,selectActiveOption:R,selectOption:k})),[]),I=null===t?{}:{ref:t},D=(0,d.useRef)(null),F=So();return(0,d.useEffect)((()=>{!D.current||void 0!==r&&F.addEventListener(D.current,"reset",(()=>{L(r)}))}),[D,L]),d.createElement(bp.Provider,{value:A},d.createElement(wp.Provider,{value:j},d.createElement(io,{value:Za(j.comboboxState,{0:ao.Open,1:ao.Closed})},null!=a&&null!=m&&Tu({[a]:m}).map((([e,t],s)=>d.createElement(Nu,{features:Ou.Hidden,ref:0===s?e=>{var t;D.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...so({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:e,value:t})}))),Qa({ourProps:I,theirProps:p,slot:C,defaultTag:_p,name:"Combobox"}))))})),Cp=to((function(e,t){var s,r,n,a;let o=Jo(),{id:i=`headlessui-combobox-input-${o}`,onChange:l,displayValue:c,type:u="text",...p}=e,m=Ep("Combobox.Input"),h=xp("Combobox.Input"),f=bo(m.inputRef,t),y=(0,d.useRef)(!1),g=So(),v=function(){var e;return"function"==typeof c&&void 0!==m.value?null!=(e=c(m.value))?e:"":"string"==typeof m.value?m.value:""}();pp((([e,t],[s,r])=>{y.current||!m.inputRef.current||(0===r&&1===t||e!==s)&&(m.inputRef.current.value=e)}),[v,m.comboboxState]),pp((([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=yo((()=>{b.current=!0})),w=yo((()=>{setTimeout((()=>{b.current=!1}))})),E=yo((e=>{switch(y.current=!0,e.key){case Qo.Backspace:case Qo.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(vu.Nothing))}));break;case Qo.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 Qo.ArrowDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),Za(m.comboboxState,{0:()=>{h.goToOption(vu.Next)},1:()=>{h.openCombobox()}});case Qo.ArrowUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),Za(m.comboboxState,{0:()=>{h.goToOption(vu.Previous)},1:()=>{h.openCombobox(),g.nextFrame((()=>{m.value||h.goToOption(vu.Last)}))}});case Qo.Home:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(vu.First);case Qo.PageUp:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(vu.First);case Qo.End:if(e.shiftKey)break;return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(vu.Last);case Qo.PageDown:return y.current=!1,e.preventDefault(),e.stopPropagation(),h.goToOption(vu.Last);case Qo.Escape:return y.current=!1,0!==m.comboboxState?void 0:(e.preventDefault(),m.optionsRef.current&&!m.optionsPropsRef.current.static&&e.stopPropagation(),h.closeCombobox());case Qo.Tab:if(y.current=!1,0!==m.comboboxState)return;0===m.mode&&h.selectActiveOption(),h.closeCombobox()}})),S=yo((e=>{h.openCombobox(),null==l||l(e)})),_=yo((()=>{y.current=!1})),j=gu((()=>{if(m.labelId)return[m.labelId].join(" ")}),[m.labelId]),C=(0,d.useMemo)((()=>({open:0===m.comboboxState,disabled:m.disabled})),[m]);return Qa({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:E,onChange:S,onBlur:_},theirProps:p,slot:C,defaultTag:"input",name:"Combobox.Input"})})),kp=to((function(e,t){var s;let r=Ep("Combobox.Button"),n=xp("Combobox.Button"),a=bo(r.buttonRef,t),o=Jo(),{id:i=`headlessui-combobox-button-${o}`,...l}=e,c=So(),u=yo((e=>{switch(e.key){case Qo.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 Qo.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(n.openCombobox(),c.nextFrame((()=>{r.value||n.goToOption(vu.Last)}))),c.nextFrame((()=>{var e;return null==(e=r.inputRef.current)?void 0:e.focus({preventScroll:!0})}));case Qo.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=yo((e=>{if(Xo(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=gu((()=>{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 Qa({ourProps:{ref:a,id:i,type:ti(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"})})),Rp=to((function(e,t){let s=Jo(),{id:r=`headlessui-combobox-label-${s}`,...n}=e,a=Ep("Combobox.Label"),o=xp("Combobox.Label"),i=bo(a.labelRef,t);po((()=>o.registerLabel(r)),[r]);let l=yo((()=>{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 Qa({ourProps:{ref:i,id:r,onClick:l},theirProps:n,slot:c,defaultTag:"label",name:"Combobox.Label"})})),Pp=Ya.RenderStrategy|Ya.Static,Op=to((function(e,t){let s=Jo(),{id:r=`headlessui-combobox-options-${s}`,hold:n=!1,...a}=e,o=Ep("Combobox.Options"),i=bo(o.optionsRef,t),l=oo(),c=null!==l?l===ao.Open:0===o.comboboxState;po((()=>{var t;o.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[o.optionsPropsRef,e.static]),po((()=>{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]),po((()=>{if(!e||!r)return;let t=si(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=gu((()=>{var e,t;return null!=(t=o.labelId)?t:null==(e=o.buttonRef.current)?void 0:e.id}),[o.labelId,o.buttonRef.current]);return Qa({ourProps:{"aria-labelledby":u,role:"listbox",id:r,ref:i},theirProps:a,slot:(0,d.useMemo)((()=>({open:0===o.comboboxState})),[o]),defaultTag:"ul",features:Pp,visible:c,name:"Combobox.Options"})})),Np=to((function(e,t){var s,r;let n=Jo(),{id:a=`headlessui-combobox-option-${n}`,disabled:o=!1,value:i,...l}=e,c=Ep("Combobox.Option"),u=xp("Combobox.Option"),p=null!==c.activeOptionIndex&&c.options[c.activeOptionIndex].id===a,m=c.isSelected(i),h=(0,d.useRef)(null),f=ho({disabled:o,value:i,domRef:h,textValue:null==(r=null==(s=h.current)?void 0:s.textContent)?void 0:r.toLowerCase()}),y=bo(t,h),g=yo((()=>u.selectOption(a)));po((()=>u.registerOption(a,f)),[f,a]);let v=(0,d.useRef)(!c.__demoMode);po((()=>{if(!c.__demoMode)return;let e=xo();return e.requestAnimationFrame((()=>{v.current=!0})),e.dispose}),[]),po((()=>{if(0!==c.comboboxState||!p||!v.current||0===c.activationTrigger)return;let e=xo();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=yo((e=>{if(o)return e.preventDefault();g(),0===c.mode&&u.closeCombobox()})),x=yo((()=>{if(o)return u.goToOption(vu.Nothing);u.goToOption(vu.Specific,a)})),w=Du(),E=yo((e=>w.update(e))),S=yo((e=>{!w.wasMoved(e)||o||p||u.goToOption(vu.Specific,a,0)})),_=yo((e=>{!w.wasMoved(e)||o||!p||c.optionsPropsRef.current.hold||u.goToOption(vu.Nothing)})),j=(0,d.useMemo)((()=>({active:p,selected:m,disabled:o})),[p,m,o]);return Qa({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:E,onMouseEnter:E,onPointerMove:S,onMouseMove:S,onPointerLeave:_,onMouseLeave:_},theirProps:l,slot:j,defaultTag:"li",name:"Combobox.Option"})})),Tp=Object.assign(jp,{Input:Cp,Button:kp,Label:Rp,Options:Op,Option:Np});function Mp(e){return e&&e.label?e.label:null}function Lp({id:e,value:t,label:s,onChange:r,onQueryChange:n,options:a,placeholder:i,isLoading:l}){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})=>ec({selected:s||e===t,active:r})),[ec]),y=(0,o.useCallback)((e=>t=>{e&&t.stopPropagation()}),[]);return(0,Kt.jsx)(Tp,{id:e,as:"div",value:t,onChange:r,onBlur:h,children:({open:r})=>(0,Kt.jsxs)(o.Fragment,{children:[s&&(0,Kt.jsx)(Tp.Label,{className:"yst-block yst-mb-1 yst-max-w-sm yst-text-sm yst-font-medium yst-text-slate-700",children:s}),(0,Kt.jsxs)("div",{className:"yst-h-[45px] yst-max-w-sm yst-relative",children:[(0,Kt.jsxs)(Tp.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,Kt.jsx)(Tp.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-2 yst-ps-0 yst-pe-10 yst-shadow-none sm:yst-text-sm",onChange:m,displayValue:Mp,placeholder:i,onClick:y(r)}),(0,Kt.jsx)(rp,{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,Kt.jsxs)(Tp.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,Kt.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,Kt.jsx)(ip,{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,Kt.jsx)(Tp.Option,{value:e,className:f(e.value,t.value),children:({selected:s})=>(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)("span",{className:Ts()("yst-block yst-truncate",(s||t.value===e.value)&&"yst-font-semibold"),children:e.label}),(s||t.value===e.value)&&(0,Kt.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,Kt.jsx)(Os,{className:"yst-h-5 yst-w-5","aria-hidden":"true"})})]})},`yst-option-${e.value}`)))]})]})]})})}Lp.propTypes={onChange:Gt().func.isRequired,options:Gt().array.isRequired,id:Gt().string.isRequired,value:Gt().shape({value:Gt().number,label:Gt().string}),label:Gt().string,onQueryChange:Gt().func,placeholder:Gt().string,isLoading:Gt().bool},Lp.defaultProps={value:null,label:"",onQueryChange:null,placeholder:(0,Vt.__)("Select an option","wordpress-seo"),isLoading:!1};const Ap={"X-WP-NONCE":wpApiSettings.nonce},Ip=wpApiSettings.root;function Dp({initialValue:e,onChangeCallback:t,placeholder:s}){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=`${Ip}wp/v2/users?per_page=20${e?`&search=${encodeURIComponent(e)}`:""}`;return(0,eu.sendRequest)(t,{method:"GET",headers:Ap})}(e);u.current&&(d(!1),n(t.map((e=>({value:e.id,label:e.name})))))}),500),[]);return(0,Kt.jsx)(Lp,{id:"yoast-configuration-user-select",value:a,label:(0,Vt.__)("Name","wordpress-seo"),onChange:p,onQueryChange:m,options:r,placeholder:s,isLoading:l})}function Fp({dispatch:e,imageUrl:t,fallbackImageUrl:s,person:r,canEditUser:n}){const a=(0,o.useCallback)((()=>{dp((t=>{e({type:"SET_PERSON_LOGO",payload:{...t}})}))}),[dp]),i=(0,o.useCallback)((()=>{e({type:"REMOVE_PERSON_LOGO"})})),l=(0,o.useCallback)((t=>{e({type:"SET_PERSON",payload:t}),Ra()({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,Kt.jsx)("b",{}),a:(0,Kt.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,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)(Dp,{initialValue:r,onChangeCallback:l,name:"person_id",placeholder:(0,Vt.__)("Select a user","wordpress-seo")}),(0,Kt.jsx)(bc,{id:"user-representation-alert",isVisible:0!==r.id,type:"info",className:"yst-mt-5",children:u}),(0,Kt.jsx)(lp,{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")})]})}function zp({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")})),l=(0,o.useCallback)((e=>{t({type:"CHANGE_WEBSITE_NAME",payload:e.target.value})})),c=yu((0,Vt.sprintf)(/* translators: %1$s expands to opening 'a' HTML tag, %2$s expands to closing 'a' HTML tag. */
(0,Vt.__)("Completing this step helps Google to understand your site even better. Bonus: You'll improve your chance of getting %1$srich results%2$s!","wordpress-seo"),"<a>","</a>"),"https://yoa.st/config-workout-rich-results","yoast-configuration-rich-text-link");return(0,Kt.jsxs)(o.Fragment,{children:[window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage&&(0,Kt.jsx)(vc,{type:"info",children:window.wpseoFirstTimeConfigurationData.knowledgeGraphMessage}),(0,Kt.jsx)("p",{className:Ts()("yst-text-sm yst-whitespace-pre-line yst-mb-6",s.shouldForceCompany?"yst-mt-4":"yst-mt-0"),children:s.shouldForceCompany?c:(0,Kt.jsxs)(o.Fragment,{children:[(0,Vt.__)("Tell us! Is your site about an organization or a person?","wordpress-seo"),c]})}),(0,Kt.jsx)(np,{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,Kt.jsx)(vc,{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,Kt.jsx)(dc,{className:"yst-my-6",id:"website-name-input",name:"website-name",label:(0,Vt.__)("Website name","wordpress-seo"),value:s.websiteName||s.fallbackWebsiteName,onChange:l,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,Kt.jsx)(gc.Z,{height:["company","person"].includes(s.companyOrPerson)?"auto":0,duration:400,easing:"linear",onAnimationEnd:i,children:(0,Kt.jsxs)("div",{className:Ts()("yst-transition-opacity yst-duration-300 yst-mt-6",n),children:["company"===s.companyOrPerson&&(0,Kt.jsx)(up,{dispatch:t,imageUrl:s.companyLogo,fallbackImageUrl:s.companyLogoFallback,organizationName:s.companyName,fallbackOrganizationName:s.fallbackCompanyName,errorFields:s.errorFields}),"person"===s.companyOrPerson&&(0,Kt.jsx)(Fp,{dispatch:t,imageUrl:s.personLogo,fallbackImageUrl:s.personLogoFallback,person:{id:s.personId,name:s.personName},canEditUser:!!s.canEditUser,errorFields:s.errorFields})]})}),(0,Kt.jsx)(bc,{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")})]})}Dp.propTypes={initialValue:Gt().shape({id:Gt().number,name:Gt().string}),onChangeCallback:Gt().func,placeholder:Gt().string},Dp.defaultProps={initialValue:{id:0,name:""},onChangeCallback:c.noop,placeholder:(0,Vt.__)("Select a user","wordpress-seo")},Fp.propTypes={dispatch:Gt().func.isRequired,imageUrl:Gt().string,fallbackImageUrl:Gt().string,person:Gt().shape({id:Gt().number,name:Gt().string}),canEditUser:Gt().bool.isRequired},Fp.defaultProps={imageUrl:"",fallbackImageUrl:"",person:{id:0,name:""}},zp.propTypes={onOrganizationOrPersonChange:Gt().func.isRequired,dispatch:Gt().func.isRequired,state:Gt().object.isRequired,siteRepresentationEmpty:Gt().bool.isRequired};const Up=(0,Vt.__)("Oops! Something went wrong. Check your email address and try again.","wordpress-seo"),Bp=(0,Vt.__)("Please enter a valid email address.","wordpress-seo"),qp=(0,Vt.__)("Thank you! Check your inbox for the confirmation email.","wordpress-seo");function $p({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,Na.isEmail)(t))return n("error"),void i(Bp);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(Up)):(n("success"),i(qp))}),[t]),c=(0,o.useCallback)((e=>{n("waiting"),s(e.target.value)}),[s]);return(0,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)("h4",{className:"yst-text-slate-900 yst-text-base yst-leading-6 yst-font-normal",children:(0,Vt.__)("Get free weekly SEO tips!","wordpress-seo")}),(0,Kt.jsx)("p",{className:"yst-my-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,Kt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-2 yst-mt-4",children:[(0,Kt.jsx)(dc,{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,Kt.jsx)("button",{type:"button",id:"newsletter-sign-up-button",className:"yst-button yst-button--primary yst-h-[45px] 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,Kt.jsx)("p",{className:"yst-text-slate-600 yst-text-xxs yst-leading-4",children:yu((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")})]})}$p.propTypes={gdprLink:Gt().string},$p.defaultProps={gdprLink:""};const Hp={variant:{default:"","inline-block":"yst-radio-group--inline-block"}},Vp=({id:e,name:t,value:s,label:r,className:n,...a})=>(0,Kt.jsxs)("div",{className:Ts()("yst-radio",n),children:[(0,Kt.jsx)("input",{type:"radio",id:e,name:t,value:s,className:"yst-radio__input",...a}),r&&(0,Kt.jsx)(Wp,{htmlFor:e,className:"yst-radio__label",children:r})]});Vp.propTypes={name:Gt().string.isRequired,id:Gt().string.isRequired,value:Gt().oneOfType([Gt().string,Gt().number]).isRequired,label:Gt().string.isRequired,variant:Gt().oneOf(Object.keys({default:"","inline-block":"yst-radio--inline-block"})),className:Gt().string},Vp.defaultProps={variant:"default",className:""};const Wp=({children:e,as:t,className:s,...r})=>(0,Kt.jsx)(t,{className:Ts()("yst-label",s),...r,children:e});Wp.propTypes={children:Gt().node.isRequired,as:Gt().elementType,className:Gt().string},Wp.defaultProps={as:"label",className:""};const Zp=({children:e,id:t,name:s,value:r,label:n,options:a,onChange:i,variant:l,className:c,...d})=>{const u=(0,o.useCallback)((({target:e})=>e.checked&&i(e.value)),[i]);return(0,Kt.jsxs)("fieldset",{className:Ts()("yst-radio-group",Hp.variant[l],c),children:[n&&(0,Kt.jsx)(Wp,{as:"legend",className:"yst-radio-group__label",children:n}),e&&(0,Kt.jsx)("div",{className:"yst-radio-group__description",children:e}),(0,Kt.jsx)("div",{className:"yst-radio-group__options",children:a.map(((e,n)=>{const a=`${t}-${n}`;return(0,Kt.jsx)(Vp,{id:a,name:s,value:e.value,label:e.label,variant:l,checked:r===e.value,onChange:u,...d},a)}))})]})};Zp.propTypes={children:Gt().node,id:Gt().string.isRequired,name:Gt().string.isRequired,value:Gt().oneOfType([Gt().string,Gt().number]).isRequired,options:Gt().arrayOf(Gt().shape({value:Gt().oneOfType([Gt().string,Gt().number]).isRequired,label:Gt().string.isRequired})).isRequired,onChange:Gt().func.isRequired,label:Gt().node,variant:Gt().oneOf(Object.keys(Hp.variant)),className:Gt().string},Zp.defaultProps={children:null,label:null,variant:"default",className:""};const Gp=Zp,Kp=(0,eu.makeOutboundLink)();function Yp({state:e,setTracking:t}){return(0,Kt.jsxs)(o.Fragment,{children:[!e.isPremium&&(0,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)($p,{gdprLink:window.wpseoFirstTimeConfigurationData.shortlinks.gdpr}),(0,Kt.jsx)("br",{})]}),(0,Kt.jsx)("h4",{className:"yst-text-slate-900 yst-text-base yst-leading-6 yst-font-normal",children:(0,Vt.__)("Are you open to help us improve our services?","wordpress-seo")}),!!e.isMainSite&&!e.isTrackingAllowedMultisite&&(0,Kt.jsx)(vc,{type:"warning",className:"yst-mt-2",children:(0,Vt.__)("This feature has been disabled by the network admin.","wordpress-seo")}),!e.isMainSite&&(0,Kt.jsx)(vc,{type:"warning",className:"yst-mt-2",children:(0,Vt.__)("This feature has been disabled since subsites never send tracking data.","wordpress-seo")}),(0,Kt.jsx)("p",{className:Ts()("yst-text-normal yst-mt-2 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,Kt.jsx)(Gp,{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,Kt.jsxs)(o.Fragment,{children:[(0,Kt.jsx)(Kp,{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,Kt.jsx)("p",{className:"yst-my-2",children:(0,Kt.jsx)("i",{children:(0,Vt.__)("Important: We won't sell this data, and we won't collect any personal information about you or your visitors.","wordpress-seo")})})]})]})}var Jp,Qp,Xp,em,tm,sm,rm,nm,am,om,im,lm,cm,dm,um,pm,mm,hm,fm,ym,gm,vm,bm,xm,wm,Em,Sm,_m,jm,Cm,km,Rm,Pm,Om,Nm,Tm,Mm,Lm,Am,Im,Dm,Fm,zm,Um,Bm,qm,$m,Hm,Vm,Wm,Zm;function Gm(){return Gm=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},Gm.apply(this,arguments)}Yp.propTypes={state:Gt().object.isRequired,setTracking:Gt().func.isRequired};const Km=e=>d.createElement("svg",Gm({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"indexables_2_left_bubble_optm_svg__yst-shrink-0 indexables_2_left_bubble_optm_svg__yst-h-28",viewBox:"0 0 289.98 291.69"},e),Jp||(Jp=d.createElement("path",{fill:"#006531",d:"M178.09 168c6.2.88 11.73 57.74 10.9 64-1 7.61-20.47 21.56-35.83 16.83s-22.28-17.36-17.85-26.51 36.58-55.25 42.78-54.32z"})),Qp||(Qp=d.createElement("path",{fill:"#f0ecf0",d:"M256.47 217s6 6 13.08 13.82a131.19 131.19 0 1 0-181.07 40.45q3.55 2.25 7.23 4.27c.71-2.79 1.36-5 1.81-6.64 1.48-5.32 6.32-14.53 5.36-19.55s-4.13-7.68-3.54-20.08a114.5 114.5 0 0 1 3.54-25.72 14.88 14.88 0 0 0-7.09-1.77 113.17 113.17 0 0 1 10.95-12c6.87-21.57 17-42 23.64-51.22 6.22-8.64 29.37-10.27 52.71-6.72s47.75 28.12 40.37 63-28.46 44.21-30.79 49.23-5.57 18.8-3.65 23.67c1.29 3.28 6.19 9.05 11.85 17.05a130.91 130.91 0 0 0 48-28.94c-8.87-9.55-19.31-20.38-19.87-21.12 9.73-11.73 15.92-18.83 27.47-17.73z"})),Xp||(Xp=d.createElement("path",{fill:"#006531",d:"M150.14 131.06c-3.25-1.48-3.86-.12-7.4.48s-18.86-1.18-23.91.81c-9.9 3.91-14 11.82-16 20.27s.54 19.16 1.72 25.95-3.39 53.18-3.09 59.38 20.2 11.57 22.27.35 15.33-65.3 15.33-65.3 14.33-40.46 11.08-41.94z"})),em||(em=d.createElement("path",{fill:"#b498c6",d:"M49 177.58c26.5 32.94 70.46 51.81 71.35 58.6s-3.84 13.34-8.87 16.29-30.71-3.4-45.77-22.47c-15.55-19.67-28.56-37.13-28.56-37.13s5.68-8.18 11.85-15.29z"})),tm||(tm=d.createElement("path",{fill:"#006531",d:"M132.36 152.53c-4.21 2.95-21 27.42-26.52 32-4.18 3.48-14.36 15.36-15.25 23.63s6.39 19.91 16 25.4c5.24 3 23.88-5.3 25.65-13.27s4.32-70.72.12-67.76z"})),sm||(sm=d.createElement("path",{fill:"#006531",d:"M192.67 244.07c2.37-5 23.4-14.36 30.79-49.21s-17-59.44-40.37-63-46.49-1.86-52.71 6.74c-6.63 9.2-16.77 29.65-23.64 51.22 15.28-14.48 30.08-20.49 39.86-32.18-.3 1.55 8.49 23.45 11.81 28.36 4.15 6.13 14.16 17.89 20.38 31-10.34-1.92-21.49-1.6-31.9 2.41-2.66 6.3-2.07 16.93-.88 22.84-2.28 17.87-2.12 33.54.46 48.85 4.06.37 8.17.58 12.32.58a131.19 131.19 0 0 0 42.08-6.9c-5.66-8-10.56-13.77-11.85-17-1.92-4.91 1.29-18.69 3.65-23.71zM112.56 231c-.27-7.26-.22-8.8.78-20.95-2.89-1.6-6.55-4.57-10.46-6.48a114.5 114.5 0 0 0-3.54 25.72c-.59 12.4 2.59 15.06 3.54 20.08S99 263.58 97.52 268.9c-.45 1.6-1.1 3.85-1.81 6.64a127.06 127.06 0 0 0 13.85 6.58c-1.44-18.61-1.04-36.3 3-51.12z"})),rm||(rm=d.createElement("path",{fill:"#b498c6",d:"M269.55 230.83C262.43 223 256.47 217 256.47 217c-11.55-1.11-17.74 6-27.47 17.72.56.74 11 11.57 19.88 21.12a132.58 132.58 0 0 0 20.67-25.01z"})),nm||(nm=d.createElement("path",{fill:"#89bc3b",d:"M95.79 201.78a14.88 14.88 0 0 1 7.09 1.77c1.1-4.56 2.4-9.17 3.86-13.73a113.74 113.74 0 0 0-10.95 11.96z"})),am||(am=d.createElement("path",{fill:"#89bc3b",d:"M112.56 231c-4 14.84-4.44 32.53-3 51.14a130.52 130.52 0 0 0 36.91 9c-2.58-15.31-2.74-31-.46-48.85-1.19-5.91-1.78-16.54.88-22.84 10.41-4 21.56-4.33 31.9-2.41-6.22-13.12-16.23-24.88-20.38-31-3.32-4.91-12.11-26.81-11.81-28.36-9.78 11.69-24.58 17.7-39.86 32.18-1.46 4.56-2.76 9.17-3.86 13.73 3.91 1.91 7.57 4.88 10.46 6.48-1 12.11-1.05 13.65-.78 20.93z"})),om||(om=d.createElement("path",{fill:"#b498c6",d:"M35.85 151.6s2.66 3.18 4.43 5.55 4.66 16 8.68 20.43-7 12.22-7 12.22c-12-.92-23-13.34-21-28.7 0 0 3.25-4.73 3.84-6.5s-.18-5-.18-5a34.85 34.85 0 0 1-4.29-6.21c-1.21-2.65-.84-6.46.37-9.18s4.56-2.56 4.68-1.89c.31 1.74 2 8.86 1.86 8.6-.87-2.01 2.67 2.19 8.61 10.68z"})),im||(im=d.createElement("path",{fill:"#b498c6",d:"M32.13 155.37c-12 4.78-18.36 1.3-24.56 4.84s1.22 17.61 1.22 17.61 1.84 6.8 5.39 11.23 24.27 4.41 24.27 4.41l10.15-13.52z"})),lm||(lm=d.createElement("path",{fill:"#b498c6",d:"M28.47 184.32c-.59.89-5.5 6.45-8.45 7.45s-6.34-.66-6.34-.66c-3.64-1.42-4.81-3.6-3.07-6.2 0 0 10.29-.52 7.34.18s7.57-4.31 7.57-4.31c1.96.66 3.09 1.77 2.95 3.54z"})),cm||(cm=d.createElement("path",{fill:"#8b6c9c",d:"M25.52 180.78c7.47.85-3.24 16.33-11.84 10.33 5.39 1.3 7.32.21 10.71-3.07 2.5-2.49 3.06-2.79 2.42-5.24a2.59 2.59 0 0 0-1.29-2.02z"})),dm||(dm=d.createElement("path",{fill:"#b498c6",d:"M5.48 176.94c-2.11 2.55-1.17 5.19 4.13 8l8.39 1.15 8.57-5.31a8.67 8.67 0 0 0-.89-6.8l-10.34 3.25z"})),um||(um=d.createElement("path",{fill:"#8b6c9c",d:"M9.61 184.91c7.51.44 7.78 1.78 12.14-.95 5-3.14 5.69-4.17 3.88-10 4.06 5.07 1.3 7.9-3.35 10.83-3.09 1.94-6.79 2.92-12.67.12z"})),pm||(pm=d.createElement("path",{fill:"#b498c6",d:"M1.34 168.67c-3.06 1.58-.35 9.08 2.77 9l11.18-.41s9.12-2 10.34-3.25c1.81-1.8-.57-7.7-1.48-7.38l-10.93 3z"})),mm||(mm=d.createElement("path",{fill:"#8b6c9c",d:"M4.11 177.64c11.75.39 10.61 4.06 19.09-3.93 1.37-1.34-.15-7.07-1.05-7.11 1.23-.32 4.11 5.64 1.75 7.82-5.45 5.13-8.43 7.58-19.79 3.22z"})),hm||(hm=d.createElement("path",{fill:"#b498c6",d:"M4.59 159.81c-2.79.54-3.52 2-3.54 5.43s-.94 2.44 1.29 3.43 13.88.88 13.88.88l7.93-3c.73-2.37.66-4.59-1.18-6.5l-9.4-.89a69.28 69.28 0 0 0-8.98.65z"})),fm||(fm=d.createElement("path",{fill:"#8b6c9c",d:"M2.34 168.67c1.27.26 12.13.39 13.88.38-.45.09-.73.24 7.76-2.92-.91 1 .41-.43.05-2.9-.51-3.6-2.16-2.54-5.81-3.09-4.5-.9-9.43-1.88 4.8-.54.53.05 3 2.56 1.61 7.14-.11.36.83-.09-8.31 3.31-3.68.02-10.94.14-13.98-1.38z"})),ym||(ym=d.createElement("path",{fill:"#006531",d:"M197.4 137.56c4.72.88 31.31 19.79 39.83 35.92 3.33 6.31 6 21.38 8.9 27.58s13.59 18.31 14.48 19.79c-17.13 2.66-27.18 19.2-27.18 19.2-4-3.26-43.16-44.31-44-46.38-3.25-7.97 3.24-57 7.97-56.11z"})),gm||(gm=d.createElement("path",{fill:"#006531",d:"M195.4 110.09c-1.55 13 2 27.47 2 27.47s-44.31 21.26-50.8 20.08-3-24.33-3-24.33-.88-13.29 1.48-17.13 4.75-9.93 13-11.11 38.1-1.57 37.32 5.02z"})),vm||(vm=d.createElement("path",{fill:"#b498c6",d:"M147.3 154.39s11.48-21.63 15-24.29 18.72-8.83 22.56-10 3.84-5.31 5-8.56 1.48-29.79 1.48-29.79l-45.29 2 4.73 39.81c.36 12.52-4.85 19.83-3.48 30.83z"})),bm||(bm=d.createElement("path",{fill:"#89bc3b",d:"M195.45 138.74s27.35 19.2 39.05 36.26c2.65 3.85 4.84 20.79 7.2 25.81s10.05 15.07 10.05 15.07l5.31.29 3.55 4.73c-9.41 1.64-18.27 9.31-27.18 19.2l-6.49-5.62c5.46-7.09 11.49-13 18.9-15.94 0 0-7.68-12.11-9.75-16.54s-4.52-21.19-7.2-26.41c-9-17.6-39.06-34.73-39.06-34.73z"})),xm||(xm=d.createElement("path",{fill:"#093f22",d:"m192.38 197.7 21.02 21.79-2.66 5.31-15.36 5.61 11.88-10.33-14.88-22.38zm-71.73-50.53 1.55 13.29a79.66 79.66 0 0 1-7.31 11.54c-4.43 5.76-8.76 11.31-8.76 11.31L114 156l-.44 12z"})),wm||(wm=d.createElement("path",{fill:"#8b6c9c",d:"M191.38 81.73s1.91 5.52-1.07 17.09c-2.07 8-25.57 30.6-35 28.17-6-1.54-6-11.85-7.27-16.31L145 83.8z"})),Em||(Em=d.createElement("path",{fill:"#b498c6",d:"M172.22 6.3c-20-2.46-38.74 14.76-40.58 16.91-1.16 1.35-4.27 8.05-6.64 14.45 13.42-5 36.89-.82 67.51 9.88 1 6.7.06 12.11-.92 19.63 0 0-8.61 4.69-16 4.69s-16.29-2.46-18.45-5.23-8-9.63-13.77-10-11.37 5.87-13.89 6.59c-1.75.5-8 3-10.15 5.15v-.08a15.41 15.41 0 0 0-1.18 6.5c.8 8.65 6.53 18.51 8.69 21.59s2.72 9.45 6.41 14.07c3.13 3.91 15.33 3.46 20 2.1 7-2 29.38-9.37 32.77-14S198.23 70 198.23 70s12.4-8.23 13-14.69c2.12-22.13-11.91-45.67-39.01-49.01z"})),Sm||(Sm=d.createElement("path",{fill:"#006531",d:"M192.2 87.46c21.23 1.16 34.39 0 35.92-9.22s1.16-64.85-52.19-76.38c-50.56-10.93-60.49 29.65-61.72 37s7.59 8.91 7.59 8.91c-.61-3.09 1.55-2.73 3.19-10.14 15.18-3.18 61.91 7.92 64.68 12.84s-.54 12.68-.24 16.06 7.69 6.47 7.69 6.47z"})),_m||(_m=d.createElement("path",{fill:"#093f22",d:"M225.1 81.93c1.13-4.56-4.46-9.51-15.07-14.76l-5.22 5.23-4.92 15.37c12.11.23 23.63.05 25.21-5.84z"})),jm||(jm=d.createElement("path",{fill:"#b498c6",d:"M207 73.61c3.69 3.07 3.93 10.55 1.78 14.54s-14.78 8.49-17.21 7.57-4.92-3.88-4.92-3.88l10.45-18.62a12.33 12.33 0 0 1 4.49.11c.31 0 2.8-1 3.11-.91a6.32 6.32 0 0 1 2.3 1.19z"})),Cm||(Cm=d.createElement("path",{fill:"#191a1a",d:"M192.2 69s-19.69 37.82-22.44 39c.82.16 5.58-1.59 7.38-2.46s20-32.59 20-32.59z"})),km||(km=d.createElement("path",{fill:"#093f22",d:"m186.03 79.26 5.37 4.21-4.21 7.53-5.93-3.32 4.77-8.42z"})),Rm||(Rm=d.createElement("path",{fill:"#fcee21",d:"M122.11 47.5a54.43 54.43 0 0 1 2.89-9.84c-4.93 9.91-10.22 24.17-5.7 30.66a35.07 35.07 0 0 1 5.58-8.22s-3.7-6.1-2.77-12.6z"})),Pm||(Pm=d.createElement("path",{fill:"#fbb03b",d:"M129.49 65.25c2.72-.78 8.83-7.61 14.37-6.38s11.14 8 13.29 10.76 11.07 5.23 18.45 5.23 16-7.69 16-7.69c1-7.52 1.93-12.93.92-19.63-30.62-10.7-54.09-14.89-67.52-9.88a54.43 54.43 0 0 0-2.89 9.84c-.93 6.45 2.76 12.6 2.76 12.6a35.07 35.07 0 0 0-5.58 8.22v.08c2.2-2.15 6.93-2.21 10.2-3.15z"})),Om||(Om=d.createElement("path",{fill:"#4b3f51",d:"M164.1 84.58s-10-6.68-19.87-7.87c-1.84-.22-2.48.64-3.69.59-1.78-.07-2.9-.67-4.28-.74-4.79-.22-5.77 2.37-5.77 2.37a4.35 4.35 0 0 0 1.93 4.43c1.77 1 2.51-1.11 3.32 1.77 17.72-1.66 22.26-.59 28.36-.55z"})),Nm||(Nm=d.createElement("path",{fill:"#8b6c9c",d:"M135.67 85c0 2.77-5.87 11.68 5.81 12.3 12.65.7 19.82-9.23 22.52-12.67-9.76-.11-19.34-2.38-28.33.37z"})),Tm||(Tm=d.createElement("path",{fill:"#f2f2f2",d:"M136.67 81.48c-.95 1.52-.25 7.58 4.61 8.3 7.75 1 16.17-1.77 22-5.22-9.55-1.06-11.88-2.62-16.38-3.49-2.54-.48-9.09-1.42-10.23.41z"})),Mm||(Mm=d.createElement("path",{fill:"#fcee21",d:"M124.87 60.1a20.07 20.07 0 0 0 12-.61s-2.15-7.92-6.76-7.61-5.24 8.22-5.24 8.22z"})),Lm||(Lm=d.createElement("path",{fill:"#f15a24",d:"M136.81 59.5c-3.13-10.48-10.72-10.06-11.88.6-1.93-.14-1.38-9.34 4.35-9.94 6.86-.67 8.23 9.15 7.53 9.34zm1.59-18.77c1.26.46.58 3.28-.69 3.38s-7.64-.52-9.45.31-5.08 4.17-6.25 6.08c.21-1.54 3.68-7.57 5-8.85s10.14-1.38 11.39-.92z"})),Am||(Am=d.createElement("path",{fill:"#8b6c9c",stroke:"#8b6c9c",strokeMiterlimit:10,d:"M150.7 66.25c.48 1.6 1 3.41-.85 4.33s-4-2.41-5.53-2.1-4 2.24-5.61 1.77c-3.34-1-3.69-2.69-3.69-2.69s-1.12 4.2 4.3 4.84c3.68.43 5.35-2.06 8.42-1.45s2.09 2.8 3.57 2.06c2.97-1.47.98-6.44-.61-6.76z"})),Im||(Im=d.createElement("path",{fill:"#8b6c9c",d:"M154.79 69.68c2.27 1.94 3.94 10 11.63 10.35 1.28 2-.13 5.41-1.89 9.58a20.53 20.53 0 0 0 7.07-12.91c-11.05.3-13.26-5.8-16.81-7.02zm-18.22.44s-2.47-.4-2.47.87a.37.37 0 0 1-.16.3.38.38 0 0 1-.34.06c-2.4-.79-1.79-4.72-.07-5.86-1.72 4.02 3.04 4.63 3.04 4.63z"})),Dm||(Dm=d.createElement("path",{fill:"#8b6c9c",d:"M132.48 68.63c-2 2.71-2.16 7-2 10.24 0 0-1-1.86-2-1.79s-.71 5.3.79 9a31 31 0 0 1-6-15.73c2.67 1.07 6 .5 9.27-3.38z"})),Fm||(Fm=d.createElement("ellipse",{cx:139.18,cy:184.17,fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,rx:8.75,ry:5.25,transform:"rotate(-9.22 139.183 184.166)"})),zm||(zm=d.createElement("path",{fill:"#f19018",d:"m129.81 195.84 18.24-2.09a100.85 100.85 0 0 0-14.23 16.57l8-.9a78.29 78.29 0 0 0-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 0 1-3.75-14.91 56 56 0 0 1 .51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0 1 11.94-22.65z"})),Um||(Um=d.createElement("path",{fill:"#fbb03b",stroke:"#fc3",strokeMiterlimit:10,d:"m129.81 195.84 18.24-2.09a100.85 100.85 0 0 0-14.23 16.57l8-.9a78.29 78.29 0 0 0-8.82 18.82c-3.2 9.33-2.81 18.19-3 17.84a47.74 47.74 0 0 1-3.75-14.91 56 56 0 0 1 .51-15.19c-3 .83-6 1.67-8.89 2.51a73.05 73.05 0 0 1 11.94-22.65z"})),Bm||(Bm=d.createElement("path",{fill:"#f15a24",d:"M136 56.78c1 1.52-.76 3.87-2.65 3.87s-3.66-1.26-3.66-3.1a3.38 3.38 0 0 1 3.43-3.32c1.88 0 1.51.55 2.88 2.55z"})),qm||(qm=d.createElement("path",{fill:"#8b6c9c",d:"M25 161.28c-.08 6.93 1.26 20.08 15.09 24.42 0 0-8.67 1.28-11.66-1.38s-6.92-16.88-3.43-23.04z"})),$m||($m=d.createElement("path",{fill:"#093f22",d:"m120.68 47.53 4.32-9.87c19.53-1.66 62.46 8.77 64.68 12.84s.07 13.6-.24 16.06 7.68 6.44 7.68 6.44l4.61.31s-8.3-3.07-8-7.38 3.2-16.07-1.23-18.4c-27.06-14.19-61.36-15-69.48-13.76-6.46 1-8.44 6.4-7.22 10.09.85 2.58 4.88 3.67 4.88 3.67zm47.77-26.05c-.92-2.15 18.91-8.27 30.13-7.68 6.17.32 13.26 10.33 5.91 9.45-14.77-1.77-35.11.38-36.04-1.77zM172 32.7c-.59-3 28.35-3 39.26.35 6 1.8 2.55 12.33-1.84 10.45C198 38.61 172.38 34.61 172 32.7zm-38.21-14.1L131 9.07l-6.15 6.15s8.02 4.61 8.94 3.38zm-7.07 8.61C127 26 120.57 21.06 120 22s-2.77 8.3-2.77 8.3 9.18-1.86 9.49-3.09z"})),Hm||(Hm=d.createElement("path",{fill:"#fc3",d:"M181.6 46.59c-.06 10.33-1.83 19.86-6 28.27A30.57 30.57 0 0 1 163.36 73c3.15-11.43 5.89-22.37 5.61-29.76a90 90 0 0 1 12.63 3.35z"})),Vm||(Vm=d.createElement("path",{fill:"#fcee21",d:"M172.83 62.87c-5.55.17-12.05 1.5-16.91-1.54 0 0 .7-8.22 7.15-7s9.76 8.54 9.76 8.54z"})),Wm||(Wm=d.createElement("path",{fill:"#f15a24",d:"M155 42.88c-1.24.38-.16 2.92.92 3.39s8.91 1.14 11.65 1.79 6.2 4.36 8.64 6.81c-.22-1.86-4.87-8.63-7.68-9.53s-12.29-2.83-13.53-2.46zm13.31 16.56a3.78 3.78 0 1 1-3.44-4.09 5 5 0 0 1 .56.09 4.28 4.28 0 0 1 2.88 4z"})),Zm||(Zm=d.createElement("path",{fill:"#f15a24",d:"M155.82 61.32c-2.89-12.19 15.29-11.67 17.1 1.51-.51.23-2.75-6.29-8.94-8.06-7.49-2.22-7.59 6.6-8.16 6.55z"})));function Ym(e){e.preventDefault(),window.location.href="admin.php?page=wpseo_dashboard"}function Jm(){const e=(0,c.get)(window,"wpseoScriptData.webinarIntroFirstTimeConfigUrl","https://yoa.st/webinar-intro-first-time-config");return(0,Kt.jsxs)("div",{className:"yst-flex yst-flex-row yst-justify-between yst-items-center yst--mt-4",children:[(0,Kt.jsxs)("div",{className:"yst-me-6",children:[(0,Kt.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,Kt.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,Kt.jsxs)(l.Button,{as:"a",variant:"primary",id:"button-webinar-seo-dashboard",href:e,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,Kt.jsx)(ls,{className:"yst-w-4 yst-h-4 yst-icon-rtl yst-ms-2"})]}),(0,Kt.jsx)("p",{className:"yst-mt-4",children:(0,Kt.jsx)(l.Link,{id:"link-webinar-register",href:"#",onClick:Ym,"data-hiive-event-name":"clicked_seo_dashboard",children:(0,Vt.__)("Or go to your SEO dashboard","wordpress-seo")})})]}),(0,Kt.jsx)(Km,{className:"yst-shrink-0 yst-h-28 yst-mb-24"})]})}function Qm(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(Gc.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 Xm(){const{removeAlert:e,dismissNotice:t,restoreNotice:s}=(0,r.useDispatch)(Vo),[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 Ra()({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)(sc,{...Qm(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(Gc.optimizeSeoData),w=i(Gc.siteRepresentation),E=i(Gc.socialProfiles),S=i(Gc.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),P=!("person"!==d.companyOrPerson||d.personId&&(d.personLogo||d.personLogoFallback)&&d.websiteName),O=(0,o.useCallback)((e=>u({type:"SET_COMPANY_OR_PERSON",payload:e})),[u]),N=[x,w,E,S].every(Boolean),T=[i(Gc.optimizeSeoData),i(Gc.siteRepresentation),i(Gc.socialProfiles),i(Gc.personalPreferences),N],[M,L]=(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)(N),[D,F]=(0,o.useState)(!1),[z,U]=(0,o.useState)(A&&!D);function B(){return U(!1),F(!0),!0}(0,o.useEffect)((()=>{N&&I(!0)}),[N]),(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(M+1)||"in_progress"===p?window.isStepBeingEdited=!0:window.isStepBeingEdited=!1}),[d.editedSteps,p,M]);const q=(0,o.useCallback)((e=>{(d.editedSteps.includes(M+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,M]);return(0,o.useEffect)((()=>(window.addEventListener("beforeunload",q),()=>{window.removeEventListener("beforeunload",q)})),[q]),(0,Kt.jsxs)(Zc,{setActiveStepIndex:L,activeStepIndex:M,isStepperFinished:N,children:[(0,Kt.jsxs)(Hc,{children:[(0,Kt.jsx)(Hc.Header,{name:(0,Vt.__)("SEO data optimization","wordpress-seo"),isFinished:x,children:(0,Kt.jsx)(Jc,{stepId:Gc.optimizeSeoData,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Kt.jsxs)(Hc.Content,{children:[(0,Kt.jsx)(fu,{setIndexingState:m,indexingState:p,showRunIndexationAlert:y,isStepperFinished:N}),(0,Kt.jsx)(Yc,{stepId:Gc.optimizeSeoData,additionalClasses:"yst-mt-12",beforeGo:function(){return y||"idle"!==p||"1"===window.yoastIndexingData.disabled?(F(!1),l(Gc.optimizeSeoData),!0):(g(!0),!1)},destination:A?"last":1,children:(0,Vt.__)("Continue","wordpress-seo")})]})]}),(0,Kt.jsxs)(Hc,{children:[(0,Kt.jsx)(Hc.Header,{name:(0,Vt.__)("Site representation","wordpress-seo"),isFinished:w,children:(0,Kt.jsx)(Jc,{stepId:Gc.siteRepresentation,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Kt.jsxs)(Hc.Content,{children:[(0,Kt.jsx)(zp,{onOrganizationOrPersonChange:O,dispatch:u,state:d,siteRepresentationEmpty:h}),(0,Kt.jsx)(Hc.Error,{id:"yoast-site-representation-step-error",message:d.stepErrors[Gc.siteRepresentation]||""}),(0,Kt.jsx)(ed,{stepId:Gc.siteRepresentation,stepperFinishedOnce:A,saveFunction:function(){return!h&&R||!h&&P?(f(!0),!1):h||"emptyChoice"!==d.companyOrPerson?(f("emptyChoice"===d.companyOrPerson||R||P),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 Ra()({path:"yoast/v1/configuration/site_representation",method:"POST",data:t});return await s.json}(d).then((()=>(j([]),b(Gc.siteRepresentation),l(Gc.siteRepresentation),window.wpseoFirstTimeConfigurationData={...window.wpseoFirstTimeConfigurationData,...d},C(),!0))).catch((e=>e.failures?(j(e.failures),!1):(e.message&&v(Gc.siteRepresentation,e.message),!1)))):(f(!0),!1)},setEditState:F})]})]}),(0,Kt.jsxs)(Hc,{children:[(0,Kt.jsx)(Hc.Header,{name:(0,Vt.__)("Social profiles","wordpress-seo"),isFinished:E,children:(0,Kt.jsx)(Jc,{stepId:Gc.socialProfiles,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Kt.jsxs)(Hc.Content,{children:[(0,Kt.jsx)(xc,{state:d,dispatch:u,setErrorFields:j}),(0,Kt.jsx)(Hc.Error,{id:"yoast-social-profiles-step-error",message:d.stepErrors[Gc.socialProfiles]||""}),(0,Kt.jsx)(ed,{stepId:Gc.socialProfiles,stepperFinishedOnce:A,saveFunction:function(){return"person"===d.companyOrPerson?(l(Gc.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 Ra()({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(Gc.socialProfiles),l(Gc.socialProfiles)})).then((()=>(window.wpseoFirstTimeConfigurationData.socialProfiles=d.socialProfiles,!0))).catch((e=>(e.failures&&j(e.failures),e.message&&v(Gc.socialProfiles,e.message),!1)))},setEditState:F})]})]}),(0,Kt.jsxs)(Hc,{children:[(0,Kt.jsx)(Hc.Header,{name:(0,Vt.__)("Personal preferences","wordpress-seo"),isFinished:S,children:(0,Kt.jsx)(Jc,{stepId:Gc.personalPreferences,beforeGo:B,isVisible:z,additionalClasses:"yst-ms-auto",children:(0,Vt.__)("Edit","wordpress-seo")})}),(0,Kt.jsxs)(Hc.Content,{children:[(0,Kt.jsx)(Yp,{state:d,setTracking:_}),(0,Kt.jsx)(Hc.Error,{id:"yoast-personal-preferences-step-error",message:d.stepErrors[Gc.personalPreferences]||""}),(0,Kt.jsx)(ed,{stepId:Gc.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 Ra()({path:"yoast/v1/configuration/enable_tracking",method:"POST",data:t});return await s.json}(d).then((()=>l(Gc.personalPreferences))).then((()=>(b(Gc.personalPreferences),window.wpseoFirstTimeConfigurationData.tracking=d.tracking,k(),!0))).catch((e=>(e.message&&v(Gc.personalPreferences,e.message),!1)))},setEditState:F})]})]}),(0,Kt.jsxs)(Hc,{children:[(0,Kt.jsx)(Hc.Header,{name:(0,Vt.__)("Finish configuration","wordpress-seo"),isFinished:N}),(0,Kt.jsx)(Hc.Content,{children:(0,Kt.jsx)(Jm,{})})]})]})}const eh=()=>{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:Ke({},r,{pathname:B(r.pathname,s)||r.pathname}),nextLocation:Ke({},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,Kt.jsxs)(l.Paper,{children:[(0,Kt.jsx)(Hi,{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,Kt.jsx)("div",{id:"yoast-configuration",className:"yst-p-8 yst-max-w-[715px]",children:(0,Kt.jsx)(Xm,{})})}),(0,Kt.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")})]})},th=()=>(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(l.Paper,{className:"yst-p-8 yst-grow",children:(0,Kt.jsxs)("header",{className:"yst-max-w-screen-sm",children:[(0,Kt.jsx)(l.Title,{children:(0,Vt.__)("Alert center","wordpress-seo")}),(0,Kt.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,Kt.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,Kt.jsx)(Si,{}),(0,Kt.jsx)(Ei,{})]})]}),sh="/alert-center",rh="/first-time-configuration",nh=({idSuffix:e=""})=>{const t=(0,l.useSvgAria)(),s=ji("selectPreference",[],"isPremium");return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)("header",{className:"yst-px-3 yst-mb-6 yst-space-y-6",children:(0,Kt.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,Kt.jsx)(sr,{className:"yst-w-40",...t})})}),(0,Kt.jsxs)("ul",{className:"yst-mt-1 yst-px-0.5 yst-space-y-4",children:[(0,Kt.jsx)(os,{to:"/",label:(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(zo,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Dashboard","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Kt.jsx)(os,{to:sh,label:(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(Uo,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("Alert center","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"}),(0,Kt.jsx)(os,{to:rh,label:(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsx)(Bo,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,Vt.__)("First-time configuration","wordpress-seo")]}),idSuffix:e,className:"yst-gap-3"})]})]})};nh.propTypes={idSuffix:Gt().string};const ah=()=>{const e=(0,r.useSelect)((e=>e(Vo).selectNotices()),[]);(0,o.useEffect)((()=>{!function(e){e.forEach((e=>e.originalNotice.remove()))}(e)}),[e]);const{pathname:t}=rt(),s=ji("selectAlertToggleError",[],[]),{setAlertToggleError:n}=(0,r.useDispatch)(Vo);(()=>{const e=(0,r.useSelect)((e=>e(Vo).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}`,_i(r,".plugin-count",String(e)),_i(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),_i(s,".yoast-issues-count",String(e)),_i(s,".screen-reader-text",t)})(e)}),[e])})();const a=(0,o.useCallback)((()=>{n(null)}),[n]),i=(0,r.useSelect)((e=>e(Vo).selectLinkParams()),[]),c=(0,Na.addQueryArgs)("https://yoa.st/webinar-intro-settings",i);return(0,Kt.jsxs)(Kt.Fragment,{children:[(0,Kt.jsxs)(l.SidebarNavigation,{activePath:t,children:[(0,Kt.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,Kt.jsx)(nh,{idSuffix:"-mobile"})}),(0,Kt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4",children:[(0,Kt.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,Kt.jsx)(l.SidebarNavigation.Sidebar,{children:(0,Kt.jsx)(nh,{})})}),(0,Kt.jsx)("div",{className:"yst-grow yst-max-w-page",children:(0,Kt.jsx)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0",children:(0,Kt.jsx)("main",{children:(0,Kt.jsxs)(Fo,{appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100",children:[t!==rh&&(0,Kt.jsxs)("div",{children:[Jl(Vo)&&(0,Kt.jsx)(Yl,{store:Vo,url:c,image:null}),e.length>0&&(0,Kt.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,Kt.jsx)(wi,{id:e.id||"yoast-general-page-notice-"+t,title:e.header,isDismissable:e.isDismissable,className:e.isDismissed?"yst-hidden":"",children:e.content},t)))]})]}),(0,Kt.jsx)(Et,{})]},t)})})})]})]}),(0,Kt.jsxs)(l.Notifications,{className:"yst-mx-[calc(50%-50vw)] yst-transition-all lg:yst-left-44",position:"bottom-left",children:[(0,Kt.jsx)(Ki,{}),s&&(0,Kt.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")})]})]})},oh=()=>{const e=ji("selectPreference",[],"isPremium"),t=ji("selectUpsellSettingsAsProps"),{isPromotionActive:s}=(0,r.useSelect)(Vo),n=ji("selectLink",[],"https://yoa.st/17h"),a=ji("selectLink",[],"https://yoa.st/admin-footer-upsell-woocommerce"),o=ji("selectPreference",[],"isWooCommerceActive");return e?null:(0,Kt.jsx)(Us,{premiumLink:o?a:n,premiumUpsellConfig:t,isPromotionActive:s,isWooCommerceActive:o})},ih=({contentClassName:e="",children:t})=>{const s=ji("selectPreference",[],"isPremium"),n=ji("selectLink",[],"https://yoa.st/jj"),a=ji("selectLink",[],"https://yoa.st/admin-sidebar-upsell-woocommerce"),o=ji("selectUpsellSettingsAsProps"),i=ji("selectLink",[],"https://yoa.st/3t6"),{isPromotionActive:l}=(0,r.useSelect)(Vo),c=ji("selectPreference",[],"isWooCommerceActive");return(0,Kt.jsxs)("div",{className:"yst-flex yst-gap-6 xl:yst-flex-row yst-flex-col",children:[(0,Kt.jsx)("div",{className:Ts()("yst-@container yst-flex yst-flex-grow yst-flex-col",e),children:t}),!s&&(0,Kt.jsx)("div",{className:"yst-min-w-[16rem] xl:yst-max-w-[16rem]",children:(0,Kt.jsx)("div",{className:"yst-sticky yst-top-16",children:(0,Kt.jsx)(Bs,{premiumLink:c?a:n,premiumUpsellConfig:o,academyLink:i,isPromotionActive:l,isWooCommerceActive:c})})})]})},lh=window.yoast.externals.redux;function ch({alertKey:e}){return new Promise((t=>wpseoApi.post("alerts/dismiss",{key:e},(()=>t()))))}const dh="adminNotices",uh=(0,xa.createSlice)({name:dh,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)}))}}}),ph=uh.getInitialState,mh={selectNotices:e=>(0,c.get)(e,`${dh}.notices`,[])},hh=uh.actions,fh=uh.reducer,yh="alertCenter",gh="toggleAlertVisibility",vh=(0,xa.createSlice)({name:yh,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(`${gh}/${Ws}`,((e,{payload:{id:t}})=>{vh.caseReducers.toggleAlert(e,t)})),e.addCase(`${gh}/${Zs}`,((e,{payload:{id:t}})=>{vh.caseReducers.setAlertToggleError(e,t)}))}}),bh=vh.getInitialState,xh=e=>(0,c.get)(e,`${yh}.alerts`,[]),wh=(0,xa.createSelector)([xh],(e=>e.filter((e=>!e.dismissed)))),Eh={selectActiveProblems:(0,xa.createSelector)([wh],(e=>e.filter((e=>"error"===e.type)))),selectDismissedProblems:(0,xa.createSelector)([xh],(e=>e.filter((e=>"error"===e.type&&e.dismissed)))),selectActiveNotifications:(0,xa.createSelector)([wh],(e=>e.filter((e=>"warning"===e.type)))),selectDismissedNotifications:(0,xa.createSelector)([xh],(e=>e.filter((e=>"warning"===e.type&&e.dismissed)))),selectAlertToggleError:e=>(0,c.get)(e,`${yh}.alertToggleError`,null),selectAlert:(0,xa.createSelector)([xh,(e,t)=>t],((e,t)=>e.find((e=>e.id===t)))),selectActiveAlertsCount:(0,xa.createSelector)([wh],(e=>e.length))},Sh={...vh.actions,toggleAlertStatus:function*(e,t,s=!1){yield{type:`${gh}/${Vs}`};try{return yield{type:gh,payload:{id:e,nonce:t,hidden:s}},{type:`${gh}/${Ws}`,payload:{id:e}}}catch(t){return{type:`${gh}/${Zs}`,payload:{id:e}}}}},_h={[gh]: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)(Vo).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")}},jh=vh.reducer,Ch=()=>({...(0,c.get)(window,"wpseoScriptData.preferences",{}),ajaxUrl:(0,c.get)(window,"ajaxurl","")}),kh=(0,xa.createSlice)({name:"preferences",initialState:Ch(),reducers:{}}),Rh={selectPreference:(e,t,s={})=>(0,c.get)(e,`preferences.${t}`,s),selectPreferences:e=>(0,c.get)(e,"preferences",{})};Rh.selectUpsellSettingsAsProps=(0,xa.createSelector)([e=>Rh.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 Ph=kh.actions,Oh=kh.reducer,{currentPromotions:Nh,dismissedAlerts:Th,isPremium:Mh}=lh.reducers,{isAlertDismissed:Lh,getIsPremium:Ah,isPromotionActive:Ih}=lh.selectors,{dismissAlert:Dh,setCurrentPromotions:Fh,setDismissedAlerts:zh,setIsPremium:Uh}=lh.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)(Vo,{actions:{...ja,...Ia,...Ph,...Sh,dismissAlert:Dh,setCurrentPromotions:Fh,setDismissedAlerts:zh,setIsPremium:Uh,...hh},selectors:{..._a,...Aa,...Rh,...Eh,isAlertDismissed:Lh,getIsPremium:Ah,isPromotionActive:Ih,...mh},initialState:(0,c.merge)({},{[wa]:Sa(),[Ta]:La(),preferences:Ch(),[yh]:bh(),currentPromotions:{promotions:[]},[dh]:ph()},t),reducer:(0,r.combineReducers)({[wa]:Ca,[Ta]:Da,preferences:Oh,[yh]:jh,currentPromotions:Nh,dismissedAlerts:Th,isPremium:Mh,[dh]:fh}),controls:{..._h,...e}}))({initialState:t}))})({initialState:{[wa]:(0,c.get)(window,"wpseoScriptData.adminUrl",""),[Ta]:(0,c.get)(window,"wpseoScriptData.linkParams",{}),[yh]:{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),[dh]:{resolvedNotices:[]}}});const d=(0,r.select)(Vo).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)(Vo).selectLink("https://yoa.st/dashboard-learn-more"),errorSupport:(0,r.select)(Vo).selectAdminLink("?page=wpseo_page_support"),siteKitLearnMore:(0,r.select)(Vo).selectLink("https://yoa.st/dashboard-site-kit-learn-more"),siteKitConsentLearnMore:(0,r.select)(Vo).selectLink("https://yoa.st/dashboard-site-kit-consent-learn-more")},S=(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 Fn({contentTypes:u,userName:p,features:h,endpoints:f,headers:y,links:v,siteKitConfiguration:S}),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)),{}),P={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")},O={setupWidgetDataTracker:new $n(P,j)},N=new ba(C,j,R,k,O);C.isSiteKitConnectionCompleted()&&S.isVersionSupported&&C.setSiteKitConfigurationDismissed(!0);const T=(M=jt((0,Kt.jsxs)(St,{path:"/",element:(0,Kt.jsx)(ah,{}),errorElement:(0,Kt.jsx)(Ci,{className:"yst-m-8"}),children:[(0,Kt.jsx)(St,{path:"/",element:(0,Kt.jsxs)(ih,{children:[(0,Kt.jsx)(jn,{widgetFactory:N,userName:p,features:h,links:v,sitekitFeatureEnabled:S.isFeatureEnabled,dataProvider:C}),(0,Kt.jsx)(oh,{})]}),errorElement:(0,Kt.jsx)(Ci,{})}),(0,Kt.jsx)(St,{path:sh,element:(0,Kt.jsxs)(ih,{children:[(0,Kt.jsx)(th,{}),(0,Kt.jsx)(oh,{})]}),errorElement:(0,Kt.jsx)(Ci,{})}),(0,Kt.jsx)(St,{path:rh,element:(0,Kt.jsx)(eh,{}),errorElement:(0,Kt.jsx)(Ci,{})}),(0,Kt.jsx)(St,{path:"*",element:(0,Kt.jsx)(wt,{to:"/",replace:!0})})]})),de({basename:void 0,future:kt({},void 0,{v7_prependBasename:!0}),history:(L={window:void 0},void 0===L&&(L={}),E((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)+")")}),L)),hydrationData:Pt(),routes:M,mapRouteProperties:Ct,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var M,L;(0,o.createRoot)(a).render((0,Kt.jsx)(l.Root,{context:{isRtl:d},children:(0,Kt.jsx)(t.SlotFillProvider,{children:(0,Kt.jsx)(Dt,{router:T})})}))}))})()})();

Youez - 2016 - github.com/yon3zu
LinuXploit