Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href=""> <abbr> <acronym> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

'),R){var r=o.guid+"_"+o.youTubeGuid++,s=[T.media,T.embed,a!==!0?T.animated:""].join(" "),u='";var l=e(u),p=e.extend(!0,{},{controls:0,rel:0,showinfo:0,wmode:"transparent",enablejsapi:1,version:3,playerapiid:r,loop:o.loop?1:0,autoplay:1,origin:C.location.protocol+"//"+C.location.host},o.youtubeOptions);p.autoplay=1,o.$container.append(l),o.player&&(o.oldPlayer=o.player,o.player=null),o.player=new C.YT.Player(r,{videoId:o.videoId,playerVars:p,events:{onReady:function(e){o.playerReady=!0,o.mute&&o.player.mute(),o.autoPlay||o.player.pauseVideo()},onStateChange:function(e){o.playing||e.data!==C.YT.PlayerState.PLAYING?o.loop&&o.playing&&e.data===C.YT.PlayerState.ENDED&&o.player.playVideo():(o.playing=!0,l.css({opacity:1}),m(o),o.$el.trigger($.loaded)),o.$el.find(P.embed).addClass(T.ready)},onPlaybackQualityChange:function(e){},onPlaybackRateChange:function(e){},onError:function(e){},onApiChange:function(e){}}}),m(o)}else O.push({data:o,source:t})}function c(e){var i=e.$container.find(P.media);i.length>=1&&(i.not(":last").remove(),e.oldPlayer=null)}function p(e){var i=e.$container.find(P.media);i.length>=1&&i.css({opacity:0})}function y(e){if(e.video&&e.playing){if(e.isYouTube)e.playerReady?e.player.pauseVideo():e.autoPlay=!1;else{var i=e.$container.find("video");i.length&&i[0].pause()}e.playing=!1}}function h(e){if(e.video&&!e.playing)if(e.isYouTube)e.playerReady?e.player.playVideo():e.autoPlay=!0;else{var i=e.$container.find("video");i.length&&i[0].play(),e.playing=!0}}function f(e){if(e.video)if(e.isYouTube&&e.playerReady)e.player.mute();else{var i=e.$container.find("video");i.length&&(i[0].muted=!0)}e.mute=!0}function v(e){if(e.video){if(e.isYouTube&&e.playerReady)e.player.unMute();else{var i=e.$container.find("video");i.length&&(i[0].muted=!1)}e.playing=!0}e.mute=!1}function g(e){if(e.responsive){var i=s(e);i!==e.currentSource?d(e,i,!1,!0):m(e)}else m(e)}function m(e){for(var i=e.$container.find(P.media),o=0,t=i.length;t>o;o++){var a=i.eq(o),n=e.isYouTube?"iframe":a.find("video").length?"video":"img",r=a.find(n);if(r.length&&("img"!==n||!I)){var s=e.$el.outerWidth(),d=e.$el.outerHeight(),u=b(e,r);e.width=u.width,e.height=u.height,e.left=0,e.top=0;var l=e.isYouTube?e.embedRatio:e.width/e.height;e.height=d,e.width=e.height*l,e.width 0 ) { Hooks.actions[ tag ].forEach( function( hook ) { actions[ hook.priority ] = actions[ hook.priority ] || []; actions[ hook.priority ].push( hook.callback ); } ); actions.forEach( function( hooks ) { hooks.forEach( function( callback ) { callback( options ); } ); } ); } } /** * Calls filters that are stored in Hooks.filters for a specific tag or return * original value if no filters exist. * * @param tag A registered tag in Hook.filters * @options Optional JavaScript object to pass to the callbacks */ Hooks.apply_filters = function( tag, value, options ) { var filters = []; if( typeof Hooks.filters[ tag ] !== "undefined" && Hooks.filters[ tag ].length > 0 ) { Hooks.filters[ tag ].forEach( function( hook ) { filters[ hook.priority ] = filters[ hook.priority ] || []; filters[ hook.priority ].push( hook.callback ); } ); filters.forEach( function( hooks ) { hooks.forEach( function( callback ) { value = callback( value, options ); } ); } ); } return value; } }catch(e){/*silent fail*/} /*!SWIFT-PERFORMANCE-SCRIPT-BOUNDARY*/ try{//Global var var CRUMINA = { }; ( function ( $ ) { // USE STRICT "use strict"; //----------------------------------------------------/ // Predefined Variables //----------------------------------------------------/ var $window = $( window ), $document = $( document ), $body = $( 'body' ), swipers = { }, //Elements $header = $( '#site-header' ), $preloader = $('#hellopreloader'), $topbar = $header.siblings( '.top-bar' ), $nav = $( '#primary-menu' ), $header_space = $( '.header-spacer' ), $counter = $( '.counter' ), $progress_bar = $( '.skills-item' ), $pie_chart = $( '.pie-chart' ), $animatedIcons = $( '.js-animate-icon' ), $asidePanel = $( '.right-menu' ), $primaryMenu = $( '.primary-menu' ), $subscribe_section = $( '#subscribe-section' ), $footer = $( '#site-footer' ), $mainContent = $( '#primary' ), $adminBar = $( '#wpadminbar' ); var $popupSearch = $( ".popup-search" ); /* ----------------------- * Fixed Header * --------------------- */ CRUMINA.fixedHeaderInit = function () { if ( $header.hasClass( 'disable-sticky' ) ) { return; } if ( ( $header.hasClass( 'header-sticky-desktop' ) && $window.width() > 769 ) || ( $header.hasClass( 'header-sticky-mobile' ) && $window.width() <= 769 ) ) { $header.headroom( { "offset": 50, "tolerance": 5, "classes": { "initial": "animated", "pinned": $header.data( 'pinned' ), "unpinned": $header.data( 'unpinned' ), }, onUnpin: function () { if ( $nav.find( '.sub-menu, .megamenu' ).hasClass( 'drop-up' ) ) { this.elem.classList.remove( this.classes.unpinned ); this.elem.classList.add( this.classes.pinned ); } else { this.elem.classList.add( this.classes.unpinned ); this.elem.classList.remove( this.classes.pinned ); } } } ); $header.removeClass( 'headroom--not-bottom' ); } else if ( $header.data( 'headroom' ) ) { $header.headroom( "destroy" ); } }; /* ----------------------- * Filter Ajax Portfolio Params * --------------------- */ CRUMINA.filterAjaxPortfolioParams = function () { Hooks.add_filter( 'ajax_portfolio_replaced_posts', function ( $posts, options ) { var $first = $posts.eq( 0 ); var $sec = $posts.eq( 1 ); $first.children( '.crumina-case-item' ).addClass( 'big' ); $sec.children( '.crumina-case-item' ).addClass( 'big' ); $first.removeClassWild( 'col-lg-*' ).removeClassWild( 'col-md-*' ).addClass( 'col-lg-6 col-md-6' ); $sec.removeClassWild( 'col-lg-*' ).removeClassWild( 'col-md-*' ).addClass( 'col-lg-6 col-md-6' ); return $posts; } ); Hooks.add_filter( 'ajax_portfolio_scroll_to', function ( top, options ) { return top - 150; } ); }; /* ----------------------- * Header Spacer * --------------------- */ CRUMINA.headerSpacer = function () { $adminBar = $( '#wpadminbar' ); setTimeout( function () { var $headerHeight = $header.outerHeight(), $adminBarHeight = $adminBar.outerHeight(), $headerSpacerHeight = $headerHeight + $adminBarHeight, $windowWidth = $(window).innerWidth(), $mainSlides = $('.main-slider .swiper-slide'), headerAbsoluteResolution = 1023; if ( $header.hasClass( 'headroom--not-top' ) ) { $headerSpacerHeight = $header.outerHeight() + $adminBarHeight + 40; } if( $header.hasClass( 'header-absolute' ) && $windowWidth > headerAbsoluteResolution ) { $mainSlides.css('padding-top', $headerSpacerHeight + 'px'); }else { $mainSlides.css('padding-top', 0 + 'px'); } $header_space.css( 'height', $headerSpacerHeight + 'px' ); }, 100 ); }; /* ----------------------- * Parallax footer * --------------------- */ CRUMINA.customScroll = function () { if ( $( '.mCustomScrollbar' ).length ) { $( '.mCustomScrollbar' ).perfectScrollbar( { wheelPropagation: false } ); } }; /* ----------------------- * Preloader * --------------------- */ CRUMINA.preloader = function () { setTimeout(function() { $preloader.fadeOut(800) ; }, 500); return false; }; /* ----------------------- * Parallax footer * --------------------- */ CRUMINA.parallaxFooter = function () { if ( $footer.length && $footer.hasClass( 'js-fixed-footer' ) ) { $footer.before( '' ); $( '.block-footer-height' ).matchHeight( { target: $footer } ); } }; /* ----------------------- * COUNTER NUMBERS * --------------------- */ CRUMINA.counters = function () { if ( $counter.length ) { $counter.each( function () { var $this = $( this ); $this.waypoint( function () { var $current = $this.find( 'span' ), $count = $current.data( 'to' ); if ( !$current.hasClass( 'animated' ) ) { $current.countup( $count ); $current.addClass( 'animated' ); } }, { offset: '95%', triggerOnce: true } ); } ); } }; /* ----------------------- * Progress bars Animation * --------------------- */ CRUMINA.progresBars = function () { $progress_bar.each( function () { var $this = $( this ); $this.find( '.skills-item-meter-active' ).addClass( 'item-fully-transparent' ); $this.waypoint( function () { var $current = $this.find( '.count-animate' ), $count = $current.data( 'to' ); if ( !$current.hasClass( 'animated' ) ) { $current.countup( $count ); $current.addClass( 'animated' ); } $this.find( '.skills-item-meter-active' ).fadeTo( 300, 1 ).addClass( 'skills-animate' ).removeClass( 'item-fully-transparent' ); }, { offset: '85%', triggerOnce: true } ); } ); }; /* ----------------------- * Pie chart Animation * --------------------- */ CRUMINA.pieCharts = function () { if ( $pie_chart.length ) { $pie_chart.each( function () { $( this ).waypoint( function () { var current_cart = $( this ); var startColor = current_cart.data( 'startcolor' ); var endColor = current_cart.data( 'endcolor' ); var counter = current_cart.data( 'value' ) * 100; current_cart.circleProgress( { thickness: 16, size: 320, startAngle: -Math.PI / 4 * 2, emptyFill: '#fff', lineCap: 'round', fill: { gradient: [ endColor, startColor ], gradientAngle: Math.PI / 4 } } ).on( 'circle-animation-progress', function ( event, progress ) { current_cart.find( '.content' ).html( parseInt( counter * progress, 10 ) + '%' ) } ); }, { offset: '90%', triggerOnce: true } ); } ); } }; /* ----------------------- * Animate SVG Icons * --------------------- */ CRUMINA.animateSvg = function () { if ( $animatedIcons.length ) { $animatedIcons.each( function () { var $this = $( this ); $( this ).waypoint( function () { var mySVG = $this.find( '> svg' ).drawsvg(); mySVG.drawsvg( 'animate' ); }, { offset: '95%', triggerOnce: true } ); } ); } }; /* ----------------------- * Tooltips JS plugin Init * --------------------- */ CRUMINA.tooltips = function () { if ( !$( '.tippy' ).length ) { return; } new Tippy( '.tippy', { animation: 'scale', arrow: true } ) }; /* ----------------------- * Run Chart js module * --------------------- */ CRUMINA.chartJs = function () { $( '.chart-js-run' ).each( function () { var $wrapper = $( this ); $( this ).waypoint( function () { var el_id = $wrapper.data( 'id' ); var dataholder = $wrapper.find( '.chart-data' ); var $fill = true; var $scales = true; var $borderColor = 'rgba(255, 255, 255, 0.1)'; var ctx = document.getElementById( el_id ); if ( $wrapper.data( 'type' ) === 'line' ) { $fill = false; $borderColor = dataholder.data( 'bordercolor' ); } if ( $wrapper.data( 'type' ) === 'doughnut' || $wrapper.data( 'type' ) === 'pie' || $wrapper.data( 'type' ) === 'polarArea' ) { $scales = false; } var myChart = new Chart( ctx, { type: $wrapper.data( 'type' ), data: { labels: dataholder.data( 'labels' ), datasets: [ { data: dataholder.data( 'numbers' ), backgroundColor: dataholder.data( 'colors' ), borderColor: $borderColor, pointBackgroundColor: dataholder.data( 'colors' ), pointBorderColor: dataholder.data( 'colors' ), fill: $fill } ] }, options: { legend: { display: false }, scales: { yAxes: [ { display: $scales, ticks: { beginAtZero: true, min: 0 }, } ], xAxes: [ { display: false, } ] } }, animation: { animateScale: true } } ); }, { offset: '75%', triggerOnce: true } ); } ); }; CRUMINA.runchartJS = function ( $wrapper ) { var el_id = $wrapper.data( 'id' ); var dataholder = $wrapper.find( '.chart-data' ); var $fill = true; var $scales = true; var $borderColor = 'rgba(255, 255, 255, 0.1)'; var ctx = document.getElementById( el_id ); if ( $wrapper.data( 'type' ) === 'line' ) { $fill = false; $borderColor = dataholder.data( 'bordercolor' ); } if ( $wrapper.data( 'type' ) === 'doughnut' || $wrapper.data( 'type' ) === 'pie' || $wrapper.data( 'type' ) === 'polarArea' ) { $scales = false; } var myChart = new Chart( ctx, { type: $wrapper.data( 'type' ), data: { labels: dataholder.data( 'labels' ), datasets: [ { data: dataholder.data( 'numbers' ), backgroundColor: dataholder.data( 'colors' ), borderColor: $borderColor, pointBackgroundColor: dataholder.data( 'colors' ), pointBorderColor: dataholder.data( 'colors' ), fill: $fill } ] }, options: { legend: { display: false }, scales: { yAxes: [ { display: $scales, ticks: { beginAtZero: true, min: 0 }, } ], xAxes: [ { display: false, } ] } }, animation: { animateScale: true } } ); }; CRUMINA.runTimeLine = function () { $( '.cd-horizontal-timeline' ).each( function () { $( this ).horizontalTimeline(); } ); }; $( "#top-bar-language" ).on( 'change', function () { var lang_href = jQuery( jQuery( this ).children( '[value=' + $( this ).val() + ']' ) ).data( 'url' ); if ( lang_href ) { document.location.href = lang_href; } } ); /* ----------------------------- * Toggle aside panel on click * ---------------------------*/ CRUMINA.togglePanel = function () { if ( $asidePanel.length ) { $asidePanel.toggleClass( 'opened' ); $body.toggleClass( 'overlay-enable' ); } }; /* ----------------------------- * Toggle Top bar on click * ---------------------------*/ CRUMINA.toggleBar = function () { $topbar.toggleClass( 'open' ); $body.toggleClass( 'overlay-enable' ); return false; }; /* ----------------------------- * Toggle search overlay * ---------------------------*/ CRUMINA.toggleSearch = function () { $body.toggleClass( 'open' ); $( '.overlay_search-input' ).focus(); }; /* ----------------------------- * Embedded Video in pop up * ---------------------------*/ CRUMINA.mediaPopups = function () { $( '.js-popup-iframe' ).magnificPopup( { disableOn: 700, type: 'iframe', mainClass: 'mfp-fade', removalDelay: 160, preloader: false, fixedContentPos: false } ); $( '.js-zoom-image, .link-image' ).magnificPopup( { type: 'image', removalDelay: 500, //delay removal by X to allow out-animation callbacks: { beforeOpen: function () { // just a hack that adds mfp-anim class to markup this.st.image.markup = this.st.image.markup.replace( 'mfp-figure', 'mfp-figure mfp-with-anim' ); this.st.mainClass = 'mfp-zoom-in'; } }, closeOnContentClick: true, midClick: true } ); $( '.js-zoom-gallery' ).each( function () { $( this ).magnificPopup( { delegate: 'a[data-lightbox="gallery-item"]', type: 'image', gallery: { enabled: true }, removalDelay: 500, //delay removal by X to allow out-animation callbacks: { beforeOpen: function () { // just a hack that adds mfp-anim class to markup this.st.image.markup = this.st.image.markup.replace( 'mfp-figure', 'mfp-figure mfp-with-anim' ); this.st.mainClass = 'mfp-zoom-in'; } }, closeOnContentClick: true, midClick: true } ); } ); $( '.js-open-video' ).magnificPopup( { type: 'inline', mainClass: 'inline--media-content overlay active animation-wrapper', // this class is for CSS animation below zoom: { enabled: true, // By default it's false, so don't forget to enable it duration: 300, // duration of the effect, in milliseconds easing: 'ease-in-out' // CSS transition easing function }, callbacks: { open: function () { var player = plyr.setup( '.plyr-module' ); }, close: function () { var player = plyr.get( '.plyr-module' ); player[0].destroy(); } } } ); }; /* ----------------------------- * Equal height * ---------------------------*/ CRUMINA.equalHeight = function () { $( '.js-equal-child' ).find( '.theme-module, .crumina-module' ).matchHeight( { property: 'min-height' } ); }; /* ----------------------------- * Scrollmagic scenes animation * ---------------------------*/ CRUMINA.SubscribeScrollAnnimation = function () { var controller = new ScrollMagic.Controller(); new ScrollMagic.Scene( { triggerElement: "#subscribe-section" } ) .setVelocity( ".gear", { opacity: 1, rotateZ: "360deg" }, 1200 ) .triggerHook( "onEnter" ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: "#subscribe-section" } ) .setVelocity( ".mail", { opacity: 1, bottom: "0" }, 600 ) .triggerHook( 0.8 ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: "#subscribe-section" } ) .setVelocity( ".mail-2", { opacity: 1, right: "20" }, 800 ) .triggerHook( 0.9 ) .addTo( controller ); }; CRUMINA.SeoScoreScrollAnnimation = function () { var controller = new ScrollMagic.Controller(); new ScrollMagic.Scene( { triggerElement: ".crumina-seo-score" } ) .setVelocity( ".crumina-seo-score .seoscore1", { opacity: 1, top: "-10" }, 400 ) .triggerHook( "onEnter" ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: ".crumina-seo-score" } ) .setVelocity( ".crumina-seo-score .seoscore2", { opacity: 1, bottom: "0" }, 800 ) .triggerHook( 0.7 ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: ".crumina-seo-score" } ) .setVelocity( ".crumina-seo-score .seoscore3", { opacity: 1, bottom: "0" }, 1000 ) .triggerHook( 0.8 ) .addTo( controller ); }; CRUMINA.TestimonialScrollAnnimation = function () { var controller = new ScrollMagic.Controller(); new ScrollMagic.Scene( { triggerElement: ".crumina-testimonial-slider" } ) .setVelocity( ".crumina-testimonial-slider .testimonial2", { opacity: 1, bottom: "-50" }, 400 ) .triggerHook( 0.6 ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: ".crumina-testimonial-slider" } ) .setVelocity( ".crumina-testimonial-slider .testimonial1", { opacity: 1, top: "20" }, 600 ) .triggerHook( 1 ) .addTo( controller ); }; CRUMINA.OurVisionScrollAnnimation = function () { var controller = new ScrollMagic.Controller(); new ScrollMagic.Scene( { triggerElement: ".crumina-our-vision" } ) .setVelocity( ".crumina-our-vision .elements", { opacity: 1 }, 600 ) .triggerHook( 0.6 ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: ".crumina-our-vision" } ) .setVelocity( ".crumina-our-vision .eye", { opacity: 1, bottom: "-90" }, 1000 ) .triggerHook( 1 ) .addTo( controller ); }; CRUMINA.MountainsScrollAnnimation = function () { var controller = new ScrollMagic.Controller(); new ScrollMagic.Scene( { triggerElement: ".crumina-background-mountains" } ) .setVelocity( ".crumina-background-mountains .mountain1", { opacity: 1, bottom: "0", paddingBottom: "10%" }, 800 ) .triggerHook( 0.4 ) .addTo( controller ); new ScrollMagic.Scene( { triggerElement: ".crumina-background-mountains" } ) .setVelocity( ".crumina-background-mountains .mountain2", { opacity: 1, bottom: "0" }, 800 ) .triggerHook( 0.3 ) .addTo( controller ); }; /* ----------------------------- * Isotope sorting * ---------------------------*/ CRUMINA.blogMasonry = function () { $( '.post--grid-masonry-container' ).each( function () { var $grid = $( this ); $grid.imagesLoaded().done( function () { $grid.isotope( { itemSelector: '.post--grid-masonry-col', layoutMode: 'masonry', percentPosition: true } ); } ); } ); }; CRUMINA.IsotopeSort = function () { var $container = $( '.sorting-container' ); $container.each( function () { var $current = $( this ); var layout = ( $current.data( 'layout' ).length ) ? $current.data( 'layout' ) : 'masonry'; $current.isotope( { itemSelector: '.sorting-item', layoutMode: layout, percentPosition: true } ); $current.imagesLoaded().progress( function () { $current.isotope( 'layout' ); } ); var $sorting_buttons = $current.siblings( '.sorting-menu' ).find( 'li' ); $sorting_buttons.each( function () { var selector = $( this ).data( 'filter' ); var count = $container.find( selector ).length; if ( count === 0 ) { $( this ).css( 'display', 'none' ); } } ); if ( $sorting_buttons.filter( ':visible' ).length < 2 ) { $container.siblings( '.sorting-menu' ).hide(); } $sorting_buttons.on( 'click', function () { if ( $( this ).hasClass( 'active' ) ) return false; $( this ).parent().find( '.active' ).removeClass( 'active' ); $( this ).addClass( 'active' ); var filterValue = $( this ).data( 'filter' ); if ( typeof filterValue != "undefined" ) { $current.isotope( { filter: filterValue } ); return false; } } ); } ); }; /* ----------------------------- * Sliders and Carousels * ---------------------------*/ CRUMINA.initSwiper = function ($swipers) { var initIterator = 0; var $breakPoints = false; $swipers = $swipers ? $swipers : $( '.swiper-container' ); $swipers.each( function () { var $t = $( this ); var index = 'swiper-unique-id-' + initIterator; $t.addClass( 'swiper-' + index + ' initialized' ).attr( 'id', index ); $t.find( '.swiper-pagination' ).addClass( 'pagination-' + index ); var $effect = ( $t.data( 'effect' ) ) ? $t.data( 'effect' ) : 'slide', $crossfade = ( $t.data( 'crossfade' ) ) ? $t.data( 'crossfade' ) : true, $loop = ( $t.data( 'loop' ) === false ) ? $t.data( 'loop' ) : true, $autoplayStopOnLast = $loop ? false : true, $showItems = ( $t.data( 'show-items' ) ) ? $t.data( 'show-items' ) : 1, $stopOnHover = ( $t.data( 'stop-on-hover' ) ) ? $t.data( 'stop-on-hover' ) : 'no', $scrollItems = ( $t.data( 'scroll-items' ) ) ? $t.data( 'scroll-items' ) : 1, $scrollDirection = ( $t.data( 'direction' ) ) ? $t.data( 'direction' ) : 'horizontal', $mouseScroll = ( $t.data( 'mouse-scroll' ) ) ? $t.data( 'mouse-scroll' ) : false, $parallax = ( $t.data( 'parallax' ) ) ? $t.data( 'parallax' ) : false, $autoplay = ( $t.data( 'autoplay' ) ) ? parseInt( $t.data( 'autoplay' ), 10 ) : 0, $autoheight = ( $t.closest( '.crumina-module' ).hasClass( 'auto-height' ) ) ? true : false, $slidesSpace = ( $showItems > 1 ) ? 20 : 0; if ( $showItems > 1 ) { $breakPoints = { 480: { slidesPerView: 1, slidesPerGroup: 1 }, 768: { slidesPerView: 2, slidesPerGroup: 2 } } } else { $breakPoints = { 768: { slidesPerView: 1, slidesPerGroup: 1 } } } swipers['swiper-' + index] = new Swiper( '.swiper-' + index, { pagination: '.pagination-' + index, paginationClickable: true, direction: $scrollDirection, mousewheelControl: $mouseScroll, mousewheelReleaseOnEdges: $mouseScroll, autoplayStopOnLast: $autoplayStopOnLast, slidesPerView: $showItems, slidesPerGroup: $scrollItems, spaceBetween: $slidesSpace, keyboardControl: true, preloadImages: true, updateOnImagesReady: true, autoplay: $autoplay, autoplayDisableOnInteraction: false, loop: $loop, breakpoints: $breakPoints, autoHeight: $autoheight, effect: $effect, fade: { crossFade: true }, parallax: $parallax, calculateHeight: true, onImagesReady: function ( swiper ) { CRUMINA.resizeSwiper( swiper ); }, onTransitionStart: function ( swiper ) { CRUMINA.resizeSwiper( swiper ); }, onSlideChangeStart: function ( swiper ) { if ( $t.find( '.slider-slides' ).length ) { $t.find( '.slider-slides .slide-active' ).removeClass( 'slide-active' ); var realIndex = swiper.slides.eq( swiper.activeIndex ).attr( 'data-swiper-slide-index' ); $t.find( '.slider-slides .slides-item' ).eq( realIndex ).addClass( 'slide-active' ); } }, } ); //Stop on hover var $currentSwiper = swipers['swiper-' + index]; if ( $stopOnHover === 'on' && $autoplay ) { $t.find('.swiper-wrapper').hover( function () { $currentSwiper.stopAutoplay(); }, function () { $currentSwiper.startAutoplay(); } ); } initIterator++; } ); //swiper arrows $( '.btn-prev' ).on( 'click', function () { var mySwiper = swipers['swiper-' + $( this ).parent().attr( 'id' )]; mySwiper.slidePrev(); } ); $( '.btn-next' ).on( 'click', function () { var mySwiper = swipers['swiper-' + $( this ).parent().attr( 'id' )]; mySwiper.slideNext(); } ); //swiper tabs $( '.slider-slides .slides-item' ).on( 'click', function () { if ( $( this ).hasClass( 'slide-active' ) ) return false; var mySwiper = swipers['swiper-' + $( this ).closest( '.swiper-container' ).attr( 'id' )]; var activeIndex = $( this ).parent().find( '.slides-item' ).index( this ); var $loop = ( mySwiper.container.data( 'loop' ) === false ) ? mySwiper.container.data( 'loop' ) : true; if ( true === $loop ) { activeIndex = activeIndex + 1; } mySwiper.slideTo( activeIndex ); $( this ).parent().find( '.slide-active' ).removeClass( 'slide-active' ); $( this ).addClass( 'slide-active' ); mySwiper.update(); return false; } ); }; CRUMINA.resizeSwiper = function ( swiper ) { swiper = ( swiper ) ? swiper : $( this )[0].swiper; var activeSlideHeight = swiper.slides.eq( swiper.activeIndex ).find( '> *' ).outerHeight(); var $pagination = $(swiper.container).find( '.slider-slides' ), $pagination_height = ( $pagination.length ) ? $pagination.height() : 0; if ( $( swiper.container ).hasClass( 'pagination-vertical' ) ) { var headlineHeights = swiper.slides.map( function () { return $( this ).find( '> *' ).height(); } ).get(); var maxHeadLineHeight = Math.max.apply( Math, headlineHeights ); swiper.container.css( { height: maxHeadLineHeight + 'px' } ); swiper.update( true ) } if ( $pagination_height > 0 ) { swiper.container.css( 'paddingBottom', $pagination_height + 'px' ) swiper.onResize(); } if ( $( swiper.container ).hasClass( 'auto-height' ) ) { swiper = ( swiper ) ? swiper : $( this )[0].swiper; swiper.container.css( { height: activeSlideHeight + 'px' } ); swiper.onResize(); } CRUMINA.mainSliderHeight(); }; CRUMINA.mainSliderHeight = function () { setTimeout( function () { $( '.swiper-container.js-full-window' ).each( function () { var $slider = $( this ), $pagination = $slider.find( '.slider-slides' ), $pagination_height = ( $pagination.length ) ? $pagination.height() : 0, winHei = $( window ).height(), $sliderSpaceOffsetTop = $mainContent.offset().top, $sliderSlide = ( '.main-slider .container.d-flex' ); $( $sliderSlide ).imagesLoaded().done( function () { var $sliderSlideHeight = $( $sliderSlide ).outerHeight(); if ( $sliderSlideHeight > winHei - $pagination_height - $sliderSpaceOffsetTop ) { $slider.css( 'min-height', 'auto' ).css( 'height', 'auto' ); $slider.find( '> .swiper-wrapper' ).css( 'min-height', 'auto' ).css( 'height', 'auto' ); } else { $slider.css( 'min-height', winHei - $sliderSpaceOffsetTop + 'px' ).css( 'height', winHei - $sliderSpaceOffsetTop + 'px' ); $slider.find( '> .swiper-wrapper' ).css( 'min-height', winHei - $pagination_height - $sliderSpaceOffsetTop + 'px' ).css( 'height', winHei - $pagination_height - $sliderSpaceOffsetTop + 'px' ); } } ); } ); }, 800 ); }; CRUMINA.initSmoothScroll = function () { // Cut the mustard var supports = 'querySelector' in document && 'addEventListener' in window; if ( !supports ) return; // Get all Toggle selectors var anchors = $( '#primary-menu a[href*=\\#], .btn[href*=\\#]:not(".scroll-ignore")' ).filter( function () { return $( this ).is( ":not([href=\\#])" ); } ); // Add smooth scroll to all anchors for ( var i = 0, len = anchors.length; i < len; i++ ) { var url = new RegExp( window.location.hostname + window.location.pathname ); if ( !url.test( anchors[i].href ) ) continue; anchors[i].setAttribute( 'data-scroll', true ); } if ( window.location.hash ) { var anchor = document.querySelector( window.location.hash ); // Get the anchor var toggle = document.querySelector( 'a[href*="' + window.location.hash + '"]' ); // Get the toggle (if one exists) var options = { }; // Any custom options you want to use would go here if (anchor) { smoothScroll.animateScroll(anchor, toggle, options); } } smoothScroll.init( { selector: '[data-scroll]', speed: 500, // Integer. How fast to complete the scroll in milliseconds easing: 'easeOutQuad', // Easing pattern to use offset: $header.height(), updateURL: true, // Boolean. If true, update the URL hash on scroll callback: function ( anchor, toggle ) { } // Function to run after scrolling } ); $( '#primary-menu' ).find( '[href=\\#]' ).on( 'click', function () { return false } ) }; CRUMINA.initVideo = function () { plyr.setup( '.plyr' ); }; CRUMINA.burgerAnimation = function () { /* In animations (to close icon) */ var beginAC = 80, endAC = 320, beginB = 80, endB = 320; function inAC( s ) { s.draw( '80% - 240', '80%', 0.3, { delay: 0.1, callback: function () { inAC2( s ) } } ); } function inAC2( s ) { s.draw( '100% - 545', '100% - 305', 0.6, { easing: ease.ease( 'elastic-out', 1, 0.3 ) } ); } function inB( s ) { s.draw( beginB - 60, endB + 60, 0.1, { callback: function () { inB2( s ) } } ); } function inB2( s ) { s.draw( beginB + 120, endB - 120, 0.3, { easing: ease.ease( 'bounce-out', 1, 0.3 ) } ); } /* Out animations (to burger icon) */ function outAC( s ) { s.draw( '90% - 240', '90%', 0.1, { easing: ease.ease( 'elastic-in', 1, 0.3 ), callback: function () { outAC2( s ) } } ); } function outAC2( s ) { s.draw( '20% - 240', '20%', 0.3, { callback: function () { outAC3( s ) } } ); } function outAC3( s ) { s.draw( beginAC, endAC, 0.7, { easing: ease.ease( 'elastic-out', 1, 0.3 ) } ); } function outB( s ) { s.draw( beginB, endB, 0.7, { delay: 0.1, easing: ease.ease( 'elastic-out', 2, 0.4 ) } ); } /* Scale functions */ function addScale( m ) { m.className = 'menu-icon-wrapper scaled'; } function removeScale( m ) { m.className = 'menu-icon-wrapper'; } /* Awesome burger scaled */ var pathD = document.getElementById( 'pathD' ), pathE = document.getElementById( 'pathE' ), pathF = document.getElementById( 'pathF' ), segmentD = new Segment( pathD, beginAC, endAC ), segmentE = new Segment( pathE, beginB, endB ), segmentF = new Segment( pathF, beginAC, endAC ), wrapper2 = document.getElementById( 'menu-icon-wrapper' ), trigger2 = document.getElementById( 'menu-icon-trigger' ), toCloseIcon2 = true; wrapper2.style.visibility = 'visible'; trigger2.onclick = function () { addScale( wrapper2 ); if ( toCloseIcon2 ) { inAC( segmentD ); inB( segmentE ); inAC( segmentF ); } else { outAC( segmentD ); outB( segmentE ); outAC( segmentF ); } toCloseIcon2 = !toCloseIcon2; setTimeout( function () { removeScale( wrapper2 ) }, 450 ); }; }; /* ----------------------------- * On Click Functions * ---------------------------*/ $window.keydown( function ( eventObject ) { if ( eventObject.which == 27 ) { if ( $asidePanel.hasClass( 'opened' ) ) { CRUMINA.togglePanel(); } if ( $body.hasClass( 'open' ) ) { CRUMINA.toggleSearch(); } if ( $topbar.hasClass( 'open' ) ) { CRUMINA.toggleBar(); } } } ); jQuery( ".js-close-aside" ).on( 'click', function () { if ( $asidePanel.hasClass( 'opened' ) ) { CRUMINA.togglePanel(); } return false; } ); jQuery( ".js-open-aside" ).on( 'click', function () { if ( !$asidePanel.hasClass( 'opened' ) ) { CRUMINA.togglePanel(); } return false; } ); //top bar jQuery( ".top-bar-link" ).on( 'click', function () { CRUMINA.toggleBar(); } ); jQuery( '.top-bar-close' ).on( 'click', function () { CRUMINA.toggleBar(); } ); jQuery( ".js-open-search" ).on( 'click', function () { CRUMINA.toggleSearch(); return false; } ); jQuery( ".overlay_search-close" ).on( 'click', function () { $body.removeClass( 'open' ); return false; } ); jQuery( ".js-open-p-search" ).on( 'click', function () { $popupSearch.fadeToggle(); } ); if ( $popupSearch.length ) { $popupSearch.find( 'input' ).focus( function () { $popupSearch.stop().animate( { 'width': $popupSearch.closest( '.container' ).width() + 70 }, 600 ) } ).blur( function () { $popupSearch.fadeToggle( 'fast', function () { $popupSearch.css( { 'width': '' } ); } ); } ); } //Remove play button on play in video player $( '.plyr' ).on( 'click', function () { $( this ).removeClass( 'hide-controls' ); } ); CRUMINA.quantity_selector_button_mod = function () { jQuery( ".quantity input[type=number]" ).each( function () { var number = jQuery( this ), max = parseFloat( number.attr( 'max' ) ), min = parseFloat( number.attr( 'min' ) ), step = parseInt( number.attr( 'step' ), 10 ), newNum = jQuery( jQuery( '
' ).append( number.clone( true ) ).html().replace( 'number', 'text' ) ).insertAfter( number ); number.remove(); setTimeout( function () { if ( newNum.next( '.quantity-plus' ).length == 0 ) { var minus = jQuery( '' ).insertBefore( newNum ), plus = jQuery( '' ).insertAfter( newNum ); minus.on( 'click', function () { var the_val = parseInt( newNum.val(), 10 ) - step; the_val = the_val < 0 ? 0 : the_val; the_val = the_val < min ? min : the_val; newNum.val( the_val ); enable_update_cart_button(); } ); plus.on( 'click', function () { var the_val = parseInt( newNum.val(), 10 ) + step; the_val = the_val > max ? max : the_val; newNum.val( the_val ); enable_update_cart_button(); } ); } }, 10 ); } ); }; // since woocommerce 2.6 the update_cart button is disabeld by default and needs to be enabled if quantities change function enable_update_cart_button() { var $update_cart_button = jQuery( 'table.shop_table.cart' ).closest( 'form' ).find( 'input[name="update_cart"]' ); if ( $update_cart_button.length ) { $update_cart_button.prop( 'disabled', false ); } } // listen to updated_wc_div event since woocommerce 2.6 to redraw quantity selector and update the cart icon value jQuery( document ).bind( "updated_wc_div", function () { //setTimeout( update_cart_sub-menu, 1000 ); // high timeout needed because the minicard is drawn after the updated_wc_div event CRUMINA.quantity_selector_button_mod(); } ); /*--------------------------------- ACCORDION -----------------------------------*/ $( '.accordion-heading' ).on( 'click', function () { $( this ).parents( '.panel-heading' ).toggleClass( 'active' ); $( this ).parents( '.accordion-panel' ).toggleClass( 'active' ); } ); CRUMINA.initAccordion = function ( wrp ) { $( wrp ).find( '.accordion-heading' ) .off( 'click' ) .on( 'click', function () { $( this ).parents( '.panel-heading' ).toggleClass( 'active' ); $( this ).parents( '.accordion-panel' ).toggleClass( 'active' ); } ); }; //Scroll to top. $( '.back-to-top' ).on( 'click', function () { $( 'html,body' ).animate( { scrollTop: 0 }, 1200 ); return false; } ); $( ".input-dark" ).find( 'input' ).focus( function () { $( this ).closest( 'form' ).addClass( 'input-drop-shadow' ); } ).blur( function () { $( this ).closest( 'form' ).removeClass( 'input-drop-shadow' ); } ); /* ----------------------------- * On DOM ready functions * ---------------------------*/ CRUMINA.init = function () { // 3-d party libs run $primaryMenu.crumegamenu( { showSpeed: 0, hideSpeed: 0, trigger: "hover", animation: "drop-up", indicatorFirstLevel: "", indicatorSecondLevel: "" } ); if ( $( '#menu-icon-wrapper' ).length ) { CRUMINA.burgerAnimation(); } CRUMINA.tooltips(); CRUMINA.customScroll(); CRUMINA.initSwiper(); CRUMINA.equalHeight(); CRUMINA.headerSpacer(); CRUMINA.mediaPopups(); CRUMINA.IsotopeSort(); CRUMINA.blogMasonry(); CRUMINA.parallaxFooter(); CRUMINA.runTimeLine(); CRUMINA.initSmoothScroll(); CRUMINA.quantity_selector_button_mod(); CRUMINA.fixedHeaderInit(); CRUMINA.videoBgInit(); CRUMINA.niceSelectInit(); CRUMINA.notGruppedInit(); CRUMINA.cartPopup.init(); CRUMINA.backgroundAnimationInit(); CRUMINA.addEventListeners(); if ($preloader.length) { CRUMINA.preloader(); } // On Scroll animations. CRUMINA.animateSvg(); CRUMINA.counters(); CRUMINA.progresBars(); CRUMINA.pieCharts(); CRUMINA.chartJs(); CRUMINA.filterAjaxPortfolioParams(); }; CRUMINA.addEventListeners = function () { $( window ).on( 'resize', function () { CRUMINA.mainSliderHeight(); CRUMINA.headerSpacer(); CRUMINA.fixedHeaderInit(); } ); // Hide open popups $document.on( 'click', function ( event ) { if ( !$( event.target ).closest( $asidePanel ).length ) { if ( $asidePanel.hasClass( 'opened' ) ) { CRUMINA.togglePanel(); } } } ); }; CRUMINA.videoBgInit = function(){ $('.js-section-background').background(); }; CRUMINA.niceSelectInit = function () { $( 'select.nice-select, select.orderby, .variations select, .card-expiration select' ).niceSelect(); }; CRUMINA.backgroundAnimationInit = function () { if ( $subscribe_section.length && $subscribe_section.hasClass( 'js-animated' ) ) { CRUMINA.SubscribeScrollAnnimation(); } if ( $( '.crumina-seo-score' ).length ) { CRUMINA.SeoScoreScrollAnnimation(); } if ( $( '.crumina-testimonial-slider' ).length ) { CRUMINA.TestimonialScrollAnnimation(); } if ( $( '.crumina-our-vision' ).length ) { CRUMINA.OurVisionScrollAnnimation(); } if ( $( '.crumina-background-mountains' ).length ) { CRUMINA.MountainsScrollAnnimation(); } }; CRUMINA.notGruppedInit = function () { // Must be optimized letter $( ".input-text" ).each( function () { $( this ).addClass( 'input-standard-grey' ); } ); $( ".crumina-module.list" ).each( function () { var $this = $( this ); var $icon = $( this ).data( 'icon' ); if ( $icon.length ) { $this.find( 'li' ).wrapInner( '
' ); $this.find( 'li' ).prepend( '' ); } } ); }; CRUMINA.cartPopup = { $wrap: null, $cart: null, init: function () { this.$wrap = $( 'nav.primary-menu .cart-contents' ); this.$cart = $( '.cart-popup-wrap', this.$wrap ); this.addEventListeners(); }, addEventListeners: function () { var _this = this; this.$wrap.on( 'click', '.js-cart-animate', function ( event ) { event.preventDefault(); _this.$cart.toggleClass( 'visible' ); _this.$cart.fadeToggle( 200 ); } ); $document.on( 'click', function ( event ) { if ( !$( event.target ).closest( _this.$wrap ).length ) { if ( _this.$cart.hasClass( 'visible' ) ) { _this.$cart.fadeToggle( 200 ); _this.$cart.toggleClass( 'visible' ) } } } ); }, }; $document.ready( function () { CRUMINA.init(); } ); } )( jQuery );}catch(e){/*silent fail*/} /*!SWIFT-PERFORMANCE-SCRIPT-BOUNDARY*/ try{var addComment={moveForm:function(a,b,c,d){var e,f,g,h,i=this,j=i.I(a),k=i.I(c),l=i.I("cancel-comment-reply-link"),m=i.I("comment_parent"),n=i.I("comment_post_ID"),o=k.getElementsByTagName("form")[0];if(j&&k&&l&&m&&o){i.respondId=c,d=d||!1,i.I("wp-temp-form-div")||(e=document.createElement("div"),e.id="wp-temp-form-div",e.style.display="none",k.parentNode.insertBefore(e,k)),j.parentNode.insertBefore(k,j.nextSibling),n&&d&&(n.value=d),m.value=b,l.style.display="",l.onclick=function(){var a=addComment,b=a.I("wp-temp-form-div"),c=a.I(a.respondId);if(b&&c)return a.I("comment_parent").value="0",b.parentNode.insertBefore(c,b),b.parentNode.removeChild(b),this.style.display="none",this.onclick=null,!1};try{for(var p=0;p1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var r=window.document.documentElement;return(window.document.scrollingElement||r)[n]}return e[n]}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=f(t,"top"),r=f(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}function u(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function c(e){if(!e||-1!==["HTML","BODY","#document"].indexOf(e.nodeName))return window.document.body;var t=l(e),n=t.overflow,i=t.overflowX;return/(auto|scroll)/.test(n+t.overflowY+i)?e:c(u(e))}function h(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return+e["border"+n+"Width"].split("px")[0]+ +e["border"+i+"Width"].split("px")[0]}function m(){var e=window.document.body,t=window.document.documentElement;return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth)}}function v(e){return Ae({},e,{right:e.left+e.width,bottom:e.top+e.height})}function g(e){var t={};if(Ce())try{t=e.getBoundingClientRect();var n=f(e,"top"),i=f(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}catch(e){}else t=e.getBoundingClientRect();var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?m():{},s=o.width||e.clientWidth||r.right-r.left,a=o.height||e.clientHeight||r.bottom-r.top,p=e.offsetWidth-s,d=e.offsetHeight-a;if(p||d){var u=l(e);p-=h(u,"x"),d-=h(u,"y"),r.width-=p,r.height-=d}return v(r)}function b(e,t){var n=Ce(),i="HTML"===t.nodeName,r=g(e),o=g(t),s=c(e),a=v({top:r.top-o.top,left:r.left-o.left,width:r.width,height:r.height});if(i||"BODY"===t.nodeName){var p=l(t),f=n&&i?0:+p.borderTopWidth.split("px")[0],u=n&&i?0:+p.borderLeftWidth.split("px")[0],h=n&&i?0:+p.marginTop.split("px")[0],m=n&&i?0:+p.marginLeft.split("px")[0];a.top-=f-h,a.bottom-=f-h,a.left-=u-m,a.right-=u-m,a.marginTop=h,a.marginLeft=m}return t.contains(s)&&(n||"BODY"!==s.nodeName)&&(a=d(a,t)),a}function y(e,t,n){return b(n,p(t,n))}function w(e){var t=window.getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function E(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function O(e,t,n,i){i=i.split("-")[0];var r=w(t),o={position:e,width:r.width,height:r.height},s=-1!==["right","left"].indexOf(i),a=s?"top":"left",p=s?"left":"top",l=s?"height":"width",f=s?"width":"height";return o[a]=n[a]+n[l]/2-r[l]/2,o[p]=i===p?n[p]-r[f]:n[E(p)],o}function x(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function L(e,t,n,i){var r="BODY"===e.nodeName,o=r?window:e;o.addEventListener(t,n,{passive:!0}),r||L(c(o.parentNode),t,n,i),i.push(o)}function T(e,t,n,i){n.updateBound=i,window.addEventListener("resize",n.updateBound,{passive:!0});var r=c(e);return L(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function A(e,t){return window.removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function k(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function C(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=k(e,function(e){return e[t]===n});return e.indexOf(i)}function M(e,t,n){return(void 0===n?e:e.slice(0,C(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&x(n)&&(t=n(t,e))}),t}function S(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function H(e){var t=window.document.documentElement,n=b(e,t),i=Math.max(t.clientWidth,window.innerWidth||0),r=Math.max(t.clientHeight,window.innerHeight||0),o=f(t),s=f(t,"left");return v({top:o-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:i,height:r})}function D(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===l(e,"position")||D(u(e)))}function I(e,t,n,i){var r={top:0,left:0},o=p(e,t);if("viewport"===i)r=H(o);else{var s=void 0;"scrollParent"===i?(s=c(u(e)),"BODY"===s.nodeName&&(s=window.document.documentElement)):s="window"===i?window.document.documentElement:i;var a=b(s,o);if("HTML"!==s.nodeName||D(o))r=a;else{var l=m(),f=l.height,d=l.width;r.top+=a.top-a.marginTop,r.bottom=f+a.top,r.left+=a.left-a.marginLeft,r.right=d+a.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function N(e,t,n,i,r){if(-1===e.indexOf("auto"))return e;var o=I(n,i,0,r),s={top:t.top-o.top,right:o.right-t.right,bottom:o.bottom-t.bottom,left:t.left-o.left},a=Object.keys(s).sort(function(e,t){return s[t]-s[e]})[0],p=e.split("-")[1];return a+(p?"-"+p:"")}function W(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function B(e,t){var n={position:e.offsets.popper.position},o={"x-placement":e.placement},s=Math.round(e.offsets.popper.left),a=Math.round(e.offsets.popper.top),p=r("transform");return t.gpuAcceleration&&p?(n[p]="translate3d("+s+"px, "+a+"px, 0)",n.top=0,n.left=0,n.willChange="transform"):(n.left=s,n.top=a,n.willChange="top, left"),i(e.instance.popper,Ae({},n,e.styles)),W(e.instance.popper,Ae({},o,e.attributes)),e.offsets.arrow&&i(e.arrowElement,e.offsets.arrow),e}function F(e,t,n,i,r){var o=y(r,t,e),s=N(n.placement,o,t,e,n.modifiers.flip.boundariesElement);return t.setAttribute("x-placement",s),n}function P(e,t,n){var i=k(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.orderr[f]&&(e.offsets.popper[p]+=o[p]+d-r[f]);var u=o[p]+o[a]/2-d/2,c=u-v(e.offsets.popper)[p];return c=Math.max(Math.min(r[a]-d,c),0),e.arrowElement=n,e.offsets.arrow={},e.offsets.arrow[p]=c,e.offsets.arrow[l]="",e}function j(e){return"end"===e?"start":"start"===e?"end":e}function q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Se.indexOf(e),i=Se.slice(n+1).concat(Se.slice(0,n));return t?i.reverse():i}function Y(e,t){if(S(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement),i=e.placement.split("-")[0],r=E(i),o=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case He.FLIP:s=[i,r];break;case He.CLOCKWISE:s=q(i);break;case He.COUNTERCLOCKWISE:s=q(i,!0);break;default:s=t.behavior}return s.forEach(function(a,p){if(i!==a||s.length===p+1)return e;i=e.placement.split("-")[0],r=E(i);var l=v(e.offsets.popper),f=e.offsets.reference,d=Math.floor,u="left"===i&&d(l.right)>d(f.left)||"right"===i&&d(l.left)d(f.top)||"bottom"===i&&d(l.top)d(n.right),m=d(l.top)d(n.bottom),b="left"===i&&c||"right"===i&&h||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),w=!!t.flipVariations&&(y&&"start"===o&&c||y&&"end"===o&&h||!y&&"start"===o&&m||!y&&"end"===o&&g);(u||b||w)&&(e.flipped=!0,(u||b)&&(i=s[p+1]),w&&(o=j(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=O(e.instance.state.position,e.instance.popper,e.offsets.reference,e.placement),e=M(e.instance.modifiers,e,"flip"))}),e}function R(e){var t=v(e.offsets.popper),n=e.offsets.reference,i=e.placement.split("-")[0],r=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",a=o?"left":"top",p=o?"width":"height";return t[s]r(n[s])&&(e.offsets.popper[a]=r(n[s])),e}function z(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],s=r[2];if(!o)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return v(a)[t]/100*o}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o}return o}function _(e,t,i,r){var o=[0,0],s=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map(function(e){return e.trim()}),p=a.indexOf(k(a,function(e){return-1!==e.search(/,|\s/)}));a[p]&&-1===a[p].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=-1!==p?[a.slice(0,p).concat([a[p].split(/\s*,\s*|\s+/)[0]]),[a[p].split(/\s*,\s*|\s+/)[1]].concat(a.slice(p+1))]:[a];return l=l.map(function(e,n){var r=(1===n?!s:s)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return z(e,r,t,i)})}),l.forEach(function(e,t){e.forEach(function(i,r){n(i)&&(o[t]+=i*("-"===e[r-1]?-1:1))})}),o}function K(e,t){var i=t.offset,r=e.placement,o=e.offsets,s=o.popper,a=o.reference,p=r.split("-")[0],l=void 0;return l=n(+i)?[+i,0]:_(i,s,a,p),"left"===p?(s.top+=l[0],s.left-=l[1]):"right"===p?(s.top+=l[0],s.left+=l[1]):"top"===p?(s.left+=l[0],s.top-=l[1]):"bottom"===p&&(s.left+=l[0],s.top+=l[1]),e.popper=s,e}function X(e,t){var n=t.boundariesElement||a(e.instance.popper),i=I(e.instance.popper,e.instance.reference,t.padding,n);t.boundaries=i;var r=t.priority,o=v(e.offsets.popper),s={primary:function(e){var n=o[e];return o[e]i[e]&&!t.escapeWithReference&&(r=Math.min(o[n],i[e]-("right"===e?o.width:o.height))),Te({},n,r)}};return r.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";o=Ae({},o,s[t](e))}),e.offsets.popper=o,e}function G(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets.reference,o=v(e.offsets.popper),s=-1!==["bottom","top"].indexOf(n),a=s?"left":"top",p=s?"width":"height",l={start:Te({},a,r[a]),end:Te({},a,r[a]+r[p]-o[p])};e.offsets.popper=Ae({},o,l[i])}return e}function J(e){if(!P(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=k(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right=0&&t.item(n)!==this;);return n>-1}),Element.prototype.closest||(Element.prototype.closest=function(e){for(var t=this;t;){if(t.matches(e))return t;t=t.parentElement}}),e.closest(t)}function ne(e){var t=e.settings,n=e.popper.querySelector(Ye.tooltip),i=Fe({placement:t.position},t.popperOptions||{},{modifiers:Fe({},t.popperOptions?t.popperOptions.modifiers:{},{flip:Fe({padding:parseInt(t.distance)+5},t.popperOptions&&t.popperOptions.modifiers?t.popperOptions.modifiers.flip:{}),offset:Fe({offset:parseInt(t.offset)},t.popperOptions&&t.popperOptions.modifiers?t.popperOptions.modifiers.offset:{})}),onUpdate:function(){n.style.top="",n.style.bottom="",n.style.left="",n.style.right="",n.style[ee(e.popper.getAttribute("x-placement"))]=-(t.distance-10)+"px"}});return new Ne(e.el,e.popper,i)}function ie(e,t,n){var i=document.createElement("div");i.setAttribute("class","tippy-popper"),i.setAttribute("role","tooltip"),i.setAttribute("aria-hidden","true"),i.setAttribute("id","tippy-tooltip-"+e);var r=document.createElement("div");if(r.setAttribute("class","tippy-tooltip tippy-tooltip--"+n.size+" "+n.theme+"-theme leave"),r.setAttribute("data-animation",n.animation),n.arrow){var o=document.createElement("div");o.setAttribute("class","arrow-"+n.arrowSize),o.setAttribute("x-arrow",""),r.appendChild(o)}if(n.animateFill){r.setAttribute("data-animatefill","");var s=document.createElement("div");s.setAttribute("class","leave"),s.setAttribute("x-circle",""),r.appendChild(s)}n.inertia&&r.setAttribute("data-inertia","");var a=document.createElement("div");if(a.setAttribute("class","tippy-tooltip-content"),n.html){var p=void 0;n.html instanceof Element?(a.innerHTML=n.html.innerHTML,p=n.html.id||"tippy-html-template"):(a.innerHTML=document.getElementById(n.html.replace("#","")).innerHTML,p=n.html),i.classList.add("html-template"),i.setAttribute("tabindex","0"),r.setAttribute("data-template-id",p)}else a.innerHTML=t;return r.style[ee(n.position)]=-(n.distance-10)+"px",r.appendChild(a),i.appendChild(r),i}function re(e,t,n,i){var r=[];return"manual"===e?r:(t.addEventListener(e,n.handleTrigger),r.push({event:e,handler:n.handleTrigger}),"mouseenter"===e&&(t.addEventListener("mouseleave",n.handleMouseleave),r.push({event:"mouseleave",handler:n.handleMouseleave})),"focus"===e&&(t.addEventListener("blur",n.handleBlur),r.push({event:"blur",handler:n.handleBlur})),r)}function oe(e){Ue.refs.push(e),Ue.els.push(e.el),Ue.poppers.push(e.popper)}function se(e){var t=e.getAttribute("title");e.setAttribute("data-original-title",t||"html"),e.removeAttribute("title")}function ae(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}function pe(e){var t=Ue.refs[Ue.els.indexOf(this)],n=ee(t.popper.getAttribute("x-placement")),i=Math.round(t.popper.offsetWidth/2),r=Math.round(t.popper.offsetHeight/2),o=e.pageX-i,s=e.pageY-2.5*r;"left"===n?(o=e.pageX-2*i-15,s=e.pageY-r):"right"===n?(o=e.pageX+r,s=e.pageY-r):"bottom"===n&&(s=e.pageY+r/1.5),t.popper.style[$("transform")]="translate3d("+o+"px, "+s+"px, 0)"}function le(e,t){t?window.getComputedStyle(t)[$("transform")]:window.getComputedStyle(e).opacity}function fe(e,t){e.forEach(function(e){e&&t(e.classList)})}function de(e,t){e.forEach(function(e){e&&(e.hasAttribute("x-circle")&&(t=Math.round(t/1.25)),e.style[$("transitionDuration")]=t+"ms")})}function ue(e,t){setTimeout(function(){e.settings.position!==e.popper.getAttribute("x-placement")?(e.flipped=!0,t()):e.flipped&&e.settings.position===e.popper.getAttribute("x-placement")&&(e.flipped=!1,t())},0)}function ce(e,t,n){var i=e.popper.querySelector(Ye.tooltip),r=!1,o=function e(){r=!0,i.removeEventListener("webkitTransitionEnd",e),i.removeEventListener("transitionend",e),n()};i.addEventListener("webkitTransitionEnd",o),i.addEventListener("transitionend",o),clearTimeout(e.transitionendTimeout),e.transitionendTimeout=setTimeout(function(){r||o()},t)}function he(e){if(document.body.appendChild(e.popper),e.popperInstance){if(e.popperInstance.update(),window.innerWidth<=e.popper.getBoundingClientRect().right)for(var t=0;t<10;t++)setTimeout(e.popperInstance.update,0);e.settings.followCursor||e.popperInstance.enableEventListeners()}else e.popperInstance=ne(e),e.settings.followCursor&&!Pe.touchUser&&e.el.addEventListener("mousemove",pe),e.settings.followCursor&&!Pe.touchUser&&e.popperInstance.disableEventListeners()}function me(e){Ue.refs.forEach(function(t){document.body.contains(t.popper)&&(!0!==t.settings.hideOnClick||e&&t.popper===e.popper||t.tippyInstance.hide(t.popper,t.settings.hideDuration))})}for(var ve=["native code","[object MutationObserverConstructor]"],ge="undefined"!=typeof window,be=["Edge","Trident","Firefox"],ye=0,we=0;we=0){ye=1;break}var Ee=ge&&function(e){return ve.some(function(t){return(e||"").toString().indexOf(t)>-1})}(window.MutationObserver),Oe=Ee?e:t,xe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};xe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Oe(this.update.bind(this)),this.options=Ae({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t.jquery?t[0]:t,this.popper=n.jquery?n[0]:n,i(this.popper,{position:"absolute"}),this.modifiers=Object.keys(e.Defaults.modifiers).map(function(t){return Ae({name:t},e.Defaults.modifiers[t])}),this.modifiers=this.modifiers.map(function(e){var t=o.modifiers&&o.modifiers[e.name]||{};return Ae({},e,t)}),o.modifiers&&(this.options.modifiers=Ae({},e.Defaults.modifiers,o.modifiers),Object.keys(o.modifiers).forEach(function(t){if(void 0===e.Defaults.modifiers[t]){var n=o.modifiers[t];n.name=t,r.modifiers.push(n)}})),this.modifiers=this.modifiers.sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&x(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return Le(e,[{key:"update",value:function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=y(this.state,this.popper,this.reference),e.placement=N(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement),e.originalPlacement=e.placement,e.offsets.popper=O(this.state,this.popper,e.offsets.reference,e.placement),e.offsets.popper.position="absolute",e=M(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}},{key:"destroy",value:function(){return this.state.isDestroyed=!0,S(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[r("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}},{key:"enableEventListeners",value:function(){this.state.eventsEnabled||(this.state=T(this.reference,this.options,this.state,this.scheduleUpdate))}},{key:"disableEventListeners",value:function(){this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=A(this.reference,this.state))}}]),e}();Ne.Utils=("undefined"!=typeof window?window:global).PopperUtils,Ne.placements=Me,Ne.Defaults=Ie;var We=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Be=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(We(this,e),"addEventListener"in window&&!/MSIE 9/i.test(navigator.userAgent)&&!window.operamini){this.settings=Fe(JSON.parse(JSON.stringify(je)),n),this.callbacks={wait:n.wait,beforeShown:n.beforeShown||new Function,shown:n.shown||new Function,beforeHidden:n.beforeHidden||new Function,hidden:n.hidden||new Function};var i=t instanceof Element?[t]:[].slice.call(document.querySelectorAll(t));this._createTooltips(i)}}return Be(e,[{key:"_applyIndividualSettings",value:function(e){var t=this,n={};return qe.forEach(function(i){var r=e.getAttribute("data-"+i.toLowerCase())||t.settings[i];"false"===r&&(r=!1),n[i]=r}),n.arrow&&(n.animateFill=!1),Fe(Fe({},this.settings),n)}},{key:"_getEventListenerHandlers",value:function(e,t,n){var i=this,r=function(){if(clearTimeout(t.getAttribute("data-delay")),clearTimeout(t.getAttribute("data-hidedelay")),"visible"!==t.style.visibility)if(n.delay){var e=setTimeout(function(){return i.show(t,n.duration)},n.delay);t.setAttribute("data-delay",e)}else i.show(t,n.duration)},o=function(e){return i.callbacks.wait?i.callbacks.wait(r,e):r()},s=function(){if(clearTimeout(t.getAttribute("data-hidedelay")),clearTimeout(t.getAttribute("data-delay")),n.hideDelay){var e=setTimeout(function(){return i.hide(t,n.hideDuration)},n.hideDelay);t.setAttribute("data-hidedelay",e)}else i.hide(t,n.hideDuration)};return{handleTrigger:function(e){if("click"===e.type&&"visible"===t.style.visibility&&"persistent"!==n.hideOnClick)return s();o(e)},handleMouseleave:function(i){if(n.interactive){var r=function i(r){te(r.target,Ye.popper)!==t&&te(r.target,Ye.el)!==e&&-1===n.trigger.indexOf("click")&&(document.removeEventListener("mousemove",i),s())};return document.addEventListener("mousemove",r)}s()},handleBlur:function(e){!Pe.touchUser&&e.relatedTarget&&(te(e.relatedTarget,Ye.popper)||s())}}}},{key:"_createTooltips",value:function(t){var n=this;t.forEach(function(e){var t=n._applyIndividualSettings(e),i=e.getAttribute("title");if(i||t.html){var r=Pe.idCounter;e.setAttribute("data-tooltipped",""),e.setAttribute("aria-describedby","tippy-tooltip-"+r),se(e);var o=ie(r,i,t),s=n._getEventListenerHandlers(e,o,t),a=[];t.trigger.trim().split(" ").forEach(function(n){return a=a.concat(re(n,e,s,t))}),oe({id:r,el:e,popper:o,settings:t,listeners:a,tippyInstance:n}),Pe.idCounter++}}),e.store=Ue}},{key:"getPopperElement",value:function(e){try{return Ue.refs[Ue.els.indexOf(e)].popper}catch(e){throw new Error("[Tippy error]: Element does not exist in any Tippy instances")}}},{key:"getTooltippedElement",value:function(e){try{return Ue.refs[Ue.poppers.indexOf(e)].el}catch(e){throw new Error("[Tippy error]: Popper does not exist in any Tippy instances")}}},{key:"show",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Ue.refs[Ue.poppers.indexOf(e)],o=e.querySelector(Ye.tooltip),s=e.querySelector(Ye.circle);i&&(this.callbacks.beforeShown(),ue(r,function(){t.hide(e,0,!1),setTimeout(function(){r.hidden||t.show(e,n,!1)},0)})),document.body.contains(e)||he(r),r.settings.interactive&&r.el.classList.add("active"),r.hidden=!1,r.popper.style.visibility="visible",r.popper.setAttribute("aria-hidden","false"),le(o,s),fe([o,s],function(e){e.remove("leave"),e.add("enter")}),de([o,s],n),ce(r,n,function(){"hidden"===e.style.visibility||r.onShownFired||(r.settings.transitionFlip||o.classList.add("tippy-notransition"),r.settings.interactive&&e.focus(),r.onShownFired=!0,i&&t.callbacks.shown())})}},{key:"hide",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.settings.duration,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Ue.refs[Ue.poppers.indexOf(e)],o=e.querySelector(Ye.tooltip),s=e.querySelector(Ye.circle);e.querySelector(Ye.content);i&&(this.callbacks.beforeHidden(),r.hidden=!0,r.el.classList.remove("active"),r.onShownFired=!1,r.settings.transitionFlip||o.classList.remove("tippy-notransition"),r.flipped=r.settings.position!==e.getAttribute("x-placement")),e.style.visibility="hidden",e.setAttribute("aria-hidden","true"),n===je.hideDuration?n=parseInt(o.style[$("transitionDuration")]):de([o,s],n),fe([o,s],function(e){e.remove("enter"),e.add("leave")}),r.settings.html&&-1!==r.settings.trigger.indexOf("click")&&ae(r.el)&&r.el.focus(),ce(r,n,function(){"visible"!==e.style.visibility&&document.body.contains(e)&&(r.popperInstance.disableEventListeners(),document.body.removeChild(e),i&&t.callbacks.hidden())})}},{key:"destroy",value:function(e){var t=Ue.poppers.indexOf(e),n=Ue.refs[t];n.listeners.forEach(function(e){return n.el.removeEventListener(e.event,e.handler)}),n.el.removeAttribute("data-tooltipped"),n.el.removeAttribute("aria-describedby"),n.popperInstance&&n.popperInstance.destroy(),Ue.refs.splice(t,1),Ue.els.splice(t,1),Ue.poppers.splice(t,1)}},{key:"update",value:function(e){var t=Ue.refs[Ue.poppers.indexOf(e)],n=e.querySelector(Ye.content),i=t.settings.html;i?n.innerHTML=i instanceof Element?i.innerHTML:document.getElementById(i.replace("#","")).innerHTML:(n.innerHTML=t.el.getAttribute("title")||t.el.getAttribute("data-original-title"),se(t.el))}}]),e}()}); }catch(e){/*silent fail*/} /*!SWIFT-PERFORMANCE-SCRIPT-BOUNDARY*/ try{/*! * jQuery UI Effects 1.11.4 * http://jqueryui.com * * Copyright jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * http://api.jqueryui.com/category/effects-core/ */ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b="ui-effects-",c=a;/*! * jQuery Color Animations v2.1.2 * https://github.com/jquery/jquery-color * * Copyright 2014 jQuery Foundation and other contributors * Released under the MIT license. * http://jquery.org/license * * Date: Wed Jan 16 08:47:09 2013 -0600 */ return a.effects={effect:{}},function(a,b){function c(a,b,c){var d=l[b.type]||{};return null==a?c||!b.def?null:b.def:(a=d.floor?~~a:parseFloat(a),isNaN(a)?b.def:d.mod?(a+d.mod)%d.mod:0>a?0:d.max")[0],o=a.each;n.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=n.style.backgroundColor.indexOf("rgba")>-1,o(k,function(a,b){b.cache="_"+a,b.props.alpha={idx:3,type:"percent",def:1}}),j.fn=a.extend(j.prototype,{parse:function(e,g,h,i){if(e===b)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=a(e).css(g),g=b);var l=this,m=a.type(e),n=this._rgba=[];return g!==b&&(e=[e,g,h,i],m="array"),"string"===m?this.parse(d(e)||f._default):"array"===m?(o(k.rgba.props,function(a,b){n[b.idx]=c(e[b.idx],b)}),this):"object"===m?(e instanceof j?o(k,function(a,b){e[b.cache]&&(l[b.cache]=e[b.cache].slice())}):o(k,function(b,d){var f=d.cache;o(d.props,function(a,b){if(!l[f]&&d.to){if("alpha"===a||null==e[a])return;l[f]=d.to(l._rgba)}l[f][b.idx]=c(e[a],b,!0)}),l[f]&&a.inArray(null,l[f].slice(0,3))<0&&(l[f][3]=1,d.from&&(l._rgba=d.from(l[f])))}),this):void 0},is:function(a){var b=j(a),c=!0,d=this;return o(k,function(a,e){var f,g=b[e.cache];return g&&(f=d[e.cache]||e.to&&e.to(d._rgba)||[],o(e.props,function(a,b){if(null!=g[b.idx])return c=g[b.idx]===f[b.idx]})),c}),c},_space:function(){var a=[],b=this;return o(k,function(c,d){b[d.cache]&&a.push(c)}),a.pop()},transition:function(a,b){var d=j(a),e=d._space(),f=k[e],g=0===this.alpha()?j("transparent"):this,h=g[f.cache]||f.to(g._rgba),i=h.slice();return d=d[f.cache],o(f.props,function(a,e){var f=e.idx,g=h[f],j=d[f],k=l[e.type]||{};null!==j&&(null===g?i[f]=j:(k.mod&&(j-g>k.mod/2?g+=k.mod:g-j>k.mod/2&&(g-=k.mod)),i[f]=c((j-g)*b+g,e)))}),this[e](i)},blend:function(b){if(1===this._rgba[3])return this;var c=this._rgba.slice(),d=c.pop(),e=j(b)._rgba;return j(a.map(c,function(a,b){return(1-d)*e[b]+d*a}))},toRgbaString:function(){var b="rgba(",c=a.map(this._rgba,function(a,b){return null==a?b>2?1:0:a});return 1===c[3]&&(c.pop(),b="rgb("),b+c.join()+")"},toHslaString:function(){var b="hsla(",c=a.map(this.hsla(),function(a,b){return null==a&&(a=b>2?1:0),b&&b<3&&(a=Math.round(100*a)+"%"),a});return 1===c[3]&&(c.pop(),b="hsl("),b+c.join()+")"},toHexString:function(b){var c=this._rgba.slice(),d=c.pop();return b&&c.push(~~(255*d)),"#"+a.map(c,function(a){return a=(a||0).toString(16),1===a.length?"0"+a:a}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),j.fn.parse.prototype=j.fn,k.hsla.to=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b,c,d=a[0]/255,e=a[1]/255,f=a[2]/255,g=a[3],h=Math.max(d,e,f),i=Math.min(d,e,f),j=h-i,k=h+i,l=.5*k;return b=i===h?0:d===h?60*(e-f)/j+360:e===h?60*(f-d)/j+120:60*(d-e)/j+240,c=0===j?0:l<=.5?j/k:j/(2-k),[Math.round(b)%360,c,l,null==g?1:g]},k.hsla.from=function(a){if(null==a[0]||null==a[1]||null==a[2])return[null,null,null,a[3]];var b=a[0]/360,c=a[1],d=a[2],f=a[3],g=d<=.5?d*(1+c):d+c-d*c,h=2*d-g;return[Math.round(255*e(h,g,b+1/3)),Math.round(255*e(h,g,b)),Math.round(255*e(h,g,b-1/3)),f]},o(k,function(d,e){var f=e.props,g=e.cache,i=e.to,k=e.from;j.fn[d]=function(d){if(i&&!this[g]&&(this[g]=i(this._rgba)),d===b)return this[g].slice();var e,h=a.type(d),l="array"===h||"object"===h?d:arguments,m=this[g].slice();return o(f,function(a,b){var d=l["object"===h?a:b.idx];null==d&&(d=m[b.idx]),m[b.idx]=c(d,b)}),k?(e=j(k(m)),e[g]=m,e):j(m)},o(f,function(b,c){j.fn[b]||(j.fn[b]=function(e){var f,g=a.type(e),i="alpha"===b?this._hsla?"hsla":"rgba":d,j=this[i](),k=j[c.idx];return"undefined"===g?k:("function"===g&&(e=e.call(this,k),g=a.type(e)),null==e&&c.empty?this:("string"===g&&(f=h.exec(e),f&&(e=k+parseFloat(f[2])*("+"===f[1]?1:-1))),j[c.idx]=e,this[i](j)))})})}),j.hook=function(b){var c=b.split(" ");o(c,function(b,c){a.cssHooks[c]={set:function(b,e){var f,g,h="";if("transparent"!==e&&("string"!==a.type(e)||(f=d(e)))){if(e=j(f||e),!m.rgba&&1!==e._rgba[3]){for(g="backgroundColor"===c?b.parentNode:b;(""===h||"transparent"===h)&&g&&g.style;)try{h=a.css(g,"backgroundColor"),g=g.parentNode}catch(i){}e=e.blend(h&&"transparent"!==h?h:"_default")}e=e.toRgbaString()}try{b.style[c]=e}catch(i){}}},a.fx.step[c]=function(b){b.colorInit||(b.start=j(b.elem,c),b.end=j(b.end),b.colorInit=!0),a.cssHooks[c].set(b.elem,b.start.transition(b.end,b.pos))}})},j.hook(g),a.cssHooks.borderColor={expand:function(a){var b={};return o(["Top","Right","Bottom","Left"],function(c,d){b["border"+d+"Color"]=a}),b}},f=a.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(c),function(){function b(b){var c,d,e=b.ownerDocument.defaultView?b.ownerDocument.defaultView.getComputedStyle(b,null):b.currentStyle,f={};if(e&&e.length&&e[0]&&e[e[0]])for(d=e.length;d--;)c=e[d],"string"==typeof e[c]&&(f[a.camelCase(c)]=e[c]);else for(c in e)"string"==typeof e[c]&&(f[c]=e[c]);return f}function d(b,c){var d,e,g={};for(d in c)e=c[d],b[d]!==e&&(f[d]||!a.fx.step[d]&&isNaN(parseFloat(e))||(g[d]=e));return g}var e=["add","remove","toggle"],f={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};a.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(b,d){a.fx.step[d]=function(a){("none"!==a.end&&!a.setAttr||1===a.pos&&!a.setAttr)&&(c.style(a.elem,d,a.end),a.setAttr=!0)}}),a.fn.addBack||(a.fn.addBack=function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}),a.effects.animateClass=function(c,f,g,h){var i=a.speed(f,g,h);return this.queue(function(){var f,g=a(this),h=g.attr("class")||"",j=i.children?g.find("*").addBack():g;j=j.map(function(){var c=a(this);return{el:c,start:b(this)}}),f=function(){a.each(e,function(a,b){c[b]&&g[b+"Class"](c[b])})},f(),j=j.map(function(){return this.end=b(this.el[0]),this.diff=d(this.start,this.end),this}),g.attr("class",h),j=j.map(function(){var b=this,c=a.Deferred(),d=a.extend({},i,{queue:!1,complete:function(){c.resolve(b)}});return this.el.animate(this.diff,d),c.promise()}),a.when.apply(a,j.get()).done(function(){f(),a.each(arguments,function(){var b=this.el;a.each(this.diff,function(a){b.css(a,"")})}),i.complete.call(g[0])})})},a.fn.extend({addClass:function(b){return function(c,d,e,f){return d?a.effects.animateClass.call(this,{add:c},d,e,f):b.apply(this,arguments)}}(a.fn.addClass),removeClass:function(b){return function(c,d,e,f){return arguments.length>1?a.effects.animateClass.call(this,{remove:c},d,e,f):b.apply(this,arguments)}}(a.fn.removeClass),toggleClass:function(b){return function(c,d,e,f,g){return"boolean"==typeof d||void 0===d?e?a.effects.animateClass.call(this,d?{add:c}:{remove:c},e,f,g):b.apply(this,arguments):a.effects.animateClass.call(this,{toggle:c},d,e,f)}}(a.fn.toggleClass),switchClass:function(b,c,d,e,f){return a.effects.animateClass.call(this,{add:c,remove:b},d,e,f)}})}(),function(){function c(b,c,d,e){return a.isPlainObject(b)&&(c=b,b=b.effect),b={effect:b},null==c&&(c={}),a.isFunction(c)&&(e=c,d=null,c={}),("number"==typeof c||a.fx.speeds[c])&&(e=d,d=c,c={}),a.isFunction(d)&&(e=d,d=null),c&&a.extend(b,c),d=d||c.duration,b.duration=a.fx.off?0:"number"==typeof d?d:d in a.fx.speeds?a.fx.speeds[d]:a.fx.speeds._default,b.complete=e||c.complete,b}function d(b){return!(b&&"number"!=typeof b&&!a.fx.speeds[b])||("string"==typeof b&&!a.effects.effect[b]||(!!a.isFunction(b)||"object"==typeof b&&!b.effect))}a.extend(a.effects,{version:"1.11.4",save:function(a,c){for(var d=0;d
").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),e={width:b.width(),height:b.height()},f=document.activeElement;try{f.id}catch(g){f=document.body}return b.wrap(d),(b[0]===f||a.contains(b[0],f))&&a(f).focus(),d=b.parent(),"static"===b.css("position")?(d.css({position:"relative"}),b.css({position:"relative"})):(a.extend(c,{position:b.css("position"),zIndex:b.css("z-index")}),a.each(["top","left","bottom","right"],function(a,d){c[d]=b.css(d),isNaN(parseInt(c[d],10))&&(c[d]="auto")}),b.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),b.css(e),d.css(c).show()},removeWrapper:function(b){var c=document.activeElement;return b.parent().is(".ui-effects-wrapper")&&(b.parent().replaceWith(b),(b[0]===c||a.contains(b[0],c))&&a(c).focus()),b},setTransition:function(b,c,d,e){return e=e||{},a.each(c,function(a,c){var f=b.cssUnit(c);f[0]>0&&(e[c]=f[0]*d+f[1])}),e}}),a.fn.extend({effect:function(){function b(b){function c(){a.isFunction(f)&&f.call(e[0]),a.isFunction(b)&&b()}var e=a(this),f=d.complete,h=d.mode;(e.is(":hidden")?"hide"===h:"show"===h)?(e[h](),c()):g.call(e[0],d,c)}var d=c.apply(this,arguments),e=d.mode,f=d.queue,g=a.effects.effect[d.effect];return a.fx.off||!g?e?this[e](d.duration,d.complete):this.each(function(){d.complete&&d.complete.call(this)}):f===!1?this.each(b):this.queue(f||"fx",b)},show:function(a){return function(b){if(d(b))return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}}(a.fn.show),hide:function(a){return function(b){if(d(b))return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}}(a.fn.hide),toggle:function(a){return function(b){if(d(b)||"boolean"==typeof b)return a.apply(this,arguments);var e=c.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}}(a.fn.toggle),cssUnit:function(b){var c=this.css(b),d=[];return a.each(["em","px","%","pt"],function(a,b){c.indexOf(b)>0&&(d=[parseFloat(c),b])}),d}})}(),function(){var b={};a.each(["Quad","Cubic","Quart","Quint","Expo"],function(a,c){b[c]=function(b){return Math.pow(b,a+2)}}),a.extend(b,{Sine:function(a){return 1-Math.cos(a*Math.PI/2)},Circ:function(a){return 1-Math.sqrt(1-a*a)},Elastic:function(a){return 0===a||1===a?a:-Math.pow(2,8*(a-1))*Math.sin((80*(a-1)-7.5)*Math.PI/15)},Back:function(a){return a*a*(3*a-2)},Bounce:function(a){for(var b,c=4;a<((b=Math.pow(2,--c))-1)/11;);return 1/Math.pow(4,3-c)-7.5625*Math.pow((3*b-2)/22-a,2)}}),a.each(b,function(b,c){a.easing["easeIn"+b]=c,a.easing["easeOut"+b]=function(a){return 1-c(1-a)},a.easing["easeInOut"+b]=function(a){return a<.5?c(2*a)/2:1-c(a*-2+2)/2}})}(),a.effects});}catch(e){/*silent fail*/} /*!SWIFT-PERFORMANCE-SCRIPT-BOUNDARY*/ try{/*! * The Grid – Responsive Grid Plugin * Copyright © 2015 All Rights Reserved. * @author Themeone [http://theme-one.com/the-grid/] */ function throttle(t,e){var i=0;return function(){var n=Date.now();if(i+e