/home/edulekha/www/wp-content/plugins/seo-by-rank-math/assets/admin/js/gutenberg.js
!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 qt},refreshResults:function(){return Dt},resetDirtyMetadata:function(){return D},resetRedirection:function(){return B},saveSchema:function(){return Vt},saveTemplate:function(){return Wt},schemaUpdated:function(){return Ft},setEditingSchemaId:function(){return Ht},setEditorTab:function(){return Kt},setTemplateTab:function(){return Bt},setVersion:function(){return It},toggleFrontendScore:function(){return w},toggleIsDiviPageSettingsBarActive:function(){return Ot},toggleIsDiviRankMathModalActive:function(){return Et},toggleLoaded:function(){return Tt},toggleSchemaEditor:function(){return Nt},toggleSchemaTemplates:function(){return xt},toggleSnippetEditor:function(){return Y},updateAIScore:function(){return Jt},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 Gt},updateEditSchemas:function(){return zt},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 $t},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 Lt},updateSelectedKeyword:function(){return Pt},updateSerpDescription:function(){return X},updateSerpSlug:function(){return Q},updateSerpTitle:function(){return J},updateSnippetPreviewType:function(){return Z},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 ne},appUi:function(){return se}});var n={};r.r(n),r.d(n,{getAdvancedRobots:function(){return ye},getAnalysisScore:function(){return fe},getAppData:function(){return le},getBreadcrumbTitle:function(){return ge},getCanonicalUrl:function(){return be},getContentAIScore:function(){return Mr},getDescription:function(){return xe},getDirtyMetadata:function(){return pe},getEditSchemas:function(){return rr},getEditingSchema:function(){return nr},getEditorTab:function(){return ar},getFacebookAuthor:function(){return Ee},getFacebookDescription:function(){return Oe},getFacebookHasOverlay:function(){return Me},getFacebookImage:function(){return je},getFacebookImageID:function(){return Ae},getFacebookImageOverlay:function(){return Re},getFacebookTitle:function(){return Ie},getFeaturedImage:function(){return Fe},getFeaturedImageHtml:function(){return He},getKeywords:function(){return de},getKeywordsData:function(){return jr},getPermalink:function(){return Ne},getPillarContent:function(){return me},getPostID:function(){return Ce},getPreviewSchema:function(){return ir},getPrimaryTermID:function(){return Ke},getRedirectionID:function(){return Be},getRedirectionItem:function(){return Ge},getRedirectionType:function(){return ze},getRedirectionUrl:function(){return Le},getRichSnippets:function(){return ve},getRobots:function(){return he},getSchemas:function(){return er},getSelectedKeyword:function(){return Se},getSerpDescription:function(){return Je},getSerpSlug:function(){return $e},getSerpTitle:function(){return We},getShowScoreFrontend:function(){return we},getSnippetPreviewType:function(){return Xe},getTemplateTab:function(){return or},getTitle:function(){return Ue},getTwitterAppCountry:function(){return Dr},getTwitterAppDescription:function(){return yr},getTwitterAppGoogleplayID:function(){return _r},getTwitterAppGoogleplayName:function(){return Tr},getTwitterAppGoogleplayUrl:function(){return Pr},getTwitterAppIpadID:function(){return wr},getTwitterAppIpadName:function(){return kr},getTwitterAppIpadUrl:function(){return Sr},getTwitterAppIphoneID:function(){return br},getTwitterAppIphoneName:function(){return gr},getTwitterAppIphoneUrl:function(){return vr},getTwitterAuthor:function(){return pr},getTwitterCardType:function(){return cr},getTwitterDescription:function(){return lr},getTwitterHasOverlay:function(){return mr},getTwitterImage:function(){return dr},getTwitterImageID:function(){return fr},getTwitterImageOverlay:function(){return hr},getTwitterPlayerSize:function(){return Or},getTwitterPlayerStream:function(){return Er},getTwitterPlayerStreamCtype:function(){return Ar},getTwitterPlayerUrl:function(){return Ir},getTwitterTitle:function(){return sr},getTwitterUseFacebook:function(){return ur},hasRedirect:function(){return Ve},hasSchemaUpdated:function(){return tr},isDiviPageSettingsBarActive:function(){return Pe},isDiviRankMathModalActive:function(){return De},isLoaded:function(){return ke},isPro:function(){return Te},isRefreshing:function(){return _e},isSchemaEditorOpen:function(){return Ye},isSchemaTemplatesOpen:function(){return Ze},isSnippetEditorOpen:function(){return Qe}});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){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=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)}(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)}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($(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(){return b("refreshResults",Date.now())}function It(){return b("isPro",!0)}function Ot(t){return b("isDiviPageSettingsBarActive",t)}function Et(t){return b("isDiviRankMathModalActive",t)}var At=wp.apiFetch,jt=r.n(At);function Mt(t){return Mt="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},Mt(t)}function Rt(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 Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Rt(Object(r),!0).forEach((function(e){Ut(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Rt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ut(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Mt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Mt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Mt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Nt(t){return b("isSchemaEditorOpen",t)}function xt(t){return b("isSchemaTemplatesOpen",t)}function Ft(t){return b("schemaUpdated",t)}function Ht(t){return b("editingSchemaId",t)}function Kt(t){return b("editorTab",t)}function Bt(t){return b("templateTab",t)}function zt(t){return b("editSchemas",t)}function Lt(t){return y("schemas",t)}function Gt(t,e){var r=Ct({},(0,u.select)("rank-math").getEditSchemas());return r[t]=e,b("editSchemas",r)}function Vt(t,e){var r=Ct({},(0,u.select)("rank-math").getSchemas());return r[t]=e,y("schemas",r)}function qt(t){var e=Ct({},(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 Wt(t,e,r){return jt()({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(/&/g,"&")))}),2e3),rankMath.schemaTemplates.push({schema:t,title:t.metadata.title,type:t["@type"]})})),e({loading:!0}),{type:"DONT_WANT_TO_DO_SOMETHING"}}function $t(t){return b("keywordsData",t)}function Jt(t){return y("contentAIScore",t,"rank_math_contentai_score")}function Qt(t){return Qt="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},Qt(t)}function Xt(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 Yt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xt(Object(r),!0).forEach((function(e){Zt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Zt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==Qt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var te=rankMath.assessor.serpData,ee=rankMath.assessor.hasRedirection,re={postID:null,title:te.title?te.title:te.titleTemplate,description:te.description,keywords:te.focusKeywords,pillarContent:te.pillarContent,featuredImage:"",permalink:!1,primaryTerm:te.primaryTerm,robots:te.robots,advancedRobots:te.advancedRobots,canonicalUrl:te.canonicalUrl,breadcrumbTitle:te.breadcrumbTitle,showScoreFrontend:te.showScoreFrontend,redirectionID:ee?(0,G.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:ee?(0,G.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:ee?(0,G.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:te.facebookTitle,facebookImage:te.facebookImage,facebookImageID:te.facebookImageID,facebookAuthor:te.facebookAuthor,facebookDescription:te.facebookDescription,facebookHasOverlay:te.facebookHasOverlay,facebookImageOverlay:te.facebookImageOverlay,twitterTitle:te.twitterTitle,twitterImage:te.twitterImage,twitterAuthor:te.twitterAuthor,twitterImageID:te.twitterImageID,twitterCardType:te.twitterCardType,twitterUseFacebook:te.twitterUseFacebook,twitterDescription:te.twitterDescription,twitterHasOverlay:te.twitterHasOverlay,twitterImageOverlay:te.twitterImageOverlay,twitterPlayerUrl:te.twitterPlayerUrl,twitterPlayerSize:te.twitterPlayerSize,twitterPlayerStream:te.twitterPlayerStream,twitterPlayerStreamCtype:te.twitterPlayerStreamCtype,twitterAppDescription:te.twitterAppDescription,twitterAppIphoneName:te.twitterAppIphoneName,twitterAppIphoneID:te.twitterAppIphoneID,twitterAppIphoneUrl:te.twitterAppIphoneUrl,twitterAppIpadName:te.twitterAppIpadName,twitterAppIpadID:te.twitterAppIpadID,twitterAppIpadUrl:te.twitterAppIpadUrl,twitterAppGoogleplayName:te.twitterAppGoogleplayName,twitterAppGoogleplayID:te.twitterAppGoogleplayID,twitterAppGoogleplayUrl:te.twitterAppGoogleplayUrl,twitterAppCountry:te.twitterAppCountry,schemas:(0,G.get)(rankMath,"schemas",{}),score:0,contentAIScore:{},dirtyMetadata:{}};function ne(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,r=arguments.length>1?arguments[1]:void 0,n=Yt({},e.dirtyMetadata);return!1!==r.metaKey&&(n[r.metaKey]=r.metaValue),"RANK_MATH_APP_DATA"===r.type?"dirtyMetadata"===r.key?Yt(Yt({},e),{},{dirtyMetadata:r.value}):Yt(Yt({},e),{},(Zt(t={},r.key,r.value),Zt(t,"dirtyMetadata",n),t)):e}function ie(t){return ie="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},ie(t)}function ae(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 oe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(r),!0).forEach((function(e){ue(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ae(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ue(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ie(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ie(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ce={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:{},editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1,keywordsData:(0,G.get)(rankMath,"ca_data",[])};function se(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?oe(oe({},t),{},ue({},e.key,e.value)):t}function le(t){return t.appData}function pe(t){return t.appData.dirtyMetadata}function fe(t){return t.appData.score}function de(t){return t.appData.keywords}function me(t){return t.appData.pillarContent}function he(t){return t.appData.robots}function ye(t){return t.appData.advancedRobots}function be(t){return t.appData.canonicalUrl}function ge(t){return t.appData.breadcrumbTitle}function ve(t){return"todo"}function we(t){return t.appData.showScoreFrontend}function ke(t){return t.appUi.isLoaded}function Se(t){return t.appUi.selectedKeyword}function _e(t){return t.appUi.refreshResults}function Te(t){return t.appUi.isPro}function Pe(t){return t.appUi.isDiviPageSettingsBarActive}function De(t){return t.appUi.isDiviRankMathModalActive}function Ie(t){return t.appData.facebookTitle}function Oe(t){return t.appData.facebookDescription}function Ee(t){return t.appData.facebookAuthor}function Ae(t){return t.appData.facebookImageID}function je(t){return t.appData.facebookImage}function Me(t){return t.appData.facebookHasOverlay}function Re(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Ce(t){return t.appData.postID}function Ue(t){return t.appData.title}function Ne(t){return t.appData.permalink}function xe(t){return t.appData.description}function Fe(t){return t.appData.featuredImage}function He(t){var e=t.appData.featuredImage;return'<img src="'.concat(e.source_url,'" alt="').concat(e.alt_text,'" >')}function Ke(t){return t.appData.primaryTerm}function Be(t){return t.appData.redirectionID}function ze(t){return t.appData.redirectionType}function Le(t){return t.appData.redirectionUrl}function Ge(t){return t.appUi.redirectionItem}function Ve(t){return t.appUi.hasRedirect}var qe=wp.url;function We(t){return q(t.appUi.serpTitle)}function $e(t){return(0,qe.safeDecodeURIComponent)(t.appUi.serpSlug)}function Je(t){return t.appUi.serpDescription}function Qe(t){return t.appUi.isSnippetEditorOpen}function Xe(t){return t.appUi.snippetPreviewType}function Ye(t){return t.appUi.isSchemaEditorOpen}function Ze(t){return t.appUi.isSchemaTemplatesOpen}function tr(t){return t.appUi.schemaUpdated}function er(t){return t.appData.schemas}function rr(t){return t.appUi.editSchemas}function nr(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function ir(t){return t.appData.schemas[t.appUi.editingSchemaId]}function ar(t){return t.appUi.editorTab}function or(t){return t.appUi.templateTab}function ur(t){return t.appData.twitterUseFacebook}function cr(t){return t.appData.twitterCardType}function sr(t){return t.appData.twitterTitle}function lr(t){return t.appData.twitterDescription}function pr(t){return t.appData.twitterAuthor}function fr(t){return t.appData.twitterImageID}function dr(t){return t.appData.twitterImage}function mr(t){return t.appData.twitterHasOverlay}function hr(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function yr(t){return t.appData.twitterAppDescription}function br(t){return t.appData.twitterAppIphoneID}function gr(t){return t.appData.twitterAppIphoneName}function vr(t){return t.appData.twitterAppIphoneUrl}function wr(t){return t.appData.twitterAppIpadID}function kr(t){return t.appData.twitterAppIpadName}function Sr(t){return t.appData.twitterAppIpadUrl}function _r(t){return t.appData.twitterAppGoogleplayID}function Tr(t){return t.appData.twitterAppGoogleplayName}function Pr(t){return t.appData.twitterAppGoogleplayUrl}function Dr(t){return t.appData.twitterAppCountry}function Ir(t){return t.appData.twitterPlayerUrl}function Or(t){return t.appData.twitterPlayerSize}function Er(t){return t.appData.twitterPlayerStream}function Ar(t){return t.appData.twitterPlayerStreamCtype}function jr(t){return t.appUi.keywordsData}function Mr(t){return t.appData.contentAIScore}var Rr=(0,u.registerStore)("rank-math",{reducer:(0,u.combineReducers)(e),selectors:n,actions:t});function Cr(){return Rr}var Ur={"&":"&",""":'"',"'":"'"},Nr=/&(?:amp|quot|#(0+)?39);/g,xr=RegExp(Nr.source);var Fr=function(t){return t&&xr.test(t)?t.replace(Nr,(function(t){return Ur[t]||"'"})):t||""};function Hr(t){return Hr="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},Hr(t)}function Kr(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"!==Hr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Hr(a)?a:String(a)),n)}var i,a}var Br=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=Cr().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(Fr((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=Cr().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=Cr().getState().appData.keywords;return L.Helpers.removeDiacritics(t.split(",")[0])}},{key:"getSelectedKeyword",value:function(){var t=Cr().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&&Kr(e.prototype,r),n&&Kr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),zr=Br;function Lr(t){return Lr="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},Lr(t)}function Gr(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"!==Lr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===Lr(a)?a:String(a)),n)}var i,a}var Vr=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://s.rankmath.com/100contentlength" 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}}}}])&&Gr(e.prototype,r),n&&Gr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function qr(t){return qr="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},qr(t)}function Wr(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"!==qr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==qr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===qr(a)?a:String(a)),n)}var i,a}var $r=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){Cr(),this.resultManager=new L.ResultManager,this.assessor=new zr(t),new Vr,(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"}}])&&Wr(e.prototype,r),n&&Wr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Jr=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 Qr(t){return Qr="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},Qr(t)}function Xr(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 Yr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Xr(Object(r),!0).forEach((function(e){tn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Xr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return 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,en(n.key),n)}}function tn(t,e,r){return(e=en(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function en(t){var e=function(t,e){if("object"!==Qr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Qr(e)?e:String(e)}var rn=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),tn(this,"initialize",!1),tn(this,"isSavingRedirection",!1),tn(this,"isSavingSchemas",!1),tn(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(Jr())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,qe.safeDecodeURIComponent)(this._coreEditorSelect.getPermalink())}},{key:"getSlug",value:function(){var t=this.getPostAttribute("generated_slug");return"auto-draft"!==t&&"en"===rankMath.locale||(t=""),(0,qe.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 Jr()?(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=Yr({},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)||(jt()({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();jt()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:this.getPostID(),objectType:rankMath.objectType,schemas:e}}).then((function(n){var i=Yr({},e),a=Yr({},r);(0,G.isEmpty)(n)||(0,G.map)(n,(function(t,e){i["schema-"+t]=Yr({},i[e]),a["schema-"+t]=Yr({},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(),jt()({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}}])&&Zr(e.prototype,r),n&&Zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),nn=wp.blocks;function an(t){return an="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},an(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"!==an(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==an(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===an(a)?a:String(a)),n)}var i,a}var un=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,nn.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&&on(e.prototype,r),n&&on(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),cn=un,sn=r(184),ln=r.n(sn);function pn(t){return 100<t?"bad-fk dark":80<t?"good-fk":50<t?"ok-fk":"bad-fk"}var fn=(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 "+pn(e)},wp.element.createElement("div",{className:"score-text"},e," / 100"))}));function dn(t){return dn="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},dn(t)}function mn(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==dn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===dn(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var hn=(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=ln()("rank-math-toolbar-score",(mn(e={},pn(n),!0),mn(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(fn,null))})),yn=wp.components,bn=(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(yn.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(yn.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(yn.Dashicon,{icon:"email"})))))}));function gn(t){return gn="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},gn(t)}function vn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wn(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"!==gn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==gn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===gn(a)?a:String(a)),n)}var i,a}function kn(t,e){return kn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},kn(t,e)}function Sn(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 _n(this,r)}}function _n(t,e){if(e&&("object"===gn(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Tn(t)}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&&kn(t,e)}(a,t);var e,r,n,i=Sn(a);function a(){var t;return vn(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=jt()({path:(0,qe.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(yn.Spinner,{key:"spinner"}),wp.element.createElement("p",{key:"spinner-text"},"Loading")]:wp.element.createElement(yn.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})}}])&&wn(e.prototype,r),n&&wn(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){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function An(t,e){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},An(t,e)}function jn(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=Rn(t);if(e){var i=Rn(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Mn(this,r)}}function Mn(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)}function Rn(t){return Rn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Rn(t)}var Cn=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&&An(t,e)}(a,t);var e,r,n,i=jn(a);function a(){return En(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),Un=(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()}}))(Cn),Nn=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(yn.PanelRow,{className:"rank-math-primary-term-picker"},wp.element.createElement(Un,t))):wp.element.createElement(e,t)};function xn(t){return xn="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},xn(t)}function Fn(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"!==xn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===xn(a)?a:String(a)),n)}var i,a}function Hn(t,e,r){return e&&Fn(t.prototype,e),r&&Fn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}var Kn=Hn((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":xn(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(Jr()){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())}})),Bn=(0,yn.createSlotFill)("RankMathAfterEditor"),zn=Bn.Fill,Ln=Bn.Slot,Gn=function(t){var e=t.children,r=t.className;return wp.element.createElement(zn,null,wp.element.createElement(yn.PanelRow,{className:r},e))};Gn.Slot=Ln;var Vn=Gn,qn=(0,yn.createSlotFill)("RankMathAdvancedTab"),Wn=qn.Fill,$n=qn.Slot,Jn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Wn,null,wp.element.createElement(yn.PanelRow,{className:r},e))};Jn.Slot=$n;var Qn=Jn,Xn=(0,yn.createSlotFill)("RankMathAfterFocusKeyword"),Yn=Xn.Fill,Zn=Xn.Slot,ti=function(t){var e=t.children,r=t.className;return wp.element.createElement(Yn,null,wp.element.createElement("div",{className:r},e))};ti.Slot=Zn;var ei=ti;function ri(t){return ri="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},ri(t)}function ni(){return ni=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},ni.apply(this,arguments)}function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(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"!==ri(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ri(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(i,"string"),"symbol"===ri(a)?a:String(a)),n)}var i,a}function oi(){return oi="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=ui(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},oi.apply(this,arguments)}function ui(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=pi(t)););return t}function ci(t,e){return ci=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ci(t,e)}function si(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=pi(t);if(e){var i=pi(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return li(this,r)}}function li(t,e){if(e&&("object"===ri(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)}function pi(t){return pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pi(t)}var fi=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&&ci(t,e)}(a,t);var e,r,n,i=si(a);function a(){return ii(this,a),i.apply(this,arguments)}return e=a,(r=[{key:"setup",value:function(t){Cr(),this.registerSlots=this.registerSlots.bind(this),(0,l.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),oi(pi(a.prototype),"setup",this).call(this,t),this.registerSidebar(),this.registerPostPublish(),this.registerPrimaryTermSelector(),new Kn,new cn}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=Vn,this.RankMathAfterFocusKeyword=ei,this.RankMathAdvancedTab=Qn,this.slots={AfterEditor:Vn,AfterFocusKeyword:ei,AdvancedTab:Qn}}},{key:"registerSidebar",value:function(){(0,s.registerPlugin)("rank-math",{icon:wp.element.createElement(hn,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(hn,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(bn,null))}})}},{key:"registerPrimaryTermSelector",value:function(){(0,l.addFilter)("editor.PostTaxonomyType","rank-math",(function(t){return function(e){return wp.element.createElement(Nn,ni({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})}}])&&ai(e.prototype,r),n&&ai(e,n),Object.defineProperty(e,"prototype",{writable:!1}),a}($r);a()(document).ready((function(){window.rankMathEditor=new fi,window.rankMathGutenberg=window.rankMathEditor,window.rankMathEditor.setup(new rn)}))}()}();