!function(t){const e="object"==typeof window.ET_Builder,i=t("body").hasClass("et-tb"),s=t("body").hasClass("et-bfb"),n=e&&!s;function _(e){e.each((function(){const e=t(this),_=e.find(".et_pb_tabs_controls li"),a=i||s||n?0:e.find(".et_pb_tab_active").index(),o={use_controls:!1,use_arrows:!1,slide:".et_pb_all_tabs > div",tabs_animation:!0,active_slide:0!==a?a:void 0};e.et_pb_simple_tabs_slider(o).on("et_hashchange",(e=>{const{params:i}=e,s=t(`#${e.target.id}`),n=i[0];s.find(".et_pb_tabs_controls li").eq(n).hasClass("et_pb_tab_active")||s.find(".et_pb_tabs_controls li").eq(n).trigger("click")})),_.on("click",(function(){const e=t(this),i=e.closest(".et_pb_tabs").data("et_pb_simple_tabs_slider");if(i.et_animation_running)return!1;e.addClass("et_pb_tab_active").siblings().removeClass("et_pb_tab_active"),i.data("et_pb_simple_tabs_slider").et_slider_move_to(e.index());const s=e.closest(".et_pb_tabs").attr("id");if(s){const t=`${s}${et_hash_module_param_seperator}${e.index()}`;setHash(t)}return!1})),function(t){const{hash:e}=window.location;if(""!==e){let i=e.replace("#","");i=/^tab\-/.test(i)?i:`tab-${i}`;const s=t.find(`.et_pb_tabs_controls li a[href="#${i}"]`);s.length&&s.parent().trigger("click")}}(e),function(e=t(".et_pb_tabs")){e.length&&e.each((function(){const e=t(this).find(".et_pb_tabs_controls"),i=e.find("li");let s=0;const n=t(this).parents(".et_pb_column_1_3, .et_pb_column_1_4, .et_pb_column_3_8").length>0,_=t(window).width()<768,a=n||_;a&&t(this).addClass("et_pb_tabs_vertically_stacked"),i.length&&(e.children("li").removeAttr("style"),i.each((function(){const e=t(this).outerHeight();!a&&e>s&&(s=e)}))),s&&e.children("li").css("height",`${s}px`)}))}()}))}t.et_pb_simple_tabs_slider=function(e,i){const s=t.extend({slide:".et-slide",controls:".et-pb-controllers a",control_active_class:"et-pb-active-control",fade_speed:500,tabs_animation:!0,active_slide:0},i),n=t(e),_=n.find(s.slide);let a=s.active_slide;function o(t){if(n.et_animation_running||a===t)return;n.et_animation_running=!0;const e=_.eq(a),i=_.eq(t);e.removeClass("et-pb-active-slide").addClass("et-pb-moved-slide").css({opacity:0,display:"none"}),i.addClass("et-pb-active-slide").css({display:"block",opacity:0}).animate({opacity:1},s.fade_speed,(function(){a=t,n.et_animation_running=!1}))}n.et_animation_running=!1,t.data(e,"et_pb_simple_tabs_slider",n),_.eq(a).addClass("et-pb-active-slide"),n.et_slider_move_to=o,n.et_settings=s,n.find(s.controls).on("click",(function(e){e.preventDefault(),o(t(this).index())}))},t.fn.et_pb_simple_tabs_slider=function(e){return this.each((function(){return t.data(this,"et_pb_simple_tabs_slider")||new t.et_pb_simple_tabs_slider(this,e)}))},t(window).on("et_pb_init_modules",(function(){_(t(".et_pb_tabs"))})),window.initTabsModules=_}(jQuery),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryTabs={};