!function(){var e;(e=jQuery)(window).on("et_pb_init_modules",(function(){window.et_pb_init_fullscreen_section_modules=function(){const t="object"==typeof window.ET_Builder,i=void 0!==window.ETBlockLayoutModulesScript&&e("body").hasClass("et-block-layout-preview"),s=t||i?ET_Builder.Frames.top:window,n=e(i?s:window);let a=!1;e((()=>{window.et_calculate_fullscreen_section_size=function(){e("section.et_pb_fullscreen").each((function(){et_calc_fullscreen_section.bind(e(this))()})),clearTimeout(a),a=setTimeout((()=>{n.off("resize",et_calculate_fullscreen_section_size),n.off("et-pb-header-height-calculated",et_calculate_fullscreen_section_size),n.trigger("resize"),n.on("resize",et_calculate_fullscreen_section_size),n.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)}))}})),e((()=>{const i={},a={};window.et_calc_fullscreen_section=function(n,o){const l="object"==typeof n&&"resize"===n.type,c=e(s),r=o||e(this),h=r.index(".et_pb_fullscreen");if(t&&h<0){const e=r.children(".et_pb_fullwidth_header_container");return r.prop("style").removeProperty("min-height"),void e.prop("style").removeProperty("min-height")}const d=l&&void 0!==i[h]&&n.target.window_width>i[h]?800:0;i[h]=c.width(),void 0!==a[h]&&clearTimeout(a[h]),a[h]=setTimeout((()=>{const i=e("body"),n=e(".et-l--header").first(),a=n.length>0?n.height():0,o=r.length,l=r.index(".et_pb_fullwidth_header"),h=o?r.offset():{},d=r.children(".et_pb_fullwidth_header_container"),_=d.children(".header-content-container"),u=d.children(".header-image-container");let w=s.innerHeight||c.height();t&&(w=s.jQuery("#et-vb-app-frame").height());const f=s.jQuery("#wpadminbar"),g=!t&&f.length,p=g?f.height():0,m=e("#top-header"),b=m.length,v=b?m.height():0,C=e("#main-header"),x=C.length;let y=x?C.outerHeight():0;const z=function(){if(!window.et_is_fixed_nav)return 0;const t=void 0===e("#main-header").attr("data-fixed-height-onload")?0:e("#main-header").attr("data-fixed-height-onload");return window.et_is_fixed_nav?parseFloat(t):0}(),j=c.width()<782,T=c.width()>980,H=(c.width()<=980&&c.width(),c.width(),p+a+v+(window.et_is_vertical_nav&&T?0:y)),$=void 0!==h.top&&h.top<=H,Q=i.hasClass("et_hide_nav"),B=s.jQuery(".edit-post-header"),F=s.jQuery(".edit-post-layout__footer");C.attr("data-height-onload")&&(y=parseFloat(C.attr("data-height-onload"))),g&&(j?$&&(w-=p):w-=p),B.length>0&&(w-=B.outerHeight()),F.length>0&&(w-=F.outerHeight()),b&&T&&(Q&&!window.et_is_vertical_nav?$||(w-=v):!window.et_is_fixed_nav||window.et_is_vertical_nav?$&&(w-=v):w-=v),x&&(T?Q&&!window.et_is_vertical_nav?$||(w-=z):window.et_is_fixed_nav&&!window.et_is_vertical_nav?w-=$?y:z:window.et_is_fixed_nav||window.et_is_vertical_nav||$&&(w-=y):$&&(w-=y)),i.hasClass("et_transparent_nav")&&i.hasClass("et_hide_nav")&&0===l&&r.css("padding-top","");const L=parseInt(r.css("borderTopWidth"));L&&(w-=L);const E=parseInt(r.css("borderBottomWidth"));if(E&&(w-=E),a>0&&0===l&&0===r.closest(n).length&&(w-=a),setTimeout((()=>{r.css("min-height",`${w}px`),d.css("min-height",`${w}px`)}),100),d.hasClass("center")&&_.hasClass("bottom")&&u.hasClass("bottom")&&d.addClass("bottom-bottom"),d.hasClass("center")&&_.hasClass("center")&&u.hasClass("center")&&d.addClass("center-center"),d.hasClass("center")&&_.hasClass("center")&&u.hasClass("bottom")){d.addClass("center-bottom");const e=w-u.outerHeight(!0);e>0&&_.css("min-height",`${e}px`).css("height","10px")}d.hasClass("center")&&_.hasClass("bottom")&&u.hasClass("center")&&d.addClass("bottom-center"),(d.hasClass("left")||d.hasClass("right"))&&!_.length&&u.length&&d.css("justify-content","flex-end"),d.hasClass("center")&&_.hasClass("bottom")&&!u.length&&_.find(".header-content").css("margin-bottom","80px"),_.hasClass("bottom")&&u.hasClass("center")&&(u.find(".header-image").css("margin-bottom","80px"),u.css("align-self","flex-end"));let k=0;_.length&&(k+=_.outerHeight()),u.length&&(k+=u.outerHeight()),k>w&&(r.css("min-height",`${k}px`),d.css("min-height",`${k}px`)),u.hasClass("bottom")&&(k<w&&(r.css("min-height",`${k+80}px`),d.css("min-height",`${k+80}px`)),d.css("justify-content","flex-end"))}),d)},t||(n.on("resize",et_calculate_fullscreen_section_size),n.on("et-pb-header-height-calculated",et_calculate_fullscreen_section_size)),e(window).resize((function(){}))}))},window.et_pb_init_fullscreen_section_modules()})),((window.divi=window.divi||{}).scriptLibrary=window.divi.scriptLibrary||{}).scriptLibraryFullscreenSection={}}();