// source --> https://erebuniarmenianschool.org/wp-content/plugins/photonic/include/scripts/front-end/build/photonic-swipebox.min.js?ver=20190216-155627 !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(u){var f="waitForImages";u.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"],hasImageAttributes:["srcset"]},u.expr[":"]["has-src"]=function(t){return u(t).is('img[src][src!=""]')},u.expr[":"].uncached=function(t){return!!u(t).is(":has-src")&&!t.complete},u.fn.waitForImages=function(){var s,c,i,l=0,d=0,p=u.Deferred();if(u.isPlainObject(arguments[0])?(i=arguments[0].waitForAll,c=arguments[0].each,s=arguments[0].finished):i=1===arguments.length&&"boolean"===u.type(arguments[0])?arguments[0]:(s=arguments[0],c=arguments[1],arguments[2]),s=s||u.noop,c=c||u.noop,i=!!i,!u.isFunction(s)||!u.isFunction(c))throw new TypeError("An invalid callback was supplied.");return this.each(function(){var a=u(this),h=[],t=u.waitForImages.hasImageProperties||[],o=u.waitForImages.hasImageAttributes||[],r=/url\(\s*(['"]?)(.*?)\1\s*\)/g;i?a.find("*").addBack().each(function(){var n=u(this);n.is("img:has-src")&&h.push({src:n.attr("src"),element:n[0]}),u.each(t,function(t,o){var i,e=n.css(o);if(!e)return!0;for(;i=r.exec(e);)h.push({src:i[2],element:n[0]})}),u.each(o,function(t,o){var i,e=n.attr(o);return!e||(i=e.split(","),void u.each(i,function(t,o){o=u.trim(o).split(" ")[0],h.push({src:o,element:n[0]})}))})}):a.find("img:has-src").each(function(){h.push({src:this.src,element:this})}),l=h.length,(d=0)===l&&(s.call(a[0]),p.resolveWith(a[0])),u.each(h,function(t,e){var o=new Image,n="load."+f+" error."+f;u(o).one(n,function t(o){var i=[d,l,"load"===o.type];return d++,c.apply(e.element,i),p.notifyWith(e.element,i),u(this).off(n,t),d===l?(s.call(a[0]),p.resolveWith(a[0]),!1):void 0}),o.src=e.src})}),p.promise()}}),function(d){d.fn.photonicModal=function(t){function o(){s.css({"z-index":n.zIndexOut}),n.afterClose()}function i(){n.afterOpen()}var e=d(this),n=d.extend({modalTarget:"photonicModal",closeCSS:"",closeFromRight:0,width:"80%",height:"100%",top:"0px",left:"0px",zIndexIn:"9999",zIndexOut:"-9999",color:"#39BEB9",opacityIn:"1",opacityOut:"0",animatedIn:"zoomIn",animatedOut:"zoomOut",animationDuration:".6s",overflow:"auto",beforeOpen:function(){},afterOpen:function(){},beforeClose:function(){},afterClose:function(){}},t),a=d(document).find(".photonicModalOverlay"),h=d(document).find(".photonicModalOverlayScrollable");0===a.length&&((a=document.createElement("div")).className="photonicModalOverlay",(h=document.createElement("div")).className="photonicModalOverlayScrollable",d(h).appendTo(d(a)),d("body").append(a)),a=d(a),h=d(h);var r=d(e).find(".photonicModalClose");0===r.length&&((r=document.createElement("a")).className="photonicModalClose "+n.closeCSS,d(r).css({right:n.closeFromRight}),d(r).html("×"),d(r).attr("href","#"),d(r).prependTo(d(e)).show()),r=d(e).find(".photonicModalClose");var s=d("body").find("#"+n.modalTarget);s.addClass("photonicModal"),s.addClass(n.modalTarget+"-off");var c,l={width:n.width,height:n.height,top:n.top,left:n.left,"background-color":n.color,"overflow-y":n.overflow,"z-index":n.zIndexOut,opacity:n.opacityOut,"-webkit-animation-duration":n.animationDuration,"-moz-animation-duration":n.animationDuration,"-ms-animation-duration":n.animationDuration,"animation-duration":n.animationDuration};s.css(l),c=s,d(document).height(),d(window).height(),d("body, html").css({overflow:"hidden"}),c.hasClass(n.modalTarget+"-off")&&(c.removeClass(n.modalTarget+"-off"),c.addClass(n.modalTarget+"-on")),c.hasClass(n.modalTarget+"-on")&&(n.beforeOpen(),c.css({opacity:n.opacityIn,"z-index":n.zIndexIn}),c.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",i)),a.css("overflow-y",n.overflow).fadeIn(),c.appendTo(h).css("overflow-y",n.overflow).hide().slideDown("slow"),r.click(function(t){t.preventDefault(),d("body, html").css({overflow:"auto"}),n.beforeClose(),s.hasClass(n.modalTarget+"-on")&&(s.removeClass(n.modalTarget+"-on"),s.addClass(n.modalTarget+"-off")),s.hasClass(n.modalTarget+"-off")&&s.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",o),s.css("overflow-y","hidden").slideUp(),a.css("overflow-y","hidden").fadeOut()})}}(jQuery),function(o){function i(){s.setAttribute("content",d),p=!0}var t=navigator.userAgent;if(/iPhone|iPad|iPod/.test(navigator.platform)&&/OS [1-5]_[0-9_]* like Mac OS X/i.test(t)&&-1=h.detectSwipe.threshold?o=0=h.detectSwipe.threshold&&(o=0").html(t).text()},window.photonicShowLoading=function(){var t=C(".photonic-loading");(t=0