PageSourceSearch

https://thukralcapital.com/wp-content/plugins/codevz-plus/assets/codevzplus.js

js thukralcapital.com collected 2026-10-02 01:46:38 UTC 90,655 bytes, 1,291 lines download raw bytes

vendor: 4,201 bytes, lines 1-5
1/* Custom easing */
2!function(n){"use strict";n.easing.jswing=n.easing.swing,n.extend(n.easing,{swing:function(n,t,e,i,s){return 0==t?e:t==s?e+i:(t/=s/2)<1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e},easeInOutExpo:function(n,t,e,i,s){return 0==t?e:t==s?e+i:(t/=s/2)<1?i/2*Math.pow(2,10*(t-1))+e:i/2*(2-Math.pow(2,-10*--t))+e}})}(jQuery);
3
4/* imagesLoaded PACKAGED v4.1.3 */
5!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-1==n.indexOf(t)&&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-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=0,o=i[n];t=t||[];for(var r=this._onceEvents&&this._onceEvents[e];o;){var s=r&&r[o];s&&(this.off(e,o),delete r[o]),o.apply(this,t),n+=s?0:1,o=i[n]}return this}},t.allOff=t.removeAllListeners=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){var t=[];if(Array.isArray(e))t=e;else if("number"==typeof e.length)for(var i=0;i<e.length;i++)t.push(e[i]);else t.push(e);return t}function o(e,t,r){return this instanceof o?("string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=n(e),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(function(){this.check()}.bind(this))):new o(e,t,r)}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;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&&d[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 d={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();
5return 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&&void 0!==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});
6
7/* lightgallery 1.6.11 + zoom + video */
8!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(b,d){if(this.el=b,this.$el=a(b),this.s=a.extend({},c,d),this.s.dynamic&&"undefined"!==this.s.dynamicEl&&this.s.dynamicEl.constructor===Array&&!this.s.dynamicEl.length)throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.modules={},this.lGalleryOn=!1,this.lgBusy=!1,this.hideBartimeout=!1,this.isTouch="ontouchstart"in document.documentElement,this.s.slideEndAnimatoin&&(this.s.hideControlOnEnd=!1),this.s.dynamic?this.$items=this.s.dynamicEl:"this"===this.s.selector?this.$items=this.$el:""!==this.s.selector?this.s.selectWithin?this.$items=a(this.s.selectWithin).find(this.s.selector):this.$items=this.$el.find(a(this.s.selector)):this.$items=this.$el.children(),this.$slide="",this.$outer="",this.init(),this}var c={mode:"lg-slide",cssEasing:"ease",easing:"linear",speed:600,height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:150,hideBarsDelay:6e3,useLeft:!1,closable:!0,loop:!0,escKey:!0,keyPress:!0,controls:!0,slideEndAnimatoin:!0,hideControlOnEnd:!1,mousewheel:!0,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:1,showAfterLoad:!0,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:!1,iframeMaxWidth:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],galleryId:1};b.prototype.init=function(){var b=this;b.s.preload>b.$items.length&&(b.s.preload=b.$items.length);var c=window.location.hash;c.indexOf("lg="+this.s.galleryId)>0&&(b.index=parseInt(c.split("&slide=")[1],10),a("body").addClass("lg-from-hash"),a("body").hasClass("lg-on")||(setTimeout(function(){b.build(b.index)}),a("body").addClass("lg-on"))),b.s.dynamic?(b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||0,a("body").hasClass("lg-on")||setTimeout(function(){b.build(b.index),a("body").addClass("lg-on")})):b.$items.on("click.lgcustom",function(c){try{c.preventDefault(),c.preventDefault()}catch(a){c.returnValue=!1}b.$el.trigger("onBeforeOpen.lg"),b.index=b.s.index||b.$items.index(this),a("body").hasClass("lg-on")||(b.build(b.index),a("body").addClass("lg-on"))})},b.prototype.build=function(b){var c=this;c.structure(),a.each(a.fn.lightGallery.modules,function(b){c.modules[b]=new a.fn.lightGallery.modules[b](c.el)}),c.slide(b,!1,!1,!1),c.s.keyPress&&c.keyPress(),c.$items.length>1?(c.arrow(),setTimeout(function(){c.enableDrag(),c.enableSwipe()},50),c.s.mousewheel&&c.mousewheel()):c.$slide.on("click.lg",function(){c.$el.trigger("onSlideClick.lg")}),c.counter(),c.closeGallery(),c.$el.trigger("onAfterOpen.lg"),c.$outer.on("mousemove.lg 
8click.lg touchstart.lg",function(){c.$outer.removeClass("lg-hide-items"),clearTimeout(c.hideBartimeout),c.hideBartimeout=setTimeout(function(){c.$outer.addClass("lg-hide-items")},c.s.hideBarsDelay)}),c.$outer.trigger("mousemove.lg")},b.prototype.structure=function(){var b,c="",d="",e=0,f="",g=this;for(a("body").append('<div class="lg-backdrop"></div>'),a(".lg-backdrop").css("transition-duration",this.s.backdropDuration+"ms"),e=0;e<this.$items.length;e++)c+='<div class="lg-item"></div>';if(this.s.controls&&this.$items.length>1&&(d='<div class="lg-actions"><button class="lg-prev lg-icon">'+this.s.prevHtml+'</button><button class="lg-next lg-icon">'+this.s.nextHtml+"</button></div>"),".lg-sub-html"===this.s.appendSubHtmlTo&&(f='<div class="lg-sub-html"></div>'),b='<div class="lg-outer '+this.s.addClass+" "+this.s.startClass+'"><div class="lg" style="width:'+this.s.width+"; height:"+this.s.height+'"><div class="lg-inner">'+c+'</div><div class="lg-toolbar lg-group"><span class="lg-close lg-icon"></span></div>'+d+f+"</div></div>",a("body").append(b),this.$outer=a(".lg-outer"),this.$slide=this.$outer.find(".lg-item"),this.s.useLeft?(this.$outer.addClass("lg-use-left"),this.s.mode="lg-slide"):this.$outer.addClass("lg-use-css3"),g.setTop(),a(window).on("resize.lg orientationchange.lg",function(){setTimeout(function(){g.setTop()},100)}),this.$slide.eq(this.index).addClass("lg-current"),this.doCss()?this.$outer.addClass("lg-css3"):(this.$outer.addClass("lg-css"),this.s.speed=0),this.$outer.addClass(this.s.mode),this.s.enableDrag&&this.$items.length>1&&this.$outer.addClass("lg-grab"),this.s.showAfterLoad&&this.$outer.addClass("lg-show-after-load"),this.doCss()){var h=this.$outer.find(".lg-inner");h.css("transition-timing-function",this.s.cssEasing),h.css("transition-duration",this.s.speed+"ms")}setTimeout(function(){a(".lg-backdrop").addClass("in")}),setTimeout(function(){g.$outer.addClass("lg-visible")},this.s.backdropDuration),this.s.download&&this.$outer.find(".lg-toolbar").append('<a id="lg-download" target="_blank" download class="lg-download lg-icon"></a>'),this.prevScrollTop=a(window).scrollTop()},b.prototype.setTop=function(){if("100%"!==this.s.height){var b=a(window).height(),c=(b-parseInt(this.s.height,10))/2,d=this.$outer.find(".lg");b>=parseInt(this.s.height,10)?d.css("top",c+"px"):d.css("top","0px")}},b.prototype.doCss=function(){return!!function(){var a=["transition","MozTransition","WebkitTransition","OTransition","msTransition","KhtmlTransition"],b=document.documentElement,c=0;for(c=0;c<a.length;c++)if(a[c]in b.style)return!0}()},b.prototype.isVideo=function(a,b){var c;if(c=this.s.dynamic?this.s.dynamicEl[b].html:this.$items.eq(b).attr("data-html"),!a)return c?{html5:!0}:(console.error("lightGallery :- data-src is not pvovided on slide item "+(b+1)+". Please make sure the selector property is properly configured. More info - http://sachinchoolur.github.io/lightGallery/demos/html-markup.html"),!1);var d=a.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)/i),e=a.match(/\/\/(?:www\.)?vimeo.com\/([0-9a-z\-_]+)/i),f=a.match(/\/\/(?:www\.)?dai.ly\/([0-9a-z\-_]+)/i),g=a.match(/\/\/(?:www\.)?(?:vk\.com|vkontakte\.ru)\/(?:video_ext\.php\?)(.*)/i);return d?{youtube:d}:e?{vimeo:e}:f?{dailymotion:f}:g?{vk:g}:void 0},b.prototype.counter=function(){this.s.counter&&a(this.s.appendCounterTo).append('<div id="lg-counter"><span id="lg-counter-current">'+(parseInt(this.index,10)+1)+'</span> / <span id="lg-counter-all">'+this.$items.length+"</span></div>")},b.prototype.addHtml=function(b){var c,d,e=null;if(this.s.dynamic?this.s.dynamicEl[b].subHtmlUrl?c=this.s.dynamicEl[b].subHtmlUrl:e=this.s.dynamicEl[b].subHtml:(d=this.$items.eq(b),d.attr("data-sub-html-url")?c=d.attr("data-sub-html-url"):(e=d.attr("data-sub-html"),this.s.getCaptionFromTitleOrAlt&&!e&&(e=d.attr("title")||d.find("img").first().attr("alt")))),!c)if(void 0!==e&&null!==e){var f=e.substring(0,1);"."!==f&&"#"!==f||(e=this.s.subHtmlSelectorRelative&&!this.s.dynamic?d.find(e).html():a(e).html())}else e="";".lg-sub-html"===this.s.appendSubHtmlTo?c?this.$outer.find(this.s.appendSubHtmlTo).load(c):this.$outer.find(this.s.appendSubHtmlTo).html(e):c?this.$slide.eq(b).load(c):this.$slide.eq(b).append(e),void 0!==e&&null!==e&&(""===e?this.$outer.find(this.s.appendSubHtmlTo).addClass("lg-empty-html"):this.$outer.find(this.s.appendSubHtmlTo).removeClass("lg-empty-html")),this.$el.trigger("onAfterAppendSubHtml.lg",[b])},b.prototype.preload=function(a){var b=1,c=1;for(b=1;b<=this.s.preload&&!(b>=this.$items.length-a);b++)this.loadContent(a+b,!1,0);for(c=1;c<=this.s.preload&&!(a-c<0);c++)this.loadContent(a-c,!1,0)},b.prototype.loadContent=function(b,c,d){var e,f,g,h,i,j,k=this,l=!1,m=function(b){for(var c=[],d=[],e=0;e<b.length;e++){var g=b[e].split(" ");""===g[0]&&g.splice(0,1),d.push(g[0]),c.push(g[1])}for(var h=a(window).width(),i=0;i<c.length;i++)if(parseInt(c[i],10)>h){f=d[i];break}};if(k.s.dynamic){if(k.s.dynamicEl[b].poster&&(l=!0,g=k.s.dynamicEl[b].poster),j=k.s.dynamicEl[b].html,f=k.s.dynamicEl[b].src,k.s.dynamicEl[b].responsive){m(k.s.dynamicEl[b].responsive.split(","))}h=k.s.dynamicEl[b].srcset,i=k.s.dynamicEl[b].sizes}else{if(k.$items.eq(b).attr("data-poster")&&(l=!0,g=k.$items.eq(b).attr("data-poster")),j=k.$items.eq(b).attr("data-html"),f=k.$items.eq(b).attr("href")||k.$items.eq(b).attr("data-src"),k.$items.eq(b).attr("data-responsive")){m(k.$items.eq(b).attr("data-responsive").split(","))}h=k.$items.eq(b).attr("data-srcset"),i=k.$items.eq(b).attr("data-sizes")}var n=!1;k.s.dynamic?k.s.dynamicEl[b].iframe&&(n=!0):"true"===k.$items.eq(b).attr("data-iframe")&&(n=!0);var o=k.isVideo(f,b);if(!k.$slide.eq(b).hasClass("lg-loaded")){if(n)k.$slide.eq(b).prepend('<div class="lg-video-cont lg-has-iframe" style="max-width:'+k.s.iframeMaxWidth+'"><div class="lg-video"><iframe class="lg-object" frameborder="0" src="'+f+'"  allowfullscreen="true"></iframe></div></div>');else if(l){var p="";p=o&&o.youtube?"lg-has-youtube":o&&o.vimeo?"lg-has-vimeo":"lg-has-html5",k.$slide.eq(b).prepend('<div class="lg-video-cont '+p+' "><div class="lg-video"><span class="lg-video-play"></span><img class="lg-object lg-has-poster" src="'+g+'" /></div></div>')}else o?(k.$slide.eq(b).prepend('<div class="lg-video-cont "><div class="lg-video"></div></div>'),k.$el.trigger("hasVideo.lg",[b,f,j])):k.$slide.eq(b).prepend('<div class="lg-img-wrap"><img class="lg-object lg-image" src="'+f+'" /></div>');if(k.$el.trigger("onAferAppendSlide.lg",[b]),e=k.$slide.eq(b).find(".lg-object"),i&&e.attr("sizes",i),h){e.attr("srcset",h);try{picturefill({elements:[e[0]]})}catch(a){console.warn("lightGallery :- If you want srcset to be supported for older browser please include picturefil version 2 javascript library in your document.")}}".lg-sub-html"!==this.s.appendSubHtmlTo&&k.addHtml(b),k.$slide.eq(b).addClass("lg-loaded")}k.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){var c=0;d&&!a("body").hasClass("lg-from-hash")&&(c=d),setTimeout(function(){k.$slide.eq(b).addClass("lg-complete"),k.$el.trigger("onSlideItemLoad.lg",[b,d||0])},c)}),o&&o.html5&&!l&&k.$slide.eq(b).addClass("lg-complete"),!0===c&&(k.$slide.eq(b).hasClass("lg-complete")?k.preload(b):k.$slide.eq(b).find(".lg-object").on("load.lg error.lg",function(){k.preload(b)}))},b.prototype.slide=function(b,c,d,e){var f=this.$outer.find(".lg-current").index(),g=this;if(!g.lGalleryOn||f!==b){var h=this.$slide.length,i=g.lGalleryOn?this.s.speed:0;if(!g.lgBusy){if(this.s.download){var j;j=g.s.dynamic?!1!==g.s.dynamicEl[b].downloadUrl&&(g.s.dynamicEl[b].downloadUrl||g.s.dynamicEl[b].src):"false"!==g.$items.eq(b).attr("data-download-url")&&(g.$items.eq(b).attr("data-download-url")||g.$items.eq(b).attr("href")||g.$items.eq(b).attr("data-src")),j?(a("#lg-download").attr("href",j),g.$outer.removeClass("lg-hide-download")):g.$outer.addClass("lg-hide-download")}if(this.$el.trigger("onBeforeSlide.lg",[f,b,c,d]),g.lgBusy=!0,clearTimeout(g.hideBartimeout),".lg-sub-html"===this.s.appendSubHtmlTo&&setTimeout(function(){g.addHtml(b)},i),this.arrowDisable(b),e||(b<f?e="prev":b>f&&(e="next")),c){this.$slide.removeClass("lg-prev-slide lg-current lg-next-slide");var k,l;h>2?(k=b-1,l=b+1,0===b&&f===h-1?(l=0,k=h-1):b===h-1&&0===f&&(l=0,k=h-1)):(k=0,l=1),"prev"===e?g.$slide.eq(l).addClass("lg-next-slide"):g.$slide.eq(k).addClass("lg-prev-slide"),g.$slide.eq(b).addClass("lg-current")}else g.$outer.addClass("lg-no-trans"),this.$slide.removeClass("lg-prev-slide lg-next-slide"),"prev"===e?(this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(f).addClass("lg-next-slide")):(this.$slide.eq(b).addClass("lg-next-slide"),this.$slide.eq(f).addClass("lg-prev-slide")),setTimeout(function(){g.$slide.removeClass("lg-current"),g.$slide.eq(b).addClass("lg-current"),g.$outer.removeClass("lg-no-trans")},50);g.lGalleryOn?(setTimeout(function(){g.loadContent(b,!0,0)},this.s.speed+50),setTimeout(function(){g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])},this.s.speed)):(g.loadContent(b,!0,g.s.backdropDuration),g.lgBusy=!1,g.$el.trigger("onAfterSlide.lg",[f,b,c,d])),g.lGalleryOn=!0,this.s.counter&&a("#lg-counter-current").text(b+1)}g.index=b}},b.prototype.goToNextSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index+1<b.$slide.length?(b.index++,b.$el.trigger("onBeforeNextSlide.lg",[b.index]),b.slide(b.index,a,!1,"next")):c?(b.index=0,b.$el.trigger("onBeforeNextSlide.lg",[b.index]),b.slide(b.index,a,!1,"next")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-right-end"),setTimeout(function(){b.$outer.removeClass("lg-right-end")},400)))},b.prototype.goToPrevSlide=function(a){var b=this,c=b.s.loop;a&&b.$slide.length<3&&(c=!1),b.lgBusy||(b.index>0?(b.index--,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):c?(b.index=b.$items.length-1,b.$el.trigger("onBeforePrevSlide.lg",[b.index,a]),b.slide(b.index,a,!1,"prev")):b.s.slideEndAnimatoin&&!a&&(b.$outer.addClass("lg-left-end"),setTimeout(function(){b.$outer.removeClass("lg-left-end")},400)))},b.prototype.keyPress=function(){var b=this;this.$items.length>1&&a(window).on("keyup.lg",function(a){b.$items.length>1&&(37===a.keyCode&&(a.preventDefault(),b.goToPrevSlide()),39===a.keyCode&&(a.preventDefault(),b.goToNextSlide()))}),a(window).on("keydown.lg",function(a){!0===b.s.escKey&&27===a.keyCode&&(a.preventDefault(),b.$outer.hasClass("lg-thumb-open")?b.$outer.removeClass("lg-thumb-open"):b.destroy())})},b.prototype.arrow=function(){var a=this;this.$outer.find(".lg-prev").on("click.lg",function(){a.goToPrevSlide()}),this.$outer.find(".lg-next").on("click.lg",function(){a.goToNextSlide()})},b.prototype.arrowDisable=function(a){!this.s.loop&&this.s.hideControlOnEnd&&(a+1<this.$slide.length?this.$outer.find(".lg-next").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-next").attr("disabled","disabled").addClass("disabled"),a>0?this.$outer.find(".lg-prev").removeAttr("disabled").removeClass("disabled"):this.$outer.find(".lg-prev").attr("disabled","disabled").addClass("disabled"))},b.prototype.setTranslate=function(a,b,c){this.s.useLeft?a.css("left",b):a.css({transform:"translate3d("+b+"px, "+c+"px, 0px)"})},b.prototype.touchMove=function(b,c){var d=c-b;Math.abs(d)>15&&(this.$outer.addClass("lg-dragging"),this.setTranslate(this.$slide.eq(this.index),d,0),this.setTranslate(a(".lg-prev-slide"),-this.$slide.eq(this.index).width()+d,0),this.setTranslate(a(".lg-next-slide"),this.$slide.eq(this.index).width()+d,0))},b.prototype.touchEnd=function(a){var b=this;"lg-slide"!==b.s.mode&&b.$outer.addClass("lg-slide"),this.$slide.not(".lg-current, .lg-prev-slide, .lg-next-slide").css("opacity","0"),setTimeout(function(){b.$outer.removeClass("lg-dragging"),a<0&&Math.abs(a)>b.s.swipeThreshold?b.goToNextSlide(!0):a>0&&Math.abs(a)>b.s.swipeThreshold?b.goToPrevSlide(!0):Math.abs(a)<5&&b.$el.trigger("onSlideClick.lg"),b.$slide.removeAttr("style")}),setTimeout(function(){b.$outer.hasClass("lg-dragging")||"lg-slide"===b.s.mode||b.$outer.removeClass("lg-slide")},b.s.speed+100)},b.prototype.enableSwipe=function(){var a=this,b=0,c=0,d=!1;a.s.enableSwipe&&a.doCss()&&(a.$slide.on("touchstart.lg",function(c){a.$outer.hasClass("lg-zoomed")||a.lgBusy||(c.preventDefault(),a.manageSwipeClass(),b=c.originalEvent.targetTouches[0].pageX)}),a.$slide.on("touchmove.lg",function(e){a.$outer.hasClass("lg-zoomed")||(e.preventDefault(),c=e.originalEvent.targetTouches[0].pageX,a.touchMove(b,c),d=!0)}),a.$slide.on("touchend.lg",function(){a.$outer.hasClass("lg-zoomed")||(d?(d=!1,a.touchEnd(c-b)):a.$el.trigger("onSlideClick.lg"))}))},b.prototype.enableDrag=function(){var b=this,c=0,d=0,e=!1,f=!1;b.s.enableDrag&&b.doCss()&&(b.$slide.on("mousedown.lg",function(d){b.$outer.hasClass("lg-zoomed")||b.lgBusy||a(d.target).text().trim()||(d.preventDefault(),b.manageSwipeClass(),c=d.pageX,e=!0,b.$outer.scrollLeft+=1,b.$outer.scrollLeft-=1,b.$outer.removeClass("lg-grab").addClass("lg-grabbing"),b.$el.trigger("onDragstart.lg"))}),a(window).on("mousemove.lg",function(a){e&&(f=!0,d=a.pageX,b.touchMove(c,d),b.$el.trigger("onDragmove.lg"))}),a(window).on("mouseup.lg",function(g){f?(f=!1,b.touchEnd(d-c),b.$el.trigger("onDragend.lg")):(a(g.target).hasClass("lg-object")||a(g.target).hasClass("lg-video-play"))&&b.$el.trigger("onSlideClick.lg"),e&&(e=!1,b.$outer.removeClass("lg-grabbing").addClass("lg-grab"))}))},b.prototype.manageSwipeClass=function(){var a=this.index+1,b=this.index-1;this.s.loop&&this.$slide.length>2&&(0===this.index?b=this.$slide.length-1:this.index===this.$slide.length-1&&(a=0)),this.$slide.removeClass("lg-next-slide lg-prev-slide"),b>-1&&this.$slide.eq(b).addClass("lg-prev-slide"),this.$slide.eq(a).addClass("lg-next-slide")},b.prototype.mousewheel=function(){var a=this;a.$outer.on("mousewheel.lg",function(b){b.deltaY&&(b.deltaY>0?a.goToPrevSlide():a.goToNextSlide(),b.preventDefault())})},b.prototype.closeGallery=function(){var b=this,c=!1;this.$outer.find(".lg-close").on("click.lg",function(){b.destroy()}),b.s.closable&&(b.$outer.on("mousedown.lg",function(b){c=!!(a(b.target).is(".lg-outer")||a(b.target).is(".lg-item ")||a(b.target).is(".lg-img-wrap"))}),b.$outer.on("mousemove.lg",function(){c=!1}),b.$outer.on("mouseup.lg",function(d){(a(d.target).is(".lg-outer")||a(d.target).is(".lg-item ")||a(d.target).is(".lg-img-wrap")&&c)&&
vendor: 4,138 bytes, lines 8-9
8(b.$outer.hasClass("lg-dragging")||b.destroy())}))},b.prototype.destroy=function(b){var c=this;b||(c.$el.trigger("onBeforeClose.lg"),a(window).scrollTop(c.prevScrollTop)),b&&(c.s.dynamic||this.$items.off("click.lg click.lgcustom"),a.removeData(c.el,"lightGallery")),this.$el.off(".lg.tm"),a.each(a.fn.lightGallery.modules,function(a){c.modules[a]&&c.modules[a].destroy()}),this.lGalleryOn=!1,clearTimeout(c.hideBartimeout),this.hideBartimeout=!1,a(window).off(".lg"),a("body").removeClass("lg-on lg-from-hash"),c.$outer&&c.$outer.removeClass("lg-visible"),a(".lg-backdrop").removeClass("in"),setTimeout(function(){c.$outer&&c.$outer.remove(),a(".lg-backdrop").remove(),b||c.$el.trigger("onCloseAfter.lg")},c.s.backdropDuration+50)},a.fn.lightGallery=function(c){return this.each(function(){if(a.data(this,"lightGallery"))try{a(this).data("lightGallery").init()}catch(a){console.error("lightGallery has not initiated properly")}else a.data(this,"lightGallery",new b(this,c))})},a.fn.lightGallery.modules={}}()});
9!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof exports?module.exports=b(require("jquery")):b(jQuery)}(this,function(a){!function(){"use strict";var b=function(){var a=!1,b=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);return b&&parseInt(b[2],10)<54&&(a=!0),a},c={scale:1,zoom:!0,actualSize:!0,enableZoomAfter:300,useLeftForZoom:b()},d=function(b){return this.core=a(b).data("lightGallery"),this.core.s=a.extend({},c,this.core.s),this.core.s.zoom&&this.core.doCss()&&(this.init(),this.zoomabletimeout=!1,this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()),this};d.prototype.init=function(){var b=this,c='<span id="lg-zoom-in" class="lg-icon"></span><span id="lg-zoom-out" class="lg-icon"></span>';b.core.s.actualSize&&(c+='<span id="lg-actual-size" class="lg-icon"></span>'),b.core.s.useLeftForZoom?b.core.$outer.addClass("lg-use-left-for-zoom"):b.core.$outer.addClass("lg-use-transition-for-zoom"),this.core.$outer.find(".lg-toolbar").append(c),b.core.$el.on("onSlideItemLoad.lg.tm.zoom",function(c,d,e){var f=b.core.s.enableZoomAfter+e;a("body").hasClass("lg-from-hash")&&e?f=0:a("body").removeClass("lg-from-hash"),b.zoomabletimeout=setTimeout(function(){b.core.$slide.eq(d).addClass("lg-zoomable")},f+30)});var d=1,e=function(c){var d,e,f=b.core.$outer.find(".lg-current .lg-image"),g=(a(window).width()-f.prop("offsetWidth"))/2,h=(a(window).height()-f.prop("offsetHeight"))/2+a(window).scrollTop();d=b.pageX-g,e=b.pageY-h;var i=(c-1)*d,j=(c-1)*e;f.css("transform","scale3d("+c+", "+c+", 1)").attr("data-scale",c),b.core.s.useLeftForZoom?f.parent().css({left:-i+"px",top:-j+"px"}).attr("data-x",i).attr("data-y",j):f.parent().css("transform","translate3d(-"+i+"px, -"+j+"px, 0)").attr("data-x",i).attr("data-y",j)},f=function(){d>1?b.core.$outer.addClass("lg-zoomed"):b.resetZoom(),d<1&&(d=1),e(d)},g=function(c,e,g,h){var i,j=e.prop("offsetWidth");i=b.core.s.dynamic?b.core.s.dynamicEl[g].width||e[0].naturalWidth||j:b.core.$items.eq(g).attr("data-width")||e[0].naturalWidth||j;var k;b.core.$outer.hasClass("lg-zoomed")?d=1:i>j&&(k=i/j,d=k||2),h?(b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop()):(b.pageX=c.pageX||c.originalEvent.targetTouches[0].pageX,b.pageY=c.pageY||c.originalEvent.targetTouches[0].pageY),f(),setTimeout(function(){b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")},10)},h=!1;b.core.$el.on("onAferAppendSlide.lg.tm.zoom",function(a,c){var d=b.core.$slide.eq(c).find(".lg-image");d.on("dblclick",function(a){g(a,d,c)}),d.on("touchstart",function(a){h?(clearTimeout(h),h=null,g(a,d,c)):h=setTimeout(function(){h=null},300),a.preventDefault()})}),a(window).on("resize.lg.zoom scroll.lg.zoom orientationchange.lg.zoom",function(){b.pageX=a(window).width()/2,b.pageY=a(window).height()/2+a(window).scrollTop(),e(d)}),a("#lg-zoom-out").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d-=b.core.s.scale,f())}),a("#lg-zoom-in").on("click.lg",function(){b.core.$outer.find(".lg-current .lg-image").length&&(d+=b.core.s.scale,f()
9)}),a("#lg-actual-size").on("click.lg",function(a){g(a,b.core.$slide.eq(b.core.index).find(".lg-image"),b.core.index,!0)}),b.core.$el.on("onBeforeSlide.lg.tm",function(){d=1,b.resetZoom()}),b.zoomDrag(),b.zoomSwipe()},d.prototype.resetZoom=function(){this.core.$outer.removeClass("lg-zoomed"),this.core.$slide.find(".lg-img-wrap").removeAttr("style data-x data-y"),this.core.$slide.find(".lg-image").removeAttr("style data-scale"),this.pageX=a(window).width()/2,this.pageY=a(window).height()/2+a(window).scrollTop()},d.prototype.zoomSwipe=function(){var a=this,b={},c={},d=!1,e=!1,f=!1;a.core.$slide.on("touchstart.lg",function(c){if(a.core.$outer.hasClass("lg-zoomed")){var d=a.core.$slide.eq(a.core.index).find(".lg-object");f=d.prop("offsetHeight")*d.attr("data-scale")>a.core.$outer.find(".lg").height(),e=d.prop("offsetWidth")*d.attr("data-scale")>a.core.$outer.find(".lg").width(),(e||f)&&(c.preventDefault(),b={x:c.originalEvent.targetTouches[0].pageX,y:c.originalEvent.targetTouches[0].pageY})}}),a.core.$slide.on("touchmove.lg",function(g){if(a.core.$outer.hasClass("lg-zoomed")){var h,i,j=a.core.$slide.eq(a.core.index).find(".lg-img-wrap");g.preventDefault(),d=!0,c={x:g.originalEvent.targetTouches[0].pageX,y:g.originalEvent.targetTouches[0].pageY},a.core.$outer.addClass("lg-zoom-dragging"),i=f?-Math.abs(j.attr("data-y"))+(c.y-b.y):-Math.abs(j.attr("data-y")),h=e?-Math.abs(j.attr("data-x"))+(c.x-b.x):-Math.abs(j.attr("data-x")),(Math.abs(c.x-b.x)>15||Math.abs(c.y-b.y)>15)&&(a.core.s.useLeftForZoom?j.css({left:h+"px",top:i+"px"}):j.css("transform","translate3d("+h+"px, "+i+"px, 0)"))}}),a.core.$slide.on("touchend.lg",function(){a.core.$outer.hasClass("lg-zoomed")&&d&&(d=!1,a.core.$outer.removeClass("lg-zoom-dragging"),a.touchendZoom(b,c,e,f))})},d.prototype.zoomDrag=function(){var b=this,c={},d={},e=!1,f=!1,g=!1,h=!1;b.core.$slide.on("mousedown.lg.zoom",function(d){var f=b.core.$slide.eq(b.core.index).find(".lg-object");h=f.prop("offsetHeight")*f.attr("data-scale")>b.core.$outer.find(".lg").height(),g=f.prop("offsetWidth")*f.attr("data-scale")>b.core.$outer.find(".lg").width(),b.core.$outer.hasClass("lg-zoomed")&&a(d.target).hasClass("lg-object")&&(g||h)&&(d.preventDefault(),c={x:d.pageX,y:d.pageY},e=!0,b.core.$outer.scrollLeft+=1,b.core.$outer.scrollLeft-=1,b.core.$outer.removeClass("lg-grab").addClass("lg-grabbing"))}),a(window).on("mousemove.lg.zoom",function(a){if(e){var i,j,k=b.core.$slide.eq(b.core.index).find(".lg-img-wrap");f=!0,d={x:a.pageX,y:a.pageY},b.core.$outer.addClass("lg-zoom-dragging"),j=h?-Math.abs(k.attr("data-y"))+(d.y-c.y):-Math.abs(k.attr("data-y")),i=g?-Math.abs(k.attr("data-x"))+(d.x-c.x):-Math.abs(k.attr("data-x")),b.core.s.useLeftForZoom?k.css({left:i+"px",top:j+"px"}):k.css("transform","translate3d("+i+"px, "+j+"px, 0)")}}),a(window).on("mouseup.lg.zoom",function(a){e&&(e=!1,b.core.$outer.removeClass("lg-zoom-dragging"),!f||c.x===d.x&&c.y===d.y||(d={x:a.pageX,y:a.pageY},b.touchendZoom(c,d,g,h)),f=!1),b.core.$outer.removeClass("lg-grabbing").addClass("lg-grab")})},d.prototype.touchendZoom=function(a,b,c,d){var e=this,f=e.core.$slide.eq(e.core.index).find(".lg-img-wrap"),g=e.core.$slide.eq(e.core.index).find(".lg-object"),h=-Math.abs(f.attr("data-x"))+(b.x-a.x),i=-Math.abs(f.attr("data-y"))+(b.y-a.y),j=(e.core.$outer.find(".lg").height()-g.prop("offsetHeight"))/2,k=Math.abs(g.prop("offsetHeight")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").height()+j),l=(e.core.$outer.find(".lg").width()-g.prop("offsetWidth"))/2,m=Math.abs(g.prop("offsetWidth")*Math.abs(g.attr("data-scale"))-e.core.$outer.find(".lg").width()+l);(Math.abs(b.x-a.x)>15||Math.abs(b.y-a.y)>15)&&(d&&(i<=-k?i=-k:i>=-j&&(i=-j)),c&&(h<=-m?h=-m:h>=-l&&(h=-l)),d?f.attr("data-y",Math.abs(i)):i=-Math.abs(f.attr("data-y")),c?f.attr("data-x",Math.abs(h)):h=-Math.abs(f.attr("data-x")),e.core.s.useLeftForZoom?f.css({left:h+"px",top:i+"px"}):f.css("transform","translate3d("+h+"px, "+i+"px, 0)"))},d.prototype.destroy=function(){var b=this;b.core.$el.off(".lg.zoom"),a(window).off(".lg.zoom"),b.core.$slide.off(".lg.zoom"),b.core.$el.off(".lg.tm.zoom"),b.resetZoom(),clearTimeout(b.zoomabletimeout),b.zoomabletimeout=!1},a.fn.lightGallery.modules.zoom=d}()});
10!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return b(a)}):"object"==typeof module&&module.exports?module.exports=b(require("jquery")):b(a.jQuery)}(this,function(a){!function(){"use strict";function b(a,b,c,d){var e=this;if(e.core.$slide.eq(b).find(".lg-video").append(e.loadVideo(c,"lg-object",!0,b,d)),d)if(e.core.s.videojs)try{videojs(e.core.$slide.eq(b).find(".lg-html5").get(0),e.core.s.videojsOptions,function(){!e.videoLoaded&&e.core.s.autoplayFirstVideo&&this.play()})}catch(a){console.error("Make sure you have included videojs")}else!e.videoLoaded&&e.core.s.autoplayFirstVideo&&e.core.$slide.eq(b).find(".lg-html5").get(0).play()}function c(a,b){var c=this.core.$slide.eq(b).find(".lg-video-cont");c.hasClass("lg-has-iframe")||(c.css("max-width",this.core.s.videoMaxWidth),this.videoLoaded=!0)}function d(b,c,d){var e=this,f=e.core.$slide.eq(c),g=f.find(".lg-youtube").get(0),h=f.find(".lg-vimeo").get(0),i=f.find(".lg-dailymotion").get(0),j=f.find(".lg-vk").get(0),k=f.find(".lg-html5").get(0);if(g)g.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");else if(h)try{$f(h).api("pause")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(i)i.contentWindow.postMessage("pause","*");else if(k)if(e.core.s.videojs)try{videojs(k).pause()}catch(a){console.error("Make sure you have included videojs")}else k.pause();j&&a(j).attr("src",a(j).attr("src").replace("&autoplay","&noplay"));var l;l=e.core.s.dynamic?e.core.s.dynamicEl[d].src:e.core.$items.eq(d).attr("href")||e.core.$items.eq(d).attr("data-src");var m=e.core.isVideo(l,d)||{};(m.youtube||m.vimeo||m.dailymotion||m.vk)&&e.core.$outer.addClass("lg-hide-download")}var e={videoMaxWidth:"855px",autoplayFirstVideo:!0,youtubePlayerParams:!1,vimeoPlayerParams:!1,dailymotionPlayerParams:!1,vkPlayerParams:!1,videojs:!1,videojsOptions:{}},f=function(b){return this.core=a(b).data("lightGallery"),this.$el=a(b),this.core.s=a.extend({},e,this.core.s),this.videoLoaded=!1,this.init(),this};f.prototype.init=function(){var e=this;e.core.$el.on("hasVideo.lg.tm",b.bind(this)),e.core.$el.on("onAferAppendSlide.lg.tm",c.bind(this)),e.core.doCss()&&e.core.$items.length>1&&(e.core.s.enableSwipe||e.core.s.enableDrag)?e.core.$el.on("onSlideClick.lg.tm",function(){var a=e.core.$slide.eq(e.core.index);e.loadVideoOnclick(a)}):e.core.$slide.on("click.lg",function(){e.loadVideoOnclick(a(this))}),e.core.$el.on("onBeforeSlide.lg.tm",d.bind(this)),e.core.$el.on("onAfterSlide.lg.tm",function(a,b){e.core.$slide.eq(b).removeClass("lg-video-playing")}),e.core.s.autoplayFirstVideo&&e.core.$el.on("onAferAppendSlide.lg.tm",function(a,b){if(!e.core.lGalleryOn){var c=e.core.$slide.eq(b);setTimeout(function(){e.loadVideoOnclick(c)},100)}})},f.prototype.loadVideo=function(b,c,d,e,f){var g="",h=1,i="",j=this.core.isVideo(b,e)||{};if(d&&(h=this.videoLoaded?0:this.core.s.autoplayFirstVideo?1:0),j.youtube)i="?wmode=
vendor: 9,933 bytes, lines 10-16
10opaque&autoplay="+h+"&enablejsapi=1",this.core.s.youtubePlayerParams&&(i=i+"&"+a.param(this.core.s.youtubePlayerParams)),g='<iframe class="lg-video-object lg-youtube '+c+'" width="560" height="315" src="//www.youtube.com/embed/'+j.youtube[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.vimeo)i="?autoplay="+h+"&api=1",this.core.s.vimeoPlayerParams&&(i=i+"&"+a.param(this.core.s.vimeoPlayerParams)),g='<iframe class="lg-video-object lg-vimeo '+c+'" width="560" height="315"  src="//player.vimeo.com/video/'+j.vimeo[1]+i+'" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>';else if(j.dailymotion)i="?wmode=opaque&autoplay="+h+"&api=postMessage",this.core.s.dailymotionPlayerParams&&(i=i+"&"+a.param(this.core.s.dailymotionPlayerParams)),g='<iframe class="lg-video-object lg-dailymotion '+c+'" width="560" height="315" src="//www.dailymotion.com/embed/video/'+j.dailymotion[1]+i+'" frameborder="0" allowfullscreen></iframe>';else if(j.html5){var k=f.substring(0,1);"."!==k&&"#"!==k||(f=a(f).html()),g=f}else j.vk&&(i="&autoplay="+h,this.core.s.vkPlayerParams&&(i=i+"&"+a.param(this.core.s.vkPlayerParams)),g='<iframe class="lg-video-object lg-vk '+c+'" width="560" height="315" src="//vk.com/video_ext.php?'+j.vk[1]+i+'" frameborder="0" allowfullscreen></iframe>');return g},f.prototype.loadVideoOnclick=function(a){var b=this;if(a.find(".lg-object").hasClass("lg-has-poster")&&a.find(".lg-object").is(":visible"))if(a.hasClass("lg-has-video")){var c=a.find(".lg-youtube").get(0),d=a.find(".lg-vimeo").get(0),e=a.find(".lg-dailymotion").get(0),f=a.find(".lg-html5").get(0);if(c)c.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*");else if(d)try{$f(d).api("play")}catch(a){console.error("Make sure you have included froogaloop2 js")}else if(e)e.contentWindow.postMessage("play","*");else if(f)if(b.core.s.videojs)try{videojs(f).play()}catch(a){console.error("Make sure you have included videojs")}else f.play();a.addClass("lg-video-playing")}else{a.addClass("lg-video-playing lg-has-video");var g,h,i=function(c,d){if(a.find(".lg-video").append(b.loadVideo(c,"",!1,b.core.index,d)),d)if(b.core.s.videojs)try{videojs(b.core.$slide.eq(b.core.index).find(".lg-html5").get(0),b.core.s.videojsOptions,function(){this.play()})}catch(a){console.error("Make sure you have included videojs")}else b.core.$slide.eq(b.core.index).find(".lg-html5").get(0).play()};b.core.s.dynamic?(g=b.core.s.dynamicEl[b.core.index].src,h=b.core.s.dynamicEl[b.core.index].html,i(g,h)):(g=b.core.$items.eq(b.core.index).attr("href")||b.core.$items.eq(b.core.index).attr("data-src"),h=b.core.$items.eq(b.core.index).attr("data-html"),i(g,h));var j=a.find(".lg-object");a.find(".lg-video").append(j),a.find(".lg-video-object").hasClass("lg-html5")||(a.removeClass("lg-complete"),a.find(".lg-video-object").on("load.lg error.lg",function(){a.addClass("lg-complete")}))}},f.prototype.destroy=function(){this.videoLoaded=!1},a.fn.lightGallery.modules.video=f}()});
11
12/* Tilt.js 1.1.21 */
13!function(t){"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(i,s){return void 0===s&&(s="undefined"!=typeof window?require("jquery"):require("jquery")(i)),t(s),s}:t(jQuery)}(function(t){return t.fn.tilt=function(i){var s=function(){this.ticking||(requestAnimationFrame(g.bind(this)),this.ticking=!0)},e=function(){var i=this;t(this).on("mousemove",o),t(this).on("mouseenter",a),this.settings.reset&&t(this).on("mouseleave",h),this.settings.glare&&t(window).on("resize",u.bind(i))},n=function(){var i=this;void 0!==this.timeout&&clearTimeout(this.timeout),t(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){t(i).css({transition:""}),i.settings.glare&&i.glareElement.css({transition:""})},this.settings.speed)},a=function(i){this.ticking=!1,t(this).css({"will-change":"transform"}),n.call(this),t(this).trigger("tilt.mouseEnter")},r=function(i){return"undefined"==typeof i&&(i={pageX:t(this).offset().left+t(this).outerWidth()/2,pageY:t(this).offset().top+t(this).outerHeight()/2}),{x:i.pageX,y:i.pageY}},o=function(t){this.mousePositions=r(t),s.call(this)},h=function(){n.call(this),this.reset=!0,s.call(this),t(this).trigger("tilt.mouseLeave")},l=function(){var i=t(this).outerWidth(),s=t(this).outerHeight(),e=t(this).offset().left,n=t(this).offset().top,a=(this.mousePositions.x-e)/i,r=(this.mousePositions.y-n)/s,o=(this.settings.maxTilt/2-a*this.settings.maxTilt).toFixed(2),h=(r*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),l=Math.atan2(this.mousePositions.x-(e+i/2),-(this.mousePositions.y-(n+s/2)))*(180/Math.PI);return{tiltX:o,tiltY:h,percentageX:100*a,percentageY:100*r,angle:l}},g=function(){return this.transforms=l.call(this),this.reset?(this.reset=!1,t(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),void(this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0")))):(t(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.axis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.axis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),t(this).trigger("change",[this.transforms]),void(this.ticking=!1))},c=function(){var i=this.settings.glarePrerender;if(i||t(this).append('<div class="js-tilt-glare"><div class="js-tilt-glare-inner"></div></div>'),this.glareElementWrapper=t(this).find(".js-tilt-glare"),this.glareElement=t(this).find(".js-tilt-glare-inner"),!i){var s={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"};this.glareElementWrapper.css(s).css({overflow:"hidden"}),this.glareElement.css({position:"absolute",top:"50%",left:"50%","pointer-events":"none","background-image":"linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%)",width:""+2*t(this).outerWidth(),height:""+2*t(this).outerWidth(),transform:"rotate(180deg) translate(-50%, -50%)","transform-origin":"0% 0%",opacity:"0"})}},u=function(){this.glareElement.css({width:""+2*t(this).outerWidth(),height:""+2*t(this).outerWidth()})};return t.fn.tilt.destroy=function(){t(this).each(function(){t(this).find(".js-tilt-glare").remove(),t(this).css({"will-change":"",transform:""}),t(this).off("mousemove mouseenter mouseleave")})},t.fn.tilt.getValues=function(){var i=[];return t(this).each(function(){this.mousePositions=r.call(this),i.push(l.call(this))}),i},t.fn.tilt.reset=function(){t(this).each(function(){var i=this;this.mousePositions=r.call(this),this.settings=t(this).data("settings"),h.call(this),setTimeout(function(){i.reset=!1},this.settings.transition)})},this.each(function(){var s=this;this.settings=t.extend({maxTilt:t(this).is("[data-tilt-max]")?t(this).data("tilt-max"):20,perspective:t(this).is("[data-tilt-perspective]")?t(this).data("tilt-perspective"):300,easing:t(this).is("[data-tilt-easing]")?t(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:t(this).is("[data-tilt-scale]")?t(this).data("tilt-scale"):"1",speed:t(this).is("[data-tilt-speed]")?t(this).data("tilt-speed"):"400",transition:!t(this).is("[data-tilt-transition]")||t(this).data("tilt-transition"),axis:t(this).is("[data-tilt-axis]")?t(this).data("tilt-axis"):null,reset:!t(this).is("[data-tilt-reset]")||t(this).data("tilt-reset"),glare:!!t(this).is("[data-tilt-glare]")&&t(this).data("tilt-glare"),maxGlare:t(this).is("[data-tilt-maxglare]")?t(this).data("tilt-maxglare"):1},i),this.init=function(){t(s).data("settings",s.settings),s.settings.glare&&c.call(s),e.call(s)},this.init()})},t("[data-tilt]").tilt(),!0});}(jQuery);
14
15/* Nice Select 1.0 */
16!function(e){"use strict";e.fn.niceSelect=function(t){function s(t){t.after(e("<div></div>").addClass("nice-select").addClass(t.attr("class")||"").addClass(t.attr("disabled")?"disabled":"").attr("tabindex",t.attr("disabled")?null:"0").html('<span class="current"></span><ul class="list"></ul>'));var s=t.next(),n=t.find("option"),i=t.find("option:selected");s.find(".current").html(i.data("display")||i.text()),n.each(function(t){var n=e(this),i=n.data("display");s.find("ul").append(e("<li></li>").attr("data-value",n.val()).attr("data-display",i||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))})}if("string"==typeof t)return"update"==t?this.each(function(){var t=e(this),n=e(this).next(".nice-select"),i=n.hasClass("open");n.length&&(n.remove(),s(t),i&&t.next().trigger("click"))}):"destroy"==t?(this.each(function(){var t=e(this),s=e(this).next(".nice-select");s.length&&(s.remove(),t.css("display",""))}),0==e(".nice-select").length&&e(document).off(".nice_select")):console.log('Method "'+t+'" does not exist.'),this;this.hide(),this.each(function(){var t=e(this);t.next().hasClass("nice-select")||s(t)}),e(document).off(".nice_select"),e(".nice-select").off().on("click",function(t){var s=e(this);e(".nice-select").not(s).removeClass("open"),s.toggleClass("open"),s.hasClass("open")?(s.find(".option"),s.find(".focus").removeClass("focus"),s.find(".selected").addClass("focus")):s.focus()}),e(document).on("click.nice_select",function(t){0===e(t.target).closest(".
16nice-select").length&&0===e(t.target).next(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(".nice-select .option:not(.disabled)").off().on("click",function(t){var s=e(this),n=s.closest(".nice-select");n.find(".selected").removeClass("selected"),s.addClass("selected");var i=s.data("display")||s.text();n.find(".current").text(i),n.prev("select").val(s.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(t){var s=e(this),n=e(s.find(".focus")||s.find(".list .option.selected"));if(32==t.keyCode||13==t.keyCode)return s.hasClass("open")?n.trigger("click"):s.trigger("click"),!1;if(40==t.keyCode){if(s.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();i.length>0&&(s.find(".focus").removeClass("focus"),i.addClass("focus"))}else s.trigger("click");return!1}if(38==t.keyCode){if(s.hasClass("open")){var l=n.prevAll(".option:not(.disabled)").first();l.length>0&&(s.find(".focus").removeClass("focus"),l.addClass("focus"))}else s.trigger("click");return!1}if(27==t.keyCode)s.hasClass("open")&&s.trigger("click");else if(9==t.keyCode&&s.hasClass("open"))return!1});var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&e("html").addClass("no-csspointerevents"),this}}(jQuery);
17
18/* Theia Sticky 1.6.0 */
19!function(i){"use strict";i.fn.theiaStickySidebar=function(t){function e(t,e){var a=o(t,e);
19a||(console.log("TSS: Body width smaller than options.minWidth. Init is delayed."),i(document).on("scroll."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)),i(window).on("resize."+t.namespace,function(t,e){return function(a){var n=o(t,e);n&&i(this).unbind(a)}}(t,e)))}function o(t,e){return t.initialized===!0||!(i("body").width()<t.minWidth)&&(a(t,e),!0)}function a(t,e){t.initialized=!0;var o=i("#theia-sticky-sidebar-stylesheet-"+t.namespace);0===o.length&&i("head").append(i('<style id="theia-sticky-sidebar-stylesheet-'+t.namespace+'">.theiaStickySidebar:after {content: ""; display: table; clear: both;}</style>')),e.each(function(){function e(){a.fixedScrollTop=0,a.sidebar.css({"min-height":"1px"}),a.stickySidebar.css({position:"static",width:"",transform:"none"})}function o(t){var e=t.height();return t.children().each(function(){e=Math.max(e,i(this).height())}),e}var a={};if(a.sidebar=i(this),a.options=t||{},a.container=i(a.options.containerSelector),0==a.container.length&&(a.container=a.sidebar.parent()),a.sidebar.parents().css("-webkit-transform","none"),a.sidebar.css({position:a.options.defaultPosition,overflow:"visible","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"}),a.stickySidebar=a.sidebar.find(".theiaStickySidebar"),0==a.stickySidebar.length){var s=/(?:text|application)\/(?:x-)?(?:javascript|ecmascript)/i;a.sidebar.find("script").filter(function(i,t){return 0===t.type.length||t.type.match(s)}).remove(),a.stickySidebar=i("<div>").addClass("theiaStickySidebar").append(a.sidebar.children()),a.sidebar.append(a.stickySidebar)}a.marginBottom=parseInt(a.sidebar.css("margin-bottom")),a.paddingTop=parseInt(a.sidebar.css("padding-top")),a.paddingBottom=parseInt(a.sidebar.css("padding-bottom"));var r=a.stickySidebar.offset().top,d=a.stickySidebar.outerHeight();a.stickySidebar.css("padding-top",1),a.stickySidebar.css("padding-bottom",1),r-=a.stickySidebar.offset().top,d=a.stickySidebar.outerHeight()-d-r,0==r?(a.stickySidebar.css("padding-top",0),a.stickySidebarPaddingTop=0):a.stickySidebarPaddingTop=1,0==d?(a.stickySidebar.css("padding-bottom",0),a.stickySidebarPaddingBottom=0):a.stickySidebarPaddingBottom=1,a.previousScrollTop=null,a.fixedScrollTop=0,e(),a.onScroll=function(a){if(a.stickySidebar.is(":visible")){if(i("body").width()<a.options.minWidth)return void e();if(a.options.disableOnResponsiveLayouts){var s=a.sidebar.outerWidth("none"==a.sidebar.css("float"));if(s+50>a.container.width())return void e()}var r=i(document).scrollTop(),d="static";if(r>=a.sidebar.offset().top+(a.paddingTop-a.options.additionalMarginTop)){var c,p=a.paddingTop+t.additionalMarginTop,b=a.paddingBottom+a.marginBottom+t.additionalMarginBottom,l=a.sidebar.offset().top,f=a.sidebar.offset().top+o(a.container),h=0+t.additionalMarginTop,g=a.stickySidebar.outerHeight()+p+b<i(window).height();c=g?h+a.stickySidebar.outerHeight():i(window).height()-a.marginBottom-a.paddingBottom-t.additionalMarginBottom;var u=l-r+a.paddingTop,S=f-r-a.paddingBottom-a.marginBottom,y=a.stickySidebar.offset().top-r,m=a.previousScrollTop-r;"fixed"==a.stickySidebar.css("position")&&"modern"==a.options.sidebarBehavior&&(y+=m),"stick-to-top"==a.options.sidebarBehavior&&(y=t.additionalMarginTop),"stick-to-bottom"==a.options.sidebarBehavior&&(y=c-a.stickySidebar.outerHeight()),y=m>0?Math.min(y,h):Math.max(y,c-a.stickySidebar.outerHeight()),y=Math.max(y,u),y=Math.min(y,S-a.stickySidebar.outerHeight());var k=a.container.height()==a.stickySidebar.outerHeight();d=(k||y!=h)&&(k||y!=c-a.stickySidebar.outerHeight())?r+y-a.sidebar.offset().top-a.paddingTop<=t.additionalMarginTop?"static":"absolute":"fixed"}if("fixed"==d){var v=i(document).scrollLeft();a.stickySidebar.css({position:"fixed",width:n(a.stickySidebar)+"px",transform:"translateY("+y+"px)",left:a.sidebar.offset().left+parseInt(a.sidebar.css("padding-left"))-v+"px",top:"0px"})}else if("absolute"==d){var x={};"absolute"!=a.stickySidebar.css("position")&&(x.position="absolute",x.transform="translateY("+(r+y-a.sidebar.offset().top-a.stickySidebarPaddingTop-a.stickySidebarPaddingBottom)+"px)",x.top="0px"),x.width=n(a.stickySidebar)+"px",x.left="",a.stickySidebar.css(x)}else"static"==d&&e();"static"!=d&&1==a.options.updateSidebarHeight&&a.sidebar.css({"min-height":a.stickySidebar.outerHeight()+a.stickySidebar.offset().top-a.sidebar.offset().top+a.paddingBottom}),a.previousScrollTop=r}},a.onScroll(a),i(document).on("scroll."+a.options.namespace,function(i){return function(){i.onScroll(i)}}(a)),i(window).on("resize."+a.options.namespace,function(i){return function(){i.stickySidebar.css({position:"static"}),i.onScroll(i)}}(a)),"undefined"!=typeof ResizeSensor&&new ResizeSensor(a.stickySidebar[0],function(i){return function(){i.onScroll(i)}}(a))})}function n(i){var t;try{t=i[0].getBoundingClientRect().width}catch(i){}return"undefined"==typeof t&&(t=i.width()),t}var s={containerSelector:"",additionalMarginTop:0,additionalMarginBottom:0,updateSidebarHeight:!0,minWidth:0,disableOnResponsiveLayouts:!0,sidebarBehavior:"modern",defaultPosition:"relative",namespace:"TSS"};return t=i.extend(s,t),t.additionalMarginTop=parseInt(t.additionalMarginTop)||0,t.additionalMarginBottom=parseInt(t.additionalMarginBottom)||
190,e(t,this),this}}(jQuery);
20
21/* Codevz Watch */
22!function(n,t){"use strict";var e=function(n,t,e){var r;return function(){var u=this,i=arguments;r?clearTimeout(r):e&&n.apply(u,i),r=setTimeout(function(){e||n.apply(u,i),r=null},t||100)}};jQuery.fn[t]=function(n){return n?this.on("DOMNodeInserted DOMNodeRemoved",e(n)):this.trigger(t)}}(jQuery,"codevzWatch");
23
24/**
25 *
26 * Custom codevz plus scripts
27 *
28 * @author Codevz
29 * @website www.codevz.com
30 *
31 */
32var Codevz_Plus = (function($) {
33	"use strict";
34
35	if ( ! $.fn.codevz ) {
36		$.fn.codevz = function( n, i ) {
37			$( this ).each(function( a ) {
38				var e = $( this );
39
40				if ( e.data( 'codevz' ) !== n || $( '.vc_editor' ).length ) {
41					i.apply( e.data( 'codevz', n ), [a] );
42				}
43			});
44		}
45	}
46
47	var body = $( 'body' ),
48		wind = $( window ),
49		runScrollTime = 0;
50
51	return {
52		init: function() {
53			this.css();
54			this.popup();
55			this.tabs();
56			this.tilt();
57			this.login();
58			this.select();
59			this.counter();
60			this.lazyLoad();
61			this.parallax();
62			this.accordion();
63			this.countdown();
64			this.backtotop();
65			this.separator();
66			this.nicescroll();
67			this.image_zoom();
68			this.content_box();
69			this.extra_panel();
70			this.woo_quantity();
71			this.lightGallery();
72			this.progress_bar();
73			this.inline_video();
74			this.before_after();
75			this.sticky_columns();
76			this.show_more_less();
77			this.responsive_text();
78			this.dwqa_textarea_lh();
79			this.load_google_map_js();
80			this.working_hours_line();
81			this.fix_wp_editor_google_fonts();
82			this.runScroll();
83
84			// Fixed music player
85			if ( $( '.sm2-bar-ui.fixed' ).length ) {
86				setTimeout(function() {
87					$( 'html' ).css( 'marginBottom', $( '.sm2-bar-ui.fixed' ).height() );
88				}, 2000 );
89			}
90		},
91
92		/*
93		*   Trigger scroll
94		*/
95		runScroll: function() {
96			clearTimeout( runScrollTime );
97			runScrollTime = setTimeout(function() {
98
99				Codevz_Plus.fix_vc_stretch();
100
101				if ( ! $( '.vc_editor.compose-mode').length ) {
102					wind.trigger( 'resize' );
103				}
104
105				wind.trigger( 'scroll' );
106
107			}, 1000 );
108		},
109
110		/*
111		*   Check element in viewport
112		*/
113		inview: function(e) {
114			return ( wind.scrollTop() + wind.height() ) >= e.offset().top - 1000;
115		},
116
117		/*
118		*   Fix VC stretch row for inner layouts
119		*/
120		fix_vc_stretch: function() {
121			if ( $( '.layout_1, .layout_2' ).length ) {
122				if ( $( '[data-vc-stretch-content]' ).length || $( '.vc_editor.compose-mode' ).length ) {
123					wind.off( 'resize.cz_fix_row' ).on( 'resize.cz_fix_row', function() {
124						$( '[data-vc-stretch-content]' ).each(function() {
125							var h = ( ( $( '.inner_layout' ).width() - $( '.page_content > .row' ).width() ) / 2 ) + 15;
126							$( this ).css({
127								'width': $( '.inner_layout' ).width(),
128								'left': body.hasClass( 'rtl' ) ? h - 30 : -h
129							});
130						});
131					});
132				}
133			}
134		},
135
136		/*
137		*   Responsive smart font size
138		*/
139		responsive_text: function() {
140			var px_to_vw = function( s, w ) {
141					var n = s.match(/\d+/) - 2, v = ( n / (w / 100 ));
142					return v > 2 ? v + 'vw' : n + 'px';
143				},
144				elms = $( '.cz_smart_fs' ).find( '.cz_wpe_content [style*="font-size"]' ),
145				winWidth, cz = 'resize.cz_responsive_text';
146
147			if ( elms.length ) {
148				wind.off( cz ).on( cz, function() {
149					winWidth = wind.width();
150					if ( winWidth <= 1170 ) {
151						elms.removeClass( 'js_smart_fs' ).codevz( 'smart_fs', function() {
152							var en = $( this ), style, match;
153
154							if ( en.attr( 'data-ori-style' ) ) {
155								return;
156							}
157
158							if ( ! en.attr( 'data-ori-style' ) ) {
159								style = en.attr( 'style' );
160								en.attr( 'data-ori-style', style );
161							}
162
163							match = style.match( /font-size: \d+.\w+px|font-size: \w+px/ );
164
165							if ( match ) {
166								var nu = match[0].match( /\d+/ );
167								if ( nu && nu[0] > 18 ) {
168									var vw = px_to_vw( match[0], winWidth ),
169										cw = en.closest( '.cz_wpe_content' ).width(),
170										pw = en.closest( '.cz_smart_fs' ).parent().width();
171
172									if ( cw > pw ) {
173										var tt = pw / cw;
174										vw = vw.match(/\d+/) * tt;
175										if ( winWidth == pw ) {
176											vw = vw - 2;
177										}
178										vw = ( vw - 2 ) + 'vw';
179									}
180
181									vw && en.attr( 'style', style.replace( match[0], 'font-size: ' + vw ) );
182								}
183							}
184						});
185					} else {
186						$( '[data-ori-style]' ).each(function() {
187							var en = $( this );
188							en.attr( 'style', en.attr( 'data-ori-style' ) ).removeAttr( 'data-ori-style' );
189						});
190					}
191				});
192			}
193		},
194
195		/*
196		*   Move all data styles to head
197		*/
198		css: function() {
199			$( '[data-cz-style]' ).codevz( 'data_style', function() {
200				var d = $( this ), s = d.data( 'cz-style' );
201				
202				if ( ! $( '#codevz_inline_styles' ).length ) {
203					$( 'head' ).append( '<style id="codevz_inline_styles"></style>' );
204				}
205
206				$( '#codevz_inline_styles' ).append( s );
207				setTimeout(function() {
208					d.removeAttr( 'data-cz-style' );
209				}, 500 );
210			});
211		},
212
213		/*
214		*   Nice select
215		*/
216		select: function() {
217			$( '.cz_cf7 select, .woocommerce-ordering select, .widget select' ).codevz( 'select', function() {
218				$( this ).niceSelect();
219			});
220		},
221
222		/*
223		*   lightGallery
224		*/
225		lightGallery: function() {
226			var a = '.cz_lightbox:not(.cz_no_lightbox),.cz_a_lightbox:not(.cz_no_lightbox) a:not(.cz_no_lightbox),a[href*="youtube.com/watch?"]:not(.cz_no_lightbox),a[href*="youtu.be/"]:not(.cz_no_lightbox),a[href*="vimeo.com/"]:not(.cz_no_lightbox),a[href$=".jpg"]:not(.esgbox,.jg-entry,.prettyphoto),a[href$=".svg"]:not(.esgbox,.jg-entry,.prettyphoto),a[href$=".jpeg"]:not(.esgbox,.jg-entry,.prettyphoto),a[href$=".png"]:not(.esgbox,.jg-entry,.prettyphoto),a[href$=".gif"]:not(.esgbox,.jg-entry,.prettyphoto)',
227				b = $( 'body' ),
228				d = b.data( 'lightGallery' );
229
230			if ( d ) {
231			    d.destroy( true );
232			}
233			if ( $.fn.lightGallery ) {
234				$( '.codevz_ajax' ).find( a ).addClass( 'no-ajax' );
235				b.attr( 'data-lightGallery', 1 ).lightGallery({selector: a});
236			}
237		},
238
239		/*
240		*   Sticky columns
241		*/
242		sticky_columns: function() {
243
244			// Fixed Side
245			$( '.fixed_side' ).codevz( 'fixed_side', function() {
246				var en 		= $( this ),
247					ff_pos 	= en.hasClass( 'fixed_side_left' ) ? 'left' : 'right',
248					inla 	= $( '.inner_layout' );
249
250				// Sticky
251				en.theiaStickySidebar({additionalMarginTop: 0,updateSidebarHeight: false});
252
253				// Size's
254				wind.on( 'resize', function() {
255					if ( en.css( 'display' ) === 'none' ) {
256						inla.css( 'width', '100%' );
257					} else {
258						en.css( 'height', wind.height() - parseInt( $( '#layout' ).css( 'marginTop' ) + body.css( 'marginTop' ) ) );
259						inla.css( 'width', 'calc( 100% - ' + en.outerWidth() + 'px )' );
260					}
261				});
262			});
263
264			// Sticky sidebars & content
265			$( '.cz_sticky .row > aside, .cz_sticky_col' ).codevz( 'sticky', function() {
266				$( this ).theiaStickySidebar({additionalMarginTop: ( $( '.header_is_sticky:not(.smart_sticky)' ).height() + 60 ),updateSidebarHeight: false});
267			});
268		},
269
270		/*
271		*   Back to top button
272		*/
273		backtotop: function() {
274
275			$( '.backtotop, a[href*="#top"]' ).codevz( 'backtotop', function() {
276				var en = $( this );
277
278				en.on( 'click', function( e ) {
279					$( 'html, body' ).animate({scrollTop: 0}, 1200, 'easeInOutExpo');
280					e.preventDefault();
281				});
282
283				if ( en.hasClass( 'backtotop' ) ) {
284					wind.on( 'scroll', function() {
285						if ( $( this ).scrollTop() < 400 ) {
286							en.fadeOut( 'fast' ).next( '.fixed_contact' ).css({right: 20});
287						} else {
288							en.fadeIn( 'fast' ).next( '.fixed_contact' ).css({right: ( en.outerHeight() + 24 )});
289						}
290					});
291				}
292			});
293
294			// Fixed contact form
295			$( '.fixed_contact' ).codevz( 'fixed_contact', function() {
296				$( this ).on( 'click', function(e) {
297					$( this ).next('.fixed_contact').fadeToggle( 'fast' ).css({bottom: $( this ).height() + parseInt( $( this ).css('margin-bottom') ) + 30 });
298					e.stopPropagation();
299				});
300				body.on( 'click', function (e) {
301					if ( $( 'div.fixed_contact' ).is(':visible') ) {
302						$( 'div.fixed_contact' ).fadeOut( 'fast' );
303					}
304				});
305			});
306		},
307
308		/*
309		*   Line between working hours content
310		*/
311		working_hours_line: function() {
312			wind.off( 'resize.cz_whlb' ).on( 'resize.cz_whlb', function() {
313				$( '.cz_wh_line_between .cz_wh_line' ).codevz( 'whlb', function() {
314					var en = $( this ), 
315						pa = en.parent(), 
316						ic = pa.find( 'span i' ),
317						ll = pa.find( '.cz_wh_left b' ).outerWidth( true ) + ( ic.length ? ic.outerWidth( true ) + 8 : 0 ) + 12 + 'px',
318						rr = pa.find( '.cz_wh_right' ).outerWidth( true ) + 12 + 'px',
319						is_rtl = body.hasClass( 'rtl' );
320
321					en.attr( 'style', en.attr( 'style' ) ).css({
322						'left': ( is_rtl ? rr : ll ),
323						'right': ( is_rtl ? ll : rr )
324					});
325				});
326			});
327		},
328
329		/*
330		*   String to slug
331		*/
332		stringToSlug: function( str ) {
333			var s = '',
334				t = $.trim( str );
335
336			s = t.replace(/[^a-z0-9-]/gi, '-').replace(/-+/g, '_').replace(/^-|-$/g, '');
337			return s.toLowerCase();
338		},
339
340		/*
341		*   Fix missed google fonts
342		*/
343		fix_wp_editor_google_fonts: function() {
344			$( '.wpb_text_column, .cz_wpe_content' ).find( '[style*="font-family"]' ).not( 'i' ).codevz( 'fonts', function() {
345				var f_fonts = [], o_fonts, el, id, defs;
346
347				el = $( this ).css( 'font-family' ),
348				defs = [
349					'FontAwesome', 
350					'fontelo', 
351					'Open Sans', 
352					'Arial', 
353					'Impact', 
354					'monospace', 
355					'Tahoma', 
356					'sans-serif', 
357					'Sans serif', 
358					'VC-Icons', 
359					'Arial Black', 
360					'Comic Sans MS', 
361					'Lucida Sans Unicode', 
362					'Trebuchet MS', 
363					'Verdana', 
364					'Courier New', 
365					'Lucida Console', 
366					'Palatino Linotype', 
367					'Times New Roman'
368				];
369
370				if ( typeof el !== 'undefined' && el && f_fonts.indexOf( el ) == -1 && defs.indexOf( el ) == -1 && el.indexOf( ',' ) <= 0 ) {
371					f_fonts.push( el );
372				}
373
374				$('link[href*="fonts.googleapis.com"]').each(function() {
375					o_fonts += $( this ).attr( 'href' );
376				});
377				$.each(f_fonts, function(n, i) {
378					i = i.replace( /\s/g, '+' ).replace( /\"|\'/g, '' ),
379					id = 'cz_gfont_' + Codevz_Plus.stringToSlug( i );
380
381					if ( o_fonts && o_fonts.indexOf( i ) <= 0 && ! $( '#' + id ).length ) {
382						$( 'head' ).append( '<link id="' + id + '" href="https://fonts.googleapis.com/css?family=' + i + ':100,200,300,400,500,600,700,800,900" rel="stylesheet">' );
383					}
384				});
385			});
386		},
387
388		/*
389		*   Popup modal box
390		*/
391		popup: function( i ) {
392			$( '.cz_popup_modal' ).codevz( 'popup_clone', function() {
393				var outer = $( this ).parent();
394
395				if ( outer.length && ! $( this ).closest( '.vc_cz_popup' ).length ) {
396					body.append( outer[0].outerHTML);
397					outer.remove();
398				}
399			});
400
401			$( '.cz_popup_modal' ).each(function() {
402				var dis = $( this ),
403					idd = dis.attr( 'id' ),
404					ovl = dis.data( 'overlay-bg' ),
405					par = $( '#' + idd ).closest( '.vc_cz_popup' ),
406					cf7 = document.createElement("script");
407
408				// Fix CF7
409				if ( typeof cz_scripts.cf7 != 'undefined' ) {
410					cf7.type = "text/javascript";
411					cf7.src = cz_scripts.cf7;
412					document.getElementsByTagName("body")[0].appendChild(cf7);
413				}
414				if ( $.fn.lightGallery ) {
415					$( '#' + idd ).lightGallery({selector: '.cz_lightbox:not(.cz_no_lighbox),.cz_a_lightbox:not(.cz_no_lighbox) a,a[href*="youtube.com/watch?"],a[href*="youtu.be/"],a[href*="vimeo.com/"],a[href$=".jpg"]:not(.esgbox,.jg-entry),a[href$=".jpeg"]:not(.esgbox,.jg-entry),a[href$=".png"]:not(.esgbox,.jg-entry),a[href$=".gif"]:not(.esgbox,.jg-entry)'});
416				}
417
418				// Open popup
419				$( "a[href*='#" + idd + "']" ).off().on( 'click', function(e) {
420					par.fadeIn( 'fast' );
421					$( '#' + idd ).fadeIn( 'fast' ).delay( 1000 ).addClass( 'cz_show_popup' );
422					$( '.cz_overlay', dis ).css( 'background', ovl ).fadeIn( 'fast' );
423					e.preventDefault();
424				});
425
426				// Fix multiple same popup
427				if ( $( '[data-popup="' + idd + '"]' ).length ) {
428					return;
429				}
430				dis.attr( 'data-popup', idd );
431
432				// Start
433				if ( $( '#' + idd ).length ) {
434
435					// VC frontend
436					if ( par.length ) {
437						par.next( '.cz_edit_popup_link' ).remove();
438						par.attr( 'style', $( '#' + idd ).attr( 'style' ) ).after('<a class="cz_edit_popup_link edit_' + idd + '" href="#' + idd + '" style="position:relative;opacity:0.6">#' + idd + '</a>');
439						$( ".cz_close_popup, #cz_close_popup, .cz_overlay, a[href*='#cz_close_popup']" ).off();
440						$( '.vc_control-btn-delete', par ).on('click', function() {
441							par.next( '.cz_edit_popup_link' ).remove();
442						});
443
444						// Fronend fix
445						$( "a[href*='#" + idd + "']" ).off().on( 'click', function(e) {
446							par.fadeIn( 'fast' );
447							$( '#' + idd ).fadeIn( 'fast' ).delay( 1000 ).addClass( 'cz_show_popup' );
448							$( '.cz_overlay', dis ).css( 'background', ovl ).fadeIn( 'fast' );
449							e.preventDefault();
450						});
451					}
452
453					// Close popup
454					$( ".cz_close_popup, #cz_close_popup, .cz_overlay, a[href*='#cz_close_popup']" ).on( 'click', function(e) {
455						$( '.cz_overlay' ).fadeOut( 'fast' ).removeClass( 'cz_show_popup' ).css( 'background', '' );
456						$( '.vc_cz_popup, .vc_cz_popup, #' + idd ).hide().removeClass( 'cz_show_popup' );
457
458						// Check session for future visits
459						if ( dis.hasClass( 'cz_popup_show_once' ) ) {
460							localStorage.setItem( idd, 1 );
461						}
462					});
463
464					// If popup is always show, then remove session
465					if ( dis.hasClass( 'cz_popup_show_always' ) && localStorage.getItem( idd ) ) {
466						localStorage.removeItem( idd );
467					}
468
469					// Check visibility mode on page load
470					if ( dis.hasClass( 'cz_popup_page_start' ) && ! localStorage.getItem( idd ) ) {
471						$( '.vc_cz_popup, #' + idd ).fadeIn( 'fast' );
472						$( '.cz_overlay', dis ).css( 'background', ovl ).fadeIn( 'fast' );
473					} else if ( dis.hasClass( 'cz_popup_page_loaded' ) && ! localStorage.getItem( idd ) ) {
474						wind.on( 'load', function() {
475							$( ' .vc_cz_popup, #' + idd ).fadeIn( 'fast' );
476							$( '.cz_overlay', dis ).css( 'background', ovl ).fadeIn( 'fast' );
477						});
478					}
479				} else {
480					console.log( 'Popup not found, id: #' + idd );
481				}
482			});
483		},
484
485		/*
486		*   Tabs
487		*/
488		tabs: function() {
489			$( '.vc_active' ).length && $( '.cz_tabs' ).removeClass( 'js_tabs' );
490			$( '.cz_tabs' ).codevz( 'tabs', function() {
491				var dis = $( this ),
492					nav = dis.hasClass( 'cz_tabs_nav_after' ) ? 'append' : 'prepend';
493
494				// Convert tabs nav
495				if ( ! $( '.cz_tabs_nav', dis ).length ) {
496					dis[nav]( '<div class="cz_tabs_nav clr"><div class="clr"></div></div>' );
497				}
498				$( '.cz_tabs_nav div', dis ).html('');
499
500				$( '.cz_tab_a', dis ).each(function() {
501					$( '.cz_tabs_nav div', dis ).prepend( $( this ).removeClass( 'vc_empty-element' ).clone() );
502				});
503				
504				// onClick tabs nav
505				var click = dis.hasClass( 'cz_tabs_on_hover' ) ? 'hover click' : 'click';
506				$( '.cz_tab_a' ).on( click, function() {
507					var tab = $( this ).data( 'tab' ),
508						par = $( this ).closest('.cz_tabs');
509
510					if ( $( '#' + tab, par ).is(':visible') ) {
511						return false;
512					}
513
514					// Set tab active class
515					$( this ).addClass('active').siblings().removeClass('active');
516
517					if ( $( '.vc_active' ).length ) {
518						$( '.cz_tab', par ).closest( '.vc_cz_tab' ).hide();
519						$( '#' + tab, par ).closest( '.vc_cz_tab' ).show();
520					} else {
521						$( '.cz_tab', par ).hide();
522						$( '#' + tab, par ).show();
523					}
524
525					return false;
526				});
527
528				// Activate first
529				$( '.cz_tabs_nav a', dis ).removeClass( 'hide' )[ ( $( '.vc_active' ).length ? 'last' : 'first' ) ]().trigger( 'click' ).addClass('active');
530			});
531		},
532
533		/*
534		*   Apply line height 4 tinymce DWQA
535		*/
536		dwqa_textarea_lh: function() {
537			$( '.mce-container iframe' ).codevz( 'mce', function() {
538				var en = $( this );
539
540				setTimeout(function() {
541					en.contents().find( 'head' ).append( '<style>body,body *{line-height:26px !important;font-size:16px;font-family:Open Sans}</style>' );
542				}, 500 );
543			});
544		},
545
546		/*
547		*   Before & After, image comparission
548		*/		
549		before_after: function() {
550			$( '.cz_image_container' ).codevz( 'b4a', function() {
551				var c 		= $( this ), de = $( '.cz_handle', c ), re = $( '.cz_resize_img', c ),
552					cz_1 	= 'mousedown.cz_b4a vmousedown.cz_b4a touchstart.cz_b4a', 
553					cz 		= 'mousemove.cz_b4a vmousemove.cz_b4a touchmove.cz_b4a',
554					cz_2 	= 'mouseup.cz_b4a vmouseup.cz_b4a touchend.cz_b4a',
555					pageX, lv, wv;
556
557				de.off( cz_1 ).on( cz_1, function(e) {
558					pageX = ( e.type == 'touchstart' ) ? e.originalEvent.touches[0].pageX : e.pageX;
559
560					de.addClass( 'draggable' );
561					re.addClass( 'resizable' );
562			 
563					var dw = de.outerWidth(),
564						xp = de.offset().left + dw - pageX,
565						co = c.offset().left,
566						cw = c.outerWidth(),
567						minLeft = co + 10,
568						maxLeft = co + cw - dw - 10;
569					
570					de.parents().off( cz ).on( cz, function(e) {
571						pageX = ( e.type == 'touchmove' ) ? e.originalEvent.touches[0].pageX : e.pageX, 
572						lv = pageX + xp - dw;
573						
574						if ( lv < minLeft ) {
575							lv = minLeft;
576						} else if ( lv > maxLeft) {
577							lv = maxLeft;
578						}
579			 
580						wv = (lv + dw/2 - co)*100/cw+'%';
581						
582						$( '.draggable', c ).css('left', wv).on( cz_2, function() {
583							$(this).removeClass( 'draggable' );
584							re.removeClass( 'resizable' );
585							de.parents().off( cz );
586						});
587						$( '.resizable', c ).css('width', wv); 
588						
589					}).on( cz_2, function(e){
590						de.removeClass( 'draggable' );
591						re.removeClass( 'resizable' );
592						de.parents().off( cz ).off( cz_2 );
593					});
594					e.preventDefault();
595				}).on( cz_2, function(e) {
596					de.removeClass( 'draggable' );
597					re.removeClass( 'resizable' );
598					de.parents().off( cz );
599				});
600			});
601		},
602
603		/*
604		*   Woo Quantity
605		*/
606		woo_quantity: function() {
607			if ( $( '.quantity' ).length ) {
608				if ( ! $( '.quantity-nav' ).length ) {
609					$('<div class="quantity-nav"><div class="quantity-button quantity-up">+</div><div class="quantity-button quantity-down">-</div></div>').insertAfter( '.quantity input' );
610				}
611				$( '.quantity' ).codevz( 'quantity', function() {
612					var spinner = $(this),
613						input = spinner.find('input[type="number"]'),
614						btnUp = spinner.find('.quantity-up'),
615						btnDown = spinner.find('.quantity-down'),
616						min = input.attr('min') || 1,
617						max = input.attr('max') || 999;
618
619					$( '.quantity-nav' ).css( 'color', input.css( 'color' ) );
620
621					btnUp.on( 'click', function() {
622						var oldValue = parseFloat(input.val());
623						if (oldValue >= max) {
624							var newVal = oldValue;
625						} else {
626							var newVal = oldValue + 1;
627						}
628						spinner.find("input").val( newVal ).trigger("change");
629					});
630
631					btnDown.on( 'click', function() {
632						var oldValue = parseFloat(input.val());
633						if (oldValue <= min) {
634							var newVal = oldValue;
635						} else {
636							var newVal = oldValue - 1;
637						}
638						spinner.find( "input" ).val( newVal ).trigger( "change" );
639					});
640				});
641			}
642		},
643
644		/*
645		*   Extra panel
646		*/
647		extra_panel: function() {
648			var h_top_bar = $( '.hidden_top_bar' ),
649				c_overlay = '.cz_overlay';
650
651			if ( h_top_bar.length ) {
652				h_top_bar.on( 'click', function(e) {
653					e.stopPropagation();
654				});
655				$( '> i', h_top_bar ).on( 'click', function (e) {
656					$( c_overlay ).fadeToggle( 'fast' );
657					$( this ).toggleClass( 'fa-angle-down fa-angle-up' );
658					h_top_bar.toggleClass( 'show_hidden_top_bar' );
659					e.stopPropagation();
660				});
661				body.on( 'click', function (e) {
662					if ( $( '.show_hidden_top_bar' ).length ) {
663						$( '> i', h_top_bar ).addClass( 'fa-angle-down' ).removeClass( 'fa-angle-up' );
664						h_top_bar.removeClass( 'show_hidden_top_bar' );
665						$( c_overlay ).fadeOut( 'fast' );
666					}
667				});
668			}
669		},
670
671		/*
672		*   Show More and Show Less
673		*/
674		show_more_less: function() {
675			$( '.cz_sml' ).codevz( 'sml', function() {
676				var dis = $( this ),
677					h = $( '.cz_sml_inner', dis ).css( 'height' );
678
679				$( '> a', dis ).off().on( 'click', function(e) {
680					dis.toggleClass( 'cz_sml_open' );
681
682					$( '.cz_sml_inner', dis ).animate({
683						'height': dis.hasClass( 'cz_sml_open' ) ? $( '.cz_sml_inner div:first-child', dis ).outerHeight( true ) : h
684					});
685
686					e.preventDefault();
687					return false;
688				});
689			});
690		},
691
692		/*
693		*   Ajax login, register and pasword recovery
694		*/
695		login: function() {
696			$( 'input, form' ).codevz( 'form', function() {
697				$( this ).attr( 'autocomplete', 'off' );
698			});
699
700			// Forms slides
701			$( '.cz_lrpr' ).codevz( 'lrpr', function() {
702				var en = $( this );
703
704				$( 'a[href*="#"]', en ).on( 'click', function(e) {
705					$( this.hash, en ).slideDown().siblings().slideUp();
706					e.preventDefault();
707					return false;
708				});
709			});
710
711			// Ajax submit form
712			$( '.cz_lrpr form' ).codevz( 'lrprform', function() {
713				var form = $( this ), 
714					check = false, 
715					inputs = form.find( 'input' );
716
717				form.off().on( 'submit', function() {
718					inputs.css( 'animation', 'none' ).each(function() {
719						if ( ! $( this ).val() ) {
720							$( this ).select().css( 'animation', 'BtnFxAbsorber .8s forwards' );
721							check = false;
722							return false;
723						} else {
724							check = true;
725						}
726					});
727
728					if ( $( '.cz_loader', form ).length ) {
729						return false;
730					}
731
732					if ( check ) {
733						var btn = form.find( 'input[type="submit"]' );
734						btn.attr( 'disabled', 'disabled' ).addClass( 'cz_loader' );
735						form.find( '.cz_msg' ).slideUp( 100 );
736
737						$.post( $( '#intro' ).data( 'ajax' ) || ajaxurl, form.serialize(), function( msg ) {
738							console.log( msg );
739							if ( msg ) {
740								form.find( '.cz_msg' ).html( msg ).slideDown( 100 );
741								btn.removeClass( 'cz_loader' );
742							} else {
743								window.location.reload( true );
744							}
745							btn.removeAttr( 'disabled' );
746						});
747					}
748
749					return false;
750				});
751			});
752		},
753
754		/*
755		*   For visual composer draggable element
756		*/
757		front_end_draggable: function( s ) {
758			setTimeout(function() {
759				$( s ).codevz( 'vc_dde', function() {
760					var en = $( this ),
761						inner = $( '.cz_free_position_element, .cz_hotspot', en );
762
763					en.css({'top': inner.data( 'top' ), 'left': inner.data( 'left' )}).draggable({
764						drag: function() {
765							var pos = $( this ).position(),
766								col = $( this ).closest(".wpb_column");
767
768							if ( ! $( ".ui-draggable", parent.document.body ).hasClass( 'vc_active' ) ) {
769								$( '> .vc_controls .vc-c-icon-mode_edit', en ).trigger( 'click' );
770							}
771
772							$( ".css_top", parent.document.body ).val( pos.top / col.height() * 100 + "%" );
773							$( ".css_left", parent.document.body ).val( pos.left / col.width() * 100 + "%" );
774						}
775					});
776
777					inner.css({'top': 'auto', 'left': 'auto'});
778				});
779			}, 500 );
780		},
781
782		/*
783		*   Click on image to view inline video
784		*/
785		inline_video: function() {
786			$( '.cz_video_inline' ).codevz( 'video', function() {
787				var en = $( this );
788
789				$( '.cz_no_lightbox', en ).on('click', function(e) {
790					var height = $( 'img', en ).height();
791
792					if ( ! $( 'iframe', en ).length ) {
793						var src = $( this ).attr( 'href' ),
794							src = src.substr( src.indexOf( "=" ) + 1 ),
795							iframe = '<iframe src="https://www.youtube-nocookie.com/embed/' + src + '?autoplay=1&amp;rel=0&amp;showinfo=0" allowfullscreen></iframe>';
796
797							$( this ).fadeOut( 'fast' ).css('position','absolute');
798							en.append( iframe );
799							en.find('iframe').css({
800								'position': 'relative',
801								'width': '100%',
802								'height': height
803							});
804					}
805
806					if ( ! $( this ).parent().find('.close_inline_video').length ) {
807						en.append('<i class="fa fa-remove close_inline_video"></i>');
808						$( '.close_inline_video' ).on('click', function(e) {
809							$( this ).parent().find('iframe').detach();
810							$( this ).parent().find('.cz_no_lightbox').fadeIn( 'fast' ).css('position','relative');
811							$( this ).detach();
812						});
813					}
814
815					e.preventDefault();
816				});
817
818			});
819		},
820
821		/*
822		*   Lazyload
823		*/
824		lazyLoad: function() {
825			//return;
826			var $isotope,
827				lazy = function() {
828					$( '[data-src]' ).each(function() {
829						var en = $( this );
830
831						if ( ! en.hasClass( 'lazyDone' ) && Codevz_Plus.inview( en ) ) {
832							en.attr( 'src', en.data( 'src' ) ).attr( 'data-src', '' );
833
834							if ( en.closest( '.cz_grid' ).data( 'isotope' ) ) {
835								$isotope = en.closest( '.cz_grid' );
836								en.parent().imagesLoaded().progress(function( imgLoad, image ) {
837									$isotope.isotope( 'layout' );
838									en.addClass( 'lazyDone' ).attr( 'srcset', en.data( 'srcset' ) ).attr( 'sizes', en.data( 'sizes' ) ).removeAttr( 'data-srcset data-sizes data-czlz' );
839								});
840							} else {
841								en.parent().imagesLoaded().progress(function( imgLoad, image ) {
842									en.addClass( 'lazyDone' ).attr( 'srcset', en.data( 'srcset' ) ).attr( 'sizes', en.data( 'sizes' ) ).removeAttr( 'data-srcset data-sizes data-czlz' );
843								});
844							}
845						}
846					});
847
848					if ( ! $( '[data-czlz]' ).length ) {
849						wind.off( 'scroll.cz_lazyload' );
850					}
851				};
852			
853			wind.on( 'scroll.cz_lazyload', lazy );
854		},
855
856		/*
857		*   Parallax elements on Scroll and mouseMove
858		*/
859		parallax: function() {
860
861			// On Mouse Move
862			var mparallax = $( '[class^="cz_mparallax_"], [class*=" cz_mparallax_"]' );
863			if ( mparallax.length ) {
864				wind.off( 'mousemove.mparallax' ).on( 'mousemove.mparallax', function(e) {
865					var w = $(window).width(),
866						h = $(window).height(),
867						x = e.pageX,
868						y = e.pageY;
869
870					mparallax.each(function() {
871						if ( Codevz_Plus.inview( $( this ) ) ) {
872							var en = $( this ),
873								cl = en.attr( "class" ),
874								sp = -( ( parseInt( cl.replace(/[^\d-]/g, "") ) || 50 ) * 10 ),
875								xx  = parseInt( x - en.offset().left - ( parseInt( en.width() / 2 ) ) ),
876								yy  = parseInt( y - en.offset().top - ( parseInt( en.height() / 2 ) ) ),
877								xx  = xx / w,
878								yy  = yy / h,
879								tr = "translate3d(" + Math.round( xx * sp ) + "px," + Math.round( yy * sp ) + "px, 0px)";
880
881							en.css({'transform': tr});
882						}
883					});
884				});
885			}
886
887			// On Scroll
888			var all = $( '[class^="cz_parallax_"], [class*=" cz_parallax_"]' ).not( '.js_parallax' ).length;
889			$( '[class^="cz_parallax_"], [class*=" cz_parallax_"]' ).codevz( 'parallax', function( index ) {
890				var b = $( this ),
891					c = b.attr( "class" ),
892					d = wind.height(),
893					f = c ? c.replace(/[^\d-]/g, "") : "undefined";
894				
895				b.css({});
896				"undefined" !== f && f && (f = parseInt(c.replace(/[^\d-]/g, "")) / 100);
897
898			  var g, h, j, k = b,
899				  l = ($(document).height(), k.offset().top),
900				  m = (k.outerHeight(), f),
901				  n = "foreground",
902				  i = ( c.indexOf("_v_") >= 0 ) ? 'v' : 'h',
903				  p = k.data("offset");
904
905			  g = m ? m : 0, h = n, j = p ? p : 0;
906
907			  var q = Math.round(l * g),
908				  r = Math.round((l - d / 2) * g - j);
909
910			  "background" == h ? "v" == i ? k.css({
911				"background-position": "center " + -q + "px"
912			  }) : "h" == i && k.css({
913				"background-position": -q + "px center"
914			  }) : "foreground" == h && ("v" == i ? k.css({
915				"-webkit-transform": "translateY(" + r + "px)",
916				"-moz-transform": "translateY(" + r + "px)",
917				transform: "translateY(" + r + "px)"
918			  }) : "h" == i && k.css({
919				"-webkit-transform": "translateX(" + r + "px)",
920				"-moz-transform": "translateX(" + r + "px)",
921				transform: "translateX(" + r + "px)"
922			  })), wind.on("scroll.cz_parallax", function() {
923				var b = $(document).height(),
924					c = k.offset().top,
925					e = (k.outerHeight(), $(this).scrollTop());
926				q = Math.round((c - e) * g), r = Math.round((c - d / 2 - e) * g - j), "background" == h ? "v" == i && k.is(":in-viewport") ? k.css({
927				  "background-position": "center " + -q + "px"
928				}) : "h" == i && k.css({
929				  "background-position": -q + "px center"
930				}) : "foreground" == h && e < b && ("v" == i ? k.css({
931				  "-webkit-transform": "translateY(" + r + "px)",
932				  "-moz-transform": "translateY(" + r + "px)",
933				  transform: "translateY(" + r + "px)"
934				}) : "h" == i && k.css({
935				  "-webkit-transform": "translateX(" + r + "px)",
936				  "-moz-transform": "translateX(" + r + "px)",
937				  transform: "translateX(" + r + "px)"
938				}))
939			  });
940
941			    // Front
942				if ( all == ( index + 1 ) ) {
943					Codevz_Plus.runScroll();
944				}
945			});
946		},
947
948		/*
949		*   Counter
950		*/
951		counter: function() {
952			var all = $( '.cz_counter' ).length;
953			
954			$( '.cz_counter' ).codevz( 'counter', function(i) {
955				var dis = $( this ), 
956					del = wind.width() <= 480 ? 0 : parseInt( dis.data( 'delay' ) ) || 0, 
957					eln = $( '.cz_counter_num', dis ),
958					num = eln.text(),
959					dur = parseInt( dis.data( 'duration' ) ),
960					tls = Math.ceil( num ).toLocaleString();
961
962				// If duration is 0
963				if ( dur == 0 ) {
964					eln.html( tls );
965					return;
966				}
967
968				// If once done
969				if ( dis.hasClass( 'done' ) ) {
970					if ( num == '0' ) {
971						dis.removeClass( 'done' );
972					} else {
973						return;
974					}
975				}
976				eln.html('0');
977
978				// On page scrolling
979				wind.on( 'scroll.cz_counter', function() {
980					if ( Codevz_Plus.inview( dis ) && ! dis.hasClass( 'done' ) ) {
981						dis.addClass( 'done' ).delay( del ).prop( 'Counter', 0 ).animate({ Counter: parseInt( num ) }, {
982							duration: dur,
983							easing: 'swing',
984							step: function () {
985								eln.text( Math.ceil( this.Counter ).toLocaleString() );
986							},
987							complete: function() {
988								eln.text( tls );
989							}
990						});
991					}
992
993					if ( ! $( '.cz_counter:not(.done)' ).length ) {
994						wind.off( 'scroll.cz_counter' );
995					}
996				});
997
998				// Front
999				if ( all == ( i + 1 ) ) {
1000					Codevz_Plus.runScroll();
1001				}
1002			});
1003		},
1004
1005		/*
1006		*   Accordion and Toggle
1007		*/
1008		accordion: function() {
1009			$( '.cz_acc' ).codevz( 'acc', function() {
1010				var acc = $( this ),
1011					arrows = acc.data( 'arrows' );
1012
1013				// Add arrows
1014				$( '.cz_acc_open_icon, .cz_acc_close_icon', acc ).remove();
1015				$( '.cz_acc_child', acc ).append( '<i class="cz_acc_open_icon ' + arrows.open + '"></i><i class="cz_acc_close_icon ' + arrows.close + '"></i>' );
1016
1017				// First open
1018				if ( acc.hasClass( 'cz_acc_first_open' ) ) {
1019					$( '> div > div:first', acc ).addClass( 'cz_isOpen' ).find( '.cz_acc_child_content' ).show();
1020					$( '> div > div:first .cz_acc_open_icon', acc ).hide().next('i').show();
1021				}
1022			});
1023
1024			// onClick
1025			$( '.cz_acc_child' ).codevz( 'acc_child', function() {
1026				$( this ).off().on( 'click', function() {
1027					var dis = $( this ),
1028						clo = dis.closest('.cz_acc'),
1029						con = dis.next();
1030
1031					if ( con.is(':visible') ) {
1032						$( '.cz_acc_open_icon', dis ).show().next('i').hide();
1033						con.slideUp().parent().removeClass( 'cz_isOpen' );
1034						return;
1035					}
1036
1037					if ( ! clo.hasClass( 'cz_acc_toggle' ) ) {
1038						$( '.cz_acc_open_icon', clo ).show().next('i').hide();
1039						clo.find('.cz_acc_child_content').slideUp().parent().removeClass( 'cz_isOpen' );
1040					}
1041
1042					$( '.cz_acc_open_icon', dis ).hide().next('i').show();
1043					con.slideToggle().parent().toggleClass( 'cz_isOpen' );
1044
1045					// Fix grid
1046					if ( con.find( '.cz_grid' ).data( 'isotope' ) ) {
1047						setTimeout(function() {
1048							con.find( '.cz_grid' ).isotope( 'layout' );
1049						}, 250 );
1050					}
1051
1052					return false;
1053				});
1054			});
1055		},
1056
1057		/*
1058		*   Split content box to two section
1059		*/
1060		content_box: function() {
1061			$( '.cz_split_box_left, .cz_split_box_right' ).codevz( 'split_box', function() {
1062				var dis = $( this ),
1063					fnc = function() {
1064						$( '.cz_split_box', dis ).css( 'height', $( '.cz_box_front', dis ).height() );
1065
1066						if ( ! dis.hasClass( 'cz_box_hide_arrow' ) && ! dis.find( '.cz_box_front_inner > span' ).length ) {
1067							dis.find( '.cz_box_front_inner' ).prepend( '<span></span>' );
1068						}
1069					};
1070
1071				dis.parent().find( '.cz_box_front_inner' ).off().codevzWatch( function() {
1072					fnc();
1073				});
1074
1075				wind.on( 'resize.cz_split_box', function() {
1076					fnc();
1077				});
1078			});
1079
1080			$( '.cz_scroll' ).codevz( 'cb_scroll', function() {
1081				$( this ).niceScroll({
1082					cursorcolor: $( this ).data( 'scroll-color' ) ? $( this ).data( 'scroll-color' ) : "#111111",
1083					railpadding: {top: 20, right: 10, left: 10, bottom: 20},
1084					cursoropacitymin: 0.4,
1085					cursoropacitymax: 1,
1086					cursorwidth: "5px",
1087					cursorborderradius: "50px",
1088					cursorborder: "0"
1089				});
1090			});
1091		},
1092
1093		/*
1094		*   NiceScroll
1095		*/
1096		nicescroll: function() {
1097			$( '[data-nice]' ).each(function() {
1098				var en = $( this ),
1099					pa = en.parent();
1100				pa.getNiceScroll().remove();
1101				pa.niceScroll( $.extend({cursoropacitymin: 0.3}, en.data( 'nice' ) ) );
1102				setTimeout(function() {
1103					wind.trigger( 'resize' );
1104				}, 1000 );
1105			});
1106		},
1107
1108		/*
1109		*   The Countdown, Countup and Loop timer
1110		*/
1111		countdown: function() {
1112			$( '[data-countdown]' ).codevz( 'countdown', function() {
1113				var dis = $( this ), 
1114					o = dis.data( 'countdown' ), 
1115					d = new Date( new Date().valueOf() + o.date * 1000 ),
1116					html_y = ( o.y !== '' ) ? '<li><span>
1116%Y</span><p>' + o.y + '%!Y:' + o.p + ';</p></li>' : '',
1117					html_d = ( o.d !== '' && html_y ) ? '<li><span>%-d</span><p>' + o.d + '%!n:' + o.p + ';</p></li>' : ( ( o.d !== '' ) ? '<li><span>%D</span><p>' + o.d + '%!d:' + o.p + ';</p></li>' : '' ),
1118					html_h = ( o.h !== '' ) ? '<li><span>%H</span><p>' + o.h + '%!H:' + o.p + ';</p></li>' : '',
1119					html_m = ( o.m !== '' ) ? '<li><span>%M</span><p>' + o.m + '%!M:' + o.p + ';</p></li>' : '',
1120					html_s = ( o.s !== '' ) ? '<li><span>%S</span><p>' + o.s + '%!S:' + o.p + ';</p></li>' : '';
1121
1122				dis.countdown( d, { elapse: o.elapse } ).on( 'update.countdown', function( e ) {
1123					dis.html( e.strftime( html_y + html_d + html_h + html_m + html_s ) );
1124				}).on('finish.countdown', function( e ) {
1125					dis.html( e.strftime( '<li><span>0</span></li><li><span>0</span></li><li><span>0</span></li><li><span>0</span></li>' ) );
1126					dis.addClass( 'ended' ).append( '<li class="expired">' + o.ex + '</li>' );
1127				});
1128			});
1129		},
1130
1131		/*
1132		*   Progress bar and Inforgraphic icons
1133		*/
1134		progress_bar: function() {
1135			$( '.progress_bar' ).codevz( 'pbar', function(i) {
1136				var dis = $( this ),
1137					num = $( 'b', dis ).html(),
1138					del = i * 100;
1139
1140				wind.on( 'scroll.cz_progress', function() {
1141					if ( Codevz_Plus.inview( dis ) && ! dis.hasClass( 'done' ) ) {
1142						dis.addClass('done').find('span').delay( del ).animate({width: parseInt( num ) + '%'}, 400 );
1143
1144						$( 'b', dis ).delay( del ).prop( 'Counter', 0 ).animate({ Counter: parseInt( num ) }, {
1145							duration: 2000,
1146							easing: 'swing',
1147							step: function() {
1148								$( 'b', dis ).show().text( Math.ceil( this.Counter ).toLocaleString() + '%' );
1149							}
1150						});
1151					}
1152
1153					if ( ! $( '.progress_bar:not(.done)' ).length ) {
1154						wind.off( 'scroll.cz_progress' );
1155					}
1156				});
1157			});
1158
1159			$( '.cz_progress_bar_icon' ).codevz( 'pbar_icon', function() {
1160				var dis = $( this ),
1161					num = dis.data('number');
1162
1163				wind.on( 'scroll.cz_pbar_icon', function() {
1164					if ( Codevz_Plus.inview( dis ) && ! dis.hasClass( 'done' ) ) {
1165						dis.addClass('done').find('> div').animate({width: parseInt( num ) + '%'}, 400 );
1166					}
1167
1168					if ( ! $( '.cz_progress_bar_icon:not(.done)' ).length ) {
1169						wind.off( 'scroll.cz_pbar_icon' );
1170					}
1171				});
1172			});
1173		},
1174
1175		/*
1176		*   Image zoom on mouse hover
1177		*/
1178		image_zoom: function() {
1179			var all = $( '.cz_image_hover_zoom' ).length;
1180
1181			$( '.cz_image_hover_zoom' ).codevz( 'zoom', function() {
1182				var dis = $( this ), img = $( 'a', dis ).attr('href'), big;
1183
1184				wind.on( 'scroll.cz_zoom', function() {
1185					if ( Codevz_Plus.inview( dis ) && ! big ) {
1186
1187						$( '.cz_img_for_zoom', dis ).detach();
1188						$( 'img', dis ).addClass('cz_dimg');
1189						$( 'a', dis ).append('<img class="cz_img_for_zoom" src="' + img + '" />');
1190						big = $( '.cz_img_for_zoom', dis );
1191						$( 'a', dis ).off().on({
1192							mouseenter: function() {
1193								big.fadeIn( 'fast' );
1194							},
1195							mouseleave: function() {
1196								big.fadeOut( 'fast' );
1197							},
1198							mousemove: function(e) {
1199								var y = e.pageY - $( e.currentTarget ).offset().top,
1200									x = e.pageX - $( e.currentTarget ).offset().left,
1201									ii = $( '.cz_dimg', dis ),
1202									yy = ( big.height() - ii.height() ) / ii.height(),
1203									xx = ( big.width() - ii.width() ) / ii.width();
1204
1205								big.css({
1206									'top': - ( y * yy ),
1207									'left': - ( x * xx )
1208								});
1209							}
1210						});
1211					}
1212
1213					if ( all == $( '.cz_img_for_zoom' ).length ) {
1214						wind.off( 'scroll.cz_zoom' );
1215					}
1216				}).scroll();
1217			});
1218		},
1219
1220		/*
1221		*   Google maps
1222		*/
1223		load_google_map_js: function() {
1224			if ( $( '.gmap' ).length) {
1225				if ( ! $( '#cz_google_map_api_js' ).length ) {
1226					var ak = $( '.gmap' ).data("api-key");
1227					var sc = document.createElement('script');
1228					sc.setAttribute('id','cz_google_map_api_js');
1229					sc.setAttribute('src','//maps.google.com/maps/api/js?key='+ak+'&callback=Codevz_Plus.load_google_map_js');
1230					document.head.appendChild(sc);
1231				}
1232				
1233				$( '.gmap' ).html( '' ).each(function() {
1234					var dis = $( this );
1235					var id = dis.attr('id') ;
1236					var f = 'mapfucntion_'+id+ '();';
1237					try{eval(f);}catch(e){}
1238					dis.addClass('done');
1239				});
1240			}
1241		},
1242
1243		/*
1244		*   Tilt FX
1245		*/
1246		tilt: function() {
1247			$( '[data-tilt]' ).codevz( 'tilt', function() {
1248				var tilt = $( this ).tilt({
1249					maxTilt: 6
1250				});
1251				tilt.on('tilt.mouseEnter', function() {
1252					$( this ).css({ 'animation-name': 'none' });
1253				});
1254			});
1255		},
1256
1257		separator: function() {
1258
1259			// Width related to vc full width
1260			$( '[data-vc-full-width] .cz_sep' ).codevz( 'cz_sep', function() {
1261				var en = $( this ),
1262					vc = en.closest( '[data-vc-full-width]' ),
1263					sc = vc.data( 'vc-stretch-content' );
1264				if ( vc.length ) {
1265					wind.on( 'resize', function() {
1266						en.css( 'width', sc ? '100%' : vc.css( 'width' ) ).css( 'left', sc ? '0' : ( parseInt( vc.css( 'left' ) ) + ( body.hasClass( 'rtl' ) ? 15 : -15 ) ) + 'px' );
1267					});
1268				}
1269			});
1270
1271			if ( ! $( '#cz_sep_style' ).length ) {
1272				$( 'head' ).append( '<style id="cz_sep_style" type="text/css"></style>' );
1273			}
1274			$( '.cz_separator' ).codevz( 'separator', function() {
1275				var dis = $( this );
1276				var id = dis.attr( 'id');
1277				var bc = dis.data( 'before-color' );
1278				var ac = dis.data( 'after-color' );
1279				var cc = $( 'style#cz_sep_style' ).html();
1280				if ( typeof ac != "undefined" ) {ac='#'+id+ac}else{ac='';}
1281				$( 'style#cz_sep_style' ).html(cc+'#'+id+bc+ac);
1282			});
1283		}
1284	};
1285
1286})(jQuery);
1287
1288/* Codevz_Plus */
1289jQuery(document).ready(function() {
1290	Codevz_Plus.init();
1291});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.