!function(){var t={4184:function(t,e){var r;!function(){"use strict";var n={}.hasOwnProperty;function a(){for(var t=[],e=0;e2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e=(0,s.applyFilters)("rank_math_sanitize_data",e,t,r),null!==n&&(n=(0,s.applyFilters)("rank_math_sanitize_meta_value",n,t,r)),n=null===n?e:n,(0,s.doAction)("rank_math_data_changed",t,e,r),{type:"RANK_MATH_APP_DATA",key:t,value:e,metaKey:r,metaValue:n}}function R(t,e){return(0,s.doAction)("rank_math_update_app_ui",t,e),{type:"RANK_MATH_APP_UI",key:t,value:e}}function C(t){return x.setVariable("focuskw",t.split(",")[0]),rankMathEditor.refresh("keyword"),j("keywords",t,"rank_math_focus_keyword")}function B(t){return j("pillarContent",t,"rank_math_pillar_content",!0===t?"on":"off")}function U(t){return j("showScoreFrontend",t,"rank_math_dont_show_seo_score",!0===t?"off":"on")}function N(t){return j("score",t,"rank_math_seo_score")}function F(t){return j("canonicalUrl",t,"rank_math_canonical_url")}function L(t){return j("advancedRobots",t,"rank_math_advanced_robots")}function $(t){return j("robots",t,"rank_math_robots",Object.keys(t))}function H(t){return j("breadcrumbTitle",t,"rank_math_breadcrumb_title")}function K(){return j("dirtyMetadata",{})}function G(t){return j("facebookTitle",t,"rank_math_facebook_title")}function z(t){return j("facebookDescription",t,"rank_math_facebook_description")}function V(t){return j("facebookImage",t,"rank_math_facebook_image")}function q(t){return j("facebookImageID",t,"rank_math_facebook_image_id")}function Q(t){return j("facebookHasOverlay",t,"rank_math_facebook_enable_image_overlay",!0===t?"on":"off")}function W(t){return j("facebookImageOverlay",t,"rank_math_facebook_image_overlay")}function Y(t){return rankMath.objectID=t,j("postID",t)}function J(t){return j("permalink",t,"permalink")}function X(t){return j("title",t,"rank_math_title")}function Z(t){return j("description",t,"rank_math_description")}function tt(t){return j("featuredImage",t)}function et(t,e){return j("primaryTerm",parseInt(t),"rank_math_primary_"+e)}function rt(t,e){return j(t,e)}function nt(t){return R("redirectionItem",t)}function at(){return R("redirectionItem",{})}function it(t){return R("hasRedirect",t)}var ot=lodash,ut=document.createElement("div");function ct(t){return t&&"string"==typeof t&&(t=t.replace(/]*>([\S\s]*?)<\/script>/gim,"").replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gim,""),ut.innerHTML=t,t=ut.textContent,ut.textContent=""),t}var st=function(t,e){return t=(t=D.Helpers.cleanText(t)).replace(/\r?\n|\r/g," "),e?(0,ot.truncate)(t,{length:e,separator:" "}):t},lt=function(t){if((0,ot.isEmpty)(t))return"";t=D.Helpers.stripScript(t),t=D.Helpers.stripStyle(t),t=(0,ot.unescape)(t).replace(/\[caption[^\]]*\](.*)\[\/caption\]/g,"");var e=(0,ot.filter)(D.Helpers.matchParagraphs(t,!0,!0),(function(t){return""!==t.trim()}));if(!e.length)return"";var r=rankMathEditor.getPrimaryKeyword();if(""!==r){var n=(0,ot.filter)(e,(function(t){return(0,ot.includes)(t.toLowerCase(),r.toLowerCase())}));if(00&&void 0!==arguments[0]?arguments[0]:be,e=arguments.length>1?arguments[1]:void 0,r=de({},t.dirtyMetadata);return!1!==e.metaKey&&(r[e.metaKey]=e.metaValue),"RANK_MATH_APP_DATA"===e.type?"dirtyMetadata"===e.key?de(de({},t),{},{dirtyMetadata:e.value}):de(de({},t),{},ge(ge({},e.key,e.value),"dirtyMetadata",r)):t}function ke(t){return ke="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},ke(t)}function Se(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 _e(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:Pe,e=arguments.length>1?arguments[1]:void 0;return"RANK_MATH_APP_UI"===e.type?_e(_e({},t),{},Te({},e.key,e.value)):t}function Ie(t){return t.appData}function Ee(t){return t.appData.dirtyMetadata}function Oe(t){return t.appData.score}function Ae(t){return t.appData.keywords}function Me(t){return t.appData.pillarContent}function xe(t){return t.appData.robots}function je(t){return t.appData.advancedRobots}function Re(t){return t.appData.canonicalUrl}function Ce(t){return t.appData.breadcrumbTitle}function Be(t){return"todo"}function Ue(t){return t.appData.showScoreFrontend}function Ne(t){return t.appUi.isLoaded}function Fe(t){return t.appUi.selectedKeyword}function Le(t){return t.appUi.socialTab}function $e(t){return t.appUi.refreshResults}function He(t){return t.appUi.isPro}function Ke(t){return t.appUi.isDiviPageSettingsBarActive}function Ge(t){return t.appUi.isDiviRankMathModalActive}function ze(t){return t.appUi.highlightedParagraphs}function Ve(t){return t.appData.facebookTitle}function qe(t){return t.appData.facebookDescription}function Qe(t){return t.appData.facebookAuthor}function We(t){return t.appData.facebookImageID}function Ye(t){return t.appData.facebookImage}function Je(t){return t.appData.facebookHasOverlay}function Xe(t){return""!==t.appData.facebookImageOverlay?t.appData.facebookImageOverlay:"play"}function Ze(t){return t.appData.postID}function tr(t){return t.appData.title}function er(t){return t.appData.permalink}function rr(t){return t.appData.description}function nr(t){return t.appData.featuredImage}function ar(t){var e=t.appData.featuredImage;return'').concat(e.alt_text,'')}function ir(t){return t.appData.primaryTerm}function or(t){return t.appData.redirectionID}function ur(t){return t.appData.redirectionType}function cr(t){return t.appData.redirectionUrl}function sr(t){return t.appUi.redirectionItem}function lr(t){return t.appUi.hasRedirect}var pr=wp.url;function fr(t){return ct(t.appUi.serpTitle)}function hr(t){return(0,pr.safeDecodeURIComponent)(t.appUi.serpSlug)}function mr(t){return t.appUi.serpDescription}function dr(t){return t.appUi.isSnippetEditorOpen}function gr(t){return t.appUi.snippetPreviewType}function yr(t){return t.appUi.isSchemaEditorOpen}function vr(t){return t.appUi.isSchemaTemplatesOpen}function br(t){return t.appUi.schemaUpdated}function wr(t){return t.appData.schemas}function kr(t){return t.appUi.editSchemas}function Sr(t){return{id:t.appUi.editingSchemaId,data:t.appUi.editSchemas[t.appUi.editingSchemaId]}}function _r(t){return t.appData.schemas[t.appUi.editingSchemaId]}function Tr(t){return t.appUi.editorTab}function Pr(t){return t.appUi.templateTab}function Dr(t){return t.appData.twitterUseFacebook}function Ir(t){return t.appData.twitterCardType}function Er(t){return t.appData.twitterTitle}function Or(t){return t.appData.twitterDescription}function Ar(t){return t.appData.twitterAuthor}function Mr(t){return t.appData.twitterImageID}function xr(t){return t.appData.twitterImage}function jr(t){return t.appData.twitterHasOverlay}function Rr(t){return""!==t.appData.twitterImageOverlay?t.appData.twitterImageOverlay:"play"}function Cr(t){return t.appData.twitterAppDescription}function Br(t){return t.appData.twitterAppIphoneID}function Ur(t){return t.appData.twitterAppIphoneName}function Nr(t){return t.appData.twitterAppIphoneUrl}function Fr(t){return t.appData.twitterAppIpadID}function Lr(t){return t.appData.twitterAppIpadName}function $r(t){return t.appData.twitterAppIpadUrl}function Hr(t){return t.appData.twitterAppGoogleplayID}function Kr(t){return t.appData.twitterAppGoogleplayName}function Gr(t){return t.appData.twitterAppGoogleplayUrl}function zr(t){return t.appData.twitterAppCountry}function Vr(t){return t.appData.twitterPlayerUrl}function qr(t){return t.appData.twitterPlayerSize}function Qr(t){return t.appData.twitterPlayerStream}function Wr(t){return t.appData.twitterPlayerStreamCtype}function Yr(t){return t.appUi.keywordsData}function Jr(t){return t.appData.contentAIScore}var Xr=(0,o.registerStore)("rank-math",{reducer:(0,o.combineReducers)(e),selectors:n,actions:t});function Zr(){return Xr}var tn={"&":"&",""":'"',"'":"'"},en=/&(?:amp|quot|#(0+)?39);/g,rn=RegExp(en.source);var nn=function(t){return t&&rn.test(t)?t.replace(en,(function(t){return tn[t]||"'"})):t||""};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'+(0,Qt.__)("300 words","rank-math")+"")}}},{key:"contentLengthBoundary",value:function(){return{recommended:{boundary:299,score:8},belowRecommended:{boundary:200,score:5},low:{boundary:50,score:2}}}}])&&ln(e.prototype,r),n&&ln(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();function fn(t){return fn="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},fn(t)}function hn(t,e){for(var r=0;r=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;O(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function bn(t,e,r,n,a,i,o){try{var u=t[i](o),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,a)}function wn(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){bn(i,n,a,o,u,"next",t)}function u(t){bn(i,n,a,o,u,"throw",t)}o(void 0)}))}}function kn(t,e){for(var r=0;r");var t=this._etAppFrameElem.contentWindow.document,e=E()((0,ot.isNull)(t.querySelector("#theme-builder-area--post_content"))?t.querySelector("body"):t.querySelector("#theme-builder-area--post_content"));return e.length<1?E()("
"):e}},{key:"getExcerpt",value:function(){return this.etSettingsData.excerpt}},{key:"setExcerpt",value:function(t){this.etSettingsData.excerpt=t}},{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,pr.safeDecodeURIComponent)((0,o.select)("rank-math").getPermalink())}},{key:"getFeaturedImage",value:function(){if(this._featuredImage)return this._featuredImage;this.setFeaturedImage()}},{key:"setFeaturedImage",value:(c=wn(vn().mark((function t(e){return vn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==e){t.next=4;break}return t.next=3,this.fetchFeaturedImageId();case 3:e=t.sent;case 4:if(!this.isValidMediaId(e)||!e){t.next=10;break}return t.next=7,this.fetchWpMedia(e);case 7:this._featuredImage=t.sent,t.next=11;break;case 10:this._featuredImage=!1;case 11:case"end":return t.stop()}}),t,this)}))),function(t){return c.apply(this,arguments)})},{key:"fetchFeaturedImageId",value:(u=wn(vn().mark((function t(){var e,r=this;return vn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._featuredImageInProcess){t.next=2;break}return t.abrupt("return",this._featuredImage);case 2:return this._featuredImageInProcess=!0,e=null,t.next=6,i()({path:"/rankmath/v1/getFeaturedImageId",method:"POST",data:{postId:(0,ot.get)(ETBuilderBackendDynamic,"postId",0)}}).then((function(t){e=!!t.success&&t.featImgId,r._featuredImageInProcess=!1}));case 6:return t.abrupt("return",e);case 7:case"end":return t.stop()}}),t,this)}))),function(){return u.apply(this,arguments)})},{key:"fetchWpMedia",value:(a=wn(vn().mark((function t(e){var r;return vn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={},t.next=3,i()({path:"/wp/v2/media/".concat(e),method:"GET"}).then((function(t){return r=t}));case 3:return t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)}))),function(t){return a.apply(this,arguments)})},{key:"isValidMediaId",value:function(t){return"number"==typeof t&&0=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){u=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(u)throw i}}}}function xn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r1&&void 0!==arguments[1]?arguments[1]:"",r=["".concat(e,"-left"),"".concat(e,"-right"),"".concat(e,"-top"),"".concat(e,"-top-left"),"".concat(e,"-top-right"),"".concat(e,"-bottom"),"".concat(e,"-bottom-left"),"".concat(e,"-bottom-right")].join("|"),n=new RegExp("(".concat(r,")$"),"gim");t.removeClass((function(t,e){var r,a=[],i=Mn(e.split(" "));try{for(i.s();!(r=i.n()).done;){var o=r.value;n.test(o)&&a.push(o)}}catch(t){i.e(t)}finally{i.f()}return a}))},getEtSettingsBarPosition:function(){var t=this.$etPageSettingsBar;return t.hasClass("et-fb-page-settings-bar--horizontal")&&!t.hasClass("et-fb-page-settings-bar--top")?"bottom":t.hasClass("et-fb-page-settings-bar--top")&&!t.hasClass("et-fb-page-settings-bar--corner")?"top":t.hasClass("et-fb-page-settings-bar--bottom-corner")?t.hasClass("et-fb-page-settings-bar--left-corner")?"bottom-left":"bottom-right":t.hasClass("et-fb-page-settings-bar--top-corner")?t.hasClass("et-fb-page-settings-bar--left-corner")?"top-left":"top-right":t.hasClass("et-fb-page-settings-bar--vertical--right")?"right":t.hasClass("et-fb-page-settings-bar--vertical--left")?"left":""},hideModalOnOutsideClick:function(t){if((0,o.select)("rank-math").isDiviRankMathModalActive()){var e=".rank-math-rm-modal";E()(t).parents(e)||t.closest(".components-modal__screen-overlay.rank-math-modal-overlay")||t.closest(".rank-math-rm-modal-toggle-button")||t.contains(document.querySelector(e))||(0,o.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}}},Rn=(0,o.withSelect)((function(t){return{primaryTermId:t("rank-math").getPrimaryTermID()}}))((function(t){var e=t.taxonomySlug,r=t.primaryTermId,n=t.options;if(n.length<2||!e)return null;return wp.element.createElement(l.SelectControl,{className:"rank-math-primary-term-select",label:(0,Qt.__)("Select Primary Term","rank-math"),value:r,options:n,onChange:function(t){(0,o.dispatch)("rank-math").updatePrimaryTermID(parseInt(t),e)}})}));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 Bn(){Bn=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof y?e:y,o=Object.create(i.prototype),u=new A(n||[]);return a(o,"_invoke",{value:D(t,r,u)}),o}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var f="suspendedStart",h="suspendedYield",m="executing",d="completed",g={};function y(){}function v(){}function b(){}var w={};s(w,o,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(M([])));S&&S!==r&&n.call(S,o)&&(w=S);var _=b.prototype=y.prototype=Object.create(w);function T(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(a,i,o,u){var c=p(t[a],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==Cn(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,o,u)}),(function(t){r("throw",t,o,u)})):e.resolve(l).then((function(t){s.value=t,o(s)}),(function(t){return r("throw",t,o,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,n){function a(){return new e((function(e,a){r(t,n,e,a)}))}return i=i?i.then(a,a):a()}})}function D(e,r,n){var a=f;return function(i,o){if(a===m)throw new Error("Generator is already running");if(a===d){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var u=n.delegate;if(u){var c=I(u,n);if(c){if(c===g)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var s=p(e,r,n);if("normal"===s.type){if(a=n.done?d:h,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(a=d,n.method="throw",n.arg=s.arg)}}}function I(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,I(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function M(e){if(e||""===e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var a=-1,i=function r(){for(;++a=0;--i){var o=this.tryEntries[i],u=o.completion;if("root"===o.tryLoc)return a("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var a=n.arg;O(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:M(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},e}function Un(t,e,r,n,a,i,o){try{var u=t[i](o),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,a)}function Nn(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var i=t.apply(e,r);function o(t){Un(i,n,a,o,u,"next",t)}function u(t){Un(i,n,a,o,u,"throw",t)}o(void 0)}))}}function Fn(t,e){for(var r=0;rthis.maxAttempts)){t.next=8;break}return t.abrupt("return");case 8:this.cacheDom()?(this.renderContainer(),this.renderComponent(),this.bindEvents()):this.initRecursionTimer=setTimeout(this.init.bind(this),this.attemptInterval);case 10:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"cacheTaxonomyData",value:(a=Nn(Bn().mark((function t(){var e,r,n=this;return Bn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,ot.get)(rankMath,"assessor.primaryTaxonomy.name")||"",r=(0,ot.get)(ETBuilderBackendDynamic,"getTaxonomies",{}),this.primaryTaxonomyTerms=r[e]||[],t.next=4,i()({path:"/wp/v2/taxonomies"}).then((function(t){n.primaryTaxonomy=Object.keys(r).includes(e)&&t[e]?t[e]:{}}));case 4:this.hasPostPrimaryTaxonomySupport=!E().isEmptyObject(this.primaryTaxonomy),this.primaryTaxonomyValue=(0,ot.get)(ETBuilderBackendDynamic,"pageSettingsValues.et_pb_post_settings_".concat(this.primaryTaxonomy.rest_base),"");case 6:case"end":return t.stop()}}),t,this)}))),function(){return a.apply(this,arguments)})},{key:"cacheDom",value:function(){return this.$diviSettingsModal=E()(document).find(".et-fb-modal__page-settings"),!!this.$diviSettingsModal.length&&(this.$diviTermSettingInputs=this.$diviSettingsModal.find(".et-fb-option--".concat(this.primaryTaxonomy.rest_base)),this.$diviTermSettingArea=this.$diviTermSettingInputs.parents(".et-fb-form__group"),this.$diviTermSettingArea.length||(this.$diviTermSettingArea=this.workaroundForFalseDiviTaxonomySelector()),this.$PrimaryTermSelectContainer=E()('
'),!0)}},{key:"workaroundForFalseDiviTaxonomySelector",value:function(){var t=this.primaryTaxonomy.name.toLowerCase();return this.$diviSettingsModal.find(".et-fb-form__label-text").filter((function(e,r){return E()(r).text().toLowerCase()===t})).parents(".et-fb-form__group")}},{key:"renderContainer",value:function(){this.$diviTermSettingArea.after(this.$PrimaryTermSelectContainer)}},{key:"renderComponent",value:function(t){var e={taxonomySlug:this.primaryTaxonomy.slug,options:this.formatActiveTerms(t)};(0,c.render)((0,c.createElement)(Rn,e),this.$PrimaryTermSelectContainer[0])}},{key:"bindEvents",value:function(){var t=this;(0,s.addFilter)("et.builder.store.setting.update","rank-math",(function(e,r){return"et_pb_post_settings_".concat(t.primaryTaxonomy.rest_base)===r&&t.renderComponent(e),e}))}},{key:"formatActiveTerms",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.primaryTaxonomyValue;return this.primaryTaxonomyTerms.length&&e.trim()?e.split(",").map((function(e){var r=(0,ot.find)(t.primaryTaxonomyTerms,["term_id",parseInt(e)])||{};return{label:r.name,value:r.term_id}})):[]}}],r&&Fn(e.prototype,r),n&&Fn(e,n),Object.defineProperty(e,"prototype",{writable:!1}),t}();Ln(Hn,"initRecursionTimer",void 0),Ln(Hn,"attemptsRun",0),Ln(Hn,"maxAttempts",10),Ln(Hn,"attemptInterval",1e3);var Kn=["className","children"];function Gn(){return Gn=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}var Vn=function(t){var e=t.className,r=t.children,n=zn(t,Kn),a=In()("rank-math-rm-modal-button",e);return wp.element.createElement("button",Gn({type:"button",className:a},n),r)},qn=function(){return wp.element.createElement("div",{className:"et-fb-icon et-fb-icon--close",style:{fill:"rgb(255, 255, 255)",width:"28px",minWidth:"28px",height:"28px",margin:"-6px"}},wp.element.createElement("svg",{viewBox:"0 0 28 28",preserveAspectRatio:"xMidYMid meet",shapeRendering:"geometricPrecision"},wp.element.createElement("g",null,wp.element.createElement("path",{d:"M15.59 14l4.08-4.082a1.124 1.124 0 0 0-1.587-1.588L14 12.411 9.918 8.329A1.124 1.124 0 0 0 8.33 9.92L12.411 14l-4.082 4.082a1.124 1.124 0 0 0 1.59 1.589L14 15.589l4.082 4.082a1.124 1.124 0 0 0 1.589-1.59L15.589 14h.001z",fillRule:"evenodd"}))))},Qn=function(){var t=In()("rank-math-rm-modal-header-discard-button");return wp.element.createElement(Vn,{className:t,onClick:function(){(0,o.dispatch)("rank-math").toggleIsDiviRankMathModalActive(!1)}},wp.element.createElement(qn,null))},Wn=function(){var t=In()("rank-math-rm-modal-header");return wp.element.createElement("header",{className:t},wp.element.createElement("div",{className:"rank-math-rm-modal-header"},wp.element.createElement("div",{className:"rank-math-rm-modal-header-title"},"Rank Math SEO"),wp.element.createElement("ul",{className:"rank-math-rm-modal-header-options"},wp.element.createElement("li",{className:"rank-math-rm-modal-header-option"},wp.element.createElement(Qn,null)))))},Yn=function(t){var e=t.children,r=In()("rank-math-rm-modal-content","rank-math-sidebar-panel");return wp.element.createElement("div",{className:r},e)},Jn=(0,o.withSelect)((function(t){return{rmUiActive:(0,t("rank-math").isDiviRankMathModalActive)()}}))((function(t){var e=t.rmUiActive,r=In()("rank-math-rm-modal",{"rank-math-rm-modal-is-hidden":!e}),n=In()("rank-math-rm-modal-inner");return wp.element.createElement("div",{className:r},wp.element.createElement("div",{className:n},wp.element.createElement(Wn,null),wp.element.createElement(Yn,null,(0,s.applyFilters)("rank_math_app",{})())))})),Xn=(0,l.withFilters)("rankMath.diviAppModal")(Jn),Zn=function(){return wp.element.createElement(l.SlotFillProvider,null,wp.element.createElement("div",{className:"rank-math-rm-app"},wp.element.createElement(Xn,null)))};function ta(t){return ta="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},ta(t)}function ea(t,e){for(var r=0;r