Your IP : 216.73.216.196
(()=>{var e={347:e=>{"use strict";var t=Array.isArray,r=Object.keys,n=Object.prototype.hasOwnProperty,a="undefined"!=typeof Element;function s(e,i){if(e===i)return!0;if(e&&i&&"object"==typeof e&&"object"==typeof i){var o,l,c,u=t(e),d=t(i);if(u&&d){if((l=e.length)!=i.length)return!1;for(o=l;0!=o--;)if(!s(e[o],i[o]))return!1;return!0}if(u!=d)return!1;var p=e instanceof Date,m=i instanceof Date;if(p!=m)return!1;if(p&&m)return e.getTime()==i.getTime();var f=e instanceof RegExp,h=i instanceof RegExp;if(f!=h)return!1;if(f&&h)return e.toString()==i.toString();var y=r(e);if((l=y.length)!==r(i).length)return!1;for(o=l;0!=o--;)if(!n.call(i,y[o]))return!1;if(a&&e instanceof Element&&i instanceof Element)return e===i;for(o=l;0!=o--;)if(!("_owner"===(c=y[o])&&e.$$typeof||s(e[c],i[c])))return!1;return!0}return e!=e&&i!=i}e.exports=function(e,t){try{return s(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i)||-2146828260===e.number)return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}},396:(e,t,r)=>{"use strict";var n=r(261),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function l(e){return n.isMemo(e)?i:o[e.$$typeof]||a}o[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[n.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(f){var a=m(r);a&&a!==f&&e(t,a,n)}var i=u(r);d&&(i=i.concat(d(r)));for(var o=l(t),h=l(r),y=0;y<i.length;++y){var v=i[y];if(!(s[v]||n&&n[v]||h&&h[v]||o&&o[v])){var g=p(r,v);try{c(t,v,g)}catch(e){}}}}return t}},318:e=>{"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,a=/^\d/,s=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,o=new t(512),l=new t(512),c=new t(512);function u(e){return o.get(e)||o.set(e,d(e).map((function(e){return e.replace(i,"$2")})))}function d(e){return e.match(r)||[""]}function p(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function m(e){return!p(e)&&(function(e){return e.match(a)&&!e.match(n)}(e)||function(e){return s.test(e)}(e))}e.exports={Cache:t,split:d,normalizePath:u,setter:function(e){var t=u(e);return l.get(e)||l.set(e,(function(e,r){for(var n=0,a=t.length,s=e;n<a-1;){var i=t[n];if("__proto__"===i||"constructor"===i||"prototype"===i)return e;s=s[t[n++]]}s[t[n]]=r}))},getter:function(e,t){var r=u(e);return c.get(e)||c.set(e,(function(e){for(var n=0,a=r.length;n<a;){if(null==e&&t)return;e=e[r[n++]]}return e}))},join:function(e){return e.reduce((function(e,t){return e+(p(t)||n.test(t)?"["+t+"]":(e?".":"")+t)}),"")},forEach:function(e,t,r){!function(e,t,r){var n,a,s,i,o=e.length;for(a=0;a<o;a++)(n=e[a])&&(m(n)&&(n='"'+n+'"'),s=!(i=p(n))&&/^\d+$/.test(n),t.call(r,n,i,s,a,e))}(Array.isArray(e)?e:d(e),t,r)}}},311:e=>{for(var t=[],r=0;r<256;++r)t[r]=(r+256).toString(16).substr(1);e.exports=function(e,r){var n=r||0,a=t;return[a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],"-",a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]],a[e[n++]]].join("")}},766: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 r=new Uint8Array(16);e.exports=function(){return t(r),r}}else{var n=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)3&t||(e=4294967296*Math.random()),n[t]=e>>>((3&t)<<3)&255;return n}}},894:(e,t,r)=>{var n=r(766),a=r(311);e.exports=function(e,t,r){var s=t&&r||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var i=(e=e||{}).random||(e.rng||n)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,t)for(var o=0;o<16;++o)t[s+o]=i[o];return t||a(i)}},505:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,s=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,o=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,f=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,b=r?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case s:case o:case i:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case h:case l:return e;default:return t}}case a:return t}}}function _(e){return E(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=s,t.Lazy=y,t.Memo=h,t.Portal=a,t.Profiler=o,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return _(e)||E(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===s},t.isLazy=function(e){return E(e)===y},t.isMemo=function(e){return E(e)===h},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===o},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===d||e===o||e===i||e===m||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===g||e.$$typeof===w||e.$$typeof===b||e.$$typeof===v)},t.typeOf=E},261:(e,t,r)=>{"use strict";e.exports=r(505)},391:e=>{function t(e,t){var r=e.length,n=new Array(r),a={},s=r,i=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++){var a=e[r];t.has(a[0])||t.set(a[0],new Set),t.has(a[1])||t.set(a[1],new Set),t.get(a[0]).add(a[1])}return t}(t),o=function(e){for(var t=new Map,r=0,n=e.length;r<n;r++)t.set(e[r],r);return t}(e);for(t.forEach((function(e){if(!o.has(e[0])||!o.has(e[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));s--;)a[s]||l(e[s],s,new Set);return n;function l(e,t,s){if(s.has(e)){var c;try{c=", node was:"+JSON.stringify(e)}catch(e){c=""}throw new Error("Cyclic dependency"+c)}if(!o.has(e))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(e));if(!a[t]){a[t]=!0;var u=i.get(e)||new Set;if(t=(u=Array.from(u)).length){s.add(e);do{var d=u[--t];l(d,o.get(d),s)}while(t);s.delete(e)}n[--r]=e}}}e.exports=function(e){return t(function(e){for(var t=new Set,r=0,n=e.length;r<n;r++){var a=e[r];t.add(a[0]),t.add(a[1])}return Array.from(t)}(e),e)},e.exports.array=t}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";const e=window.React;var t=r.n(e);const n=window.wp.data,a=window.wp.domReady;var s=r.n(a);const i=window.wp.element,o=window.yoast.uiLibrary,l=window.lodash,c=window.yoast.reduxJsToolkit,u="adminUrl",d=(0,c.createSlice)({name:u,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),p=(d.getInitialState,{selectAdminUrl:e=>(0,l.get)(e,u,"")});p.selectAdminLink=(0,c.createSelector)([p.selectAdminUrl,(e,t)=>t],((e,t)=>{try{return new URL(t,e).href}catch(t){return e}})),d.actions,d.reducer;const m="pluginUrl",f=(0,c.createSlice)({name:m,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),h=(f.getInitialState,{selectPluginUrl:e=>(0,l.get)(e,m,"")});h.selectImageLink=(0,c.createSelector)([h.selectPluginUrl,(e,t,r="assets/images")=>r,(e,t)=>t],((e,t,r)=>[(0,l.trimEnd)(e,"/"),(0,l.trim)(t,"/"),(0,l.trimStart)(r,"/")].join("/"))),f.actions,f.reducer;const y=window.wp.url,v="linkParams",g=(0,c.createSlice)({name:v,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),w=g.getInitialState,b={selectLinkParam:(e,t,r={})=>(0,l.get)(e,`${v}.${t}`,r),selectLinkParams:e=>(0,l.get)(e,v,{})};b.selectLink=(0,c.createSelector)([b.selectLinkParams,(e,t)=>t],((e,t)=>(0,y.addQueryArgs)(t,e)));const E=g.actions,_=g.reducer,S=window.wp.apiFetch;var x=r.n(S);const F="request",R="success",T="error",C="idle",k="loading",O="success",$="error",A="wistiaEmbedPermission",P=(0,c.createSlice)({name:A,initialState:{value:!1,status:C,error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${A}/${F}`,(e=>{e.status=k})),e.addCase(`${A}/${R}`,((e,{payload:t})=>{e.status=O,e.value=Boolean(t&&t.value)})),e.addCase(`${A}/${T}`,((e,{payload:t})=>{e.status=$,e.value=Boolean(t&&t.value),e.error={code:(0,l.get)(t,"error.code",500),message:(0,l.get)(t,"error.message","Unknown")}}))}}),D=(P.getInitialState,P.actions,P.reducer,"notifications"),N=(0,c.createSlice)({name:D,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:r="default",title:n,description:a})=>({payload:{id:e||(0,c.nanoid)(),variant:t,size:r,title:n||"",description:a}})},removeNotification:(e,{payload:t})=>(0,l.omit)(e,t)}}),M=N.getInitialState,j={selectNotifications:e=>(0,l.get)(e,D,{}),selectNotification:(e,t)=>(0,l.get)(e,[D,t],null)},L=N.actions,I=N.reducer;var U;const B="documentTitle",V=(0,c.createSlice)({name:B,initialState:(0,l.defaultTo)(null===(U=document)||void 0===U?void 0:U.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),z=V.getInitialState,H={selectDocumentTitle:e=>(0,l.get)(e,B,""),selectDocumentFullTitle:(e,{prefix:t=""}={})=>{const r=(0,l.get)(e,B,"");return r.startsWith(t)?r:`${t} ‹ ${r}`}},q=V.actions,W=V.reducer,G=window.wp.components,Y=window.ReactDOM;function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},J.apply(this,arguments)}var K;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(K||(K={}));const Z="popstate";function Q(e,t){if(!1===e||null==e)throw new Error(t)}function X(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function ee(e,t){return{usr:e.state,key:e.key,idx:t}}function te(e,t,r,n){return void 0===r&&(r=null),J({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?ne(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function re(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function ne(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}var ae;function se(e,t,r){return void 0===r&&(r="/"),function(e,t,r,n){let a=we(("string"==typeof t?ne(t):t).pathname||"/",r);if(null==a)return null;let s=ie(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(s);let i=null;for(let e=0;null==i&&e<s.length;++e){let t=ge(a);i=ye(s[e],t,n)}return i}(e,t,r,!1)}function ie(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,s)=>{let i={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(Q(i.relativePath.startsWith(n),'Absolute route path "'+i.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(n.length));let o=Se([n,i.relativePath]),l=r.concat(i);e.children&&e.children.length>0&&(Q(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+o+'".'),ie(e.children,t,l,o)),(null!=e.path||e.index)&&t.push({path:o,score:he(o,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of oe(e.path))a(e,t,r);else a(e,t)})),t}function oe(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,a=r.endsWith("?"),s=r.replace(/\?$/,"");if(0===n.length)return a?[s,""]:[s];let i=oe(n.join("/")),o=[];return o.push(...i.map((e=>""===e?s:[s,e].join("/")))),a&&o.push(...i),o.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(ae||(ae={})),new Set(["lazy","caseSensitive","path","id","index","children"]);const le=/^:[\w-]+$/,ce=3,ue=2,de=1,pe=10,me=-2,fe=e=>"*"===e;function he(e,t){let r=e.split("/"),n=r.length;return r.some(fe)&&(n+=me),t&&(n+=ue),r.filter((e=>!fe(e))).reduce(((e,t)=>e+(le.test(t)?ce:""===t?de:pe)),n)}function ye(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},s="/",i=[];for(let e=0;e<n.length;++e){let o=n[e],l=e===n.length-1,c="/"===s?t:t.slice(s.length)||"/",u=ve({path:o.relativePath,caseSensitive:o.caseSensitive,end:l},c),d=o.route;if(!u&&l&&r&&!n[n.length-1].route.index&&(u=ve({path:o.relativePath,caseSensitive:o.caseSensitive,end:!1},c)),!u)return null;Object.assign(a,u.params),i.push({params:a,pathname:Se([s,u.pathname]),pathnameBase:xe(Se([s,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(s=Se([s,u.pathnameBase]))}return i}function ve(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!0),X("*"===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 n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")));return e.endsWith("*")?(n.push({paramName:"*"}),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),a=t.match(r);if(!a)return null;let s=a[0],i=s.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:n.reduce(((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=o[r]||"";i=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=o[r];return e[n]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:s,pathnameBase:i,pattern:e}}function ge(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return X(!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 we(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function be(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function Ee(e,t){let r=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?r.map(((e,t)=>t===r.length-1?e.pathname:e.pathnameBase)):r.map((e=>e.pathnameBase))}function _e(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=ne(e):(a=J({},e),Q(!a.pathname||!a.pathname.includes("?"),be("?","pathname","search",a)),Q(!a.pathname||!a.pathname.includes("#"),be("#","pathname","hash",a)),Q(!a.search||!a.search.includes("#"),be("#","search","hash",a)));let s,i=""===e||""===a.pathname,o=i?"/":a.pathname;if(null==o)s=r;else{let e=t.length-1;if(!n&&o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}s=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:a=""}="string"==typeof e?ne(e):e,s=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:s,search:Fe(n),hash:Re(a)}}(a,s),c=o&&"/"!==o&&o.endsWith("/"),u=(i||"."===o)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Se=e=>e.join("/").replace(/\/\/+/g,"/"),xe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Fe=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Re=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;const Te=["post","put","patch","delete"],Ce=(new Set(Te),["get",...Te]);function ke(){return ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ke.apply(this,arguments)}new Set(Ce),new Set([301,302,303,307,308]),new Set([307,308]),Symbol("deferred");const Oe=e.createContext(null),$e=e.createContext(null),Ae=e.createContext(null),Pe=e.createContext(null),De=e.createContext({outlet:null,matches:[],isDataRoute:!1}),Ne=e.createContext(null);function Me(){return null!=e.useContext(Pe)}function je(){return Me()||Q(!1),e.useContext(Pe).location}function Le(t){e.useContext(Ae).static||e.useLayoutEffect(t)}function Ie(){let{isDataRoute:t}=e.useContext(De);return t?function(){let{router:t}=function(t){let r=e.useContext(Oe);return r||Q(!1),r}(We.UseNavigateStable),r=Ye(Ge.UseNavigateStable),n=e.useRef(!1);return Le((()=>{n.current=!0})),e.useCallback((function(e,a){void 0===a&&(a={}),n.current&&("number"==typeof e?t.navigate(e):t.navigate(e,ke({fromRouteId:r},a)))}),[t,r])}():function(){Me()||Q(!1);let t=e.useContext(Oe),{basename:r,future:n,navigator:a}=e.useContext(Ae),{matches:s}=e.useContext(De),{pathname:i}=je(),o=JSON.stringify(Ee(s,n.v7_relativeSplatPath)),l=e.useRef(!1);return Le((()=>{l.current=!0})),e.useCallback((function(e,n){if(void 0===n&&(n={}),!l.current)return;if("number"==typeof e)return void a.go(e);let s=_e(e,JSON.parse(o),i,"path"===n.relative);null==t&&"/"!==r&&(s.pathname="/"===s.pathname?r:Se([r,s.pathname])),(n.replace?a.replace:a.push)(s,n.state,n)}),[r,a,o,i,t])}()}function Ue(t,r){let{relative:n}=void 0===r?{}:r,{future:a}=e.useContext(Ae),{matches:s}=e.useContext(De),{pathname:i}=je(),o=JSON.stringify(Ee(s,a.v7_relativeSplatPath));return e.useMemo((()=>_e(t,JSON.parse(o),i,"path"===n)),[t,o,i,n])}function Be(t,r,n,a){Me()||Q(!1);let{navigator:s}=e.useContext(Ae),{matches:i}=e.useContext(De),o=i[i.length-1],l=o?o.params:{},c=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let u,d=je();if(r){var p;let e="string"==typeof r?ne(r):r;"/"===c||(null==(p=e.pathname)?void 0:p.startsWith(c))||Q(!1),u=e}else u=d;let m=u.pathname||"/",f=m;if("/"!==c){let e=c.replace(/^\//,"").split("/");f="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=se(t,{pathname:f}),y=function(t,r,n,a){var s;if(void 0===r&&(r=[]),void 0===n&&(n=null),void 0===a&&(a=null),null==t){var i;if(!n)return null;if(n.errors)t=n.matches;else{if(!(null!=(i=a)&&i.v7_partialHydration&&0===r.length&&!n.initialized&&n.matches.length>0))return null;t=n.matches}}let o=t,l=null==(s=n)?void 0:s.errors;if(null!=l){let e=o.findIndex((e=>e.route.id&&void 0!==(null==l?void 0:l[e.route.id])));e>=0||Q(!1),o=o.slice(0,Math.min(o.length,e+1))}let c=!1,u=-1;if(n&&a&&a.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:r}=n,a=t.route.loader&&void 0===e[t.route.id]&&(!r||void 0===r[t.route.id]);if(t.route.lazy||a){c=!0,o=u>=0?o.slice(0,u+1):[o[0]];break}}}return o.reduceRight(((t,a,s)=>{let i,d=!1,p=null,m=null;var f;n&&(i=l&&a.route.id?l[a.route.id]:void 0,p=a.route.errorElement||ze,c&&(u<0&&0===s?(Ke[f="route-fallback"]||(Ke[f]=!0),d=!0,m=null):u===s&&(d=!0,m=a.route.hydrateFallbackElement||null)));let h=r.concat(o.slice(0,s+1)),y=()=>{let r;return r=i?p:d?m:a.route.Component?e.createElement(a.route.Component,null):a.route.element?a.route.element:t,e.createElement(qe,{match:a,routeContext:{outlet:t,matches:h,isDataRoute:null!=n},children:r})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===s)?e.createElement(He,{location:n.location,revalidation:n.revalidation,component:p,error:i,children:y(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):y()}),null)}(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:Se([c,s.encodeLocation?s.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:Se([c,s.encodeLocation?s.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,a);return r&&y?e.createElement(Pe.Provider,{value:{location:ke({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:K.Pop}},y):y}function Ve(){let t=Je(),r=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unexpected Application Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},r),n?e.createElement("pre",{style:a},n):null,null)}const ze=e.createElement(Ve,null);class He extends e.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?e.createElement(De.Provider,{value:this.props.routeContext},e.createElement(Ne.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function qe(t){let{routeContext:r,match:n,children:a}=t,s=e.useContext(Oe);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),e.createElement(De.Provider,{value:r},a)}var We=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(We||{}),Ge=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}(Ge||{});function Ye(t){let r=function(t){let r=e.useContext(De);return r||Q(!1),r}(),n=r.matches[r.matches.length-1];return n.route.id||Q(!1),n.route.id}function Je(){var t;let r=e.useContext(Ne),n=function(t){let r=e.useContext($e);return r||Q(!1),r}(Ge.UseRouteError),a=Ye(Ge.UseRouteError);return void 0!==r?r:null==(t=n.errors)?void 0:t[a]}const Ke={},Ze=(e,t,r)=>{};function Qe(t){let{to:r,replace:n,state:a,relative:s}=t;Me()||Q(!1);let{future:i,static:o}=e.useContext(Ae),{matches:l}=e.useContext(De),{pathname:c}=je(),u=Ie(),d=_e(r,Ee(l,i.v7_relativeSplatPath),c,"path"===s),p=JSON.stringify(d);return e.useEffect((()=>u(JSON.parse(p),{replace:n,state:a,relative:s})),[u,p,s,n,a]),null}function Xe(e){Q(!1)}function et(t){let{basename:r="/",children:n=null,location:a,navigationType:s=K.Pop,navigator:i,static:o=!1,future:l}=t;Me()&&Q(!1);let c=r.replace(/^\/*/,"/"),u=e.useMemo((()=>({basename:c,navigator:i,static:o,future:ke({v7_relativeSplatPath:!1},l)})),[c,l,i,o]);"string"==typeof a&&(a=ne(a));let{pathname:d="/",search:p="",hash:m="",state:f=null,key:h="default"}=a,y=e.useMemo((()=>{let e=we(d,c);return null==e?null:{location:{pathname:e,search:p,hash:m,state:f,key:h},navigationType:s}}),[c,d,p,m,f,h,s]);return null==y?null:e.createElement(Ae.Provider,{value:u},e.createElement(Pe.Provider,{children:n,value:y}))}function tt(e){let{children:t,location:r}=e;return Be(rt(t),r)}function rt(t,r){void 0===r&&(r=[]);let n=[];return e.Children.forEach(t,((t,a)=>{if(!e.isValidElement(t))return;let s=[...r,a];if(t.type===e.Fragment)return void n.push.apply(n,rt(t.props.children,s));t.type!==Xe&&Q(!1),t.props.index&&t.props.children&&Q(!1);let i={id:t.props.id||s.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,Component:t.props.Component,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,ErrorBoundary:t.props.ErrorBoundary,hasErrorBoundary:null!=t.props.ErrorBoundary||null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle,lazy:t.props.lazy};t.props.children&&(i.children=rt(t.props.children,s)),n.push(i)})),n}function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nt.apply(this,arguments)}e.startTransition,new Promise((()=>{})),e.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const at=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(gs){}new Map;const st=e.startTransition;function it(t){let{basename:r,children:n,future:a,window:s}=t,i=e.useRef();var o;null==i.current&&(i.current=(void 0===(o={window:s,v5Compat:!0})&&(o={}),function(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:s=!1}=n,i=a.history,o=K.Pop,l=null,c=u();function u(){return(i.state||{idx:null}).idx}function d(){o=K.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:o,location:m.location,delta:t})}function p(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:re(e);return r=r.replace(/ $/,"%20"),Q(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,i.replaceState(J({},i.state,{idx:c}),""));let m={get action(){return o},get location(){return e(a,i)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(Z,d),l=e,()=>{a.removeEventListener(Z,d),l=null}},createHref:e=>t(a,e),createURL:p,encodeLocation(e){let t=p(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){o=K.Push;let n=te(m.location,e,t);r&&r(n,e),c=u()+1;let d=ee(n,c),p=m.createHref(n);try{i.pushState(d,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(p)}s&&l&&l({action:o,location:m.location,delta:1})},replace:function(e,t){o=K.Replace;let n=te(m.location,e,t);r&&r(n,e),c=u();let a=ee(n,c),d=m.createHref(n);i.replaceState(a,"",d),s&&l&&l({action:o,location:m.location,delta:0})},go:e=>i.go(e)};return m}((function(e,t){let{pathname:r="/",search:n="",hash:a=""}=ne(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),te("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:re(t))}),(function(e,t){X("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),o)));let l=i.current,[c,u]=e.useState({action:l.action,location:l.location}),{v7_startTransition:d}=a||{},p=e.useCallback((e=>{d&&st?st((()=>u(e))):u(e)}),[u,d]);return e.useLayoutEffect((()=>l.listen(p)),[l,p]),e.useEffect((()=>{return void 0===(null==(e=a)?void 0:e.v7_startTransition)&&Ze("v7_startTransition","React Router will begin wrapping state updates in `React.startTransition` in v7","https://reactrouter.com/v6/upgrading/future#v7_starttransition"),void 0!==(null==e?void 0:e.v7_relativeSplatPath)||t&&void 0!==t.v7_relativeSplatPath||Ze("v7_relativeSplatPath","Relative route resolution within Splat routes is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath"),void(t&&(void 0===t.v7_fetcherPersist&&Ze("v7_fetcherPersist","The persistence behavior of fetchers is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist"),void 0===t.v7_normalizeFormMethod&&Ze("v7_normalizeFormMethod","Casing of `formMethod` fields is being normalized to uppercase in v7","https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod"),void 0===t.v7_partialHydration&&Ze("v7_partialHydration","`RouterProvider` hydration behavior is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_partialhydration"),void 0===t.v7_skipActionErrorRevalidation&&Ze("v7_skipActionErrorRevalidation","The revalidation behavior after 4xx/5xx `action` responses is changing in v7","https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation")));var e,t}),[a]),e.createElement(et,{basename:r,children:n,location:c.location,navigationType:c.action,navigator:l,future:a})}Y.flushSync,e.useId;const ot="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,lt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ct=e.forwardRef((function(t,r){let n,{onClick:a,relative:s,reloadDocument:i,replace:o,state:l,target:c,to:u,preventScrollReset:d,viewTransition:p}=t,m=function(e,t){if(null==e)return{};var r,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,at),{basename:f}=e.useContext(Ae),h=!1;if("string"==typeof u&<.test(u)&&(n=u,ot))try{let e=new URL(window.location.href),t=u.startsWith("//")?new URL(e.protocol+u):new URL(u),r=we(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:h=!0}catch(e){}let y=function(t,r){let{relative:n}=void 0===r?{}:r;Me()||Q(!1);let{basename:a,navigator:s}=e.useContext(Ae),{hash:i,pathname:o,search:l}=Ue(t,{relative:n}),c=o;return"/"!==a&&(c="/"===o?a:Se([a,o])),s.createHref({pathname:c,search:l,hash:i})}(u,{relative:s}),v=function(t,r){let{target:n,replace:a,state:s,preventScrollReset:i,relative:o,viewTransition:l}=void 0===r?{}:r,c=Ie(),u=je(),d=Ue(t,{relative:o});return e.useCallback((e=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(e,n)){e.preventDefault();let r=void 0!==a?a:re(u)===re(d);c(t,{replace:r,state:s,preventScrollReset:i,relative:o,viewTransition:l})}}),[u,c,d,a,s,n,t,i,o,l])}(u,{replace:o,state:l,target:c,preventScrollReset:d,relative:s,viewTransition:p});return e.createElement("a",nt({},m,{href:n||y,onClick:h||i?a:function(e){a&&a(e),e.defaultPrevented||v(e)},ref:r,target:c}))}));var ut,dt;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ut||(ut={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(dt||(dt={}));const pt=window.yoast.styledComponents,mt=window.wp.i18n;var ft=r(347),ht=r.n(ft),yt=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===vt}(e)}(e)},vt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function gt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?bt((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function wt(e,t,r){return e.concat(t).map((function(e){return gt(e,r)}))}function bt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||wt,r.isMergeableObject=r.isMergeableObject||yt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):function(e,t,r){var n={};return r.isMergeableObject(e)&&Object.keys(e).forEach((function(t){n[t]=gt(e[t],r)})),Object.keys(t).forEach((function(a){r.isMergeableObject(t[a])&&e[a]?n[a]=bt(e[a],t[a],r):n[a]=gt(t[a],r)})),n}(e,t,r):gt(t,r)}bt.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return bt(e,r,t)}),{})};const Et=bt,_t=window.lodash.isPlainObject;var St=r.n(_t);const xt=window.lodash.clone;var Ft=r.n(xt);const Rt=window.lodash.toPath;var Tt=r.n(Rt);const Ct=function(e,t){};r(396);const kt=window.lodash.cloneDeep;var Ot=r.n(kt);function $t(){return $t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$t.apply(this,arguments)}function At(e,t){if(null==e)return{};var r,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}function Pt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Dt=function(e){return Array.isArray(e)&&0===e.length},Nt=function(e){return"function"==typeof e},Mt=function(e){return null!==e&&"object"==typeof e},jt=function(e){return String(Math.floor(Number(e)))===e},Lt=function(e){return"[object String]"===Object.prototype.toString.call(e)},It=function(t){return 0===e.Children.count(t)},Ut=function(e){return Mt(e)&&Nt(e.then)};function Bt(e,t,r,n){void 0===n&&(n=0);for(var a=Tt()(t);e&&n<a.length;)e=e[a[n++]];return void 0===e?r:e}function Vt(e,t,r){for(var n=Ft()(e),a=n,s=0,i=Tt()(t);s<i.length-1;s++){var o=i[s],l=Bt(e,i.slice(0,s+1));if(l&&(Mt(l)||Array.isArray(l)))a=a[o]=Ft()(l);else{var c=i[s+1];a=a[o]=jt(c)&&Number(c)>=0?[]:{}}}return(0===s?e:a)[i[s]]===r?e:(void 0===r?delete a[i[s]]:a[i[s]]=r,0===s&&void 0===r&&delete n[i[s]],n)}function zt(e,t,r,n){void 0===r&&(r=new WeakMap),void 0===n&&(n={});for(var a=0,s=Object.keys(e);a<s.length;a++){var i=s[a],o=e[i];Mt(o)?r.get(o)||(r.set(o,!0),n[i]=Array.isArray(o)?[]:{},zt(o,t,r,n[i])):n[i]=t}return n}var Ht=(0,e.createContext)(void 0);Ht.displayName="FormikContext";var qt=Ht.Provider;function Wt(){var t=(0,e.useContext)(Ht);return t||Ct(!1),t}function Gt(e,t){switch(t.type){case"SET_VALUES":return $t({},e,{values:t.payload});case"SET_TOUCHED":return $t({},e,{touched:t.payload});case"SET_ERRORS":return ht()(e.errors,t.payload)?e:$t({},e,{errors:t.payload});case"SET_STATUS":return $t({},e,{status:t.payload});case"SET_ISSUBMITTING":return $t({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return $t({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return $t({},e,{values:Vt(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return $t({},e,{touched:Vt(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return $t({},e,{errors:Vt(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return $t({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return $t({},e,{touched:zt(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":case"SUBMIT_SUCCESS":return $t({},e,{isSubmitting:!1});default:return e}}Ht.Consumer;var Yt={},Jt={};function Kt(t){var r=t.validateOnChange,n=void 0===r||r,a=t.validateOnBlur,s=void 0===a||a,i=t.validateOnMount,o=void 0!==i&&i,l=t.isInitialValid,c=t.enableReinitialize,u=void 0!==c&&c,d=t.onSubmit,p=At(t,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),m=$t({validateOnChange:n,validateOnBlur:s,validateOnMount:o,onSubmit:d},p),f=(0,e.useRef)(m.initialValues),h=(0,e.useRef)(m.initialErrors||Yt),y=(0,e.useRef)(m.initialTouched||Jt),v=(0,e.useRef)(m.initialStatus),g=(0,e.useRef)(!1),w=(0,e.useRef)({});(0,e.useEffect)((function(){return g.current=!0,function(){g.current=!1}}),[]);var b=(0,e.useReducer)(Gt,{values:m.initialValues,errors:m.initialErrors||Yt,touched:m.initialTouched||Jt,status:m.initialStatus,isSubmitting:!1,isValidating:!1,submitCount:0}),E=b[0],_=b[1],S=(0,e.useCallback)((function(e,t){return new Promise((function(r,n){var a=m.validate(e,t);null==a?r(Yt):Ut(a)?a.then((function(e){r(e||Yt)}),(function(e){n(e)})):r(a)}))}),[m.validate]),x=(0,e.useCallback)((function(e,t){var r=m.validationSchema,n=Nt(r)?r(t):r,a=t&&n.validateAt?n.validateAt(t,e):function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n={});var a=Qt(e);return t[r?"validateSync":"validate"](a,{abortEarly:!1,context:n})}(e,n);return new Promise((function(e,t){a.then((function(){e(Yt)}),(function(r){"ValidationError"===r.name?e(function(e){var t={};if(e.inner){if(0===e.inner.length)return Vt(t,e.path,e.message);var r=e.inner,n=Array.isArray(r),a=0;for(r=n?r:r[Symbol.iterator]();;){var s;if(n){if(a>=r.length)break;s=r[a++]}else{if((a=r.next()).done)break;s=a.value}var i=s;Bt(t,i.path)||(t=Vt(t,i.path,i.message))}}return t}(r)):t(r)}))}))}),[m.validationSchema]),F=(0,e.useCallback)((function(e,t){return new Promise((function(r){return r(w.current[e].validate(t))}))}),[]),R=(0,e.useCallback)((function(e){var t=Object.keys(w.current).filter((function(e){return Nt(w.current[e].validate)})),r=t.length>0?t.map((function(t){return F(t,Bt(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(r).then((function(e){return e.reduce((function(e,r,n){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===r||r&&(e=Vt(e,t[n],r)),e}),{})}))}),[F]),T=(0,e.useCallback)((function(e){return Promise.all([R(e),m.validationSchema?x(e):{},m.validate?S(e):{}]).then((function(e){var t=e[0],r=e[1],n=e[2];return Et.all([t,r,n],{arrayMerge:Xt})}))}),[m.validate,m.validationSchema,R,S,x]),C=tr((function(e){return void 0===e&&(e=E.values),_({type:"SET_ISVALIDATING",payload:!0}),T(e).then((function(e){return g.current&&(_({type:"SET_ISVALIDATING",payload:!1}),_({type:"SET_ERRORS",payload:e})),e}))}));(0,e.useEffect)((function(){o&&!0===g.current&&ht()(f.current,m.initialValues)&&C(f.current)}),[o,C]);var k=(0,e.useCallback)((function(e){var t=e&&e.values?e.values:f.current,r=e&&e.errors?e.errors:h.current?h.current:m.initialErrors||{},n=e&&e.touched?e.touched:y.current?y.current:m.initialTouched||{},a=e&&e.status?e.status:v.current?v.current:m.initialStatus;f.current=t,h.current=r,y.current=n,v.current=a;var s=function(){_({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:r,touched:n,status:a,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"==typeof e.submitCount?e.submitCount:0}})};if(m.onReset){var i=m.onReset(E.values,Y);Ut(i)?i.then(s):s()}else s()}),[m.initialErrors,m.initialStatus,m.initialTouched]);(0,e.useEffect)((function(){!0!==g.current||ht()(f.current,m.initialValues)||(u&&(f.current=m.initialValues,k()),o&&C(f.current))}),[u,m.initialValues,k,o,C]),(0,e.useEffect)((function(){u&&!0===g.current&&!ht()(h.current,m.initialErrors)&&(h.current=m.initialErrors||Yt,_({type:"SET_ERRORS",payload:m.initialErrors||Yt}))}),[u,m.initialErrors]),(0,e.useEffect)((function(){u&&!0===g.current&&!ht()(y.current,m.initialTouched)&&(y.current=m.initialTouched||Jt,_({type:"SET_TOUCHED",payload:m.initialTouched||Jt}))}),[u,m.initialTouched]),(0,e.useEffect)((function(){u&&!0===g.current&&!ht()(v.current,m.initialStatus)&&(v.current=m.initialStatus,_({type:"SET_STATUS",payload:m.initialStatus}))}),[u,m.initialStatus,m.initialTouched]);var O=tr((function(e){if(w.current[e]&&Nt(w.current[e].validate)){var t=Bt(E.values,e),r=w.current[e].validate(t);return Ut(r)?(_({type:"SET_ISVALIDATING",payload:!0}),r.then((function(e){return e})).then((function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),_({type:"SET_ISVALIDATING",payload:!1})}))):(_({type:"SET_FIELD_ERROR",payload:{field:e,value:r}}),Promise.resolve(r))}return m.validationSchema?(_({type:"SET_ISVALIDATING",payload:!0}),x(E.values,e).then((function(e){return e})).then((function(t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),_({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),$=(0,e.useCallback)((function(e,t){var r=t.validate;w.current[e]={validate:r}}),[]),A=(0,e.useCallback)((function(e){delete w.current[e]}),[]),P=tr((function(e,t){return _({type:"SET_TOUCHED",payload:e}),(void 0===t?s:t)?C(E.values):Promise.resolve()})),D=(0,e.useCallback)((function(e){_({type:"SET_ERRORS",payload:e})}),[]),N=tr((function(e,t){var r=Nt(e)?e(E.values):e;return _({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?C(r):Promise.resolve()})),M=(0,e.useCallback)((function(e,t){_({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),j=tr((function(e,t,r){return _({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?C(Vt(E.values,e,t)):Promise.resolve()})),L=(0,e.useCallback)((function(e,t){var r,n=t,a=e;if(!Lt(e)){e.persist&&e.persist();var s=e.target?e.target:e.currentTarget,i=s.type,o=s.name,l=s.id,c=s.value,u=s.checked,d=(s.outerHTML,s.options),p=s.multiple;n=t||o||l,a=/number|range/.test(i)?(r=parseFloat(c),isNaN(r)?"":r):/checkbox/.test(i)?function(e,t,r){if("boolean"==typeof e)return Boolean(t);var n=[],a=!1,s=-1;if(Array.isArray(e))n=e,a=(s=e.indexOf(r))>=0;else if(!r||"true"==r||"false"==r)return Boolean(t);return t&&r&&!a?n.concat(r):a?n.slice(0,s).concat(n.slice(s+1)):n}(Bt(E.values,n),u,c):d&&p?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(d):c}n&&j(n,a)}),[j,E.values]),I=tr((function(e){if(Lt(e))return function(t){return L(t,e)};L(e)})),U=tr((function(e,t,r){return void 0===t&&(t=!0),_({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===r?s:r)?C(E.values):Promise.resolve()})),B=(0,e.useCallback)((function(e,t){e.persist&&e.persist();var r=e.target,n=r.name,a=r.id,s=(r.outerHTML,t||n||a);U(s,!0)}),[U]),V=tr((function(e){if(Lt(e))return function(t){return B(t,e)};B(e)})),z=(0,e.useCallback)((function(e){Nt(e)?_({type:"SET_FORMIK_STATE",payload:e}):_({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),H=(0,e.useCallback)((function(e){_({type:"SET_STATUS",payload:e})}),[]),q=(0,e.useCallback)((function(e){_({type:"SET_ISSUBMITTING",payload:e})}),[]),W=tr((function(){return _({type:"SUBMIT_ATTEMPT"}),C().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var r;try{if(void 0===(r=J()))return}catch(e){throw e}return Promise.resolve(r).then((function(e){return g.current&&_({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(g.current)throw _({type:"SUBMIT_FAILURE"}),e}))}if(g.current&&(_({type:"SUBMIT_FAILURE"}),t))throw e}))})),G=tr((function(e){e&&e.preventDefault&&Nt(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Nt(e.stopPropagation)&&e.stopPropagation(),W().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),Y={resetForm:k,validateForm:C,validateField:O,setErrors:D,setFieldError:M,setFieldTouched:U,setFieldValue:j,setStatus:H,setSubmitting:q,setTouched:P,setValues:N,setFormikState:z,submitForm:W},J=tr((function(){return d(E.values,Y)})),K=tr((function(e){e&&e.preventDefault&&Nt(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&Nt(e.stopPropagation)&&e.stopPropagation(),k()})),Z=(0,e.useCallback)((function(e){return{value:Bt(E.values,e),error:Bt(E.errors,e),touched:!!Bt(E.touched,e),initialValue:Bt(f.current,e),initialTouched:!!Bt(y.current,e),initialError:Bt(h.current,e)}}),[E.errors,E.touched,E.values]),Q=(0,e.useCallback)((function(e){return{setValue:function(t,r){return j(e,t,r)},setTouched:function(t,r){return U(e,t,r)},setError:function(t){return M(e,t)}}}),[j,U,M]),X=(0,e.useCallback)((function(e){var t=Mt(e),r=t?e.name:e,n=Bt(E.values,r),a={name:r,value:n,onChange:I,onBlur:V};if(t){var s=e.type,i=e.value,o=e.as,l=e.multiple;"checkbox"===s?void 0===i?a.checked=!!n:(a.checked=!(!Array.isArray(n)||!~n.indexOf(i)),a.value=i):"radio"===s?(a.checked=n===i,a.value=i):"select"===o&&l&&(a.value=a.value||[],a.multiple=!0)}return a}),[V,I,E.values]),ee=(0,e.useMemo)((function(){return!ht()(f.current,E.values)}),[f.current,E.values]),te=(0,e.useMemo)((function(){return void 0!==l?ee?E.errors&&0===Object.keys(E.errors).length:!1!==l&&Nt(l)?l(m):l:E.errors&&0===Object.keys(E.errors).length}),[l,ee,E.errors,m]);return $t({},E,{initialValues:f.current,initialErrors:h.current,initialTouched:y.current,initialStatus:v.current,handleBlur:V,handleChange:I,handleReset:K,handleSubmit:G,resetForm:k,setErrors:D,setFormikState:z,setFieldTouched:U,setFieldValue:j,setFieldError:M,setStatus:H,setSubmitting:q,setTouched:P,setValues:N,submitForm:W,validateForm:C,validateField:O,isValid:te,dirty:ee,unregisterField:A,registerField:$,getFieldProps:X,getFieldMeta:Z,getFieldHelpers:Q,validateOnBlur:s,validateOnChange:n,validateOnMount:o})}function Zt(t){var r=Kt(t),n=t.component,a=t.children,s=t.render,i=t.innerRef;return(0,e.useImperativeHandle)(i,(function(){return r})),(0,e.createElement)(qt,{value:r},n?(0,e.createElement)(n,r):s?s(r):a?Nt(a)?a(r):It(a)?null:e.Children.only(a):null)}function Qt(e){var t=Array.isArray(e)?[]:{};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=String(r);!0===Array.isArray(e[n])?t[n]=e[n].map((function(e){return!0===Array.isArray(e)||St()(e)?Qt(e):""!==e?e:void 0})):St()(e[n])?t[n]=Qt(e[n]):t[n]=""!==e[n]?e[n]:void 0}return t}function Xt(e,t,r){var n=e.slice();return t.forEach((function(t,a){if(void 0===n[a]){var s=!1!==r.clone&&r.isMergeableObject(t);n[a]=s?Et(Array.isArray(t)?[]:{},t,r):t}else r.isMergeableObject(t)?n[a]=Et(e[a],t,r):-1===e.indexOf(t)&&n.push(t)})),n}var er="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect;function tr(t){var r=(0,e.useRef)(t);return er((function(){r.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.current.apply(void 0,t)}),[])}function rr(t){var r=t.validate,n=t.name,a=t.render,s=t.children,i=t.as,o=t.component,l=At(t,["validate","name","render","children","as","component"]),c=At(Wt(),["validate","validationSchema"]),u=c.registerField,d=c.unregisterField;(0,e.useEffect)((function(){return u(n,{validate:r}),function(){d(n)}}),[u,d,n,r]);var p=c.getFieldProps($t({name:n},l)),m=c.getFieldMeta(n),f={field:p,form:c};if(a)return a($t({},f,{meta:m}));if(Nt(s))return s($t({},f,{meta:m}));if(o){if("string"==typeof o){var h=l.innerRef,y=At(l,["innerRef"]);return(0,e.createElement)(o,$t({ref:h},p,y),s)}return(0,e.createElement)(o,$t({field:p,form:c},l),s)}var v=i||"input";if("string"==typeof v){var g=l.innerRef,w=At(l,["innerRef"]);return(0,e.createElement)(v,$t({ref:g},p,w),s)}return(0,e.createElement)(v,$t({},p,l),s)}var nr=(0,e.forwardRef)((function(t,r){var n=t.action,a=At(t,["action"]),s=null!=n?n:"#",i=Wt(),o=i.handleReset,l=i.handleSubmit;return(0,e.createElement)("form",Object.assign({onSubmit:l,ref:r,onReset:o,action:s},a))}));nr.displayName="Form";var ar=function(e,t,r){var n=sr(e);return n.splice(t,0,r),n},sr=function(e){if(e){if(Array.isArray(e))return[].concat(e);var t=Object.keys(e).map((function(e){return parseInt(e)})).reduce((function(e,t){return t>e?t:e}),0);return Array.from($t({},e,{length:t+1}))}return[]},ir=function(t){function r(e){var r;return(r=t.call(this,e)||this).updateArrayField=function(e,t,n){var a=r.props,s=a.name;(0,a.formik.setFormikState)((function(r){var a="function"==typeof n?n:e,i="function"==typeof t?t:e,o=Vt(r.values,s,e(Bt(r.values,s))),l=n?a(Bt(r.errors,s)):void 0,c=t?i(Bt(r.touched,s)):void 0;return Dt(l)&&(l=void 0),Dt(c)&&(c=void 0),$t({},r,{values:o,errors:n?Vt(r.errors,s,l):r.errors,touched:t?Vt(r.touched,s,c):r.touched})}))},r.push=function(e){return r.updateArrayField((function(t){return[].concat(sr(t),[Ot()(e)])}),!1,!1)},r.handlePush=function(e){return function(){return r.push(e)}},r.swap=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=sr(e),a=n[t];return n[t]=n[r],n[r]=a,n}(r,e,t)}),!0,!0)},r.handleSwap=function(e,t){return function(){return r.swap(e,t)}},r.move=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=sr(e),a=n[t];return n.splice(t,1),n.splice(r,0,a),n}(r,e,t)}),!0,!0)},r.handleMove=function(e,t){return function(){return r.move(e,t)}},r.insert=function(e,t){return r.updateArrayField((function(r){return ar(r,e,t)}),(function(t){return ar(t,e,null)}),(function(t){return ar(t,e,null)}))},r.handleInsert=function(e,t){return function(){return r.insert(e,t)}},r.replace=function(e,t){return r.updateArrayField((function(r){return function(e,t,r){var n=sr(e);return n[t]=r,n}(r,e,t)}),!1,!1)},r.handleReplace=function(e,t){return function(){return r.replace(e,t)}},r.unshift=function(e){var t=-1;return r.updateArrayField((function(r){var n=r?[e].concat(r):[e];return t<0&&(t=n.length),n}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r}),(function(e){var r=e?[null].concat(e):[null];return t<0&&(t=r.length),r})),t},r.handleUnshift=function(e){return function(){return r.unshift(e)}},r.handleRemove=function(e){return function(){return r.remove(e)}},r.handlePop=function(){return function(){return r.pop()}},r.remove=r.remove.bind(Pt(r)),r.pop=r.pop.bind(Pt(r)),r}var n,a;a=t,(n=r).prototype=Object.create(a.prototype),n.prototype.constructor=n,n.__proto__=a;var s=r.prototype;return s.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!ht()(Bt(e.formik.values,e.name),Bt(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},s.remove=function(e){var t;return this.updateArrayField((function(r){var n=r?sr(r):[];return t||(t=n[e]),Nt(n.splice)&&n.splice(e,1),n}),!0,!0),t},s.pop=function(){var e;return this.updateArrayField((function(t){var r=t;return e||(e=r&&r.pop&&r.pop()),r}),!0,!0),e},s.render=function(){var t={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},r=this.props,n=r.component,a=r.render,s=r.children,i=r.name,o=$t({},t,{form:At(r.formik,["validate","validationSchema"]),name:i});return n?(0,e.createElement)(n,o):a?a(o):s?"function"==typeof s?s(o):It(s)?null:e.Children.only(s):null},r}(e.Component);ir.defaultProps={validateOnChange:!0};const or=window.yoast.propTypes;var lr,cr,ur,dr,pr,mr,fr,hr,yr,vr,gr,wr,br,Er,_r=r.n(or);const Sr=null===(lr=window.yoast)||void 0===lr||null===(cr=lr.editorModules)||void 0===cr||null===(ur=cr.components)||void 0===ur?void 0:ur.ErrorFallback,xr=null===(dr=window.yoast)||void 0===dr||null===(pr=dr.editorModules)||void 0===pr?void 0:pr.components.FieldsetLayout,Fr=null===(mr=window.yoast)||void 0===mr||null===(fr=mr.editorModules)||void 0===fr||null===(hr=fr.components)||void 0===hr?void 0:hr.SidebarLayout,Rr=null===(yr=window.yoast)||void 0===yr||null===(vr=yr.editorModules)||void 0===vr||null===(gr=vr.components)||void 0===gr?void 0:gr.UnsavedChangesModal,Tr=null===(wr=window.yoast)||void 0===wr||null===(br=wr.editorModules)||void 0===br||null===(Er=br.components)||void 0===Er?void 0:Er.YoastLogo;if(!(Sr&&xr&&Fr&&Rr&&Tr))throw new Error("Yoast editor modules are not loaded correctly. Did you forget the script dependency?");const Cr=(e,t)=>{try{return(0,i.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}},kr=({isApache:t=!1})=>t?(0,e.createElement)(e.Fragment,null,(0,e.createElement)("hr",{className:"yst-my-8"}),(0,e.createElement)(xr,{title:(0,mt.__)("Generate a separate redirect file","wordpress-seo-premium"),description:Cr((0,mt.sprintf)(/* translators: %1$s expands to `.htaccess` within a <code> tag. %2$s and %3$s expand to a opening and closing <em> tags. */ /* translators: %1$s expands to `.htaccess` within a <code> tag. %2$s and %3$s expand to a opening and closing <em> tags. */
(0,mt.__)("By default, we write the redirects to your %1$s file. Enable this if you want the redirects to be written to a separate file. %2$sOnly enable this option if you know what you are doing.%3$s","wordpress-seo-premium"),"<code/>","<em>","</em>"),{code:(0,e.createElement)(o.Code,null,".htaccess"),em:(0,e.createElement)("em",null)}),variant:"xl"},(0,e.createElement)(o.RadioGroup,{name:"separate_file"},(0,e.createElement)(rr,{as:o.Radio,type:"radio",name:"separate_file",id:"yst-input-separate_file-on",label:(0,mt.__)("Enabled","wordpress-seo-premium"),value:"on"}),(0,e.createElement)(rr,{as:o.Radio,type:"radio",name:"separate_file",id:"yst-input-separate_file-off",label:(0,mt.__)("Disabled","wordpress-seo-premium"),value:"off"})))):null;var Or;kr.propTypes={isApache:_r().bool};const $r="@yoast/redirects",Ar=[{value:301,label:(0,mt.__)("301 Moved Permanently","wordpress-seo-premium")},{value:302,label:(0,mt.__)("302 Found","wordpress-seo-premium")},{value:307,label:(0,mt.__)("307 Temporary Redirect","wordpress-seo-premium")},{value:410,label:(0,mt.__)("410 Content Deleted","wordpress-seo-premium")},{value:451,label:(0,mt.__)("451 Unavailable For Legal Reasons","wordpress-seo-premium")}],Pr=Ar.map((({value:e})=>({value:e,label:e.toString()}))),Dr=[{value:"",label:(0,mt.__)("All","wordpress-seo-premium")},{value:"delete",label:(0,mt.__)("Delete","wordpress-seo-premium")}],Nr="asc",Mr="desc",jr="plain",Lr="regex",Ir={type:null===(Or=Ar[0])||void 0===Or?void 0:Or.value,origin:"",target:"",format:jr},Ur={...Ir,format:Lr},Br="/regex-redirects",Vr="/redirect-method",zr=({hasItems:t,format:r,localBulkAction:n,handleBulkActionsChange:a,handleApplyBulkAction:s,isLoading:i})=>t?(0,e.createElement)("div",{className:"yst-flex yst-items-end yst-gap-2 yst-w-full xl:yst-w-auto xl:yst-max-w-fit"},(0,e.createElement)(o.Select,{id:`yst-bulk-actions-${r}`,name:"bulkAction",options:Dr,label:(0,mt.__)("Bulk actions","wordpress-seo-premium"),value:n,onChange:a,className:"yst-w-full xl:yst-min-w-[256px]"}),(0,e.createElement)(o.Button,{variant:"secondary",size:"large",onClick:s,isLoading:i},(0,mt.__)("Apply","wordpress-seo-premium"))):null,Hr=e.forwardRef((function(t,r){return e.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:r},t),e.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"}))})),qr=({isOpen:t,onClose:r,onConfirm:n,isLoading:a,isMulti:s=!1,focusRef:i})=>(0,e.createElement)(o.Modal,{onClose:r,position:"center",isOpen:t,initialFocus:i},(0,e.createElement)(o.Modal.Panel,{hasCloseButton:!0,ref:i},(0,e.createElement)("div",{className:"yst-flex yst-items-start yst-gap-4 yst-pb-8"},(0,e.createElement)("div",{className:"yst-py-2 yst-px-2 yst-bg-red-100 yst-rounded-full"},(0,e.createElement)(Hr,{className:"yst-h-6 yst-w-6 yst-text-red-600"})),(0,e.createElement)("div",{className:"yst-flex yst-flex-col"},(0,e.createElement)(o.Modal.Title,{as:"h2",className:"yst-text-lg"},(0,mt._n)("Delete redirect","Delete redirects",s?2:1,"wordpress-seo-premium")),(0,e.createElement)(o.Modal.Description,{className:"yst-mt-2 yst-text-sm yst-text-slate-600"},(0,mt._n)("This action cannot be undone. The redirect will be permanently deleted and users will no longer be forwarded to the destination URL.","This action cannot be undone. The redirects will be permanently deleted and users will no longer be forwarded to the destination URLs.",s?2:1,"wordpress-seo-premium")))),(0,e.createElement)("div",{className:"yst-flex yst-justify-end yst-gap-3 yst-w-full yst-mt-8"},(0,e.createElement)(o.Button,{variant:"secondary",onClick:r},(0,mt.__)("Cancel","wordpress-seo-premium")),(0,e.createElement)(o.Button,{variant:"error",onClick:n,isLoading:a,disabled:a},(0,mt.__)("Delete redirect","wordpress-seo-premium"))))),Wr=[410,451],Gr=({as:t,transformValue:r=l.identity,...n})=>{const[a,,{setTouched:s,setValue:o}]=function(t){var r=Wt(),n=r.getFieldProps,a=r.getFieldMeta,s=r.getFieldHelpers,i=r.registerField,o=r.unregisterField,l=Mt(t)?t:{name:t},c=l.name,u=l.validate;return(0,e.useEffect)((function(){return c&&i(c,{validate:u}),function(){c&&o(c)}}),[i,o,c,u]),c||Ct(!1),[n(l),a(c),s(c)]}(n),c=(0,i.useCallback)((e=>{s(!0,!1),o(r(e))}),[n.name]);return(0,e.createElement)(t,{...a,onChange:c,...n})};Gr.propTypes={as:_r().elementType.isRequired,name:_r().string.isRequired,transformValue:_r().func};const Yr=()=>(0,n.useDispatch)($r),Jr=({name:e})=>{const{touched:t,errors:r,submitCount:n}=Wt(),a=(0,i.useMemo)((()=>(0,l.get)(t,e,!1)),[t]),s=(0,i.useMemo)((()=>(0,l.get)(r,e,"")),[r]);return{isTouched:a,error:s&&n>0?s:""}},Kr=(e,t=[],...r)=>(0,n.useSelect)((t=>{var n,a;return null===(n=(a=t($r))[e])||void 0===n?void 0:n.call(a,...r)}),t),Zr=(e=jr)=>{const{fetchRedirects:t}=Yr(),r=Kr("selectAllRedirects");return(0,i.useEffect)((()=>{t(e)}),[]),r},Qr=e=>{const{setBulkAction:t,setFilterRedirectType:r,setSearchRedirects:n,setSelectedRedirects:a,toggleSelectRedirect:s,clearSelectedRedirects:o,deleteRedirectAsync:l,addNotification:c,deleteMultipleRedirectsAsync:u,setGlobalError:d}=Yr(),p=Kr("selectBulkAction"),m=Kr("selectFilterRedirectType"),f=Kr("selectSearchRedirects"),h=Kr("selectSelectedRedirects"),y=Kr("selectRedirectsStatus"),v=Zr(e),[g,w]=(0,i.useState)(!1),[b,E]=(0,i.useState)(Mr),[_,S]=(0,i.useState)(!1),x=y.fetch!==O||g,F=(0,i.useMemo)((()=>v.filter((e=>{const t=!m||e.type===m,r=!f||e.origin.includes(f)||e.target.includes(f);return t&&r}))),[v,m,f]),R=(0,i.useCallback)((()=>{E((e=>e===Nr?Mr:Nr))}),[]),T=(0,i.useMemo)((()=>[...F].sort(((e,t)=>e.type<t.type?b===Nr?-1:1:e.type>t.type?b===Nr?1:-1:0))),[F,b]),C=(0,i.useCallback)((async e=>{t(e),"delete"===e&&h.length&&S(!0)}),[h,l,o,t]),k=(0,i.useCallback)((async()=>{const e=v.filter((e=>h.includes(e.origin)));if(0!==e.length)try{w(!0),await u(e),o(),c({variant:"success",title:(0,mt.__)("Successfully deleted!","wordpress-seo-premium")})}catch(e){d(e.message)}finally{S(!1),w(!1)}}),[v,h,u,o,c,d]),$=(0,i.useCallback)((async e=>{const t=v.find((t=>t.origin===e));if(t)try{await l(t),c({variant:"success",title:(0,mt.__)("Successfully deleted!","wordpress-seo-premium")})}catch(e){d(e.message)}}),[v,l,c,d]);return{sortedRedirects:T,selectedRedirects:h,toggleSortOrder:R,sortOrder:b,onDelete:$,isLoading:x,isDeleteRedirectsLoading:g,showDeleteRedirectsModal:_,setShowDeleteRedirectsModal:S,filters:{bulkAction:p,filterRedirectType:m,searchRedirects:f},setters:{applyBulkAction:C,confirmBulkDelete:k,setFilterRedirectType:r,setSearchRedirects:n,setSelectedRedirects:a,clearSelectedRedirects:o,toggleSelectRedirect:s}}},Xr=({name:t,className:r="",...n})=>{const{isTouched:a,error:s}=Jr({name:t});return(0,e.createElement)("div",{className:"yst-w-full"},(0,e.createElement)(rr,{as:o.TextInput,name:t,className:r,...n}),a&&s&&(0,e.createElement)("p",{className:"yst-validation-message yst-validation-message--error yst-text-field__validation"},s))};Xr.propTypes={name:_r().string.isRequired,className:_r().string};const en=({redirect:t,selectedRedirects:r,onToggleSelect:n,onEdit:a})=>{const{isSubmitting:s,values:l}=Wt(),c=!Wr.includes(l.newType),u=(0,i.useCallback)((()=>{a({})}),[a]);return l.newType?(0,e.createElement)(o.Table.Row,{key:t.origin,className:"yst-cell-edit-redirect yst-bg-slate-50 yst-align-top"},(0,e.createElement)(o.Table.Cell,{className:"yst-w-4"},(0,e.createElement)(o.Checkbox,{id:`yst-checkbox-edit-row-${t.origin}`,name:`yst-checkbox-edit-row-${t.origin}`,value:r.includes(t.origin).toString(),checked:r.includes(t.origin),onChange:n,"aria-label":(0,mt.__)("Select redirects","wordpress-seo-premium"),"data-id":t.origin,className:"yst-mt-3"})),(0,e.createElement)(o.Table.Cell,{className:"yst-w-32"},(0,e.createElement)(Gr,{as:o.Select,type:"select",name:"newType",id:"yst-input-type",options:Pr,className:"yst-min-w-[83px]"})),(0,e.createElement)(o.Table.Cell,null,(0,e.createElement)(Xr,{type:"text",name:"newOrigin",id:"yst-input-origin",className:"yst-w-full"})),(0,e.createElement)(o.Table.Cell,null,(0,e.createElement)("div",{className:"\n\t\t\t\t\tyst-flex yst-flex-col xl:yst-flex-row yst-items-start yst-gap-2.5 yst-mr-2 xl:yst-mr-0\n\t\t\t\t\t"+(c?"":"yst-justify-end yst-mr-0")},c&&(0,e.createElement)(Xr,{type:"text",name:"newTarget",id:"yst-input-target",className:"yst-w-full"}),(0,e.createElement)("div",{className:"yst-flex yst-gap-2 yst-px-2 yst-shrink-0"},(0,e.createElement)(o.Button,{id:"yst-button-submit-edit-redirect",size:"large",type:"submit",isLoading:s,disabled:s},(0,mt.__)("Save","wordpress-seo-premium")),(0,e.createElement)(o.Button,{variant:"secondary",size:"large",onClick:u},(0,mt.__)("Cancel","wordpress-seo-premium")))))):null},tn=e.forwardRef((function(t,r){return e.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:r},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))})),rn=({format:t=jr})=>{const r=(0,o.useSvgAria)(),n=Kr("selectAllRedirects"),a=Kr("selectGlobalError"),s=(0,e.useRef)(null),{isDeleteRedirectsLoading:l,isLoading:c,showDeleteRedirectsModal:u,setShowDeleteRedirectsModal:d,filters:{searchRedirects:p,filterRedirectType:m},setters:{applyBulkAction:f,setFilterRedirectType:h,setSearchRedirects:y,confirmBulkDelete:v}}=Qr(t),[g,w]=(0,i.useState)(""),b=n.length>0,E=(0,i.useCallback)((e=>w(e)),[w]),_=(0,i.useCallback)((e=>h(e)),[h]),S=(0,i.useCallback)((e=>y(e.target.value)),[y]),x=(0,i.useCallback)((()=>{f(g)}),[g,f]),F=(0,i.useCallback)((()=>{d(!1)}),[d]);return c&&!l?null:(0,e.createElement)(e.Fragment,null,a&&(0,e.createElement)(o.Alert,{variant:"error",className:"yst-mb-8"},a),(0,e.createElement)("div",{className:"yst-flex yst-gap-8 yst-items-end yst-flex-col xl:yst-flex-row yst-pb-4"},b&&(0,e.createElement)("div",{className:"yst-relative yst-w-full xl:yst-max-w-[256px]"},(0,e.createElement)(tn,{className:"yst-pointer-events-none yst-absolute yst-mt-3 yst-ml-3 yst-h-4 yst-w-4 yst-text-slate-400 yst-z-10",...r}),(0,e.createElement)(o.TextInput,{id:`yst-search-redirects-${t}`,name:"searchRedirects",placeholder:(0,mt.__)("Search…","wordpress-seo-premium"),value:p,onChange:S,className:"yst-ps-9"})),(0,e.createElement)("div",{className:`yst-flex ${b?"yst-justify-end":"yst-justify-start"} yst-items-end yst-flex-col xl:yst-flex-row yst-w-full yst-gap-6`},(0,e.createElement)("div",{className:"yst-flex yst-items-end xl:yst-min-w-[256px] yst-w-full"},(0,e.createElement)(o.Select,{id:`yst-filter-redirect-type-${t}`,name:"filterRedirectType",options:[{value:"",label:(0,mt.__)("All","wordpress-seo-premium")},...Ar],className:"yst-w-64",label:(0,mt.__)("Filter Redirect type","wordpress-seo-premium"),value:m,onChange:_})),(0,e.createElement)(zr,{hasItems:b,format:t,localBulkAction:g,handleBulkActionsChange:E,handleApplyBulkAction:x,isLoading:c}),(0,e.createElement)(qr,{isOpen:u,onClose:F,onConfirm:v,isLoading:l,focusRef:s,isMulti:!0}))))},nn=e=>e?(0,mt.__)("Redirect Type","wordpress-seo-premium"):(0,mt.__)("Type","wordpress-seo-premium"),an=e=>e?(0,mt.__)("Old URL","wordpress-seo-premium"):(0,mt.__)("Regular Expression","wordpress-seo-premium"),sn=e=>e?(0,mt.__)("New URL","wordpress-seo-premium"):(0,mt.__)("URL","wordpress-seo-premium"),on=({format:t=jr,error:r=""})=>{const n=Kr("selectLink",[],"https://yoa.st/2jb"),{values:a,errors:s}=Wt(),l=s.origin||s.target||s.type,c=r&&!l,u=t===jr,d=(0,i.useMemo)((()=>Cr((0,mt.sprintf)(
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
(0,mt.__)("The redirect type is the HTTP response code sent to the browser telling the browser what type of redirect is served. %1$sLearn more about redirect types%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,e.createElement)("a",{href:n,target:"_blank",rel:"noopener noreferrer"})})),[]);return(0,e.createElement)("div",{className:"lg:yst-mt-0 lg:yst-col-span-2 yst-space-y-8"},c&&(0,e.createElement)(o.Alert,{variant:"error"},r),(0,e.createElement)("div",null,(0,e.createElement)(Gr,{as:o.SelectField,type:"select",name:"type",id:`yst-input-type-${t}`,label:nn(u),options:Ar,className:"yst-max-w-sm"}),(0,e.createElement)("div",{className:"yst-text-field__description"},d)),(0,e.createElement)(yn,{as:o.TextField,type:"text",name:"origin",id:`yst-input-origin-${t}`,label:an(u)}),!Wr.includes(a.type)&&(0,e.createElement)(yn,{as:o.TextField,type:"text",name:"target",id:`yst-input-target-${t}`,label:sn(u)}))};function ln(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){const t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function cn(e,t,r){0===t&&!r&&(null==e?void 0:e.style)&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}const un={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"};function dn(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter((e=>e)).join(" ")}const pn=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],mn=e.forwardRef(((t,r)=>{const{animateOpacity:n=!1,animationStateClasses:a={},applyInlineTransitions:s=!0,children:i,className:o="",contentClassName:l,delay:c=0,disableDisplayNone:u=!1,duration:d=500,easing:p="ease",height:m,onHeightAnimationEnd:f,onHeightAnimationStart:h,style:y,contentRef:v}=t,g=Object.assign({},t);pn.forEach((e=>{delete g[e]}));const w=(0,e.useRef)(m),b=(0,e.useRef)(null),E=(0,e.useRef)(),_=(0,e.useRef)(),S=(0,e.useRef)(Object.assign(Object.assign({},un),a)),x="undefined"!=typeof window,F=(0,e.useRef)(!(!x||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),R=F.current?0:c,T=F.current?0:d;let C=m,k="visible";"number"==typeof m?(C=m<0?0:m,k="hidden"):ln(C)&&(C="0%"===m?0:m,k="hidden");const[O,$]=(0,e.useState)(C),[A,P]=(0,e.useState)(k),[D,N]=(0,e.useState)(!1),[M,j]=(0,e.useState)(dn(S.current,m));(0,e.useEffect)((()=>{cn(b.current,O,u)}),[]),(0,e.useEffect)((()=>{if(m!==w.current&&b.current){!function(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="")}(b.current,w.current),b.current.style.overflow="hidden";const e=b.current.offsetHeight;b.current.style.overflow="";const t=T+R;let r,n,a,s="hidden";const i="auto"===w.current;"number"==typeof m?(r=m<0?0:m,n=r):ln(m)?(r="0%"===m?0:m,n=r):(r=e,n="auto",s=void 0),i&&(n=r,r=e);const o=[S.current.animating,("auto"===w.current||m<w.current)&&S.current.animatingUp,("auto"===m||m>w.current)&&S.current.animatingDown,0===n&&S.current.animatingToHeightZero,"auto"===n&&S.current.animatingToHeightAuto,"number"==typeof n&&n>0?S.current.animatingToHeightSpecific:null].filter((e=>e)).join(" "),l=dn(S.current,n);$(r),P("hidden"),N(!i),j(o),clearTimeout(_.current),clearTimeout(E.current),i?(a=!0,_.current=setTimeout((()=>{$(n),P(s),N(a),null==h||h(n)}),50),E.current=setTimeout((()=>{N(!1),j(l),cn(b.current,n,u),null==f||f(n)}),t)):(null==h||h(r),_.current=setTimeout((()=>{$(n),P(s),N(!1),j(l),"auto"!==m&&cn(b.current,r,u),null==f||f(r)}),t))}return w.current=m,()=>{clearTimeout(_.current),clearTimeout(E.current)}}),[m]);const L=Object.assign(Object.assign({},y),{height:O,overflow:A||(null==y?void 0:y.overflow)});D&&s&&(L.transition=`height ${T}ms ${p} ${R}ms`,(null==y?void 0:y.transition)&&(L.transition=`${y.transition}, ${L.transition}`),L.WebkitTransition=L.transition);const I={};n&&(I.transition=`opacity ${T}ms ${p} ${R}ms`,I.WebkitTransition=I.transition,0===O&&(I.opacity=0));const U=void 0!==g["aria-hidden"]?g["aria-hidden"]:0===m;return e.createElement("div",Object.assign({},g,{"aria-hidden":U,className:`${M} ${o}`,style:L,ref:r}),e.createElement("div",{className:l,style:I,ref:e=>{b.current=e,v&&(v.current=e)}},i))})),fn=mn,hn=({children:t,isExternalLoading:r=!1,onUndo:n})=>{const{isSubmitting:a,status:s,dirty:c,resetForm:u,initialValues:d}=Wt(),p=(0,i.useMemo)((()=>(0,l.includes)((0,l.values)(s),!0)),[s]),[m,,,f,h]=(0,o.useToggleState)(!1),y=(0,i.useCallback)((()=>{h(),n?n():u({values:d})}),[n,u,d,h]);return(0,e.createElement)(nr,{className:"yst-flex yst-flex-col yst-h-full"},(0,e.createElement)("div",{className:"yst-flex-grow yst-p-8"},t),(0,e.createElement)("footer",{className:"yst-sticky yst-bottom-0 yst-z-10"},(0,e.createElement)(fn,{easing:"ease-in-out",duration:300,height:c?"auto":0,animateOpacity:!0},(0,e.createElement)("div",{className:"yst-bg-slate-50 yst-border-slate-200 yst-border-t yst-rounded-b-lg"},(0,e.createElement)("div",{className:"yst-flex yst-align-middle yst-space-x-3 rtl:yst-space-x-reverse yst-p-8"},(0,e.createElement)(o.Button,{id:"yst-button-submit-settings",type:"submit",isLoading:a,disabled:a||r||p},(0,mt.__)("Save changes","wordpress-seo-premium")),(0,e.createElement)(o.Button,{id:"yst-button-undo-settings",variant:"secondary",disabled:!c,onClick:f},(0,mt.__)("Discard changes","wordpress-seo-premium")),(0,e.createElement)(Rr,{isOpen:m,onClose:h,title:(0,mt.__)("Discard all changes","wordpress-seo-premium"),description:(0,mt.__)("You are about to discard all unsaved changes. Are you sure?","wordpress-seo-premium"),onDiscard:y,dismissLabel:(0,mt.__)("No, continue editing","wordpress-seo-premium"),discardLabel:(0,mt.__)("Yes, discard changes","wordpress-seo-premium")}))))))};hn.propTypes={children:_r().node.isRequired,isExternalLoading:_r().bool,onUndo:_r().func};const yn=(t=>{const r=({name:r,...n})=>{const{isTouched:a,error:s}=Jr({name:r});return(0,e.createElement)(t,{name:r,validation:{variant:"error",message:a&&s},...n})};return r.propTypes={name:_r().string.isRequired},r})(rr),vn=(e,t="type",r="target",n=!1)=>{const a={...e};return Object.keys(a).forEach((e=>{"string"==typeof a[e]&&(a[e]=a[e].trim())})),Wr.includes(e[t])&&delete a[r],a.ignore_warning=!!n,a},gn=(e,t="create")=>{var r;const n=(null===(r=e.message)||void 0===r?void 0:r.message)||e.message,a=(null==e?void 0:e.fields)||[],s=a.length>0?a[0]:null,i=s?((e,t)=>"update"===t&&{origin:"newOrigin",target:"newTarget",type:"newType"}[e]||e)(s,t):null,o=n&&500!==e.status?n:(e=>"update"===e?(0,mt.__)("Oops! Something went wrong when updating this redirect. Please try again.","wordpress-seo-premium"):(0,mt.__)("Something went wrong when creating this redirect.","wordpress-seo-premium"))(t);return{errMessage:o,fieldName:i,errorType:e.type}},wn=(e,t,r,n)=>{t?r(t,e):n(e)},bn=(e,t)=>!t&&!!e&&"warning"===e,En=async(e,{resetForm:t,setStatus:r,setFieldError:a},s,i)=>{const{addNotification:o,addRedirectAsync:l}=(0,n.dispatch)($r);try{const r=vn(e,"type","target",s);return await l(r),o({variant:"success",title:(0,mt.__)("Successfully added!","wordpress-seo-premium")}),t(),!0}catch(e){const{errMessage:t,fieldName:n,errorType:o}=gn(e);return bn(o,s)&&i(t),wn(t,n,a,r),!1}},Sn=async(e,{resetForm:t,setStatus:r,setFieldError:a},s=!1,i)=>{const{addNotification:o,editRedirectAsync:l,setGlobalError:c,clearGlobalError:u}=(0,n.dispatch)($r);u();try{const r=vn(e,"new_type","new_target",s);return await l(r),o({variant:"success",title:(0,mt.__)("Changes save successfully!","wordpress-seo-premium")}),t(),!0}catch(e){const{errMessage:t,fieldName:n,errorType:o}=gn(e,"update");return bn(o,s)&&i(t),n||c(t),wn(t,n,a,r),!1}},xn=async(e,{resetForm:t})=>{const{addNotification:r,editRedirectsSettingsAsync:a}=(0,n.dispatch)($r);try{return await a(e),r({variant:"success",title:(0,mt.__)("Great! Your settings were saved succesfully!","wordpress-seo-premium")}),t(),!0}catch(e){const{errMessage:t}=gn(e);return r({id:"submit-error",variant:"error",title:`${(0,mt.__)("Redirects settings not updated","wordpress-seo-premium")}: ${t}`}),!1}};var Fn,Rn;try{Fn=Map}catch(e){}try{Rn=Set}catch(e){}function Tn(e,t,r){if(!e||"object"!=typeof e||"function"==typeof e)return e;if(e.nodeType&&"cloneNode"in e)return e.cloneNode(!0);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);if(Array.isArray(e))return e.map(Cn);if(Fn&&e instanceof Fn)return new Map(Array.from(e.entries()));if(Rn&&e instanceof Rn)return new Set(Array.from(e.values()));if(e instanceof Object){t.push(e);var n=Object.create(e);for(var a in r.push(n),e){var s=t.findIndex((function(t){return t===e[a]}));n[a]=s>-1?r[s]:Tn(e[a],t,r)}return n}return e}function Cn(e){return Tn(e,[],[])}const kn=Object.prototype.toString,On=Error.prototype.toString,$n=RegExp.prototype.toString,An="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",Pn=/^Symbol\((.*)\)(.*)$/;function Dn(e,t=!1){if(null==e||!0===e||!1===e)return""+e;const r=typeof e;if("number"===r)return function(e){return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e}(e);if("string"===r)return t?`"${e}"`:e;if("function"===r)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===r)return An.call(e).replace(Pn,"Symbol($1)");const n=kn.call(e).slice(8,-1);return"Date"===n?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===n||e instanceof Error?"["+On.call(e)+"]":"RegExp"===n?$n.call(e):null}function Nn(e,t){let r=Dn(e,t);return null!==r?r:JSON.stringify(e,(function(e,r){let n=Dn(this[e],t);return null!==n?n:r}),2)}let Mn={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:r,originalValue:n})=>{let a=null!=n&&n!==r,s=`${e} must be a \`${t}\` type, but the final value was: \`${Nn(r,!0)}\``+(a?` (cast from the value \`${Nn(n,!0)}\`).`:".");return null===r&&(s+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),s},defined:"${path} must be defined"},jn={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Ln={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},In={noUnknown:"${path} field has unspecified keys: ${unknown}"};Object.assign(Object.create(null),{mixed:Mn,string:jn,number:{min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},date:Ln,object:In,array:{min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},boolean:{isValue:"${path} field must be ${value}"}});const Un=window.lodash.has;var Bn=r.n(Un);const Vn=e=>e&&e.__isYupSchema__,zn=class{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t)return void(this.fn=t);if(!Bn()(t,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!t.then&&!t.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:n,otherwise:a}=t,s="function"==typeof r?r:(...e)=>e.every((e=>e===r));this.fn=function(...e){let t=e.pop(),r=e.pop(),i=s(...e)?n:a;if(i)return"function"==typeof i?i(r):r.concat(i.resolve(t))}}resolve(e,t){let r=this.refs.map((e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context))),n=this.fn.apply(e,r.concat(e,t));if(void 0===n||n===e)return e;if(!Vn(n))throw new TypeError("conditions must return a schema object");return n.resolve(t)}};function Hn(e){return null==e?[]:[].concat(e)}function qn(){return qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(this,arguments)}let Wn=/\$\{\s*(\w+)\s*\}/g;class Gn extends Error{static formatError(e,t){const r=t.label||t.path||"this";return r!==t.path&&(t=qn({},t,{path:r})),"string"==typeof e?e.replace(Wn,((e,r)=>Nn(t[r]))):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,r,n){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=r,this.type=n,this.errors=[],this.inner=[],Hn(e).forEach((e=>{Gn.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)})),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,Gn)}}function Yn(e,t){let{endEarly:r,tests:n,args:a,value:s,errors:i,sort:o,path:l}=e,c=(e=>{let t=!1;return(...r)=>{t||(t=!0,e(...r))}})(t),u=n.length;const d=[];if(i=i||[],!u)return i.length?c(new Gn(i,s,l)):c(null,s);for(let e=0;e<n.length;e++)(0,n[e])(a,(function(e){if(e){if(!Gn.isError(e))return c(e,s);if(r)return e.value=s,c(e,s);d.push(e)}if(--u<=0){if(d.length&&(o&&d.sort(o),i.length&&d.push(...i),i=d),i.length)return void c(new Gn(i,s,l),s);c(null,s)}}))}const Jn=window.lodash.mapValues;var Kn=r.n(Jn),Zn=r(318);class Qn{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw new TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?"$":this.isValue?".":"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,Zn.getter)(this.path,!0),this.map=t.map}getValue(e,t,r){let n=this.isContext?r:this.isValue?e:t;return this.getter&&(n=this.getter(n||{})),this.map&&(n=this.map(n)),n}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function Xn(){return Xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xn.apply(this,arguments)}function ea(e){function t(t,r){let{value:n,path:a="",label:s,options:i,originalValue:o,sync:l}=t,c=function(e,t){if(null==e)return{};var r,n,a={},s=Object.keys(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(t,["value","path","label","options","originalValue","sync"]);const{name:u,test:d,params:p,message:m}=e;let{parent:f,context:h}=i;function y(e){return Qn.isRef(e)?e.getValue(n,f,h):e}function v(e={}){const t=Kn()(Xn({value:n,originalValue:o,label:s,path:e.path||a},p,e.params),y),r=new Gn(Gn.formatError(e.message||m,t),n,t.path,e.type||u);return r.params=t,r}let g,w=Xn({path:a,parent:f,type:u,createError:v,resolve:y,options:i,originalValue:o},c);if(l){try{var b;if(g=d.call(w,n,w),"function"==typeof(null==(b=g)?void 0:b.then))throw new Error(`Validation test of type: "${w.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){return void r(e)}Gn.isError(g)?r(g):g?r(null,g):r(v())}else try{Promise.resolve(d.call(w,n,w)).then((e=>{Gn.isError(e)?r(e):e?r(null,e):r(v())})).catch(r)}catch(e){r(e)}}return t.OPTIONS=e,t}function ta(e,t,r,n=r){let a,s,i;return t?((0,Zn.forEach)(t,((o,l,c)=>{let u=l?(e=>e.substr(0,e.length-1).substr(1))(o):o;if((e=e.resolve({context:n,parent:a,value:r})).innerType){let n=c?parseInt(u,10):0;if(r&&n>=r.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${o}, in the path: ${t}. because there is no value at that index. `);a=r,r=r&&r[n],e=e.innerType}if(!c){if(!e.fields||!e.fields[u])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${i} which is a type: "${e._type}")`);a=r,r=r&&r[u],e=e.fields[u]}s=u,i=l?"["+o+"]":"."+o})),{schema:e,parent:a,parentPath:s}):{parent:a,parentPath:t,schema:e}}Qn.prototype.__isYupRef=!0;class ra{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){const e=[];for(const t of this.list)e.push(t);for(const[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values()))}resolveAll(e){return this.toArray().reduce(((t,r)=>t.concat(Qn.isRef(r)?e(r):r)),[])}add(e){Qn.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){Qn.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){const e=new ra;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){const r=this.clone();return e.list.forEach((e=>r.add(e))),e.refs.forEach((e=>r.add(e))),t.list.forEach((e=>r.delete(e))),t.refs.forEach((e=>r.delete(e))),r}}function na(){return na=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},na.apply(this,arguments)}class aa{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new ra,this._blacklist=new ra,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation((()=>{this.typeError(Mn.notType)})),this.type=(null==e?void 0:e.type)||"mixed",this.spec=na({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;const t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=na({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=Cn(na({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let r=e(this);return this._mutate=t,r}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=this,r=e.clone();const n=na({},t.spec,r.spec);return r.spec=n,r._typeError||(r._typeError=t._typeError),r._whitelistError||(r._whitelistError=t._whitelistError),r._blacklistError||(r._blacklistError=t._blacklistError),r._whitelist=t._whitelist.merge(e._whitelist,e._blacklist),r._blacklist=t._blacklist.merge(e._blacklist,e._whitelist),r.tests=t.tests,r.exclusiveTests=t.exclusiveTests,r.withMutation((t=>{e.tests.forEach((e=>{t.test(e.OPTIONS)}))})),r.transforms=[...t.transforms,...r.transforms],r}isType(e){return!(!this.spec.nullable||null!==e)||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let r=t.conditions;t=t.clone(),t.conditions=[],t=r.reduce(((t,r)=>r.resolve(t,e)),t),t=t.resolve(e)}return t}cast(e,t={}){let r=this.resolve(na({value:e},t)),n=r._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==r.isType(n)){let a=Nn(e),s=Nn(n);throw new TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${r._type}". \n\nattempted value: ${a} \n`+(s!==a?`result of cast: ${s}`:""))}return n}_cast(e,t){let r=void 0===e?e:this.transforms.reduce(((t,r)=>r.call(this,t,e,this)),e);return void 0===r&&(r=this.getDefault()),r}_validate(e,t={},r){let{sync:n,path:a,from:s=[],originalValue:i=e,strict:o=this.spec.strict,abortEarly:l=this.spec.abortEarly}=t,c=e;o||(c=this._cast(c,na({assert:!1},t)));let u={value:c,path:a,options:t,originalValue:i,schema:this,label:this.spec.label,sync:n,from:s},d=[];this._typeError&&d.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),Yn({args:u,value:c,path:a,sync:n,tests:d,endEarly:l},(e=>{e?r(e,c):Yn({tests:this.tests.concat(p),args:u,path:a,sync:n,value:c,endEarly:l},r)}))}validate(e,t,r){let n=this.resolve(na({},t,{value:e}));return"function"==typeof r?n._validate(e,t,r):new Promise(((r,a)=>n._validate(e,t,((e,t)=>{e?a(e):r(t)}))))}validateSync(e,t){let r;return this.resolve(na({},t,{value:e}))._validate(e,na({},t,{sync:!0}),((e,t)=>{if(e)throw e;r=t})),r}isValid(e,t){return this.validate(e,t).then((()=>!0),(e=>{if(Gn.isError(e))return!1;throw e}))}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(Gn.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):Cn(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0===arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}_isPresent(e){return null!=e}defined(e=Mn.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=Mn.required){return this.clone({presence:"required"}).withMutation((t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}})))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter((e=>"required"!==e.OPTIONS.name)),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]},void 0===t.message&&(t.message=Mn.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");let r=this.clone(),n=ea(t),a=t.exclusive||t.name&&!0===r.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(r.exclusiveTests[t.name]=!!t.exclusive),r.tests=r.tests.filter((e=>{if(e.OPTIONS.name===t.name){if(a)return!1;if(e.OPTIONS.test===n.OPTIONS.test)return!1}return!0})),r.tests.push(n),r}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let r=this.clone(),n=Hn(e).map((e=>new Qn(e)));return n.forEach((e=>{e.isSibling&&r.deps.push(e.key)})),r.conditions.push(new zn(n,t)),r}typeError(e){let t=this.clone();return t._typeError=ea({message:e,name:"typeError",test(e){return!(void 0!==e&&!this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=Mn.oneOf){let r=this.clone();return e.forEach((e=>{r._whitelist.add(e),r._blacklist.delete(e)})),r._whitelistError=ea({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,r=t.resolveAll(this.resolve);return!!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}notOneOf(e,t=Mn.notOneOf){let r=this.clone();return e.forEach((e=>{r._blacklist.add(e),r._whitelist.delete(e)})),r._blacklistError=ea({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,r=t.resolveAll(this.resolve);return!r.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:r}})}}),r}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){const e=this.clone(),{label:t,meta:r}=e.spec,n={meta:r,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map((e=>({name:e.OPTIONS.name,params:e.OPTIONS.params}))).filter(((e,t,r)=>r.findIndex((t=>t.name===e.name))===t))};return n}}aa.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])aa.prototype[`${e}At`]=function(t,r,n={}){const{parent:a,parentPath:s,schema:i}=ta(this,t,r,n.context);return i[e](a&&a[s],na({},n,{parent:a,path:t}))};for(const e of["equals","is"])aa.prototype[e]=aa.prototype.oneOf;for(const e of["not","nope"])aa.prototype[e]=aa.prototype.notOneOf;aa.prototype.optional=aa.prototype.notRequired;aa.prototype;const sa=e=>null==e;let ia=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,oa=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,la=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ca=e=>sa(e)||e===e.trim(),ua={}.toString();function da(){return new pa}class pa extends aa{constructor(){super({type:"string"}),this.withMutation((()=>{this.transform((function(e){if(this.isType(e))return e;if(Array.isArray(e))return e;const t=null!=e&&e.toString?e.toString():e;return t===ua?e:t}))}))}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=jn.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return sa(t)||t.length===this.resolve(e)}})}min(e,t=jn.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return sa(t)||t.length>=this.resolve(e)}})}max(e,t=jn.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return sa(t)||t.length<=this.resolve(e)}})}matches(e,t){let r,n,a=!1;return t&&("object"==typeof t?({excludeEmptyString:a=!1,message:r,name:n}=t):r=t),this.test({name:n||"matches",message:r||jn.matches,params:{regex:e},test:t=>sa(t)||""===t&&a||-1!==t.search(e)})}email(e=jn.email){return this.matches(ia,{name:"email",message:e,excludeEmptyString:!0})}url(e=jn.url){return this.matches(oa,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=jn.uuid){return this.matches(la,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform((e=>null===e?"":e))}trim(e=jn.trim){return this.transform((e=>null!=e?e.trim():e)).test({message:e,name:"trim",test:ca})}lowercase(e=jn.lowercase){return this.transform((e=>sa(e)?e:e.toLowerCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>sa(e)||e===e.toLowerCase()})}uppercase(e=jn.uppercase){return this.transform((e=>sa(e)?e:e.toUpperCase())).test({message:e,name:"string_case",exclusive:!0,test:e=>sa(e)||e===e.toUpperCase()})}}da.prototype=pa.prototype;var ma=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let fa=new Date("");function ha(){return new ya}class ya extends aa{constructor(){super({type:"date"}),this.withMutation((()=>{this.transform((function(e){return this.isType(e)?e:(e=function(e){var t,r,n=[1,4,5,6,7,10,11],a=0;if(r=ma.exec(e)){for(var s,i=0;s=n[i];++i)r[s]=+r[s]||0;r[2]=(+r[2]||1)-1,r[3]=+r[3]||1,r[7]=r[7]?String(r[7]).substr(0,3):0,void 0!==r[8]&&""!==r[8]||void 0!==r[9]&&""!==r[9]?("Z"!==r[8]&&void 0!==r[9]&&(a=60*r[10]+r[11],"+"===r[9]&&(a=0-a)),t=Date.UTC(r[1],r[2],r[3],r[4],r[5]+a,r[6],r[7])):t=+new Date(r[1],r[2],r[3],r[4],r[5],r[6],r[7])}else t=Date.parse?Date.parse(e):NaN;return t}(e),isNaN(e)?fa:new Date(e))}))}))}_typeCheck(e){return t=e,"[object Date]"===Object.prototype.toString.call(t)&&!isNaN(e.getTime());var t}prepareParam(e,t){let r;if(Qn.isRef(e))r=e;else{let n=this.cast(e);if(!this._typeCheck(n))throw new TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);r=n}return r}min(e,t=Ln.min){let r=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return sa(e)||e>=this.resolve(r)}})}max(e,t=Ln.max){let r=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return sa(e)||e<=this.resolve(r)}})}}ya.INVALID_DATE=fa,ha.prototype=ya.prototype,ha.INVALID_DATE=fa;const va=window.lodash.snakeCase;var ga=r.n(va);const wa=window.lodash.camelCase;var ba=r.n(wa);const Ea=window.lodash.mapKeys;var _a=r.n(Ea),Sa=r(391),xa=r.n(Sa);function Fa(e,t){let r=1/0;return e.some(((e,n)=>{var a;if(-1!==(null==(a=t.path)?void 0:a.indexOf(e)))return r=n,!0})),r}function Ra(e){return(t,r)=>Fa(e,t)-Fa(e,r)}function Ta(){return Ta=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ta.apply(this,arguments)}let Ca=e=>"[object Object]"===Object.prototype.toString.call(e);const ka=Ra([]);class Oa extends aa{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ka,this._nodes=[],this._excludedEdges=[],this.withMutation((()=>{this.transform((function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})),e&&this.shape(e)}))}_typeCheck(e){return Ca(e)||"function"==typeof e}_cast(e,t={}){var r;let n=super._cast(e,t);if(void 0===n)return this.getDefault();if(!this._typeCheck(n))return n;let a=this.fields,s=null!=(r=t.stripUnknown)?r:this.spec.noUnknown,i=this._nodes.concat(Object.keys(n).filter((e=>-1===this._nodes.indexOf(e)))),o={},l=Ta({},t,{parent:o,__validating:t.__validating||!1}),c=!1;for(const e of i){let r=a[e],i=Bn()(n,e);if(r){let a,s=n[e];l.path=(t.path?`${t.path}.`:"")+e,r=r.resolve({value:s,context:t.context,parent:o});let i="spec"in r?r.spec:void 0,u=null==i?void 0:i.strict;if(null==i?void 0:i.strip){c=c||e in n;continue}a=t.__validating&&u?n[e]:r.cast(n[e],l),void 0!==a&&(o[e]=a)}else i&&!s&&(o[e]=n[e]);o[e]!==n[e]&&(c=!0)}return c?o:n}_validate(e,t={},r){let n=[],{sync:a,from:s=[],originalValue:i=e,abortEarly:o=this.spec.abortEarly,recursive:l=this.spec.recursive}=t;s=[{schema:this,value:i},...s],t.__validating=!0,t.originalValue=i,t.from=s,super._validate(e,t,((e,c)=>{if(e){if(!Gn.isError(e)||o)return void r(e,c);n.push(e)}if(!l||!Ca(c))return void r(n[0]||null,c);i=i||c;let u=this._nodes.map((e=>(r,n)=>{let a=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,o=this.fields[e];o&&"validate"in o?o.validate(c[e],Ta({},t,{path:a,from:s,strict:!0,parent:c,originalValue:i[e]}),n):n(null)}));Yn({sync:a,tests:u,value:c,errors:n,endEarly:o,sort:this._sortErrors,path:t.path},r)}))}clone(e){const t=super.clone(e);return t.fields=Ta({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),r=t.fields;for(let[e,t]of Object.entries(this.fields)){const n=r[e];void 0===n?r[e]=t:n instanceof aa&&t instanceof aa&&(r[e]=t.concat(n))}return t.withMutation((()=>t.shape(r,this._excludedEdges)))}getDefaultFromShape(){let e={};return this._nodes.forEach((t=>{const r=this.fields[t];e[t]="default"in r?r.getDefault():void 0})),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let r=this.clone(),n=Object.assign(r.fields,e);return r.fields=n,r._sortErrors=Ra(Object.keys(n)),t.length&&(Array.isArray(t[0])||(t=[t]),r._excludedEdges=[...r._excludedEdges,...t]),r._nodes=function(e,t=[]){let r=[],n=new Set,a=new Set(t.map((([e,t])=>`${e}-${t}`)));function s(e,t){let s=(0,Zn.split)(e)[0];n.add(s),a.has(`${t}-${s}`)||r.push([t,s])}for(const t in e)if(Bn()(e,t)){let r=e[t];n.add(t),Qn.isRef(r)&&r.isSibling?s(r.path,t):Vn(r)&&"deps"in r&&r.deps.forEach((e=>s(e,t)))}return xa().array(Array.from(n),r).reverse()}(n,r._excludedEdges),r}pick(e){const t={};for(const r of e)this.fields[r]&&(t[r]=this.fields[r]);return this.clone().withMutation((e=>(e.fields={},e.shape(t))))}omit(e){const t=this.clone(),r=t.fields;t.fields={};for(const t of e)delete r[t];return t.withMutation((()=>t.shape(r)))}from(e,t,r){let n=(0,Zn.getter)(e,!0);return this.transform((a=>{if(null==a)return a;let s=a;return Bn()(a,e)&&(s=Ta({},a),r||delete s[e],s[t]=n(a)),s}))}noUnknown(e=!0,t=In.noUnknown){"string"==typeof e&&(t=e,e=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){if(null==t)return!0;const r=function(e,t){let r=Object.keys(e.fields);return Object.keys(t).filter((e=>-1===r.indexOf(e)))}(this.schema,t);return!e||0===r.length||this.createError({params:{unknown:r.join(", ")}})}});return r.spec.noUnknown=e,r}unknown(e=!0,t=In.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform((t=>t&&_a()(t,((t,r)=>e(r)))))}camelCase(){return this.transformKeys(ba())}snakeCase(){return this.transformKeys(ga())}constantCase(){return this.transformKeys((e=>ga()(e).toUpperCase()))}describe(){let e=super.describe();return e.fields=Kn()(this.fields,(e=>e.describe())),e}}function $a(e){return new Oa(e)}$a.prototype=Oa.prototype;const Aa=e=>!e.includes("://"),Pa=e=>e.replace(/(^\/+)|\/+$/,""),Da=(e,t="target")=>e?"origin"===t?e:"target"===t&&Aa(e)?e.startsWith("/")?e:`/${e}`:e:"",Na=(e,t)=>e&&Aa(e)?((e,t)=>[Pa(t),Pa(e)].join("/"))(e,t):e,Ma=e=>{return e&&"off"!==e.disable_php_redirect?e.is_apache?(e=>{return"on"===e.separate_file?(t=e.file_path,{type:"apache_include_file",message:(0,mt.__)("As you're on Apache, you should add the following include to the website httpd config file:","wordpress-seo-premium"),filePath:t||""}):"cannot_write_htaccess"===e.file_path?{type:"cannot_write_htaccess",message:(0,mt.__)("We're unable to save the redirects to your .htaccess file. Please make the file writable.","wordpress-seo-premium"),filePath:null}:{type:null,message:null,filePath:null};var t})(e):(t=e.file_path,{type:"nginx_include_file",message:(0,mt.__)("As you're on Nginx, you should add the following include to the Nginx config file:","wordpress-seo-premium"),filePath:t||""}):{type:null,message:null,filePath:null};var t},ja=e.forwardRef((function(t,r){return e.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:r},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))})),La=({allSelected:t,onSelectAllChange:r,toggleSortOrder:n,sortOrder:a,format:s})=>(0,e.createElement)(o.Table.Head,null,(0,e.createElement)(o.Table.Row,null,(0,e.createElement)(o.Table.Header,{className:"yst-w-4"},(0,e.createElement)(o.Checkbox,{id:"yst-checkbox-header-select-all",name:"yst-checkbox-header-select-all","aria-label":(0,mt.__)("Select all","wordpress-seo-premium"),value:t.toString(),checked:t,onChange:r})),(0,e.createElement)(o.Table.Header,{className:"yst-w-32"},(0,e.createElement)("div",{className:"yst-flex yst-flex-wrap yst-break-all yst-gap-3"},(0,mt.__)("Type","wordpress-seo-premium"),(0,e.createElement)(o.Button,{"aria-label":(0,mt.__)("Sort by Type","wordpress-seo-premium"),as:"span",variant:"tertiary",className:"yst-p-0 yst-text-slate-400",onClick:n},(0,e.createElement)(ja,{className:"yst-w-4 yst-h-4 yst-transition-transform "+(a===Mr?"":"yst-rotate-180")})))),(0,e.createElement)(o.Table.Header,{scope:"col"},(0,mt.__)(s===jr?"Old URL":"Regular Expression","wordpress-seo-premium")),(0,e.createElement)(o.Table.Header,{scope:"col"},(0,mt.__)(s===jr?"New URL":"URL","wordpress-seo-premium")))),Ia=({redirects:t,selectedRedirects:r,selectedRedirect:n,setSelectedDeleteRedirect:a,onToggleSelect:s,onEdit:l,onDelete:c,format:u})=>{const d=Kr("selectPreference",[],"homeUrl"),p=(0,i.useCallback)((e=>{const r=e.target.getAttribute("data-id");return r?t.find((({origin:e})=>e===r)):null}),[t]),m=(0,i.useCallback)((e=>{const t=p(e);t&&l(t)}),[p,l]),f=(0,i.useCallback)((e=>{const t=p(e);t&&(a(t),c())}),[p,c,a]);return null==t?void 0:t.map((t=>n.origin===t.origin?(0,e.createElement)(en,{key:t.origin,redirect:t,selectedRedirects:r,onToggleSelect:s,onEdit:l}):(0,e.createElement)(o.Table.Row,{key:t.origin},(0,e.createElement)(o.Table.Cell,{className:"yst-w-4"},(0,e.createElement)(o.Checkbox,{id:`yst-checkbox-row-${t.origin}`,name:`yst-checkbox-row-${t.origin}`,value:r.includes(t.origin).toString(),checked:r.includes(t.origin),onChange:s,"aria-label":(0,mt.__)("Select redirects","wordpress-seo-premium"),"data-id":t.origin})),(0,e.createElement)(o.Table.Cell,{className:"yst-w-32"},(0,e.createElement)("span",{className:"yst-text-slate-800 yst-font-medium"},t.type)),(0,e.createElement)(o.Table.Cell,null,u===jr?(0,e.createElement)("a",{href:Na(t.origin,d),target:"_blank",rel:"noopener noreferrer",className:"yst-flex-wrap yst-break-all"},Da(t.origin,"origin")):(0,e.createElement)("span",{className:"yst-text-slate-500"},Da(t.origin,"origin"))),(0,e.createElement)(o.Table.Cell,null,(0,e.createElement)("div",{className:"yst-flex yst-justify-between yst-items-end yst-relative"},t.target?(0,e.createElement)("a",{href:Na(t.target,d),target:"_blank",rel:"noopener noreferrer",className:"yst-flex-wrap yst-break-all"},Da(t.target,"target")):(0,e.createElement)("div",{className:"yst-text-slate-500"},"—"),(0,e.createElement)(o.DropdownMenu,{as:"span"},(0,e.createElement)(o.DropdownMenu.IconTrigger,{screenReaderTriggerLabel:(0,mt.__)("Open menu","wordpress-seo-premium"),className:"yst-float-end"}),(0,e.createElement)(o.DropdownMenu.List,{className:"yst-absolute yst-mt-8 yst-right-0 yst-w-44 yst-z-10"},(0,e.createElement)(o.DropdownMenu.ButtonItem,{"data-id":t.origin,onClick:m},(0,mt.__)("Edit","wordpress-seo-premium")),(0,e.createElement)(o.DropdownMenu.ButtonItem,{"data-id":t.origin,onClick:f},(0,mt.__)("Delete","wordpress-seo-premium")))))))))},Ua=({selectedRedirect:t,setSelectedRedirect:r,handleDeleteModal:n,setSelectedDeleteRedirect:a,redirects:s,sortOrder:l,toggleSortOrder:c,selectedRedirects:u,toggleSelectRedirect:d,clearSelectedRedirects:p,setSelectedRedirects:m,format:f})=>{const h=null==s?void 0:s.length,y=h>0&&s.every((({origin:e})=>u.includes(e))),v=(0,i.useCallback)((e=>{e.target.checked?m(s.map((({origin:e})=>e))):p()}),[s,m,p]),g=(0,i.useCallback)((e=>{const t=e.target.getAttribute("data-id");t&&d(t)}),[d]);return(0,e.createElement)(o.Table,{className:"yst-mt-4 yst-w-full yst-table-fixed",variant:"minimal"},(0,e.createElement)(La,{allSelected:y,onSelectAllChange:v,toggleSortOrder:c,sortOrder:l,format:f}),(0,e.createElement)(o.Table.Body,null,h>0?(0,e.createElement)(Ia,{redirects:s,selectedRedirects:u,selectedRedirect:t,onToggleSelect:g,setSelectedDeleteRedirect:a,onEdit:r,onDelete:n,format:f}):(0,e.createElement)(o.Table.Row,null,(0,e.createElement)(o.Table.Cell,{colSpan:"4",className:"yst-text-center"},(0,mt.__)("No items found","wordpress-seo-premium")))))},Ba=({isOpen:t,onClose:r,onConfirm:n,errorMessage:a,isLoading:s=!1,focusRef:i})=>(0,e.createElement)(o.Modal,{onClose:r,position:"center",isOpen:t,initialFocus:i},(0,e.createElement)(o.Modal.Panel,{hasCloseButton:!0,ref:i},(0,e.createElement)("div",{className:"yst-flex yst-items-start yst-gap-4 yst-pb-8"},(0,e.createElement)("div",{className:"yst-flex yst-flex-col"},(0,e.createElement)(o.Modal.Title,{as:"h2",className:"yst-text-lg"},(0,mt.__)("Error while saving this redirect","wordpress-seo-premium")),(0,e.createElement)(o.Modal.Description,{className:"yst-mt-2 yst-text-sm yst-text-slate-600"},a))),(0,e.createElement)("div",{className:"yst-flex yst-justify-end yst-gap-3 yst-w-full yst-mt-8"},(0,e.createElement)(o.Button,{variant:"secondary",onClick:r},(0,mt.__)("Cancel","wordpress-seo-premium")),(0,e.createElement)(o.Button,{variant:"primary",onClick:n,isLoading:s,disabled:s},(0,mt.__)("Save anyway","wordpress-seo-premium"))))),Va=({format:t=jr})=>{const{sortedRedirects:r,sortOrder:n,toggleSortOrder:a,onDelete:s,selectedRedirects:l,isLoading:c,setters:{toggleSelectRedirect:u,clearSelectedRedirects:d,setSelectedRedirects:p}}=Qr(t),{currentPage:m,totalPages:f,visibleItems:h,setCurrentPage:y}=((e,t=10)=>{const[r,n]=(0,i.useState)(1);(0,i.useEffect)((()=>{n(1)}),[e]);const a=(0,i.useMemo)((()=>Math.ceil(e.length/t)),[e,t]),s=(0,i.useMemo)((()=>{const n=(r-1)*t;return e.slice(n,n+t)}),[e,r,t]);return{currentPage:r,totalPages:a,visibleItems:s,setCurrentPage:n,goToNextPage:()=>{n((e=>Math.min(e+1,a)))},goToPreviousPage:()=>{n((e=>Math.max(e-1,1)))}}})(r,10),{setGlobalError:v}=Yr(),g=null==r?void 0:r.length,[w,b]=(0,i.useState)({}),[E,_]=(0,i.useState)({}),[S,x]=(0,o.useToggleState)(!1),[F,R]=(0,i.useState)(!1),[T,C]=(0,i.useState)(null),[O,$]=(0,i.useState)(null),[A,P]=(0,i.useState)(""),D=Kr("selectRedirectsStatus"),N=(0,i.useRef)(null),M=(0,mt.sprintf)(/* translators: %d: Number of redirect items */ /* translators: %d: Number of redirect items */
(0,mt._n)("%d Item","%d Items",g,"wordpress-seo-premium"),g),j=t===jr,L=(0,i.useCallback)((()=>{R((e=>!e))}),[]),I=(0,i.useCallback)((async(e,t)=>{C(e),$(t);const r={old_target:e.target,old_origin:e.origin,old_type:e.type,new_target:e.newTarget,new_origin:e.newOrigin,new_type:e.newType,format:e.format};await Sn(r,t,!1,(e=>{P(e||""),L()}))&&b({})}),[]),U=(0,i.useCallback)((async()=>{if(T&&O){const e={old_target:T.target,old_origin:T.origin,old_type:T.type,new_target:T.newTarget,new_origin:T.newOrigin,new_type:T.newType,format:T.format};await Sn(e,O,!0,L)&&b({}),R(!1)}}),[T,O]),B=(0,i.useCallback)((async()=>{if(null!=E&&E.origin)try{await s(E.origin),x()}catch(e){v(e.message)}}),[E,s,v]);return c?(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-justify-center yst-mt-4"},(0,e.createElement)(o.Spinner,{size:"8"})):(0,e.createElement)(e.Fragment,null,g>0&&(0,e.createElement)("div",{className:"yst-text-slate-500 yst-mt-4 yst-py-2 yst-px-2"},M),(0,e.createElement)(Zt,{initialValues:{target:w.target||"",origin:w.origin||"",type:w.type||301,newTarget:w.target||"",newType:w.type||301,newOrigin:w.origin||"",format:t},onSubmit:I,enableReinitialize:!0,validationSchema:j?$a().shape({newOrigin:da().required((0,mt.__)("Please enter the old URL.","wordpress-seo-premium")),newTarget:da().when("newType",{is:e=>!Wr.includes(e),then:e=>e.required((0,mt.__)("Please enter the new URL.","wordpress-seo-premium")),otherwise:e=>e})}):$a().shape({newOrigin:da().required((0,mt.__)("Please enter the regular expression.","wordpress-seo-premium")),newTarget:da().when("newType",{is:e=>!Wr.includes(e),then:e=>e.required((0,mt.__)("Please enter the URL.","wordpress-seo-premium")),otherwise:e=>e})})},(0,e.createElement)(nr,null,(0,e.createElement)(Ua,{selectedRedirect:w,setSelectedRedirect:b,handleDeleteModal:x,setSelectedDeleteRedirect:_,sortOrder:n,toggleSortOrder:a,selectedRedirects:l,toggleSelectRedirect:u,clearSelectedRedirects:d,setSelectedRedirects:p,redirects:h,format:t}),(()=>{if(r.length<=10)return null;const t=10*(m-1)+1,n=Math.min(10*m,r.length);return(0,e.createElement)("div",{className:"yst-flex yst-justify-end yst-mt-8"},(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-gap-6"},(0,e.createElement)("span",{className:"yst-text-gray-600"},(0,mt.sprintf)(/* translators: 1: From item, 2: To item, 3: Total count */ /* translators: 1: From item, 2: To item, 3: Total count */
(0,mt.__)("Showing %1$d to %2$d of %3$d results","wordpress-seo-premium"),t,n,r.length)),(0,e.createElement)(o.Pagination,{current:m,onNavigate:y,screenReaderTextNext:(0,mt.__)("Next","wordpress-seo-premium"),screenReaderTextPrevious:(0,mt.__)("Previous","wordpress-seo-premium"),total:f})))})(),(0,e.createElement)(qr,{isOpen:S,onClose:x,onConfirm:B,isLoading:D.remove===k,focusRef:N}),(0,e.createElement)(Ba,{isOpen:F,onClose:L,onConfirm:U,errorMessage:A,isLoading:D.edit===k,focusRef:N}))))},za=e.forwardRef((function(t,r){return e.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:r},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"}))})),Ha=e.forwardRef((function(t,r){return e.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:r},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4"}))})),qa=e.forwardRef((function(t,r){return e.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:r},t),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))})),Wa=({to:t,idSuffix:r="",...n})=>{const a=(0,i.useMemo)((()=>(0,l.replace)((0,l.replace)(`link-${t}`,"/","-"),"--","-")),[t]);return(0,e.createElement)(o.SidebarNavigation.Link,{as:ct,pathProp:"to",id:`${a}${r}`,to:t,...n})};Wa.propTypes={to:_r().string.isRequired,idSuffix:_r().string};const Ga=({idSuffix:t=""})=>{const r=(0,o.useSvgAria)();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)("header",{className:"yst-mb-6 yst-space-y-6"},(0,e.createElement)(ct,{id:`link-yoast-logo${t}`,to:"/",className:"yst-px-3 yst-inline-block yst-rounded-md focus:yst-ring-primary-500","aria-label":"Yoast SEO Premium"},(0,e.createElement)(Tr,{className:"yst-w-40",...r}))),(0,e.createElement)(o.SidebarNavigation.List,{className:"yst-mt-1 yst-px-0.5 yst-space-y-4"},(0,e.createElement)(Wa,{to:"/",idSuffix:t,className:"yst-gap-3"},(0,e.createElement)(za,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,mt.__)("Redirects","wordpress-seo-premium")),(0,e.createElement)(Wa,{to:Br,idSuffix:t,className:"yst-gap-3"},(0,e.createElement)(Ha,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,mt.__)("Regex redirects","wordpress-seo-premium")),(0,e.createElement)(Wa,{to:Vr,idSuffix:t,className:"yst-gap-3"},(0,e.createElement)(qa,{className:"yst-sidebar-navigation__icon yst-w-6 yst-h-6"}),(0,mt.__)("Redirect method","wordpress-seo-premium"))))};Ga.propTypes={idSuffix:_r().string};const Ya=({id:t,onDismiss:r,...n})=>{const a=(0,i.useContext)(Ht);if(!a)return null;const{errors:s}=a,c=(0,i.useMemo)((()=>(0,l.flatMap)(s,((e,t)=>e?[{name:t,error:e}]:[]))),[s]);return(0,e.createElement)(o.Notifications.Notification,{key:t,id:t,onDismiss:r,...n},(0,e.createElement)("ul",{className:"yst-list-disc yst-mt-1 yst-ms-4 yst-space-y-2"},c.map((({name:t,error:r})=>(0,e.createElement)("li",{key:t},r)))))};Ya.propTypes={id:_r().string.isRequired,onDismiss:_r().func};const Ja=()=>{const{removeNotification:t}=Yr(),r=Kr("selectNotifications"),n=(0,i.useMemo)((()=>(0,l.map)(r,(e=>({...e,onDismiss:t,autoDismiss:"success"===e.variant?5e3:null,
/* translators: Hidden accessibility text. */
dismissScreenReaderLabel:(0,mt.__)("Dismiss","wordpress-seo-premium")})))),[r,t]);return(0,e.createElement)(o.Notifications,{notifications:n,position:"bottom-left"},n.map((t=>"validation-errors"===t.id?(0,e.createElement)(Ya,{key:t.id,...t}):(0,e.createElement)(o.Notifications.Notification,{key:t.id,...t}))))},Ka=()=>{const t=(0,i.useCallback)((()=>{var e,t;return null===(e=window)||void 0===e||null===(t=e.location)||void 0===t?void 0:t.reload()}),[]),r=(0,n.select)($r).selectLink("https://yoa.st/general-error-support"),a=Je();return(0,e.createElement)(o.Paper,null,(0,e.createElement)(Sr,{error:a},(0,e.createElement)(Sr.HorizontalButtons,{handleRefreshClick:t,supportLink:r})))};var Za={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",padding:0,width:"1px",position:"absolute"},Qa=function(e){var r=e.message,n=e["aria-live"];return t().createElement("div",{style:Za,role:"log","aria-live":n},r||"")};Qa.propTypes={};const Xa=Qa;function es(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 ts=function(e){function r(){var t,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var a=arguments.length,s=Array(a),i=0;i<a;i++)s[i]=arguments[i];return t=n=es(this,e.call.apply(e,[this].concat(s))),n.state={assertiveMessage1:"",assertiveMessage2:"",politeMessage1:"",politeMessage2:"",oldPolitemessage:"",oldPoliteMessageId:"",oldAssertiveMessage:"",oldAssertiveMessageId:"",setAlternatePolite:!1,setAlternateAssertive:!1},es(n,t)}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)}(r,e),r.getDerivedStateFromProps=function(e,t){var r=t.oldPolitemessage,n=t.oldPoliteMessageId,a=t.oldAssertiveMessage,s=t.oldAssertiveMessageId,i=e.politeMessage,o=e.politeMessageId,l=e.assertiveMessage,c=e.assertiveMessageId;return r!==i||n!==o?{politeMessage1:t.setAlternatePolite?"":i,politeMessage2:t.setAlternatePolite?i:"",oldPolitemessage:i,oldPoliteMessageId:o,setAlternatePolite:!t.setAlternatePolite}:a!==l||s!==c?{assertiveMessage1:t.setAlternateAssertive?"":l,assertiveMessage2:t.setAlternateAssertive?l:"",oldAssertiveMessage:l,oldAssertiveMessageId:c,setAlternateAssertive:!t.setAlternateAssertive}:null},r.prototype.render=function(){var e=this.state,r=e.assertiveMessage1,n=e.assertiveMessage2,a=e.politeMessage1,s=e.politeMessage2;return t().createElement("div",null,t().createElement(Xa,{"aria-live":"assertive",message:r}),t().createElement(Xa,{"aria-live":"assertive",message:n}),t().createElement(Xa,{"aria-live":"polite",message:a}),t().createElement(Xa,{"aria-live":"polite",message:s}))},r}(e.Component);ts.propTypes={};const rs=ts;function ns(){console.warn("Announcement failed, LiveAnnouncer context is missing")}const as=t().createContext({announceAssertive:ns,announcePolite:ns}),ss=function(e){function r(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=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,t));return n.announcePolite=function(e,t){n.setState({announcePoliteMessage:e,politeMessageId:t||""})},n.announceAssertive=function(e,t){n.setState({announceAssertiveMessage:e,assertiveMessageId:t||""})},n.state={announcePoliteMessage:"",politeMessageId:"",announceAssertiveMessage:"",assertiveMessageId:"",updateFunctions:{announcePolite:n.announcePolite,announceAssertive:n.announceAssertive}},n}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)}(r,e),r.prototype.render=function(){var e=this.state,r=e.announcePoliteMessage,n=e.politeMessageId,a=e.announceAssertiveMessage,s=e.assertiveMessageId,i=e.updateFunctions;return t().createElement(as.Provider,{value:i},this.props.children,t().createElement(rs,{assertiveMessage:a,assertiveMessageId:s,politeMessage:r,politeMessageId:n}))},r}(e.Component);var is=r(894),os=r.n(is);function ls(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 cs=function(e){function t(){var r,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),i=0;i<a;i++)s[i]=arguments[i];return r=n=ls(this,e.call.apply(e,[this].concat(s))),n.announce=function(){var e=n.props,t=e.message,r=e["aria-live"],a=e.announceAssertive,s=e.announcePolite;"assertive"===r&&a(t||"",os()()),"polite"===r&&s(t||"",os()())},ls(n,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.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,r=e.announceAssertive,n=e.announcePolite;!0!==t&&"true"!==t||(r(""),n(""))},t.prototype.render=function(){return null},t}(e.Component);cs.propTypes={};const us=cs;var ds=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ps=function(e){return t().createElement(as.Consumer,null,(function(r){return t().createElement(us,ds({},r,e))}))};ps.propTypes={};const ms=ps;const fs=window.yoast.reactHelmet,hs=({children:t,title:r,description:n})=>{const a=Kr("selectDocumentFullTitle",[],{prefix:r}),s=(0,mt.sprintf)("%1$s - %2$s",r,"Yoast SEO");return(0,e.createElement)(ss,null,(0,e.createElement)(ms,{message:s,"aria-live":"polite"}),(0,e.createElement)(fs.Helmet,null,(0,e.createElement)("title",null,a)),(0,e.createElement)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200"},(0,e.createElement)("div",{className:"yst-max-w-screen-sm"},(0,e.createElement)(o.Title,null,r),n&&(0,e.createElement)("p",{className:"yst-text-tiny yst-mt-3"},n))),t)};hs.propTypes={children:_r().node.isRequired,title:_r().string.isRequired,description:_r().node};const ys=({settings:t})=>{const r=Ma(t);return r.type?(0,e.createElement)(o.Alert,{variant:"cannot_write_htaccess"===r.type||"cannot_write_file"===r.type?"error":"warning",className:"yst-mb-8 yst-max-w-[578px]"},r.message,"apache_include_file"===r.type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("br",null),(0,e.createElement)("code",null,"Include ",r.filePath)),"nginx_include_file"===r.type&&(0,e.createElement)(e.Fragment,null,(0,e.createElement)("br",null),(0,e.createElement)("code",null,"include ",r.filePath,";"))):null};function vs(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=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(n,vs),n}var gs,ws,bs=((ws=bs||{})[ws.None=0]="None",ws[ws.RenderStrategy=1]="RenderStrategy",ws[ws.Static=2]="Static",ws),Es=((gs=Es||{})[gs.Unmount=0]="Unmount",gs[gs.Hidden=1]="Hidden",gs);function _s({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:a,visible:s=!0,name:i}){let o=xs(t,e);if(s)return Ss(o,r,n,i);let l=null!=a?a:0;if(2&l){let{static:e=!1,...t}=o;if(e)return Ss(t,r,n,i)}if(1&l){let{unmount:e=!0,...t}=o;return vs(e?0:1,{0:()=>null,1:()=>Ss({...t,hidden:!0,style:{display:"none"}},r,n,i)})}return Ss(o,r,n,i)}function Ss(t,r={},n,a){let{as:s=n,children:i,refName:o="ref",...l}=Ts(t,["unmount","static"]),c=void 0!==t.ref?{[o]:t.ref}:{},u="function"==typeof i?i(r):i;l.className&&"function"==typeof l.className&&(l.className=l.className(r));let d={};if(s===e.Fragment&&Object.keys(Rs(l)).length>0){if(!(0,e.isValidElement)(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> 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"));return(0,e.cloneElement)(u,Object.assign({},xs(u.props,Rs(Ts(l,["ref"]))),d,c))}return(0,e.createElement)(s,Object.assign({},Ts(l,["ref"]),s!==e.Fragment&&c,s!==e.Fragment&&d),u)}function xs(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(null!=r[e]||(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map((e=>[e,void 0]))));for(let e in r)Object.assign(t,{[e](t,...n){let a=r[e];for(let e of a){if(t.defaultPrevented)return;e(t,...n)}}});return t}function Fs(t){var r;return Object.assign((0,e.forwardRef)(t),{displayName:null!=(r=t.displayName)?r:t.name})}function Rs(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function Ts(e,t=[]){let r=Object.assign({},e);for(let e of t)e in r&&delete r[e];return r}let Cs=(0,e.createContext)(null);Cs.displayName="OpenClosedContext";var ks=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ks||{});function Os(){return(0,e.useContext)(Cs)}function $s({value:t,children:r}){return e.createElement(Cs.Provider,{value:t},r)}let As="undefined"!=typeof window?e.useLayoutEffect:e.useEffect,Ps={serverHandoffComplete:!1};function Ds(){let[t,r]=(0,e.useState)(Ps.serverHandoffComplete);return(0,e.useEffect)((()=>{!0!==t&&r(!0)}),[t]),(0,e.useEffect)((()=>{!1===Ps.serverHandoffComplete&&(Ps.serverHandoffComplete=!0)}),[]),t}var Ns;let Ms=0;function js(){return++Ms}let Ls=null!=(Ns=e.useId)?Ns:function(){let t=Ds(),[r,n]=e.useState(t?js:null);return As((()=>{null===r&&n(js())}),[r]),null!=r?""+r:void 0};function Is(){let t=(0,e.useRef)(!1);return As((()=>(t.current=!0,()=>{t.current=!1})),[]),t}function Us(t){let r=(0,e.useRef)(t);return As((()=>{r.current=t}),[t]),r}let Bs=function(t){let r=Us(t);return e.useCallback(((...e)=>r.current(...e)),[r])},Vs=Symbol();function zs(...t){let r=(0,e.useRef)(t);(0,e.useEffect)((()=>{r.current=t}),[t]);let n=Bs((e=>{for(let t of r.current)null!=t&&("function"==typeof t?t(e):t.current=e)}));return t.every((e=>null==e||(null==e?void 0:e[Vs])))?void 0:n}function Hs(){let e=[],t=[],r={enqueue(e){t.push(e)},addEventListener:(e,t,n,a)=>(e.addEventListener(t,n,a),r.add((()=>e.removeEventListener(t,n,a)))),requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return r.add((()=>cancelAnimationFrame(t)))},nextFrame:(...e)=>r.requestAnimationFrame((()=>r.requestAnimationFrame(...e))),setTimeout(...e){let t=setTimeout(...e);return r.add((()=>clearTimeout(t)))},add:t=>(e.push(t),()=>{let r=e.indexOf(t);if(r>=0){let[t]=e.splice(r,1);t()}}),dispose(){for(let t of e.splice(0))t()},async workQueue(){for(let e of t.splice(0))await e()}};return r}function qs(e,...t){e&&t.length>0&&e.classList.add(...t)}function Ws(e,...t){e&&t.length>0&&e.classList.remove(...t)}var Gs=(e=>(e.Ended="ended",e.Cancelled="cancelled",e))(Gs||{});function Ys({container:t,direction:r,classes:n,events:a,onStart:s,onStop:i}){let o=Is(),l=function(){let[t]=(0,e.useState)(Hs);return(0,e.useEffect)((()=>()=>t.dispose()),[t]),t}(),c=Us(r),u=Bs((()=>vs(c.current,{enter:()=>a.current.beforeEnter(),leave:()=>a.current.beforeLeave(),idle:()=>{}}))),d=Bs((()=>vs(c.current,{enter:()=>a.current.afterEnter(),leave:()=>a.current.afterLeave(),idle:()=>{}})));As((()=>{let e=Hs();l.add(e.dispose);let r=t.current;if(r&&"idle"!==c.current&&o.current)return e.dispose(),u(),s.current(c.current),e.add(function(e,t,r,n){let a=r?"enter":"leave",s=Hs(),i=void 0!==n?function(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}(n):()=>{},o=vs(a,{enter:()=>t.enter,leave:()=>t.leave}),l=vs(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=vs(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Ws(e,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),qs(e,...o,...c),s.nextFrame((()=>{Ws(e,...c),qs(e,...l),function(e,t){let r=Hs();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:a}=getComputedStyle(e),[s,i]=[n,a].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(s+i!==0){let n=[];n.push(r.addEventListener(e,"transitionrun",(a=>{a.target===a.currentTarget&&(n.splice(0).forEach((e=>e())),n.push(r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t("ended"),n.splice(0).forEach((e=>e())))})),r.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(t("cancelled"),n.splice(0).forEach((e=>e())))}))))})))}else t("ended");r.add((()=>t("cancelled"))),r.dispose}(e,(r=>("ended"===r&&(Ws(e,...o),qs(e,...t.entered)),i(r))))})),s.dispose}(r,n.current,"enter"===c.current,(t=>{e.dispose(),vs(t,{[Gs.Ended](){d(),i.current(c.current)},[Gs.Cancelled]:()=>{}})}))),e.dispose}),[r])}function Js(e=""){return e.split(" ").filter((e=>e.trim().length>1))}let Ks=(0,e.createContext)(null);Ks.displayName="TransitionContext";var Zs,Qs=((Zs=Qs||{}).Visible="visible",Zs.Hidden="hidden",Zs);let Xs=(0,e.createContext)(null);function ei(e){return"children"in e?ei(e.children):e.current.filter((({state:e})=>"visible"===e)).length>0}function ti(t){let r=Us(t),n=(0,e.useRef)([]),a=Is(),s=Bs(((e,t=Es.Hidden)=>{let s=n.current.findIndex((({id:t})=>t===e));-1!==s&&(vs(t,{[Es.Unmount](){n.current.splice(s,1)},[Es.Hidden](){n.current[s].state="hidden"}}),function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{var e;!ei(n)&&a.current&&(null==(e=r.current)||e.call(r))})))})),i=Bs((e=>{let t=n.current.find((({id:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):n.current.push({id:e,state:"visible"}),()=>s(e,Es.Unmount)}));return(0,e.useMemo)((()=>({children:n,register:i,unregister:s})),[i,s,n])}function ri(){}Xs.displayName="NestingContext";let ni=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ai(e){var t;let r={};for(let n of ni)r[n]=null!=(t=e[n])?t:ri;return r}let si=bs.RenderStrategy,ii=Fs((function(t,r){let{beforeEnter:n,afterEnter:a,beforeLeave:s,afterLeave:i,enter:o,enterFrom:l,enterTo:c,entered:u,leave:d,leaveFrom:p,leaveTo:m,...f}=t,h=(0,e.useRef)(null),y=zs(h,r),[v,g]=(0,e.useState)("visible"),w=f.unmount?Es.Unmount:Es.Hidden,{show:b,appear:E,initial:_}=function(){let t=(0,e.useContext)(Ks);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),{register:S,unregister:x}=function(){let t=(0,e.useContext)(Xs);if(null===t)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}(),F=(0,e.useRef)(null),R=Ls();(0,e.useEffect)((()=>{if(R)return S(R)}),[S,R]),(0,e.useEffect)((()=>{if(w===Es.Hidden&&R){if(b&&"visible"!==v)return void g("visible");vs(v,{hidden:()=>x(R),visible:()=>S(R)})}}),[v,R,S,x,b,w]);let T=Us({enter:Js(o),enterFrom:Js(l),enterTo:Js(c),entered:Js(u),leave:Js(d),leaveFrom:Js(p),leaveTo:Js(m)}),C=function(t){let r=(0,e.useRef)(ai(t));return(0,e.useEffect)((()=>{r.current=ai(t)}),[t]),r}({beforeEnter:n,afterEnter:a,beforeLeave:s,afterLeave:i}),k=Ds();(0,e.useEffect)((()=>{if(k&&"visible"===v&&null===h.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[h,v,k]);let O=_&&!E,$=!k||O||F.current===b?"idle":b?"enter":"leave",A=(0,e.useRef)(!1),P=ti((()=>{A.current||(g("hidden"),x(R))}));Ys({container:h,classes:T,events:C,direction:$,onStart:Us((()=>{A.current=!0})),onStop:Us((e=>{A.current=!1,"leave"===e&&!ei(P)&&(g("hidden"),x(R))}))}),(0,e.useEffect)((()=>{!O||(w===Es.Hidden?F.current=null:F.current=b)}),[b,O,v]);let D=f,N={ref:y};return e.createElement(Xs.Provider,{value:P},e.createElement($s,{value:vs(v,{visible:ks.Open,hidden:ks.Closed})},_s({ourProps:N,theirProps:D,defaultTag:"div",features:si,visible:"visible"===v,name:"Transition.Child"})))})),oi=Fs((function(t,r){let{show:n,appear:a=!1,unmount:s,...i}=t,o=(0,e.useRef)(null),l=zs(o,r);Ds();let c=Os();if(void 0===n&&null!==c&&(n=vs(c,{[ks.Open]:!0,[ks.Closed]:!1})),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[u,d]=(0,e.useState)(n?"visible":"hidden"),p=ti((()=>{d("hidden")})),[m,f]=(0,e.useState)(!0),h=(0,e.useRef)([n]);As((()=>{!1!==m&&h.current[h.current.length-1]!==n&&(h.current.push(n),f(!1))}),[h,n]);let y=(0,e.useMemo)((()=>({show:n,appear:a,initial:m})),[n,a,m]);(0,e.useEffect)((()=>{if(n)d("visible");else if(ei(p)){let e=o.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,p]);let v={unmount:s};return e.createElement(Xs.Provider,{value:p},e.createElement(Ks.Provider,{value:y},_s({ourProps:{...v,as:e.Fragment,children:e.createElement(ii,{ref:l,...v,...i})},theirProps:{},defaultTag:e.Fragment,features:si,visible:"visible"===u,name:"Transition"})))})),li=Fs((function(t,r){let n=null!==(0,e.useContext)(Ks),a=null!==Os();return e.createElement(e.Fragment,null,!n&&a?e.createElement(oi,{ref:r,...t}):e.createElement(ii,{ref:r,...t}))})),ci=Object.assign(oi,{Child:li,Root:oi});const ui=()=>{const t=(()=>{const{fetchRedirectsSettings:e}=Yr(),t=Kr("selectSettings");return(0,i.useEffect)((()=>{e()}),[]),t})(),r=Kr("selectSettingsStatus"),n=Kr("selectLink",[],"https://yoa.st/redirects-method-learn-more/"),a=(0,i.useMemo)((()=>null!=t&&t.is_apache?"PHP/.htaccess":(0,mt.sprintf)(
/**
* translators: %1$s expands to PHP.
*/
/**
* translators: %1$s expands to PHP.
*/
(0,mt.__)("%1$s/Web server","wordpress-seo-premium"),"PHP")),[null==t?void 0:t.is_apache]),s=(0,i.useMemo)((()=>null!=t&&t.is_apache?Cr((0,mt.sprintf)(/* translators: %1$s expands to `.htaccess` within a <code> tag. */ /* translators: %1$s expands to `.htaccess` within a <code> tag. */
(0,mt.__)("By default, Yoast SEO Premium uses PHP-based redirects. Alternatively, you can write redirects to the %1$s file. Make sure the %1$s file is writable.","wordpress-seo-premium"),"<code/>"),{code:(0,e.createElement)(o.Code,null,".htaccess")}):Cr((0,mt.sprintf)(/* translators: %1$s and %2$s expand to a opening and closing <em> tags. */ /* translators: %1$s and %2$s expand to a opening and closing <em> tags. */
(0,mt.__)("By default, Yoast SEO Premium uses PHP-based redirects. Alternatively, you can generate a redirect file to use in your web server's configuration. %1$sOnly select this if you're confident managing web server configuration.%2$s","wordpress-seo-premium"),"<em>","</em>"),{code:(0,e.createElement)(o.Code,null,".htaccess"),em:(0,e.createElement)("em",null)})),[null==t?void 0:t.is_apache]),l=(0,i.useMemo)((()=>null!=t&&t.is_apache?".htaccess":(0,mt.__)("Web Server","wordpress-seo-premium")),[null==t?void 0:t.is_apache]),c=(0,i.useMemo)((()=>Cr((0,mt.sprintf)(
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
(0,mt.__)("Choose how you want to handle redirects for your site. Learn more about redirect methods. %1$sLearn more about redirect settings%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,e.createElement)("a",{href:n,target:"_blank",rel:"noopener noreferrer"})})),[]);return r!==O?(0,e.createElement)(hs,{title:(0,mt.__)("Redirect Method","wordpress-seo-premium"),description:c},(0,e.createElement)("div",{className:"yst-flex yst-items-center yst-justify-center yst-my-8"},(0,e.createElement)(o.Spinner,{size:"8"}))):(0,e.createElement)(hs,{title:(0,mt.__)("Redirect Method","wordpress-seo-premium"),description:c},(0,e.createElement)(Zt,{initialValues:{disable_php_redirect:null==t?void 0:t.disable_php_redirect,separate_file:null==t?void 0:t.separate_file},enableReinitialize:!0,onSubmit:xn},(0,e.createElement)(hn,null,(0,e.createElement)("div",{className:"yst-max-w-5xl"},(0,e.createElement)(ys,{settings:t}),(0,e.createElement)(xr,{title:a,description:s,variant:"xl"},(0,e.createElement)(o.RadioGroup,{name:"disable_php_redirect"},(0,e.createElement)(rr,{as:o.Radio,type:"radio",name:"disable_php_redirect",id:"yst-input-php-disable_php_redirect",label:(0,mt.__)("PHP","wordpress-seo-premium"),value:"off"}),(0,e.createElement)(rr,{as:o.Radio,type:"radio",name:"disable_php_redirect",id:"yst-input-webserver-disable_php_redirect",label:l,value:"on"}))),(0,e.createElement)(kr,{isApache:null==t?void 0:t.is_apache})))))},di=()=>{const t=Kr("selectLink",[],"https://yoa.st/redirects-learn-more"),r=(0,i.useRef)(),[n,a]=(0,i.useState)(!1),[s,l]=(0,i.useState)(null),[c,u]=(0,i.useState)(null),[d,p]=(0,i.useState)(""),m=Kr("selectRedirectsStatus"),f=(0,i.useMemo)((()=>Cr((0,mt.sprintf)(
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
(0,mt.__)("Manage and monitor your redirects with ease. Create and edit plain redirects to ensure visitors and search engines reach the right pages. %1$sLearn more about redirects%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,e.createElement)("a",{href:t,target:"_blank",rel:"noopener noreferrer"})})),[]),h=(0,i.useCallback)((()=>{a((e=>!e))}),[]),y=(0,i.useCallback)((async(e,t)=>(l(e),u(t),await En(e,t,!1,(e=>{p(e||""),h()})))),[]),v=(0,i.useCallback)((async()=>{s&&c&&(await En(s,c,!0,h),a(!1))}),[s,c]);return(0,e.createElement)(hs,{title:(0,mt.__)("Redirects","wordpress-seo-premium"),description:f},(0,e.createElement)(Zt,{initialValues:Ir,validationSchema:$a().shape({origin:da().required((0,mt.__)("Please enter the old URL.","wordpress-seo-premium")),target:da().when("type",{is:e=>!Wr.includes(e),then:e=>e.required((0,mt.__)("Please enter the new URL.","wordpress-seo-premium")),otherwise:e=>e})}),onSubmit:y},(({isSubmitting:t,status:a})=>(0,e.createElement)(nr,{className:"yst-max-w-5xl yst-p-8"},(0,e.createElement)(xr,{title:(0,mt.__)("Plain redirects","wordpress-seo-premium"),description:(0,mt.__)("Plain redirects automatically send visitors from one URL to another. Use them to fix broken links and improve your site's user experience.","wordpress-seo-premium"),variant:"xl"},(0,e.createElement)(on,{error:a}),(0,e.createElement)(o.Button,{id:"yst-button-submit-redirect",type:"submit",isLoading:t,disabled:t},(0,mt.__)("Add redirect","wordpress-seo-premium"))),(0,e.createElement)(Ba,{isOpen:n,onClose:h,onConfirm:v,errorMessage:d,isLoading:m.add===k,focusRef:r})))),(0,e.createElement)("div",{className:"yst-max-w-5xl yst-px-8 yst-pb-8"},(0,e.createElement)("hr",{className:"yst-mb-8"}),(0,e.createElement)(rn,null),(0,e.createElement)(Va,null)))},pi=()=>{const t=Kr("selectLink",[],"https://yoa.st/3lo"),r=Zr(Lr),n=Kr("selectRedirectsStatus"),a=(0,i.useRef)(),[s,l]=(0,i.useState)(!1),[c,u]=(0,i.useState)(null),[d,p]=(0,i.useState)(null),[m,f]=(0,i.useState)(""),h=(0,i.useCallback)((()=>{l((e=>!e))}),[]),y=(0,i.useCallback)((async(e,t)=>(u(e),p(t),await En(e,t,!1,(e=>{f(e||""),h()})))),[]),v=(0,i.useCallback)((async()=>{c&&d&&(await En(c,d,!0,h),l(!1))}),[c,d]),g=(0,i.useMemo)((()=>Cr((0,mt.sprintf)(
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
(0,mt.__)("Redirect multiple URLs at once by using regular expressions (regex). Match similar URLs with one rule to fix broken links, move content, or manage changes to your site’s structure. %1$sLearn more about regex redirects%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,e.createElement)("a",{href:t,target:"_blank",rel:"noopener noreferrer"})})),[]),w=(0,i.useMemo)((()=>Cr((0,mt.sprintf)(
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
/**
* translators: %1$s expands to an opening anchor tag.
* %2$s expands to a closing anchor tag.
*/
(0,mt.__)("Define redirect rules using regular expressions to match multiple URLs with a single expression. Ideal for complex URL structures or major content updates. See real-world %1$sregex redirect examples%2$s.","wordpress-seo-premium"),"<a>","</a>"),{a:(0,e.createElement)("a",{href:t,target:"_blank",rel:"noopener noreferrer"})})),[]);return(0,e.createElement)(hs,{title:(0,mt.__)("Regex redirects","wordpress-seo-premium"),description:g},(0,e.createElement)(Zt,{initialValues:Ur,validationSchema:$a().shape({origin:da().required((0,mt.__)("Please enter the regular expression.","wordpress-seo-premium")),target:da().when("type",{is:e=>!Wr.includes(e),then:e=>e.required((0,mt.__)("Please enter the URL.","wordpress-seo-premium")),otherwise:e=>e})}),onSubmit:y},(({isSubmitting:t,status:i})=>(0,e.createElement)(nr,{className:"yst-max-w-5xl yst-p-8"},n.fetch===O&&!(null!=r&&r.length)&&(0,e.createElement)(o.Alert,{variant:"info",className:"yst-mb-8 yst-max-w-[578px]"},(0,e.createElement)("span",{className:"yst-text-blue-800 "},(0,e.createElement)("span",{className:"yst-font-medium"},(0,mt.__)("Note:","wordpress-seo-premium"))," ",(0,mt.__)("Only use regex redirects if you know how to apply them correctly. Incorrect settings may break your site or cause unexpected issues.","wordpress-seo-premium"))),(0,e.createElement)(xr,{title:(0,mt.__)("Set up regex redirects","wordpress-seo-premium"),description:w,variant:"xl"},(0,e.createElement)(on,{format:Lr,error:i}),(0,e.createElement)(o.Button,{id:"yst-button-submit-regex-redirects",type:"submit",isLoading:t,disabled:t},(0,mt.__)("Add redirect","wordpress-seo-premium"))),(0,e.createElement)(Ba,{isOpen:s,onClose:h,onConfirm:v,errorMessage:m,isLoading:n.add===k,focusRef:a})))),(0,e.createElement)("div",{className:"yst-max-w-5xl yst-px-8 yst-pb-8"},(0,e.createElement)("hr",{className:"yst-mb-8"}),(0,e.createElement)(rn,{format:Lr}),(0,e.createElement)(Va,{format:Lr})))},mi=()=>{const{pathname:t}=je();return(0,e.createElement)(ci,{key:t,appear:!0,show:!0,enter:"yst-transition-opacity yst-delay-100 yst-duration-300",enterFrom:"yst-opacity-0",enterTo:"yst-opacity-100"},(0,e.createElement)(tt,null,(0,e.createElement)(Xe,{index:!0,path:"/",element:(0,e.createElement)(Fr,null,(0,e.createElement)(di,null)),errorElement:(0,e.createElement)(Ka,null)}),(0,e.createElement)(Xe,{path:Br,element:(0,e.createElement)(Fr,null,(0,e.createElement)(pi,null)),errorElement:(0,e.createElement)(Ka,null)}),(0,e.createElement)(Xe,{path:Vr,element:(0,e.createElement)(Fr,null,(0,e.createElement)(ui,null)),errorElement:(0,e.createElement)(Ka,null)}),(0,e.createElement)(Xe,{path:"*",element:(0,e.createElement)(Qe,{to:"/",replace:!0})})))},fi=()=>{const{pathname:t}=je();return(0,e.createElement)(e.Fragment,null,(0,e.createElement)(o.SidebarNavigation,{activePath:t},(0,e.createElement)(o.SidebarNavigation.Mobile,{openButtonId:"yst-button-open-redirects-navigation-mobile",closeButtonId:"yst-button-close-redirects-navigation-mobile"
/* translators: Hidden accessibility text. */,openButtonScreenReaderText:(0,mt.__)("Open redirects navigation","wordpress-seo-premium")
/* translators: Hidden accessibility text. */,closeButtonScreenReaderText:(0,mt.__)("Close redirects navigation","wordpress-seo-premium"),"aria-label":(0,mt.__)("Redirects navigation","wordpress-seo-premium")},(0,e.createElement)(Ga,{idSuffix:"-mobile"})),(0,e.createElement)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-gap-4"},(0,e.createElement)("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"},(0,e.createElement)(o.SidebarNavigation.Sidebar,null,(0,e.createElement)(Ga,null))),(0,e.createElement)("div",{className:"yst-grow yst-max-w-page"},(0,e.createElement)("div",{className:"yst-space-y-6 yst-mb-8 xl:yst-mb-0"},(0,e.createElement)(o.Paper,{as:"main"},(0,e.createElement)(mi,null)))))),(0,e.createElement)(Ja,null))},hi=()=>{const t=document.createElement("div"),r=t.attachShadow({mode:"open"});return document.body.appendChild(t),(0,e.createElement)(pt.StyleSheetManager,{target:r},(0,e.createElement)(G.SlotFillProvider,null,(0,e.createElement)(it,{future:{v7_startTransition:!0,v7_relativeSplatPath:!0}},(0,e.createElement)(fi,null))))},yi="filterRedirects",vi=(0,c.createSlice)({name:yi,initialState:{bulkAction:"",filterRedirectType:"",searchRedirects:"",selectedRedirects:[]},reducers:{setBulkAction(e,t){e.bulkAction=t.payload},setFilterRedirectType(e,t){e.filterRedirectType=t.payload},setSearchRedirects(e,t){e.searchRedirects=t.payload},setSelectedRedirects(e,t){e.selectedRedirects=t.payload},toggleSelectRedirect(e,t){const r=t.payload;e.selectedRedirects.includes(r)?e.selectedRedirects=e.selectedRedirects.filter((e=>e!==r)):e.selectedRedirects.push(r)},clearSelectedRedirects(e){e.selectedRedirects=[]},resetFilters(e){e.bulkAction="",e.filterRedirectType="",e.searchRedirects="",e.selectedRedirects=[]}}}),gi=vi.actions,wi=vi.getInitialState,bi={selectBulkAction:e=>e[yi].bulkAction,selectFilterRedirectType:e=>e[yi].filterRedirectType,selectSearchRedirects:e=>e[yi].searchRedirects,selectSelectedRedirects:e=>e[yi].selectedRedirects},Ei=vi.reducer,_i="preferences",Si=(0,c.createSlice)({name:_i,initialState:{isRtl:!1},reducers:{}}),xi=Si.getInitialState,Fi={selectPreference:(e,t,r={})=>(0,l.get)(e,[_i,t],r),selectPreferences:e=>(0,l.get)(e,_i,{})},Ri=Si.actions,Ti=Si.reducer,Ci="redirects",ki="fetchRedirects",Oi="addRedirect",$i="editRedirect",Ai="deleteRedirect",Pi=(0,c.createEntityAdapter)({selectId:e=>e.origin});let Di;const Ni=e=>({format:e.format,type:e.type,origin:e.origin,target:e.target}),Mi=e=>({...e,type:String(e.type)}),ji=(0,c.createSlice)({name:"redirects",initialState:Pi.getInitialState({status:{fetch:C,add:C,edit:C,remove:C},error:{fetch:"",add:"",edit:"",remove:""},globalError:""}),reducers:{addOneRedirect:{reducer:(e,t)=>{const r=t.payload;e.entities[r.origin]=r,e.ids.push(r.origin)},prepare:e=>({payload:Ni(e)})},addManyRedirects:{reducer:Pi.addMany,prepare:e=>({payload:(0,l.map)(e,Ni)})},updateOneRedirect:{reducer:Pi.updateOne,prepare:e=>({payload:{id:e.origin,changes:Ni(e)}})},removeOneRedirect:Pi.removeOne,removeManyRedirects:Pi.removeMany,setGlobalError:(e,t)=>{e.globalError=t.payload},clearGlobalError:e=>{e.globalError=""}},extraReducers:e=>{e.addCase(`${$i}/${F}`,(e=>{e.status.edit=k,e.error.edit=""})),e.addCase(`${$i}/${R}`,(e=>{e.status.edit=O,e.error.edit=""})),e.addCase(`${$i}/${T}`,((e,t)=>{e.status.edit=$,e.error.edit=t.payload})),e.addCase(`${Oi}/${F}`,(e=>{e.status.add=k,e.error.add=""})),e.addCase(`${Oi}/${R}`,((e,{payload:t})=>{e.status.add=O,e.error.add="";const r=Ni(t);e.entities[r.origin]=r,e.ids.push(r.origin)})),e.addCase(`${Oi}/${T}`,((e,t)=>{e.status.add=$,e.error.add=t.payload})),e.addCase(`${ki}/${F}`,(e=>{e.status.fetch=k,e.error.fetch=""})),e.addCase(`${ki}/${R}`,((e,t)=>{e.status.fetch=O,e.error.fetch="",Pi.setAll(e,(0,l.map)(t.payload,Ni))})),e.addCase(`${ki}/${T}`,((e,t)=>{e.status.fetch=$,e.error.fetch=t.payload})),e.addCase(`${Ai}/${F}`,(e=>{e.status.remove=k,e.error.remove=""})),e.addCase(`${Ai}/${R}`,(e=>{e.status.remove=O,e.error.remove=""})),e.addCase(`${Ai}/${T}`,((e,t)=>{e.status.remove=$,e.error.remove=t.payload}))}}),Li=ji.getInitialState,Ii=Pi.getSelectors((e=>e.redirects)),Ui={selectRedirectIds:Ii.selectIds,selectRedirectById:Ii.selectById,selectRedirectEntities:Ii.selectEntities,selectAllRedirects:Ii.selectAll,selectRedirectsStatus:e=>e.redirects.status,selectGlobalError:e=>e.redirects.globalError};Ui.selectRedirectsWithType=(0,c.createSelector)([Ui.selectAllRedirects,(e,t)=>t],((e,t)=>e.filter((e=>e.type===t))));const Bi={[ki]:async({payload:e})=>{var t;return null===(t=Di)||void 0===t||t.abort(),Di=new AbortController,x()({path:`/yoast/v1/redirects/list?format=${e}`,signal:Di.signal})},[Oi]:async({payload:e})=>x()({path:"/yoast/v1/redirects",method:"POST",data:e}),[$i]:async({payload:e})=>x()({path:"/yoast/v1/redirects/update",method:"PUT",data:e}),[Ai]:async({payload:e})=>x()({path:"/yoast/v1/redirects/delete",method:"POST",data:e})},Vi={...ji.actions,fetchRedirects:function*(e){yield{type:`${ki}/${F}`};try{const t=yield{type:ki,payload:e};yield{type:`${ki}/${R}`,payload:null!=t&&t.redirects?Object.values(t.redirects):[]}}catch(e){yield{type:`${ki}/${T}`,payload:e}}},addRedirectAsync:function*(e){yield{type:`${Oi}/${F}`};try{const t=yield{type:Oi,payload:e};if(!t.success)throw t;const r={format:e.format,type:e.type,origin:e.origin,target:e.target||""};yield{type:`${Oi}/${R}`,payload:r}}catch(e){throw yield{type:`${Oi}/${T}`,payload:e},e}},deleteRedirectAsync:function*(e){yield{type:`${Ai}/${F}`};try{const t=yield{type:Ai,payload:Mi(e)};return yield{type:"redirects/removeOneRedirect",payload:e.origin},{type:`${Ai}/${R}`,payload:t}}catch(e){throw yield{type:`${Ai}/${T}`,payload:e},e}},editRedirectAsync:function*(e){yield{type:`${$i}/${F}`};try{const t=yield{type:$i,payload:e};return e.old_origin===e.new_origin?yield{type:"redirects/updateOneRedirect",payload:{id:e.old_origin,changes:{format:e.format,type:e.new_type,origin:e.new_origin,target:e.new_target||""}}}:(yield{type:"redirects/removeOneRedirect",payload:e.old_origin},yield{type:"redirects/addOneRedirect",payload:{format:e.format,type:e.new_type,origin:e.new_origin,target:e.new_target||""}}),{type:`${$i}/${R}`,payload:t}}catch(e){throw yield{type:`${$i}/${T}`,payload:e},e}},deleteMultipleRedirectsAsync:function*(e){yield{type:`${Ai}/${F}`};try{for(const t of e)yield{type:Ai,payload:Mi(t)};yield{type:"redirects/removeManyRedirects",payload:e.map((e=>e.origin))},yield{type:`${Ai}/${R}`}}catch(e){throw yield{type:`${Ai}/${T}`,payload:e},e}}},zi=ji.reducer,Hi=(0,c.createEntityAdapter)(),qi="redirectsSettings",Wi="fetchRedirectsSettings",Gi="editRedirectsSettings";let Yi;function*Ji(){yield{type:`${Wi}/${F}`};try{const e=yield{type:Wi};yield{type:`${Wi}/${R}`,payload:e}}catch(e){yield{type:`${Wi}/${T}`,payload:e}}}const Ki=Hi.getInitialState({status:C,error:"",settings:{is_apache:!1,disable_php_redirect:"off",separate_file:"off",file_path:""}}),Zi=(0,c.createSlice)({name:qi,initialState:Ki,reducers:{},extraReducers:e=>{e.addCase(`${Wi}/${F}`,(e=>{e.status=k})),e.addCase(`${Wi}/${R}`,((e,t)=>{e.status=O,e.settings=t.payload})),e.addCase(`${Wi}/${T}`,((e,t)=>{e.status=$,e.error=t.payload}))}}),Qi=Zi.getInitialState,Xi={selectSettings:e=>e[qi].settings,selectSettingsStatus:e=>e[qi].status,selectSettingsError:e=>e[qi].error},eo={[Wi]:async()=>{var e;return null===(e=Yi)||void 0===e||e.abort(),Yi=new AbortController,await x()({path:"/yoast/v1/redirects/settings",signal:Yi.signal})},[Gi]:async({payload:e})=>x()({path:"/yoast/v1/redirects/settings",method:"PUT",data:e})},to={...Zi.actions,fetchRedirectsSettings:Ji,editRedirectsSettingsAsync:function*(e){return yield{type:Gi,payload:e},yield*Ji(),{type:`${Gi}/${R}`,payload:null}}},ro=Zi.reducer;s()((()=>{var t;const r=document.getElementById("yoast-seo-redirects");if(!r)return;(({initialState:e={}}={})=>{(0,n.register)((({initialState:e})=>(0,n.createReduxStore)($r,{actions:{...q,...gi,...E,...L,...Ri,...Vi,...to},selectors:{...H,...bi,...b,...j,...Fi,...Ui,...Xi},initialState:(0,l.merge)({},{[B]:z(),[yi]:wi(),[v]:w(),[D]:M(),[_i]:xi(),[Ci]:Li(),[qi]:Qi()},e),reducer:(0,n.combineReducers)({[B]:W,[yi]:Ei,[v]:_,[D]:I,[_i]:Ti,[Ci]:zi,[qi]:ro}),controls:{...Bi,...eo}}))({initialState:e}))})({initialState:{[v]:(0,l.get)(window,"wpseoScriptData.linkParams",{}),[_i]:{homeUrl:window.location.origin,...(0,l.get)(window,"wpseoScriptData.preferences",{})}}});const a=null===(t=(0,n.select)($r))||void 0===t?void 0:t.selectPreference("isRtl",!1);(0,i.createRoot)(r).render((0,e.createElement)(o.Root,{context:{isRtl:a}},(0,e.createElement)(hi,null)))}))})()})();