!function(e){var t={};function i(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,i),n.l=!0,n.exports}i.m=e,i.c=t,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:a})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i(i.s=139)}([,function(e,t,i){"use strict";function a(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function n(e,t){for(var i=0;i<t.length;i++){var a=t[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,i,o;return t=e,o=[{key:"getResponsiveValues",value:function(e,t){var i={};if(e[t]||e[t+"_tablet"]||e[t+"_phone"]){var a=e[t+"_last_edited"]&&e[t+"_last_edited"].startsWith("on");i.desktop=e[t],i.tablet=a&&e[t+"_tablet"]?e[t+"_tablet"]:"",i.phone=a&&e[t+"_phone"]?e[t+"_phone"]:""}return i}},{key:"getHoverValue",value:function(t,i){var a="";return e.isHoverEnabled(t,i)&&t[i+"__hover"]&&(a=t[i+"__hover"]),a}},{key:"getMarginPaddingCss",value:function(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"margin",n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(arguments.length>4&&void 0!==arguments[4]&&arguments[4]){var o=e.getHoverValue(t,i);return e.processMarginPaddingStyle(o,a,n)}var d=window.ET_Builder.API.Utils._,l=e.getResponsiveValues(t,i),r={};return d.isEmpty(l)||(r.desktop=e.processMarginPaddingStyle(l.desktop,a,n),r.tablet=e.processMarginPaddingStyle(l.tablet,a,n),r.phone=e.processMarginPaddingStyle(l.phone,a,n)),r}},{key:"processMarginPaddingStyle",value:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"margin",a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n="",o=t.split("|"),d=window.ET_Builder.API.Utils._;if(!d.isEmpty(o)){var l="";o=o.map(d.trim);d.forEach(["top","right","bottom","left"],function(t,n){if(o[n]&&""!==o[n]){var d=a?" !important":"";l+=i+"-"+t+":"+e.processMarginPaddingValue(o[n],i)+d+";"}}),n+=d.trimEnd(l)}return n}},{key:"processMarginPaddingValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";e=window.ET_Builder.API.Utils._.trim(e);var i=parseFloat(e),a=e.replace(i,""),n="";return""!==t&&-1!=={margin:["auto","inherit","initial","unset"],padding:["inherit","initial","unset"]}[t].indexOf(e)?n=e:(""===a&&(a="px"),n=i+a),n}},{key:"getGradient",value:function(e){var t=window.ET_Builder.API.Utils._,i={gradientType:"linear",linearDirection:"180deg",radialDirection:"center",startColor:"#2b87da",endColor:"#29c4a9",startPosition:"0%",endPosition:"100%"};t.forEach(e,function(e,a){""===e||t.isUndefined(e)||(i[a]=e)});var a="linear"===i.gradientType?i.linearDirection:"circle at "+i.radialDirection;return i.gradientType+"-gradient("+a+", "+i.startColor+" "+i.startPosition+", "+i.endColor+" "+i.endPosition+")"}},{key:"get",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=window.ET_Builder.API.Utils._,o=t+("desktop"!==i?"_"+i:"");return n.isUndefined(e[o])||""===e[o]?a:e[o]}},{key:"getDefaultValue",value:function(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if("desktop"===a)return n;var o=e.get(t,i,"desktop",n);if("tablet"===a)return o;var d=e.get(t,i,"tablet",o);return"phone"===a?d:n}},{key:"getAnyValue",value:function(t,i){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"desktop",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],d=e.get(t,i,a,""),l=e.getDefaultValue(t,i,a,n);return o?""!==d?d:l:d===l?"":d}},{key:"getInheritedValue",value:function(e,t,i,n){var o,d=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",l=window.ET_Builder.API.Utils._,r=d,_=(a(o={},n+"_color",n+"_enable_color"),a(o,n+"_use_color_gradient",n+"_enable_use_color_gradient"),a(o,n+"_image",n+"_enable_image"),o),s={desktop:[""],hover:["__hover",""],tablet:["_tablet",""],phone:["_phone","_tablet",""]};if(""===(l.isUndefined(_[t])?"":_[t])||l.isUndefined(s[i]))return r;r="";var p=!0,c=!1,f=void 0;try{for(var u,m=s[i].values()[Symbol.iterator]();!(p=(u=m.next()).done);p=!0){var g=u.value;if(n+"_color"===t||n+"_image"===t){var h=t.replace(n+"_",""),v=l.isUndefined(e[n+"_enable_"+h+g])?"":e[n+"_enable_"+h+g],y=l.isUndefined(e[n+"_"+h+g])?"":e[n+"_"+h+g],w="off"!==v;if(""!==y&&w){r=y;break}if(!w){r="";break}}else if(n+"_use_color_gradient"===t){r="off";var b=a({},n+"_use_color_gradient",{value:n+"_use_color_gradient"+g,start:n+"_color_gradient_start"+g,end:n+"_color_gradient_end"+g}),C=l.isUndefined(b[t].value)?"":b[t].value,I=l.isUndefined(b[t].start)?"":b[t].start,x=l.isUndefined(b[t].end)?"":b[t].end,j=l.isUndefined(e[C])?"off":e[C],k=l.isUndefined(e[I])?"#2b87da":e[I],P=l.isUndefined(e[x])?"#29c4a9":e[x],O="off"!==j;if((""!==k||""!==P)&&O){r="on";break}if(!O){r="off";break}}}}catch(e){c=!0,f=e}finally{try{p||null==m.return||m.return()}finally{if(c)throw f}}return r}},{key:"getHoverRawValue",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return window.ET_Builder.API.Utils._.isUndefined(e[t+"__hover"])?i:e[t+"__hover"]}},{key:"isHoverEnabled",value:function(e,t){var i=window.ET_Builder.API.Utils._;return!(i.isEmpty(e[t+"__hover_enabled"])||!i.isString(e[t+"__hover_enabled"]))&&!!e[t+"__hover_enabled"].startsWith("on")}},{key:"isResponsiveEnabled",value:function(e,t){var i=window.ET_Builder.API.Utils._;return!(i.isEmpty(e[t+"_last_edited"])||!i.isString(e[t+"_last_edited"]))&&!!e[t+"_last_edited"].startsWith("on")}},{key:"generateBackgroundCss",value:function(t,i,a){var n=window.ET_Builder.API.Utils._,o=a.normal,d={};n.forEach(o,function(a,o){var d=a;n.isArray(a)&&(d=a.join(","));var l=o,r="",_="",s="",p={desktop:!1,tablet:!1,phone:!1},c=!0,f=!1,u=void 0;try{for(var m,g=["desktop","tablet","phone"].values()[Symbol.iterator]();!(c=(m=g.next()).done);c=!0){var h=m.value,v="",y="",w="",b=!1,C=!1,I=!1,x=!1,j=!1,k=[],P="off",O="desktop"===h;if(O||e.isResponsiveEnabled(i,l+"_color")){var T=e.getInheritedValue(i,l+"_use_color_gradient",h,l);if("on"===T){P=e.getAnyValue(i,l+"_color_gradient_overlays_image",h,"",!0);var z={startColor:e.getAnyValue(i,l+"_color_gradient_start",h,"",!0),endColor:e.getAnyValue(i,l+"_color_gradient_end",h,"",!0),gradientType:e.getAnyValue(i,l+"_color_gradient_type",h,"",!0),linearDirection:e.getAnyValue(i,l+"_color_gradient_direction",h,"",!0),radialDirection:e.getAnyValue(i,l+"_color_gradient_direction_radial",h,"",!0),startPosition:e.getAnyValue(i,l+"_color_gradient_start_position",h,"",!0),endPosition:e.getAnyValue(i,l+"_color_gradient_end_position",h,"",!0)},V=e.getGradient(z);b=!0,k.push(V)}else"off"===T&&(x=!0);var E=e.getInheritedValue(i,l+"_image",h,l),Q=""!==E;if(p[h]=Q,Q){C=!0;var U=!0;O||(U="tablet"===h?p.desktop:p.tablet);var A=e.getAnyValue(i,l+"_size",h,"",!U);""!==A&&(v+="background-size: "+A+";");var F=e.getAnyValue(i,l+"_position",h,"",!U);""!==F&&(v+="background-position: "+F.replace("_"," ")+";");var S=e.getAnyValue(i,l+"_repeat",h,"",!U);""!==S&&(v+="background-repeat: "+S+";");var D=e.getAnyValue(i,l+"_blend",h,"",!U),M=e.getAnyValue(i,l+"_blend",h,"",!0);""!==M&&(""!==D&&(v+="background-blend-mode: "+D+";"),b&&C&&"normal"!==M&&(I=!0,v+="background-color: initial;",y="initial"),s=D),k.push("url("+E+")")}else""===E&&(""!==s&&(v+="background-blend-mode: normal;",s=""),j=!0);if(n.isEmpty(k)?!O&&x&&j&&(w="initial",v+="background-image: initial !important;"):("on"!==P&&(k=k.reverse()),r!==(w=k.join(", "))&&(v+="background-image: "+w+" !important;")),r=w,!I){var R="off"!==e.getInheritedValue(i,l+"_enable_color",h,l)||O?"":"initial";""!==e.getInheritedValue(i,l+"_color",h,l)&&(R=e.getInheritedValue(i,l+"_color",h,l)),y=R,""!==R&&_!==R&&(v+="background-color: "+R+";")}_=y,""!==v&&t.push([{selector:"".concat(d),declaration:"".concat(v),device:"".concat(h)}])}}}catch(e){f=!0,u=e}finally{try{c||null==g.return||g.return()}finally{if(f)throw u}}}),a.hover?d=a.hover:(d=a.normal,n.forEach(d,function(e,t){n.isArray(e)?(n.forEach(e,function(t,i){e[i]=t+":hover"}),d[t]=e):d[t]=e+":hover"})),n.forEach(d,function(a,o){var d=a;n.isArray(a)&&(d=a.join(","));var l=o,r=e.getAnyValue(i,l+"_color_gradient_overlays_image","desktop","off",!0),_={startColor:e.getAnyValue(i,l+"_color_gradient_start","desktop","",!0),endColor:e.getAnyValue(i,l+"_color_gradient_end","desktop","",!0),gradientType:e.getAnyValue(i,l+"_color_gradient_type","desktop","",!0),linearDirection:e.getAnyValue(i,l+"_color_gradient_direction","desktop","",!0),radialDirection:e.getAnyValue(i,l+"_color_gradient_direction_radial","desktop","",!0),startPosition:e.getAnyValue(i,l+"_color_gradient_start_position","desktop","",!0),endPosition:e.getAnyValue(i,l+"_color_gradient_end_position","desktop","",!0)};if(e.isHoverEnabled(i,l+"_color")){var s=[],p="",c=!1,f=!1,u=!1,m=!1,g=!1,h="off",v=e.getInheritedValue(i,l+"_use_color_gradient","hover",l);if("on"===v){var y=_.gradientType,w=_.linearDirection,b=_.radialDirection,C=_.startColor,I=_.endColor,x=_.startPosition,j=_.endPosition,k=e.getHoverRawValue(i,l+"_color_gradient_type",y),P=e.getHoverRawValue(i,l+"_color_gradient_direction",w),O=e.getHoverRawValue(i,l+"_color_gradient_direction_radial",b),T=e.getHoverRawValue(i,l+"_color_gradient_start",C),z=e.getHoverRawValue(i,l+"_color_gradient_end",I),V=e.getHoverRawValue(i,l+"_color_gradient_start_position",x),E=e.getHoverRawValue(i,l+"_color_gradient_end_position",j),Q={startColor:""!==T?T:C,endColor:""!==z?z:I,gradientType:""!==k?k:y,linearDirection:""!==P?P:w,radialDirection:""!==O?O:b,startPosition:""!==V?V:x,endPosition:""!==E?E:j};h=e.getHoverRawValue(i,l+"_color_gradient_overlays_image",r);var U=e.getGradient(Q);c=!0,s.push(U)}else"off"===v&&(m=!0);var A=e.getInheritedValue(i,l+"_image","hover",l);if(""!==A&&null!==A){f=!0;var F=e.getHoverRawValue(i,l+"_size"),S=n.isUndefined(i[l+"_size"])?"":i[l+"_size"],D=F===S;n.isEmpty(F)&&!n.isEmpty(S)&&(F=S),n.isEmpty(F)||D||(p+="background-size: "+F+";");var M=e.getHoverRawValue(i,l+"_position"),R=n.isUndefined(i[l+"_position"])?"":i[l+"_position"],H=M===R;n.isEmpty(M)&&!n.isEmpty(R)&&(M=R),n.isEmpty(M)||H||(p+="background-position: "+M.replace("_"," ")+";");var B=e.getHoverRawValue(i,l+"_repeat"),q=n.isUndefined(i[l+"_repeat"])?"":i[l+"_repeat"],L=B===q;n.isEmpty(B)&&!n.isEmpty(q)&&(B=q),n.isEmpty(B)||L||(p+="background-repeat: "+B+";");var Y=e.getHoverRawValue(i,l+"_blend"),W=n.isUndefined(i[l+"_blend"])?"":i[l+"_blend"],N=Y===W;n.isEmpty(Y)&&!n.isEmpty(W)&&(Y=W),n.isEmpty(Y)||(N||(p+="background-blend-mode: "+Y+";"),c&&f&&"normal"!==Y&&(u=!0,p+="background-color: initial !important;")),s.push("url("+A+")")}else""===A&&(g=!0);if(n.isEmpty(s)?m&&g&&(p+="background-image: initial !important;"):("on"!==h&&(s=s.reverse()),p+="background-image: "+s.join(", ")+" !important;"),!u){var X=e.getInheritedValue(i,l+"_color","hover",l);""!==(X=""!==X?X:"transparent")&&(p+="background-color: "+X+" !important; ")}""!==p&&t.push([{selector:"".concat(d),declaration:"".concat(p),device:"".concat("hover")}])}})}}],(i=null)&&n(t.prototype,i),o&&n(t,o),e}();t.default=o},,,function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,i){i(140),i(29),i(65),i(8),i(28),i(7),i(19),i(20),i(12),i(13),i(18),i(4),i(32),i(38),i(37),i(36),i(34),i(33),i(35),i(6),i(30),i(31),i(25),i(57),i(58),i(24),i(9),i(10),i(16),i(17),i(48),i(49),i(51),i(52),i(53),i(59),i(54),i(55),i(63),i(21),i(22),i(46),i(47),i(23),i(26),i(27),i(64),i(5),i(43),i(50),i(44),i(45),i(11),i(56),i(14),i(15),i(39),i(41),i(40),i(42),i(60),i(61),i(62),i(141),i(142),i(143),e.exports=i(1)},function(e,t){},function(e,t){},function(e,t){jQuery(document).ready(function(e){e("body").find(".dipl_team_member_skills").length>0&&e("body").on("blur",".dipl_team_member_skills",function(){var t=[];e(".dipl_team_member_skills").each(function(){e(this).val()&&t.push(e(this).val())}),e("#dipl_team_member_skills").val(t)}),e("body").find(".dipl_team_member_skills_value").length>0&&e("body").on("blur",".dipl_team_member_skills_value",function(){var t=[];e(".dipl_team_member_skills_value").each(function(){e(this).val()&&t.push(e(this).val())}),e("#dipl_team_member_skills_value").val(t)}),e("body").on("click",".dipl_repeator_meta_field_add_row",function(){var t='<div class="dipl_repeator_meta_field_row">';t+='<div class="dipl_repeator_meta_field">',t+='<input type="text" class="dipl_team_member_skills" placeholder="Skill" />',t+='<input type="number" class="dipl_team_member_skills_value" placeholder="Skill Value Between 0 to 100" step="1" min="0" max="100"/>',t+="</div>",t+='<p class="dipl_repeator_meta_field_row_controls">',t+='<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_remove_row">-</span>',t+='<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_add_row">+</span>',t+="</p>",t+="</div>",e(this).closest(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_remove_row").length<1&&e(this).closest(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls").prepend('<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_remove_row">-</span>'),e(this).closest(".dipl_repeator_meta_field_row").after(t),e(this).closest(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls .dipl_repeator_meta_field_add_row").remove()}),e("body").on("click",".dipl_repeator_meta_field_remove_row",function(){if(2===e(this).parents(".dipl_repeator_meta_fields").find(".dipl_repeator_meta_field_row").length){e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").length>0?(e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls .dipl_repeator_meta_field_remove_row").remove(),e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls").append('<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_add_row">+</span>')):e(this).closest(".dipl_repeator_meta_field_row").next(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls .dipl_repeator_meta_field_remove_row").remove()}else{0===e(this).closest(".dipl_repeator_meta_field_row").nextAll(".dipl_repeator_meta_field_row").length&&e(this).closest(".dipl_repeator_meta_field_row").prev(".dipl_repeator_meta_field_row").find(".dipl_repeator_meta_field_row_controls").append('<span class="dipl_repeator_meta_field_add_row_control dipl_repeator_meta_field_add_row">+</span>')}e(this).closest(".dipl_repeator_meta_field_row").remove(),e(".dipl_team_member_skills").trigger("blur"),e(".dipl_team_member_skills_value").trigger("blur")})})},function(e,t){var i,a;function n(e){e.parents(".dipl_content_toggle").find(".et_pb_gallery").length>0&&e.parents(".dipl_content_toggle").find(".et_pb_gallery").each(function(){window.et_pb_gallery_init(jQuery(this))}),e.parents(".dipl_content_toggle").find(".dipl_masonry_gallery").length>0&&e.parents(".dipl_content_toggle").find(".dipl_masonry_gallery").each(function(){o(jQuery(this).find(".dipl_masonry_gallery_wrapper"),".dipl_masonry_gallery_item",".dipl_masonry_gallery_item",".dipl_masonry_gallery_item_gutter",!0)}),e.parents(".dipl_content_toggle").find(".el_masonry_gallery").length>0&&e.parents(".dipl_content_toggle").find(".el_masonry_gallery").each(function(){o(jQuery(this).find(".el_masonry_gallery_wrapper"),".el_masonry_gallery_item",".el_masonry_gallery_item",".el_masonry_gallery_item_gutter",!0)}),e.parents(".dipl_content_toggle").find(".dipl_woo_products_category_isotope_container").length>0&&e.parents(".dipl_content_toggle").find(".dipl_woo_products_category_isotope_container").each(function(){o(jQuery(this),".dipl_woo_products_category_isotope_item",".dipl_woo_products_category_isotope_item",".dipl_woo_products_category_isotope_item_gutter",!0)}),e.parents(".dipl_content_toggle").find(".dipl_woo_products_isotope_container").length>0&&e.parents(".dipl_content_toggle").find(".dipl_woo_products_isotope_container").each(function(){o(jQuery(this),".dipl_woo_products_isotope_item",".dipl_woo_products_isotope_item",".dipl_woo_products_isotope_item_gutter",!0)}),e.parents(".dipl_content_toggle").find(".dipl_testimonial_isotope_container").length>0&&o(e.parents(".dipl_content_toggle").find(".dipl_testimonial_isotope_container"),".dipl_testimonial_isotope_item"),e.parents(".dipl_content_toggle").find(".dipl_faq_masonry_container").length>0&&o(e.parents(".dipl_content_toggle").find(".dipl_faq_masonry_container"),".dipl_faq_page_schema_item")}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",n=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(""===e||""===t)return"";var o={};""!==i&&""!==a&&(o={columnWidth:i,gutter:a});var d=e.isotope({itemSelector:t,layoutMode:"masonry",percentPosition:!0,resize:!0,masonry:o});d.isotope("revealItemElements",e.find(t)),n&&d.imagesLoaded().progress(function(){d.isotope("layout"),d.isotope("reloadItems")})}function d(e){jQuery(".dipl_ajax_search_results").each(function(){var t=jQuery(this);!t.is(e)&&!t.is(jQuery(e).parents(t))&&jQuery(e).parents(".dipl_ajax_search_active").length<1&&jQuery(this).remove()})}function l(){document.fullscreenElement||document.msFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement?jQuery("body").find(".dipl_active_modal .dipl_modal_inner_wrap").addClass("dipl_modal_fullscreen"):jQuery("body").find(".dipl_modal_module .dipl_modal_inner_wrap").removeClass("dipl_modal_fullscreen")}i=jQuery,a=i(window).width(),i.fn.DiviPlusModalRemoveClasses=function(e){var t=["et_pb_sticky_module","et_pb_sticky","et_pb_sticky--top","et_pb_sticky--bottom","et_pb_sticky--top_bottom","et_animated","infinite","et-waypoint","et_had_animation","fade","fadeTop","fadeRight","fadeBottom","fadeLeft","slide","slideTop","slideRight","slideBottom","slideLeft","bounce","bounceTop","bounceRight","bounceBottom","bounceLeft","zoom","zoomTop","zoomRight","zoomBottom","zoomLeft","flip","flipTop","flipRight","flipBottom","flipLeft","fold","foldTop","foldRight","foldBottom","foldLeft","roll","rollTop","rollRight","rollBottom","rollLeft","transformAnim"];return t.push(e),this.removeClass(t.join(" ")),this.css({"animation-delay":"","animation-duration":"","animation-timing-function":"",opacity:"",transform:"",filter:""}),this},i.fn.DiviPlusModalPopup=function(e){var t=this,n=0,o=i.extend({},{action:"",delay:"0"},e);if("undefined"!==typeof t.find(".dipl_modal_wrapper").data("animation-duration")&&(n=parseFloat(t.find(".dipl_modal_wrapper").data("animation-duration")),a<981?"undefined"!==typeof t.find(".dipl_modal_wrapper").data("animation-duration-tablet")&&""!==t.find(".dipl_modal_wrapper").data("animation-duration-tablet")&&(n=parseFloat(t.find(".dipl_modal_wrapper").data("animation-duration-tablet"))):a<768&&"undefined"!==typeof t.find(".dipl_modal_wrapper").data("animation-duration-phone")&&""!==t.find(".dipl_modal_wrapper").data("animation-duration-phone")&&(n=parseFloat(t.find(".dipl_modal_wrapper").data("animation-duration-phone")))),"open"===o.action){var d=parseInt(o.delay);setTimeout(function(){n+=200,i("body").find(".dipl_modal").removeClass("dipl_active_modal"),i("body").addClass("dipl_modal_active"),t.addClass("dipl_active_modal"),setTimeout(function(){i("body").find(".dipl_modal").removeClass("dipl_modal_opened"),t.addClass("dipl_modal_opened")},n),setTimeout(function(){!function(e){if("undefined"===typeof e||""===e)return!1;if("on"===e.find(".dipl_modal_wrapper").data("autoplay-video"))if(e.find("iframe").length>0){var t="on_page_load"===e.find(".dipl_modal_wrapper").data("trigger-type"),i=function(e,t){var i=decodeURIComponent(e),a=i.split("&");return 1===a.length?1!==(a=i.split("?")).length?(i+="&autoplay=1",t&&(i+="&mute=1&muted=1")):(i+="?autoplay=1",t&&(i+="&mute=1&muted=1")):(i+="&autoplay=1",t&&(i+="&mute=1&muted=1")),i}(e.find("iframe").attr("src"),t);e.find("iframe").attr("src",i)}else if(e.find("video").length>0){var a=e.find("video").get(0).play();void 0!==a&&a.then(function(e){}).catch(function(t){e.find("video").prop("muted",!0),e.find("video").get(0).play()})}}(t)},.7*n)},d)}if("close"===o.action){var l=t.prop("id"),r=t.find(".dipl_modal_wrapper").data("trigger-type"),_=t.find(".dipl_modal_wrapper").data("re-render");if(0!==n?(t.removeClass("dipl_active_modal"),t.find(".dipl_animated").css("opacity","1"),t.find(".dipl_animated").css("transform","none"),setTimeout(function(){t.find(".dipl_animated").removeAttr("style"),t.addClass("dipl_animate_reverse")},0),setTimeout(function(){t.removeClass("dipl_animate_reverse"),t.removeClass("dipl_modal_opened"),i("body").removeClass("dipl_modal_active")},n)):(t.removeClass("dipl_active_modal"),t.removeClass("dipl_modal_opened"),i("body").removeClass("dipl_modal_active")),function(e){if("undefined"===typeof e||""===e)return!1;if(e.find("iframe").length>0){var t=e.find("iframe").attr("src").replace("?autoplay=1","").replace("&autoplay=1","").replace("&mute=1&muted=1","");e.find("iframe").attr("src",t)}else e.find("video").length>0&&(e.find("video").get(0).pause(),e.find("video").get(0).currentTime=0)}(t),-1!==i.inArray(r,["exit_intent","on_page_load"])){var s=l+"_"+r+"_hide";("on_page_load"===r&&"off"===_||"exit_intent"===r)&&localStorage.setItem(s,"true")}}return this},jQuery(document).ready(function(e){e("body").find(".dipl_scroll_image").length>0&&e(".dipl_scroll_image").each(function(){var t=e(this).find(".dipl_scroll_image_wrapper"),i=t.find(".dipl_scroll_image_inner_wrap").find("img"),a=t.find(".dipl_scroll_image_inner_wrap").data("direction"),n=i.height(),o=i.width(),d=t.height(),l=t.width(),r=parseFloat(n)-parseFloat(d),_=parseFloat(o)-parseFloat(l);"bottom"===a&&n>d&&i.css("transform","translateY(-"+r+"px)"),"right"===a&&o>l&&i.css("transform","translateX(-"+_+"px)"),t.on("mouseenter mouseleave",function(t){var i=e(this),a=i.find(".dipl_scroll_image_inner_wrap").find("img"),n=i.find(".dipl_scroll_image_inner_wrap").data("direction"),o=a.height(),d=a.width(),l=i.height(),r=i.width(),_=parseFloat(o)-parseFloat(l),s=parseFloat(d)-parseFloat(r);switch(n){case"top":"mouseenter"===t.type&&o>l&&a.css("transform","translateY(-"+_+"px)"),"mouseleave"===t.type&&a.css("transform","translateY(0)");break;case"bottom":"mouseenter"===t.type&&a.css("transform","translateY(0)"),"mouseleave"===t.type&&o>l&&a.css("transform","translateY(-"+_+"px)");break;case"left":"mouseenter"===t.type&&d>r&&a.css("transform","translateX(-"+s+"px)"),"mouseleave"===t.type&&a.css("transform","translateX(0)");break;case"right":"mouseenter"===t.type&&a.css("transform","translateX(0)"),"mouseleave"===t.type&&d>r&&a.css("transform","translateX(-"+s+"px)")}})}),e("body").find(".dipl_bar_counter").length>0&&(e("body").find(".dipl_bar_counter_wrapper.layout1").each(function(){e(this).find(".dipl_bar_counter_filled_bar").length>0&&e(this).find(".dipl_bar_counter_filled_bar_wrapper").each(function(){var t=e(this);t.waypoint({handler:function(){var e=t.data("percent")+"%";t.css("width",e)},offset:"100%"})})}),e("body").find(".dipl_bar_counter_wrapper.layout2").each(function(){e(this).find(".dipl_bar_counter_chunks").length>0&&e(this).find(".dipl_bar_counter_filled_chunks").each(function(){var t=e(this);t.waypoint({handler:function(){t.addClass("dipl_animate_filled")},offset:"100%"})})})),e("body").find(".dipl_woo_products_category_isotope_container").length>0&&e(".dipl_woo_products_category_isotope_container").each(function(){var t=e(this).isotope({itemSelector:".dipl_woo_products_category_isotope_item",layoutMode:"masonry",percentPosition:!0,resize:!0,masonry:{columnWidth:".dipl_woo_products_category_isotope_item",gutter:".dipl_woo_products_category_isotope_item_gutter"}});t.imagesLoaded().progress(function(){t.isotope("layout")})}),e("body").find(".dipl_woo_products_isotope_container").length>0&&e(".dipl_woo_products_isotope_container").each(function(){var t=e(this).isotope({itemSelector:".dipl_woo_products_isotope_item",layoutMode:"masonry",percentPosition:!0,resize:!0,masonry:{columnWidth:".dipl_woo_products_isotope_item",gutter:".dipl_woo_products_isotope_item_gutter"}});t.imagesLoaded().progress(function(){t.isotope("layout")})}),e("body").find(".dipl_single_woo_product").length>0&&e("body").find(".dipl_single_woo_product").each(function(){if(e(this).find(".dipl_single_woo_product_add_to_cart").hasClass("dipl_single_woo_product_add_to_cart_on_hover")){var t=parseFloat(e(this).find(".add_to_cart_inline").innerHeight())+10+"px";e(this).on("mouseenter",function(){e(this).find(".add_to_cart_inline").css("transform","translateY(-"+t+")"),e(this).find(".dipl_single_woo_product_title").css("transform","translateY(-"+t+")"),e(this).find(".dipl_single_woo_product_price").css("transform","translateY(-"+t+")"),e(this).find(".dipl_single_woo_product_thumbnail").css("transform","translateY(-"+t+")")}),e(this).on("mouseleave",function(){e(this).find(".add_to_cart_inline").css("transform","translateY(0)"),e(this).find(".dipl_single_woo_product_title").css("transform","translateY(0)"),e(this).find(".dipl_single_woo_product_price").css("transform","translateY(0)"),e(this).find(".dipl_single_woo_product_thumbnail").css("transform","translateY(0)")})}}),e("body").find(".dipl_image_magnifier").length>0&&e("body").find(".dipl_image_magnifier").each(function(){e(this).find(".zoom").magnify()}),e("body").find(".dipl_team_slider").length>0&&e("body").find(".dipl_team_slider").each(function(){e(this).find(".dipl_team_member_card").each(function(){e(this).find(".dipl_filled_bar").each(function(){var t=e(this);t.animate({width:t.data("skill")},1e3,"linear")})})}),e("body").find(".dipl_image_accordion").length>0&&e("body").find(".dipl_image_accordion").each(function(){var t=e(this),i=parseInt(t.find(".dipl_image_accordion_wrapper").data("default-active"));i>0&&(t.find(".dipl_image_accordion_item").removeClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").removeClass("et-animated"),t.find(".dipl_image_accordion_item:nth-child("+i+")").addClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").addClass("et-animated")),"click"===t.find(".dipl_image_accordion_wrapper").data("trigger")?t.find(".dipl_image_accordion_item").on("click",function(){e(this).closest(".dipl_image_accordion_wrapper").find(".dipl_image_accordion_item").not(e(this)).removeClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").removeClass("et-animated"),e(this).addClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").addClass("et-animated")}):t.find(".dipl_image_accordion_item").on("mouseenter mouseleave",function(t){"mouseenter"===t.type&&(e(this).closest(".dipl_image_accordion_wrapper").find(".dipl_image_accordion_item").not(e(this)).removeClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").removeClass("et-animated"),e(this).addClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").addClass("et-animated")),"mouseleave"===t.type&&e(this).closest(".dipl_image_accordion_wrapper").find(".dipl_image_accordion_item").removeClass("dipl_active_image_accordion_item").find(".dipl_image_accordion_item_content_inner_wrap").removeClass("et-animated")})}),e("body").find(".dipl_masonry_gallery").length>0&&e(".dipl_masonry_gallery").each(function(){var t=e(this).find(".dipl_masonry_gallery_wrapper"),i=t.isotope({itemSelector:".dipl_masonry_gallery_item",layoutMode:"masonry",percentPosition:!0,resize:!0,masonry:{columnWidth:".dipl_masonry_gallery_item",gutter:".dipl_masonry_gallery_item_gutter"}});if(i.imagesLoaded().progress(function(){i.isotope("layout"),i.isotope("reloadItems")}),t.find(".dipl_masonry_gallery_item").is("a")){var a=t.parents(".dipl_masonry_gallery").prop("class").match(/dipl_masonry_gallery_\d+/)[0]+"_lightbox";t.magnificPopup({delegate:"a",type:"image",closeOnContentClick:!1,closeBtnInside:!1,mainClass:"mfp-with-zoom mfp-img-mobile dipl_masonry_gallery_lightbox "+a,gallery:{enabled:!0,tPrev:"",tNext:"",tCounter:""},image:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><div class="mfp-img"></div><div class="mfp-bottom-bar"><div class="mfp-title"></div></div></div>',titleSrc:function(e){return e.el.find(".dipl_masonry_gallery_title_caption_wrapper").length>0?e.el.find(".dipl_masonry_gallery_title_caption_wrapper").html():""},tError:'<a href="%url%">The image</a> could not be loaded.'}})}}),e("body").find(".dipl_lottie_wrapper").length>0&&e("body").find(".dipl_lottie_wrapper").each(function(){var t=e(this),i=e(this).find(".dipl_lottie_params"),a=i.data("order-class")+"_lottie",n=i.data("animation-trigger"),o="";"hover"===n?(o=lottie.loadAnimation({container:t[0],path:i.data("url"),renderer:"svg",loop:i.data("loop"),autoplay:!1,name:a}),t.on("mouseenter mouseleave",function(e){"mouseenter"===e.type&&(i.data("direction")&&o.setDirection(i.data("direction")),i.data("speed")&&o.setSpeed(parseFloat(i.data("speed"))),o.play())})):"click"===n?(o=lottie.loadAnimation({container:t[0],path:i.data("url"),renderer:"svg",loop:i.data("loop"),autoplay:!1,name:a}),t.on("click",function(e){o.play(),i.data("direction")&&o.setDirection(i.data("direction")),i.data("speed")&&o.setSpeed(parseFloat(i.data("speed")))})):(o=lottie.loadAnimation({container:t[0],path:i.data("url"),renderer:"svg",loop:i.data("loop"),autoplay:!0,name:a}),i.data("direction")&&o.setDirection(i.data("direction")),i.data("speed")&&o.setSpeed(parseFloat(i.data("speed"))))}),(e("body").find(".dipl_twitter_embedded_tweet").length>0||e("body").find(".dipl_twitter_timeline").length>0||e("body").find(".dipl_twitter_follow_button").length>0||e("body").find(".dipl_twitter_tweet_button").length>0)&&(window.twttr=function(e,t,i){var a,n=e.getElementsByTagName(t)[0],o=window.twttr||{};if(!e.getElementById(i))return(a=e.createElement(t)).id=i,a.src="https://platform.twitter.com/widgets.js",n.parentNode.insertBefore(a,n),o._e=[],o.ready=function(e){o._e.push(e)},o}(document,"script","twitter-wjs")),e("body").find(".dipl_twitter_embedded_tweet").each(function(){var t=e(this).find(".dipl_twitter_embedded_tweet_wrapper"),i=e(this).find(".dipl_tweet"),a=i.data("id"),n=i.data("theme"),o=i.data("width"),d=i.data("cards"),l=i.data("conversation"),r=i.data("dnt");window.twttr.ready(function(e){e.widgets.createTweet(a,t[0],{theme:n,width:o,cards:d,conversation:l,dnt:r}).then(function(e){i.remove()})})}),e("body").find(".dipl_twitter_timeline").each(function(){var t=e(this).find(".dipl_twitter_embedded_timeline"),i=t.find(".dipl_twitter_embed_timeline"),a=i.data("name"),n=i.data("theme"),o=i.data("width"),d=i.data("height"),l=i.data("chrome"),r=i.data("show-replies"),_=i.data("tweet-limit"),s=i.data("aria-polite"),p=i.data("source"),c=i.data("dnt");window.twttr.ready(function(e){e.widgets.createTimeline({sourceType:p,screenName:a},t[0],{height:d,width:o,chrome:l,showReplies:r,tweetLimit:_,theme:n,ariaPolite:s,dnt:c}).then(function(e){i.remove()})})}),e("body").find(".dipl_twitter_follow_button").each(function(){var t=e(this).find(".dipl_twitter_embedded_follow_button"),i=t.find(".dipl_twitter_embed_follow_button"),a=i.data("name"),n=i.data("show-screen-name"),o=i.data("show-count"),d=i.data("size"),l=i.data("dnt");window.twttr.ready(function(e){e.widgets.createFollowButton(a,t[0],{showScreenName:n,showCount:o,size:d,dnt:l}).then(function(e){i.remove()})})}),e("body").find(".dipl_twitter_tweet_button").each(function(){var t=e(this).find(".dipl_twitter_embedded_tweet_button"),i=t.find(".dipl_twitter_embed_tweet_button"),a=i.data("text"),n=i.data("url"),o=i.data("hashtags"),d=i.data("via"),l=i.data("related"),r=i.data("size"),_=i.data("dnt");window.twttr.ready(function(e){e.widgets.createShareButton(n,t[0],{text:a,hashtags:o,via:d,related:l,size:r,button_hashtag:"elicus",dnt:_}).then(function(e){i.remove()})})});jQuery(window).width();function t(t){var i=t.find(".dipl_timeline_item").first().innerHeight()/2,a="calc(100% - "+(i+t.find(".dipl_timeline_item").last().innerHeight()/2+"px")+")",n=i+"px";t.find(".dipl_stem_wrapper").css("height",a),t.find(".dipl_stem_wrapper").css("top",n);var o=t.find(".dipl_timeline_item:first-child .dipl_stem_center").offset().top,d=t.find(".dipl_timeline_item:last-child .dipl_stem_center").offset().top,l=screen.height/2;parseFloat(e(this).find(".dipl_stem_wrapper").outerWidth()),t.find(".dipl_timeline_item:first-child").offset().top;if(o<l){var r=t.find(".dipl_stem_wrapper").innerHeight(),_=l-d<d-o-10?l-o+"px":d-o-10+"px";t.find(".dipl_stem").css("height",_),t.find(".dipl_stem_center").each(function(){e(this).offset().top<l&&(e(this).find(".dipl_item_icon").addClass("dipl_icon_fill"),e(this).find(".dipl_time_wrapper").addClass("dipl_border_fill"))}),e(window).height()>=e(document).height()&&(t.find(".dipl_stem").css("height",r),t.find(".dipl_stem_center").each(function(){e(this).find(".dipl_item_icon").addClass("dipl_icon_fill"),e(this).find(".dipl_time_wrapper").addClass("dipl_border_fill")}))}e(window).on("scroll",function(){var i=t.find(".dipl_stem_wrapper").innerHeight(),a=e(window).scrollTop(),n=a+(l-o)+"px";parseFloat(n)<parseFloat(i)&&t.find(".dipl_stem").css("height",n),t.find(".dipl_timeline_item").each(function(){var t=e(this).find(".dipl_stem_center"),i=parseFloat(t.innerHeight());t.offset().top<l+a+i?(t.find(".dipl_item_icon").addClass("dipl_icon_fill"),t.find(".dipl_time_wrapper").addClass("dipl_border_fill")):(t.find(".dipl_item_icon").removeClass("dipl_icon_fill"),t.find(".dipl_time_wrapper").removeClass("dipl_border_fill"))}),e(window).scrollTop()+e(window).height()>e(document).height()-50&&(t.find(".dipl_stem").css("height",i),t.find(".dipl_stem_center .dipl_item_icon").addClass("dipl_icon_fill"),t.find(".dipl_stem_center .dipl_time_wrapper").addClass("dipl_border_fill"))})}e("body").find(".dipl_testimonial_isotope_container").length>0&&e(".dipl_testimonial_isotope_container").isotope({itemSelector:".dipl_testimonial_isotope_item",layoutMode:"masonry",percentPosition:!0,resize:!0}),e("body").find(".dipl_faq_masonry_container").length>0&&e(".dipl_faq_masonry_container").isotope({itemSelector:".dipl_faq_page_schema_item",layoutMode:"masonry",percentPosition:!0,resize:!0}),e("body").find(".dipl_faq_page_schema .dipl_faq_accordion").length>0&&e("body").on("click",".dipl_faq_accordion .dipl_question_wrapper",function(){var t=e(this);if(t.parents(".dipl_faq_page_schema_item").hasClass("dipl_active")||t.parents(".dipl_faq_accordion").hasClass("dipl_toggling"))return!1;t.parents(".dipl_faq_accordion").addClass("dipl_toggling"),t.parents(".dipl_faq_accordion").find(".dipl_faq_page_schema_item.dipl_active .dipl_answer_wrapper").not(t.next(".dipl_answer_wrapper")).slideToggle("slow",function(){t.parents(".dipl_faq_accordion").find(".dipl_faq_page_schema_item").not(t.parents(".dipl_faq_page_schema_item")).removeClass("dipl_active")}),t.next(".dipl_answer_wrapper").slideToggle("slow",function(){t.parents(".dipl_faq_page_schema_item").addClass("dipl_active"),t.parents(".dipl_faq_accordion").removeClass("dipl_toggling")})}),e(".dipl_ajax_search_field").on("input",function(t){var i=e(this),a=i.val(),n=i.data("search-post-type"),o=i.data("search-in"),l=i.data("display-fields"),r=i.data("url-new-window"),_=i.data("number-of-results"),s=i.data("no-result-text"),p=i.data("orderby"),c=i.data("order"),f=i.data("use-masonry");if(!a||""===a)return i.closest(".dipl_ajax_search").removeClass("dipl_ajax_search_active"),i.closest(".dipl_ajax_search").parents(".et_pb_column").removeClass("dipl_ajax_search_active_parent"),i.closest(".dipl_ajax_search").parents(".et_pb_row").removeClass("dipl_ajax_search_active_parent"),i.parents(".dipl_ajax_search_field_wrap").removeClass("dipl_ajax_search_loader"),!1;!/<script>/i.test(a)&&function(e){return!/</.test(e)}(a)&&a.length>2?(i.parents(".dipl_ajax_search_field_wrap").hasClass("dipl_ajax_search_loader")||i.parents(".dipl_ajax_search_field_wrap").addClass("dipl_ajax_search_loader"),e.ajax({type:"POST",url:DiviPlusFrontendData.ajaxurl,data:{action:"dipl_ajax_search_results",nonce:DiviPlusFrontendData.ajaxnonce,post_types:n,search_in:o,display_fields:l,url_new_window:r,number_of_results:_,no_result_text:s,orderby:p,order:c,masonry:f,search:a},success:function(e){i.parents(".dipl_ajax_search_field_wrap").removeClass("dipl_ajax_search_loader"),""!==e?(i.closest(".dipl_ajax_search").addClass("dipl_ajax_search_active"),i.closest(".dipl_ajax_search").parents(".et_pb_column").addClass("dipl_ajax_search_active_parent"),i.closest(".dipl_ajax_search").parents(".et_pb_row").addClass("dipl_ajax_search_active_parent"),i.closest(".dipl_ajax_search").find(".dipl_ajax_search_results_wrap").html(e),i.closest(".dipl_ajax_search").find(".dipl_ajax_search_result_masonry").length>0&&i.closest(".dipl_ajax_search").find(".dipl_ajax_search_result_masonry .dipl_ajax_search_items").isotope({itemSelector:".dipl_ajax_search_isotope_item",layoutMode:"masonry",percentPosition:!0,resize:!0})):(i.closest(".dipl_ajax_search").removeClass("dipl_ajax_search_active"),i.closest(".dipl_ajax_search").parents(".et_pb_column").removeClass("dipl_ajax_search_active_parent"),i.closest(".dipl_ajax_search").parents(".et_pb_row").removeClass("dipl_ajax_search_active_parent"))},error:function(){}})):(i.parents(".dipl_ajax_search_field_wrap").removeClass("dipl_ajax_search_loader"),i.closest(".dipl_ajax_search").removeClass("dipl_ajax_search_active"),i.closest(".dipl_ajax_search").parents(".et_pb_column").removeClass("dipl_ajax_search_active_parent"),i.closest(".dipl_ajax_search").parents(".et_pb_row").removeClass("dipl_ajax_search_active_parent"),d(i))}),e(".dipl_ajax_search_field").on("keyup",function(){var t=e(this);""===t.val()&&(t.closest(".dipl_ajax_search").removeClass("dipl_ajax_search_active"),t.closest(".dipl_ajax_search").parents(".et_pb_column").removeClass("dipl_ajax_search_active_parent"),t.closest(".dipl_ajax_search").parents(".et_pb_row").removeClass("dipl_ajax_search_active_parent"),d(t))}),e(".dipl_ajax_search_field").on("focus",function(){e(".dipl_ajax_search_field").not(e(this)).closest(".dipl_ajax_search").removeClass("dipl_ajax_search_active"),e(".dipl_ajax_search_field").not(e(this)).closest(".dipl_ajax_search").parents(".et_pb_column").removeClass("dipl_ajax_search_active_parent"),e(".dipl_ajax_search_field").not(e(this)).closest(".dipl_ajax_search").parents(".et_pb_row").removeClass("dipl_ajax_search_active_parent")}),e(".dipl_ajax_search_field").on("click",function(t){e(this).trigger("input")}),e("html, body").on("click",function(e){d(e.target)}),e("body").find(".dipl_modal").length>0&&(e("body").find(".dipl_modal").each(function(){var t=e(this),i=t.prop("class"),a=t.prop("class").match(/dipl_modal_\d+/)[0],n=t.find(".dipl_modal_wrapper").data("id"),o=n+"_"+t.find(".dipl_modal_wrapper").data("trigger-type")+"_hide",d=e('<div class="dipl_modal_section et_pb_section entry-content et-l"></div>'),l=e("<div></div>");if(l.prop("id",n),l.prop("class",i),l.DiviPlusModalRemoveClasses(a).addClass("dipl_modal_module"),t.hasClass(a+"_tb_header")?l.addClass(a+"_tb_header_module"):t.hasClass(a+"_tb_body")?l.addClass(a+"_tb_body_module"):t.hasClass(a+"_tb_footer")?l.addClass(a+"_tb_footer_module"):l.addClass(a+"_module"),l.html(e(this).find(".dipl_modal_wrapper").detach()),d.html(l),e("body").find("#page-container").find("#et-boc").length>0?e("body").find("#page-container").find("#et-boc").append(d):e("body").find("#page-container").length>0?e("body").find("#page-container").append(d):e("body").find("#et_builder_outer_content").length>0?e("body").find("#et_builder_outer_content").append(d):e("body").find("#et-boc").length>0?e("body").find("#et-boc").append(d):e("body").append(d),t.is(":visible"))if("element"===l.find(".dipl_modal_wrapper").data("trigger-type"))if("undefined"!==typeof l.find(".dipl_modal_wrapper").data("trigger-element-id")&&""!==l.find(".dipl_modal_wrapper").data("trigger-element-id")){var r="#"+l.find(".dipl_modal_wrapper").data("trigger-element-id");e("body").find(r).on("click",function(e){e.preventDefault(),l.DiviPlusModalPopup({action:"open"})})}else if("undefined"!==typeof l.find(".dipl_modal_wrapper").data("trigger-element-class")&&""!==l.find(".dipl_modal_wrapper").data("trigger-element-class")){var _="."+l.find(".dipl_modal_wrapper").data("trigger-element-class");e("body").find(_).on("click",function(e){e.preventDefault(),l.DiviPlusModalPopup({action:"open"})})}else t.find(".dipl_modal_trigger_element").length>0&&t.find(".dipl_modal_trigger_element").on("click",function(e){e.preventDefault(),l.DiviPlusModalPopup({action:"open"})});else if("on_page_load"===l.find(".dipl_modal_wrapper").data("trigger-type")){var s=parseFloat(l.find(".dipl_modal_wrapper").data("trigger-delay")),p=l.find(".dipl_modal_wrapper").data("re-render");("off"===p&&"true"!==localStorage.getItem(o)||"on"===p)&&l.DiviPlusModalPopup({action:"open",delay:s})}else"exit_intent"===l.find(".dipl_modal_wrapper").data("trigger-type")&&e(document).on("mouseout",function(e){l.hasClass("dipl_modal_opened")||null==e.toElement&&null==e.relatedTarget&&"true"!==localStorage.getItem(o)&&l.DiviPlusModalPopup({action:"open"})})}),e("body").on("click",".dipl_modal_close",function(e){e.preventDefault()}),e("body").on("click",".dipl_modal_opened .dipl_modal_wrapper",function(t){e(t.target).is(e(this))&&e(this).parents(".dipl_modal").DiviPlusModalPopup({action:"close"})}),e("body").on("click",".dipl_modal_opened .dipl_modal_close",function(t){t.preventDefault(),e(this).parents(".dipl_modal").DiviPlusModalPopup({action:"close"})}),e(document).on("keyup",function(t){27===t.keyCode&&(e("body").hasClass("dipl_modal_active")&&e("body").find(".dipl_modal_opened .dipl_modal_wrapper").hasClass("dipl_modal_close_on_esc")&&e("body").find(".dipl_modal_opened .dipl_modal_wrapper").length>0&&e("body").find(".dipl_modal_opened").DiviPlusModalPopup({action:"close"}))}),null===document.onfullscreenchange?document.onfullscreenchange=l:null===document.onmsfullscreenchange?document.onmsfullscreenchange=l:null===document.onmozfullscreenchange?document.onmozfullscreenchange=l:null===document.onwebkitfullscreenchange&&(document.onwebkitfullscreenchange=l)),jQuery("body").find(".dipl_content_toggle").length>0&&(e("body").on("click",".dipl_toggle_field",function(){var t=e(this);!0===t.prop("checked")?t.closest(".dipl_content_toggle").children(".dipl_content_toggle_wrapper").children(".dipl_content_one_toggle").fadeOut(300,function(){t.closest(".dipl_content_toggle").children(".dipl_content_toggle_wrapper").children(".dipl_content_two_toggle").fadeIn(300,function(){n(t)})}):t.closest(".dipl_content_toggle").children(".dipl_content_toggle_wrapper").children(".dipl_content_two_toggle").fadeOut(300,function(){t.closest(".dipl_content_toggle").children(".dipl_content_toggle_wrapper").children(".dipl_content_one_toggle").fadeIn(300,function(){n(t)})})}),e("body").on("click",".dipl_toggle_title_value",function(){var t=e(this);t.hasClass("dipl_toggle_on_value")?!0!==t.closest(".dipl_toggle_button_wrapper").find(".dipl_toggle_field").prop("checked")&&t.closest(".dipl_toggle_button_wrapper").find(".dipl_toggle_field").trigger("click"):!0===t.closest(".dipl_toggle_button_wrapper").find(".dipl_toggle_field").prop("checked")&&t.closest(".dipl_toggle_button_wrapper").find(".dipl_toggle_field").trigger("click")})),jQuery("body").find(".dipl_timeline").length>0&&(e(window).resize(function(){e("body").find(".dipl_timeline").each(function(){var i=e(this);i.find(".dipl_timeline_item").length>0&&t(i)})}),e("body").find(".dipl_timeline").each(function(){var i=e(this);i.find(".dipl_timeline_item").length>0&&(t(i),i.find(".dipl_timeline_right .dipl_date_tree").length>0&&i.find(".dipl_timeline_right .dipl_date_tree").each(function(){var t,a,n=[];e(this).find(".dipl_stem_center").each(function(){var t=parseFloat(e(this).outerWidth());n.push(t)}),t=Math.max.apply(Math,n),i.find(".dipl_stem_center").length>0&&e(this).find(".dipl_stem_center").css("width",t),a=t/2,i.find(".dipl_stem_wrapper").css("left",a)}),i.find(".dipl_timeline_left .dipl_date_tree").length>0&&i.find(".dipl_timeline_left .dipl_date_tree").each(function(){var t,a,n=[];e(this).find(".dipl_stem_center").each(function(){var t=parseFloat(e(this).outerWidth());n.push(t)}),t=Math.max.apply(Math,n),i.find(".dipl_stem_center").length>0&&e(this).find(".dipl_stem_center").css("width",t),a=t/2,i.find(".dipl_stem_wrapper").css("right",a)}))})),jQuery("body").find(".dipl_separator").length>0&&e("body").find(".dipl_separator").each(function(){var t=e(this).find(".dipl-icon-wrapper").outerHeight(!0)/2;e(this).css("padding-top",t+"px"),e(this).css("padding-bottom",t+"px")}),e("body").find(".dipl_text_highlighter").length>0&&e("body").find(".dipl_text_highlighter").each(function(){e(this).find(".dipl_text_highlighter_inner_wrapper").length>0&&e(this).find(".st0").each(function(){var t=e(this);t.waypoint({handler:function(){t.css("animation-name","dipl-dash-animation")},offset:"100%"})})}),jQuery("body").find(".dipl_text_animator").length>0&&e("body").find(".dipl_text_animator").each(function(){var t=e(this),i=t.find(".animated_text"),a=[];""!==i.data("text")&&void 0!==i.data("text")&&(a=i.data("text").split("|").map(function(e){return e.trim()})),a.length>0&&(t.find(".dipl-fade").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):500,n=e.data("animation-time")?parseInt(e.data("animation-time")):1500,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));o=setInterval(function(){t.length===parseInt(d)+1?d=0:d+=1,e.removeClass("dipl-fadeIn"),e.addClass("dipl-fadeOut"),setTimeout(function(){e.fadeIn("100","swing",function(){e.removeClass("dipl-fadeOut"),e.addClass("dipl-fadeIn"),e.html(t[d])})},n)},a),e.data("interval-id",o)}(i,a),t.find(".dipl-flip").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):500,n=e.data("animation-time")?parseInt(e.data("animation-time")):1500,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));o=setInterval(function(){t.length===parseInt(d)+1?d=0:d+=1,e.removeClass("dipl-flipUpSecond"),e.addClass("dipl-flipUpFirst"),setTimeout(function(){e.fadeIn("100","swing",function(){e.removeClass("dipl-flipUpFirst"),e.addClass("dipl-flipUpSecond"),e.html(t[d])})},n)},a),e.data("interval-id",o)}(i,a),t.find(".dipl-typing").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):1e3,n=e.data("typing-time")?parseInt(e.data("typing-time")):800,o=e.data("erasing-time")?parseInt(e.data("erasing-time")):300,d=0,l=0,r=0;0!==i&&(clearInterval(i),e.html(""),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));var _=function i(){r<t[l].length?(e.text(e.text()+t[l].charAt(r)),r++,d=setTimeout(i,n),e.data("interval-id",d)):(d=setTimeout(s,a),e.data("interval-id",d))},s=function i(){r>0?(e.text(t[l].substring(0,r-1)),r--,d=setTimeout(i,o),e.data("interval-id",d)):(++l>=t.length&&(l=0),d=setTimeout(_,n),e.data("interval-id",d))};_()}(i,a),t.find(".dipl-slide").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):800,n=e.data("animation-time")?parseInt(e.data("animation-time")):300,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));o=setInterval(function(){t.length===parseInt(d)+1?d=0:d+=1,e.removeClass("dipl-slideIn"),e.addClass("dipl-slideOut"),setTimeout(function(){e.fadeIn("100","swing",function(){e.removeClass("dipl-slideOut"),e.addClass("dipl-slideIn"),e.html(t[d])})},n)},a),e.data("interval-id",o)}(i,a),t.find(".dipl-zoom").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):800,n=e.data("animation-time")?parseInt(e.data("animation-time")):300,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));o=setInterval(function(){t.length===parseInt(d)+1?d=0:d+=1,e.removeClass("dipl-zoomIn"),e.addClass("dipl-zoomOut"),setTimeout(function(){e.fadeIn("100","swing",function(){e.removeClass("dipl-zoomOut"),e.addClass("dipl-zoomIn"),e.html(t[d])})},n)},a),e.data("interval-id",o)}(i,a),t.find(".dipl-bounce").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):800,n=e.data("animation-time")?parseInt(e.data("animation-time")):300,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));o=setInterval(function(){t.length===parseInt(d)+1?d=0:d+=1,e.removeClass("dipl-bounceIn"),e.addClass("dipl-bounceOut"),setTimeout(function(){e.fadeIn("100","swing",function(){e.removeClass("dipl-bounceOut"),e.addClass("dipl-bounceIn"),e.html(t[d])})},n)},a),e.data("interval-id",o)}(i,a),t.find(".dipl-wipe").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):800,n=e.data("animation-time")?parseInt(e.data("animation-time")):300,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));o=setInterval(function(){t.length===parseInt(d)+1?d=0:d+=1,e.removeClass("dipl-wipeIn"),e.addClass("dipl-wipeOut"),setTimeout(function(){e.fadeIn("100","swing",function(){e.removeClass("dipl-wipeOut"),e.addClass("dipl-wipeIn"),e.html(t[d])})},n)},a),e.data("interval-id",o)}(i,a),t.find(".dipl-wave").length>0&&function(e,t){var i=e.data("interval-id")?parseInt(e.data("interval-id")):0,a=e.data("wait-time")?parseInt(e.data("wait-time")):800,n=e.data("animation-time")?parseInt(e.data("animation-time")):300,o=0,d=0;0!==i&&(clearInterval(i),e.removeClass("dipl-wipeIn dipl-wipeOut dipl-zoomIn dipl-zoomOut dipl-bounceIn dipl-bounceOut dipl-flipUpFirst dipl-flipUpSecond dipl-slideIn dipl-slideOut dipl-fadeIn dipl-fadeOut"));for(var l=[],r=function(e){for(var t=[],i=0;i<e.length;i++){var a=" "===e.charAt(i)?"&nbsp;":e.charAt(i),n=jQuery('<span class="dipl-wave-letter">'+a+"</span>");t.push(n)}l.push(t)},_=0;_<t.length;_++)r(t[_]);e.html(l[0]);var s=function(e,t){var i=parseInt(n/e.length);setTimeout(function(){e[t].removeClass("behind"),e[t].removeClass("in"),e[t].addClass("out")},t*i)},p=function(e,t){var i=parseInt(n/e.length);setTimeout(function(){e[t].removeClass("out"),e[t].removeClass("behind"),e[t].addClass("in")},t*i)};o=setInterval(function(){for(var t=l[d],i=l.length===d+1?l[0]:l[d+1],a=0;a<t.length;a++)s(t,a);setTimeout(function(){e.html(i);for(var t=0;t<i.length;t++)i[t].removeClass("out"),i[t].addClass("behind"),p(i,t)},n),d=l.length===d+1?0:d+1},a),e.data("interval-id",o)}(i,a))})}),jQuery(window).load(function(){if(jQuery("body").find(".dipl_flipbox").length>0){jQuery("body").find(".dipl_flipbox").imagesLoaded({background:".flipbox_side"}).progress(function(){jQuery("body").find(".dipl_flipbox").each(function(){var e=Math.max.apply(null,jQuery(this).find(".flipbox_side").map(function(){return jQuery(this).outerHeight()}).get());jQuery(this).find(".flipbox_side").each(function(){jQuery(this).css("height",e+"px")})})});var e=["top","right","bottom","left"],t=["diagonalLeft","diagonalRight","diagonalLeftInverted","diagonalRightInverted"];jQuery("body").find(".dipl_flipbox .layout1").each(function(){var i=jQuery(this).attr("flip-direction");-1!==jQuery.inArray(i,e)&&jQuery(this).find(".flipbox_side").addClass("el-transition"),-1!==jQuery.inArray(i,t)&&(jQuery(this).addClass("el-transition"),jQuery(this).find(".flipbox_side").addClass("el-transition"))}),jQuery("body").find(".dipl_flipbox .layout2").each(function(){jQuery(this).addClass("el-transition")})}jQuery("body").find(".dipl_button_horizontal_shutter_fill").length>0&&jQuery(".dipl_button_horizontal_shutter_fill").on("mouseenter",function(){var e=jQuery(this).parents(".et_pb_module").prop("class").match(/dipl_button_item_\d+/);if(jQuery('head style[data-class="'+e+'"]').length<1){var t=jQuery(this).innerWidth(),i='<style data-class="'+e+'">.dipl_button .'+e+" .dipl_button_horizontal_shutter_fill .dipl_background_effect_wrap:before{"+("background-position: "+parseInt(t/2)+"px center")+"} .dipl_button ."+e+" .dipl_button_horizontal_shutter_fill .dipl_background_effect_wrap:after{"+("background-position: -"+parseInt(t/2)+"px center")+"}</style>";jQuery("head").append(i)}}),jQuery("body").find(".dipl_button_vertical_shutter_fill").length>0&&jQuery(".dipl_button_vertical_shutter_fill").on("mouseenter",function(){var e=jQuery(this).parents(".et_pb_module").prop("class").match(/dipl_button_item_\d+/);if(jQuery('head style[data-class="'+e+'"]').length<1){var t=jQuery(this).innerHeight(),i='<style data-class="'+e+'">.dipl_button .'+e+" .dipl_button_vertical_shutter_fill .dipl_background_effect_wrap:before{"+("background-position: center "+parseInt(t/2)+"px")+"} .dipl_button ."+e+" .dipl_button_vertical_shutter_fill .dipl_background_effect_wrap:after{"+("background-position: center -"+parseInt(t/2)+"px")+"}</style>";jQuery("head").append(i)}})})}]);
(function($){
$(function(){
var user_agent=navigator.userAgent;
var is_opera_edge;
var browser=user_agent.match(/(opera|chrome|safari|firefox|msie|trident(?=\/))/i)||[];
var browser_name='';
var browser_class='';
if(/trident/i.test(browser[0]) ){
browser_name='ie';
}else if(browser[0]==='Chrome'){
is_opera_edge=user_agent.match(/\b(OPR|Edge)/);
if(is_opera_edge!==null){
browser_name=is_opera_edge[0].replace('OPR', 'opera');
}}
if(''===browser_name){
if('standalone' in window.navigator&&!window.navigator.standalone){
browser_name='uiwebview';
}else{
browser_name=browser[0]&&''!==browser[0] ? browser[0]:navigator.appName;
}}
browser_name=browser_name.toLowerCase();
switch(browser_name){
case 'msie' :
browser_class='ie';
break;
case 'firefox' :
browser_class='gecko';
break;
default :
browser_class=browser_name;
break;
}
if(user_agent.match(/iPhone/)){
browser_class +=' iphone';
}
$('body').addClass(browser_class);
});
})(jQuery);
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});