AlkantarClanX12

Your IP : 216.73.217.24


Current Path : /www/capitalgmcbuickregina_830/public/wp-content/plugins/wordpress-seo/js/dist/
Upload File :
Current File : /www/capitalgmcbuickregina_830/public/wp-content/plugins/wordpress-seo/js/dist/bulk-editor-page.js

(()=>{var e={818(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M12.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=a},998(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=a},1298(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"}))});e.exports=a},1609(e){"use strict";e.exports=window.React},1802(e){"use strict";e.exports=window.yoast.propTypes},2353(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"}))});e.exports=a},2485(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)){if(r.length){var o=a.apply(null,r);o&&e.push(o)}}else if("object"===s){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},2514(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 11V7a4 4 0 118 0m-4 8v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2z"}))});e.exports=a},3473(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 8l4 4m0 0l-4 4m4-4H3"}))});e.exports=a},3527(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"}))});e.exports=a},3626(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M9.707 16.707a1 1 0 01-1.414 0l-6-6a1 1 0 010-1.414l6-6a1 1 0 011.414 1.414L5.414 9H17a1 1 0 110 2H5.414l4.293 4.293a1 1 0 010 1.414z",clipRule:"evenodd"}))});e.exports=a},4198(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var s=typeof r;if("string"===s||"number"===s)e.push(r);else if(Array.isArray(r)&&r.length){var o=a.apply(null,r);o&&e.push(o)}else if("object"===s)for(var i in r)n.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r)}()},4892(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"}))});e.exports=a},5074(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.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"}))});e.exports=a},5687(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10.293 5.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 11H5a1 1 0 110-2h7.586l-2.293-2.293a1 1 0 010-1.414z",clipRule:"evenodd"}))});e.exports=a},5770(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"}))});e.exports=a},6650(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=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},s=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=c(r(1609)),i=c(r(1802)),l=c(r(4198));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"},h=["animateOpacity","animationStateClasses","applyInlineTransitions","children","contentClassName","delay","duration","easing","height","onAnimationEnd","onAnimationStart"];function p(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(!r.length)return e;for(var a={},s=Object.keys(e),o=0;o<s.length;o++){var i=s[o];-1===r.indexOf(i)&&(a[i]=e[i])}return a}function f(e){e.forEach(function(e){return cancelAnimationFrame(e)})}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}function y(e){return"string"==typeof e&&e.search("%")===e.length-1&&m(e.substr(0,e.length-1))}function g(e,t){e&&"function"==typeof e&&e(t)}var v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));r.animationFrameIDs=[];var n="auto",s="visible";m(e.height)?(n=e.height<0||"0"===e.height?0:e.height,s="hidden"):y(e.height)&&(n="0%"===e.height?0:e.height,s="hidden"),r.animationStateClasses=a({},u,e.animationStateClasses);var o=r.getStaticStateClasses(n);return r.state={animationStateClasses:o,height:n,overflow:s,shouldUseTransitions:!1},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),s(t,[{key:"componentDidMount",value:function(){var e=this.state.height;this.contentElement&&this.contentElement.style&&this.hideContent(e)}},{key:"componentDidUpdate",value:function(e,t){var r,n,a=this,s=this.props,o=s.delay,i=s.duration,c=s.height,u=s.onAnimationEnd,h=s.onAnimationStart;if(this.contentElement&&c!==e.height){var p;this.showContent(t.height),this.contentElement.style.overflow="hidden";var v=this.contentElement.offsetHeight;this.contentElement.style.overflow="";var w=i+o,b=null,x={height:null,overflow:"hidden"},S="auto"===t.height;m(c)?(b=c<0||"0"===c?0:c,x.height=b):y(c)?(b="0%"===c?0:c,x.height=b):(b=v,x.height="auto",x.overflow=null),S&&(x.height=b,b=v);var k=(0,l.default)((d(p={},this.animationStateClasses.animating,!0),d(p,this.animationStateClasses.animatingUp,"auto"===e.height||c<e.height),d(p,this.animationStateClasses.animatingDown,"auto"===c||c>e.height),d(p,this.animationStateClasses.animatingToHeightZero,0===x.height),d(p,this.animationStateClasses.animatingToHeightAuto,"auto"===x.height),d(p,this.animationStateClasses.animatingToHeightSpecific,x.height>0),p)),E=this.getStaticStateClasses(x.height);this.setState({animationStateClasses:k,height:b,overflow:"hidden",shouldUseTransitions:!S}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),S?(x.shouldUseTransitions=!0,f(this.animationFrameIDs),this.animationFrameIDs=(r=function(){a.setState(x),g(h,{newHeight:x.height})},(n=[])[0]=requestAnimationFrame(function(){n[1]=requestAnimationFrame(function(){r()})}),n),this.animationClassesTimeoutID=setTimeout(function(){a.setState({animationStateClasses:E,shouldUseTransitions:!1}),a.hideContent(x.height),g(u,{newHeight:x.height})},w)):(g(h,{newHeight:b}),this.timeoutID=setTimeout(function(){x.animationStateClasses=E,x.shouldUseTransitions=!1,a.setState(x),"auto"!==c&&a.hideContent(b),g(u,{newHeight:b})},w))}}},{key:"componentWillUnmount",value:function(){f(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null,this.animationClassesTimeoutID=null,this.animationStateClasses=null}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,l.default)((d(t={},this.animationStateClasses.static,!0),d(t,this.animationStateClasses.staticHeightZero,0===e),d(t,this.animationStateClasses.staticHeightSpecific,e>0),d(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,r=this.props,n=r.animateOpacity,s=r.applyInlineTransitions,i=r.children,c=r.className,u=r.contentClassName,f=r.delay,m=r.duration,y=r.easing,g=r.id,v=r.style,w=this.state,b=w.height,x=w.overflow,S=w.animationStateClasses,k=w.shouldUseTransitions,E=a({},v,{height:b,overflow:x||v.overflow});k&&s&&(E.transition="height "+m+"ms "+y+" "+f+"ms",v.transition&&(E.transition=v.transition+", "+E.transition),E.WebkitTransition=E.transition);var j={};n&&(j.transition="opacity "+m+"ms "+y+" "+f+"ms",j.WebkitTransition=j.transition,0===b&&(j.opacity=0));var _=(0,l.default)((d(e={},S,!0),d(e,c,c),e)),C=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===b;return o.default.createElement("div",a({},p.apply(void 0,[this.props].concat(h)),{"aria-hidden":C,className:_,id:g,style:E}),o.default.createElement("div",{className:u,style:j,ref:function(e){return t.contentElement=e}},i))}}]),t}(o.default.Component);v.propTypes={"aria-hidden":i.default.bool,animateOpacity:i.default.bool,animationStateClasses:i.default.object,applyInlineTransitions:i.default.bool,children:i.default.any.isRequired,className:i.default.string,contentClassName:i.default.string,delay:i.default.number,duration:i.default.number,easing:i.default.string,height:function(e,t,r){var a=e[t];return"number"==typeof a&&a>=0||y(a)||"auto"===a?null:new TypeError('value "'+a+'" of type "'+(void 0===a?"undefined":n(a))+'" is invalid type for '+t+" in "+r+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:i.default.string,onAnimationEnd:i.default.func,onAnimationStart:i.default.func,style:i.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:u,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.A=v},6702(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"}))});e.exports=a},7219(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"}))});e.exports=a},8738(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",clipRule:"evenodd"}))});e.exports=a},8843(e,t,r){const n=r(1609),a=n.forwardRef(function(e,t){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 4a1 1 0 011-1h16a1 1 0 011 1v2.586a1 1 0 01-.293.707l-6.414 6.414a1 1 0 00-.293.707V17l-4 4v-6.586a1 1 0 00-.293-.707L3.293 7.293A1 1 0 013 6.586V4z"}))});e.exports=a}},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.wp.components,t=window.wp.data,n=window.wp.domReady;var a=r.n(n);const s=window.wp.element,o=window.wp.plugins,i=window.yoast.dashboardFrontend,l=window.lodash;var c=r(1609);const d=window.ReactDOM;function u(){return u=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},u.apply(this,arguments)}var h;!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(h||(h={}));const p="popstate";function f(e,t){if(!1===e||null==e)throw new Error(t)}function m(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function y(e,t){return{usr:e.state,key:e.key,idx:t}}function g(e,t,r,n){return void 0===r&&(r=null),u({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?w(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function v(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 w(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}function b(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:s=!1}=n,o=a.history,i=h.Pop,l=null,c=d();function d(){return(o.state||{idx:null}).idx}function m(){i=h.Pop;let e=d(),t=null==e?null:e-c;c=e,l&&l({action:i,location:b.location,delta:t})}function w(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:v(e);return r=r.replace(/ $/,"%20"),f(t,"No window.location.(origin|href) available to create URL for href: "+r),new URL(r,t)}null==c&&(c=0,o.replaceState(u({},o.state,{idx:c}),""));let b={get action(){return i},get location(){return e(a,o)},listen(e){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(p,m),l=e,()=>{a.removeEventListener(p,m),l=null}},createHref:e=>t(a,e),createURL:w,encodeLocation(e){let t=w(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){i=h.Push;let n=g(b.location,e,t);r&&r(n,e),c=d()+1;let u=y(n,c),p=b.createHref(n);try{o.pushState(u,"",p)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(p)}s&&l&&l({action:i,location:b.location,delta:1})},replace:function(e,t){i=h.Replace;let n=g(b.location,e,t);r&&r(n,e),c=d();let a=y(n,c),u=b.createHref(n);o.replaceState(a,"",u),s&&l&&l({action:i,location:b.location,delta:0})},go:e=>o.go(e)};return b}var x;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(x||(x={}));const S=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let s=[...r,String(a)],o="string"==typeof e.id?e.id:s.join("-");if(f(!0!==e.index||!e.children,"Cannot specify children on an index route"),f(!n[o],'Found a route id collision on id "'+o+"\".  Route id's must be globally unique within Data Router usages"),function(e){return!0===e.index}(e)){let r=u({},e,t(e),{id:o});return n[o]=r,r}{let r=u({},e,t(e),{id:o,children:void 0});return n[o]=r,e.children&&(r.children=k(e.children,t,s,n)),r}})}function E(e,t,r){return void 0===r&&(r="/"),j(e,t,r,!1)}function j(e,t,r,n){let a=B(("string"==typeof t?w(t):t).pathname||"/",r);if(null==a)return null;let s=_(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(s);let o=null;for(let e=0;null==o&&e<s.length;++e){let t=F(a);o=O(s[e],t,n)}return o}function _(e,t,r,n){void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===n&&(n="");let a=(e,a,s)=>{let o={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(f(o.relativePath.startsWith(n),'Absolute route path "'+o.relativePath+'" nested under path "'+n+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(n.length));let i=H([n,o.relativePath]),l=r.concat(o);e.children&&e.children.length>0&&(f(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+i+'".'),_(e.children,t,l,i)),(null!=e.path||e.index)&&t.push({path:i,score:M(i,e.index),routesMeta:l})};return e.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of C(e.path))a(e,t,r);else a(e,t)}),t}function C(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 o=C(n.join("/")),i=[];return i.push(...o.map(e=>""===e?s:[s,e].join("/"))),a&&i.push(...o),i.map(t=>e.startsWith("/")&&""===t?"/":t)}const R=/^:[\w-]+$/,T=3,A=2,P=1,L=10,D=-2,N=e=>"*"===e;function M(e,t){let r=e.split("/"),n=r.length;return r.some(N)&&(n+=D),t&&(n+=A),r.filter(e=>!N(e)).reduce((e,t)=>e+(R.test(t)?T:""===t?P:L),n)}function O(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},s="/",o=[];for(let e=0;e<n.length;++e){let i=n[e],l=e===n.length-1,c="/"===s?t:t.slice(s.length)||"/",d=I({path:i.relativePath,caseSensitive:i.caseSensitive,end:l},c),u=i.route;if(!d&&l&&r&&!n[n.length-1].route.index&&(d=I({path:i.relativePath,caseSensitive:i.caseSensitive,end:!1},c)),!d)return null;Object.assign(a,d.params),o.push({params:a,pathname:H([s,d.pathname]),pathnameBase:$(H([s,d.pathnameBase])),route:u}),"/"!==d.pathnameBase&&(s=H([s,d.pathnameBase]))}return o}function I(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),m("*"===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],o=s.replace(/(.)\/+$/,"$1"),i=a.slice(1);return{params:n.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=i[r]||"";o=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}const l=i[r];return e[n]=a&&!l?void 0:(l||"").replace(/%2F/g,"/"),e},{}),pathname:s,pathnameBase:o,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return m(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function B(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}function U(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 q(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}const H=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;class G{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function V(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}const Y=["post","put","patch","delete"],Z=new Set(Y),J=["get",...Y],K=new Set(J),X=new Set([301,302,303,307,308]),Q=new Set([307,308]),ee={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},te={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},re={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ne=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ae=e=>({hasErrorBoundary:Boolean(e.hasErrorBoundary)}),se="remix-router-transitions";function oe(e){const t=e.window?e.window:"undefined"!=typeof window?window:void 0,r=void 0!==t&&void 0!==t.document&&void 0!==t.document.createElement,n=!r;let a;if(f(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)a=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;a=e=>({hasErrorBoundary:t(e)})}else a=ae;let s,o,i,l={},c=k(e.routes,a,void 0,l),d=e.basename||"/",p=e.unstable_dataStrategy||fe,y=e.unstable_patchRoutesOnNavigation,v=u({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,_=new Set,C=null,R=null,T=null,A=null!=e.hydrationData,P=E(c,e.history.location,d),L=null;if(null==P&&!y){let t=_e(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=je(c);P=r,L={[n.id]:t}}if(P&&!e.hydrationData&&ut(P,c,e.history.location.pathname).active&&(P=null),P)if(P.some(e=>e.route.lazy))o=!1;else if(P.some(e=>e.route.loader))if(v.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null,n=e=>!e.route.loader||("function"!=typeof e.route.loader||!0!==e.route.loader.hydrate)&&(t&&void 0!==t[e.route.id]||r&&void 0!==r[e.route.id]);if(r){let e=P.findIndex(e=>void 0!==r[e.route.id]);o=P.slice(0,e+1).every(n)}else o=P.every(n)}else o=null!=e.hydrationData;else o=!0;else if(o=!1,P=[],v.v7_partialHydration){let t=ut(null,c,e.history.location.pathname);t.active&&t.matches&&(P=t.matches)}let D,N,M={historyAction:e.history.action,location:e.history.location,matches:P,initialized:o,navigation:ee,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||L,fetchers:new Map,blockers:new Map},O=h.Pop,I=!1,F=!1,U=new Map,q=null,H=!1,$=!1,z=[],W=new Set,G=new Map,Y=0,Z=-1,J=new Map,K=new Set,X=new Map,oe=new Map,de=new Set,ue=new Map,we=new Map,be=new Map;function Re(e,t){void 0===t&&(t={}),M=u({},M,e);let r=[],n=[];v.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(de.has(t)?n.push(t):r.push(t))}),[...b].forEach(e=>e(M,{deletedFetchers:n,unstable_viewTransitionOpts:t.viewTransitionOpts,unstable_flushSync:!0===t.flushSync})),v.v7_fetcherPersist&&(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>Xe(e)))}function De(t,r,n){var a,o;let i,{flushSync:l}=void 0===n?{}:n,d=null!=M.actionData&&null!=M.navigation.formMethod&&Me(M.navigation.formMethod)&&"loading"===M.navigation.state&&!0!==(null==(a=t.state)?void 0:a._isRedirect);i=r.actionData?Object.keys(r.actionData).length>0?r.actionData:null:d?M.actionData:null;let p=r.loaderData?Se(M.loaderData,r.loaderData,r.matches||[],r.errors):M.loaderData,f=M.blockers;f.size>0&&(f=new Map(f),f.forEach((e,t)=>f.set(t,re)));let m,y=!0===I||null!=M.navigation.formMethod&&Me(M.navigation.formMethod)&&!0!==(null==(o=t.state)?void 0:o._isRedirect);if(s&&(c=s,s=void 0),H||O===h.Pop||(O===h.Push?e.history.push(t,t.state):O===h.Replace&&e.history.replace(t,t.state)),O===h.Pop){let e=U.get(M.location.pathname);e&&e.has(t.pathname)?m={currentLocation:M.location,nextLocation:t}:U.has(t.pathname)&&(m={currentLocation:t,nextLocation:M.location})}else if(F){let e=U.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),U.set(M.location.pathname,e)),m={currentLocation:M.location,nextLocation:t}}Re(u({},r,{actionData:i,loaderData:p,historyAction:O,location:t,initialized:!0,navigation:ee,revalidation:"idle",restoreScrollPosition:dt(t,r.matches||M.matches),preventScrollReset:y,blockers:f}),{viewTransitionOpts:m,flushSync:!0===l}),O=h.Pop,I=!1,F=!1,H=!1,$=!1,z=[]}async function Ne(t,r,n){D&&D.abort(),D=null,O=t,H=!0===(n&&n.startUninterruptedRevalidation),function(e,t){if(C&&T){let r=ct(e,t);C[r]=T()}}(M.location,M.matches),I=!0===(n&&n.preventScrollReset),F=!0===(n&&n.enableViewTransition);let a=s||c,o=n&&n.overrideNavigation,i=E(a,r,d),l=!0===(n&&n.flushSync),p=ut(i,a,r.pathname);if(p.active&&p.matches&&(i=p.matches),!i){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return void De(r,{matches:t,loaderData:{},errors:{[n.id]:e}},{flushSync:l})}if(M.initialized&&!$&&(f=M.location,m=r,f.pathname===m.pathname&&f.search===m.search&&(""===f.hash?""!==m.hash:f.hash===m.hash||""!==m.hash))&&!(n&&n.submission&&Me(n.submission.formMethod)))return void De(r,{matches:i},{flushSync:l});var f,m;D=new AbortController;let y,g=ve(e.history,r,D.signal,n&&n.submission);if(n&&n.pendingError)y=[Ee(i).route.id,{type:x.error,error:n.pendingError}];else if(n&&n.submission&&Me(n.submission.formMethod)){let t=await async function(e,t,r,n,a,s){void 0===s&&(s={}),Ye();let o,i=function(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}(t,r);if(Re({navigation:i},{flushSync:!0===s.flushSync}),a){let r=await ht(n,t.pathname,e.signal);if("aborted"===r.type)return{shortCircuited:!0};if("error"===r.type){let{boundaryId:e,error:n}=it(t.pathname,r);return{matches:r.partialMatches,pendingActionResult:[e,{type:x.error,error:n}]}}if(!r.matches){let{notFoundMatches:e,error:r,route:n}=ot(t.pathname);return{matches:e,pendingActionResult:[n.id,{type:x.error,error:r}]}}n=r.matches}let l=Ue(n,t);if(l.route.action||l.route.lazy){if(o=(await Ge("action",M,e,[l],n,null))[l.route.id],e.signal.aborted)return{shortCircuited:!0}}else o={type:x.error,error:_e(405,{method:e.method,pathname:t.pathname,routeId:l.route.id})};if(Le(o)){let t;return t=s&&null!=s.replace?s.replace:ge(o.response.headers.get("Location"),new URL(e.url),d)===M.location.pathname+M.location.search,await We(e,o,!0,{submission:r,replace:t}),{shortCircuited:!0}}if(Ae(o))throw _e(400,{type:"defer-action"});if(Pe(o)){let e=Ee(n,l.route.id);return!0!==(s&&s.replace)&&(O=h.Push),{matches:n,pendingActionResult:[e.route.id,o]}}return{matches:n,pendingActionResult:[l.route.id,o]}}(g,r,n.submission,i,p.active,{replace:n.replace,flushSync:l});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,n]=t.pendingActionResult;if(Pe(n)&&V(n.error)&&404===n.error.status)return D=null,void De(r,{matches:t.matches,loaderData:{},errors:{[e]:n.error}})}i=t.matches||i,y=t.pendingActionResult,o=He(r,n.submission),l=!1,p.active=!1,g=ve(e.history,g.url,g.signal)}let{shortCircuited:w,matches:b,loaderData:S,errors:k}=await async function(t,r,n,a,o,i,l,h,p,f,m){let y=o||He(r,i),g=i||l||qe(y),w=!(H||v.v7_partialHydration&&p);if(a){if(w){let e=Be(m);Re(u({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:f})}let e=await ht(n,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let{boundaryId:t,error:n}=it(r.pathname,e);return{matches:e.partialMatches,loaderData:{},errors:{[t]:n}}}if(!e.matches){let{error:e,notFoundMatches:t,route:n}=ot(r.pathname);return{matches:t,loaderData:{},errors:{[n.id]:e}}}n=e.matches}let b=s||c,[x,S]=ce(e.history,M,n,g,r,v.v7_partialHydration&&!0===p,v.v7_skipActionErrorRevalidation,$,z,W,de,X,K,b,d,m);if(lt(e=>!(n&&n.some(t=>t.route.id===e))||x&&x.some(t=>t.route.id===e)),Z=++Y,0===x.length&&0===S.length){let e=tt();return De(r,u({matches:n,loaderData:{},errors:m&&Pe(m[1])?{[m[0]]:m[1].error}:null},ke(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:f}),{shortCircuited:!0}}if(w){let e={};if(!a){e.navigation=y;let t=Be(m);void 0!==t&&(e.actionData=t)}S.length>0&&(e.fetchers=function(e){return e.forEach(e=>{let t=M.fetchers.get(e.key),r=$e(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),new Map(M.fetchers)}(S)),Re(e,{flushSync:f})}S.forEach(e=>{G.has(e.key)&&Qe(e.key),e.controller&&G.set(e.key,e.controller)});let k=()=>S.forEach(e=>Qe(e.key));D&&D.signal.addEventListener("abort",k);let{loaderResults:E,fetcherResults:j}=await Ve(M,n,x,S,t);if(t.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",k),S.forEach(e=>G.delete(e.key));let _=Ce(E);if(_)return await We(t,_.result,!0,{replace:h}),{shortCircuited:!0};if(_=Ce(j),_)return K.add(_.key),await We(t,_.result,!0,{replace:h}),{shortCircuited:!0};let{loaderData:C,errors:R}=xe(M,n,0,E,m,S,j,ue);ue.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ue.delete(t)})}),v.v7_partialHydration&&p&&M.errors&&Object.entries(M.errors).filter(e=>{let[t]=e;return!x.some(e=>e.route.id===t)}).forEach(e=>{let[t,r]=e;R=Object.assign(R||{},{[t]:r})});let T=tt(),A=rt(Z),P=T||A||S.length>0;return u({matches:n,loaderData:C,errors:R},P?{fetchers:new Map(M.fetchers)}:{})}(g,r,i,p.active,o,n&&n.submission,n&&n.fetcherSubmission,n&&n.replace,n&&!0===n.initialHydration,l,y);w||(D=null,De(r,u({matches:b||i},ke(y),{loaderData:S,errors:k})))}function Be(e){return e&&!Pe(e[1])?{[e[0]]:e[1].data}:M.actionData?0===Object.keys(M.actionData).length?null:M.actionData:void 0}async function We(n,a,s,o){let{submission:i,fetcherSubmission:l,replace:c}=void 0===o?{}:o;a.response.headers.has("X-Remix-Revalidate")&&($=!0);let p=a.response.headers.get("Location");f(p,"Expected a Location header on the redirect Response"),p=ge(p,new URL(n.url),d);let m=g(M.location,p,{_isRedirect:!0});if(r){let r=!1;if(a.response.headers.has("X-Remix-Reload-Document"))r=!0;else if(ne.test(p)){const n=e.history.createURL(p);r=n.origin!==t.location.origin||null==B(n.pathname,d)}if(r)return void(c?t.location.replace(p):t.location.assign(p))}D=null;let y=!0===c||a.response.headers.has("X-Remix-Replace")?h.Replace:h.Push,{formMethod:v,formAction:w,formEncType:b}=M.navigation;!i&&!l&&v&&w&&b&&(i=qe(M.navigation));let x=i||l;if(Q.has(a.response.status)&&x&&Me(x.formMethod))await Ne(y,m,{submission:u({},x,{formAction:p}),preventScrollReset:I,enableViewTransition:s?F:void 0});else{let e=He(m,i);await Ne(y,m,{overrideNavigation:e,fetcherSubmission:l,preventScrollReset:I,enableViewTransition:s?F:void 0})}}async function Ge(e,t,r,n,s,o){let i,c={};try{i=await async function(e,t,r,n,a,s,o,i,l,c){let d=s.map(e=>e.route.lazy?async function(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];f(a,"No route found in manifest");let s={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;m(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||S.has(e)||(s[e]=n[e])}Object.assign(a,s),Object.assign(a,u({},t(a),{lazy:void 0}))}(e.route,l,i):void 0),h=s.map((e,r)=>{let s=d[r],o=a.some(t=>t.route.id===e.route.id);return u({},e,{shouldLoad:o,resolve:async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(o=!0),o?async function(e,t,r,n,a,s){let o,i,l=n=>{let o,l=new Promise((e,t)=>o=t);i=()=>o(),t.signal.addEventListener("abort",i);let c=a=>"function"!=typeof n?Promise.reject(new Error('You cannot call the handler for a route which defines a boolean "'+e+'" [routeId: '+r.route.id+"]")):n({request:t,params:r.params,context:s},...void 0!==a?[a]:[]),d=(async()=>{try{return{type:"data",result:await(a?a(e=>c(e)):c())}}catch(e){return{type:"error",result:e}}})();return Promise.race([d,l])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([l(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;o=t}else{if(await n,a=r.route[e],!a){if("action"===e){let e=new URL(t.url),n=e.pathname+e.search;throw _e(405,{method:t.method,pathname:n,routeId:r.route.id})}return{type:x.data,result:void 0}}o=await l(a)}else{if(!a){let e=new URL(t.url);throw _e(404,{pathname:e.pathname+e.search})}o=await l(a)}f(void 0!==o.result,"You defined "+("action"===e?"an action":"a loader")+' for route "'+r.route.id+"\" but didn't return anything from your `"+e+"` function. Please return a value or `null`.")}catch(e){return{type:x.error,result:e}}finally{i&&t.signal.removeEventListener("abort",i)}return o}(t,n,e,s,r,c):Promise.resolve({type:x.data,result:void 0}))})}),p=await e({matches:h,request:n,params:s[0].params,fetcherKey:o,context:c});try{await Promise.all(d)}catch(e){}return p}(p,e,0,r,n,s,o,l,a)}catch(e){return n.forEach(t=>{c[t.route.id]={type:x.error,error:e}}),c}for(let[e,t]of Object.entries(i))if(Te(t)){let n=t.result;c[e]={type:x.redirect,response:ye(n,r,e,s,d,v.v7_relativeSplatPath)}}else c[e]=await me(t);return c}async function Ve(t,r,n,a,s){let o=t.matches,i=Ge("loader",0,s,n,r,null),l=Promise.all(a.map(async t=>{if(t.matches&&t.match&&t.controller){let r=(await Ge("loader",0,ve(e.history,t.path,t.controller.signal),[t.match],t.matches,t.key))[t.match.route.id];return{[t.key]:r}}return Promise.resolve({[t.key]:{type:x.error,error:_e(404,{pathname:t.path})}})})),c=await i,d=(await l).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([Oe(r,c,s.signal,o,t.loaderData),Ie(r,d,a)]),{loaderResults:c,fetcherResults:d}}function Ye(){$=!0,z.push(...lt()),X.forEach((e,t)=>{G.has(t)&&(W.add(t),Qe(t))})}function Ze(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),Re({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function Je(e,t,r,n){void 0===n&&(n={});let a=Ee(M.matches,t);Xe(e),Re({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function Ke(e){return v.v7_fetcherPersist&&(oe.set(e,(oe.get(e)||0)+1),de.has(e)&&de.delete(e)),M.fetchers.get(e)||te}function Xe(e){let t=M.fetchers.get(e);!G.has(e)||t&&"loading"===t.state&&J.has(e)||Qe(e),X.delete(e),J.delete(e),K.delete(e),de.delete(e),W.delete(e),M.fetchers.delete(e)}function Qe(e){let t=G.get(e);f(t,"Expected fetch controller: "+e),t.abort(),G.delete(e)}function et(e){for(let t of e){let e=ze(Ke(t).data);M.fetchers.set(t,e)}}function tt(){let e=[],t=!1;for(let r of K){let n=M.fetchers.get(r);f(n,"Expected fetcher: "+r),"loading"===n.state&&(K.delete(r),e.push(r),t=!0)}return et(e),t}function rt(e){let t=[];for(let[r,n]of J)if(n<e){let e=M.fetchers.get(r);f(e,"Expected fetcher: "+r),"loading"===e.state&&(Qe(r),J.delete(r),t.push(r))}return et(t),t.length>0}function nt(e){M.blockers.delete(e),we.delete(e)}function at(e,t){let r=M.blockers.get(e)||re;f("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),Re({blockers:n})}function st(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===we.size)return;we.size>1&&m(!1,"A router only supports one blocker at a time");let a=Array.from(we.entries()),[s,o]=a[a.length-1],i=M.blockers.get(s);return i&&"proceeding"===i.state?void 0:o({currentLocation:t,nextLocation:r,historyAction:n})?s:void 0}function ot(e){let t=_e(404,{pathname:e}),r=s||c,{matches:n,route:a}=je(r);return lt(),{notFoundMatches:n,route:a,error:t}}function it(e,t){return{boundaryId:Ee(t.partialMatches).route.id,error:_e(400,{type:"route-discovery",pathname:e,message:null!=t.error&&"message"in t.error?t.error:String(t.error)})}}function lt(e){let t=[];return ue.forEach((r,n)=>{e&&!e(n)||(r.cancel(),t.push(n),ue.delete(n))}),t}function ct(e,t){return R&&R(e,t.map(e=>function(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}(e,M.loaderData)))||e.key}function dt(e,t){if(C){let r=ct(e,t),n=C[r];if("number"==typeof n)return n}return null}function ut(e,t,r){if(y){if(_.has(r))return{active:!1,matches:e};if(!e)return{active:!0,matches:j(t,r,d,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:j(t,r,d,!0)}}return{active:!1,matches:null}}async function ht(e,t,r){let n=e;for(;;){let e=null==s,o=s||c;try{await he(y,t,n,o,l,a,be,r)}catch(e){return{type:"error",error:e,partialMatches:n}}finally{e&&(c=[...c])}if(r.aborted)return{type:"aborted"};let i=E(o,t,d);if(i)return pt(t,_),{type:"success",matches:i};let u=j(o,t,d,!0);if(!u||n.length===u.length&&n.every((e,t)=>e.route.id===u[t].route.id))return pt(t,_),{type:"success",matches:null};n=u}}function pt(e,t){if(t.size>=1e3){let e=t.values().next().value;t.delete(e)}t.add(e)}return i={get basename(){return d},get future(){return v},get state(){return M},get routes(){return c},get window(){return t},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(N)return N(),void(N=void 0);m(0===we.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let s=st({currentLocation:M.location,nextLocation:n,historyAction:r});if(s&&null!=a){let t=new Promise(e=>{N=e});return e.history.go(-1*a),void at(s,{state:"blocked",location:n,proceed(){at(s,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(s,re),Re({blockers:e})}})}return Ne(r,n)}),r){!function(e,t){try{let r=e.sessionStorage.getItem(se);if(r){let e=JSON.parse(r);for(let[r,n]of Object.entries(e||{}))n&&Array.isArray(n)&&t.set(r,new Set(n||[]))}}catch(e){}}(t,U);let e=()=>function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(se,JSON.stringify(r))}catch(e){m(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}}(t,U);t.addEventListener("pagehide",e),q=()=>t.removeEventListener("pagehide",e)}return M.initialized||Ne(h.Pop,M.location,{initialHydration:!0}),i},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(C=e,T=t,R=r||null,!A&&M.navigation===ee){A=!0;let e=dt(M.location,M.matches);null!=e&&Re({restoreScrollPosition:e})}return()=>{C=null,T=null,R=null}},navigate:async function t(r,n){if("number"==typeof r)return void e.history.go(r);let a=ie(M.location,M.matches,d,v.v7_prependBasename,r,v.v7_relativeSplatPath,null==n?void 0:n.fromRouteId,null==n?void 0:n.relative),{path:s,submission:o,error:i}=le(v.v7_normalizeFormMethod,!1,a,n),l=M.location,c=g(M.location,s,n&&n.state);c=u({},c,e.history.encodeLocation(c));let p=n&&null!=n.replace?n.replace:void 0,f=h.Push;!0===p?f=h.Replace:!1===p||null!=o&&Me(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(f=h.Replace);let m=n&&"preventScrollReset"in n?!0===n.preventScrollReset:void 0,y=!0===(n&&n.unstable_flushSync),w=st({currentLocation:l,nextLocation:c,historyAction:f});if(!w)return await Ne(f,c,{submission:o,pendingError:i,preventScrollReset:m,replace:n&&n.replace,enableViewTransition:n&&n.unstable_viewTransition,flushSync:y});at(w,{state:"blocked",location:c,proceed(){at(w,{state:"proceeding",proceed:void 0,reset:void 0,location:c}),t(r,n)},reset(){let e=new Map(M.blockers);e.set(w,re),Re({blockers:e})}})},fetch:function(t,r,a,o){if(n)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");G.has(t)&&Qe(t);let i=!0===(o&&o.unstable_flushSync),l=s||c,u=ie(M.location,M.matches,d,v.v7_prependBasename,a,v.v7_relativeSplatPath,r,null==o?void 0:o.relative),h=E(l,u,d),p=ut(h,l,u);if(p.active&&p.matches&&(h=p.matches),!h)return void Je(t,r,_e(404,{pathname:u}),{flushSync:i});let{path:m,submission:y,error:g}=le(v.v7_normalizeFormMethod,!0,u,o);if(g)return void Je(t,r,g,{flushSync:i});let w=Ue(h,m);I=!0===(o&&o.preventScrollReset),y&&Me(y.formMethod)?async function(t,r,n,a,o,i,l,u){function h(e){if(!e.route.action&&!e.route.lazy){let e=_e(405,{method:u.formMethod,pathname:n,routeId:r});return Je(t,r,e,{flushSync:l}),!0}return!1}if(Ye(),X.delete(t),!i&&h(a))return;let p=M.fetchers.get(t);Ze(t,function(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}(u,p),{flushSync:l});let m=new AbortController,y=ve(e.history,n,m.signal,u);if(i){let e=await ht(o,n,y.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:a}=it(n,e);return void Je(t,r,a,{flushSync:l})}if(!e.matches)return void Je(t,r,_e(404,{pathname:n}),{flushSync:l});if(h(a=Ue(o=e.matches,n)))return}G.set(t,m);let g=Y,w=(await Ge("action",0,y,[a],o,t))[a.route.id];if(y.signal.aborted)return void(G.get(t)===m&&G.delete(t));if(v.v7_fetcherPersist&&de.has(t)){if(Le(w)||Pe(w))return void Ze(t,ze(void 0))}else{if(Le(w))return G.delete(t),Z>g?void Ze(t,ze(void 0)):(K.add(t),Ze(t,$e(u)),We(y,w,!1,{fetcherSubmission:u}));if(Pe(w))return void Je(t,r,w.error)}if(Ae(w))throw _e(400,{type:"defer-action"});let b=M.navigation.location||M.location,x=ve(e.history,b,m.signal),S=s||c,k="idle"!==M.navigation.state?E(S,M.navigation.location,d):M.matches;f(k,"Didn't find any matches after fetcher action");let j=++Y;J.set(t,j);let _=$e(u,w.data);M.fetchers.set(t,_);let[C,R]=ce(e.history,M,k,u,b,!1,v.v7_skipActionErrorRevalidation,$,z,W,de,X,K,S,d,[a.route.id,w]);R.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=$e(void 0,r?r.data:void 0);M.fetchers.set(t,n),G.has(t)&&Qe(t),e.controller&&G.set(t,e.controller)}),Re({fetchers:new Map(M.fetchers)});let T=()=>R.forEach(e=>Qe(e.key));m.signal.addEventListener("abort",T);let{loaderResults:A,fetcherResults:P}=await Ve(M,k,C,R,x);if(m.signal.aborted)return;m.signal.removeEventListener("abort",T),J.delete(t),G.delete(t),R.forEach(e=>G.delete(e.key));let L=Ce(A);if(L)return We(x,L.result,!1);if(L=Ce(P),L)return K.add(L.key),We(x,L.result,!1);let{loaderData:N,errors:I}=xe(M,k,0,A,void 0,R,P,ue);if(M.fetchers.has(t)){let e=ze(w.data);M.fetchers.set(t,e)}rt(j),"loading"===M.navigation.state&&j>Z?(f(O,"Expected pending action"),D&&D.abort(),De(M.navigation.location,{matches:k,loaderData:N,errors:I,fetchers:new Map(M.fetchers)})):(Re({errors:I,loaderData:Se(M.loaderData,N,k,I),fetchers:new Map(M.fetchers)}),$=!1)}(t,r,m,w,h,p.active,i,y):(X.set(t,{routeId:r,path:m}),async function(t,r,n,a,s,o,i,l){let c=M.fetchers.get(t);Ze(t,$e(l,c?c.data:void 0),{flushSync:i});let d=new AbortController,u=ve(e.history,n,d.signal);if(o){let e=await ht(s,n,u.signal);if("aborted"===e.type)return;if("error"===e.type){let{error:a}=it(n,e);return void Je(t,r,a,{flushSync:i})}if(!e.matches)return void Je(t,r,_e(404,{pathname:n}),{flushSync:i});a=Ue(s=e.matches,n)}G.set(t,d);let h=Y,p=(await Ge("loader",0,u,[a],s,t))[a.route.id];if(Ae(p)&&(p=await Fe(p,u.signal,!0)||p),G.get(t)===d&&G.delete(t),!u.signal.aborted){if(!de.has(t))return Le(p)?Z>h?void Ze(t,ze(void 0)):(K.add(t),void await We(u,p,!1)):void(Pe(p)?Je(t,r,p.error):(f(!Ae(p),"Unhandled fetcher deferred data"),Ze(t,ze(p.data))));Ze(t,ze(void 0))}}(t,r,m,w,h,p.active,i,y))},revalidate:function(){Ye(),Re({revalidation:"loading"}),"submitting"!==M.navigation.state&&("idle"!==M.navigation.state?Ne(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===F}):Ne(M.historyAction,M.location,{startUninterruptedRevalidation:!0}))},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ke,deleteFetcher:function(e){if(v.v7_fetcherPersist){let t=(oe.get(e)||0)-1;t<=0?(oe.delete(e),de.add(e)):oe.set(e,t)}else Xe(e);Re({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),q&&q(),b.clear(),D&&D.abort(),M.fetchers.forEach((e,t)=>Xe(t)),M.blockers.forEach((e,t)=>nt(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||re;return we.get(e)!==t&&we.set(e,t),r},deleteBlocker:nt,patchRoutes:function(e,t){let r=null==s;pe(e,t,s||c,l,a),r&&(c=[...c],Re({}))},_internalFetchControllers:G,_internalActiveDeferreds:ue,_internalSetRoutes:function(e){l={},s=k(e,a,void 0,l)}},i}function ie(e,t,r,n,a,s,o,i){let l,c;if(o){l=[];for(let e of t)if(l.push(e),e.route.id===o){c=e;break}}else l=t,c=t[t.length-1];let d=function(e,t,r,n){let a;void 0===n&&(n=!1),"string"==typeof e?a=w(e):(a=u({},e),f(!a.pathname||!a.pathname.includes("?"),U("?","pathname","search",a)),f(!a.pathname||!a.pathname.includes("#"),U("#","pathname","hash",a)),f(!a.search||!a.search.includes("#"),U("#","search","hash",a)));let s,o=""===e||""===a.pathname,i=o?"/":a.pathname;if(null==i)s=r;else{let e=t.length-1;if(!n&&i.startsWith("..")){let t=i.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?w(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:z(n),hash:W(a)}}(a,s),c=i&&"/"!==i&&i.endsWith("/"),d=(o||"."===i)&&r.endsWith("/");return l.pathname.endsWith("/")||!c&&!d||(l.pathname+="/"),l}(a||".",function(e,t){let r=q(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}(l,s),B(e.pathname,r)||e.pathname,"path"===i);return null==a&&(d.search=e.search,d.hash=e.hash),null!=a&&""!==a&&"."!==a||!c||!c.route.index||Be(d.search)||(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),n&&"/"!==r&&(d.pathname="/"===d.pathname?r:H([r,d.pathname])),v(d)}function le(e,t,r,n){if(!n||!function(e){return null!=e&&("formData"in e&&null!=e.formData||"body"in e&&void 0!==e.body)}(n))return{path:r};if(n.formMethod&&(a=n.formMethod,!K.has(a.toLowerCase())))return{path:r,error:_e(405,{method:n.formMethod})};var a;let s,o,i=()=>({path:r,error:_e(400,{type:"invalid-body"})}),l=n.formMethod||"get",c=e?l.toUpperCase():l.toLowerCase(),d=Re(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!Me(c))return i();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:c,formAction:d,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}if("application/json"===n.formEncType){if(!Me(c))return i();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:c,formAction:d,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return i()}}}if(f("function"==typeof FormData,"FormData is not available in this environment"),n.formData)s=we(n.formData),o=n.formData;else if(n.body instanceof FormData)s=we(n.body),o=n.body;else if(n.body instanceof URLSearchParams)s=n.body,o=be(s);else if(null==n.body)s=new URLSearchParams,o=new FormData;else try{s=new URLSearchParams(n.body),o=be(s)}catch(e){return i()}let u={formMethod:c,formAction:d,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:o,json:void 0,text:void 0};if(Me(u.formMethod))return{path:r,submission:u};let h=w(r);return t&&h.search&&Be(h.search)&&s.append("index",""),h.search="?"+s,{path:v(h),submission:u}}function ce(e,t,r,n,a,s,o,i,l,c,d,h,p,f,m,y){let g=y?Pe(y[1])?y[1].error:y[1].data:void 0,v=e.createURL(t.location),w=e.createURL(a),b=y&&Pe(y[1])?y[0]:void 0,x=b?function(e,t){let r=e;if(t){let n=e.findIndex(e=>e.route.id===t);n>=0&&(r=e.slice(0,n))}return r}(r,b):r,S=y?y[1].statusCode:void 0,k=o&&S&&S>=400,j=x.filter((e,r)=>{let{route:a}=e;if(a.lazy)return!0;if(null==a.loader)return!1;if(s)return!("function"==typeof a.loader&&!a.loader.hydrate&&(void 0!==t.loaderData[a.id]||t.errors&&void 0!==t.errors[a.id]));if(function(e,t,r){let n=!t||r.route.id!==t.route.id,a=void 0===e[r.route.id];return n||a}(t.loaderData,t.matches[r],e)||l.some(t=>t===e.route.id))return!0;let o=t.matches[r],c=e;return ue(e,u({currentUrl:v,currentParams:o.params,nextUrl:w,nextParams:c.params},n,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!k&&(i||v.pathname+v.search===w.pathname+w.search||v.search!==w.search||de(o,c))}))}),_=[];return h.forEach((e,a)=>{if(s||!r.some(t=>t.route.id===e.routeId)||d.has(a))return;let o=E(f,e.path,m);if(!o)return void _.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let l=t.fetchers.get(a),h=Ue(o,e.path),y=!1;p.has(a)?y=!1:c.has(a)?(c.delete(a),y=!0):y=l&&"idle"!==l.state&&void 0===l.data?i:ue(h,u({currentUrl:v,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:g,actionStatus:S,defaultShouldRevalidate:!k&&i})),y&&_.push({key:a,routeId:e.routeId,path:e.path,matches:o,match:h,controller:new AbortController})}),[j,_]}function de(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ue(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}async function he(e,t,r,n,a,s,o,i){let l=[t,...r.map(e=>e.route.id)].join("-");try{let d=o.get(l);d||(d=e({path:t,matches:r,patch:(e,t)=>{i.aborted||pe(e,t,n,a,s)}}),o.set(l,d)),d&&"object"==typeof(c=d)&&null!=c&&"then"in c&&await d}finally{o.delete(l)}var c}function pe(e,t,r,n,a){if(e){var s;let r=n[e];f(r,"No route found to patch children into: routeId = "+e);let o=k(t,a,[e,"patch",String((null==(s=r.children)?void 0:s.length)||"0")],n);r.children?r.children.push(...o):r.children=o}else{let e=k(t,a,["patch",String(r.length||"0")],n);r.push(...e)}}async function fe(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function me(e){let{result:t,type:r}=e;if(Ne(t)){let e;try{let r=t.headers.get("Content-Type");e=r&&/\bapplication\/json\b/.test(r)?null==t.body?null:await t.json():await t.text()}catch(e){return{type:x.error,error:e}}return r===x.error?{type:x.error,error:new G(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:x.data,data:e,statusCode:t.status,headers:t.headers}}if(r===x.error){if(De(t)){var n,a;if(t.data instanceof Error)return{type:x.error,error:t.data,statusCode:null==(a=t.init)?void 0:a.status};t=new G((null==(n=t.init)?void 0:n.status)||500,void 0,t.data)}return{type:x.error,error:t,statusCode:V(t)?t.status:void 0}}var s,o,i,l;return function(e){let t=e;return t&&"object"==typeof t&&"object"==typeof t.data&&"function"==typeof t.subscribe&&"function"==typeof t.cancel&&"function"==typeof t.resolveData}(t)?{type:x.deferred,deferredData:t,statusCode:null==(s=t.init)?void 0:s.status,headers:(null==(o=t.init)?void 0:o.headers)&&new Headers(t.init.headers)}:De(t)?{type:x.data,data:t.data,statusCode:null==(i=t.init)?void 0:i.status,headers:null!=(l=t.init)&&l.headers?new Headers(t.init.headers):void 0}:{type:x.data,data:t}}function ye(e,t,r,n,a,s){let o=e.headers.get("Location");if(f(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!ne.test(o)){let i=n.slice(0,n.findIndex(e=>e.route.id===r)+1);o=ie(new URL(t.url),i,a,!0,o,s),e.headers.set("Location",o)}return e}function ge(e,t,r){if(ne.test(e)){let n=e,a=n.startsWith("//")?new URL(t.protocol+n):new URL(n),s=null!=B(a.pathname,r);if(a.origin===t.origin&&s)return a.pathname+a.search+a.hash}return e}function ve(e,t,r,n){let a=e.createURL(Re(t)).toString(),s={signal:r};if(n&&Me(n.formMethod)){let{formMethod:e,formEncType:t}=n;s.method=e.toUpperCase(),"application/json"===t?(s.headers=new Headers({"Content-Type":t}),s.body=JSON.stringify(n.json)):"text/plain"===t?s.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?s.body=we(n.formData):s.body=n.formData}return new Request(a,s)}function we(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function be(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function xe(e,t,r,n,a,s,o,i){let{loaderData:l,errors:c}=function(e,t,r,n,a){let s,o={},i=null,l=!1,c={},d=r&&Pe(r[1])?r[1].error:void 0;return e.forEach(r=>{if(!(r.route.id in t))return;let u=r.route.id,h=t[u];if(f(!Le(h),"Cannot handle redirect results in processLoaderData"),Pe(h)){let t=h.error;if(void 0!==d&&(t=d,d=void 0),i=i||{},a)i[u]=t;else{let r=Ee(e,u);null==i[r.route.id]&&(i[r.route.id]=t)}o[u]=void 0,l||(l=!0,s=V(h.error)?h.error.status:500),h.headers&&(c[u]=h.headers)}else Ae(h)?(n.set(u,h.deferredData),o[u]=h.deferredData.data,null==h.statusCode||200===h.statusCode||l||(s=h.statusCode),h.headers&&(c[u]=h.headers)):(o[u]=h.data,h.statusCode&&200!==h.statusCode&&!l&&(s=h.statusCode),h.headers&&(c[u]=h.headers))}),void 0!==d&&r&&(i={[r[0]]:d},o[r[0]]=void 0),{loaderData:o,errors:i,statusCode:s||200,loaderHeaders:c}}(t,n,a,i,!1);return s.forEach(t=>{let{key:r,match:n,controller:a}=t,s=o[r];if(f(s,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(Pe(s)){let t=Ee(e.matches,null==n?void 0:n.route.id);c&&c[t.route.id]||(c=u({},c,{[t.route.id]:s.error})),e.fetchers.delete(r)}else if(Le(s))f(!1,"Unhandled fetcher revalidation redirect");else if(Ae(s))f(!1,"Unhandled fetcher deferred data");else{let t=ze(s.data);e.fetchers.set(r,t)}}),{loaderData:l,errors:c}}function Se(e,t,r,n){let a=u({},t);for(let s of r){let r=s.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&s.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function ke(e){return e?Pe(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Ee(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function je(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function _e(e,t){let{pathname:r,routeId:n,method:a,type:s,message:o}=void 0===t?{}:t,i="Unknown Server Error",l="Unknown @remix-run/router error";return 400===e?(i="Bad Request","route-discovery"===s?l='Unable to match URL "'+r+'" - the `unstable_patchRoutesOnNavigation()` function threw the following error:\n'+o:a&&r&&n?l="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===s?l="defer() is not supported in actions":"invalid-body"===s&&(l="Unable to encode submission body")):403===e?(i="Forbidden",l='Route "'+n+'" does not match URL "'+r+'"'):404===e?(i="Not Found",l='No route matches URL "'+r+'"'):405===e&&(i="Method Not Allowed",a&&r&&n?l="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(l='Invalid request method "'+a.toUpperCase()+'"')),new G(e||500,i,new Error(l),!0)}function Ce(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(Le(n))return{key:r,result:n}}}function Re(e){return v(u({},"string"==typeof e?w(e):e,{hash:""}))}function Te(e){return Ne(e.result)&&X.has(e.result.status)}function Ae(e){return e.type===x.deferred}function Pe(e){return e.type===x.error}function Le(e){return(e&&e.type)===x.redirect}function De(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function Ne(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function Me(e){return Z.has(e.toLowerCase())}async function Oe(e,t,r,n,a){let s=Object.entries(t);for(let o=0;o<s.length;o++){let[i,l]=s[o],c=e.find(e=>(null==e?void 0:e.route.id)===i);if(!c)continue;let d=n.find(e=>e.route.id===c.route.id),u=null!=d&&!de(d,c)&&void 0!==(a&&a[c.route.id]);Ae(l)&&u&&await Fe(l,r,!1).then(e=>{e&&(t[i]=e)})}}async function Ie(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:s,controller:o}=r[n],i=t[a];e.find(e=>(null==e?void 0:e.route.id)===s)&&Ae(i)&&(f(o,"Expected an AbortController for revalidating fetcher deferred result"),await Fe(i,o.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function Fe(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:x.data,data:e.deferredData.unwrappedData}}catch(e){return{type:x.error,error:e}}return{type:x.data,data:e.deferredData.data}}}function Be(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function Ue(e,t){let r="string"==typeof t?w(t).search:t.search;if(e[e.length-1].route.index&&Be(r||""))return e[e.length-1];let n=q(e);return n[n.length-1]}function qe(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:s,json:o}=e;if(t&&r&&n)return null!=a?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a}:null!=s?{formMethod:t,formAction:r,formEncType:n,formData:s,json:void 0,text:void 0}:void 0!==o?{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:o,text:void 0}:void 0}function He(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function $e(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function ze(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function We(){return We=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},We.apply(this,arguments)}Symbol("deferred");const Ge=c.createContext(null),Ve=c.createContext(null),Ye=c.createContext(null),Ze=c.createContext(null),Je=c.createContext({outlet:null,matches:[],isDataRoute:!1}),Ke=c.createContext(null);function Xe(){return null!=c.useContext(Ze)}function Qe(e,t,r,n){Xe()||f(!1);let{navigator:a}=c.useContext(Ye),{matches:s}=c.useContext(Je),o=s[s.length-1],i=o?o.params:{},l=(o&&o.pathname,o?o.pathnameBase:"/");o&&o.route;let d,u=(Xe()||f(!1),c.useContext(Ze).location);if(t){var p;let e="string"==typeof t?w(t):t;"/"===l||(null==(p=e.pathname)?void 0:p.startsWith(l))||f(!1),d=e}else d=u;let m=d.pathname||"/",y=m;if("/"!==l){let e=l.replace(/^\//,"").split("/");y="/"+m.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=E(e,{pathname:y}),v=function(e,t,r,n){var a;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){var s;if(!r)return null;if(r.errors)e=r.matches;else{if(!(null!=(s=n)&&s.v7_partialHydration&&0===t.length&&!r.initialized&&r.matches.length>0))return null;e=r.matches}}let o=e,i=null==(a=r)?void 0:a.errors;if(null!=i){let e=o.findIndex(e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id]));e>=0||f(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,d=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<o.length;e++){let t=o[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(d=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){l=!0,o=d>=0?o.slice(0,d+1):[o[0]];break}}}return o.reduceRight((e,n,a)=>{let s,u=!1,h=null,p=null;var f;r&&(s=i&&n.route.id?i[n.route.id]:void 0,h=n.route.errorElement||tt,l&&(d<0&&0===a?(st[f="route-fallback"]||(st[f]=!0),u=!0,p=null):d===a&&(u=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(o.slice(0,a+1)),y=()=>{let t;return t=s?h:u?p:n.route.Component?c.createElement(n.route.Component,null):n.route.element?n.route.element:e,c.createElement(nt,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?c.createElement(rt,{location:r.location,revalidation:r.revalidation,component:h,error:s,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):y()},null)}(g&&g.map(e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:H([l,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:H([l,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),s,r,n);return t&&v?c.createElement(Ze.Provider,{value:{location:We({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:h.Pop}},v):v}function et(){let e=function(){var e;let t=c.useContext(Ke),r=function(){let e=c.useContext(Ve);return e||f(!1),e}(at.UseRouteError),n=function(){let e=function(){let e=c.useContext(Je);return e||f(!1),e}(),t=e.matches[e.matches.length-1];return t.route.id||f(!1),t.route.id}(at.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}(),t=V(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:n},r):null,null)}const tt=c.createElement(et,null);class rt extends c.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?c.createElement(Je.Provider,{value:this.props.routeContext},c.createElement(Ke.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function nt(e){let{routeContext:t,match:r,children:n}=e,a=c.useContext(Ge);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),c.createElement(Je.Provider,{value:t},n)}var at=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}(at||{});const st={};function ot(e){f(!1)}function it(e){let{basename:t="/",children:r=null,location:n,navigationType:a=h.Pop,navigator:s,static:o=!1,future:i}=e;Xe()&&f(!1);let l=t.replace(/^\/*/,"/"),d=c.useMemo(()=>({basename:l,navigator:s,static:o,future:We({v7_relativeSplatPath:!1},i)}),[l,i,s,o]);"string"==typeof n&&(n=w(n));let{pathname:u="/",search:p="",hash:m="",state:y=null,key:g="default"}=n,v=c.useMemo(()=>{let e=B(u,l);return null==e?null:{location:{pathname:e,search:p,hash:m,state:y,key:g},navigationType:a}},[l,u,p,m,y,g,a]);return null==v?null:c.createElement(Ye.Provider,{value:d},c.createElement(Ze.Provider,{children:r,value:v}))}function lt(e,t){void 0===t&&(t=[]);let r=[];return c.Children.forEach(e,(e,n)=>{if(!c.isValidElement(e))return;let a=[...t,n];if(e.type===c.Fragment)return void r.push.apply(r,lt(e.props.children,a));e.type!==ot&&f(!1),e.props.index&&e.props.children&&f(!1);let s={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=lt(e.props.children,a)),r.push(s)}),r}function ct(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:c.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:c.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:c.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function dt(){return dt=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},dt.apply(this,arguments)}c.startTransition,new Promise(()=>{}),c.Component,new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);try{window.__reactRouterVersion="6"}catch(e){}function ut(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=dt({},t,{errors:ht(t.errors)})),t}function ht(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new G(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=new Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}const pt=c.createContext({isTransitioning:!1}),ft=c.createContext(new Map),mt=c.startTransition,yt=d.flushSync;function gt(e){yt?yt(e):e()}c.useId;class vt{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function wt(e){let{fallbackElement:t,router:r,future:n}=e,[a,s]=c.useState(r.state),[o,i]=c.useState(),[l,d]=c.useState({isTransitioning:!1}),[u,h]=c.useState(),[p,f]=c.useState(),[m,y]=c.useState(),g=c.useRef(new Map),{v7_startTransition:v}=n||{},w=c.useCallback(e=>{v?function(e){mt?mt(e):e()}(e):e()},[v]),b=c.useCallback((e,t)=>{let{deletedFetchers:n,unstable_flushSync:a,unstable_viewTransitionOpts:o}=t;n.forEach(e=>g.current.delete(e)),e.fetchers.forEach((e,t)=>{void 0!==e.data&&g.current.set(t,e.data)});let l=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(o&&!l){if(a){gt(()=>{p&&(u&&u.resolve(),p.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=r.window.document.startViewTransition(()=>{gt(()=>s(e))});return t.finished.finally(()=>{gt(()=>{h(void 0),f(void 0),i(void 0),d({isTransitioning:!1})})}),void gt(()=>f(t))}p?(u&&u.resolve(),p.skipTransition(),y({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(i(e),d({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))}else a?gt(()=>s(e)):w(()=>s(e))},[r.window,p,u,g,w]);c.useLayoutEffect(()=>r.subscribe(b),[r,b]),c.useEffect(()=>{l.isTransitioning&&!l.flushSync&&h(new vt)},[l]),c.useEffect(()=>{if(u&&o&&r.window){let e=o,t=u.promise,n=r.window.document.startViewTransition(async()=>{w(()=>s(e)),await t});n.finished.finally(()=>{h(void 0),f(void 0),i(void 0),d({isTransitioning:!1})}),f(n)}},[w,o,u,r.window]),c.useEffect(()=>{u&&o&&a.location.key===o.location.key&&u.resolve()},[u,p,a.location,o]),c.useEffect(()=>{!l.isTransitioning&&m&&(i(m.state),d({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),y(void 0))},[l.isTransitioning,m]),c.useEffect(()=>{},[]);let x=c.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",k=c.useMemo(()=>({router:r,navigator:x,static:!1,basename:S}),[r,x,S]),E=c.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return c.createElement(c.Fragment,null,c.createElement(Ge.Provider,{value:k},c.createElement(Ve.Provider,{value:a},c.createElement(ft.Provider,{value:g.current},c.createElement(pt.Provider,{value:l},c.createElement(it,{basename:S,location:a.location,navigationType:a.historyAction,navigator:x,future:E},a.initialized||r.future.v7_partialHydration?c.createElement(bt,{routes:r.routes,future:r.future,state:a}):t))))),null)}const bt=c.memo(xt);function xt(e){let{routes:t,future:r,state:n}=e;return Qe(t,void 0,n,r)}var St,kt,Et;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement,(Et=St||(St={})).UseScrollRestoration="useScrollRestoration",Et.UseSubmit="useSubmit",Et.UseSubmitFetcher="useSubmitFetcher",Et.UseFetcher="useFetcher",Et.useViewTransitionState="useViewTransitionState",function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(kt||(kt={}));const jt=window.yoast.uiLibrary;var _t=r(1802),Ct=r.n(_t);const Rt="yoast-seo/editor",Tt=((0,l.mapValues)({post:"title",term:"term_title"},e=>`%%${e}%%`),window.wp.i18n),At=(e,t)=>{try{return(0,s.createInterpolateElement)(e,t)}catch(t){return console.error("Error in translation for:",e,t),e}};r(6702);const Pt=window.ReactJSXRuntime;Ct().string.isRequired,r(2514);r(818);Ct().string.isRequired,Ct().string.isRequired,Ct().shape({src:Ct().string.isRequired,width:Ct().string,height:Ct().string}).isRequired,Ct().shape({value:Ct().bool.isRequired,status:Ct().string.isRequired,set:Ct().func.isRequired}).isRequired,Ct().string,Ct().string,Ct().string;const Lt=({handleRefreshClick:e,supportLink:t})=>(0,Pt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Pt.jsx)(jt.Button,{onClick:e,children:(0,Tt.__)("Refresh this page","wordpress-seo")}),(0,Pt.jsx)(jt.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Tt.__)("Contact support","wordpress-seo")})]});Lt.propTypes={handleRefreshClick:Ct().func.isRequired,supportLink:Ct().string.isRequired};const Dt=({handleRefreshClick:e,supportLink:t})=>(0,Pt.jsxs)("div",{className:"yst-grid yst-grid-cols-1 yst-gap-y-2",children:[(0,Pt.jsx)(jt.Button,{className:"yst-order-last",onClick:e,children:(0,Tt.__)("Refresh this page","wordpress-seo")}),(0,Pt.jsx)(jt.Button,{variant:"secondary",as:"a",href:t,target:"_blank",rel:"noopener",children:(0,Tt.__)("Contact support","wordpress-seo")})]});Dt.propTypes={handleRefreshClick:Ct().func.isRequired,supportLink:Ct().string.isRequired};const Nt=({error:e,children:t=null})=>(0,Pt.jsxs)("div",{role:"alert",className:"yst-max-w-screen-sm yst-p-8 yst-space-y-4",children:[(0,Pt.jsx)(jt.Title,{children:(0,Tt.__)("Something went wrong. An unexpected error occurred.","wordpress-seo")}),(0,Pt.jsx)("p",{children:(0,Tt.__)("We're very sorry, but it seems like the following error has interrupted our application:","wordpress-seo")}),(0,Pt.jsx)(jt.Alert,{variant:"error",children:(null==e?void 0:e.message)||(0,Tt.__)("Undefined error message.","wordpress-seo")}),(0,Pt.jsx)("p",{children:(0,Tt.__)("Unfortunately, this means that any unsaved changes in this section will be lost. You can try and refresh this page to resolve the problem. If this error still occurs, please get in touch with our support team, and we'll get you all the help you need!","wordpress-seo")}),t]});Nt.propTypes={error:Ct().object.isRequired,children:Ct().node},Nt.VerticalButtons=Dt,Nt.HorizontalButtons=Lt;Ct().string,Ct().node.isRequired,Ct().node.isRequired,Ct().node,Ct().oneOf(Object.keys({lg:{grid:"yst-grid lg:yst-grid-cols-3 lg:yst-gap-12",col1:"yst-col-span-1",col2:"lg:yst-mt-0 lg:yst-col-span-2"},xl:{grid:"yst-grid xl:yst-grid-cols-3 xl:yst-gap-12",col1:"yst-col-span-1",col2:"xl:yst-mt-0 xl:yst-col-span-2"},"2xl":{grid:"yst-grid 2xl:yst-grid-cols-3 2xl:yst-gap-12",col1:"yst-col-span-1",col2:"2xl:yst-mt-0 2xl:yst-col-span-2"}})),Ct().string.isRequired,Ct().string;const Mt=({href:e,children:t=null,...r})=>(0,Pt.jsxs)(jt.Link,{target:"_blank",rel:"noopener noreferrer",...r,href:e,children:[t,(0,Pt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Tt.__)("(Opens in a new browser tab)","wordpress-seo")})]});Mt.propTypes={href:Ct().string.isRequired,children:Ct().node};r(8738);(0,Tt.__)("Create optimized SEO titles & meta descriptions in seconds","wordpress-seo"),(0,Tt.__)("Apply AI suggestions to improve content in 1 click","wordpress-seo"),(0,Tt.__)("Manage redirects with ease and without extra plugins","wordpress-seo"),(0,Tt.__)("Optimize pages for multiple keywords with guidance","wordpress-seo"),(0,Tt.__)("Add product details to help your listings stand out","wordpress-seo"),(0,Tt.__)("Make sure search engines show the right version of your product page","wordpress-seo"),(0,Tt.__)("Create optimized SEO titles & meta descriptions with AI","wordpress-seo"),(0,Tt.__)("Receive clear SEO and readability guidance to optimize your products","wordpress-seo"),(0,Tt.__)("Generate SEO optimized metadata in seconds with AI","wordpress-seo"),(0,Tt.__)("Make your articles visible, be seen in Google News","wordpress-seo"),(0,Tt.__)("Built to get found by search, AI, and real users","wordpress-seo"),(0,Tt.__)("Easy Local SEO. Show up in Google Maps results","wordpress-seo"),(0,Tt.__)("Internal links and redirect management, easy","wordpress-seo"),(0,Tt.__)("Access to friendly help when you need it, day or night","wordpress-seo");var Ot=r(2485),It=r.n(Ot);Ct().string.isRequired,Ct().object.isRequired,Ct().func.isRequired,Ct().bool.isRequired;var Ft=r(3473),Bt=r.n(Ft);Ct().string.isRequired,Ct().object,Ct().func.isRequired,Ct().bool.isRequired,Ct().string.isRequired,Ct().object.isRequired,Ct().string.isRequired,Ct().func.isRequired,Ct().bool.isRequired;var Ut=r(5074),qt=r.n(Ut);Ct().bool.isRequired,Ct().func,Ct().func,Ct().string.isRequired,Ct().string.isRequired,Ct().string.isRequired,Ct().string.isRequired;window.yoast.reactHelmet;const Ht="loading";var $t,zt;function Wt(){return Wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wt.apply(null,arguments)}Ct().string.isRequired,Ct().shape({src:Ct().string.isRequired,width:Ct().string,height:Ct().string}).isRequired,Ct().shape({value:Ct().bool.isRequired,status:Ct().string.isRequired,set:Ct().func.isRequired}).isRequired,Ct().bool;const Gt=e=>c.createElement("svg",Wt({xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",className:"yoast-logo_svg__w-40",viewBox:"0 0 842 224"},e),$t||($t=c.createElement("path",{fill:"#a61e69",d:"M166.55 54.09c-38.69 0-54.17 25.97-54.17 54.88s15.25 56.02 54.17 56.02 54.07-27.19 54-54.26c-.09-32.97-16.77-56.65-54-56.65Zm-23.44 56.52c.94-38.69 30.66-38.65 40.59-24.79 9.05 12.63 10.9 55.81-17.14 55.5-12.92-.14-23.06-8.87-23.44-30.71Zm337.25 27.55V82.11h20.04V57.78h-20.04V28.39h-30.95v29.39h-15.7v24.33h15.7v52.87c0 30.05 20.95 47.91 43.06 51.61l9.24-24.88c-12.89-1.63-21.23-11.27-21.35-23.54Zm-156.15-8.87V87.16c0-1.54-.1-2.98-.25-4.39-2.68-34.04-51.02-33.97-88.46-20.9l10.82 21.78c24.38-11.58 38.97-8.59 44.07-2.89.13.15.26.29.38.45.01.02.03.04.04.06 2.6 3.51 1.98 9.05 1.98 13.41-31.86 0-65.77 4.23-65.77 39.17 0 26.56 33.28 43.65 68.06 18.33l5.16 12.45h29.81c-2.66-14.62-5.85-27.14-5.85-35.34Zm-31.18-.23c-24.51 27.43-46.96 1.61-23.97-9.65 6.77-2.31 15.95-2.41 23.97-2.41v12.06Zm78.75-44.17c0-10.38 16.61-15.23 42.82-3.27l9.06-22.01c-35.27-10.66-83.44-11.62-83.75 25.28-.15 17.68 11.19 27.19 27.52 33.26 11.31 4.2 27.64 6.38 27.59 15.39-.06 11.77-25.38 13.57-48.42-2.26l-9.31 23.87c31.43 15.64 89.87 16.08 89.56-23.12-.31-38.76-55.08-32.11-55.08-47.14ZM99.3 1 54.44 125.61 32.95 58.32H1l35.78 91.89a33.49 33.49 0 0 1 0 24.33c-4 10.25-10.65 19.03-26.87 21.21v27.24c31.58 0 48.65-19.41 63.88-61.96L133.48 1H99.3ZM598.64 139.05c0 8.17-2.96 14.58-8.87 19.23-5.91 4.65-14.07 6.98-24.47 6.98s-18.92-1.61-25.54-4.84v-14.2c4.19 1.97 8.65 3.52 13.37 4.65 4.72 1.13 9.11 1.7 13.18 1.7 5.95 0 10.35-1.13 13.18-3.39 2.83-2.26 4.25-5.3 4.25-9.11 0-3.43-1.3-6.35-3.9-8.74-2.6-2.39-7.97-5.22-16.1-8.48-8.39-3.39-14.3-7.27-17.74-11.63-3.44-4.36-5.16-9.59-5.16-15.71 0-7.67 2.72-13.7 8.18-18.1 5.45-4.4 12.77-6.6 21.95-6.6s17.57 1.93 26.29 5.78l-4.78 12.26c-8.18-3.43-15.47-5.15-21.89-5.15-4.87 0-8.55 1.06-11.07 3.17-2.52 2.12-3.77 4.91-3.77 8.39 0 2.39.5 4.43 1.51 6.13s2.66 3.3 4.97 4.81c2.3 1.51 6.46 3.5 12.45 5.97 6.75 2.81 11.7 5.43 14.85 7.86 3.15 2.43 5.45 5.18 6.92 8.23 1.46 3.06 2.2 6.66 2.2 10.81Zm68.53 24.96h-52.02V72.12h52.02v12.7h-36.99v25.01h34.66v12.57h-34.66v28.85h36.99v12.76Zm100.24-46.07c0 14.96-3.74 26.59-11.23 34.88-7.49 8.3-18.08 12.44-31.8 12.44s-24.54-4.12-31.99-12.35c-7.44-8.23-11.17-19.93-11.17-35.1s3.74-26.82 11.23-34.95c7.49-8.13 18.17-12.19 32.05-12.19s24.24 4.13 31.7 12.38c7.47 8.26 11.2 19.88 11.2 34.88Zm-70.2 0c0 11.31 2.29 19.89 6.86 25.74 4.57 5.85 11.35 8.77 20.32 8.77s15.67-2.89 20.22-8.67c4.55-5.78 6.82-14.39 6.82-25.83s-2.25-19.82-6.76-25.64-11.23-8.74-20.16-8.74-15.82 2.91-20.41 8.74c-4.59 5.82-6.89 14.37-6.89 25.64Z"})),zt||(zt=c.createElement("path",{fill:"#77b227",d:"m790.45 165.35 36.05-94.96H840l-36.02 94.96h-13.53z"})));r(5687),Ct().bool.isRequired,Ct().func.isRequired,Ct().func,Ct().string;Ct().func.isRequired,Ct().string.isRequired,Ct().string.isRequired,Ct().string.isRequired,Ct().string.isRequired,Ct().string.isRequired,Ct().string.isRequired,Ct().func.isRequired,Ct().string.isRequired,Ct().shape({termsOfService:Ct().string,privacyPolicy:Ct().string,learnMore:Ct().string});const Vt=({children:e})=>(0,Pt.jsx)("p",{className:"yst-mt-2",children:e});Vt.propTypes={children:Ct().node.isRequired};const Yt=(0,Tt.__)("Something went wrong","wordpress-seo"),Zt=({linkStoreName:e=Rt})=>{const r=(0,t.useSelect)(t=>t(e).selectLink("https://yoa.st/ai-common-errors"),[e]),n=(0,t.useSelect)(t=>t(e).selectAdminLink("?page=wpseo_page_support"),[e]);return(0,Pt.jsx)(Vt,{children:At((0,Tt.sprintf)(/* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */ /* translators: %1$s and %3$s expand to an opening tag. %2$s and %4$s expand to a closing tag. */
(0,Tt.__)("Please try again later. If this issue persists, you can learn more about possible reasons for this error on our page about %1$scommon AI feature problems and errors%2$s. In case you need further help, please %3$scontact our support team%4$s.","wordpress-seo"),"<a1>","</a1>","<a2>","</a2>"),{a1:(0,Pt.jsx)(Mt,{variant:"error",href:r}),a2:(0,Pt.jsx)(Mt,{variant:"error",href:n})})})};Zt.propTypes={linkStoreName:Ct().string};const Jt=({linkStoreName:e=Rt,className:t=""})=>(0,Pt.jsxs)(jt.Alert,{variant:"error",className:t,children:[(0,Pt.jsx)("span",{className:"yst-block yst-font-medium",children:Yt}),(0,Pt.jsx)(Zt,{linkStoreName:e})]});Jt.propTypes={linkStoreName:Ct().string,className:Ct().string},(0,Tt.__)("Not enough content","wordpress-seo"),(0,Tt.__)("SEO analysis required","wordpress-seo"),(0,Tt.__)("You've reached the Yoast AI rate limit","wordpress-seo"),window.wp.apiFetch,(0,Tt.__)("Subscription required","wordpress-seo");Ct().arrayOf(Ct().string),Ct().arrayOf(Ct().string),(0,Tt.__)("Connection timeout","wordpress-seo"),(0,Tt.__)("Usage policy violation","wordpress-seo"),(0,Tt.__)("Something went wrong","wordpress-seo");Ct().string,Ct().string,(0,Tt.__)("Something went wrong","wordpress-seo");Ct().node.isRequired;const Kt=({children:e})=>(0,Pt.jsx)("div",{className:"yst-mt-6 yst-flex yst-flex-row yst-justify-end yst-gap-3",children:e});Kt.propTypes={children:Ct().node.isRequired};const Xt=({onClose:e})=>(0,Pt.jsx)(jt.Button,{variant:"secondary",onClick:e,children:(0,Tt.__)("Close","wordpress-seo")});Xt.propTypes={onClose:Ct().func.isRequired};Ct().bool,Ct().func.isRequired,Ct().func.isRequired;Ct().bool.isRequired,Ct().string.isRequired,Ct().func,Ct().node.isRequired,Ct().bool,Ct().bool,Ct().func,Ct().func,Ct().bool,Ct().bool,Ct().func,Ct().func,Ct().string,Ct().bool,Ct().bool,Ct().func,Ct().func,Ct().bool,Ct().func,Ct().bool,Ct().func,Ct().bool,Ct().func,Ct().bool,Ct().func,Ct().arrayOf(Ct().string),Ct().bool,Ct().func,Ct().bool,Ct().func,(0,Tt.__)("Yoast AI cannot reach your site","wordpress-seo");Ct().string,Ct().bool,Ct().func;const Qt=window.yoast.reduxJsToolkit,er="adminUrl",tr=(0,Qt.createSlice)({name:er,initialState:"",reducers:{setAdminUrl:(e,{payload:t})=>t}}),rr=(tr.getInitialState,{selectAdminUrl:e=>(0,l.get)(e,er,"")});rr.selectAdminLink=(0,Qt.createSelector)([rr.selectAdminUrl,(e,t)=>t],(e,t="")=>{try{return new URL(t,e).href}catch(t){return e}}),tr.actions,tr.reducer;const nr="hasConsent",ar=(0,Qt.createSlice)({name:nr,initialState:{hasConsent:!1,endpoint:""},reducers:{giveAiGeneratorConsent:(e,{payload:t})=>{e.hasConsent=t},setAiGeneratorConsentEndpoint:(e,{payload:t})=>{e.endpoint=t}}}),sr=(ar.getInitialState,ar.actions,ar.reducer,window.wp.url),or="linkParams",ir=(0,Qt.createSlice)({name:or,initialState:{},reducers:{setLinkParams:(e,{payload:t})=>t}}),lr=ir.getInitialState,cr={selectLinkParam:(e,t,r={})=>(0,l.get)(e,`${or}.${t}`,r),selectLinkParams:e=>(0,l.get)(e,or,{})};cr.selectLink=(0,Qt.createSelector)([cr.selectLinkParams,(e,t)=>t,(e,t,r={})=>r],(e,t,r)=>(0,sr.addQueryArgs)(t,{...e,...r}));const dr=ir.actions,ur=ir.reducer,hr=(0,Qt.createSlice)({name:"notifications",initialState:{},reducers:{addNotification:{reducer:(e,{payload:t})=>{e[t.id]={id:t.id,variant:t.variant,size:t.size,title:t.title,description:t.description}},prepare:({id:e,variant:t="info",size:r="default",title:n,description:a})=>({payload:{id:e||(0,Qt.nanoid)(),variant:t,size:r,title:n||"",description:a}})},removeNotification:(e,{payload:t})=>(0,l.omit)(e,t)}}),pr=(hr.getInitialState,hr.actions,hr.reducer,"pluginUrl"),fr=(0,Qt.createSlice)({name:pr,initialState:"",reducers:{setPluginUrl:(e,{payload:t})=>t}}),mr=(fr.getInitialState,{selectPluginUrl:e=>(0,l.get)(e,pr,"")});mr.selectImageLink=(0,Qt.createSelector)([mr.selectPluginUrl,(e,t,r="images")=>r,(e,t)=>t],(e,t,r)=>[(0,l.trimEnd)(e,"/"),(0,l.trim)(t,"/"),(0,l.trimStart)(r,"/")].join("/")),fr.actions,fr.reducer;const yr="wistiaEmbedPermission",gr=(0,Qt.createSlice)({name:yr,initialState:{value:!1,status:"idle",error:{}},reducers:{setWistiaEmbedPermissionValue:(e,{payload:t})=>{e.value=Boolean(t)}},extraReducers:e=>{e.addCase(`${yr}/request`,e=>{e.status=Ht}),e.addCase(`${yr}/success`,(e,{payload:t})=>{e.status="success",e.value=Boolean(t&&t.value)}),e.addCase(`${yr}/error`,(e,{payload:t})=>{e.status="error",e.value=Boolean(t&&t.value),e.error={code:(0,l.get)(t,"error.code",500),message:(0,l.get)(t,"error.message","Unknown")}})}});var vr;gr.getInitialState,gr.actions,gr.reducer;const wr=(0,Qt.createSlice)({name:"documentTitle",initialState:(0,l.defaultTo)(null===(vr=document)||void 0===vr?void 0:vr.title,""),reducers:{setDocumentTitle:(e,{payload:t})=>t}}),br=(wr.getInitialState,wr.actions,wr.reducer,"@yoast/bulk-editor"),xr="search",Sr="social",kr="focusKeyphrase",Er="yoast.bulkEditor.TableCellWithField",jr={premium:{link:"https://yoa.st/bulk-editor-ai-upsell",ctbId:"f6a84663-465f-4cb5-8ba5-f7a6d72224b2"},woo:{link:"https://yoa.st/bulk-editor-ai-upsell-woo",ctbId:"5b32250e-e6f0-44ae-ad74-3cefc8e427f9"}},_r=(0,Tt.__)("Instantly create SEO titles, meta descriptions, and social metadata for all your content. Upgrade to unlock bulk AI generation and streamline your workflow.","wordpress-seo"),Cr=(e,t)=>{var r;return null!==(r=e.endpoint)&&void 0!==r?r:t.endpoint},Rr=e=>({id:e.id,title:e.title,status:e.status,editLink:e.edit_link,focusKeyphrase:e.focus_keyphrase,seoTitle:e.seo_title,metaDescription:e.meta_description,socialTitle:e.social_title,socialDescription:e.social_description,editable:e.editable});var Tr=r(7219),Ar=r.n(Tr),Pr=r(4892),Lr=r.n(Pr),Dr=r(3527),Nr=r.n(Dr),Mr=r(998),Or=r.n(Mr);const Ir=window.wp.hooks,Fr=e=>{const r="product"===e,n=r?jr.woo:jr.premium,a=(0,t.useSelect)(e=>e(br).selectLink(n.link),[n.link]),o=(0,t.useSelect)(e=>e(br).selectLink("https://yoa.st/bulk-editor-learn-more"),[]);return(0,s.useMemo)(()=>({upsellLink:a,ctbId:n.ctbId,upsellLabel:(0,Tt.sprintf)(/* translators: %1$s expands to "Yoast SEO Premium" or "Yoast WooCommerce SEO". */ /* translators: %1$s expands to "Yoast SEO Premium" or "Yoast WooCommerce SEO". */
(0,Tt.__)("Unlock with %1$s","wordpress-seo"),r?"Yoast WooCommerce SEO":"Yoast SEO Premium"),learnMoreLink:o,description:r?(0,Tt.__)("Instantly create SEO titles, meta descriptions, and social metadata for all your products, posts, pages and more. Upgrade to unlock bulk AI generation and streamline your workflow.","wordpress-seo"):_r}),[a,n.ctbId,r,o])};var Br=r(1298),Ur=r.n(Br);const qr=({isOpen:e,onClose:t,upsellLabel:r,upsellLink:n,ctbId:a,learnMoreLink:o,description:i=_r})=>{const l=(0,s.useRef)(null),c=(0,jt.useSvgAria)(),d=a?{"data-action":"load-nfd-ctb","data-ctb-id":a}:{};return(0,Pt.jsx)(jt.Modal,{isOpen:e,onClose:t,initialFocus:l,children:(0,Pt.jsx)(jt.Modal.Panel,{className:"yst-max-w-sm yst-p-6",closeButtonScreenReaderText:(0,Tt.__)("Close","wordpress-seo"),children:(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-gap-6 yst-text-center",children:[(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-gap-4",children:[(0,Pt.jsx)("span",{className:"yst-flex yst-h-12 yst-w-12 yst-items-center yst-justify-center yst-rounded-full yst-bg-ai-100",children:(0,Pt.jsx)(jt.GradientSparklesIcon,{className:"yst-h-6 yst-w-6",...c})}),(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-items-center yst-gap-2",children:[(0,Pt.jsx)(jt.Modal.Title,{as:"h3",className:"yst-text-lg yst-font-medium yst-text-slate-900",children:(0,Tt.__)("Generate Metadata in Bulk","wordpress-seo")}),(0,Pt.jsx)(jt.Modal.Description,{as:"p",className:"yst-text-sm yst-text-slate-600",children:i})]})]}),(0,Pt.jsxs)(jt.Button,{as:"a",ref:l,variant:"upsell",href:n,target:"_blank",rel:"noopener noreferrer",className:"yst-w-full",...d,children:[(0,Pt.jsx)(Ur(),{className:"yst--ms-1 yst-me-2 yst-h-5 yst-w-5","aria-hidden":"true"}),r,(0,Pt.jsx)("span",{className:"yst-sr-only",children:(0,Tt.__)("(Opens in a new browser tab)","wordpress-seo")})]}),o&&(0,Pt.jsxs)(Mt,{href:o,variant:"primary",className:"yst-inline-flex yst-items-center yst-gap-1 yst-text-sm yst-font-medium yst-no-underline",children:[(0,Tt.__)("Learn more","wordpress-seo"),(0,Pt.jsx)(Bt(),{className:"yst-h-4 yst-w-4 yst-icon-rtl","aria-hidden":"true"})]})]})})})},Hr=({onSelectAll:e,onDeselectAll:t,selectedCount:r,totalCount:n})=>{const a=(0,jt.useSvgAria)(),o=(0,s.useMemo)(()=>[{key:"select-all",label:(0,Tt.__)("Select all","wordpress-seo"),onClick:e},{key:"deselect-all",label:(0,Tt.__)("Deselect all","wordpress-seo"),onClick:t}],[e,t]),i=(0,Ir.applyFilters)("yoast.bulkEditor.selectMenuItems",o,{selectedCount:r,totalCount:n});return(0,Pt.jsxs)(jt.DropdownMenu,{as:"div",className:"yst-relative",children:[(0,Pt.jsxs)(jt.DropdownMenu.Trigger,{as:jt.Button,variant:"primary",size:"small",className:"yst-gap-1.5",children:[(0,Tt.__)("Select","wordpress-seo"),(0,Pt.jsx)(Lr(),{className:"yst-h-4 yst-w-4",...a})]}),(0,Pt.jsx)(jt.DropdownMenu.List,{className:"yst-absolute yst-z-10 yst-start-0 yst-top-full yst-mt-1 yst-w-56",children:i.map(e=>(0,Pt.jsx)(jt.DropdownMenu.ButtonItem,{className:"yst-flex yst-justify-start yst-px-4 yst-py-2 yst-font-normal yst-text-slate-800 hover:!yst-bg-slate-50 focus:!yst-bg-slate-50",onClick:e.onClick,children:e.label},e.key))})]})},$r=({idSuffix:e="",isAllSelected:t,isIndeterminate:r=!1,onToggleAll:n,onSelectAll:a,onDeselectAll:o,selectedCount:i,totalCount:l,contentTypeLabel:c})=>{const d=c?c.toLowerCase():(0,Tt.__)("items","wordpress-seo"),u=(0,s.useRef)(null);return(0,s.useEffect)(()=>{u.current&&(u.current.indeterminate=r)},[r]),(0,Pt.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-4",children:[(0,Pt.jsx)(jt.Checkbox,{ref:u,id:`bulk-editor-select-all${e}`,name:`bulk-editor-select-all${e}`,value:"all","aria-label":(0,Tt.__)("Select all","wordpress-seo"),checked:t,onChange:n}),(0,Pt.jsx)(Hr,{onSelectAll:a,onDeselectAll:o,selectedCount:i,totalCount:l}),i>0&&(0,Pt.jsx)("span",{className:"yst-font-medium yst-text-slate-800",children:(0,Tt.sprintf)(/* translators: %1$d expands to the number of selected items, %2$d to the total, %3$s to the content type (e.g. pages). */ /* translators: %1$d expands to the number of selected items, %2$d to the total, %3$s to the content type (e.g. pages). */
(0,Tt.__)("%1$d of %2$d %3$s selected","wordpress-seo"),i,l,d)})]})},zr=({contentType:e})=>{const t=Fr(e),[r,,,n,a]=(0,jt.useToggleState)(!1);return(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)(jt.Button,{variant:"ai-secondary",size:"small",className:"yst-bg-white",onClick:n,children:(0,Tt.__)("Generate SEO titles","wordpress-seo")}),(0,Pt.jsx)(jt.Button,{variant:"ai-secondary",size:"small",className:"yst-bg-white",onClick:n,children:(0,Tt.__)("Generate meta descriptions","wordpress-seo")}),(0,Pt.jsx)(qr,{isOpen:r,onClose:a,...t})]})},Wr=({editCount:e,onApplyAll:t,onDiscardAll:r,isApplying:n=!1})=>{const a=(0,s.useId)(),o=(0,jt.useSvgAria)();return(0,Pt.jsxs)("div",{className:"yst-grow yst-flex yst-justify-end yst-items-center yst-gap-4",children:[(0,Pt.jsx)("span",{id:a,className:"yst-text-sm yst-font-medium yst-text-slate-800",children:(0,Tt.sprintf)(/* translators: %d expands to the number of rows with unsaved changes. */ /* translators: %d expands to the number of rows with unsaved changes. */
(0,Tt._n)("%d row with unsaved changes","%d rows with unsaved changes",e,"wordpress-seo"),e)}),(0,Pt.jsxs)("div",{className:"yst-flex yst-gap-2",children:[(0,Pt.jsxs)(jt.Button,{variant:"secondary",size:"small",className:"yst-gap-1.5",onClick:t,disabled:n,"aria-describedby":a,children:[(0,Pt.jsx)(Ar(),{className:"yst-h-4 yst-w-4 yst-text-green-500",...o}),(0,Tt.__)("Save edits","wordpress-seo")]}),(0,Pt.jsxs)(jt.Button,{variant:"secondary",size:"small",className:"yst-gap-1.5",onClick:r,disabled:n,"aria-describedby":a,children:[(0,Pt.jsx)(Nr(),{className:"yst-h-4 yst-w-4 yst-text-red-500",...o}),(0,Tt.__)("Cancel edits","wordpress-seo")]})]})]})},Gr=({onDismiss:e})=>{const t=(0,jt.useSvgAria)();return(0,Pt.jsxs)(jt.Alert,{variant:"error",as:"div",role:"alert",className:"yst-rounded-none yst-relative",children:[(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-1",children:[(0,Pt.jsx)("span",{className:"yst-block yst-font-medium",children:(0,Tt.__)("Couldn't save your edits.","wordpress-seo")}),(0,Pt.jsx)("span",{className:"yst-font-normal",children:(0,Tt.__)("Something went wrong. Please try again.","wordpress-seo")})]}),(0,Pt.jsx)("button",{type:"button",className:"yst-absolute yst-end-4 yst-top-4 yst-text-current hover:yst-opacity-75 yst-cursor-pointer",onClick:e,"aria-label":(0,Tt.__)("Dismiss","wordpress-seo"),children:(0,Pt.jsx)(Or(),{className:"yst-h-5 yst-w-5",...t})})]})},Vr=({hasSaveError:t,onDismissSaveError:r,selectedIds:n,activeFieldSet:a,contentType:s,contentTypeLabel:o,contentTypeSingularLabel:i})=>(0,Pt.jsxs)(Pt.Fragment,{children:[t&&(0,Pt.jsx)(Gr,{onDismiss:r}),(0,Pt.jsx)(e.Slot,{name:"yoast.bulkEditor.bulkNotices",fillProps:{selectedIds:n,activeFieldSet:a,contentType:s,contentTypeLabel:o,contentTypeSingularLabel:i}})]}),Yr=({isPremium:t,isAiEnabled:r,isActive:n,selectedIds:a,activeFieldSet:s,contentType:o,hasUnsavedEdits:i,editCount:l,onApplyAll:c,onDiscardAll:d,isApplyingAll:u})=>(0,Pt.jsxs)("div",{className:"yst-flex yst-items-center yst-gap-3 yst-border-y yst-border-slate-200 yst-bg-slate-100 yst-px-4 yst-py-3",children:[!t&&r&&(0,Pt.jsx)(zr,{contentType:o}),n&&(0,Pt.jsx)(e.Slot,{name:"yoast.bulkEditor.bulkActions",fillProps:{selectedIds:a,activeFieldSet:s,contentType:o,hasUnsavedEdits:i}}),n&&i&&(0,Pt.jsx)(Wr,{editCount:l,onApplyAll:c,onDiscardAll:d,isApplying:u})]}),Zr=({isPremium:e,isAiEnabled:t=!1,isActive:r,selectedIds:n,activeFieldSet:a,contentType:s,contentTypeLabel:o,contentTypeSingularLabel:i,hasUnsavedEdits:l,editCount:c,onApplyAll:d,onDiscardAll:u,isApplyingAll:h,hasSaveError:p,onDismissSaveError:f})=>(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col",children:[r&&(0,Pt.jsx)(Vr,{hasSaveError:p,onDismissSaveError:f,selectedIds:n,activeFieldSet:a,contentType:s,contentTypeLabel:o,contentTypeSingularLabel:i}),(0,Pt.jsx)(Yr,{isPremium:e,isAiEnabled:t,isActive:r,selectedIds:n,activeFieldSet:a,contentType:s,hasUnsavedEdits:l,editCount:c,onApplyAll:d,onDiscardAll:u,isApplyingAll:h})]});var Jr=r(8843),Kr=r.n(Jr);const Xr=()=>{const e=(0,t.useSelect)(e=>e(br).selectStatuses(),[]),{setStatuses:r}=(0,t.useDispatch)(br),[n,a]=(0,s.useState)(!1),o=(0,s.useRef)(null),i=(0,s.useRef)(null),l=(0,jt.useSvgAria)(),c=(0,s.useMemo)(()=>[{value:"publish",label:(0,Tt.__)("Published","wordpress-seo")},{value:"future",label:(0,Tt.__)("Scheduled","wordpress-seo")},{value:"pending",label:(0,Tt.__)("Pending","wordpress-seo")},{value:"draft",label:(0,Tt.__)("Draft","wordpress-seo")}],[]),d=(0,s.useCallback)(()=>a(e=>!e),[]);(0,s.useEffect)(()=>{if(!n)return()=>{};const e=()=>{var e;a(!1),null===(e=i.current)||void 0===e||e.focus()},t=t=>{o.current&&!o.current.contains(t.target)&&e()},r=t=>{"Escape"===t.key&&e()};return document.addEventListener("mousedown",t),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",t),document.removeEventListener("keydown",r)}},[n]);const u=e.length;return(0,Pt.jsxs)("div",{ref:o,className:"yst-relative",children:[(0,Pt.jsxs)(jt.Button,{ref:i,variant:"secondary",size:"small",onClick:d,"aria-expanded":n,"aria-haspopup":"dialog",children:[(0,Tt.__)("Filters","wordpress-seo"),u>0&&(0,Pt.jsx)(jt.Badge,{variant:"plain",size:"small",className:"yst-mx-2 !yst-rounded",children:u}),(0,Pt.jsx)(Kr(),{className:"yst-h-4 yst-w-4 yst-text-slate-500 "+(u>0?"":"yst-ms-2"),...l})]}),(0,Pt.jsx)(jt.Popover,{isVisible:n,setIsVisible:a,position:"bottom-left",className:"before:yst-hidden !yst-top-full yst-mt-1 yst-p-3 yst-shadow-lg","aria-label":(0,Tt.__)("Filters","wordpress-seo"),children:(0,Pt.jsx)(jt.CheckboxGroup,{id:"bulk-editor-status-filter",className:"[&_.yst-checkbox]:yst-cursor-pointer [&_label]:!yst-cursor-pointer [&_.yst-checkbox]:yst-rounded [&_.yst-checkbox]:-yst-mx-2 [&_.yst-checkbox]:yst-px-2 [&_.yst-checkbox]:yst-py-1 [&_.yst-checkbox:hover]:yst-bg-slate-50",options:c,values:e,onChange:r})})]})},Qr=({total:e,totalPages:r,isPending:n})=>{const a=(0,t.useSelect)(e=>e(br).selectPage(),[]),{requestSwitch:o}=(0,t.useDispatch)(br),{matches:i}=(0,jt.useMediaQuery)("(min-width: 640px)"),l=(0,s.useCallback)(e=>o({kind:"page",target:e}),[o]);if(0===e)return null;const c=20*(a-1)+1,d=Math.min(20*a,e);return(0,Pt.jsxs)("div",{className:"yst-flex yst-items-center yst-justify-between",children:[(0,Pt.jsx)("p",{className:"yst-hidden sm:yst-block yst-text-sm yst-text-slate-600",children:(0,s.createInterpolateElement)((0,Tt.sprintf)(/* translators: %1$s is the first result number, %2$s the last result number, %3$s the total number of results. */ /* translators: %1$s is the first result number, %2$s the last result number, %3$s the total number of results. */
(0,Tt.__)("Showing %1$s to %2$s of %3$s results","wordpress-seo"),"<from/>","<to/>","<total/>"),{from:(0,Pt.jsx)("span",{className:"yst-font-semibold",children:c}),to:(0,Pt.jsx)("span",{className:"yst-font-semibold",children:d}),total:(0,Pt.jsx)("span",{className:"yst-font-semibold",children:e})})}),(0,Pt.jsx)(jt.Pagination,{className:"max-sm:yst-flex max-sm:yst-w-full max-sm:[&>*]:yst-flex-1 max-sm:[&_button]:yst-justify-center max-sm:[&_button]:!yst-px-1"
/* translators: Hidden accessibility label for the pagination navigation landmark. */,"aria-label":(0,Tt.__)("Results pagination","wordpress-seo"),current:a,total:r,onNavigate:l,maxPageButtons:i?6:5,disabled:n
/* translators: Hidden accessibility text. */,screenReaderTextPrevious:(0,Tt.__)("Previous","wordpress-seo")
/* translators: Hidden accessibility text. */,screenReaderTextNext:(0,Tt.__)("Next","wordpress-seo")})]})},en=(e,t)=>e===kr?"!yst-text-[13px] !yst-text-slate-800":t?"!yst-text-[13px] !yst-text-slate-600":"!yst-text-[13px] !yst-text-slate-800",tn=({isSlotFilled:e,hasExternalPendingChanges:t,hasExternalGeneration:r,item:n})=>e||t||r||!n.editable,rn={openFields:[],draft:{},savingFields:{}};var nn=r(6650);const an=({item:t,fieldSetId:r})=>{const n=(e=>{switch(e){case"draft":return(0,Tt.__)("Draft","wordpress-seo");case"pending":return(0,Tt.__)("Pending","wordpress-seo");case"future":return(0,Tt.__)("Scheduled","wordpress-seo");default:return""}})(t.status);return(0,Pt.jsx)(jt.Table.Header,{scope:"row",className:"yst-text-left !yst-text-[13px] !yst-text-slate-800",children:(0,Pt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-1.5",children:[(0,Pt.jsx)(e.Slot,{name:`yoast.bulkEditor.TableRowIndicator/${r}/${t.id}`,fillProps:{item:t,fieldSetId:r},children:e=>e}),(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col",children:[t.editLink?(0,Pt.jsxs)("a",{href:t.editLink,className:"yst-bulk-editor-title-link",target:"_blank",rel:"noopener noreferrer",children:[t.title,(0,Pt.jsx)("span",{className:"yst-sr-only",children:/* translators: Hidden accessibility text. */ /* translators: Hidden accessibility text. */
(0,Tt.__)("(Opens in a new browser tab)","wordpress-seo")})]}):(0,Pt.jsx)("span",{children:t.title}),n&&(0,Pt.jsx)("span",{className:"yst-mt-1 yst-font-normal yst-text-slate-500",children:`- ${n}`})]})]})})},sn=({field:e,itemId:t,itemTitle:r,value:n,isSaving:a,onChange:o})=>{const i=(0,s.useCallback)(t=>o({key:e.key,value:t.target.value}),[o,e.key]),[l,c]=(0,s.useState)(0);return(0,s.useEffect)(()=>c("auto"),[]),(0,Pt.jsx)(jt.Table.Cell,{children:(0,Pt.jsx)(nn.A,{easing:"ease-out",duration:100,height:l,animateOpacity:!0,children:(0,Pt.jsx)(jt.Textarea,{id:`bulk-editor-edit-${t}-${e.key}`,rows:2,value:n,onChange:i,disabled:a,className:`yst-resize-none ${en(e.key,!0)}`
/* translators: %1$s expands to the field label, %2$s to the content item title. */,"aria-label":(0,Tt.sprintf)((0,Tt.__)("%1$s for %2$s","wordpress-seo"),e.label,r)})})})},on=({item:t,fields:r,fieldSetId:n,isSelected:a,onToggleRow:o,edit:i,editing:l,hasExternalPendingChanges:c=!1,hasExternalGeneration:d=!1})=>{const{isEditing:u,openFields:h,draft:p,savingFields:f}=(e=>({isEditing:Boolean(e),...null!=e?e:rn}))(i),{onStartEdit:m,onChangeField:y,onApplyField:g,onCancelEdit:v,onDiscardField:w,onFieldApplied:b,isApplyingAll:x}=l,S=Object.keys(f).length>0||x,k=[(0,e.__experimentalUseSlotFills)(`${Er}/seoTitle/${t.id}`),(0,e.__experimentalUseSlotFills)(`${Er}/metaDescription/${t.id}`),(0,e.__experimentalUseSlotFills)(`${Er}/socialTitle/${t.id}`),(0,e.__experimentalUseSlotFills)(`${Er}/socialDescription/${t.id}`)].some(e=>(null==e?void 0:e.length)>0),E=(0,s.useCallback)(()=>o(t.id),[o,t.id]),j=(0,s.useCallback)(()=>m(t.id),[m,t.id]),_=(0,s.useCallback)(()=>v(t.id),[v,t.id]),C=(0,s.useCallback)(({key:e,value:r})=>y({id:t.id,key:e,value:r}),[y,t.id]),R=(0,s.useCallback)(()=>h.forEach(e=>g({id:t.id,key:e})),[h,g,t.id]),T=(0,Tt.sprintf)((0,Tt.__)("Edit %s","wordpress-seo"),t.title),A=(0,Tt.sprintf)((0,Tt.__)("Save %s","wordpress-seo"),t.title),P=(0,Tt.sprintf)((0,Tt.__)("Cancel editing %s","wordpress-seo"),t.title);return(0,Pt.jsxs)(jt.Table.Row,{children:[(0,Pt.jsx)(jt.Table.Cell,{children:(0,Pt.jsx)(jt.Checkbox,{id:`bulk-editor-select-${t.id}`,name:`bulk-editor-select-${t.id}`,value:String(t.id),className:"yst-mt-0.5"
/* translators: %s expands to the content item title. */,"aria-label":(0,Tt.sprintf)((0,Tt.__)("Select %s","wordpress-seo"),t.title),checked:a,onChange:E,disabled:!t.editable})}),(0,Pt.jsx)(an,{item:t,fieldSetId:n}),r.map(r=>{var n;return(0,Pt.jsx)(s.Fragment,{children:(0,Pt.jsx)(e.Slot,{name:`${Er}/${r.key}/${t.id}`,fillProps:{field:r,item:t,value:null!==(n=p[r.key])&&void 0!==n?n:"",isSaving:S,onSaveField:()=>g({id:t.id,key:r.key}),onDiscardField:()=>w({id:t.id,key:r.key}),onFieldApplied:e=>b(t.id,r.key,e)},children:e=>{var n;return e.length>0?e:h.includes(r.key)?(0,Pt.jsx)(sn,{field:r,itemId:t.id,itemTitle:t.title,value:null!==(n=p[r.key])&&void 0!==n?n:"",isSaving:S,onChange:C,isOpen:u}):(0,Pt.jsx)(jt.Table.Cell,{className:`yst-bulk-editor-cell-value ${en(r.key,!1)}`,children:t[r.key]},r.key)}})},r.key)}),(0,Pt.jsx)(jt.Table.Cell,{children:u?(0,Pt.jsxs)("span",{className:"yst-flex yst-flex-col yst-items-end yst-gap-1.5 yst--me-2.5",children:[(0,Pt.jsx)(jt.Button,{variant:"tertiary",size:"small",onClick:R,disabled:S,"aria-label":A,children:(0,Tt.__)("Save","wordpress-seo")}),(0,Pt.jsx)("span",{"aria-hidden":"true",className:"yst-w-full yst-border-t yst-border-slate-200"}),(0,Pt.jsx)(jt.Button,{variant:"tertiary",size:"small",onClick:_,disabled:S,"aria-label":P,children:(0,Tt.__)("Cancel","wordpress-seo")})]}):(0,Pt.jsx)("span",{className:"yst-flex yst-justify-end",children:(0,Pt.jsx)(jt.Button,{variant:"tertiary",size:"small",className:"yst--me-2.5",onClick:j,"aria-label":T,disabled:tn({isSlotFilled:k,hasExternalPendingChanges:c,hasExternalGeneration:d,item:t}),children:(0,Tt.__)("Edit","wordpress-seo")})})})]})},ln=({columnCount:e})=>(0,Pt.jsx)(Pt.Fragment,{children:Array.from({length:20},(t,r)=>(0,Pt.jsx)(jt.Table.Row,{children:Array.from({length:e},(e,t)=>(0,Pt.jsx)(jt.Table.Cell,{children:(0,Pt.jsx)("span",{"aria-hidden":"true",children:(0,Pt.jsx)(jt.SkeletonLoader,{className:"yst-w-full",children:" "})})},`skeleton-${r}-${t}`))},`skeleton-${r}`))}),cn=({items:e,fields:t,fieldSetId:r,columnCount:n,selection:a,editing:s,isLoading:o,hasExternalPendingChanges:i=!1,hasExternalGeneration:l=!1})=>{const{selectedIds:c,onToggleRow:d}=a;return o&&0===e.length?(0,Pt.jsx)(ln,{columnCount:n}):0===e.length?(0,Pt.jsx)(jt.Table.Row,{children:(0,Pt.jsx)(jt.Table.Cell,{colSpan:n,className:"yst-text-center yst-text-slate-500",children:(0,Tt.__)("No content found.","wordpress-seo")})}):e.map(e=>(0,Pt.jsx)(on,{item:e,fields:t,fieldSetId:r,isSelected:c.includes(e.id),onToggleRow:d,edit:s.editingRows[e.id],editing:s,hasExternalPendingChanges:i,hasExternalGeneration:l},e.id))},dn=({fields:e,columnCount:t,selectionToolbar:r,bulkActions:n,showBulkActions:a,filters:s})=>(0,Pt.jsxs)(jt.Table.Head,{children:[r&&(0,Pt.jsx)(jt.Table.Row,{children:(0,Pt.jsx)(jt.Table.Cell,{colSpan:t,className:"yst-bg-slate-50 yst-rounded-ss-lg yst-rounded-se-lg !yst-py-3.5",children:(0,Pt.jsxs)("div",{className:"yst-flex yst-items-center yst-justify-between yst-gap-4",children:[r,s]})})}),n&&(0,Pt.jsx)(jt.Table.Row,{"aria-hidden":!a,children:(0,Pt.jsx)(jt.Table.Cell,{colSpan:t,style:{padding:0},children:(0,Pt.jsx)(nn.A,{easing:"ease-in-out",duration:300,height:a?"auto":0,animateOpacity:!0,children:n})})}),(0,Pt.jsxs)(jt.Table.Row,{className:"[&_th]:!yst-text-slate-800 [&_th]:!yst-py-3 [&_th]:!yst-leading-[19px]",children:[(0,Pt.jsx)(jt.Table.Header,{scope:"col",children:(0,Pt.jsx)("span",{className:"yst-sr-only",children:(0,Tt.__)("Select","wordpress-seo")})}),(0,Pt.jsx)(jt.Table.Header,{scope:"col",children:(0,Tt.__)("Title","wordpress-seo")}),e.map(e=>(0,Pt.jsx)(jt.Table.Header,{scope:"col",children:e.label},e.key)),(0,Pt.jsx)(jt.Table.Header,{scope:"col",children:(0,Pt.jsx)("span",{className:"yst-flex yst-justify-end",children:(0,Tt.__)("Actions","wordpress-seo")})})]})]}),un=(e,t)=>`yst-table-auto sm:yst-table-fixed yst-w-full [&_thead]:!yst-border-t-0 [&_td]:yst-align-top [&_th]:yst-align-top [&_th]:yst-font-medium [&_tbody_td]:!yst-border-t-slate-100 [&_tbody_th]:!yst-border-t-slate-100 [&_thead_th]:!yst-border-b-slate-200 [&_tr>*:nth-child(2)]:!yst-ps-1.5${t?" [&_tbody_.yst-table-row:last-of-type_.yst-table-cell]:!yst-rounded-none":""} yst-transition-opacity yst-duration-150 ${e?"yst-opacity-60":"yst-opacity-100"}`,hn=({columnCount:e,children:t})=>t?(0,Pt.jsx)("tfoot",{children:(0,Pt.jsx)(jt.Table.Row,{children:(0,Pt.jsx)(jt.Table.Cell,{colSpan:e,className:"yst-border-t yst-border-slate-200 yst-bg-white yst-rounded-es-lg yst-rounded-ee-lg",children:t})})}):null,pn=({items:e,fieldSet:t,selection:r={},editing:n={},isLoading:a=!1,selectionToolbar:s,bulkActions:o,showBulkActions:i=!1,filters:c,footer:d,hasExternalPendingChanges:u,hasExternalGeneration:h})=>{const p=3+t.fields.length,f={selectedIds:[],isAllSelected:!1,onToggleRow:l.noop,onToggleAll:l.noop,...r},m={editingRows:{},onStartEdit:l.noop,onChangeField:l.noop,onApplyField:l.noop,onCancelEdit:l.noop,...n};return(0,Pt.jsxs)(Pt.Fragment,{children:[(0,Pt.jsx)("div",{role:"status",className:"yst-sr-only",children:a?(0,Tt.__)("Loading content…","wordpress-seo"):""}),(0,Pt.jsxs)(jt.Table,{"aria-label":t.label,"aria-busy":a,className:un(a,Boolean(d)),children:[(0,Pt.jsxs)("colgroup",{children:[(0,Pt.jsx)("col",{className:"sm:yst-w-[38px]"}),(0,Pt.jsx)("col",{}),t.fields.map(e=>(0,Pt.jsx)("col",{className:e.width},e.key)),(0,Pt.jsx)("col",{className:"sm:yst-w-[5%]"})]}),(0,Pt.jsx)(dn,{fields:t.fields,columnCount:p,selectionToolbar:s,bulkActions:o,showBulkActions:i,filters:c}),(0,Pt.jsx)(jt.Table.Body,{children:(0,Pt.jsx)(cn,{items:e,fields:t.fields,fieldSetId:t.id,columnCount:p,selection:f,editing:m,isLoading:a,hasExternalPendingChanges:u,hasExternalGeneration:h})}),(0,Pt.jsx)(hn,{columnCount:p,children:d})]})]})},fn=e=>`bulk-editor-tab-${e}`,mn=e=>`bulk-editor-tabpanel-${e}`,yn=({tab:e,isActive:t,disabled:r=!1,onChange:n,onKeyDown:a})=>{const o=(0,s.useCallback)(()=>n(e.id),[n,e.id]);return(0,Pt.jsx)(jt.Button,{id:fn(e.id),role:"tab",variant:"tertiary","aria-selected":t,"aria-controls":mn(e.id),tabIndex:t?0:-1,disabled:r,onClick:o,onKeyDown:a,className:It()(t?"yst-bg-slate-100 yst-text-slate-800":"yst-text-slate-600 hover:yst-bg-slate-100","hover:yst-font-medium focus:yst-text-slate-800 hover:yst-text-slate-800 hover:yst-bg-slate-100 hover:yst-text-opacity-100 !yst-leading-[19px]"),children:e.label})},gn=({tabs:e,activeTab:t,disabled:r=!1,onChange:n,label:a})=>{const o=(0,s.useRef)(null),i=(0,s.useCallback)(a=>{var s;if(r)return;const i=e.findIndex(e=>e.id===t),l=!!o.current&&"rtl"===getComputedStyle(o.current).direction,c=((e,t,r,n)=>{var a;const s=(t+1)%r,o=(t-1+r)%r;return null!==(a={ArrowRight:n?o:s,ArrowLeft:n?s:o,Home:0,End:r-1}[e])&&void 0!==a?a:null})(a.key,i,e.length,l);if(null===c)return;a.preventDefault();const d=e[c];n(d.id),null===(s=document.getElementById(fn(d.id)))||void 0===s||s.focus()},[e,t,n,r]);return(0,Pt.jsx)("div",{ref:o,role:"tablist","aria-label":a,className:"yst-flex yst-gap-4",children:e.map(e=>(0,Pt.jsx)(yn,{tab:e,isActive:e.id===t,disabled:r,onChange:n,onKeyDown:i},e.id))})},vn=({tabId:e,isActive:t,children:r})=>(0,Pt.jsx)("div",{id:mn(e),role:"tabpanel","aria-labelledby":fn(e),hidden:!t,children:r}),wn=({isOpen:e,onSave:t=l.noop,onDiscard:r=l.noop,onClose:n=l.noop,isSaving:a=!1})=>{const o=(0,jt.useSvgAria)(),i=(0,s.useRef)(null);return(0,Pt.jsx)(jt.Modal,{isOpen:e,onClose:n,initialFocus:i,children:(0,Pt.jsxs)(jt.Modal.Panel,{className:"yst-max-w-md",hasCloseButton:!1,children:[(0,Pt.jsxs)("div",{className:"yst-flex yst-items-start yst-gap-4",children:[(0,Pt.jsx)("div",{className:"yst-flex yst-flex-shrink-0 yst-items-center yst-justify-center yst-h-10 yst-w-10 yst-rounded-full yst-bg-red-100",children:(0,Pt.jsx)(qt(),{className:"yst-h-6 yst-w-6 yst-text-red-600",...o})}),(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-2 yst-max-w-xs",children:[(0,Pt.jsx)(jt.Modal.Title,{className:"yst-text-lg yst-font-medium yst-text-slate-900",children:(0,Tt.__)("Unsaved changes","wordpress-seo")}),(0,Pt.jsx)(jt.Modal.Description,{className:"yst-text-sm yst-text-slate-600",children:(0,Tt.__)("If you leave now, any changes you made will be lost. Would you like to save before continuing?","wordpress-seo")})]})]}),(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-2 yst-mt-6",children:[(0,Pt.jsx)(jt.Button,{ref:i,type:"button",variant:"primary",onClick:t,disabled:a,children:(0,Tt.__)("Save changes","wordpress-seo")}),(0,Pt.jsx)(jt.Button,{type:"button",variant:"secondary",onClick:r,disabled:a,children:(0,Tt.__)("Continue without saving","wordpress-seo")}),(0,Pt.jsx)(jt.Button,{type:"button",variant:"tertiary",onClick:n,disabled:a,children:(0,Tt.__)("Cancel","wordpress-seo")})]})]})})};var bn=r(2353),xn=r.n(bn);const Sn="bulk-editor-search",kn=({contentTypeLabel:e})=>{const{setSearch:r}=(0,t.useDispatch)(br),[n,a]=(0,s.useState)(""),o=(0,s.useMemo)(()=>(0,l.debounce)(e=>{const t=e.trim();(0===t.length||t.length>=3)&&r(t)},200),[r]);(0,s.useEffect)(()=>()=>o.cancel(),[o]);const i=(0,s.useCallback)(e=>{a(e.target.value),o(e.target.value)},[o]),c=(0,s.useCallback)(e=>{e.preventDefault(),o.cancel(),r(n.trim())},[n,r,o]);let d=(0,Tt.__)("Search","wordpress-seo"),u=(0,Tt.__)("Search…","wordpress-seo");return e&&(d=(0,Tt.sprintf)(/* translators: %s expands to the lowercase content type label, e.g. "pages". */ /* translators: %s expands to the lowercase content type label, e.g. "pages". */
(0,Tt.__)("Search for %s","wordpress-seo"),e.toLowerCase()),u=`${d}…`),(0,Pt.jsxs)("form",{role:"search",onSubmit:c,className:"yst-w-full sm:yst-w-80",children:[(0,Pt.jsx)("label",{htmlFor:Sn,className:"yst-sr-only",children:d}),(0,Pt.jsxs)("div",{className:"yst-flex yst-h-10 yst-items-stretch yst-rounded-md yst-border yst-border-slate-300 yst-bg-white yst-shadow-sm focus-within:yst-border-primary-500 focus-within:yst-ring-1 focus-within:yst-ring-primary-500",children:[(0,Pt.jsxs)("div",{className:"yst-relative yst-flex-1",children:[(0,Pt.jsx)(xn(),{className:"yst-pointer-events-none yst-absolute yst-top-1/2 yst--translate-y-1/2 yst-start-3 yst-h-5 yst-w-5 yst-text-slate-400","aria-hidden":"true"}),(0,Pt.jsx)("input",{id:Sn,type:"search",value:n,onChange:i,placeholder:u,className:"yst-w-full yst-border-0 yst-bg-transparent yst-py-1.5 yst-ps-10 yst-pe-3 yst-text-sm yst-text-slate-800 yst-placeholder-slate-500 focus:yst-outline-none focus:yst-ring-0"})]}),(0,Pt.jsx)(jt.Button,{type:"submit",variant:"tertiary",className:"yst-flex-none yst-rounded-none yst-border-s yst-border-slate-300 yst-px-4 yst-text-slate-700 hover:yst-text-slate-900 focus-visible:yst-outline-none focus-visible:yst-ring-2 focus-visible:yst-ring-inset focus-visible:yst-ring-primary-500",children:(0,Tt.__)("Search","wordpress-seo")})]})]})},En=({dataProvider:r,remoteDataProvider:n,contentType:a,contentTypeLabel:o,contentTypeSingularLabel:i})=>{const l=(0,s.useMemo)(()=>(()=>{const e={key:kr,label:(0,Tt.__)("Focus keyphrase","wordpress-seo"),param:"focus_keyphrase",width:"sm:yst-w-[19%]"};return{[xr]:{id:xr,label:(0,Tt.__)("Search appearance","wordpress-seo"),endpoint:"update_search",fields:[e,{key:"seoTitle",label:(0,Tt.__)("SEO title","wordpress-seo"),param:"seo_title",width:"sm:yst-w-[19%]"},{key:"metaDescription",label:(0,Tt.__)("Meta description","wordpress-seo"),param:"meta_description",width:"sm:yst-w-[33%]"}]},[Sr]:{id:Sr,label:(0,Tt.__)("Social appearance","wordpress-seo"),endpoint:"update_social",fields:[e,{key:"socialTitle",label:(0,Tt.__)("Social title","wordpress-seo"),param:"social_title",width:"sm:yst-w-[19%]"},{key:"socialDescription",label:(0,Tt.__)("Social description","wordpress-seo"),param:"social_description",width:"sm:yst-w-[33%]"}]}}})(),[]),c=(0,s.useMemo)(()=>Object.values(l).map(({id:e,label:t})=>({id:e,label:t})),[l]),{activeFieldSet:d,selectedIds:u,isPremium:h,isAiEnabled:p,hasExternalPendingChanges:f,hasExternalGeneration:m,pendingSwitch:y}=(0,t.useSelect)(e=>{const t=e(br);return{activeFieldSet:t.selectActiveFieldSet(),selectedIds:t.selectSelectedIds(),isPremium:t.selectPreference("isPremium",!1),isAiEnabled:t.selectPreference("isAiEnabled",!1),hasExternalPendingChanges:t.selectHasExternalPendingChanges(),hasExternalGeneration:t.selectHasExternalGeneration(),pendingSwitch:t.selectPendingSwitch()}},[]),{requestSwitch:g,commitSwitch:v,clearPendingSwitch:w,toggleRow:b,selectAll:x,deselectAll:S}=(0,t.useDispatch)(br),{data:k=[],total:E=0,totalPages:j=0,isPending:_,updateItem:C}=(({dataProvider:e,remoteDataProvider:r,contentType:n})=>{const[a,o]=(0,s.useState)({data:[],total:0,totalPages:0,error:null,isPending:!0}),i=(0,s.useCallback)((e,t,r)=>{o(n=>({...n,data:n.data.map(n=>n.id===e?{...n,[t]:r}:n)}))},[]),l=(0,s.useRef)(),c=(0,t.useSelect)(e=>e(br).selectSearch(),[]),d=(0,t.useSelect)(e=>e(br).selectPage(),[]),u=(0,t.useSelect)(e=>e(br).selectStatuses(),[]),h=e.getEndpoint("posts");return(0,s.useEffect)(()=>{var e;if(!h)return void o({data:[],total:0,totalPages:0,error:null,isPending:!1});null===(e=l.current)||void 0===e||e.abort();const t=new AbortController;return l.current=t,o(e=>({...e,isPending:!0})),r.fetchJson(h,{content_type:n,per_page:String(20),page:String(d),search:c,status:u},{signal:t.signal}).then(e=>{l.current===t&&o((e=>{const{posts:t=[],total:r=0,total_pages:n=0}=null!=e?e:{};return{data:t.map(Rr),total:r,totalPages:n,error:null,isPending:!1}})(e))}).catch(e=>{l.current===t&&"AbortError"!==(null==e?void 0:e.name)&&o({data:[],total:0,totalPages:0,error:e,isPending:!1})}),()=>t.abort()},[h,n,r,c,d,u]),{...a,updateItem:i}})({dataProvider:r,remoteDataProvider:n,contentType:a}),{editing:R,stopEditing:T}=(({dataProvider:e,remoteDataProvider:r,fieldSets:n,activeFieldSet:a,items:o,updateItem:i})=>{const l=(0,t.useSelect)(e=>e(br).selectEditingRows(),[]),{startEdit:c,updateDraftField:d,setSavingField:u,closeField:h,discardEdit:p,stopEdit:f}=(0,t.useDispatch)(br),[m,y]=(0,s.useState)(!1),[g,v]=(0,s.useState)(!1),w=(0,s.useRef)(!1),b=(0,s.useCallback)(()=>v(!1),[]);(0,s.useEffect)(()=>{0===Object.keys(l).length&&v(!1)},[l]);const x=(0,s.useCallback)(()=>f(),[f]),S=(0,s.useCallback)(({id:e,key:t})=>h({id:e,key:t}),[h]),k=(0,s.useCallback)(e=>{const t=o.find(t=>t.id===e);if(!t)return;const r=Object.fromEntries(n[a].fields.map(e=>{var r;return[e.key,null!==(r=t[e.key])&&void 0!==r?r:""]}));c({id:e,draft:r})},[o,n,a,c]),E=(0,s.useCallback)(e=>p({id:e}),[p]),j=(0,s.useCallback)(async({id:t,key:s})=>{const o=n[a],c=o.fields.find(e=>e.key===s),d=l[t];if(!c||!d)return;const p=e.getEndpoint(Cr(c,o));if(!p||!r)return;const f=d.draft[s];u({id:t,key:s,isSaving:!0});try{await r.fetchJson(p,{},{method:"POST",body:JSON.stringify({items:[{id:t,[c.param]:f}]})}),i(t,s,f),h({id:t,key:s})}catch(e){u({id:t,key:s,isSaving:!1}),v(!0)}},[n,a,e,r,l,u,h,i]),_=(0,s.useCallback)(async()=>{const t=n[a];if(w.current)return null;if(!r||0===Object.keys(l).length)return!0;const s={};Object.entries(l).forEach(([r,n])=>{const a=Number(r);n.openFields.forEach(r=>{const o=t.fields.find(e=>e.key===r);if(!o)return;const i=Cr(o,t),l=e.getEndpoint(i);l&&(s[i]||(s[i]={endpoint:l,rows:{}}),s[i].rows[a]||(s[i].rows[a]={item:{id:a},applied:[]}),s[i].rows[a].item[o.param]=n.draft[r],s[i].rows[a].applied.push({id:a,key:r,value:n.draft[r]}))})});const o=Object.values(s);if(0===o.length)return!0;const c=o.flatMap(e=>{const t=Object.values(e.rows),n=[];for(let e=0;e<t.length;e+=20)n.push(t.slice(e,e+20));return n.map(t=>({applied:t.flatMap(e=>e.applied),promise:r.fetchJson(e.endpoint,{},{method:"POST",body:JSON.stringify({items:t.map(e=>e.item)})})}))});w.current=!0,y(!0),v(!1);try{const e=await Promise.allSettled(c.map(e=>e.promise));e.forEach((e,t)=>{"fulfilled"===e.status&&c[t].applied.forEach(({id:e,key:t,value:r})=>{i(e,t,r),h({id:e,key:t})})});const t=e.some(e=>"rejected"===e.status);return t&&v(!0),!t}finally{w.current=!1,y(!1)}},[n,a,e,r,l,i,h]);return{editing:(0,s.useMemo)(()=>({editingRows:l,isApplyingAll:m,hasSaveError:g,dismissSaveError:b,onStartEdit:k,onChangeField:d,onApplyField:j,onApplyAll:_,onDiscardAll:x,onCancelEdit:E,onDiscardField:S,onFieldApplied:i}),[l,m,g,b,k,d,j,_,x,E,S,i]),stopEditing:f}})({dataProvider:r,remoteDataProvider:n,fieldSets:l,activeFieldSet:d,items:k,updateItem:C}),A=Object.keys(R.editingRows).length,P=A>0,L=(0,s.useCallback)(e=>g({kind:"fieldSet",target:e}),[g]),D=(0,s.useCallback)(async()=>{!1===await R.onApplyAll()&&w()},[R,w]),N=(0,s.useCallback)(()=>{T()},[T]),M=(0,s.useCallback)(()=>w(),[w]),O=(0,s.useCallback)(()=>{y&&v(y)},[y,v]);(0,s.useEffect)(()=>{null===y||P||f||O()},[y,P,f,O]);const{isAllSelected:I,isIndeterminate:F,selectedCount:B,totalCount:U,hasSelection:q}=((e,t,r,n)=>{if(e)return{isAllSelected:!1,isIndeterminate:!1,selectedCount:0,totalCount:0,hasSelection:!1};const a=r.filter(e=>e.editable).length,s=t.length,o=a>0&&s===a;return{isAllSelected:o,isIndeterminate:s>0&&!o,selectedCount:s,totalCount:n,hasSelection:s>0}})(_,u,k,E),H=(0,s.useCallback)(()=>{_||x(k.filter(e=>e.editable).map(e=>e.id))},[_,x,k]),$=(0,s.useCallback)(()=>q?S():H(),[q,S,H]),z=(0,s.useMemo)(()=>({selectedIds:u,onToggleRow:b}),[u,b]);return(0,Pt.jsxs)("div",{className:"yst-p-8 yst-space-y-6",children:[(0,Pt.jsxs)("div",{className:"yst-flex yst-flex-col yst-gap-4 sm:yst-flex-row sm:yst-items-start sm:yst-justify-between",children:[(0,Pt.jsx)(gn,{tabs:c,activeTab:d,disabled:m,onChange:L,label:(0,Tt.__)("Bulk editor views","wordpress-seo")}),(0,Pt.jsx)(kn,{contentTypeLabel:o})]}),c.map(e=>(0,Pt.jsx)(vn,{tabId:e.id,isActive:e.id===d,children:(0,Pt.jsx)(pn,{items:k,fieldSet:l[e.id],selection:z,editing:R,selectionToolbar:(0,Pt.jsx)($r,{idSuffix:`-${e.id}`,isAllSelected:I,isIndeterminate:F,onToggleAll:$,onSelectAll:H,onDeselectAll:S,selectedCount:B,totalCount:U,contentTypeLabel:o}),bulkActions:(0,Pt.jsx)(Zr,{isPremium:h,isAiEnabled:p,isActive:e.id===d,selectedIds:u,activeFieldSet:d,contentType:a,contentTypeLabel:o,contentTypeSingularLabel:i,hasUnsavedEdits:P,editCount:A,onApplyAll:R.onApplyAll,onDiscardAll:R.onDiscardAll,isApplyingAll:R.isApplyingAll,hasSaveError:R.hasSaveError,onDismissSaveError:R.dismissSaveError}),showBulkActions:q&&p||P||f,filters:(0,Pt.jsx)(Xr,{}),isLoading:_,hasExternalPendingChanges:f,hasExternalGeneration:m,footer:E>0?(0,Pt.jsx)(Qr,{total:E,totalPages:j,isPending:_}):null})},e.id)),(0,Pt.jsx)(wn,{isOpen:P&&null!==y,isSaving:R.isApplyingAll,onSave:D,onDiscard:N,onClose:M}),(0,Pt.jsx)(e.Slot,{name:"yoast.bulkEditor.pendingChangesModal",fillProps:{isOpen:null!==y&&!P,onCommit:O,onCancel:M}})]})};var jn=r(5770),Cn=r.n(jn),Rn=r(3626),Tn=r.n(Rn);const An=({href:e,disabled:t=!1,onNavigate:r=l.noop})=>{const n=(0,s.useCallback)(n=>{t?n.preventDefault():r(n,e)},[t,r,e]);return(0,Pt.jsxs)(jt.Link,{href:e,onClick:n,"aria-disabled":t,className:It()("yst-flex yst-items-center yst-gap-1.5 yst-rounded-md yst-px-3 yst-py-2 yst-text-sm yst-font-medium yst-no-underline yst-text-slate-800 hover:yst-bg-slate-50 hover:yst-text-slate-900",{"yst-opacity-50 yst-cursor-not-allowed hover:yst-bg-transparent hover:yst-text-slate-800":t}),children:[(0,Pt.jsx)(Tn(),{className:"yst-w-4 yst-h-4 yst-text-slate-400 rtl:yst-rotate-180","aria-hidden":"true"}),(0,Tt.__)("Back to Tools","wordpress-seo")]})},Pn=({contentType:e,disabled:t,onChange:r})=>{const n=(0,s.useCallback)(()=>r(e.id),[r,e.id]);return(0,Pt.jsx)(jt.SidebarNavigation.SubmenuItem,{as:"button",type:"button",pathProp:"value",value:e.id,label:e.label,disabled:t,onClick:n,className:It()("yst-w-full",{"yst-opacity-50":t})})},Ln=({logoHref:e,isPremium:t,idSuffix:r,disabled:n,onNavigate:a})=>{const o=(0,jt.useSvgAria)(),i=(0,s.useCallback)(t=>{n?t.preventDefault():a(t,e)},[n,a,e]);return(0,Pt.jsx)(jt.Link,{id:`link-bulk-editor-logo${r}`,href:e,onClick:i,"aria-disabled":n,className:It()("yst-inline-block yst-rounded-md focus:yst-ring-primary-500",{"yst-opacity-50 yst-cursor-not-allowed":n}),"aria-label":t?"Yoast SEO Premium":"Yoast SEO",children:(0,Pt.jsx)(Gt,{className:"yst-w-40",...o})})},Dn=({contentTypes:e,onChange:t,backToToolsUrl:r,disabled:n,onNavigate:a=l.noop,logoHref:s="/wp-admin/",isPremium:o=!1,visibleLimit:i=5,idSuffix:c=""})=>{const d=e.length-i,u=(0,Tt.sprintf)(/* translators: %d expands to the number of additional content types. */ /* translators: %d expands to the number of additional content types. */
(0,Tt._n)("Show %d more","Show %d more",d,"wordpress-seo"),d);return(0,Pt.jsxs)("div",{className:"yst-space-y-6",children:[(0,Pt.jsx)(Ln,{logoHref:s,isPremium:o,idSuffix:c,disabled:n,onNavigate:a}),(0,Pt.jsx)(An,{href:r,disabled:n,onNavigate:a}),(0,Pt.jsx)(jt.SidebarNavigation.MenuItemWithLimiter,{id:`bulk-editor-nav-content-types${c}`,label:(0,Tt.__)("Bulk editor","wordpress-seo"),icon:Cn(),defaultOpen:!0,limit:i,buttonId:`bulk-editor-nav-more${c}`,showMoreLabel:u,showLessLabel:(0,Tt.__)("Show less","wordpress-seo"),children:e.map(e=>(0,Pt.jsx)(Pn,{contentType:e,disabled:n,onChange:t},e.id))})]})},Nn=({title:e,description:t=null})=>(0,Pt.jsx)("header",{className:"yst-p-8 yst-border-b yst-border-slate-200",children:(0,Pt.jsxs)("div",{className:"yst-max-w-screen-sm",children:[(0,Pt.jsx)(jt.Title,{children:e}),t&&(0,Pt.jsx)("p",{className:"yst-text-tiny yst-mt-3",children:t})]})}),Mn=({dataProvider:e,remoteDataProvider:r})=>{var n;const a=(0,t.useSelect)(e=>e(br).selectActiveContentTypeName(),[]),o=(0,t.useSelect)(e=>e(br).selectPreference("isPremium",!1),[]),i=(0,t.useSelect)(e=>Object.keys(e(br).selectEditingRows()).length>0,[]),l=(0,t.useSelect)(e=>e(br).selectHasExternalGeneration(),[]),{requestSwitch:c}=(0,t.useDispatch)(br);(0,jt.useBeforeUnload)(i,(0,Tt.__)("There are unsaved changes on this page. Leaving means that those changes will be lost. Are you sure you want to leave this page?","wordpress-seo"));const d=(0,s.useCallback)((e,t)=>{[e.defaultPrevented,0!==e.button,e.metaKey,e.ctrlKey,e.shiftKey,e.altKey].some(Boolean)||(e.preventDefault(),c({kind:"navigate",target:t}))},[c]),u=e.getContentTypes().map(({name:e,label:t,singularLabel:r})=>({id:e,label:t,singularLabel:r})),h=null!==(n=u.find(({id:e})=>e===a))&&void 0!==n?n:u[0],{id:p,label:f,singularLabel:m}={id:(y=h)?y.id:"",label:y?y.label:"",singularLabel:y?y.singularLabel:""};var y;const g=(0,s.useRef)(p);g.current=p;const v=(0,s.useCallback)(e=>{e!==g.current&&c({kind:"contentType",target:e})},[c]),{title:w,description:b}=(e=>{const t=e?e.label:(0,Tt.__)("Content","wordpress-seo"),r=t.toLowerCase();return{
/* translators: %s expands to the content type label, e.g. "Pages". */
title:(0,Tt.sprintf)((0,Tt.__)("Bulk editor: %s","wordpress-seo"),t),description:(0,Tt.sprintf)(/* translators: %1$s and %2$s expand to the lowercase content type label, e.g. "pages". */ /* translators: %1$s and %2$s expand to the lowercase content type label, e.g. "pages". */
(0,Tt.__)("The bulk editor for %1$s is a tool that you can use to quickly make changes to your search and social media appearance for multiple %2$s.","wordpress-seo"),r,r)}})(h),x={contentTypes:u,onChange:v,backToToolsUrl:e.getLink("tools")||"/wp-admin/",disabled:l,onNavigate:d,logoHref:e.getLink("dashboard")||"/wp-admin/",isPremium:o};return(0,Pt.jsxs)(jt.SidebarNavigation,{activePath:p,children:[(0,Pt.jsx)(jt.SidebarNavigation.Mobile,{openButtonId:"button-open-bulk-editor-navigation-mobile",closeButtonId:"button-close-bulk-editor-navigation-mobile",openButtonScreenReaderText:(0,Tt.__)("Open bulk editor navigation","wordpress-seo"),closeButtonScreenReaderText:(0,Tt.__)("Close bulk editor navigation","wordpress-seo"),"aria-label":(0,Tt.__)("Bulk editor navigation","wordpress-seo"),children:(0,Pt.jsx)(Dn,{...x,idSuffix:"-mobile"})}),(0,Pt.jsxs)("div",{className:"yst-p-4 min-[783px]:yst-p-8 yst-flex yst-items-start yst-gap-6",children:[(0,Pt.jsx)("aside",{className:"yst-w-56 yst-shrink-0 yst-hidden min-[783px]:yst-block",children:(0,Pt.jsx)(jt.SidebarNavigation.Sidebar,{"aria-label":(0,Tt.__)("Bulk editor menu","wordpress-seo"),children:(0,Pt.jsx)(Dn,{...x})})}),(0,Pt.jsx)("div",{className:"yst-grow yst-max-w-page yst-min-w-0 yst-mb-8",children:(0,Pt.jsxs)(jt.Paper,{as:"main",children:[(0,Pt.jsx)(Nn,{title:w,description:b}),(0,Pt.jsx)(En,{dataProvider:e,remoteDataProvider:r,contentType:p,contentTypeLabel:f,contentTypeSingularLabel:m})]})})]})]})};function On(e,t){return e.get(function(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}(e,t))}function In(e,t){return function(e,t){return t.get?t.get.call(e):t.value}(e,On(t,e))}function Fn(e,t,r){return function(e,t,r){if(t.set)t.set.call(e,r);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=r}}(e,On(t,e),r),r}function Bn(e,t,r){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,r)}var Un=new WeakMap,qn=new WeakMap,Hn=new WeakMap;class $n{constructor({contentTypes:e=[],endpoints:t={},links:r={}}={}){Bn(this,Un,{writable:!0,value:void 0}),Bn(this,qn,{writable:!0,value:void 0}),Bn(this,Hn,{writable:!0,value:void 0}),Fn(this,Un,e),Fn(this,qn,t),Fn(this,Hn,r)}getContentTypes(){return In(this,Un)}getEndpoint(e){return In(this,qn)[e]||""}getEndpoints(){return In(this,qn)}getLink(e){return In(this,Hn)[e]||""}getLinks(){return In(this,Hn)}}const zn=(0,Qt.createSlice)({name:"activeContentType",initialState:"",reducers:{setActiveContentType:(e,{payload:t})=>t}}),Wn={selectActiveContentTypeName:e=>(0,l.get)(e,"activeContentType","")},Gn=zn.actions,Vn=zn.reducer,Yn=[xr,Sr],Zn=()=>xr,Jn=(0,Qt.createSlice)({name:"activeFieldSet",initialState:Zn(),reducers:{setActiveFieldSet:(e,{payload:t})=>Yn.includes(t)?t:e}}),Kn={selectActiveFieldSet:e=>(0,l.get)(e,"activeFieldSet",xr)},Xn=Jn.actions,Qn=Jn.reducer,ea=(0,Qt.createSlice)({name:"edits",initialState:{rows:{}},reducers:{startEdit:(e,{payload:t})=>{e.rows[t.id]={openFields:Object.keys(t.draft),draft:{...t.draft},savingFields:{}}},updateDraftField:(e,{payload:t})=>{const r=e.rows[t.id];r&&(r.draft[t.key]=t.value)},setSavingField:(e,{payload:t})=>{const r=e.rows[t.id];r&&(t.isSaving?r.savingFields[t.key]=!0:delete r.savingFields[t.key])},closeField:(e,{payload:t})=>{const r=e.rows[t.id];r&&(r.openFields=r.openFields.filter(e=>e!==t.key),delete r.draft[t.key],delete r.savingFields[t.key],0===r.openFields.length&&delete e.rows[t.id])},discardEdit:(e,{payload:t})=>{delete e.rows[t.id]},stopEdit:()=>({rows:{}})}}),ta={selectEditingRows:e=>(0,l.get)(e,"edits.rows",{})},ra=ea.actions,na=ea.reducer,aa=(0,Qt.createSlice)({name:"externalPendingChanges",initialState:!1,reducers:{setHasExternalPendingChanges:(e,{payload:t})=>Boolean(t)}}),sa={selectHasExternalPendingChanges:e=>(0,l.get)(e,"externalPendingChanges",!1)},oa=aa.actions,ia=aa.reducer,la=(0,Qt.createSlice)({name:"externalGeneration",initialState:!1,reducers:{setHasExternalGeneration:(e,{payload:t})=>Boolean(t)}}),ca={selectHasExternalGeneration:e=>(0,l.get)(e,"externalGeneration",!1)},da=la.actions,ua=la.reducer,ha=(0,Qt.createSlice)({name:"pendingSwitch",initialState:null,reducers:{setPendingSwitch:(e,{payload:t})=>t,clearPendingSwitch:()=>null}}),pa={selectPendingSwitch:e=>(0,l.get)(e,"pendingSwitch",null)},fa={...ha.actions,requestSwitch:({kind:e,target:t})=>({select:r,dispatch:n})=>{const a={contentType:r.selectActiveContentTypeName,fieldSet:r.selectActiveFieldSet,page:r.selectPage}[e];if(a){if(t===a())return;if(r.selectHasExternalGeneration())return}Object.keys(r.selectEditingRows()).length>0||r.selectHasExternalPendingChanges()?n.setPendingSwitch({kind:e,target:t}):n.commitSwitch({kind:e,target:t})},commitSwitch:({kind:e,target:t})=>({dispatch:r})=>"navigate"===e?(r.clearPendingSwitch(),void(window.location.href=t)):"page"===e?(r.setPage(t),void r.clearPendingSwitch()):("contentType"===e?(r.setActiveContentType(t),r.stopEdit()):r.setActiveFieldSet(t),void r.clearPendingSwitch())},ma=ha.reducer,ya=()=>({...(0,l.get)(window,"wpseoBulkEditorData.preferences",{})}),ga=(0,Qt.createSlice)({name:"preferences",initialState:ya(),reducers:{}}),va={selectPreference:(e,t,r={})=>(0,l.get)(e,`preferences.${t}`,r),selectPreferences:e=>(0,l.get)(e,"preferences",{})},wa=ga.actions,ba=ga.reducer,xa=(0,Qt.createSlice)({name:"query",initialState:{search:"",page:1,statuses:[]},reducers:{setSearch:(e,{payload:t})=>{e.search=t,e.page=1},setPage:(e,{payload:t})=>{e.page=t},setStatuses:(e,{payload:t})=>{e.statuses=t,e.page=1}},extraReducers:e=>{e.addCase(Gn.setActiveContentType,e=>{e.page=1})}}),Sa={selectSearch:e=>(0,l.get)(e,"query.search",""),selectPage:e=>(0,l.get)(e,"query.page",1),selectStatuses:e=>(0,l.get)(e,"query.statuses",[]),selectQuery:e=>(0,l.get)(e,"query",{search:"",page:1,statuses:[]})},ka=xa.actions,Ea=xa.reducer,ja=(0,Qt.createSlice)({name:"selection",initialState:{selectedIds:[]},reducers:{toggleRow:(e,{payload:t})=>{e.selectedIds.includes(t)?e.selectedIds=e.selectedIds.filter(e=>e!==t):e.selectedIds.push(t)},selectAll:(e,{payload:t})=>{e.selectedIds=[...t]},deselectAll:()=>({selectedIds:[]})},extraReducers:e=>{e.addCase(ka.setStatuses,()=>({selectedIds:[]})),e.addCase(ka.setSearch,()=>({selectedIds:[]})),e.addCase(ka.setPage,()=>({selectedIds:[]})),e.addCase(Gn.setActiveContentType,()=>({selectedIds:[]}))}}),_a={selectSelectedIds:e=>(0,l.get)(e,"selection.selectedIds",[])},Ca=ja.actions,Ra=ja.reducer;window.yoast=window.yoast||{},window.yoast.bulkEditor=window.yoast.bulkEditor||{},window.yoast.bulkEditor.components={...window.yoast.bulkEditor.components,UpsellModal:qr,GenericAlert:Jt},window.yoast.bulkEditor.hooks={...window.yoast.bulkEditor.hooks,useAiUpsell:Fr},a()(()=>{const r=document.getElementById("yoast-seo-bulk-editor");if(!r)return;(({initialState:e={}}={})=>{(0,t.register)((({initialState:e})=>(0,t.createReduxStore)(br,{actions:{...dr,...wa,...Xn,...Gn,...ka,...Ca,...ra,...oa,...da,...fa},selectors:{...cr,...va,...Kn,...Wn,...Sa,..._a,...ta,...sa,...ca,...pa},initialState:(0,l.merge)({},{[or]:lr(),preferences:ya(),activeFieldSet:Zn(),activeContentType:"",query:{search:"",page:1,statuses:[]},selection:{selectedIds:[]},edits:{rows:{}},externalPendingChanges:!1,externalGeneration:!1,pendingSwitch:null},e),reducer:(0,t.combineReducers)({[or]:ur,preferences:ba,activeFieldSet:Qn,activeContentType:Vn,query:Ea,selection:Ra,edits:na,externalPendingChanges:ia,externalGeneration:ua,pendingSwitch:ma})}))({initialState:e}))})({initialState:{[or]:(0,l.get)(window,"wpseoBulkEditorData.linkParams",{})}}),(()=>{const e=document.getElementById("wpcontent"),t=document.getElementById("adminmenuwrap");e&&t&&(e.style.minHeight=`${t.offsetHeight}px`)})();const n=(0,t.select)(br).selectPreference("isRtl",!1),a=(0,l.get)(window,"wpseoBulkEditorData.nonce",""),c=new $n({contentTypes:(0,l.get)(window,"wpseoBulkEditorData.contentTypes",[]),endpoints:(0,l.get)(window,"wpseoBulkEditorData.endpoints",{}),links:(0,l.get)(window,"wpseoBulkEditorData.links",{})}),d=new i.RemoteDataProvider({headers:{"X-WP-Nonce":a}}),u=(h=lt((0,Pt.jsx)(ot,{path:"/",element:(0,Pt.jsx)(Mn,{dataProvider:c,remoteDataProvider:d})})),oe({basename:void 0,future:dt({},void 0,{v7_prependBasename:!0}),history:(p={window:void 0},void 0===p&&(p={}),b(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=w(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),g("",{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:v(t))},function(e,t){m("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},p)),hydrationData:ut(),routes:h,mapRouteProperties:ct,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize());var h,p;(0,s.createRoot)(r).render((0,Pt.jsx)("div",{dir:n?"rtl":"ltr",className:"yst-root",children:(0,Pt.jsxs)(e.SlotFillProvider,{children:[(0,Pt.jsx)(wt,{router:u}),(0,Pt.jsx)(o.PluginArea,{scope:"yoast-seo-bulk-editor"})]})}))})})()})();

Home - Capital GMC Buick Regina

No data

Welcome to Capital GMC BUICK – REGINA

Thank you for choosing Capital GMC Buick | Regina, your premier certified Buick and GMC dealership proudly serving drivers in Regina and the surrounding communities. Whether you’re searching for a brand-new Buick or GMC vehicle or a meticulously inspected pre-owned model, we have a diverse selection to match your needs and lifestyle.

Beyond our impressive inventory, we offer a seamless and stress-free financing experience through our well-connected finance centre, where our team of experts is dedicated to securing the best loan or lease options for you, quickly, transparently, and hassle-free.

But our commitment to you doesn’t stop at the sale. Our state-of-the-art service centre is staffed with skilled Buick and GMC technicians who use the latest equipment and genuine OEM parts to keep your vehicle running at its best. From routine maintenance to complex repairs, we’ve got you covered.

Experience top-tier customer service, quality vehicles, and expert care, all in one place. Visit Capital GMC Buick | Regina today or call us at 306-205-8072 with any questions. We’re here to help!

Ask a Question