function listingEnquire(){$(".propertyList .proListEnq").click(function(n){n.preventDefault();$(".overlay,.enquireForm").fadeIn();hideEnqList()});$(".overlay,.closeEnq").click(function(n){n.preventDefault();$(".overlay,.enquireForm").fadeOut()})}function budgetClick(){$(".amt input").click(function(n){n.stopPropagation();$(".amtList").hide();$(this).parent(".amt").find(".amtList").show()});$(".amtList li").click(function(){$(".amtList").hide();$(this).parents(".amt").find("input").val($(this).text())});$("body").not(".amt input").click(function(){$(".amtList").hide()})}function filterMobheight(){$(".filterSide").css("height",winHeight-($(".mobHeading").height()+$(".apply").height()))}function hideEnqList(){$(".projectDetailEnquiry .selldof_row").eq(3).hide()}function makeImagesResponsive(){var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=document.getElementsByTagName("body")[0].getElementsByTagName("img"),f,h,s,p,w,b,k,l;if(0!==o.length)for(f=o[0].hasAttribute?function(n,t){return n.hasAttribute(t)}:function(n,t){return null!==n.getAttribute(t)},h=window.devicePixelRatio&&window.devicePixelRatio>=1.2?1:0,s=0;sw[1]):e=i<=u[1]:(u=c.split(">"),r[t+1])?(b=r[t+1].split(/:(.+)/),k=b[0].split(">"),e=i>=u[1]&&i=u[1],e){l=d+nt;n.src!==l&&n.setAttribute("src",l);break}}}}function initProjectDetailsTop(){$(".projectDetailsContainer .leftPart").length&&($(window).width()<768?initMobile():initDesktop());$(".proj_theme2_banner").length&&initMobile();$(".proj-detail-t3-top").length&&theme3DetailBanner()}function theme3DetailBanner(){$(".proDetailt3").owlCarousel({stagePadding:0,lazyLoad:!0,center:!0,loop:!0,items:1,nav:!0,dots:!1,responsive:{768:{items:1,stagePadding:.2*winWidth}}});winWidth>767&&$(".owl-prev,.owl-next").width($(".proDetailt3 .owl-stage").css("padding-Left"))}function initMobile(){$(".leftPart").hide();$(".rightPart").hide();$(".proj_detail_gal").owlCarousel({stagePadding:0,lazyLoad:!0,center:!0,loop:!0,items:1,nav:!0,dots:!1});$(".slideCounter").text("1 of "+$(".proj_detail_gal .item").length/2);$(".owl-carousel").on("changed.owl.carousel",function(n){var t=n.item.index-1;$(".slideCounter").text(t+" of "+n.item.count)})}function initDesktop(){$(".rightPart").height($(".leftPart").height());$(".rightPart img").height($(".leftPart").height()/2-5);var n=$(".proj_detail_gal div").length-3;$(".imgCount span").text("+"+n);$(".projectDetailsContainer img").each(function(n){$(this).on("click",function(){openLightBox(".proj_detail_gal",n);showGal(".proj_detail_gal",n)})});$(".imgCount").click(function(){openLightBox();showGal(".proj_detail_gal",2)})}function showGal(n,t){currGalDiv=n;$(n).fadeIn();$(n).owlCarousel({startPosition:t,stagePadding:0,lazyLoad:!0,center:!0,loop:!0,items:1,nav:!0,dots:!1})}function hideGal(n){$(n).owlCarousel("destroy");$(n).hide()}function readMore(){$(".progDesc a,.phaseDiv a,.circleMain a").click(function(n){n.preventDefault();$(".proj_phase_gal .item").remove();var t=$(this).data("img").split(",");$.each(t,function(n){$(".proj_phase_gal").append('
<\/div>')});openLightBox();showGal(".proj_phase_gal",0)})}function detailStickNav(){var n=$(window).scrollTop();$(".proj_theme2_banner").length?n>$(".proj_theme2_banner").height()+$(".navigationBar").height()+$(".topHeader").height()?$(".navigationBar").removeClass("wow fadeInDown ").addClass("fixed").css("visibilty","visible"):$(".navigationBar").removeClass("fixed"):n>$("#overview").position().top-$(".navigationBar").height()-$(".topHeader").height()?$(".navigationBar").removeClass("wow fadeInDown ").addClass("fixed").css("visibilty","visible"):$(".navigationBar").removeClass("fixed");n>$(".topHeader2").position().top?($(".topHeader").addClass("detailThFix"),$(".topHeader2").css("padding-top",$(".topHeader").outerHeight())):($(".topHeader").removeClass("detailThFix"),$(".topHeader2").css("padding-top",0))}function detailsView(){$(".configRight:first,.tabsRoomType:first").show();$(".tabsline li").click(function(){$(this).parent(".tabsline").find("a").removeClass("active");$(this).find("a").addClass("active");detailImageAnim()});$(".roomType li").click(function(){$(".tabsRoomType").removeClass("active").hide().eq($(this).index()).addClass("active").show();$(".tabsRoomType.active .areaTabs li a.active").trigger("click")});$(".areaTabs li").click(function(){var n=$(this).data("area");$(this).parents(".tabsRoomType").find(".detailsArea div").hide().eq($(this).index()).show();$(".configRight").hide();$(".configRight."+n).show()});$(".detailPhoto li").click(function(){$(this).parents(".configRight").find(".viewImg img").hide().eq($(this).index()).fadeIn()});$(".tabsline a").click(function(n){n.preventDefault()})}function phaseAnim(){if($(".progDesc ").length&&$(window).scrollTop()>$(".project360").position().top-$(".project360").height()/2){var n=500;$(".projectProgress li span.projStat").each(function(t){$(this).delay(t*n).animate({width:"100%"},n,function(){$(".projectProgress li .progDesc").each(function(t){$(this).delay(t*n).animate({opacity:"1"},n)})})})}}function project360View(){$(".project360").click(function(){openLightBox();$(".project360View").fadeIn()});$(".project360").one("click",function(){$(".project360View iframe").attr("src",$(".project360View iframe").data("src")).removeAttr("data-src")});$(".lightbox").click(function(){$(".project360View").fadeOut()})}function projectDetailMap(){$(".projectLocation a").click(function(n){n.preventDefault();openLightBox();$(".mapDiv").fadeIn()});$(".lightbox").click(function(){$(".mapDiv").fadeOut()})}function detailImageAnim(){$(".viewImg img").removeClass("animated").addClass("animated").css("visibilty","visible")}function bsT2Carousel(){var n=$(".bsT2Carousel");$("html").hasClass("mobile")&&n.owlCarousel({items:1,touchDrag:!0,mouseDrag:!1})}function PdPanaromic360(){var n=$(".PdPanaromic360");n.owlCarousel({items:1,itemsDesktop:[1e3,5],itemsDesktopSmall:[900,3],itemsTablet:[600,1],itemsMobile:!1,touchDrag:!0,mouseDrag:!0,nav:!0,navText:[" <\/span>"," <\/span>"]})}function outdoorSlider(){$(".outdoorAmenities").owlCarousel({nav:!0,navText:[" <\/span>"," <\/span>"],responsiveClass:!0,responsive:{0:{items:1,nav:!0},600:{items:3,nav:!1},1e3:{items:4,nav:!0,loop:!1}}})}function detailTwoEnquire(){$(".projectDetailbtn").click(function(n){n.preventDefault();$(".detailTwoEnq").removeClass("wow zoomIn animated");$(".lightbox,.detailTwoEnq").fadeIn()});$(".lightbox").click(function(){$(".lightbox,.detailTwoEnq").fadeOut()})}function pdt3Slider(){$(".proDetailt3").owlCarousel({center:!0,loop:!0,margin:0,stagePadding:$(window).width()/4,nav:!1,dots:!1})}function phasegGalleryClick(){$("html").on("click",".proj_phase_gal .owl-item",function(){$(".proj_phase_gal").owlCarousel("destroy");$(".proj_phase_gal,.lightbox").hide()});$("html").on("click",".proj_phase_gal .item",function(n){n.stopPropagation()})}function equalHeightAmenities(){var n=$(".projDetailT3 .AmenitiesConatiner").height(),t=$(".projDetailT3 .projectT360 ").height();n>t?$(".projDetailT3 .projectT360 ").outerHeight(n):$(".projDetailT3 .AmenitiesConatiner").outerHeight(t)}function iconHover(n){var t,r,i;$(n).hover(function(){t=$(this).find("img");i=t.attr("src").split("/");r=i[i.length-1];imgName=r.split(".");$(t).attr("src","/assets/images/"+imgName[0]+"_.gif")},function(){$(t).attr("src","/assets/images/"+imgName[0]+".gif")})}function hideProjectsType(){$(".projectDetailEnquiry .selldof_row").eq(3).hide()}function makeImagesResponsive(){var i=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,o=document.getElementsByTagName("body")[0].getElementsByTagName("img"),f,h,s,p,w,b,k,l;if(0!==o.length)for(f=o[0].hasAttribute?function(n,t){return n.hasAttribute(t)}:function(n,t){return null!==n.getAttribute(t)},h=window.devicePixelRatio&&window.devicePixelRatio>=1.2?1:0,s=0;sw[1]):e=i<=u[1]:(u=c.split(">"),r[t+1])?(b=r[t+1].split(/:(.+)/),k=b[0].split(">"),e=i>=u[1]&&i=u[1],e){l=d+nt;n.src!==l&&n.setAttribute("src",l);break}}}}function formValidation(){var n=!1;$(".required").on("blur",function(){var t=$(this).parent().find(".error_message"),i=$(this).parent();$.empty_field_validation($(this).val())?(t.html(""),t.css("display","none"),i.removeClass("error"),n=!1):(t.html("This field is required."),t.css("display","block"),i.addClass("error"),n=!0)});$(".alphabateOnly").keypress(function(n){var t=$(this).parent().find(".error_message"),i=n.which;return i>=65&&i<=122||32==i||0==i?(t.html(""),void t.css("display","none")):(t.html("Characters only."),t.css("display","block"),n.preventDefault(),!1)});$(".numbersOnly").keypress(function(n){var t=$(this).parent().find(".error_message");return 8!=n.which&&0!=n.which&&(n.which<48||n.which>57)?(t.html("Number only."),t.css("display","block"),!1):(t.html(""),void t.css("display","none"))});$(".interestkey").ForceNumericOnly();$(".interestkey").keypress(function(){$(this).val()>3.99&&$(this).val()<20||$(this).val("")});$(".email").on("blur",function(){var t=$(this).parent().find(".error_message"),i=$(this).parent();$.email_validation($(this).val())?(t.html(""),t.css("display","none"),i.removeClass("error"),n=!1):(t.html("Expected Input: email"),t.css("display","block"),i.addClass("error"),n=!0)})}function openLightBox(){$(".lightbox").show()}function closeLightBox(){$(".lightbox").hide();$(currGalDiv).hide()}function mainMenu(){$("html").hasClass("touch")&&$(".menuIcon").click(function(){$(this).toggleClass("open");$(".mainMenu").fadeToggle();$(".mainMenu li").toggleClass("animate");$(window).width()<767&&$("header").toggleClass("he100")})}function headerForms(){$(".mainSection").css("padding-top",$("header").outerHeight(!0));$(".toplink li.hasDp").click(function(n){n.preventDefault();var t=$(this);t.siblings().find(".headerCallMeForm").slideUp(100);$(".toplink li").removeClass("active");$(".toplink li").removeClass("headerActive");t.hasClass("active")?($(".error_message").hide(),t.removeClass("active"),t.children(".headerCallMeForm").slideUp(500)):(t.addClass("active"),setTimeout(function(){t.addClass("headerActive")},300),t.children(".headerCallMeForm").slideDown(500))});$("html").not($(".headerCallMeForm")).click(function(){$(".headerCallMeForm").each(function(){$(this).parent().hasClass("headerActive")&&($(".headerCallMeForm").slideUp(100),$(".toplink li").removeClass("active"),$(".headerCallMeForm .error_message").hide())})});$(".headerCallMeForm").click(function(){})}function sHeight(){var n=$(".allProjects .project").height(),t=$(".allProjects .project").width();$(".project .info").height(n);$(".info .innerSect").height(n-40);$(".info .innerSect").width(t-40);$(".allProjects .project").hover(function(){$(this).find(".info").fadeIn(500)},function(){$(".info").stop(!0,!1).fadeOut(500)})}function menuFadeIn(){}function heightAdjust(n,t){var i=0;$(n).find(".eq-height").each(function(){t?$(this).height()>i&&(i=$(this).height(),console.log(i)):$(this).outerHeight()>i&&(i=$(this).outerHeight())});$(window).width()>992&&(t?$(n).find(".eq-height").height(i):$(n).find(".eq-height").css({"min-height":i+"px"}))}function wowAnime(){$(".wow").each(function(){var n=$(this).height();$("body").hasClass("home")?$(this).attr("data-wow-offset",.85*n):$(this).attr("data-wow-offset",.05*n)});new WOW({mobile:!1}).init()}function selectBoxInit(){$("select").each(function(){$(this).selectBox()});$(".selectBox-options li a").click(function(n){n.stopPropagation()})}function headerScroll(){}function homePropSlider(){winWidth<768&&$(".smartTech1").owlCarousel({items:1,autoplay:!0,nav:!1,loop:!0,mouseDrag:!1,responsive:{300:{items:1,stagePadding:25},360:{items:1,stagePadding:25},400:{items:1,stagePadding:60},768:{items:3}}})}function tabs(){$(".tabs").on("click",".tabNav > li > a",function(n){n.preventDefault();var i=$(this),t=i.parent(),r=t.index();t.hasClass("active")||(t.siblings("li").removeClass("active"),t.parent(".tabNav").next(".tabContents").find(".projectContent").removeClass("active").hide(),t.addClass("active"),t.parent(".tabNav").next(".tabContents").find(".projectContent").eq(r).addClass("active").fadeIn(),$("#emiPieChart").length&&generateChart());$(".projects").length&&($(".project").removeClass("zoomIn animated"),$(".projectContent.active .project").addClass("animated zoomIn"));$(".detail3Phase").length&&($(".detail3Phase .circle").removeClass("rollIn animated wow").css({"animation-delay":"","animation-name":""}),$(".active .detail3Phase .circle").addClass("animated rollIn"))})}function logoOffset(){var n=$(".logo").offset();winWidth>991?$(".blockOffset").css({"padding-left":n.left-15+"px"}):winWidth<991&&winWidth>767&&($(".nopad").addClass("blockOffset"),$(".blockOffset").css({"padding-left":n.left-15+"px","padding-right":n.left-15+"px"}))}function mapHeight(){if(winWidth>991){var n=$(".blockOffset").height();$(".mapwrap").css({height:n-200+"px"})}}function imageGallery(){for(var t=$(".imgGallery ul li"),r=t.length,i=0,n=0;n1?r=(this.getAttribute("data-multiple-caption")||"").replace("{count}",this.files.length):n.target.value&&(r=n.target.value.split("\\").pop());r?t.find("span").html(r):t.html(i)});n.on("focus",function(){n.addClass("has-focus")}).on("blur",function(){n.removeClass("has-focus")})})})}function listProjectSlider(){$(".slider").each(function(){$(this).find(".item").length>1&&$(this).owlCarousel({center:!0,loop:!0,items:1,nav:!0,dots:!1})})}function filterMore(){$(".ctaMoreFilter").click(function(n){n.preventDefault();$(".projectDetails").length?$(this).parent().hasClass("projectDescription")?$(this).prev().slideToggle(400):$(this).parent().prev().slideToggle(400):$(this).prev().slideToggle(400);var t=$(this).text();$(this).text("- Less"==t?"+ More":"- Less")});$(document).on("click",".removeFilter a",function(n){n.preventDefault();$(this).parent().remove()});$(".reset,.Restet a").click(function(n){n.preventDefault();$(".filterCont").find("input").prop("checked",!1);$(".budgetCont input,.filterSearch input").val("");$(".removeFilter").remove()});$(".filterBox").click(function(){$(".mobFilter").show();filterMobheight()})}function accordian(){$(".tab_drawer_heading").click(function(){$(this).next("div").slideToggle();$(this).next("div").siblings(".tab_content").slideUp()})}function escapeClose(){$(document).keydown(function(n){27==n.keyCode&&$(".lightbox,.overlay").length&&$(".lightbox,.overlay").trigger("click")})}function homePage(){$(".owl-carousel").length>0&&$("#smartTech").owlCarousel({center:!0,loop:!0,navSpeed:1e3,mouseDrag:!1,autoplaySpeed:1e3,autoplayTimeout:5e3,navSpeed:1e3,autoplayHoverPause:!0,items:1,autoHeight:!1,autoplay:!0,nav:!0,navText:["",""]});winWidth<768&&$("#smartTech .item").each(function(){var n=$(this).find(".slideContent h3");$(this).find(".slideContent h3").remove();n.insertBefore($(this).children(".slideImage"))});$(window).one("scroll",function(){$("html, body").animate({scrollTop:$(".ideaSlider").offset().top-100},600)});$(".scrollUp").click(function(){$("html, body").animate({scrollTop:0},1e3)});topBanner();homePropSlider()}function homePropSlider(){winWidth<768&&$(".smartTech1").owlCarousel({items:1,autoplay:!0,nav:!1,loop:!0,mouseDrag:!1,responsive:{300:{items:1,stagePadding:25},360:{items:1,stagePadding:25},400:{items:1,stagePadding:60},768:{items:3}}})}function topBanner(){$(".scrollDown a").click(function(n){n.preventDefault();$("html, body").animate({scrollTop:$(".ideaSlider").offset().top-100},600)})}function footLinkTabs(){if(window.location.hash){var n=window.location.hash.split("#")[1];"emiTab"==n?$(".buyerSection .tabNav a.emi").trigger("click"):"loanTab"==n&&$(".buyerSection .tabNav a.loan").trigger("click");$("html, body").scrollTop(0)}}function closeDiv(){$(".closeDiv").click(function(){$(".lightbox").trigger("click")})}function innerScroll1(){$(window).scrollTop()>=1&&$(window).scrollTop($(window).scrollTop()+1)}function galleryCarousel(n,t){var i=0;$(".galleryWrap").length&&($(n),winWidth<992?($(n).addClass("owl-carousel"),$(n).owlCarousel({loop:!1,nav:!0,dots:!1,items:1,itemElement:"div",stageElement:"div",margin:10,responsive:{0:{items:1},480:{items:2},640:{items:3}},info:!0})):($(n).removeClass("owl-carousel"),$(n).trigger("destroy.owl.carousel"),$(n).find(".owl-stage-outer").children(":eq(0)").unwrap()),$(n).find("li").click(function(){var r=0,u=$(this).html();$(n).find("li").each(function(){u==$(this).html()&&(i=r);r++});openLightBox();showGal(t,i)}))}function GetData(n,t,i,r){$.ajax({type:"POST",url:n,data:t,contentType:"application/json; charset=utf-8",dataType:"json",success:i,failure:r})}function GetDataSynchronus(n,t,i,r){$.ajax({type:"POST",url:n,data:t,contentType:"application/json",dataType:"json",success:i,failure:r,async:!1})}function GetDataHTML(n,t,i,r){$.ajax({type:"POST",url:n,data:t,contentType:"application/json",dataType:"html",success:i,failure:r})}function FormatDate_YYYYMMDD(n){var t="",i;return n!=""&&(i=new Date(n),t=i.format("yyyyMMdd")),t}function FormatJSONDate(n){var t=n,r=t.substring(6,t.length-2),i=new Date(parseInt(r));return[i.format("HH:mm"),i.format("dd MMM yyyy")]}function FormatAmount(n,t){t=typeof t!="undefined"?t:2;n=parseFloat(n).toFixed(t);var i=3+(t>0?t+1:0),r=5+(t>0?t+1:0),u=7+(t>0?t+1:0);return n.length>i&&n.length<=r?n=n.substring(0,n.length-i)+","+n.substring(n.length-i,n.length):n.length>r&&n.length<=u&&(n=n.substring(0,n.length-r)+","+n.substring(n.length-r,n.length-i)+","+n.substring(n.length-i,n.length)),n}function getCookieValue(n){return document.cookie.split(n+"=").pop().split(";").shift()}function BullionLeftMenu(){var n=location.pathname}function AllowNumber(n){$(n).keypress(function(n){return n.which!=8&&n.which!=0&&(n.which<48||n.which>57)?!1:!0})}function BindSearchBorrowerData(){}function ValidateHeaderEnquiryForm(){var n=!0,u=$("#Name").val(),i=$("#Phone").val(),r=$("#Email").val(),t;return u==""&&($("#name_validation").html("This field is required."),n=!1),i==""?($("#phone_validation").html("This field is required."),n=!1):(t=validate("mobile",i),t||($("#phone_validation").html("Please enter valid phone."),$("#phone_validation").css("display","block"),n=!1)),r==""?($("#email_validation").html("This field is required."),n=!1):(t=validate("email",r),t||($("#email_validation").html("Please enter valid email."),$("#email_validation").css("display","block"),n=!1)),n}function Clear(){$(".cleartxt").val("");$(".clearmsg").html("");$(".clearddl").prop("selectedIndex",0)}function ValidateNewsletter(){var n=!0,t=$("#EmailId").val();return t==""?($("#erroremail").html("Please enter email."),n=!1):t!=""&&(n=validate("email",t),n||($("#erroremail").html("Please enter valid email."),n=!1)),n}function MediaCount(){}function functionx(n){if(n.charCode>31&&(n.charCode<48||n.charCode>57))return!1}function onlyAlphabets(n){var t;try{if(window.event)t=window.event.keyCode;else if(n)t=n.which;else return!0;return t>64&&t<91||t>96&&t<123?!0:!1}catch(i){alert(i.Description)}}function getRegEx(n){var t;switch(n){case"letter":t=/^[A-Za-z]+$/;break;case"number":t=/^[0-9]+$/;break;case"decimal":t=/^[0-9]+\.[0-9]+$/;break;case"pan":t=/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;break;case"email":t=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;break;case"mobile":t=/^\d{10}$/;break;case"folio":t=/^\d{8}$/;break;case"ifsc":t=/^([a-zA-Z]){4}([0]){1}([0-9a-zA-Z]){6}?$/;break;case"fax":t=/^[0-9]{1,10}$/;break;case"arn":t=/^([ARN]){3}([\-]){1}([0-9]){6}([\-]){1}([0-9]){1}?$/;break;case"letter_number":t=/^[0-9a-zA-Z]+$/;break;case"taxid":t=/^[0-9a-zA-Z]{10}?$/;break;case"accountno":t=/^[0-9]{5,20}$/;break;case"password":t=/^(?=.*\d)(?=.*[A-Z])(?=.*[^a-zA-Z0-9])(?!.*\s).{8,20}$/;break;case"fullname":t=/^[a-zA-Z\s]*$/;break;case"validatemobile":t=/^(\d)(?!\1+$)\d{09}$/;break;case"validatefirstname":t=/^(?!')(?=.*[a-zA-Z])[a-zA-Z']*$/;break;case"validateemailid":t=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;break;default:t=""}return t}function validate(n,t){var i=getRegEx(n);if(i!="")return i.test(t)}function ValidatePDEnquiryForm(){var n=!0,u=$("#PDName").val(),i=$("#PDPhone").val(),r=$("#PDEmail").val(),t;return u==""&&($("#PDname_validation").html("This field is required."),n=!1),i==""?($("#PDphone_validation").html("This field is required."),n=!1):i!=""&&(t=validate("mobile",i),t||($("#PDphone_validation").html("Please enter valid phone."),$("#PDphone_validation").css("display","block"),n=!1)),r==""?($("#PDemail_validation").html("This field is required."),n=!1):r!=""&&(t=validate("email",r),t||($("#PDemail_validation").html("Please enter valid email."),$("#PDemail_validation").css("display","block"),n=!1)),n}function Clear(){$(".cleartxt").val("");$(".clearmsg").html("")}var getQueryString;if($(".back_arrow").click(function(){$(".mobFilter").hide();filterMobheight()}),this.fitie=function(n){function f(){var a,w,c;v.call(n,e+s,f);a={boxSizing:"content-box",display:"inline-block",overflow:"hidden"};"backgroundColor backgroundImage borderColor borderStyle borderWidth bottom fontSize lineHeight height left opacity margin position right top visibility width".replace(/\w+/g,function(n){a[n]=l[n]});t.border=t.margin=t.padding=0;t.display="block";t.height=t.width="auto";t.opacity=1;var b=n.videoWidth||n.width,k=n.videoHeight||n.height,y=b/k,p=document.createElement("object-fit");p.appendChild(n.parentNode.replaceChild(p,n));for(w in a)p.runtimeStyle[w]=a[w];"fill"===u?o?(t.width=i,t.height=r):(t["-ms-transform-origin"]="0% 0%",t["-ms-transform"]="scale("+i/b+","+r/k+")"):(h>y?"contain"===u:"cover"===u)?(c=r*y,t.width=Math.round(c)+"px",t.height=r+"px",t.marginLeft=Math.round((i-c)/2)+"px"):(c=i/y,t.width=i+"px",t.height=Math.round(c)+"px",t.marginTop=Math.round((r-c)/2)+"px")}var u=n.currentStyle["object-fit"];if(u&&/^(contain|cover|fill)$/.test(u)){var i=n.clientWidth,r=n.clientHeight,h=i/r,c=n.nodeName.toLowerCase(),t=n.runtimeStyle,l=n.currentStyle,a=n.addEventListener||n.attachEvent,v=n.removeEventListener||n.detachEvent,e=n.addEventListener?"":"on",o="img"===c,s=o?"load":"loadedmetadata";a.call(n,e+s,f);n.complete&&f()}},this.fitie.init=function(){if(document.body)for(var n=document.querySelectorAll("img,video"),t=-1;n[++t];)fitie(n[t]);else setTimeout(fitie.init)},/MSIE|Trident/.test(navigator.userAgent)&&this.fitie.init(),window.addEventListener?(window.addEventListener("load",makeImagesResponsive,!1),window.addEventListener("resize",makeImagesResponsive,!1)):(window.attachEvent("onload",makeImagesResponsive),window.attachEvent("onresize",makeImagesResponsive)),this.fitie=function(n){function f(){var a,w,c;v.call(n,e+s,f);a={boxSizing:"content-box",display:"inline-block",overflow:"hidden"};"backgroundColor backgroundImage borderColor borderStyle borderWidth bottom fontSize lineHeight height left opacity margin position right top visibility width".replace(/\w+/g,function(n){a[n]=l[n]});t.border=t.margin=t.padding=0;t.display="block";t.height=t.width="auto";t.opacity=1;var b=n.videoWidth||n.width,k=n.videoHeight||n.height,y=b/k,p=document.createElement("object-fit");p.appendChild(n.parentNode.replaceChild(p,n));for(w in a)p.runtimeStyle[w]=a[w];"fill"===u?o?(t.width=i,t.height=r):(t["-ms-transform-origin"]="0% 0%",t["-ms-transform"]="scale("+i/b+","+r/k+")"):(h>y?"contain"===u:"cover"===u)?(c=r*y,t.width=Math.round(c)+"px",t.height=r+"px",t.marginLeft=Math.round((i-c)/2)+"px"):(c=i/y,t.width=i+"px",t.height=Math.round(c)+"px",t.marginTop=Math.round((r-c)/2)+"px")}var u=n.currentStyle["object-fit"];if(u&&/^(contain|cover|fill)$/.test(u)){var i=n.clientWidth,r=n.clientHeight,h=i/r,c=n.nodeName.toLowerCase(),t=n.runtimeStyle,l=n.currentStyle,a=n.addEventListener||n.attachEvent,v=n.removeEventListener||n.detachEvent,e=n.addEventListener?"":"on",o="img"===c,s=o?"load":"loadedmetadata";a.call(n,e+s,f);n.complete&&f()}},this.fitie.init=function(){if(document.body)for(var n=document.querySelectorAll("img,video"),t=-1;n[++t];)fitie(n[t]);else setTimeout(fitie.init)},/MSIE|Trident/.test(navigator.userAgent)&&this.fitie.init(),window.addEventListener?(window.addEventListener("load",makeImagesResponsive,!1),window.addEventListener("resize",makeImagesResponsive,!1)):(window.attachEvent("onload",makeImagesResponsive),window.attachEvent("onresize",makeImagesResponsive)),window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function at(n,t){return l(p.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function v(n,t){return!!~(""+n).indexOf(t)}function ut(n,t){var u,r;for(u in n)if(r=n[u],!v(r,"-")&&c[r]!==i)return"pfx"!=t||r;return!1}function vt(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+st.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ut(u,t):(u=(n+" "+ht.join(r+" ")+r).split(" "),vt(u,t,i))}function yt(){u.input=function(i){for(var r=0,u=i.length;r',n,"<\/style>"].join(""),f.id=e,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=s.style.overflow,s.style.overflow="hidden",s.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),s.style.overflow=v),!!a},pt=function(t){var i=n.matchMedia||n.msMatchMedia,r;return i?i(t).matches:(a("@media "+t+" { #"+e+" { position: absolute; } }",function(t){r="absolute"==(n.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position}),r)},lt=function(){function n(n,u){u=u||t.createElement(r[n]||"div");n="on"+n;var f=n in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(n,""),f=h(u[n],"function"),h(u[n],"undefined")||(u[n]=i),u.removeAttribute(n))),u=null,f}var r={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return n}(),rt={}.hasOwnProperty,k;d=h(rt,"undefined")||h(rt.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return rt.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if("function"!=typeof t)throw new TypeError;return i=it.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(it.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(it.call(arguments)))},r});r.flexbox=function(){return f("flexWrap")};r.flexboxlegacy=function(){return f("boxDirection")};r.canvas=function(){var n=t.createElement("canvas");return!(!n.getContext||!n.getContext("2d"))};r.canvastext=function(){return!(!u.canvas||!h(t.createElement("canvas").getContext("2d").fillText,"function"))};r.webgl=function(){return!!n.WebGLRenderingContext};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:a(["@media (",p.join("touch-enabled),("),e,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=9===n.offsetTop}),i};r.geolocation=function(){return"geolocation"in navigator};r.postmessage=function(){return!!n.postMessage};r.websqldatabase=function(){return!!n.openDatabase};r.indexedDB=function(){return!!f("indexedDB",n)};r.hashchange=function(){return lt("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!(!n.history||!history.pushState)};r.draganddrop=function(){var n=t.createElement("div");return"draggable"in n||"ondragstart"in n&&"ondrop"in n};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),v(c.backgroundColor,"rgba")};r.hsla=function(){return l("background-color:hsla(120,40%,100%,.5)"),v(c.backgroundColor,"rgba")||v(c.backgroundColor,"hsla")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return f("backgroundSize")};r.borderimage=function(){return f("borderImage")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return""===t.createElement("div").style.textShadow};r.opacity=function(){return at("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return f("animationName")};r.csscolumns=function(){return f("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+p.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),v(c.backgroundImage,"gradient")};r.cssreflections=function(){return f("boxReflect")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in s.style&&a("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=9===t.offsetLeft&&3===t.offsetHeight}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return a('@font-face {font-family:"font";src:url("https:///")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&0===e.indexOf(r.split(" ")[0])}),n};r.generatedcontent=function(){var n;return a(["#",e,"{font:0/0 a}#",e,':after{content:"',nt,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.video=function(){var i=t.createElement("video"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=i.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=i.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(r){}return n};r.audio=function(){var i=t.createElement("audio"),n=!1;try{(n=!!i.canPlayType)&&(n=new Boolean(n),n.ogg=i.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=i.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=i.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(i.canPlayType("audio/x-m4a;")||i.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(r){}return n};r.localstorage=function(){try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(n){return!1}};r.sessionstorage=function(){try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(n){return!1}};r.webworkers=function(){return!!n.Worker};r.applicationcache=function(){return!!n.applicationCache};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(w.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="",(n.firstChild&&n.firstChild.namespaceURI)==w.svg};r.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(et.call(t.createElementNS(w.svg,"animate")))};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(et.call(t.createElementNS(w.svg,"clipPath")))};for(k in r)d(r,k)&&(y=k.toLowerCase(),u[y]=r[k](),tt.push((u[y]?"":"no-")+y));return u.input||yt(),u.addTest=function(n,t){if("object"==typeof n)for(var r in n)d(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t="function"==typeof t?t():t;"undefined"!=typeof g&&g&&(s.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),ft=o=null,function(n,t){function v(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x