!function(){"use strict";var e={r:function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),(e=>{const t=()=>{window.et_reinit_waypoint_modules&&window.et_reinit_waypoint_modules()},o=t=>{if("function"!=typeof window.set_fullwidth_portfolio_columns)return;const o=t.find(".et_pb_fullwidth_portfolio:visible");0!==o.length&&o.each(((t,o)=>{const i=e(o),n=i.hasClass("et_pb_fullwidth_portfolio_carousel");window.set_fullwidth_portfolio_columns(i,n)}))};function i(e){return e.hasClass("et_flex_module")?"flex":e.hasClass("et_grid_module")?"grid":"block"}const n=t=>{t.find(".et_pb_accordion_item").each(((t,o)=>{const i=e(o);i.toggleClass("et_pb_toggle_empty",(t=>{const o=t.children(".et_pb_toggle_content");if(0===o.length)return!0;const i=t[0],n=o[0],l=(t,o)=>{const l=e(o);return l.closest(".et_pb_accordion_item")[0]===i&&l.closest(".et_pb_toggle_content")[0]===n},_=o.find("img, video, audio, iframe, object, embed, svg, canvas").filter(l).length>0,s=o.find(".et_pb_module").filter(l).length>0;return!_&&!s&&""===(o.html()||"").replace(/<br\s*\/?>/gi,"").replace(/&nbsp;/gi,"").replace(/<[^>]*>/g,"").trim()})(i))}))},l=(e,o)=>{if(!e.hasClass("et_pb_toggle_open"))return;const i=e.children(".et_pb_toggle_content");if(i.is(":animated"))return;const n=()=>{e.removeClass("et_pb_toggle_open").addClass("et_pb_toggle_close")};if(!i.is(":visible"))return n(),o&&o(),void t();i.slideToggle(700,(()=>{n(),o&&o(),t()}))},_=(e,n)=>{if(!e.hasClass("et_pb_toggle_close"))return;const l=e.children(".et_pb_toggle_content");if(l.is(":animated"))return;const _=()=>{e.removeClass("et_pb_toggle_close").addClass("et_pb_toggle_open")},s=i(l);if(l.css("display",s),l.hide(),l.is(":visible"))return _(),n&&n(),o(l),void t();l.slideToggle(700,(()=>{_(),n&&n(),o(l),t()}))},s=(t,o)=>{const i=t.closest(".et_pb_accordion");i.addClass("et_pb_accordion_toggling"),_(t,(()=>{o&&o(),window.dispatchEvent(new CustomEvent("vb:accordion:activated",{detail:{accordionContent:t.children(".et_pb_toggle_content")[0]}})),i.removeClass("et_pb_accordion_toggling")}));const n=i[0],s=i.find(".et_pb_accordion_item.et_pb_toggle_open").filter(((t,o)=>e(o).closest(".et_pb_accordion")[0]===n)).not(t);s.length>0&&l(s,(()=>{(t=>{const o=e(window).scrollTop(),i=t.offset();let n=0;e("#wpadminbar").length&&(n+=e("#wpadminbar").height()),e("#top-header").length&&(n+=e("#top-header").height()),e("#main-header").length&&!window.et_is_vertical_nav&&(n+=e("#main-header").height());const l="function"==typeof window?.getClosestStickyModuleOffsetTop?window.getClosestStickyModuleOffsetTop(t):null;l&&(n+=l),o+n>i.top&&e("html, body").animate({scrollTop:i.top-n-50})})(t),i.removeClass("et_pb_accordion_toggling")}))},a=()=>{n(e("body")),e(".et_pb_accordion").on("touchstart",(t=>{const o=e(t.target);(o.hasClass("et_pb_toggle_title")||o.hasClass("et_fb_toggle_overlay"))&&(t.preventDefault(),o.trigger("click"))}));e("body").on("click",".et_pb_toggle_title, .et_fb_toggle_overlay",(t=>{t.stopPropagation();const o=e(t.target).closest(".et_pb_toggle_title, .et_fb_toggle_overlay").closest(".et_pb_toggle");if(o.data("id"))return;o.closest(".et_pb_accordion").length>0&&o.hasClass("et_pb_accordion_item")?s(o):o.hasClass("et_pb_toggle_open")?l(o):_(o)}))};window.et_pb_toggle_collapse=l,window.et_pb_toggle_expand=_,window.et_pb_toggle_sync_content_display=e=>{if(!e.data("id"))return;if(!e.hasClass("et_pb_toggle_open"))return;const t=e.children(".et_pb_toggle_content");t.is(":animated")||0!==t.length&&t.is(":visible")&&t.css("display",i(t))},window.et_pb_accordion_item_expand=s,window.et_pb_init_accordion_modules=a,e(window).on("et_pb_init_modules",(()=>{a()}))})(jQuery),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryToggle=t}();