import{d as A,r as Bs,m as $e,n as et,c as zs,s as Fs}from"./vendor-vue-ui.65fbb3e9.js";import{p as nt,h as tt,s as xt,_ as a,a as P,b as Hs,c as Ee,d as M,e as Gs,f as Ks,r as qs,u as Ws,t as js,i as Ys}from"./vendor-other.ac1169a2.js";import{d as Vs,i as Jt,g as Ce,m as E,u as Zt}from"./vendor-lodash.a7229f96.js";const ze=A("AddonsStore",{state:()=>({addons:[]}),actions:{updateAddon(e){const t=this.addons.findIndex(s=>s.sku===e.sku);t!==-1&&(this.addons[t]=e)}}}),it=function(e){const s=T().aioseo.user;return!!s.canManage||!!(s.capabilities&&s.capabilities[e])};let Dt,Ze;const qr=(e,t)=>((...s)=>{const o=()=>e(...s);clearTimeout(Dt),Dt=setTimeout(o,t)}).call(),st=function(e,t){Ze&&clearTimeout(Ze),Ze=setTimeout(e,t)},Js=e=>{if(typeof window?.acf!="object"||typeof window.acf?.getField!="function")return null;const t=window.acf.getField(e)||{};return typeof t?.val!="function"?null:t.val()||{}},Zs=(e=null)=>{br();const t=k(),s=w();if(e)return!!t.dynamicOptions.searchAppearance.postTypes[e]?.advanced?.showMetaBox;if(!s.currentPost?.id)return!1;const o=s.currentPost.postType,r=s.currentPost.termType,n=!!(o&&s.currentPost.context==="post"&&t.dynamicOptions.searchAppearance.postTypes[o]&&t.dynamicOptions.searchAppearance.postTypes[o]?.advanced?.showMetaBox),l=!!(r&&s.currentPost.context==="term"&&t.dynamicOptions.searchAppearance.taxonomies[r]&&t.dynamicOptions.searchAppearance.taxonomies[r]?.advanced?.showMetaBox);return n||l};!window.wp?.blockEditor&&window.wp?.blocks&&window.wp.oldEditor&&(window.wp.blockEditor=window.wp.editor);const $=()=>document.body.classList.contains("block-editor-page")&&window.wp.data&&Qs(),B=()=>!!document.querySelector("#wp-content-wrap.tmce-active, #wp-content-wrap.html-active"),H=()=>document.querySelector("#post input#title")&&!document.querySelector("#wp-content-wrap"),ee=()=>!!(document.body.classList.contains("elementor-editor-active")&&window.elementor),te=()=>{const e=document.body;return!window.ET_Builder?!1:e.classList.contains("et_pb_pagebuilder_layout")||e.classList.contains("et_divi_builder")&&e.classList.contains("et-fb")},fe=()=>!!(document.body.classList.contains("seedprod-builder")&&window.seedprod_data),be=()=>!!(window.vc&&window.vc_mode),se=()=>(window.FusionApp||window.FusionPageBuilderApp)?.builderActive,ae=()=>!!(window.TVE&&window.TVE.Editor_Page),ye=()=>{const e=o=>!!(o?.offsetWidth||o?.offsetHeight||o?.getClientRects().length),t=document.querySelectorAll(".block-editor-page").length&&typeof window.soPanelsBuilderView<"u",s=e(document.querySelector("#so-panels-panels.attached-to-editor"));return t||s},Wr=()=>{const e=w();return T().aioseo.data.isWooCommerceActive&&e.currentPost&&e.currentPost.postType==="product"},oe=()=>{try{const e=window?.bricksData?.builderParam;return!!e&&new URLSearchParams(window.location.search).has(e)}catch{return!1}},re=()=>{try{return!!window?.OxygenFrontend?.utils?.isBuilder()}catch{return!1}},Fe=()=>ee()||te()||fe()||be()||se()||ye()||ae()||oe()||re(),Qs=()=>{const e=window.wp;return typeof e<"u"&&typeof e.blocks<"u"&&typeof e.blockEditor<"u"},jr=()=>$()?window.wp?.data?.select("core/edit-post")?.getEditorMode()==="text":!1;function J(e){return e?Vs(e).replace(/[\s./]+/g,"-").replace(/[^\p{L}\p{N}\p{M}_-]+/gu,"").toLowerCase().replace(/-+/g,"-").replace(/(^-+)|(-+$)/g,""):""}function Qt(e){for(;e!==tt.decode(e);)e=tt.decode(e);return e}const ge=(e,t=!1)=>{if(!Jt(e))return"";e=Qt(e);const s=nt.sanitize(e,{ALLOWED_TAGS:[],ALLOWED_ATTR:[],ALLOWED_URI_REGEX:[]});return t?tt.decode(s):s},Xt=e=>Jt(e)?nt.sanitize(Qt(e)):"",Yr=e=>{if(!e)return"#";if(e.startsWith("#")||e.startsWith("/"))return ge(e);try{const t=new URL(e);return t.protocol&&!["http:","https:","mailto:","tel:"].includes(t.protocol)?"#":ge(t.toString())}catch{return"#"}},lt=(e,t="div")=>{const s=document.createElement(t);return s.innerHTML=Xt(e.trim()),s},Ye=(e,t=!0,s="textContent")=>(typeof e=="string"&&(t&&(e=e.replace(/[\t|\n]/gm,"")),e=lt(e)),e[s]||e.textContent||e.innerText||""),Xs=e=>(typeof e=="string"&&(e=lt(e)),e?.outerText??""),Vr=(e,t=200,s="…")=>e&&(t{try{const s=JSON.parse(t);return s?s["@type"]&&(e===s["@type"]||Array.isArray(s["@type"])&&s["@type"].includes(e))?s:Array.isArray(s["@graph"])&&s["@graph"].find(r=>Array.isArray(r["@type"])?r["@type"].includes(e):r["@type"]===e)||!1:!1}catch{return!1}},Jr=()=>({url:window.location.href,title:document.title||"",description:document.querySelector('meta[name="description"]')?.content||""}),Zr=()=>{const e={description:document.querySelector('meta[property="og:description"]')?.content||"",image:document.querySelector('meta[property="og:image"]')?.content||"",title:document.querySelector('meta[property="og:title"]')?.content||"",type:document.querySelector('meta[property="og:type"]')?.content||""};if(!e.title&&(e.title=document.title||"",!e.title)){const t=T();e.title=t.aioseo.urls.domain}return e},Qr=()=>({card:document.querySelector('meta[name="twitter:card"]')?.content||"",description:document.querySelector('meta[name="twitter:description"]')?.content||"",image:document.querySelector('meta[name="twitter:image"]')?.content||"",title:document.querySelector('meta[name="twitter:title"]')?.content||""});function ct(e){return e=typeof e=="string"?e:e instanceof HTMLImageElement?e.outerHTML:e?.innerHTML||"",[].concat(pe(e,"]+)?>"),pe(e,"\\[gallery( [^\\]]+?)?\\]")).length}function ut(e){return e=typeof e=="string"?e:e instanceof HTMLIFrameElement||e instanceof HTMLVideoElement?e.outerHTML:e?.innerHTML||"",[].concat(pe(e,"]+)?>"),pe(e,"\\[video( [^\\]]+?)?\\]"),pe(e,"]+)?>"),pe(e,/(http:\/\/|https:\/\/|)(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/)).length}function pe(e,t){const s=new RegExp(t,"ig"),o=e.match(s);return o===null?[]:o}const ea=()=>{const e=window.elementor.documents.getCurrent(),t=[];return e.$element?(e.$element.find(".elementor-widget").each((s,o)=>{const r=o.innerHTML.trim().replaceAll(/
(.*)<\/div>/g,"$1").replaceAll(/()<\/p>/g,"$1");Ye(r)===""&&ct(r)===0&&ut(r)===0||t.push(r)}),t.join(" ")):""},ve=()=>{const{settings:e,config:t}=window.elementor;return{content:ea(),title:e.page.model.get("post_title"),excerpt:e.page.model.get("post_excerpt")||"",slug:J(e.page.model.get("post_title")),permalink:t.document.urls.permalink||"",featuredImage:e.page.model.get("post_featured_image")?.url||""}},ta=()=>{const e=ET_Builder?.Frames?.app?.frameElement||document.querySelector("iframe#et-fb-app-frame")||document.querySelector("iframe#et-vb-app-frame");if(!e)return document.createElement("div");const t=e.contentWindow.document.querySelectorAll("#et-fb-app");return Array.from(t).find(s=>s.classList.contains("et-fb-root-ancestor"))||t[0]||document.createElement("div")},dt=()=>{const e=/|\[object Object\]/gi;return Array.from(ta().querySelectorAll(".et_pb_section")).map(t=>t.innerHTML.replace(e,"").replaceAll(/()<\/p>/g,"$1")).filter(t=>Ye(t)||ct(t)||ut(t)).join(" ")};let at="",Me=!1,es=!1;document.addEventListener("aioseo-pagebuilder-modal-state",e=>{es=!!e.detail?.isOpen});const sa=()=>document.querySelector("iframe#et-vb-app-frame")?.contentWindow,we=()=>sa()?.divi?.data,pt=e=>we()?.select("divi/page-settings")?.getSetting(e),ht=e=>we()?.select("divi/settings")?.getSetting(e),aa=()=>!!we()?.select("divi/page-settings"),oa=()=>pt("postImage")||0,ts=()=>ht(["post","url"])||"",ss=()=>pt("postTitle")||"",ra=()=>pt("postExcerpt")||"",na=()=>{try{const e=new URL(ts()).pathname.replace(/\/$/,"").split("/").pop();if(e)return e}catch{}return J(ss())},Xr=()=>ht(["post","id"])||0,ia=()=>ht(["post","status"])||"publish",la=()=>we()?.select("divi/app-ui")?.getView()!=="wireframe"?dt():at,en=()=>Me,tn=async()=>{if(Me)return!1;const e=we();if(!e)return at="",!1;const t=e.select("divi/app-ui").getView();return t!=="wireframe"?!0:es?(Me=!0,await e.dispatch("divi/app-ui").setView("desktop"),at=dt(),await e.dispatch("divi/app-ui").setView(t),Me=!1,!0):!1},sn=async()=>{const e=we()?.dispatch("divi/serialized-post")?.syncToServer;if(typeof e=="function")try{const t=ia()==="publish"?"publish":"draft";await e({syncType:t})}catch(t){console.error("Failed to trigger save via API:",t)}},ca=()=>ETBuilderBackendDynamic?.currentPage?.thumbnailId||0,ua=()=>ETBuilderBackendDynamic?.currentPage?.permalink,da=()=>ETBuilderBackendDynamic?.postTitle||"",pa=()=>ETBuilderBackendDynamic?.postMeta?.post_excerpt||"",ha=()=>ETBuilderBackendDynamic?.postMeta?.post_name||J(ETBuilderBackendDynamic?.postTitle||""),ne=5<=(parseInt(window.aioseo?.theme?.templateVersion,10)||0),an=aa,ga=()=>ne?oa():ca(),ma=()=>{const e=ne?ts():ua();try{const t=new URL(e);return t.searchParams.delete("PageSpeed"),t.href}catch{return e||""}},fa=()=>ne?ss():da(),ba=()=>ne?ra():pa(),ya=()=>ne?na():ha(),va=async()=>{const{wp:e}=window,t=ga();if(!e||!t)return"";try{const s=e.media.attachment(t);s.get("url")||await s.fetch();const o=s.get("url");return!ne&&ETBuilderBackendDynamic?.currentPage&&(ETBuilderBackendDynamic.currentPage.thumbnailUrl=o),o}catch{return""}},wa=()=>ne?la():dt(),Se=({includeFeaturedImage:e=!0}={})=>({content:wa(),title:fa(),excerpt:ba(),slug:ya(),permalink:ma(),...e&&{featuredImage:va()}}),Sa=e=>{let t;switch(e.type){case"header":t=document.createElement(e.settings.tag),t.innerHTML=e.settings.headerTxt.trim();break;case"image":const s=document.createElement("img");e.settings.altTxt&&s.setAttribute("alt",e.settings.altTxt),e.settings.src&&s.setAttribute("src",e.settings.src),e.settings.noFollow&&s.setAttribute("rel","nofollow"),t=s,e.settings.link&&(t=document.createElement("a"),t.setAttribute("href",e.settings.link),t.innerHTML=s.outerHTML,e.settings.noFollow&&t.setAttribute("rel","nofollow"),e.settings.openNewWindow&&t.setAttribute("target","_blank"));break;case"video":e.settings.type==="youtube"?(t=document.createElement("iframe"),t.setAttribute("src",e.settings.youtubeUrl)):(t=document.createElement("div"),t.innerHTML=e.settings.code);break;case"text":t=document.createElement("div"),t.innerHTML=e.settings.txt.trim();break;case"button":t=document.createElement("a"),t.appendChild(document.createTextNode(e.settings.btnTxt+" "+e.settings.btnSubTxt)),e.settings.link&&t.setAttribute("href",e.settings.link),e.settings.altTxt&&t.setAttribute("alt",e.settings.altTxt),e.settings.src&&t.setAttribute("src",e.settings.src),e.settings.noFollow&&t.setAttribute("rel","nofollow"),e.settings.openNewWindow&&t.setAttribute("target","_blank");break;case"bullet-list":t=document.createElement("ul"),e.settings.items.forEach(o=>{const r=document.createElement("li");r.innerHTML=o.txt,t.appendChild(r)});break;case"custom-html":t=document.createElement("div"),t.innerHTML=e.settings.code;break}return t},ka=()=>{const e=[];return JSON.parse(JSON.stringify(Ce(seedprod_data,"settings.document.sections",[]))).forEach(s=>{s.rows.forEach(o=>{o.cols.forEach(r=>{r.blocks.forEach(n=>{const l=Sa(n);l&&(Ye(l)===""&&ct(l)===0&&ut(l)===0||e.push(l.outerHTML))})})})}),e.join(" ")},Pa=()=>{const e=Ce(seedprod_data,"home_url",""),t=Ce(seedprod_data,"settings.post_name","");return`${e}/${t}/`},Oe=()=>({content:ka(),title:Ce(seedprod_data,"settings.post_title",""),excerpt:"",slug:Ce(seedprod_data,"settings.post_name",""),permalink:Pa()}),Ta=()=>w().currentPost.processedContent,Ut=e=>{if(e==="admin_frontend_editor"){const{vc:t}=window;return t.builder.getTitle()||document.querySelector("#vc_page-title-field")?.value}return document.getElementById("#title")?.value||""},Aa=e=>{if(e==="admin_frontend_editor"){const{vc_iframe_src:t}=window,s=new URL(t).pathname.split("/").filter(o=>o);return s[s.length-1]||document.querySelector("#vc_post_name")?.value}return document.querySelector("#post_name")?.value||""},Ea=e=>{if(e==="admin_frontend_editor"){const{vc_iframe_src:t}=window;return t.replace(new URL(t).search,"")}return document.querySelector("#sample-permalink a")?.href||""},Ie=()=>{const{vc_mode:e}=window,t=Aa(e)||J(Ut(e));return{content:Ta(),title:Ut(e),excerpt:"",slug:t,permalink:Ea(e),featuredImage:""}},on=(e=!1)=>{const t=Array.from(document.querySelectorAll("#vc_button-update, #vc_button-save-draft, #vc_button-save-as-pending"));return e?t.filter(s=>s.offsetParent&&s.offsetWidth&&s.offsetHeight):t},Ca=()=>w().currentPost?.processedContent||"",Oa=()=>{const{FusionApp:e}=window;return e?.getPost("post_title")||document.getElementById("#title")?.value||""},Ia=()=>{const{FusionApp:e}=window;return e?.getPost("post_name")||document.querySelector("#post_name")?.value||""},xa=()=>{const{FusionApp:e}=window;return e?.getPost("post_permalink").replace("?fb-edit=1","")||document.querySelector("#sample-permalink a")?.href||""},Da=async()=>{const{wp:e,FusionApp:t}=window;if(!e||!t||!t.getDynamicPost("post_meta")._thumbnail_id)return"";const s=e.media.attachment(t.getDynamicPost("post_meta")._thumbnail_id);return s.get("url")||await s.fetch(),s.get("url")||""},ke=()=>({content:Ca(),title:Oa(),excerpt:"",slug:Ia(),permalink:xa(),featuredImage:Da()}),Ra=()=>{let e="";const t=["p","a","img","caption","br","video","iframe","blockquote","cite","em","strong","i","b","q","h1","h2","h3","h4","h5","h6","ul","ol","li","table","tr","th","td"],s=function(r){const n=lt(r);if(n.querySelectorAll(".so-panel").length===0)return r;for(const l of n.querySelectorAll("iframe, script, style, link"))l.remove();return n.querySelectorAll("*").forEach(l=>{if(!t.includes(l.tagName.toLowerCase())){const c=Array.from(l.childNodes);l.replaceWith(...c)}}),n.innerHTML?.replace(/[\t|\n]/gm," ")||""},{soPanelsBuilderView:o}=window;return o&&(Array.isArray(o)?o.forEach(function(r){e+=s(r.contentPreview)}):e=s(o.contentPreview)),e},xe=()=>({content:Ra(),title:"",excerpt:"",slug:"",permalink:"",featuredImage:""}),Ua=()=>TVE?.Editor_Page?.content_manager?.get_clean_content()||"",Lt=()=>TVE?.CONST?.post?.post_title||"",La=()=>TVE?.CONST?.post?.post_name||"",Na=()=>TVE?.CONST?.post_url||"",$a=()=>{const e=TVE?.CONST?.theme?.post_featured_image?.src||TVE?.CONST?.post_image?.featured||"";return e.includes("inc/assets/images/featured_image.png")?"":e},Pe=()=>({content:Ua(),title:Lt(),excerpt:"",slug:La()||J(Lt()),permalink:Na(),featuredImage:$a()}),Ma=()=>{const t=w().currentPost.processedContent;return nt.sanitize(t,{ADD_TAGS:["iframe"],ALLOWED_ATTR:["href","src","alt"],ALLOW_ARIA_ATTR:!1,ALLOW_DATA_ATTR:!1,ALLOW_UNKNOWN_TAGS:!1,FORBID_TAGS:["script","style"],FORBID_ATTR:["style","on*"]})},_a=()=>window.bricksData?.wp?.post?.title||"",Ba=()=>{try{const e=new URL(window.bricksData?.previewUrl||"");return e.origin+e.pathname}catch{return""}},za=()=>{try{const s=new URL(window.bricksData?.previewUrl||"").pathname.replace(/\/$/,"").split("/");return s[s.length-1]}catch{return""}},Fa=()=>R().tags.find(t=>t.id==="post_excerpt")?.value||"",Ha=async()=>{const e=window.bricksData?.featuredImage?.url||"";try{return new URL(e),e}catch{return""}},rn=e=>document.querySelector(".brx-body")?.__vue_app__?.config?.globalProperties?.[e]||null,Te=()=>({content:Ma(),title:_a(),excerpt:Fa(),slug:za(),permalink:Ba(),featuredImage:Ha()}),Ga=()=>w().currentPost?.processedContent||"",Ka=()=>R().tags.find(t=>t.id==="post_title")?.value||"",as=()=>R().tags.find(t=>t.id==="permalink")?.value||"",qa=()=>{try{const s=new URL(as()).pathname.replace(/\/$/,"").split("/");return s[s.length-1]}catch{return""}},Wa=()=>R().tags.find(t=>t.id==="post_excerpt")?.value||"",ja=async()=>"",nn=()=>window.parent.document.querySelector(".button-save-oxygen")||null,Ae=()=>({content:Ga(),title:Ka(),excerpt:Wa(),slug:qa(),permalink:as(),featuredImage:ja()}),os=()=>{const e=[{isEditor:ee,getData:ve},{isEditor:te,getData:Se},{isEditor:fe,getData:Oe},{isEditor:be,getData:Ie},{isEditor:se,getData:ke},{isEditor:ye,getData:xe},{isEditor:ae,getData:Pe},{isEditor:oe,getData:Te},{isEditor:re,getData:Ae}];for(const t of e)if(t.isEditor())return t.getData()?.slug??"";return""},Ya=()=>{const e=R();if(e.permalinkSlug)return e.permalinkSlug;let t="";if(B()||H()){const s=document.querySelector("#post_name");s&&(t=J(s.value))}return $()&&(t=window.wp.data.select("core/editor").getCurrentPost().slug),t||(t=os()),t&&e.updatePermalinkSlug(t),t},ot=()=>{let e="";if(B()||H()){const s=document.querySelector("#post_name")?.value||document.querySelector("#editable-post-name-full")?.textContent||document.querySelector("#title").value;s&&(e=J(s))}return $()&&(typeof window.wp?.data?.select("core/editor").getEditedPostSlug=="function"?e=window.wp.data.select("core/editor").getEditedPostSlug():e=window.wp.data.select("core/editor").getEditedPostAttribute("slug")),e||(e=os()),e},Va=async(e=!0)=>{let t=Ya();const s=ot();if(t!==s){t=s;const o=w();if(R().updatePermalinkSlug(t),!e)return;new q().runAnalysis({postId:o.currentPost.id,postData:{...o.currentPost},content:_(),slug:Q()})}},rs=()=>{const e=[{isEditor:ee,getData:ve},{isEditor:te,getData:Se},{isEditor:fe,getData:Oe},{isEditor:be,getData:Ie},{isEditor:se,getData:ke},{isEditor:ye,getData:xe},{isEditor:ae,getData:Pe},{isEditor:oe,getData:Te},{isEditor:re,getData:Ae}];for(const t of e)if(t.isEditor())return t.getData()?.permalink??"";return""},ns=()=>{const e=R();if(e.liveTags.permalink)return e.liveTags.permalink;let t;if(B()||H){const s=document.querySelector("#edit-slug-box a");s&&s.href&&(t=s.href)}return $()&&(t=window.wp.data.select("core/editor").getPermalink()),t||(t=rs()),t&&e.updatePermalink(t),t},Q=()=>{const e=T();let t;if(B()||H()){const s=document.querySelector("#edit-slug-box a");s&&s.href&&(t=s.href)}if($()&&(t=window.wp.data.select("core/editor").getPermalink()),t||(t=rs()),t&&e.aioseo.data.usingPermalinks&&ot()){const s=new URL(t),o=s.pathname.split("/").filter(r=>r!=="");o[0{let t=ns();const s=Q();if(t!==s&&(t=s,t)){const o=w();if(R().updatePermalink(t),!e)return;new q().runAnalysis({postId:o.currentPost.id,postData:{...o.currentPost},content:_(),slug:Q()})}},is=()=>{const e=[{isEditor:ee,getData:ve},{isEditor:te,getData:Se},{isEditor:fe,getData:Oe},{isEditor:be,getData:Ie},{isEditor:se,getData:ke},{isEditor:ye,getData:xe},{isEditor:ae,getData:Pe},{isEditor:oe,getData:Te},{isEditor:re,getData:Ae}];for(const t of e)if(t.isEditor())return t.getData()?.title??"";return""},Za=()=>{const e=R();if(e.liveTags.post_title)return e.liveTags.post_title;let t;if(B()||H()){const s=document.querySelector("#post input#title");t=s?s.value:""}return $()&&(t=window.wp.data.select("core/editor").getCurrentPost().title),t||(t=is()),t&&e.updatePostTitle(t),t},gt=()=>{let e;if(B()||H()){const t=document.querySelector("#post input#title");e=t?t.value:""}return $()&&(e=window.wp.data.select("core/editor").getEditedPostAttribute("title")),e||(e=is()),e},Qa=async(e=!0)=>{let t=Za();const s=gt();if(t!==s){t=s;const o=w();if(R().updatePostTitle(t),!e)return;new q().runAnalysis({postId:o.currentPost.id,postData:{...o.currentPost},content:_(),slug:Q()})}},ls=e=>e?(e=e.replaceAll(/\n\n/g," "),e=Ye(e,!1,"innerText"),e=e.replace(/\[.*?]/g,""),e.trim()):"",cs=()=>{const e=[{isEditor:ee,getData:ve},{isEditor:te,getData:Se},{isEditor:fe,getData:Oe},{isEditor:be,getData:Ie},{isEditor:se,getData:ke},{isEditor:ye,getData:xe},{isEditor:ae,getData:Pe},{isEditor:oe,getData:Te},{isEditor:re,getData:Ae}];for(const t of e)if(t.isEditor())return t.getData()?.excerpt??"";return""},us=()=>{const e=R();if(e.liveTags.post_excerpt)return e.liveTags.post_excerpt;let t;return(B()||H())&&(t=ds()),$()&&(t=window.wp.data.select("core/editor").getCurrentPost().excerpt),t||(t=cs()),t||(t=ls(ks())),t&&e.updatePostExcerpt(t),t},Xa=()=>{let e;return(B()||H())&&(e=ds()),$()&&(e=window.wp.data.select("core/editor").getEditedPostAttribute("excerpt")),e||(e=cs()),e||(e=ls(_())),e},eo=async(e=!0)=>{let t=us();const s=Xa();if(t!==s){t=s;const o=w();if(R().updatePostExcerpt(t),!e)return;new q().runAnalysis({postId:o.currentPost.id,postData:{...o.currentPost},content:_(),slug:Q()})}},ds=()=>{let e="";const t=document.querySelector("#postexcerpt textarea#excerpt");if(e=t?t.value:"",document.querySelector("#wp-excerpt-wrap.tmce-active")){const s=window.tinyMCE?window.tinyMCE.get("excerpt"):"";s&&(e=s.getContent({format:"raw"}))}return e},to=()=>{const e=[{isEditor:ee,getData:ve},{isEditor:te,getData:Se},{isEditor:se,getData:ke},{isEditor:ae,getData:Pe},{isEditor:oe,getData:Te},{isEditor:re,getData:Ae}];for(const t of e)if(t.isEditor())return t.getData()?.featuredImage??"";return""},so=()=>{const e=document.querySelector("#set-post-thumbnail img");return e?e.getAttribute("src"):""},ps=async(e=!1)=>{const t=window.wp.data.select("core/editor"),s=e&&t?t?.getEditedPostAttribute("featured_media"):t?.getCurrentPost()?.featured_media;return typeof s>"u"?new Promise(o=>setTimeout(()=>o(ps(e)),1e3)):s},ao=async()=>{if(B()||H())return so();if($()){const e=await ps(!0);return isNaN(e)||e===0?"":w().getMediaData({mediaId:e}).then(s=>s.source_url)}return to()},oo=async()=>{const e=await ao()||"",t=R();e!==(t.liveTags.featured_image_url||"")&&t.updateFeaturedImageUrl(e)};let F="",le="";const ro=(e=!0)=>{const t=R(),s=w();if(B()||H()){const o=document.querySelectorAll('#post input[name="post_category[]"]:checked');if(o.length){if(s?.currentPost?.primary_term?.category){const r=document.querySelector(`#categorychecklist input[value="${s.currentPost.primary_term.category}"]`);r?.parentNode?.innerText&&(F=r.parentNode.innerText,t.updateTaxonomyTitle(F))}else F!==o[0].parentNode.innerText&&(F=o[0].parentNode.innerText,t.updateTaxonomyTitle(o[0].parentNode.innerText));le=Array.from(o).map(r=>r.parentNode.innerText).join(", "),t.updateCategories(le)}else F!==""&&(F=le="",t.updateTaxonomyTitle(F),t.updateCategories(le))}if($()){let o=[],r=[],n=null,l=null;const c=T();if((c.aioseo.user.capabilities?.manageCategories||c.aioseo.user.capabilities?.manage_categories)&&(o=window.wp.data.select("core").getEntityRecords("taxonomy","category"),r=window.wp.data.select("core/editor").getEditedPostAttribute("categories"),n=window.wp.data.select("core").getEntityRecord("root","site")?.default_category,l=window.wp.data.select("core").getEntityRecord("taxonomy","category",n)),r&&r.length&&o){const p=o.filter(v=>r.includes(v.id));le=p.map(v=>v.name).join(", "),t.updateCategories(le);const g=s?.currentPost?.primary_term?.category||p[0]?.id;let b=p.find(v=>v.id===g);!b&&l&&r.includes(n)&&(b=l),F=b?.name||"",t.updateTaxonomyTitle(F)}else F="",t.updateTaxonomyTitle(""),t.updateCategories("")}e&&new q().runAnalysis({postId:s.currentPost.id})},no=(e=!1)=>{const t=w();if(t.currentPost.context!=="term")return;const s=R(),o=document.querySelector("#edittag input#name");o&&(s.updateTaxonomyTitle(o.value),o.addEventListener("input",()=>{s.updateTaxonomyTitle(o.value)}));const r=document.querySelector("#edittag textarea#description");r&&(s.updateTaxonomyDescription(r.value),r.addEventListener("input",()=>{s.updateTaxonomyDescription(r.value)}));const n=document.querySelector("#edittag input#slug");if(n){const l=J(n.value);s.updatePermalinkSlug(l),s.updatePermalink(t.currentPost.permalink.replace(`/${s.permalinkSlug}`,`/${l.replace(/ /gi,"-").replace(/[^a-z0-9-]/gi,"").toLowerCase()}`)),n.addEventListener("input",()=>{s.updatePermalinkSlug(l),s.updatePermalink(t.currentPost.permalink.replace(`/${s.permalinkSlug}`,`/${l.replace(/ /gi,"-").replace(/[^a-z0-9-]/gi,"").toLowerCase()}`))})}t.savePostState(),e&&q.runAnalysis({postId:t.currentPost.id})},io=(e=!1)=>{const t=w();if(t.currentPost.postType!=="attachment")return;const s=R(),o=document.querySelector("textarea#attachment_caption");o&&(s.updateAttachmentCaption(o.value),o.addEventListener("input",p=>{s.updateAttachmentCaption(p.target.value)}));const r=document.querySelector("textarea#attachment-details-caption");r&&(s.updateAttachmentCaption(r.value),r.addEventListener("input",p=>{s.updateAttachmentCaption(p.target.value)}));const n=document.querySelector("textarea#attachment_content");n&&(s.updateAttachmentDescription(n.value),n.addEventListener("input",p=>{s.updateAttachmentDescription(p.target.value)}));const l=document.querySelector("input#attachment_alt");l&&(s.updateAltTag(l.value),l.addEventListener("input",p=>{s.updateAltTag(p.target.value)}));const c=document.querySelector("input#attachment-details-alt-text");c&&(s.updateAltTag(l.value),c.addEventListener("input",p=>{s.updateAltTag(p.target.value)})),e&&new q().runAnalysis({postId:t.currentPost.id})},hs=()=>{const e=w();return e?.currentPost?.id&&!!e.currentPost?.isTruSeoEligible||!1},ln=()=>{const e=T();if(!e.aioseo.screen?.postType||e.aioseo.screen?.postType==="web-story")return!1;const t=w();return!!(k().options.advanced?.truSeo&&Zs(e.aioseo.screen.postType)&&!t.currentPost.isStaticPostsPage)},ce=async(e=900,t=!0)=>{st(async()=>{const s=wt(),o=w();await Qa(!1),await bo(!1),await eo(!1),await Va(!1),await Ja(!1),await oo(),ro(!1),no(!1),io(!1),st(s.updateSchemaOutput,Math.max(e*2,1800)),window.aioseoBus.$emit("aioseo-content-changed"),t&&new q().runAnalysis({postId:o.currentPost.id})},e)},cn=e=>{const t=e.getRangeAt(0),s=t.cloneRange();return s.collapse(!1),e.removeAllRanges(),e.addRange(s),e.extend(t.startContainer,t.startOffset),e},lo=e=>{const t=new RegExp(" ","g");return e.replace(/ /g," ").replace(t," ")},un=({element:e,property:t,value:s})=>{const o=e?.ownerDocument||document;if(!e)return o.documentElement;let r=e.parentElement;for(;r;){if(r.isEqualNode(o.documentElement)||s===o.defaultView?.getComputedStyle(r).getPropertyValue(t))return r;r=r.parentElement}return o.documentElement},dn=()=>{const e=document.createElement("div");return e.classList.add("aioseo-app"),e.style.position="absolute",e.style.zIndex="999",e.style.display="flex",e.setAttribute("tabindex",-1),e},gs=()=>{const t=w().currentPost.postType;if(!t)return"";const o=k().dynamicOptions.searchAppearance.postTypes[t].customFields;if(!o||!hs)return"";const r=()=>{ce(500)},n=o.replace(/\n/g,",").split(","),l=[],c=["INPUT","TEXTAREA","IMG"];n.forEach(g=>{g=g.trim();const b=document.getElementById(`${g}`)||{},v=document.querySelectorAll("#the-list > tr"),C=document.querySelectorAll(".acf-field");c.includes(b?.tagName)&&!b?.closest(".acf-field")?l.push(b):v.forEach(y=>{const x=y.querySelector(`#${y.id}-key`),D=y.querySelector(`#${y.id}-value`);c.includes(D?.tagName)&&n.includes(x?.value)&&l.push(D)}),C.forEach(y=>{if(g!==y.dataset.name||y.dataset.type==="repeater"||y.parentNode?.closest(".acf-repeater"))return"";let x=y.querySelector(`[id^="acf"][name$="[${y.dataset.key}]"]`);if(y.dataset.type==="image"&&(x=y.querySelector(".has-value img")),y.dataset.type==="gallery"&&(x=y.querySelector(".acf-gallery-attachment img")),y.dataset.type==="link"&&(x=Js(y.dataset.key)||y.querySelector(`[name$="[${y.dataset.key}][url]"]`)||{},x={tagName:"INPUT",type:"url",value:x?.url??x?.value??""}),!x||x.type&&x.type==="hidden")return"";if(y.dataset.type==="wysiwyg"){const D=window.setInterval(()=>{window.tinyMCE?.activeEditor?.acf&&(window.clearInterval(D),window.tinyMCE.activeEditor.on("keyup",function(){ce(500)}),window.tinyMCE.activeEditor.on("PostProcess",function(){st(()=>{ce(500)},10)}))},50),W=function(j){j.forEach(Z=>{if(Z.attributeName==="class"&&y.querySelector(".wp-editor-wrap.tmce-active")&&window.tinyMCE?.activeEditor){window.tinyMCE.activeEditor.on("keyup",function(){ce(500)});const U=y.querySelector(`[name="acf[${y.dataset.key}]"]`);U&&(U.addEventListener("keyup",()=>{ce(500)}),U.addEventListener("paste",()=>{ce(500)}))}})},ie=new MutationObserver(W),L=y.querySelector(".wp-editor-wrap");L&&ie.observe(L,{attributes:!0})}c.includes(x.tagName)&&l.push(x)})});let p="";return l.forEach(g=>{let b="";if(c.includes(g.tagName)&&typeof g?.addEventListener=="function"&&g.addEventListener("keyup",r),g.value&&(b=g.value),g.tagName==="IMG"&&g.src){const v=g.alt?`alt="${g.alt}"`:"";b=``}g.value&&g.type&&g.type==="url"&&(b=`${b}`),b&&(p+=`${b} `)}),p},co=(e,t=["INPUT","TEXTAREA","IMG"])=>{if(!e)return"";const s=document.getElementById(`${e}`),o=document.querySelectorAll("#the-list > tr"),r=document.querySelectorAll(".acf-field");let n="";if(s&&t.indexOf(s.tagName)!==-1&&(s.closest(".acf-field")||(n=s.tagName==="IMG"?s.getAttribute("src"):s.value)),o.length&&o.forEach(l=>{const c=l.querySelector(`#${l.id}-key`),p=l.querySelector(`#${l.id}-value`);p&&t.indexOf(p.tagName)!==-1&&c.value===e&&(n=p.tagName==="IMG"?p.getAttribute("src"):p.value)}),r.length){const l=[];r.forEach(c=>{if(e!==c.dataset.name||c.dataset.type==="repeater"||c.parentNode?.closest(".acf-repeater"))return;let p;t.forEach(g=>{const b=g.toLowerCase();p=c.querySelector(`[data-key="${c.dataset.key}"] ${b}`)||p}),p&&l.push(p.tagName==="IMG"?p.getAttribute("src"):p.value)}),n=l.join(" ")}return n},uo=({separator:e})=>{const t=Bs(e);return{parseTags:o=>{const r=R();return!o||!r.tags?o:(r.tags.forEach(n=>{if(n.id==="custom_field"){const g=new RegExp(`#${n.id}-([a-zA-Z0-9_-]+)`,"g"),b=o.match(g);b&&b.forEach(v=>{const C=new RegExp(`#${n.id}-([a-zA-Z0-9_-]+)`),y=v.match(C);y&&y[1]&&(o=o.replace(C,co(y[1])))});return}if(n.id==="tax_name"){const g=new RegExp(`#${n.id}-([a-zA-Z0-9_-]+)`,"g");o=o.replace(g,`[${n.name} - $1]`);return}const l=new RegExp(`#${n.id}(?![a-zA-Z0-9_])`,"g");n.id==="separator_sa"&&t.value!==void 0&&(o=o.replace(l,t.value));const c=o.match(l),p=r.liveTags[n.id]||n.value;c&&(o=o.replace(l,"%|%"+p))}),o=o.replace(/%\|%/g,""),ge(o))},separator:t}};function po(e){return new Worker(""+window.__aioseoDynamicImportPreload__("main-i6rXo6-k.js"),{type:"module",name:e?.name})}class q{postId=null;postTitle=null;postParsedTitle=null;postParsedDescription=null;postDescription=null;keyphrases=null;postContent=null;postSlug=null;isAnalyzing=!1;worker=null;async runAnalysis({postId:t,postData:s,content:o=_(),slug:r=Q()}){const n=w(),l=k();if(s=s||{...n.currentPost},!l.options.advanced?.truSeo||!n.currentPost.page_analysis||this.isAnalyzing)return;this.worker&&this.worker.terminate();const c={separator:ge(l.options.searchAppearance.global.separator)},{parseTags:p}=uo({separator:c.separator}),g=T(),b=R(),v=b.tags.map(D=>b.liveTags[D.id]!==void 0&&D.value!==b.liveTags[D.id]?{...D,value:b.liveTags[D.id]}:D),C={...$e(g.aioseo),tags:$e(v),currentPost:$e(n.currentPost)},y=JSON.parse(JSON.stringify({postId:t,postData:s,content:o,aioseo:C,slug:r,aioseoGlobals:c,postEditedTitle:gt(),postTitle:s.title||s.metaDefaults.title||"#post_title",postParsedTitle:p(s.title||s.metaDefaults.title||"#post_title"),postDescription:s.description||s.metaDefaults.description,postParsedDescription:p(s.description||s.metaDefaults.description)}));let x=[];this.worker=new po,this.worker.addEventListener("message",D=>{D.data.event==="tru-seo-analysis-complete"&&(x=D.data.analysis,this.dispatchActions(x,y),this.worker.terminate())}),this.worker.postMessage({event:"tru-seo-analysis",analysisData:y})}setSidebarButtonScore(t){const s=document.getElementById("aioseo-post-settings-sidebar-button"),o=document.getElementById("aioseo-post-score");!s||!o||(s.className=80{if(r.action==="updateState"&&s.postEditedTitle&&hs()){this.setSidebarButtonScore(r.data.seo_score);const n={...r.data};if(typeof o.currentPost?.keyphrases?.focus?.keyphrase=="string"&&(o.currentPost.keyphrases.focus={...n.keyphrases.focus,keyphrase:o.currentPost.keyphrases.focus.keyphrase}),0e.replace(/]*>([\S\s]*?)<\/script>/gmi,""),pn=e=>typeof e!="string"||!e.includes("&")?e:(Object.entries({"&":"&","<":"<",">":">",""":'"'," ":" "}).forEach(([s,o])=>{e=e.replaceAll(s,o)}),ho(e)),hn=e=>{const t=(r,n)=>{let l=e.id?document.getElementById(e.id):document.querySelector(e.selector);const c=document.querySelector(".edit-site-visual-editor__editor-canvas");if(!l&&c&&(l=e.id?c.contentWindow.document.getElementById(e.id):c.contentWindow.document.querySelector(e.selector)),!l){const p=document.querySelector('iframe[name="editor-canvas"]');p?.contentDocument&&(l=e.id?p.contentDocument.getElementById(e.id):p.contentDocument.querySelector(e.selector))}l&&(e.loop||n.disconnect(),e.done(l))},s=new MutationObserver(t);s.observe(e.parent||document,{subtree:!!e.subtree||!e.parent,childList:!0});const o=document.querySelector('iframe[name="editor-canvas"]');o?.contentDocument?.body&&s.observe(o.contentDocument.body,{subtree:!0,childList:!0})},gn=e=>/^(?:(?:https?|ftp):\/\/)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:\/\S*)?$/.test(e),mn=e=>new URL(e,import.meta.url).href,fn=e=>JSON.parse(JSON.stringify(e)),bn=(e,t,s)=>{let o,r=0;const n={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},l=function(g){return g=(""+g).replace(/[_\-+]/g,"."),g=g.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),g.length?g.split("."):[-8]},c=function(g){return g?isNaN(g)?n[g]||-7:parseInt(g,10):0};e=l(e),t=l(t);const p=Math.max(e.length,t.length);for(o=0;ot[o]){r=1;break}}if(!s)return r;switch(s){case">":case"gt":return 0=":case"ge":return 0<=r;case"<=":case"le":return 0>=r;case"===":case"=":case"eq":return r===0;case"<>":case"!==":case"ne":return r!==0;case"":case"<":case"lt":return 0>r;default:return null}},go=e=>{const t=[],s=[...e];for(;s.length;){const{...o}=s.shift();o.innerBlocks?.length&&s.push(...o.innerBlocks),o.innerBlocks=[],t.push(o)}return t},ms=(e,t)=>{if(Array.isArray(e))return e.map(function(s){return s[t]});if(typeof e=="object"){const s=[];for(const o in e)s.push(e[o][t]);return s}},Nt=e=>Array.from(new Set(e)),mt=()=>document.querySelector('iframe[name="editor-canvas"]'),fs=()=>{const e=!!document.querySelector(".editor-visual-editor.is-iframed"),t=!!mt();return e&&t},mo=()=>fs()&&mt()?.contentDocument||document,yn=()=>fs()&&mt()?.contentWindow||window,fo=e=>{const t=e.getBody()||{},s=t?.childNodes||[];return 1{const e=[{isEditor:ee,getData:ve},{isEditor:te,getData:Se},{isEditor:fe,getData:Oe},{isEditor:be,getData:Ie},{isEditor:se,getData:ke},{isEditor:ye,getData:xe},{isEditor:ae,getData:Pe},{isEditor:oe,getData:Te},{isEditor:re,getData:Ae}];for(const t of e)if(t.isEditor())return t.getData()?.content??"";return""},ws=e=>{if(!e.includes('`,r.content.raw))}}),e},Ss=(e,t)=>{const s=mo();return window.wp.data.select("core/block-editor").getBlocks().forEach(r=>{const[n,l]=r.name.split("/");if(!t.includes(n)||n==="core"&&l!=="table"||n==="aioseo"&&["faq","ai-assistant"].includes(l))return;const c=s.getElementById("block-"+r.clientId);if(c&&c.innerText){const p=n==="core"?l:r.name,g=`|`;e=e.replace(new RegExp(g,"s"),c.innerText)}}),e},ks=()=>{const e=R();if(e.liveTags.post_content)return e.liveTags.post_content;let t="";if(B()&&!Fe())if(window.tinyMCE||document.querySelector("#wp-content-wrap.html-active"))t=He();else{const o=window.setInterval(()=>{window.tinyMCE&&(window.clearInterval(o),t=He())},50)}return $()&&(t=window.wp.data.select("core/editor").getCurrentPost().content||"",t=ws(t),t=Ss(t,ys)),Fe()&&(t=vs()),w().currentPost.descriptionIncludeCustomFields&&(t=t+gs()),t=t.replace(bs,""),t&&e.updatePostContent(t),t},_=(e=!1)=>{let t="";if(B()&&!Fe())if(window.tinyMCE||document.querySelector("#wp-content-wrap.html-active"))t=He();else{const o=window.setInterval(()=>{window.tinyMCE&&(window.clearInterval(o),t=He())},50)}$()&&(t=window.wp.data.select("core/editor").getEditedPostContent(),t=ws(t),t=Ss(t,ys)),Fe()&&(t=vs());const s=w();return!e&&s.currentPost.descriptionIncludeCustomFields&&(t=t+gs()),t=t.replace(bs,""),t},bo=async(e=!0)=>{let t=ks();const s=_();if(t!==s){t=s;const o=w();if(R().updatePostContent(t),!e)return;new q().runAnalysis({postId:o.currentPost.id,postData:{...o.currentPost},content:_(),slug:Q()})}},He=()=>{let e;const t=window.tinyMCE?window.tinyMCE.get("content"):"";if(document.querySelector("#wp-content-wrap.tmce-active")&&t)e=t.getContent({format:fo(t)?"html":"raw"});else{const s=document.querySelector("textarea#content");e=s?s.value:""}return e};window.aioseoTranslations?(xt(window.aioseoTranslations.translations,"all-in-one-seo-pack"),window.aioseoTranslationsPro&&window.aioseoTranslationsPro.translationsPro&&xt(window.aioseoTranslationsPro.translationsPro,"aioseo-pro")):window.aioseo&&console.warn("AIOSEO translations couldn't be loaded.");const i="all-in-one-seo-pack",vn=[{label:"0.0",value:0},{label:"0.1",value:.1},{label:"0.2",value:.2},{label:"0.3",value:.3},{label:"0.4",value:.4},{label:"0.5",value:.5},{label:"0.6",value:.6},{label:"0.7",value:.7},{label:"0.8",value:.8},{label:"0.9",value:.9},{label:"1.0",value:1}],wn=[{label:a("always",i),value:"always"},{label:a("hourly",i),value:"hourly"},{label:a("daily",i),value:"daily"},{label:a("weekly",i),value:"weekly"},{label:a("monthly",i),value:"monthly"},{label:a("yearly",i),value:"yearly"},{label:a("never",i),value:"never"}],yo={add:a("Add",i),cancel:a("Cancel",i),delete:a("Delete",i),disabled:a("Disabled",i),edit:a("Edit",i),enabled:a("Enabled",i),hide:a("Hide",i),import:a("Import",i),include:a("Include",i),learnMore:a("Learn More",i),no:a("No",i),off:a("Off",i),on:a("On",i),or:a("Or",i),preview:a("Preview",i),remove:a("Remove",i),show:a("Show",i),value:a("Value",i),yes:a("Yes",i)},Sn=[{symbol:"$",label:"US Dollar",value:"USD"},{symbol:"€",label:"Euro",value:"EUR"},{symbol:"£",label:"British Pound Sterling",value:"GBP"},{symbol:"CA$",label:"Canadian Dollar",value:"CAD"},{symbol:"AU$",label:"Australian Dollar",value:"AUD"},{symbol:"¥",label:"Japanese Yen",value:"JPY"},{symbol:"RUB",label:"Russian Ruble",value:"RUB"},{symbol:"Rs",label:"Indian Rupee",value:"INR"},{symbol:"TL",label:"Turkish Lira",value:"TRY"},{symbol:"R$",label:"Brazilian Real",value:"BRL"},{symbol:"MX$",label:"Mexican Peso",value:"MXN"},{symbol:"Af",label:"Afghan Afghani",value:"AFN"},{symbol:"ALL",label:"Albanian Lek",value:"ALL"},{symbol:"DA",label:"Algerian Dinar",value:"DZD"},{symbol:"AR$",label:"Argentine Peso",value:"ARS"},{symbol:"AMD",label:"Armenian Dram",value:"AMD"},{symbol:"man.",label:"Azerbaijani Manat",value:"AZN"},{symbol:"BD",label:"Bahraini Dinar",value:"BHD"},{symbol:"Tk",label:"Bangladeshi Taka",value:"BDT"},{symbol:"Br",label:"Belarusian Ruble",value:"BYN"},{symbol:"BZ$",label:"Belize Dollar",value:"BZD"},{symbol:"Ƀ",label:"Bitcoin",value:"BTC"},{symbol:"Bs",label:"Bolivian Boliviano",value:"BOB"},{symbol:"KM",label:"Bosnia-Herzegovina Convertible Mark",value:"BAM"},{symbol:"BWP",label:"Botswanan Pula",value:"BWP"},{symbol:"BN$",label:"Brunei Dollar",value:"BND"},{symbol:"BGN",label:"Bulgarian Lev",value:"BGN"},{symbol:"FBu",label:"Burundian Franc",value:"BIF"},{symbol:"CFA",label:"CFA Franc BCEAO",value:"XOF"},{symbol:"FCFA",label:"CFA Franc BEAC",value:"XAF"},{symbol:"KHR",label:"Cambodian Riel",value:"KHR"},{symbol:"CV$",label:"Cape Verdean Escudo",value:"CVE"},{symbol:"CL$",label:"Chilean Peso",value:"CLP"},{symbol:"CN¥",label:"Chinese Yuan",value:"CNY"},{symbol:"CO$",label:"Colombian Peso",value:"COP"},{symbol:"CF",label:"Comorian Franc",value:"KMF"},{symbol:"CDF",label:"Congolese Franc",value:"CDF"},{symbol:"₡",label:"Costa Rican Colón",value:"CRC"},{symbol:"kn",label:"Croatian Kuna",value:"HRK"},{symbol:"Kč",label:"Czech Republic Koruna",value:"CZK"},{symbol:"Dkr",label:"Danish Krone",value:"DKK"},{symbol:"Fdj",label:"Djiboutian Franc",value:"DJF"},{symbol:"RD$",label:"Dominican Peso",value:"DOP"},{symbol:"EGP",label:"Egyptian Pound",value:"EGP"},{symbol:"Nfk",label:"Eritrean Nakfa",value:"ERN"},{symbol:"Ekr",label:"Estonian Kroon",value:"EEK"},{symbol:"Br",label:"Ethiopian Birr",value:"ETB"},{symbol:"GEL",label:"Georgian Lari",value:"GEL"},{symbol:"GH₵",label:"Ghanaian Cedi",value:"GHS"},{symbol:"GTQ",label:"Guatemalan Quetzal",value:"GTQ"},{symbol:"FG",label:"Guinean Franc",value:"GNF"},{symbol:"HNL",label:"Honduran Lempira",value:"HNL"},{symbol:"HK$",label:"Hong Kong Dollar",value:"HKD"},{symbol:"Ft",label:"Hungarian Forint",value:"HUF"},{symbol:"Ikr",label:"Icelandic Króna",value:"ISK"},{symbol:"Rp",label:"Indonesian Rupiah",value:"IDR"},{symbol:"IRR",label:"Iranian Rial",value:"IRR"},{symbol:"IQD",label:"Iraqi Dinar",value:"IQD"},{symbol:"₪",label:"Israeli New Sheqel",value:"ILS"},{symbol:"J$",label:"Jamaican Dollar",value:"JMD"},{symbol:"JD",label:"Jordanian Dinar",value:"JOD"},{symbol:"KZT",label:"Kazakhstani Tenge",value:"KZT"},{symbol:"Ksh",label:"Kenyan Shilling",value:"KES"},{symbol:"KD",label:"Kuwaiti Dinar",value:"KWD"},{symbol:"Ls",label:"Latvian Lats",value:"LVL"},{symbol:"LB£",label:"Lebanese Pound",value:"LBP"},{symbol:"LD",label:"Libyan Dinar",value:"LYD"},{symbol:"Lt",label:"Lithuanian Litas",value:"LTL"},{symbol:"MOP$",label:"Macanese Pataca",value:"MOP"},{symbol:"MKD",label:"Macedonian Denar",value:"MKD"},{symbol:"MGA",label:"Malagasy Ariary",value:"MGA"},{symbol:"RM",label:"Malaysian Ringgit",value:"MYR"},{symbol:"MURs",label:"Mauritian Rupee",value:"MUR"},{symbol:"MDL",label:"Moldovan Leu",value:"MDL"},{symbol:"MAD",label:"Moroccan Dirham",value:"MAD"},{symbol:"MTn",label:"Mozambican Metical",value:"MZN"},{symbol:"MMK",label:"Myanma Kyat",value:"MMK"},{symbol:"N$",label:"Namibian Dollar",value:"NAD"},{symbol:"NPRs",label:"Nepalese Rupee",value:"NPR"},{symbol:"NT$",label:"New Taiwan Dollar",value:"TWD"},{symbol:"NZ$",label:"New Zealand Dollar",value:"NZD"},{symbol:"C$",label:"Nicaraguan Córdoba",value:"NIO"},{symbol:"₦",label:"Nigerian Naira",value:"NGN"},{symbol:"Nkr",label:"Norwegian Krone",value:"NOK"},{symbol:"OMR",label:"Omani Rial",value:"OMR"},{symbol:"PKRs",label:"Pakistani Rupee",value:"PKR"},{symbol:"B/.",label:"Panamanian Balboa",value:"PAB"},{symbol:"₲",label:"Paraguayan Guarani",value:"PYG"},{symbol:"S/.",label:"Peruvian Nuevo Sol",value:"PEN"},{symbol:"₱",label:"Philippine Peso",value:"PHP"},{symbol:"zł",label:"Polish Zloty",value:"PLN"},{symbol:"QR",label:"Qatari Rial",value:"QAR"},{symbol:"RON",label:"Romanian Leu",value:"RON"},{symbol:"RWF",label:"Rwandan Franc",value:"RWF"},{symbol:"SR",label:"Saudi Riyal",value:"SAR"},{symbol:"din.",label:"Serbian Dinar",value:"RSD"},{symbol:"S$",label:"Singapore Dollar",value:"SGD"},{symbol:"Ssh",label:"Somali Shilling",value:"SOS"},{symbol:"R",label:"South African Rand",value:"ZAR"},{symbol:"₩",label:"South Korean Won",value:"KRW"},{symbol:"SLRs",label:"Sri Lankan Rupee",value:"LKR"},{symbol:"SDG",label:"Sudanese Pound",value:"SDG"},{symbol:"Skr",label:"Swedish Krona",value:"SEK"},{symbol:"CHF",label:"Swiss Franc",value:"CHF"},{symbol:"SY£",label:"Syrian Pound",value:"SYP"},{symbol:"TSh",label:"Tanzanian Shilling",value:"TZS"},{symbol:"฿",label:"Thai Baht",value:"THB"},{symbol:"T$",label:"Tongan Paʻanga",value:"TOP"},{symbol:"TT$",label:"Trinidad and Tobago Dollar",value:"TTD"},{symbol:"DT",label:"Tunisian Dinar",value:"TND"},{symbol:"USh",label:"Ugandan Shilling",value:"UGX"},{symbol:"₴",label:"Ukrainian Hryvnia",value:"UAH"},{symbol:"AED",label:"United Arab Emirates Dirham",value:"AED"},{symbol:"$U",label:"Uruguayan Peso",value:"UYU"},{symbol:"UZS",label:"Uzbekistan Som",value:"UZS"},{symbol:"Bs.F.",label:"Venezuelan Bolívar",value:"VEF"},{symbol:"₫",label:"Vietnamese Dong",value:"VND"},{symbol:"YR",label:"Yemeni Rial",value:"YER"},{symbol:"ZK",label:"Zambian Kwacha",value:"ZMK"},{symbol:"ZWL$",label:"Zimbabwean Dollar",value:"ZWL"}],vo=[{value:"AF",label:"Afghanistan"},{value:"AL",label:"Albania"},{value:"DZ",label:"Algeria"},{value:"AS",label:"American Samoa"},{value:"AD",label:"Andorra"},{value:"AO",label:"Angola"},{value:"AI",label:"Anguilla"},{value:"AQ",label:"Antarctica"},{value:"AG",label:"Antigua and Barbuda"},{value:"AR",label:"Argentina"},{value:"AM",label:"Armenia"},{value:"AW",label:"Aruba"},{value:"AU",label:"Australia"},{value:"AT",label:"Austria"},{value:"AZ",label:"Azerbaijan"},{value:"BS",label:"Bahamas"},{value:"BH",label:"Bahrain"},{value:"BD",label:"Bangladesh"},{value:"BB",label:"Barbados"},{value:"BY",label:"Belarus"},{value:"BE",label:"Belgium"},{value:"BZ",label:"Belize"},{value:"BJ",label:"Benin"},{value:"BM",label:"Bermuda"},{value:"BT",label:"Bhutan"},{value:"BO",label:"Bolivia"},{value:"BQ",label:"Bonaire"},{value:"BA",label:"Bosnia and Herzegovina"},{value:"BW",label:"Botswana"},{value:"BV",label:"Bouvet Island"},{value:"BR",label:"Brazil"},{value:"IO",label:"British Indian Ocean Territory"},{value:"BN",label:"Brunei Darussalam"},{value:"BG",label:"Bulgaria"},{value:"BF",label:"Burkina Faso"},{value:"BI",label:"Burundi"},{value:"CV",label:"Cabo Verde"},{value:"KH",label:"Cambodia"},{value:"CM",label:"Cameroon"},{value:"CA",label:"Canada"},{value:"KY",label:"Cayman Islands"},{value:"CF",label:"Central African Republic"},{value:"TD",label:"Chad"},{value:"CL",label:"Chile"},{value:"CN",label:"China"},{value:"CX",label:"Christmas Island"},{value:"CC",label:"Cocos (Keeling) Islands"},{value:"CO",label:"Colombia"},{value:"KM",label:"Comoros"},{value:"CD",label:"Democratic Republic of the Congo"},{value:"CG",label:"Congo"},{value:"CK",label:"Cook Islands"},{value:"CR",label:"Costa Rica"},{value:"HR",label:"Croatia"},{value:"CU",label:"Cuba"},{value:"CW",label:"Curaçao"},{value:"CY",label:"Cyprus"},{value:"CZ",label:"Czechia"},{value:"CI",label:"Côte d'Ivoire"},{value:"DK",label:"Denmark"},{value:"DJ",label:"Djibouti"},{value:"DM",label:"Dominica"},{value:"DO",label:"Dominican Republic"},{value:"EC",label:"Ecuador"},{value:"EG",label:"Egypt"},{value:"SV",label:"El Salvador"},{value:"GQ",label:"Equatorial Guinea"},{value:"ER",label:"Eritrea"},{value:"EE",label:"Estonia"},{value:"SZ",label:"Eswatini"},{value:"ET",label:"Ethiopia"},{value:"FK",label:"Falkland Islands"},{value:"FO",label:"Faroe Islands"},{value:"FJ",label:"Fiji"},{value:"FI",label:"Finland"},{value:"FR",label:"France"},{value:"GF",label:"French Guiana"},{value:"PF",label:"French Polynesia"},{value:"TF",label:"French Southern Territories"},{value:"GA",label:"Gabon"},{value:"GM",label:"Gambia"},{value:"GE",label:"Georgia"},{value:"DE",label:"Germany"},{value:"GH",label:"Ghana"},{value:"GI",label:"Gibraltar"},{value:"GR",label:"Greece"},{value:"GL",label:"Greenland"},{value:"GD",label:"Grenada"},{value:"GP",label:"Guadeloupe"},{value:"GU",label:"Guam"},{value:"GT",label:"Guatemala"},{value:"GG",label:"Guernsey"},{value:"GN",label:"Guinea"},{value:"GW",label:"Guinea-Bissau"},{value:"GY",label:"Guyana"},{value:"HT",label:"Haiti"},{value:"HM",label:"Heard Island and McDonald Islands"},{value:"VA",label:"Holy See"},{value:"HN",label:"Honduras"},{value:"HK",label:"Hong Kong"},{value:"HU",label:"Hungary"},{value:"IS",label:"Iceland"},{value:"IN",label:"India"},{value:"ID",label:"Indonesia"},{value:"IR",label:"Iran"},{value:"IQ",label:"Iraq"},{value:"IE",label:"Ireland"},{value:"IM",label:"Isle of Man"},{value:"IL",label:"Israel"},{value:"IT",label:"Italy"},{value:"JM",label:"Jamaica"},{value:"JP",label:"Japan"},{value:"JE",label:"Jersey"},{value:"JO",label:"Jordan"},{value:"KZ",label:"Kazakhstan"},{value:"KE",label:"Kenya"},{value:"KI",label:"Kiribati"},{value:"KR",label:"South Korea"},{value:"KW",label:"Kuwait"},{value:"KG",label:"Kyrgyzstan"},{value:"LA",label:"Lao People's Democratic Republic"},{value:"LV",label:"Latvia"},{value:"LB",label:"Lebanon"},{value:"LS",label:"Lesotho"},{value:"LR",label:"Liberia"},{value:"LY",label:"Libya"},{value:"LI",label:"Liechtenstein"},{value:"LT",label:"Lithuania"},{value:"LU",label:"Luxembourg"},{value:"MO",label:"Macao"},{value:"MG",label:"Madagascar"},{value:"MW",label:"Malawi"},{value:"MY",label:"Malaysia"},{value:"MV",label:"Maldives"},{value:"ML",label:"Mali"},{value:"MT",label:"Malta"},{value:"MH",label:"Marshall Islands"},{value:"MQ",label:"Martinique"},{value:"MR",label:"Mauritania"},{value:"MU",label:"Mauritius"},{value:"YT",label:"Mayotte"},{value:"MX",label:"Mexico"},{value:"FM",label:"Micronesia"},{value:"MD",label:"Moldova"},{value:"MC",label:"Monaco"},{value:"MN",label:"Mongolia"},{value:"ME",label:"Montenegro"},{value:"MS",label:"Montserrat"},{value:"MA",label:"Morocco"},{value:"MZ",label:"Mozambique"},{value:"MM",label:"Myanmar"},{value:"NA",label:"Namibia"},{value:"NR",label:"Nauru"},{value:"NP",label:"Nepal"},{value:"NL",label:"Netherlands"},{value:"NC",label:"New Caledonia"},{value:"NZ",label:"New Zealand"},{value:"NI",label:"Nicaragua"},{value:"NE",label:"Niger"},{value:"NG",label:"Nigeria"},{value:"NU",label:"Niue"},{value:"NF",label:"Norfolk Island"},{value:"MP",label:"Northern Mariana Islands"},{value:"NO",label:"Norway"},{value:"OM",label:"Oman"},{value:"PK",label:"Pakistan"},{value:"PW",label:"Palau"},{value:"PS",label:"Palestine, State of"},{value:"PA",label:"Panama"},{value:"PG",label:"Papua New Guinea"},{value:"PY",label:"Paraguay"},{value:"PE",label:"Peru"},{value:"PH",label:"Philippines"},{value:"PN",label:"Pitcairn"},{value:"PL",label:"Poland"},{value:"PT",label:"Portugal"},{value:"PR",label:"Puerto Rico"},{value:"QA",label:"Qatar"},{value:"MK",label:"Republic of North Macedonia"},{value:"RO",label:"Romania"},{value:"RU",label:"Russian Federation"},{value:"RW",label:"Rwanda"},{value:"RE",label:"Réunion"},{value:"BL",label:"Saint Barthélemy"},{value:"SH",label:"Saint Helena, Ascension and Tristan da Cunha"},{value:"KN",label:"Saint Kitts and Nevis"},{value:"LC",label:"Saint Lucia"},{value:"MF",label:"Saint Martin"},{value:"PM",label:"Saint Pierre and Miquelon"},{value:"VC",label:"Saint Vincent and the Grenadines"},{value:"WS",label:"Samoa"},{value:"SM",label:"San Marino"},{value:"ST",label:"Sao Tome and Principe"},{value:"SA",label:"Saudi Arabia"},{value:"SN",label:"Senegal"},{value:"RS",label:"Serbia"},{value:"SC",label:"Seychelles"},{value:"SL",label:"Sierra Leone"},{value:"SG",label:"Singapore"},{value:"SX",label:"Sint Maarten"},{value:"SK",label:"Slovakia"},{value:"SI",label:"Slovenia"},{value:"SB",label:"Solomon Islands"},{value:"SO",label:"Somalia"},{value:"ZA",label:"South Africa"},{value:"GS",label:"South Georgia and the South Sandwich Islands"},{value:"SS",label:"South Sudan"},{value:"ES",label:"Spain"},{value:"LK",label:"Sri Lanka"},{value:"SD",label:"Sudan"},{value:"SR",label:"Suriname"},{value:"SJ",label:"Svalbard and Jan Mayen"},{value:"SE",label:"Sweden"},{value:"CH",label:"Switzerland"},{value:"SY",label:"Syrian Arab Republic"},{value:"TW",label:"Taiwan"},{value:"TJ",label:"Tajikistan"},{value:"TZ",label:"Tanzania, United Republic of"},{value:"TH",label:"Thailand"},{value:"TL",label:"Timor-Leste"},{value:"TG",label:"Togo"},{value:"TK",label:"Tokelau"},{value:"TO",label:"Tonga"},{value:"TT",label:"Trinidad and Tobago"},{value:"TN",label:"Tunisia"},{value:"TR",label:"Turkey"},{value:"TM",label:"Turkmenistan"},{value:"TC",label:"Turks and Caicos Islands"},{value:"TV",label:"Tuvalu"},{value:"UG",label:"Uganda"},{value:"UA",label:"Ukraine"},{value:"AE",label:"United Arab Emirates"},{value:"GB",label:"United Kingdom of Great Britain and Northern Ireland"},{value:"UM",label:"United States Minor Outlying Islands"},{value:"US",label:"United States of America"},{value:"UY",label:"Uruguay"},{value:"UZ",label:"Uzbekistan"},{value:"VU",label:"Vanuatu"},{value:"VE",label:"Venezuela"},{value:"VN",label:"Vietnam"},{value:"VG",label:"Virgin Islands (British)"},{value:"VI",label:"Virgin Islands (U.S.)"},{value:"WF",label:"Wallis and Futuna"},{value:"EH",label:"Western Sahara"},{value:"YE",label:"Yemen"},{value:"ZM",label:"Zambia"},{value:"ZW",label:"Zimbabwe"},{value:"AX",label:"Åland Islands"}],wo=["us","uk","ca","ru","de","fr","es","it","br","au","ar","be","ch","dk","fi","hk","ie","il","mx","nl","no","pl","se","sg","tr","jp","in","hu","af","al","dz","ao","am","at","az","bh","bd","by","bz","bo","ba","bw","bn","bg","cv","kh","cm","cl","co","cr","hr","cy","cz","cd","do","ec","eg","sv","ee","et","ge","gh","gr","gt","gy","ht","hn","is","id","jm","jo","kz","kw","lv","lb","lt","lu","mg","my","mt","mu","md","mn","me","ma","mz","na","np","nz","ni","ng","om","py","pe","ph","pt","ro","sa","sn","rs","sk","si","za","kr","lk","th","bs","tt","tn","ua","ae","uy","ve","vn","zm","zw","ly","pk"],kn=[{value:"00:00",label:"00:00"},{value:"00:15",label:"00:15"},{value:"00:30",label:"00:30"},{value:"00:45",label:"00:45"},{value:"01:00",label:"01:00"},{value:"01:15",label:"01:15"},{value:"01:30",label:"01:30"},{value:"01:45",label:"01:45"},{value:"02:00",label:"02:00"},{value:"02:15",label:"02:15"},{value:"02:30",label:"02:30"},{value:"02:45",label:"02:45"},{value:"03:00",label:"03:00"},{value:"03:15",label:"03:15"},{value:"03:30",label:"03:30"},{value:"03:45",label:"03:45"},{value:"04:00",label:"04:00"},{value:"04:15",label:"04:15"},{value:"04:30",label:"04:30"},{value:"04:45",label:"04:45"},{value:"05:00",label:"05:00"},{value:"05:15",label:"05:15"},{value:"05:30",label:"05:30"},{value:"05:45",label:"05:45"},{value:"06:00",label:"06:00"},{value:"06:15",label:"06:15"},{value:"06:30",label:"06:30"},{value:"06:45",label:"06:45"},{value:"07:00",label:"07:00"},{value:"07:15",label:"07:15"},{value:"07:30",label:"07:30"},{value:"07:45",label:"07:45"},{value:"08:00",label:"08:00"},{value:"08:15",label:"08:15"},{value:"08:30",label:"08:30"},{value:"08:45",label:"08:45"},{value:"09:00",label:"09:00"},{value:"09:15",label:"09:15"},{value:"09:30",label:"09:30"},{value:"09:45",label:"09:45"},{value:"10:00",label:"10:00"},{value:"10:15",label:"10:15"},{value:"10:30",label:"10:30"},{value:"10:45",label:"10:45"},{value:"11:00",label:"11:00"},{value:"11:15",label:"11:15"},{value:"11:30",label:"11:30"},{value:"11:45",label:"11:45"},{value:"12:00",label:"12:00"},{value:"12:15",label:"12:15"},{value:"12:30",label:"12:30"},{value:"12:45",label:"12:45"},{value:"13:00",label:"13:00"},{value:"13:15",label:"13:15"},{value:"13:30",label:"13:30"},{value:"13:45",label:"13:45"},{value:"14:00",label:"14:00"},{value:"14:15",label:"14:15"},{value:"14:30",label:"14:30"},{value:"14:45",label:"14:45"},{value:"15:00",label:"15:00"},{value:"15:15",label:"15:15"},{value:"15:30",label:"15:30"},{value:"15:45",label:"15:45"},{value:"16:00",label:"16:00"},{value:"16:15",label:"16:15"},{value:"16:30",label:"16:30"},{value:"16:45",label:"16:45"},{value:"17:00",label:"17:00"},{value:"17:15",label:"17:15"},{value:"17:30",label:"17:30"},{value:"17:45",label:"17:45"},{value:"18:00",label:"18:00"},{value:"18:15",label:"18:15"},{value:"18:30",label:"18:30"},{value:"18:45",label:"18:45"},{value:"19:00",label:"19:00"},{value:"19:15",label:"19:15"},{value:"19:30",label:"19:30"},{value:"19:45",label:"19:45"},{value:"20:00",label:"20:00"},{value:"20:15",label:"20:15"},{value:"20:30",label:"20:30"},{value:"20:45",label:"20:45"},{value:"21:00",label:"21:00"},{value:"21:15",label:"21:15"},{value:"21:30",label:"21:30"},{value:"21:45",label:"21:45"},{value:"22:00",label:"22:00"},{value:"22:15",label:"22:15"},{value:"22:30",label:"22:30"},{value:"22:45",label:"22:45"},{value:"23:00",label:"23:00"},{value:"23:15",label:"23:15"},{value:"23:30",label:"23:30"},{value:"23:45",label:"23:45"}],Pn=[{value:"00:00",label:"12:00 AM"},{value:"00:15",label:"12:15 AM"},{value:"00:30",label:"12:30 AM"},{value:"00:45",label:"12:45 AM"},{value:"01:00",label:"01:00 AM"},{value:"01:15",label:"01:15 AM"},{value:"01:30",label:"01:30 AM"},{value:"01:45",label:"01:45 AM"},{value:"02:00",label:"02:00 AM"},{value:"02:15",label:"02:15 AM"},{value:"02:30",label:"02:30 AM"},{value:"02:45",label:"02:45 AM"},{value:"03:00",label:"03:00 AM"},{value:"03:15",label:"03:15 AM"},{value:"03:30",label:"03:30 AM"},{value:"03:45",label:"03:45 AM"},{value:"04:00",label:"04:00 AM"},{value:"04:15",label:"04:15 AM"},{value:"04:30",label:"04:30 AM"},{value:"04:45",label:"04:45 AM"},{value:"05:00",label:"05:00 AM"},{value:"05:15",label:"05:15 AM"},{value:"05:30",label:"05:30 AM"},{value:"05:45",label:"05:45 AM"},{value:"06:00",label:"06:00 AM"},{value:"06:15",label:"06:15 AM"},{value:"06:30",label:"06:30 AM"},{value:"06:45",label:"06:45 AM"},{value:"07:00",label:"07:00 AM"},{value:"07:15",label:"07:15 AM"},{value:"07:30",label:"07:30 AM"},{value:"07:45",label:"07:45 AM"},{value:"08:00",label:"08:00 AM"},{value:"08:15",label:"08:15 AM"},{value:"08:30",label:"08:30 AM"},{value:"08:45",label:"08:45 AM"},{value:"09:00",label:"09:00 AM"},{value:"09:15",label:"09:15 AM"},{value:"09:30",label:"09:30 AM"},{value:"09:45",label:"09:45 AM"},{value:"10:00",label:"10:00 AM"},{value:"10:15",label:"10:15 AM"},{value:"10:30",label:"10:30 AM"},{value:"10:45",label:"10:45 AM"},{value:"11:00",label:"11:00 AM"},{value:"11:15",label:"11:15 AM"},{value:"11:30",label:"11:30 AM"},{value:"11:45",label:"11:45 AM"},{value:"12:00",label:"12:00 PM"},{value:"12:15",label:"12:15 PM"},{value:"12:30",label:"12:30 PM"},{value:"12:45",label:"12:45 PM"},{value:"13:00",label:"1:00 PM"},{value:"13:15",label:"1:15 PM"},{value:"13:30",label:"1:30 PM"},{value:"13:45",label:"1:45 PM"},{value:"14:00",label:"2:00 PM"},{value:"14:15",label:"2:15 PM"},{value:"14:30",label:"2:30 PM"},{value:"14:45",label:"2:45 PM"},{value:"15:00",label:"3:00 PM"},{value:"15:15",label:"3:15 PM"},{value:"15:30",label:"3:30 PM"},{value:"15:45",label:"3:45 PM"},{value:"16:00",label:"4:00 PM"},{value:"16:15",label:"4:15 PM"},{value:"16:30",label:"4:30 PM"},{value:"16:45",label:"4:45 PM"},{value:"17:00",label:"5:00 PM"},{value:"17:15",label:"5:15 PM"},{value:"17:30",label:"5:30 PM"},{value:"17:45",label:"5:45 PM"},{value:"18:00",label:"6:00 PM"},{value:"18:15",label:"6:15 PM"},{value:"18:30",label:"6:30 PM"},{value:"18:45",label:"6:45 PM"},{value:"19:00",label:"7:00 PM"},{value:"19:15",label:"7:15 PM"},{value:"19:30",label:"7:30 PM"},{value:"19:45",label:"7:45 PM"},{value:"20:00",label:"8:00 PM"},{value:"20:15",label:"8:15 PM"},{value:"20:30",label:"8:30 PM"},{value:"20:45",label:"8:45 PM"},{value:"21:00",label:"9:00 PM"},{value:"21:15",label:"9:15 PM"},{value:"21:30",label:"9:30 PM"},{value:"21:45",label:"9:45 PM"},{value:"22:00",label:"10:00 PM"},{value:"22:15",label:"10:15 PM"},{value:"22:30",label:"10:30 PM"},{value:"22:45",label:"10:45 PM"},{value:"23:00",label:"11:00 PM"},{value:"23:15",label:"11:15 PM"},{value:"23:30",label:"11:30 PM"},{value:"23:45",label:"11:45 PM"}];a("Manually Enter Type",i),a("Billing Support",i),a("Customer Support",i),a("Reservations",i),a("Sales",i),a("Technical Support",i);const Tn=[{groupLabel:a("Activities",i),options:[{label:a("Activity",i),value:"activity"},{label:a("Sport",i),value:"sport"}]},{groupLabel:a("Businesses",i),options:[{label:a("Bar",i),value:"bar"},{label:a("Company",i),value:"company"},{label:a("Cafe",i),value:"cafe"},{label:a("Hotel",i),value:"hotel"},{label:a("Restaurant",i),value:"restaurant"}]},{groupLabel:a("Groups",i),options:[{label:a("Cause",i),value:"cause"},{label:a("Sports League",i),value:"sports_league"},{label:a("Sports Team",i),value:"sports_team"}]},{groupLabel:a("Organizations",i),options:[{label:a("Band",i),value:"band"},{label:a("Non-Profit",i),value:"non_profit"},{label:a("School",i),value:"school"},{label:a("University",i),value:"university"}]},{groupLabel:a("People",i),options:[{label:a("Actor",i),value:"actor"},{label:a("Athlete",i),value:"athlete"},{label:a("Author",i),value:"author"},{label:a("Director",i),value:"director"},{label:a("Musician",i),value:"musician"},{label:a("Politician",i),value:"politician"},{label:a("Profile",i),value:"profile"},{label:a("Public Figure",i),value:"public_figure"}]},{groupLabel:a("Places",i),options:[{label:a("City",i),value:"city"},{label:a("Country",i),value:"country"},{label:a("Landmark",i),value:"landmark"},{label:a("State/Province",i),value:"state_province"}]},{groupLabel:a("Products & Entertainment",i),options:[{label:a("Album",i),value:"album"},{label:a("Book",i),value:"book"},{label:a("Drink",i),value:"drink"},{label:a("Food",i),value:"food"},{label:a("Game",i),value:"game"},{label:a("Movie",i),value:"movie"},{label:a("Product",i),value:"product"},{label:a("Song",i),value:"song"},{label:a("TV Show",i),value:"tv_show"},{label:a("Episode",i),value:"episode"}]},{groupLabel:a("Websites",i),options:[{label:a("Article",i),value:"article"},{label:a("Website",i),value:"website"}]}],An=[{label:"301 "+a("Moved Permanently",i),value:301},{label:"302 "+a("Found",i),value:302},{label:"303 "+a("See Other",i),value:303},{label:"304 "+a("Not Modified",i),value:304},{label:"307 "+a("Temporary Redirect",i),value:307},{label:"308 "+a("Permanent Redirect",i),value:308},{label:"400 "+a("Bad Request",i),value:400,noTarget:!0},{label:"401 "+a("Unauthorized",i),value:401,noTarget:!0},{label:"403 "+a("Forbidden",i),value:403,noTarget:!0},{label:"404 "+a("Not Found",i),value:404,noTarget:!0},{label:"410 "+a("Gone",i),value:410,noTarget:!0},{label:"418 "+a("I'm a Teapot",i),value:418,noTarget:!0},{label:"451 "+a("Unavailable for Legal Reasons",i),value:451,noTarget:!0},{label:"500 "+a("Internal Server Error",i),value:500,noTarget:!0},{label:"501 "+a("Not Implemented",i),value:501,noTarget:!0},{label:"502 "+a("Bad Gateway",i),value:502,noTarget:!0},{label:"503 "+a("Service Unavailable",i),value:503,noTarget:!0},{label:"504 "+a("Gateway Timeout",i),value:504,noTarget:!0},{label:"505 "+a("HTTP Version Not Supported",i),value:505,noTarget:!0},{label:a("Pass through",i),value:0}],En=[{label:a("Ignore all parameters",i),value:"ignore"},{label:a("Exact match all parameters in any order",i),value:"exact"},{label:a("Ignore & pass parameters to the target",i),value:"pass"},{label:a("Ignore all parameters except UTM",i),value:"utm"}],Cn=[{label:a("Manual Redirects",i),value:"manual"},{label:a("Modified Posts",i),value:"modified"},{label:a("404 Redirects",i),value:"404"}],On=[{label:a("default",i),value:"LocalBusiness"},{label:a("Animal Shelter",i),value:"AnimalShelter"},{label:a("Archive Organization",i),value:"ArchiveOrganization"},{label:a("Automotive Business",i),value:"AutomotiveBusiness"},{label:a("Childcare",i),value:"ChildCare"},{label:a("Dentist",i),value:"Dentist"},{label:a("Dry Cleaning/Laundry",i),value:"DryCleaningOrLaundry"},{label:a("Emergency Service",i),value:"EmergencyService"},{label:a("Employment Agency",i),value:"EmploymentAgency"},{label:a("Entertainment Business",i),value:"EntertainmentBusiness"},{label:a("Financial Service",i),value:"FinancialService"},{label:a("Food Establishment",i),value:"FoodEstablishment"},{label:a("Government Office",i),value:"GovernmentOffice"},{label:a("Health & Beauty Business",i),value:"HealthAndBeautyBusiness"},{label:a("Home & Construction Business",i),value:"HomeAndConstructionBusiness"},{label:a("Internet Cafe",i),value:"InternetCafe"},{label:a("Legal Service",i),value:"LegalService"},{label:a("Library",i),value:"Library"},{label:a("Lodging Business",i),value:"LodgingBusiness"},{label:a("Medical Business",i),value:"MedicalBusiness"},{label:a("Professional Service",i),value:"ProfessionalService"},{label:a("Radio Station",i),value:"RadioStation"},{label:a("Real Estate Agent",i),value:"RealEstateAgent"},{label:a("Recycling Center",i),value:"RecyclingCenter"},{label:a("Self Storage",i),value:"SelfStorage"},{label:a("Shopping Center",i),value:"ShoppingCenter"},{label:a("Sports Activity Location",i),value:"SportsActivityLocation"},{label:a("Store",i),value:"Store"},{label:a("Television Station",i),value:"TelevisionStation"},{label:a("Tourist Information Center",i),value:"TouristInformationCenter"},{label:a("Travel Agency",i),value:"TravelAgency"}],So=[{label:"IE=EmulateIE7",value:"IE=EmulateIE7"},{label:"IE=edge",value:"IE=edge"},{label:"Chrome=1",value:"Chrome=1"}],ko=[{label:"noindex",value:"noindex"},{label:"nofollow",value:"nofollow"},{label:"none",value:"none"},{label:"noarchive",value:"noarchive"},{label:"nosnippet",value:"nosnippet"},{label:"notranslate",value:"notranslate"},{label:"noimageindex",value:"noimageindex"},{label:"max-snippet",value:"max-snippet"},{label:"max-image-preview",value:"max-image-preview"},{label:"max-video-preview",value:"max-video-preview"},{label:"unavailable_after",value:"unavailable_after"}],Po=[{label:"GET",value:"GET"},{label:"POST",value:"POST"},{label:"PUT",value:"PUT"},{label:"HEAD",value:"HEAD"},{label:"DELETE",value:"DELETE"},{label:"OPTIONS",value:"OPTIONS"}],To=[{label:"deny",value:"deny"},{label:"sameorigin",value:"sameorigin"},{label:"allow-from [url]",value:"allow-from [url]"}],Ao=[{label:"0",value:"0"},{label:"1",value:"1"},{label:"1; mode=block",value:"1; mode=block"},{label:"1; report=[url]",value:"1; report=[url]"}],Eo=[{label:"nosniff",value:"nosniff"}],Co=[{label:"max-age=[expire-time]",value:"max-age=[expire-time]"},{label:"max-age=[expire-time]; includeSubdomains",value:"max-age=[expire-time]; includeSubdomains"},{label:"max-age=[expire-time]; preload",value:"max-age=[expire-time]; preload"}],Oo=[{label:"cache",value:"cache"},{label:"cookies",value:"cookies"},{label:"storage",value:"storage"},{label:"executionContexts",value:"executionContexts"}],Io=[{label:"no-referrer",value:"no-referrer"},{label:"no-referrer-when-downgrade",value:"no-referrer-when-downgrade"},{label:"origin",value:"origin"},{label:"origin-when-cross-origin",value:"origin-when-cross-origin"},{label:"same-origin",value:"same-origin"},{label:"strict-origin",value:"strict-origin"},{label:"strict-origin-when-cross-origin",value:"strict-origin-when-cross-origin"},{label:"unsafe-url",value:"unsafe-url"}];a("General",i),a("CORS",i),a("Security",i);const In={login:a("Login Status",i),referrer:a("Referrer",i),role:a("WordPress User Roles",i),agent:a("User Agent",i),cookie:a("Cookie",i),ip:a("IP Address",i),server:a("Server",i),header:a("HTTP Header",i),wp_filter:a("WordPress Filter",i),locale:a("Locale",i),mobile:a("Mobile",i),feeds:a("Feeds",i),libraries:a("Libraries",i),loggedin:a("Logged In",i),loggedout:a("Logged Out",i),schedule:a("Schedule",i)},xn=[a("Smart Schema",i),a("Local SEO",i),a("Redirection Manager",i),a("Link Assistant",i),a("Google Search Console Integration",i),a("News & Video Sitemap",i),a("Image SEO",i),a("Custom Breadcrumb Templates",i),a("Advanced support for e-commerce",i),a("User Access Control",i),a("SEO for Categories, Tags and Custom Taxonomies",i),a("Social meta for Categories, Tags and Custom Taxonomies",i),a("REST API support",i),a("Ad free (no banner adverts)",i)],Dn="50%";a("Online",i),a("Onsite",i),a("Blended",i);a("Daily",i),a("Weekly",i),a("Monthly",i),a("Yearly",i);a("Business Event",i),a("Childrens Event",i),a("Comedy Event",i),a("Dance Event",i),a("Delivery Event",i),a("Education Event",i),a("Exhibition Event",i),a("Festival",i),a("Food Event",i),a("Hackathon",i),a("Literary Event",i),a("Music Event",i),a("Publication Event",i),a("Sale Event",i),a("Screening Event",i),a("Social Event",i),a("Sports Event",i),a("Theater Event",i),a("Visual Arts Event",i);a("Scheduled",i),a("Cancelled",i),a("Postponed",i),a("Rescheduled",i),a("Moved Online",i);a("Paid",i),a("Subscription",i),a("Free",i),a("Partially Free",i);a("Web Page",i),a("About Page",i),a("Checkout Page",i),a("Collection Page",i),a("Contact Page",i),a("Item Page",i),a("Medical Page",i),a("Profile Page",i),a("Real Estate Listing",i),a("Search Results Page",i);a("Full Time",i),a("Part Time",i),a("Contractor",i),a("Temporary",i),a("Intern",i),a("Volunteer",i),a("Day-by-Day Basis",i),a("Other",i);a("Professional Certificate",i),a("High School",i),a("Associate Degree",i),a("Bachelor Degree",i),a("Postgraduate Degree",i);a("Annual",i),a("Month",i),a("Week",i),a("Day",i),a("Hour",i);a("Male",i),a("Female",i),a("Unisex",i);a("Adults",i),a("Kids",i),a("Toddlers",i),a("Infants",i),a("Newborns",i);a("Kids",i),a("Toddlers",i),a("Infants",i),a("Newborns",i);a("N/A",i);a("New",i),a("Used",i);a("All Wheel Drive",i),a("Four Wheel Drive",i),a("Front Wheel Drive",i),a("Rear Wheel Drive",i);a("Miles",i),a("Kilometers",i);const m="https://aioseo.com/",Ge={home:`${m}docs/`,ultimateGuide:`${m}ultimate-wordpress-seo-guide/`,quickStartGuide:`${m}docs/quick-start-guide/`,googleSearchConsole:`${m}docs/how-to-verify-your-site-with-google-search-console/`,bingWebmasterVerification:`${m}docs/how-to-verify-your-site-with-bing-webmaster-tools/`,yandexWebmasterVerification:`${m}docs/how-to-verify-your-site-with-yandex-webmaster-tools/`,baiduWebmasterVerification:`${m}docs/baidu-webmaster-tools-verification/`,pinterestSiteVerification:`${m}docs/how-to-verify-your-site-with-pinterest/`,indexNow:`${m}docs/integrating-with-indexnow-to-instantly-re-index-your-content/`,microsoftClarityDocumentation:`${m}docs/how-to-verify-your-site-with-microsoft-clarity/`,gtmContainerId:`${m}docs/how-to-connect-your-site-with-google-tag-manager/`,rssContent:`${m}docs/how-to-protect-your-content-with-rss-content-settings/`,twitter:`${m}docs/beginners-guide-to-social-networks-settings-for-twitter/`,facebook:`${m}docs/beginners-guide-to-social-networks-settings-for-facebook/`,socialProfiles:`${m}docs/beginners-guide-to-social-networks-settings-for-facebook/`,xmlSitemaps:`${m}docs/how-to-create-an-xml-sitemap/`,blankSitemap:`${m}docs/how-to-fix-a-404-error-when-viewing-your-sitemap/`,sitemapIndexes:`${m}docs/using-sitemap-indexes-and-pagination/`,maxLinks:`${m}docs/using-sitemap-indexes-and-pagination/`,maxLinksRss:`${m}docs/how-to-create-an-rss-sitemap/#configuring-the-rss-sitemap`,selectPostTypes:`${m}docs/choosing-which-content-to-include-in-your-xml-sitemap/`,selectPostTypesColumns:`${m}docs/hiding-the-aioseo-column-on-all-posts-screens/`,selectPostTypesNews:`${m}docs/how-to-create-a-google-news-sitemap/#configuring-the-news-sitemap`,selectPostTypesVideo:`${m}docs/how-to-create-a-video-sitemap/#configuring-the-video-sitemap`,selectPostTypesRss:`${m}docs/how-to-create-an-rss-sitemap/#configuring-the-rss-sitemap`,selectTaxonomies:`${m}docs/choosing-which-content-to-include-in-your-xml-sitemap/`,selectTaxonomiesColumns:`${m}docs/hiding-the-aioseo-column-on-taxonomy-screens/`,selectTaxonomiesVideo:`${m}docs/how-to-create-a-video-sitemap/#configuring-the-video-sitemap`,includeArchivePages:`${m}docs/including-date-and-author-archives-in-your-xml-sitemap/`,excludeImages:`${m}docs/excluding-images-from-the-xml-sitemap/`,dynamicallyGenerate:`${m}docs/what-is-a-dynamically-generated-sitemap-and-why-is-it-better-to-use/`,dynamicallyGenerateVideo:`${m}docs/what-is-a-dynamically-generated-sitemap-and-why-is-it-better-to-use/`,videoSitemaps:`${m}docs/how-to-create-a-video-sitemap/`,includeCustomFields:`${m}docs/including-videos-in-custom-fields-in-your-video-sitemap/`,newsSitemaps:`${m}docs/how-to-create-a-google-news-sitemap/`,rssSitemaps:`${m}docs/how-to-create-an-rss-sitemap/`,facebookAdminId:`${m}docs/adding-your-facebook-admin-id/`,facebookAppId:`${m}docs/adding-your-facebook-app-id/`,facebookAuthorUrl:`${m}docs/setting-the-content-author-for-facebook/`,usageTracking:`${m}docs/usage-tracking/`,schemaSettings:`${m}docs/schema-settings/`,imageSeo:`${m}docs/image-seo-module/`,localSeo:`${m}introducing-local-seo/`,robotsEditor:`${m}docs/using-the-robots-txt-tool-in-all-in-one-seo/`,robotsRewrite:`${m}docs/nginx-rewrite-rules-for-robots-txt/`,useKeyphrasesTooltip:`${m}docs/using-the-focus-keyphrase-to-analyze-your-content/`,whenToUseNoindex:`${m}docs/when-to-use-noindex-or-the-robots-txt/`,installAioseoPro:`${m}docs/installing-all-in-one-seo-pro/`,importProcessSeoData:`${m}docs/importing-and-exporting-aioseo-settings-and-meta-data/`,whatAreMediaAttachments:`${m}docs/what-are-media-attachments-and-should-i-submit-them-to-search-engines/`,minimumRequirements:`${m}docs/what-are-the-minimum-requirements-for-all-in-one-seo-pack/`,apiCodeExamples:`${m}docs/how-do-i-use-your-api-code-examples/`,troubleshootIssues:`${m}docs/how-to-troubleshoot-issues-with-all-in-one-seo-pack/`,staticHomePage:`${m}docs/setting-the-seo-for-your-home-page/#setting-the-seo-when-your-homepage-displays-a-static-page`,staticHomePageFacebook:`${m}docs/setting-facebook-social-meta-for-your-homepage/#setting-the-facebook-social-meta-when-your-homepage-displays-a-static-page`,staticHomePageTwitter:`${m}docs/setting-twitter-social-meta-for-your-homepage/#setting-the-twitter-social-meta-when-your-homepage-displays-a-static-page`,restApi:`${m}docs/aioseo-uses-rest-api/`,configuringSchema:`${m}docs/configuring-the-schema-settings-in-all-in-one-seo/`,unfilteredHtml:`${m}docs/unfiltered-html-capability/`,customFields:`${m}docs/including-custom-fields-in-the-seo-page-analysis/`,productIdentifiers:`${m}docs/unique-product-identifiers/`,redirectManagerRegex:`${m}docs/redirect-manager-regex/`,redirectGdpr:`${m}docs/redirect-gdpr-privacy-information/`,redirectCustomRulesUserAgent:`${m}docs/redirection-manager-custom-rules/#user-agent`,redirectCanonicalHttps:`${m}docs/full-site-redirect/#canonical-settings`,redirectUnknownWebserver:`${m}docs/redirect-manager-unknown-web-server/`,redirectServerConfigReload:`${m}docs/redirect-manager-configuration-reload/`,localSeoShortcodeBusinessInfo:`${m}docs/shortcode-aioseo_local_business_info/`,localSeoShortcodeOpeningHours:`${m}docs/shortcode-aioseo_local_opening_hours/`,localSeoShortcodeLocations:`${m}docs/shortcode-aioseo_local_locations/`,localSeoShortcodeMap:`${m}docs/shortcode-aioseo_local_map/`,localSeoFunctionBusinessInfo:`${m}docs/function-aioseo_local_business_info/`,localSeoFunctionOpeningHours:`${m}docs/function-aioseo_local_opening_hours/`,localSeoFunctionLocations:`${m}docs/function-aioseo_local_locations/`,localSeoFunctionMap:`${m}docs/function-aioseo_local_map/`,localSeoSearchQueryConflict:`${m}docs/enhanced-search-query-conflict/`,localSeoMapSetup:`${m}docs/setting-up-google-maps/`,localSeoMapEmbedApi:`${m}docs/using-places-on-your-maps/`,breadcrumbsDisplay:`${m}docs/displaying-breadcrumbs-on-your-site/`,breadcrumbsShortcode:`${m}docs/shortcode-aioseo_breadcrumbs/`,breadcrumbsFunction:`${m}docs/function-aioseo_breadcrumbs/`,seoAnalyzer:`${m}docs/using-the-seo-analysis-tool/`,seoAnalyzerIssues:`${m}docs/seo-analysis-unable-to-connect-to-your-site/`,htmlSitemap:`${m}docs/html-sitemap/`,htmlSitemapShortcode:`${m}docs/shortcode-html-sitemap/`,htmlSitemapFunction:`${m}docs/function-html-sitemap/`,htmlSitemapCompactArchives:`${m}docs/html-sitemap#compact-archives/`,linkAssistant:`${m}docs/link-assistant`,linkAssistantPostTypes:`${m}docs/link-assistant-settings/#post-types`,linkAssistantPostStatuses:`${m}docs/link-assistant-settings/#post-statuses`,brokenLinkChecker:`${m}docs/broken-link-checker/`,updateWordPress:`${m}docs/update-wordpress/`,runningShortcodes:`${m}docs/running-shortcodes/`,crawlCleanup:`${m}docs/crawl-cleanup-best-practices`,schema:`${m}docs/a-guide-to-schema-org-markup-for-rich-snippets/`,schemaJsonLd:`${m}docs/a-guide-to-schema-org-markup-for-rich-snippets/#schema-markup-in-all-in-one-seo`,smartTags:`${m}docs/using-the-smart-tags-in-titles-and-descriptions/`,wpcode:`${m}docs/wpcode-snippet-library/`,primaryTerm:`${m}docs/setting-the-primary-term-for-breadcrumbs/`,cornerstoneContent:`${m}docs/cornerstone-content/`,eeat:`${m}docs/adding-author-seo-e-e-a-t-to-your-site/`,eeatAuthorBioInjection:`${m}docs/adding-author-seo-e-e-a-t-to-your-site/#aioseo-automatically-displaying-the-author-excerpt`,queryArgMonitor:`${m}docs/using-the-query-arg-monitoring-in-all-in-one-seo/`,businessPhoneNumber:`${m}docs/best-business-phone-services`,keywordRankTracker:`${m}docs/using-the-keyword-rank-tracker-feature-in-search-statistics/`,writingAssistantHowToUse:`${m}docs/how-to-use-the-writing-assistant-in-aioseo/`,aiContentGenerator:`${m}docs/ai-content-generator/`,aiDisclaimer:`${m}docs/using-the-ai-assistant-in-all-in-one-seo-to-create-content/#aioseo-ai-generated-content-disclaimer`,aiBuyingCredits:`${m}docs/buying-and-managing-credits-for-the-aioseo-ai-features/`,llmsTxt:`${m}docs/how-to-create-an-llms-txt-using-all-in-one-seo/`,redirectLogs:`${m}docs/logging-redirects-in-all-in-one-seo/`,redirect404Logs:`${m}docs/redirecting-404-content-not-found-using-all-in-one-seo/`},xo={home:m,liteUpgrade:`${m}lite-upgrade/`,pricing:`${m}pricing/`,aiCredits:`${m}pricing-ai-credits/`,semrushPricing:`${m}semrush-pricing/`},Ke=(e,t=null,s)=>{let o=xo[s]||s;if(s==="liteUpgrade"&&(o=T().aioseo.urls.upgradeUrl),e==="feature-manager-upgrade"&&t!=="no-license-key"){const r=t==="aioseo-local-business"?"&features[]=local-seo":"&features[]="+(t?t.replace("aioseo-",""):"");return me(e,t,o)+r}return me(e,t,o)},Do=e=>me("documentation",e,Ge[e]),Ro=(e,t,s,o,r=!1)=>{const n=r?P(' →',Ke(e,t,o)):"";return P('%2$s%3$s',Ke(e,t,o),s,n)},Uo=(e,t,s=!1,o=!0)=>{const r=o?'target="_blank"':"_self",n=P(`%2$s`,t,e);return s==="back"?P(`← `,t)+n:s?n+P(` →`,t):n},Lo=(e,t,s=!1)=>{const o=s?P(' →',me("documentation",t,Ge[t])):"";return P('%2$s%3$s',me("documentation",t,Ge[t]),e,o)},No=(e,t,s,o=`${m}pricing/`)=>Ke(t,s,o)+"&features[]="+e,me=(e,t=null,s=`${m}pricing/`)=>s.includes("shareasale.com/r.cfm")&&s.includes("urllink=")?$o(s,e,t):_e(s,e,t),_e=(e,t,s)=>{const o=e.split("#"),r=[{key:"utm_source",value:"WordPress"},{key:"utm_campaign",value:"Lite".toLowerCase()==="pro"?"proplugin":"liteplugin"},{key:"utm_medium",value:t}];s&&r.push({key:"utm_content",value:s}),/^https?:\/\//i.test(o[0])||(o[0]=m+o[0]);const l=o[0].split("?");o[0]=l[0]+(l[1]?"?"+l[1]+"&":"?"),o[0]+=r.map(p=>`${p.key}=${p.value}`).join("&");let c=o[0];return o[1]&&(c=c+"#"+o[1]),c},$o=(e,t,s)=>{try{const o=new URL(e),r=o.searchParams.get("urllink");if(!r)return _e(e,t,s);const n=decodeURIComponent(r),l=_e(n,t,s),c=encodeURIComponent(l);o.searchParams.delete("urllink");const p=o.toString(),g=p.includes("?")?"&":"?";return p+g+"urllink="+c}catch(o){return console.warn("Failed to parse URL:",o),_e(e,t,s)}},Ps=e=>e&&e.replace(/^\//,""),ft=e=>e&&e.replace(/\/$/,""),Be=e=>ft(e)+"/",Mo=(e,t="aioseo/v1")=>{const s=T();return e=s.aioseo.data.hasUrlTrailingSlash?Be(e):ft(e),Be(s.aioseo.urls.restUrl)+Be(t)+Ps(e)},d={docLinks:Ge,getDocLink:Lo,getDocUrl:Do,getPlainLink:Uo,getPricingUrl:No,getUpsellLink:Ro,getUpsellUrl:Ke,restUrl:Mo,trailingSlashIt:Be,unForwardSlashIt:Ps,unTrailingSlashIt:ft,utmUrl:me},S="all-in-one-seo-pack",Ts={titles:10,descriptions:10,socialPosts:10,keyPoints:10,faqs:10,schemas:25,aiAssistant:50,imageAltText:10},$t=()=>{const e=bt(),t=T(),s=k(),o=e.options?.minContentLength||200,r=[{value:"analytical",label:a("Analytical",S)},{value:"concise",label:a("Concise",S)},{value:"empathetic",label:a("Empathetic",S)},{value:"friendly",label:a("Friendly",S)},{value:"formal",label:a("Formal",S)},{value:"humorous",label:a("Humorous",S)},{value:"informal",label:a("Informal",S)},{value:"informative",label:a("Informative",S)},{value:"motivational",label:a("Motivational",S)},{value:"neutral",label:a("Neutral",S)},{value:"persuasive",label:a("Persuasive",S)},{value:"playful",label:a("Playful",S)},{value:"professional",label:a("Professional",S)},{value:"serious",label:a("Serious",S)},{value:"storytelling",label:a("Storytelling",S)},{value:"urgent",label:a("Urgent",S)}],n=[{value:"academic",label:a("Academic",S)},{value:"beginners-novices",label:a("Beginners & Novices",S)},{value:"business",label:a("Business",S)},{value:"creative-artistic",label:a("Creative & Artistic",S)},{value:"educational",label:a("Educational",S)},{value:"general",label:a("General",S)},{value:"parents-families",label:a("Parents & Families",S)},{value:"technical",label:a("Technical",S)}],l=[{label:a("High",S),value:"high"},{label:a("Medium",S),value:"medium"},{label:a("Low",S),value:"low"}],c=[{label:a("Auto",S),value:"auto"},{label:a("3D Render",S),value:"3d-render"},{label:a("Cinematic",S),value:"cinematic"},{label:a("Creative",S),value:"creative"},{label:a("Illustration",S),value:"illustration"},{label:a("Minimalist",S),value:"minimalist"},{label:a("Stock Photo",S),value:"stock-photo"},{label:a("Vibrant",S),value:"vibrant"}],p=[{label:a("Landscape (3:2)",S),value:"landscape"},{label:a("Portrait (2:3)",S),value:"portrait"},{label:a("Square (1:1)",S),value:"square"}],g=(L,j)=>{if(!L||!j)return null;const Z=L/j;return 1Z?"portrait":"square"},b=()=>_().replace(/<\/?[a-z][^>]*?>/gi,"").replace(//g,"").trim().length,v=()=>b()>=o,C=5,y=L=>(s.internalOptions?.internal?.ai?.costPerFeature||{})[L]||Ts[L]||10,x=()=>C,D=L=>s.internalOptions.internal.ai.credits.remaining>=L,W=L=>P(a("Loading %1$s Content",S),L),ie={credits:a("Credits",S),disclaimer:P(a("AI-generated content could be inaccurate or biased. %1$s",S),d.getDocLink(yo.learnMore,"aiDisclaimer",!0)),alertDescription:P(a('You can manage your default settings under AI Suite > AI Content.',S),t.aioseo.urls.aio.aiSuite+"#/ai-content"),audience:a("Audience",S),tone:a("Tone",S),imageQuality:a("Quality",S),imageStyle:a("Style",S),imageAspectRatio:a("Aspect Ratio",S),noContentWarning:P(a("Your post is too short to generate AI content. Please add more content. For the best results, we recommend adding at least %1$d characters.",S),o),rephrase:P(a("Regenerate (%1$d credits)",S),C),somethingWrong:a("We ran into an error. Please try again or contact support if it persists.",S),viewPreviousResults:a("View Previous Results",S)};return{audienceOptions:n,getAspectRatioFromDimensions:g,getFeatureCost:y,getPostContentLength:b,getRephraseCost:x,hasEnoughContent:v,hasEnoughCredits:D,imageAspectRatioOptions:p,imageQualityOptions:l,imageStyleOptions:c,loadingText:W,minContentLength:o,strings:ie,toneOptions:r}},_o=A("AiAssistantStore",{state:()=>({capability:"aioseo_page_ai_content_settings",options:{input:{userPrompt:{maxlength:1e3}}},extend:{block:!0,blockEditorInserterButton:!0,paragraphPlaceholder:!0},isBlockHiddenByUser:!1}),getters:{isBlockEnabled:e=>e.extend.block,isBlockAvailable:e=>e.extend.block&&!e.isBlockHiddenByUser,hasPermission:e=>it(e.capability),generationPrice:()=>(k().internalOptions?.internal?.ai?.costPerFeature||{}).aiAssistant||Ts.aiAssistant},actions:{updateBlockHiddenByUser(){const e=window.wp?.data?.select("core/preferences");if(!e)return;const s=(e.get("core","hiddenBlockTypes")||e.get("core/edit-post","hiddenBlockTypes")||[]).includes("aioseo/ai-assistant");this.isBlockHiddenByUser!==s&&(this.isBlockHiddenByUser=s)}}}),u=Hs.agent().set("X-WP-Nonce",window?.aioseo?.nonce).use(e=>{e.url[0]==="/"&&(e.url=d.unTrailingSlashIt(d.restUrl(e.url))),e.on("response",t=>{(t.status===401||t.status===403)&&console.error(t)})}),Bo=A("AiImageGeneratorStore",{state:()=>({currentScreen:"generate",extend:{imageBlockToolbar:!0,imageBlockPlaceholder:!0,featuredImageButton:!0},form:{prompt:{value:"",id:"aioseo-ai-image-generator-input-prompt",maxlength:1e3,minlength:5},quality:{value:null,id:"aioseo-ai-image-generator-input-quality"},style:{value:null,id:"aioseo-ai-image-generator-input-style"},aspectRatio:{value:null,id:"aioseo-ai-image-generator-input-aspect-ratio"},isGenerating:!1,generationElapsedTime:null},errors:{api:null},images:{isFetching:!1,selected:[],all:{rows:[]},count:null},modalOpenDeleteImages:!1,initiator:{slug:null,wpMedia:null}}),getters:{formPrompt:e=>(e.form.prompt.value||"").trim(),error:e=>e.errors.api?{message:e.errors.api,type:"red"}:null,selectedImage:e=>e.images.selected?.length?e.images.selected[0]:null,generationPrice:e=>{const o=(k().internalOptions?.internal?.ai?.costPerFeature||{}).imageGenerator||{},r=e.form.quality.value?.value;if(r&&o[r])return o[r];switch(r){case"low":return 250;case"medium":return 1e3;case"high":return 5e3}return 0},isGenerationTakingTooLong:e=>!e.form.isGenerating||!e.form.generationElapsedTime?!1:20c.value===e?.quality)||s.find(c=>c.value===n.options.aiContent.imageQuality),this.form.style.value=o.find(c=>c.value===e?.style)||o.find(c=>c.value===n.options.aiContent.imageStyle);const l=e?.aspectRatio||t(e?.width,e?.height);this.form.aspectRatio.value=r.find(c=>c.value===l)||r.find(c=>c.value===n.options.aiContent.imageAspectRatio)},generateImage(){const e=bt();this.form.isGenerating=!0,this.form.generationElapsedTime=0;const t=setInterval(()=>{this.form.generationElapsedTime+=1},1e3),s=w();return u.post(d.restUrl("ai/image-generator")).send({prompt:this.formPrompt,quality:this.form.quality.value.value,style:this.form.style.value.label,aspectRatio:this.form.aspectRatio.value.value,selectedImageId:this.selectedImage?.id||null,postId:s.currentPost.id||null}).then(o=>{if(!o.body.success)throw new Error(o.body.message);return o.body}).catch(o=>{throw o}).finally(()=>{this.form.isGenerating=!1,this.form.generationElapsedTime=null,clearInterval(t),e.getCredits(!0)})},fetchImages(){this.images.isFetching=!0;const e=w();return u.get(d.restUrl("ai/image-generator")).query({postId:e.currentPost?.id||null}).then(t=>(this.images.all.rows=t.body.all.rows,this.images.count=t.body.count,t)).catch(t=>{throw t}).finally(()=>{this.images.isFetching=!1})},deleteImages(e){return u.delete(d.restUrl("ai/image-generator")).send({ids:e}).then(t=>t).catch(t=>{throw t})},switchScreen(e){this.images.selected=[],this.form.prompt.value="",this.errors.api=null,this.currentScreen=e},toggleModal(e){e.modal==="modalOpenDeleteImages"&&e.open&&(this.images.selected=e?.images??[]),this[e.modal]=e.open},resetInitiator(){this.initiator={slug:null,wpMedia:null}},setFormDefaults(){const e=k(),{imageQualityOptions:t,imageStyleOptions:s,imageAspectRatioOptions:o}=$t();this.form.quality.value=t.find(r=>r.value===e.options.aiContent.imageQuality),this.form.style.value=s.find(r=>r.value===e.options.aiContent.imageStyle),this.form.aspectRatio.value=o.find(r=>r.value===e.options.aiContent.imageAspectRatio)}}}),bt=A("AiStore",{state:()=>({options:{},faqs:{tone:"",audience:""},keyPoints:{tone:"",audience:""},socialPosts:{tone:"",audience:"",selected:[]},metaTitle:{tone:"",audience:""},metaDescription:{tone:"",audience:""},isModalOpened:null}),getters:{isFreeAndOutOfCredits:e=>{const t=k();return!(!t.internalOptions.internal.ai.isTrialAccessToken||e.isModalOpened||1{if(s.body.error){console.error(s.body.error);return}const o=k();return o.internalOptions.internal.ai=s.body.aiOptions,s})},getCredits(e=!1){return u.post(d.restUrl("ai/credits")).send({refresh:e}).then(t=>{if(t.body.error){console.error(t.body.error);return}const s=k();return s.internalOptions.internal.ai=E({},s.internalOptions.internal.ai,t.body.aiOptions),t})},generateSocialPosts(){const e=w(),t=this.socialPosts.selected.map(s=>s.slug);return u.post(d.restUrl("ai/social-posts")).send({postId:e.currentPost.id,postContent:_(),permalink:ns(),options:{media:t,tone:this.socialPosts.tone,audience:this.socialPosts.audience}}).then(s=>{if(s.body.error){console.error(s.body.error);return}e.currentPost.ai.socialPosts=s.body.snippets;const o=k();return o.internalOptions.internal.ai=s.body.aiOptions,s})},generateFaqs(e=!1){const t=w();return u.post(d.restUrl("ai/faqs")).send({postId:t.currentPost.id,postContent:_(),options:{tone:this.faqs.tone,audience:this.faqs.audience},rephrase:e,faqs:t.currentPost.ai.faqs}).then(s=>{if(s.body.error)return console.error(s.body.error),Promise.reject(s.body.error);t.currentPost.ai.faqs=s.body.faqs;const o=k();return o.internalOptions.internal.ai=s.body.aiOptions,s})},generateSchemas(e){const t=w();return u.post(d.restUrl("ai/schema")).send({postId:t.currentPost.id,...e}).then(s=>{if(s.body.error)return Promise.reject(s.body.error);t.currentPost.ai.schemas=s.body.schemas;const o=k();return o.internalOptions.internal.ai=s.body.aiOptions,s})},generateKeyPoints(e=!1){const t=w();return u.post(d.restUrl("ai/key-points")).send({postId:t.currentPost.id,postContent:_(),options:{tone:this.keyPoints.tone,audience:this.keyPoints.audience},rephrase:e,keyPoints:t.currentPost.ai.keyPoints}).then(s=>{if(s.body.error){console.error(s.body.error);return}t.currentPost.ai.keyPoints=s.body.keyPoints;const o=k();return o.internalOptions.internal.ai=s.body.aiOptions,s})},generateMetaTitles(e={}){const t=k();return u.post(d.restUrl("ai/meta/title")).send({postId:e.postId,postContent:e?.postContent||"",focusKeyword:e?.focusKeyword||"",rephrase:e?.rephrase||!1,titles:e?.titles||[],options:{tone:this.metaTitle.tone||t.options.aiContent.tone,audience:this.metaTitle.audience||t.options.aiContent.audience}}).then(s=>s.body.error?Promise.reject(s.body.error):(t.internalOptions.internal.ai=s.body.aiOptions,s)).catch(s=>{throw s})},generateImageAlt(e={}){return u.post(d.restUrl("ai/image/alt")).send({attachmentId:e.attachmentId}).then(t=>{if(t.body.error)return Promise.reject(t.body.error);const s=k();return s.internalOptions.internal.ai=t.body.aiOptions,t}).catch(t=>{throw t})},generateMetaDescriptions(e={}){const t=k();return u.post(d.restUrl("ai/meta/description")).send({postId:e.postId,postContent:e?.postContent||"",focusKeyword:e?.focusKeyword||"",rephrase:e?.rephrase||!1,descriptions:e?.descriptions||[],options:{tone:this.metaDescription.tone||t.options.aiContent.tone,audience:this.metaDescription.audience||t.options.aiContent.audience}}).then(s=>s.body.error?Promise.reject(s.body.error):(t.internalOptions.internal.ai=s.body.aiOptions,s)).catch(s=>{throw s})},deactivate(){return u.post(d.restUrl("ai/deactivate")).send().then(e=>{if(!e.body.success)throw new Error(e.body.message);const t=k();return e?.body?.aiData&&(t.internalOptions.internal.ai=e.body.aiData),e})}}}),f="all-in-one-seo-pack";class zo{get title(){const t="&aioseo-scroll=aioseo-post-settings-post-title-row&aioseo-highlight=aioseo-post-settings-post-title-row";return{"title-missing":{title:a("No SEO title found.",f),text:s=>a("No SEO title found.",f),description:a("The SEO title is the title of your page that appears in search results. It should be 40 to 60 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:t},"title-too-long":{title:a("The SEO title is too long.",f),text:s=>P(a("The SEO title is %1$d characters long, which is higher than our recommended range of 40-60 characters.",f),s?.length),content:s=>s?.value||"",description:a("The SEO title is the title of your page that appears in search results. It should be 40 to 60 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:t},"title-too-short":{title:a("The SEO title is too short.",f),text:s=>s?.length?P(a("The SEO title is %1$d characters long, which is lower than our recommended range of 40-60 characters.",f),s?.length):a("No SEO title found.",f),content:s=>s?.value||"",description:a("The SEO title is the title of your page that appears in search results. It should be 40 to 60 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:t},"title-ok":{title:a("The SEO title is of good length.",f),text:s=>P(a("The SEO title is %1$d characters long, which is within our recommended range of 40-60 characters.",f),s?.length),content:s=>s?.value||"",description:a("The SEO title is the title of your page that appears in search results. It should be 40 to 60 characters long, include your focus keyword and incentivize readers to click through to your page.",f)}}}get description(){const t="&aioseo-scroll=aioseo-post-settings-meta-description-row&aioseo-highlight=aioseo-post-settings-meta-description-row";return{"description-missing":{title:a("No meta description found.",f),text:s=>a("No meta description was found for the page.",f),description:a("The meta description is a summary of your page that appears in search results. It should be 120 to 160 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:t},"description-too-short":{title:a("The meta description is too short.",f),text:s=>P(a("The meta description is %1$d characters long, which is lower than our recommended range of 120-160 characters.",f),s?.length),content:s=>s?.value||"",description:a("The meta description is a summary of your page that appears in search results. It should be 120 to 160 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:t},"description-too-long":{title:a("The meta description is too long.",f),text:s=>P(a("The meta description is %1$d characters long, which is higher than our recommended range of 120-160 characters.",f),s?.length),content:s=>s?.value||"",description:a("The meta description is a summary of your page that appears in search results. It should be 120 to 160 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:t},"description-ok":{title:a("The meta description is of good length.",f),text:s=>P(a("The meta description is %1$d characters long, which is within our recommended range of 120-160 characters.",f),s?.length),content:s=>s?.value||"",tooltip:a("The meta description is a summary of your page that appears in search results.",f)}}}get h1Tags(){return{"h1-missing":{title:a("No H1 tag found.",f),description:a("The H1 tag is the main heading on the page and signals the topic of your page to search engines. It should be clear and include your focus keyword.",f)},"h1-too-many":{title:a("More than one H1 tag found.",f),description:a("The H1 tag is the main heading on the page and signals the topic of your page to search engines. You should only have a single H1 tag on your page.",f)},"h1-missing-focus-keyword":{title:a("The H1 tag does not include your focus keyword.",f),description:a("The H1 tag is the main heading on the page and signals the topic of your page to search engines. It should be clear and include your focus keyword.",f)},"h1-ok":{title:a("The H1 tag includes your focus keyword.",f),description:a("The H1 tag is the main heading on the page and signals the topic of your page to search engines. It should be clear and include your focus keyword.",f)}}}get subheadingTags(){return{"subheading-missing":{title:a("No subheadings found.",f),description:a("Subheadings (H2, H3, H4, H5, H6, etc.) are important for SEO and user experience. They help break up the content and make it more readable. At least one subheading should have the focus keyword.",f)},"subheading-missing-focus-keyword":{title:a("Subheadings do not include your focus keyword.",f),text:t=>P(Ee("%1$d subheading was found on the page, but it does not include the focus keyword.","%1$d subheadings were found on the page, but none of them include the focus keyword.",t?.length,f),t?.length),description:a("Subheadings (H2, H3, H4, H5, H6, etc.) are important for SEO and user experience. They help break up the content and make it more readable. At least one subheading should have the focus keyword.",f)},"subheading-ok":{title:a("Subheadings include your focus keyword.",f),text:t=>P(Ee("%1$d subheading was found on the page.","%1$d subheadings were found on the page.",t?.length,f),t?.length),description:a("Subheadings (H2, H3, H4, H5, H6, etc.) are important for SEO and user experience. They help break up the content and make it more readable. At least one subheading should have the focus keyword.",f)}}}get noImgAltAtts(){return{"image-missing":{title:a("No images found.",f),description:a("Images are important for SEO and improve user experience & engagement. Images should be optimized (relevant filename, alt text, small file size) so they can also rank separately in image search results.",f)},"image-missing-alt":{title:a("Images have no alt text.",f),text:t=>P(Ee("%1$d image has no alt text.","%1$d images have no alt text.",t?.length,f),t?.length),content:t=>0s).join("
"):"",description:a("Images are important for SEO and improve user experience & engagement. Images should be optimized (relevant filename, alt text, small file size) so they can also rank separately in image search results.",f)},"image-ok":{title:a("Images have alt text.",f),description:a("Images are important for SEO and improve user experience & engagement. Images should be optimized (relevant filename, alt text, small file size) so they can also rank separately in image search results.",f)}}}get linksRatio(){return{"internal-links-missing":{title:a("No internal links found.",f),description:a("Internal links are links that point to other pages on your site. They help search engines understand the structure of your site, discover new pages and improve your site's authority. We recommend adding at least 1 internal link per 500 words of content.",f)},"internal-links-too-few":{title:a("Too few internal links found.",f),text:t=>P(Ee("%1$d internal link was found, which is too few.","%1$d internal links were found, which is too few.",t?.length,f),t?.length),description:a("Internal links are links that point to other pages on your site. They help search engines understand the structure of your site, discover new pages and improve your site's authority. We recommend adding at least 1 internal link per 500 words of content.",f)},"links-ratio-ok":{title:a("The page has a correct number of internal and external links.",f),description:a("Internal links are links that point to other pages on your site. They help search engines understand the structure of your site, discover new pages and improve your site's authority. We recommend adding at least 1 internal link per 500 words of content.",f)}}}get hasThumbnail(){return{"thumbnail-missing":{title:a("No featured image found.",f),description:a("The featured image is the main image that represents your page. They grab attention, improve click-through rates on social and search results, and provide context to both users and search engines.",f)},"thumbnail-ok":{title:a("The featured image was found.",f),description:a("The featured image is the main image that represents your page. They grab attention, improve click-through rates on social and search results, and provide context to both users and search engines.",f)}}}get contentLength(){return{"content-length-too-short":{title:a("The content is too short.",f),text:t=>t?.length?P(a("The content is %1$d words long, which is too short. We recommend adding at least 300 words of content.",f),t?.length):a("No content found.",f),description:a("The content is the main body of text on your page that provides information to your visitors. It should be at least 300 words long. Articles that are too short lack depth and are less likely to rank well because search engines prefer longer, more informative content.",f)},"content-length-ok":{title:a("The content is long enough.",f),description:a("The content is the main body of text on your page that provides information to your visitors. It should be at least 300 words long. Articles that are too short lack depth and are less likely to rank well because search engines prefer longer, more informative content.",f)}}}get keywordCannibalization(){const t="&aioseo-scroll=aioseo-post-settings-snippet-focus-keyphrase-row&aioseo-highlight=aioseo-post-settings-snippet-focus-keyphrase-row";return{"keyword-cannibalization":{title:a("The focus keyword is targeted by multiple pages.",f),text:s=>a("The following pages on your site are competing for the same keyword:",f),description:a("The focus keyword is the main keyword that the page is ranking for. It should be unique to the page. If multiple pages are targeting the same focus keyword, they will all compete for the same traffic and perform worse. This is known as keyword cannibalization.",f),content:s=>s?.posts?.map(o=>o?.editLink?`${o.title}`:o.title).join("
"),fixActionParams:t},"keyword-cannibalization-ok":{title:a("The focus keyword is targeted only by this page.",f),description:a("The focus keyword is the main keyword that the page is ranking for. It should be unique to the page. If multiple pages are targeting the same focus keyword, they will all compete for the same traffic and perform worse. This is known as keyword cannibalization.",f)}}}get focusKeywordInFirstParagraph(){return{"first-paragraph-missing-focus-keyword":{title:a("The first paragraph does not include the focus keyword.",f),description:a("The first paragraph on the page should include your focus keyword. This helps search engines quickly understand what the page is about and signals relevance.",f)},"first-paragraph-ok":{title:a("The first paragraph includes the focus keyword.",f),description:a("The first paragraph on the page should include your focus keyword. This helps search engines quickly understand what the page is about and signals relevance.",f)}}}get focusKeywordInTitle(){return{"title-missing-focus-keyword":{title:a("The SEO title does not include the focus keyword.",f),description:a("The SEO title is the title of your page that appears in search results. It should be 40 to 60 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:"&aioseo-scroll=aioseo-post-settings-post-title-row&aioseo-highlight=aioseo-post-settings-post-title-row"},"title-focus-keyword-ok":{title:a("The SEO title includes the focus keyword.",f),description:a("The SEO title is the title of your page that appears in search results. It should be 40 to 60 characters long, include your focus keyword and incentivize readers to click through to your page.",f)}}}get focusKeywordInDescription(){return{"description-missing-focus-keyword":{title:a("The meta description does not include the focus keyword.",f),description:a("The meta description is a summary of your page that appears in search results. It should be 120 to 160 characters long, include your focus keyword and incentivize readers to click through to your page.",f),fixActionParams:"&aioseo-scroll=aioseo-post-settings-meta-description-row&aioseo-highlight=aioseo-post-settings-meta-description-row"},"description-focus-keyword-ok":{title:a("The meta description includes the focus keyword.",f),description:a("The meta description is a summary of your page that appears in search results. It should be 120 to 160 characters long, include your focus keyword and incentivize readers to click through to your page.",f)}}}get focusKeywordInUrl(){return{"url-missing-focus-keyword":{title:a("The URL does not include the focus keyword.",f),description:a("The URL is the address of your page that appears in search results. It should be 50 characters or less and include your focus keyword to help search engines understand the topic of your page.",f)},"url-focus-keyword-ok":{title:a("The URL includes the focus keyword.",f),description:a("The URL is the address of your page that appears in search results. It should be 50 characters or less and include your focus keyword to help search engines understand the topic of your page.",f)}}}get urlLength(){return{"url-length-too-long":{title:a("The URL is too long.",f),text:t=>P(a("The URL is %1$d characters long, it should be less than 50 characters.",f),t?.length),description:a("The URL is the address of your page that appears in search results. It should be 50 characters or less and include your focus keyword to help search engines understand the topic of your page.",f)},"url-length-ok":{title:a("The URL is of good length.",f),description:a("The URL is the address of your page that appears in search results. It should be 50 characters or less and include your focus keyword to help search engines understand the topic of your page.",f)}}}get productSchema(){return{"product-schema-missing":{title:a("No product schema found.",f),description:a("Product schema is a type of structured data that helps search engines understand your product. Google and other search engines use product schema for rich snippets (e.g. price and star rating) and other features.",f),fixActionParams:"&aioseo-tab=schema&aioseo-scroll=aioseo-post-schema&aioseo-highlight=aioseo-post-schema"},"product-schema-ok":{title:a("The product schema was found.",f),description:a("Product schema is a type of structured data that helps search engines understand your product. Google and other search engines use product schema for rich snippets (e.g. price and star rating) and other features.",f)}}}get strings(){return{...this.title,...this.description,...this.h1Tags,...this.subheadingTags,...this.noImgAltAtts,...this.linksRatio,...this.hasThumbnail,...this.contentLength,...this.keywordCannibalization,...this.focusKeywordInFirstParagraph,...this.focusKeywordInTitle,...this.focusKeywordInDescription,...this.focusKeywordInUrl,...this.urlLength,...this.productSchema}}}const Fo=new zo,I="all-in-one-seo-pack";class Ho{get noindex(){return{noindex:{title:a("The page cannot be indexed.",I),description:a("The noindex tag tells search engines not to index this page. As a result, this page will not appear in search results and will not generate any traffic.",I),fixActionParams:"&aioseo-tab=advanced&aioseo-scroll=aioseo-post-robots-setting&aioseo-highlight=aioseo-post-robots-setting"},"noindex-ok":{title:a("The page can be indexed.",I),description:a("The noindex tag tells search engines not to index this page. As a result, this page will not appear in search results and will not generate any traffic.",I)}}}get openGraph(){const t="&aioseo-tab=social&aioseo-scroll=aioseo-post-settings-facebook&aioseo-highlight=aioseo-post-settings-facebook";return{"ogp-missing":{title:a("Open Graph meta tags missing.",I),text:s=>a("The following Open Graph meta tags are missing:",I),content:s=>s?.items?.map(o=>o).join("
"),description:a("Open Graph meta tags are used to control how your page appears when shared on social media and can help increase click-through rates.",I),fixActionParams:t},"ogp-duplicates":{title:a("Duplicate Open Graph meta tags found.",I),text:s=>a("The following Open Graph meta tags are duplicated:",I),content:s=>s?.items?.map(o=>o).join("
"),description:a("Open Graph meta tags are used to control how your page appears when shared on social media and can help increase click-through rates. Duplicate Open Graph meta tags can lead to conflicts and unexpected results. We recommend identifying which other plugin or theme is outputting them and disabling it.",I),fixActionParams:t},"ogp-ok":{title:a("All Open Graph meta tags found.",I),description:a("Open Graph meta tags are used to control how your page appears when shared on social media and can help increase click-through rates.",I)}}}get schema(){return{"schema-missing":{title:a("No schema data found.",I),text:s=>a("No schema found.",I),description:a("Schema, also referred to as structured data, helps search engines understand the content on your page. Search engines also use schema to display rich snippets in search results, such as star ratings and prices. which improves user experience and click-through rates.",I),fixActionParams:"&aioseo-tab=schema&aioseo-scroll=aioseo-post-schema&aioseo-highlight=aioseo-post-schema"},"schema-ok":{title:a("The schema data was found.",I),description:a("Schema, also referred to as structured data, helps search engines understand the content on your page. Search engines also use schema to display rich snippets in search results, such as star ratings and prices. which improves user experience and click-through rates.",I)}}}get canonicalTag(){return{"canonical-missing":{title:a("No canonical link found.",I),description:a("The canonical link tag tells search engines which version of a page to index. This helps prevent duplicate content issues and improves search engine indexing.",I),fixActionParams:"&aioseo-tab=advanced&aioseo-scroll=aioseo-post-canonical-url&aioseo-highlight=aioseo-post-canonical-url"},"canonical-ok":{title:a("The canonical link was found.",I),description:a("The canonical link tag tells search engines which version of a page to index. This helps prevent duplicate content issues and improves search engine indexing.",I)}}}get authorBio(){return{"author-bio-missing":{title:a("No author bio found.",I),description:a("The author bio is the text that appears below the author's name on the page. It should be included to help search engines understand the author of the page and improve user experience. Experience, Expertise, Authoritativeness, and Trustworthiness (E-E-A-T) is a ranking factor.",I),fixActionParams:"aioseo-tab=author-seo&aioseo-scroll=aioseo-author-bio-settings-row&aioseo-highlight=aioseo-author-bio-settings-row"},"author-bio-ok":{title:a("The author bio was found.",I),description:a("The author bio is the text that appears below the author's name on the page. It should be included to help search engines understand the author of the page and improve user experience. Experience, Expertise, Authoritativeness, and Trustworthiness (E-E-A-T) is a ranking factor.",I)}}}get mainKeyword(){return{"main-keyword-missing":{title:a("No focus keyword found.",I),description:a("The focus keyword is the main keyword that you want this page to rank for. It should be unique to the page and not used on other pages. It should be 2 to 5 words long.",I),fixActionParams:"&aioseo-scroll=aioseo-post-settings-snippet-focus-keyphrase-row&aioseo-highlight=aioseo-post-settings-snippet-focus-keyphrase-row"},"main-keyword-ok":{title:a("The focus keyword was found.",I),description:a("The focus keyword is the main keyword that you want this page to rank for. It should be unique to the page and not used on other pages. It should be 2 to 5 words long.",I)}}}get staleContent(){return{"stale-content-too-old":{title:a("Stale content found.",I),description:a("The content is more than 2 years old and may be outdated. Stale content can hurt rankings if it is outdated or irrelevant. Search engines favor fresh, updated content—especially for topics that change over time. If your content stays accurate and useful, freshness matters less.",I)},"stale-content-ok":{title:a("The content is up to date.",I),description:a("The content is up to date and fresh. Search engines favor fresh, updated content—especially for topics that change over time. If your content stays accurate and useful, freshness matters less.",I)}}}get strings(){return{...this.noindex,...this.openGraph,...this.schema,...this.canonicalTag,...this.authorBio,...this.mainKeyword,...this.staleContent}}}const Go=new Ho,Qe="all-in-one-seo-pack";class Ko{get requests(){return{requests:{title:a("Assets loaded",Qe),text:t=>P(Ee("%1$d asset is loaded on the page.","%1$d assets are loaded on the page.",t?.length,Qe),t?.length),tooltip:a("Assets are resources like images, stylesheets and scripts.",Qe)}}}get strings(){return{...this.requests}}}const qo=new Ko;class Wo{get basic(){return Fo.strings}get advanced(){return Go.strings}get performance(){return qo.strings}get strings(){return{...this.basic,...this.advanced,...this.performance}}getFilteredResults(t,s){if(typeof t!="object"||!t)return{};const o={};return Object.keys(t).forEach(r=>{o[r]=t[r].filter(n=>!(!this.strings[n.code]?.title||n.status!==s))}),Object.keys(o).forEach(r=>{o[r].length===0&&delete o[r]}),o}getResultsCount(t,s){const o=this.getFilteredResults(t,s);return o?Object.keys(o).reduce((r,n)=>r+o[n].length,0):0}}const jo=new Wo,h="all-in-one-seo-pack";class Yo{personalize=!1;head=(t,s)=>this[t+"Head"]!==void 0?this[t+"Head"](s):"";body=(t,s)=>this[t+"Body"]!==void 0?this[t+"Body"](s):"";titleHead=t=>{switch(t?.error||""){case"title-missing":return a("We couldn't find an SEO Title.",h);case"title-too-short":return this.personalize?P(a("Your SEO title is only %1$d characters long, which is too short.",h),t.value.length):P(a("The SEO title is only %1$d characters long, which is too short.",h),t.value.length);case"title-too-long":return this.personalize?P(a("Your SEO title is %1$d characters long, which is too long.",h),t.value.length):P(a("The SEO title is %1$d characters long, which is too long.",h),t.value.length);default:return this.personalize?P(a("Your SEO title is set and is %1$d characters long.",h),t.value.length):P(a("The SEO title is set and is %1$d characters long.",h),t.value.length)}};titleBody=t=>{const s=T();return{code:t.value,message:a("Ensure your page's title includes your target keywords, and design it to encourage users to click.",h)+"

"+a("Writing compelling titles is both a science and an art. There are automated tools that can analyze your title against known metrics for readability and click-worthiness. You also need to understand the psychology of your target audience.",h),buttonText:a("Edit Your Page Title",h),buttonLink:s.aioseo.data.staticHomePage?`${s.aioseo.urls.staticHomePage}&aioseo-scroll=aioseo-post-settings-post-title-row&aioseo-highlight=aioseo-post-settings-post-title-row`:`${s.aioseo.urls.aio.searchAppearance}&aioseo-scroll=aioseo-home-page-site-title&aioseo-highlight=aioseo-home-page-site-title`}};descriptionHead=t=>{switch(t?.error||""){case"description-missing":return this.personalize?a("No meta description was found for your page.",h):a("No meta description was found for the page.",h);case"description-too-short":return this.personalize?P(a("Your meta description is only %1$d characters long, which is too short.",h),t.value.length):P(a("The meta description is only %1$d characters long, which is too short.",h),t.value.length);case"description-too-long":return this.personalize?P(a("Your meta description is %1$d characters long, which is too long.",h),t.value.length):P(a("The meta description is %1$d characters long, which is too long.",h),t.value.length);default:return this.personalize?P(a("Your meta description is set and is %1$d characters long.",h),t.value.length):P(a("The meta description is set and is %1$d characters long.",h),t.value.length)}};descriptionBody=t=>{const s=T();return{code:t.error==="description-missing"?null:t.value,message:a("Write a meta description for your page. Use your target keywords (in a natural way) and write with human readers in mind. Summarize the content - describe the topics your article discusses.",h)+"

"+a("The description should stimulate reader interest and get them to click on the article. Think of it as a mini-advertisement for your content.",h),buttonText:a("Edit Your Meta Description",h),buttonLink:s.aioseo.data.staticHomePage?`${s.aioseo.urls.staticHomePage}&aioseo-scroll=aioseo-post-settings-meta-description-row&aioseo-highlight=aioseo-post-settings-meta-description-row`:`${s.aioseo.urls.aio.searchAppearance}&aioseo-scroll=aioseo-home-page-meta-description&aioseo-highlight=aioseo-home-page-meta-description`}};h1TagsHead=t=>{switch(t?.error||""){case"h1-missing":return a("No H1 tag was found.",h)+" "+a("For the best user experience there should be exactly one H1 tag on each page.",h);case"h1-too-many":return P(a("%1$d H1 tags were found.",h),t.value.length)+" "+a("For the best user experience there should be exactly one H1 tag on each page.",h);default:return this.personalize?a("One H1 tag was found on your page.",h):a("One H1 tag was found on the page.",h)}};h1TagsBody=t=>{const s=T();return{code:t.error==="h1-missing"?null:t.value.join("
"),message:a("WordPress sites usually insert the page or post title as an H1 tag (although custom themes can change this behavior).",h)+"

"+a("Ensure your most important keywords appear in the H1 tag - don't force it, use them in a natural way that makes sense to human readers.",h)+"

"+a("Because your headline plays a large role in reader engagement, it's worth spending extra time perfecting it. Many top copywriters spend hours getting their headlines just right - sometimes they spend longer on the headline than the rest of the article!",h)+"

"+a("A good headline stimulates reader interest and offers a compelling reason to read your content. It promises a believable benefit.",h)+"

"+a("You should write as if your readers are selfish people with short attention spans (because that describes a large percentage of the world's population). Readers visit websites for selfish reasons - they're not there to make you happy.",h),buttonText:a("Edit Your Page",h),buttonLink:s.aioseo.data.staticHomePage?s.aioseo.urls.staticHomePage:null}};h2TagsHead=t=>t.error==="h2-missing"?this.personalize?a("No H2 tags were found on your page.",h):a("No H2 tags were found on the page.",h):this.personalize?a("H2 tags were found on your page.",h)+" ("+t.value.length+")":a("H2 tags were found on the page.",h)+" ("+t.value.length+")";h2TagsBody=t=>{const s=T();return{code:t.error==="h2-missing"?null:t.value.join("
"),message:a("Make sure you have a good balance of H2 tags to plain text in your content. Break the content down into logical sections, and use headings to introduce each new topic.",h)+"

"+a("Also, try to include synonyms and relevant terminology in H2 tag text. Search engines are pretty smart - they know which words usually occur together in each niche.",h)+"

"+a("It should be easy to include your main and supporting keywords in the H2 tags - after all, these keywords describe your content! If it's hard to work the keywords into your subheadings, it could be a sign that the keywords aren't closely related to your content.",h)+"

"+a("Don't try to force keywords into sub-headings if they feel unnatural. It will send the wrong message to your readers, possibly driving them away.",h),buttonText:a("Edit Your Page",h),buttonLink:s.aioseo.data.staticHomePage?s.aioseo.urls.staticHomePage:null}};noImgAltAttsHead=t=>t.error==="image-missing-alt"?this.personalize?a("Some images on your page have no alt attribute.",h)+" ("+t.value.length+")":a("Some images on the page have no alt attribute.",h)+" ("+t.value.length+")":this.personalize?a("All images on your page have alt attributes.",h):a("All images on the page have alt attributes.",h);noImgAltAttsBody=t=>{const s=T();return{codeAlt:t.error!=="image-missing-alt"?null:t.value.map(r=>Xt(r)).join(` `),message:a("Make sure every image has an alt tag, and add useful descriptions to each image. Add your keywords or synonyms - but do it in a natural way.",h),buttonText:a("Edit Your Page",h),buttonLink:s.aioseo.data.staticHomePage?s.aioseo.urls.staticHomePage:null}};linksRatioHead=t=>{switch(t?.error||""){case"internal-links-missing":return this.personalize?a("No internal links were found on your page.",h):a("No internal links were found on the page.",h);case"internal-links-too-few":return this.personalize?a("Too few internal links on your page.",h):a("Too few internal links on the page.",h);case"invalid-ratio":return a("The ratio of internal links to external links is uneven.",h);default:return this.personalize?a("Your page has a correct number of internal and external links.",h):a("The page has a correct number of internal and external links.",h)}};linksRatioBody=t=>{const s=T();return{code:a("Internal:",h)+" "+t.value.internal+"
"+a("External:",h)+" "+t.value.external,message:a(`Add links to internal and external resources that are useful for your readers. For Internal links, make sure the links are highly relevant to the subject you're writing about. For external links, make sure you link to high-quality sites - Google penalizes pages that link to "spammy" sites (ones that break the Google webmaster guidelines).`,h)+"

"+a("It's impossible to cover every aspect of a subject on a single page, but your readers may be fascinated by some detail you barely touch on. If you link to a resource where they can learn more, they'll be grateful. What's more, you'll be rewarded with higher rankings!",h),buttonText:a("Edit Your Page",h),buttonLink:s.aioseo.data.staticHomePage?s.aioseo.urls.staticHomePage:null}};canonicalTagHead=t=>t.error==="canonical-missing"?this.personalize?a("No canonical link tag found on your page.",h):a("No canonical link tag found on the page.",h):this.personalize?a("Your page is using the canonical link tag.",h):a("The page is using the canonical link tag.",h);canonicalTagBody=t=>{const s=T();return{code:t.value,message:a(`Every page on your site should have a tag with a 'rel="canonical"' attribute. The link tag should go inside the page's head tag, and it should contain the page's "correct" URL.`,h)+"

"+a(`If you've republished an article from another source (such as another site or a different section of your own site) then you need to pick which URL is the "correct" one and use that!`,h),buttonText:a("Edit Your Page",h),buttonLink:s.aioseo.data.staticHomePage?`${s.aioseo.urls.staticHomePage}&aioseo-tab=advanced&aioseo-scroll=aioseo-post-canonical-url&aioseo-highlight=aioseo-post-canonical-url`:null}};noindexHead=t=>t.error==="noindex"?this.personalize?a("Your page contains a noindex header or meta tag.",h):a("The page contains a noindex header or meta tag.",h):this.personalize?a("Your page does not contain any noindex header or meta tag.",h):a("The page does not contain any noindex header or meta tag.",h);noindexBody=()=>{const t=T();return{message:a("Only ever use noindex meta tag or header on pages you want to keep out of the reach of search engines!",h),buttonText:a("Edit Your Settings",h),buttonLink:t.aioseo.urls.admin.optionsReading}};wwwCanonicalizationHead=t=>t.error==="www-canonicalization"?this.personalize?a("The www and non-www versions of your URL are not redirected to the same site.",h):a("The www and non-www versions of the URL are not redirected to the same site.",h):this.personalize?a("Both the www and non-www versions of your URL are redirected to the same site.",h):a("Both the www and non-www versions of the URL are redirected to the same site.",h);wwwCanonicalizationBody=()=>{const t=T();return{message:a(`Decide whether you want your site's URLs to include a "www", or if you prefer a plain domain name. There are marketing pros and cons for each choice, but neither one is better or worse for SEO purposes - as long as you're consistent.`,h)+"

"+a('You should use HTTP redirections (301 permanent redirects) to pass PageRank from the "wrong" URLs to the standard (canonical) ones. That way, your content will still benefit from backlinks if someone makes a mistake and uses the wrong URL.',h),buttonText:a("Edit Your Settings",h),buttonLink:t.aioseo.urls.admin.generalSettings}};robotsRulesHead=t=>t.error==="no-robots"?this.personalize?a("Your robots.txt file is missing or unavailable.",h):a("The robots.txt file is missing or unavailable.",h):t.value.match(/disallow:/i)?this.personalize?a('Your site has a robots.txt file which includes one or more "disallow" directives.',h):a('The site has a robots.txt file which includes one or more "disallow" directives.',h):this.personalize?a("Your site has a robots.txt file.",h):a("The site has a robots.txt file.",h);robotsRulesBody=t=>{const s=T();return{code:t.error==="no-robots"?null:t.value,message:a("Make sure that you only block parts you don't want to be indexed.",h)+"

"+a("You can manually create a robots.txt file and upload it to your site's web root. A simpler option is to use a plugin for your CMS platform.",h)+"

"+P(a("%1$s has a full suite of tools to manage the robots.txt file, along with other related technologies, like XML Sitemaps.",h),"AIOSEO"),buttonText:a("Edit Your Robots.txt",h),buttonLink:s.aioseo.urls.aio.tools}};openGraphHead=t=>t.error==="ogp-missing"?a("Some Open Graph meta tags are missing.",h):t.error==="ogp-duplicates"?a("Duplicate Open Graph meta tags were found.",h):a("All the required Open Graph meta tags have been found.",h);openGraphBody=t=>{const s=t.error==="ogp-missing"?a("Open Graph (OG) tags are used to enhance how your website content appears when shared on social media platforms, allowing you to control the title, description, and image displayed. This results in more engaging and informative previews, which can lead to increased click-through rates and better social media engagement.",h):a("Duplicate Open Graph meta tags were found. This means that another plugin on your site or your current theme is generating social meta tags for Facebook (Open Graph) that are also generated by AIOSEO, and there are two sets of Open Graph tags present on your website. You'll want to deactivate this setting in your theme or the plugin that's causing this to avoid issues when sharing content on Facebook, LinkedIn, WhatsApp, or Instagram.",h),o=T(),r=t.error==="ogp-missing"?`${o.aioseo.urls.staticHomePage}&aioseo-tab=social&aioseo-scroll=aioseo-post-facebook-image-source&aioseo-highlight=aioseo-post-facebook-image-source`:o.aioseo.data.staticHomePage,n=t.error==="ogp-missing"?`${o.aioseo.urls.aio.socialNetworks}&aioseo-tab=facebook&aioseo-scroll=aioseo-facebook-default-image-source&aioseo-highlight=aioseo-facebook-default-image-source`:null,l=o.aioseo.data.staticHomePage?a("Edit Your Page",h):a("Edit Your Settings",h);return{code:t.value?t.value.join("
"):null,message:s,buttonText:l,buttonLink:o.aioseo.data.staticHomePage?r:n}};schemaHead=t=>t.error==="schema-missing"?this.personalize?a("No Schema.org data was found on your page.",h):a("No Schema.org data was found on the page.",h):this.personalize?a("We found Schema.org data on your page.",h):a("We found Schema.org data on the page.",h);schemaBody=()=>{const t=T();return{message:P(a("%1$s makes it extremely easy to add highly relevant Schema.org markup to your site. It has a simple graphical interface, so you don't have to get your hands dirty with complex HTML markup.",h),"AIOSEO"),buttonText:a("Edit Your Page",h),buttonLink:t.aioseo.data.staticHomePage?`${t.aioseo.urls.staticHomePage}&aioseo-tab=schema&aioseo-scroll=aioseo-post-schema&aioseo-highlight=aioseo-post-schema`:null}};hasImgExpiresHead=t=>t.error==="image-expires-missing"?this.personalize?a('Your server is not using "expires" headers for your images.',h):a('The server is not using "expires" headers for the images.',h):this.personalize?a('Your server is using "expires" headers for your images.',h):a('The server is using "expires" headers for the images.',h);hasImgExpiresBody=()=>({message:a('If you use the Apache or NGINX web servers, you can edit the configuration files to set the "expires" header for all image files. For Apache, you can also use a ".htaccess" file to change the settings for each folder.',h)+"

"+a("Alternatively, you can use a CMS plugin to simplify the process - it's a more user-friendly option. WordPress has a host of caching plugins, and most of them give you options to control the caching headers.",h)});unminifiedJsHead=t=>t.error==="js-unminified"?a("Some Javascript files don't seem to be minified.",h):a("All Javascript files appear to be minified.",h);unminifiedJsBody=t=>({codeAlt:t.error!=="js-unminified"?null:t.value.join(` `),message:a("JavaScript files appear in many places, including frameworks (like Bootstrap), themes and templates, and third-party plugins.",h)+"

"+a("We recommend tracking down where the un-minified JavaScript files come from",h)+"

"+a("There are server-side tools (including WordPress plugins) to automatically minify JavaScript files.",h)});unminifiedCssHead=t=>t.error==="css-unminified"?a("Some CSS files don't seem to be minified.",h):a("All CSS files appear to be minified.",h);unminifiedCssBody=t=>({codeAlt:t.error!=="css-unminified"?null:t.value.join(` `),message:a("CSS files appear in many places, including frameworks (like Bootstrap), themes and templates, and third-party plugins.",h)+"

"+a("We recommend tracking down where the un-minified CSS files come from.",h)+"

"+a("There are server-side tools (including WordPress plugins) to automatically minify CSS files.",h)});pageObjectsHead=t=>{const s=this.personalize?P(a("Your page makes %1$d requests.",h),t.total):P(a("The page makes %1$d requests.",h),t.total);return t.error==="page-objects-too-many"?s+" "+a("More than 20 requests can result in slow page loading.",h):s};pageObjectsBody=t=>({code:t.error!=="page-objects-too-many"?null:a("Images:",h)+" "+t.value.images+"
"+a("JavaScript:",h)+" "+t.value.js+"
"+a("CSS:",h)+" "+t.value.css,message:a("Try to replace embedded objects with HTML5 alternatives.",h)});pageSizeHead=t=>{let s=Math.round(t.value/1e3),o="";return t.error==="page-size-too-big"&&(s=Math.ceil(t.value/1e3),o=a("This is over our recommendation of 50 KB.",h)),33>Math.round(t.value/1e3)&&(o=a("This is under the average of 33 KB.",h)),P(a("The size of the HTML document is %1$d KB.",h),s)+" "+o};pageSizeBody=()=>({message:a("In order to reduce page size, remove any unnecessary tags from your markup. This includes developer comments, which are invisible to your users - search engines ignore the text in comments, too.",h)+"

"+a("Sometimes inline CSS is a culprit. A little inline CSS can help your page render faster. Too much will bloat the HTML file and increase the page loading time.",h)+"

"+a(`You can reduce CSS repetition with HTML class and ID attributes. Often the same rules will be repeated across many page elements, embedded in each tag's "style" attribute. You can extract them into a single "style" tag and use classes and ID's to target each element.`,h)+"

"+a("Removing white space can also have an impact on your HTML page's size. White space characters like carriage returns and tabs are ignored by the browser, but they make the markup easier for developers to read. So you should always strip them from your templates or themes before you use them in a production environment.",h)});responseTimeHead=t=>t.error==="response-time-too-long"?this.personalize?P(a("The response time of your page is %1$f seconds. It is recommended to keep it equal to or below 0.2 seconds.",h),t.value):P(a("The response time of the page is %1$f seconds. It is recommended to keep it equal to or below 0.2 seconds.",h),t.value):this.personalize?a("Your response time is under 0.2 seconds.",h):a("The response time is under 0.2 seconds.",h);responseTimeBody=()=>({message:a("If you want to continue to improve your response time, the simplest and fastest fix is to use a caching plugin. Caching plugins keep a cached version of each page on your site. Instead of building the page from scratch, the server will send the cached copy.",h)+"

"+a("You can get an even greater boost in speed with a content delivery network service. These services host a copy of your content on multiple servers spread out across the globe. A user's request is handled by the edge server that's closest to their physical location, so the content arrives incredibly fast.",h)});visiblePluginsHead=t=>t.error==="plugins-visible"?this.personalize?a("Plugins from your website are publicly visible.",h)+" ("+t.value.length+")":a("Plugins from the website are publicly visible.",h)+" ("+t.value.length+")":this.personalize?a("You have no visible plugins!",h):a("There are no visible plugins.",h);visiblePluginsBody=t=>({code:t.error!=="plugins-visible"?null:t.value.join("
"),message:a("It's a great idea to try and hide the plugins you have visible. From time to time vulnerabilities are found in plugins and if your site is not updated in a timely fashion, outdated plugins and themes can be exploited.",h)});visibleThemesHead=t=>t.error==="themes-visible"?this.personalize?P(a("Anyone can see that you are using the %1$s theme.",h),t.value[0]):P(a("Anyone can see that they are using the %1$s theme.",h),t.value[0]):this.personalize?a("Your theme is not visible!",h):a("The theme is not visible.",h);visibleThemesBody=()=>({message:a("It's a great idea to try and hide the theme you have visible. From time to time vulnerabilities are found in themes and if your site is not updated in a timely fashion, outdated plugins and themes can be exploited.",h)});directoryListingHead=t=>t.error==="directory-listing-open"?this.personalize?a("Directory Listing seems to be enabled on your server.",h):a("Directory Listing seems to be enabled on the server.",h):this.personalize?a("Directory Listing seems to be disabled on your server.",h):a("Directory Listing seems to be disabled on the server.",h);directoryListingBody=()=>({message:a(`Fortunately, every popular web server has options to prevent directory listings. They'll show a "403 forbidden" message instead.`,h)+"

"+a("Alternatively, you can create an empty index.php file and save it in every directory on your site. That's an approach that WordPress uses and it works well.",h)});googleSafeBrowsingHead=t=>t.error==="google-safe-browsing"?this.personalize?a("It looks like your site has been added to one of Google's malwares lists.",h):a("It looks like this site has been added to one of Google's malwares lists.",h):this.personalize?a("Google has not flagged your site for malware!",h):a("Google has not flagged this site for malware.",h);googleSafeBrowsingBody=()=>({message:a("Google Safe browsing shows warnings and alerts to users if they visit a suspicious website. If you are flagged by Google Safe Browsing, you should take immediate steps to fix that.",h)});secureConnectionHead=t=>t.error==="insecure-connection"?this.personalize?a("Your site is not using a secure transfer protocol (https).",h):a("The site is not using a secure transfer protocol (https).",h):this.personalize?a("Your site is using a secure transfer protocol (https).",h):a("The site is using a secure transfer protocol (https).",h);secureConnectionBody=()=>({message:a("If you aren't using an SSL certificate for your site that means you are losing a lot of potential traffic. We recommend getting an SSL certificate installed immediately.",h)});getFilteredResults=(t,s)=>{const o=JSON.parse(JSON.stringify(t));return Object.keys(o).forEach(r=>{const n=o[r];this.head(r,n)||["keywords","keywordsInTitleDescription","searchPreview","mobileSearchPreview","mobileSnapshot"].includes(r)&&delete o[r]}),Object.keys(o).forEach(r=>{const n=o[r];s!=="all"&&n.status!==s&&delete o[r]}),o};getFilteredGroups=t=>(Object.keys(t).forEach(s=>{const o=t[s];this.head(s,o)||["searchPreview","mobileSearchPreview","mobileSnapshot"].includes(s)||delete t[s]}),t);getResultsCount=(t,s)=>{let o=0;return t&&Object.keys(t).forEach(r=>{const n=this.getFilteredGroups(t[r]);Object.keys(n).forEach(l=>{const c=n[l];s===c.status&&o++})}),o}}const Mt=new Yo,_t="all-in-one-seo-pack",Vo=A("AnalyzerStore",{state:()=>({activeTab:"all-urls",homepageAudit:{activeTab:"error"},siteAudit:{activeTab:"error"},analyzer:null,analyzing:!1,analyzeError:null,homeResults:{results:[],score:0},competitors:{},issuesResults:{auditItems:[],auditItemResults:{},isLoading:!0,counts:{passed:0,warning:0,error:0}},allUrlsResults:{rows:[],isLoading:!0,search:"",totals:{page:1,pages:1,total:1},auditItemResults:{}},allUrlsAdditionalFilters:{content_type:"all"},objectsScan:{percent:null,showProcessingPopup:!1}}),getters:{issueResultsTotalCounts:e=>e.issuesResults.counts.passed+e.issuesResults.counts.warning+e.issuesResults.counts.error,getHeadlineAnalysisResults:()=>k().internalOptions.internal.headlineAnalysis.headlines||{},getAnalyzer:e=>(t,s=null)=>{const o={factory:null,results:null};switch(t){case"homepage":o.factory=Mt,o.results=e.homeResults.results;break;case"site":o.factory=jo,o.results=e.issuesResults.auditItems;break;case"competitor":o.factory=Mt,o.results=e.competitors[s]?.results||{};break}return o},allItemsCount:e=>t=>e.recommendedCount(t)+e.criticalCount(t)+e.goodCount(t),recommendedCount:e=>(t,s)=>{const{factory:o,results:r}=e.getAnalyzer(t,s);return o?.getResultsCount(r,"warning")||0},criticalCount:e=>(t,s)=>{const{factory:o,results:r}=e.getAnalyzer(t,s);return o?.getResultsCount(r,"error")||0},goodCount:e=>(t,s)=>{const{factory:o,results:r}=e.getAnalyzer(t,s);return o?.getResultsCount(r,"passed")||0}},actions:{getCompetitorSiteAnalysisResults(){return this.competitors?.length?this.competitors:u.get(d.restUrl("seo-analysis/competitors")).then(e=>(this.competitors=e.body.result,this.competitors))},runSiteAnalyzer(e={}){if(!this.analyzing)return this.analyzing=!0,this.analyzer="competitor-site",u.post(d.restUrl("analyze")).send({url:e.url,refresh:e.refresh}).then(t=>{if(e.url)return this.analyzing=!1,t;this.homeResults=t.body,this.analyzing=!1}).catch(t=>{this.analyzing=!1;let s=a("We couldn't connect to the site, please try again later.",_t);t.response?.body?.response?.error&&(s=t.response.body.response.error),this.analyzeError=s})},runHeadlineAnalyzer(e={}){return this.analyzer="headline",u.post(d.restUrl("analyze-headline")).send({headline:e.headline,shouldStoreHeadline:e.shouldStoreHeadline}).then(t=>{k().updateOption("internalOptions",{groups:["internal","headlineAnalysis"],key:"headlines",value:t.body}),this.analyzing=!1}).catch(t=>{this.analyzing=!1;let s=a("We couldn't analyze your title, please try again later.",_t);t.response.body?.message&&(s=t.response.body.message),this.analyzeError=s})},deleteCompetitorSite(e){return u.post(d.restUrl("analyze/delete-site")).send({url:e}).then(()=>{delete this.competitors[e],this.analyzing=!1})},deleteHeadline(e){return u.post(d.restUrl("analyze-headline/delete")).send({headline:e}).then(t=>{k().updateOption("internalOptions",{groups:["internal","headlineAnalysis"],key:"headlines",value:t.body}),this.analyzing=!1})},fetchPostsByIssue({filter:e,limit:t,offset:s,searchTerm:o}){const r=s===0?1:s/t+1;return u.get(d.restUrl(`seo-analysis/objects/${e}`)).query({search:o,limit:t,offset:s}).then(n=>(this.issuesResults.auditItemResults[e]={...n.body.result,search:o,page:r},n))},fetchIssuesByObject({filter:e,limit:t,offset:s,searchTerm:o}){const r=s===0?1:s/t+1,{id:n,type:l}=e,c=`${n}-${l.toLowerCase()}`;return this.allUrlsResults.auditItemResults[c]&&this.allUrlsResults.auditItemResults[c].search===o&&this.allUrlsResults.auditItemResults[c].page===r?Promise.resolve():u.get(d.restUrl(`seo-analysis/issues/${l.toLowerCase()}/${n}`)).query({search:o,limit:t,offset:s}).then(p=>(this.allUrlsResults.auditItemResults[c]={...p.body.result,search:o,page:r},p))},fetchAllUrls({limit:e,offset:t,searchTerm:s="",additionalFilters:o=[]}){return this.allUrlsResults.isLoading=!0,u.get(d.restUrl("seo-analysis/objects")).query({search:s,limit:e,offset:t,additionalFilters:o}).then(r=>(this.allUrlsResults={...r.body.result,search:s,auditItemResults:{},isLoading:!1},r))},async fetchSitePagesAnalysisResults(){return this.issuesResults.isLoading=!0,u.get(d.restUrl("seo-analysis/issues")).then(e=>{this.issuesResults.auditItems=e.body.result?.results,this.issuesResults.counts=e.body.result?.counts,this.issuesResults.isLoading=!1})},doIgnoreIssue(e,t){const{issueId:s}=e;return u.post(d.restUrl(`seo-analysis/issues/${s}/ignore`)).then(()=>{t.rows=t.rows.filter(o=>o.issueId!==s),t.totals.total--})},changeHomepageAuditTab(e){this.homepageAudit.activeTab=e},changeSiteAuditTab(e){this.siteAudit.activeTab=e},changeSeoAnalyzerTab(e){this.activeTab=e},doAddFocusKeyword(e,t){return u.post(d.restUrl(`seo-analysis/objects/${e}/keywords`)).send({keyphrase:t})},toggleProcessingPopup(){this.objectsScan.showProcessingPopup=!this.objectsScan.showProcessingPopup},async fetchObjectsScanPercent(){return u.get(d.restUrl("seo-analysis/objects-scan-percent")).then(async e=>{e.body&&"percent"in e.body&&(this.objectsScan.percent=e.body.percent,e.body.percent!==100&&setTimeout(()=>{this.fetchObjectsScanPercent()},1e4))})}}}),Jo=A("BackupsStore",{state:()=>({backups:[],networkBackups:{}}),actions:{createBackup(e){return u.post(d.restUrl("backup")).send(e).then(t=>{if(e.siteId){this.networkBackups[e.siteId]=t.body.backups;return}this.backups=t.body.backups})},restoreBackup(e){return u.post(d.restUrl("backup/restore")).send(e).then(t=>{if(t.body.license&&!e.siteId){const o=De();o.license=t.body.license,o.clearLicenseNotices()}const s=k();if(s.options=t.body.options,s.internalOptions=t.body.internalOptions,e.siteId){this.networkBackups[e.siteId]=t.body.backups;return}this.backups=t.body.backups})},deleteBackup(e){return u.delete(d.restUrl("backup")).send(e).then(t=>{if(e.siteId){this.networkBackups[e.siteId]=t.body.backups;return}this.backups=t.body.backups})}}}),Rn=A("ConnectStore",{state:()=>({}),getters:{isConnected:()=>{const e=De(),t=K();return"Lite".toLowerCase()!=="pro"&&t.hasSiteAnalysisConnectToken||e.license.isActive}},actions:{getConnectUrl({key:e,wizard:t}){return u.post(d.restUrl("connect-url")).send({licenseKey:e.trim(),wizard:t})},processConnect(e){const t=pr();return u.post(d.restUrl("connect-pro")).send({downloadUrl:e.file,token:e.token,wizard:e.wizard?JSON.stringify(t.wizard.$state):null})},saveConnectToken(e){const t=K();return t.hasSiteAnalysisConnectToken=!0,u.post(d.restUrl("connect")).send({token:e})}}}),Bt=()=>{const e=(o,r)=>(o==="rules"&&Array.isArray(r)&&r.forEach((n,l)=>{const c=JSON.parse(n);c.userAgent===null&&c.rule==="allow"&&c.directoryPath===null&&r.splice(l,1)}),o==="separator"&&(r=ge(r)),r===null?"":r);return{actions:{updateOriginalOptions(o,r){this[o]=JSON.parse(JSON.stringify(r))},disableDirtyCheck(o){this.disabled.push(o)}},normalize:o=>o?JSON.stringify(JSON.parse(JSON.stringify(o)),e):{}}},X=A("DirtyOptionsStore",{state:()=>({disabled:[],options:{},dynamicOptions:{},networkOptions:{},redirectOptions:{},indexNowOptions:{}}),getters:{isDirty:e=>{const t=Bt(),s=yt(),o=k(),r=vt(),n=[[e.options,o.options],[e.networkOptions,o.networkOptions],[e.dynamicOptions,o.dynamicOptions]];return e.disabled.includes("redirects")||n.push([e.redirectOptions,r.options]),e.disabled.includes("indexNow")||n.push([e.indexNowOptions,s.options]),!n.every(([l,c])=>t.normalize(l)===t.normalize(c))}},actions:{...Bt().actions}}),Zo=A("HelpPanelStore",{state:()=>({categories:{},docs:{}})}),yt=A("IndexNowStore",{state:()=>({options:{indexNow:{apiKey:null}}}),actions:{generateApiKey(){return u.get(d.restUrl("index-now/generate-api-key")).then(e=>(this.options.indexNow.apiKey=e.body.key,X().updateOriginalOptions("indexNowOptions",this.options),e.body.key))},getApiKey(){return u.get(d.restUrl("index-now/api-key")).then(e=>(this.options.indexNow.apiKey=e.body.key,X().updateOriginalOptions("indexNowOptions",this.options),e.body.key))}}}),Qo=A("IndexStatusStore",{state:()=>({objects:{paginated:{rows:[],totals:{page:1,pages:0,total:0},orderBy:"",orderDir:"",limit:"",offset:"",searchTerm:"",additionalFilters:{}},fetching:!1},overview:null,options:{},capability:"aioseo_search_statistics_settings"}),getters:{hasPermission:e=>it(e.capability)},actions:{fetchIndexStatusObjects(e={}){this.objects.fetching=!0;const t=We();return this.objects.paginated={...this.objects.paginated,...e},u.get(d.restUrl("search-statistics/index-status/objects")).query({orderBy:this.objects.paginated.orderBy,orderDir:this.objects.paginated.orderDir,limit:this.objects.paginated.limit,offset:this.objects.paginated.offset,searchTerm:this.objects.paginated.searchTerm,additionalFilters:this.objects.paginated.additionalFilters,endDate:t.latestAvailableDate}).then(s=>(this.objects.paginated.rows=s.body.paginated.rows,this.objects.paginated.totals=s.body.paginated.totals,s)).catch(s=>{throw s}).finally(()=>{this.objects.fetching=!1})},fetchIndexStatusOverview(){return u.get(d.restUrl("search-statistics/index-status/overview")).query().then(e=>(this.overview=e.body.data,e)).catch(e=>{throw e})}}}),As=A("KeywordRankTrackerStore",{state:()=>({parentActiveTab:"rank-tracker",groups:{selected:[],all:{rows:[]},paginated:{rows:[],totals:{page:1,pages:0,total:0},orderBy:"",orderDir:"",limit:"",offset:"",searchTerm:"",filter:"all",additionalFilters:{}},count:0,statistics:null,tableKeywords:{paginated:{rows:[],totals:{page:1,pages:0,total:0},orderBy:"",orderDir:"",limit:"",offset:"",searchTerm:"",filter:"all",additionalFilters:{}}}},keywords:{selected:[],all:{rows:[]},paginated:{rows:[],totals:{page:1,pages:0,total:0},orderBy:"",orderDir:"",limit:"",offset:"",searchTerm:"",filter:"all",additionalFilters:{}},count:0,statistics:null,related:{selected:[],paginated:{rows:[]}},rankingPages:{paginated:{rows:[],totals:{page:1,pages:0,total:0},limit:5,offset:0}}},siteFocusKeywords:[],gscKeywords:[],isFetchingGscKeywords:!1,options:{},modalOpenAddKeywords:!1,modalOpenCreateGroup:!1,modalOpenAssignGroups:!1,modalOpenDeleteKeywords:!1,modalOpenUpdateGroup:!1,modalOpenDeleteGroups:!1,modalOpenPostEdit:!1,isFetchingStatistics:{keywords:!1,groups:!1},fetchKeywordsCallback:null,keywordsLimit:0,errors:{crud:null},favoriteGroup:{}}),getters:{range(){return We().range}},actions:{toggleModal(e){if(this.fetchKeywordsCallback=e?.fetchKeywordsCallback||null,e.modal==="modalOpenAddKeywords"&&e.open&&(this.keywords.selected=[],this.keywords.related.selected=e?.relatedKeywords??[]),e.modal==="modalOpenAssignGroups"&&e.open&&(this.keywords.selected=e?.keywords??[]),e.modal==="modalOpenDeleteKeywords"&&e.open&&(this.keywords.selected=e?.keywords??[]),e.modal==="modalOpenCreateGroup"&&(this.errors.crud=null),e.modal==="modalOpenUpdateGroup"&&e.open&&(this.errors.crud=null),e.modal==="modalOpenPostEdit"&&!e.open){const t=We();t.shouldShowSampleReports=!1}this[e.modal]=e.open},insertKeywords({keywords:e,groups:t}){return this.errors.crud=null,u.post(d.restUrl("search-statistics/keyword-rank-tracker/keywords")).send({keywords:e,groups:t}).then(s=>s).catch(s=>{throw this.errors.crud=s?.response?.body?.error||null,s})},abstractFetchKeywords(e={}){return this.fetchKeywordsCallback?this.fetchKeywordsCallback(e):this.fetchKeywords(e)},fetchKeywords(e={}){return this.keywords.paginated={...this.keywords.paginated,...e},u.get(d.restUrl("search-statistics/keyword-rank-tracker/keywords")).query({orderBy:this.keywords.paginated.orderBy,orderDir:this.keywords.paginated.orderDir,limit:this.keywords.paginated.limit,offset:this.keywords.paginated.offset,searchTerm:this.keywords.paginated.searchTerm,filter:this.keywords.paginated.filter,additionalFilters:this.keywords.paginated.additionalFilters,startDate:this.range.start,endDate:this.range.end,"names[]":e?.names||[],"ids[]":e?.ids||[],postId:e?.postId||0}).then(t=>(this.keywords.paginated.rows=t.body.paginated.rows,this.keywords.paginated.totals=t.body.paginated.totals,this.keywords.paginated.orderBy=t.body.paginated.orderBy,this.keywords.paginated.orderDir=t.body.paginated.orderDir,this.keywords.all.rows=t.body.all.rows,this.keywords.count=t.body.count,t)).catch(t=>{throw t})},updateKeyword({id:e,payload:t}){return u.put(d.restUrl(`search-statistics/keyword-rank-tracker/keywords/${e}/`)).send(t).then(s=>s).catch(s=>{throw s})},deleteKeywords(e){return u.delete(d.restUrl("search-statistics/keyword-rank-tracker/keywords")).send({ids:e}).then(t=>([this.keywords.paginated,this.groups.tableKeywords.paginated].forEach(o=>{const r=Math.max(0,o.offset-t.body.rowsAffected);o.offset=o.totals.total-t.body.rowsAffected<=o.offset?Math.floor(r/o.limit)*o.limit:Math.ceil(r/o.limit)*o.limit}),t)).catch(t=>{throw t})},insertGroups({groups:e,keywords:t}){return this.errors.crud=null,u.post(d.restUrl("search-statistics/keyword-rank-tracker/groups")).send({groups:e,keywords:t}).then(s=>s).catch(s=>{throw this.errors.crud=s?.response?.body?.error||null,s})},fetchGroups(e={}){return this.groups.paginated={...this.groups.paginated,...e},u.get(d.restUrl("search-statistics/keyword-rank-tracker/groups")).query({orderBy:this.groups.paginated.orderBy,orderDir:this.groups.paginated.orderDir,limit:this.groups.paginated.limit,offset:this.groups.paginated.offset,searchTerm:this.groups.paginated.searchTerm,filter:this.groups.paginated.filter,additionalFilters:this.groups.paginated.additionalFilters,startDate:this.range.start,endDate:this.range.end}).then(t=>(this.groups.paginated.rows=t.body.paginated.rows,this.groups.paginated.totals=t.body.paginated.totals,this.groups.all.rows=t.body.all.rows,this.groups.count=t.body.count,t)).catch(t=>{throw t})},fetchGroupsTableKeywords(e={}){const t=xs();return this.groups.tableKeywords.paginated={...this.groups.tableKeywords.paginated,...e,limit:t.settings.tablePagination?.searchStatisticsKrtGroupsTableKeywords},u.get(d.restUrl("search-statistics/keyword-rank-tracker/keywords")).query({orderBy:this.groups.tableKeywords.paginated.orderBy,orderDir:this.groups.tableKeywords.paginated.orderDir,limit:this.groups.tableKeywords.paginated.limit,offset:this.groups.tableKeywords.paginated.offset,searchTerm:this.groups.tableKeywords.paginated.searchTerm,filter:this.groups.tableKeywords.paginated.filter,additionalFilters:this.groups.tableKeywords.paginated.additionalFilters,startDate:this.range.start,endDate:this.range.end,"ids[]":e?.ids?e.ids.length?e.ids:[0]:[]}).then(async s=>(this.groups.tableKeywords.paginated.rows=s.body.paginated.rows,this.groups.tableKeywords.paginated.totals=s.body.paginated.totals,e?.updateKeywords&&(await this.fetchKeywords(),this.maybeFetchStatistics({context:"keywords"})),s)).catch(s=>{throw s})},updateGroup({id:e,payload:t}){return this.errors.crud=null,u.put(d.restUrl(`search-statistics/keyword-rank-tracker/groups/${e}/`)).send(t).then(s=>s).catch(s=>{throw this.errors.crud=s?.response?.body?.error||null,s})},deleteGroups(e){return u.delete(d.restUrl("search-statistics/keyword-rank-tracker/groups")).send({ids:e}).then(t=>{const s=Math.max(0,this.groups.paginated.offset-t.body.rowsAffected);return this.groups.paginated.offset=this.groups.paginated.totals.total-t.body.rowsAffected<=this.groups.paginated.offset?Math.floor(s/this.groups.paginated.limit)*this.groups.paginated.limit:Math.ceil(s/this.groups.paginated.limit)*this.groups.paginated.limit,t}).catch(t=>{throw t})},updateRelationships({keywords:e,groups:t}){return u.post(d.restUrl("search-statistics/keyword-rank-tracker/relationships")).send({keywords:e,groups:t}).then(s=>s).catch(s=>{throw s})},maybeFetchStatistics({context:e,postId:t=0}){if(!(!this[e].paginated.rows.length&&!this[e].all.rows.length))return this.isFetchingStatistics[e]=!0,u.post(d.restUrl("search-statistics/keyword-rank-tracker/statistics")).send({context:e,startDate:this.range.start,endDate:this.range.end,paginated:this[e].paginated,all:this[e].all,postId:t||0}).then(s=>{this[e].paginated.rows=s.body.paginated.rows,this[e].all.rows=s.body.all.rows,this[e].statistics=s.body.statistics}).catch(s=>{throw s}).finally(()=>{this.isFetchingStatistics[e]=!1})},maybeUpdateKeywords(e={}){if(this.keywords.count)return this.fetchKeywords(e).then(()=>this.maybeFetchStatistics({context:"keywords",postId:e?.postId}))},maybeUpdateGroups(){if(this.groups.count)return this.fetchGroups().then(()=>this.maybeFetchStatistics({context:"groups"}))},resetGroupsTableKeywords(){this.groups.tableKeywords={paginated:{rows:[],totals:{page:1,pages:0,total:0},orderBy:"",orderDir:"",limit:"",offset:"",searchTerm:"",filter:"all",additionalFilters:{}}}},resetRelatedKeywords(){this.keywords.related={selected:[],paginated:{rows:[]}}},resetKeywordsRankingPages(){this.keywords.rankingPages={paginated:{rows:[],totals:{page:1,pages:0,total:0},limit:5,offset:0}}},fetchGscKeywords(){return this.isFetchingGscKeywords=!0,u.get(d.restUrl("search-statistics/stats/keywords")).query({startDate:this.range.start,endDate:this.range.end,filter:"all",searchTerm:"",limit:50}).then(e=>{e.body.success&&(this.gscKeywords=e.body.data.paginated.rows||[])}).catch(e=>{throw e}).finally(()=>{this.isFetchingGscKeywords=!1})},fetchRelatedKeywords(e){return u.get(d.restUrl("search-statistics/keyword-rank-tracker/related-keywords")).query({keyword:e,startDate:this.range.start,endDate:this.range.end}).then(t=>(this.keywords.related.paginated.rows=t.body.paginated.rows,t)).catch(t=>{throw t})},fetchKeywordsRankingPages(e={}){this.keywords.rankingPages.paginated={...this.keywords.rankingPages.paginated,...e};const t=this.keywords.rankingPages.paginated.keywords;return u.post(d.restUrl("search-statistics/stats/keywords/posts")).send({limit:this.keywords.rankingPages.paginated.limit,offset:this.keywords.rankingPages.paginated.offset,startDate:this.range.start,endDate:this.range.end,keywords:t}).then(s=>{if(s.body.success){const o=s.body?.data?.[t[0]].paginated||{};this.keywords.rankingPages.paginated.rows=Object.values(o?.rows||{}),this.keywords.rankingPages.paginated.totals=o?.totals||{}}}).catch(s=>{throw s})},maybeFetchRelatedKeywordsStatistics(){if(!this.keywords.related.paginated.rows.every(e=>e.statistics!==null))return u.post(d.restUrl("search-statistics/keyword-rank-tracker/statistics")).send({context:"keywords",startDate:this.range.start,endDate:this.range.end,all:this.keywords.related.paginated}).then(e=>{this.keywords.related.paginated.rows=e.body.all.rows}).catch(e=>{throw e})}}}),Xo="all-in-one-seo-pack",zt=()=>{const e=T(),t=document.createElement("a");t.href=e.aioseo.urls.aio.settings,t.classList.add("ab-item");const s=document.createElement("span");return s.innerText=a("Add License Key",Xo),s.classList.add("aioseo-menu-highlight"),s.classList.add("green"),t.appendChild(s),t},De=A("LicenseStore",{state:()=>({license:{expires:0,isActive:!1,isDisabled:!1,isExpired:!1,isInvalid:!1}}),getters:{isUnlicensed:e=>"Lite".toLowerCase()!=="pro"||!e.license.isActive,counts:()=>{const e=T(),t=k();let s=e.aioseo.data.isNetworkAdmin?t.internalNetworkOptions.internal.license?.counts:t.internalOptions.internal.license?.counts;return s&&typeof s=="string"&&(s=JSON.parse(s)),s},upgradeUrl:()=>{const e=T(),t=k();return e.aioseo.data.isNetworkAdmin?t.internalNetworkOptions.internal.license?.upgradeUrl:t.internalOptions.internal.license?.upgradeUrl}},actions:{activate(e){const t=he(),s=k(),o=T(),r=K(),n={network:o.aioseo.data.isNetworkAdmin};return e&&(n.licenseKey=e.trim()),u.post(d.restUrl("activate")).send(n).then(l=>{if(o.aioseo.data.isNetworkAdmin?r.hasNetworkLicenseKey=!0:r.hasLicenseKey=!0,t.updateNotifications(l.body.notifications),this.license=l.body.license,l.body.licenseData&&(l.body.licenseData?.counts&&typeof l.body.licenseData.counts=="string"&&(l.body.licenseData.counts=JSON.parse(l.body.licenseData.counts)),Object.keys(l.body.licenseData).forEach(c=>{const p=o.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";s.updateOption(p,{groups:["internal","license"],key:c,value:l.body.licenseData[c]})}),o.aioseo.data.isNetworkLicensed=o.aioseo.data.isNetworkAdmin,this.clearLicenseNotices()),l.body.aiOptions){const c=o.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";Object.keys(l.body.aiOptions).forEach(p=>{s.updateOption(c,{groups:["internal","ai"],key:p,value:l.body.aiOptions[p]})}),l.body.aiOptions.hasAccessToken!==void 0&&(s[c].internal.ai.hasAccessToken=l.body.aiOptions.hasAccessToken)}return l})},multisite(e){const t=he(),s=T();return u.post(d.restUrl("multisite")).send({network:s.aioseo.data.isNetworkAdmin,sites:e}).then(o=>{s.aioseo.data={...s.aioseo.data,network:{...s.aioseo.data.network}},t.updateNotifications(o.body.notifications)})},deactivate(){const e=he(),t=k(),s=T(),o=K();return u.post(d.restUrl("deactivate")).send({network:s.aioseo.data.isNetworkAdmin}).then(r=>{if(s.aioseo.data.isNetworkAdmin?o.hasNetworkLicenseKey=!1:o.hasLicenseKey=!1,e.updateNotifications(r.body.notifications),r.body.licenseData){if(Object.keys(r.body.licenseData).forEach(n=>{const l=s.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";t.updateOption(l,{groups:["internal","license"],key:n,value:r.body.licenseData[n]})}),this.license=r.body.license,r?.body?.aiOptions){const n=s.aioseo.data.isNetworkAdmin?"internalNetworkOptions":"internalOptions";Object.keys(r.body.aiOptions).forEach(l=>{t.updateOption(n,{groups:["internal","ai"],key:l,value:r.body.aiOptions[l]})}),r.body.aiOptions.hasAccessToken!==void 0&&(t[n].internal.ai.hasAccessToken=r.body.aiOptions.hasAccessToken)}s.aioseo.isUnlicensed=!0,this.addLicenseNotices()}return r})},clearLicenseNotices(){const e=document.querySelector(".aioseo-submenu-highlight");e&&e.remove();const t=document.querySelector("#wp-admin-bar-aioseo-pro-license");t&&t.remove()},addLicenseNotices(){this.clearLicenseNotices();const e=document.querySelector("#toplevel_page_aioseo ul.wp-submenu-wrap");if(e){const s=document.createElement("li");s.classList.add("aioseo-submenu-highlight");const o=zt();s.appendChild(o),e.appendChild(s)}const t=document.querySelector("#wp-admin-bar-aioseo-main-default");if(t){const s=document.createElement("li");s.id="wp-admin-bar-aioseo-pro-license";const o=zt();s.appendChild(o),t.appendChild(s)}}}}),Es=A("LinkAssistantStore",{state:()=>({options:{main:{affiliatePrefix:"",wordsToIgnore:"",skipSentences:3,postTypes:{all:!0,included:null},postStatuses:{all:!0,included:null},excludePosts:[]}},internalOptions:{internal:{minimumLinkScanDate:null,minimumSuggestionScanDate:null,dismissedAlerts:{suggestions:!1}}},overview:{totals:{crawledPosts:0,externalLinks:0,internalLinks:0,affiliateLinks:0,orphanedPosts:0},linkingOpportunities:[],mostLinkedDomains:[]},domainsReport:{rows:[],totals:{page:1,pages:1,total:1},innerPagination:{}},linksReport:{rows:[],totals:{page:1,pages:1,total:1},prioritizedPosts:[],counts:[{inboundInternal:0,outboundInternal:0,affiliate:0,external:0,suggestionsInbound:0,suggestionsOutbound:0}]},postReport:{inboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},outboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},affiliate:{rows:[],totals:{page:1,pages:1,total:0}},external:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsInbound:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsOutbound:{rows:[],totals:{page:1,pages:1,total:0}}},suggestionsScan:{percent:0,showProcessingPopup:!1},skipNextPostSettingsUpdate:!1}),actions:{linkDelete({postId:e,linkId:t,linksReport:s,postReport:o}){const r=s?"links-report-inner":o?"post-report":"post-settings";return u.post(d.restUrl(`link-assistant/${r}/links/delete`)).send({postId:e,linkId:t}).then(n=>{if(!s&&!o){if(n.body){const l=w(),c=l.currentPost;c.linkAssistant.links=n.body.links,l.updateState(c)}return}this.getOverviewData(),!o&&s&&this.setLinksReportCounts()})},linksBulk({postId:e,action:t,linkType:s,linkIds:o,linksReport:r,postReport:n}){const l=r?"links-report-inner":n?"post-report":"post-settings";return u.post(d.restUrl(`link-assistant/${l}/links/bulk`)).send({postId:e,action:t,linkType:s,linkIds:o}).then(c=>{if(!r&&!n){if(c.body){const p=w(),g=p.currentPost;g.linkAssistant.links=c.body.links,p.updateState(g)}return}this.getOverviewData(),!n&&r&&this.setLinksReportCounts()})},linksRefresh({postId:e,linksReport:t,postReport:s}){const o=t?"links-report-inner":s?"post-report":"post-settings";return u.post(d.restUrl(`link-assistant/${o}/refresh`)).send({postId:e}).then(()=>{this.linksReport.prioritizedPosts.push(e),t&&this.setLinksReportCounts(),this.pollSuggestionsScan()}).catch(r=>{console.error("Couldn't prioritize the post for the next scan.",r)})},suggestionDismiss({postIndex:e,postId:t,suggestionId:s,linksReport:o,postReport:r}){const n=w(),c=o?"links-report-inner":r?"post-report":"post-settings";return u.post(d.restUrl(`link-assistant/${c}/suggestions/dismiss`)).send({postId:t||n.currentPost.id,suggestionId:s}).then(p=>{if(!o&&!r){if(p.body){const g=n.currentPost;g.linkAssistant.links=p.body.links,n.updateState(g)}return}r||o&&((e||e===0)&&(this.linksReport.rows[e].links=p.body.links),this.getOverviewData(),this.setLinksReportCounts())})},suggestionsBulk({postId:e,action:t,suggestionType:s,suggestionRows:o,linksReport:r,postReport:n}){const l=r?"links-report-inner":n?"post-report":"post-settings";return u.post(d.restUrl(`link-assistant/${l}/suggestions/bulk`)).send({postId:e,action:t,suggestionType:s,suggestionRows:o}).then(c=>{if(!r&&!n){if(c.body){const p=w(),g=p.currentPost;g.linkAssistant.links=c.body.links,p.updateState(g)}return}this.getOverviewData(),!n&&r&&this.setLinksReportCounts()})},fetchLinksReport({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n,additionalFilters:l}){return u.post(d.restUrl(`link-assistant/links-report/${n}`)).send({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,additionalFilters:l}).then(c=>{this.linksReport=c.body.linksReport,this.getOverviewData(),this.setLinksReportCounts()})},fetchLinksReportInner({filter:e,additionalFilters:t}){return u.post(d.restUrl(`link-assistant/links-report-inner/${e}`)).send({additionalFilters:t}).then(s=>{t?.postIndex&&(this.linksReport.rows[t.postIndex].links=s.body.links),this.getOverviewData()})},fetchDomainsReport({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n,additionalFilters:l}){return u.post(d.restUrl(`link-assistant/domains-report/${n}`)).send({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,additionalFilters:l}).then(c=>{this.domainsReport=c.body.domainsReport,this.getOverviewData()})},fetchDomainsReportInner({orderBy:e,orderDir:t,offset:s,searchTerm:o,filter:r,additionalFilters:n}){return u.post(d.restUrl(`link-assistant/domains-report-inner/${r}`)).send({orderBy:e,orderDir:t,offset:s,searchTerm:o,additionalFilters:n}).then(l=>{this.domainsReport.rows[n.domainIndex][n.domain]=l.body.posts||[],this.getOverviewData()})},fetchPostReport({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n,additionalFilters:l={}}){return u.post(d.restUrl(`link-assistant/post-report/${n}`)).send({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,additionalFilters:l}).then(c=>(l.type&&(this.postReport[l.type]=c.body.links),c))},linksReportDeleteAll({postId:e}){return u.delete(d.restUrl(`link-assistant/links-report/post/${e}`)).then(()=>{})},domainsReportBulk({action:e,rowIndexes:t}){const s=[];return Array.isArray(t)?t.forEach(o=>{s.push(Object.keys(this.domainsReport.rows[o])[0])}):s.push(Object.keys(this.domainsReport.rows[t])[0]),u.post(d.restUrl(`link-assistant/domains-report/bulk/${e}`)).send({hostnames:s}).then(()=>{this.getOverviewData()})},domainsReportInnerBulk({offset:e,searchTerm:t,action:s,domainIndex:o,linkIndexes:r}){const n=[];if(Array.isArray(r))r.forEach(l=>{const c=Object.keys(this.domainsReport.rows[o])[0];this.domainsReport.rows[o][c][l].links.forEach(g=>{n.push(g)})});else{const l=Object.keys(this.domainsReport.rows[o])[0];this.domainsReport.rows[o][l][r].links.forEach(p=>{n.push(p)})}return u.post(d.restUrl(`link-assistant/domains-report-inner/bulk/${s}`)).send({searchTerm:t,links:n,offset:e}).then(()=>{this.getOverviewData()})},domainsReportInnerLinkUpdate({domain:e,link:t}){return u.put(d.restUrl("link-assistant/domains-report-inner/link")).send({hostname:e,link:t}).then(()=>{this.getOverviewData()})},domainsReportInnerLinkDelete({searchTerm:e,rows:t,postIndex:s,linkIndex:o,offset:r}){const n=t[s].links[o];return u.delete(d.restUrl("link-assistant/domains-report-inner/link")).send({searchTerm:e,offset:r,link:n}).then(()=>{this.getOverviewData()})},postSettingsUpdate({postContent:e,skipNextRun:t}){if(this.skipNextPostSettingsUpdate){this.skipNextPostSettingsUpdate=!1;return}const s=w();return window.aioseoBus.$emit("updatingLinks",!0),u.post(d.restUrl("link-assistant/post-settings/update")).send({postId:s.currentPost.id,postContent:e}).then(o=>{if(o.body){const r=s.currentPost;r.linkAssistant.links=o.body.links,s.updateState(r)}t&&(this.skipNextPostSettingsUpdate=!0)}).catch(o=>{console.error("Couldn't get updated Link Assistant data:",o)}).finally(()=>{window.aioseoBus.$emit("updatingLinks",!1)})},getMenuData(){return u.get(d.restUrl("link-assistant/data/menu")).then(e=>{e.body.data&&this.resetState(e.body.data)})},getOverviewData(){return u.get(d.restUrl("link-assistant/data/overview")).then(e=>{e.body.data&&(this.overview=e.body.data)})},getPostData(){const e=w(),t=e.currentPost.id;return u.get(d.restUrl(`link-assistant/data/post/${t}`)).then(s=>{if(s.body.data){const o=e.currentPost;o.linkAssistant=s.body.data.currentPost.linkAssistant,e.updateState(o),this.resetState(s.body.data)}})},triggerScan(){return u.get(d.restUrl("link-assistant/data/trigger-scan")).then(e=>{e.body.data&&this.resetState(e.body.data)})},pollSuggestionsScan(){return u.get(d.restUrl("link-assistant/data/suggestions-scan-percent")).then(e=>{e.body&&"percent"in e.body&&(this.suggestionsScan.percent!==e.body.percent&&this.getOverviewData(),this.suggestionsScan.percent=e.body.percent,e.body.percent!==100&&setTimeout(()=>{this.pollSuggestionsScan()},1e4))})},setLinksReportCounts(){const e=[];this.linksReport.rows.forEach((t,s)=>{e[s]={inboundInternal:t.links.inboundInternal.totals.total,outboundInternal:t.links.outboundInternal.totals.total,affiliate:t.links.affiliate.totals.total,external:t.links.external.totals.total,suggestionsInbound:t.links.suggestionsInbound.totals.total,suggestionsOutbound:t.links.suggestionsOutbound.totals.total}}),this.linksReport.counts=e},resetState(e){e.options&&(this.options=e.options),e.internalOptions&&(this.internalOptions=e.internalOptions),e.overview&&(this.overview=e.overview),e.domainsReport&&(this.domainsReport=e.domainsReport),e.linksReport&&(this.linksReport=e.linksReport)},toggleProcessingPopup(){this.suggestionsScan.showProcessingPopup=!this.suggestionsScan.showProcessingPopup},setDomainsReportInnerPaginatedPage({domain:e,page:t}){const s=this.domainsReport.innerPagination||{};s[e]=t,this.domainsReport.innerPagination=s},resetPostReportState(){this.postReport={inboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},outboundInternal:{rows:[],totals:{page:1,pages:1,total:0}},affiliate:{rows:[],totals:{page:1,pages:1,total:0}},external:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsInbound:{rows:[],totals:{page:1,pages:1,total:0}},suggestionsOutbound:{rows:[],totals:{page:1,pages:1,total:0}}}}}}),er=A("LocalSeoStore",{state:()=>({importers:[]}),actions:{importPlugins(e){return u.post(d.restUrl("local-business/import-plugins")).send(e).then(t=>{if(t.body?.localBusinessOptions){const s=k();s.options.localBusiness=E({...s.options.localBusiness},{...t.body?.localBusinessOptions||{}})}})}}}),Cs=A("NetworkStore",{state:()=>({activeSites:[],networkData:{},networkRobots:{rules:[]},currentSite:{}}),getters:{getNetworkRobots:()=>{const e=k();return e.networkOptions.tools?e.networkOptions.tools.robots:[]}},actions:{fetchNetworkSites({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n}){return u.post(d.restUrl(`network-sites/${n}`)).send({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r}).then(l=>{const c=T();c.aioseo.data={...c.aioseo.data,network:{...c.aioseo.data.network,sites:l.body.sites}},this.networkData.sites=l.body.sites})},fetchSiteRobots(e){return u.get(d.restUrl(`network-robots/${e}`)).then(t=>{this.networkRobots.rules=t.body.rules})},getActiveSites(e){return u.post(d.restUrl("activated")).send({domains:e}).then(t=>{this.activeSites=t.body.activeSites})},importRobotsTxt({url:e,text:t,source:s,networkLevel:o,blogId:r}){return u.post(d.restUrl("tools/import-robots-txt")).send({url:e,text:t,source:s,networkLevel:o,blogId:r}).then(n=>n)}}}),tr=e=>{const t=document.querySelector(".aioseo-menu-notification-counter");if(t)if(e.active.length)t.innerText=e.active.length;else{t.remove();const s=document.querySelector("#wp-admin-bar-aioseo-notifications");s&&s.remove();const o=document.querySelector("#toplevel_page_aioseo .wp-first-item"),r=document.querySelector("#toplevel_page_aioseo .wp-first-item .aioseo-menu-notification-indicator");o?.contains(r)&&o.remove()}},he=A("NotificationsStore",{state:()=>({active:[],new:[],dismissed:[],force:!1,showNotifications:!1}),getters:{activeNotifications:e=>e.active,activeNotificationsCount:e=>e.active.length,dismissedNotifications:e=>e.dismissed,dismissedNotificationsCount:e=>e.dismissed.length},actions:{toggleNotifications(){this.showNotifications=!this.showNotifications},dismissNotifications(e){return e.reverse().forEach(s=>{const o=this.active.findIndex(r=>r.slug===s);o!==-1&&this.active.splice(o,1)}),u.post(d.restUrl("notifications/dismiss")).send(e).then(s=>{if(!s.body.success)throw new Error(s.body.message);this.updateNotifications(s.body.notifications)})},updateNotifications(e){e.new.length&&window.aioseoNotifications&&(window.aioseoNotifications.newNotifications=e.new.length),this.active=e.active,this.new=e.new,this.dismissed=e.dismissed,tr(e)},processButtonAction(e){const t=T();return u.post(d.restUrl(`${e}`)).send({network:t.aioseo.data.isNetworkAdmin}).then(s=>{if(this.updateNotifications(s.body.notifications),!s.body.success)throw new Error(s.body.message)})}}}),k=A("OptionsStore",{state:()=>({dynamicOptions:{},internalNetworkOptions:{},internalOptions:{},networkOptions:{},options:{},htaccessError:null,saveError:null}),getters:{aiCreditPercentage(){return Math.round(this.internalOptions.internal.ai.credits.remaining/this.internalOptions.internal.ai.credits.total*100)}},actions:{saveChanges(){const e=X(),t=yt(),s=Es(),o=he(),r=vt(),n=T(),l={options:this.options,dynamicOptions:this.dynamicOptions,network:n.aioseo.data.isNetworkAdmin,networkOptions:this.networkOptions};switch(n.aioseo.page){case"redirects":{l.redirectOptions=r.options;break}case"link-assistant":{l.linkAssistantOptions=s.options;break}case"settings":{l.indexNowOptions=t.options;break}}return u.post(d.restUrl("options")).send(l).then(c=>(o.updateNotifications(c.body.notifications),e.updateOriginalOptions("options",this.options),e.updateOriginalOptions("dynamicOptions",this.dynamicOptions),r?.options&&e.updateOriginalOptions("redirectOptions",r.options),t.options.indexNow.apiKey&&e.updateOriginalOptions("indexNowOptions",t.options),c.body.redirection&&(c.body.redirection==="reload"?window.location.reload():window.location.href=c.body.redirection),c)).catch(c=>{console.error("Failed to save the options.",c),this.saveError=c.response.body.message})},saveHtaccess(){const e=T();return u.post(d.restUrl("htaccess")).send({htaccess:e.aioseo.data.htaccess}).then(()=>{}).catch(t=>{console.error("Failed to update .htaccess file.",t),this.htaccessError=t.response.body.message})},saveNetworkRobots(){const e=X(),t=Cs(),s=T(),o=t.currentSite?.blog_id==="network",r=o?this.networkOptions:this.options,n={enabled:o?this.networkOptions.tools.robots.enable:this.options.tools.robots.enable,network:s.aioseo.data.isNetworkAdmin,rules:t.networkRobots.rules,searchAppearance:r.searchAppearance};return u.post(d.restUrl(`network-robots/${t.currentSite?.blog_id}`)).send(n).then(()=>{e.updateOriginalOptions(o?"networkOptions":"options",r)})},getObjects(e){return u.post(d.restUrl("objects")).send(e).then(t=>{if(!t.body.success)throw new Error(t.body.message);return t})},updateOption(e,{groups:t,key:s,value:o}){let r=this[e];t.forEach(n=>{r=r[n]}),!(r===void 0||r[s]===void 0)&&(r[s]=o)},fetchOptions(e){return u.get(d.restUrl("options")).query({siteId:e}).then(t=>(this.options=t.body.options,t)).catch(t=>{throw t})}}}),sr=A("PluginsStore",{state:()=>({plugins:{}}),actions:{installPlugins(e){const t=T();return u.post(d.restUrl("plugins/install")).send({network:t.aioseo.data.isNetworkAdmin,plugins:e}).then(s=>{if(!s.body.success)throw new Error(s.body.message);const o=ze();return Object.keys(s.body.completed).forEach(r=>{const n=s.body.completed[r],l=o.addons.find(c=>r===c.sku);l&&(l.basename=n,l.installed=!0,l.hasMinimumVersion=!0,l.installedVersion=l.version,o.updateAddon(l))}),s})},upgradePlugins(e){const t=T();return u.post(d.restUrl("plugins/upgrade")).send({network:t.aioseo.data.isNetworkAdmin,plugins:e}).then(s=>{if(!s.body.success)throw new Error(s.body.message);const o=ze();return Object.keys(s.body.completed).forEach(r=>{o.updateAddon(s.body.completed[r])}),s})},deactivatePlugins(e){const t=T();return u.post(d.restUrl("plugins/deactivate")).send({network:t.aioseo.data.isNetworkAdmin,plugins:e}).then(s=>s)}}});let Ne=null;const Xe=e=>{const t=new Set(["modalOpen","seo_score","page_analysis","headlineAnalyzer","loading","score","analysis","ai"]);return JSON.stringify(e,(s,o)=>t.has(s)?void 0:o)},w=A("PostEditorStore",{state:()=>({isDirty:!1,currentPost:{},isFetchingPostData:!1}),getters:{newHeadlineAnaylzerData(){const e=this.currentPost.headlineAnalyzer?.newData?.headline?this.currentPost.headlineAnalyzer.newData.headline:"";let t=this.currentPost.headlineAnalyzer?.newData?.data[Object.keys(this.currentPost.headlineAnalyzer.newData.data)?.[0]]?this.currentPost.headlineAnalyzer.newData.data[Object.keys(this.currentPost.headlineAnalyzer.newData.data)?.[0]]:null;return t=t?JSON.parse(t):null,{newTitle:e,newResult:t}}},actions:{updateTitle(e){this.currentPost.title=e,window.aioseoBus.$emit("updateTitleKey")},updateDescription(e){this.currentPost.description=e,window.aioseoBus.$emit("updateDescriptionKey")},updatePostHeadlineAnalyzerData(e,t){if(this.currentPost.headlineAnalyzer=this.currentPost.headlineAnalyzer||{},this.currentPost.headlineAnalyzer.data=e,this.currentPost.headlineAnalyzer.headline=t,this.currentPost.headlineAnalyzer.previousHeadlines||(this.currentPost.headlineAnalyzer.previousHeadlines=[]),this.currentPost.headlineAnalyzer.data[Object.keys(this.currentPost.headlineAnalyzer.data)?.[0]]){let s=this.currentPost.headlineAnalyzer.data[Object.keys(this.currentPost.headlineAnalyzer.data)?.[0]];s=JSON.parse(s),this.currentPost.headlineAnalyzer.previousHeadlines.some(r=>r.headline===t)||(this.currentPost.headlineAnalyzer.previousHeadlines.push({headline:t,result:s,score:s.score}),this.currentPost.headlineAnalyzer.latestScore=s.score)}},updateLatestScore(e){this.currentPost.headlineAnalyzer.latestScore=e},shouldShowPrevScores(){this.currentPost.headlineAnalyzer.showPrevScores=!0},updateNewHeadlineAnalyzerData(e,t){this.currentPost.headlineAnalyzer.newData=this.currentPost.headlineAnalyzer.newData||{},this.currentPost.headlineAnalyzer.newData.data=e,this.currentPost.headlineAnalyzer.newData.headline=t,this.currentPost.headlineAnalyzer.newData.showPreview=!0,this.currentPost.headlineAnalyzer.previousHeadlines||(this.currentPost.headlineAnalyzer.previousHeadlines=[]);let s=this.currentPost.headlineAnalyzer.newData.data[Object.keys(this.currentPost.headlineAnalyzer.newData.data)?.[0]];s=JSON.parse(s),this.currentPost.headlineAnalyzer.previousHeadlines.some(r=>r.headline===t)||(this.currentPost.headlineAnalyzer.previousHeadlines.push({headline:t,result:s,score:s.score}),this.currentPost.headlineAnalyzer.latestScore=s.score)},toggleShowNewHeadlineAnalyzerData(e){this.currentPost.headlineAnalyzer.showNewData=e},toggleShowNewHeadlineAnalyzerPreview(e){this.currentPost.headlineAnalyzer.newData.showPreview=e},changeGeneralPreview(e){this.currentPost.generalMobilePrev=e},saveCurrentPost(e){return this.currentPost=e,u.post(d.restUrl("post")).send(e).then(()=>{}).catch(t=>{console.error(`Unable to update the post data: ${t}`)})},updateState(e){this.currentPost=e},savePostState(){if(!this.currentPost||!Object.keys(this.currentPost).length)return;Ne===null&&(Ne=Xe(this.currentPost)),Ne!==Xe(this.currentPost)&&(this.isDirty=!0,Ne=Xe(this.currentPost),window.aioseoBus.$emit("postSettingsUpdated"));const e=document.querySelector("#aioseo-post-settings");if(e&&(e.value=JSON.stringify(this.currentPost)),this.currentPost.context==="term"){const t=document.querySelector("#aioseo-term-settings");t&&(t.value=JSON.stringify(this.currentPost))}},disablePrimaryTermEducation(){return this.currentPost.options.primaryTerm.productEducationDismissed=!0,u.post(d.restUrl(`post/${this.currentPost.id}/disable-primary-term-education`))},disableLinkAssistantEducation(){return this.currentPost.options.linkFormat.linkAssistantDismissed=!0,u.post(d.restUrl(`post/${this.currentPost.id}/disable-link-format-education`))},incrementInternalLinkCount(){const e=this.currentPost.options.linkFormat.internalLinkCount||0;return this.currentPost.options.linkFormat.internalLinkCount=e+1,u.post(d.restUrl(`post/${this.currentPost.id}/update-internal-link-count`)).send({count:e})},getUserImage({userId:e}){return u.get(d.restUrl(`user/${e}/image`)).then(t=>t.statusCode===200?t.body.url:"")},getFirstAttachedImage({postId:e}){return u.get(d.restUrl(`post/${e}/first-attached-image`)).then(t=>t.statusCode===200?t.body.url:"")},getMediaData({mediaId:e}){return u.get(d.restUrl(`media/${e}`,"wp/v2")).then(t=>t.statusCode===200?t.body:{})},processContent({content:e,integration:t}){return u.post(d.restUrl(`post/${this.currentPost.id}/process-content`)).send({content:e,integration:t}).then(s=>{this.currentPost.processedContent=s.body.content}).catch(s=>{throw s})},fetchPostData(e={}){return this.isFetchingPostData=!0,u.get(d.restUrl("post")).query(e).then(t=>t).catch(t=>{throw t}).finally(()=>{this.isFetchingPostData=!1})}}}),vt=A("RedirectsStore",{state:()=>({options:{},importers:[],redirects:[],rows:[],logs:[],logs404:[],filters:[],selectedFilters:{},manualUrls:[],sort:{logs:"last_accessed",logs404:"last_accessed"},sortDir:{logs:"desc",logs404:"desc"},logSizes:{logs404:{original:0,readable:0},redirectLogs:{original:0,readable:0}},totals:{main:{total:0,pages:0,page:1},total404:{total:0,pages:0,page:1},logs:{total:0,pages:0,page:1}},server:{redirectTest:{testing:!1,failed:!1},filePath:""},lateRefresh:{redirects:!1,logs:!1,logs404:!1},protectedPaths:[],path:"",addNewRedirect:{sourceUrls:[],targetUrl:null,redirectType:null,queryParam:null,customRules:[],showAdvancedSettings:!1,comment:""}}),actions:{updateState(e=null){for(const t in e||{})this[t]=e[t]},bulk({action:e,rowIds:t}){if(t=t.filter(r=>{const n=this.rows.find(l=>l.id===parseInt(r));return!(e==="enable"&&n.enabled||e==="disable"&&!n.enabled||e==="reset-hits"&&!n.hits)}),!t.length)return Promise.resolve();const s=e==="delete"?"delete":"post",o=e==="delete"?"":`${e}/`;return u[s](d.restUrl(`redirects/bulk/${o}`)).send({rowIds:t})},fetchRedirects({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n,additionalFilters:l}){const c=w();return c.currentPost?.context==="post"||c.currentPost?.context==="term"?this.getPostRedirects():u.post(d.restUrl(`redirects/${n}`)).send({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,additionalFilters:l}).then(p=>{this.filters=p.body.filters,this.rows=p.body.rows,this.totals.main=p.body.totals})},fetchLogs({slug:e,orderBy:t,orderDir:s,limit:o,offset:r,searchTerm:n,filter:l}){return u.post(d.restUrl(`redirects/${e}/${l}`)).send({orderBy:t,orderDir:s,limit:o,offset:r,searchTerm:n}).then(c=>{this[e==="404"?"logs404":"logs"]=c.body.rows,this.totals[e==="404"?"total404":"logs"]=c.body.totals})},create(e){return e?.group==="404"&&this.setLateRefresh(!0,"redirects"),u.post(d.restUrl("redirects")).send(e)},update({id:e,payload:t}){return u.post(d.restUrl(`redirects/${e}/`)).send(t).then(s=>{if(s.body.redirect?.id){const o=this.rows.findIndex(r=>r.id===s.body.redirect.id);o!==-1&&(this.rows[o]=s.body.redirect)}})},delete(e){return u.delete(d.restUrl(`redirects/${e}`))},test({id:e,payload:t}){return u.post(d.restUrl(`redirects/${e}/test/`)).send(t)},deleteLog({slug:e,ids:t}){return u.delete(d.restUrl(`redirects/logs/${e}`)).send({ids:t})},exportServerRedirects(e){return u.get(d.restUrl(`redirects/export/${e}/`))},exportRedirects({groups:e,type:t}){return u.post(d.restUrl(`redirects/export/${t}/`)).send({groups:e})},exportLogs(e){return u.get(d.restUrl(`redirects/export-logs/${e}/`))},uploadFile({file:e,filename:t}){return u.post(d.restUrl("redirects/import")).attach("file",e,t).then(s=>{this.filters=s.body.filters,this.rows=s.body.rows,this.totals.main=s.body.totals})},importPlugins(e){return u.post(d.restUrl("redirects/import-plugins")).send({plugins:e}).then(()=>this.setLateRefresh({value:!0,type:"redirects"}))},importCsvRedirects(e){return u.post(d.restUrl("redirects/import-csv")).send(e)},getPosts(e){return u.post(d.restUrl("redirects/posts")).send(e).then(t=>{if(!t.body.success)throw new Error(t.body.message);return t})},getRedirectOptions(){return u.get(d.restUrl("redirects/options")).then(e=>{e.body.options&&(this.options=e.body.options,this.importers=e.body.importers,X().updateOriginalOptions("redirectOptions",this.options))})},testServerRedirects(){const e=he();if(!this.server.redirectTest.testing)return this.server.redirectTest.testing=!0,u.get(d.restUrl("redirects/server/test")).then(t=>{this.server.redirectTest.testing=!1,this.server.redirectTest.failed=!t.body.success,e.updateNotifications(t.body.notifications)}).catch(()=>{this.server.redirectTest.testing=!1,this.server.redirectTest.failed=!0})},getPostRedirects(){const e=w();return u.get(d.restUrl("redirects/"+e.currentPost.context+"/"+e.currentPost.id)).then(t=>{this.rows=t.body.rows,e.currentPost.permalinkPath=t.body.permalinkPath,e.currentPost.postStatus=t.body.postStatus}).catch(()=>{})},setLateRefresh({value:e=!0,type:t="all"}){t=t==="all"?["redirects","logs","logs404"]:[t];for(const s in t)this.lateRefresh[t[s]]=e},resetPageNumbers(){const{main:e,total404:t,logs:s}=this.totals;e.page=1,t.page=1,s.page=1;const o={main:e,total404:t,logs:s};this.totals=o},clearLog(e){return u.post(d.restUrl("clear-log")).send({log:e}).then(t=>{this.logSizes[e]=t.body.logSize})}}}),T=A("RootStore",{state:()=>({pong:!0,loaded:!1,loading:!1,isPro:"Lite".toLowerCase()==="pro",aioseo:{},navigate:{scroll:null,highlight:null},modals:{active:null,all:new Set,rendered:new Set}}),actions:{ping(){u.get(d.restUrl("ping")).catch(()=>{this.pong=!1})},setActiveModal(e){this.modals.active=e,this.modals.all.add(e)},unsetActiveModal(e){this.modals.all.delete(e),this.modals.active=[...this.modals.all].pop()||null}}}),O="all-in-one-seo-pack",ar="aioseo-pro",or=()=>{const e=[{slug:"article",graphName:"Article",label:a("Article",O)},{slug:"book",graphName:"Book",label:a("Book",O)},{slug:"course",graphName:"Course",label:a("Course",O)},{slug:"dataset",graphName:"Dataset",label:a("Dataset",O)},{slug:"event",graphName:"Event",label:a("Event",O)},{slug:"faq-page",graphName:"FAQPage",label:a("FAQ",O)},{slug:"fact-check",graphName:"FactCheck",label:a("Fact Check",O)},{slug:"how-to",graphName:"HowTo",label:a("How To",O)},{slug:"job-posting",graphName:"JobPosting",label:a("Job Posting",O)},{slug:"movie",graphName:"Movie",label:a("Movie",O)},{slug:"music",graphName:"Music",label:a("Music",O)},{slug:"person",graphName:"Person",label:a("Person",O)},{slug:"product",graphName:"Product",label:a("Product",O)},{slug:"product-review",graphName:"ProductReview",label:a("Product Review",O)},{slug:"car",graphName:"Car",label:a("Car",O)},{slug:"recipe",graphName:"Recipe",label:a("Recipe",O)},{slug:"service",graphName:"Service",label:a("Service",O)},{slug:"software-application",graphName:"SoftwareApplication",label:a("Software",O)},{slug:"video",graphName:"Video",label:a("Video",O)},{slug:"web-page",graphName:"WebPage",label:a("Web Page",O)}],t={Article:[{childGraphName:"BlogPosting",label:a("Blog Post",O)},{childGraphName:"NewsArticle",label:a("News Article",O)}],Music:[{childGraphName:"MusicAlbum",label:a("Music Album",O)},{childGraphName:"MusicGroup",label:a("Music Group",O)}],WebPage:[{childGraphName:"WebPage",label:a("Web Page",O)},{childGraphName:"AboutPage",label:a("About Page",O)},{childGraphName:"CheckoutPage",label:a("Checkout Page",O)},{childGraphName:"CollectionPage",label:a("Collection Page",O)},{childGraphName:"ContactPage",label:a("Contact Page",O)},{childGraphName:"ItemPage",label:a("Item Page",O)},{childGraphName:"MedicalWebPage",label:a("Medical Page",O)},{childGraphName:"ProfilePage",label:a("Profile Page",O)},{childGraphName:"RealEstateListing",label:a("Real Estate Listing",O)},{childGraphName:"SearchResultsPage",label:a("Search Results Page",O)}]};return{childGraphs:t,graphs:e,getSchemaWarnings:l=>{const c=R(),p=[];return!c.liveTags.featured_image_url&&l?.includes("#featured_image_url")&&p.push(a("This schema uses your featured image URL, which hasn't been set yet. It will resolve automatically once you add a featured image.",ar)),p},initSchemaEditor:l=>{const c=wt(),p=JSON.stringify(c.graph);c.graph=E(l,c.graph);const g=JSON.stringify(c.graph);JSON.stringify(p)!==JSON.stringify(g)&&(c.isDirty=!0)},getGraphObject:(l,c=!1)=>!c&&l?.properties?.type!==l.graphName&&t[l.graphName]?t[l.graphName].find(p=>p.childGraphName===l.properties.type):e.find(p=>p.slug===l.slug),getParentGraphName:l=>{let c="";return Object.entries(t).forEach(p=>{const g=p[0];p[1].forEach(b=>{c||l===b.childGraphName&&(c=g)})}),c||l}}},rt=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Un=e=>{try{return new RegExp(e),!0}catch{return!1}},wt=A("SchemaStore",{state:()=>({custom:{graphName:"",schema:""},defaultGraphParent:"",graph:null,graphCardsKey:0,isDirty:!1,isEditingCustomGraph:!1,isEditingCustomTemplate:!1,isEditingDefaultGraph:!1,isEditingGraph:!1,isEditingTemplate:!1,modalOpen:!1,output:"",outputKey:0,tabs:{generator:"schema-templates",templates:"schema-catalog"},templateName:"",previousOutputRequestData:null}),actions:{getCustomObject(e,t){return{id:"#aioseo-custom-"+new Date().getTime().toString(36)+Math.random().toString(36).substring(2,6),custom:!0,graphName:e??this.custom.graphName,schema:t??this.custom.schema}},resetSessionState(){this.custom={graphName:"",schema:""},this.defaultGraphParent="",this.graph=null,this.templateName="",this.isEditingCustomGraph=!1,this.isEditingCustomTemplate=!1,this.isEditingDefaultGraph=!1,this.isEditingGraph=!1,this.isEditingTemplate=!1,this.isDirty=!1},addCustomAsGraph(e){const t=w();e||(e=[this.getCustomObject()]),e.forEach(s=>{t.currentPost.schema.customGraphs.push(s)}),t.currentPost.schema.customGraphs=t.currentPost.schema.customGraphs.sort((s,o)=>s.graphName{o.body.success&&o.body.templates&&this.parseAndUpdateTemplates(o.body.templates)})},addCustomTemplateAsGraph(){const e=w();e.currentPost.schema.customGraphs.push(this.graph),e.currentPost.schema.customGraphs=e.currentPost.schema.customGraphs.sort((t,s)=>t.graphNamet.graphName{o.body.success&&o.body.templates&&this.parseAndUpdateTemplates(o.body.templates)})},addTemplateAsGraph(e,t=""){let o=k().internalOptions.internal.schema.templates;if(t){const l=new RegExp(rt(t).replace(/\s/g,"\\s"),"i");o=o.filter(c=>c?.label?.match(l))}e===void 0&&(e=o.findIndex(l=>l.id===this.graph.id));const r=JSON.parse(JSON.stringify(o[e]));r.id=r.id+new Date().getTime().toString(18);const n=w();r.custom?(n.currentPost.schema.customGraphs.push(r),n.currentPost.schema.customGraphs=n.currentPost.schema.customGraphs.sort((l,c)=>l.graphNamel.graphNames.id===this.graph.id)),t.currentPost.schema.customGraphs.splice(e,1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpen=!1},deleteDefaultGraph(){const e=w();e.currentPost.schema.default.isEnabled=!1,this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpen=!1},deleteGraph(e){const t=w();e===void 0&&(e=t.currentPost.schema.graphs.findIndex(s=>s.id===this.graph.id)),t.currentPost.schema.graphs.splice(e,1),this.resetSessionState(),this.graphCardsKey=this.graphCardsKey+1,this.modalOpen=!1},deleteTemplate(e){const t=this.graph.id,s=k();e===void 0&&(e=s.internalOptions.internal.schema.templates.findIndex(o=>o.id===t)),s.internalOptions.internal.schema.templates.splice(e,1),this.resetSessionState(),this.setTabTemplates("your-templates"),u.delete(d.restUrl("schema/templates")).send({templateId:t}).then(o=>{o.body.success&&o.body.templates&&this.parseAndUpdateTemplates(o.body.templates)})},editCustomGraph({customGraphIndex:e}){const t=w(),s=JSON.parse(JSON.stringify(t.currentPost.schema.customGraphs[e]));this.graph=s,this.isEditingCustomGraph=!0,this.tabs.generator="custom-schema",this.modalOpen=!0},editDefaultGraph({parentGraphName:e}){this.defaultGraphParent=e;const t=w();t.currentPost.schema.default.data[e]&&(this.graph=t.currentPost.schema.default.data[e]),this.isEditingDefaultGraph=!0,this.tabs.generator="schema-templates",this.modalOpen=!0},async editGraph({graphIndex:e}){const t=w(),s=JSON.parse(JSON.stringify(t.currentPost.schema.graphs[e]));this.graph=s,this.isEditingGraph=!0,this.tabs.generator="schema-templates",this.modalOpen=!0,await et(),this.isDirty=!1},async editTemplate(e,t=""){let o=k().internalOptions.internal.schema.templates;if(t){const n=new RegExp(rt(t).replace(/\s/g,"\\s"),"i");o=o.filter(l=>l.label.match(n))}const r=JSON.parse(JSON.stringify(o[e]));if(this.graph=r,r.custom)this.templateName=this.graphName,this.isEditingCustomTemplate=!0,this.tabs.generator="custom-schema";else{const n=new RegExp(`^${this.graph.graphName} -`,"i"),l=this.graph.label.replace(n,"");this.templateName=l,this.isEditingTemplate=!0}await et(),this.isDirty=!1},updateCustomGraph(){const e=w(),t=e.currentPost.schema.customGraphs.findIndex(s=>s.id===this.graph.id);t!==-1&&(e.currentPost.schema.customGraphs[t]=this.graph,e.currentPost.schema.customGraphs=e.currentPost.schema.customGraphs.sort((s,o)=>s.graphNames.id===this.graph.id);t!==-1&&(e.currentPost.schema.graphs[t]=this.graph,e.currentPost.schema.graphs=e.currentPost.schema.graphs.sort((s,o)=>s.graphName{if(r.body.success&&r.body.output){let n=null;try{n=JSON.parse(r.body.output)}catch{return}if(r.body.output=JSON.stringify(n,null," ").trim(),r.body.output===this.output)return;this.output=r.body.output,this.outputKey=this.outputKey+1}}))},updateTemplate(){this.graph.label=this.graph.graphName+" - "+this.templateName;const e=JSON.parse(JSON.stringify(this.graph)),t=k(),s=t.internalOptions.internal.schema.templates.findIndex(o=>o.id===this.graph.id);s!==-1&&(t.internalOptions.internal.schema.templates[s]=this.graph,this.resetSessionState(),this.setTabTemplates("your-templates"),u.put(d.restUrl("schema/templates")).send({template:e}).then(o=>{o.body.success&&o.body.templates&&this.parseAndUpdateTemplates(o.body.templates)}))},parseAndUpdateTemplates(e){e=e.map(s=>(typeof s!="string"||(s=JSON.parse(s)),s)),e=e.sort((s,o)=>{const r=s.custom?0:1;return s.graphName{const e=T();return(e.aioseo?.user?.locale||e.aioseoBrokenLinkChecker?.user?.locale||"en-US").replace("_","-")},Ft={d:e=>Y(e.getDate()),D:e=>Ht(e).substr(0,3),j:e=>e.getDate(),l:e=>Ht(e),N:e=>e.getDay()||7,S:e=>nr(e.getDate()),w:e=>e.getDay(),z:e=>{const t=e.getFullYear(),s=e.getMonth(),o=e.getDate();return Math.floor((Date.UTC(t,s,o)-Date.UTC(t,0,1))/864e5)},W:e=>Kt(e)[1],F:e=>Gt(e),m:e=>Y(e.getMonth()+1),M:e=>Gt(e).substr(0,3),n:e=>e.getMonth()+1,t:e=>new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),L:e=>new Date(e.getFullYear(),1,29).getDate()===29?1:0,o:e=>Kt(e)[0],Y:e=>{let t=e.getFullYear();return 0>t&&(t="-"+("000"+Math.abs(t)).slice(-4)),t},y:e=>{let t=e.getFullYear();return 0<=t?("0"+t).slice(-2):(t=Math.abs(t),-+("0"+t).slice(-2))},a:e=>12>e.getHours()?"am":"pm",A:e=>12>e.getHours()?"AM":"PM",B:e=>((+e+36e5)%864e5/86400).toFixed(0),g:e=>e.getHours()%12||12,G:e=>e.getHours(),h:e=>Y(e.getHours()%12||12),H:e=>Y(e.getHours()),i:e=>Y(e.getMinutes()),s:e=>Y(e.getSeconds()),u:()=>"000000",v:e=>lr(e.getMilliseconds()),e:()=>0,I:e=>e.getTimezoneOffset()===rr(e)[0]?0:1,O:e=>qt(-e.getTimezoneOffset(),!1),P:e=>qt(-e.getTimezoneOffset(),!0),T:e=>e.toLocaleString("en",{year:"numeric",timeZoneName:"long"}).replace(/[^A-Z]/g,""),Z:e=>e.getTimezoneOffset()*-60,c:e=>qe(e,"Y-m-d\\TH:i:sP"),r:e=>qe(e,"D, d M Y H:i:s O"),U:e=>e.getTime()/1e3|0},Ht=e=>e.toLocaleString(Os(),{weekday:"long"}),Gt=e=>e.toLocaleString(Os(),{month:"long"}),rr=e=>{const t=e.getFullYear(),s=[0,2,5,9].map(o=>new Date(t,o).getTimezoneOffset());return[Math.max(...s),Math.min(...s)]},nr=e=>{e=e%100;const t=["th","st","nd","rd"];return(10>e||13{const t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));t.setUTCDate(t.getUTCDate()+4-(t.getUTCDay()||7));const s=new Date(Date.UTC(t.getUTCFullYear(),0,1)),o=Math.ceil(((t-s)/864e5+1)/7);return[t.getUTCFullYear(),o]},ir=e=>Object.prototype.toString.call(e)==="[object Date]",qt=(e,t)=>{const s=0>e?"-":"+";e=Math.abs(e);const o=Y(e/60|0),r=Y(e%60);return s+o+(t?":":"")+r},Y=e=>(10>e?"0":"")+e,lr=e=>(10>e?"00":100>e?"0":"")+e,qe=(e,t)=>{if(!(!ir(e)||typeof t!="string"))return t.split("").reduce((s,o,r,n)=>(o==="\\"?s+=n.splice(r+1,1):o in Ft?s+=Ft[o](e):s+=o,s),"")},We=A("SearchStatisticsStore",{state:()=>({isConnected:!1,hasInitialized:!1,latestAvailableDate:null,unverifiedSite:!1,authedSite:null,quotaExceeded:{},rolling:null,sitemapsWithErrors:[],range:{start:null,end:null,compareStart:null,compareEnd:null},loading:{seoStatistics:!1,keywords:!1,contentRankings:!1,postDetailSeoStatistics:!1,postDetailKeywords:!1},data:{seoStatistics:{statistics:{clicks:0,impressions:0,ctr:0,position:0,keywords:0,difference:{clicks:0,impressions:0,ctr:0,position:0}},intervals:[],pages:{topPages:{rows:[]},topWinning:{rows:[]},topLosing:{rows:[]},paginated:{rows:[],totals:{page:0,pages:0,total:0}}},timelineMarkers:{}},keywords:{distribution:[],distributionIntervals:[],topWinning:[],topLosing:[],topKeywords:[],paginated:{rows:[],totals:{page:0,pages:0,total:0}}},contentRankings:{paginated:{rows:[],totals:{page:0,pages:0,total:0}}},postDetail:{postId:0,seoStatistics:{intervals:[],statistics:{clicks:0,impressions:0,ctr:0,position:0,keywords:0,difference:{clicks:0,impressions:0,ctr:0,position:0}},timelineMarkers:{}},keywords:{paginated:{rows:[],totals:{page:0,pages:0,total:0}}}}},shouldShowSampleReports:!1}),actions:{getAuthUrl({returnTo:e}){return u.get(d.restUrl("search-statistics/url/auth")).query({returnTo:e}).then(t=>t.body.url)},getReauthUrl({returnTo:e}){return u.get(d.restUrl("search-statistics/url/reauth")).query({returnTo:e}).then(t=>t.body.url)},deleteAuth(){return u.delete(d.restUrl("search-statistics/auth")).send().then(e=>(e.body.success===!0&&(this.isConnected=!1),e.body))},async setDateRange(e,t=!0){const s=As();if(this.range={start:qe(e.dateRange[0],"Y-m-d"),end:qe(e.dateRange[1],"Y-m-d")},this.rolling=e.rolling,t){const o=[()=>this.updateSeoStatistics({filter:"all",searchTerm:""}),()=>this.updateKeywords({filter:"all",searchTerm:""}),()=>this.updateContentRankings({searchTerm:""}),()=>s.maybeUpdateKeywords(),()=>s.maybeUpdateGroups()];await Promise.all(o.map(r=>r()))}},loadInitialData(){this.hasInitialized||(this.hasInitialized=!0,this.data.seoStatistics?.statistics?.impressions||this.updateSeoStatistics({filter:"all",searchTerm:""}),this.data.keywords?.paginated?.rows?.length||this.updateKeywords({filter:"all",searchTerm:""}),this.data.contentRankings?.paginated?.totals?.total||this.updateContentRankings({searchTerm:""}))},updateSeoStatistics(e){return this.loading.seoStatistics=!0,u.get(d.restUrl("search-statistics/stats/seo-statistics")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,...e}).then(t=>{t.body.success&&(this.range=t.body.range,this.data.seoStatistics=t.body.data)}).catch(t=>{t.response&&t.response.body&&(t.response.body.range&&(this.range=t.response.body.range),t.response.body.success===!1&&(this.data.seoStatistics=!1))}).finally(()=>{this.loading.seoStatistics=!1})},updateKeywords(e){return this.loading.keywords=!0,u.get(d.restUrl("search-statistics/stats/keywords")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,...e}).then(t=>{t.body.success&&(this.range=t.body.range,this.data.keywords=t.body.data)}).catch(t=>{t.response&&t.response.body&&(t.response.body.range&&(this.range=t.response.body.range),t.response.body.success===!1&&(this.data.keywords=!1))}).finally(()=>{this.loading.keywords=!1})},updateContentRankings(e){return this.loading.contentRankings=!0,u.get(d.restUrl("search-statistics/stats/content-rankings")).query({endDate:this.latestAvailableDate,...e}).then(t=>{t.body.success&&(this.data.contentRankings=t.body.data)}).catch(t=>{t.response&&t.response.body&&t.response.body.success===!1&&(this.data.contentRankings=!1)}).finally(()=>{this.loading.contentRankings=!1})},getInspectionResult({paths:e,force:t}){return u.get(d.restUrl("search-statistics/inspection-result")).query({"paths[]":e,force:t??!1}).then(s=>(this.quotaExceeded.urlInspection=s.body.quotaExceeded,s.body.data)).catch(s=>{throw s})},getPagesByKeywords(e={}){const t=e.keywords;return u.post(d.restUrl("search-statistics/stats/keywords/posts")).send({limit:e.limit,offset:e.offset,startDate:this.range.start,endDate:this.range.end,keywords:t}).then(s=>s.body?.data?.[t[0]].paginated||{}).catch(s=>{throw s})},getPostDetail(e){return u.get(d.restUrl("search-statistics/post-detail")).query({startDate:this.range.start,endDate:this.range.end,postId:e}).then(t=>t)},getPostDetailFocusKeywordTrend({focusKeyword:e}){return u.get(d.restUrl("search-statistics/post-detail/focus-keyword")).query({startDate:this.range.start,endDate:this.range.end,postId:this.data.postDetail.postId,focusKeyword:e}).then(t=>t)},updatePostDetailSeoStatistics(e){return this.loading.postDetailSeoStatistics=!0,u.get(d.restUrl("search-statistics/post-detail/seo-statistics")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,postId:this.data.postDetail.postId,...e}).then(t=>{t.body.success&&(this.data.postDetail.seoStatistics=t.body.data)}).finally(()=>{this.loading.postDetailSeoStatistics=!1})},updatePostDetailKeywords(e){return this.loading.postDetailKeywords=!0,u.get(d.restUrl("search-statistics/post-detail/keywords")).query({startDate:this.range.start,endDate:this.range.end,rolling:this.rolling,postId:this.data.postDetail.postId,...e}).then(t=>{t.body.success&&(this.data.postDetail.keywords=t.body.data)}).finally(()=>{this.loading.postDetailKeywords=!1})},getPageSpeed(e){return u.get(d.restUrl("search-statistics/pagespeed")).query(e).then(t=>t)},deleteSitemap({sitemap:e}){return u.post(d.restUrl("search-statistics/sitemap/delete")).send({sitemap:e}).then(t=>{k().updateOption("internalOptions",{groups:["internal","searchStatistics"],key:"sitemap",value:t.body.data.internalOptions}),this.sitemapsWithErrors=t.body.data.sitemapsWithErrors})},ignoreSitemap({sitemap:e}){return u.post(d.restUrl("search-statistics/sitemap/ignore")).send({sitemap:e}).then(t=>{k().updateOption("internalOptions",{groups:["internal","searchStatistics"],key:"sitemap",value:t.body.data.internalOptions}),this.sitemapsWithErrors=t.body.data.sitemapsWithErrors})},updateSeoRevision(e){const t=this.data.postDetail.seoStatistics.timelineMarkers;Object.keys(t).forEach(s=>{t[s].forEach((o,r)=>{o.type==="aioseoRevision"&&(t[s][r].revisions=t[s][r].revisions.map(n=>n.id===e[0].id?e[0]:n))})}),this.data.postDetail.seoStatistics.timelineMarkers=t},deleteSeoRevision(e){const t=this.data.postDetail.seoStatistics.timelineMarkers;Object.keys(t).forEach(s=>{t[s].forEach((o,r)=>{o.type==="aioseoRevision"&&(t[s][r].revisions=t[s][r].revisions.filter(n=>n.id!==e.id))})}),this.data.postDetail.seoStatistics.timelineMarkers=t},showSampleReports(){this.shouldShowSampleReports=!0}}}),K=A("SensitiveOptionsStore",{state:()=>({hasLicenseKey:!1,hasNetworkLicenseKey:!1,hasConnectLicenseKey:!1,hasAiAccessToken:!1,hasSemrushAccessToken:!1,hasSemrushRefreshToken:!1,hasSearchStatisticsProfileKey:!1,hasSearchStatisticsProfileToken:!1,hasSearchStatisticsTrustToken:!1,hasSiteAnalysisConnectToken:!1,hasConnectKey:!1,hasConnectToken:!1})}),cr=A("SeoChecklistStore",{state:()=>({items:[],rows:[],loading:!1,error:null,filters:[],expandedItems:{},dismissedItems:[],totals:{total:0,pages:1,page:1},overallCompletedCount:0,overallTotalCount:0,totalCompleted:0,totalIncomplete:0,actionLoading:{}}),getters:{completedItems:e=>e.rows.filter(t=>t.completed),pendingItems:e=>e.rows.filter(t=>!t.completed&&!e.dismissedItems.includes(t.name)),progressPercentage:e=>e.overallTotalCount===0?0:Math.round(e.overallCompletedCount/e.overallTotalCount*100),completedCount:e=>e.overallCompletedCount,totalCount:e=>e.overallTotalCount,remainingMessage(){const e=this.totalCount-this.completedCount;return e===0?"SEO checklist complete!":`${e} task${e===1?"":"s"} away from SEO checklist complete.`},itemsByPriority:e=>({high:e.rows.filter(t=>t.priority==="high"),medium:e.rows.filter(t=>t.priority==="medium"),optional:e.rows.filter(t=>t.priority==="optional")})},actions:{fetchChecks({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n,additionalFilters:l}){return u.post(d.restUrl("seo-checklist/fetch")).send({orderBy:e,orderDir:t,limit:s,offset:o,searchTerm:r,filter:n,additionalFilters:l}).then(c=>{this.filters=c.body.filters,this.rows=c.body.rows,this.totals=c.body.totals,c.body.completedCount!==void 0&&(this.overallCompletedCount=c.body.completedCount),c.body.totalCount!==void 0&&(this.overallTotalCount=c.body.totalCount),c.body.completedCount!==void 0&&c.body.totalCount!==void 0&&(this.totalCompleted=c.body.completedCount,this.totalIncomplete=c.body.totalCount-c.body.completedCount)})},async completeItem(e){this.actionLoading[e]=!0;try{return(await u.post(d.restUrl("seo-checklist/complete")).send({check:e})).body.success}catch(t){return this.error="Failed to complete item",console.error("Failed to complete item:",t),!1}finally{delete this.actionLoading[e]}},async doAction(e,t){this.actionLoading[e]=!0;try{return(await u.post(d.restUrl("seo-checklist/action")).send({check:e,callback:t})).body.success}catch(s){return this.error=`Failed to execute action: ${t}`,console.error("Failed to execute action:",s),!1}finally{delete this.actionLoading[e]}},async dismissItem(e){this.actionLoading[e]=!0;try{return(await u.post(d.restUrl("seo-checklist/complete")).send({check:e})).body.success?(this.dismissedItems.includes(e)||this.dismissedItems.push(e),this.rows=this.rows.filter(s=>s.name!==e),!0):!1}catch(t){return this.error="Failed to dismiss item",console.error("Failed to dismiss item:",t),!1}finally{delete this.actionLoading[e]}},async uncompleteItem(e){this.actionLoading[e]=!0;try{if((await u.post(d.restUrl("seo-checklist/uncomplete")).send({check:e})).body.success){const s=this.rows.find(o=>o.name===e);return s&&(s.completed=!1),!0}return!1}catch(t){return this.error="Failed to uncomplete item",console.error("Failed to uncomplete item:",t),!1}finally{delete this.actionLoading[e]}},async bulkCompleteItems(e){if(!e.length)return!1;try{return(await u.post(d.restUrl("seo-checklist/bulk-complete")).send({checks:e})).body.success}catch(t){return this.error="Failed to complete items",console.error("Failed to bulk complete items:",t),!1}},async bulkUncompleteItems(e){if(!e.length)return!1;try{return(await u.post(d.restUrl("seo-checklist/bulk-uncomplete")).send({checks:e})).body.success}catch(t){return this.error="Failed to uncomplete items",console.error("Failed to bulk uncomplete items:",t),!1}},restoreItem(e){const t=this.dismissedItems.indexOf(e);-1{const t=e.find(s=>0{if(!ur([...e]))return e;const s=[],o=[...e];for(;o.length&&!(t&&s.length===t);){const{...r}=o.shift();r.headings?.length&&o.unshift(...r.headings),r.headings=[],s.push(r)}return s},Nn=(e,t=0)=>(e=Is([...e]),e.forEach((s,o)=>{const r=t+o+1;s.editedOrder=r}),e.sort((s,o)=>s.editedOrder-o.editedOrder)),$n=A("SeoPreviewStore",{getters:{richResults(){const e=wt(),t=gr();let s=Nt((Is(t?.headings)||[])?.map(o=>o?.content||""));return(!Array.isArray(s)||!s.length)&&(s=[]),{anchorLinks:s.filter(o=>!!o),reviewSnippet:this.extractReviewSnippet(e.output),faq:this.extractFaq(e.output)}}},actions:{extractReviewSnippet(e){let t={};const s=["Movie","Product","SoftwareApplication","Car","ProductReview"];for(const o of s){const r=Rt(o,e);if(r){const n=r?.aggregateRating||null,l=r?.offers||null,c=Nt(Array.isArray(l)?ms(l,"price"):[]);let p=[];if(r?.review)if(Array.isArray(r?.review))p=r.review.map(g=>{const b=Array.isArray(g?.positiveNotes?.itemListElement)?g.positiveNotes.itemListElement.map(C=>C.name):[],v=Array.isArray(g?.negativeNotes?.itemListElement)?g.negativeNotes.itemListElement.map(C=>C.name):[];return b.concat(v)}).flat();else{const g=Array.isArray(r.review.positiveNotes?.itemListElement)?r.review.positiveNotes.itemListElement.map(v=>v.name):[],b=Array.isArray(r.review.negativeNotes?.itemListElement)?r.review.negativeNotes.itemListElement.map(v=>v.name):[];p=g.concat(b)}c.sort((g,b)=>g-b),t={...n&&{bestRating:r.aggregateRating.bestRating??null,ratingValue:r.aggregateRating.ratingValue??null,reviewCount:r.aggregateRating.reviewCount??null,ratingCount:r.aggregateRating.ratingCount??null},...l&&{priceCurrency:l[0]?.priceCurrency??l.priceCurrency??null,price:c[0]??l.price??null,priceFrom:c[0]??null,priceTo:c[c.length-1]??null},prosConsNotes:p};break}}return t},extractFaq(e){const t=Rt("FAQPage",e);return t?.mainEntity?Object.values(t.mainEntity).map(s=>({question:s?.name,answer:s?.acceptedAnswer?.text})):{}}}}),dr=A("SeoRevisionsStore",{state:()=>({items:[],currentUser:{avatar:null,display_name:null},itemFrom:{},itemTo:{},itemContext:"",noteMaxLength:0,itemsLimit:0,itemsTotalCount:0,seoRevisionsDiff:[],seoRevisionsDiffCache:{},modalOpenSidebar:!1,error:null,capability:"aioseo_page_seo_revisions_settings"}),getters:{hasPermission:e=>it(e.capability),hasDiff(){return 0e).length:!0}},actions:{updateState(e=null){for(const t in e||{})this[t]=e[t]},delete(e){return u.delete(d.restUrl(`seo-revisions/${e}`)).then(t=>(this.itemsTotalCount=t.body.itemsTotalCount,t))},fetch(e={},t=!1){const s=w();return u.get(d.restUrl("seo-revisions/"+s.currentPost.context+"/"+s.currentPost.id)).query(e).then(o=>{if(this.itemsTotalCount=o.body.itemsTotalCount,t)for(const r of o.body.items)this.items.push(r);else this.items=o.body.items;return o})},update({id:e,payload:t}){return u.post(d.restUrl(`seo-revisions/${e}/`)).send(t).then(s=>s)},restore({id:e}){return u.post(d.restUrl(`seo-revisions/restore/${e}/`)).then(t=>t)},fetchDiff(e){const t=e.fromId+"_"+e.toId;return new Promise(s=>{this.seoRevisionsDiffCache[t]?(this.seoRevisionsDiff=this.seoRevisionsDiffCache[t],s({})):u.get(d.restUrl("seo-revisions/diff")).query(e).then(o=>{this.seoRevisionsDiff=o.body.diff,this.seoRevisionsDiffCache[t]=o.body.diff,s(o)})})}}}),xs=A("SettingsStore",{state:()=>({settings:{},metaBoxTabs:{mainSidebar:{},main:"general",modal:"general",social:"facebook",socialModal:"facebook",linkAssistant:"inbound-internal"},modals:{aiGenerator:!1},userProfile:{}}),actions:{closeCard(e){this.settings.toggledCards[e]=!1},changeTabSettings({setting:e,value:t}){this.metaBoxTabs[e]=t},setModalState({modalName:e,value:t}){this.modals[e]=t},toggleCard({slug:e,shouldSave:t}){this.settings.toggledCards[e]=!this.settings.toggledCards[e],t&&u.post(d.restUrl("settings/toggle-card")).send({card:e}).then(()=>{})},toggleRadio({slug:e,value:t}){this.settings.toggledRadio[e]=t,u.post(d.restUrl("settings/toggle-radio")).send({radio:e,value:t}).then(()=>{})},dismissAlert(e){this.settings.dismissedAlerts[e]=!0,u.post(d.restUrl("settings/dismiss-alert")).send({alert:e}).then(()=>{})},changeItemsPerPage({slug:e,value:t}){return this.settings.tablePagination[e]=t,u.post(d.restUrl("settings/items-per-page")).send({table:e,value:t}).then(()=>{})},changeTab({slug:e,value:t}){this.settings.internalTabs[e]=t},hideUpgradeBar(){return this.settings.showUpgradeBar=!1,u.post(d.restUrl("settings/hide-upgrade-bar")).send({}).then(()=>{})},hideSetupWizard(){return this.settings.showSetupWizard=!1,u.post(d.restUrl("settings/hide-setup-wizard")).send({}).then(()=>{})},changeSemrushCountry({value:e}){return this.settings.semrushCountry=e,u.post(d.restUrl("settings/semrush-country")).send({value:e}).then(()=>{})}}}),pr=A("SetupWizardStore",{state:()=>({currentStage:"welcome",stages:["import","category","additional-information","features","search-appearance","smart-recommendations","search-console","license-key"],importers:[],category:{category:"blog",categoryOther:null,siteTitle:"",metaDescription:""},additionalInformation:{siteRepresents:"organization",person:null,organizationName:null,orgnaizationDescription:null,organizationLogo:null,personName:null,personLogo:null,phone:null,socialShareImage:null,social:{profiles:{sameUsername:{enable:!0,username:null,included:["facebookPageUrl","twitterUrl","pinterestUrl","instagramUrl","youtubeUrl","linkedinUrl"]},urls:{facebookPageUrl:null,twitterUrl:null,instagramUrl:null,pinterestUrl:null,youtubeUrl:null,linkedinUrl:null,tumblrUrl:null,yelpPageUrl:null,soundCloudUrl:null,wikipediaUrl:null,myspaceUrl:null,googlePlacesUrl:null,wordPressUrl:null}}}},features:[],searchAppearance:{underConstruction:!1,postTypes:{postTypes:{all:!0,included:["post","page","attachment","product"]}},multipleAuthors:!0,redirectAttachmentPages:!0,emailReports:!0},smartRecommendations:{accountInfo:null,usageTracking:!0},licenseKey:null,showUsageTrackingModal:!1}),getters:{shouldShowImportStep:()=>T().aioseo.importers.filter(t=>t.canImport).length,getNextLink:e=>{const t={name:e.stages[0]},s=e.stages.findIndex(o=>o===e.currentStage);return s===-1||(t.name=e.stages[s+1]?e.stages[s+1]:"success"),t},getPrevLink:e=>{const t={name:e.stages[0]},s=e.stages.findIndex(o=>o===e.currentStage);return s===-1||(t.name=e.stages[s-1]?e.stages[s-1]:"welcome"),t},getCurrentStageCount:e=>{const t=e.stages.findIndex(s=>s===e.currentStage);return t===-1?e.currentStage==="success"?e.getTotalStageCount:0:t+1},getTotalStageCount:e=>e.stages.length},actions:{saveWizard(e){const t=T(),s={...this.$state};return s.showUsageTrackingModal=!1,u.post(d.restUrl("wizard")).send({section:e,wizard:s,network:t.aioseo.data.isNetworkAdmin}).then(o=>{if(o.body.options){const r=X(),n=k();n.options=o.body.options,r.updateOriginalOptions("options",o.body.options)}})},loadState(e){Object.keys(e).forEach(t=>{this[t]=e[t]})}}}),R=A("TagsStore",{state:()=>({tags:[],context:{},liveTags:{post_title:null,post_content:null,post_excerpt:null,taxonomy_title:null,taxonomy_description:null,custom_field:[],featured_image_url:null,permalink:null,attachment_caption:null,attachment_description:null,alt_tag:null,categories:null,woocommerce_brand:null,woocommerce_sku:null,woocommerce_price:null},permalinkSlug:null}),actions:{getTags(){return u.get(d.restUrl("tags")).then(e=>{this.tags=e.body.tags})},updateTaxonomyTitle(e){this.liveTags.taxonomy_title=e},updateTaxonomyDescription(e){this.liveTags.taxonomy_description=e},updatePermalink(e){this.liveTags.permalink=e},updatePostTitle(e){this.liveTags.post_title=e},updatePostContent(e){this.liveTags.post_content=e},updatePostExcerpt(e){this.liveTags.post_excerpt=e},updateAttachmentCaption(e){this.liveTags.attachment_caption=e},updateAttachmentDescription(e){this.liveTags.attachment_description=e},updateAltTag(e){this.liveTags.alt_tag=e},updateCategories(e){this.liveTags.categories=e},updateFeaturedImageUrl(e){if(this.liveTags.featured_image_url=e,!e){const t=this.tags.find(s=>s.id==="featured_image_url");t&&(t.value="")}},updateWooCommerceBrand(e){this.liveTags.woocommerce_brand=e},updateWooCommerceSku(e){this.liveTags.woocommerce_sku=e},updateWooCommercePrice(e){this.liveTags.woocommerce_price=e},updatePermalinkSlug(e){this.permalinkSlug=e}}}),Mn=A("ToolsStore",{actions:{emailDebugInfo(e){return u.post(d.restUrl("email-debug-info")).send({email:e})},doTask({action:e,data:t,siteId:s}){const o=T();return u.post(d.restUrl("settings/do-task")).send({action:e,data:t,siteId:s,network:o.aioseo.data.isNetworkAdmin}).then(r=>{if(!r?.statusCode||r.statusCode===400)return Promise.reject(new Error(`Task ${e} could not be completed.`))})},uploadFile({file:e,filename:t,siteId:s}){return u.post(d.restUrl(`settings/import/${s||""}`)).attach("file",e,t).then(o=>{if(o.body.license&&!s){const n=De();n.license=o.body.license,n.clearLicenseNotices()}const r=k();return r.options=o.body.options,o})},exportSettings(e){return u.post(d.restUrl("settings/export")).send(e)},exportContent(e){return u.post(d.restUrl("settings/export-content")).send(e)},resetSettings({payload:e,siteId:t}){return u.post(d.restUrl("reset-settings")).send({settings:e,siteId:t})},importPlugins(e){return u.post(d.restUrl("settings/import-plugins")).send(e)}}}),_n=A("TruSeoHighlighterStore",{state:()=>({allowScrolling:!1,allowHighlighting:!0,dispatchAnnotations:window?.wp?.data?.dispatch("core/annotations")||null,enabled:!0,highlightAnalyzer:null,highlightMarks:[],highlightPopover:{},source:"aioseo-tru-seo-highlighter",wpBodyContentObserver:null}),getters:{highlightAnalysis(){const t=w().currentPost?.page_analysis?.analysis||{};return(Object.values(t).flat().find(o=>!!o[this.highlightAnalyzer])||{})[this.highlightAnalyzer]||{}},highlightAnalyzerHasError(){return!!this.highlightAnalysis?.error},highlightSentences(){let e=[];return Array.isArray(this.highlightAnalysis?.highlightSentences)&&(e=this.highlightAnalysis.highlightSentences.flat().map(t=>(t=t.replace(/&[a-zA-Z0-9#]{2,};$/,""),t=t.replace(/]*>/gi,` `),t=lo(t),Xs(t))).filter(t=>!!t.trim())),e.length?e:null},activeMark(){return this.highlightMarks.length?this.highlightMarks.find(e=>e.active&&e.node):null}},actions:{clearHighlightPopover(){this.highlightPopover?.observer&&this.highlightPopover.observer.disconnect(),this.highlightPopover?.node&&this.highlightPopover.node.remove(),this.highlightPopover?.app&&this.highlightPopover.app.unmount(),this.highlightPopover={}},clearAnnotations(){if(typeof this.dispatchAnnotations?.__experimentalRemoveAnnotationsBySource=="function"&&this.dispatchAnnotations.__experimentalRemoveAnnotationsBySource(this.source),typeof window?.tinymce?.editors=="object")for(const e of window.tinymce.editors){const t=e.selection.win.getSelection(),s=Object.values(e.annotator.getAll(this.source)).flat();for(const o of Object.values(s))e.undoManager.ignore(()=>{t.selectAllChildren(o),t.setPosition(o,0),e.annotator.remove(this.source)})}this.highlightMarks=[]},clearAll(){this.clearHighlightPopover(),this.clearAnnotations()},sanitizeHighlightMarks(){this.highlightMarks=this.highlightMarks.filter(e=>!!e.node),this.highlightMarks.length&&!this.highlightMarks.find(e=>!!e.active)&&(this.highlightMarks[0].active=!0)},toggleHighlightAnalyzer(e){if(this.allowScrolling=!0,this.highlightAnalyzer===e)return this.highlightAnalyzer=null,!1;this.highlightAnalyzer=null,et().then(()=>{this.highlightAnalyzer=e})}}}),hr=A("WritingAssistantSettings",{state:()=>({seoBoost:{isLoggedIn:!1,loginUrl:"",userOptions:{},countries:{},languages:{},searchEngines:{}},updating:{userOptions:!1}}),getters:{loading:e=>e.updating.userOptions,getCountriesOptions:e=>{const t=e.seoBoost?.countries||[],s=e.seoBoost?.searchEngines||[];if(!t||!s)return[];const o=[];return Object.keys(t).forEach(function(r){o.push({label:t[r]+" ("+s[r]+")",value:r})}),o},userCountryOption:e=>e.getCountriesOptions.find(t=>t.value===e.seoBoost.userOptions.country)||[],getLanguagesOptions:e=>{const t=e.seoBoost?.languages||[];if(!t)return[];const s=[];return Object.keys(t).forEach(function(o){s.push({label:t[o],value:o})}),s},userLanguageOption:e=>e.getLanguagesOptions.find(t=>t.value===e.seoBoost.userOptions.language)||[]},actions:{setUserLoggedIn(e){this.seoBoost.isLoggedIn=e,this.refreshUserOptions()},disconnect(){u.post(d.restUrl("writing-assistant/disconnect")).send().then(e=>{e.body.success&&(this.seoBoost.isLoggedIn=!1)})},hookSaveUserOptions(){window.aioseoBus.$on("saving-changes",()=>{this.saveUserOptions()})},saveUserOptions(){this.seoBoost.isLoggedIn&&u.post(d.restUrl("writing-assistant/user-options")).send({country:this.seoBoost.userOptions.country,language:this.seoBoost.userOptions.language}).then(e=>{if(!e.body.success)throw new Error(e.body.message)})},getCountryLabel(e){return this.getCountriesOptions.find(t=>t.value.toUpperCase()===e.toUpperCase())?.label||""},getLanguageLabel(e){return this.getLanguagesOptions.find(t=>t.value===e)?.label||""},refreshUserOptions(){this.updating.userOptions||(this.updating.userOptions=!0,u.get("/writing-assistant/user-options").then(e=>{e.body?.error||(this.seoBoost.userOptions=e.body||{}),this.updating.userOptions=!1}))}}}),gr=A("TableOfContentsStore",{state:()=>({clientIds:[]}),getters:{headings:e=>{if(!window.wp?.data?.select)return[];const t=[];return e.clientIds.forEach(s=>{const o=window.wp.data.select("core/block-editor")?.getBlockAttributes(s);o?.headings&&t.push(...o.headings)}),t}},actions:{addClientId(e){this.clientIds.includes(e)||this.clientIds.push(e)},removeClientId(e){this.clientIds=this.clientIds.filter(t=>t!==e)}}});function Wt(e,t,s,o){if(typeof e[s]=="number"){if(o==="asc")return e[s]-t[s];if(o==="desc")return t[s]-e[s]}if(typeof e[s]=="string"){if(o==="asc")return e[s].localeCompare(t[s],"en",{sensitivity:"base"});if(o==="desc")return t[s].localeCompare(e[s],"en",{sensitivity:"base"})}return 0}const mr=e=>e.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&"),z="all-in-one-seo-pack",Bn=A("WritingAssistantStore",{state:()=>({loaded:!1,keywordText:"",report:{},contentAnalysis:{},analyzingContent:!1,error:null,processing:!1,polling:!1,postId:0,progress:{percent:0,text:""},progressRunning:!1,sortFilters:{optimizationWizard:{slug:"importance",sortDir:"desc",perPage:10,page:1,search:""},competitors:{slug:"googlePosition",sortDir:"asc",perPage:10,page:1,search:""}},seoBoost:{isLoggedIn:!1,loginUrl:""},userInfo:{},updating:{userInfo:!1,reportHistory:!1},reportHistory:[]}),getters:{isProcessing:e=>e.report?.uuid&&!e.error?parseInt(e.report?.progress)!==100:e.processing,processDone:e=>parseInt(e.report?.progress)===100,getCompetitors:e=>e.report.competitors.competitors||[],getCompetitorsSearched:e=>{const t=e.sortFilters.competitors.search.toLowerCase();return e.getCompetitors.filter(s=>s.url.toLowerCase().includes(t)||s.title.toLowerCase().includes(t))},getCompetitorsPaged:e=>{const t=(e.sortFilters.competitors.page-1)*e.sortFilters.competitors.perPage,s=t+e.sortFilters.competitors.perPage;return e.getCompetitorsSearched.slice(t,s)},getCompetitorsPages:e=>Math.ceil(e.getCompetitorsSearched.length/e.sortFilters.competitors.perPage),getKeywordCompetitorsSummary:e=>e.report.competitors.summary||[],getKeywords:e=>e.report.keywords||[],getKeywordsSearched:e=>{const t=e.sortFilters.optimizationWizard.search.toLowerCase();return e.getKeywords.filter(s=>s.text.toLowerCase().includes(t))},getKeywordsPaged:e=>{const t=(e.sortFilters.optimizationWizard.page-1)*e.sortFilters.optimizationWizard.perPage,s=t+e.sortFilters.optimizationWizard.perPage;return e.getKeywordsSearched.slice(t,s)},getKeywordsPages:e=>Math.ceil(e.getKeywordsSearched.length/e.sortFilters.optimizationWizard.perPage),getContentAnalysis:e=>e.contentAnalysis||[],hasReport:e=>e.report&&parseInt(e.report?.progress)===100},actions:{processKeyword({keyword:e,country:t,language:s}){this.processing||(this.processing=!0,this.setReportProgress(0),this.error=null,u.post("/writing-assistant/process").send({postId:this.postId,keyword:e,country:t,language:s}).then(o=>{if(o.body.success===!1){this.processing=!1,this.error=o.body.error;return}this.keywordText=e,this.setReportProgress(5,a("processing keyword",z)+"..."),this.resetTables(),this.pollKeyword()}))},pollKeyword(){this.processing=!0,this.polling=!0,this.error=null,u.get("/writing-assistant/keyword/"+this.postId).then(e=>{if(e.body?.success===!1){this.processing=!1,this.polling=!1,this.error=e.body.error,this.report={};return}if(this.startReportProgress(e.body.progress),parseInt(e.body.progress)===100){this.updateUserInfo(),this.updateReportHistory(),this.report=e.body||[],setTimeout(()=>{this.polling=!1,this.processing=!1,window.aioseoBus.$emit("writingAssistantAnalyzeContent")},2e3);return}setTimeout(()=>{this.pollKeyword()},8e3)})},openReport(e,t,s){this.processKeyword({keyword:e,country:t,language:s})},async analyzeContent(e){return this.analyzingContent?Promise.resolve():(this.analyzingContent=!0,u.post("/writing-assistant/content-analysis").send({title:gt(),description:us(),content:e,postId:this.postId}).then(t=>{this.analyzingContent=!1,this.contentAnalysis=t.body||{}}))},async countContentKeywords(e){return!e||!this.getKeywords.length||(e=e.replace(/(<([^>]+)>)/gi," "),this.getKeywords.forEach(t=>{t.contentCount=e.match(new RegExp("\\b"+mr(t.text)+"\\b","gmi"))?.length||0}),this.sortFilters.optimizationWizard.slug==="contentCount"&&this.doOptimizationWizardSort({slug:this.sortFilters.optimizationWizard.slug,order:this.sortFilters.optimizationWizard.sortDir})),Promise.resolve()},doOptimizationWizardSort(e){let t=e?.order||"asc";!e?.order&&e.slug===this.sortFilters.optimizationWizard.slug&&(t=this.sortFilters.optimizationWizard.sortDir==="asc"?"desc":"asc"),this.sortFilters.optimizationWizard.slug=e.slug,this.sortFilters.optimizationWizard.sortDir=t,this.getKeywords.sort((s,o)=>Wt(s,o,this.sortFilters.optimizationWizard.slug,this.sortFilters.optimizationWizard.sortDir))},doOptimizationWizardPerPage(e){this.sortFilters.optimizationWizard.page=1,this.sortFilters.optimizationWizard.perPage=e},doOptimizationWizardSearch(e){this.sortFilters.optimizationWizard.page=1,this.sortFilters.optimizationWizard.search=e},doCompetitorSort(e){let t="asc";e.slug===this.sortFilters.competitors.slug&&(t=this.sortFilters.competitors.sortDir==="asc"?"desc":"asc"),this.sortFilters.competitors.slug=e.slug,this.sortFilters.competitors.sortDir=t,this.getCompetitors.sort((s,o)=>Wt(s,o,this.sortFilters.competitors.slug,this.sortFilters.competitors.sortDir))},doCompetitorPerPage(e){this.sortFilters.competitors.page=1,this.sortFilters.competitors.perPage=e},doCompetitorSearch(e){this.sortFilters.competitors.page=1,this.sortFilters.competitors.search=e},newReport(){this.report={},this.contentAnalysis={},this.error=null},updateUserInfo(){this.updating.userInfo||(this.updating.userInfo=!0,u.get("/writing-assistant/user-info").then(e=>{e.body?.error||(this.userInfo=e.body||{}),this.updating.userInfo=!1}))},updateReportHistory(){this.updating.reportHistory||(this.updating.reportHistory=!0,u.get("/writing-assistant/report-history").then(e=>{e.body?.error||(this.reportHistory=e.body||{}),this.updating.reportHistory=!1}))},setUserLoggedIn(e){this.seoBoost.isLoggedIn=e,e&&(this.updateUserInfo(),this.isProcessing&&this.pollKeyword())},async startReportProgress(e){if(this.progressRunning)return;this.progressRunning=!0;const t=(r,n)=>Math.floor(Math.random()*(n-r+1)+r),s=[{percent:t(5,10),duration:2e3,text:a("querying search engines",z)+"..."},{percent:t(15,20),duration:5e3,text:a("fetching serps",z)+"..."},{percent:t(25,30),duration:6e3,text:a("analyzing serps",z)+"..."},{percent:t(35,40),duration:1e4,text:a("fetching competitor data",z)+"..."},{percent:t(45,50),duration:7e3,text:a("fetching keywords data",z)+"..."},{percent:t(55,60),duration:7e3,text:a("calculating keywords heading presence",z)+"..."},{percent:t(65,70),duration:7e3,text:a("calculating keywords use suggestions",z)+"..."},{percent:t(75,80),duration:7e3,text:a("calculating keywords importance",z)+"..."},{percent:t(85,90),duration:7e3,text:a("fetching keywords examples",z)+"..."},{percent:100,duration:1e3,text:a("fetching report",z)+"..."}];let o=0;for(const r of s.filter(n=>n.percent>=e))await new Promise(n=>{setTimeout(()=>{r.percent===100&&(r.percent=97,this.progressRunning=!1),this.setReportProgress(r.percent,r.text),e!==100&&u.post("/writing-assistant/set-report-progress").send({postId:this.postId,progress:r.percent}).then(l=>l.body),n()},o),o=r.duration})},setReportProgress(e,t="",s=0){setTimeout(()=>{this.progress.percent=e,this.progress.text=t},s)},resetTables(){this.sortFilters.optimizationWizard={slug:"importance",sortDir:"desc",perPage:10,page:1,search:""},this.sortFilters.competitors={slug:"googlePosition",sortDir:"asc",perPage:10,page:1,search:""}}}});M.extend(Gs);M.extend(Ks);M.extend(qs);M.extend(Ws);M.extend(js);const jt="all-in-one-seo-pack",zn=A("SemrushStore",{state:()=>({results:[],error:null}),getters:{expired:()=>{const e=k();if(!e.internalOptions.integrations.semrush.expires)return!0;const t=M(parseInt(e.internalOptions.integrations.semrush.expires*1e3,10));return!M().isBefore(t)},hasValidTokens:e=>{const t=K();return!e.expired&&t.hasSemrushAccessToken&&t.hasSemrushRefreshToken}},actions:{getKeyphrases(e){this.error=null;const t=w();return u.post(d.restUrl("integration/semrush/keyphrases")).send({keyphrase:t.currentPost.keyphrases.focus.keyphrase,database:e}).then(s=>{if(s.body.keyphrases.status===403){this.error=s.body.keyphrases.error;return}this.results=s.body.keyphrases.data.rows}).catch(s=>{if(this.results=[],!s?.response?.body?.message&&!s?.response?.message){this.error=a("An unknown error occurred, please try again later.",jt);return}this.error=s?.response?.body?.message||s?.response?.message})},authenticate(e){return this.error=null,u.post(d.restUrl("integration/semrush/authenticate")).send({code:e}).then(t=>{const s=k();s.updateOption("internalOptions",{groups:["integrations"],key:"semrush",value:t.body.semrush},{root:!0}),s.internalOptions.integrations.semrush=t.body.semrush}).catch(t=>{if(!t?.response?.body?.message){this.error=a("An unknown error occurred, please try again later.",jt);return}this.error=t.response.body.message})},refresh(){return u.post(d.restUrl("integration/semrush/refresh")).then(e=>{const t=k();t.updateOption("internalOptions",{groups:["integrations"],key:"semrush",value:e.body.semrush},{root:!0}),t.internalOptions.integrations.semrush=e.body.semrush}).catch(e=>{const t=k();t.updateOption("internalOptions",{groups:["integrations"],key:"semrush",value:""},{root:!0}),t.internalOptions.integrations.semrush=""})}}}),fr=A("WpCodeStore",{state:()=>({snippets:[],pluginInstalled:!1,pluginActive:!1,pluginNeedsUpdate:!1,ctaUrl:""}),getters:{getSnippets:e=>e.snippets},actions:{loadSnippets(){return u.post(d.restUrl("integration/wpcode/snippets")).send().then(e=>{e.body.snippets&&(this.snippets=e.body.snippets),this.pluginInstalled=e.body.pluginInstalled,this.pluginActive=e.body.pluginActive,this.pluginNeedsUpdate=e.body.pluginNeedsUpdate})}}}),V=zs();let Yt=!1;const br=(e,t=null,s=()=>{})=>{yr(e,t);const o=T();if(o.loaded)return V;const r=JSON.parse(JSON.stringify(window.aioseo||{})),n=ze(),l=_o(),c=Bo(),p=bt(),g=Vo(),b=Jo(),v=X(),C=Zo(),y=yt(),x=Qo(),D=As(),W=De(),ie=Es(),L=er(),j=Cs(),Z=he(),U=k(),kt=sr(),Je=w(),Re=vt(),Pt=We(),Tt=cr(),At=dr(),Ue=xs(),Et=R(),Ct=fr(),Ot=hr(),_s={sites:r.data?.network?.sites,activeSites:r.data?.network?.activeSites};U.dynamicOptions=E({...U.dynamicOptions},{...r.dynamicOptions||{}}),U.internalOptions=E({...U.internalOptions},{...r.internalOptions||{}}),U.options=E({...U.options},{...r.options||{}}),U.internalNetworkOptions=E({...U.internalNetworkOptions},{...r.internalNetworkOptions||{}}),U.networkOptions=E({...U.networkOptions},{...r.networkOptions||{}});const It=K();return It.$state=E({...It.$state},{...r.sensitiveOptions||{}}),n.addons=E([...n.addons],[...r.addons||[]]),l.$state=E({...l.$state},{...r.aiAssistant||{}}),c.$state=E({...c.$state},{...r.aiImageGenerator||{}}),p.$state=E({...p.$state},{...r.ai||{}}),g.$state=E({...g.$state},{...r.analyzer||{}}),b.backups=E([...b.backups],[...r.backups||[]]),b.networkBackups=E({...b.networkBackups},{...r.data?.network?.backups||{}}),C.$state=E({...C.$state},{...r.helpPanel||{}}),y.$state=E({...y.$state},{...r.indexNow||{}}),x.$state=E({...x.$state},{...r.indexStatus||{}}),D.$state=E({...D.$state},{...r.keywordRankTracker||{}}),W.license=E({...W.license},{...r.license||{}}),ie.$state=E({...ie.$state},{...r.linkAssistant||{}}),L.$state=E({...L.$state},{...r.localBusiness||{}}),j.networkData=E({...j.networkData},{..._s}),Z.$state=E({...Z.$state},{...r.notifications||{}}),kt.plugins=E({...kt.plugins},{...r.plugins||{}}),Je.currentPost=E({...Je.currentPost},{...r?.redirects?.currentPost},{...r.currentPost||{}}),Re.$state=E({...Re.$state},{...r.redirects||{}}),Pt.$state=E({...Pt.$state},{...r.searchStatistics||{}}),r.seoChecklist&&(Tt.overallTotalCount=r.seoChecklist.length,Tt.overallCompletedCount=r.seoChecklist.filter(Le=>Le.completed).length),At.$state=E({...At.$state},{...r.seoRevisions||{}}),Ue.settings=E({...Ue.settings},{...r.settings||{}}),Ue.userProfile=E({...Ue.userProfile},{...r.userProfile||{}}),Et.$state=E({...Et.$state},{...r.tags||{}}),Ot.$state=E({...Ot.$state},{...r.writingAssistantSettings||{}}),r.integrations?.wpcode&&(Ct.$state=E({...Ct.$state},{...r.integrations.wpcode||{}})),s(r),delete r.addons,delete r.ai,delete r.aiAssistant,delete r.aiImageGenerator,delete r.analyzer,delete r.backups,delete r.currentPost,delete r.dynamicOptions,delete r.helpPanel,delete r.indexNow,delete r.internalNetworkOptions,delete r.internalOptions,delete r.keywordRankTracker,delete r.license,delete r.linkAssistant,delete r.networkOptions,delete r.notifications,delete r.options,delete r.plugins,delete r.redirects,delete r.searchStatistics,delete r.sensitiveOptions,delete r.seoChecklist,delete r.seoRevisions,delete r.settings,delete r.tags,delete r.userProfile,r.publicPath="/",r.translations={},o.aioseo=E({...o.aioseo},{...r||{}}),v.updateOriginalOptions("options",U.options),v.updateOriginalOptions("dynamicOptions",U.dynamicOptions),v.updateOriginalOptions("networkOptions",U.networkOptions),Re?.options&&v.updateOriginalOptions("redirectOptions",Re.options),v.updateOriginalOptions("indexNowOptions",y.options),y.options.indexNow.apiKey||v.disableDirtyCheck("indexNowOptions"),o.loaded=!0,Yt||(Yt=!0,window.addEventListener("beforeunload",Le=>{typeof window.aioseoPageBuilderHasUnsavedChanges=="function"&&window.aioseoPageBuilderHasUnsavedChanges()||(v.isDirty||Je.isDirty)&&(Le.preventDefault(),Le.returnValue=!0)})),V},yr=(e,t=null)=>(t&&V.use(({store:s})=>{s.$router=$e(t)}),e?(e.use(V),V):(Fs(V),V)),Fn=(e,t,s="")=>{Object.keys(t).forEach(o=>{const r=t[o];o==="Index"&&(o=""),e.component(`${s}${o}`,r)})},Hn=e=>{if(!e)return"";if(e=e.trim().replace(" ","%20"),e=e.replace(/[^a-z0-9-~+_.?#=!&;,/:%@$|*'()[\]\\x80-\\xff]/gi,""),e==="")return e;if(e.toLowerCase().startsWith("mailto:")||["%0d","%0a","%0D","%0A"].forEach(s=>{e=e.replace(new RegExp(s,"g"),"")}),e=e.replace(";//","://"),e.includes("[")||e.includes("]")){const t=new URL(e);let s="";t.protocol?s+=t.protocol+"//":e[0]==="/"&&(s+="//"),t.username&&(s+=t.username),t.password&&(s+=":"+t.password),(t.username||t.password)&&(s+="@"),t.hostname&&(s+=t.hostname),t.port&&(s+=":"+t.port);const o=e.replace(s,""),r=o.replace("[","%5B").replace("]","%5D");e=e.replace(o,r)}return e},Gn=e=>{if(6>e.length||e.indexOf("@",1)===-1)return!1;const t=e.split("@"),s=t[0],o=t[1];if(!/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-]+$/.test(s)||/\.\./.test(o)||o.trim().replace(/^\./,"").replace(/\.$/,"")!==o.trim())return!1;const n=o.split(".");if(2>n.length)return!1;const l=/^[a-z0-9-]+$/i;for(let c=0;c(e=parseFloat(e).toFixed(t),Number(e).toLocaleString("en")),wr=(e,t=1)=>{const s=[{value:1,symbol:""},{value:1e3,symbol:"K"},{value:1e6,symbol:"M"},{value:1e9,symbol:"B"},{value:1e12,symbol:"t"},{value:1e15,symbol:"q"},{value:1e18,symbol:"Q"}],o=/\.0+$|(\.\d*[1-9])0+$/,r=s.slice().reverse().find(function(n){return e>=n.value});return r?(e/r.value).toFixed(t).replace(o,"$1")+r.symbol:"0"},Ds=(e,t)=>{let s=500;const o=t-e;return 500>=o||(s=o/10,1e3>s&&(s=1e3),3500Ys(e,t,o||Ds(0,t),"easeInOutQuad",r=>s instanceof Function?s(r.toFixed(0)):s=r.toFixed(0)),Kn={numberFormat:vr,compactNumber:wr,getDuration:Ds,animateNumbers:Sr},qn=(e,t)=>{const s=document.createElement("style");s.innerHTML=`@keyframes ${t} { from { opacity: 0.99; } to { opacity: 1; } } ${e} { animation-duration: 0.001s; animation-name: ${t}; }`,document.head.appendChild(s)},G=e=>{const t=ze();return t.addons.length?t.addons.find(s=>e===s.sku):null},kr=e=>{const t=G(e);return t&&t.isActive},Pr=e=>{const t=G(e);return t&&t.installed},Tr=e=>{const t=G(e);return!t||t.requiresUpgrade},Ar=e=>{const t=G(e);return t&&!t.isActive},Rs=e=>{const t=G(e);return t&&t.installed&&!t.isActive&&t.canActivate},Us=e=>{const t=G(e);return t&&!t.installed&&t.canInstall},Er=e=>Us(e)||Rs(e),Cr=e=>{const t=G(e);return t&&t.canUpdate},Or=e=>{const t=G(e);return t?t.currentLevels.map(s=>Zt(s)):null},Ir=e=>{const t=G(e);return t&&t.hasMinimumVersion},Wn={canActivate:Ar,currentPlans:Or,getAddon:G,hasMinimumVersion:Ir,isActive:kr,isInstalled:Pr,requiresUpgrade:Tr,userCanActivate:Rs,userCanInstall:Us,userCanInstallOrActivate:Er,userCanUpdate:Cr},Ls=e=>(e||document.location.search).replace(/(^\?)/,"").split("&").map((function(t){return t=t.split("="),this[t[0]]=t[1],this}).bind({}))[0],jn=(e,t)=>{t=t||document.location.href;const s=t.split("#"),o=s[0].split("?");if(2>o.length)return t;const r=encodeURIComponent(e)+"=",n=o[1].split(/[&;]/g);for(let p=n.length;0{const s=new URL(window.location.href),o=s.searchParams;o.delete(e),o.append(e,t),s.search=o.toString(),window.history.replaceState(null,null,s.toString())},xr=(e,t=null)=>{try{e=JSON.parse(e)}catch{e=t}return e},Vt={individual:0,business:1,agency:2,basic:3,plus:4,pro:5,elite:6},St=(e="")=>{const t=k(),s=T(),o=K(),r=s.aioseo.data.isNetworkLicensed&&(s.aioseo.data.isNetworkAdmin||!o.hasLicenseKey)?t.internalNetworkOptions.internal.license?.features||[]:t.internalOptions.internal.license?.features||[];let n=xr(r,[]);return e&&(n=n[e]||[]),n},Dr=(e,t=null)=>{const s=St("core");for(const o in s)if(e===o&&!t||e===o&&s[o].find(r=>r===t||-1{const s=St("addons");for(const o in s)if(e===o&&s[o].includes(t))return!0;return!1},Ur=e=>{const t=k(),s=T(),o=K(),r=s.aioseo.data.isNetworkLicensed&&(s.aioseo.data.isNetworkAdmin||!o.hasLicenseKey)?t.internalNetworkOptions.internal.license?.level:t.internalOptions.internal.license?.level;return r?Vt[r]>=Vt[e]:!1},Lr=(e,t="")=>{const s=[];T().aioseo.features.forEach(n=>{n.section===e&&(t&&n.feature!==t||s.push(Zt(n.license_level)))});const r=["Basic","Plus","Pro","Elite"];return s.sort((n,l)=>r.indexOf(n)-r.indexOf(l)),[...new Set(s)]},Vn={getFeatures:St,getPlansForFeature:Lr,hasAddonFeature:Rr,hasCoreFeature:Dr,hasMinimumLevel:Ur},ue="all-in-one-seo-pack",Nr=e=>{const t=R();if(!t.tags.length)return[];const s=t.context[e];if(!s)return t.tags.filter(p=>!p.context||p.context.includes("all"));const o=[];let r=[];if(s.forEach(p=>{t.tags.filter(b=>b.id===p).forEach(b=>{if(b.context){if(!b.context.includes("all")&&!b.context.includes(e))return;o.push(b.id)}b&&!b.deprecated&&r.push({...b})})}),o.length){const p=[];r.forEach((g,b)=>{o.includes(g.id)&&!g.context&&p.push(b)});for(let g=p.length-1;0<=g;g--)r.splice(p[g],1)}const n=T(),l=n.aioseo.postData.postTypes.find(p=>p.name+"Title"===e||p.name+"Description"===e||"breadcrumbs-post-type-"+p.name===e);if(l&&(r=r.map(p=>(p.name=p.name.replace("Post",l.singular),p.description=p.description.replace("page/post",l.singular.toLowerCase()),p)),l.name==="product")){const p=r.findIndex(g=>g.id==="post_excerpt");p!==-1&&(r[p].name=a("Product Short Description",ue),r[p].description=a("A short description for your product.",ue),r[p].value=a("Sample short description for your product.",ue))}const c=n.aioseo.postData.taxonomies.find(p=>p.name+"Title"===e||p.name+"Description"===e||"breadcrumbs-taxonomy-"+p.name===e);return c&&(r=r.map(p=>(p.name=p.name.replace("Category",c.singular),p))),(e==="dateTitle"||e==="dateDescription")&&(r=r.map(p=>(p.name=p.name.replace("Category",a("Archive",ue)),p.name=p.name.replace("Post",a("Archive",ue)),p.description=p.description.replace("page/post",a("archive",ue)),p))),r.sort((p,g)=>p.nameg.name?1:0)},$r=(e,t,s)=>{switch(s){case"title":switch(e){case"taxonomies":return["taxonomy_title","separator_sa","site_title"];case"archives":switch(t){case"author":return["author_name","separator_sa","site_title"];case"search":return["search_term","separator_sa","site_title"];default:return["archive_title","separator_sa","site_title"]}default:return["post_title","separator_sa","site_title"]}case"description":switch(e){case"taxonomies":return["taxonomy_title","separator_sa","taxonomy_description"];case"attachment":return["attachment_caption","separator_sa","site_title"];case"archives":switch(t){case"author":return["author_name","separator_sa","site_title"];case"search":return["search_term","separator_sa","site_title"];default:return["archive_title","separator_sa","site_title"]}default:return t==="attachment"?["attachment_caption","separator_sa","site_title"]:t==="product"?["post_excerpt","post_content"]:["post_excerpt","post_content","separator_sa"]}}},Mr=(e,t,s)=>{const o=R();if(!t)return`${e}${s}`;const r=`${t}${s}`;return Object.prototype.hasOwnProperty.call(o.context,r)?r:`${e}${s}`},Jn={context:Nr,getDefaultTags:$r,getTagText:Mr},Zn=function(e,t){if(typeof e!="string")return e;const s=new RegExp("^"+t.replace(/\/$/,""),"i");return e.replace(s,"")};function Qn(e){return M.utc(e).tz(M.tz.guess()).fromNow().replace("a few seconds ago",a("a few seconds ago",i)).replace("a minute ago",a("a minute ago",i)).replace("minutes ago",a("minutes ago",i)).replace("a day ago",a("a day ago",i)).replace("days ago",a("days ago",i)).replace("a month ago",a("a month ago",i)).replace("months ago",a("months ago",i)).replace("a year ago",a("a year ago",i)).replace("years ago",a("years ago",i))}function Xn(e,t="YYYY-MM-DD HH:mm:ss"){return e?M(e).tz(M.tz.guess()).format(t):null}function ei(e){return e?M(e).tz(M.tz.guess()).toDate():null}const ti=e=>{const t=[];let s="",o=!1;for(let r=0;re.map(function(t){return typeof t=="object"?JSON.stringify(Object.values(t)):t}).join(` `).replace(/(^\[)|(\]$)/mg,""),ai=(e,t)=>{const s=new Blob([e]),o=document.createElement("a");o.href=URL.createObjectURL(s),o.download=t,o.click(),URL.revokeObjectURL(o.href)},Ve=()=>document.getElementsByClassName("keyphrase-name"),oi=({postEditorStore:e,truSeo:t,index:s,value:o,onSuccess:r})=>{e.currentPost.keyphrases.additional[s]&&(e.currentPost.keyphrases.additional[s].keyphrase=o,e.currentPost.keyphrases.additional[s].score=0,e.currentPost.loading.additional[s]=!0,e.isDirty=!0,t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),r&&r(s))},ri=({postEditorStore:e,truSeo:t,index:s,onSuccess:o})=>{const r=[...e.currentPost.keyphrases.additional];r.splice(s,1),e.currentPost.keyphrases.additional=[],setTimeout(()=>{e.currentPost.keyphrases.additional=r,e.isDirty=!0,t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),o&&o()},300)},ni=({postEditorStore:e,truSeo:t,screenContext:s,onSuccess:o})=>{const r=e.currentPost.maxAdditionalKeyphrases,n=e.currentPost.keyphrases?.additional?.length||0;if(r<=n)return null;const l=document.getElementsByClassName(`add-keyphrase-${s}-input`);if(!l||!l[0])return null;const c=l[0].querySelector(".medium"),p=c?.value.trim();if(!p)return null;const g={keyphrase:p,score:0},b=e.currentPost.keyphrases.additional.push(g),v=Ve();e.currentPost.loading.additional[0]=!0,c.value="",c.blur(),e.isDirty=!0,v[b]&&v[b].click(),t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost});const C=b-1;return o&&o(C),C},ii=async({postEditorStore:e,truSeo:t,keyphrase:s,onStart:o,onSuccess:r,onMaxReached:n,nextTick:l})=>{const c=e.currentPost.maxAdditionalKeyphrases,p=e.currentPost.keyphrases?.additional?.length||0;if(c<=p)return n&&n(),null;o&&o();const{additional:g}=e.currentPost.keyphrases,b=g.push({keyphrase:s,score:0}),v=Ve();return e.currentPost.keyphrases.additional=g,e.isDirty=!0,await t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),l&&await l(),v[b]&&v[b].click(),r&&r(b),b},li=({postEditorStore:e,keyphrase:t,onSuccess:s,onNotFound:o})=>{const{additional:r}=e.currentPost.keyphrases,n=r.findIndex(c=>c.keyphrase.toLowerCase()===t.toLowerCase());if(n===-1)return o&&o(),!1;const l=Ve();return l[n+1]&&l[n+1].click(),s&&s(n),!0},ci=async({postEditorStore:e,keyphrase:t,onStart:s,onSuccess:o,onNotFound:r,nextTick:n})=>{s&&s();const{additional:l}=e.currentPost.keyphrases,c=l.findIndex(g=>g.keyphrase.toLowerCase()===t.toLowerCase());if(c===-1)return r&&r(),!1;l.splice(c,1),e.currentPost.keyphrases.additional=l;const p=Ve();return p[0]&&p[0].click(),n&&await n(),o&&o(c),!0};let de=!1,N=null,Ns;const je=e=>{Ns(e,N,je)},$s=(e,t,s,o,r,n,l,c,p)=>{let g=50,b=50;{const C=window.outerHeight;g=(window.innerWidth-s)/2,b=(C-50-o)/2}let v=`location=0,status=0,width=${s},height=${o},left=${g},top=${b}`;(t==="_blank"||t==="_self")&&(v=""),(!N||N.closed)&&(N=window.open(e,t,v)),N&&N.focus(),de=window.setInterval(()=>_r(n,l,c,p),500),p&&(Ns=p,window.addEventListener("message",je,!1))},_r=(e,t,s,o=!1)=>{if(o){if(!N){window.removeEventListener("message",je,!1),window.clearInterval(de),s();return}N.closed&&(N=null,window.removeEventListener("message",je,!1),window.clearInterval(de),s());return}let r={};try{r=Ls(N.location.search)}catch{}const n=[];if(e.forEach(l=>{if(r[l]!==void 0&&r[l]){n.push(!0);return}n.push(!1)}),n.every(l=>l))return window.clearInterval(de),t(r).then(()=>{N.close(),N=null,s(!0)});if(!N){window.clearInterval(de),s();return}N.closed&&(N=null,window.clearInterval(de),s())},Ms="https://oauth.semrush.com/auth/login?client_id=aioseo&redirect_uri=https%3A%2F%2Foauth.semrush.com%2Foauth2%2Faioseo%2Fsuccess&ref=2190331110&response_type=code&scope=user.id",Br="https://oauth.semrush.com",ui=({onAuthenticated:e,onClosed:t,onAuthenticationError:s})=>{const o=async l=>{try{await e(l.code)}catch(c){throw s&&s(c),c}},r=l=>{t&&t(l)};$s(Ms,"Semrush Oauth",450,570,!0,["code"],o,r,async(l,c,p)=>{const{data:g,source:b,origin:v}=l;if(!(Br!==v||c!==b)){if(g.type==="semrush:oauth:success"){window.removeEventListener("message",p,!1);let C={};try{const y=new URL(g.url);C=Ls(y.search)}catch{}try{await o(C),c.close(),c=null,r(!0)}catch{c.close(),c=null,r(!1)}}g.type==="semrush:oauth:denied"&&(c.close(),window.removeEventListener("message",p,!1),c=null,r(!1))}})},di=({isConnected:e,hasValidTokens:t,connectUrl:s})=>e?t?null:{type:"semrush_oauth",url:Ms}:{type:"connect",url:s+"&semrush=true"},pi=({url:e,onAuthenticated:t,onClosed:s})=>{$s(e,"Connect with AIOSEO",600,630,!0,["token"],n=>t(n.token),n=>{s&&s(n)})},hi=()=>JSON.parse(JSON.stringify(vo)).map(t=>(t.value==="GB"&&(t.value="UK",t.label="United Kingdom"),t.value==="KR"&&(t.label="South Korea"),t)).filter(t=>wo.includes(t.value.toLowerCase())).map(t=>(t.label=t.label+" - "+t.value.toUpperCase(),t)),gi=e=>!e||typeof e!="string"?[]:e.split(",").map((s,o)=>({x:o,y:parseFloat(s)})),mi=async({semrushStore:e,database:t,focusKeyphrase:s,onStart:o,onSuccess:r,onError:n})=>{if(s){o&&o();try{await e.getKeyphrases(t),r&&r()}catch(l){n&&n(l)}}},zr=e=>{const t=document.getElementsByClassName(`add-focus-keyphrase-${e}-input`);return!t||!t[0]?null:t[0].querySelector(".medium")},fi=({postEditorStore:e,truSeo:t,screenContext:s,onSuccess:o})=>{const r=zr(s);if(!r)return!1;const n=r.value.trim();return n?(e.currentPost.keyphrases.focus={keyphrase:n,score:0,analysis:{}},e.currentPost.loading.focus=!0,r.value="",r.blur(),e.isDirty=!0,t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),o&&o(n),!0):!1},bi=({postEditorStore:e,truSeo:t,value:s,onSuccess:o})=>{e.currentPost.keyphrases.focus.keyphrase=s,e.currentPost.loading.focus=!0,e.isDirty=!0,t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),o&&o(s)},yi=({postEditorStore:e,truSeo:t,onSuccess:s})=>{e.currentPost.keyphrases.focus.keyphrase="",e.isDirty=!0,t.runAnalysis({postId:e.currentPost.id,postData:e.currentPost}),s&&s()},vi=e=>{const t=[];return Object.keys(e).forEach(s=>{s&&(t.push(`User-agent: ${s}`),Object.keys(e[s]).forEach(o=>{const[r,n]=e[s][o].split(":").map(l=>l.trim());t.push(`${r.charAt(0).toUpperCase()+r.slice(1)}: ${n}`)}),t.push(""))}),t.join(`\r `)},wi=e=>{const t={};return e.forEach(s=>{const o=JSON.parse(s);if(!(!o.userAgent||!o.fieldValue)){if(!t[o.userAgent]){t[o.userAgent]=[`${o.directive}: ${o.fieldValue}`];return}t[o.userAgent].push(`${o.directive}: ${o.fieldValue}`)}}),t},Si=e=>{const t=[],s=/^\/.*$/,o=(c,p,g,b,v={})=>{const C=`${b.tableIndex}${b.userAgent}${b.directive}${b.fieldValue}`;return c.find(y=>g==="defaultRuleOverride"&&y.hash===C&&y.message===g)||(c.push({type:p,message:g,hash:C,isNetworkIndex:v.isNetworkIndex,previewIndex:v.previewIndex,sourcePreviewIndex:v?.sourcePreviewIndex||null,conflictingIndex:v?.conflictingIndex||null,duplicateIndex:v?.duplicateIndex||null,equivalentIndex:v?.equivalentIndex||null,overriddenIndex:v?.overriddenIndex||null}),t.push(v?.overriddenIndex||null)),c},r=(c,p)=>c+p;let n=[],l=0;for(const c in e){l=r(l,2);for(const[p,g]of Object.entries(e[c])){const[b,v]=[g.directive,g.fieldValue];if(!b||!v)continue;let C=l;for(let y=parseInt(p)+1;yD.trim());(!y||y.match(s)||x&&!x.match(s))&&(n=o(n,"red","invalidCleanParam",g,{previewIndex:l}))}if(b.match(/^crawl-delay/i)){const y=Number(v);(isNaN(y)||1>y)&&(n=o(n,"red","invalidCrawlDelay",g,{previewIndex:l}))}l=r(l,1)}}if(n.length)throw n;return!0};export{Tn as $,Vn as A,Cs as B,it as C,Yn as D,vt as E,cr as F,yo as G,B as H,H as I,co as J,ao as K,_ as L,Vr as M,Sn as N,ge as O,Ye as P,rt as Q,qe as R,$s as S,q as T,Rn as U,uo as V,Dn as W,mn as X,xn as Y,sr as Z,K as _,Fn as a,ai as a$,Mn as a0,fr as a1,$t as a2,u as a3,ze as a4,re as a5,ei as a6,Xn as a7,Yr as a8,Si as a9,Gn as aA,bn as aB,ti as aC,fn as aD,Hn as aE,ve as aF,Ae as aG,ct as aH,nn as aI,on as aJ,Ie as aK,As as aL,or as aM,Fe as aN,wt as aO,ln as aP,Te as aQ,rn as aR,Zn as aS,Pe as aT,Un as aU,Qo as aV,xe as aW,ke as aX,_o as aY,gt as aZ,yn as a_,ms as aa,Nt as ab,wi as ac,vi as ad,Wr as ae,Zs as af,ro as ag,hs as ah,R as ai,no as aj,io as ak,In as al,An as am,En as an,Bn as ao,hr as ap,hn as aq,Es as ar,kn as as,Jn as at,vn as au,wn as av,Cn as aw,Xt as ax,gn as ay,Mt as az,T as b,si as b0,Zo as b1,ne as b2,sa as b3,tn as b4,ga as b5,Se as b6,en as b7,Xr as b8,sn as b9,Xs as bA,lo as bB,dn as bC,jr as bD,ni as bE,ri as bF,oi as bG,gi as bH,hi as bI,li as bJ,ci as bK,ii as bL,mi as bM,ui as bN,pi as bO,di as bP,yi as bQ,bi as bR,fi as bS,zn as bT,pn as bU,an as ba,J as bb,Nn as bc,gr as bd,Ln as be,Is as bf,qr as bg,Jo as bh,jo as bi,Qn as bj,Zr as bk,Jr as bl,$n as bm,Qr as bn,yr as bo,yt as bp,Xa as bq,ot as br,vo as bs,On as bt,Pn as bu,_n as bv,fs as bw,mt as bx,un as by,cn as bz,d as c,he as d,st as e,go as f,Ls as g,De as h,$ as i,dr as j,qn as k,br as l,ce as m,Kn as n,Qs as o,We as p,xs as q,jn as r,Bo as s,mo as t,w as u,bt as v,pr as w,Wn as x,k as y,Vo as z};