/
www
/
wwwroot
/
alo88.autos
/
wp-content
/
plugins
/
seo-by-rank-math
/
includes
/
3rdparty
/
elementor
/
assets
/
js
/
Upload File
HOME
!function(){"use strict";var t={n:function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,{a:r}),r},d:function(e,r){for(var n in r)t.o(r,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{deleteSchema:function(){return $t},refreshResults:function(){return Dt},resetDirtyMetadata:function(){return D},resetRedirection:function(){return K},saveSchema:function(){return Vt},saveTemplate:function(){return qt},schemaUpdated:function(){return Ht},setEditingSchemaId:function(){return Kt},setEditorTab:function(){return xt},setTemplateTab:function(){return zt},setVersion:function(){return Tt},toggleFrontendScore:function(){return b},toggleIsDiviPageSettingsBarActive:function(){return Pt},toggleIsDiviRankMathModalActive:function(){return It},toggleLoaded:function(){return kt},toggleSchemaEditor:function(){return Ft},toggleSchemaTemplates:function(){return Nt},toggleSnippetEditor:function(){return Q},updateAIScore:function(){return Wt},updateAdvancedRobots:function(){return k},updateAnalysisScore:function(){return v},updateAppData:function(){return m},updateAppUi:function(){return h},updateBreadcrumbTitle:function(){return S},updateCanonicalUrl:function(){return w},updateDescription:function(){return C},updateEditSchema:function(){return Bt},updateEditSchemas:function(){return Lt},updateFacebookDescription:function(){return P},updateFacebookHasOverlay:function(){return A},updateFacebookImage:function(){return I},updateFacebookImageID:function(){return O},updateFacebookImageOverlay:function(){return E},updateFacebookTitle:function(){return T},updateFeaturedImage:function(){return R},updateHasRedirect:function(){return x},updateHighlightedParagraphs:function(){return Ot},updateKeywords:function(){return y},updatePermalink:function(){return j},updatePillarContent:function(){return g},updatePostID:function(){return M},updatePrimaryTermID:function(){return F},updateRedirection:function(){return N},updateRedirectionItem:function(){return H},updateRobots:function(){return _},updateSchemas:function(){return Gt},updateSelectedKeyword:function(){return _t},updateSerpDescription:function(){return W},updateSerpSlug:function(){return q},updateSerpTitle:function(){return $},updateSnippetPreviewType:function(){return J},updateSocialTab:function(){return St},updateTitle:function(){return U},updateTwitterAppCountry:function(){return wt},updateTwitterAppDescription:function(){return lt},updateTwitterAppGoogleplayID:function(){return gt},updateTwitterAppGoogleplayName:function(){return bt},updateTwitterAppGoogleplayUrl:function(){return vt},updateTwitterAppIpadID:function(){return mt},updateTwitterAppIpadName:function(){return ht},updateTwitterAppIpadUrl:function(){return yt},updateTwitterAppIphoneID:function(){return st},updateTwitterAppIphoneName:function(){return ft},updateTwitterAppIphoneUrl:function(){return dt},updateTwitterAuthor:function(){return et},updateTwitterCardType:function(){return Y},updateTwitterDescription:function(){return tt},updateTwitterHasOverlay:function(){return at},updateTwitterImage:function(){return nt},updateTwitterImageID:function(){return rt},updateTwitterImageOverlay:function(){return it},updateTwitterPlayerSize:function(){return ut},updateTwitterPlayerStreamCtype:function(){return pt},updateTwitterPlayerStreamUrl:function(){return ct},updateTwitterPlayerUrl:function(){return ot},updateTwitterTitle:function(){return Z},updateTwitterUseFacebook:function(){return X}});var r={};t.r(r),t.d(r,{appData:function(){return re},appUi:function(){return ce}});var n={};t.r(n),t.d(n,{getAdvancedRobots:function(){return he},getAnalysisScore:function(){return se},getAppData:function(){return pe},getBreadcrumbTitle:function(){return ge},getCanonicalUrl:function(){return ye},getDescription:function(){return He},getDirtyMetadata:function(){return le},getEditSchemas:function(){return ar},getEditingSchema:function(){return ir},getEditorTab:function(){return ur},getFacebookAuthor:function(){return Ee},getFacebookDescription:function(){return Ae},getFacebookHasOverlay:function(){return Ue},getFacebookImage:function(){return je},getFacebookImageID:function(){return Me},getFacebookImageOverlay:function(){return Ce},getFacebookTitle:function(){return Oe},getFeaturedImage:function(){return Ke},getFeaturedImageHtml:function(){return xe},getHighlightedParagraphs:function(){return Ie},getKeywords:function(){return fe},getPermalink:function(){return Ne},getPillarContent:function(){return de},getPostID:function(){return Re},getPreviewSchema:function(){return or},getPrimaryTermID:function(){return ze},getRedirectionID:function(){return Le},getRedirectionItem:function(){return Ve},getRedirectionType:function(){return Ge},getRedirectionUrl:function(){return Be},getRichSnippets:function(){return be},getRobots:function(){return me},getSchemas:function(){return nr},getSelectedKeyword:function(){return ke},getSerpDescription:function(){return Xe},getSerpSlug:function(){return Je},getSerpTitle:function(){return Qe},getShowScoreFrontend:function(){return ve},getSnippetPreviewType:function(){return Ze},getSocialTab:function(){return _e},getTemplateTab:function(){return cr},getTitle:function(){return Fe},getTwitterAppCountry:function(){return Or},getTwitterAppDescription:function(){return br},getTwitterAppGoogleplayID:function(){return Tr},getTwitterAppGoogleplayName:function(){return Pr},getTwitterAppGoogleplayUrl:function(){return Ir},getTwitterAppIpadID:function(){return _r},getTwitterAppIpadName:function(){return Sr},getTwitterAppIpadUrl:function(){return Dr},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 gr},getTwitterPlayerSize:function(){return Er},getTwitterPlayerStream:function(){return Mr},getTwitterPlayerStreamCtype:function(){return jr},getTwitterPlayerUrl:function(){return Ar},getTwitterTitle:function(){return sr},getTwitterUseFacebook:function(){return pr},hasRedirect:function(){return qe},hasSchemaUpdated:function(){return rr},isDiviPageSettingsBarActive:function(){return Te},isDiviRankMathModalActive:function(){return Pe},isLoaded:function(){return we},isPro:function(){return De},isRefreshing:function(){return Se},isSchemaEditorOpen:function(){return tr},isSchemaTemplatesOpen:function(){return er},isSnippetEditorOpen:function(){return Ye}});var a=jQuery,i=t.n(a),o=wp.data,u=wp.mediaUtils,c=wp.hooks,p=rankMathAnalyzer;function l(t){return l="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},l(t)}function s(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,f(n.key),n)}}function f(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}var d=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=f(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():i()("#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={},i().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)}}])&&s(e.prototype,r),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}());function m(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,c.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=(0,c.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,(0,c.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function h(t,e){return(0,c.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function y(t){return d.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),m("keywords",t,"rank_math_focus_keyword")}function g(t){return m("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function b(t){return m("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function v(t){return m("score",t,"rank_math_seo_score")}function w(t){return m("canonicalUrl",t,"rank_math_canonical_url")}function k(t){return m("advancedRobots",t,"rank_math_advanced_robots")}function _(t){return m("robots",t,"rank_math_robots",Object.keys(t))}function S(t){return m("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function D(){return m("dirtyMetadata",{})}function T(t){return m("facebookTitle",t,"rank_math_facebook_title")}function P(t){return m("facebookDescription",t,"rank_math_facebook_description")}function I(t){return m("facebookImage",t,"rank_math_facebook_image")}function O(t){return m("facebookImageID",t,"rank_math_facebook_image_id")}function A(t){return m("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function E(t){return m("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function M(t){return rankMath.objectID=t,m("postID",t)}function j(t){return m("permalink",t,"permalink")}function U(t){return m("title",t,"rank_math_title")}function C(t){return m("description",t,"rank_math_description")}function R(t){return m("featuredImage",t)}function F(t,e){return m("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function N(t,e){return m(t,e)}function H(t){return h("redirectionItem",t)}function K(){return h("redirectionItem",{})}function x(t){return h("hasRedirect",t)}var z=lodash,L=document.createElement("div");function G(t){return t&&"string"==typeof t&&(t=t.replace(/<script[^>]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),L.innerHTML=t,t=L.textContent,L.textContent=""),t}var B=function(t,e){return t=(t=p.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?(0,z.truncate)(t,{length:e,separator:" "}):t},V=function(t){if((0,z.isEmpty)(t))return"";t=p.Helpers.stripScript(t),t=p.Helpers.stripStyle(t),t=(0,z.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=(0,z.filter)(p.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=(0,z.filter)(e,(function(t){return(0,z.includes)(t.toLowerCase(),r.toLowerCase())}));if(0<n.length)return B(n[0],160)}return B(e[0],160)};function $(t){return t=d.swap(""!==t?t:rankMath.assessor.serpData.titleTemplate),rankMathEditor.refresh("title"),h("serpTitle",G(t))}function q(t){return t=""!==t?t:rankMathEditor.assessor.dataCollector.getSlug(),rankMathEditor.refresh("permalink"),h("serpSlug",t)}function W(t){return t=d.swap(function(t){var e=rankMathEditor.assessor.dataCollector.getData(),r=e.excerpt,n=V(e.content),a=(0,z.isUndefined)(r)||(0,z.isEmpty)(r)?n:(0,z.unescape)(r);if(d.setVariable("excerpt",a),d.setVariable("seo_description",a),""!==(t=G((0,c.applyFilters)("rankMath/description",t))))return p.Helpers.cleanText(t);if(!(0,z.isUndefined)(r)&&!(0,z.isEmpty)(r))return p.Helpers.cleanText(r);var i=(0,z.unescape)(rankMath.assessor.serpData.descriptionTemplate);return(0,z.isUndefined)(i)||""===i?n:p.Helpers.cleanText(i)}(t)),rankMathEditor.refresh("description"),h("serpDescription",t)}function Q(t){return h("isSnippetEditorOpen",t)}function J(t){return h("snippetPreviewType",t)}function X(t){return m("twitterUseFacebook",t,"rank_math_twitter_use_facebook",!0===t?"on":"off")}function Y(t){return m("twitterCardType",t,"rank_math_twitter_card_type")}function Z(t){return m("twitterTitle",t,"rank_math_twitter_title")}function tt(t){return m("twitterDescription",t,"rank_math_twitter_description")}function et(t){return m("twitterAuthor",t,"rank_math_twitter_author")}function rt(t){return m("twitterImageID",t,"rank_math_twitter_image_id")}function nt(t){return m("twitterImage",t,"rank_math_twitter_image")}function at(t){return m("twitterHasOverlay",t,"rank_math_twitter_enable_image_overlay",!0===t?"on":"off")}function it(t){return m("twitterImageOverlay",t,"rank_math_twitter_image_overlay")}function ot(t){return m("twitterPlayerUrl",t,"rank_math_twitter_player_url")}function ut(t){return m("twitterPlayerSize",t,"rank_math_twitter_player_size")}function ct(t){return m("twitterPlayerStream",t,"rank_math_twitter_player_stream")}function pt(t){return m("twitterPlayerStreamCtype",t,"rank_math_twitter_player_stream_ctype")}function lt(t){return m("twitterAppDescription",t,"rank_math_twitter_app_description")}function st(t){return m("twitterAppIphoneID",t,"rank_math_twitter_app_iphone_id")}function ft(t){return m("twitterAppIphoneName",t,"rank_math_twitter_app_iphone_name")}function dt(t){return m("twitterAppIphoneUrl",t,"rank_math_twitter_app_iphone_url")}function mt(t){return m("twitterAppIpadID",t,"rank_math_twitter_app_ipad_id")}function ht(t){return m("twitterAppIpadName",t,"rank_math_twitter_app_ipad_name")}function yt(t){return m("twitterAppIpadUrl",t,"rank_math_twitter_app_ipad_url")}function gt(t){return m("twitterAppGoogleplayID",t,"rank_math_twitter_app_googleplay_id")}function bt(t){return m("twitterAppGoogleplayName",t,"rank_math_twitter_app_googleplay_name")}function vt(t){return m("twitterAppGoogleplayUrl",t,"rank_math_twitter_app_googleplay_url")}function wt(t){return m("twitterAppCountry",t,"rank_math_twitter_app_country")}function kt(t){return h("isLoaded",t)}function _t(t){return h("selectedKeyword",t)}function St(t){return h("socialTab",t)}function Dt(){return h("refreshResults",Date.now())}function Tt(){return h("isPro",!0)}function Pt(t){return h("isDiviPageSettingsBarActive",t)}function It(t){return h("isDiviRankMathModalActive",t)}function Ot(t){return h("highlightedParagraphs",t)}var At=wp.i18n,Et=wp.apiFetch,Mt=t.n(Et);function jt(t){return jt="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},jt(t)}function Ut(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?Ut(Object(r),!0).forEach((function(e){Rt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ut(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Rt(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==jt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==jt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===jt(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ft(t){return h("isSchemaEditorOpen",t)}function Nt(t){return h("isSchemaTemplatesOpen",t)}function Ht(t){return h("schemaUpdated",t)}function Kt(t){return h("editingSchemaId",t)}function xt(t){return h("editorTab",t)}function zt(t){return h("templateTab",t)}function Lt(t){return h("editSchemas",t)}function Gt(t){return m("schemas",t)}function Bt(t,e){var r=Ct({},(0,o.select)("rank-math").getEditSchemas());return r[t]=e,h("editSchemas",r)}function Vt(t,e){var r=Ct({},(0,o.select)("rank-math").getSchemas());return r[t]=e,m("schemas",r)}function $t(t){var e=Ct({},(0,o.select)("rank-math").getSchemas());return delete e[t],(0,c.doAction)("rank_math_schema_trash",t),m("schemas",e,"rank_math_delete_"+t,"")}function qt(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,z.get)(rankMath,"isTemplateScreen",!1)&&(document.title=(0,At.__)("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 Wt(t){return m("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 Jt(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 Xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jt(Object(r),!0).forEach((function(e){Yt(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yt(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 Zt=rankMath.assessor.serpData,te=rankMath.assessor.hasRedirection,ee={postID:null,title:Zt.title?Zt.title:Zt.titleTemplate,description:Zt.description,keywords:Zt.focusKeywords,pillarContent:Zt.pillarContent,featuredImage:"",permalink:!1,primaryTerm:Zt.primaryTerm,robots:Zt.robots,advancedRobots:Zt.advancedRobots,canonicalUrl:Zt.canonicalUrl,breadcrumbTitle:Zt.breadcrumbTitle,showScoreFrontend:Zt.showScoreFrontend,redirectionID:te?(0,z.get)(rankMath.assessor,"redirection.id",""):"",redirectionType:te?(0,z.get)(rankMath.assessor,"redirection.header_code",""):"",redirectionUrl:te?(0,z.get)(rankMath.assessor,"redirection.url_to",""):"",facebookTitle:Zt.facebookTitle,facebookImage:Zt.facebookImage,facebookImageID:Zt.facebookImageID,facebookAuthor:Zt.facebookAuthor,facebookDescription:Zt.facebookDescription,facebookHasOverlay:Zt.facebookHasOverlay,facebookImageOverlay:Zt.facebookImageOverlay,twitterTitle:Zt.twitterTitle,twitterImage:Zt.twitterImage,twitterAuthor:Zt.twitterAuthor,twitterImageID:Zt.twitterImageID,twitterCardType:Zt.twitterCardType,twitterUseFacebook:Zt.twitterUseFacebook,twitterDescription:Zt.twitterDescription,twitterHasOverlay:Zt.twitterHasOverlay,twitterImageOverlay:Zt.twitterImageOverlay,twitterPlayerUrl:Zt.twitterPlayerUrl,twitterPlayerSize:Zt.twitterPlayerSize,twitterPlayerStream:Zt.twitterPlayerStream,twitterPlayerStreamCtype:Zt.twitterPlayerStreamCtype,twitterAppDescription:Zt.twitterAppDescription,twitterAppIphoneName:Zt.twitterAppIphoneName,twitterAppIphoneID:Zt.twitterAppIphoneID,twitterAppIphoneUrl:Zt.twitterAppIphoneUrl,twitterAppIpadName:Zt.twitterAppIpadName,twitterAppIpadID:Zt.twitterAppIpadID,twitterAppIpadUrl:Zt.twitterAppIpadUrl,twitterAppGoogleplayName:Zt.twitterAppGoogleplayName,twitterAppGoogleplayID:Zt.twitterAppGoogleplayID,twitterAppGoogleplayUrl:Zt.twitterAppGoogleplayUrl,twitterAppCountry:Zt.twitterAppCountry,schemas:(0,z.get)(rankMath,"schemas",{}),score:0,dirtyMetadata:{}};function re(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee,e=arguments.length>1?arguments[1]:void 0,r=Xt({},t.dirtyMetadata);return!1!==e.metaKey&&(r[e.metaKey]=e.metaValue),"RANK_MATH_APP_DATA"===e.type?"dirtyMetadata"===e.key?Xt(Xt({},t),{},{dirtyMetadata:e.value}):Xt(Xt({},t),{},Yt(Yt({},e.key,e.value),"dirtyMetadata",r)):t}function ne(t){return ne="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},ne(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 ie(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){oe(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 oe(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==ne(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===ne(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var ue={isLoaded:!1,isPro:!1,selectedKeyword:{tag:"",index:0,data:{value:""}},hasRedirect:rankMath.assessor.hasRedirection&&!(0,z.isEmpty)((0,z.get)(rankMath.assessor,"redirection.id",""))&&!(0,z.isEmpty)((0,z.get)(rankMath.assessor,"redirection.url_to","")),serpTitle:"",serpSlug:"",serpDescription:"",isSnippetEditorOpen:!1,snippetPreviewType:"",refreshResults:"",redirectionItem:{},socialTab:"facebook",highlightedParagraphs:[],editorTab:"",templateTab:"",editSchemas:{},editingSchemaId:"",isSchemaEditorOpen:!1,isSchemaTemplatesOpen:!1,schemaUpdated:!1,isDiviRankMathModalActive:!1,isDiviPageSettingsBarActive:!1};function ce(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?ie(ie({},t),{},oe({},e.key,e.value)):t}function pe(t){return t.appData}function le(t){return t.appData.dirtyMetadata}function se(t){return t.appData.score}function fe(t){return t.appData.keywords}function de(t){return t.appData.pillarContent}function me(t){return t.appData.robots}function he(t){return t.appData.advancedRobots}function ye(t){return t.appData.canonicalUrl}function ge(t){return t.appData.breadcrumbTitle}function be(t){return"todo"}function ve(t){return t.appData.showScoreFrontend}function we(t){return t.appUi.isLoaded}function ke(t){return t.appUi.selectedKeyword}function _e(t){return t.appUi.socialTab}function Se(t){return t.appUi.refreshResults}function De(t){return t.appUi.isPro}function Te(t){return t.appUi.isDiviPageSettingsBarActive}function Pe(t){return t.appUi.isDiviRankMathModalActive}function Ie(t){return t.appUi.highlightedParagraphs}function Oe(t){return t.appData.facebookTitle}function Ae(t){return t.appData.facebookDescription}function Ee(t){return t.appData.facebookAuthor}function Me(t){return t.appData.facebookImageID}function je(t){return t.appData.facebookImage}function Ue(t){return t.appData.facebookHasOverlay}function Ce(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Re(t){return t.appData.postID}function Fe(t){return t.appData.title}function Ne(t){return t.appData.permalink}function He(t){return t.appData.description}function Ke(t){return t.appData.featuredImage}function xe(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 Be(t){return t.appData.redirectionUrl}function Ve(t){return t.appUi.redirectionItem}function qe(t){return t.appUi.hasRedirect}var We=wp.url;function Qe(t){return G(t.appUi.serpTitle)}function Je(t){return(0,We.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 ar(t){return t.appUi.editSchemas}function ir(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 pr(t){return t.appData.twitterUseFacebook}function lr(t){return t.appData.twitterCardType}function sr(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 gr(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function br(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 _r(t){return t.appData.twitterAppIpadID}function Sr(t){return t.appData.twitterAppIpadName}function Dr(t){return t.appData.twitterAppIpadUrl}function Tr(t){return t.appData.twitterAppGoogleplayID}function Pr(t){return t.appData.twitterAppGoogleplayName}function Ir(t){return t.appData.twitterAppGoogleplayUrl}function Or(t){return t.appData.twitterAppCountry}function Ar(t){return t.appData.twitterPlayerUrl}function Er(t){return t.appData.twitterPlayerSize}function Mr(t){return t.appData.twitterPlayerStream}function jr(t){return t.appData.twitterPlayerStreamCtype}var Ur=(0,o.registerStore)("rank-math",{reducer:(0,o.combineReducers)(r),selectors:n,actions:e});function Cr(){return Ur}var Rr={"&":"&",""":'"',"'":"'"},Fr=/&(?:amp|quot|#(0+)?39);/g,Nr=RegExp(Fr.source);var Hr=function(t){return t&&Nr.test(t)?t.replace(Fr,(function(t){return Rr[t]||"'"})):t||""};function Kr(t){return Kr="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},Kr(t)}function xr(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,(a=n.key,i=void 0,i=function(t,e){if("object"!==Kr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Kr(i)?i:String(i)),n)}var a,i}var zr=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 p.Analyzer({i18n:At,analyses:rankMath.assessor.researchesTests}),this.dataCollector=e,this.registerRefresh(),this.updateKeywordResult=this.updateKeywordResult.bind(this),this.sanitizeData=this.sanitizeData.bind(this),(0,c.addAction)("rankMath_analysis_keywordUsage_updated","rank-math",this.updateKeywordResult),(0,c.addFilter)("rank_math_sanitize_meta_value","rank-math",this.sanitizeData),(0,c.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,o.dispatch)("rank-math").refreshResults()}},{key:"sanitizeData",value:function(t,e){return"schemas"===e||(0,z.isObject)(t)||(0,z.isEmpty)(t)?t:p.Helpers.sanitizeAppData(t)}},{key:"getPaper",value:function(t,e){var r=Cr().getState(),n=this.dataCollector.getData(),a=new p.Paper("",{locale:rankMath.localeFull});if(a.setTitle(r.appUi.serpTitle),a.setPermalink(n.slug),a.setDescription(r.appUi.serpDescription),a.setUrl(n.permalink),a.setText(Hr((0,c.applyFilters)("rank_math_content",n.content))),a.setKeyword(t),a.setKeywords(e),a.setSchema(r.appData.schemas),(0,z.isUndefined)(n.featuredImage)||(a.setThumbnail(n.featuredImage.source_url),a.setThumbnailAltText(p.Helpers.removeDiacritics(n.featuredImage.alt_text))),!(0,z.isEmpty)((0,o.select)("rank-math-content-ai"))){var i=(0,o.select)("rank-math-content-ai").getData();a.setContentAI(i.score||!(0,z.isEmpty)(i.keyword))}return a}},{key:"registerRefresh",value:function(){var t=this;this.refresh=(0,z.debounce)((function(e){var r=Cr().getState();if(!1!==r.appUi.isLoaded){var n=r.appData.keywords.split(","),a=[];(0,c.doAction)("rank_math_"+e+"_refresh"),n.map((function(e,r){var i=t.getPaper(p.Helpers.removeDiacritics(e),n),u=0===r?rankMath.assessor.researchesTests:t.filterTests(t.getSecondaryKeywordTests());a.push(t.analyzer.analyzeSome(u,i).then((function(t){rankMathEditor.resultManager.update(i.getKeyword(),t,0===r),0===r&&(0,o.dispatch)("rank-math").updateAnalysisScore(rankMathEditor.resultManager.getScore(i.getKeyword()))}))),Promise.all(a).then((function(){(0,o.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 p.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 p.Helpers.removeDiacritics(e)}},{key:"getResearch",value:function(t){return this.analyzer.researcher.getResearch(t)}},{key:"filterTests",value:function(t){return(0,z.intersection)(t,rankMath.assessor.researchesTests)}}],r&&xr(e.prototype,r),n&&xr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Lr=zr;function Gr(t){return Gr="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},Gr(t)}function Br(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,(a=n.key,i=void 0,i=function(t,e){if("object"!==Gr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===Gr(i)?i:String(i)),n)}var a,i}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,c.addFilter)("rankMath_analysis_contentLength","rank-math",this.contentLength),(0,c.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,At.__)("Content is %1$d words long. Consider using at least 300 words.","rank-math"),tooltipText:(0,At.__)("Minimum recommended content length should be 300 words.","rank-math"),emptyContent:(0,At.sprintf)((0,At.__)("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,At.__)("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}}}}])&&Br(e.prototype,r),n&&Br(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 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,(a=n.key,i=void 0,i=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)}(a,"string"),"symbol"===$r(i)?i:String(i)),n)}var a,i}var Wr=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 p.ResultManager,this.assessor=new Lr(t),new Vr,(0,c.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"}}])&&qr(e.prototype,r),n&&qr(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 Jr(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 Xr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jr(Object(r),!0).forEach((function(e){Zr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yr(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,tn(n.key),n)}}function Zr(t,e,r){return(e=tn(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function tn(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 en=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Zr(this,"initialize",!1),this._data={id:!1,slug:!1,permalink:!1,content:!1,title:!1,excerpt:!1,featuredImage:!1},this.refresh=this.refresh.bind(this),this.savePost=this.savePost.bind(this),this.saveRedirection=this.saveRedirection.bind(this),this.saveSchemas=this.saveSchemas.bind(this),this.subscribeToElementor(),(0,c.addAction)("rank_math_elementor_before_save","rank-math",this.beforeSave),setTimeout(this.elementorPreviewLoaded.bind(this),5e3)}var e,r,n;return e=t,(r=[{key:"elementorPreviewLoaded",value:function(){var t=this;(0,c.addAction)("rank_math_data_changed","rank-math",(function(e){(0,z.includes)(["permalink","dirtyMetadata","score","schemas"],e)||t.activateSaveButton()})),(0,c.addAction)("rank_math_update_app_ui","rank-math",(function(e){"hasRedirect"===e&&t.activateSaveButton()}))}},{key:"activateSaveButton",value:function(){window.top.$e.internal("document/save/set-is-modified",{status:!0})}},{key:"collectGutenbergData",value:function(){return{id:this.getPostID(),slug:this.getSlug(),permalink:this.getPermalink(),content:this.getContent(),title:this.getTitle(),excerpt:this.getExcerpt(),featuredImage:this.getFeaturedImage()}}},{key:"getPostID",value:function(){return elementor.config.document.id}},{key:"getTitle",value:function(){return elementor.settings.page.model.get("post_title")}},{key:"getContent",value:function(){var t=this,e=[];return this.getContentArea().find(".elementor-widget-container").each((function(r,n){e.push(t.decodeEntities(i()(n).html()))})),e.join("")}},{key:"decodeEntities",value:function(t){return t?t=t.replace("–","-"):""}},{key:"getContentArea",value:function(){if(this._contentArea)return this._contentArea;var t=elementor.$preview.contents().find('[data-elementor-type="'+ElementorConfig.document.type+'"]');return t.length<1?i()("<div />"):(this._contentArea=t,t)}},{key:"getExcerpt",value:function(){return elementor.settings.page.model.get("post_excerpt")}},{key:"getPermalink",value:function(){return rankMath.is_front_page?rankMath.homeUrl+"/":this.getSlug()?rankMath.permalinkFormat.replace(/%(postname|pagename)%/,this.getSlug()).trimRight("/"):""}},{key:"getSlug",value:function(){return(0,We.safeDecodeURIComponent)((0,o.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){var t=elementor.settings.page.model.get("post_featured_image");if(!(0,z.isUndefined)(t)&&(t=""===t.id?0:parseInt(t.id),this.isValidMediaId(t))){var e=(0,o.select)("core").getMedia(t);if(!(0,z.isUndefined)(e))return e}}},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0<t}},{key:"subscribeToElementor",value:function(){(0,o.dispatch)("rank-math").updatePermalink(rankMath.postName),this.subscriber=(0,z.debounce)(this.refresh,500),(0,o.subscribe)(this.subscriber),elementor.settings.page.model.on("change",this.subscriber)}},{key:"beforeSave",value:function(t,e){window.rankMathDataCollector.savePost(),window.rankMathDataCollector.saveRedirection(),window.rankMathDataCollector.saveSchemas()}},{key:"refresh",value:function(){var t=Xr({},this._data);this._data=this.collectGutenbergData(),this.handleEditorChange(t),!(0,z.isEqual)(t,this._data)&&t.id&&elementor.channels.editor.trigger("status:change",!0)}},{key:"savePost",value:function(){var t=(0,o.select)("rank-math").getDirtyMetadata();(0,z.isEmpty)(t)||(Mt()({method:"POST",path:"rankmath/v1/updateMeta",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,meta:t,content:this.getContent()}}).then((function(t){(0,z.isString)(t.slug)&&(0,o.dispatch)("rank-math").updatePermalink(t.slug),(0,c.doAction)("rank_math_metadata_updated",t)})),(0,o.dispatch)("rank-math").resetDirtyMetadata())}},{key:"saveRedirection",value:function(){var t=(0,o.select)("rank-math").getRedirectionItem();(0,z.isEmpty)(t)||(t.objectID=this.getPostID(),t.redirectionSources=this.getPermalink(),Mt()({method:"POST",path:"rankmath/v1/updateRedirection",data:t}).then((function(t){"delete"===t.action?(0,o.dispatch)("rank-math").updateRedirection("redirectionID",0):"new"===t.action&&(0,o.dispatch)("rank-math").updateRedirection("redirectionID",t.id)})),(0,o.dispatch)("rank-math").resetRedirection())}},{key:"saveSchemas",value:function(){var t=(0,o.select)("rank-math").getSchemas();if(!(0,z.isEmpty)(t)&&(0,o.select)("rank-math").hasSchemaUpdated()){var e=(0,o.select)("rank-math").getEditSchemas();Mt()({method:"POST",path:"rankmath/v1/updateSchemas",data:{objectID:rankMath.objectID,objectType:rankMath.objectType,schemas:t}}).then((function(r){if((0,z.isEmpty)(r))(0,o.dispatch)("rank-math").updateSchemas(t);else{var n=Xr({},t),a=Xr({},e);(0,z.map)(r,(function(t,e){n["schema-"+t]=Xr({},n[e]),a["schema-"+t]=Xr({},a[e]),delete n[e],delete a[e]})),(0,o.dispatch)("rank-math").schemaUpdated(!1),(0,o.dispatch)("rank-math").updateSchemas(n),(0,o.dispatch)("rank-math").updateEditSchemas(a)}}))}}},{key:"handleEditorChange",value:function(t){var e=this,r={id:"handleIDChange",slug:"handleSlugChange",title:"handleTitleChange",excerpt:"handleExcerptChange",content:"handleContentChange",featuredImage:"handleFeaturedImageChange"};if((0,z.isInteger)(t.id))return this.initialize?void(0,z.forEach)(r,(function(r,n){e._data[n]!==t[n]&&e[r](e._data[n])})):(this.initialize=!0,(0,z.forEach)(r,(function(t,r){e[t](e._data[r])})),void rankMathEditor.refresh("init"));(0,o.dispatch)("rank-math").refreshResults()}},{key:"handleIDChange",value:function(t){(0,o.dispatch)("rank-math").updatePostID(t),(0,o.dispatch)("rank-math").toggleLoaded(!0)}},{key:"handleSlugChange",value:function(){rankMathEditor.refresh("permalink")}},{key:"handleTitleChange",value:function(t){d.setVariable("title",t),(0,o.dispatch)("rank-math").updateSerpTitle((0,o.select)("rank-math").getTitle()),rankMathEditor.refresh("title")}},{key:"handleExcerptChange",value:function(t){d.setVariable("excerpt",t),d.setVariable("excerpt_only",t),d.setVariable("wc_shortdesc",t),d.setVariable("seo_description",t),(0,o.dispatch)("rank-math").updateSerpDescription((0,o.select)("rank-math").getDescription())}},{key:"handleFeaturedImageChange",value:function(t){(0,o.dispatch)("rank-math").updateFeaturedImage(t),rankMathEditor.refresh("featuredImage")}},{key:"handleContentChange",value:function(){(0,o.dispatch)("rank-math").updateSerpDescription((0,o.select)("rank-math").getDescription()),rankMathEditor.refresh("content")}},{key:"getData",value:function(){return this._data}}])&&Yr(e.prototype,r),n&&Yr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),rn=Marionette,nn=t.n(rn),an=wp.element,on=nn().ItemView.extend({template:!1,id:"elementor-panel-rank-math",className:"rank-math-elementor rank-math-sidebar-panel",initialize:function(){i()("#elementor-panel-elements-search-area").hide()},onShow:function(){(0,an.render)((0,an.createElement)((0,c.applyFilters)("rank_math_app",{})),document.getElementById("elementor-panel-rank-math"))},onDestroy:function(){i()("#elementor-panel-elements-search-area").show()}}),un=function(t){return t["rank-math"]={region:t.global.region,view:on,options:{}},t};function cn(t){return cn="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},cn(t)}function pn(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,ln(n.key),n)}}function ln(t){var e=function(t,e){if("object"!==cn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==cn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===cn(e)?e:String(e)}var sn=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={},(r=ln(r="links"))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,this.onThemeChange=this.onThemeChange.bind(this),elementor.settings.editorPreferences.model.on("change",this.onThemeChange)}var e,r,n;return e=t,(r=[{key:"onThemeChange",value:function(t){var e=this,r=(0,z.get)(t,"changed.ui_theme",!1);!1!==r&&(0,z.forEach)(rankMath.elementorDarkMode,(function(t,n){var a=e.getLink(n+"-css",t);"light"!==r?a.attr("media","auto"===r?"(prefers-color-scheme: dark)":"").appendTo(elementorCommon.elements.$body):a.remove()}))}},{key:"getLink",value:function(t,e){return this.links[t]||this.createLink(t,e),this.links[t]}},{key:"createLink",value:function(t,e){this.links[t]=i()("#"+t).length?i()("#"+t):null,this.links[t]||(this.links[t]=i()("<link>",{id:t,rel:"stylesheet",href:e}))}}])&&pn(e.prototype,r),n&&pn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}(),fn=wp.components,dn=(0,fn.createSlotFill)("RankMathAfterEditor"),mn=dn.Fill,hn=dn.Slot,yn=function(t){var e=t.children,r=t.className;return wp.element.createElement(mn,null,wp.element.createElement(fn.PanelRow,{className:r},e))};yn.Slot=hn;var gn=yn,bn=(0,fn.createSlotFill)("RankMathAdvancedTab"),vn=bn.Fill,wn=bn.Slot,kn=function(t){var e=t.children,r=t.className;return wp.element.createElement(vn,null,wp.element.createElement(fn.PanelRow,{className:r},e))};kn.Slot=wn;var _n=kn,Sn=(0,fn.createSlotFill)("RankMathAfterFocusKeyword"),Dn=Sn.Fill,Tn=Sn.Slot,Pn=function(t){var e=t.children,r=t.className;return wp.element.createElement(Dn,null,wp.element.createElement("div",{className:r},e))};Pn.Slot=Tn;var In=Pn;function On(t){return On="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},On(t)}function An(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}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,(a=n.key,i=void 0,i=function(t,e){if("object"!==On(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==On(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(a,"string"),"symbol"===On(i)?i:String(i)),n)}var a,i}function Mn(t,e,r){return e&&En(t.prototype,e),r&&En(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function jn(){return jn="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=Fn(t)););return t}(t,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?t:r):a.value}},jn.apply(this,arguments)}function Un(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&&Cn(t,e)}function Cn(t,e){return Cn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Cn(t,e)}function Rn(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=Fn(t);if(e){var a=Fn(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===On(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 Fn(t){return Fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fn(t)}var Nn=function(){return u.MediaUpload},Hn=function(t){Un(r,t);var e=Rn(r);function r(){return An(this,r),e.apply(this,arguments)}return Mn(r,[{key:"setup",value:function(t){this.registerSlots=this.registerSlots.bind(this),(0,c.addAction)("rank_math_loaded","rank-math",this.registerSlots,0),(0,c.addFilter)("editor.MediaUpload","rank-math/replace-media-upload",Nn),jn(Fn(r.prototype),"setup",this).call(this,t)}},{key:"registerSlots",value:function(){this.RankMathAfterEditor=gn,this.RankMathAfterFocusKeyword=In,this.RankMathAdvancedTab=_n,this.slots={AfterEditor:gn,AfterFocusKeyword:In,AdvancedTab:_n}}},{key:"updatePermalink",value:function(t){(0,o.dispatch)("rank-math").updatePermalink(t)}},{key:"updatePermalinkSanitize",value:function(t){t=this.assessor.getResearch("slugify")(t),(0,o.dispatch)("rank-math").updatePermalink(t)}}]),r}(Wr);i()((function(){window.rankMathEditor=new Hn,window.rankMathGutenberg=window.rankMathEditor,new sn,elementor.once("preview:loaded",(function(){$e.components.get("panel/elements").addTab("rank-math",{title:"SEO"}),window.rankMathDataCollector=new en,window.rankMathEditor.setup(window.rankMathDataCollector),(0,o.dispatch)("rank-math").refreshResults()}))})),i()(window).on("elementor:init",(function(){elementor.hooks.addFilter("panel/elements/regionViews",un);var t=function(t){Un(r,$e.modules.hookUI.Before);var e=Rn(r);function r(){return An(this,r),e.apply(this,arguments)}return Mn(r,[{key:"getCommand",value:function(){return"document/save/save"}},{key:"getId",value:function(){return"custom-updater-before-save"}},{key:"getConditions",value:function(t){return!0}},{key:"apply",value:function(t,e){(0,c.doAction)("rank_math_elementor_before_save",t,e)}}]),r}();$e.hooks.registerUIBefore(new t)}))}();