/*!/wp-content/themes/astra/assets/js/minified/frontend.min.js*/
try {
	/* [inline: cdata] */var astra = {"break_point":"921","isRtl":"","is_scroll_to_id":"1","is_scroll_to_top":"","is_header_footer_builder_active":"1","responsive_cart_click":"flyout"};/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/themes/astra/assets/js/minified/frontend.min.js?ver=4.8.12 - Error: " + err.message);
}try {
	var astraGetParents=function(e,t){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),a=t.length;0<=--a&&t.item(a)!==this;);return-1<a});for(var a=[];e&&e!==document;e=e.parentNode)(!t||e.matches(t))&&a.push(e);return a},getParents=function(e,t){console.warn("getParents() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraGetParents() instead."),astraGetParents(e,t)},astraToggleClass=function(e,t){e.classList.contains(t)?e.classList.remove(t):e.classList.add(t)},toggleClass=function(e,t){console.warn("toggleClass() function has been deprecated since version 2.5.0 or above of Astra Theme and will be removed in the future. Use astraToggleClass() instead."),astraToggleClass(e,t)},astraTriggerEvent=((()=>{function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),a}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)})(),function(e,t){t=new CustomEvent(t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});e.dispatchEvent(t)});astraSmoothScroll=function(e,t){e.preventDefault(),window.scrollTo({top:t,left:0,behavior:"smooth"})},astScrollToTopHandler=function(e,t){var a=getComputedStyle(t).content,n=t.dataset.onDevices,a=a.replace(/[^0-9]/g,"");"both"==n||"desktop"==n&&"769"==a||"mobile"==n&&""==a?(n=window.pageYOffset||document.body.scrollTop,e&&e.length?n>e.offsetHeight+100?t.style.display="block":t.style.display="none":300<window.pageYOffset?t.style.display="block":t.style.display="none"):t.style.display="none"},(()=>{var r=document.querySelectorAll("#masthead .main-header-menu-toggle"),c=document.getElementById("masthead"),i={},d="",u=document.body,m="";function e(e){d=e.detail.type;e=document.querySelectorAll(".menu-toggle");"dropdown"===d&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g("updateHeader")),"off-canvas"===d&&e.forEach(function(e){e&&e.classList.contains("toggled")&&e.click()}),t(d)}function g(e){m=c.querySelector("#ast-mobile-header");if(null==m||"dropdown"!==m.dataset.type||"updateHeader"===e){(void 0!==e&&"updateHeader"!==e?e.closest(".ast-mobile-popup-inner"):document.querySelector("#ast-mobile-popup")).querySelectorAll(".menu-item-has-children").forEach(e=>{e.classList.remove("ast-submenu-expanded"),Array.from(e.querySelectorAll(".sub-menu")).forEach(e=>{e.hasAttribute("data-initial-display")||e.setAttribute("data-initial-display",window.getComputedStyle(e).display),"block"===e.getAttribute("data-initial-display")?e.style.display="block":e.style.display="none"})});var t=document.querySelectorAll(".menu-toggle");document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),document.documentElement.classList.remove("ast-off-canvas-active");for(var a=0;a<t.length;a++)t[a].classList.remove("toggled"),t[a].style.display="flex"}}function t(e){var t=document.querySelectorAll("#ast-mobile-header .menu-toggle"),a=document.querySelectorAll("#ast-desktop-header .menu-toggle");if(void 0===e&&null!==c)if(m=c.querySelector("#ast-mobile-header"))e=m.dataset.type;else{var n=c.querySelector("#ast-desktop-header");if(!n)return;e=n.dataset.toggleType}if("off-canvas"===e){var n=document.getElementById("menu-toggle-close"),o=document.querySelector(".ast-mobile-popup-inner");if(null==o)return;popupLinks=o.getElementsByTagName("a");for(var s=0;s<t.length;s++)t[s].removeEventListener("click",astraNavMenuToggle,!1),t[s].removeEventListener("click",popupTriggerClick),t[s].addEventListener("click",popupTriggerClick,!1),t[s].trigger_type="mobile";for(s=0;s<a.length;s++)a[s].removeEventListener("click",astraNavMenuToggle,!1),a[s].removeEventListener("click",popupTriggerClick),a[s].addEventListener("click",popupTriggerClick,!1),a[s].trigger_type="desktop";n.addEventListener("click",function(e){document.getElementById("ast-mobile-popup").classList.remove("active","show"),g(this)}),document.addEventListener("keyup",function(e){27===e.keyCode&&(e.preventDefault(),document.getElementById("ast-mobile-popup").classList.remove("active","show"),g())}),document.addEventListener("click",function(e){e.target===document.querySelector(".ast-mobile-popup-drawer.active .ast-mobile-popup-overlay")&&(document.getElementById("ast-mobile-popup").classList.remove("active","show"),g())});for(let e=0,t=popupLinks.length;e<t;e++)null!==popupLinks[e].getAttribute("href")&&(popupLinks[e].getAttribute("href").startsWith("#")||-1!==popupLinks[e].getAttribute("href").search("#"))&&(!popupLinks[e].parentElement.classList.contains("menu-item-has-children")||popupLinks[e].parentElement.classList.contains("menu-item-has-children")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-icon"))&&(popupLinks[e].addEventListener("click",p,!0),popupLinks[e].headerType="off-canvas");AstraToggleSetup()}else if("dropdown"===e){var r=document.querySelectorAll(".ast-mobile-header-content")||!1,o=document.querySelector(".ast-desktop-header-content")||!1;if(0<r.length)for(let e=0;e<r.length;e++){var l=r[e].getElementsByTagName("a");for(link=0,len=l.length;link<len;link++)null!==l[link].getAttribute("href")&&(l[link].getAttribute("href").startsWith("#")||-1!==l[link].getAttribute("href").search("#"))&&(!l[link].parentElement.classList.contains("menu-item-has-children")||l[link].parentElement.classList.contains("menu-item-has-children")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-icon"))&&(l[link].addEventListener("click",p,!0),l[link].headerType="dropdown")}if(o){var i=o.getElementsByTagName("a");for(link=0,len=i.length;link<len;link++)i[link].addEventListener("click",p,!0),i[link].headerType="dropdown"}for(s=0;s<t.length;s++)t[s].removeEventListener("click",popupTriggerClick,!1),t[s].removeEventListener("click",astraNavMenuToggle),t[s].addEventListener("click",astraNavMenuToggle,!1),t[s].trigger_type="mobile";for(s=0;s<a.length;s++)a[s].removeEventListener("click",popupTriggerClick,!1),a[s].removeEventListener("click",astraNavMenuToggle),a[s].addEventListener("click",astraNavMenuToggle,!1),a[s].trigger_type="desktop";AstraToggleSetup()}h()}function p(e){switch(e.currentTarget.headerType){case"dropdown":for(var t=document.querySelectorAll(".menu-toggle.toggled"),a=0;a<t.length;a++)t[a].click();break;case"off-canvas":document.getElementById("menu-toggle-close").click()}}""!==(m=null!=c?c.querySelector("#ast-mobile-header"):m)&&null!==m&&(d=m.dataset.type),document.addEventListener("astMobileHeaderTypeChange",e,!1),document.addEventListener("click",function(e){e=e.target.closest(".menu-toggle");if(e){e.classList.toggle("toggled");{e=document.querySelectorAll(".menu-toggle");let t=Array.from(e).every(e=>e.classList.contains("toggled"));e.forEach(e=>{t?e.classList.remove("toggled"):e.classList.add("toggled")})}}}),popupTriggerClick=function(e){var e=e.currentTarget.trigger_type,t=document.getElementById("ast-mobile-popup"),a=document.getElementById("menu-toggle-close");a&&a.focus(),u.classList.contains("ast-popup-nav-open")||u.classList.add("ast-popup-nav-open"),u.classList.contains("ast-main-header-nav-open")||"mobile"===e||u.classList.add("ast-main-header-nav-open"),document.documentElement.classList.contains("ast-off-canvas-active")||document.documentElement.classList.add("ast-off-canvas-active"),"desktop"===e&&(t.querySelector(".ast-mobile-popup-content").style.display="none",t.querySelector(".ast-desktop-popup-content").style.display="block"),"mobile"===e&&(t.querySelector(".ast-desktop-popup-content").style.display="none",t.querySelector(".ast-mobile-popup-content").style.display="block"),this.style.display="none",t.classList.add("active","show")},window.addEventListener("load",function(){t()}),document.addEventListener("astLayoutWidthChanged",function(){t()}),document.addEventListener("astPartialContentRendered",function(){r=document.querySelectorAll(".main-header-menu-toggle"),u.classList.remove("ast-main-header-nav-open"),document.addEventListener("astMobileHeaderTypeChange",e,!1),t(),h()});var o=null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth;window.addEventListener("resize",function(){var e,t,a,n;"INPUT"!==document.activeElement.tagName&&(e=document.getElementById("menu-toggle-close"),t=document.querySelector(".menu-toggle.toggled"),a=document.querySelector("#masthead > #ast-desktop-header .ast-desktop-header-content"),n=document.querySelector(".elementor-editor-active"),a&&(a.style.display="none"),(null!==navigator.userAgent.match(/Android/i)&&"Android"===navigator.userAgent.match(/Android/i)[0]?window.visualViewport.width:window.innerWidth)!==o&&(t&&null===n&&t.click(),document.body.classList.remove("ast-main-header-nav-open","ast-popup-nav-open"),e)&&null==n&&e.click(),v(),AstraToggleSetup())}),document.addEventListener("DOMContentLoaded",function(){if(AstraToggleSetup(),null!==(e=u.classList.contains("ast-header-break-point")?document.getElementById("ast-mobile-header"):document.getElementById("ast-desktop-header"))){var e,t=e.querySelector(".navigation-accessibility");if(t&&e){var a=e.getElementsByTagName("button")[0]||e.getElementsByTagName("a")[0];if(a&&!a.classList.contains("astra-search-icon")){var n=t.getElementsByTagName("ul")[0];if(n){if(n.className.includes("nav-menu")||(n.className+=" nav-menu"),document.addEventListener("DOMContentLoaded",function(){var e;"off-canvas"===d&&(e=document.getElementById("menu-toggle-close"))&&(e.onclick=function(){var e=t.className.includes("toggled");t.className=e?t.className.replace(" toggled",""):t.className+" toggled",a.setAttribute("aria-expanded",e?"false":"true"),n.setAttribute("aria-expanded",e?"false":"true")})}),a.onclick=function(){var e=t.className.includes("toggled");t.className=e?t.className.replace(" toggled",""):t.className+" toggled",a.setAttribute("aria-expanded",e?"false":"true"),n.setAttribute("aria-expanded",e?"false":"true")},!astra.is_header_footer_builder_active){for(var o=n.getElementsByTagName("a"),s=n.getElementsByTagName("ul"),r=0,l=s.length;r<l;r++)s[r].parentNode.setAttribute("aria-haspopup","true");for(r=0,l=o.length;r<l;r++)o[r].addEventListener("focus",E,!0),o[r].addEventListener("blur",E,!0),o[r].addEventListener("click",b,!0)}astra.is_header_footer_builder_active&&(()=>{let t=document.querySelectorAll("nav.site-navigation .menu-item-has-children > a .ast-header-navigation-arrow"),a=document.querySelectorAll("nav.site-navigation .sub-menu"),n=document.querySelectorAll("nav.site-navigation .menu-item-has-children"),o=document.querySelectorAll(".astra-full-megamenu-wrapper");t&&(t.forEach(e=>{e.addEventListener("keydown",function(o){if("Enter"===o.key){let t=o.target.closest("li"),a=t.querySelector(".sub-menu"),n=a&&a.classList.contains("astra-megamenu");setTimeout(()=>{n?(e=t.querySelector(".astra-full-megamenu-wrapper"),a&&a.classList.toggle("astra-megamenu-focus"),e&&e.classList.toggle("astra-megamenu-wrapper-focus")):a.classList.toggle("toggled-on"),t.classList.toggle("ast-menu-hover");var e=o.target.getAttribute("aria-expanded");o.target.setAttribute("aria-expanded","false"!==e&&e?"false":"true")},10)}})}),a||n)&&(document.addEventListener("click",function(e){L(a,t,n,o)},!1),document.addEventListener("keydown",function(e){"Escape"===e.key&&L(a,t,n,o)},!1));var e=document.querySelectorAll("nav.site-navigation .ast-nav-menu > .menu-item-has-children > a .ast-header-navigation-arrow");e&&e.forEach(e=>{e.addEventListener("keydown",function(e){e.target.closest("li").classList.contains("ast-menu-hover")||"Enter"!==e.key||L(a,t,n,o)},!1)})})()}else a.style.display="none"}}}});for(var a,n,s,l,v=function(){var e=u.style.overflow,t=(u.style.overflow="hidden",document.documentElement.clientWidth);if(u.style.overflow=e,astra.break_point<t||0===t){if(0<r.length)for(var a=0;a<r.length;a++)null!==r[a]&&r[a].classList.remove("toggled");u.classList.remove("ast-header-break-point"),u.classList.add("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-enabled")}else u.classList.add("ast-header-break-point"),u.classList.remove("ast-desktop"),astraTriggerEvent(u,"astra-header-responsive-disabled")},h=function(){var e,a=document.querySelectorAll(".ast-account-action-login");if(a.length){let t=document.querySelector("#ast-hb-account-login-wrap");t&&(e=document.querySelector("#ast-hb-login-close"),a.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),t.classList.add("show")})}),e)&&e.addEventListener("click",function(e){e.preventDefault(),t.classList.remove("show")})}},f=(v(),AstraToggleSubMenu=function(e){e.preventDefault(),"false"!==e.target.getAttribute("aria-expanded")&&e.target.getAttribute("aria-expanded")?e.target.setAttribute("aria-expanded","false"):e.target.setAttribute("aria-expanded","true");for(var t=this.parentNode,a=(t.classList.contains("ast-submenu-expanded")&&document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&(this.classList.contains("ast-menu-toggle")||""!==(e=t.querySelector("a").getAttribute("href"))&&"#"!==e&&(window.location=e)),t.querySelectorAll(".menu-item-has-children")),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");var o=a[n].querySelector(".sub-menu, .children");null!==o&&(o.style.display="none")}for(var s=t.parentNode.querySelectorAll(".menu-item-has-children"),n=0;n<s.length;n++)if(s[n]!=t){s[n].classList.remove("ast-submenu-expanded");for(var r=s[n].querySelectorAll(".sub-menu"),l=0;l<r.length;l++)r[l].style.display="none"}t.classList.contains("menu-item-has-children")&&(astraToggleClass(t,"ast-submenu-expanded"),t.classList.contains("ast-submenu-expanded")?t.querySelector(".sub-menu").style.display="block":t.querySelector(".sub-menu").style.display="none")},AstraToggleSetup=function(){if("undefined"!=typeof astraAddon&&"function"==typeof astraToggleSetupPro)astraToggleSetupPro(d,u,i);else{var e,t,a,n=!1;if(0<(e="off-canvas"===d||"full-width"===d?(t=document.querySelectorAll("#ast-mobile-popup, #ast-mobile-header"),(a=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length):(t=document.querySelectorAll("#ast-mobile-header"),(n=!(0<(e=(a=document.querySelectorAll("#ast-mobile-header .main-header-menu-toggle")).length)))?1:e))||n)for(var o=0;o<e;o++)if(n||(a[o].setAttribute("data-index",o),i[o])||(i[o]=a[o],a[o].removeEventListener("click",astraNavMenuToggle),a[o].addEventListener("click",astraNavMenuToggle,!1)),void 0!==t[o])for(var s,r=0;r<t.length;r++)if(0<(s=document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")?t[r].querySelectorAll("ul.main-header-menu .menu-item-has-children > .menu-link, ul.main-header-menu .ast-menu-toggle"):t[r].querySelectorAll("ul.main-header-menu .ast-menu-toggle")).length)for(var l=0;l<s.length;l++)s[l].removeEventListener("click",AstraToggleSubMenu),s[l].addEventListener("click",AstraToggleSubMenu,!1)}},astraNavMenuToggle=function(e){if("undefined"!=typeof astraAddon)astraNavMenuTogglePro(e,u,d,this);else{e.preventDefault();var e=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-bar-navigation"),t=(r=document.querySelectorAll("#masthead > #ast-mobile-header .main-header-menu-toggle"),"0");if(null!==this.closest("#ast-fixed-header")&&(e=document.querySelectorAll("#ast-fixed-header > #ast-mobile-header .main-header-bar-navigation"),r=document.querySelectorAll("#ast-fixed-header .main-header-menu-toggle"),t="0"),void 0===e[t])return!1;for(var a=e[t].querySelectorAll(".menu-item-has-children"),n=0;n<a.length;n++){a[n].classList.remove("ast-submenu-expanded");for(var o=a[n].querySelectorAll(".sub-menu"),s=0;s<o.length;s++)o[s].style.display="none"}-1!==(this.getAttribute("class")||"").indexOf("main-header-menu-toggle")&&(astraToggleClass(e[t],"toggle-on"),astraToggleClass(r[t],"toggled"),e[t].classList.contains("toggle-on")?(e[t].style.display="block",u.classList.add("ast-main-header-nav-open")):(e[t].style.display="",u.classList.remove("ast-main-header-nav-open")))}},u.addEventListener("astra-header-responsive-enabled",function(){var e=document.querySelectorAll(".main-header-bar-navigation");if(0<e.length)for(var t=0;t<e.length;t++){null!=e[t]&&(e[t].classList.remove("toggle-on"),e[t].style.display="");for(var a=e[t].getElementsByClassName("sub-menu"),n=0;n<a.length;n++)a[n].style.display="";for(var o=e[t].getElementsByClassName("children"),s=0;s<o.length;s++)o[s].style.display="";for(var r=e[t].getElementsByClassName("ast-search-menu-icon"),l=0;l<r.length;l++)r[l].classList.remove("ast-dropdown-active"),r[l].style.display=""}},!1),S=navigator.userAgent,n=S.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))\/?\s*(\d+)/i)||[],/trident/i.test(n[1])?a=/\brv[ :]+(\d+)/g.exec(S)||[]:"Chrome"===n[1]&&null!=(a=S.match(/\bOPR|Edge\/(\d+)/))||(n=n[2]?[n[1],n[2]]:[navigator.appName,navigator.appVersion,"-?"],null!=(a=S.match(/version\/(\d+)/i))&&n.splice(1,1,a[1]),"Safari"===n[0]&&n[1]<11&&document.body.classList.add("ast-safari-browser-less-than-11")),document.getElementsByClassName("astra-search-icon")),y=0;y<f.length;y++)f[y].onclick=function(e){var t;this.classList.contains("slide-search")&&(e.preventDefault(),(t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon")).classList.contains("ast-dropdown-active")?(""!==(t.querySelector(".search-field").value||"")&&t.querySelector(".search-form").submit(),t.classList.remove("ast-dropdown-active")):(t.classList.add("ast-dropdown-active"),t.querySelector(".search-field").setAttribute("autocomplete","off"),setTimeout(function(){t.querySelector(".search-field").focus()},200)))};function L(e,t,a,n){e&&e.forEach(e=>{e.classList.remove("astra-megamenu-focus"),e.classList.remove("toggled-on")}),a&&a.forEach(e=>{e.classList.remove("ast-menu-hover")}),n&&n.forEach(e=>{e.classList.remove("astra-megamenu-wrapper-focus")}),t&&t.forEach(e=>{e.setAttribute("aria-expanded","false")})}function b(){var e=this||"";if(e&&!e.classList.contains("astra-search-icon")&&null===e.closest(".ast-builder-menu")&&-1!==String(e).indexOf("#")){var t=e.parentNode;if(u.classList.contains("ast-header-break-point"))document.querySelector("header.site-header").classList.contains("ast-builder-menu-toggle-link")&&t.classList.contains("menu-item-has-children")||(document.querySelector(".main-header-menu-toggle").classList.remove("toggled"),(t=document.querySelector(".main-header-bar-navigation")).classList.remove("toggle-on"),t.style.display="none",astraTriggerEvent(document.querySelector("body"),"astraMenuHashLinkClicked"));else for(;-1===e.className.indexOf("nav-menu");)"li"===e.tagName.toLowerCase()&&-1!==e.className.indexOf("focus")&&(e.className=e.className.replace(" focus","")),e=e.parentElement}}function E(){for(var e=this;-1===e.className.indexOf("navigation-accessibility");)"li"===e.tagName.toLowerCase()&&e.classList.toggle("focus"),e=e.parentElement}if(document.querySelectorAll(".search-field").forEach(e=>{e.addEventListener("focus",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&astraToggleClass(t,"ast-dropdown-active")}),e.addEventListener("blur",function(e){var t=this.parentNode.parentNode.parentNode.querySelector(".ast-search-menu-icon");t&&(t.classList.remove("ast-dropdown-active"),astraToggleClass(t,"ast-dropdown-active"))})}),u.onclick=function(e){if(void 0!==e.target.classList&&!e.target.classList.contains("ast-search-menu-icon")&&0===astraGetParents(e.target,".ast-search-menu-icon").length&&0===astraGetParents(e.target,".ast-search-icon").length)for(var t=document.getElementsByClassName("ast-search-menu-icon"),a=0;a<t.length;a++)t[a].classList.remove("ast-dropdown-active")},astra.is_header_footer_builder_active||"querySelector"in document&&"addEventListener"in window&&(u.addEventListener("mousedown",function(){u.classList.add("ast-mouse-clicked")}),u.addEventListener("keydown",function(){u.classList.remove("ast-mouse-clicked")})),astra.is_scroll_to_id){let o=e=>{let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t};var k=e=>{let t=0;var a=document.querySelector(".site-header");a&&((a=a.querySelectorAll("div[data-stick-support]"))&&a.forEach(e=>{t+=e.clientHeight}),a=e.target.closest("a").hash)&&(a=document.querySelector(a))&&(a=o(a)-t)&&astraSmoothScroll(e,a)};let t=[];var S=document.querySelectorAll('a[href*="#"]:not([href="#"]):not([href="#0"]):not([href*="uagb-tab"]):not(.uagb-toc-link__trigger):not(.skip-link):not(.nav-links a):not([href*="tab-"])');if(S)for(let e of S)e.href.split("#")[0]!==location.href.split("#")[0]?t.push({hash:e.hash,url:e.href.split("#")[0]}):""!==e.hash&&e.addEventListener("click",k);window.addEventListener("DOMContentLoaded",e=>{for(var a of t)if(window.location.href.split("#")[0]===a.url){var n=document.querySelector(".site-header");let t=0;n=n.querySelectorAll("div[data-stick-support]"),n=(n&&n.forEach(e=>{t+=e.clientHeight}),document.querySelector(a.hash));n&&(a=o(n)-t)&&astraSmoothScroll(e,a)}})}astra.is_scroll_to_top&&(s=document.querySelector("#page header"),l=document.getElementById("ast-scroll-top"),astScrollToTopHandler(s,l),window.addEventListener("scroll",function(){astScrollToTopHandler(s,l)}),l.onclick=function(e){astraSmoothScroll(e,0)},l.addEventListener("keydown",function(e){"Enter"===e.key&&astraSmoothScroll(e,0)})),window.addEventListener("DOMContentLoaded",e=>{var t=document.querySelector(".ast-woocommerce-store-notice-hanged");let a=()=>{var e=document.querySelector('.woocommerce-store-notice[data-position="hang-over-top"]');document.body.style.marginTop=`${e?.clientHeight||0}px`};t&&(window.addEventListener("resize",a),setTimeout(()=>a(),0)),document.querySelector(".woocommerce-store-notice__dismiss-link")?.addEventListener("click",()=>{wp?.customize||(document.body.classList.remove("ast-woocommerce-store-notice-hanged"),window.removeEventListener("resize",a),document.body.style.marginTop=0)})})})(),document.addEventListener("DOMContentLoaded",function(){let t=document.querySelectorAll(".menu-link .dropdown-menu-toggle");function n(e){var e=e.closest(".menu-link"),t=e.nextElementSibling.classList.contains("toggled-on");e.setAttribute("aria-expanded",t?"true":"false")}document.querySelectorAll(".menu-item-has-children > a").forEach(t=>{t.addEventListener("keydown",function(e){"Enter"===e.key&&(e=t.nextElementSibling)&&e.classList.contains("sub-menu")&&(e.classList.toggle("ast-visible"),e="false"===t.getAttribute("aria-expanded")?"true":"false",t.setAttribute("aria-expanded",e))})}),t.forEach(a=>{a.addEventListener("focus",()=>n(a)),a.addEventListener("blur",()=>n(a)),a.addEventListener("keydown",e=>{var t;"Enter"===e.key&&(e.preventDefault(),e=(e=a).closest(".menu-link"),t=e.getAttribute("aria-expanded"),e.setAttribute("aria-expanded","true"===t?"false":"true"))})}),document.addEventListener("keydown",e=>{"Escape"===e.key&&t.forEach(e=>n(e))})}),document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".astra-shop-thumbnail-wrap").forEach(t=>{let a=t.querySelectorAll("a, span");a.forEach(e=>{e.addEventListener("focus",()=>{t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="1",e.style.visibility="visible",e.style.borderStyle="none"})}),e.addEventListener("blur",()=>{Array.from(a).some(e=>e===document.activeElement)||t.querySelectorAll(".ast-on-card-button, .ast-quick-view-trigger").forEach(e=>{e.style.opacity="",e.style.visibility=""})})})})});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/themes/astra/assets/js/minified/frontend.min.js?ver=4.8.12 - Error: " + err.message);
}
/*!/wp-content/plugins/gutentor/assets/library/wow/wow.min.js*/
try {
	/*! WOW wow.js - v1.3.0 - 2016-10-04
* https://wowjs.uk
* Copyright (c) 2016 Thomas Grainger; Licensed MIT */!function(a,b){if("function"==typeof define&&define.amd)define(["module","exports"],b);else if("undefined"!=typeof exports)b(module,exports);else{var c={exports:{}};b(c,c.exports),a.WOW=c.exports}}(this,function(a,b){"use strict";function c(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function d(a,b){return b.indexOf(a)>=0}function e(a,b){for(var c in b)if(null==a[c]){var d=b[c];a[c]=d}return a}function f(a){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)}function g(a){var b=arguments.length<=1||void 0===arguments[1]?!1:arguments[1],c=arguments.length<=2||void 0===arguments[2]?!1:arguments[2],d=arguments.length<=3||void 0===arguments[3]?null:arguments[3],e=void 0;return null!=document.createEvent?(e=document.createEvent("CustomEvent"),e.initCustomEvent(a,b,c,d)):null!=document.createEventObject?(e=document.createEventObject(),e.eventType=a):e.eventName=a,e}function h(a,b){null!=a.dispatchEvent?a.dispatchEvent(b):b in(null!=a)?a[b]():"on"+b in(null!=a)&&a["on"+b]()}function i(a,b,c){null!=a.addEventListener?a.addEventListener(b,c,!1):null!=a.attachEvent?a.attachEvent("on"+b,c):a[b]=c}function j(a,b,c){null!=a.removeEventListener?a.removeEventListener(b,c,!1):null!=a.detachEvent?a.detachEvent("on"+b,c):delete a[b]}function k(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight}Object.defineProperty(b,"__esModule",{value:!0});var l,m,n=function(){function a(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(a,d.key,d)}}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}(),o=window.WeakMap||window.MozWeakMap||function(){function a(){c(this,a),this.keys=[],this.values=[]}return n(a,[{key:"get",value:function(a){for(var b=0;b<this.keys.length;b++){var c=this.keys[b];if(c===a)return this.values[b]}}},{key:"set",value:function(a,b){for(var c=0;c<this.keys.length;c++){var d=this.keys[c];if(d===a)return this.values[c]=b,this}return this.keys.push(a),this.values.push(b),this}}]),a}(),p=window.MutationObserver||window.WebkitMutationObserver||window.MozMutationObserver||(m=l=function(){function a(){c(this,a),"undefined"!=typeof console&&null!==console&&(console.warn("MutationObserver is not supported by your browser."),console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content."))}return n(a,[{key:"observe",value:function(){}}]),a}(),l.notSupported=!0,m),q=window.getComputedStyle||function(a){var b=/(\-([a-z]){1})/g;return{getPropertyValue:function(c){"float"===c&&(c="styleFloat"),b.test(c)&&c.replace(b,function(a,b){return b.toUpperCase()});var d=a.currentStyle;return(null!=d?d[c]:void 0)||null}}},r=function(){function a(){var b=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];c(this,a),this.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null,scrollContainer:null,resetAnimation:!0},this.animate=function(){return"requestAnimationFrame"in window?function(a){return window.requestAnimationFrame(a)}:function(a){return a()}}(),this.vendors=["moz","webkit"],this.start=this.start.bind(this),this.resetAnimation=this.resetAnimation.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.scrollCallback=this.scrollCallback.bind(this),this.scrolled=!0,this.config=e(b,this.defaults),null!=b.scrollContainer&&(this.config.scrollContainer=document.querySelector(b.scrollContainer)),this.animationNameCache=new o,this.wowEvent=g(this.config.boxClass)}return n(a,[{key:"init",value:function(){this.element=window.document.documentElement,d(document.readyState,["interactive","complete"])?this.start():i(document,"DOMContentLoaded",this.start),this.finished=[]}},{key:"start",value:function(){var a=this;if(this.stopped=!1,this.boxes=[].slice.call(this.element.querySelectorAll("."+this.config.boxClass)),this.all=this.boxes.slice(0),this.boxes.length)if(this.disabled())this.resetStyle();else for(var b=0;b<this.boxes.length;b++){var c=this.boxes[b];this.applyStyle(c,!0)}if(this.disabled()||(i(this.config.scrollContainer||window,"scroll",this.scrollHandler),i(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live){var d=new p(function(b){for(var c=0;c<b.length;c++)for(var d=b[c],e=0;e<d.addedNodes.length;e++){var f=d.addedNodes[e];a.doSync(f)}});d.observe(document.body,{childList:!0,subtree:!0})}}},{key:"stop",value:function(){this.stopped=!0,j(this.config.scrollContainer||window,"scroll",this.scrollHandler),j(window,"resize",this.scrollHandler),null!=this.interval&&clearInterval(this.interval)}},{key:"sync",value:function(){p.notSupported&&this.doSync(this.element)}},{key:"doSync",value:function(a){if("undefined"!=typeof a&&null!==a||(a=this.element),1===a.nodeType){a=a.parentNode||a;for(var b=a.querySelectorAll("."+this.config.boxClass),c=0;c<b.length;c++){var e=b[c];d(e,this.all)||(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),this.scrolled=!0)}}}},{key:"show",value:function(a){return this.applyStyle(a),a.className=a.className+" "+this.config.animateClass,null!=this.config.callback&&this.config.callback(a),h(a,this.wowEvent),this.config.resetAnimation&&(i(a,"animationend",this.resetAnimation),i(a,"oanimationend",this.resetAnimation),i(a,"webkitAnimationEnd",this.resetAnimation),i(a,"MSAnimationEnd",this.resetAnimation)),a}},{key:"applyStyle",value:function(a,b){var c=this,d=a.getAttribute("data-wow-duration"),e=a.getAttribute("data-wow-delay"),f=a.getAttribute("data-wow-iteration");return this.animate(function(){return c.customStyle(a,b,d,e,f)})}},{key:"resetStyle",value:function(){for(var a=0;a<this.boxes.length;a++){var b=this.boxes[a];b.style.visibility="visible"}}},{key:"resetAnimation",value:function(a){if(a.type.toLowerCase().indexOf("animationend")>=0){var b=a.target||a.srcElement;b.className=b.className.replace(this.config.animateClass,"").trim()}}},{key:"customStyle",value:function(a,b,c,d,e){return b&&this.cacheAnimationName(a),a.style.visibility=b?"hidden":"visible",c&&this.vendorSet(a.style,{animationDuration:c}),d&&this.vendorSet(a.style,{animationDelay:d}),e&&this.vendorSet(a.style,{animationIterationCount:e}),this.vendorSet(a.style,{animationName:b?"none":this.cachedAnimationName(a)}),a}},{key:"vendorSet",value:function(a,b){for(var c in b)if(b.hasOwnProperty(c)){var d=b[c];a[""+c]=d;for(var e=0;e<this.vendors.length;e++){var f=this.vendors[e];a[""+f+c.charAt(0).toUpperCase()+c.substr(1)]=d}}}},{key:"vendorCSS",value:function(a,b){for(var c=q(a),d=c.getPropertyCSSValue(b),e=0;e<this.vendors.length;e++){var f=this.vendors[e];d=d||c.getPropertyCSSValue("-"+f+"-"+b)}return d}},{key:"animationName",value:function(a){var b=void 0;try{b=this.vendorCSS(a,"animation-name").cssText}catch(c){b=q(a).getPropertyValue("animation-name")}return"none"===b?"":b}},{key:"cacheAnimationName",value:function(a){return this.animationNameCache.set(a,this.animationName(a))}},{key:"cachedAnimationName",value:function(a){return this.animationNameCache.get(a)}},{key:"scrollHandler",value:function(){this.scrolled=!0}},{key:"scrollCallback",value:function(){if(this.scrolled){this.scrolled=!1;for(var a=[],b=0;b<this.boxes.length;b++){var c=this.boxes[b];if(c){if(this.isVisible(c)){this.show(c);continue}a.push(c)}}this.boxes=a,this.boxes.length||this.config.live||this.stop()}}},{key:"offsetTop",value:function(a){for(;void 0===a.offsetTop;)a=a.parentNode;for(var b=a.offsetTop;a.offsetParent;)a=a.offsetParent,b+=a.offsetTop;return b}},{key:"isVisible",value:function(a){var b=a.getAttribute("data-wow-offset")||this.config.offset,c=this.config.scrollContainer&&this.config.scrollContainer.scrollTop||window.pageYOffset,d=c+Math.min(this.element.clientHeight,k())-b,e=this.offsetTop(a),f=e+a.clientHeight;return d>=e&&f>=c}},{key:"disabled",value:function(){return!this.config.mobile&&f(navigator.userAgent)}}]),a}();b["default"]=r,a.exports=b["default"]});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/plugins/gutentor/assets/library/wow/wow.min.js?ver=1.2.1 - Error: " + err.message);
}
/*!/wp-content/cache/asset-cleanup/js/item/mxchat-basic__includes__-__js__chat-script-js-v65e0200b4024eb8cbec6d3e2148682f4a9963a64.js*/
try {
	/*!/wp-content/plugins/mxchat-basic/includes/../js/chat-script.js*/
jQuery(document).ready(function($){const toolbarIconColor=mxchatChat.toolbar_icon_color||'#212121';var userMessageBgColor=mxchatChat.user_message_bg_color;var userMessageFontColor=mxchatChat.user_message_font_color;var botMessageBgColor=mxchatChat.bot_message_bg_color;var botMessageFontColor=mxchatChat.bot_message_font_color;var liveAgentMessageBgColor=mxchatChat.live_agent_message_bg_color;var liveAgentMessageFontColor=mxchatChat.live_agent_message_font_color;var linkTarget=mxchatChat.link_target_toggle==='on'?'_blank':'_self';let lastSeenMessageId='';let notificationCheckInterval;let notificationBadge;var sessionId=getChatSession();let pollingInterval;let processedMessageIds=new Set();let activePdfFile=null;let activeWordFile=null;function createNotificationBadge(){console.log("Creating notification badge...");const chatButton=document.getElementById('floating-chatbot-button');console.log("Chat button found:",!!chatButton);if(!chatButton)return;const existingBadge=chatButton.querySelector('.chat-notification-badge');if(existingBadge){console.log("Removing existing badge");existingBadge.remove()}
notificationBadge=document.createElement('div');notificationBadge.className='chat-notification-badge';notificationBadge.style.cssText=`
        display: none;
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: red;
        color: white;
        border-radius: 50%;
        padding: 4px 8px;
        font-size: 12px;
        font-weight: bold;
        z-index: 10001;
    `;chatButton.style.position='relative';chatButton.appendChild(notificationBadge);console.log("Notification badge created and appended:",{exists:!!notificationBadge,parent:notificationBadge?.parentNode?.id,display:notificationBadge?.style?.display})}
function checkForNewMessages(){const sessionId=getChatSession();const chatPersistenceEnabled=mxchatChat.chat_persistence_toggle==='on';if(!chatPersistenceEnabled)return;$.ajax({url:mxchatChat.ajax_url,type:'POST',data:{action:'mxchat_check_new_messages',session_id:sessionId,last_seen_id:lastSeenMessageId,nonce:mxchatChat.nonce},success:function(response){if(response.success&&response.data.hasNewMessages){showNotification()}}})}
function showNotification(){const badge=document.getElementById('chat-notification-badge');if(badge&&$('#floating-chatbot').hasClass('hidden')){badge.style.display='block';badge.textContent='1'}}
function hideNotification(){const badge=document.getElementById('chat-notification-badge');if(badge){badge.style.display='none'}}
function startNotificationChecking(){const chatPersistenceEnabled=mxchatChat.chat_persistence_toggle==='on';if(!chatPersistenceEnabled)return;createNotificationBadge();notificationCheckInterval=setInterval(checkForNewMessages,30000)}
function stopNotificationChecking(){if(notificationCheckInterval){clearInterval(notificationCheckInterval)}}
function getChatSession(){var sessionId=getCookie('mxchat_session_id');if(!sessionId){sessionId=generateSessionId();setChatSession(sessionId)}
return sessionId}
function setChatSession(sessionId){document.cookie="mxchat_session_id="+sessionId+"; path=/; max-age=86400; SameSite=Lax"}
function getCookie(name){let value="; "+document.cookie;let parts=value.split("; "+name+"=");if(parts.length==2)return parts.pop().split(";").shift();}
function generateSessionId(){return'mxchat_chat_'+Math.random().toString(36).substr(2,9)}
function sendMessageToChatbot(message){var sessionId=getChatSession();$('#mxchat-popular-questions').hide();appendThinkingMessage();scrollToBottom();callMxChat(message,function(response){$('.temporary-message').remove();replaceLastMessage("bot",response)})}
function sendMessage(){var message=$('#chat-input').val();if(message){appendMessage("user",message);$('#chat-input').val('');$('#chat-input').css('height','auto');$('#mxchat-popular-questions').hide();appendThinkingMessage();scrollToBottom();callMxChat(message,function(response){replaceLastMessage("bot",response)})}}
function appendThinkingMessage(){$('.thinking-dots').remove();var botMessageFontColor=mxchatChat.bot_message_font_color;var botMessageBgColor=mxchatChat.bot_message_bg_color;var thinkingHtml='<div class="thinking-dots-container">'+'<div class="thinking-dots">'+'<span class="dot" style="background-color: '+botMessageFontColor+';"></span>'+'<span class="dot" style="background-color: '+botMessageFontColor+';"></span>'+'<span class="dot" style="background-color: '+botMessageFontColor+';"></span>'+'</div>'+'</div>';$("#chat-box").append('<div class="bot-message temporary-message" style="background-color: '+botMessageBgColor+';">'+thinkingHtml+'</div>');scrollToBottom()}
$('#chat-input').keypress(function(e){if(e.which==13&&!e.shiftKey){e.preventDefault();$('#send-button').click()}});$('#send-button').click(function(){sendMessage()});$('.mxchat-popular-question').on('click',function(){var question=$(this).text();appendMessage("user",question);sendMessageToChatbot(question)});function linkify(inputText){var markdownLinkPattern=/\[([^\]]+)\]\((https?:\/\/[^\s]+)\)/g;var replacedText=inputText.replace(markdownLinkPattern,'<a href="$2" target="'+linkTarget+'">$1</a>');var urlPattern=/(^|[^">])(https?:\/\/[^\s<]+)/gim;replacedText=replacedText.replace(urlPattern,'$1<a href="$2" target="'+linkTarget+'">$2</a>');var wwwPattern=/(^|[^">])(www\.[\S]+(\b|$))(?![^<]*<\/a>)/gim;replacedText=replacedText.replace(wwwPattern,'$1<a href="http://$2" target="'+linkTarget+'">$2</a>');return replacedText}
function scrollElementToTop(element){var chatBox=$('#chat-box');var elementTop=element.position().top+chatBox.scrollTop();chatBox.animate({scrollTop:elementTop},500)}
function scrollToBottom(instant=!1){var chatBox=$('#chat-box');if(instant){chatBox.scrollTop(chatBox.prop("scrollHeight"))}else{let start=null;const scrollHeight=chatBox.prop("scrollHeight");const initialScroll=chatBox.scrollTop();const distance=scrollHeight-initialScroll;const duration=500;function smoothScroll(timestamp){if(!start)start=timestamp;const progress=timestamp-start;const currentScroll=initialScroll+(distance*(progress/duration));chatBox.scrollTop(currentScroll);if(progress<duration){requestAnimationFrame(smoothScroll)}else{chatBox.scrollTop(scrollHeight)}}
requestAnimationFrame(smoothScroll)}}
function formatBoldText(text){return text.replace(/\*\*(.*?)\*\*/g,'<strong>$1</strong>')}
function convertNewlinesToBreaks(text){const paragraphs=text.split(/(?:\n\n|\<br\>\s*\<br\>)/g);return paragraphs.map(para=>`<p>${para.trim()}</p>`).join('')}
function copyToClipboard(text){var tempInput=$('<input>');$('body').append(tempInput);tempInput.val(text).select();document.execCommand('copy');tempInput.remove()}
function updateChatModeIndicator(mode){const indicator=document.getElementById('chat-mode-indicator');if(indicator){indicator.textContent=mode==='agent'?'Live Agent':'AI Agent'}
if(mode==='agent'){startPolling()}else{stopPolling()}}
function callMxChat(message,callback){$.ajax({url:mxchatChat.ajax_url,type:'POST',dataType:'json',data:{action:'mxchat_handle_chat_request',message:message,session_id:getChatSession(),nonce:mxchatChat.nonce},success:function(response){if(response.chat_mode){updateChatModeIndicator(response.chat_mode)}else if(response.fallbackResponse&&response.fallbackResponse.chat_mode){updateChatModeIndicator(response.fallbackResponse.chat_mode)}
if(response.data&&response.data.filename){showActivePdf(response.data.filename);activePdfFile=response.data.filename}
if(response.redirect_url){let responseText=response.text||'';if(responseText){replaceLastMessage("bot",responseText)}
setTimeout(()=>{window.location.href=response.redirect_url},1500);return}
if(response.success&&response.data&&response.data.status==='waiting_for_agent'){updateChatModeIndicator('agent');return}
let responseText=response.text||'';let responseHtml=response.html||'';let responseMessage=response.message||'';if(responseText==='You are now chatting with the AI chatbot.'){updateChatModeIndicator('ai')}
if(responseText||responseHtml||responseMessage){if(responseText&&responseHtml){replaceLastMessage("bot",responseText,responseHtml)}else if(responseText){replaceLastMessage("bot",responseText)}else if(responseHtml){replaceLastMessage("bot","",responseHtml)}else if(responseMessage){replaceLastMessage("bot",responseMessage)}
if($('#floating-chatbot').hasClass('hidden')){const badge=$('#chat-notification-badge');if(badge.length){badge.show()}}}else{console.error("Unexpected response format:",response);replaceLastMessage("bot","I'm sorry, something went wrong.")}
if(response.message_id){lastSeenMessageId=response.message_id}},error:function(xhr,status,error){replaceLastMessage("bot","An unexpected error occurred.")}})}
function appendMessage(sender,messageText='',messageHtml='',images=[],isTemporary=!1){try{let messageClass,bgColor,fontColor;if(sender==="user"){messageClass="user-message";bgColor=userMessageBgColor;fontColor=userMessageFontColor}else if(sender==="agent"){messageClass="agent-message";bgColor=liveAgentMessageBgColor;fontColor=liveAgentMessageFontColor}else{messageClass="bot-message";bgColor=botMessageBgColor;fontColor=botMessageFontColor}
const messageDiv=$('<div>').addClass(messageClass).css({'background':bgColor,'color':fontColor,});messageDiv.css({'margin-bottom':'1em'});let fullMessage=linkify(formatBoldText(convertNewlinesToBreaks(formatCodeBlocks(messageText))));if(images&&images.length>0){fullMessage+='<div class="image-gallery">';images.forEach(img=>{fullMessage+=`
                    <div style="margin-bottom: 10px;">
                        <strong>${img.title}</strong><br>
                        <a href="${img.image_url}" target="_blank">
                            <img src="${img.thumbnail_url}" alt="${img.title}" style="max-width: 100px; height: auto; margin: 5px;" />
                        </a>
                    </div>`});fullMessage+='</div>'}
if(messageHtml){fullMessage+='<br><br>'+messageHtml}
messageDiv.html(fullMessage);if(isTemporary){messageDiv.addClass('temporary-message')}
messageDiv.hide().appendTo('#chat-box').fadeIn(300,function(){if(sender==="bot"){const lastUserMessage=$('#chat-box').find('.user-message').last();if(lastUserMessage.length){scrollElementToTop(lastUserMessage)}}});if(messageText.id){lastSeenMessageId=messageText.id;hideNotification()}}catch(error){console.error("Error rendering message with images:",error)}}
function replaceLastMessage(sender,responseText,responseHtml='',images=[]){var messageClass=sender==="user"?"user-message":sender==="agent"?"agent-message":"bot-message";var lastMessageDiv=$('#chat-box').find('.bot-message.temporary-message, .agent-message.temporary-message').last();let bgColor,fontColor;if(sender==="user"){bgColor=userMessageBgColor;fontColor=userMessageFontColor}else if(sender==="agent"){bgColor=liveAgentMessageBgColor;fontColor=liveAgentMessageFontColor}else{bgColor=botMessageBgColor;fontColor=botMessageFontColor}
var fullMessage=linkify(formatBoldText(convertNewlinesToBreaks(formatCodeBlocks(responseText))));if(responseHtml){fullMessage+='<br><br>'+responseHtml}
if(images.length>0){fullMessage+='<div class="image-gallery">';images.forEach(img=>{fullMessage+=`
                <div style="margin-bottom: 10px;">
                    <strong>${img.title}</strong><br>
                    <a href="${img.image_url}" target="_blank">
                        <img src="${img.thumbnail_url}" alt="${img.title}" style="max-width: 100px; height: auto; margin: 5px;" />
                    </a>
                </div>`});fullMessage+='</div>'}
if(lastMessageDiv.length){lastMessageDiv.fadeOut(200,function(){$(this).html(fullMessage).removeClass('bot-message user-message').addClass(messageClass).css({'background-color':bgColor,'color':fontColor,}).removeClass('temporary-message').fadeIn(200,function(){if(sender==="bot"||sender==="agent"){const lastUserMessage=$('#chat-box').find('.user-message').last();if(lastUserMessage.length){scrollElementToTop(lastUserMessage)}
if($('#floating-chatbot').hasClass('hidden')){showNotification()}}})})}else{appendMessage(sender,responseText,responseHtml,images)}}
function startPolling(){stopPolling();pollingInterval=setInterval(checkForAgentMessages,5000)}
function stopPolling(){if(pollingInterval){clearInterval(pollingInterval);pollingInterval=null}}
function checkForAgentMessages(){const sessionId=getChatSession();$.ajax({url:mxchatChat.ajax_url,type:'POST',dataType:'json',data:{action:'mxchat_fetch_new_messages',session_id:sessionId,last_seen_id:lastSeenMessageId,nonce:mxchatChat.nonce},success:function(response){if(response.success&&response.data?.new_messages){let hasNewMessage=!1;response.data.new_messages.forEach(function(message){if(message.role==="agent"&&!processedMessageIds.has(message.id)){hasNewMessage=!0;replaceLastMessage("agent",message.content);lastSeenMessageId=message.id;processedMessageIds.add(message.id)}});if(hasNewMessage&&$('#floating-chatbot').hasClass('hidden')){showNotification()}
scrollToBottom(!0)}},error:function(xhr,status,error){console.error("Polling error:",xhr,status,error)}})}
function loadChatHistory(){var sessionId=getChatSession();var chatPersistenceEnabled=mxchatChat.chat_persistence_toggle==='on';if(chatPersistenceEnabled&&sessionId){$.ajax({url:mxchatChat.ajax_url,type:'POST',dataType:'json',data:{action:'mxchat_fetch_conversation_history',session_id:sessionId},success:function(response){if(response.success&&response.data&&Array.isArray(response.data.conversation)){var $chatBox=$('#chat-box');var $fragment=$(document.createDocumentFragment());let highestMessageId=lastSeenMessageId;if(response.data.chat_mode){updateChatModeIndicator(response.data.chat_mode)}
$.each(response.data.conversation,function(index,message){if(!chatPersistenceEnabled&&message.role==='agent'){return}
var messageClass,messageBgColor,messageFontColor;switch(message.role){case 'user':messageClass='user-message';messageBgColor=userMessageBgColor;messageFontColor=userMessageFontColor;break;case 'agent':messageClass='agent-message';messageBgColor=liveAgentMessageBgColor;messageFontColor=liveAgentMessageFontColor;break;default:messageClass='bot-message';messageBgColor=botMessageBgColor;messageFontColor=botMessageFontColor;break}
var messageElement=$('<div>').addClass(messageClass).css({'background':messageBgColor,'color':messageFontColor});var content=message.content;content=content.replace(/\\'/g,"'").replace(/\\"/g,'"');content=decodeHTMLEntities(content);if(content.includes("mxchat-product-card")||content.includes("mxchat-image-gallery")){messageElement.html(content)}else{var formattedContent=linkify(formatBoldText(convertNewlinesToBreaks(formatCodeBlocks(content))));messageElement.html(formattedContent)}
$fragment.append(messageElement);if(message.id){highestMessageId=Math.max(highestMessageId,message.id);processedMessageIds.add(message.id)}});$chatBox.append($fragment);scrollToBottom(!0);if(response.data.conversation.length>0){$('#mxchat-popular-questions').hide()}
lastSeenMessageId=highestMessageId;if(chatPersistenceEnabled&&response.data.conversation.length>0){var lastMessage=response.data.conversation[response.data.conversation.length-1];if(lastMessage.role==='agent'){updateChatModeIndicator('agent')}}}else{console.warn("No conversation history found.")}},error:function(xhr,status,error){console.error("Error loading chat history:",status,error);appendMessage("bot","Unable to load chat history.")}})}else{console.warn("Chat persistence is disabled or no session ID found. Not loading history.")}}
function decodeHTMLEntities(text){var textArea=document.createElement('textarea');textArea.innerHTML=text;return textArea.value}
function formatCodeBlocks(text){text=text.replace(/(<\?php[\s\S]*?\?>)/g,(match)=>{return `<pre><code class="language-php">${escapeHtml(match)}</code></pre>`});text=text.replace(/```php5?\n([\s\S]+?)```/gi,(match,code)=>{return `<pre><code class="language-php">${escapeHtml(code)}</code></pre>`});return text}
function escapeHtml(unsafe){if(unsafe.includes('<pre><code')||unsafe.includes('</code></pre>')){return unsafe}
return unsafe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}
function escapeHtml(unsafe){return unsafe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}
function convertNewlinesToBreaks(text){return text.split(/(<pre\b[^>]*>[\s\S]*?<\/pre>)/g).map(part=>{if(part.startsWith('<pre'))return part;return part.replace(/(^|[^>])\n/g,'$1<br>')}).join('')}
function isImageHtml(str){return str.startsWith('<img')&&str.endsWith('>')}
function removeThinkingDots(){$('.thinking-dots').closest('.temporary-message').remove()}
function isMobile(){return window.innerWidth<=768}
function disableScroll(){if(isMobile()){$('body').css('overflow','hidden')}}
function enableScroll(){if(isMobile()){$('body').css('overflow','')}}
function checkPreChatDismissal(){$.ajax({url:mxchatChat.ajax_url,type:'POST',data:{action:'mxchat_check_pre_chat_message_status',_ajax_nonce:mxchatChat.nonce},success:function(response){if(response.success&&!response.data.dismissed){$('#pre-chat-message').fadeIn(250)}else{$('#pre-chat-message').hide()}},error:function(){console.error('Failed to check pre-chat message dismissal status.')}})}
function showChatWidget(){$('#floating-chatbot-button').css('display','flex');$('#floating-chatbot-button').fadeTo(500,1);$('#floating-chatbot-button').removeClass('hidden')}
function hideChatWidget(){$('#floating-chatbot-button').css('display','none');$('#floating-chatbot-button').addClass('hidden')}
function initializeChatVisibility(){const complianzEnabled=mxchatChat.complianz_toggle==='on'||mxchatChat.complianz_toggle==='1'||mxchatChat.complianz_toggle===1;if(complianzEnabled&&typeof cmplz_has_consent==="function"&&typeof complianz!=='undefined'){checkConsentAndShowChat();$(document).on('cmplz_status_change',function(event){checkConsentAndShowChat()})}else{$('#floating-chatbot-button').css('display','flex').removeClass('hidden no-consent').fadeTo(500,1);checkPreChatDismissal()}}
function checkConsentAndShowChat(){var consentStatus=cmplz_has_consent('marketing');var consentType=complianz.consenttype;let $widget=$('#floating-chatbot-button');let $chatbot=$('#floating-chatbot');let $preChat=$('#pre-chat-message');if(consentStatus===!0){$widget.removeClass('no-consent').css('display','flex').removeClass('hidden').fadeTo(500,1);$chatbot.removeClass('no-consent');checkPreChatDismissal()}else{$widget.addClass('no-consent').fadeTo(500,0,function(){$(this).css('display','none').addClass('hidden')});$chatbot.addClass('no-consent');$preChat.hide()}}
function handlePreChatDismissal(){$('#pre-chat-message').fadeOut(200);$.ajax({url:mxchatChat.ajax_url,type:'POST',data:{action:'mxchat_dismiss_pre_chat_message',_ajax_nonce:mxchatChat.nonce},success:function(){$('#pre-chat-message').hide()},error:function(){console.error('Failed to dismiss pre-chat message.')}})}
$(document).on('click','.close-pre-chat-message',function(e){e.stopPropagation();handlePreChatDismissal()});$(document).on('click','#floating-chatbot-button',function(){var chatbot=$('#floating-chatbot');if(chatbot.hasClass('hidden')){chatbot.removeClass('hidden').addClass('visible');$(this).addClass('hidden');$('#chat-notification-badge').hide();disableScroll();$('#pre-chat-message').fadeOut(250)}else{chatbot.removeClass('visible').addClass('hidden');$(this).removeClass('hidden');enableScroll();checkPreChatDismissal()}});$(document).on('click','#exit-chat-button',function(){$('#floating-chatbot').addClass('hidden').removeClass('visible');$('#floating-chatbot-button').removeClass('hidden');enableScroll()});$(document).on('click','.close-pre-chat-message',function(e){e.stopPropagation();$('#pre-chat-message').fadeOut(200,function(){$(this).remove()})});$(document).on('click','#pre-chat-message',function(){var chatbot=$('#floating-chatbot');if(chatbot.hasClass('hidden')){chatbot.removeClass('hidden').addClass('visible');$('#floating-chatbot-button').addClass('hidden');$('#pre-chat-message').fadeOut(250);disableScroll()}});if($('#floating-chatbot').hasClass('hidden')){$('#floating-chatbot-button').removeClass('hidden')}
function setFullHeight(){var vh=$(window).innerHeight()*0.01;$(':root').css('--vh',vh+'px')}
$(window).on('resize orientationchange',function(){setFullHeight()});var closeButton=document.querySelector('.close-pre-chat-message');if(closeButton){closeButton.addEventListener('click',function(){$('#pre-chat-message').fadeOut(200);$.ajax({url:mxchatChat.ajax_url,type:'POST',data:{action:'mxchat_dismiss_pre_chat_message',_ajax_nonce:mxchatChat.nonce},success:function(){$('#pre-chat-message').hide()},error:function(){}})})}
$(document).on('click','.mxchat-add-to-cart-button',function(){var productId=$(this).data('product-id');appendMessage("user","add to cart");sendMessageToChatbot("!addtocart")});if(document.getElementById('pdf-upload-btn')){document.getElementById('pdf-upload-btn').addEventListener('click',function(){document.getElementById('pdf-upload').click()})}
if(document.getElementById('word-upload-btn')){document.getElementById('word-upload-btn').addEventListener('click',function(){document.getElementById('word-upload').click()})}
document.getElementById('pdf-upload').addEventListener('change',async function(e){const file=e.target.files[0];if(!file||file.type!=='application/pdf'){alert('Please select a valid PDF file.');return}
if(!sessionId){console.error('No session ID found');alert('Error: No session ID found');return}
if(!mxchatChat||!mxchatChat.ajax_url||!mxchatChat.nonce){console.error('mxchatChat not properly configured:',mxchatChat);alert('Error: Ajax configuration missing');return}
const uploadBtn=document.getElementById('pdf-upload-btn');const sendBtn=document.getElementById('send-button');const originalBtnContent=uploadBtn.innerHTML;try{const formData=new FormData();formData.append('action','mxchat_upload_pdf');formData.append('pdf_file',file);formData.append('session_id',sessionId);formData.append('nonce',mxchatChat.nonce);uploadBtn.disabled=!0;sendBtn.disabled=!0;uploadBtn.innerHTML=`<svg class="spinner" viewBox="0 0 50 50">
            <circle cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
        </svg>`;const response=await fetch(mxchatChat.ajax_url,{method:'POST',body:formData});const data=await response.json();if(data.success){const popularQuestionsContainer=document.getElementById('mxchat-popular-questions');if(popularQuestionsContainer){popularQuestionsContainer.style.display='none'}
showActivePdf(data.data.filename);appendMessage('bot',data.data.message);scrollToBottom();activePdfFile=data.data.filename}else{console.error('Upload failed:',data.data);alert('Failed to upload PDF. Please try again.')}}catch(error){console.error('Upload error:',error);alert('Error uploading file. Please try again.')}finally{uploadBtn.disabled=!1;sendBtn.disabled=!1;uploadBtn.innerHTML=originalBtnContent;this.value=''}});document.getElementById('word-upload').addEventListener('change',async function(e){const file=e.target.files[0];if(!file||file.type!=='application/vnd.openxmlformats-officedocument.wordprocessingml.document'){alert('Please select a valid Word document (.docx).');return}
if(!sessionId){console.error('No session ID found');alert('Error: No session ID found');return}
const uploadBtn=document.getElementById('word-upload-btn');const sendBtn=document.getElementById('send-button');const originalBtnContent=uploadBtn.innerHTML;try{const formData=new FormData();formData.append('action','mxchat_upload_word');formData.append('word_file',file);formData.append('session_id',sessionId);formData.append('nonce',mxchatChat.nonce);uploadBtn.disabled=!0;sendBtn.disabled=!0;uploadBtn.innerHTML=`<svg class="spinner" viewBox="0 0 50 50">
            <circle cx="25" cy="25" r="20" fill="none" stroke-width="5"></circle>
        </svg>`;const response=await fetch(mxchatChat.ajax_url,{method:'POST',body:formData});const data=await response.json();if(data.success){const popularQuestionsContainer=document.getElementById('mxchat-popular-questions');if(popularQuestionsContainer){popularQuestionsContainer.style.display='none'}
showActiveWord(data.data.filename);appendMessage('bot',data.data.message);scrollToBottom();activeWordFile=data.data.filename}else{console.error('Upload failed:',data.data);alert('Failed to upload Word document. Please try again.')}}catch(error){console.error('Upload error:',error);alert('Error uploading file. Please try again.')}finally{uploadBtn.disabled=!1;sendBtn.disabled=!1;uploadBtn.innerHTML=originalBtnContent;this.value=''}});function showActivePdf(filename){const container=document.getElementById('active-pdf-container');const nameElement=document.getElementById('active-pdf-name');if(!container||!nameElement){console.error('PDF container elements not found');return}
nameElement.textContent=filename;container.style.display='flex'}
function showActiveWord(filename){const container=document.getElementById('active-word-container');const nameElement=document.getElementById('active-word-name');if(!container||!nameElement){console.error('Word document container elements not found');return}
nameElement.textContent=filename;container.style.display='flex'}
function removeActivePdf(){const container=document.getElementById('active-pdf-container');const nameElement=document.getElementById('active-pdf-name');if(!container||!nameElement||!activePdfFile)return;fetch(mxchatChat.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({'action':'mxchat_remove_pdf','session_id':sessionId,'nonce':mxchatChat.nonce})}).then(response=>response.json()).then(data=>{if(data.success){container.style.display='none';nameElement.textContent='';activePdfFile=null;appendMessage('bot','PDF removed.')}}).catch(error=>{console.error('Error removing PDF:',error)})}
function removeActiveWord(){const container=document.getElementById('active-word-container');const nameElement=document.getElementById('active-word-name');if(!container||!nameElement||!activeWordFile)return;fetch(mxchatChat.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({'action':'mxchat_remove_word','session_id':sessionId,'nonce':mxchatChat.nonce})}).then(response=>response.json()).then(data=>{if(data.success){container.style.display='none';nameElement.textContent='';activeWordFile=null;appendMessage('bot','Word document removed.')}}).catch(error=>{console.error('Error removing Word document:',error)})}
document.getElementById('remove-pdf-btn')?.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();removeActivePdf()});document.getElementById('remove-word-btn')?.addEventListener('click',function(e){e.preventDefault();e.stopPropagation();removeActiveWord()});function checkInitialDocumentStatus(){if(!sessionId)return;fetch(mxchatChat.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({'action':'mxchat_check_pdf_status','session_id':sessionId,'nonce':mxchatChat.nonce})}).then(response=>response.json()).then(data=>{if(data.success&&data.data.filename){showActivePdf(data.data.filename);activePdfFile=data.data.filename}}).catch(error=>{console.error('Error checking PDF status:',error)});fetch(mxchatChat.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({'action':'mxchat_check_word_status','session_id':sessionId,'nonce':mxchatChat.nonce})}).then(response=>response.json()).then(data=>{if(data.success&&data.data.filename){showActiveWord(data.data.filename);activeWordFile=data.data.filename}}).catch(error=>{console.error('Error checking Word document status:',error)})}
if(mxchatChat.chat_toolbar_toggle==='on'){$('.chat-toolbar').show()}else{$('.chat-toolbar').hide()}
document.addEventListener('DOMContentLoaded',function(){checkInitialDocumentStatus()});const toolbarElements=['#mxchat-chatbot .toolbar-btn svg','#mxchat-chatbot .active-pdf-name','#mxchat-chatbot .active-word-name','#mxchat-chatbot .remove-pdf-btn svg','#mxchat-chatbot .remove-word-btn svg'];$(toolbarElements.join(', ')).css({'fill':toolbarIconColor,'color':toolbarIconColor});const emailForm=document.getElementById('email-collection-form');const emailBlocker=document.getElementById('email-blocker');const chatbotWrapper=document.getElementById('chat-container');if(emailForm&&emailBlocker&&chatbotWrapper){function checkSessionAndEmail(){const sessionId=getChatSession();fetch(mxchatChat.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({action:'mxchat_check_email_provided',session_id:sessionId,nonce:mxchatChat.nonce,}),}).then((response)=>response.json()).then((data)=>{if(data.success){if(data.data.logged_in){emailBlocker.style.display='none';chatbotWrapper.style.display='flex'}else if(data.data.email){emailBlocker.style.display='none';chatbotWrapper.style.display='flex'}else{emailBlocker.style.display='flex';chatbotWrapper.style.display='none'}}else{emailBlocker.style.display='flex';chatbotWrapper.style.display='none'}}).catch((error)=>{emailBlocker.style.display='flex';chatbotWrapper.style.display='none'})}
emailForm.addEventListener('submit',function(event){event.preventDefault();const userEmail=document.getElementById('user-email').value;const sessionId=getChatSession();if(userEmail){fetch(mxchatChat.ajax_url,{method:'POST',headers:{'Content-Type':'application/x-www-form-urlencoded',},body:new URLSearchParams({action:'mxchat_handle_save_email_and_response',email:userEmail,session_id:sessionId,nonce:mxchatChat.nonce,}),}).then((response)=>response.json()).then((data)=>{if(data.success){emailBlocker.style.display='none';chatbotWrapper.style.display='flex';if(data.message){appendMessage('bot',data.message);scrollToBottom()}}else{console.error('Error saving email:',data.message||'Unknown error')}}).catch((error)=>{console.error('AJAX error:',error)})}});checkSessionAndEmail()}else{console.error('Essential elements for email handling are missing.')}
$(document).ready(function(){setFullHeight();initializeChatVisibility();loadChatHistory()})});document.addEventListener("click",(e)=>{if(e.target.classList.contains("mxchat-copy-button")){const copyButton=e.target;const codeBlock=copyButton.closest(".mxchat-code-block-container").querySelector(".mxchat-code-block code");if(codeBlock){navigator.clipboard.writeText(codeBlock.innerText).then(()=>{copyButton.textContent="Copied!";copyButton.setAttribute("aria-label","Copied to clipboard");setTimeout(()=>{copyButton.textContent="Copy";copyButton.setAttribute("aria-label","Copy to clipboard")},2000)})}}})
;
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/cache/asset-cleanup/js/item/mxchat-basic__includes__-__js__chat-script-js-v65e0200b4024eb8cbec6d3e2148682f4a9963a64.js - Error: " + err.message);
}
/*!/wp-content/plugins/gutentor/assets/library/theia-sticky-sidebar/theia-sticky-sidebar.min.js*/
try {
	!function(i){i.fn.theiaStickySidebar=function(t){function e(t,e){var a=o(t,e);a||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),i(document).on("scroll."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)),i(window).on("resize."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)))}function o(t,e){return t.initialized===!0||!(i("body").width()<t.minWidth)&&(a(t,e),!0)}function a(t,e){t.initialized=!0;var o=i("#theia-sticky-sidebar-stylesheet-"+t.namespace);0===o.length&&i("head").append(i('<style id="theia-sticky-sidebar-stylesheet-'+t.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>')),e.each(function(){function e(){a.fixedScrollTop=0,a.sidebar.css({"min-height":"1px"}),a.stickySidebar.css({position:"static",width:"",transform:"none"})}function o(t){var e=t.height();return t.children().each(function(){e=Math.max(e,i(this).height())}),e}var a={};if(a.sidebar=i(this),a.options=t||{},a.container=i(a.options.containerSelector),0==a.container.length&&(a.container=a.sidebar.parent()),a.sidebar.parents().css("-webkit-transform","none"),a.sidebar.css({position:a.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),a.stickySidebar=a.sidebar.find(".theiaStickySidebar"),0==a.stickySidebar.length){var s=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;a.sidebar.find("script").filter(function(i,t){return 0===t.type.length||t.type.match(s)}).remove(),a.stickySidebar=i("<div>").addClass("theiaStickySidebar").append(a.sidebar.children()),a.sidebar.append(a.stickySidebar)}a.marginBottom=parseInt(a.sidebar.css("margin-bottom")),a.paddingTop=parseInt(a.sidebar.css("padding-top")),a.paddingBottom=parseInt(a.sidebar.css("padding-bottom"));var r=a.stickySidebar.offset().top,d=a.stickySidebar.outerHeight();a.stickySidebar.css("padding-top",1),a.stickySidebar.css("padding-bottom",1),r-=a.stickySidebar.offset().top,d=a.stickySidebar.outerHeight()-d-r,0==r?(a.stickySidebar.css("padding-top",0),a.stickySidebarPaddingTop=0):a.stickySidebarPaddingTop=1,0==d?(a.stickySidebar.css("padding-bottom",0),a.stickySidebarPaddingBottom=0):a.stickySidebarPaddingBottom=1,a.previousScrollTop=null,a.fixedScrollTop=0,e(),a.onScroll=function(a){if(a.stickySidebar.is(":visible")){if(i("body").width()<a.options.minWidth)return void e();if(a.options.disableOnResponsiveLayouts){var s=a.sidebar.outerWidth("none"==a.sidebar.css("float"));if(s+50>a.container.width())return void e()}var r=i(document).scrollTop(),d="static";if(r>=a.sidebar.offset().top+(a.paddingTop-a.options.additionalMarginTop)){var c,p=a.paddingTop+t.additionalMarginTop,b=a.paddingBottom+a.marginBottom+t.additionalMarginBottom,l=a.sidebar.offset().top,f=a.sidebar.offset().top+o(a.container),h=0+t.additionalMarginTop,g=a.stickySidebar.outerHeight()+p+b<i(window).height();c=g?h+a.stickySidebar.outerHeight():i(window).height()-a.marginBottom-a.paddingBottom-t.additionalMarginBottom;var u=l-r+a.paddingTop,S=f-r-a.paddingBottom-a.marginBottom,y=a.stickySidebar.offset().top-r,m=a.previousScrollTop-r;"fixed"==a.stickySidebar.css("position")&&"modern"==a.options.sidebarBehavior&&(y+=m),"stick-to-top"==a.options.sidebarBehavior&&(y=t.additionalMarginTop),"stick-to-bottom"==a.options.sidebarBehavior&&(y=c-a.stickySidebar.outerHeight()),y=m>0?Math.min(y,h):Math.max(y,c-a.stickySidebar.outerHeight()),y=Math.max(y,u),y=Math.min(y,S-a.stickySidebar.outerHeight());var k=a.container.height()==a.stickySidebar.outerHeight();d=(k||y!=h)&&(k||y!=c-a.stickySidebar.outerHeight())?r+y-a.sidebar.offset().top-a.paddingTop<=t.additionalMarginTop?"static":"absolute":"fixed"}if("fixed"==d){var v=i(document).scrollLeft();a.stickySidebar.css({position:"fixed",width:n(a.stickySidebar)+"px",transform:"translateY("+y+"px)",left:a.sidebar.offset().left+parseInt(a.sidebar.css("padding-left"))-v+"px",top:"0px"})}else if("absolute"==d){var x={};"absolute"!=a.stickySidebar.css("position")&&(x.position="absolute",x.transform="translateY("+(r+y-a.sidebar.offset().top-a.stickySidebarPaddingTop-a.stickySidebarPaddingBottom)+"px)",x.top="0px"),x.width=n(a.stickySidebar)+"px",x.left="",a.stickySidebar.css(x)}else"static"==d&&e();"static"!=d&&1==a.options.updateSidebarHeight&&a.sidebar.css({"min-height":a.stickySidebar.outerHeight()+a.stickySidebar.offset().top-a.sidebar.offset().top+a.paddingBottom}),a.previousScrollTop=r}},a.onScroll(a),i(document).on("scroll."+a.options.namespace,function(i){return function(){i.onScroll(i)}}(a)),i(window).on("resize."+a.options.namespace,function(i){return function(){i.stickySidebar.css({position:"static"}),i.onScroll(i)}}(a)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(a.stickySidebar[0],function(i){return function(){i.onScroll(i)}}(a))})}function n(i){var t;try{t=i[0].getBoundingClientRect().width}catch(i){}return"undefined"==typeof t&&(t=i.width()),t}var s={containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"};return t=i.extend(s,t),t.additionalMarginTop=parseInt(t.additionalMarginTop)||0,t.additionalMarginBottom=parseInt(t.additionalMarginBottom)||0,e(t,this),this}}(jQuery);
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/plugins/gutentor/assets/library/theia-sticky-sidebar/theia-sticky-sidebar.min.js?ver=4.0.1 - Error: " + err.message);
}
/*!/wp-content/plugins/gutentor/assets/library/magnific-popup/jquery.magnific-popup.min.js*/
try {
	/*! Magnific Popup - v1.1.0 - 2016-02-20
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2016 Dmitry Semenov; */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):window.jQuery||window.Zepto)}(function(a){var b,c,d,e,f,g,h="Close",i="BeforeClose",j="AfterClose",k="BeforeAppend",l="MarkupParse",m="Open",n="Change",o="mfp",p="."+o,q="mfp-ready",r="mfp-removing",s="mfp-prevent-close",t=function(){},u=!!window.jQuery,v=a(window),w=function(a,c){b.ev.on(o+a+p,c)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(c,d){b.ev.triggerHandler(o+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},z=function(c){return c===g&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),g=c),b.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(b=new t,b.init(),a.magnificPopup.instance=b)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};t.prototype={constructor:t,init:function(){var c=navigator.appVersion;b.isLowIE=b.isIE8=document.all&&!document.addEventListener,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=B(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document),b.popupsCache={}},open:function(c){var e;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var g,h=c.items;for(e=0;e<h.length;e++)if(g=h[e],g.parsed&&(g=g.el[0]),g===c.el[0]){b.index=e;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],f="",c.mainEl&&c.mainEl.length?b.ev=c.mainEl.eq(0):b.ev=d,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=x("bg").on("click"+p,function(){b.close()}),b.wrap=x("wrap").attr("tabindex",-1).on("click"+p,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=x("container",b.wrap)),b.contentContainer=x("content"),b.st.preloader&&(b.preloader=x("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(e=0;e<i.length;e++){var j=i[e];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}y("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(w(l,function(a,b,c,d){c.close_replaceWith=z(d.type)}),f+=" mfp-close-btn-in"):b.wrap.append(z())),b.st.alignTop&&(f+=" mfp-align-top"),b.fixedContentPos?b.wrap.css({overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}):b.wrap.css({top:v.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:d.height(),position:"absolute"}),b.st.enableEscapeKey&&d.on("keyup"+p,function(a){27===a.keyCode&&b.close()}),v.on("resize"+p,function(){b.updateSize()}),b.st.closeOnContentClick||(f+=" mfp-auto-cursor"),f&&b.wrap.addClass(f);var k=b.wH=v.height(),n={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(n.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):n.overflow="hidden");var r=b.st.mainClass;return b.isIE7&&(r+=" mfp-ie7"),r&&b._addClassToMFP(r),b.updateItemHTML(),y("BuildControls"),a("html").css(n),b.bgOverlay.add(b.wrap).prependTo(b.st.prependTo||a(document.body)),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(q),b._setFocus()):b.bgOverlay.addClass(q),d.on("focusin"+p,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),y(m),c},close:function(){b.isOpen&&(y(i),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(r),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){y(h);var c=r+" "+q+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var e={marginRight:""};b.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}d.off("keyup"+p+" focusin"+p),b.ev.off(p),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b.st.autoFocusLast&&b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,y(j)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||v.height();b.fixedContentPos||b.wrap.css("height",b.wH),y("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(y("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var f=b.st[d]?b.st[d].markup:!1;y("FirstMarkupParse",f),f?b.currTemplate[d]=a(f):b.currTemplate[d]=!0}e&&e!==c.type&&b.container.removeClass("mfp-"+e+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,y(n,c),e=c.type,b.container.prepend(b.contentContainer),y("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(z()):b.content=a:b.content="",y(k),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d,e=b.items[c];if(e.tagName?e={el:a(e)}:(d=e.type,e={data:e,src:e.src}),e.el){for(var f=b.types,g=0;g<f.length;g++)if(e.el.hasClass("mfp-"+f[g])){d=f[g];break}e.src=e.el.attr("data-mfp-src"),e.src||(e.src=e.el.attr("href"))}return e.type=d||b.st.type||"inline",e.index=c,e.parsed=!0,b.items[c]=e,y("ElementParse",e),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||!(2===c.which||c.ctrlKey||c.metaKey||c.altKey||c.shiftKey)){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(v.width()<g)return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};y("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(s)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?d.height():document.body.scrollHeight)>(a||v.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(l,[b,c,d]),a.each(c,function(c,d){if(void 0===d||d===!1)return!0;if(e=c.split("_"),e.length>1){var f=b.find(p+"-"+e[0]);if(f.length>0){var g=e[1];"replaceWith"===g?f[0]!==d[0]&&f.replaceWith(d):"img"===g?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(p+"-"+c).html(d)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:t.prototype,modules:[],open:function(b,c){return A(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(c){A();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=u?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),u?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var C,D,E,F="inline",G=function(){E&&(D.after(E.addClass(C)).detach(),E=null)};a.magnificPopup.registerModule(F,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(F),w(h+"."+F,function(){G()})},getInline:function(c,d){if(G(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(D||(C=e.hiddenClass,D=x(C),C="mfp-"+C),E=f.after(D).detach().removeClass(C)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var H,I="ajax",J=function(){H&&a(document.body).removeClass(H)},K=function(){J(),b.req&&b.req.abort()};a.magnificPopup.registerModule(I,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(I),H=b.st.ajax.cursor,w(h+"."+I,K),w("BeforeChange."+I,K)},getAjax:function(c){H&&a(document.body).addClass(H),b.updateStatus("loading");var d=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};y("ParseAjax",g),b.appendContent(a(g.data),I),c.finished=!0,J(),b._setFocus(),setTimeout(function(){b.wrap.addClass(q)},16),b.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(d),""}}});var L,M=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=b.st.image,d=".image";b.types.push("image"),w(m+d,function(){"image"===b.currItem.type&&c.cursor&&a(document.body).addClass(c.cursor)}),w(h+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),v.off("resize"+p)}),w("Resize"+d,b.resizeImage),b.isLowIE&&w("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){L&&clearInterval(L),L=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(L),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,y("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.el&&c.el.find("img").length&&(j.alt=c.el.find("img").attr("alt")),c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),j=c.img[0],j.naturalWidth>0?c.hasSize=!0:j.width||(c.hasSize=!1)}return b._parseMarkup(d,{title:M(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(L&&clearInterval(L),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var N,O=function(){return void 0===N&&(N=void 0!==document.createElement("p").style.MozTransform),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,j=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};w("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=j(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,y("ZoomAnimationEnded")},16)},g)},16)}}),w(i+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=j(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),w(h+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(u?d.innerHeight():d[0].offsetHeight)-g-f};return O()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var P="iframe",Q="//about:blank",R=function(a){if(b.currTemplate[P]){var c=b.currTemplate[P].find("iframe");c.length&&(a||(c[0].src=Q),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(P,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(P),w("BeforeChange",function(a,b,c){b!==c&&(b===P?R():c===P&&R(!0))}),w(h+"."+P,function(){R()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var S=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},T=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,e=".mfp-gallery";return b.direction=!0,c&&c.enabled?(f+=" mfp-gallery",w(m+e,function(){c.navigateByImgClick&&b.wrap.on("click"+e,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),d.on("keydown"+e,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),w("UpdateStatus"+e,function(a,c){c.text&&(c.text=T(c.text,b.currItem.index,b.items.length))}),w(l+e,function(a,d,e,f){var g=b.items.length;e.counter=g>1?T(c.tCounter,f.index,g):""}),w("BuildControls"+e,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(s),f=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(s);e.click(function(){b.prev()}),f.click(function(){b.next()}),b.container.append(e.add(f))}}),w(n+e,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void w(h+e,function(){d.off(e),b.wrap.off("click"+e),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=S(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=S(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;a<=(b.direction?e:d);a++)b._preloadItem(b.index+a);for(a=1;a<=(b.direction?d:e);a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=S(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),y("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,y("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var U="retina";a.magnificPopup.registerModule(U,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(w("ImageHasSize."+U,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),w("ElementParse."+U,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),A()});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/plugins/gutentor/assets/library/magnific-popup/jquery.magnific-popup.min.js?ver=1.1.0 - Error: " + err.message);
}
/*!/wp-content/plugins/gutentor/assets/library/isotope/isotope.pkgd.min.js*/
try {
	/*!
 * Isotope PACKAGED v3.0.6
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * https://isotope.metafizzy.co
 * Copyright 2010-2018 Metafizzy
 */

!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function u(t,e,o){var n,s="$()."+i+'("'+e+'")';return t.each(function(t,u){var h=a.data(u,i);if(!h)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var d=h[e];if(!d||"_"==e.charAt(0))return void r(s+" is not a valid method");var l=d.apply(h,o);n=void 0===n?l:n}),void 0!==n?n:t}function h(t,e){t.each(function(t,o){var n=a.data(o,i);n?(n.option(e),n._init()):(n=new s(o,e),a.data(o,i,n))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=n.call(arguments,1);return u(this,t,e)}return h(this,t),this},o(a))}function o(t){!t||t&&t.bridget||(t.bridget=i)}var n=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return o(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},o=i[t]=i[t]||[];return o.indexOf(e)==-1&&o.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},o=i[t]=i[t]||{};return o[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var o=i.indexOf(e);return o!=-1&&i.splice(o,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var o=this._onceEvents&&this._onceEvents[t],n=0;n<i.length;n++){var s=i[n],r=o&&o[s];r&&(this.off(t,s),delete o[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<h;e++){var i=u[e];t[i]=0}return t}function o(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function n(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=o(e);r=200==Math.round(t(n.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(n(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=o(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==s.boxSizing,l=0;l<h;l++){var f=u[l],c=s[f],m=parseFloat(c);a[f]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,y=a.paddingTop+a.paddingBottom,g=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,I=d&&r,x=t(s.width);x!==!1&&(a.width=x+(I?0:p+_));var S=t(s.height);return S!==!1&&(a.height=S+(I?0:y+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(y+z),a.outerWidth=a.width+g,a.outerHeight=a.height+v,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},u=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],h=u.length,d=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var o=e[i],n=o+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var o=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?o.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,o){t=i.makeArray(t);var n=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!o)return void n.push(t);e(t,o)&&n.push(t);for(var i=t.querySelectorAll(o),s=0;s<i.length;s++)n.push(i[s])}}),n},i.debounceMethod=function(t,e,i){i=i||100;var o=t.prototype[e],n=e+"Timeout";t.prototype[e]=function(){var t=this[n];clearTimeout(t);var e=arguments,s=this;this[n]=setTimeout(function(){o.apply(s,e),delete s[n]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var n=t.console;return i.htmlInit=function(e,o){i.docReady(function(){var s=i.toDashed(o),r="data-"+s,a=document.querySelectorAll("["+r+"]"),u=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(u)),d=r+"-options",l=t.jQuery;h.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(d);try{i=s&&JSON.parse(s)}catch(a){return void(n&&n.error("Error parsing "+r+" on "+t.className+": "+a))}var u=new e(t,i);l&&l.data(t,o,u)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function o(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function n(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",u={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],h={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},d=o.prototype=Object.create(t.prototype);d.constructor=o,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var o=h[i]||i;e[o]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),o=t[e?"left":"right"],n=t[i?"top":"bottom"],s=parseFloat(o),r=parseFloat(n),a=this.layout.size;o.indexOf("%")!=-1&&(s=s/100*a.width),n.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop"),n=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[n];e[s]=this.getXValue(a),e[r]="";var u=o?"paddingTop":"paddingBottom",h=o?"top":"bottom",d=o?"bottom":"top",l=this.position.y+t[u];e[h]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,o=this.position.y,n=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),n&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-o,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),o=this.layout._getOption("originTop");return t=i?t:-t,e=o?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var o=this.element.offsetHeight;o=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+n(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(u,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var f={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,o=f[t.propertyName]||t.propertyName;if(delete e.ingProperties[o],i(e.ingProperties)&&this.disableTransition(),o in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[o]),o in e.onEnd){var n=e.onEnd[o];n.call(this),delete e.onEnd[o]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(u,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var c={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(c)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},o}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,o,n,s){return e(t,i,o,n,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,o,n){"use strict";function s(t,e){var i=o.getQueryElement(t);if(!i)return void(u&&u.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,h&&(this.$element=h(this.element)),this.options=o.extend({},this.constructor.defaults),this.option(e);var n=++l;this.element.outlayerGUID=n,f[n]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],o=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var n=m[o]||1;return i*n}var u=t.console,h=t.jQuery,d=function(){},l=0,f={};s.namespace="outlayer",s.Item=n,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var c=s.prototype;o.extend(c,e.prototype),c.option=function(t){o.extend(this.options,t)},c._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},c._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),o.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},c.reloadItems=function(){this.items=this._itemize(this.element.children)},c._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,o=[],n=0;n<e.length;n++){var s=e[n],r=new i(s,this);o.push(r)}return o},c._filterFindItemElements=function(t){return o.filterFindElements(t,this.options.itemSelector)},c.getItemElements=function(){return this.items.map(function(t){return t.element})},c.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},c._init=c.layout,c._resetLayout=function(){this.getSize()},c.getSize=function(){this.size=i(this.element)},c._getMeasurement=function(t,e){var o,n=this.options[t];n?("string"==typeof n?o=this.element.querySelector(n):n instanceof HTMLElement&&(o=n),this[t]=o?i(o)[e]:n):this[t]=0},c.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},c._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},c._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var o=this._getItemLayoutPosition(t);o.item=t,o.isInstant=e||t.isLayoutInstant,i.push(o)},this),this._processLayoutQueue(i)}},c._getItemLayoutPosition=function(){return{x:0,y:0}},c._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},c.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},c._positionItem=function(t,e,i,o,n){o?t.goTo(e,i):(t.stagger(n*this.stagger),t.moveTo(e,i))},c._postLayout=function(){this.resizeContainer()},c.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},c._getContainerSize=d,c._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},c._emitCompleteOnItems=function(t,e){function i(){n.dispatchEvent(t+"Complete",null,[e])}function o(){r++,r==s&&i()}var n=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,o)})},c.dispatchEvent=function(t,e,i){var o=e?[e].concat(i):i;if(this.emitEvent(t,o),h)if(this.$element=this.$element||h(this.element),e){var n=h.Event(e);n.type=t,this.$element.trigger(n,i)}else this.$element.trigger(t,i)},c.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},c.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},c.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},c.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){o.removeFrom(this.stamps,t),this.unignore(t)},this)},c._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=o.makeArray(t)},c._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},c._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},c._manageStamp=d,c._getElementOffset=function(t){var e=t.getBoundingClientRect(),o=this._boundingRect,n=i(t),s={left:e.left-o.left-n.marginLeft,top:e.top-o.top-n.marginTop,right:o.right-e.right-n.marginRight,bottom:o.bottom-e.bottom-n.marginBottom};return s},c.handleEvent=o.handleEvent,c.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},c.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},c.onresize=function(){this.resize()},o.debounceMethod(s,"onresize",100),c.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},c.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},c.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},c.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},c.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},c.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},c.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},c.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},c.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},c.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},c.getItems=function(t){t=o.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},c.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),o.removeFrom(this.items,t)},this)},c.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete f[e],delete this.element.outlayerGUID,h&&h.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=o.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&f[e]},s.create=function(t,e){var i=r(s);return i.defaults=o.extend({},s.defaults),o.extend(i.defaults,e),i.compatOptions=o.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(n),o.htmlInit(i,t),h&&h.bridget&&h.bridget(t,i),i};var m={ms:1,s:1e3};return s.Item=n,s}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/item",["outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.Item=e(t.Outlayer))}(window,function(t){"use strict";function e(){t.Item.apply(this,arguments)}var i=e.prototype=Object.create(t.Item.prototype),o=i._create;i._create=function(){this.id=this.layout.itemGUID++,o.call(this),this.sortData={}},i.updateSortData=function(){if(!this.isIgnored){this.sortData.id=this.id,this.sortData["original-order"]=this.id,this.sortData.random=Math.random();var t=this.layout.options.getSortData,e=this.layout._sorters;for(var i in t){var o=e[i];this.sortData[i]=o(this.element,this)}}};var n=i.destroy;return i.destroy=function(){n.apply(this,arguments),this.css({display:""})},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-mode",["get-size/get-size","outlayer/outlayer"],e):"object"==typeof module&&module.exports?module.exports=e(require("get-size"),require("outlayer")):(t.Isotope=t.Isotope||{},t.Isotope.LayoutMode=e(t.getSize,t.Outlayer))}(window,function(t,e){"use strict";function i(t){this.isotope=t,t&&(this.options=t.options[this.namespace],this.element=t.element,this.items=t.filteredItems,this.size=t.size)}var o=i.prototype,n=["_resetLayout","_getItemLayoutPosition","_manageStamp","_getContainerSize","_getElementOffset","needsResizeLayout","_getOption"];return n.forEach(function(t){o[t]=function(){return e.prototype[t].apply(this.isotope,arguments)}}),o.needsVerticalResizeLayout=function(){var e=t(this.isotope.element),i=this.isotope.size&&e;return i&&e.innerHeight!=this.isotope.size.innerHeight},o._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)},o.getColumnWidth=function(){this.getSegmentSize("column","Width")},o.getRowHeight=function(){this.getSegmentSize("row","Height")},o.getSegmentSize=function(t,e){var i=t+e,o="outer"+e;if(this._getMeasurement(i,o),!this[i]){var n=this.getFirstItemSize();this[i]=n&&n[o]||this.isotope.size["inner"+e]}},o.getFirstItemSize=function(){var e=this.isotope.filteredItems[0];return e&&e.element&&t(e.element)},o.layout=function(){this.isotope.layout.apply(this.isotope,arguments)},o.getSize=function(){this.isotope.getSize(),this.size=this.isotope.size},i.modes={},i.create=function(t,e){function n(){i.apply(this,arguments)}return n.prototype=Object.create(o),n.prototype.constructor=n,e&&(n.options=e),n.prototype.namespace=t,i.modes[t]=n,n},i}),function(t,e){"function"==typeof define&&define.amd?define("masonry-layout/masonry",["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var o=i.prototype;return o._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},o.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var o=this.columnWidth+=this.gutter,n=this.containerWidth+this.gutter,s=n/o,r=o-n%o,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},o.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,o=e(i);this.containerWidth=o&&o.innerWidth},o._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",o=Math[i](t.size.outerWidth/this.columnWidth);o=Math.min(o,this.cols);for(var n=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[n](o,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,u=o+s.col,h=s.col;h<u;h++)this.colYs[h]=a;return r},o._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},o._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,o=0;o<i;o++)e[o]=this._getColGroupY(o,t);return e},o._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},o._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,o=t>1&&i+t>this.cols;i=o?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},o._manageStamp=function(t){var i=e(t),o=this._getElementOffset(t),n=this._getOption("originLeft"),s=n?o.left:o.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var u=Math.floor(r/this.columnWidth);u-=r%this.columnWidth?0:1,u=Math.min(this.cols-1,u);for(var h=this._getOption("originTop"),d=(h?o.top:o.bottom)+i.outerHeight,l=a;l<=u;l++)this.colYs[l]=Math.max(d,this.colYs[l])},o._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},o._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},o.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/masonry",["../layout-mode","masonry-layout/masonry"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode"),require("masonry-layout")):e(t.Isotope.LayoutMode,t.Masonry)}(window,function(t,e){"use strict";var i=t.create("masonry"),o=i.prototype,n={_getElementOffset:!0,layout:!0,_getMeasurement:!0};for(var s in e.prototype)n[s]||(o[s]=e.prototype[s]);var r=o.measureColumns;o.measureColumns=function(){this.items=this.isotope.filteredItems,r.call(this)};var a=o._getOption;return o._getOption=function(t){return"fitWidth"==t?void 0!==this.options.isFitWidth?this.options.isFitWidth:this.options.fitWidth:a.apply(this.isotope,arguments)},i}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/fit-rows",["../layout-mode"],e):"object"==typeof exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("fitRows"),i=e.prototype;return i._resetLayout=function(){this.x=0,this.y=0,this.maxY=0,this._getMeasurement("gutter","outerWidth")},i._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth+this.gutter,i=this.isotope.size.innerWidth+this.gutter;0!==this.x&&e+this.x>i&&(this.x=0,this.y=this.maxY);var o={x:this.x,y:this.y};return this.maxY=Math.max(this.maxY,this.y+t.size.outerHeight),this.x+=e,o},i._getContainerSize=function(){return{height:this.maxY}},e}),function(t,e){"function"==typeof define&&define.amd?define("isotope-layout/js/layout-modes/vertical",["../layout-mode"],e):"object"==typeof module&&module.exports?module.exports=e(require("../layout-mode")):e(t.Isotope.LayoutMode)}(window,function(t){"use strict";var e=t.create("vertical",{horizontalAlignment:0}),i=e.prototype;return i._resetLayout=function(){this.y=0},i._getItemLayoutPosition=function(t){t.getSize();var e=(this.isotope.size.innerWidth-t.size.outerWidth)*this.options.horizontalAlignment,i=this.y;return this.y+=t.size.outerHeight,{x:e,y:i}},i._getContainerSize=function(){return{height:this.y}},e}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size","desandro-matches-selector/matches-selector","fizzy-ui-utils/utils","isotope-layout/js/item","isotope-layout/js/layout-mode","isotope-layout/js/layout-modes/masonry","isotope-layout/js/layout-modes/fit-rows","isotope-layout/js/layout-modes/vertical"],function(i,o,n,s,r,a){return e(t,i,o,n,s,r,a)}):"object"==typeof module&&module.exports?module.exports=e(t,require("outlayer"),require("get-size"),require("desandro-matches-selector"),require("fizzy-ui-utils"),require("isotope-layout/js/item"),require("isotope-layout/js/layout-mode"),require("isotope-layout/js/layout-modes/masonry"),require("isotope-layout/js/layout-modes/fit-rows"),require("isotope-layout/js/layout-modes/vertical")):t.Isotope=e(t,t.Outlayer,t.getSize,t.matchesSelector,t.fizzyUIUtils,t.Isotope.Item,t.Isotope.LayoutMode)}(window,function(t,e,i,o,n,s,r){function a(t,e){return function(i,o){for(var n=0;n<t.length;n++){var s=t[n],r=i.sortData[s],a=o.sortData[s];if(r>a||r<a){var u=void 0!==e[s]?e[s]:e,h=u?1:-1;return(r>a?1:-1)*h}}return 0}}var u=t.jQuery,h=String.prototype.trim?function(t){return t.trim()}:function(t){return t.replace(/^\s+|\s+$/g,"")},d=e.create("isotope",{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});d.Item=s,d.LayoutMode=r;var l=d.prototype;l._create=function(){this.itemGUID=0,this._sorters={},this._getSorters(),e.prototype._create.call(this),this.modes={},this.filteredItems=this.items,this.sortHistory=["original-order"];for(var t in r.modes)this._initLayoutMode(t)},l.reloadItems=function(){this.itemGUID=0,e.prototype.reloadItems.call(this)},l._itemize=function(){for(var t=e.prototype._itemize.apply(this,arguments),i=0;i<t.length;i++){var o=t[i];o.id=this.itemGUID++}return this._updateItemsSortData(t),t},l._initLayoutMode=function(t){var e=r.modes[t],i=this.options[t]||{};this.options[t]=e.options?n.extend(e.options,i):i,this.modes[t]=new e(this)},l.layout=function(){return!this._isLayoutInited&&this._getOption("initLayout")?void this.arrange():void this._layout()},l._layout=function(){var t=this._getIsInstant();this._resetLayout(),this._manageStamps(),this.layoutItems(this.filteredItems,t),this._isLayoutInited=!0},l.arrange=function(t){this.option(t),this._getIsInstant();var e=this._filter(this.items);this.filteredItems=e.matches,this._bindArrangeComplete(),this._isInstant?this._noTransition(this._hideReveal,[e]):this._hideReveal(e),this._sort(),this._layout()},l._init=l.arrange,l._hideReveal=function(t){this.reveal(t.needReveal),this.hide(t.needHide)},l._getIsInstant=function(){var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;return this._isInstant=e,e},l._bindArrangeComplete=function(){function t(){e&&i&&o&&n.dispatchEvent("arrangeComplete",null,[n.filteredItems])}var e,i,o,n=this;this.once("layoutComplete",function(){e=!0,t()}),this.once("hideComplete",function(){i=!0,t()}),this.once("revealComplete",function(){o=!0,t()})},l._filter=function(t){var e=this.options.filter;e=e||"*";for(var i=[],o=[],n=[],s=this._getFilterTest(e),r=0;r<t.length;r++){var a=t[r];if(!a.isIgnored){var u=s(a);u&&i.push(a),u&&a.isHidden?o.push(a):u||a.isHidden||n.push(a)}}return{matches:i,needReveal:o,needHide:n}},l._getFilterTest=function(t){return u&&this.options.isJQueryFiltering?function(e){return u(e.element).is(t);
}:"function"==typeof t?function(e){return t(e.element)}:function(e){return o(e.element,t)}},l.updateSortData=function(t){var e;t?(t=n.makeArray(t),e=this.getItems(t)):e=this.items,this._getSorters(),this._updateItemsSortData(e)},l._getSorters=function(){var t=this.options.getSortData;for(var e in t){var i=t[e];this._sorters[e]=f(i)}},l._updateItemsSortData=function(t){for(var e=t&&t.length,i=0;e&&i<e;i++){var o=t[i];o.updateSortData()}};var f=function(){function t(t){if("string"!=typeof t)return t;var i=h(t).split(" "),o=i[0],n=o.match(/^\[(.+)\]$/),s=n&&n[1],r=e(s,o),a=d.sortDataParsers[i[1]];return t=a?function(t){return t&&a(r(t))}:function(t){return t&&r(t)}}function e(t,e){return t?function(e){return e.getAttribute(t)}:function(t){var i=t.querySelector(e);return i&&i.textContent}}return t}();d.sortDataParsers={parseInt:function(t){return parseInt(t,10)},parseFloat:function(t){return parseFloat(t)}},l._sort=function(){if(this.options.sortBy){var t=n.makeArray(this.options.sortBy);this._getIsSameSortBy(t)||(this.sortHistory=t.concat(this.sortHistory));var e=a(this.sortHistory,this.options.sortAscending);this.filteredItems.sort(e)}},l._getIsSameSortBy=function(t){for(var e=0;e<t.length;e++)if(t[e]!=this.sortHistory[e])return!1;return!0},l._mode=function(){var t=this.options.layoutMode,e=this.modes[t];if(!e)throw new Error("No layout mode: "+t);return e.options=this.options[t],e},l._resetLayout=function(){e.prototype._resetLayout.call(this),this._mode()._resetLayout()},l._getItemLayoutPosition=function(t){return this._mode()._getItemLayoutPosition(t)},l._manageStamp=function(t){this._mode()._manageStamp(t)},l._getContainerSize=function(){return this._mode()._getContainerSize()},l.needsResizeLayout=function(){return this._mode().needsResizeLayout()},l.appended=function(t){var e=this.addItems(t);if(e.length){var i=this._filterRevealAdded(e);this.filteredItems=this.filteredItems.concat(i)}},l.prepended=function(t){var e=this._itemize(t);if(e.length){this._resetLayout(),this._manageStamps();var i=this._filterRevealAdded(e);this.layoutItems(this.filteredItems),this.filteredItems=i.concat(this.filteredItems),this.items=e.concat(this.items)}},l._filterRevealAdded=function(t){var e=this._filter(t);return this.hide(e.needHide),this.reveal(e.matches),this.layoutItems(e.matches,!0),e.matches},l.insert=function(t){var e=this.addItems(t);if(e.length){var i,o,n=e.length;for(i=0;i<n;i++)o=e[i],this.element.appendChild(o.element);var s=this._filter(e).matches;for(i=0;i<n;i++)e[i].isLayoutInstant=!0;for(this.arrange(),i=0;i<n;i++)delete e[i].isLayoutInstant;this.reveal(s)}};var c=l.remove;return l.remove=function(t){t=n.makeArray(t);var e=this.getItems(t);c.call(this,t);for(var i=e&&e.length,o=0;i&&o<i;o++){var s=e[o];n.removeFrom(this.filteredItems,s)}},l.shuffle=function(){for(var t=0;t<this.items.length;t++){var e=this.items[t];e.sortData.random=Math.random()}this.options.sortBy="random",this._sort(),this._layout()},l._noTransition=function(t,e){var i=this.options.transitionDuration;this.options.transitionDuration=0;var o=t.apply(this,e);return this.options.transitionDuration=i,o},l.getFilteredItemElements=function(){return this.filteredItems.map(function(t){return t.element})},d});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/plugins/gutentor/assets/library/isotope/isotope.pkgd.min.js?ver=3.0.6 - Error: " + err.message);
}
/*!/wp-includes/js/imagesloaded.min.js*/
try {
	/*! This file is auto-generated */
/*!
 * imagesLoaded PACKAGED v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(t,e){"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,(function(){function t(){}let e=t.prototype;return e.on=function(t,e){if(!t||!e)return this;let i=this._events=this._events||{},s=i[t]=i[t]||[];return s.includes(e)||s.push(e),this},e.once=function(t,e){if(!t||!e)return this;this.on(t,e);let i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this},e.off=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;let s=i.indexOf(e);return-1!=s&&i.splice(s,1),this},e.emitEvent=function(t,e){let i=this._events&&this._events[t];if(!i||!i.length)return this;i=i.slice(0),e=e||[];let s=this._onceEvents&&this._onceEvents[t];for(let n of i){s&&s[n]&&(this.off(t,n),delete s[n]),n.apply(this,e)}return this},e.allOff=function(){return delete this._events,delete this._onceEvents,this},t})),
/*!
 * imagesLoaded v5.0.0
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
function(t,e){"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,(function(t,e){let i=t.jQuery,s=t.console;function n(t,e,o){if(!(this instanceof n))return new n(t,e,o);let r=t;var h;("string"==typeof t&&(r=document.querySelectorAll(t)),r)?(this.elements=(h=r,Array.isArray(h)?h:"object"==typeof h&&"number"==typeof h.length?[...h]:[h]),this.options={},"function"==typeof e?o=e:Object.assign(this.options,e),o&&this.on("always",o),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):s.error(`Bad element for imagesLoaded ${r||t}`)}n.prototype=Object.create(e.prototype),n.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)};const o=[1,9,11];n.prototype.addElementImages=function(t){"IMG"===t.nodeName&&this.addImage(t),!0===this.options.background&&this.addElementBackgroundImages(t);let{nodeType:e}=t;if(!e||!o.includes(e))return;let i=t.querySelectorAll("img");for(let t of i)this.addImage(t);if("string"==typeof this.options.background){let e=t.querySelectorAll(this.options.background);for(let t of e)this.addElementBackgroundImages(t)}};const r=/url\((['"])?(.*?)\1\)/gi;function h(t){this.img=t}function d(t,e){this.url=t,this.element=e,this.img=new Image}return n.prototype.addElementBackgroundImages=function(t){let e=getComputedStyle(t);if(!e)return;let i=r.exec(e.backgroundImage);for(;null!==i;){let s=i&&i[2];s&&this.addBackground(s,t),i=r.exec(e.backgroundImage)}},n.prototype.addImage=function(t){let e=new h(t);this.images.push(e)},n.prototype.addBackground=function(t,e){let i=new d(t,e);this.images.push(i)},n.prototype.check=function(){if(this.progressedCount=0,this.hasAnyBroken=!1,!this.images.length)return void this.complete();let t=(t,e,i)=>{setTimeout((()=>{this.progress(t,e,i)}))};this.images.forEach((function(e){e.once("progress",t),e.check()}))},n.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount===this.images.length&&this.complete(),this.options.debug&&s&&s.log(`progress: ${i}`,t,e)},n.prototype.complete=function(){let t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){let t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},h.prototype=Object.create(e.prototype),h.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.img.crossOrigin&&(this.proxyImage.crossOrigin=this.img.crossOrigin),this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.currentSrc||this.img.src)},h.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},h.prototype.confirm=function(t,e){this.isLoaded=t;let{parentNode:i}=this.img,s="PICTURE"===i.nodeName?i:this.img;this.emitEvent("progress",[this,s,e])},h.prototype.handleEvent=function(t){let e="on"+t.type;this[e]&&this[e](t)},h.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},h.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},h.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype=Object.create(h.prototype),d.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},d.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},d.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},n.makeJQueryPlugin=function(e){(e=e||t.jQuery)&&(i=e,i.fn.imagesLoaded=function(t,e){return new n(this,t,e).jqDeferred.promise(i(this))})},n.makeJQueryPlugin(),n}));
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-includes/js/imagesloaded.min.js?ver=5.0.0 - Error: " + err.message);
}
/*!/wp-includes/js/masonry.min.js*/
try {
	/*! This file is auto-generated */
/*!
 * Masonry PACKAGED v4.2.2
 * Cascading grid layout library
 * https://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */

!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,r,a){function h(t,e,n){var o,r="$()."+i+'("'+e+'")';return t.each(function(t,h){var u=a.data(h,i);if(!u)return void s(i+" not initialized. Cannot call methods, i.e. "+r);var d=u[e];if(!d||"_"==e.charAt(0))return void s(r+" is not a valid method");var l=d.apply(u,n);o=void 0===o?l:o}),void 0!==o?o:t}function u(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new r(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(r.prototype.option||(r.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return h(this,t,e)}return u(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,r=t.console,s="undefined"==typeof r?function(){}:function(t){r.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(t,r),delete n[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=-1==t.indexOf("%")&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;u>e;e++){var i=h[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!d){d=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);s=200==Math.round(t(o.width)),r.isBoxSizeOuter=s,i.removeChild(e)}}function r(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var r=n(e);if("none"==r.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var d=a.isBorderBox="border-box"==r.boxSizing,l=0;u>l;l++){var c=h[l],f=r[c],m=parseFloat(f);a[c]=isNaN(m)?0:m}var p=a.paddingLeft+a.paddingRight,g=a.paddingTop+a.paddingBottom,y=a.marginLeft+a.marginRight,v=a.marginTop+a.marginBottom,_=a.borderLeftWidth+a.borderRightWidth,z=a.borderTopWidth+a.borderBottomWidth,E=d&&s,b=t(r.width);b!==!1&&(a.width=b+(E?0:p+_));var x=t(r.height);return x!==!1&&(a.height=x+(E?0:g+z)),a.innerWidth=a.width-(p+_),a.innerHeight=a.height-(g+z),a.outerWidth=a.width+y,a.outerHeight=a.height+v,a}}var s,a="undefined"==typeof console?e:function(t){console.error(t)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],u=h.length,d=!1;return r}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["desandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),r=0;r<i.length;r++)o.push(i[r])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,r=this;this[o]=setTimeout(function(){n.apply(r,e),delete r[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var r=i.toDashed(n),s="data-"+r,a=document.querySelectorAll("["+s+"]"),h=document.querySelectorAll(".js-"+r),u=i.makeArray(a).concat(i.makeArray(h)),d=s+"-options",l=t.jQuery;u.forEach(function(t){var i,r=t.getAttribute(s)||t.getAttribute(d);try{i=r&&JSON.parse(r)}catch(a){return void(o&&o.error("Error parsing "+s+" on "+t.className+": "+a))}var h=new e(t,i);l&&l.data(t,n,h)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r=document.documentElement.style,s="string"==typeof r.transition?"transition":"WebkitTransition",a="string"==typeof r.transform?"transform":"WebkitTransform",h={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[s],u={transform:a,transition:s,transitionDuration:s+"Duration",transitionProperty:s+"Property",transitionDelay:s+"Delay"},d=n.prototype=Object.create(t.prototype);d.constructor=n,d._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},d.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},d.getSize=function(){this.size=e(this.element)},d.css=function(t){var e=this.element.style;for(var i in t){var n=u[i]||i;e[n]=t[i]}},d.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],r=parseFloat(n),s=parseFloat(o),a=this.layout.size;-1!=n.indexOf("%")&&(r=r/100*a.width),-1!=o.indexOf("%")&&(s=s/100*a.height),r=isNaN(r)?0:r,s=isNaN(s)?0:s,r-=e?a.paddingLeft:a.paddingRight,s-=i?a.paddingTop:a.paddingBottom,this.position.x=r,this.position.y=s},d.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",r=i?"left":"right",s=i?"right":"left",a=this.position.x+t[o];e[r]=this.getXValue(a),e[s]="";var h=n?"paddingTop":"paddingBottom",u=n?"top":"bottom",d=n?"bottom":"top",l=this.position.y+t[h];e[u]=this.getYValue(l),e[d]="",this.css(e),this.emitEvent("layout",[this])},d.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},d.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},d._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var r=t-i,s=e-n,a={};a.transform=this.getTranslate(r,s),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},d.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},d.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},d.moveTo=d._transitionTo,d.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},d._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},d.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var l="opacity,"+o(a);d.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:l,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(h,this,!1)}},d.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},d.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};d.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=c[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},d.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(h,this,!1),this.isTransitioning=!1},d._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var f={transitionProperty:"",transitionDuration:"",transitionDelay:""};return d.removeTransitionStyles=function(){this.css(f)},d.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},d.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},d.remove=function(){return s&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},d.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},d.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},d.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},d.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},d.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},d.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,r){return e(t,i,n,o,r)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.fizzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function r(t,e){var i=n.getQueryElement(t);if(!i)return void(h&&h.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,u&&(this.$element=u(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++l;this.element.outlayerGUID=o,c[o]=this,this._create();var r=this._getOption("initLayout");r&&this.layout()}function s(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=m[n]||1;return i*o}var h=t.console,u=t.jQuery,d=function(){},l=0,c={};r.namespace="outlayer",r.Item=o,r.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var f=r.prototype;n.extend(f,e.prototype),f.option=function(t){n.extend(this.options,t)},f._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},r.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},f._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},f.reloadItems=function(){this.items=this._itemize(this.element.children)},f._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var r=e[o],s=new i(r,this);n.push(s)}return n},f._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},f.getItemElements=function(){return this.items.map(function(t){return t.element})},f.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},f._init=f.layout,f._resetLayout=function(){this.getSize()},f.getSize=function(){this.size=i(this.element)},f._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},f.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},f._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},f._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},f._getItemLayoutPosition=function(){return{x:0,y:0}},f._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},f.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},f._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},f._postLayout=function(){this.resizeContainer()},f.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},f._getContainerSize=d,f._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},f._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){s++,s==r&&i()}var o=this,r=e.length;if(!e||!r)return void i();var s=0;e.forEach(function(e){e.once(t,n)})},f.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),u)if(this.$element=this.$element||u(this.element),e){var o=u.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},f.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},f.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},f.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},f.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},f._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)):void 0},f._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},f._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},f._manageStamp=d,f._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),r={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return r},f.handleEvent=n.handleEvent,f.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},f.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},f.onresize=function(){this.resize()},n.debounceMethod(r,"onresize",100),f.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},f.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},f.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},f.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},f.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},f.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},f.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},f.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},f.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},f.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},f.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},f.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},f.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete c[e],delete this.element.outlayerGUID,u&&u.removeData(this.element,this.constructor.namespace)},r.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&c[e]},r.create=function(t,e){var i=s(r);return i.defaults=n.extend({},r.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},r.compatOptions),i.namespace=t,i.data=r.data,i.Item=s(o),n.htmlInit(i,t),u&&u.bridget&&u.bridget(t,i),i};var m={ms:1,s:1e3};return r.Item=o,r}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,r=o/n,s=n-o%n,a=s&&1>s?"round":"floor";r=Math[a](r),this.cols=Math.max(r,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&1>e?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",r=this[o](n,t),s={x:this.columnWidth*r.col,y:r.y},a=r.y+t.size.outerHeight,h=n+r.col,u=r.col;h>u;u++)this.colYs[u]=a;return s},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(2>t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(2>e)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),r=o?n.left:n.right,s=r+i.outerWidth,a=Math.floor(r/this.columnWidth);a=Math.max(0,a);var h=Math.floor(s/this.columnWidth);h-=s%this.columnWidth?0:1,h=Math.min(this.cols-1,h);for(var u=this._getOption("originTop"),d=(u?n.top:n.bottom)+i.outerHeight,l=a;h>=l;l++)this.colYs[l]=Math.max(d,this.colYs[l])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i});
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-includes/js/masonry.min.js?ver=4.2.2 - Error: " + err.message);
}
/*!/wp-content/cache/asset-cleanup/js/item/trinity-audio__js__the_content-hook-script-js-v78c1296c4e2b67f66f96304708a9c231d496d8c5.js*/
try {
	/*!/wp-content/plugins/trinity-audio/js/the_content-hook-script.js*/
console.debug('TRINITY_WP','trinity_content_filter')
;
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/cache/asset-cleanup/js/item/trinity-audio__js__the_content-hook-script-js-v78c1296c4e2b67f66f96304708a9c231d496d8c5.js - Error: " + err.message);
}
try {
	/* [inline: after] */console.warn('TRINITY_WP', 'Hide player for post ID: 11667, enabled: , posthash: , is no text: ', 'TS: 2025-02-18 00:24:41')
;/* [/inline: after] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/cache/asset-cleanup/js/item/trinity-audio__js__the_content-hook-script-js-v78c1296c4e2b67f66f96304708a9c231d496d8c5.js - Error: " + err.message);
}/*!/wp-content/cache/asset-cleanup/js/item/gutentor__assets__js__gutentor-js-v45b27d54913060fa3b4f60cb089865cb6a32412a.js*/
try {
	/* [inline: cdata] */var gutentorLS = {"fontAwesomeVersion":"5","restNonce":"decc6d7930","restUrl":"https:\/\/www.franklinedu.ca\/ca\/wp-json\/"};/* [/inline: cdata] */

} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/cache/asset-cleanup/js/item/gutentor__assets__js__gutentor-js-v45b27d54913060fa3b4f60cb089865cb6a32412a.js - Error: " + err.message);
}try {
	/*!/wp-content/plugins/gutentor/assets/js/gutentor.js*/
(function($){let gDocument=$(document),gProgressBarE=$('.gutentor-element-progressbar'),counter_element=$('.gutentor-element-counter'),gWindow=$(window),gBody=$('body'),gWindowWidth=gWindow.width(),gM11Init=!1,gFlexInit=!1;function gBooleanVal(val){if(typeof val==='boolean'){return val}
return val==='true'}
function gSlick(gThis){let gss={};if(gThis[0].hasAttribute('data-dots')){gss.dots=gBooleanVal(gThis.data('dots'))}
if(gThis[0].hasAttribute('data-arrows')){gss.arrows=gBooleanVal(gThis.data('arrows'))}
if(gThis[0].hasAttribute('data-infinite')){gss.infinite=gBooleanVal(gThis.data('infinite'))}
if(gThis[0].hasAttribute('data-speed')){gss.speed=parseInt(gThis.data('speed'))}
if(gThis[0].hasAttribute('data-slideitemdesktop')){gss.slidesToShow=parseInt(gThis.data('slideitemdesktop'))}
if(gThis[0].hasAttribute('data-slidescroll-desktop')){gss.slidesToScroll=parseInt(gThis.data('slidescroll-desktop'))}
if(gThis[0].hasAttribute('data-nextarrow')){gss.nextArrow='<span class="slick-next"><i class="'+gThis.data('nextarrow')+'"></i></span>'}else{gss.nextArrow='<span class="slick-next"><i class="fas fa-angle-right"></i></span>'}
if(gThis[0].hasAttribute('data-prevarrow')){gss.prevArrow='<span class="slick-prev"><i class="'+gThis.data('prevarrow')+'"></i></span>'}else{gss.prevArrow='<span class="slick-prev"><i class="fas fa-angle-left"></i></span>'}
if(gThis[0].hasAttribute('data-autoplay')){gss.autoplay=gBooleanVal(gThis.data('autoplay'));if(gThis[0].hasAttribute('data-autoplayspeed')){gss.autoplaySpeed=parseInt(gThis.data('autoplayspeed'))}
if(gThis[0].hasAttribute('data-pauseonfocus')){gss.pauseOnFocus=gBooleanVal(gThis.data('pauseonfocus'))}
if(gThis[0].hasAttribute('data-pauseonhover')){gss.pauseOnHover=gBooleanVal(gThis.data('pauseonhover'))}}
if(gThis[0].hasAttribute('data-draggable')){gss.draggable=gBooleanVal(gThis.data('draggable'))}
if(gThis[0].hasAttribute('data-fade')){gss.fade=gBooleanVal(gThis.data('fade'))}
if(gThis[0].hasAttribute('data-blockimagesliderfade')){gss.fade=gBooleanVal(gThis.data('blockimagesliderfade'))}
if(gThis[0].hasAttribute('data-cmondesktop')){gss.centerMode=gBooleanVal(gThis.data('cmondesktop'));if(gBooleanVal(gThis.data('cmondesktop'))){if(gThis[0].hasAttribute('data-cmpaddingdesktop')){gss.centerPadding=gThis.data('cmpaddingdesktop')}}}
let rTgss={},rMgss={};if(gThis[0].hasAttribute('data-slideitemtablet')){rTgss.slidesToShow=parseInt(gThis.data('slideitemtablet'))}
if(gThis[0].hasAttribute('data-slidescroll-tablet')){rTgss.slidesToScroll=parseInt(gThis.data('slidescroll-tablet'))}
if(gThis[0].hasAttribute('data-dotstablet')){rTgss.dots=gBooleanVal(gThis.data('dotstablet'))}
if(gThis[0].hasAttribute('data-arrowstablet')){rTgss.arrows=gBooleanVal(gThis.data('arrowstablet'))}
if(gThis[0].hasAttribute('data-cmontablet')){rTgss.centerMode=gBooleanVal(gThis.data('cmontablet'));if(gBooleanVal(gThis.data('cmontablet'))){if(gThis[0].hasAttribute('data-cmpaddingtablet')){rTgss.centerPadding=gThis.data('cmpaddingtablet')}}}
if(gThis[0].hasAttribute('data-slideitemmobile')){rMgss.slidesToShow=parseInt(gThis.data('slideitemmobile'))}
if(gThis[0].hasAttribute('data-slidescroll-mobile')){rMgss.slidesToScroll=parseInt(gThis.data('slidescroll-mobile'))}
if(gThis[0].hasAttribute('data-dotsmobile')){rMgss.dots=gBooleanVal(gThis.data('dotsmobile'))}
if(gThis[0].hasAttribute('data-arrowsmobile')){rMgss.arrows=gBooleanVal(gThis.data('arrowsmobile'))}
if(gThis[0].hasAttribute('data-cmonmobile')){rMgss.centerMode=gBooleanVal(gThis.data('cmonmobile'));if(gBooleanVal(gThis.data('cmonmobile'))){if(gThis[0].hasAttribute('data-cmpaddingmobile')){rMgss.centerPadding=gThis.data('cmpaddingmobile')}}}
let rTSettings={breakpoint:1024,settings:rTgss,},rMSettings={breakpoint:480,settings:rMgss,};gss.responsive=[];gss.responsive.push(rTSettings);gss.responsive.push(rMSettings);if(gThis[0].hasAttribute('data-arrowspositiondesktop')&&'gutentor-slick-a-default-desktop'!==gThis.data('arrowspositiondesktop')){gss.appendArrows=gThis.siblings('.gutentor-slick-arrows')}
if(gBody.hasClass('rtl')){gss.rtl=!0}
if(gThis.hasClass('slick-initialized')){gThis.slick('refresh')}else{gThis.slick(gss)}}
function gMagnificPopup(gThis,isI=!1,isG=!1){let gma={};if(isI){gma={type:'image',closeBtnInside:!1,fixedContentPos:!1,}}else{gma={type:'iframe',mainClass:'mfp-fade',removalDelay:160,preloader:!1,fixedContentPos:!1,}}
if(isG){gma.gallery={enabled:!0,navigateByImgClick:!0,preload:[0,1],};gma.callbacks={elementParse:function(item){if(item.el[0].getAttribute('data-media-type')==='g-popup-video'){item.type='iframe'}else{item.type='image'}},}}
if(typeof $.fn.magnificPopup!=='undefined'){gThis.magnificPopup(gma)}}
function gEasyPieChart(gThis){let gea={barColor:gThis.data('barcolor'),trackColor:gThis.data('trackcolor'),scaleColor:gThis.data('scalecolor'),size:gThis.data('size'),lineCap:gThis.data('linecap'),animate:gThis.data('animate'),lineWidth:gThis.data('linewidth'),};if(typeof $.fn.easyPieChart==='function'){gThis.easyPieChart(gea)}}
function gCountUp(gThis){let startValue=parseInt(gThis.data('start')),endValue=parseInt(gThis.data('end')),duration=parseInt(gThis.data('duration'));if(typeof CountUp==='function'){let nCountUp=new CountUp(gThis[0],startValue,endValue,0,duration);nCountUp.start()}}
function gIsEleInView(elem){let docViewTop=$(window).scrollTop(),docViewBottom=docViewTop+$(window).height(),elemTop=$(elem).offset().top,elemBottom=elemTop+$(elem).height();return elemBottom<=docViewBottom&&elemTop>=docViewTop}
function gTriggerCountUp(gThis){if(gIsEleInView(gThis)){if(!gThis.hasClass('g-c-loaded')){gThis.addClass('g-c-loaded');gCountUp(gThis)}}}
function gTriggerPieChart(gThis){if(gIsEleInView(gThis)){if(!gThis.hasClass('g-c-loaded')){gThis.addClass('g-c-loaded');gEasyPieChart(gThis)}}}
function gAddLoaded(gThis){if(gIsEleInView(gThis)){if(!gThis.hasClass('g-c-loaded')){gThis.addClass('g-c-loaded');gThis.css('width',gThis.attr('data-width')+'%')}}}
function gCountAndBar($wrap=null){if($wrap){$wrap.find('.gutentor-single-item-number,.gutentor-counter-number-main').each(function(){gTriggerCountUp($(this))});$wrap.find('.gutentor-progressbar-circular,.gutentor-element-progressbar-circular').each(function(){gTriggerPieChart($(this))});$wrap.find('.gutentor-porgress-bar-item .progressbar,.gutentor-element-progressbar-box .gutentor-element-progressbar-horizontal').each(function(){gAddLoaded($(this))})}else{$('.gutentor-single-item-number,.gutentor-counter-number-main').each(function(){gTriggerCountUp($(this))});$('.gutentor-progressbar-circular,.gutentor-element-progressbar-circular').each(function(){gTriggerPieChart($(this))});$('.gutentor-porgress-bar-item .progressbar,.gutentor-element-progressbar-box .gutentor-element-progressbar-horizontal').each(function(){gAddLoaded($(this))})}}
gCountAndBar();$(window).scroll(function(){gCountAndBar()});function gCountDown(gThis){let gutentor_event_date=gThis.data('eventdate');if(gutentor_event_date===undefined||gutentor_event_date===null){gThis.html('<span>Please set validate Date and time for countdown </span>');return!1}
let expired_text=gThis.data('expiredtext'),gutentor_day=gThis.find('.day'),gutentor_hour=gThis.find('.hour'),gutentor_min=gThis.find('.min'),gutentor_sec=gThis.find('.sec'),gutentor_date_time=gutentor_event_date.split('T');if(gutentor_date_time.length!==2){return!1}
let date_collection=gutentor_date_time[0],time_collection=gutentor_date_time[1],date_explode=date_collection.split('-');if(date_explode.length!==3){return!1}
let time_explode=time_collection.split(':');if(time_explode.length!==3){return!1}
let gutentor_year_value=parseInt(date_explode[0]),gutentor_month_value=parseInt(date_explode[1])-1,gutentor_day_value=parseInt(date_explode[2]),gutentor_hour_value=parseInt(time_explode[0]),gutentor_minutes_value=parseInt(time_explode[1]),gutentor_second_value=parseInt(time_explode[2]),countDownDate=new Date(gutentor_year_value,gutentor_month_value,gutentor_day_value,gutentor_hour_value,gutentor_minutes_value,gutentor_second_value,0).getTime();let x=setInterval(function(){let now=new Date().getTime();let distance=countDownDate-now;let days=Math.floor(distance/(1000*60*60*24));let hours=Math.floor((distance%(1000*60*60*24))/(1000*60*60));let minutes=Math.floor((distance%(1000*60*60))/(1000*60));let seconds=Math.floor((distance%(1000*60))/1000);gutentor_day.text(days);gutentor_hour.text(hours);gutentor_min.text(minutes);gutentor_sec.text(seconds);if(distance<0){clearInterval(x);const span=document.createElement('span');span.textContent=expired_text;gThis.html(span.outerHTML)}},1000)}
function gTabs(){gDocument.on('click','.gutentor-tabs-list',function(){let thisTabInside=$(this),gutentorSingleItemIndex=thisTabInside.data('index'),gTabsC=thisTabInside.closest('.gutentor-tabs'),gTabsContentWrap=gTabsC.next('.gutentor-tabs-content-wrap'),gTabsSingleContent=gTabsContentWrap.find('.'+gutentorSingleItemIndex);gTabsSingleContent.siblings().removeClass('gutentor-tab-content-active');thisTabInside.siblings().removeClass('gutentor-tab-active');gTabsSingleContent.addClass('gutentor-tab-content-active');thisTabInside.addClass('gutentor-tab-active')})}
function gShowMoreBlock(className){gDocument.on('click',className,function(e){e.preventDefault();if(className==='.gutentor-show-more-button'){$(this).closest('.gutentor-single-item-content').addClass('show-more-content')}else if(className==='.gutentor-show-less-action-button'){$(this).closest('.gutentor-single-item-content').removeClass('show-more-content')}else if(className==='.gutentor-adv-s-m-btn'){$(this).closest('.g-m-advance-show-more').addClass('g-show-more-content')}else if(className==='.gutentor-adv-s-l-btn'){$(this).closest('.g-m-advance-show-more').removeClass('g-show-more-content')}})}
function gP4GetLoader(type){let gP4Loader;switch(type){case 'gp4-animation-1':gP4Loader='<div class="gutentor-loading-wrap"></div>';break;case 'gp4-animation-2':gP4Loader='<div class="gutentor-loading-wrap"><div class="gutentor-loading-2"><div></div><div></div><div></div></div></div>';break;case 'gp4-animation-3':gP4Loader='<div class="gutentor-loading-wrap"><div class="gutentor-loading-3"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div></div>';break;case 'gp4-animation-4':gP4Loader='<div class="gutentor-loading-wrap"></div>';break;case 'gp4-animation-5':gP4Loader='<div class="gutentor-loading-wrap"><div class="gutentor-loading-5"></div></div>';break;default:gP4Loader='';break}
return gP4Loader}
function gApi(gAB,gParam,gAppend=!1){gParam.innerBlockType=gAB.data('i-b');gParam.blockId=gAB.find('.gutentor-post-module').data('gbid');gParam.postId=gAB.data('gpid');if(gAB.find('.gutentor-filter-navigation').length){gParam.gTax=gAB.find('.gutentor-filter-navigation').data('gtax');gParam.gTerm=gAB.find('.gutentor-filter-item-active').children().attr('data-gterm');if('gAll'===gParam.gTerm){gParam.allOpt=gAB.find('.gutentor-filter-item-active').children().attr('data-all-opt')}}else{gParam.gTax='default';gParam.gTerm='default'}
if(!gParam.paged){gParam.paged=1}
if(gAB.find('.g-fm-search').length){gParam.s=gAB.find('.g-fm-search').val()}
$.ajax({type:'GET',url:gutentorLS.restUrl+'gutentor-self-api/v1/gadvancedb',data:gParam,beforeSend:function(xhr){gAB.addClass(gAB.data('l-ani'));xhr.setRequestHeader('X-WP-Nonce',gutentorLS.restNonce);gAB.removeClass('gutentor-loaded');gAB.find('.gutentor-post-module .grid-container').append(gP4GetLoader(gAB.data('l-ani')))},}).done(function(data){if(!gAppend){gAB.find('.gutentor-post-module').replaceWith(data.pBlog)}else{gAB.find('.gutentor-post-module .grid-container .grid-row').append($(data.pBlog).find('.grid-container .grid-row').html())}
gAB.find('.gutentor-pagination').children().not(':first-child').not(':last-child').remove();let paged=parseInt(gParam.paged),max_num_pages=parseInt(data.max_num_pages);gAB.find('.gutentor-pagination').children('.gutentor-pagination-prev').after(data.pagination).children().attr('data-gpage',paged>1?paged-1:1);gAB.attr('data-maxnumpages',max_num_pages);gAB.find('.gutentor-pagination').children('.gutentor-pagination-next').children().attr('data-gpage',max_num_pages>paged?paged+1:max_num_pages);if(paged<=1){gAB.find('.gutentor-pagination').children('.gutentor-pagination-prev').children().addClass('gutentor-disabled');gAB.find('.gutentor-navigation').find('.g-nav-prev').addClass('gutentor-disabled')}else{gAB.find('.gutentor-pagination').children('.gutentor-pagination-prev').children().removeClass('gutentor-disabled');gAB.find('.gutentor-navigation').find('.g-nav-prev').removeClass('gutentor-disabled')}
if(max_num_pages<=paged){gAB.find('.gutentor-pagination').children('.gutentor-pagination-next').children().addClass('gutentor-disabled');gAB.find('.gutentor-navigation').find('.g-nav-next').addClass('gutentor-disabled');gAB.find('.gutentor-post-footer.g-ap-load-more-template a.gutentor-button').addClass('gutentor-disabled')}else{gAB.find('.gutentor-pagination').children('.gutentor-pagination-next').children().removeClass('gutentor-disabled');gAB.find('.gutentor-navigation').find('.g-nav-next').removeClass('gutentor-disabled');gAB.find('.gutentor-post-footer.g-ap-load-more-template a.gutentor-button').removeClass('gutentor-disabled')}
gAB.find('.gutentor-post-module').each(function(){gReloadMasonry($(this))})}).fail(function(jqXHR,textStatus,errorThrown){console.log(jqXHR+' :: '+textStatus+' :: '+errorThrown)}).always(function(){$('.g-edd-cart .edd-no-js').hide();$('.g-edd-cart .edd-add-to-cart').addClass('edd-has-js');gAB.removeClass(gAB.data('l-ani'));gAB.addClass('gutentor-loaded');gAB.find('.gutentor-post-module .grid-container').find('.gutentor-loading-wrap').remove()})}
gDocument.on('click','.gutentor-filter-navigation .gutentor-filter-item>a',function(e){e.preventDefault();let gThis=$(this),gList=gThis.closest('.gutentor-filter-list'),gAB=gThis.closest('.gutentor-advanced-post-module');if(gThis.parent().hasClass('gutentor-filter-item-active')){return!1}
gList.find('.gutentor-filter-item').removeClass('gutentor-filter-item-active');gThis.parent().addClass('gutentor-filter-item-active');gAB.find('.gutentor-post-footer.g-ap-load-more-template a.gutentor-button').removeAttr('data-gpage');if(gAB.find('.g-fm-search').length){gAB.find('.g-fm-search').val('')}
gApi(gAB,{})});gDocument.on('click','.gutentor-pagination a',function(e){e.preventDefault();let gThis=$(this),gAB=gThis.closest('.gutentor-advanced-post-module');if(gThis.hasClass('gutentor-disabled')){return!1}
if(gThis.parent().hasClass('gutentor-pagination-active')){return!1}
let currentPage=gThis.parent().siblings('.gutentor-pagination-active').children().attr('data-gpage');if(currentPage==gThis.attr('data-gpage')){return!1}
let gParam={paged:gThis.attr('data-gpage'),};if(parseInt(gAB.attr('data-maxnumpages'))<parseInt(gParam.paged)){return!1}
gApi(gAB,gParam)});gDocument.on('click','.gutentor-navigation a',function(e){e.preventDefault();let gThis=$(this),gNav=gThis.closest('.gutentor-navigation'),gAB=gThis.closest('.gutentor-advanced-post-module');if(gThis.hasClass('gutentor-disabled')){return!1}
let current_page=parseInt(gNav.attr('data-gpage')),nextPage;if(gThis.hasClass('g-nav-prev')){nextPage=current_page-1}else{nextPage=current_page+1}
let gParam={paged:nextPage,};gNav.attr('data-gpage',nextPage);gApi(gAB,gParam)});gDocument.on('click','.gutentor-post-footer.g-ap-load-more-template a.gutentor-button',function(e){e.preventDefault();let gThis=$(this),gAB=gThis.closest('.gutentor-advanced-post-module');if(gThis.hasClass('gutentor-disabled')){return!1}
if(!gThis.attr('data-gpage')){gThis.attr('data-gpage',2)}
let gParam={paged:gThis.attr('data-gpage'),};gThis.attr('data-gpage',parseInt(gThis.attr('data-gpage'))+1);gApi(gAB,gParam,!0)});gDocument.on('click','.g-search-icon',function(e){e.preventDefault();let gThis=$(this),gAB=gThis.closest('.gutentor-advanced-post-module');gApi(gAB,{})});$(document).on('keydown','.gutentor-advanced-post-module .g-fm-search',function(e){let key=e.which;if(key===13){e.preventDefault();let gThis=$(this),gAB=gThis.closest('.gutentor-advanced-post-module');gApi(gAB,{})}});function gAdvPopupOpen(gma,gThis){if(gThis.attr('devices')){let devices=JSON.parse(gThis.attr('devices'));if(Array.isArray(devices)){if(devices.includes('desktop')&&window.screen.width>991){$.magnificPopup.open(gma)}else if(devices.includes('mobile')&&window.screen.width<768){$.magnificPopup.open(gma)}else if(devices.includes('tablet')&&window.screen.width>=767&&window.screen.width<=991){$.magnificPopup.open(gma)}}}else{$.magnificPopup.open(gma)}}
let gIdleTime;function gSetIdleTime(gma,gThis){window.onload=resetTimer;window.onmousemove=resetTimer;window.onmousedown=resetTimer;window.ontouchstart=resetTimer;window.ontouchmove=resetTimer;window.onclick=resetTimer;window.onkeydown=resetTimer;window.addEventListener('scroll',resetTimer,!0);function resetTimer(){clearTimeout(gIdleTime);if(gThis.attr('timing')){gIdleTime=setTimeout(function(){if(!gThis.attr('g-adv-popup-open')){gAdvPopupOpen(gma,gThis);gThis.attr('g-adv-popup-open',!0)}},parseFloat(gThis.attr('timing'))*1000)}}}
function gInitAdvPopup(){function gIsTrue(val){if(val&&val=='1'){return!0}
return!1}
let gma={},gIndex={},gCss={},sideCss='';$('.g-adv-popup').each(function(i){let gThis=$(this),gMainClass='g-adv-popup-mfp ';gIndex[i]={};gma[i]={};gCss[i]='.gadvpopupwow{visibility:hidden;}';if(gThis.attr('closeBtnCol')){gCss[i]+='.'+gThis.attr('id')+'-mfp'+' .mfp-close{color:'+gThis.attr('closeBtnCol')+';}'}
if(gThis.attr('bgCol')||gThis.attr('bgGradient')){let bgType=gThis.attr('bgType')?gThis.attr('bgType'):'',bgcolor=bgType==='solid'&&gThis.attr('bgCol')?gThis.attr('bgCol'):'',bgGradient=bgType==='gradient'&&gThis.attr('bgGradient')?gThis.attr('bgGradient'):'',bgGradient2=bgType==='solid'&&bgcolor?'none':'',bgcolor2=bgType==='gradient'&&gThis.attr('bgGradient')?'transparent':'';gCss[i]+='.gutentor-active .mfp-bg{'+GutentorGenerateCSS('background-color',bgcolor)+GutentorGenerateCSS('background-image',bgGradient2)+GutentorGenerateCSS('background-image',bgGradient)+GutentorGenerateCSS('background-color',bgcolor2)+'}'}
gMainClass+=gThis.attr('id')+'-mfp ';gma[i]={type:'inline',items:{src:'#'+gThis.attr('id'),},};if(gThis.attr('type')){gMainClass+='g-adv-popup-'+gThis.attr('type')+' ';if('modal'===gThis.attr('wval')){gma[i].modal=!0}
if('modal'===gThis.attr('type')){if(gThis.attr('wval')&&gThis.attr('wunit')){gCss[i]+='.'+gThis.attr('id')+'-mfp'+' .mfp-container .mfp-content{width:'+gThis.attr('wval')+gThis.attr('wunit')+';}'}}
if('side'===gThis.attr('type')&&gThis.attr('side')){if((gThis.attr('x')||gThis.attr('y'))&&gThis.attr('sideunit')){if('top-left'===gThis.attr('side')){sideCss+='left:'+gThis.attr('x')+gThis.attr('sideunit')+' !important;';sideCss+='top:'+gThis.attr('y')+gThis.attr('sideunit')+' !important;'}else if('top-right'===gThis.attr('side')){sideCss+='right:'+gThis.attr('x')+gThis.attr('sideunit')+' !important;';sideCss+='top:'+gThis.attr('y')+gThis.attr('sideunit')+' !important;'}else if('bottom-left'===gThis.attr('side')){sideCss+='left:'+gThis.attr('x')+gThis.attr('sideunit')+' !important;';sideCss+='bottom:'+gThis.attr('y')+gThis.attr('sideunit')+' !important;'}else if('bottom-right'===gThis.attr('side')){sideCss+='right:'+gThis.attr('x')+gThis.attr('sideunit')+' !important;';sideCss+='bottom:'+gThis.attr('y')+gThis.attr('sideunit')+' !important;'}}
if(gThis.attr('wval')&&gThis.attr('wunit')){sideCss+='width:'+gThis.attr('wval')+gThis.attr('wunit')+';'}
gCss[i]+='.'+gThis.attr('id')+'-mfp'+' {'+sideCss+'}';gMainClass+='g-adv-popup-side-'+gThis.attr('side')+' '}}
if(gMainClass){gma[i].mainClass=gMainClass}
gma[i].closeOnBgClick=gIsTrue(gThis.attr('closeonbgclick'));gma[i].closeBtnInside=gIsTrue(gThis.attr('closebtninside'));gma[i].showCloseBtn=gIsTrue(gThis.attr('showclosebtn'));gma[i].enableEscapeKey=gIsTrue(gThis.attr('enableescapekey'));gma[i].fixedContentPos=gIsTrue(gThis.attr('fixedcontentpos'));gma[i].fixedBgPos=gIsTrue(gThis.attr('fixedbgpos'));if(!gma[i].closeBtnInside&&$('body').hasClass('admin-bar')){gCss[i]+='.'+gThis.attr('id')+'-mfp'+' {top:32px !important;}'}
gma[i].callbacks={beforeOpen:function(){if(gCss[i]){$('head').append('<style id="gutentor-adv-popup-style">'+gCss[i]+'</style>')}
if(gThis.attr('animation')){this.st.mainClass=this.st.mainClass+' animated '+gThis.attr('animation')}},open:function(){gRefreshJS($('.mfp-container'));if(typeof WOW!=='undefined'){let wow=new WOW({boxClass:'gadvpopupwow',});wow.init()}
$('.mfp-bg').removeClass(this.st.mainClass);if('top'===gThis.attr('type')||'bottom'===gThis.attr('type')||'side'===gThis.attr('type')){$('.mfp-bg').remove()}},close:function(){$('#gutentor-adv-popup-style').remove()},};if(gThis.attr('trigger')){if('load'===gThis.attr('trigger')){if(gThis.attr('timing')){setTimeout(function(){gAdvPopupOpen(gma[i],gThis)},parseFloat(gThis.attr('timing'))*1000)}else{gAdvPopupOpen(gma[i],gThis)}}else if('click'===gThis.attr('trigger')){gDocument.on('click','.'+gThis.attr('clickclass'),function(e){e.preventDefault();gAdvPopupOpen(gma[i],gThis)})}else if('idle'===gThis.attr('trigger')){gSetIdleTime(gma[i],gThis)}else if('scroll'===gThis.attr('trigger')){gIndex[i].lastScrollTop=0;gIndex[i].open=!1;gIndex[i].lastDirection='';gIndex[i].scrollDistance=$(window).scrollTop();gIndex[i].triggerDistance=0;if(gThis.attr('sval')){gIndex[i].triggerDistance=parseInt(gThis.attr('sval'));if(gThis.attr('sunit')&&'%'===gThis.attr('sunit')){gIndex[i].triggerDistance=($(window).height()*gIndex[i].triggerDistance)/100}
$(window).scroll(function(event){if(!gIndex[i].open){let st=$(this).scrollTop();if(st>gIndex[i].lastScrollTop){if('downscroll'!==gIndex[i].lastDirection){gIndex[i].scrollDistance=gIndex[i].scrollDistance-(st-gIndex[i].lastScrollTop)}else{gIndex[i].scrollDistance=gIndex[i].scrollDistance+(st-gIndex[i].lastScrollTop)}
gIndex[i].lastDirection='downscroll';if('top'===gThis.attr('direction')){if(gIndex[i].scrollDistance>gIndex[i].triggerDistance){gAdvPopupOpen(gma[i],gThis);gIndex[i].open=!0}}}else{if('upscroll'!==gIndex[i].lastDirection){gIndex[i].scrollDistance=gIndex[i].scrollDistance-(st-gIndex[i].lastScrollTop)}else{gIndex[i].scrollDistance=gIndex[i].scrollDistance+(gIndex[i].lastScrollTop-st)}
gIndex[i].lastDirection='upscroll';if('bottom'===gThis.attr('direction')){if(gIndex[i].scrollDistance>gIndex[i].triggerDistance){gAdvPopupOpen(gma[i],gThis);gIndex[i].open=!0}}}
gIndex[i].lastScrollTop=st}})}}}})}
function gAdvPopupData(){let gAllScripts=[],gAllStyles=[];function getAllScripts(){let scripts=window.document.getElementsByTagName('script');$(scripts).each(function(){if($(this).attr('src')){gAllScripts.push($(this).attr('src'))}})}
getAllScripts();function getAllStyles(){let links=window.document.getElementsByTagName('link');$(links).each(function(){if($(this).attr('href')){gAllStyles.push($(this).attr('href'))}})}
getAllStyles();function filterContent(filterContent){filterContent.find('script').each(function(){if(!gAllScripts.includes($(this).attr('src'))){if($(this).attr('src')){$('head').append("<script type='text/javascript' src='"+$(this).attr('src')+"' />")}}
$(this).remove()});filterContent.find('link').each(function(){if(!gAllStyles.includes($(this).attr('href'))){if($(this).attr('href')&&$(this).attr('rel')&&'stylesheet'===$(this).attr('rel')){$('head').append("<link rel='stylesheet' href='"+$(this).attr('href')+"' />")}}
$(this).remove()});filterContent.find('.wow').addClass('gadvpopupwow').removeClass('wow');gBody.append(filterContent);gInitAdvPopup()}
if('ajax'!=gutentorLS.adv_popup_load){filterContent($('.g-adv-popup'))}else{let gParam={condition:gutentorLS.condition,};$.ajax({type:'GET',url:gutentorLS.restUrl+'gutentor-self-api/v1/popup',data:gParam,beforeSend:function(xhr){xhr.setRequestHeader('X-WP-Nonce',gutentorLS.restNonce)},}).done(function(data){data&&data.map((item,i)=>{let dataContent=$(item);filterContent(dataContent)})}).fail(function(jqXHR,textStatus,errorThrown){console.log(jqXHR+' :: '+textStatus+' :: '+errorThrown)}).always(function(){})}}
function GutentorGenerateCSS(prop,value){if(value){return `${prop}: ${value};`}
return''}
function gPageDisabled(gThis){let gAB=gThis.closest('.gutentor-advanced-post-module');if(gAB.attr('data-maxnumpages')&&parseInt(gAB.attr('data-maxnumpages'))<2){gThis.addClass('gutentor-disabled')}else{gThis.removeClass('gutentor-disabled')}}
function gPopOver(){gDocument.on('mouseenter','.g-m-popover.g-po-e-hover .g-m-popover-normal',function(e){$(this).next('.g-m-popover-content').removeClass('d-none')});gDocument.on('mouseleave','.g-m-popover.g-po-e-hover .g-m-popover-normal',function(e){$(this).next('.g-m-popover-content').addClass('d-none')});gDocument.on('click','.g-m-popover.g-po-e-hover .g-m-popover-normal',function(e){e.preventDefault()});gDocument.on('click','.g-m-popover.g-po-e-click .g-m-popover-normal',function(e){$(this).next('.g-m-popover-content').toggleClass('d-none');e.preventDefault()});$('.g-m-popover.g-m-popover-c-on').find('.g-m-popover-content').removeClass('d-none')}
function gAcmeTicker(gThis){let news_ticker_data=gThis.find('.gutentor-news-ticker-data'),news_ticker_Pause=gThis.find('.gutentor-news-ticker-controls').find('.gutentor-news-ticker-pause'),news_ticker_up=gThis.find('.gutentor-news-ticker-controls').find('.gutentor-news-ticker-prev'),news_ticker_down=gThis.find('.gutentor-news-ticker-controls').find('.gutentor-news-ticker-next');let options={type:'horizontal',direction:'right',speed:600,controls:{toggle:news_ticker_Pause,},};if(gThis.attr('data-type')){options.type=gThis.attr('data-type');if(gThis.attr('data-type')!=='marquee'){options.controls.prev=news_ticker_up;options.controls.next=news_ticker_down}}
if(gThis.attr('data-direction')){options.direction=gThis.attr('data-direction')}
if(gThis.attr('data-speed')){options.speed=Number(gThis.attr('data-speed'))}
if(gThis.attr('data-pauseOnHover')){options.pauseOnHover='1'===gThis.attr('data-pauseOnHover')}
news_ticker_data.AcmeTicker(options)}
function gEddCartIcon(gThis){let icon=gThis.attr('data-icon'),button_class=gThis.find('.gutentor-button');if(button_class.hasClass('gutentor-icon-before')){button_class.prepend('<i class="gutentor-button-icon '+icon+'" ></i>')}
if(button_class.hasClass('gutentor-icon-after')){button_class.append('<i class="gutentor-button-icon '+icon+'" ></i>')}}
function gFlexMenu(gThis){if(typeof $.fn.flexMenu!=='undefined'){if(gThis.length){gThis.flexMenu({threshold:0,cutoff:0,linkText:'<span class="screen-reader-text">More</span>',linkTextAll:'<span class="screen-reader-text">More</span>',linkTitle:'',linkTitleAll:'',showOnHover:gWindowWidth>991?!0:!1,});if(!gFlexInit){gDocument.click(function(e){let flexMenuPopup=$('ul.flexMenu-popup');if(!($(e.target).closest('li.flexMenu-viewMore ').length>0||!flexMenuPopup.length||!flexMenuPopup.is(':visible'))){$('li.flexMenu-viewMore > a').trigger('click')}})}
gFlexInit=!0}}}
function gRefreshJS($wrap){gCountAndBar($wrap);$wrap.find('.gutentor-post-footer.g-ap-load-more-template a.gutentor-button').each(function(){gPageDisabled($(this))});if(typeof $.fn.slick!=='undefined'){$wrap.find('.gutentor-slider-wrapper').each(function(){gSlick($(this))});$wrap.find('.gutentor-module-slider-row').each(function(){gSlick($(this))});$wrap.find('.gutentor-carousel-row').each(function(){gSlick($(this))});$wrap.find('.gutentor-image-carousel-row').each(function(){gSlick($(this))});$wrap.find('.gutentor-module-carousel-row').each(function(){gSlick($(this))})}
$wrap.find('.gutentor-countdown-wrapper').each(function(){gCountDown($(this))});gPopOver();if(typeof $.fn.AcmeTicker!=='undefined'){$wrap.find('.gutentor-post-module-p5').each(function(){gAcmeTicker($(this))})}
$wrap.find('.g-edd-cart').each(function(){gEddCartIcon($(this))});gFlexMenu($wrap.find('.g-responsive-menu'));gFilter();if(typeof $.fn.theiaStickySidebar!=='undefined'){$wrap.find('.gutentor-enable-sticky-column').each(function(){gTheiaStickySidebar($(this))})}
gVideoAutoplay();if(typeof $.fn.imagesLoaded!=='undefined'){let galleryWrapper=$wrap.find('.gutentor-gallery-wrapper');galleryWrapper.each(function(){gGalleryMasonry($(this))});let postModule=$('.gutentor-post-module-p1');postModule.each(function(){gPostModuleMasonry($(this))})}
if(!gM11Init){if(typeof $.fn.isotope==='function'){gM11()}}
if(typeof $.fn.isotope!=='undefined'){if($wrap.find('.g-gm-item-wrap').hasClass('isotope')){$wrap.find('.g-gm-item-wrap').isotope('reloadItems').isotope()}
if($wrap.find('.gutentor-filter-item-wrap').hasClass('isotope')){$wrap.find('.gutentor-filter-item-wrap').isotope('reloadItems').isotope()}}
$wrap.find('.gutentor-gallery-wrapper').each(function(){let masonryBoxes=$(this);if(masonryBoxes.hasClass('enable-masonry')){let container=masonryBoxes.find('.full-width-row');container.masonry({itemSelector:'.gutentor-gallery-item',})}});$wrap.find('.gutentor-post-module-p1').each(function(){let masonryBoxes=$(this);if(masonryBoxes.hasClass('g-masonry')){let container=masonryBoxes.find('.grid-row');container.masonry({itemSelector:'.gutentor-post',})}});$wrap.find('.g-gm-module').each(function(i,item){let thisFilterWrap=$(this);if(thisFilterWrap.hasClass('g-on-masonry')){let container=thisFilterWrap.find('.g-gm-item-wrap');container.masonry({itemSelector:'.g-gm-col ',})}})}
gDocument.ready(function(){if('is_admin' in gutentorLS&&'is_on_adv_popup' in gutentorLS&&'adv_popup_load' in gutentorLS&&gutentorLS.is_on_adv_popup&&!gutentorLS.is_admin){gAdvPopupData()}
gDocument.on('click','.g-adv-popup-close',function(e){e.preventDefault();$.magnificPopup.close()});if(typeof WOW!=='undefined'){new WOW().init()}
$('.gutentor-video-popup-holder').each(function(){gMagnificPopup($(this))});$('.g-v-btn').each(function(){gMagnificPopup($(this))});$('.g-v-fp-btn').each(function(){gMagnificPopup($(this))});$('.gutentor-element-button-link-popup').each(function(){gMagnificPopup($(this))});$('.gutentor-post-footer.g-ap-load-more-template a.gutentor-button').each(function(){gPageDisabled($(this))});if(typeof $.fn.slick!=='undefined'){$('.gutentor-slider-wrapper').each(function(){gSlick($(this))});$('.gutentor-module-slider-row').each(function(){gSlick($(this))});$('.gutentor-carousel-row').each(function(){gSlick($(this))});$('.gutentor-image-carousel-row').each(function(){gSlick($(this))});$('.gutentor-module-carousel-row').each(function(){gSlick($(this))})}
gDocument.on('click','.gutentor-accordion-heading',function(e){var gThis=$(this),accordion_content=gThis.closest('.gutentor-accordion-wrap'),accordion_item=gThis.closest('.gutentor-single-item'),accordion_details=accordion_item.find('.gutentor-accordion-body'),accordion_all_items=accordion_content.siblings('.gutentor-accordion-wrap');accordion_all_items.each(function(){$(this).find('.gutentor-accordion-body').slideUp();$(this).find('.gutentor-accordion-heading').removeClass('active')});if(accordion_details.is(':visible')){accordion_details.slideUp().removeClass('gutentor-active-body');gThis.removeClass('active')}else{accordion_details.slideDown().addClass('gutentor-active-body');gThis.addClass('active')}
e.preventDefault()});function moduleAccordion(gThis){let a_g_p=gThis.closest('.gutentor-module-accordion'),a_item=gThis.closest('.gutentor-module-accordion-item'),a_details=a_item.find('.gutentor-module-accordion-body'),a_o_items=a_item.siblings('.gutentor-module-accordion-item'),a_i_wrap=gThis.find('.gutentor-module-accordion-icon');if(a_g_p.hasClass('gutentor-module-accordion-enable-toggle')){a_o_items.removeClass('gutentor-module-accordion-active');a_o_items.each(function(){$(this).find('.gutentor-module-accordion-body').slideUp();$(this).find('.gutentor-module-accordion-icon').removeClass('gutentor-module-accordion-icon-active')})}
if(a_details.is(':visible')){a_details.slideUp();a_i_wrap.removeClass('gutentor-module-accordion-icon-active');a_details.removeClass('gutentor-module-accordion-icon-active');a_item.removeClass('gutentor-module-accordion-active')}else{a_details.slideDown();a_details.addClass('gutentor-module-accordion-icon-active');a_i_wrap.addClass('gutentor-module-accordion-icon-active');a_item.addClass('gutentor-module-accordion-active');gRefreshJS(a_details)}}
gDocument.on('click','.gutentor-module-accordion-item-heading',function(e){moduleAccordion($(this));e.preventDefault()});gDocument.on('keypress','.gutentor-module-accordion-item-heading',function(e){if(e.keyCode==13){moduleAccordion($(this));e.preventDefault()}});gDocument.on('click','.g-toc-header',function(e){let gThis=$(this),toc_parent=gThis.closest('.gutentor-module-table-of-contents'),toc_body=toc_parent.find('.g-toc-body');if(toc_parent.hasClass('g-enable-collapsible')){if(toc_body.is(':visible')){toc_body.slideUp();gThis.removeClass('g-collapsible-active')}else{gThis.addClass('g-collapsible-active');toc_body.slideDown()}}
e.preventDefault()});function moduleTabs(gThis){let gThisIndex=gThis.index(),gThisWrap=gThis.closest('.gutentor-module-tabs-wrap'),gThisWrapID=gThisWrap.data('id'),gThisContentID='.gm-tc-'+gThisWrapID;if(gThis.hasClass('gutentor-tabs-nav-active')){return}
gThis.addClass('gutentor-tabs-nav-active');gThis.siblings().removeClass('gutentor-tabs-nav-active');gThisWrap.find(gThisContentID).eq(gThisIndex).siblings().removeClass('gutentor-tabs-content-active');gThisWrap.find(gThisContentID).eq(gThisIndex).addClass('gutentor-tabs-content-active');gRefreshJS(gThisWrap.find(gThisContentID).eq(gThisIndex))}
gDocument.on('click','.gutentor-module-tabs-item',function(e){moduleTabs($(this));e.preventDefault()});gDocument.on('keypress','.gutentor-module-tabs-item',function(e){if(e.keyCode==13){moduleTabs($(this));e.preventDefault()}});gDocument.on('click','.gutentor-countup-wrap',function(){$(this).addClass('gutentor-countup-open')});gDocument.on('click','.gutentor-countup-box-close',function(){$('.gutentor-countup-box').addClass('hide-input');$(this).hide()});gDocument.on('click','.gutentor-countup',function(){$('.gutentor-countup-box').removeClass('hide-input')});$('.gutentor-countdown-wrapper').each(function(){gCountDown($(this))});gPopOver();gFlexMenu($('.g-responsive-menu'));gShowMoreBlock('.gutentor-show-more-button');gShowMoreBlock('.gutentor-show-less-action-button');gShowMoreBlock('.gutentor-adv-s-m-btn');gShowMoreBlock('.gutentor-adv-s-l-btn');if(typeof $.fn.AcmeTicker!=='undefined'){$('.gutentor-post-module-p5').each(function(){gAcmeTicker($(this))});$(document).on('acmeTickerToggle',function(e,thisTicker){$(thisTicker).closest('.gutentor-news-ticker').toggleClass('gutentor-ticker-pause')})}
gTabs();$('.g-edd-cart').each(function(){gEddCartIcon($(this))})});function gM11(){let buttonM11Filters={},buttonM11Filter={},m11Regex={},m11FilWrap=$('.g-fm-module'),currentFilter;if(m11FilWrap.length){m11FilWrap.find('.g-gm-item-wrap').isotope({itemSelector:'.g-gm-col',layoutMode:'fitRows',filter:function(){let gThis=$(this),searchResult=currentFilter&&m11Regex[currentFilter]?gThis.text().match(m11Regex[currentFilter]):!0,buttonResult=currentFilter&&buttonM11Filter[currentFilter]?gThis.is(buttonM11Filter[currentFilter]):!0;return searchResult&&buttonResult},})}
gDocument.on('click','.g-fm-fi',function(){$(this).siblings().removeClass('g-fm-active');$(this).addClass('g-fm-active');let masonryBoxes=$(this).closest('.g-fm-module');currentFilter=masonryBoxes.attr('data-filter-number');let gThis=$(this);let btnGroup=gThis.parents('.g-fm-fis'),filterGroup=btnGroup.attr('data-filter-group');if(buttonM11Filters[currentFilter]===undefined){buttonM11Filters[currentFilter]={}}
buttonM11Filters[currentFilter][filterGroup]=gThis.attr('data-filter');if(buttonM11Filter[currentFilter]===undefined){buttonM11Filter[currentFilter]={}}
buttonM11Filter[currentFilter]=gConcatValues(buttonM11Filters[currentFilter]);let this_grid_wrapper=gThis.closest('.g-fm-module').find('.g-gm-item-wrap');this_grid_wrapper.isotope()});$('.g-gm-module').find('.grid-container').each(function(){let str=$('.g-nothing-found-text').text();str=str?str:'Nothing Found!!!!';let html='<div class="g-nothing-found">'+str+'</div>';$(this).append(html);$('.g-nothing-found').hide()});function filterSearchEvent(thisData){let masonryBoxes=thisData.closest('.g-fm-module');currentFilter=masonryBoxes.attr('data-filter-number');m11Regex[currentFilter]=new RegExp(thisData.val(),'gi');let this_grid_wrapper=thisData.closest('.g-fm-module').find('.g-gm-item-wrap');this_grid_wrapper.isotope();if(!this_grid_wrapper.data('isotope').filteredItems.length){$('.g-nothing-found').show()}else{$('.g-nothing-found').hide()}}
$('.g-fm-module .g-fm-search').keyup(gDebounce(function(){filterSearchEvent($(this))}));$('.g-fm-module .g-fm-search').on('search',function(){filterSearchEvent($(this))});function gConcatValues(obj){let value='';for(let prop in obj){value+=obj[prop]}
return value}
function gDebounce(fn,threshold){let timeout;threshold=threshold||100;return function gDebounced(){clearTimeout(timeout);let args=arguments;let _this=this;function delayed(){fn.apply(_this,args)}
timeout=setTimeout(delayed,threshold)}}
gDocument.find('.g-fm-module').each(function(i,item){let thisFilterWrap=$(this);thisFilterWrap.attr('data-filter-number',i)});gDocument.find('.g-gm-module').each(function(i,item){let thisFilterWrap=$(this);if(thisFilterWrap.hasClass('g-on-masonry')){let container=thisFilterWrap.find('.g-gm-item-wrap');container.isotope({layoutMode:'masonry'})}
let thisFilterWrapPopup=$(this);if(thisFilterWrapPopup.hasClass('g-on-popup')){let container=thisFilterWrapPopup.find('.g-gm-item-wrap');if(typeof $.fn.imagesLoaded!=='undefined'){container.imagesLoaded(function(){thisFilterWrapPopup.fadeIn('slow');container.masonry({itemSelector:'.g-gm-col ',})})}}
let popupIcon=thisFilterWrapPopup.find('.g-gm-popup'),popupMediaType=popupIcon.attr('data-media-type');if(popupMediaType==='g-popup-img'){gMagnificPopup(popupIcon,!0,!0)}else{gMagnificPopup(popupIcon,!1,!0)}});gM11Init=!0}
gDocument.on('click','.g-gm-popup',function(e){e.preventDefault();$(this).magnificPopup.open()});function gGalleryMasonry(masonryBoxes){if(masonryBoxes.hasClass('enable-masonry')){let container=masonryBoxes.find('.full-width-row');container.imagesLoaded(function(){masonryBoxes.fadeIn('slow');container.masonry({itemSelector:'.gutentor-gallery-item',})})}
gMagnificPopup(masonryBoxes.find('.image-gallery'),!0,!0)}
function gPostModuleMasonry(masonryBoxes){if(masonryBoxes.hasClass('g-masonry')){let container=masonryBoxes.find('.grid-row');container.imagesLoaded(function(){masonryBoxes.fadeIn('slow');container.masonry({itemSelector:'.gutentor-post',})})}}
function gReloadMasonry(masonryBoxes){if(masonryBoxes.hasClass('g-masonry')){let container=masonryBoxes.find('.grid-row');container.imagesLoaded(function(){container.masonry('destroy')})}
gPostModuleMasonry(masonryBoxes)}
function gVideoAutoplay(){let videos=document.getElementsByClassName('gutentor-bg-video'),i;for(i=0;i<videos.length;i++){if(videos[i].hasAttribute('autoplay')){if(!videos[i].playing){if(!videos[i].hasAttribute('muted')){videos[i].muted=!0}
videos[i].play()}}}}
function gFilter(){let buttonFilters={},buttonFilter={},qsRegex={},filter_wrap=$('.gutentor-filter-item-wrap'),currentFilter;if(filter_wrap.length){filter_wrap.isotope({itemSelector:'.gutentor-gallery-item',layoutMode:'fitRows',filter:function(){let gThis=$(this);let searchResult=currentFilter&&qsRegex[currentFilter]?gThis.text().match(qsRegex[currentFilter]):!0;let buttonResult=currentFilter&&buttonFilter[currentFilter]?gThis.is(buttonFilter[currentFilter]):!0;return searchResult&&buttonResult},})}
gDocument.on('click','.gutentor-filter-btn',function(){$(this).siblings().removeClass('gutentor-filter-btn-active');$(this).addClass('gutentor-filter-btn-active');let masonryBoxes=$(this).closest('.gutentor-filter-wrapper');currentFilter=masonryBoxes.attr('data-filter-number');let gThis=$(this);let $buttonGroup=gThis.parents('.gutentor-filter-group'),filterGroup=$buttonGroup.attr('data-filter-group');if(buttonFilters[currentFilter]===undefined){buttonFilters[currentFilter]={}}
buttonFilters[currentFilter][filterGroup]=gThis.attr('data-filter');if(buttonFilter[currentFilter]===undefined){buttonFilter[currentFilter]={}}
buttonFilter[currentFilter]=concatValues(buttonFilters[currentFilter]);let this_grid_wrapper=$(this).closest('.gutentor-filter-container').next('.gutentor-filter-item-wrap');this_grid_wrapper.isotope()});$('.gutentor-search-filter').keyup(debounce(function(){let masonryBoxes=$(this).closest('.gutentor-filter-wrapper');currentFilter=masonryBoxes.attr('data-filter-number');qsRegex[currentFilter]=new RegExp($(this).val(),'gi');let this_grid_wrapper=$(this).closest('.gutentor-filter-container').next('.gutentor-filter-item-wrap');this_grid_wrapper.isotope()}));function concatValues(obj){let value='';for(let prop in obj){value+=obj[prop]}
return value}
function debounce(fn,threshold){let timeout;threshold=threshold||100;return function debounced(){clearTimeout(timeout);let args=arguments;let _this=this;function delayed(){fn.apply(_this,args)}
timeout=setTimeout(delayed,threshold)}}
gDocument.find('.gutentor-filter-wrapper').each(function(i,item){let thisFilterWrap=$(this);thisFilterWrap.attr('data-filter-number',i);gMagnificPopup(thisFilterWrap.find('.image-gallery'),!0,!0);let container=thisFilterWrap.find('.gutentor-filter-item-wrap');if(thisFilterWrap.hasClass('enable-masonry')){container.isotope({layoutMode:'masonry'})}})}
function gTheiaStickySidebar(gThis){let stickyChildren=gThis.find('.grid-row:first').children('.gutentor-single-column'),mTop=gThis.attr('data-top'),mBottom=gThis.attr('data-bottom');stickyChildren.theiaStickySidebar({additionalMarginTop:parseInt(mTop),additionalMarginBottom:parseInt(mBottom),})}
gWindow.on('load',function(){if(typeof $.fn.imagesLoaded!=='undefined'){let galleryWrapper=$('.gutentor-gallery-wrapper');galleryWrapper.each(function(){gGalleryMasonry($(this))});let postModule=$('.gutentor-post-module-p1');postModule.each(function(){gPostModuleMasonry($(this))})}
gFilter();if(typeof $.fn.theiaStickySidebar!=='undefined'){$('.gutentor-enable-sticky-column').each(function(){gTheiaStickySidebar($(this))})}
$(document.body).on('added_to_cart',function(e,button){setTimeout(function(){$('.gutentor-woo-add-to-cart .added_to_cart.wc-forward').addClass('gutentor-button button gutentor-post-button')},1)});if(typeof $.fn.isotope!=='undefined'){gM11()}
gVideoAutoplay()})})(jQuery)
;
} catch (err) {
	console.log("Asset CleanUp - There is a JavaScript error related to the following source: https://www.franklinedu.ca/ca/wp-content/cache/asset-cleanup/js/item/gutentor__assets__js__gutentor-js-v45b27d54913060fa3b4f60cb089865cb6a32412a.js - Error: " + err.message);
}