!function(){var t={184:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var r=arguments[e];if(r){var a=typeof r;if("string"===a||"number"===a)t.push(r);else if(Array.isArray(r)){if(r.length){var o=i.apply(null,r);o&&t.push(o)}}else if("object"===a){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){t.push(r.toString());continue}for(var u in r)n.call(r,u)&&r[u]&&t.push(u)}}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(r=function(){return i}.apply(e,[]))||(t.exports=r)}()}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},function(){"use strict";var t={};r.r(t),r.d(t,{deleteSchema:function(){return Wt},refreshResults:function(){return It},resetDirtyMetadata:function(){return D},resetRedirection:function(){return B},saveSchema:function(){return qt},saveTemplate:function(){return $t},schemaUpdated:function(){return Ht},setEditingSchemaId:function(){return Kt},setEditorTab:function(){return Bt},setTemplateTab:function(){return zt},setVersion:function(){return Ot},toggleFrontendScore:function(){return w},toggleIsDiviPageSettingsBarActive:function(){return Et},toggleIsDiviRankMathModalActive:function(){return At},toggleLoaded:function(){return Tt},toggleSchemaEditor:function(){return xt},toggleSchemaTemplates:function(){return Ft},toggleSnippetEditor:function(){return Y},updateAIScore:function(){return Qt},updateAdvancedRobots:function(){return _},updateAnalysisScore:function(){return k},updateAppData:function(){return y},updateAppUi:function(){return b},updateBreadcrumbTitle:function(){return P},updateCanonicalUrl:function(){return S},updateDescription:function(){return N},updateEditSchema:function(){return Vt},updateEditSchemas:function(){return Lt},updateFacebookDescription:function(){return O},updateFacebookHasOverlay:function(){return j},updateFacebookImage:function(){return E},updateFacebookImageID:function(){return A},updateFacebookImageOverlay:function(){return M},updateFacebookTitle:function(){return I},updateFeaturedImage:function(){return x},updateHasRedirect:function(){return z},updateKeywords:function(){return g},updateKeywordsData:function(){return Jt},updatePermalink:function(){return C},updatePillarContent:function(){return v},updatePostID:function(){return R},updatePrimaryTermID:function(){return F},updateRedirection:function(){return H},updateRedirectionItem:function(){return K},updateRobots:function(){return T},updateSchemas:function(){return Gt},updateSelectedKeyword:function(){return Pt},updateSerpDescription:function(){return X},updateSerpSlug:function(){return Q},updateSerpTitle:function(){return J},updateSnippetPreviewType:function(){return Z},updateSocialTab:function(){return Dt},updateTitle:function(){return U},updateTwitterAppCountry:function(){return _t},updateTwitterAppDescription:function(){return dt},updateTwitterAppGoogleplayID:function(){return wt},updateTwitterAppGoogleplayName:function(){return kt},updateTwitterAppGoogleplayUrl:function(){return St},updateTwitterAppIpadID:function(){return bt},updateTwitterAppIpadName:function(){return gt},updateTwitterAppIpadUrl:function(){return vt},updateTwitterAppIphoneID:function(){return mt},updateTwitterAppIphoneName:function(){return ht},updateTwitterAppIphoneUrl:function(){return yt},updateTwitterAuthor:function(){return it},updateTwitterCardType:function(){return et},updateTwitterDescription:function(){return nt},updateTwitterHasOverlay:function(){return ut},updateTwitterImage:function(){return ot},updateTwitterImageID:function(){return at},updateTwitterImageOverlay:function(){return ct},updateTwitterPlayerSize:function(){return lt},updateTwitterPlayerStreamCtype:function(){return ft},updateTwitterPlayerStreamUrl:function(){return pt},updateTwitterPlayerUrl:function(){return st},updateTwitterTitle:function(){return rt},updateTwitterUseFacebook:function(){return tt}});var e={};r.r(e),r.d(e,{appData:function(){return ie},appUi:function(){return le}});var n={};r.r(n),r.d(n,{getAdvancedRobots:function(){return be},getAnalysisScore:function(){return de},getAppData:function(){return pe},getBreadcrumbTitle:function(){return ve},getCanonicalUrl:function(){return ge},getContentAIScore:function(){return Cr},getDescription:function(){return He},getDirtyMetadata:function(){return fe},getEditSchemas:function(){return ir},getEditingSchema:function(){return ar},getEditorTab:function(){return ur},getFacebookAuthor:function(){return je},getFacebookDescription:function(){return Ae},getFacebookHasOverlay:function(){return Ce},getFacebookImage:function(){return Re},getFacebookImageID:function(){return Me},getFacebookImageOverlay:function(){return Ue},getFacebookTitle:function(){return Ee},getFeaturedImage:function(){return Ke},getFeaturedImageHtml:function(){return Be},getKeywords:function(){return me},getKeywordsData:function(){return Rr},getPermalink:function(){return Fe},getPillarContent:function(){return he},getPostID:function(){return Ne},getPreviewSchema:function(){return or},getPrimaryTermID:function(){return ze},getRedirectionID:function(){return Le},getRedirectionItem:function(){return qe},getRedirectionType:function(){return Ge},getRedirectionUrl:function(){return Ve},getRichSnippets:function(){return we},getRobots:function(){return ye},getSchemas:function(){return nr},getSelectedKeyword:function(){return _e},getSerpDescription:function(){return Xe},getSerpSlug:function(){return Qe},getSerpTitle:function(){return Je},getShowScoreFrontend:function(){return ke},getSnippetPreviewType:function(){return Ze},getSocialTab:function(){return Te},getTemplateTab:function(){return cr},getTitle:function(){return xe},getTwitterAppCountry:function(){return Or},getTwitterAppDescription:function(){return gr},getTwitterAppGoogleplayID:function(){return Pr},getTwitterAppGoogleplayName:function(){return Dr},getTwitterAppGoogleplayUrl:function(){return Ir},getTwitterAppIpadID:function(){return Sr},getTwitterAppIpadName:function(){return _r},getTwitterAppIpadUrl:function(){return Tr},getTwitterAppIphoneID:function(){return vr},getTwitterAppIphoneName:function(){return wr},getTwitterAppIphoneUrl:function(){return kr},getTwitterAuthor:function(){return dr},getTwitterCardType:function(){return lr},getTwitterDescription:function(){return fr},getTwitterHasOverlay:function(){return yr},getTwitterImage:function(){return hr},getTwitterImageID:function(){return mr},getTwitterImageOverlay:function(){return br},getTwitterPlayerSize:function(){return Ar},getTwitterPlayerStream:function(){return jr},getTwitterPlayerStreamCtype:function(){return Mr},getTwitterPlayerUrl:function(){return Er},getTwitterTitle:function(){return pr},getTwitterUseFacebook:function(){return sr},hasRedirect:function(){return We},hasSchemaUpdated:function(){return rr},isDiviPageSettingsBarActive:function(){return Ie},isDiviRankMathModalActive:function(){return Oe},isLoaded:function(){return Se},isPro:function(){return De},isRefreshing:function(){return Pe},isSchemaEditorOpen:function(){return tr},isSchemaTemplatesOpen:function(){return er},isSnippetEditorOpen:function(){return Ye}});var i=jQuery,a=r.n(i),o=wp.i18n,u=wp.data,c=wp.element,s=wp.plugins,l=wp.hooks,p=wp.editPost;function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function d(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,m(n.key),n)}}function m(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===f(e)?e:String(e)}var h=new(function(){function t(){var e,r,n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=this,n=null,(r=m(r="map"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n}var e,r,n;return e=t,(r=[{key:"swap",value:function(t,e){var r=this;if(!(t=t||""))return"";var n=new RegExp(/%(([a-z0-9_-]+)\(([^)]*)\)|[^\s]+)%/,"giu");return t.replace(" %page%","").replace("%sep% %sep%","%sep%").replace(n,(function(t){return r.replace(e,t)})).trim()}},{key:"replace",value:function(t,e){var r=e.toLowerCase().slice(1,-1);return["term_description","user_description"].includes(r)?"undefined"!=typeof tinymce&&tinymce.activeEditor&&"rank_math_description_editor"===tinymce.activeEditor.id?tinymce.activeEditor.getContent():a()("#description").val():r.includes("customfield(")?(r=r.replace("customfield(","").replace(")",""))in rankMath.customFields?rankMath.customFields[r]:"":(t=t||this.getMap(),(r="seo_description"===(r="seo_title"===(r=r.includes("(")?r.split("(")[0]:r)?"title":r)?"excerpt":r)in t?t[r]:"")}},{key:"getMap",value:function(){var t=this;return null!==this.map||(this.map={},a().each(rankMath.variables,(function(e,r){e=e.toLowerCase().replace(/%+/g,"").split("(")[0],t.map[e]=r.example}))),this.map}},{key:"setVariable",value:function(t,e){null!==this.map?this.map[t]=e:void 0!==rankMath.variables[t]&&(rankMath.variables[t].example=e)}}])&&d(e.prototype,r),n&&d(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function y(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=(0,l.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=(0,l.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,(0,l.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function b(t,e){return(0,l.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function g(t){return h.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),y("keywords",t,"rank_math_focus_keyword")}function v(t){return y("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function w(t){return y("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function k(t){return y("score",t,"rank_math_seo_score")}function S(t){return y("canonicalUrl",t,"rank_math_canonical_url")}function _(t){return y("advancedRobots",t,"rank_math_advanced_robots")}function T(t){return y("robots",t,"rank_math_robots",Object.keys(t))}function P(t){return y("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function D(){return y("dirtyMetadata",{})}function I(t){return y("facebookTitle",t,"rank_math_facebook_title")}function O(t){return y("facebookDescription",t,"rank_math_facebook_description")}function E(t){return y("facebookImage",t,"rank_math_facebook_image")}function A(t){return y("facebookImageID",t,"rank_math_facebook_image_id")}function j(t){return y("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function M(t){return y("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function R(t){return rankMath.objectID=t,y("postID",t)}function C(t){return y("permalink",t,"permalink")}function U(t){return y("title",t,"rank_math_title")}function N(t){return y("description",t,"rank_math_description")}function x(t){return y("featuredImage",t)}function F(t,e){return y("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function H(t,e){return y(t,e)}function K(t){return b("redirectionItem",t)}function B(){return b("redirectionItem",{})}function z(t){return b("hasRedirect",t)}var L=rankMathAnalyzer,G=lodash,V=document.createElement("div");function q(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),V.innerHTML=t,t=V.textContent,V.textContent=""),t}var W=function(t,e){return t=(t=L.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?(0,G.truncate)(t,{length:e,separator:" "}):t},$=function(t){if((0,G.isEmpty)(t))return"";t=L.Helpers.stripScript(t),t=L.Helpers.stripStyle(t),t=(0,G.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=(0,G.filter)(L.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=(0,G.filter)(e,(function(t){return(0,G.includes)(t.toLowerCase(),r.toLowerCase())}));if(0<n.length)return W(n[0],160)}return W(e[0],160)};function J(t){return t=h.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),b("serpTitle",q(t))}function Q(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),b("serpSlug",t)}function X(t){return t=h.swap(function(t){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=$(e.content),i=(0,G.isUndefined)(r)||(0,G.isEmpty)(r)?n:(0,G.unescape)(r);if(h.setVariable("excerpt",i),h.setVariable("seo_description",i),""!==(t=q((0,l.applyFilters)("rankMath/description",t))))return L.Helpers.cleanText(t);if(!(0,G.isUndefined)(r)&&!(0,G.isEmpty)(r))return L.Helpers.cleanText(r);var a=(0,G.unescape)(rankMath.assessor.serpData.descriptionTemplate);return(0,G.isUndefined)(a)||""===a?n:L.Helpers.cleanText(a)}(t)),rankMathEditor.refresh("description"),b("serpDescription",t)}function Y(t){return b("isSnippetEditorOpen",t)}function Z(t){return b("snippetPreviewType",t)}function tt(t){return y("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function et(t){return y("twitterCardType",t,"rank_math_twitter_card_type")}function rt(t){return y("twitterTitle",t,"rank_math_twitter_title")}function nt(t){return y("twitterDescription",t,"rank_math_twitter_description")}function it(t){return y("twitterAuthor",t,"rank_math_twitter_author")}function at(t){return y("twitterImageID",t,"rank_math_twitter_image_id")}function ot(t){return y("twitterImage",t,"rank_math_twitter_image")}function ut(t){return y("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function ct(t){return y("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function st(t){return y("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function lt(t){return y("twitterPlayerSize",t,"rank_math_twitter_player_size")}function pt(t){return y("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function ft(t){return y("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function dt(t){return y("twitterAppDescription",t,"rank_math_twitter_app_description")}function mt(t){return y("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function ht(t){return y("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function yt(t){return y("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function bt(t){return y("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function gt(t){return y("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function vt(t){return y("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function wt(t){return y("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function kt(t){return y("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function St(t){return y("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function _t(t){return y("twitterAppCountry",t,"rank_math_twitter_app_country")}function Tt(t){return b("isLoaded",t)}function Pt(t){return b("selectedKeyword",t)}function Dt(t){return b("socialTab",t)}function It(){return b("refreshResults",Date.now())}function Ot(){return b("isPro",!0)}function Et(t){return b("isDiviPageSettingsBarActive",t)}function At(t){return b("isDiviRankMathModalActive",t)}var jt=wp.apiFetch,Mt=r.n(jt);function Rt(t){return Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(t)}function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ut(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(r),!0).forEach((function(e){Nt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Nt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Rt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Rt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Rt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function xt(t){return b("isSchemaEditorOpen",t)}function Ft(t){return b("isSchemaTemplatesOpen",t)}function Ht(t){return b("schemaUpdated",t)}function Kt(t){return b("editingSchemaId",t)}function Bt(t){return b("editorTab",t)}function zt(t){return b("templateTab",t)}function Lt(t){return b("editSchemas",t)}function Gt(t){return y("schemas",t)}function Vt(t,e){var r=Ut({},(0,u.select)("rank-math").getEditSchemas());return r[t]=e,b("editSchemas",r)}function qt(t,e){var r=Ut({},(0,u.select)("rank-math").getSchemas());return r[t]=e,y("schemas",r)}function Wt(t){var e=Ut({},(0,u.select)("rank-math").getSchemas());return delete e[t],(0,l.doAction)("rank_math_schema_trash",t),y("schemas",e,"rank_math_delete_"+t,"")}function $t(t,e,r){return Mt()({method:"POST",path:"rankmath/v1/saveTemplate",data:{schema:t,postId:r}}).then((function(r){e({loading:!1,showNotice:!0,postId:r.id}),setTimeout((function(){e({showNotice:!1}),(0,G.get)(rankMath,"isTemplateScreen",!1)&&(document.title=(0,o.__)("Edit Schema","rank-math"),window.history.pushState(null,"",r.link.replace(/&amp;/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function Jt(t){return b("keywordsData",t)}function Qt(t){return y("contentAIScore",t,"rank_math_contentai_score")}function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Yt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Zt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Yt(Object(r),!0).forEach((function(e){te(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function te(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Xt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ee=rankMath.assessor.serpData,re=rankMath.assessor.hasRedirection,ne={postID:null,title:ee.title?ee.title:ee.titleTemplate,description:ee.description,keywords:ee.focusKeywords,pillarContent:ee.pillarContent,featuredImage:"",permalink:!1,primaryTerm:ee.primaryTerm,robots:ee.robots,advancedRobots:ee.advancedRobots,canonicalUrl:ee.canonicalUrl,breadcrumbTitle:ee.breadcrumbTitle,showScoreFrontend:ee.showScoreFrontend,redirectionID:re?(0,G.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:re?(0,G.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:re?(0,G.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:ee.facebookTitle,facebookImage:ee.facebookImage,facebookImageID:ee.facebookImageID,facebookAuthor:ee.facebookAuthor,facebookDescription:ee.facebookDescription,facebookHasOverlay:ee.facebookHasOverlay,facebookImageOverlay:ee.facebookImageOverlay,twitterTitle:ee.twitterTitle,twitterImage:ee.twitterImage,twitterAuthor:ee.twitterAuthor,twitterImageID:ee.twitterImageID,twitterCardType:ee.twitterCardType,twitterUseFacebook:ee.twitterUseFacebook,twitterDescription:ee.twitterDescription,twitterHasOverlay:ee.twitterHasOverlay,twitterImageOverlay:ee.twitterImageOverlay,twitterPlayerUrl:ee.twitterPlayerUrl,twitterPlayerSize:ee.twitterPlayerSize,twitterPlayerStream:ee.twitterPlayerStream,twitterPlayerStreamCtype:ee.twitterPlayerStreamCtype,twitterAppDescription:ee.twitterAppDescription,twitterAppIphoneName:ee.twitterAppIphoneName,twitterAppIphoneID:ee.twitterAppIphoneID,twitterAppIphoneUrl:ee.twitterAppIphoneUrl,twitterAppIpadName:ee.twitterAppIpadName,twitterAppIpadID:ee.twitterAppIpadID,twitterAppIpadUrl:ee.twitterAppIpadUrl,twitterAppGoogleplayName:ee.twitterAppGoogleplayName,twitterAppGoogleplayID:ee.twitterAppGoogleplayID,twitterAppGoogleplayUrl:ee.twitterAppGoogleplayUrl,twitterAppCountry:ee.twitterAppCountry,schemas:(0,G.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function ie(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne,r=arguments.length>1?arguments[1]:void 0,n=Zt({},e.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Zt(Zt({},e),{},{dirtyMetadata:r.value}):Zt(Zt({},e),{},(te(t={},r.key,r.value),te(t,"dirtyMetadata",n),t)):e}function ae(t){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ae(t)}function oe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ue(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?oe(Object(r),!0).forEach((function(e){ce(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):oe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ce(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ae(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ae(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ae(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var se={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!(0,G.isEmpty)((0,G.get)(rankMath.assessor,"redirection.id",""))&&!(0,G.isEmpty)((0,G.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},socialTab:"facebook",editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:(0,G.get)(rankMath,"ca_data",[])};function le(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:se,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?ue(ue({},t),{},ce({},e.key,e.value)):t}function pe(t){return t.appData}function fe(t){return t.appData.dirtyMetadata}function de(t){return t.appData.score}function me(t){return t.appData.keywords}function he(t){return t.appData.pillarContent}function ye(t){return t.appData.robots}function be(t){return t.appData.advancedRobots}function ge(t){return t.appData.canonicalUrl}function ve(t){return t.appData.breadcrumbTitle}function we(t){return"todo"}function ke(t){return t.appData.showScoreFrontend}function Se(t){return t.appUi.isLoaded}function _e(t){return t.appUi.selectedKeyword}function Te(t){return t.appUi.socialTab}function Pe(t){return t.appUi.refreshResults}function De(t){return t.appUi.isPro}function Ie(t){return t.appUi.isDiviPageSettingsBarActive}function Oe(t){return t.appUi.isDiviRankMathModalActive}function Ee(t){return t.appData.facebookTitle}function Ae(t){return t.appData.facebookDescription}function je(t){return t.appData.facebookAuthor}function Me(t){return t.appData.facebookImageID}function Re(t){return t.appData.facebookImage}function Ce(t){return t.appData.facebookHasOverlay}function Ue(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Ne(t){return t.appData.postID}function xe(t){return t.appData.title}function Fe(t){return t.appData.permalink}function He(t){return t.appData.description}function Ke(t){return t.appData.featuredImage}function Be(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function ze(t){return t.appData.primaryTerm}function Le(t){return t.appData.redirectionID}function Ge(t){return t.appData.redirectionType}function Ve(t){return t.appData.redirectionUrl}function qe(t){return t.appUi.redirectionItem}function We(t){return t.appUi.hasRedirect}var $e=wp.url;function Je(t){return q(t.appUi.serpTitle)}function Qe(t){return(0,$e.safeDecodeURIComponent)(t.appUi.serpSlug)}function Xe(t){return t.appUi.serpDescription}function Ye(t){return t.appUi.isSnippetEditorOpen}function Ze(t){return t.appUi.snippetPreviewType}function tr(t){return t.appUi.isSchemaEditorOpen}function er(t){return t.appUi.isSchemaTemplatesOpen}function rr(t){return t.appUi.schemaUpdated}function nr(t){return t.appData.schemas}function ir(t){return t.appUi.editSchemas}function ar(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function or(t){return t.appData.schemas[t.appUi.editingSchemaId]}function ur(t){return t.appUi.editorTab}function cr(t){return t.appUi.templateTab}function sr(t){return t.appData.twitterUseFacebook}function lr(t){return t.appData.twitterCardType}function pr(t){return t.appData.twitterTitle}function fr(t){return t.appData.twitterDescription}function dr(t){return t.appData.twitterAuthor}function mr(t){return t.appData.twitterImageID}function hr(t){return t.appData.twitterImage}function yr(t){return t.appData.twitterHasOverlay}function br(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function gr(t){return t.appData.twitterAppDescription}function vr(t){return t.appData.twitterAppIphoneID}function wr(t){return t.appData.twitterAppIphoneName}function kr(t){return t.appData.twitterAppIphoneUrl}function Sr(t){return t.appData.twitterAppIpadID}function _r(t){return t.appData.twitterAppIpadName}function Tr(t){return t.appData.twitterAppIpadUrl}function Pr(t){return t.appData.twitterAppGoogleplayID}function Dr(t){return t.appData.twitterAppGoogleplayName}function Ir(t){return t.appData.twitterAppGoogleplayUrl}function Or(t){return t.appData.twitterAppCountry}function Er(t){return t.appData.twitterPlayerUrl}function Ar(t){return t.appData.twitterPlayerSize}function jr(t){return t.appData.twitterPlayerStream}function Mr(t){return t.appData.twitterPlayerStreamCtype}function Rr(t){return t.appUi.keywordsData}function Cr(t){return t.appData.contentAIScore}var Ur=(0,u.registerStore)("rank-math",{reducer:(0,u.combineReducers)(e),selectors:n,actions:t});function Nr(){return Ur}var xr={"&amp;":"&","&quot;":'"',"&#39;":"'"},Fr=/&(?:amp|quot|#(0+)?39);/g,Hr=RegExp(Fr.source);var Kr=function(t){return t&&Hr.test(t)?t.replace(Fr,(function(t){return xr[t]||"'"})):t||""};function Br(t){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Br(t)}function zr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Br(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Br(a)?a:String(a)),n)}var i,a}var Lr=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.analyzer=new L.Analyzer({i18n:o,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),(0,l.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),(0,l.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),(0,l.addFilter)("rank_math_sanitize_data","rank-math",this.sanitizeData)}var e,r,n;return e=t,r=[{key:"updateKeywordResult",value:function(t,e){rankMathEditor.resultManager.update(t,{keywordNotUsed:e}),t===this.getSelectedKeyword().toLowerCase()&&(0,u.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||(0,G.isObject)(t)||(0,G.isEmpty)(t)?t:L.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var r=Nr().getState(),n=this.dataCollector.getData(),i=new L.Paper("",{locale:rankMath.localeFull});return i.setTitle(r.appUi.serpTitle),i.setPermalink(n.slug),i.setDescription(r.appUi.serpDescription),i.setUrl(n.permalink),i.setText(Kr((0,l.applyFilters)("rank_math_content",n.content))),i.setKeyword(t),i.setKeywords(e),i.setSchema(r.appData.schemas),(0,G.isUndefined)(n.featuredImage)||(i.setThumbnail(n.featuredImage.source_url),i.setThumbnailAltText(L.Helpers.removeDiacritics(n.featuredImage.alt_text))),(0,G.isEmpty)(r.appData.contentAIScore)&&(0,G.isEmpty)(rankMath.ca_keyword)||i.setContentAI(!0),i}},{key:"registerRefresh",value:function(){var t=this;this.refresh=(0,G.debounce)((function(e){var r=Nr().getState();if(!1!==r.appUi.isLoaded){var n=r.appData.keywords.split(","),i=[];(0,l.doAction)("rank_math_"+e+"_refresh"),n.map((function(e,r){var a=t.getPaper(L.Helpers.removeDiacritics(e),n),o=0===r?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());i.push(t.analyzer.analyzeSome(o,a).then((function(t){rankMathEditor.resultManager.update(a.getKeyword(),t,0===r),0===r&&(0,u.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(a.getKeyword()))}))),Promise.all(i).then((function(){(0,u.dispatch)("rank-math").refreshResults()}))}))}}),500)}},{key:"getSecondaryKeywordTests",value:function(){return["keywordInContent","lengthContent","keywordInSubheadings","keywordDensity","lengthPermalink","linksHasExternals","linksNotAllExternals","linksHasInternal","titleSentiment","titleHasPowerWords","titleHasNumber","contentHasTOC","contentHasShortParagraphs","contentHasAssets"]}},{key:"getPrimaryKeyword",value:function(){var t=Nr().getState().appData.keywords;return L.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Nr().getState(),e=""!==t.appUi.selectedKeyword.data.value?t.appUi.selectedKeyword.data.value:t.appData.keywords.split(",")[0];return L.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return(0,G.intersection)(t,rankMath.assessor.researchesTests)}}],r&&zr(e.prototype,r),n&&zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Gr=Lr;function Vr(t){return Vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vr(t)}function qr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Vr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Vr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Vr(a)?a:String(a)),n)}var i,a}var Wr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rankMath.is_front_page&&((0,l.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),(0,l.addFilter)("rankMath_analysis_contentLength_boundaries","rank-math",this.contentLengthBoundary))}var e,r,n;return e=t,(r=[{key:"contentLength",value:function(t){return{hasScore:t.hasScore,failed:(0,o.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:(0,o.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:(0,o.sprintf)((0,o.__)("Content should be %1$s long.","rank-math"),'<a href="https://rankmath.com/kb/score-100-in-tests/?utm_source=Plugin&utm_campaign=WP#overall-content-length" target="_blank">'+(0,o.__)("300 words","rank-math")+"</a>")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&qr(e.prototype,r),n&&qr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function $r(t){return $r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$r(t)}function Jr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==$r(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$r(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===$r(a)?a:String(a)),n)}var i,a}var Qr=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,r,n;return e=t,(r=[{key:"setup",value:function(t){Nr(),this.resultManager=new L.ResultManager,this.assessor=new Gr(t),new Wr,(0,l.doAction)("rank_math_loaded")}},{key:"refresh",value:function(t){this.assessor.refresh(t)}},{key:"getPrimaryKeyword",value:function(){return this.assessor.getPrimaryKeyword()}},{key:"getSelectedKeyword",value:function(){return this.assessor.getSelectedKeyword()}},{key:"updatePermalink",value:function(t){throw"Implement the function"}},{key:"updatePermalinkSanitize",value:function(t){throw"Implement the function"}}])&&Jr(e.prototype,r),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Xr=function(){return!((0,G.isNil)(window.wp)||(0,G.isNil)(wp.data)||(0,G.isNil)(wp.data.select("core/editor"))||!window.document.body.classList.contains("block-editor-page")||!(0,G.isFunction)(wp.data.select("core/editor").getEditedPostAttribute))};function Yr(t){return Yr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yr(t)}function Zr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zr(Object(r),!0).forEach((function(e){rn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function en(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,nn(n.key),n)}}function rn(t,e,r){return(e=nn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function nn(t){var e=function(t,e){if("object"!==Yr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Yr(e)?e:String(e)}var an=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),rn(this,"initialize",!1),rn(this,"isSavingRedirection",!1),rn(this,"isSavingSchemas",!1),rn(this,"oldSlug",!1),this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.isSavingPost=this.isSavingPost.bind(this),this.getPostAttribute=this.getPostAttribute.bind(this),this.subscribeToGutenberg()}var e,r,n;return e=t,(r=[{key:"collectGutenbergData",value:function(){if(Xr())return this._coreEditorSelect||(this._coreEditorSelect=(0,u.select)("core/editor")),!1===this.oldSlug&&""!==this.getSlug()&&(this.oldSlug=this.getSlug()),{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getPostAttribute("content"),title:this.getPostAttribute("title"),excerpt:this.getPostAttribute("excerpt"),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return this._coreEditorSelect.getCurrentPostId()}},{key:"getPermalink",value:function(){if("auto-draft"===this.getPostAttribute("status"))return"";var t=this.getPostAttribute("generated_slug");return"auto-draft"!==t&&"en"===rankMath.locale||(t=""),(0,$e.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var t=this.getPostAttribute("generated_slug");return"auto-draft"!==t&&"en"===rankMath.locale||(t=""),(0,$e.safeDecodeURIComponent)(this.getPostAttribute("slug")||t)}},{key:"getFeaturedImage",value:function(){var t=this.getPostAttribute("featured_media");if(this.isValidMediaId(t)){var e=(0,u.select)("core").getMedia(t);if(!(0,G.isUndefined)(e))return e}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"getPostAttribute",value:function(t){return Xr()?(this._coreEditorSelect||(this._coreEditorSelect=(0,u.select)("core/editor")),this._coreEditorSelect.getEditedPostAttribute(t)):""}},{key:"subscribeToGutenberg",value:function(){this.subscriber=(0,G.debounce)(this.refresh,500),(0,u.subscribe)(this.subscriber),(0,u.subscribe)(this.isSavingPost)}},{key:"refresh",value:function(){var t=tn({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(t)}},{key:"isSavingPost",value:function(){var t=(0,u.select)("core/editor");if(!t.isAutosavingPost()&&t.isSavingPost()){var e=(0,u.select)("rank-math").getDirtyMetadata();(0,G.isEmpty)(e)||(Mt()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:e,content:this.getPostAttribute("content")}}).then((function(t){(0,l.doAction)("rank_math_metadata_updated",t)})),(0,u.dispatch)("rank-math").resetDirtyMetadata()),"publish"===this.getPostAttribute("status")&&(this.saveRedirection(),this.autoCreateRedirectionNotice()),this.saveSchemas()}}},{key:"saveSchemas",value:function(){var t=this;if(!this.isSavingSchemas){var e=(0,u.select)("rank-math").getSchemas();if(!(0,G.isEmpty)(e)&&(0,u.select)("rank-math").hasSchemaUpdated()){this.isSavingSchemas=!0;var r=(0,u.select)("rank-math").getEditSchemas();Mt()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:e}}).then((function(n){var i=tn({},e),a=tn({},r);(0,G.isEmpty)(n)||(0,G.map)(n,(function(t,e){i["schema-"+t]=tn({},i[e]),a["schema-"+t]=tn({},a[e]),delete i[e],delete a[e]})),(0,u.dispatch)("rank-math").updateSchemas(i),(0,u.dispatch)("rank-math").updateEditSchemas(a),setTimeout((function(){(0,u.dispatch)("rank-math").schemaUpdated(!1),(0,l.doAction)("rank_math_schema_changed"),t.isSavingSchemas=!1}),2e3)}))}}}},{key:"saveRedirection",value:function(){var t=this;if(!this.isSavingRedirection){var e=(0,u.select)("rank-math").getRedirectionItem();if(!(0,G.isEmpty)(e)){this.isSavingRedirection=!0,e.objectID=this.getPostID(),e.redirectionSources=this.getPermalink();var r=(0,u.dispatch)("rank-math"),n=(0,u.dispatch)("core/notices");r.resetRedirection(),Mt()({method:"POST",path:"rankmath/v1/updateRedirection",data:e}).then((function(e){"delete"===e.action?(n.createInfoNotice(e.message,{id:"redirectionNotice"}),r.updateRedirection("redirectionID",0)):"update"===e.action?n.createInfoNotice(e.message,{id:"redirectionNotice"}):"new"===e.action&&(r.updateRedirection("redirectionID",e.id),n.createSuccessNotice(e.message,{id:"redirectionNotice"})),setTimeout((function(){t.isSavingRedirection=!1,n.removeNotice("redirectionNotice")}),2e3)}))}}}},{key:"autoCreateRedirectionNotice",value:function(){if(rankMath.assessor.hasRedirection&&(0,G.get)(rankMath,["assessor","autoCreateRedirection"],!1)&&!(0,u.select)("core/editor").isEditedPostNew()&&!1!==this.oldSlug){var t=this.getSlug();if(this.oldSlug!==t){var e=(0,u.dispatch)("core/notices");this.oldSlug=t,e.createSuccessNotice((0,o.__)("Auto redirection created.","rank-math"),{id:"redirectionAutoCreationNotice"}),setTimeout((function(){e.removeNotice("redirectionAutoCreationNotice")}),2e3)}}}},{key:"handleEditorChange",value:function(t){var e=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if((0,G.isInteger)(t.id))return this.initialize?void(0,G.forEach)(r,(function(r,n){e._data[n]!==t[n]&&e[r](e._data[n])})):(this.initialize=!0,(0,G.forEach)(r,(function(t,r){e[t](e._data[r])})),void rankMathEditor.refresh("init"));(0,u.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){(0,u.dispatch)("rank-math").updatePostID(t),(0,u.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){""!==this.getSlug()&&!1===this.oldSlug&&(this.oldSlug=this.getSlug()),rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){h.setVariable("title",t),h.setVariable("term",t),h.setVariable("author",t),(0,u.dispatch)("rank-math").updateSerpTitle((0,u.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){h.setVariable("excerpt",t),h.setVariable("excerpt_only",t),h.setVariable("wc_shortdesc",t),h.setVariable("seo_description",t),(0,u.dispatch)("rank-math").updateSerpDescription((0,u.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){(0,u.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){(0,u.dispatch)("rank-math").updateSerpDescription((0,u.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&en(e.prototype,r),n&&en(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),on=wp.blocks;function un(t){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(t)}function cn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==un(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===un(a)?a:String(a)),n)}var i,a}var sn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.core=(0,u.select)("core"),this.coreEditor=(0,u.select)("core/editor"),this.reusableBlocks={},this.getContent=this.getContent.bind(this),this.reusableBlockEvent=this.reusableBlockEvent.bind(this),this.init()}var e,r,n;return e=t,r=[{key:"init",value:function(){(0,l.addFilter)("rank_math_content","rank-math",this.getContent,11),(0,u.subscribe)((0,G.debounce)(this.reusableBlockEvent,500))}},{key:"getContent",value:function(t){return(0,G.isEmpty)(this.reusableBlocks)||(0,G.forEach)(this.reusableBlocks,(function(e){(0,G.forEach)(e,(function(e){t+=e}))})),t}},{key:"reusableBlockEvent",value:function(){var t=this,e=this.coreEditor.getPostEdits().blocks;if(!(0,G.isEmpty)(e)){var r=!1;(0,G.forEach)(e,(function(e){if((0,on.isReusableBlock)(e)){var n=e.clientId,i=t.getBlockContent(e.attributes.ref);if((0,G.isUndefined)(t.reusableBlocks[e.attributes.ref])||(0,G.isUndefined)(t.reusableBlocks[e.attributes.ref][n]))return(0,G.isUndefined)(t.reusableBlocks[e.attributes.ref])&&(t.reusableBlocks[e.attributes.ref]={}),t.reusableBlocks[e.attributes.ref][n]=i,void(r=!0);t.reusableBlocks[e.attributes.ref][n].content!==i&&(t.reusableBlocks[e.attributes.ref][n]=i,r=!0)}})),r&&rankMathEditor.refresh("content")}}},{key:"getBlockContent",value:function(t){var e=this.core.getEditedEntityRecord("postType","wp_block",t);if(e&&e.content)return(0,G.isFunction)(e.content)?e.content(e):e.content}}],r&&cn(e.prototype,r),n&&cn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),ln=sn,pn=r(184),fn=r.n(pn);function dn(t){return 100<t?"bad-fk dark":80<t?"good-fk":50<t?"ok-fk":"bad-fk"}var mn=(0,u.withSelect)((function(t){var e=t("rank-math");return{score:e.getAnalysisScore(),isRefreshing:e.isRefreshing()}}))((function(t){var e=t.score;return wp.element.createElement("div",{className:"seo-score "+dn(e)},wp.element.createElement("div",{className:"score-text"},e," / 100"))}));function hn(t){return hn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(t)}function yn(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==hn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===hn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var bn=(0,u.withSelect)((function(t){var e=t("rank-math");return{isLoaded:e.isLoaded(),score:e.getAnalysisScore()}}))((function(t){var e,r=t.isLoaded,n=t.score,i=fn()("rank-math-toolbar-score",(yn(e={},dn(n),!0),yn(e,"loading",!r),e));return wp.element.createElement("div",{className:i},wp.element.createElement("i",{className:"rm-icon rm-icon-rank-math"}),wp.element.createElement(mn,null))})),gn=wp.components,vn=(0,u.withSelect)((function(t){var e=t("rank-math"),r=e.getTwitterUseFacebook()?e.getFacebookTitle():e.getTwitterTitle();return(0,G.isEmpty)(r)&&(r=e.getSerpTitle()),{title:r,permalink:t("core/editor").getPermalink()}}))((function(t){var e=t.title,r=t.permalink,n=encodeURI(r),i=encodeURI(e);return wp.element.createElement(c.Fragment,null,wp.element.createElement("p",null,(0,o.__)("Notify your readers by sharing!","rank-math")),wp.element.createElement("div",{className:"rank-math-social-share-buttons"},wp.element.createElement("div",{className:"rank-math-share-button rm-facebook"},wp.element.createElement("a",{href:"https://www.facebook.com/sharer/sharer.php?u="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(gn.Dashicon,{icon:"facebook-alt"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-twitter"},wp.element.createElement("a",{href:"https://twitter.com/share?url="+n+"&text="+i,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(gn.Dashicon,{icon:"twitter"}))),wp.element.createElement("div",{className:"rank-math-share-button rm-email"},wp.element.createElement("a",{href:"mailto:?subject="+i+"&body="+n,target:"_blank",rel:"noopener noreferrer"},wp.element.createElement(gn.Dashicon,{icon:"email"})))))}));function wn(t){return wn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wn(t)}function kn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==wn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==wn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===wn(a)?a:String(a)),n)}var i,a}function Sn(t,e){return Sn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Sn(t,e)}function _n(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Pn(t);if(e){var i=Pn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===wn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tn(t)}(this,r)}}function Tn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pn(t){return Pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pn(t)}var Dn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Sn(t,e)}(a,t);var e,r,n,i=_n(a);function a(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.apply(this,arguments)).onChange=t.onChange.bind(Tn(t)),t.state={loading:!0,availableTerms:[],selectedTerms:[]},t}return e=a,(r=[{key:"componentDidMount",value:function(){this.fetchTerms()}},{key:"componentWillUnmount",value:function(){(0,G.invoke)(this.fetchRequest,["abort"])}},{key:"componentDidUpdate",value:function(t,e){if(t.selectedTermIds.length<this.props.selectedTermIds.length){var r=(0,G.difference)(this.props.selectedTermIds,t.selectedTermIds)[0];if(!this.termIsAvailable(r))return void this.fetchTerms()}t.selectedTermIds!==this.props.selectedTermIds&&this.updateSelectedTerms(this.state.availableTerms,this.props.selectedTermIds),e.selectedTerms!==this.state.selectedTerms&&this.handleSelectedTermsChange()}},{key:"termIsAvailable",value:function(t){return!!this.state.availableTerms.find((function(e){return e.id===t}))}},{key:"updateSelectedTerms",value:function(t,e){this.setState({selectedTerms:this.filterSelectedTerms(t,e)})}},{key:"handleSelectedTermsChange",value:function(){var t=this.state.selectedTerms,e=this.props.primaryTermID;t.find((function(t){return t.id===e}))||this.onChange(t.length?t[0].id:"")}},{key:"fetchTerms",value:function(){var t=this,e=this.props.taxonomy;e&&(this.fetchRequest=Mt()({path:(0,$e.addQueryArgs)("/wp/v2/".concat(e.rest_base),{per_page:-1,orderby:"count",order:"desc",_fields:"id,name"})}),this.fetchRequest.then((function(e){t.fetchRequest=null,t.setState({loading:!1,availableTerms:e,selectedTerms:t.filterSelectedTerms(e,t.props.selectedTermIds)})}),(function(e){"abort"!==e.statusText&&(t.fetchRequest=null,t.setState({loading:!1}))})))}},{key:"filterSelectedTerms",value:function(t,e){return t.filter((function(t){return e.includes(t.id)}))}},{key:"onChange",value:function(t){(0,u.dispatch)("rank-math").updatePrimaryTermID(t,this.props.taxonomy.slug)}},{key:"shouldComponentUpdate",value:function(t,e){return this.props.selectedTermIds!==t.selectedTermIds||this.props.primaryTermID!==t.primaryTermID||this.state.selectedTerms!==e.selectedTerms}},{key:"render",value:function(){return this.state.selectedTerms.length<2?null:this.state.loading?[wp.element.createElement(gn.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(gn.SelectControl,{label:(0,o.__)("Select Primary Term","rank-math"),value:this.props.primaryTermID,options:this.state.selectedTerms.map((function(t){return{value:t.id,label:(0,G.unescape)(t.name)}})),onChange:this.onChange})}}])&&kn(e.prototype,r),n&&kn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(c.Component);function In(t){return In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},In(t)}function On(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==In(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==In(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===In(a)?a:String(a)),n)}var i,a}function En(t,e){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},En(t,e)}function An(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=jn(t);if(e){var i=jn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===In(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function jn(t){return jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},jn(t)}var Mn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&En(t,e)}(a,t);var e,r,n,i=An(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,r&&On(e.prototype,r),n&&On(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(Dn),Rn=(0,u.withSelect)((function(t,e){var r=e.slug,n=t("core").getTaxonomy(r),i=t("core/editor").getEditedPostAttribute;return{taxonomy:n,selectedTermIds:n?i(n.rest_base):[],primaryTermID:t("rank-math").getPrimaryTermID()}}))(Mn),Cn=function(t){var e=t.TermComponent;return function(t){return!1!==rankMath.assessor.primaryTaxonomy&&t.slug===rankMath.assessor.primaryTaxonomy.name}(t)?wp.element.createElement(c.Fragment,null,wp.element.createElement(e,t),wp.element.createElement(gn.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(Rn,t))):wp.element.createElement(e,t)};function Un(t){return Un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Un(t)}function Nn(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==Un(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Un(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Un(a)?a:String(a)),n)}var i,a}function xn(t,e,r){return e&&Nn(t.prototype,e),r&&Nn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Fn=xn((function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),"post"===rankMath.objectType&&rankMath.postSettings.linkSuggestions){a().fn.extend({insertLink:function(t,e){var r=this[0],n="";if(r.selectionStart||"0"===r.selectionStart){var i=r.selectionStart,a=r.selectionEnd,o=r.scrollTop;n='<a href="'+t+'">'+r.value.substring(i,a)+"</a>",i===a&&(n='<a href="'+t+'">'+e+"</a>"),r.value=r.value.substring(0,i)+n+r.value.substring(a,r.value.length),r.focus(),r.selectionStart=i+n.length,r.selectionEnd=i+n.length,r.scrollTop=o}else n='<a href="'+t+'">'+e+"</a>",r.value+=n,r.focus()}});if("function"==typeof ClipboardJS&&a()(".suggestion-copy").on("click",(function(t){t.preventDefault(),new ClipboardJS(".suggestion-copy");var e=a()(this).parent().next(".suggestion-title"),r=e.html();e.text("Link Copied"),setTimeout((function(){e.html(r)}),1500)})),"object"!==("undefined"==typeof tinymce?"undefined":Un(tinymce)))return!0;var e=null,r=null;a()(".suggestion-insert").on("click",(function(t){t.preventDefault();var n,i,o,c,s=a()(this);if(s.hasClass("clicked"))return!0;if(null!==tinymce.activeEditor&&!0!==tinymce.activeEditor.isHidden()&&"content"===tinymce.activeEditor.id){e=tinymce.activeEditor,r=a()(e.getBody());var l=e.selection.getContent()||"";if(r.find("a[data-mce-selected]").length){var p=(n="",i="",o=e.selection.getStart(),(c=e.dom.getParent(o,"a[href]"))||(i=e.selection.getContent({format:"raw"}))&&-1!==i.indexOf("</a>")&&((n=i.match(/href="([^">]+)"/))&&n[1]&&(c=e.$('a[href="'+n[1]+'"]',o)[0]),c&&e.selection.select(c)),c);e.dom.setAttribs(p,{href:s.data("url")}),a()(p).text()!==l&&e.insertContent(l)}else l.length?e.insertContent('<a href="'+s.data("url")+'">'+l+"</a>"):e.insertContent('<a href="'+s.data("url")+'">'+s.data("text")+"</a>")}else if(Xr()){var f=(0,u.select)("core/block-editor").getSelectedBlock().clientId,d=(0,u.select)("core/block-editor").getSelectionStart().offset,m=(0,u.select)("core/block-editor").getSelectionEnd().offset;if(document.getSelection){var h=document.getSelection();if(h.rangeCount){var y=h.getRangeAt(0),b=a()("#block-"+f).text().substring(d,m),g=document.createElement("a");g.href=s.data("url"),g.innerText=""!==b?b:s.data("text"),y.deleteContents(),y.insertNode(g);var v=h.focusNode.innerHTML;(0,u.dispatch)("core/block-editor").updateBlock(f,{attributes:{content:v}})}}}var w=s.closest(".suggestion-item").find(".suggestion-title"),k=w.html();w.text("Link Inserted"),s.addClass("clicked"),setTimeout((function(){var t,e,r,n;w.html(k),s.removeClass("clicked"),!0===rankMath.postSettings.useFocusKeyword&&(e=s,r=(t=w).data("fkcount")||0,n=t.data("fk"),(r+=1)===n.length&&(r=0),t.find(">a").text(n[r]),t.data("fkcount",r),e.data("text",n[r]))}),1500)})),a()("#rank_math_metabox_link_suggestions").find("h2").append(a()("#rank-math-link-suggestions-tooltip").html())}})),Hn=(0,gn.createSlotFill)("RankMathAfterEditor"),Kn=Hn.Fill,Bn=Hn.Slot,zn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Kn,null,wp.element.createElement(gn.PanelRow,{className:r},e))};zn.Slot=Bn;var Ln=zn,Gn=(0,gn.createSlotFill)("RankMathAdvancedTab"),Vn=Gn.Fill,qn=Gn.Slot,Wn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Vn,null,wp.element.createElement(gn.PanelRow,{className:r},e))};Wn.Slot=qn;var $n=Wn,Jn=(0,gn.createSlotFill)("RankMathAfterFocusKeyword"),Qn=Jn.Fill,Xn=Jn.Slot,Yn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Qn,null,wp.element.createElement("div",{className:r},e))};Yn.Slot=Xn;var Zn=Yn;function ti(t){return ti="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(t)}function ei(){return ei=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ei.apply(this,arguments)}function ri(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,(i=n.key,a=void 0,a=function(t,e){if("object"!==ti(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ti(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===ti(a)?a:String(a)),n)}var i,a}function ni(){return ni="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=oi(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},ni.apply(this,arguments)}function ii(t,e){return ii=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ii(t,e)}function ai(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=oi(t);if(e){var i=oi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===ti(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,r)}}function oi(t){return oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},oi(t)}var ui=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ii(t,e)}(a,t);var e,r,n,i=ai(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"setup",value:function(t){Nr(),this.registerSlots=this.registerSlots.bind(this),(0,l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),ni(oi(a.prototype),"setup",this).call(this,t),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector(),new Fn,new ln}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=Ln,this.RankMathAfterFocusKeyword=Zn,this.RankMathAdvancedTab=$n,this.slots={AfterEditor:Ln,AfterFocusKeyword:Zn,AdvancedTab:$n}}},{key:"registerSidebar",value:function(){(0,s.registerPlugin)("rank-math",{icon:wp.element.createElement(bn,null),render:function(){return wp.element.createElement(c.Fragment,null,wp.element.createElement(p.PluginSidebarMoreMenuItem,{target:"seo-by-rank-math-sidebar",icon:wp.element.createElement(bn,null)},o.__("Rank Math","rank-math")),wp.element.createElement(p.PluginSidebar,{name:"seo-by-rank-math-sidebar",title:o.__("Rank Math","rank-math"),className:"rank-math-sidebar-panel"},(0,l.applyFilters)("rank_math_app",{})()))}})}},{key:"registerPostPublish",value:function(){(0,s.registerPlugin)("rank-math-post-publish",{render:function(){return wp.element.createElement(p.PluginPostPublishPanel,{initialOpen:!0,title:o.__("Rank Math","rank-math"),className:"rank-math-post-publish",icon:wp.element.createElement(c.Fragment,null)},wp.element.createElement(vn,null))}})}},{key:"registerPrimaryTermSelector",value:function(){(0,l.addFilter)("editor.PostTaxonomyType","rank-math",(function(t){return function(e){return wp.element.createElement(Cn,ei({TermComponent:t},e))}}))}},{key:"updatePermalink",value:function(t){(0,u.dispatch)("core/editor").editPost({slug:t})}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),(0,u.dispatch)("core/editor").editPost({slug:t})}}])&&ri(e.prototype,r),n&&ri(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}(Qr);a()(document).ready((function(){window.rankMathEditor=new ui,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new an)}))}()}();