403Webshell
Server IP : 65.109.86.83  /  Your IP : 216.73.217.84
Web Server : nginx/1.14.1
System : Linux libra 4.18.0-553.51.1.el8_10.x86_64 #1 SMP Wed Apr 30 20:24:04 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.3.31
Disable Function : exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/html/wp-content/plugins/thrive-visual-editor/editor/js/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins/thrive-visual-editor/editor/js/dist/editor.min.js
(()=>{var e,t={3865(e){e.exports={tcbShow(e="block"){return this.each(function(){this.style.display=e})},tcbHide(){return this.each(function(){this.style.display="none"})},tcbRemoveClass(e){return e=e.split(" "),this.each(function(){this.classList.remove.apply(this.classList,e)})},tcbAddClass(e){return e=e.split(" "),this.each(function(){this.classList.add.apply(this.classList,e)})},tcbHasClass(e,t=!1){return!!this.length&&(e=e.split(" "),t?e.some(e=>this[0].classList.contains(e)):e.every(e=>this[0].classList.contains(e)))},tcbToggleClass(e,t){let s=!1;return void 0!==t&&(s=t?"add":"remove"),this.each(function(){if(s)this.classList[s](e);else{const t=this.classList.contains(e)?"remove":"add";this.classList[t](e)}})}}},66579(e){!function(t){const s={dom_ready(){this.texts(),this.rows(),this.imageResize(),this.removePlaceholders(),this.removeIframeCustomStyles(),this.mediaDownloadCompatibility(),this.dataSelectors(),this.pluginConflicts(),this.removeDeprecated(),this.contactFormCompatibility(),this.browserCompatCss(),TVE.preventBrowserAutofill(TVE.Editor_Page.editor.find(".thrv-login-element,.thrv_lead_generation"))},onStylesheetLoaded(){if(TVE.CONST.landing_page){const e=TVE.CONST.default_styles.link.lp_selector.split(", ").map(e=>`${e}__extra__`).join(", ");Array.from(TVE.CSS_Rule_Cache.getRulesForSelector("#tcb_landing_page a")).forEach(t=>{const s=t.parentRule;if(s&&s.type===CSSRule.MEDIA_RULE){let i=null;t.selectorText.includes(".tve-state-hover")||t.selectorText.includes("tve_state_hover")?i=".tve-state-hover":t.selectorText.includes(":hover")?i=":hover":t.selectorText.match(/tcb-button-link\)$/g)&&(i=""),null!==i?TVE.CSS_Rule_Cache.copyCssRule(t,e.replace(/__extra__/g,i),!0):s.deleteRule(s.rule_index_by_selector(t.selectorText))}}),Array.from(TVE.CSS_Rule_Cache.getRulesForSelector("#tcb_landing_page .tcb-plain-text")).forEach(e=>{const t=e.parentRule;t&&t.type===CSSRule.MEDIA_RULE&&TVE.CSS_Rule_Cache.copyCssRule(e,TVE.CONST.default_styles.plaintext.lp_selector,!0)}),Array.from(TVE.CSS_Rule_Cache.getRulesForSelector("#tcb_landing_page p, #tcb_landing_page li")).forEach(e=>{const t=e.parentRule;t&&t.type===CSSRule.MEDIA_RULE&&(TVE.CSS_Rule_Cache.copyCssRule(e,TVE.CONST.default_styles.p.lp_selector,!1),TVE.CSS_Rule_Cache.copyCssRule(e,TVE.CONST.default_styles.li.lp_selector,!0))}),Array.from(TVE.CSS_Rule_Cache.getRulesForSelector("#tcb_landing_page ul, #tcb_landing_page ol")).forEach(e=>{const t=e.parentRule;t&&t.type===CSSRule.MEDIA_RULE&&TVE.CSS_Rule_Cache.copyCssRule(e,TVE.CONST.default_styles.ul.lp_selector,!0)}),Array.from(TVE.CSS_Rule_Cache.getRulesForSelector("#tcb_landing_page li")).forEach(e=>{const t=e.parentRule;!t||t.type!==CSSRule.MEDIA_RULE||e.selectorText.includes("strong")||e.selectorText.includes(TVE.CONST.default_styles.li.lp_selector)||TVE.CSS_Rule_Cache.copyCssRule(e,TVE.CONST.default_styles.li.lp_selector,!0)}),s.fixOldButtonsSelectors(),s.fixTcbAppliedColorVariable(TVE.stylesheet)}s.searchElement(),s.fixGalleryArrows()},onGlobalSheetLoaded(){TVE.CONST.landing_page&&s.fixTcbAppliedColorVariable(TVE.globalsheet)},fixTcbAppliedColorVariable(e){const t=e.cssRules.length;for(let s=0;s<t;s++){if(e.cssRules[s].type!==CSSRule.MEDIA_RULE)continue;const t=e.cssRules[s];for(let e,s=0;e=t.cssRules[s++];)if(e.cssText.includes(" color: var(")&&!e.cssText.includes(" --tcb-applied-color:var$(")){const t=e.style.getPropertyValue("color");e.style.setProperty("--tcb-applied-color",t.replace("var","var$"))}}},fixOldButtonsSelectors(){Array.from(TVE.CSS_Rule_Cache.getRulesForSelector(new RegExp(/\[data-css="tve-u-[0-9a-zA-Z]*"](:hover)?[a-z]? \.tcb-button-link,[ :a-z\(\)\#]*[data-css="tve-u-[0-9a-zA-Z]*"\](:hover)? button/,"g"))).forEach(e=>{const t=e.parentRule;if(t&&t.type===CSSRule.MEDIA_RULE){const t=e.selectorText.split(","),s=t[0].trim(),i=t[1].trim();let n="";TVE.inner_$(s.replace(":hover","")).length?n=s:TVE.inner_$(i.replace(":hover","")).length&&(n=i),n.length&&TVE.CSS_Rule_Cache.copyCssRule(e,n,!0)}})},mediaDownloadCompatibility(e){(e=e||t("#tve_editor")).find("audio.tcb-audio, video.tcb-responsive-video").each(function(e,s){s.getAttribute("controlslist")||t(s).closest(".thrv_audio,.thrv_responsive_video").attr("data-no-download","0")})},texts(e){(e=e||t("#tve_editor")).find(".thrv_text_element").not("div").removeClass("thrv_text_element"),e.find(".thrv-styled_list .thrv-inline-text").removeClass("thrv-inline-text").addClass("thrv-advanced-inline-text");const s=TVE.ELEM.text,i=TVE.ELEM.headings;let n=[TVE.TEXT_INLINE,".thrv_custom_html_shortcode *",".tve_wp_shortcode *",".thrive-shortcode-html *",".tve_scT > ul",".widget-title",".product_list_widget",".product-categories",".product-categories .children",".wp-caption-text",`.${TVE.PostList.constants.TCB_SHORTCODE_CLASS}`,".tcb-pagination *","#comments *",".tve-lg-dropdown-list",".thrive-dynamic-list *"];n=TVE.apply_filters("tcb.compat.not_wrappable",n);let r,o,a=e.find(s).not(n.join(", ")),l=t();for(;a.length;){for(l=r=a.first();r.next().is(s);)l=l.add(l.next()),r=r.next();a=a.not(l),o=1===l.length&&l.is(i),o?r.parents(TVE.TEXT_HEADINGS+","+TVE.TEXT_BLOCK).length||l.wrap('<div class="thrv_wrapper thrv_text_element"></div>'):r.closest(".thrv_text_element, .fr-element").length||l.wrapAll('<div class="thrv_wrapper thrv_text_element"></div>')}e.find(".thrv_text_element .thrv_text_element").children(0).unwrap(),a=e.find(".thrv_tw_qs_button span span"),a.addClass("thrv-inline-text tve_editable"),e.find(".thrv_text_element .thrv_heading").children().unwrap(),e.find(".thrv_bullets_shortcode").addClass("thrv_text_element"),e.find(".thrv_heading").addClass("thrv_text_element")},rows(e){(e=e||t("#tve_editor")).find(".tcb-flex-row.thrv_wrapper").each(function(e,s){const i=t(s);i.removeClass("thrv_wrapper"),i.wrap('<div class="thrv_wrapper thrv-columns"></div>')}),e.find(".tcb-flex-col").each(function(){const e=t(this),s=e.parent();e.children(".tcb-col").length||(e.children(".col-empty").remove(),e.children().not(".ui-resizable-handle").wrapAll('<div class="tcb-col"></div>')),s.hasClass("tve-flex-end")?s.addClass("tcb-flex-end").removeClass("tve-flex-end"):s.hasClass("tve-flex-center")?s.addClass("tcb-flex-center").removeClass("tve-flex-center"):s.hasClass("tve-flex-start")&&s.removeClass("tve-flex-start")})},insert_css_rule(e,t,s){for(let s,i=0;s=TVE.stylesheet.cssRules[i++];)if(s.selectorText===e){t=s.style.cssText+t,TVE.stylesheet.deleteRule(i);break}TVE.stylesheet.insertRule(`${e}{${t}}`,s)},get_css_rules(e){for(let t,s=0;t=TVE.stylesheet.cssRules[s++];)if(t.type===CSSRule.STYLE_RULE&&t.cssText&&t.selectorText&&-1!==t.selectorText.indexOf('data-tve-custom-colour="'+e))return t.cssText;return""},conditionText:e=>e.conditionText?e.conditionText:e.cssText.match(/@media(.+?)\{/)?RegExp.$1.trim():"",removePlaceholders:e=>((e=e||TVE.Editor_Page.editor).find(".tve-cb.tcb-parent-placeholder-empty").removeClass("tcb-parent-placeholder-empty").children(".tcb-replaceable-placeholder").remove(),e),removeIframeCustomStyles(){const e={height:"","min-height":""},t=()=>{TVE.main.$frame.css(e)};TVE.inner.window.addEventListener("load",t),TVE.inner.window.addEventListener("resize",t)},imageResize(e){(e=e||TVE.Editor_Page.editor).find("img.tve_image").css("width",""),e.find("img").each(function(){const e=this.getAttribute("data-init-width"),t=this.getAttribute("data-init-height");t&&this.setAttribute("height",t),e&&this.setAttribute("width",e)}),e.find(".tcb-image-gallery img").each(function(){if(!this.getAttribute("height")){const e=this.dataset.sizes;if(e)try{const t=JSON.parse(e);this.setAttribute("height",t.full.height)}catch(e){}}})},dataSelectors(){TVE.CONST.landing_page&&TVE.Editor_Page.editor.find(".thrv_header").each((e,t)=>{t.dataset.selector=`.thrv_symbol_${t.dataset.id}`})},pluginConflicts(e){(e=e||TVE.Editor_Page.editor).find('ins[data-adsbygoogle-status="done"]').removeAttr("data-adsbygoogle-status").empty()},removeDeprecated(){TVE.Editor_Page.editor.find(".thrv-login-element").removeAttr("data-element-name").find(".tar-login-elem-link").removeClass("tcb-no-delete tcb-no-clone"),TVE.Editor_Page.editor.find(".thrv-page-section").removeClass("tcb-no-delete tve_no_drag tcb-no-clone"),TVE.Editor_Page.editor.find(".tve-toggle-grid").addClass("tve-prevent-content-edit"),TVE.Editor_Page.editor.find(".thrv_toggle_content").removeClass("tve-prevent-content-edit"),TVE.Editor_Page.editor.find(".thrv-fill-counter .tve-fill-text-dynamic").attr("contenteditable",!1)},icons(e){TVE.inner.window.TCB_Front.icons.migrate(e)},searchElement(){TVE.Editor_Page.editor.find(".thrv-search-form:not(.thrv-sticky-search,.overlay-icon)").each((e,t)=>{const s=TVE.inner_$(t),i=s.attr("id");if(i){const e=`#${i.replace("tve-sf-","tve-sf-overlay-")} .tcb-sf-close-icon`;s.addClass("overlay-icon"),TVE.head_css_copy(`.thrv-search-form#${i} .tcb-sf-close-icon`,e,!0),new TVE.inner.window.TCB_Front.TARSearch(s,!0);const t=TVE.CSS_Rule_Cache.media_rule(TVE.main.responsive.desktop.media).style_by_selector(e,!1),n=t&&t.cssText?TVE.CSS_Rule_Cache.cssToObject(t.cssText):"";let r=!1;n&&(n.top&&parseInt(n.top)<0&&(n.top="0px",r=!0),n.right&&parseInt(n.right)<0&&(n.right="0px",r=!0),r&&TVE.write_css(e,n,TVE.main.responsive.desktop.media))}})},fixGalleryArrows(){[...TVE.CSS_Rule_Cache.getRulesForSelector(`${TVE.CONST.global_css_prefix}.tcb-carousel-arrow`)].forEach(e=>{const t=e.parentRule;if(t&&t.type===CSSRule.MEDIA_RULE){const t=e.selectorText.replace(TVE.CONST.global_css_prefix,`${TVE.CONST.global_css_prefix} `);TVE.CSS_Rule_Cache.copyCssRule(e,t,!0)}})},contactFormCompatibility(){TVE.Editor_Page.editor.find(".tve-cf-item label, .tve-cf-input").addClass("tcb-plain-text")},browserCompatCss(){const e=document.createElement("style");let t="";(TCB_Front.browser.safari||TCB_Front.browser.ios)&&TCB_Front.browser.version&&parseFloat(TCB_Front.browser.version)<16&&(t+=".slick-list{overflow-x: hidden;}"),e.type="text/css",e.id="tve-frontend-compat-css",e.appendChild(document.createTextNode(t)),document.head.appendChild(e)}};TVE.main.on("stylesheet_loaded",s.onStylesheetLoaded),TVE.main.on("globalsheet_loaded",s.onGlobalSheetLoaded),e.exports=s}(jQuery)},48443(e,t,s){!function(t){const i=".thrv_wrapper:not(.tve_tab_content, .thrv_toggle_content, .tve-up-item, .tve-progress-bar-wrapper *, .thrv_widget_menu *,.thrv_text_element,.tve_w_menu li,.canvas-mode,.thrv-styled_list *,.thrv-numbered_list *,.tve_no_drag,.symbol-edit-mode,.symbol-edit-mode *), .tve-draggable:not(.canvas-mode,.symbol-edit-mode), .tve_lp_header, .tve_lp_content, .tve_lp_footer, .thrv_text_element:not(.tve-no-drop) .fr-view > *,.thrv_text_element:not(.tve-no-drop) > *:not(.fr-wrapper), .toggle-edit-mode .thrv_toggle_item, .canvas-mode .tve_lg_radio_wrapper, .canvas-mode .tve-lg-dropdown-option, .tve_lg_checkbox:not(.tcb-lg-consent) .tve_lg_checkbox_wrapper, .tve-captcha-container",n=".thrv_page_section, .thrv-page-section, .tve-page-section-in, .thrv-columns.tcb-elem-placeholder, .tcb-window-w, .tve_lp_content, .tve_more_tag, .tcb-pricing-table-box-container > .tcb-flex-col > .tcb-col > *, .toggle-edit-mode .thrv_toggle_item, .canvas-mode .tve_lg_radio_wrapper, .canvas-mode .tve-lg-dropdown-option, .tve_lg_checkbox:not(.tcb-lg-consent) .tve_lg_checkbox_wrapper, .thrv_social_custom:not(.thrv_author_follow) .tve_s_item, .tve-ham-wrap > .tve_w_menu",r="tve_grabbed",o={},a=TVE.main.sidebar_extra.elements,l=s(54816),c=function(){return TVE.apply_filters("non_draggable",".tve_no_drag, .tve-prevent-content-edit *, .thrive_leads_shortcode *, .tve-progress-bar-wrapper *, .tve-user-profile .tve-dynamic-dropdown, .tve-toc-list .thrv-divider,.thrive_ultimatum_shortcode *, .tve_tab_content, .tve_faqB *, .tve_wp_shortcode *, .thrv_bullets_shortcode ul, .thrv_tw_qs *, .thrv_post_grid *, .thrv_custom_html_shortcode *, .thrv_widget *, .thrv_widget_menu *, .tve-ham-wrap, .tve_w_menu, .tve_w_menu *, .thrive-shortcode-html *, .tve_audio_container, .tve_responsive_video_container, .tcb-pagination-button, .tcb-pagination-number, .tcb-pagination-load-more-button, .thrv_toggle_content, .tve_s_icon, .tve_s_cnt, .tve_s_cnt_label, .tcb-image-gallery .tve_image_caption,.tcb-post-list-filter .tcb-filter-option ")},d=function(){return TVE.apply_filters("draggable_elements",".thrv_wrapper,.tve-draggable,.tve-cf-item,.tve-cf-submit,.tve_more_tag, .tve-drag-image, .toggle-edit-mode .thrv_toggle_item, .tve-up-item, .canvas-mode .tve_lg_radio_wrapper, .canvas-mode .tve-lg-dropdown-option, .tve_lg_checkbox:not(.tcb-lg-consent) .tve_lg_checkbox_wrapper, .tve-captcha-container")},h=function(){return TVE.apply_filters("droppable_targets",i)},_=function(){return TVE.apply_filters("constrain_drop",".thrv-contact-form, .thrv-button-group, .tve-form, .tcb-pagination, .thrv_lead_generation, .tve-toc-title, .tve_share_item, .tve-user-profile, .tcb-image-gallery, .tcb-post-list-filter, .tcb-filter-option")},p=function(e){return e.is(c())},u=function(e){if(!e.length)return!1;if("tve-drop-handle"===e[0].id)return!0;let t=TVE.apply_filters("allow_dragenter",e.is(h()),e,y);return t&&e.is(".tve_wp_shortcode *, .tve-prevent-content-edit *, .tve-no-dropzone *")&&(t=!1),t},g=function(e){return e.is(TVE.apply_filters("dropzone_elements",".tcb-replaceable-placeholder, .tve_scTC, .tve_colm, .tve_grt, .thrv_toggle_shortcode .tve_faqC, td:not(.tcb-parent-placeholder-empty), th:not(.tcb-parent-placeholder-empty), .tve_reveal_container:not(.tcb-parent-placeholder-empty), .tcb-col, #tve_editor, .tve-cb:not(.tcb-parent-placeholder-empty), .tve_lp_content, .tve-page-section-in, .tcb-dropzone-element, .tve_editor_main_content, .tcb-featured-list"))&&e.is(":not(.tve-prevent-content-edit *)")},f=function(e,t){return!!(e&&e.className&&e.className.indexOf)&&-1!==e.className.indexOf(t)},v=function(){const e=TVE.Editor_Page.editor.find(".tve_editor_main_content");return e.length?e:TVE.Editor_Page.editor},m={init(){E=TVE.inner.$document,T=t(document.body),b=t("html"),S=this.pageScroll("tcb_lightbox"===tve_path_params.post_type?"#tve-p-scroller":"body"),E.add(TVE.$document).on("keydown",this.keydown).on("keyup",this.keyup),TVE.Editor_Page.editor.on("mousedown",d(),this.mousedown)},insertFromParent(e){TVE.Editor_Page.enable(),TVE.Editor_Page.blur(),this.fetch(e,this.getAvailableTarget()),T.removeClass("tve-empty-placeholder"),TVE.do_action("tcb.element.insert",e)},keydown(e){!x&&e.ctrlKey&&(x=!0),!w&&e.altKey&&(w=!0),TVE.do_action("tcb.editor.keydown",e)},keyup(){x=!1,w=!1},mousedown(e){const s=t(e.currentTarget);if(e.stopPropagation(),TVE.state_manager.is_default()&&!TVE.Editor_Page.is_disabled()&&!p(s)&&(e.ctrlKey||e.metaKey||s.is("."+r))&&(e.ctrlKey||e.metaKey)&&!s.parents("."+r).length&&!s.find("."+r).length)return function(e){const t=TVE._type(e)===TVE.Components["multiple-select-mode"].getSelectedGroupType();TVE.FLAGS.is_multiple_styling&&!t||(e.hasClass(r)?e.removeAttr("draggable").removeClass(r):(TVE.ActiveElement&&TVE.ActiveElement.attr("draggable",!0).addClass(r),e.attr("draggable",!0).addClass(r)),TVE.main.toggle_navigation(!0),TVE.main.switch_menu_to("multiple_select_elements"),TVE.FLAGS.disable_menu_switch=!0,TVE.FLAGS.is_multiple_select=!0,TVE.Editor_Page.selection_manager.hide_all_icons(),(TVE.FLAGS.is_multiple_styling&&t||!TVE.FLAGS.is_multiple_styling)&&TVE.Editor_Page.focus_element(e),e.is(TVE.TEXT_ALL)&&(TVE.froala.force_focus(e),TVE.froala.hide_toolbars()),TVE.main.switch_menu_to("multiple_select_elements"),TVE.Components["multiple-select-mode"].update(),TVE.Components["multiple-select-mode"].openComponent())}(s),TVE.froala.hide_toolbars(),TVE.froala.editor&&TVE.froala.editor.events.trigger("blur"),TVE.Components["multiple-select-mode"].openComponent(),!1;e.ctrlKey||e.metaKey||s.is("."+r)||m.clearSelection()},clearSelection(){delete TVE.FLAGS.disable_menu_switch,delete TVE.FLAGS.is_multiple_select,delete TVE.FLAGS.is_multiple_styling,TVE.main.toggle_navigation(!1);const e=t("."+r);e.removeAttr("draggable").removeClass(`${r} tve_moving tve_styling`),e.find(".fr-element").attr("contenteditable",!0),TVE.Components["multiple-select-mode"].controls.selectedElementsType.$el.removeClass("tcb-disabled"),TVE.Components["multiple-select-mode"].controls.selectedElementsType.setValue("all"),TVE.$("#multiple-selection-settings button").each(function(e,t){t.classList.toggle("active","move"===t.getAttribute("data-type"))})},bodyClass(){if(!TVE.apply_filters("tcb_drag_change_body_class",!0))return!1;requestAnimationFrame(function(){T.tcbAddClass("tve-dragging"),S.onDragStart()})},handleMouseover(e){return!(!TVE.allow_drag()||!TVE.state_manager.is_default()&&!TVE.state_manager.is_expanded()||(t=e).is(c())||!t.is(d())||e.is("."+r));var t},hide_handle(){TVE.ElementEditIcons.$drag_handle&&TVE.ElementEditIcons.$drag_handle.hide(),TVE.ElementIcons.$drag_handle&&TVE.ElementIcons.$drag_handle.hide()},editorActions(e){TVE.do_action("drag_pre_init"),o.pageInit();const t=TVE.Editor_Page.editor.find(d()).not(c()).addClass("tve-draggable");if(!TVE.BROWSER.mozilla){let e=".thrv_text_element,.thrv_heading,.thrv-styled_list,.thrv-numbered_list,.thrv-plain-text";TVE.BROWSER.chrome&&(e+=",.thrv_responsive_video"),t.not(e).attr("draggable","true")}return TVE.Editor_Page.editor.find(h()).addClass("tve-droppable"),e?(A=e,TVE.Editor_Page.editor.off("dragenter.tcb dragleave.tcb dragover.tcb drop.tcb"),b.off("drop.tcb dragover.tcb"),A.off("dragenter.tcb dragleave.tcb dragover.tcb drop.tcb").add(o.$el).on("dragenter.tcb",this.dragenter).on("dragleave.tcb",this.dragleave).on("dragover.tcb",this.dragover).on("drop.tcb",this.drop)):(A&&A.off("dragenter.tcb dragleave.tcb dragover.tcb drop.tcb"),A=TVE.Editor_Page.editor,A.add(o.$el).off("dragenter.tcb dragleave.tcb dragover.tcb drop.tcb").on("dragenter.tcb",this.dragenter).on("dragleave.tcb",this.dragleave).on("dragover.tcb",this.dragover).on("drop.tcb",this.drop),T.off("dragstart.tcb").on("dragstart.tcb",".tve-drag-handle,"+d(),this.dragstart).off("dragend.tcb").on("dragend.tcb",".tve-drag-handle,"+d(),this.dragend),b.off("drop.tcb").on("drop.tcb",this.drop).off("dragover.tcb").on("dragover.tcb",this.dragover_body)),this.bindColumnsResize(),TVE.do_action("tcb.editorActions.init",A),this.refresh(A)},getAvailableTarget(){let e,s=t(".edit_mode");if(o.data("dir","bottom"),0===s.length){s=TVE.Editor_Page.editor.find(".tve_editor_main_content").first(),s.length||(s=TVE.Editor_Page.editor),o.data("dir","mid"),e=s.children().last(),e.length&&(s=e,o.data("dir","bottom")),s=TVE.apply_filters("tcb.get_dropzone_target",s);const i=TVE.inner.$window.scrollTop();s.offset().top+s.height()>TVE.inner.$window.height()+i&&t("html,body").animate({scrollTop:s.offset().top+s.height()})}return o.data("tt",s),s},dragstart(e){if(V=t("#tcb-drag-img")[0],TVE.apply_filters("tcb.drag.disable",function(){if(TVE.state_manager.is_hover())return!0;if("desktop"!==TVE.main.device)return!0;const e=A&&A.is(".canvas-mode");return"disabled"===TVE.Editor_Page.STATE&&!e}(),t(e.target)))return!1;if(TVE.froala.editor&&TVE.froala.editor.core.hasFocus()&&!t(e.target).is(".tve-froala.tve_grabbed"))return!1;if(y=TVE.apply_filters("tve.dragged.element",t(e.currentTarget)),y.hasClass("tve-drag-handle")&&(y=m.getDraggedTarget(y)),p(y))return y=null,!1;y=y.is(".tve_grabbed")?t(".tve_grabbed"):y,y.parent().is("a")&&(y=y.parent()),TVE.state(TVE.STATE_DRAG),TVE.froala.disable(y),y.addClass("tve-dragged").removeClass("active_delete active_duplicate"),m.bodyClass(),e.stopPropagation(),e.originalEvent.dataTransfer.setData("text/plain",""),e.originalEvent.dataTransfer.setDragImage(V,25,-25),y.is(n)&&(o.forceLimitVertical=!0),TVE.FLAGS.$dragged_element=y,TVE.FLAGS.$dragged_element_parent=y.parent(),TVE.do_action("tcb.dragstart",y);const s=_(),i=y.closest(s);(0===i.length||y.is(s))&&t(s).addClass("tve-no-drop-inside"),C=!y.is(s)&&i.length>0?i:null},mainDragStart(e){if(TVE.state(TVE.STATE_DRAG),t(_()).addClass("tve-no-drop-inside"),m.bodyClass(),e.static_element){const t=e.static_element;t.length&&t.children().first().is(n)&&(o.forceLimitVertical=!0)}TVE.FLAGS.$dragged_element=e,TVE.do_action("tcb.dragstart.main",e)},dragend(e){if(TVE.state(TVE.STATE_DEFAULT),e||!TVE.FLAGS.$dragged_over){if(T.removeClass("tve-dragging"),t(".tve-dragged").removeClass("tve-dragged"),t(".tve-no-drop-inside").removeClass("tve-no-drop-inside"),y=null,C=null,R=null,o.reset(),S.hide(),void 0!==e&&!0===e&&(a.dragged_elem=null),TVE.FLAGS.$dragged_element&&TVE.FLAGS.$dragged_element.jquery){let e=TVE.FLAGS.$dragged_element.parent();e.hasClass("tcb-clear")&&(e=e.parent()),e.hasClass("tcb-replaceable-placeholder")&&(e.parent().removeClass("tcb-parent-placeholder-empty"),e.replaceWith(TVE.FLAGS.$dragged_element),TVE.do_action("tcb.contentbox_placeholder.render",TVE.FLAGS.$dragged_element.parent()))}TVE.FLAGS.$dragged_element_parent&&TVE.main.trigger("after-element-removed",TVE.FLAGS.$dragged_element_parent),TVE.do_action("tcb.dragend"),delete TVE.FLAGS.$dragged_element,delete TVE.FLAGS.$dragged_element_parent}},dragenter(e){if(!y&&!a.dragged_elem||"tve-drop-handle"===e.target.id)return;const s=TVE.apply_filters("tcb.dragenter.bubble","",e,y||a.dragged_elem.static_element);if("boolean"==typeof s)return s;if(o.limitVertical=o.forceLimitVertical,o.data("append",!1),"tve-drop-handle"===e.target.id)return m.cancelDragleave=!0,!1;if(!y||e.target!==y[0]&&!t.contains(y[0],e.target)){if(R=TVE.apply_filters("tcb.dragenter",t(e.target),e),o.forceInnerDrop=!(!R.length||!R.is(TVE.apply_filters("only_inner_drop",".thrv_toggle_content .tve-cb, .tve_tab_content .tve-cb, .tve-toc .tve-toc-content, .canvas-mode .tve-lg-dropdown-list, .tve-only-inner-drop"))),e.originalEvent.dataTransfer.dropEffect="copy",delete o.FORBID_MIDDLE,function(){const e=R.is(".thrv_text_element *")&&R.closest(".thrv_text_element").parent().is(TVE.Editor_Page.editor);return y&&y.is(".thrv-page-section, .tcb-window-width")&&!e||a.dragged_elem&&["section","block"].includes(a.dragged_elem.type)&&!e}()){const e=v();R=R.closest(e.children(i)),R.length?o.FORBID_MIDDLE=!0:R=e}if("tve_editor"===e.target.id){const t=TVE.Editor_Page.editor.children(i);e.pageY<TVE.Editor_Page.editor.offset().top+30&&t.length&&(1===t.length&&"absolute"===t.css("position")||(R=t.first()))}delete o.dropzoneElement;{const e=R.children(h());if(g(R)&&(0===e.length||1===e.length&&"absolute"===e.css("position")))return function(e){const t=e[0].classList;let s=t.contains("tve-page-section-in")||t.contains("tve-cb")||t.contains("tve_reveal_container");return s=TVE.apply_filters("tcb.allow_drop_near",s,e),s}(R)?(o.dropzoneElement=!0,R.is(n)&&(o.limitVertical=!0)):o.positionMid(R),!1;!o.forceInnerDrop&&R.children(h()).length<2&&!R.is(".thrv_wrapper.thrv_lead_generation")&&(R=R.closest(h()))}if(!u(R)){const s=R.parents(h()).first();return s.length&&t.contains(TVE.Editor_Page.editor,s)?(e.target=s[0],R=s,s.trigger(e),!1):void(R=null)}return o.lastDir=null,e.preventDefault(),R.is(n)&&(o.limitVertical=!0),TVE.FLAGS.$dragged_over=R,o.canPositionMid=!o.FORBID_MIDDLE&&!f(R[0],"thrv_text_element")&&g(R)&&0===R.children(i).length,!1}R=null},dragover(e){var s;if(e.preventDefault(),R&&("tve-drop-handle"!==(s=R)[0].id&&u(s)||o.dropzoneElement)&&!(y&&t.contains(y[0],R[0])||C&&0===C.find(R).length))return o.position(R,e),e.originalEvent.dataTransfer.dropEffect="copy",TVE.do_action("tcb.dragover",R,o),!1},dragover_body(e){if(TVE.do_action("tcb.dragover_body",e),o&&o.data("tt"))return!1},dragleave:()=>(m.cancelDragleave?delete m.cancelDragleave:o.lastDir=null,!1),drop:e=>(e.preventDefault(),e.stopPropagation(),!(!a.dragged_elem&&!y||!o.data("tt")||!o.data("tt")[0])&&(!!TVE.apply_filters("allow_drop",!0,[a.dragged_elem||y,o])&&(y&&t.contains(y[0],o.data("tt")[0])?void 0:(T.removeClass("tve-dragging tve-empty-placeholder"),y&&y.removeClass("tve-dragged"),o.hide(),S.hide(),a.dragged_elem?m.fetch(a.dragged_elem,o.data("tt")):(!0!==w||TVE.main.EditMode.in_edit()||(y=y.clone()),m.insert(y,o.data("tt"))),TVE.do_action("tcb.element.dropped",{$source:a.dragged_elem?a.dragged_elem.static_element:y,$destination:o.data("tt")}),delete TVE.FLAGS.$dragged_over,y=null,m.dragend(),!1)))),bindDraggable(e=TVE.Editor_Page.editor){const t=e.add(e.find(d())).filter(d()).not(c()).addClass("tve-draggable");TVE.BROWSER.mozilla||t.not(".thrv_text_element,.thrv_heading,.thrv-styled_list,.thrv-numbered_list").attr("draggable","true"),e.add(e.find(h())).filter(h()).addClass("tve-droppable"),this.bindColumnsResize(e)},bindColumnsResize(e=TVE.Editor_Page.editor){e.find(".thrv-columns").addBack(".thrv-columns").each((e,t)=>{if("undefined"!=typeof ResizeObserver){const e=TVE.inner_$(t);if(!e.data("tcb-col-resize")){const s=new ResizeObserver(TVE._.debounce(()=>{const s=e.outerWidth();if(s!==Number(e.tcbCss("--tcb-col-el-width"))&&"desktop"===TVE.main.device){const i=e.find(".tcb-flex-col.column-fixed-width");i.length&&i.each((e,t)=>{TVE.Components.column.fixColumnAfterResize(TVE.inner_$(t))}),t.style.setProperty("--tcb-col-el-width",s)}},20));t.style.setProperty("--tcb-col-el-width",e.outerWidth()),s.observe(t),e.data("tcb-col-resize",s)}}})},get_resize_class:()=>"tcb-resized",refresh(e=TVE.Editor_Page.editor){TVE.BROWSER.mozilla||e.find("a,img").not(d()).attr("draggable","false"),e.find("a.tcb-button-link").attr("draggable","false"),O.bind(e),t("#tve-drag-clone").remove(),v().addClass("tve_empty_dropzone")},fetch(e,t){if(!1===this.beforeFetch(e,t))return!1;t=TVE.apply_filters("tcb.change_target",t,o);const s=e.type;if(TVE.renderers[s])return m.insert(TVE.renderers[s].render_default(t),t,!1,!1,!0),!0;const i=TVE.main.static_element(s);if(i.length<=0)return!1;const n=TVE.apply_filters("tcb.drag.fetch.static_element",i.first().clone(),e);return n.find(".tve_countdown_timer_evergreen").attr("data-id","evergreen_"+Math.floor(1e4*Math.random())),m.insert(n.html(),t,!1,!1,!0),!0},beforeFetch(e,t){let s=!0;return e.data&&e.data.usertpl?(this.loadTemplate(e.data.key,t),s=!1):e.type&&(TVE.main.trigger("insert_element",e),e.prevent_insert&&(s=!1)),s},afterFetch(e){e.hasClass("thrv_content_container_shortcode")?e.parent().addClass("tve_clearfix"):e.hasClass("thrv_countdown_timer")?e.hasClass("tve_countdown_timer_evergreen")?e.tve_countdown_timer_evergreen().update():e.tve_countdown_timer().update():e.hasClass("thrv_social_default")&&TVE_Content_Builder.social.onDefaultInsert(e);const t=e.parent();t.hasClass("tcb-replaceable-placeholder")&&(t.parent().removeClass("tcb-parent-placeholder-empty"),t.replaceWith(e)),TVE.apply_filters("element_drop",e)},insert(e,s,i,n,r){i=void 0!==i&&i,n=void 0!==n&&n,TVE.Editor_Page.before_action(),TVE.Editor_Page.disable(),r&&!TVE.state_manager.is_default()&&TVE.state_manager.change("default",!0);const a=TVE.apply_filters("tcb.drag.element_to_insert",t(e),s,i,n,r);let l=a;return l.data("focus-after-insert")&&(l=l.data("focus-after-insert"),l.removeData("focus-after-insert")),i?s.html(a):n?s.replaceWith(a):this.insertNear(a,s,o.data("dir")),this.bindDraggable(a),void 0!==r&&r&&m.afterFetch(l),m.afterDrop(a,s,o.data("dir")),setTimeout(function(){TVE.Editor_Page.after_action(),m.refresh(),l.hasClass("tcb-elem-placeholder")?l.children(".tcb-inline-placeholder-action").first().trigger("click"):r&&(l.is(TVE.TEXT_ALL)?TVE.froala.force_focus(l):TVE.Editor_Page.selection_manager.select_element(l))},400),TVE.prevent_blur||(TVE.Editor_Page.enable(),TVE.Editor_Page.blur()),TVE.Editor_Page.checkEmptyEditor(),TVE.do_action("tcb.after-insert",a,s),a},afterDrop(e,s,i){const n=e[0];if(f(n,"thrv_social_default"))TVE_Content_Builder.social.onDefaultDrop(e);else if(!f(n,"tcb-window-width")){if(TCB_Front.resizePageSection(),TVE.do_action("tcb_after_element_drop",e,s,i),TVE.ActiveElement&&TVE.ActiveElement.hasClass("tve-state-hover")){const e=t.Event("keyup.state_cancel",{which:27});TVE.inner.$body.trigger(e)}O.resizeColumnsAfterDrag(e)}},insertNear(e,s,i){const n=e[0]===s[0];let r;if(s=TVE.apply_filters("tve.insert.near.target",s,i),e.parent().hasClass("tcb-clear")&&(e=e.parent()),s.parent().hasClass("tcb-clear")&&(s=s.parent()),y&&(r=e.parent()),s.is(".thrv_text_element *")){let e=s.closest(".thrv_text_element"),i=".thrv_text_element";const n=s.prevAll(),r=s.nextAll(),a=e.attr("data-css"),l=a?`data-css="${a}"`:"",c=e.parent();let d=`<div class="thrv_wrapper thrv_text_element" ${l}></div>`;c.hasClass("tcb-clear")&&(d=`<div class="tcb-clear" data-css="${c.attr("data-css")}">${d}</div>`,i=".tcb-clear",e=c),"top"===o.data("dir")&&n.length?(t(n.get().reverse()).wrapAll(d),e.before(n.closest(i))):"bottom"===o.data("dir")&&r.length&&(r.wrapAll(d),e.after(r.closest(i))),s=e}const a=e.find("a[href]").length||e.is("a")||e.parent().is("a");if("mid"!==i&&(s.parent("a[href]").length&&(s=s.parent()),s.parent().closest("a[href]").length&&a))return this.preventDrop(s);switch(i=TVE.apply_filters("tve.drag.position.insert",i,e,s)){case"mid":if(n)return;if(s.closest("a[href]").length&&a)return this.preventDrop(s);s.append(e);break;case"top":if(n)return;s.before(e);break;case"bottom":if(n)return;s.after(e);break;case"right":case"left":let t,r;const o=e.parent();if(n&&1===o.children().length)return;if(f(s[0],"thrv-columns"))r=(s=s.find(".tcb-flex-row").first()).children(".tcb-flex-col")["right"===i?"last":"first"](),t="right"===i?"after":"before";else if(f(s[0].parentNode.parentNode,"tcb-flex-col"))r=s.closest(".tcb-flex-col"),t="right"===i?"after":"before";else{if(n)return;const e=s.next(".tcb-clear");s.wrap('<div class="thrv_wrapper thrv-columns tve-draggable"><div class="tcb-flex-row v-2"></div></div>'),s.wrap('<div class="tcb-flex-col"></div>').wrap('<div class="tcb-col"></div>'),t="right"===i?"append":"prepend",r=s.closest(".tcb-flex-row"),e.length&&s.after(e)}e.wrapAll('<div class="tcb-flex-col"></div>').wrapAll('<div class="tcb-col"></div>');const l=s.closest(".tcb-flex-row");r[t](e.closest(".tcb-flex-col")),l.hasClass("tcb-resized")?(l.removeClass("tcb-resized"),l.children().head_css({"max-width":""},"_ALL")):-1!==l[0].className.search("tve-flex-wrap-[d|t|m](?!-)")&&e.parent().head_css_copy(r),l.children().removeClass("c-25 c-33 c-50 c-66 c-75"),TVE.do_action("tcb.columns_rendered_after_insert",s,e)}e.addClass("tve-dropped"),setTimeout(function(){e.removeClass("tve-dropped")},200),this.ensureColumnPlaceholder(r),this.rowClass(e.parents(".tcb-flex-row").first()),this.bindDraggable(e)},preventDrop(e){const t=e.closest("a[href]").children().first(),s=TVE.t.warning_link_inside_link.split("##split##");TVE.page_message(s[0]+'<strong>"'+TVE.get_element_name(t)+'"</strong>'+s[1],!0,1e4)},afterClone(e,t){this.bindDraggable(t),t.hasClass("thrv_social_default")&&TVE_Content_Builder.social.onDefaultDrop(t),this.refresh(),TVE.main.trigger("after-element-cloned",e,t)},afterRemove(e){TVE.apply_filters("tcb.allow_remove_parent",e.is(".thrv-content-block, .thrv-styled_list, .thrv-numbered_list")&&0===e.find(l.get("mouseover")).length,e)?e.remove():(m.ensureColumnPlaceholder(e),0===e[0].children.length&&(e[0].innerHTML=e[0].innerHTML.trim()),TVE.main.trigger("after-element-removed",e))},ensureColumnPlaceholder(e){e&&e.length&&f(e[0],"tcb-flex-col")&&0===e.children(".tcb-col").length&&(e.children().not(".ui-resizable-handle").wrapAll('<div class="tcb-col"></div>'),this.rowClass(e.parent(),!0))},removeColumn(e){let t=e.parent();const s=e.siblings().removeClass("c-25 c-33 c-50 c-66 c-75");e.is("a.tcb-col")&&(t=e.closest(".tcb-flex-row"),e=e.closest(".tcb-flex-col")),TVE.do_action("tcb.column.before_remove",e),e.remove(),0!==s.length?(f(t[0],"tcb-resized")&&(t.removeClass("tcb-resized"),s.head_css({"max-width":""},"_ALL")),this.rowClass(t)):t.parent().remove()},rowClass(e,t){if(!e||!e.jquery)return;t=void 0!==t&&t;const s=e.children().length;e.parent().toggleClass("tcb-row-empty",s===e.find(".tcb-flex-col > .tcb-col:empty").children().length),t||(e.removeClass(function(e,t){return t.split(" ").filter(function(e){return-1!==e.indexOf("tcb--cols--")}).join(" ")}).addClass("tcb--cols--"+s),s>10&&e.addClass("tcb--cols--high"),this.resizeImages(e))},resizeImages(e){e.find(".tve_image_caption").each(function(){const e=parseInt(this.style.width);if(isNaN(e))return;const s=t(this),i=s.width();e>i&&(s.css("width",i+"px"),s.find(".tve_image").css("width",i+"px"))})},loadTemplate(e,s){s.addClass("tve-loading"),TVE.ajax("load_content_template","post",{template_key:e}).done(async function(e){e=TVE.apply_filters("tcb.content_templates.data",e,s),TVE.main.overlay(),e.onResponseFn&&"function"==typeof e.onResponseFn&&await e.onResponseFn(e);let i=TVE.apply_filters("tcb_insert_content_template",t(e.html_code.replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("\x3c!--svg--\x3e","</svg>")));i=TVE.Editor_Page.content_manager.process_saved_template(e.css_code,i,e.media_css,e.imports,!1,e.inline_rules);const n=m.insert(i,s,!1,!0);TVE.apply_filters("tcb.insert_content_template.should_fetch_data",!1,n)||TVE.Views.Components.Decoration.fixDecorationIds(n),TVE.do_action("tcb.insert_content_template",n,e),TVE.do_action("tcb.new-editor-content",n,"content_template"),TVE.main.overlay(!0)}).always(function(){s.removeClass("tve-loading")})},pageScroll(e="body"){const s=t('<div id="tve_page_scroller_top" data-dir="top" class="tve_window_drag_scroll tve_scroll_hide"></div><div id="tve_page_scroller_bottom" data-dir="bottom" class="tve_window_drag_scroll"></div>').appendTo(e),i=s.filter('[data-dir="top"]'),n=s.filter('[data-dir="bottom"]'),r=s.height(),o="body"===e?TVE.inner.$window:t(e);let a,l,c=TVE.inner.$body.height();function d(e){i.toggleClass("tve_scroll_hide",e<1),n.toggleClass("tve_scroll_hide",e+TVE.inner.$window.height()>=c-79)}return s.on("dragenter",function(){a=this.dataset.dir;const e=this.getBoundingClientRect();l=e["top"===a?"bottom":"top"],this.classList.add("tve_drag_hover"),c=TVE.inner.$body.height()}).on("dragover",TVE._.throttle(e=>{const t=Math.abs(e.clientY-l)/r,s=Math.max(5,240*Math.pow(t,4)),i=o.scrollTop()+("top"===a?-1:1)*s;o.scrollTop(i),d(i)},20)).on("dragleave",e=>e.currentTarget.classList.remove("tve_drag_hover")),{onDragStart(){d(o.scrollTop())},hide(){s.removeClass("tve_drag_hover tve_scroll_hide")}}},getSelectionType(e){let s=!1;return!!e.length&&(e.each(function(){return!1===s?(s=t(this).data("tve-el-type"),!0):s!==t(this).data("tve-el-type")?(s=!1,!1):void 0}),s)},positionResizables(e,t){O.positionHandles(e,t)},bind_element(e){this.bindDraggable(e),O.bind(e)},getDraggedTarget(e){let t=TVE.ElementIcons.$drag_handle;return t.is(e)||(t=TVE.ElementEditIcons.$drag_handle),t.data("el")}};let E,T,b,V,y=null,C=null,S=null,x=!1,w=!1,R=null,A=null;const O={positionHandles(e,t){void 0===t&&(t=parseInt(e.children(".tcb-flex-col").first().css("paddingLeft")));const s=t>=6?(t-6)/2+"px":0;e.find("> .tcb-flex-col > .ui-resizable-handle").css("padding","0 "+s+" 0 "+s).css("marginLeft",0===s?"-3px":"").css("zIndex",100)},resizeColumnsAfterDrag(e){if(e&&e.hasClass("thrv-columns")&&e.find(".column-fixed-width").length){const t=e.outerWidth();let s=0,i=0;if(e.find(".tcb-flex-col:not(.column-fixed-width)").each((e,t)=>{s+=TVE.inner_$(t).outerWidth()}),e.find(".column-fixed-width").each((e,t)=>{i+=TVE.inner_$(t).outerWidth()}),t-s>i){const n=t-s-i,r=e.find(".tcb-flex-col:not(.column-fixed-width)").outerWidth()+n;e.find(".tcb-flex-col:not(.column-fixed-width)").head_css({"max-width":r/t*100+"%"})}}},bind(e=TVE.Editor_Page.editor){const s=t("<span>",{class:"ui-resize-left"}),i=t("<span>",{class:"ui-resize-right"}),n=e.find(".tcb-flex-col");let r,o,a,l,c,d={},h={},_=15,p=null;n.find(".ui-resizable-handle").remove(),n.each(function(){const e=t(this);e.data("ui-resizable")&&(e.resizable("destroy"),e.removeData("ui-resizable"))}),n.resizable({handles:"e",start(e,n){TVE.FLAGS.drag=!0,TVE.ElementEditIcons.toggle(!1),TVE.Editor_Page.before_action(),TVE.Editor_Page.editor.addClass("tcb-resizing"),o=n.element.parent(),r=o.width();const u=n.element.children(".ui-resizable-handle");a=o.children(".tcb-flex-col"),o.hasClass("tcb-resized")||(a.each(function(){const e=t(this),s=e.hasClass("column-fixed-width");e.head_css({"max-width":s?e.outerWidth()+"px":e.outerWidth()/r*100+"%"})}),o.addClass("tcb-resized")),o.addClass("tcb-resizing"),u.before(s),u.after(i),_=parseInt(n.element.css("padding-left")),h={left_column:n.element},o.hasClass(`tcb-row-reversed-${TVE.main.device}`)?h.right_column=n.element.prev():h.right_column=n.element.next(),d={elem:h.left_column.outerWidth()/r*100,next:h.right_column.outerWidth()/r*100},l=h.left_column.hasClass("column-fixed-width"),c=h.right_column.hasClass("column-fixed-width"),p=null},stop(){setTimeout(function(){TVE.Editor_Page.editor.removeClass("tcb-resizing")}),p&&(h.left_column.head_css({"max-width":p.elem+(l?"px":"%")}),h.right_column.head_css({"max-width":p.next+(c?"px":"%")})),h.left_column.css("width","").css("height",""),a.css({"max-width":""}),o.removeClass("tcb-resizing"),TVE.FLAGS.drag=!1,h.left_column.find(".ui-resize-left, .ui-resize-right").remove(),m.resizeImages(o),TVE.Editor_Page.after_action(),TVE.ElementEditIcons.toggle(),TVE.Editor_Page.reposition_icons(),TVE.ActiveElement&&TVE.main.update_components(),TVE.do_action("tcb.columns.resized",h)},resize(e,t){let n,o=l?parseInt(_+t.size.width):(100*(_+t.size.width)/r).toFixed(1);const a=o-5*Math.floor(o/5),u=o-(p?p.elem:d.elem);return x&&(o=5*parseInt(o/5)),l&&c?(n=(d.next-100*o/r+d.elem).toFixed(1),n=parseInt(n*r/100)):l?n=(d.next-(100*(_+t.size.width)/r).toFixed(1)+d.elem).toFixed(1):c?(n=(d.next-o+d.elem).toFixed(1),n=parseInt(n*r/100)):n=(d.next-o+d.elem).toFixed(1),x&&(0===a||u>0&&a>3||u<0&&a>2)||(l?o:o*r/100)<=30||(c?n:n*r/100)<=30||(h.left_column.css({"max-width":o+(l?"px":"%")}),h.right_column.css({"max-width":n+(c?"px":"%")}),p={elem:o,next:n},s.html(parseFloat(o).toFixed(x||l?0:1)+(l?"px":"%")),i.html(parseFloat(n).toFixed(x||c?0:1)+(c?"px":"%"))),!1}}),e.find(".tcb-flex-row").each(function(){O.positionHandles(t(this))})}};o.pageInit=function(){this.$el||(this.$el=t('<div id="tve-drop-handle"><div class="tve-drop-arrow" style="display:none"></div></div>').appendTo("body"),this.$arrow=this.$el.children(".tve-drop-arrow"),this.$marker=t('<div class="tve-drop-marker"><div class="m--top"></div><div class="m--right"></div><div class="m--bottom"></div><div class="m--left"></div></div>').appendTo("body"))},o.show=function(){return this.$el[0].style.display="block",this.$marker[0].style.display="block",this},o.hide=function(){return this.$el[0].style.display="none",this.$marker[0].style.display="none",this},o.data=function(){return this.$el.data.apply(this.$el,arguments)},o.is=function(){return this.$el.is.apply(this.$el,arguments)},o.reset=function(){this.hide(),this.lastDir=null,this.$el.data("append",null),this.limitVertical=null,this.forceLimitVertical=null,this.$el.data("tt",null),t(".tve-dragged-over").removeClass("tve-dragged-over")},o.position=function(e,t){let s,i,n,r,a=e.offset(),l=e.outerWidth(),c=e.outerHeight(),d=function(e,t,s,i){const n=e.left-t.left,r=e.top-t.top+E.scrollTop(),a=s/i,l=.33*s,c=n>r*a,d=r*a+n<s;return o.dropzoneElement&&r>i/4&&r<3*i/4&&n>s/4&&n<3*s/4?"mid":o.limitVertical?o.canPositionMid&&r>i/4&&r<3*i/4?"mid":r<i/2?"top":"bottom":n>=l&&n<2*l?r<i/2?"top":"bottom":c&&d?"top":c&&!d?"right":!c&&d?"left":"bottom"}({left:t.clientX,top:t.clientY,limitVertical:e.limitVertical},a,l,c),h=null;if(d=TVE.apply_filters("tve.drag.position.direction",d,e),this.lastDir===d)return this;if("mid"===d||this.forceInnerDrop)return this.positionMid(e);if(this.data("tt",this.dropzoneElement?e.closest(".thrv_wrapper"):e),h=o.data("tt"),"left"!==d&&"right"!==d||!h.parents(".thrv_text_element").length||(h=h.parents(".thrv_text_element").first(),l=h.outerWidth(),c=h.outerHeight(),a=h.offset()),h.attr("data-label")){const e=TVE.inner_$(`[data-label-for="${h.attr("data-label")}"]`);e.length&&(c+=e.outerHeight(),l=Math.max(l,e.outerWidth()),a.top=e.offset().top)}switch(this.lastDir=d,this.highlightTarget(h,l,c,a),d){case"top":s=l+2,i=9,n=a.top-1,r=a.left-1;break;case"right":s=9,i=c+2,n=a.top-1,r=a.left+l-9;break;case"bottom":s=l+2,i=9,n=a.top+c-9,r=a.left-1;break;case"left":s=9,i=c+2,n=a.top-1,r=a.left-1}this.$el.css({width:s+"px",height:i+"px",top:(n<0?0:n)+"px",left:(r<0?0:r)+"px",opacity:1,display:"block"}).data("dir",d)},o.positionMid=function(e){this.$el.data("tt",e),this.lastDir="mid";const t=e.offset();this.$el.css({width:e.outerWidth(),height:9,top:t.top+e.outerHeight()/2-4.5,left:t.left,display:"block"}).data("dir","mid"),this.highlightTarget(e,null,null,t)},o.highlightTarget=function(e,s,i,n){s=s||e.outerWidth(),i=i||e.outerHeight();let r=TVE.t["el_dir_"+this.lastDir]+" "+TVE.get_element_name(e.closest(l.elements));if(r=r.replace(/&amp;/g,"&"),(s<60&&"left"!==this.lastDir&&"right"!==this.lastDir||i<92&&("left"===this.lastDir||"right"===this.lastDir))&&(r=r.split(" ")[0]),t(".tve-dragged-over").removeClass("tve-dragged-over"),this.$el[0].className="el-"+this.lastDir,this.$el[0].dataset.text=r,e[0].classList.add("tve-dragged-over"),this.$marker.css({display:"block",top:n.top+"px",left:n.left+"px"}),this.$marker.find(".m--top").css({width:s+2+"px"}),this.$marker.find(".m--right").css({height:i+2+"px",left:s+1+"px"}),this.$marker.find(".m--bottom").css({width:s+2+"px",top:i+1+"px"}),this.$marker.find(".m--left").css({height:i+2+"px"}),"mid"!==this.lastDir){const e={display:"",top:i/2,left:s/2,width:"",height:""};s<25||i<25?e.width=e.height="16px":(s<50||i<50)&&(e.width=e.height=Math.min(s,i)-12+"px"),"bottom"===this.lastDir&&(e.top=9-e.top-1),"right"===this.lastDir&&(e.left=9-e.left-1),e.top+="px",e.left+="px",this.$arrow.css(e)}else this.$arrow[0].style.display="none"},m.getDraggableElements=d,e.exports=m}(jQuery)},28146(e,t,s){var i;i=jQuery,e.exports={selection_manager:s(78582),content_manager:s(16171),STATE:"enabled",editor:null,event:null,winWidth:null,htmlOffset:null,save_notification_timeout:null,isRTL:!1,lead_gen_forms:null,onDOMReady(){if(this.winWidth=i(window).width(),this.setEditorWrapper(),this.$body=i("body"),this.isRTL="rtl"===i("html").attr("dir"),TVE.drag.init(),TVE.apply_filters("before_editor_events"),this.bindEvents(),TVE.apply_filters("main_ajax_callback"),TVE.CONST.lcns.exp){if(!TVE.CONST.lcns.gp)return TVE.modal_open("license-expired",{className:"tve-modal tve-license-modal tve-modal-expired",dismissible:!1,width:"950px","max-width":"950px"}),void TVE.main.overlay(!0);TVE.modal_open("grace-period",{className:"tve-modal tve-license-modal tve-modal-grace-period",width:"950px","max-width":"950px"})}TVE.main.editor_loaded(),TVE.apply_filters("editor_loaded_callback"),TVE.CONST.landing_page&&this.landingPageInit(),this.updateFroalaModeDisplay()},bindEvents(){this.editor.is(":empty")&&this.$body.addClass("tve-empty-placeholder"),TVE.bind_global_events(),this.initEditorActions(),this.editor.off("click.tcbaction").on("click.tcbaction",".tcb-click",function(e){const t=this.getAttribute("data-fn").split(".");let s=TVE,i=window;for(;s&&t.length;)i=s,s=s[t.shift()];if("function"==typeof s)return s.call(i,e)})},hasScroll:()=>TVE.inner.window.innerHeight<TVE.inner.document.body.clientHeight,hasLeftScroll(){return TVE.Editor_Page.isRTL&&this.hasScroll()},getScrollbarWidth:()=>TVE.inner.window.innerWidth-TVE.inner.document.documentElement.clientWidth,checkEmptyEditor(){TVE.inner_$("#tve_editor").each((e,t)=>{const s=TVE.inner_$(t),i=s.children();s.toggleClass("tve-empty-editor",!i.length||!i.filter(`:not(#${TVE.Models.ConditionalDisplayManager.groupsContainerId})`).length)})},initEditorActions(e){void 0===e&&(e=!1),this.setEditorWrapper(),TVE.compat.dom_ready(),this.checkEmptyEditor(),this.selection_manager.init(TVE.CONST.editor_selector?i(TVE.CONST.editor_selector):this.editor);let t=!1,s=!1;function n(e){let t=e,s=i(t);const n={CSS_EXISTS:!0};s.length||(s=i('<style type="text/css"></style>').appendTo(i("head")),-1!==t.indexOf(".")&&(t=t.substring(t.indexOf("."),t.length)),"."===t[0]?s.attr("class",t.substring(1)):s.attr("id",t.split("#").pop()),n.CSS_EXISTS=!1);const r=s[0];return r.styleSheet?r.styleSheet.cssText=r.styleSheet.cssText+"":r.appendChild(document.createTextNode("")),n.style=r,n}const r=n(TVE.apply_filters("css_style_selector","style.tve_custom_style")),o=n("style.tve_global_style");if(r.CSS_EXISTS||(r.style.onload=function(){TVE.CSS_Rule_Cache.init(e),t=!0}),TVE.stylesheet=r.style.sheet,o.CSS_EXISTS||(o.style.onload=function(){TVE.USE_GLOBALSHEET=!0,TVE.CSS_Rule_Cache.init(e),s=!0,TVE.USE_GLOBALSHEET=!1}),TVE.globalsheet=o.style.sheet,TVE.BROWSER.mozilla){const i=setInterval(function(){try{TVE.stylesheet.cssRules,TVE.main.trigger("tve_stylesheet_loaded"),clearInterval(i),TVE.CSS_Rule_Cache.init(e),t=!0}catch(e){}},100),n=setInterval(function(){try{TVE.globalsheet.cssRules,clearInterval(n),TVE.USE_GLOBALSHEET=!0,TVE.CSS_Rule_Cache.init(e),s=!0,TVE.USE_GLOBALSHEET=!1}catch(e){}},100)}else setTimeout(function(){t||TVE.CSS_Rule_Cache.init(e),s||(TVE.USE_GLOBALSHEET=!0,TVE.CSS_Rule_Cache.init(e),TVE.USE_GLOBALSHEET=!1)},500);const a=i(".thrv_countdown_timer");a.length&&a.addClass("init_done").each(function(){i(this).hasClass("thrv-countdown_timer_evergreen")?i(this).tve_countdown_timer_evergreen().update():i(this).tve_countdown_timer().update()}),TVE.drag.editorActions(),this.enableSaveWarning(),TVE.froala.init(),TVE.inner.window.TCB_Front&&TVE.inner.window.TCB_Front.$window.trigger("tve_after_content_toggle",[this.editor,!0]),this.content_manager.prepare_content_for_editor()},blur(e,t){TVE.froala.hide_toolbars(),e=void 0===e||e,this.selection_manager.blur(e,t)},focus_element(e,t={},s={}){if(TVE.FLAGS.is_multiple_styling&&TVE._type(e)!==TVE.Components["multiple-select-mode"].getSelectedGroupType())return!1;if(!TVE.allow_edit()||"enabled"!==this.STATE&&!this.editor.find(".canvas-mode").length)return!1;if(TVE.do_action("tcb.focus_element.before",e,t,s),TVE.do_action(`tcb.focus_${TVE._type(e)}.before`,e,t,s),e.hasClass("edit_mode"))e.trigger("element.selected");else{var n;TVE.$will_focus=e,e.tcbRemoveClass("on_hover active_highlight"),this.selection_manager.hide_all_icons(),null!==(n=TVE.ActiveElement)&&void 0!==n&&n.length&&this.blur(!1,s),TVE.do_action("tcb.element.before_focus",e),TVE.state(TVE.STATE_EDIT),e.tcbAddClass("edit_mode");const r=new i.Event("element_selected");if(r.is_mouse=t&&t.originalEvent||s&&s.emulate,TVE.main.element_selected(e,r),r.isDefaultPrevented())return e[0].classList.remove("edit_mode"),!1;s&&s.emulate||setTimeout(function(){e.trigger("focus")},0),TVE.do_action("tcb.element.focus",e),delete TVE.$will_focus}TVE.do_action("tcb.focus_element.after",e)},duplicate_element(e){TVE.do_action("tcb.element.before_duplicate",e),TVE.froala.disable(e);const t=e.parent().hasClass("tcb-clear")||e.parent("a[href]").length,s=t?e.parent().clone():e.clone(),i=TVE.apply_filters("tve.duplicate_elem.regenerate_css_selectors",`${TVE.Components.group.group_elements_classes}, .thrv-button`),n=["edit_mode","canvas-mode","active_highlight","active_delete","on_hover","active_duplicate"];return t?e.parent().after(s):e.after(s),e.data("tve-el-type")&&s.data("tve-el-type",e.data("tve-el-type")),s.find(`.${n.join(",.")}`).addBack().removeClass(n.join(" ")),TVE.drag.afterClone(e,s),s.is(i)&&s.find("[data-css]").addBack().each(function(){TVE.inner_$(this).head_css_clone()}),TVE.Editor_Page.content_manager.cleanup_froala(s),TVE.do_action("tcb.element.duplicate",e,s),this.reposition_icons(),this},save_element:e=>(TVE.ActiveElement=e,TVE.modal_open("save-elements",{element:TVE.ActiveElement}),!1),remove_element(e){let t=e.parent();if(TVE.do_action("tcb.element.before_remove",e,t),TVE.froala.disable(e),this.blur(!0),(t.hasClass("tcb-clear")&&!e.siblings().length||e.parent("a:not(.tve_s_link)[href]").length)&&(t=t.parent(),e=e.parent()),e.is(".thrv_tabs_shortcode > .tve_scT > ul li:not(.tve_tab_title_item)")){let s=e.index();return e.remove(),t.parent().find(".tve_scTC").eq(s).remove(),t.children().length===s&&s--,t.find("li").eq(s).click(),this}return t.is("ul,ol")&&1===t.find("li").length?t.parent().is(".thrv_bullets_shortcode")?this.remove_element(t.parent()):this.remove_element(t):t.hasClass("thrv_toggle_shortcode")&&1===t.children(".tve_faq").length?this.remove_element(t):TVE.apply_filters("allow_remove",!0,[e])?(e.hasClass("tcb-col")?TVE.drag.removeColumn(e.parent()):(e.remove(),TVE.drag.afterRemove(t)),i(".tcb-clear").each((e,t)=>{0===t.children.length&&t.remove()}),this.editor.is(":empty")&&this.$body.addClass("tve-empty-placeholder"),this.checkEmptyEditor(),TVE.do_action("tcb.element.remove",e,t),this):this},is_disabled(){return"disabled"===this.STATE},disable(){this.selection_manager.hide_icons(),this.STATE="disabled"},enable(){this.STATE="enabled",TVE.remove_body_overlay(),i(this).trigger("editor.onenable")},disable_clicks(e){const t=(e=void 0===e?{}:e).z_index_overlay||"100000";TVE.body_overlay({"z-index":t}),TVE.prevent_blur=!0,TVE.main.$("#tcb-editor-settings").addClass("tcb-disabled"),TVE.main.active_elem_nav_view&&TVE.main.active_elem_nav_view.disable(),TVE.ActiveElement&&(TVE.ElementEditIcons.hide_icons(),TVE.ElementIcons.hide_icons(),TVE.froala.hide_toolbars()),TVE.do_action("tcb.editor_page.disable_clicks",e)},enable_clicks(e){e=void 0===e?{}:e,TVE.remove_body_overlay(),TVE.prevent_blur=!1,TVE.main.$("#tcb-editor-settings").removeClass("tcb-disabled"),TVE.main.active_elem_nav_view&&TVE.main.active_elem_nav_view.enable(),TVE.ActiveElement&&(TVE.ElementEditIcons.show_icons(TVE.ActiveElement),TVE.ActiveElement.is(TVE.TEXT_ALL)&&TVE.froala.editor.events.focus()),TVE.do_action("tcb.editor_page.enable_clicks",e)},enableSaveWarning(){TVE.CONST.display_save_notification=parseInt(TVE.CONST.display_save_notification),!TVE.CONST.display_save_notification||this.display_save_notification||TVE.CONST.debug_mode||(this.save_notification_timeout=setInterval(()=>{TVE.page_message('<strong>Reminder</strong><p>You have not saved your work for 10 minutes.</p><p>We recommend you perform a save to make sure you don\'t lose any work !</p><a id="tve-stop-saving-warning" class="button-link blue" href="javascript:void(0)">Stop reminding me for this work only !</a>',-1,6e3),TVE.$("#tve-stop-saving-warning").on("click",()=>{TVE.$notification.fadeOut(200),this.disableSaveWarning(),TVE.CONST.display_save_notification=0}),TVE.$notification.find(".tve-ic-close").on("click",function(){i(this).parent().fadeOut(200)})},6e5))},disableSaveWarning(){TVE.CONST.display_save_notification=parseInt(TVE.CONST.display_save_notification),TVE.CONST.display_save_notification&&(clearInterval(this.save_notification_timeout),this.save_notification_timeout=null)},processPreSave(e=TVE.Editor_Page.editor,t={forms_filter:"*"}){return new Promise(s=>{let i={_sendAjax:!1,post_id:t.post_id||TVE.CONST.post_id,ignore_post_parent:t.ignore_post_parent||0};if(i=TVE.apply_filters("tcb.content_pre_save.request",i,e,t),!i._sendAjax)return s(!0);TVE.ajax("content_pre_save","post",i).done(s=>{TVE.do_action("tcb.content_pre_save.response",s,e,t,i),s.lead_gen_forms&&(this.lead_gen_forms=s.lead_gen_forms)}).always(()=>s(!0))})},save(e,t,s,i=!1){const n=jQuery.Deferred(),r=TVE.apply_filters("tcb.general_pre_save_options",{forms_filter:(e,t)=>!t.closest(".thrive-shortcode-html,.theme-section[data-id]")});function o(){const r={preventSave:!1};if(TVE.main.trigger("tve.tve_save_post",r),r.preventSave)return void r.return.always(()=>n.resolve());const o=this.content_manager.prepareSaveData(e,s),a=arguments;let l="save_post";TVE.CONST.save_post_action&&(l="save_post_external",o.external_action=TVE.CONST.save_post_action),this.lead_gen_forms&&(o.lead_gen_forms=this.lead_gen_forms),TVE.do_action("tve.save_post.before_send",o),TVE.ajax(l,"post",o).done(function(s){return"0"===String(s)?(TVE.login_callback||(TVE.login_callback=TVE.Editor_Page.save.apply(TVE.Editor_Page,a)),void TVE.relogin()):s.success?(e&&(s.revisions&&TVE.RevisionManager.reset_revisions(s.revisions),i||TVE.page_message(TVE.t.AllChangesSaved)),TVE.main.trigger("tve.save_post.success",s),TVE.do_action("tve.save_post.success",s),TVE.ActiveElement&&0===TVE.Editor_Page.editor.find(TVE.ActiveElement).length&&TVE.Editor_Page.blur(),"function"==typeof t&&t(s),void n.resolve(s)):TVE.page_message(s.message,!0,5e3)}).always(()=>TVE.main.overlay("close")),this.disableSaveWarning(),this.enableSaveWarning(),TVE.UndoManager&&TVE.UndoManager.clear()}return this.processPreSave(TVE.Editor_Page.editor,r).then(()=>{o.call(this),this.savePagePreview()}),n},savePagePreview(){if(TVE.apply_filters("tve_page_preview_should_save",TVE.CONST.landing_page||["page","post"].includes(TVE.CONST.post.post_type))){let e=TVE.apply_filters("tve_page_preview_content_type","content"),t=TVE.apply_filters("tve_page_preview_image_prefix","content"),s=TVE.apply_filters("tve_page_preview_content_preview",TVE.Editor_Page.editor);TVE.CONST.landing_page&&(e="landing_pages",t="lp",s=TVE.Editor_Page.editor.closest("body")),s=TVE.getContentToPreview(TVE.apply_filters("tve_page_preview_content",s)),TVE.generateElementPreview(s,s=>{if(s){const n=new Image;n.src=URL.createObjectURL(s),n.onload=()=>{const r=new FormData,o=`${t}-${TVE.CONST.post_id}.png`;r.append("page_id",TVE.CONST.post.ID),r.append("tar_editor_page",1),r.append("custom","save_page_preview"),r.append("action",TVE.CONST.ajax.action),r.append("content_type",e),r.append("nonce",TVE.CONST.nonce),r.append("img_data",s,o),r.append("img_name",o),r.append("image_w",n.width),r.append("image_h",n.height),i.ajax({type:"POST",url:TVE.CONST.ajax_url,data:r,processData:!1,contentType:!1}).done(()=>{TVE.inner_$(".preview-cloned-content").remove()})}}TVE.inner_$(".preview-cloned-content").remove()},{},!0)}},editor_content(){return i("<div></div>").html(this.editor.html()).find(".tve-dragged-over,.edit_mode, .active_duplicate, .on_hover").removeClass("tve-dragged-over edit_mode active_duplicate on_hover ").end().find(".tve_placeholder, .tve-ui-helper, .rangySelectionBoundary").remove().end().html()},before_action(){return window.content_before_action=this.editor_content(),window.content_editor_class=this.editor.attr("class"),this},after_action(){const e=window.content_before_action,t=window.content_editor_class,s=this.editor_content();function n(e){this.editor.html(e),this.editor.attr("class",t),TVE.drag.refresh(),TCB_Front.refreshBackgroundYoutube(),TVE.do_action("tcb.editor.undo")}return TVE.UndoManager.add({undo:i.proxy(n,this,e),redo:i.proxy(n,this,s)}),this},get_custom_css(e){const t=i("style#tve_head_custom_css");return 0===t.length?void 0!==e&&e?"/** Insert your custom CSS rules here. **/":"":t.text()},add_custom_css(e,t=!1){const s=i("style#tve_head_custom_css");0===s.length?i(`<style type="text/css" class="tve_user_custom_style" id="tve_head_custom_css">${e}</style>`).appendTo(i("head")):s.text(t?`${s.text()} ${e}`:e)},reposition_icons(e){this.is_disabled()||(void 0===e&&(e=TVE.ActiveElement),e&&1===e.length&&TVE.ElementEditIcons.reposition_icons(e),e&&e.length>1&&TVE.ElementEditIcons.reposition_icons(TVE.getSelectedElement()))},landingPageInit(){TVE.main.on("element_selected",function(){TVE.ActiveElement.is("body.tve_lp")&&function(e){const t={},s=e[0].style;if(!e.attr("style"))return;const i=" !important";s.backgroundColor&&(t["background-color"]=s.backgroundColor+i),s.backgroundImage&&(t["background-image"]=s.backgroundImage+i),s.backgroundSize&&(t["background-size"]=s.backgroundSize+i),s.backgroundAttachment&&(t["background-attachment"]=s.backgroundAttachment+i),e.removeAttr("style"),TVE.SKIP_CSS_STATE=!0,e.head_css(t),TVE.SKIP_CSS_STATE=!1}(TVE.ActiveElement)}),TVE.add_filter("tcb_save_post_data_before",function(e){const t=TVE.CONST.tve_globals;let s;return(s=TVE.inner.$body.attr("data-css"))&&(t.body_css=s,delete t.lp_bg,delete t.lp_bgi,delete t.lp_bgp,delete t.lp_bga),e})},manual_refresh_components(e,t){void 0===e&&(e=TVE.ActiveElement),TVE.state_manager.is_default()&&(TVE.FLAGS.hover_element=!0,e.addClass("tve-state-hover"),TVE.main.update_components(t),TVE.FLAGS.hover_element=!1,e.removeClass("tve-state-hover")),TVE.main.update_components(t)},is_page_full_width:()=>TVE.apply_filters("is_section_full_width",TVE.CONST.landing_page&&"none"===TVE.Editor_Page.editor.css("max-width")),updateFroalaModeDisplay(){TVE._.isEmpty(TVE.CONST.froalaMode)||Object.keys(TVE.CONST.froalaMode).forEach(e=>{const t=JSON.parse(TVE.CONST.froalaMode[e]);TVE.Editor_Page.$body.toggleClass(e,t),TVE.main.$el.toggleClass(e,t)})},setEditorWrapper(){this.editor=TVE.apply_filters("editor_wrapper",i(`#tve_editor.tar-main-content[data-post-id="${TVE.CONST.post.ID}"]`)),this.editor.length||(this.editor=i("#tve_editor")),this.editor.addClass("tve-editor-main-content")},getResponsiveClasses(e=TVE.ActiveElement){const t=[];return Object.keys(TVE.main.responsive).forEach(s=>{const i=`tcb-${s}-hidden`;e.hasClass(i)&&t.push(i)}),t}}},50618(e){e.exports=e=>{class t{constructor(t){this.post=t,this.flags={},this.$container=e()}static get selectorsToRemoveRegExp(){if(!t._regexp){const s=[":hover",":active",":focus-within",":focus",":visited",":after",":before",":checked",":empty",".tve_flt",".tve_anim_start",".thrv_data_element_start",".go-down",".next",".ct_finished",".expired",".tcb-disabled-pagination-button",".tve-state-expanded",".expand-children",".tve-m-expanded",".tve-state-active",".tcb_show_all_hidden",".tcb-style-wrap",".tve_empty_dropzone",".tve_shortcode_editor",".tve-mobile-browser",".tve-tablet-browser",".tcb-animated",":not(#_s)",":not(.inc)",":not(#tve)","#tve_editor","#wrapper",".tve-lg-field-disabled",".tve-lg-state-field-empty",".tve-lg-dropdown-message-after",".tve-hide-country"];e("#tcb_landing_page").length>0&&s.push("#tcb_landing_page"),t._regexp=new RegExp(`(${s.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")})`,"g")}return t._regexp}get customSelectorChecks(){return[this.hasAnimationsAndActions,this.hasConditionalDisplay,this.hasNumericPagination,this.isInsidePostContent,this.hasGalleryLightbox,this.hasLeadGeneration,this.hasLightboxAction,this.hasPostListFilter,this.hasNumberCounter,this.hasFloatingVideo,this.hasImageGallery,this.hasNotification,this.hasAvatarPicker,this.hasWooMiniCart,this.hasUserProfile,this.hasImagePopup,this.isTCBLightbox,this.hasVideoPopup,this.hasDatePicker,this.hasFileUpload,this.hasTableSort,this.hasLoginForm,this.hasACFVideo,this.hasParallax,this.hasMegaMenu,this.hasPostList,this.hasCarousel,this.hasToggles,this.hasTooltip,this.hasSocial,this.hasModal,this.hasMenu,this.hasTOC,this.hasTabs,this.hasSearch,this.isBodyRule,this.frontendClasses].map(e=>e.bind(this)).concat(window.lightspeed_extra_checks||[])}static getRealSelector(e){return(e=(e=(e=(e=e.replace(/::\S+/g,"")).replace(":not(.tve_editor_page)","")).replace(".tve_editor_page",".just-a-class-that-you-wont-find-in-the-page")).replace(t.selectorsToRemoveRegExp,"")).trim()}static splitSelectorList(e){const t=[];let s="",i=0;for(let n=0;n<e.length;n++){const r=e[n];"("===r?i++:")"===r&&i--,","===r&&0===i?(t.push(s),s=""):s+=r}return s&&t.push(s),t}static conditionText(e){let t=null;return e.conditionText&&(t=e.conditionText),e.cssText.match(/([^{]*){/m)&&(t=RegExp.$1.trim()),t}static getMediaRules(){return"undefined"==typeof TVE?["(min-width: 300px)","(max-width: 1023px)","(max-width: 767px)"]:TVE.main.all_media()}resetFlags(){this.flags={}}getContainer(e){if(this.$editorContainer=e,"undefined"!=typeof tve_frontend_options&&"tcb_symbol"===tve_frontend_options.post_type){const t=e.closest("#tve_editor");t.length>0&&(this.$editorContainer=t.parent())}const t=this.$editorContainer.clone().wrap("<div></div>").parent();return"undefined"==typeof tve_frontend_options||"tcb_symbol"===tve_frontend_options.post_type||this.$editorContainer.hasClass("thrv_symbol")||t.find('[class*="thrv_symbol_"]').empty(),t}getLightspeedData({$content:t,stylesToOptimize:s=null,jsModules:i=null,gutenbergModules:n=null,wooModules:r=null}={}){const o="undefined"!=typeof TVE&&TVE.CONST&&TVE.CONST.lightspeed?TVE.CONST.lightspeed:null;let a=t;return null==a&&(a="undefined"!=typeof TVE&&TVE.Editor_Page&&TVE.Editor_Page.editor?TVE.Editor_Page.editor:e(document.body)),this.$container=this.getContainer(a),null===s&&(s=o&&o.styles_to_optimize?o.styles_to_optimize:[]),null===i&&(i=o&&o.js_modules?o.js_modules:{}),null===n&&(n=o&&o.gutenberg_modules?o.gutenberg_modules:{}),r||(r={}),{optimized_styles:this.getOptimizedCss(s),js_modules:this.getJsModulesToSave(i),woo_modules:this.getJsModulesToSave(r),gutenberg_modules:this.getJsModulesToSave(n),assets_to_preload:this.getAssetsToPreload()}}isSelectorInContent(t){let s;try{s=this.$container.find(t)}catch(e){return!1}return"undefined"!=typeof TVE&&TVE.CONST.debug_mode&&0===s.length&&e(t).filter((t,s)=>e(s).closest(this.$editorContainer).length>0&&null===s.closest('[class*="thrv_symbol_"]')).length>0&&console.error(this.$container.children().attr("class"),t),s.length>0}parseCssRule(e){if(e.includes("url")){const t="undefined"!=typeof TVE&&TVE.CONST&&TVE.CONST.cpanel_dir?TVE.CONST.cpanel_dir:"";e=e.replace(/url\([^)]*images\/([a-zA-Z.\-_0-9]*)(['"]?)\)/gm,(e,s,i)=>s&&t?`url(${i}${t}/css/images/${s}${i})`:e)}return e.includes("background-clip")&&!e.includes("--webkit-background-clip")&&(e=e.replace(new RegExp("background-clip:(.+?);","g"),e=>`-webkit-${e}`)),e}getOptimizedCss(s=[]){this.resetFlags();const i=[],n={},r={};t.getMediaRules().forEach(e=>n[`@media ${e}`]=[]),e(s.map(e=>`#${e}-css`).join(",")).each((e,s)=>{const o=s.sheet;try{o&&o.cssRules&&[...o.cssRules].forEach(e=>{let s;switch(e.type){case CSSRule.STYLE_RULE:s=this.isSelectorUsed(e.selectorText),s&&i.push(this.parseCssRule(e.cssText.replace(e.selectorText,s)));break;case CSSRule.MEDIA_RULE:const o=t.conditionText(e);o?(void 0===n[o]&&(n[o]=[]),[...e.cssRules].forEach(e=>{e.type===CSSRule.STYLE_RULE?(s=this.isSelectorUsed(e.selectorText),s&&n[o].push(this.parseCssRule(e.cssText.replace(e.selectorText,s)))):console.error(e)})):i.push(this.parseCssRule(e.cssText));break;case CSSRule.KEYFRAMES_RULE:r[e.name]=e.cssText;case CSSRule.SUPPORTS_RULE:}})}catch(e){console.warn(e)}});for(const e in n)n[e].length&&i.push(`${e}{${n[e].join("")}}`);const o=i.join("");for(const e in r)o.includes(e)&&i.push(r[e]);return i.join("")}isSelectorUsed(e){return t.splitSelectorList(e).filter(e=>!(e.includes(".tve-state-hover")||e.includes("tcb-edit-mode")||e.includes("edit_mode"))&&(e=t.getRealSelector(e),this.customSelectorChecks.some(t=>"function"==typeof t&&t(e))||this.isSelectorInContent(e))).map(e=>e.trim()).join(",")}isBodyRule(t){return t.match(/html|body/)&&!t.match(/tbody|-html|html-/)&&e(t).length>0}frontendClasses(e){return e.match(/tcb-permanently-hidden|tar-disabled/)}hasAnimationsAndActions(e){let t=!1;return e.includes("tve_anim_start")&&(void 0===this.flags["has-animations-actions-element"]&&(this.flags["has-animations-actions-element"]=[...new Set([...this.$container.find(".tve_ea_thrive_animation").addBack(".tve_ea_thrive_animation")].map(e=>(e.className.replace("tve_anim_start","").match(/(tve_anim_\S*)/),RegExp.$1.trim())))]),t=!e.replace("tve_anim_start","").match(/tve_anim_\S*/)||this.flags["has-animations-actions-element"].some(t=>e.includes(t))),t}hasFileUpload(e){return void 0===this.flags["has-file-upload"]&&(this.flags["has-file-upload"]=this.isSelectorInContent(".tve_lg_file")),this.flags["has-file-upload"]&&e.match(/tcb-file-list/)}hasDatePicker(e){return void 0===this.flags["has-date-picker"]&&(this.flags["has-date-picker"]=this.isSelectorInContent(".lg-date-picker")),this.flags["has-date-picker"]&&e.match(/flatpickr/)}isInsidePostContent(e){void 0===this.flags["inside-post-content"]&&(this.flags["inside-post-content"]=this.$editorContainer.closest(".tcb-post-content").length>0);let t=this.flags["inside-post-content"]&&e.match(/tcb-post-content/);return t&&(t=(e=e.replace(/\.tcb-post-content/g,"").trim()).length>0&&this.$container.find(e).length>0),t}hasLeadGeneration(e){return void 0===this.flags["has-lead-generation"]&&(this.flags["has-lead-generation"]=this.isSelectorInContent(".thrv_lead_generation_container")),this.flags["has-lead-generation"]&&e.match(/tve-lg-error|thrv-svg-icon svg|tvd-toast|thrv_lead_generation_container|tcb-form-loader-icon/)}hasLoginForm(e){return void 0===this.flags["has-login-form"]&&(this.flags["has-login-form"]=this.isSelectorInContent(".thrv-login-element")),this.flags["has-login-form"]&&e.match(/thrv-login-element|thrv-svg-icon svg|tvd-toast/)}hasContactForm(e){return void 0===this.flags["contact-form"]&&(this.flags["contact-form"]=this.isSelectorInContent(".thrv-contact-form")),this.flags["contact-form"]&&e.match(/tcb-cf-error|thrv-svg-icon svg|tvd-toast/)}hasUserProfile(e){return void 0===this.flags["has-user-profile"]&&(this.flags["has-user-profile"]=this.isSelectorInContent(".tve-user-profile")),this.flags["has-user-profile"]&&e.match(/tve-up-error|tvd-toast|tcb-form-loader-icon/)}hasSocial(e){return void 0===this.flags["has-social"]&&(this.flags["has-social"]=this.isSelectorInContent(".tve_social_items")),this.flags["has-social"]&&e.includes(".rtl .tve_social_custom")}hasToggles(e){return void 0===this.flags["has-faq-element"]&&(this.flags["has-faq-element"]=this.isSelectorInContent(".tve_faq")),this.flags["has-faq-element"]&&e.includes("tve_oFaq")}hasTooltip(e){return void 0===this.flags["has-tooltip"]&&(this.flags["has-tooltip"]=this.isSelectorInContent(".tve_ea_thrive_tooltip")),this.flags["has-tooltip"]&&e.includes(".tve_ui_tooltip")}hasMenu(e){return void 0===this.flags["has-menu"]&&(this.flags["has-menu"]=this.isSelectorInContent(".thrv_widget_menu")),this.flags["has-menu"]&&e.includes(".thrv_widget_menu")}hasMegaMenu(e){return void 0===this.flags["has-megamenu"]&&(this.flags["has-megamenu"]=this.isSelectorInContent(".thrv_widget_menu.tcb-mega-std")),this.flags["has-megamenu"]&&e.match(/tcb-mega-|tcb-mm-/)}hasTOC(e){return void 0===this.flags["has-toc"]&&(this.flags["has-toc"]=this.isSelectorInContent(".tve-toc")),this.flags["has-toc"]&&e.includes(".tve-toc")}hasTabs(e){return void 0===this.flags["has-tabs-element"]&&(this.flags["has-tabs-element"]=this.isSelectorInContent(".tve_scT")),this.flags["has-tabs-element"]&&e.includes("tve_scT")}hasNotification(e){return void 0===this.flags["has-notification"]&&(this.flags["has-notification"]="tve_notifications"===this.post.post_type||this.isSelectorInContent(".thrv_lead_generation, .tve-user-profile, .tcb-login-form-wrapper")),this.flags["has-notification"]&&e.includes(".notifications-content-wrapper")}hasWooMiniCart(e){return void 0===this.flags["has-woo-mini-cart"]&&(this.flags["has-woo-mini-cart"]=this.isSelectorInContent(".tcb-woo-mini-cart")),this.flags["has-woo-mini-cart"]&&e.match(/tcb-woo-mini-cart-content-wrapper|widget_shopping_cart_content|tcb-woo-mini-cart/)}hasPostList(e){return void 0===this.flags["has-post-list"]&&(this.flags["has-post-list"]=this.isSelectorInContent(".tcb-post-list")),this.flags["has-post-list"]&&e.match(/-article-cover|tve-loading|empty-list/)}hasPostListFilter(e){return void 0===this.flags["has-post-list-filter"]&&(this.flags["has-post-list-filter"]=this.isSelectorInContent(".tcb-post-list-filter")),this.flags["has-post-list"]&&e.match(/tcb-post-list-filter.*tcb-active-state/)}hasParallax(e){return void 0===this.flags["has-parallax-element"]&&(this.flags["has-parallax-element"]=[...this.$container.find('[data-tve-scroll*="parallax"]').addBack('[data-tve-scroll*="parallax"]')].some(e=>{let t;try{const s=JSON.parse(e.dataset.tveScroll);t="parallax"===s.mode&&Object.keys(s.parallax).length>0}catch(e){t=!1}return t})),this.flags["has-parallax-element"]&&e.includes("tve-scroll-parallax")}hasImagePopup(e){return void 0===this.flags["has-image-popup"]&&(this.flags["has-image-popup"]=this.isSelectorInContent('[data-tcb-events*="thrive_zoom"]')),this.flags["has-image-popup"]&&e.match(/tve_zoom_|tve_close_lb|thrv-svg-icon svg/)}hasNumericPagination(e){return void 0===this.flags["has-numeric-pagination"]&&(this.flags["has-numeric-pagination"]=this.isSelectorInContent('[data-type="numeric"].tcb-pagination')),this.flags["has-numeric-pagination"]&&e.match(/tcb-pagination-number/)}hasVideoPopup(e){return void 0===this.flags["has-video-popup"]&&(this.flags["has-video-popup"]=this.isSelectorInContent('[data-tcb-events*="thrive_video"]')),this.flags["has-video-popup"]&&e.match(/tve_responsive_video_container|tcb-video-popup/)}hasLightboxAction(e){return void 0===this.flags["has-lightbox-action"]&&(this.isSelectorInContent(".tve_evt_manager_listen")?this.flags["has-lightbox-action"]=[...this.$container.find(".tve_evt_manager_listen")].map(e=>{let t="";return e.dataset.tcbEvents&&(e.dataset.tcbEvents.match(/l_anim":"(\w*)"/),t=RegExp.$1.trim()),t}).filter(e=>e):this.flags["has-lightbox-action"]=[]),this.flags["has-lightbox-action"].some(t=>e.includes(`tve_lb_anim_${t}`))}hasConditionalDisplay(e){return void 0===this.flags["has-conditional-display"]&&(this.flags["has-conditional-display"]=this.$container.find("[data-display-group]")),this.flags["has-conditional-display"]&&e.match(/tcb-conditional-display-placeholder/)}hasFloatingVideo(e){return void 0===this.flags["has-floating-video"]&&(this.flags["has-floating-video"]=[...this.$container.find(".thrv_responsive_video[data-float-position]")].map(e=>e.dataset.floatPosition)),this.flags["has-floating-video"].length&&e.includes(".tcb-no-perspective")||this.flags["has-floating-video"].length&&e.includes(".tcb-no-transform")||e.includes(".tve_responsive_video_container")&&this.flags["has-floating-video"].some(t=>e.includes(t))}hasACFVideo(e){return void 0===this.flags["has-acf-video"]&&(this.flags["has-acf-video"]=this.isSelectorInContent(".thrv_responsive_video.tcb-custom-field-source")),this.flags["has-acf-video"]&&e.match(/tve_responsive_video_container/)}hasGalleryLightbox(e){return void 0===this.flags["has-gallery-lightbox"]&&(this.flags["has-gallery-lightbox"]=this.isSelectorInContent('[data-click-behavior="fullscreen"].tcb-image-gallery')),this.flags["has-gallery-lightbox"]&&e.match(/tcb-gallery-overlay/)}hasTableSort(e){return void 0===this.flags["has-table-sort"]&&(this.flags["has-table-sort"]=this.isSelectorInContent(".tve_make_sortable")),this.flags["has-table-sort"]&&e.match(/tcb-sort/)}hasNumberCounter(e){return void 0===this.flags["has-number-counter"]&&(this.flags["has-number-counter"]=this.isSelectorInContent(".tve-number-counter")),this.flags["has-number-counter"]&&e.match(/tcb-digit|tve-number-counter-temporary-clone/)}hasImageGallery(e){return void 0===this.flags["has-image-gallery"]&&(this.flags["has-image-gallery"]=this.isSelectorInContent(".tcb-image-gallery")),this.flags["has-image-gallery"]&&e.match(/tcb-image-gallery/)}hasCarousel(e){return void 0===this.flags["has-carousel"]&&(this.flags["has-carousel"]=this.isSelectorInContent('[data-type="carousel"]')),this.flags["has-carousel"]&&e.match(/slick-|data-cwv|data-type="carousel"/)}hasSearch(e){return void 0===this.flags["has-search-form"]&&(this.flags["has-search-form"]=this.isSelectorInContent(".thrv-search-form")),this.flags["has-search-form"]&&e.match(/thrv-search-form|tve-sf-overlay-container/)}hasAvatarPicker(e){return void 0===this.flags["has-avatar-picker"]&&(this.flags["has-avatar-picker"]=this.isSelectorInContent(".tve-avatar-picker-element")),this.flags["has-avatar-picker"]&&e.match(/avatar-picker|/)}hasModal(e){return void 0===this.flags["has-modal"]&&(this.flags["has-modal"]=this.isSelectorInContent('[data-action="open-modal"]')),this.flags["has-modal"]&&e.match(/tve-modal/)}getJsModulesToSave(e){const t=[];for(const s in e)if(e.hasOwnProperty(s)){const i=e[s];i&&this.isSelectorInContent(i)&&t.push(s)}return t}getAssetsToPreload(){const t=[];return this.$container.find('.tcb-video-cover[data-preload="1"]').each((s,i)=>{const n=e(i);if("dynamic"===n.attr("data-cover-thumbnail-type"))t.push({type:"dynamic",url:"featured"});else{const e=n.find(".tcb-video-cover-image").attr("src");void 0!==e&&e.length>0&&t.push({type:"image",url:e})}}),t.filter((e,t,s)=>t===s.findIndex(t=>t.url===e.url))}isTCBLightbox(t){return void 0===this.flags["has-lightbox"]&&(this.flags["has-lightbox"]="tcb_lightbox"===this.post.post_type||e(".tve_p_lb_content:visible").length>0),this.flags["has-lightbox"]&&t.match(/tve-l-open|article|tve_lb_|tve_p_lb_/)}}return t}},16171(e,t,s){function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function n(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const r=s(74144),o=s(13828);var a;a=jQuery,e.exports={TCB_CLS_PAT:TVE.apply_filters("tcb.content.tcb_cls_pat",["thrv_","tve-","tve_","tcb_","tcb-","thrv-","img_style_","mce-","fr-","ttfm"]),cleanup_froala(e,t=!1){const s=this;e.find(".tve-froala").each(function(){const e=a(this);if(e.find(".tve-froala:not(a)").length)return;let i=e.find(".fr-element").last();if(i.length||(i=e.next(".fr-wrapper").find(".fr-element")),i.length?(i.find(".tve-froala").length&&s.cleanup_froala(i),e.html(i.html()).removeClass(function(e,t){return(t.match(/(^|\s)(fr-|tve-froal)\S+/g)||[]).join(" ")}),e.is("p")&&(i.remove(),e.siblings(".fr-wrapper:empty, p:empty").remove())):e.is("a.tve-froala")&&e.removeClass(function(e,t){return(t.match(/(^|\s)(fr-|tve-froal)\S+/g)||[]).join(" ")}),e.is("p.wp-caption-text")){let t=e.children("div");t.length||(t=e.next("div")),t.length&&(t.attr("style")&&e.attr("style",t.attr("style")),e.html(t.html()),t.remove())}t&&e.removeData("froala.editor")}),e.find(".fr-wrapper").each(function(){const e=a(this),t=e.children(".fr-element");a(this).replaceWith(t.length?t.html():e.html())})},get_stripped_content(e){let t="";return e&&(e.find(TVE.apply_filters("tve.get_stripped_content.selectors",".thrv-button, .tve-page-section-out svg, .tve-content-box-background svg, .thrv_countdown_timer, .thrv-credit, .thrv-google-map-embedded-code, .thrv_disqus_comments, .tcb-post-list, .tve-toc,.thrv_widget_menu, .thrv-fill-counter, .thrv_tw_qs, .thrv_social, .thrv_post_grid, .thrv-progress-bar, .thrv-rating, .thrv_contents_table, .tve-countdown, .tve-progress-bar-wrapper, .thrv_tabs_shortcode, .thrv_toggle, .thrv-login-element, .thrv_responsive_video, .thrive_leads_shortcode, .thrive-quiz-builder-shortcode, .thrv_responsive_video, .tve_more_tag, .thrv_lead_generation")).remove(),t=e.html()),TVE.apply_filters("tve.get_stripped_content",t)},get_clean_content(e,t){void 0===e&&(e={}),TVE.inner.window.w3tc_lazyload&&"function"==typeof TVE.inner.window.w3tc_lazyload.loadAdd&&TVE.inner.window.w3tc_lazyload.loadAll(),t=t||TVE.Editor_Page.editor,this.checkCWVElements(t);let s=a("#pre-save-filter");s.length||(s=a('<div style="display:none" id="pre-save-filter"></div>').appendTo("body")),s.empty(),TVE.do_action("tcb.clean_content.root",t);const i=t.children(".tve_content_save").length?t.children(".tve_content_save"):t,n=i.length>0?i.html().replace(/<script type="text\/javascript">/g,'<script type="tcb/temp">'):"";try{s.html(n)}catch(e){s.html(n.replace(/<script[^>]*>.*?<\/script>/gm,n)),console.warn("All scripts have been stripped from the html because one of them was generating an error!")}TVE.do_action("tcb.clean_content.before",s,t),e.keep_wp_shortcodes||s.find(".tve_shortcode_rendered").remove(),s.find(TVE.apply_filters("tcb.clean_content.remove_selectors",".tcb-remove-on-save, .ui-resizable-handle, .ui-resize-left, .ui-resize-right, .thrive-symbol-shortcode, .thrive-shortcode-html:not(.tve-custom-menu-type), grammarly-btn,.tve_custom_html_placeholder,.tve_dropzone,.rangySelectionBoundary, .tve_shortcode_overlay,.tve_shortcode_rendered script, .tcb-remove-on-save, .tve_post_grid_wrapper,.tve_widget_container,.gr-textarea-btn_status,.gr-textarea-btn, .tve-remove-auxiliary-content, .thrv_symbol.tcb-elem-placeholder, .tve-article-cover, .preview-cloned-content",e)).remove().end().find(".canvas-mode, .thrv_symbol, .edit_mode, .tve_merge_cells, .tve_merge_selected, .tve_active_hyperlink, .active_highlight, .active_delete, .active_duplicate, .tcb_bring_front").removeClass("edit_mode tve_merge_cells tve_merge_selected, tve_active_hyperlink active_highlight active_delete active_duplicate canvas-mode tve-element-overlay tcb_bring_front symbol-edit-mode").end().find(".tve_toggle_open").removeClass("tve_toggle_open").end().find(".tve_toggle_open_text").removeClass("tve_toggle_open_text").end().find(".thrv_toggle_shortcode .tve_faqC").hide().end().find(".thrv_toggle_title").removeClass("tve-state-expanded").end().find('.thrv-tabbed-content [data-tab-type="dynamic"] .tve-state-expanded').removeClass("tve-state-expanded").end().find(".tve-dynamic-dropdown").removeClass("tve-state-expanded").end().find(".tcb-filter-option").removeClass("tve-state-expanded").end().find(".thrv_toggle .tve_faqC").removeAttr("style").end().find(".thrv_toggle .tcb-add-block-below").remove().end().find("#tve-clipboard-container").remove().end().find(".tve_vertical .tcb-menu-logo-wrap").remove().end().find(".thrv_heading").removeClass("thrv_heading").addClass("thrv_text_element").end().find(".tve_oFaq").removeClass("tve_oFaq").end().find(".ui-resizable,.init_done,.ui-sortable,.ui-sortable-handle,.tve-draggable,.tve-droppable").removeClass("ui-resizable init_done ui-sortable ui-sortable-handle tve-draggable tve_grabbed tve-droppable tve_styling tve_moving").end().find("[contenteditable]").removeAttr("contenteditable").end().find("[draggable]").removeAttr("draggable").end().find("[data-gramm]").removeAttr("data-gramm data-gramm_id data-gramm_editor").filter(":empty").remove().end().end().find(".tve-state-hover,.tve-state-active").removeClass("tve-state-hover tve-state-active").end().find(".tve-m-expanded").removeClass("tve-m-expanded").end().find(".on_hover").removeClass("on_hover").end().find(".tve-triggered-icon").removeClass("tve-triggered-icon").end().find(".tcb-animated").removeClass("tcb-animated").end().find(".thrv_widget_menu").removeClass("tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile").end().find(".expand-children").removeClass("expand-children").end().find('[data-css=""]').removeAttr("data-css").end().find(".tcb-mp").css("z-index","").removeClass("tcb-mp").end().find("[srcset]").removeAttr("srcset").removeAttr("sizes").end().find("p").each(function(){void 0!==this.className&&0===this.className.toString().length&&this.removeAttribute("class")}),this.cleanup_froala(s),s.find(".tve_more_tag").replaceWith('\x3c!--tvemorestart--\x3e<p class="tve_more_tag" id="more-'+TVE.CONST.post.ID+'"><span class="tve_no_edit">More...</span></p>\x3c!--tvemoreend--\x3e'),s.find("iframe.tcb-yt-bg").each(function(){const e=a(this),t=a(`<div id="${this.id}" class="tcb-yt-bg" data-url="${this.getAttribute("data-url")}" data-yt-id="${this.getAttribute("data-yt-id")}"></div>`);e.hasClass("dynamic-source")&&t.addClass("dynamic-source").attr("src",e.attr("src")).attr("data-c-f-id",e.attr("data-c-f-id")),e.replaceWith(t)}),s.find(".thrv_responsive_video[data-type=vooplayer]").each((e,t)=>{a(t).find("#theImg,link,.spinner").remove()}),this.cleanupExtensionsJunk(s),this.cleanupPluginsJunk(s),s.find(".tcb-replaceable-placeholder").each(function(){const e=a(this);e.parent().hasClass("tcb-parent-placeholder-empty")||e.remove()}),s.find("video > source").each((e,t)=>{t.getAttribute("type")&&-1!==t.getAttribute("type").indexOf("quicktime")&&t.removeAttribute("type")}),s.find(".thrive-shortcode-config").each((e,t)=>{if(t.parentElement.classList.contains("thrv_thrive_optin"))return;const s=t.innerHTML.match(new RegExp("__CONFIG_(.*?)__"));if(s&&s.length>1)try{o(TVE.inner_$(t),s[1]).remove("tve_shortcode_rendered")}catch(e){}}),s.find(".tcb-window-width").each((e,t)=>{t.style.removeProperty("width"),t.style.removeProperty("left")}),s=TVE.apply_filters("tcb_filter_html_before_save",s,t,e),s.find("a[data-tcb-href]").each(function(){this.setAttribute("href",this.getAttribute("data-tcb-href"))}),this.stripped_content=this.get_stripped_content(s.clone());const r=s.html().replace(/<script type="tcb\/temp">/g,'<script type="text/javascript">').replace(/\u200B/g,"");return s.empty(),r},checkCWVElements(e){const t=TVE.apply_filters("tcb.cwv_elements",[],e).filter(e=>e.is(":visible"));if(t.length>0){const s={m:"600px",t:"1023px",d:"1366px"};for(const i in s){TVE.main.$frame.width(s[i]);const n=`data-cwv-height-${i}`;e.find(`[${n}]`).removeAttr(n),t.forEach(e=>{e.css("border","1px solid transparent").attr(n,Math.ceil(e.height())).css("border","")})}TVE.main.sidebar_bottom.setIframeWidth(TVE.main.device)}},get_stylesheet_rules(){let e,t=TVE.stylesheet.cssRules?TVE.stylesheet.cssRules:TVE.stylesheet.rules,s="",i="";const n=[],o=[],a=/ (p|h1|h2|h3)$/,l=TVE.apply_filters("tcb.css.save.blacklist",[]);function c(t,s){s=s||"";let i,o="";if(-1!==n.indexOf(s+t.selectorText))return"";if(e=r.getRealSelector(t),e.includes(".tve-state-hover"))return"";const c=function(e,t){if(TVE.apply_filters("tcb.css.save.whitelist_rule",!1,e,t))return!0;for(let t,s=0;t=l[s++];)if(-1!==e.indexOf(t))return!1;return-1===e.indexOf("data-css")&&-1===e.indexOf("data-tve-custom-colour")||!(!e.match(a)||-1===t.indexOf("margin"))&&jQuery(e.replace(a,"")).length}(e,t.cssText)||jQuery(e).length;if(TVE.apply_filters("tcb.css.should_save_rule",c,t)){if(i=t.cssText.replace(t.selectorText,"").replace(/\{(\s*)\}/g,"").trim(),!i)return"";o+=TVE.apply_filters("tcb.css.filter_rule",t.cssText),n.push(s+t.selectorText)}return o}t=TVE.apply_filters("tcb_css_rules_before",t);for(let e=t.length-1;e>=0;e--){const n=t[e];if(n.type===CSSRule.IMPORT_RULE){const e=TVE.FontManager.read_font_name(n.cssText);TVE.FontManager.is_font_used(e,s)&&void 0===o[e]&&(o[e]=1,s=n.cssText+s);continue}if(n.type!==CSSRule.MEDIA_RULE)s=n.type!==CSSRule.FONT_FACE_RULE?c(n)+s:n.cssText+s;else{i="";for(let e,t=0;e=n.cssRules[t++];)i+=c(e,n.media.item(0));i&&(s="@media "+n.media.item(0)+"{"+i+"}"+s)}}return s},get_global_rules(e){const t=TVE.globalsheet.cssRules?TVE.globalsheet.cssRules:TVE.globalsheet.rules,s={},i=[],n=[],r=TVE.CSS_Rule_Cache.getImports();function o(e,t){t=t||"";let s="";return-1!==n.indexOf(t+e.selectorText)?"":e.cssText.replace(e.selectorText,"").replace(/\{(\s*)\}/g,"").trim()?(s+=e.cssText,n.push(t+e.selectorText),s):""}for(let n=0;n<t.length;n++){const a=t[n];if(a.type===CSSRule.MEDIA_RULE)for(let t,n=0;t=a.cssRules[n++];){const n=o(t,a.media.item(0));if(!(e.length>0&&n.indexOf("tve-state-hover")>-1)){if(n.indexOf(TVE.CONST.global_cls_prefix)>-1){if(!n.match(e))continue;s[a.media.item(0)]||(s[a.media.item(0)]=[]),s[a.media.item(0)].push(n)}if(t.style.getPropertyValue("font-family").length){const e=t.style.getPropertyValue("font-family").replace(/['"]+/g,"").trim();if(!1===TVE.FontManager.is_web_safe_font(e))for(let t=0;t<r.length;t++)r[t].indexOf(e.replace(/ /g,"+"))>-1&&-1===i.indexOf(r[t])&&i.push(r[t])}}}}return TVE.apply_filters("tcb.get_global_rules",{css:s,fonts:i})},refresh_global_style_node(){let e="";const t=this.get_global_rules("");a.each(t.fonts,function(t,s){e+=s}),a.each(t.css,function(t,s){e+="@media "+t+"{";for(let t=0;t<s.length;t++)e+=s[t].replace(TVE.escapedRegEx(TVE.CONST.global_css_prefix,"g"),"");e+="}"}),TVE.inner_$(".tve_global_style").html(e)},parse_element_classes(e){const t=new RegExp(this.TCB_CLS_PAT.join("([^ ]*)|")+"([^ ]*)|"+TVE.thrv_custom_classes.join("|"),"g");return e?e.replace(t,"").replace("/S+/g"," ").trim():""},is_wp_content_tinymce_available:()=>"undefined"!=typeof tinymce&&tinymce&&tinymce.activeEditor&&"tve_tinymce_shortcode"===tinymce.activeEditor.id&&!tinymce.activeEditor.isHidden(),get_shotcode_tinymce_content(){if(!this.is_wp_content_tinymce_available()){let e=jQuery("#tve_tinymce_shortcode").val();return wp&&wp.editor&&wp.editor.autop&&(e=wp.editor.autop(e)),e}return tinymce.activeEditor.getContent()},set_shortcode_tinymce_content(e){this.is_wp_content_tinymce_available()?tinymce.activeEditor.setContent(e):jQuery("#tve_tinymce_shortcode").val(e)},convert_script_tags(e){e=e.replace("<\\/script","<\\\\/script");const t=jQuery('<div class="tve_escaped_js">'+e+"</div>");return 0===t.find("script").length&&0===t.find("noscript")||(t.find("script").each(function(){const e=jQuery(this),t=jQuery('<code class="tve_js_placeholder"></code>');let s="[tcb-script";jQuery.each(this.attributes,function(){s+=" "+this.name+'="'+this.value+'"'}),s+="]"+e.text()+"[/tcb-script]",t.text(s),e.replaceWith(t)}),t.find("noscript").each(function(){const e=jQuery(this),t=jQuery('<code class="tve_js_placeholder tve_noscript"></code>');let s="[tcb-noscript";jQuery.each(this.attributes,function(){s+=" "+this.name+'="'+this.value+'"'}),s+="]"+e.text()+"[/tcb-noscript]",t.html(s),e.replaceWith(t)})),t.html()},revert_script_tags(e){if(!e.trim())return"";const t=jQuery(`<div class="tve_escaped_js">${e}</div>`);return t.find(".tve_custom_html_placeholder,.tve_click").remove(),t.find(".tve_shortcode_overlay").remove(),0===t.find("code.tve_js_placeholder").length||t.find("code.tve_js_placeholder").each(function(){const e=jQuery(this),t=new RegExp("^\\[tcb-script([^\\]]*?)\\]([\\s\\S]*?)\\[/tcb-script\\]$","g");let s;s=e.find("script").length?e.html():e[e.hasClass("tve_noscript")?"html":"text"]().replace(t,"<script$1>$2<\/script>");const i=new RegExp("^\\[tcb-noscript([^\\]]*?)\\]([\\s\\S]*?)\\[/tcb-noscript\\]$","g");s=s.replace(i,"<noscript$1>$2</noscript>"),e.hasClass("tve_noscript")&&(s=jQuery("<textarea>").html(s).text());const n=jQuery(s);n.removeAttr("class className"),e.replaceWith(n)}),t.html().trim()},prepareSaveData(e,t){let s=function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach(function(t){n(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}({update:e,tve_content:this.get_clean_content({},this.editor),tve_stripped_content:this.stripped_content,post_id:TVE.CONST.post_id,inline_rules:this.get_stylesheet_rules(),tve_custom_css:TVE.Editor_Page.get_custom_css(),tve_landing_page:TVE.CONST.landing_page||"",custom_font_classes:[],tve_globals:{},tve_post_constants:TVE.CONST.tve_post_constants,tve_global_scripts:TVE.CONST.tve_global_scripts||{},has_icons:0,page_events:TVE.CONST.page_events},TVE.Lightspeed.getLightspeedData({$content:TVE.Editor_Page.editor}));return s=TVE.apply_filters("tcb_save_post_data_before",s),TVE.CONST.custom_post_data&&a.each(TVE.CONST.custom_post_data,function(e,t){s[e]=t}),TVE.CONST.tve_globals=TVE.CONST.tve_globals||{},TVE.CONST.tve_globals.js_sdk=this.getUsedSDKs(),TVE.CONST.social_fb_app_id&&(s.social_fb_app_id=TVE.CONST.social_fb_app_id),a.each(TVE.CONST.tve_globals,function(e,t){e&&(s.tve_globals[e]=t)}),custom_font_classes&&a.each(custom_font_classes.split(" "),function(e,t){(TVE.Editor_Page.editor.find("."+t).length||TVE.landing_fonts&&TVE.landing_fonts.fontUsed(t))&&s.custom_font_classes.push(t)}),s.tve_globals.extra_fonts&&a.each(s.tve_globals.extra_fonts,function(e,t){TVE.Editor_Page.editor.find("."+t.font_class).length||TVE.landing_fonts&&TVE.landing_fonts.fontUsed(t.font_class)?t.ignore=0:t.ignore=1}),void 0!==t&&a.each(t,function(e,t){s[e]=t}),s.tve_globals.used_icon_packs=[],s.has_icons=this.hasIcons(TVE.Editor_Page.editor,s),s.tve_globals.fb_comment_admins=this.getFacebookCommentsModerators(),a(".tve_post_grid_masonry,.tcb-masonry").length&&(s.tve_has_masonry=1),a(".tve_typefocus").length&&(s.tve_has_typefocus=1),(a(".tve_wistia_popover:visible").length||a(".tve_ea_thrive_wistia").length)&&(s.tve_has_wistia_popover=1),s=TVE.apply_filters("tcb_save_post_data_after",s),s.tve_content=TVE.prepareWordfencePostContent(s.tve_content),s.tve_stripped_content=TVE.prepareWordfencePostContent(s.tve_stripped_content),s},hasIcons(e=a(),t={}){const s=e.find(".tve_sc_icon:not(.tve_sc_text)");let i=a();if(s.length){const e=[];if(TVE.CONST.tve_globals.extra_icons)for(let n,r=0;n=TVE.CONST.tve_globals.extra_icons[r++];){if(!n.icons||!n.icons.length)continue;const o=s.filter("."+n.icons.join(",."));o.length&&t.tve_globals&&t.tve_globals.used_icon_packs&&t.tve_globals.used_icon_packs.push(n["font-family"]),i=i.add(o),o.each(function(){e.push(this.dataset.tveIcon)}),TVE.CONST.tve_globals.extra_icons[r-1].icons=e}}return s.length!==i.length?1:0},getFacebookCommentsModerators(e=TVE.Editor_Page.editor){let t="";const s=e.find(".tve-fb-comments:visible");if(s.length>0){const e=s.attr("data-fb-moderator-ids");void 0!==e&&e.length>0&&(t=JSON.stringify(e.split(";")))}return t},getUsedSDKs(e=TVE.Editor_Page.editor){let t=[];return e.find(".thrv_social").each(function(){t=t.concat(a(this).tve_social().getRequiredSDKs())}),e.find(".tve-fb-comments").length>0&&(t.includes("fb")||t.push("fb")),t},process_saved_template(e,t,s,i,n,r=""){if(t.find(".edit_mode").removeClass("edit_mode"),t.find(".tve_sc_icon").length&&!a("#thrive_icon_pack").length&&TVE.CONST.icon_pack_css&&a('<link id="thrive_icon_pack" rel="stylesheet" type="text/css" href="'+TVE.CONST.icon_pack_css+'">').appendTo("head"),!(e=e.trim())&&!s)return t;function l(e){const t=Math.floor(1e8*Math.random()+1);return e.attr("data-tve-custom-colour",t),t}const c=t.wrapAll("<div></div>").parent(),d=TVE.apply_filters("tcb.content_template.container",c);if(e){const p=e.match(/[^{}]+(?=\})/g),u=e.match(/\[(.*?)\]([^\{]*)/g),g=u?u.length:0;var h={};for(let f=0;f<g;f++){const v=u[f].match(/\[data-tve-custom-colour=([^0-9]{1,1})(\d+)('|")\]/);if(!v||v.length<3)continue;const m=void 0!==h["code"+v[2]]?h["code"+v[2]]:l(d.find('[data-tve-custom-colour="'+v[2]+'"]')),E=u[f].replace(v[2],m);TVE.compat.insert_css_rule(E,p[f],TVE.stylesheet.cssRules.length),h["code"+v[2]]=m}}if(i&&jQuery.each(i,function(e,t){TVE.stylesheet.insertRule(t)}),s){function _(e,t,s,i){if(e===TVE.main.responsive.desktop.media&&-1!==t.indexOf(":hover")){const e=t.split(",").map(function(e){let t=e.replace(/^([^:]+):hover/g,"$1.tve-state-hover");return t===e&&(t=e.replace(/(\s+)([^:]+):hover/g,"$1.tve-state-hover$2")),t===e&&(t=e.replace(/:hover/g,".tve-state-hover")),t}).join(",");s.insertRule(e+i+"}",s.cssRules.length)}}const T={};jQuery.each(s,function(e,t){let s=(t=t.replace(/data-css='(.+?)'/g,'data-css="$1"')).match(/[^{}]+(?=\})/g),i=t.match(/([^\r\n{}]+)(,(?=[^}]*{)|\s*){/g);if(!s||!i||s.length!==i.length)return!0;e.includes("width")||(e=TVE.main.responsive.desktop.media);const r=TVE.CSS_Rule_Cache.media_rule(e);i=i.map(a.trim),s=s.map(a.trim);for(const t in i){let o=i[t];if(!s[t])break;o.includes("data-css=")||(o=TVE.apply_filters("tcb.content_selector_prefix",o),r.style_by_selector(o.replace("{","").trim(),!1)||(r.insertRule(o+s[t]+"}",r.cssRules.length),_(e,o,r,s[t])));const l=o.match(/tve-u-(.[^ "]*)/g);a.each(l,function(i,a){T[a]=T[a]||TVE.CSS_Rule_Cache.generate_id(),o=o.replace(new RegExp("("+a+")","g"),T[a]).trim(),o=TVE.apply_filters("tcb.content_selector_prefix",o),n&&TVE.hasHeadCss(o.replace("{","").trim(),!0,e)||(r.insertRule(o+s[t]+"}",r.cssRules.length),_(e,o,r,s[t]))})}}),a.each(T,function(e,t){d.find('[data-css="'+e+'"]').attr("data-css",t),r=r.replace(new RegExp("("+e+")","g"),t)}),TVE.do_action("tcb.process_template.after.ids_remap",T,d)}if(r.length>0){const b=r.split("}"),V=TVE.CSS_Rule_Cache.media_rule(TVE.main.responsive.desktop.media);a.each(b,(e,t)=>{if(t.length>0){const e=t.split("{"),s={selectorText:e[0].trim(),cssText:e[1].trim()};s.selectorText.length>0&&s.cssText.length>0&&V.insertStyleRule(s)}})}return d.find(".thrv_widget_menu").each(function(){const e=a(this),t=o(e.find(".thrive-shortcode-config"),"widget_menu"),s=t.get();t.save(s)}),d.find(".thrv_widget_menu").removeClass("tve-custom-menu-switch-icon-tablet tve-custom-menu-switch-icon-mobile"),TVE.compat.texts(d),TVE.compat.icons(d),c.html()},insert_head_css(e,t){var s;const i=a('<style type="text/css"></style>').text(e).appendTo("head"),n=TVE.ActiveElement?TVE.ActiveElement.closest(".thrv_symbol"):a(),r=a.Deferred(),o=TVE.CSS_Rule_Cache.getImports(),l=()=>{const e=TVE.apply_filters("css_rules_before_insert",i[0].sheet.cssRules,n);for(let t=0;t<e.length;t++)switch(e[t].type){case CSSRule.IMPORT_RULE:o.includes(e[t].cssText)||TVE.stylesheet.insertRule(e[t].cssText,0);break;case CSSRule.MEDIA_RULE:const s=TVE.compat.conditionText(e[t]),i=TVE.CSS_Rule_Cache.media_rule(s),n=s===TVE.main.responsive.desktop.media;let r=null;for(let s=0;s<e[t].cssRules.length;s++){const o=e[t].cssRules[s];let a=null;null!==(r=i.rule_index_by_selector(o.selectorText))&&i.deleteRule(r);let l=o.style.cssText;for(let i,n=s+1;i=e[t].cssRules[n++];)i.selectorText===o.selectorText&&(l+=i.style.cssText,e[t].deleteRule(--n));i.insertRule(`${o.selectorText} { ${l} }`,i.cssRules.length),n&&null!==(a=TVE.CSS_Rule_Cache.generate_hover_state_css(o))&&i.insertRule(a,i.cssRules.length)}break;case CSSRule.STYLE_RULE:TVE.CSS_Rule_Cache.media_rule(TVE.main.responsive.desktop.media).insertStyleRule(e[t]);break;default:TVE.stylesheet.insertRule(e[t].cssText,TVE.stylesheet.cssRules.length)}"function"==typeof t&&t(i[0]),r.resolve(i[0]),i.remove()};return null!==(s=i[0].sheet)&&void 0!==s&&s.cssRules?l():i[0].onload=function(){l()},r.promise()},prepare_content_for_editor(e){(e=e||TVE.inner_$("body")).find(".thrv_custom_html_shortcode").each(function(){const e=TVE.inner_$(this),t=e.find("img");e.height()<=10&&(0===t.length||t.closest("code.tve_noscript").length>0)?e.append('<div class="tve_shortcode_overlay"><span>No preview available.</span></div>'):e.find("iframe").length&&!e.find(".tve_iframe_cover").length&&e.append('<div class="tve_iframe_cover"></div>')})},cleanupExtensionsJunk(e){e.find('input[type="password"],input[type="email"],input[type="text"]').css({"background-image":"","background-repeat":"","background-attachment":"","background-size":"","background-position":""}).removeAttr("data-kwimpalastatus data-kwimpalaid").siblings('span[data-dashlanecreated="true"]').remove()},cleanupPluginsJunk(e){e.find(".google-auto-placed ").remove(),e.find('ins[data-adsbygoogle-status="done"]').each((e,t)=>{t.removeAttribute("data-adsbygoogle-status"),t.innerHTML=""})}}},22428(e,t,s){function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function n(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach(function(t){r(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function r(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const o=s(74144);!function(t){class s{constructor(e,t={}){this.css={},this.options=n(n({},{defaultStyleSelector:TVE.CONST.default_styles.link.selector,globalStylePrefix:TVE.CONST.global_styles.prefix_link,landingPageSelector:TVE.CONST.default_styles.link.lp_selector,required:["color","background-color","font-weight","font-style","text-decoration"],computed:[]}),t),this.setElement(e)}static get selectorSpec(){return"__el__"}static get regexSuffix(){return"( strong|:hover|:active)?(::before|::after)?"}setElement(e){this.$el=e,this.el=e[0],e.length&&this.collect()}selector(e,t=null){switch(e){case"default":return this.options.defaultStyleSelector;case"landing_page":return this.options.landingPageSelector;case"global":return`${TVE.CONST.global_css_prefix} .${t||TVE.getClassThatContains(this.el,this.options.globalStylePrefix)}`;case"instance":return`${TVE.CONST.global_css_prefix} [data-css="${t||TVE.CSS_Rule_Cache.uniq_id(this.el)}"]`}throw new Error("Unknown scope: "+e)}collect(e=null){function i(e,t,i,n){if(0===Object.keys(i).length)return;const r=n.selectorText.replace(new RegExp(`^.+?${s.regexSuffix}$`,"g"),`${s.selectorSpec}$1$2`);e[t][r]=e[t][r]?Object.assign(e[t][r],i):i}let n;if(this.css={},e&&"default"!==e||(TVE.USE_GLOBALSHEET=!0,n=TVE.escapedRegEx(this.options.defaultStyleSelector.split(", ").pop(),"g","",s.regexSuffix+"$"),this.css=TVE.CSS_Rule_Cache.getCssForSelector(n,!0,i),TVE.USE_GLOBALSHEET=!1),e&&"landing_page"!==e||TVE.CONST.landing_page&&(n=TVE.escapedRegEx(this.options.landingPageSelector.split(", ").pop(),"g","",s.regexSuffix+"$"),t.extend(!0,this.css,TVE.CSS_Rule_Cache.getCssForSelector(n,!0,i))),!e||"global"===e){TVE.USE_GLOBALSHEET=!0;const e=TVE.getClassThatContains(this.$el,this.options.globalStylePrefix);e&&(n=new RegExp(`${e}${s.regexSuffix}$`,"g"),t.extend(!0,this.css,TVE.CSS_Rule_Cache.getCssForSelector(n,!0,i))),TVE.USE_GLOBALSHEET=!1}if(!e||"instance"===e){if(this.$el.attr("data-selector"))n=TVE.escapedRegEx(this.$el.attr("data-selector").split(", ").pop(),"g","",s.regexSuffix+"$");else{const e=this.$el.attr("data-css")||TVE.CSS_Rule_Cache.generate_id("empty-");n=new RegExp(`${e}"]${s.regexSuffix}$`,"g")}if(t.extend(!0,this.css,TVE.CSS_Rule_Cache.getCssForSelector(n,!0,i)),this.options.required.length){this.css[TVE.main.media_query_tpl()][s.selectorSpec]=this.css[TVE.main.media_query_tpl()][s.selectorSpec]||{};const e=TVE._.difference(this.options.required,Object.keys(this.css[TVE.main.media_query_tpl()][s.selectorSpec]));this.options.required.includes("margin")&&e.push("margin"),e.length&&t.extend(!0,this.css[TVE.main.media_query_tpl()][s.selectorSpec],this.$el.css(e))}if(this.options.computed.length&&(t.extend(!0,this.css[TVE.main.media_query_tpl()][s.selectorSpec],this.$el.tcbCss(this.options.computed)),this.each(e=>{e["--tcb-applied-color"]&&(e.color=e["--tcb-applied-color"].replace("var$","var")+" !important")})),!e){let e;this.$el.parents("p").length?e="p_link":this.$el.parents(TVE.ELEM.headings).length?e="heading_link":this.$el.parents(".tcb-plain-text").length?e="plaintext_link":this.$el.parents(".tcb-styled-list,.tcb-numbered-list").length&&(e="li_link"),e&&TVE.CONST.default_styles[e]&&(TVE.USE_GLOBALSHEET=!0,n=TVE.escapedRegEx(TVE.CONST.default_styles[e].selector.split(", ").pop(),"g","",s.regexSuffix+"$"),t.extend(!0,this.css,TVE.CSS_Rule_Cache.getCssForSelector(n,!0,i)),TVE.USE_GLOBALSHEET=!1)}}return this}addImport(e){return e=e.replace("!important","").trim().replace(/ /g,"+").replace(/['"]/g,""),TVE.CSS_Rule_Cache.getImports().some(t=>!!t.includes(e)&&(this.imports().includes(t)||this.imports().push(t),!0)),this}removeImportant(){return this.each((e,t,s)=>{TVE._.isString(e)?this.css[s][t]=e.replace(/(\s*)!important/g,""):TVE._.each(e,(t,s)=>{e[s]=t.replace("!important","").trim()})}),this}imports(){return this.css["@imports"]||(this.css["@imports"]=[])}eachImport(e){TVE._.each(this.imports(),e)}each(e){TVE._.each(this.css,(t,s)=>{if("@imports"===s)return!0;TVE._.each(t,(t,i)=>e(t,i,s))})}write(e,t=null){"instance"!==e&&"landing_page"!==e&&(TVE.USE_GLOBALSHEET=!0);const s=this.selector(e,t).split(", ");return this.eachImport(TVE.FontManager.import_font.bind(TVE.FontManager)),this.each((e,t,i)=>{const n=s.reduce((e,s)=>(e?e+", ":"")+t.replace(/__el__/g,s),"");TVE.write_css(n,e,[i])}),TVE.USE_GLOBALSHEET=!1,this}asString(){const e={"@imports":this.imports()};return this.each((t,s,i)=>{e[i]=e[i]||[],e[i].push(`${s} {${TVE.CSS_Rule_Cache.objectToCss(t)}}`)}),e}getComputed(e,t="",i="",n=!1){const r=[TVE.main.media_query_tpl()].concat(TVE.main.get_inherited_media());let a="";const l={pristine:!0};return r.some(n=>{let r=o.deepGet(this.css,[n,s.selectorSpec+t+i,e],!1);return!1===r&&(l.pristine=!1),!1===r&&t&&(r=":hover"===t&&this.hoverComputedStyles&&this.hoverComputedStyles[e]?this.hoverComputedStyles[e]:o.deepGet(this.css,[n,s.selectorSpec+i,e],!1)),!1!==r&&(a=r,!0)}),l.value=a=String(a||"").replace(/!(\s)?important/g,"").trim(),n?l:a}getSelector(e,t=""){return this.selector(e).split(", ").map(e=>e+t).join(", ")}setComputedHover(e){return this.hoverComputedStyles=e,this}remove(...e){return Array.isArray(e[0])&&(e=e[0]),this.each(t=>{e.forEach(e=>delete t[e])}),this}}e.exports=s}(jQuery)},62499(e,t,s){!function(t){let i;TVE.TEXT_INLINE=".tve_fg h1, .tve_fg h3, .tve_ca h3, .tve_ca h1, .tve_ca .tve_btnLink span, .tve_ts span, .tve_ct_title,.thrv_tw_quote p, .thrv_widget_menu .tve_menu_title, .wp-caption-text, .tve_btn_txt, .tve_btn_sec_txt, .tve_fg > .tve_line > h3, .tve_scT > ul > li > span, .thrv_toggle_shortcode .tve_faqB h4, .thrv-inline-text, .thrv-advanced-inline-text,.tve_submit_container button, .thrv_tw_qs_button_text, .tve-custom-menu-type .tve-disabled-text-inner, .thrv_text_element a, .tcb-styled-list a, .tcb-numbered-list a, .tve-tab-text, .tve-toggle-text, .tve-input-option-text, .tcb-editable-label, .tve-input-option-text a, .tve_s_text, .tve-progress-label",TVE.TEXT_INLINE_SHORTCODE=".thrv-button .thrv-inline-text",TVE.TEXT_EDITABLE_BY_ELEM=".tve-tab-text, .tve-toggle-text",TVE.TEXT_WITH_LINK=".tcb-styled-list-icon-text, .tcb-numbered-list-text, .tcb-lg-consent .thrv-inline-text, .wp-caption-text, .tve-progress-label",TVE.TEXT_RAW=".thrv_wrapper.thrv-plain-text",TVE.TEXT_HEADINGS=".thrv_wrapper.thrv_heading",TVE.TEXT_BLOCK=".thrv_text_element, .tcb-pagination-label",TVE.BLOCK_ELEMENTS="h1,h2,h3,h4,h5,h6,p,address,blockquote,li,.thrv-inline-text,.thrv-advanced-inline-text,a,.tcb-plain-text,.tve-progress-label";let n=!1;const r=s(54816),o={maintain_focus:!1},a=TVE.TEXT_ALL=TVE.TEXT_INLINE+","+TVE.TEXT_RAW+","+TVE.TEXT_HEADINGS+","+TVE.TEXT_BLOCK,l={default:["bold","italic","underline","strikeThrough","textStyles","align-left","align-center","align-right","align-justify","formatUL","formatOL","tcbLink","shortcode","tcbFroalaMode"],inline:["bold","italic","underline","strikeThrough"],inline_shortcode:["bold","italic","underline","strikeThrough","shortcode"],inline_link:["bold","italic","underline","strikeThrough","linkStyles","tcbLink","shortcode"],with_link:["bold","italic","underline","strikeThrough","align-left","align-center","align-right","align-justify","tcbLink","shortcode"]},c={};function d(e){return t.proxy(c[e],c)}function h(e){e.attr("contenteditable",!1),e.each((e,s)=>{const i=t(s);0===i.parent(".thrive-inline-shortcode").length&&i.wrap('<span class="thrive-inline-shortcode" contenteditable="false"></span>'),i.attr("data-css")&&(i.parent().attr("data-css",i.attr("data-css")),i.removeAttr("data-css"))})}TVE.main.on("device_hide_element",function(e){o.editor&&o.editor.$tb&&TVE.main.device.toLowerCase()===e.toLowerCase()&&o.editor.$tb.closest("#main-fr-toolbar").hide()}),TVE.main.on("device_change",function(){TVE.ActiveElement&&TVE.ActiveElement.is(TVE.TEXT_ALL)&&!TVE.ActiveElement.is(":visible")&&o.hide_toolbars();const e=TVE.main.$frame.offset();switch(e.top+=parseInt(TVE.main.$frame.css("border-top-width"))+100,TVE.main.device){case"mobile":e.top-=38;break;case"tablet":e.top-=12;break;default:e.top-=4}i.css({top:e.top})}),c.focus=function(e,t){n=!0,o.editor=t,TVE.do_action("tcb.froala.focus",t,e),t.$tb&&t.$tb.show();const s=t.$oel.is(TVE.TEXT_BLOCK+",.thrv-inline-text,.thrv-advanced-inline-text,.tve-progress-label"+TVE.TEXT_HEADINGS)?t.$oel:t.$oel.closest(r.editable);s.length&&!s.hasClass("edit_mode")&&(o.force_show_toolbar=!0,TVE.Editor_Page.focus_element(s,e,{emulate:!0,prevent_selection_clear:!0}),delete o.force_show_toolbar,s.one("element.selected",()=>(n=!1,!0)))},c.refresh=TVE._.throttle(function(e,s,i){let r=!0;const a=[t.FE.KEYCODE.ARROW_UP,t.FE.KEYCODE.ARROW_RIGHT,t.FE.KEYCODE.ARROW_DOWN,t.FE.KEYCODE.ARROW_LEFT,t.FE.KEYCODE.ENTER,t.FE.KEYCODE.DELETE,t.FE.KEYCODE.BACKSPACE];"keyup"===e.namespace&&i&&!a.includes(i.which)&&(r=!1),"mouseup"===e.namespace&&n&&(r=!1),r&&o.editor&&(TVE.do_action("tcb.froala.refresh",o.editor,i),TVE.main.update_components(["text","link","click-tweet","shadow","animation","background"]))},500),c.paste_afterCleanup=function(e,t,s){return t.tcb.getBlockElement().hasClass("tcb-plain-text")&&(s='<div class="tcb-plain-text"> '+t.clean.html(s,["a","p","div","span","pre","blockquote","ul","li","ol","h1","h2","h3","h4","h5","h6"],t.opts.pasteDeniedAttrs)+"</div>"),s.replace(/\u200B/g,"")},c.commands_after=function(e,t,s,i,n){},c.blur=function(e,t){TVE.do_action("tcb.froala.blur",e,t)},c.undo_save_step=function(e,t){TVE.UndoManager.add({undo:()=>t&&t.undo_index>1?(t.events.focus(),t.undo.run()):"_EXECUTE_NEXT_",redo:()=>t&&t.undo_index<t.undo_stack.length?(t.events.focus(),t.undo.redo()):"_EXECUTE_NEXT_"})},c.keydown=TVE._.debounce(function(e,s,i){i.keyCode===t.FE.KEYCODE.ENTER&&(s.keys.ctrlKey(i)&&!i.shiftKey?TVE.main.trigger("ctrl-enter-pressed",i):TVE.main.trigger("enter-pressed",i)),i.keyCode===t.FE.KEYCODE.BACKSPACE&&TVE.main.trigger("backspace-pressed",i),i.keyCode===t.FE.KEYCODE.DELETE&&TVE.main.trigger("delete-pressed",i),i.keyCode===t.FE.KEYCODE.TAB&&TVE.main.trigger("tab-pressed",i)},100),c.tcb_before_delete=function(e){TVE.main.trigger("before-delete-pressed",e)},c.click=function(e,t,s){if(!TVE.state_manager.is_jump())return s.preventDefault(),!1},o.init=function(){i=TVE.$("#main-fr-toolbar");try{localStorage.FEK="cSXSE1LHAFJVCXCLS=="}catch(e){}delete t.FE.SHORTCUTS_MAP[t.FE.KEYCODE.S],this.froalaExternalConfig=TVE.apply_filters("tcb_froala_config",{}),TVE.Editor_Page.editor.off("click.froala-editor").on("click.froala-editor",a,e=>{TVE.state_manager.is_jump()||e.preventDefault()}).off("mouseenter.froala-editor").on("mouseenter.froala-editor",a,function(e){if(e.currentTarget.closest(".thrv-typography"))return!0;const s=t(e.currentTarget);return!0!==TVE.apply_filters("tcb.froala.non_editable",!1,s)?s.data("froala.editor")||TVE.state_manager.is_jump()?s:void o.initInstance(s):void 0}),o.handleEmptyShortcodes(),TVE.add_action("tcb_after_cloud_template",o.wrapShortcodeContent),TVE.add_action("tcb.after_insert_symbol",o.wrapShortcodeContent),TVE.add_action("tve.imported_content",o.wrapShortcodeContent),TVE.add_action("tcb.insert_content_template",e=>{o.handleEmptyShortcodes(),o.wrapShortcodeContent(e)}),TVE.add_filter("tcb_filter_html_before_save",o.formatInlineShortcodes),i.draggable({handle:".fr-drag",containment:"body",start(){TVE.main.$container.addClass("overlay"),o.editor.frameDropdown.hideAll()},stop(){TVE.main.$container.removeClass("overlay")}}),t.FE.DefineIconTemplate("font_awesome",'<svg class="tcb-icon" aria-hidden="true"><use xlink:href="#icon-[NAME]"></use></svg>'),["bold","italic","strikeThrough","underline"].forEach(function(e){t.extend(t.FE.ICONS[e],{NAME:t.FE.ICONS[e].NAME.replace(/-light$/,"")+"-light"})}),TVE.main.on("hover_state",function(){o.maintain_focus=o.editor,o.maintain_focus&&o.editor.core.hasFocus()&&(o.editor.$el.trigger("blur"),o.hide_toolbars())}).on("default_state",function(){o.editor&&o.maintain_focus&&o.editor.events.focus()}),TVE.Editor_Page.editor.on("mousedown",".tcb-replaceable-placeholder",e=>{if(0===e.button&&TVE.state_manager.is_default()){const s=t(e.currentTarget);return o.replace_placeholder(s),!1}})},o.initInstance=function(e){e.off("mousedown.prevent froala-focus").on("mousedown.prevent froala-focus",function(s){if(e.find(".tcb-revert-editable").removeClass("tcb-revert-editable").attr("contenteditable","true"),s.currentTarget.classList.contains("edit_mode")||!o.editor||o.editor.$oel.is(s.currentTarget)||(o.editor.events.enableBlur(),o.editor.$el.trigger("blur")),TVE.state()===TVE.STATE_DRAG||TVE.state_manager.is_hover()||e.is(r.not_editable)||!TVE.apply_filters("tcb.element.editable",!0,e))return TVE.do_action("tve.froala.text.noteditable",e),!1;let i;setTimeout(()=>{TVE.Views.Controls.DropPanel.close_all()}),o.handleParentHoverLeave(e),"mousedown"!==s.type||(i=t(s.target)).closest(".fr-element").length||(i.find(".fr-element").trigger("mousedown"),setTimeout(function(){e.data("froala.editor").events.focus()})),"A"===s.currentTarget.tagName&&(t(s.currentTarget).parents('[contenteditable="true"]').attr("contenteditable","false").addClass("tcb-revert-editable"),s.stopPropagation())});const s=e.is(TVE.TEXT_INLINE),n=e.is(TVE.TEXT_INLINE_SHORTCODE),a=e.is(TVE.TEXT_RAW),c=e.is(TVE.TEXT_HEADINGS),h=e.is(TVE.TEXT_WITH_LINK);let _,p,u=l.default;h?u=l.with_link:(n||s)&&(u=l.inline_shortcode),e.hasClass("wp-caption-text")?(u=u.slice(),u.push("align-left"),u.push("align-center"),u.push("align-right"),u.push("align-justify")):e.is("a")?u=l.inline_link:e.is(".tve-progress-label-wrapper--nodes .tve-progress-label")&&(u=l.inline_link.filter(e=>"linkStyles"!==e)),u=TVE.apply_filters("tcb.froala.toolbar_buttons",u,e),p=s?null:a?t.FroalaEditor.ENTER_DIV:t.FroalaEditor.ENTER_P,_={key:"cSXSE1LHAFJVCXCLS==",enter:p,multiLine:!s&&!c,multiLineEnableBR:c,keepFormatOnDelete:!0,placeholderText:"",initOnClick:!0,typingTimer:800,toolbarContainer:i,tooltips:!1,tooltipContainer:TVE.$body,htmlUntouched:!0,htmlAllowedEmptyTags:["i"],toolbarButtons:u,toolbarVisibleWithoutSelection:!0,toolbarHideOnKeyup:!1,toolbarFocusElement:!1,pasteDeniedTags:["colgroup","col","img"]},_=TVE.apply_filters("tcb.froala.options",_,e,l),c&&(_.htmlAllowedEmptyTags=TVE.ELEM.headings.split(",").concat(["textarea","a","iframe","object","video","style","script",".fa"])),t.each(this.froalaExternalConfig,function(e,t){_[e]=t}),e[0].classList.add("tve-froala"),e.froalaEditor(_).on("froalaEditor.mouseup",d("refresh")).on("froalaEditor.keyup",d("refresh")).on("froalaEditor.paste.afterCleanup",d("paste_afterCleanup")).on("froalaEditor.commands.after",d("commands_after")).on("froalaEditor.focus",d("focus")).on("froalaEditor.blur",d("blur")).on("froalaEditor.undo.saveStep",d("undo_save_step")).on("froalaEditor.keydown",d("keydown")).on("froalaEditor.tcb_before_delete",d("tcb_before_delete")).on("froalaEditor.click",d("click"));const g=e.data("froala.editor");e.on("froalaEditor.paste.beforeInsert",function(s,i,n){if(e.parents("div[data-link-wrap]").parent("a[href]").length&&t(n).find("a[href]").length){const t=e.closest("a[href]").children().first();return TVE.page_message(TVE.t.warning_link_pasted_inside_link+": "+TVE.get_element_name(t),!0,1e4),!1}}),e.is(TVE.TEXT_BLOCK)||c?e.off("click.tcb").on("click.tcb",function(e){TVE.state_manager.is_jump()||e.stopPropagation()}):s&&(e.on("froalaEditor.initialized",function(e,t){t.events.on("drop",function(){return!1},!0)}),e.on("froalaEditor.paste.beforeInsert",function(e,s,i){return t(i).children(TVE.BLOCK_ELEMENTS).not("a").contents().unwrap(),i.innerHTML}),g.$box=g.$wp=e),TVE.do_action("tcb.froala.element_editor_init",e,_)},o.replace_placeholder=function(e){e.parent().removeClass("tcb-parent-placeholder-empty");const s=t(TVE.main.$('#tve-static-elements [data-elem="text"]').html());TVE.do_action("tcb.froala.replace.placeholder",e,s),e.replaceWith(s),setTimeout(()=>{o.force_focus(s)})},o.disable=function(e){e.length>1?e.add(e.find(".tve-froala")).each(function(){const e=t(this);e.data("froala.editor")&&e.froalaEditor("destroy")}):e.data("froala.editor")&&e.froalaEditor("destroy")},o.exec=function(){if(!this.editor)return;const e=arguments[0].split(".");let t=this.editor,s=t;for(;e.length&&t[e[0]];)t=t[e.shift()],e.length>1&&(s=t);t.apply(s,Array.prototype.slice.call(arguments,1))},o.get_block_element=function(e=!1){return TVE.apply_filters("text_block_element",this.editor&&this.editor.tcb&&this.editor.tcb.getBlockElement()||TVE.ActiveElement,e)},o.selectionIsFullBlock=function(){return this.editor.tcb.selectionIsFullBlock()},o.has_selection=function(){return!(!this.editor||!this.editor.selection.text())&&this.editor.selection.element()},o.get_selection_element=function(){if(!this.editor)return t();let e=this.editor.selection.element();e.classList.contains("fr-marker")&&(e=e.parentNode);const s=t(e).closest("span");return"span"!==e.tagName.toLowerCase()&&s.length&&(e=s[0]),e&&e!==this.editor.$el[0]||(e=this.editor.tcb.getBlockElement()),e&&(e.jquery?e[0]:e).classList.contains("thrive-shortcode-content")&&(e=e.closest(".thrive-inline-shortcode")),t(e)},o.get_css=function(e,s,i,n){if(i=TVE.apply_filters("tve.froala.get_css.suffix",i),!this.editor&&TVE.ActiveElement)return TVE.ActiveElement.filter(".edit_mode").css(e);void 0===s&&(s=!0);const r=this.get_selection_element();if(!r[0])return;if("string"==typeof e){this.get_block_element()[0]!==r[0]&&"span"===r[0].tagName.toLowerCase()&&(n="");let o="";if("color"===e){if(TVE.getClassThatContains(r,TVE.CONST.global_styles.prefix_text)){const e=r.clone();e.css({display:"none"}),TVE.inner_$("head").append(e),o=e.tcbCssVar("--tcb-applied-color").replace(/var\$/g,"var"),e.remove()}o||(o=r.tcbCssVar("--tcb-applied-color").replace(/var\$/g,"var"))}return o||t(r).head_css(e,!1,i,s,n)}const o={};return TVE._.each(e,function(e){o[e]=r.style[e]||TVE.getComputedStyle(r,e)}),o},o.wrap_selection=function(e,s){return!!this.editor&&((s=s||{}).class||(s.class=TVE.CSS_Rule_Cache.generate_id()),this.editor.format.apply(e||"span",s),t(this.editor.selection.element()))},o.force_focus=function(e,s=!0){const i=t.Deferred();e.data("froala.editor")||o.initInstance(e);const n=e.data("froala.editor");if(n.$el.trigger("mousedown"),s){let e=n.$el.children(),t=!1;e.length||(e=n.$el,t=!0),o.selectNode(e,t)}return setTimeout(()=>{n.events.focus(),n.$el.trigger("mouseup")}),i.resolve(n),i.promise()},o.hide_toolbars=function(){this.force_show_toolbar||TVE.$will_focus&&TVE.$will_focus.is(TVE.TEXT_ALL)||(i.tcbHide(),this.editor&&(this.editor.frameDropdown.hideAll(),this.editor.events.enableBlur(),this.editor.$el.trigger("blur")),TVE.main.$el.tcbHasClass("tve_froala_pinned_mode")&&TVE.main.$container.removeClass("froala-pinned"))},o.show_toolbars=function(){this.force_show_toolbar||TVE.$will_focus&&TVE.$will_focus.is(TVE.TEXT_ALL)||i.show()},o.handleParentHoverLeave=function(e){let t=e.parentsUntil(TVE.Editor_Page.editor,".thrv_wrapper");t.length||(t=TVE.Editor_Page.editor),t.one("mouseleave",TVE._.debounce(function(){TVE.ActiveElement&&(TVE.FLAGS.hover_element=!1,TVE.main.update_components(["text","background","shadow","borders"]))},50))},o.formatInlineShortcodes=function(e,s,i={}){if(i.keep_inline_shortcodes)return e;const n="data-attr-",r="data-option-";return e.find(".tve-dynamic-link").each(function(){const e=this.getAttribute("dynamic-postlink");let t="";if(e)t=`[${e}${TVE.apply_filters("tcb.dynamic_link.attributes","",TVE.inner_$(this),e)}]`;else if(this.getAttribute("data-custom-shortcode"))t=this.getAttribute("data-custom-shortcode");else{let e=this.dataset.option||"",s="";e&&(e=` opt=${e}`),s=TVE.apply_filters("tcb.construct_link_extra_attributes",s,this),t=`[${this.dataset.dynamicLink} id=${this.dataset.shortcodeId}${e}${s}]`}this.setAttribute("href",t)}),o.refreshLinks(e),e.find(".thrive-inline-shortcode").each(function(){const e=t(this),s=e.find(".thrive-shortcode-content");let i=s.data("shortcode");s.each(function(){TVE.do_action("tve.froala.inline.shortcodes.before.save",this),t.each(this.attributes,function(){let e=this.value;e&&e.includes("[")&&(e=e.replace(/\[(.+?)\]/g,(e,t)=>`((${t}))`)),this.name.startsWith(n)?i+=` ${this.name.replace(n,"")}='${e}'`:this.name.startsWith(r)&&(i+=` ${this.name.replace(r,"")}='${e}'`)})});const o=s.find("a");if(o.length){const e=o.attr("data-css");e&&(i+=` link-css-attr="${e}"`)}const a=TVE.apply_filters("tcb.inline_shortcode.extra_attributes","",s,s.attr("data-shortcode"));i+=a,TVE.apply_filters("tcb.inline_shortcode.data_attributes_to_preserve",new Set).forEach(t=>{const i=e.attr(t);void 0!==i&&s.attr(t,i)}),s.addClass(e.attr("class").replace("thrive-inline-shortcode","").trim()).attr({"data-css":e.data("css"),style:e.attr("style")}).html(`[${i}]`),e.replaceWith(e.html())}),e},o.selectNode=function(e,t=!1){if(!(e=e.jquery?e[0]:e)||!this.editor)return;const s=this.editor.selection.get();s.removeAllRanges();const i=this.editor.doc.createRange();i[t?"selectNodeContents":"selectNode"](e),s.addRange(i)},o.refreshLinks=function(e=this.editor&&this.editor.$el){function s(e){const s={className:String(e.className)};Array.from(e.attributes).forEach(t=>s[t.nodeName]=e.getAttribute(t.nodeName)),s.href&&s.href.startsWith("[")&&(s.href=s.href.replace(/^\[(.+?)]$/g,(e,t)=>`((${t}))`)),s.title&&s.title.includes("[")&&(s.title=s.title.replace(/\[(.+?)\]/g,(e,t)=>`((${t}))`)),t(e.parentNode).tcbJsonData("attr-static-link",s)}e&&e.length&&(e.find("a").add(e.filter("a")).each((e,i)=>{if(i.parentNode.classList.contains("thrive-shortcode-content"))return void s(i);if(1!==i.children.length)return;const n=i.children[0];if(n.textContent===i.textContent.trim()&&n.classList.contains("thrive-inline-shortcode")){const e=t(i).clone().empty().text(i.textContent.trim());t(n).unwrap().find(".thrive-shortcode-content").html("").append(e),s(e[0])}}),e.find(".thrive-inline-shortcode > [data-attr-static-link]").each((e,t)=>{t.children.length&&"A"===t.children[0].tagName&&t.children[0].textContent===t.textContent||delete t.dataset.attrStaticLink}))},o.handleEmptyShortcodes=function(e=TVE.inner.$body){e.find(".thrive-shortcode-content").each(function(){const e=t(TVE.apply_filters("tve.froala.shortcode.init",this));if(e.is(":empty")){const t=TVE.apply_filters("tve.froala.shortcode.default_empty_value",e.attr("data-shortcode-name"),e);e.html(t)}h(e)})},o.hasGradient=function(){return this.getMultiLineSelection('[style*="--tcb-gradient-text-value"]').hasClass("tcb-text-gradient")},o.toggleGradient=function(e){this.getMultiLineSelection('[style*="--tcb-gradient-text-value"]').toggleClass("tcb-text-gradient",e)},o.getMultiLineSelection=function(e="span"){let t=this.get_selection_element();return TVE.froala.isMultilineSelection()?(t=TVE.ActiveElement.find(e),0===t.length&&(t=TVE.ActiveElement)):t.is(".thrive-inline-shortcode")&&(t=t.find(".thrive-shortcode-content")),t},o.isMultilineSelection=function(){var e;return(null===(e=this.editor)||void 0===e?void 0:e.selection.blocks().length)>1},o.isApplyingToCurrentSelection=function(e){return this.editor.selection.text().toLowerCase()===e.text().toLowerCase()},o.reformatFroalaWrappers=e=>{TVE.froala.exec("format.remove","span",e),TVE.froala.exec("format.apply","span")},o.wrapShortcodeContent=function(e){return h(e.find(".thrive-shortcode-content")),e},e.exports=o}(jQuery)},20954(e,t,s){function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function n(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach(function(t){r(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}function r(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const o=s(74144);!function(t){const s={flag_modify_hover_selector:!0,ELEM:{headings:"h1,h2,h3,h4,h5,h6",text:"p:not(.tve_more_tag,.thrv-inline-text p),h1,h2,h3,h4,h5,h6,ol:not(.tcb-numbered-list),ul:not(.tcb-styled-list,.tcb-numbered-list,.thrv_bullets_shortcode ul),blockquote,address,pre"},FILTER_TYPES:{greyscale:"greyscale",blur:"blur",brightness:"brightness",contrast:"contrast",invert:"invert",saturate:"saturate",sepia:"sepia",huerotate:"hue-rotate"},CSS_RULE_FIRST:"0",CSS_RULE_LAST:"1",STATE_DEFAULT:"default",STATE_EDIT:"edit",STATE_TINYMCE:"tinymce",STATE_DRAG:"drag",state(e){return void 0===e?this.CUR_STATE:(e!==this.CUR_STATE&&(TVE.main.trigger("exitstate_"+this.CUR_STATE,e),TVE.main.trigger("enterstate_"+e,this.CUR_STATE),t("body").toggleClass("tcb-edit-mode",e===this.STATE_EDIT),this.CUR_STATE=e),this)},allow_drag:()=>!0,allow_tinymce(){return this.CUR_STATE===this.STATE_DEFAULT||this.CUR_STATE===this.STATE_TINYMCE},allow_edit(){return this.CUR_STATE===this.STATE_DEFAULT||this.CUR_STATE===this.STATE_EDIT||this.CUR_STATE===this.STATE_TINYMCE},store_active_element(){return TVE.ActiveElement&&(this.$$stored_active_element=TVE.ActiveElement),this},restore_active_element(){return this.$$stored_active_element&&(TVE.ActiveElement=this.$$stored_active_element,delete this.$$stored_active_element),this},getSelectedElement:()=>TVE.ClickedElement||TVE.ActiveElement.filter(".edit_mode")};function i(e,t,s){let i=s;return e&&(i+=`[data-css="${e}"]`),t?(Array.isArray(t)||(t=[t]),i.split(", ").map(e=>t.map(t=>e+t).join(", ")).join(", ")):i}function r(e,t,s,n,r=e.dataset.selector){const o=TVE.apply_filters("head_css_selector",{prefix:s,suffix:t,selector:r,element:e,rules:n,addPrefix:!0});return o.addPrefix||(o.prefix=""),i(!1,t,o.prefix+o.selector)}function a(e){const t=e.selectorText,s=this.style_by_selector(t),i=TVE.CSS_Rule_Cache.cssToObject(e.cssText);Object.keys(i).forEach(e=>{let t=i[e];const n=t.includes("important")?"important":void 0;t=t.replace("!important","").trim(),s.setProperty(e,t,n)})}function l(e,t,s,i=!1){TVE.BROWSER.edge&&e&&(e=e.replace(/"/g,"'")),e=TVE.apply_filters("tcb.selector",e);const n=o.getStyleBySelector(this,e,i);if(n)return n;if(void 0===t&&(t=!0),t){const t=this.cssRules.length;return this.insertRule(e+"{}",t),this.cssRules[t].style}return null}function c(e){TVE.BROWSER.edge&&e&&(e=e.replace(/"/g,"'"));for(let t=this.cssRules.length-1;t>=0;t--)if(this.cssRules[t].selectorText===e)return t;return null}s.CUR_STATE=s.STATE_DEFAULT,t.fn.extend({head_css(e,s,n,a,l){void 0===n&&(n=""),void 0===l&&(l=""),n=TVE.apply_filters("tcb_head_css_suffix",n,this,e),l=TVE.apply_filters("tcb_head_css_prefix",l,this,e);const c=Array.isArray(e),d=this;if("string"==typeof e||c){if(!this.length)return"";const u=Array.prototype.slice.call(arguments);function h(e,t,i=!1){if(!i&&s!==TVE.main.responsive.desktop.media)return u[1]=TVE.main.get_inherited_media(TVE.main.getDeviceForMedia(s))[0],e.head_css.apply(e,u);if(!n)return e.tcbCss(t);const r=o.elementForSuffix(e,n);if(r.length&&r._tve_selector.includes("::")){const e=r._tve_selector.match(/::\w+/g)[0];return _(window.getComputedStyle(r[0],e),t,!1)}return r.css(t)}function _(e,t,s=a){const i=o.getElementForDataSelector(d);function n(t,n=!1){let r=e.getPropertyValue(t);return!r&&s&&(r=h(i,t,n)),r}if(c){const e={};return t.forEach(t=>e[t]=n(t,!0)),e}return n(t)}function p(t,s){let i,n=!1;return t&&s&&(s=s.replace(TVE.state_manager.css_class(),""),s=TVE.apply_filters(`tve.read.css.fallback.selector.${TVE._type(TVE.ActiveElement)}`,s,TVE.state_manager.get_state()),c?e.forEach(e=>{TVE.CONST.cssVarProps.includes(e)&&(i||(i=[]),i.push(`${TVE.CONST.cssVarPrefix}${e}`))}):TVE.CONST.cssVarProps.includes(e)&&(i=`${TVE.CONST.cssVarPrefix}${e}`),v=t.style_by_selector(s,!1),v&&(n=_(v,e)),n&&(TVE._.isObject(n)?Object.keys(n).forEach(e=>{n[e]=n[e].replace(/var\$/g,"var")}):n=n.replace(/var\$/g,"var"))),n}const g=this[0],f=g.dataset.css;let v,m,E=!1;s=s||TVE.main.media_query_tpl();const T=TVE.CSS_Rule_Cache.media_rule(s);if(TVE.state_manager.is_hover()||TVE.FLAGS.hover_element){const b=TVE.apply_filters("hover_prefix_selector",TVE.CONST.global_css_prefix,d[0])+" ";if(TVE.USE_GLOBALSHEET){const V=TVE.getClassThatContains(d[0],TVE.CONST.global_cls_prefix)+".tve-state-hover";m=TVE.apply_filters("global_style_selector",i(!1,n,b+"."+V),V,b,d)}else if(f){const y=i(f,n,l),C=y.split(", ");if(TVE.state_manager.is_child()){const S=TVE.state_manager.get_parent(),x=S.attr("data-css")?'[data-css="'+S.attr("data-css")+'"]':"",w=-1!==y.indexOf(b);t.each(C,function(e,t){t=t.replace(b,""),C[e]=(w?b:"")+x+".tve-state-hover "+t})}else{let R;R=d.attr("data-selector")?"["+d.attr("data-selector")+"]":'[data-css="'+TVE.CSS_Rule_Cache.uniq_id(d)+'"]',t.each(C,function(e,t){if(TVE.ActiveElement&&(TVE.ActiveElement.is(".thrv-content-box")||TVE.ActiveElement.is(".thrv-page-section"))){let s="";-1!==t.indexOf(".thrv-content-box ")&&(t=t.replace(".thrv-content-box ",""),s=".thrv-content-box"),C[e]=s+'[data-css="'+TVE.ActiveElement.attr("data-css")+'"].tve-state-hover '+R}else C[e]=R+".tve-state-hover";C[e]=C[e]+t.replace(R,""),C[e]=b+C[e].replace(b,""),C[e]=C[e].replace(/([ ]{2,})/g," ").trim()})}m=C.join(", ")}else g.dataset.selector&&(m=r(g,n,b,e,g.dataset.selector+TVE.state_manager.css_class()));if(T&&(v=T.style_by_selector(m,!1),v&&(E=_(v,e))),!E){let A=m;!l&&A&&b&&(A=A.replace(b,"")),E=p(T,A)}E||(E=TVE.apply_filters("tcb.css.fallback_value",E,e,m)),!E&&a&&(E=h(d,e))}else if(f||g.dataset.selector||TVE.USE_GLOBALSHEET){if(TVE.USE_GLOBALSHEET){const O=TVE.getClassThatContains(g,TVE.CONST.global_cls_prefix);m=TVE.apply_filters("global_style_selector",i(!1,n,l+"."+O),O,l,d)}else m=g.dataset.selector?r(g,n,l,e):i(f,n,l);m=m.replace(/(\s{2,})/g," "),T&&(v=T.style_by_selector(m,!1),v&&(E=_(v,e)))}return E||(E=p(T,m)),TVE.apply_filters("tcb.head_css.get.force_css",a&&!E,E)&&(E=h(o.getElementForDataSelector(d),e)),E||(E=c?{}:""),E}return this.each(function(){let o,a=this.dataset.css;if(TVE.USE_GLOBALSHEET){const e=TVE.getClassThatContains(d,TVE.CONST.global_cls_prefix);o=TVE.apply_filters("global_style_selector",i(!1,n,l+"."+e),e,l,d)}else if(this.dataset.selector)o=r(this,n,l,e);else{if(TVE.apply_filters("tcb.generate_new_css_id",a,this)){const e=TVE.Editor_Page.editor.find('[data-css="'+a+'"]');if(TVE.apply_filters("regenerate_css_id",e.length>1,a,e)){const e=TVE.CSS_Rule_Cache.generate_id();this.setAttribute("data-css",e),TVE.head_css_copy(a,e),a=e}else{const e=TVE.main.all_media();let s=0;const i=TVE.getActiveStylesheet().key;for(let t,n=0;t=e[n++];)void 0!==TVE.CSS_Rule_Cache[i][t]&&-1!==TVE.CSS_Rule_Cache[i][t].cssText.indexOf(a)&&s++;TVE.apply_filters("set_new_css_id",0===s,a)&&!t(this).data("keep-css_id")&&(a=TVE.CSS_Rule_Cache.uniq_id(this,!0))}}else a=TVE.apply_filters("tcb.head_css_new_id",TVE.CSS_Rule_Cache.uniq_id(this));o=i(a,n,l)}o=o.replace(/(\s{2,})/g," "),TVE.head_css(o,e,s,this)})},copy_styles_different_stylesheet(e,t,s){const i=TVE.main.all_media();for(let n,r=0;n=i[r++];){if(0===e[n].length)continue;const i=e[n].split("}");for(let e=0;e<i.length;e++)if(0!==i[e].length)for(let n=0;n<t.length;n++)i[e].includes(t[n])&&(i[e]=i[e].split(t[n]).join(s[n]),i[e]=TVE.apply_filters("tcb.copy_stylesheet_rule",i[e],t[n],s[n]));for(let e=0;e<i.length;e++){if(0===i[e].length)continue;i[e]+="}",i[e]=TVE.apply_filters("tcb.copy_styles_different_stylesheet",i[e]);const t=TVE.decodeCssRule(i[e]);try{TVE.write_css(t.selector,t.props,[n]),t.selector.indexOf(":hover")>-1&&TVE.write_css(t.selector.replace(":hover",".tve-state-hover"),t.props,[n])}catch(e){console.log(t.selector+"is not a valid selector")}}}},collect_head_css(){const e={},s=new Set,i=TVE.getClassThatContains(this,TVE.CONST.global_cls_prefix);let n='[data-css^="tve-u-"], [data-selector]';i.length>0&&(n+=', [class*="'+i+'"]'),this.add(this.find(n)).each(function(){const e=TVE.USE_GLOBALSHEET?i:this.getAttribute("data-css"),t=this.getAttribute("data-selector");e&&s.add(e),t&&s.add(t)});const r=TVE.apply_filters("tve.collect_head_css.custom_ids",[],this,s,n);if(r.length&&r.forEach(e=>s.add(e)),s.size>0){function a(e){const s=o.getRealSelector(e),i=/ (p|h1|h2|h3)$/;let n=!1;return(TVE.apply_filters("tcb.collect_head_css.whitelist_rule",!1,e.selectorText,e.cssText)||t(s).length)&&e.cssText.replace(e.selectorText,"").replace(/\{(\s*)\}/g,"").trim()&&(n=!0),n||s.match(i)&&-1!==e.cssText.indexOf("margin")&&(n=t(s.replace(i,"")).length),n}const l=new RegExp("("+[...s].map(e=>TVE.escapeString(e)).join("|")+")","g");TVE.main.all_media().forEach(t=>{const s=TVE.CSS_Rule_Cache.media_rule(t);e[t]="";for(const i in s.cssRules){const n=s.cssRules[i];n.selectorText&&n.selectorText.match(l)&&a(n)&&(e[t]+=n.cssText)}})}return e},color_selector(e){return void 0!==e?e?this.attr("data-tve-custom-colour",e):this.removeAttr("data-tve-custom-colour"):this.attr("data-tve-custom-colour")},head_css_clone(){return this.each(function(){const e=this.getAttribute("data-css");if(!e||0!==e.indexOf("tve-u-"))return!0;TVE.head_css_copy('[data-css="'+e+'"]','[data-css="'+TVE.CSS_Rule_Cache.uniq_id(this,!0)+'"]')})},head_css_copy(e){e.jquery&&(e=e[0]);const t=e.getAttribute("data-css");return t&&0===t.indexOf("tve-u-")?this.each(function(){TVE.head_css_copy('[data-css="'+t+'"]','[data-css="'+TVE.CSS_Rule_Cache.uniq_id(this,!0)+'"]')}):this},tve_overlay(e="",t=!1){TVE.remove_element_overlay(),e="tve-element-mask"+(e?" "+e:"");const s=TVE.inner_$("<div></div>",{class:e}).add(TVE.inner_$("<div></div>",{class:e})).add(TVE.inner_$("<div></div>",{class:e})).add(TVE.inner_$("<div></div>",{class:e})),i=()=>{let e=t;e||(e=this.offset(),e.width=this.outerWidth(),e.height=this.outerHeight()),e=TVE.apply_filters("tcb.edit_mode.overlay_offset",e,this);const i=TVE.inner.$body.outerHeight(!0);s[0].style.height=Math.max(e.top,0)+"px",s[0].classList.add("o-top"),s[1].style.top=e.top+"px",s[1].style.width=Math.max(e.left,0)+"px",s[1].style.height=e.height+"px",s[1].classList.add("o-left"),s[2].style.top=e.top+"px",s[2].style.left=e.left+e.width+"px",s[2].style.height=e.height+"px",s[2].classList.add("o-right"),s[3].style.top=e.top+e.height+"px",s[3].style.height=Math.max(i-e.height-e.top,0)+"px",s[3].classList.add("o-bottom")};return i(),TVE.overlaySensor=new TVE.ResizeSensor(this[0],i),TVE.inner.$body.append(s),this},tve_highlight(e=t.noop()){const s=this;let i=TVE.inner_$(".tcb-element-highlight");function n(){const e=s.offset();e.width=s.outerWidth(),e.height=s.outerHeight(),i.stop().hide().css(e).fadeIn(200,function(){i.fadeOut(200,function(){i.fadeIn(200,function(){i.fadeOut(300)})})})}return i.length||(i=t('<div class="tcb-element-highlight"></div>').appendTo(TVE.inner.$body)),TVE.inner.window.TCB_Front.isInViewport(s[0],50)?n():TVE.inner_$("html").stop().animate({scrollTop:s.offset().top-50},{duration:500,complete:n}),"function"==typeof e&&e(),this},getMostDistantParent(){return this.parent().is(TVE.Editor_Page.editor)?this:this.parentsUntil(TVE.Editor_Page.editor,TVE.Editor_Page.selection_manager.selectors.get("editable")).last()},removeClassContaining(e){return TVE._.isRegExp(e)||(e=new RegExp("(^| )[-\\w]*("+e+")[-\\w]*($| )","g")),this.each(t=>{this[t].className=(this[t].className||"").replace(e," ").replace(/\s+/g," ").trim()})},mediaAttr(e,t){const s=e;if(e=e+"-"+TVE.main.device.charAt(0),void 0===t){const t=TVE.main.media_rule_index(),i=[];let n=this.attr(e);for(t>1&&i.push("tablet"),t>0&&i.push("desktop");(void 0===n||!n.length)&&i.length;)n=this.attr(s+"-"+i.shift().charAt(0));return void 0===n&&(n=this.attr(s)),n}return this.attr(e,t)},removeAllMediaAttr(e){return["desktop","tablet","mobile"].forEach(t=>{this.removeAttr(`${e}-${t.charAt(0)}`)}),this},removeMediaAttr(e){return e=e+"-"+TVE.main.device.charAt(0),this.removeAttr(e)},tveBoundingBox(){const e={top:1/0,left:1/0,right:-1/0,bottom:-1/0};return this.each(function(){const s=function(e){const s=t.extend({},e.offset(),{width:e.outerWidth(),height:e.outerHeight()});return s.right=s.left+s.width,s.bottom=s.top+s.height,s}(t(this));["top","left"].forEach(t=>e[t]=Math.min(e[t],s[t])),["right","bottom"].forEach(t=>e[t]=Math.max(e[t],s[t]))}),e.width=e.right-e.left,e.height=e.bottom-e.top,e},applyChildrenGlobalStyle(){return this.each(function(){if(!this.dataset.childStyles)return;const e=t(this),s=e.tcbJsonData("child-styles");t.each(s,(e,s)=>{t.each(s,(s,i)=>function(e,t,s){e.removeClassContaining(TVE.CONST.global_styles[`prefix_${s}`]).addClass(TVE.CONST.global_styles[`prefix_${s}`]+t)}(t(s,this).not(".thrive-symbol-shortcode *"),i,e))}),e.find("[data-child-styles]").applyChildrenGlobalStyle()})},tcbJsonData(e,t,s={},i=""){if(void 0===t){let t;try{let n=this.attr(`data-${e}`)||JSON.stringify(s);i&&(n=n.replace(new RegExp(`(^${i}|${i}$)`,"g"),"")),t=JSON.parse(n)}catch(e){console.warn("Could not get json data for element:",this),t=s}return t}return this.attr(`data-${e}`,i+JSON.stringify(t)+i)},tcbCssVar(e,t=null,s=""){return this.length&&getComputedStyle(this[0],t).getPropertyValue(e)||s},tcbCss(e,s){if(void 0!==s||t.isPlainObject(e)){let t={};return"string"==typeof e?t[e]=s:t=e,this.each(function(){Object.keys(t).forEach(e=>{if(""!==t[e]){let s=String(t[e]);const i=s.includes("important")?"important":void 0;s=s.replace("!important","").trim(),this.style.setProperty(e,s,i)}else this.style.removeProperty(e)}),this.style.cssText+=""})}function i(e){return 0===e.indexOf("--")}if(Array.isArray(e)){const t=this.css(e);return e.filter(i).forEach(e=>t[e]=this.tcbCssVar(e)),t}return i(e)?this.tcbCssVar(e):this.css(e)}}),s.head_css=function(e,s,i,n){i="_ALL"===(i=i||TVE.main.media_query_tpl())?TVE.main.all_media():[i];let r,o=!1;if(this.flag_modify_hover_selector&&TVE.state_manager.is_hover()){const s=TVE.apply_filters("hover_prefix_selector",TVE.CONST.global_css_prefix,n,e)+" ",i=[];let a=e.split(", ");if(TVE.state_manager.is_child()){const r=TVE.ActiveElement&&TVE.ActiveElement.length>1&&n?TVE.inner_$(n).closest(TVE.state_manager.get_parent()):TVE.state_manager.get_parent(),o=r.data("selector")?r.data("selector"):'[data-css="'+TVE.CSS_Rule_Cache.uniq_id(r)+'"]',l=-1!==e.indexOf(s);a=e.split(", "),t.each(a,function(e,t){t=t.replace(s,""),i[e]=(l?s:"")+o+TVE.state_manager.css_class()+" "+t,a[e]=(l?s:"")+o+TVE.state_manager.get_pseudo()+" "+t})}else{let r;void 0!==n&&TVE.state_manager.needs_hover_state_parent(n)&&t.each(TVE.ActiveElement,function(e,t){if(TVE.inner_$(t).find(n).length)return n=TVE.ActiveElement[e],!1}),n=(n=void 0===n?TVE.ActiveElement[0]:n).jquery?n[0]:n,r=TVE.USE_GLOBALSHEET?TVE.getClassThatContains(n,TVE.CONST.global_cls_prefix):n.dataset.selector?n.dataset.selector:'[data-css="'+TVE.CSS_Rule_Cache.uniq_id(n)+'"]',TVE.USE_GLOBALSHEET&&jQuery(n).find('[data-tcb_hover_state_parent="1"]').length>0&&e.trim()!=="."+r?t.each(a,function(e,t){-1!==(t=" "+t.replace(s,"")).indexOf(".thrv-content-box")&&(t=t.replace(".thrv-content-box",""));const n=s,o=" "+t;a[e]=TVE.remove_extra_spaces(n+"."+r+TVE.state_manager.get_pseudo()+o),i[e]=TVE.remove_extra_spaces(n+"."+r+TVE.state_manager.css_class()+o)}):t.each(a,function(e,t){-1!==(t=" "+t.replace(s,"")).indexOf(".thrv-content-box")&&(t=t.replace(/(.thrv-content-box)/,"$1"+r));const n=TVE.apply_filters("tve.head_css.hover.merge_selectors",{current_selector:r,selector:t},r,t);r=n.current_selector,(t=n.selector).includes(r)||(t=r+" "+t);const o=t.split(r),l=o[1];let c=o[0];2===o.length?(c=s+c,a[e]=TVE.remove_extra_spaces(c+r+TVE.state_manager.get_pseudo()+l),i[e]=TVE.remove_extra_spaces(c+r+TVE.state_manager.css_class()+l)):console.error("I was not expecting this situation, please solve it!!!!",t,r)}),o=!0}const l=TVE.apply_filters("hover_head_css_selector",{selector:a.join(", "),current_element:n,state_preview_selector:i.join(", ")});e=l.selector,r=l.state_preview_selector}o=TVE.apply_filters("tcb.force_important",o,e,s),r&&TVE.write_css(r,s,i,o),TVE.add_undo_step(e,s,i),TVE.write_css(e,s,i,o)},s.add_undo_step=function(e,s,i){if(TVE.SKIP_CSS_STATE)TVE.UNDO_RULES||(TVE.UNDO_RULES=TVE.head_css_get(e,s,i,!1));else{TVE.UNDO_RULES&&t.each(s,function(e){if(void 0===TVE.UNDO_RULES[e])return delete TVE.UNDO_RULES,!1});let n=null;TVE.UndoManager.temp.get()&&(n=TVE.UndoManager.temp.get(),TVE.UndoManager.temp.delete()),null===n&&(n=TVE.UNDO_RULES||TVE.head_css_get(e,s,i,!1)),TVE.UndoManager.add({undo(){const t=TVE.SKIP_CSS_STATE;TVE.SKIP_CSS_STATE=!0,Array.isArray(n)?n.forEach(function(t){TVE.head_css(e,t.rules,t._media)}):TVE.head_css(e,n,i),TVE.SKIP_CSS_STATE=t},redo(){const t=TVE.SKIP_CSS_STATE;TVE.SKIP_CSS_STATE=!0,TVE.head_css(e,s,i),TVE.SKIP_CSS_STATE=t}}),delete TVE.UNDO_RULES}},s.write_css=function(e,s,i,n,r){function o(e){t.each(s,function(t,s){let i="";"string"==typeof s&&-1!==s.indexOf("important")&&(s=s.replace(/!(\s*)important/,"").trim(),i="important"),s||e.removeProperty(t),n&&(i="important"),e.setProperty(t,s,i)})}if(e=TVE.apply_filters(`tcb.before.write_css.selector.${TVE._type(TVE.ActiveElement)}`,e,s,i),void 0===r&&(r=TVE.CSS_RULE_FIRST),i)if(Array.isArray(i))for(let t,s=0;t=i[s++];)o(this.CSS_Rule_Cache.media_rule(t).style_by_selector(e,!0,r));else o(this.CSS_Rule_Cache.media_rule(i).style_by_selector(e,!0,r));else o(this.CSS_Rule_Cache.stylesheet_rule().style_by_selector(e,!0,r));TVE.do_action("tcb.write_css",e,s,i),TVE.do_action(`tcb.write_css.${TVE._type(TVE.ActiveElement)}`,e,s,i)},s.head_css_get=function(e,s,i,n,r=!1){const o=[];let a;function l(e,t){let s=e?e.getPropertyValue(t):"";return s&&"important"===e.getPropertyPriority(t)&&(s+="!important"),!s&&n&&(s=a.css(t)),s}n&&(a=t(e)),i="_ALL"===(i=i||TVE.main.media_query_tpl())?TVE.main.all_media():Array.isArray(i)?i:[i];for(let c,d=0;c=i[d++];){const i=this.CSS_Rule_Cache.media_rule(c).style_by_selector(e,!1,0,r);let d={};t.isPlainObject(s)?t.each(s,function(e,t){d[e]=l(i,e),"string"==typeof t&&-1!==t.indexOf("important")&&-1===d[e].indexOf("important")&&(d[e]+="!important")}):Array.isArray(s)?s.forEach(function(e){d[e]=l(i,e)}):"string"==typeof s&&(d=i?i.getPropertyValue(s):"",!d&&n&&(d=a.css(s))),o.push({media:c,rules:d})}return o.length?1===o.length?o.pop().rules:o:{}},s.head_css_remove=function(e,t,s=!1){t="_ALL"===(t=t||TVE.main.media_query_tpl())?TVE.main.all_media():[t];const i=TVE._.isRegExp(e);function n(t){return!i&&t.selectorText===e||!(i||!s||!t.selectorText.includes(e))||!(!i||!e.exec(t.selectorText))&&(e.lastIndex=0,!0)}t.forEach(e=>{const t=this.CSS_Rule_Cache.media_rule(e);for(let e,r=0;(e=t.cssRules[r++])&&(!n(e)||(t.deleteRule(--r),s||i)););});const r=TVE.getActiveStylesheet().sheet,o=r.cssRules.length;for(let e=0;e<o;e++){const t=r.cssRules[e];if((!t||t.type===CSSRule.STYLE_RULE)&&n(t)){r.deleteRule(e--);break}}},s.head_css_copy=function(e,t,s=""){if(!e)return;const i=TVE.main.all_media();for(let n,r=0;n=i[r++];){const i=this.CSS_Rule_Cache.media_rule(n),r=i.cssRules.length;for(let n=0;n<r;n++)if(-1!==i.cssRules[n].cssText.indexOf(e)){const r=i.cssRules[n].cssText.split(e).join(t),o=i.cssRules[n].selectorText.split(e).join(t),a=i.style_by_selector(o,!1);a?TVE._.mapObject(TVE.CSS_Rule_Cache.cssToObject(r),(e,t)=>{if(s){const e=Array.isArray(s);if(!e&&t!==s||e&&!s.includes(t))return!1}const i=e.includes("important")?"important":"";e=e.replace("!important","").replace("! important","").trim(),a.setProperty(t,e,i)}):i.insertRule(r,i.cssRules.length)}}const n=TVE.getActiveStylesheet().sheet,r=n.cssRules.length;for(let s=0;s<r;s++){const i=n.cssRules[s];if(i.type===CSSRule.STYLE_RULE&&-1!==i.cssText.indexOf(e)){const s=i.cssText.split(e).join(t);n.insertRule(s,n.cssRules.length)}}},s.hasHeadCss=function(e,t,s=null){const i=s?[s]:TVE.main.all_media();for(let s,n=0;s=i[n++];){const i=this.CSS_Rule_Cache.media_rule(s);for(let s,n=0;s=i.cssRules[n++];)if(t&&s.selectorText===e||!t&&-1!==s.selectorText.indexOf(e))return!0}return!1},s.CSS_Rule_Cache={page_index:Math.floor(1e5*Math.random()),uniq_id(e,t=!1){e.jquery&&(e=e[0]);let s=e.getAttribute("data-css");return!t&&s||(s=this.generate_id(),e.setAttribute("data-css",s)),s},generate_id(e,t=16){return void 0===e&&(e="tve-u-"),e+((new Date).getTime()+this.page_index++).toString(t)},media_rule(e,t,s=""){function i(e,t){for(let s=0;s<e.length;s++)if(-1!==e.item(s).replace(/ /g,"").indexOf(t.replace(/ /g,"")))return!0;return!1}void 0===t&&(t=TVE.main.media_rule_index(TVE.main.getDeviceForMedia(e)));let n,r=!1,o=-1,d=0;const h=TVE.getActiveStylesheet(),_=h.sheet,p=h.key;if(this[p]||(this[p]={}),!this[p][e]){for(let t=0;t<_.cssRules.length;t++)if(n=_.cssRules[t],n.type===CSSRule.IMPORT_RULE)d++;else if(n.type===CSSRule.MEDIA_RULE&&n.media&&n.media.length&&i(n.media,e)){r=!0,o=t,this[p][e]=n;break}if(r){if(o>t+d){const s=this[p][e].cssText;_.deleteRule(o),_.insertRule(s,t+d),this[p][e]=_.cssRules[t+d]}}else(t+=d)>_.cssRules.length&&(t=_.cssRules.length),s||(s=`@media ${e}{}`),_.insertRule(s,t),this[p][e]=_.cssRules[t];this[p][e].style_by_selector=l.bind(this[p][e]),this[p][e].rule_index_by_selector=c.bind(this[p][e]),this[p][e].insertStyleRule=a.bind(this[p][e])}return this[p][e]},stylesheet_rule(){const e=TVE.getActiveStylesheet().sheet;return e.style_by_selector=l.bind(e),e.insertStyleRule=a.bind(e),e},clear(){const e=TVE.getActiveStylesheet().key;t.each(TVE.main.responsive,(t,s)=>{delete this[e][s.media]})},init(){t.each(TVE.main.responsive,(e,t)=>{this.media_rule(t.media,t.rule_index)});const e=this.media_rule(TVE.main.responsive.desktop.media);if(-1!==e.cssText.indexOf(":hover")){const t=e.cssRules.length;let s=null;for(let i=0;i<t;i++)null!==(s=this.generate_hover_state_css(e.cssRules[i]))&&e.insertRule(s,e.cssRules.length)}const s=TVE.getActiveStylesheet().sheet;let i,n=0;for(;i=s.cssRules[n];)i.type===CSSRule.STYLE_RULE?(TVE.CSS_Rule_Cache.media_rule(TVE.main.responsive.desktop.media).insertStyleRule(i),s.deleteRule(n)):n++;TVE.FLAGS.stylesheetLoaded=!0,TVE.USE_GLOBALSHEET?TVE.main.trigger("globalsheet_loaded"):TVE.main.trigger("stylesheet_loaded")},insertImport(e){e.includes("@import")||(e=`@import url("${e}")`),this.insertRule(e,0)},insertRule(e,t=null){const s=TVE.getActiveStylesheet().sheet;null===t&&(t=s.cssRules.length),s.insertRule(e,t)},getImports(e=!1){const t=[];return TVE._.each(TVE.getActiveStylesheet().sheet.cssRules,s=>{s.type===CSSRule.IMPORT_RULE&&t.push(s[e?"href":"cssText"])}),t},removeRule(e){TVE.getActiveStylesheet().sheet.cssRules[e]&&TVE.getActiveStylesheet().sheet.deleteRule(e)},toText(e){let t="";for(let s,i=0;s=TVE.getActiveStylesheet().sheet.cssRules[i++];)e?s.type===e&&(t+=s.cssText):t+=s.cssText;return t},cssToObject(e,s){e.includes("{")&&(e=e.replace(/[^{]+{([^}]+?)}/,"$1")),e=e.replace(/url\((['"])(?:(?!\1).+?)\1\)/g,e=>e.replace(/;/g,"__ccc__"));const i={};return t.each(e.split(";"),function(e,t){const n=t.split(":"),r=n.shift().trim(),o=n.join(":").trim();r&&o&&(i[r]=o.replace(/__ccc__/g,";")+(s&&!o.includes("!important")?" !important":""))}),i},objectToCss(e,s=!1){let i="";return t.each(e,(e,t)=>{"@imports"!==e&&(s&&(t=t.replace("!important","").trim()+" !important"),i+=e+":"+t+";")}),i},getComputedCssText(e){const t=window.getComputedStyle(e),s={};return Object.values(t).forEach(e=>s[e]=t.getPropertyValue(e)),this.objectToCss(s)},removeRuleByMatchingSelector(e,t){const s=TVE.getActiveStylesheet().key;if(!this[s][e]||!t)return this;const i=TVE._.isRegExp(t);let n=0,r=this[s][e].cssRules[n];for(;r;)r.selectorText.match(t)||!i&&r.selectorText.includes(t)?this[s][e].deleteRule(n):n++,r=this[s][e].cssRules[n]},reorderMediaRules(){const e=this,t=TVE.getActiveStylesheet().key;jQuery.each(TVE.main.responsive,function(s,i){const n=e.media_rule(i.media);if(!n)return;const r=n.cssText,o=function(e){for(let t=0;t<TVE.stylesheet.cssRules.length;t++)if(TVE.stylesheet.cssRules[t]===e)return t;return null}(n);delete e[t][i.media],TVE.stylesheet.deleteRule(o),e.media_rule(i.media,function(){let e=0;for(let t=0;t<TVE.stylesheet.cssRules.length;t++)TVE.stylesheet.cssRules[t].type===CSSRule.IMPORT_RULE&&e++;return e}()+i.rule_index,r)})},get_used_css_variables(){const e=TVE.getActiveStylesheet().sheet.cssRules,t=[];for(let s=0;s<e.length;s++){const i=e[s];if(i.type===CSSRule.MEDIA_RULE&&i.cssRules.length>0)for(let e=0;e<i.cssRules.length;e++){const s=i.cssRules[e].cssText.match(/--tcb-(color|gradient)-[0-9a-zA-Z]*/g),n=i.cssRules[e].selectorText.replace(":hover","").replace(".tve-state-hover","");if(s&&TVE.inner_$(n).length>0)for(let e=0;e<s.length;e++){const i=TVE.getRawCssVariableName(s[e]);-1===t.indexOf(i)&&t.push(i)}}}return t},getLocalVariables(){const e=TVE.CSS_Rule_Cache.media_rule(TVE.main.responsive.desktop.media).cssRules,t={};for(let s=0;s<e.length;s++){if(!e[s].cssText.includes("--tcb-local")||0===TVE.inner_$(o.getRealSelector(e[s])).length)continue;t[e[s].selectorText]={};const i=e[s].style,n=i.length,r={};for(let e=0;e<n;e++){const t=i.item(e);r[t]=i.getPropertyValue(t)}t[e[s].selectorText]=r}return t},generate_hover_state_css(e){if(-1!==e.selectorText.indexOf(":hover")){const t=e.selectorText.split(":hover").join(".tve-state-hover");return e.cssText.replace(e.selectorText,t)}return null},getSelectorForCss(e){const s={},i="string"==typeof e;function n(n=[],r=""){t.each(n,(t,n)=>{(i&&n.cssText.includes(e)||!i&&e.exec(n.cssText))&&-1===s[r].indexOf(n.selectorText)&&s[r].push(n.selectorText),i||(e.lastIndex=0)})}t.each(TVE.main.responsive,(e,t)=>{s[t.media]=[],n(this.media_rule(t.media).cssRules,t.media),TVE.USE_GLOBALSHEET=!0,n(this.media_rule(t.media).cssRules,t.media),TVE.USE_GLOBALSHEET=!1});const r=[],o=TVE.stylesheet.cssRules.length;for(let e=0;e<o;e++){const t=TVE.stylesheet.cssRules[e];t.type===CSSRule.STYLE_RULE&&r.push(t)}return n(r,TVE.main.responsive.desktop.media),s},getCssForSelector(e,s=!0,i=null){const r={"@imports":[]},o=this.getImports(),a="string"==typeof e,l={};return t.each(TVE.main.responsive,(c,d)=>{r[d.media]={},t.each(this.media_rule(d.media).cssRules,(t,c)=>{if(a&&c.selectorText.includes(e)||!a&&e.exec(c.selectorText)){const e=function(e){const t=e.cssText.replace(/[^{]+{([^}]+?)}/,"$1"),s={},i=t.match(/(^|\s|;)([\w-]+):/g);return i&&i.map(e=>e.trim().replace(":","")).forEach(t=>s[t]=e.style.getPropertyValue(t)+("important"===e.style.getPropertyPriority(t)?" !important":"")),s}(c);e["font-family"]&&(h=e["font-family"].replace("!important","").trim().replace(/ /g,"+").replace(/['"]/g,""),void 0===l[h]&&(l[h]=!0,o.some(e=>!!e.includes(h)&&(r["@imports"].push(e),!0)))),"function"==typeof i?i(r,d.media,e,c):s?r[d.media][c.selectorText]=n(n({},r[d.media][c.selectorText]||{}),e):r[d.media]=e}var h;a||(e.lastIndex=0)})}),r},getRulesForSelector(e,s="_ALL"){const i=TVE._.isRegExp(e),n=[];return(s=s&&"_ALL"!==s?Array.isArray(s)?s:[s]:TVE.main.all_media()).forEach(s=>{const r=this.media_rule(s);t.each(r.cssRules,(t,s)=>{(function(t){let s;return i?(s=e.exec(t.selectorText),e.lastIndex=0):s=t.selectorText.includes(e),s})(s)&&n.push(s)})}),n},removePropertiesFromRulesByKeyword:e=>(t.each(TVE.main.responsive,(s,i)=>{const n=TVE.CSS_Rule_Cache.media_rule(i.media);t.each(n.cssRules,(t,s)=>{if(s.cssText.includes(e)){const t=s.style.length;for(let i=0;i<t;i++){const t=s.style.item(i),n=s.style.getPropertyValue(t);(t.includes(e)||n.includes(e))&&s.style.removeProperty(t)}}})}),[]),getImportCss(e){let t=null;return TVE._.some(TVE.getActiveStylesheet().sheet.cssRules,s=>{if(s.type===CSSRule.IMPORT_RULE&&s.cssText.includes(e.replace(/ /g,"+").replace(/['"]/g,"")))return t=s.cssText,!0}),t},copyCssRule(e,t,s=!1){const i=e.parentRule,n=e.cssText.split("{");n.shift(),n.unshift(t);const r=n.join("{"),o=i.style_by_selector(t,!1);o?TVE._.mapObject(TVE.CSS_Rule_Cache.cssToObject(r),(e,t)=>{const s=e.includes("important")?"important":"";e=e.replace("!important","").replace("! important","").trim(),o.setProperty(t,e,s)}):i.insertRule(r,i.cssRules.length),s&&i.deleteRule(i.rule_index_by_selector(e.selectorText))}},s.remove_element_overlay=function(){TVE.overlaySensor&&TVE.overlaySensor.disconnect(),delete TVE.overlaySensor,t(TVE.apply_filters("tcb.remove_overlay_selector",".tve-element-mask")).remove()},s.body_overlay=function(e){if(e=void 0===e?{}:e,!t(".tve-background-overlay").length){const s=t('<div class="tve-background-overlay"></div>').css(e);TVE.inner.$body.append(s)}},s.remove_body_overlay=function(){t(".tve-background-overlay").remove()},s.fetchGoogleFonts=function(){const e=[...[...TVE.inner_$(".thrive-external-font")].filter(e=>e.getAttribute("href")).map(e=>e.href.replace("https:","")),...TVE.CSS_Rule_Cache.getImports(!0)];if(!e.length||TVE.fetchedFonts&&TVE.fetchedFonts.length===e.length)return Promise.resolve(TVE.fetchedFontsCSS||"");function t(e){console.info("Failed to fetch",e)}TVE.fetchedFonts||(TVE.fetchedFonts=[]),e.forEach(e=>{const t=TVE.getUrlParam(e,"family");TVE.fetchedFonts&&TVE.fetchedFonts.some(e=>e.includes(t))||TVE.fetchedFonts.push(t)});let s="https://fonts.googleapis.com";return TVE.CONST.disable_google_fonts&&(s="https://fonts.bunny.net"),i=`${s}/css?family=${TVE.fetchedFonts.join("|")}`,Promise.resolve(function(e){return fetch(e).then(function(e){return e.text()},t)}(i).then(e=>(TVE.fetchedFontsCSS=e,e)));var i},s.base64ToBlob=(e,t="image/jpeg")=>{if(!e)return null;const s=atob(e.split(",")[1]),i=new ArrayBuffer(s.length),n=new Uint8Array(i);for(let e=0;e<s.length;e++)n[e]=s.charCodeAt(e);return new Blob([i],{type:t})},s.generateRandomString=(e=6)=>Math.random().toString(36).substr(2,e),e.exports=s}(jQuery)},55499(e,t,s){function i(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),s.push.apply(s,i)}return s}function n(e,t,s){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var s=t.call(e,"string");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}const r=s(3865);jQuery.fn.extend(function(e){for(var t=1;t<arguments.length;t++){var s=null!=arguments[t]?arguments[t]:{};t%2?i(Object(s),!0).forEach(function(t){n(e,t,s[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):i(Object(s)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))})}return e}({tve_social(){const e=this,t=this.hasClass("thrv_social_default")?"default":"custom";return{getRequiredSDKs(){const s=[];return"default"===t&&e.find(".tve_s_item").each(function(){s.push(s[this.getAttribute("data-s")])}),s}}}},r))},61578(e){!function(t){const s={$main_menu:null,addToGlobals(e,t,s){TVE.CONST.tve_globals.landing_fonts[e]=TVE.CONST.tve_globals.landing_fonts[e]||{},TVE.CONST.tve_globals.landing_fonts[e][t]=s},getSelectorMenu(e){return this.$main_menu?this.$main_menu.find('ul.tve_menu[data-selector="'+e+'"]'):null},fontUsed(e){if(!TVE.CONST.tve_globals.landing_fonts)return!1;let s=!1;return t.each(TVE.CONST.tve_globals.landing_fonts,function(t,i){i.css_class===e&&(s=!0)}),s}};e.exports=s}(jQuery)},78582(e,t,s){!function(t){let i;e.exports={selectors:s(54816),$root:null,is_disabled(){return TVE.Editor_Page.is_disabled()&&!this.$root[0].querySelector(".canvas-mode")},add_icons(){t(document).on("mousedown.tcb",this.click_blur.bind(this)).on("keyup.tcb",this.keyup_blur.bind(this)).on("mouseleave.tcb",".tcb-action-icons",e=>{TVE.state()===TVE.STATE_EDIT||e.relatedTarget&&"path"===e.relatedTarget.tagName.toLowerCase()||this.hide_icons()})},hide_icons(){return TVE.ElementIcons.hide_icons(),this},hide_edit_icons(){return TVE.ElementEditIcons.hide_icons(),this},hide_all_icons(){return this.hide_icons().hide_edit_icons(),this},show_icons(e,t={}){return TVE.ElementIcons.show_icons(e,t),this},show_edit_icons(e){return TVE.ElementEditIcons.show_icons(e),this},init(e){this.add_icons(),this.$root=e;const t=this.selectors.get("editable");e.off("mousedown.tcb click.tcb").on("mousedown.tcb",this.prevent_focus.bind(this)).on("click.tcb",t,this.element_click.bind(this)),this.refreshMouseoverEvents()},blur(e,s){if(this.is_disabled())return;TVE.clearUpdateTimeout();const i=t(".edit_mode");TVE.froala.editor&&(s&&s.prevent_selection_clear||requestAnimationFrame(()=>{TVE.froala.has_selection()&&TVE.froala.editor.selection.clear()}),TVE.froala.editor.popups.hideAll()),i.removeClass("edit_mode"),(e=void 0===e||e)&&this.hide_all_icons(),TVE.main.clear_focus(),TVE.do_action("tcb.focus.clear",i)},keyup_blur(e){if(27===e.which&&!TVE.prevent_blur){if(!TVE.ActiveElement&&TVE.main.EditMode.in_edit())return TVE.main.EditMode.exit();document.activeElement&&document.activeElement.blur(),TVE.Editor_Page.blur()}},click_blur(e){const s=t(e.target);return!!(TVE.prevent_blur||"HTML"===e.target.tagName&&e.clientX>=document.documentElement.offsetWidth||s.closest(".edit_mode").length||e.target.classList.contains("no-blur")||s.closest(".tve-froala").length||s.closest(".no-blur").length||this.isElementEditable(s)||e.target.classList.contains("ui-resizable-handle"))||!1!==TVE.apply_filters("tcb.click_blur",!0,s)&&(TVE.Editor_Page.blur(),!0)},isElementEditable(e){return e.closest(this.selectors.get("editable")).not(".tve_lp").closest(TVE.Editor_Page.editor).length},element_click(e,s){TVE.do_action("tcb.element.click",e,s);const i=t(e.target);if(i.is(TVE.TEXT_ALL)&&!e.target.closest(".thrv-typography")||i.closest(TVE.TEXT_EDITABLE_BY_ELEM).length)return!1;const n=!(!s||!s.emulate),r=TVE.froala.editor&&TVE.froala.editor.core.hasFocus();if(!n&&r&&(TVE.Editor_Page.GLOBAL_PREVENT_FOCUS||window.getSelection&&window.getSelection().toString()))return!1;let o=TVE.apply_filters("tcb.selection.element",t(e.currentTarget),e);if(e.target.classList.contains("ui-resizable-handle")||!o.length||o.hasClass("symbol-edit-mode")&&!o.is(".thrv_header, .thrv_footer"))return!1;if(!this.allow_state_selection(o))return!0;if(e.target.classList.contains("tcb-click"))return!0;const a=o.children(".tcb-inline-placeholder-action");return!(a.length&&a[0]!==e.target&&!t.contains(a[0],e.target)||(e.preventDefault(),(!o.is(this.selectors.get("not_editable"))||(o=o.parents(".thrv_wrapper").not(this.selectors.get("not_editable")).first(),o.length))&&(!TVE.apply_filters("tcb.element.editable",!0,o)||(TVE.Editor_Page.focus_element(o,e,s),1))))},prevent_focus(e){const s=t(e.target);return!!s.is(".post-password-form input")||(s.is("input, textarea, select")&&e.preventDefault(),!1!==TVE.apply_filters("tcb.prevent_focus",!0)&&void 0)},mouseleave(e){i=null,this.is_disabled()||e.relatedTarget&&e.relatedTarget.closest(`.${TVE.ElementIcons.className}, .tcb-add-block-below`)||(this.hide_icons(),TVE.do_action("tcb.element.mouseleave",e))},mouseover(e){if(this.is_disabled())return!1;const s=t(e.currentTarget);return TVE.do_action("tcb.element.before.mouseover",e,s),!this.allow_state_selection(s)||!!s.is(this.selectors.get("no_highlight"))||!e.target.classList.contains("ui-resizable-handle")&&(i=s,(TVE.state()!==TVE.STATE_EDIT||!s.hasClass("edit_mode"))&&(this.hide_icons(),this.show_icons(s,e),s.tcbHasClass("thrv-inline-text")||(TVE.main.EditMode.in_edit()&&!s.is(TVE.main.EditMode.element())&&s.closest(TVE.main.EditMode.element()).trigger("mouseenter"),e.stopPropagation()),void TVE.do_action("tcb.element.mouseover",e,s)))},allow_state_selection(e){if(TVE.state_manager.is_default()||TVE.state_manager.is_jump()||TVE.state_manager.is_expanded())return!0;const t=TVE._type(e);return TVE.Elements[t]&&TVE.Elements[t][TVE.state_manager.get_state()]},select_element(e){const s=t.Deferred(),i=e.hasClass("tve-state-hover");return e.addClass("tve-state-hover"),e.one("element.selected",()=>{i||e.removeClass("tve-state-hover"),e.trigger("mouseleave"),setTimeout(function(){s.resolve()},20)}),e.trigger("click",{emulate:!0}),s.promise()},refreshMouseoverEvents(){this.$root.off("mouseover.tcb mouseleave.tcb").on("mouseover.tcb",this.selectors.get("mouseover"),this.mouseover.bind(this)).on("mouseleave.tcb",this.selectors.get("mouseover"),this.mouseleave.bind(this))}}}(jQuery)},54816(e){e.exports={editable:".thrv_wrapper:not(.thrv_text_element, .thrv_heading), .tve_ts_o span, span.tve_ts_copy-aut, .tve_ts_copy-aut span .tve_btnLink span, .tve_ct_title, .thrv_tw_qs_button span span, .tve_editable, .thrv-inline-text, .thrv-advanced-inline-text, .thrv-styled-list-item, .sub-menu, .tcb-editor-jump-mode .thrv_toggle_title, .toggle-edit-mode .thrv_toggle_title, .canvas-mode .tve_lg_input_container, .tcb-col, .tve-cf-item, .tve-form-item, .tve-cf-submit, .tve-form-submit, .tve-cf-item label, .tve-form-item label, .tve-cf-item .tve-cf-input, .tve-form-item .tve-form-input, .thrv_header, .thrv_footer, .thrv_text_element a, .tcb-styled-list a, .tcb-numbered-list a, .thrv-sf-submit, .thrv-sf-input, .canvas-mode .tve_lg_radio_wrapper, .tve-login-form-item, .tve-login-form-item .tve-login-form-input, .canvas-mode .tve-lg-dropdown-list, .tve-cd-editable, .tve-pb-editable,.tve-ham-wrap,.canvas-mode .tve-lg-dropdown-option, .tcb-pricing-table-box-container, .tve-form-state, .tve_responsive_video_container, .tve_audio_container, .canvas-mode .tve-new-checkbox:not(.tcb-lg-consent) .tve_lg_checkbox_wrapper, .thrive_author_links, .thrv_social_custom:not(.thrv_author_follow) .tve_s_item, .tve-input-option-text a, .tve-up-editable, .tve-captcha-container, .tve-turnstile-container, .thrv_table.canvas-mode .tve_table_cell, .tve_s_cnt, .tve_s_cnt_label, .tve-dynamic-dropdown-editable",not_editable:".tcb-not-editable, .tcb-not-editable *, .thrive_leads_shortcode *, .thrive-shortcode-html:not(.thrive-shortcode-html-editable), .thrive-shortcode-html:not(.thrive-shortcode-html-editable) *, .tve_custom_html_placeholder, .tve_custom_html_placeholder *, .thrv_custom_html_shortcode *, .thrv_post_grid *, .tve_no_edit, .tve_more_tag, .table_placeholder,  .table_placeholder *, .image_placeholder, .image_placeholder *, .borderless_placeholder, .borderless_placeholder *, .ui-datepicker-header *, .tve_wp_shortcode *, #tve_mce_holder *, .code_placeholder, .tve_ts_o img, .thrv_toggle_item,.tcb-post-list:not(.tcb-compact-edit-mode) *:not(.tcb-carousel-arrow):not(.tcb-carousel-dots),body.tve_lp, .tve-prevent-content-edit, .tve-prevent-content-edit *",mouseover:".thrv_wrapper:not(.canvas-mode .thrv-columns, .thrv_toggle_content), .tve_clearfix li,.sub-menu,.thrv_feature_grid .tve_gri > .tve_image,.tve_element_hover, p.tve_more_tag, .tcb-col, .tve-cd-editable, .tve-pb-editable, .tve-up-editable,.tve_editable, .canvas-mode .tve_lg_input_container, .thrv-styled-list-item, .tve-cf-item, .tve-form-item, .tve-cf-submit, .tve-form-submit, .tve-cf-item label, .tve-form-item label, .tve-cf-input, .tve-form-input, .tve-login-form-input, .tve-login-form-input, .thrv_wrapper.thrv_text_element a, .tcb-styled-list a, .tcb-numbered-list a, .tve-input-option-text a, .toggle-edit-mode .thrv_toggle_title, .tcb-editor-jump-mode .thrv_toggle_title, .thrv-sf-submit, .thrv-sf-input, .canvas-mode .tve_lg_radio_wrapper, .canvas-mode .tve-lg-dropdown-list, .canvas-mode .tve-new-checkbox:not(.tcb-lg-consent) .tve_lg_checkbox_wrapper,  .tve-login-form-item, .tve-form-item label, .toggle-edit-mode .thrv_toggle_content, .tve_responsive_video_container, .tve_audio_container, .tve-captcha-container, .tve-turnstile-container",no_highlight:".thrive-shortcode-html, .thrive_leads_shortcode *, .tcb-no-highlight,.thrv_lead_generation .thrv-columns,.thrv_lead_generation:not(.canvas-mode) .tcb-col,.thrv-contact-form .thrv-columns, .tve-prevent-content-edit, .tve-prevent-content-edit *",no_icons:".tve_table_cell, .thrv_tw_quote p, .tve_p_lb_control, .tve_editor_main_content, .tve-cd-editable,.tve_lp_content, .tve_no_icons, .thrv_widget_menu .tve_menu_title, .tve_lg_input_container:not(.tve_lg_file) .thrv_icon,.thrive-shortcode-html, .thrive-shortcode-html *, .thrv-inline-text, .tve_editable,.tve_lead_generated_inputs_container .thrv-columns,.canvas-mode, .tve-post-options-element, .post-wrapper, .tcb-pagination-button, .tcb-pagination-number,.tcb-pagination-label, .tcb-pagination-navigation-container, .tcb-pagination-load-more-button, .thrv_text_element a, .tcb-styled-list a, .tcb-numbered-list a, .thrv_toggle_content, .tve_tab_content, .thrv-sf-input, .thrv-sf-submit, .thrv_lead_generation_container .thrv_text_element[data-label-for], .tve-login-form-input:not(.tve_lg_file) .thrv_icon, .tve_responsive_video_container, .tve_audio_container, .tve-input-option-text a, .tcb-image-gallery .tve_image_caption, .tcb-carousel-arrow, .tcb-carousel-dots,.tcb-post-list-filter .tcb-filter-option, .tcb-icon-close, .tcb-icon-close-offscreen",no_clone:".tve_gri .image_placeholder, .tve-user-profile .tve-dynamic-dropdown, .table_placeholder, .tcb-no-clone, .tve_no_duplicate, .tve_more_tag, .tcb-col, .thrv-inline-text, .thrv-advanced-inline-text, .thrv_header, .thrv_footer,.tve-cf-item, .tve-cf-submit, .tve-up-editable, .tve-form-submit, .tcb-pagination, .tve-lg-dropdown-list, .tve-form-button, .tve-cd-editable,.tcb-lg-consent .tve_lg_checkbox_wrapper, .thrv_lead_generation:not(.tve-lead-generation-template) .tve_lg_input_container, .tve_s_item, .tve-captcha-container, .tve-turnstile-container, .tve_s_icon, .tve_s_cnt, .tve_s_cnt_label",no_delete:".tcb-no-delete, .thrv-inline-text, .thrv-advanced-inline-text,.tve-cf-item, .tve-cf-submit, .tve-user-profile .tve-dynamic-dropdown, .tve-form-submit, .tve-form-button, .tve-cd-editable, .tve-up-input,.thrv_lead_generation:not(.tve-lead-generation-template) .tve_lg_input_container, .tve-captcha-container, .tve-turnstile-container ",no_save:".tcb-no-save, .thrv_symbol, .thrv-inline-text, .tcb-col, .tve_lg_input_container, .thrv_custom_html_shortcode, .tve_wp_shortcode, .tve_more_tag,.thrive_leads_shortcode ,.thrive-quiz-builder-shortcode, .tve-user-profile .tve-dynamic-dropdown,.thrive_ultimatum_shortcode, .tve-cd-editable.thrv-comments, .thrv-styled-list-item, .tve-up-editable, .tcb-numbered-list-number, .tve_scT, .tve_scT > ul *, .thrv_ct_symbol, .thrv_toggle_title, .tve-cf-item, .tve-cf-submit, .thrv-content-block *,.tcb-pagination, .tve_tab_title_item, .thrv_toggle_item, .tcb-featured-list, .tve_lg_radio_wrapper, .tve-lg-dropdown-option, .tve-lg-dropdown-list, .thrv_lead_generation_container .thrv_text_element, .tve_responsive_video_container, .tve_audio_container, .tve-form-button, .tve_lg_checkbox_wrapper, .tve_s_item, .tve-captcha-container, .tve-turnstile-container, .tve_s_icon, .tve_s_cnt, .tve_s_cnt_label,.tcb-post-list-filter .tcb-filter-option",no_lock:".thrv_wrapper, .thrv-styled-list-item, .thrv-inline-text, .tcb-col, .tve_more_tag, .tve_scT, .tve_scT *,.tve_lg_input_container",no_unlock:".thrv_wrapper, .thrv-styled-list-item, .thrv-inline-text, .tcb-col, .tve_more_tag, .tve_scT, .tve_scT *,.tve_lg_input_container",no_expand:":not(.tve_tab_title_item:not(.tve_tS), .tve-toc-expandable.tve-toc-edit.tve-toc-collapsed, .thrv_toggle_item:has(.thrv_toggle_title:not(.tve-state-expanded)), .tve-new-dropdown:not(.tve-state-expanded), .tve-dynamic-dropdown:not(.tve-state-expanded))",no_collapse:":not(.thrv_toggle_item:has(.thrv_toggle_title.tve-state-expanded), .tve-new-dropdown.tve-state-expanded, .tve-dynamic-dropdown.tve-state-expanded, .tve-toc-expandable.tve-toc-edit:not(.tve-toc-collapsed))",elements:".thrv_wrapper,.tcb-col,.tve_lg_input_container,.tve-cf-item,.tve-cf-submit,.tve-login-form-item, .tve-up-item",no_title:".tcb-no-title,.thrv_widget_menu li,.tcb-mega-std a,.thrv_text_element a,li a",no_custom_action:":not(.tve_image_caption)",no_custom_left_action:":not(.tve-toc:not(.tve-dynamic-toc,.tve-toc-edit))",get(e){let t="";const s=TVE.apply_filters("wrapper_selector","");return void 0!==this[e]&&(t=TVE.apply_filters("selectors_"+e,this[e])),s&&!t.includes(s)&&(t=s+" "+t.split(",").join(","+s+" ").replace(/\s\s+/g," ")),t+=(t?",":"")+".tcb-selector-"+e+",.tcb-child-selector-"+e+" *",t}}},22103(e,t,s){const i=s(9609),n=s(51106);let r=[];var o;(o=jQuery).fn.extend({tve_rows(){return 0===arguments.length?parseInt(this.attr("data-rows")):this.attr("data-rows",arguments[0])},tve_cols(){return 0===arguments.length?parseInt(this.attr("data-cols")):this.attr("data-cols",arguments[0])}}),e.exports={table:null,$el:null,buttons:null,drag:{mouse_down:!1,start_element:null,current_element:null,is_head:!1},mouse_move_cells:"> thead > tr > th:not(.tve_merge_disabled), > tbody > tr > td:not(.tve_merge_disabled)",head_cells:"> thead > tr > th",body_cells:"> tbody > tr > td",head:null,body:null,grid:null,init(e){let t=!0;void 0!==e&&(t=!1,r=[],this.table=e),TVE.ElementEditIcons.hide_icons(),this.head=this.table.find("> thead"),this.body=this.table.find("> tbody"),this.$el=this.table.parent().addClass("canvas-mode").tve_overlay(),this.table.addClass("tve_merge_cells").find("th, th *, td, td *").disableSelection(),this.buttons||(this.buttons=o("#tcb-table-panel")),TVE.Editor_Page.disable(),TVE.Editor_Page.GLOBAL_PREVENT_FOCUS=!0,TVE.main.switch_menu_to("custom","table"),TVE.main.toggle_navigation(!0),this.showActionButtons(),this.bind(),this.table.tve_rows(0);const s=this.__head_grid=new i(this.head,!0),n=this.__body_grid=new i(this.body,!0);(isNaN(this.table.tve_cols())||isNaN(this.table.tve_rows()))&&(this.table.tve_rows(s.getRowCount()+n.getRowCount()),this.table.tve_cols(Math.max(s.getColCount(),n.getColCount()))),t&&r.length?(o.each(r,function(e){0===e?this.cell.trigger("mousedown"):this.cell.trigger("mousemove")}),r[r.length-1].cell.trigger("mouseup")):this.enableButtons(this.table.data("selected-cells")||[])},showActionButtons(){this.buttons.show().find(".tcb-table-btn").off("click").on("click",o.proxy(this.onActionClick,this)).on("mousedown",()=>!1),this.positionButtons()},positionButtons(){if(TVE.SKIP_CSS_STATE)this.buttons[0].style.display="none";else{this.buttons[0].style.display="block";const e=this.$el.offset(),t=TVE.Editor_Page.$body.offsetParent().offset(),s=e.top-t.top;this.buttons.css({left:e.left-t.left+"px",top:s+"px",width:this.$el.outerWidth()}).find(".below-element").css("top",this.$el.outerHeight()+"px"),this.buttons.find(".above-element").css("top",s<25?-1*(s+20)+"px":"auto")}},saveSelection(){r=this.table.data("selected-cells")||[]},clearSelection(){r=[]},onActionClick(e){const t=e.currentTarget.getAttribute("data-fn");if(this[t])return this[t](e.currentTarget.getAttribute("data-arg")||null)},bind(){this.table.off().on("mousedown",this.head_cells+", "+this.body_cells,jQuery.proxy(this.mouseDown,this)),this.table.on("mousemove",this.mouse_move_cells,jQuery.proxy(this.mouseOver,this)),this.table.on("mouseup",this.head_cells+", "+this.body_cells,jQuery.proxy(this.mouseUp,this)),o(TVE.Editor_Page).bind("editor.onenable",jQuery.proxy(this.cancel,this))},mouseDown(e){const t=o(e.currentTarget);return this.reset(),this.drag.mouse_down=!0,this.drag.start_element=t.addClass("tve_merge_selected"),t.is("td")?(this.table.find(this.head_cells).addClass("tve_merge_disabled"),this.drag.is_head=!1):(this.table.find(this.body_cells).addClass("tve_merge_disabled"),this.drag.is_head=!0),this.grid=new i(this.drag.is_head?this.head:this.body,!1),this.grid.setStartCell(this.drag.start_element),!1},mouseUp(e){this.drag.mouse_down=!1,!this.table.data("selected-cells")&&this.grid&&this.table.data("selected-cells",this.grid.getRange(this.drag.start_element,o(e.currentTarget))),this.table.find(".tve_merge_disabled").removeClass("tve_merge_disabled"),this.enableButtons(this.table.data("selected-cells"))},enableButtons(e){if(this.buttons.find(".m-disable").prop("disabled",!0),this.$el.addClass("edit_mode").find(".edit_mode").removeClass("edit_mode"),TVE.main.switch_menu_to("custom","table"),e&&!(e.length<1))if(e.length>1)this.buttons.find(".m-enable-more").prop("disabled",!1);else{this.buttons.find(".m-enable-one").prop("disabled",!1);const t=parseInt(e[0].cell.attr("rowspan")||1)+parseInt(e[0].cell.attr("colspan")||1)>2;this.buttons.find('[data-fn="split"]').prop("disabled",!t);const s=e[0].cell;this.select_element(s),s.__col=(this.head.find("> tr").length?this.__head_grid:this.__body_grid).getCell(0,e[0].real_col),s.__row=s.parent().children("td,th").first(),0!==e[0].real_col&&this.__body_grid.canMoveColumn(e[0],-1)&&this.__head_grid.canMoveColumn(e[0],-1)||this.buttons.find(".move-left").prop("disabled",!0),e[0].real_col+e[0].colspan!==this.grid.grid[0].length&&this.__body_grid.canMoveColumn(e[0],1)&&this.__head_grid.canMoveColumn(e[0],1)||this.buttons.find(".move-right").prop("disabled",!0)}},select_element(e){this.$el.removeClass("edit_mode").find("td,th").removeClass("edit_mode"),TVE.Editor_Page.focus_element(e)},mouseOver(e){if(!this.drag.mouse_down)return!1;this.table.find("td,th").removeClass("tve_merge_selected"),this.drag.current_element=o(e.currentTarget);const t=this.grid.getRange(this.drag.start_element,this.drag.current_element);this.table.data("selected-cells",t),o.each(t,function(){this.cell.addClass("tve_merge_selected").removeClass("edit_mode")})},reset(e){(e=void 0!==e&&e)||this.table.find(".tve_merge_selected").removeClass("tve_merge_selected"),this.table.find(".tve_merge_disabled").removeClass("tve_merge_disabled"),this.table.data("selected-cells",null).data("selected-colspan",null).data("selected-rowspan",null),this.drag={mouse_down:!1,start_element:null,current_element:null,is_head:!1}},cancel(e){return e=void 0!==e&&e,this.buttons.hide(),this.reset(e),this.table.removeClass("tve_merge_cells tve_table_light").off().find("th, th *, td, td *").enableSelection(),TVE.remove_element_overlay(),this.$el.removeClass("canvas-mode"),o(TVE.Editor_Page).unbind("editor.onenable"),TVE.Editor_Page.enable(),delete TVE.Editor_Page.GLOBAL_PREVENT_FOCUS,this.select_element(this.$el),TVE.main.toggle_navigation(!1),this},merge(){if(!this.table.data("selected-cells"))return;let e=!0,t=o(),s="",i=o();jQuery.each(this.table.data("selected-cells"),function(n){if(0===n)t=this.cell;else{i=i.add(this.cell);const t=this.cell.html();t.includes("tcb-replaceable-placeholder")||(s+=t,e=!1)}}),this.clearSelection(),this.cancel(),n(()=>{s=o(s),t.html().includes("tcb-replaceable-placeholder")&&!e&&t.empty(),t.attr({rowspan:this.grid.selection_rowspan,colspan:this.grid.selection_colspan}).append(s),TVE.drag.bindDraggable(s),(this.grid.selection_rowspan>1||this.grid.selection_colspan>1)&&(TVE.Components.table.disable_sort(),this.table.removeClass("tve_make_sortable")),i.remove()},this.table),this.init()},split(){if(!this.table.data("selected-cells"))return;const e=this.table.data("selected-cells"),t=this.grid;this.clearSelection(),this.cancel(),n(()=>{jQuery.each(e,function(){if(1===parseInt(this.colspan)&&1===parseInt(this.rowspan))return!0;t.split(this)})},this.table),this.init()},addRow(){const e=this.table.tve_rows(),t=this.table.tve_cols();let s;s=new i(0===e?this.head:this.body),this.saveSelection(),this.cancel(),n(()=>{this.table.tve_rows(e+1),0!==t&&(s.insertRow(s.grid.length-1,"after",t),this.alternateColors())},this.table),this.init()},addColumn(){const e=this.table.tve_rows(),t=this.table.tve_cols();this.saveSelection(),this.cancel(),n(()=>{this.table.tve_cols(t+1),0!==e&&(this.table.find("> thead > tr").length&&new i(this.head).insertColumn(t-1,"after",this.table.find("> thead > tr").length),this.table.find("> tbody > tr").length&&new i(this.body).insertColumn(t-1,"after",e-this.table.find("> thead > tr").length))},this.table),this.init()},removeColumn(){if(!this.drag.start_element)return;const e=this.drag.start_element,t=this.drag.is_head;this.clearSelection(),this.cancel(),n(()=>{const s=this.grid.selection_start.col,n=this.grid.removeColumn(e);t?new i(this.body).removeColumn(null,s,n):new i(this.head).removeColumn(null,s,n),this.table.tve_cols(this.table.tve_cols()-n)},this.table),this.init()},removeRow(){if(!this.drag.start_element)return;const e=this.drag.start_element,t=new i(e.parent().parent());this.cancel(),this.clearSelection(),n(()=>{const s=t.removeRow(e);this.table.tve_rows(this.table.tve_rows()-s),e.is("th")&&!this.head.children().length&&(TVE.Components.table.disable_sort(),this.table.removeClass("tve_make_sortable")),this.alternateColors()},this.table),this.init()},insertColumn(e,t=!1){this.drag.start_element&&(this.saveSelection(),this.cancel(),n(()=>{const s=this.grid["before"===e?"selection_start":"selection_end"].col;this.table.tve_cols(this.table.tve_cols()+1),0!==this.table.tve_rows()&&(this.table.find("> thead > tr").length&&new i(this.table.find("> thead")).insertColumn(s,e,this.table.find("> thead > tr").length,t),this.table.find("> tbody > tr").length&&new i(this.table.find("> tbody")).insertColumn(s,e,this.table.tve_rows()-this.table.find("> thead > tr").length,t))},this.table),this.init())},insertRow(e,t=!1){if(!this.drag.start_element)return;const s=this.grid["before"===e?"selection_start":"selection_end"];this.saveSelection(),this.cancel(),n(()=>{this.table.tve_rows(this.table.tve_rows()+1),0!==this.table.tve_cols()&&this.grid.insertRow(s.row,e,this.table.tve_cols(),t)},this.table),this.init()},cloneColumn(){this.drag.start_element&&(this.saveSelection(),this.cancel(),n(()=>{const e=this.grid.selection_start,t=this.grid.grid[e.row][e.col].colspan;if(this.table.tve_cols(this.table.tve_cols()+t),0!==this.table.tve_rows())for(let s=t-1;s>=0;s--)this.table.find("> thead > tr").length&&new i(this.table.find("> thead")).cloneColumn(e.col+s,e.col+t-1,this.table.find("> thead > tr").length,e.col),this.table.find("> tbody > tr").length&&new i(this.table.find("> tbody")).cloneColumn(e.col+s,e.col+t-1,this.table.tve_rows()-this.table.find("> thead > tr").length,e.col)},this.table),this.init())},cloneRow(){if(!this.drag.start_element)return;const e=this.grid.selection_start;this.saveSelection(),this.cancel(),n(()=>{const t=this.grid.grid[e.row][e.col].rowspan;this.table.tve_rows(this.table.tve_rows()+t);for(let s=t-1;s>=0;s--)0!==this.table.tve_cols()&&this.grid.cloneRow(e.row+s,e.row+t-1,this.table.tve_cols(),e.row)},this.table),this.init()},_move(e){const t=this.table.data("selected-cells")[0],s=new i(this.head),r=new i(this.body);let o,a;return this.saveSelection(),this.cancel(),n(()=>{o=s.moveColumn(t,e),a=r.moveColumn(t,e)},this.table),this.init(),(this.drag.is_head?o:a).trigger("mousedown").trigger("mousemove").trigger("mouseup"),!1},moveLeft(){this._move(-1)},moveRight(){this._move(1)},alternateColors(){if(!this.table.hasClass("tve_table_alternating"))return;const e=this.body.find("tr.tve_odd").first().attr("data-tve-custom-colour"),t=this.body.find("tr.tve_even").first().attr("data-tve-custom-colour");this.body.find("tr").each(function(s,i){const n=o(i);n.removeClass("tve_odd tve_even"),n.addClass(s%2==0?"tve_odd":"tve_even"),e&&s%2==0&&n.attr("data-tve-custom-colour",e),t&&s%2!=0&&n.attr("data-tve-custom-colour",t)})}}},5652(e,t,s){const i=s(22103);function n(e,t){let s="";const i="th"===e?"Header":"Cell";for(let n=0;n<t;n++)s+="<"+e+' class="tve_table_cell tcb-parent-placeholder-empty"><div class="tcb-replaceable-placeholder">'+i+"</div></"+e+">";return'<tr class="tve_table_row">'+s+"</tr>"}function r(){i.init()}const o={cell_manager:e=>(TVE.main.on("after_undo_redo",r),i.init(e.find("> .tve_table"))),build(e,t){let s='<table data-rows="'+e+'" data-cols="'+t+'" class="tve_table tcb-fixed tve_no_inner_border tve_no_border tve_table_flat">';s+="<thead>"+n("th",t)+"</thead>",s+="<tbody>";for(let i=1;i<e;i++)s+=n("td",t);return s+="</tbody></table>",s},refresh(){i.positionButtons()},close_editor(){TVE.main.off("after_undo_redo",r),i.cancel()}};e.exports=o},9609(e){!function(t){function s(e){return e=e.jquery?e[0]:e,parseInt(e.getAttribute("rowspan")||1)}function i(e){return e=e.jquery?e[0]:e,parseInt(e.getAttribute("colspan")||1)}function n(e){return e?'<th class="tve_table_cell"></th>':'<td class="tve_table_cell"></td>'}function r(e,t){const s=e.clone();if(t){const e=s.is("th")?"Header":"Cell";s.addClass("tcb-parent-placeholder-empty").html('<div class="tcb-replaceable-placeholder">'+e+"</div>")}return s}const o=function(e,n){const r=[];e.find("> tr").each(function(e){t(this).find("> td, > th").each(function(n){let o,a;const l=t(this);if(r[e])for(;r[e][n];)n++;const c=s(this),d=i(this);for(a=e;a<e+c;a++)for(r[a]||(r[a]=[]),o=n;o<n+d;o++)r[a][o]={cell:l,rowspan:c,colspan:d,exists:a===e&&o===n,processed:!1,real_row:e,real_col:n}})}),this.grid=r,this.startPos=null,this.selection_colspan=1,this.selection_rowspan=1,this.container=e,this.is_head=e.is("thead"),this.selection_start={row:null,col:null},this.selection_end={row:null,col:null},void 0!==n&&n&&(e.parent().tve_rows(parseInt(e.parent().tve_rows())+this.grid.length),this.grid[0]&&this.grid[0].length&&e.parent().tve_cols(this.grid[0].length))};o.prototype.getRange=function(e,s){const i=this.startPos,n=this.getCellPosition(s);if(!i||!n)return t();const r=Math.max(i.x,n.x),o=Math.max(i.y,n.y);let a,l,c,d,h=Math.min(i.y,n.y),_=Math.min(i.x,n.x),p=o,u=r,g=!1;for(a=0;d=this.grid[a++];)for(let e=0;c=d[e++];)c.processed=!1;do{for(g=!1,a=_;a<=u;)c=this.grid[a][h],a+=c.rowspan,c.processed||c.exists||c.colspan>1&&(h=c.real_col,g=!0,c.processed=!0);for(l=h;l<=p;)c=this.grid[_][l],l+=c.colspan,c.processed||c.exists||c.rowspan>1&&(_=c.real_row,g=!0,c.processed=!0);for(a=_;a<=u;a++)for(l=h;l<=p;l++)c=this.grid[a][l],c.exists&&!c.processed&&(c.colspan>1&&c.colspan-1+l>p&&(p=l+c.colspan-1,g=!0,c.processed=!0),c.rowspan>1&&c.rowspan-1+a>u&&(u=a+c.rowspan-1,g=!0,c.processed=!0))}while(g);const f=[];for(a=_;a<=u;a++)for(l=h;l<=p;l++)this.grid[a][l]&&this.grid[a][l].exists&&f.push(this.grid[a][l]);return this.selection_rowspan=u-_+1,this.selection_colspan=p-h+1,this.selection_start.row=_,this.selection_start.col=h,this.selection_end.row=u,this.selection_end.col=p,f},o.prototype.getCellPosition=function(e){for(let t=0,s=this.grid.length;t<s;t++)for(let s=0,i=this.grid[t].length;s<i;s++)if(this.grid[t][s].cell[0]===e[0])return{x:t,y:s};return null},o.prototype.setStartCell=function(e){this.startPos=this.getCellPosition(e)},o.prototype.split=function(e){let t=null;e.cell.attr("colspan",1).attr("rowspan",1);for(let s=1;s<e.colspan;s++)t=r(e.cell,!1),e.cell.after(t),TVE.drag.bindDraggable(t);if(1===e.rowspan)return;let s=e.cell.parent();for(let n=e.real_row+1;n<e.real_row+e.rowspan;n++)if(s=s.next("tr"),0!==s.find("> td, > th").length){for(var i=e.real_col-1;i>=0;i--)if(this.grid[n][i].real_row===n){for(let s=0;s<e.colspan;s++)t=r(e.cell,!1),this.grid[n][i].cell.after(t),TVE.drag.bindDraggable(t);break}if(0===e.real_col||-1===i)for(let i=0;i<e.colspan;i++)t=r(e.cell,!1),s.prepend(t),TVE.drag.bindDraggable(t)}else for(let i=0;i<e.colspan;i++)t=r(e.cell,!1),s.append(t),TVE.drag.bindDraggable(t)},o.prototype.removeColumn=function(e,t,s){e&&(s=i(e),t=this.getCellPosition(e).y);for(let i,n=0;i=this.grid[n++];)for(let n=t;n<t+s;n++){const r=i[n];1===r.colspan||e&&r.cell[0]===e[0]||r.real_col>=t&&r.real_col+r.colspan<=t+s?r.cell.remove():r.colspan>1?r.real_col<=t?r.real_col+r.colspan>=t+s?r.cell.attr("colspan",r.colspan-s):r.cell.attr("colspan",Math.abs(t-r.real_col)):r.cell.attr("colspan",r.real_col+r.colspan-t-s):r.cell.remove()}return s},o.prototype.removeRow=function(e){const n=s(e),o=this.getCellPosition(e);let a=t();for(let t=o.x;t<=o.x+n-1;t++)for(let c=0;c<this.grid[o.x].length;c++){const d=this.grid[t][c];if(c!==o.y&&1!==s(d.cell))if(d.exists)if(s(d.cell)+t<=o.x+n);else{const i=o.x+n-t,a=r(d.cell,!1).attr("rowspan",s(d.cell)-i);d.cell.attr("rowspan",i);const c=e.parent().next(),h=o.x+n;if(c.length>0){0===c.find("> td, > th").length&&c.append(a);for(var l=d.real_col-1;l>=0;l--)if(this.grid[h][l].real_row===h){this.grid[h][l].cell.after(a);break}0!==d.real_col&&-1!==l||c.prepend(a)}}else d.cell.attr("rowspan",s(d.cell)-1),c+=i(d.cell)-1;else a=a.add(this.container.find("> tr:nth-child("+(t+1)+")"))}return a.remove(),n},o.prototype.insertColumn=function(e,s,i,o=!1){const a=n(this.is_head),l=this.grid[0]&&this.grid[0].length;let c=t();for(let n=0;n<i;n++){let i=l?this.grid[n][e]:null;if(!i){let e;e=this.container.find("> tr:nth-child("+(n+1)+")"),e=e.length?e:t('<tr class="tve_table_row"></tr>').appendTo(this.container),c=c.add(t(a)),e.append(c.last());continue}let d=1,h=1;!0===o&&(d=parseInt(i.cell.attr("rowspan"))||1,h=parseInt(i.cell.attr("colspan"))||1);const _=r(i.cell,!o).attr("colspan",h).attr("rowspan",d),p=this.getRealRow(n);let u=!1;if(e!==this.grid[0].length-1||"after"!==s)if(0!==e||"before"!==s)if(i.colspan>1&&("after"===s&&i.real_col+i.colspan-1>e||"before"===s&&i.real_col<e)&&(i.cell.attr("colspan",i.colspan+1),u=!0),u)n+=i.rowspan-1;else{i="after"===s?this.getLastRealCell(n,e):this.getNextRealCell(n,e);let t=s;if(null===i&&(i="after"===s?this.getNextRealCell(n,e):this.getLastRealCell(n,e),t="after"===s?"before":"after"),null===i){p.append(_),c=c.add(_),n=n+d-1;continue}i.cell[t](_),c=c.add(_),n=n+d-1}else p.prepend(_),c=c.add(_),n=n+d-1;else p.append(_),c=c.add(_),n=n+d-1}TVE.drag.bindDraggable(c)},o.prototype.cloneColumn=function(e,s,i,o){const a=n(this.is_head),l=this.grid[0]&&this.grid[0].length;let c=t();for(let n=0;n<i;n++){let i,d=l?this.grid[n][e]:null;if(!d){i=this.container.find("> tr:nth-child("+(n+1)+")"),i=i.length?i:t('<tr class="tve_table_row"></tr>').appendTo(this.container),c=c.add(t(a)),i.append(c.last());continue}if(this.grid[n][s].real_col+this.grid[n][s].colspan-1>s){s===e&&d.cell.attr("colspan",d.colspan+s-o+1);continue}const h=parseInt(d.cell.attr("rowspan"))||1,_=parseInt(d.cell.attr("colspan"))||1,p=r(d.cell,!1).attr("colspan",_).attr("rowspan",h),u=this.getRealRow(n);let g=!1;if(d.colspan>1&&(o===s?(d.cell.attr("colspan",d.colspan+s-o+1),g=!0):d.real_col<o&&e===o?p.attr("colspan",d.colspan-(o-d.real_col)):d.real_col!==e&&(g=!0)),e!==this.grid[0].length-1||g)if(g)n+=d.rowspan-1;else{d=this.getLastRealCell(n,s);let e="after";if(null===d&&(d=this.getNextRealCell(n,s),e="before"),null===d){u.append(p),c=c.add(p),n=n+h-1;continue}d.cell[e](p),c=c.add(p),n=n+h-1}else u.append(p),c=c.add(p),n=n+h-1}TVE.drag.bindDraggable(c)},o.prototype.insertRow=function(e,s,i,o=!1){const a=n(this.is_head),l=t('<tr class="tve_table_row"></tr>');if(-1===e){for(let e=0;e<i;e++)l.append(t(a));return void this.container.append(l)}const c=this.getRealRow(e);let d=t();for(let t=0;t<i;t++){const i=this.grid[e][t];let n=!1;i.rowspan>1&&("after"===s&&i.real_row+i.rowspan-1>e||"before"===s&&i.real_row<e)&&(i.cell.attr("rowspan",i.rowspan+1),n=!0),n||(d=d.add(r(this.grid[e][t].cell,!o).attr({rowspan:1,colspan:1})))}c[s](l.append(d)),TVE.Components.table.update_colors(),TVE.drag.bindDraggable(l)},o.prototype.cloneRow=function(e,s,i,o){const a=n(this.is_head),l=t('<tr class="tve_table_row"></tr>');if(-1===e){for(let e=0;e<i;e++)l.append(t(a));return void this.container.append(l)}const c=this.getRealRow(s);let d=t();for(let t=0;t<i;t++){const i=this.grid[e][t];let n=!1,a=null;if(this.grid[s][t].real_row+this.grid[s][t].rowspan-1>s)e===s&&i.cell.attr("rowspan",i.rowspan+s-o+1);else if(i.rowspan>1&&(o===s?(i.cell.attr("rowspan",i.rowspan+1),n=!0):i.real_row<o&&e===o?a=i.rowspan-(o-i.real_row):e!==i.real_row&&(n=!0)),!n){const s=a||parseInt(i.cell.attr("rowspan"))||1,n=parseInt(i.cell.attr("colspan"))||1;d=d.add(r(this.grid[e][t].cell,!1).attr({rowspan:s,colspan:n})),t=t+n-1}}c.after(l.append(d)),TVE.Components.table.update_colors(),TVE.drag.bindDraggable(l)},o.prototype.getRealRow=function(e){if(!this.grid[e])return t();for(let t,s=0;t=this.grid[e][s++];)if(t.real_row===e)return t.cell.parent();return this.container.find("tr:nth-child("+ ++e+")")},o.prototype.getLastRealCell=function(e,t){if(!this.grid[e])return null;for(let s=t;s>=0;s--)if(this.grid[e][s].real_row===e&&this.grid[e][s].real_col===s)return this.grid[e][s];return null},o.prototype.getNextRealCell=function(e,t){if(!this.grid[e])return null;for(let s=t,i=this.grid[e].length;s<i;s++)if(this.grid[e][s].real_row===e&&this.grid[e][s].real_col===s)return this.grid[e][s];return null},o.prototype.getRowCount=function(){return this.grid.length},o.prototype.getColCount=function(){return this.grid[0]?this.grid[0].length:0},o.prototype.getCell=function(e,t){return this.grid[e][t].cell},o.prototype.canMoveColumn=function(e,t){let s=!0;const i=e.real_col;let n=i+t;return t>0&&(n+=e.colspan-1),this.grid.some(e=>{const t=e[i],r=e[n];return r.exists!==t.exists&&r.cell[0]!==t.cell[0]&&r.colspan!==t.colspan&&(s=!1,!0)}),s},o.prototype.moveColumn=function(e,s){const i=e.real_col,n=i+s,r=e.real_row;let o=t();return this.grid.forEach((e,t)=>{const s=e[i],a=e[n];if(a.exists&&s.exists){const e=a.cell.clone(),i=s.cell.clone().removeClass("tve_merge_selected edit_mode");r===t&&(o=i),a.cell.replaceWith(i),a.cell=i,s.cell.replaceWith(e),s.cell=e}}),o},e.exports=o}(jQuery)},51106(e){function t(e){const t={html:e.html(),cls:e.attr("class"),style:e.attr("style"),data:{}};return e.length&&e[0].dataset&&jQuery.each(e[0].dataset,function(e,s){t.data[e]=s}),t}function s(e,t){return e.length&&t?(e.html(t.html).attr("class",t.cls).attr("style",t.style),Object.keys(e[0].dataset).forEach(t=>delete e[0].dataset[t]),jQuery.each(t.data,function(t,s){e[0].dataset[t]=s}),this):this}e.exports=function(e,i,n){const r=t(i);let o;const a=e.call(void 0===n?null:n);var l;function c(){o=t(i),TVE.UndoManager.add({undo(){s(i,r)},redo(){s(i,o)}})}(l=a)&&"function"==typeof l.then?a.then(c):c()}},74144(e){var t;t=jQuery,e.exports={toFixed:(e,t=1)=>Number(Math.round(parseFloat(e)+"e"+t)+"e-"+t),getRealSelector(e,t=[" strong",".tve-state-active",".tve-state-expanded",".tcb-states"]){let s="(:hover|:active|:after|:focus|:visited|::after|:before|::before|::placeholder";t.length&&(s+=`|${t.join("|")}`),s+=")";const i=TVE.apply_filters("tcb.css.selector.strip",new RegExp(s,"g"));return(e.selectorText||e).replace(i,"")},elementForSuffix(e,s=""){if(!s||_.isEmpty(s))return e._tve_selector="",e;const i=s=>{if(!s.trim())return e._tve_selector="",[e,""];const i=s;if(s.includes("::placeholder"))return[t(),""];if((s=this.getRealSelector(s,[])).length<2)return e._tve_selector=i,[e,i];let n=e;if(".#:[".includes(s.charAt(0))){const e=s.split(" ");n=n.filter(e.shift()),s=e.join(" ")}return n=s?n.find(s):n,n._tve_selector=i,[n,i]};if(Array.isArray(s)){let t=e.constructor(),n=!1;return s.forEach(e=>{const[s,r]=i(e);s.length&&!1===n&&(n=r),t=t.add(s)}),t._tve_selector=n,t}return i(s)[0]},deepGet(e,t,s=null){if(!e)return s;_.isString(t)&&(t=t.split("."));let i,n=e;for(;t.length;){if(i=t.shift(),void 0===n[i])return s;n=n[i]}return n},filterObjectPropertiesByKey:(e={},t=[])=>Object.keys(e).filter(e=>t.includes(e)).reduce((t,s)=>(t[s]=e[s],t),{}),validateConfigElement:(e={},t={})=>0===Object.keys(t).map(s=>[s,(0,t[s])(e[s])]).reduce((e,t)=>(!1===t[1]&&e.push(new Error(`${t[0]} is invalid.`)),e),[]).length,getStyleBySelector(e,t,s=!1){if(e&&e.cssRules)for(let i=e.cssRules.length-1;i>=0;i--){const n=e.cssRules[i];if(n.selectorText===t||s&&n.selectorText.includes(t))return n.style}return null},ensurePromise:e=>e&&"function"==typeof e.then?e:new Promise(e=>{e()}),getElementForDataSelector(e){const t=e.attr("data-selector"),s=e=>{if(e.is(t))return e;let s=e.find(t);return s.length||(s=e.parent().find(t)),s};return t&&(TVE.main.EditMode.in_edit()?(!(e=s(TVE.main.EditMode.element())).length&&TVE.main.EditMode.isStacked()&&(e=s(TVE.main.EditMode.getOuterMostElement())),0===e.length&&(e=TVE.inner_$(t))):e=TVE.inner_$(t)),e},initControls(e){const t={};return e.find(".tve-control").each((e,s)=>{const i=s.dataset.key||s.dataset.view;t[i]=new TVE.Views.Controls[s.dataset.view]({el:s,model:{config:s.dataset}})}),t}}},13828(e){e.exports=function(e,t,s=!1){s&&!e.is(".thrive-shortcode-config")&&(e=e.find(".thrive-shortcode-config"));const i=`__CONFIG_${t}__`;return{update(e,t){const s=this.get();s[t]=e,this.save(s)},delete_prop(e){this.remove(e)},remove(e){const t=this.get();delete t[e],this.save(t)},save(t){e.html(this.getHTML(t))},get(){if(!e.length)return{};const t=new RegExp(i,"g");let s={};try{s=JSON.parse((e.html().trim()||"{}").replace("%s","{}").replace(/_tveutf8_/g,"\\u").replace(t,"").replace(/\\\'/g,"'").replace(/”|“|″/g,'"').replace(/_tve_quote_/g,'\\"').replace(/\n/g,"\\n").replace(/\t/g,"\\t"))}catch(e){console.log("Invalid JSON")}return s},getHTML:e=>i+JSON.stringify(e).replace(/\\"/g,"_tve_quote_")+i}}}},s={};function i(e){var n=s[e];if(void 0!==n)return n.exports;var r=s[e]={exports:{}};return t[e](r,r.exports,i),r.exports}window.parent&&window.parent.TVE.CONST.debug_mode&&jQuery.noConflict(),e=jQuery,window.parent&&(window.parent.child_context=window,function t(){if(!window.parent.TVE||!window.parent.TCB_READY)return setTimeout(t,100);window.TVE=window.parent.TVE,TVE.inner={window,document,jQuery:e,$window:e(window),$document:e(document)},e.extend(TVE,i(20954)),TVE.froala=i(62499),TVE.inner_$=e,TVE.compat=i(66579),TVE.drag=i(48443),TVE.Editor_Page=i(28146),TVE.landing_fonts=i(61578),TVE.CSS=i(22428),TVE.Lightspeed=new(i(50618)(e))(TVE.CONST.post),TVE.plugins={table:i(5652)},e.extend(!0,TVE.CONST,tve_path_params),i(55499),TVE.inner.$window.trigger("editor-included"),e(function(){TVE.inner.$body=e("body"),TVE.Editor_Page.onDOMReady(),TVE.inner.$window.trigger("tcb-ready"),TVE.main.trigger("tcb-ready"),TVE.BROWSER.mozilla?TVE.main.on("tve_stylesheet_loaded",()=>{TVE.do_action("tcb-ready")}):TVE.do_action("tcb-ready")})}(),TVE.setDefaultAjaxParams(e),setTimeout(function(){TVE.refreshNonce()},6e5)),window.custom_font_classes="",window.extra_font_classes="",jQuery.each(tve_path_params.custom_fonts,function(){custom_font_classes+=(custom_font_classes?" ":"")+this.font_class}),window.TVE&&TVE.CONST&&TVE.CONST.tve_globals.extra_fonts&&jQuery.each(TVE.CONST.tve_globals.extra_fonts,function(){extra_font_classes+=(extra_font_classes?" ":"")+this.font_class}),jQuery.fn.extend({tveElementDrag(e){e=e||{};const t=this;function s(e){l[e].call(t,a)}let i,n;this.data("tve_draggable.options",e);const r={x:0,y:0},o={x:0,y:0},a={x:0,y:0},l=jQuery.extend({start(){},move(){},stop(){}},e),c=function(t){t.buttons&&(r.x=t.screenX-i,r.y=t.screenY-n,a.x=r.x-o.x,a.y=r.y-o.y,TVE._.debounce(s("move"),5),e.afterMoveCallback&&"function"==typeof e.afterMoveCallback&&e.afterMoveCallback(),o.x=r.x,o.y=r.y)},d=function(e){TVE.set_event_callback("inner","mousemove"),TVE.set_event_callback("inner","mouseup"),TVE.set_event_callback("outer","mousemove"),TVE.set_event_callback("outer","mouseup"),r.x=e.screenX-i,r.y=e.screenY-n,s("stop")};return this.on("mousedown",function(e){if(0===e.button)return i=e.screenX,n=e.screenY,o.x=o.y=0,s("start"),TVE.set_event_callback("inner","mousemove",c),TVE.set_event_callback("inner","mouseup",d),TVE.set_event_callback("outer","mousemove",c),TVE.set_event_callback("outer","mouseup",d),!1}),this},tve_color_selector(e){return void 0!==e?e?this.attr("data-tve-custom-colour",e):this.removeAttr("data-tve-custom-colour"):this.attr("data-tve-custom-colour")},tve_countdown_timer(){const e=this,t=function(e,t){if(e.empty(),t<=99)e.prepend('<span class="part-1">'+t%10+"</span>"),e.prepend('<span class="part-2">'+Math.floor(t/10)+"</span>");else{let s=0;for(;t;)s++,e.prepend('<span class="part-'+s+'">'+t%10+"</span>"),t=Math.floor(t/10)}};return{set(t,s){e.attr("data-"+t,s),this.update()},get(t){return"_all"===t?this.get("date")+"T"+this.get("hour")+":"+this.get("min")+":00"+this.get("timezone"):e.attr("data-"+t)},update(){const s=new Date,i=new Date(this.get("_all"));e.find(".tve_t_text").hide().html(this.get("text")),e.find(".tve_t_part").show();let n,r=0,o=0,a=0,l=0;s<i&&(r=Math.floor((i.getTime()-s.getTime())/1e3),o=Math.floor(r/60),a=Math.floor(o/60),l=Math.floor(a/24),n=2,r%=60,o%=60,a%=24,l>99&&(n=l.toString().length)),t(e.find(".tve_t_sec .t-digits"),r),t(e.find(".tve_t_min .t-digits"),o),t(e.find(".tve_t_hour .t-digits"),a),t(e.find(".tve_t_day .t-digits"),l),s<i&&!e.data("dd")?e.find(".tve_t_day .t-digits").css("min-width",n*e.find(".tve_t_sec .t-digits > span").first().outerWidth()+"px"):e.find(".tve_t_day .t-digits").css("min-width","")},align(t){const s=e.children(".sc_timer_content");switch(s.css("margin-top",s.css("margin-top")),s.css("margin-bottom",s.css("margin-bottom")),t){case"left":s.removeClass("alignleft alignright aligncenter").addClass("alignleft");break;case"center":s.removeClass("alignleft alignright").addClass("tve_block_center");break;case"right":s.removeClass("alignleft alignright aligncenter").addClass("alignright");break;case"none":s.removeClass("alignleft alignright aligncenter").css("width","auto")}}}},tve_countdown_timer_evergreen(){const e=jQuery(this),t=e.tve_countdown_timer(),s=function(e,t){if(e.empty(),t<=99)e.prepend('<span class="part-1">'+t%10+"</span>"),e.prepend('<span class="part-2">'+Math.floor(t/10)+"</span>");else{let s=0;for(;t;)s++,e.prepend('<span class="part-'+s+'">'+t%10+"</span>"),t=Math.floor(t/10)}};return t.update=function(){const t=new Date,i=new Date;i.setTime(t.getTime()+24*parseInt(this.get("day"))*3600*1e3+3600*parseInt(this.get("hour"))*1e3+60*parseInt(this.get("min"))*1e3+1e3*parseInt(this.get("sec"))),e.find(".tve_t_text").hide().html(this.get("text")),e.find(".tve_t_part").show(),e.attr("data-id","undefined"!=typeof _?TVE._.uniqueId("evergreen_"):"evergreen_"+parseInt(1e4*Math.random()));let n,r=0,o=0,a=0,l=0;return t<i&&(r=Math.floor((i.getTime()-t.getTime())/1e3),o=Math.floor(r/60),a=Math.floor(o/60),l=Math.floor(a/24),n=2,r%=60,o%=60,a%=24,l>99&&(n=l.toString().length)),s(e.find(".tve_t_sec .t-digits"),r),s(e.find(".tve_t_min .t-digits"),o),s(e.find(".tve_t_hour .t-digits"),a),s(e.find(".tve_t_day .t-digits"),l),t<i?e.find(".tve_t_day .t-digits").css("min-width",n*e.find(".tve_t_sec .t-digits > span").first().outerWidth()+"px"):e.find(".tve_t_day .t-digits").css("min-width",""),this},t}})})();

Youez - 2016 - github.com/yon3zu
LinuXploit