// source --> https://www.luxurytravelservice.gr/wp-content/plugins/elementor-pro/assets/js/frontend.min.js?ver=2.5.11 /*! elementor-pro - v2.5.11 - 02-07-2019 */ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=70)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=2;if(e.$postsContainer.toggleClass("elementor-posts-masonry",n),n){var o=this.getElementSettings(this.getSkinPrefix()+"row_gap.size");""===this.getSkinPrefix()&&""===o&&(o=this.getElementSettings(this.getSkinPrefix()+"item_gap.size")),new elementorModules.utils.Masonry({container:e.$postsContainer,items:e.$posts.filter(":visible"),columnsCount:this.getSettings("colsCount"),verticalSpaceBetween:o}).run()}else e.$postsContainer.height("")},run:function(){setTimeout(this.fitImages,0),this.initMasonry()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.bindEvents(),this.run()},onWindowResize:function(){this.fitImages(),this.runMasonry()},onElementChange:function(){this.fitImages(),setTimeout(this.runMasonry)}})},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=0&&t.runImmediately()}else t.runImmediately()}}},{key:"runCallback",value:function(){this.getSettings("callback").apply(void 0,arguments)}},{key:"destroy",value:function(){cancelAnimationFrame(this.animationFrameRequest)}},{key:"onInit",value:function(){(function e(t,n,o){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,o)}if("value"in i)return i.value;var s=i.get;return void 0!==s?s.call(o):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onInit",this).call(this),this.run()}}]),t}();t.default=i},function(e,t,n){"use strict";e.exports=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{mainSwiper:".elementor-main-swiper",swiperSlide:".swiper-slide"},slidesPerView:{desktop:3,tablet:2,mobile:1}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={$mainSwiper:this.$element.find(e.mainSwiper)};return t.$mainSwiperSlides=t.$mainSwiper.find(e.swiperSlide),t},getSlidesCount:function(){return this.elements.$mainSwiperSlides.length},getInitialSlide:function(){var e=this.getEditSettings();return e.activeItemIndex?e.activeItemIndex-1:0},getEffect:function(){return this.getElementSettings("effect")},getDeviceSlidesPerView:function(e){var t="slides_per_view"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||this.getSettings("slidesPerView")[e])},getSlidesPerView:function(e){return"slide"===this.getEffect()?this.getDeviceSlidesPerView(e):1},getDesktopSlidesPerView:function(){return this.getSlidesPerView("desktop")},getTabletSlidesPerView:function(){return this.getSlidesPerView("tablet")},getMobileSlidesPerView:function(){return this.getSlidesPerView("mobile")},getDeviceSlidesToScroll:function(e){var t="slides_to_scroll"+("desktop"===e?"":"_"+e);return Math.min(this.getSlidesCount(),+this.getElementSettings(t)||1)},getSlidesToScroll:function(e){return"slide"===this.getEffect()?this.getDeviceSlidesToScroll(e):1},getDesktopSlidesToScroll:function(){return this.getSlidesToScroll("desktop")},getTabletSlidesToScroll:function(){return this.getSlidesToScroll("tablet")},getMobileSlidesToScroll:function(){return this.getSlidesToScroll("mobile")},getSpaceBetween:function(e){var t="space_between";return e&&"desktop"!==e&&(t+="_"+e),this.getElementSettings(t).size||0},getSwiperOptions:function(){var e=this.getElementSettings();"progress"===e.pagination&&(e.pagination="progressbar");var t={grabCursor:!0,initialSlide:this.getInitialSlide(),slidesPerView:this.getDesktopSlidesPerView(),slidesPerGroup:this.getDesktopSlidesToScroll(),spaceBetween:this.getSpaceBetween(),loop:"yes"===e.loop,speed:e.speed,effect:this.getEffect()};if(e.show_arrows&&(t.navigation={prevEl:".elementor-swiper-button-prev",nextEl:".elementor-swiper-button-next"}),e.pagination&&(t.pagination={el:".swiper-pagination",type:e.pagination,clickable:!0}),"cube"!==this.getEffect()){var n={},o=elementorFrontend.config.breakpoints;n[o.lg-1]={slidesPerView:this.getTabletSlidesPerView(),slidesPerGroup:this.getTabletSlidesToScroll(),spaceBetween:this.getSpaceBetween("tablet")},n[o.md-1]={slidesPerView:this.getMobileSlidesPerView(),slidesPerGroup:this.getMobileSlidesToScroll(),spaceBetween:this.getSpaceBetween("mobile")},t.breakpoints=n}return!this.isEdit&&e.autoplay&&(t.autoplay={delay:e.autoplay_speed,disableOnInteraction:!!e.pause_on_interaction}),t},updateSpaceBetween:function(e,t){var n=t.match("space_between_(.*)"),o=n?n[1]:"desktop",i=this.getSpaceBetween(o),r=elementorFrontend.config.breakpoints;if("desktop"!==o){var s={tablet:r.lg-1,mobile:r.md-1};e.params.breakpoints[s[o]].spaceBetween=i}else e.originalParams.spaceBetween=i;e.params.spaceBetween=i,e.update()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.swipers={},1>=this.getSlidesCount()||(this.swipers.main=new Swiper(this.elements.$mainSwiper,this.getSwiperOptions()))},onElementChange:function(e){1>=this.getSlidesCount()||(0===e.indexOf("width")&&this.swipers.main.update(),0===e.indexOf("space_between")&&this.updateSpaceBetween(this.swipers.main,e))},onEditSettingsChange:function(e){1>=this.getSlidesCount()||"activeItemIndex"===e&&this.swipers.main.slideToLoop(this.getEditSettings("activeItemIndex")-1)}})},function(e,t,n){"use strict";var o,i=n(6);o=i.extend({getDefaultSettings:function(){var e=i.prototype.getDefaultSettings.apply(this,arguments);return e.slidesPerView={desktop:1,tablet:1,mobile:1},e},getEffect:function(){return"slide"}}),e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";var o=n(103).extend(),i=n(104);e.exports=function(e){new o({$element:e}),new i({$element:e})}},function(e,t,n){"use strict";var o=n(3);e.exports=o.extend({getSkinPrefix:function(){return"cards_"}})},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({bindEvents:function(){elementorFrontend.addListenerOnce(this.getUniqueHandlerID()+"sticky","resize",this.run)},unbindEvents:function(){elementorFrontend.removeListeners(this.getUniqueHandlerID()+"sticky","resize",this.run)},isActive:function(){return void 0!==this.$element.data("sticky")},activate:function(){var e=this.getElementSettings(),t={to:e.sticky,offset:e.sticky_offset,effectsOffset:e.sticky_effects_offset,classes:{sticky:"elementor-sticky",stickyActive:"elementor-sticky--active elementor-section--handles-inside",stickyEffects:"elementor-sticky--effects",spacer:"elementor-sticky__spacer"}},n=elementorFrontend.elements.$wpAdminBar;e.sticky_parent&&(t.parent=".elementor-widget-wrap"),n.length&&"top"===e.sticky&&"fixed"===n.css("position")&&(t.offset+=n.height()),this.$element.sticky(t)},deactivate:function(){this.isActive()&&this.$element.sticky("destroy")},run:function(e){if(this.getElementSettings("sticky")){var t=elementorFrontend.getCurrentDeviceMode();-1!==this.getElementSettings("sticky_on").indexOf(t)?!0===e?this.reactivate():this.isActive()||this.activate():this.deactivate()}else this.deactivate()},reactivate:function(){this.deactivate(),this.activate()},onElementChange:function(e){-1!==["sticky","sticky_on"].indexOf(e)&&this.run(!0),-1!==["sticky_offset","sticky_effects_offset","sticky_parent"].indexOf(e)&&this.reactivate()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.run()},onDestroy:function(){elementorModules.frontend.handlers.Base.prototype.onDestroy.apply(this,arguments),this.deactivate()}});e.exports=function(e){new o({$element:e})}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var o=function(){function e(e,t){for(var n=0;n1?r-1:0),a=1;athis.lastScrollOffset?"down":"up",t=this.getTriggerSetting("direction");if(this.lastScrollOffset=scrollY,e===t)if("up"!==e){var n=elementorFrontend.elements.$document.height()-innerHeight;scrollY/n*100>=this.getTriggerSetting("offset")&&this.callback()}else this.callback()}},{key:"run",value:function(){elementorFrontend.elements.$window.on("scroll",this.checkScroll)}},{key:"destroy",value:function(){elementorFrontend.elements.$window.off("scroll",this.checkScroll)}}]),t}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=this.getTimingSetting("views")}}]),t}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n=this.getTimingSetting("sessions")}}]),t}();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;ne}}]),t}();t.default=r},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{form:".elementor-form"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t},bindEvents:function(){this.elements.$form.on("submit_success",this.handleFormAction)},handleFormAction:function(e,t){if(void 0!==t.data.popup){var n=t.data.popup;if("open"===n.action)return elementorProFrontend.modules.popup.showPopup(n);setTimeout(function(){return elementorProFrontend.modules.popup.closePopup(n,e)},1e3)}}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(91));var i=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return elementorFrontend.hooks.addAction("frontend/element_ready/global",function(e){elementorFrontend.elementsHandler.addHandler(o.default,{$element:e})}),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,elementorModules.Module),t}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n "+u)}var c={type:i,interactions:r,$element:s,$dimensionsElement:a,refreshDimensions:this.isEdit,classes:{element:"elementor-motion-effects-element",parent:"elementor-motion-effects-parent",backgroundType:"elementor-motion-effects-element-type-background",container:"elementor-motion-effects-container",layer:"elementor-motion-effects-layer",perspective:"elementor-motion-effects-perspective"}};return"fixed"===this.getCurrentDeviceSetting("_position")&&(c.range="page"),"background"===i&&"column"===this.getElementType()&&(c.addBackgroundLayerTo=" > .elementor-element-populated"),c}},{key:"activate",value:function(e){var t=this.prepareOptions(e);jQuery.isEmptyObject(t.interactions)||(this[e]=new s.default(t))}},{key:"deactivate",value:function(e){this[e]&&(this[e].destroy(),delete this[e])}},{key:"toggle",value:function(){var e=this,t=elementorFrontend.getCurrentDeviceMode(),n=this.getElementSettings();["motion_fx","background_motion_fx"].forEach(function(o){var i=n[o+"_devices"];(!i||-1!==i.indexOf(t))&&(n[o+"_motion_fx_scrolling"]||n[o+"_motion_fx_mouse"])?e[o]?e.refreshInstance(o):e.activate(o):e.deactivate(o)})}},{key:"refreshInstance",value:function(e){var t=this[e];if(t){var n=this.prepareOptions(e);t.setSettings(n),t.refresh()}}},{key:"onInit",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onInit",this).call(this),this.initEffects(),this.toggle()}},{key:"onElementChange",value:function(e){var t=this;if(/motion_fx_((scrolling)|(mouse)|(devices))$/.test(e))this.toggle();else{var n=e.match(".*?motion_fx");if(n){var o=n[0];this.refreshInstance(o),this[o]||this.activate(o)}/^_position/.test(e)&&["motion_fx","background_motion_fx"].forEach(function(e){t.refreshInstance(e)})}}},{key:"onDestroy",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"onDestroy",this).call(this),["motion_fx","background_motion_fx"].forEach(function(t){e.deactivate(t)})}}]),t}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n",{class:e.classes.container}),this.elements.$motionFXLayer=jQuery("
",{class:e.classes.layer}),this.updateBackgroundLayerSize(),this.elements.$motionFXContainer.prepend(this.elements.$motionFXLayer),(e.addBackgroundLayerTo?this.$element.find(e.addBackgroundLayerTo):this.$element).prepend(this.elements.$motionFXContainer)}},{key:"removeBackgroundLayer",value:function(){this.elements.$motionFXContainer.remove()}},{key:"updateBackgroundLayerSize",value:function(){var e=this.getSettings(),t={x:0,y:0},n=e.interactions.mouseMove,o=e.interactions.scroll;n&&n.translateXY&&(t.x=10*n.translateXY.speed,t.y=10*n.translateXY.speed),o&&(o.translateX&&(t.x=10*o.translateX.speed),o.translateY&&(t.y=10*o.translateY.speed)),this.elements.$motionFXLayer.css({width:100+t.x+"%",height:100+t.y+"%"})}},{key:"defineDimensions",value:function(){var e=this.getSettings("$dimensionsElement")||this.$element,t=e.offset(),n={elementHeight:e.outerHeight(),elementWidth:e.outerWidth(),elementTop:t.top,elementLeft:t.left};n.elementRange=n.elementHeight+innerHeight,this.setSettings("dimensions",n),"background"===this.getSettings("type")&&this.defineBackgroundLayerDimensions()}},{key:"defineBackgroundLayerDimensions",value:function(){var e=this.getSettings("dimensions");e.layerHeight=this.elements.$motionFXLayer.height(),e.layerWidth=this.elements.$motionFXLayer.width(),e.movableX=e.layerWidth-e.elementWidth,e.movableY=e.layerHeight-e.elementHeight,this.setSettings("dimensions",e)}},{key:"initInteractionsTypes",value:function(){this.interactionsTypes={scroll:i.default,mouseMove:r.default}}},{key:"prepareSpecialActions",value:function(){var e=this.getSettings(),t=!(!e.interactions.mouseMove||!e.interactions.mouseMove.tilt);this.elements.$parent.toggleClass(e.classes.perspective,t)}},{key:"cleanSpecialActions",value:function(){var e=this.getSettings();this.elements.$parent.removeClass(e.classes.perspective)}},{key:"runInteractions",value:function(){var e=this,t=this.getSettings();this.prepareSpecialActions(),jQuery.each(t.interactions,function(t,n){e.interactions[t]=new e.interactionsTypes[t]({motionFX:e,callback:function(){for(var t=arguments.length,o=Array(t),i=0;in&&(n=t.affectedRange.start),t.affectedRange.end3?o-3:0),r=3;r",{class:e.dynamicLetter}).text(n);o&&i.addClass(e.animationIn),t.append(i)}),t.css("opacity",1)})},showLetter:function(e,t,n,o){var i=this,r=this.getSettings("classes");e.addClass(r.animationIn),e.is(":last-child")?n||setTimeout(function(){i.hideWord(t)},i.getSettings("animationDelay")):setTimeout(function(){i.showLetter(e.next(),t,n,o)},o)},hideLetter:function(e,t,n,o){var i=this,r=this.getSettings();e.removeClass(r.classes.animationIn),e.is(":last-child")?n&&setTimeout(function(){i.hideWord(i.getNextWord(t))},i.getSettings("animationDelay")):setTimeout(function(){i.hideLetter(e.next(),t,n,o)},o)},showWord:function(e,t){var n=this,o=n.getSettings(),i=n.getElementSettings("animation_type");"typing"===i?(n.showLetter(e.find("."+o.classes.dynamicLetter).eq(0),e,!1,t),e.addClass(o.classes.textActive).removeClass(o.classes.textInactive)):"clip"===i&&n.elements.$dynamicWrapper.animate({width:e.width()+10},o.revealDuration,function(){setTimeout(function(){n.hideWord(e)},o.revealAnimationDelay)})},hideWord:function(e){var t=this,n=t.getSettings(),o=n.classes,i="."+o.dynamicLetter,r=t.getElementSettings("animation_type"),s=t.getNextWord(e);if("typing"===r)t.elements.$dynamicWrapper.addClass(o.typeSelected),setTimeout(function(){t.elements.$dynamicWrapper.removeClass(o.typeSelected),e.addClass(n.classes.textInactive).removeClass(o.textActive).children(i).removeClass(o.animationIn)},n.selectionDuration),setTimeout(function(){t.showWord(s,n.typeLettersDelay)},n.typeAnimationDelay);else if(t.elements.$headline.hasClass(o.letters)){var a=e.children(i).length>=s.children(i).length;t.hideLetter(e.find(i).eq(0),e,a,n.lettersDelay),t.showLetter(s.find(i).eq(0),s,a,n.lettersDelay)}else"clip"===r?t.elements.$dynamicWrapper.animate({width:"2px"},n.revealDuration,function(){t.switchWord(e,s),t.showWord(s)}):(t.switchWord(e,s),setTimeout(function(){t.hideWord(s)},n.animationDelay))},animateHeadline:function(){var e=this,t=e.getElementSettings("animation_type"),n=e.elements.$dynamicWrapper;if("clip"===t)n.width(n.width()+10);else if("typing"!==t){var o=0;e.elements.$dynamicText.each(function(){var e=jQuery(this).width();e>o&&(o=e)}),n.css("width",o)}setTimeout(function(){e.hideWord(e.elements.$dynamicText.eq(0))},e.getSettings("animationDelay"))},getSvgPaths:function(e){var t=this.svgPaths[e],n=jQuery();return t.forEach(function(e){n=n.add(jQuery("",{d:e}))}),n},fillWords:function(){var e=this.getElementSettings(),t=this.getSettings("classes"),n=this.elements.$dynamicWrapper;if("rotate"===e.headline_style){(e.rotating_text||"").split("\n").forEach(function(e,o){var i=jQuery("",{class:t.dynamicText}).html(e.replace(/ /g," "));o||i.addClass(t.textActive),n.append(i)})}else{var o=jQuery("",{class:t.dynamicText+" "+t.textActive}).text(e.highlighted_text),i=jQuery("",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"}).html(this.getSvgPaths(e.marker));n.append(o,i[0].outerHTML)}this.elements.$dynamicText=n.children("."+t.dynamicText)},rotateHeadline:function(){var e=this.getSettings();this.elements.$headline.hasClass(e.classes.letters)&&this.singleLetters(),this.animateHeadline()},initHeadline:function(){"rotate"===this.getElementSettings("headline_style")&&this.rotateHeadline()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.fillWords(),this.initHeadline()}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/media-carousel.default",n(99)),elementorFrontend.hooks.addAction("frontend/element_ready/testimonial-carousel.default",n(7)),elementorFrontend.hooks.addAction("frontend/element_ready/reviews.default",n(7))}},function(e,t,n){"use strict";var o,i=n(6);o=i.extend({slideshowSpecialElementSettings:["slides_per_view","slides_per_view_tablet","slides_per_view_mobile"],isSlideshow:function(){return"slideshow"===this.getElementSettings("skin")},getDefaultSettings:function(){var e=i.prototype.getDefaultSettings.apply(this,arguments);return this.isSlideshow()&&(e.selectors.thumbsSwiper=".elementor-thumbnails-swiper",e.slidesPerView={desktop:5,tablet:4,mobile:3}),e},getElementSettings:function(e){return-1!==this.slideshowSpecialElementSettings.indexOf(e)&&this.isSlideshow()&&(e="slideshow_"+e),i.prototype.getElementSettings.call(this,e)},getDefaultElements:function(){var e=this.getSettings("selectors"),t=i.prototype.getDefaultElements.apply(this,arguments);return this.isSlideshow()&&(t.$thumbsSwiper=this.$element.find(e.thumbsSwiper)),t},getEffect:function(){return"coverflow"===this.getElementSettings("skin")?"coverflow":i.prototype.getEffect.apply(this,arguments)},getSlidesPerView:function(e){return this.isSlideshow()?1:"coverflow"===this.getElementSettings("skin")?this.getDeviceSlidesPerView(e):i.prototype.getSlidesPerView.apply(this,arguments)},getSwiperOptions:function(){var e=i.prototype.getSwiperOptions.apply(this,arguments);return this.isSlideshow()&&(e.loopedSlides=this.getSlidesCount(),delete e.pagination,delete e.breakpoints),e},onInit:function(){i.prototype.onInit.apply(this,arguments);var e=this.getSlidesCount();if(this.isSlideshow()&&!(1>=e)){var t=this.getElementSettings(),n="yes"===t.loop,o={},r=elementorFrontend.config.breakpoints,s=this.getDeviceSlidesPerView("desktop");o[r.lg-1]={slidesPerView:this.getDeviceSlidesPerView("tablet"),spaceBetween:this.getSpaceBetween("tablet")},o[r.md-1]={slidesPerView:this.getDeviceSlidesPerView("mobile"),spaceBetween:this.getSpaceBetween("mobile")};var a={slidesPerView:s,initialSlide:this.getInitialSlide(),centeredSlides:t.centered_slides,slideToClickedSlide:!0,spaceBetween:this.getSpaceBetween(),loopedSlides:e,loop:n,onSlideChangeEnd:function(e){n&&e.fixLoop()},breakpoints:o};this.swipers.main.controller.control=this.swipers.thumbs=new Swiper(this.elements.$thumbsSwiper,a),this.swipers.thumbs.controller.control=this.swipers.main}},onElementChange:function(e){1>=this.getSlidesCount()||(this.isSlideshow()?(0===e.indexOf("width")&&(this.swipers.main.update(),this.swipers.thumbs.update()),0===e.indexOf("space_between")&&this.updateSpaceBetween(this.swipers.thumbs,e)):i.prototype.onElementChange.apply(this,arguments))}}),e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/countdown.default",n(101))}},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({cache:null,cacheElements:function(){var e=this.$element.find(".elementor-countdown-wrapper");this.cache={$countDown:e,timeInterval:null,elements:{$countdown:e.find(".elementor-countdown-wrapper"),$daysSpan:e.find(".elementor-countdown-days"),$hoursSpan:e.find(".elementor-countdown-hours"),$minutesSpan:e.find(".elementor-countdown-minutes"),$secondsSpan:e.find(".elementor-countdown-seconds"),$expireMessage:e.parent().find(".elementor-countdown-expire--message")},data:{id:this.$element.data("id"),endTime:new Date(1e3*e.data("date")),actions:e.data("expire-actions"),evergreenInterval:e.data("evergreen-interval")}}},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.cacheElements(),00&&parseInt(r.interval,10)===n?r.dueDate:void 0}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/form.default",n(8)),elementorFrontend.hooks.addAction("frontend/element_ready/subscribe.default",n(8)),elementorFrontend.hooks.addAction("frontend/element_ready/form.default",n(105)),elementorFrontend.hooks.addAction("frontend/element_ready/form.default",n(106)),elementorFrontend.hooks.addAction("frontend/element_ready/form.default",n(107))}},function(e,t,n){"use strict";e.exports=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{form:".elementor-form",submitButton:'[type="submit"]'},action:"elementor_pro_forms_send_form",ajaxUrl:elementorProFrontend.config.ajaxurl}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t.$submitButton=t.$form.find(e.submitButton),t},bindEvents:function(){this.elements.$form.on("submit",this.handleSubmit);var e=this.elements.$form.find("input[type=file]");e.length&&e.on("change",this.validateFileSize)},validateFileSize:function(e){var t=this,n=jQuery(e.currentTarget),o=n[0].files;if(o.length){var i=1024*parseInt(n.attr("data-maxsize"))*1024,r=n.attr("data-maxsize-message");Array.prototype.slice.call(o).forEach(function(e){i'+r+"").find(":input").attr("aria-invalid","true"),t.elements.$form.trigger("error"))})}},beforeSend:function(){var e=this.elements.$form;e.animate({opacity:"0.45"},500).addClass("elementor-form-waiting"),e.find(".elementor-message").remove(),e.find(".elementor-error").removeClass("elementor-error"),e.find("div.elementor-field-group").removeClass("error").find("span.elementor-form-help-inline").remove().end().find(":input").attr("aria-invalid","false"),this.elements.$submitButton.attr("disabled","disabled").find("> span").prepend(' ')},getFormData:function(){var e=new FormData(this.elements.$form[0]);return e.append("action",this.getSettings("action")),e.append("referrer",location.toString()),e},onSuccess:function(e){var t=this.elements.$form;this.elements.$submitButton.removeAttr("disabled").find(".elementor-form-spinner").remove(),t.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),e.success?(t.trigger("submit_success",e.data),t.trigger("form_destruct",e.data),t.trigger("reset"),void 0!==e.data.message&&""!==e.data.message&&t.append('")):(e.data.errors&&(jQuery.each(e.data.errors,function(e,n){t.find("#form-field-"+e).parent().addClass("elementor-error").append(''+n+"").find(":input").attr("aria-invalid","true")}),t.trigger("error")),t.append('"))},onError:function(e,t){var n=this.elements.$form;n.append('"),this.elements.$submitButton.html(this.elements.$submitButton.text()).removeAttr("disabled"),n.animate({opacity:"1"},100).removeClass("elementor-form-waiting"),n.trigger("error")},handleSubmit:function(e){var t=this.elements.$form;if(e.preventDefault(),t.hasClass("elementor-form-waiting"))return!1;this.beforeSend(),jQuery.ajax({url:this.getSettings("ajaxUrl"),type:"POST",dataType:"json",data:this.getFormData(),processData:!1,contentType:!1,success:this.onSuccess,error:this.onError})}})},function(e,t,n){"use strict";e.exports=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{form:".elementor-form"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$form=this.$element.find(e.form),t},bindEvents:function(){this.elements.$form.on("form_destruct",this.handleSubmit)},handleSubmit:function(e,t){void 0!==t.data.redirect_url&&(location.href=t.data.redirect_url)}})},function(e,t,n){"use strict";e.exports=function(e){var t=e.find(".elementor-g-recaptcha:last");if(t.length){!function e(t){window.grecaptcha&&window.grecaptcha.render?t():setTimeout(function(){e(t)},350)}(function(){!function(e){var t=grecaptcha.render(e[0],e.data()),n=e.parents("form");e.data("widgetId",t),n.on("reset error",function(){grecaptcha.reset(e.data("widgetId"))})}(t)})}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.find(".elementor-date-field");if(n.length){t.each(n,function(e,n){!function(e){if(!t(e).hasClass("elementor-use-native")){var n={minDate:t(e).attr("min")||null,maxDate:t(e).attr("max")||null,allowInput:!0};e.flatpickr(n)}}(n)})}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.find(".elementor-time-field");if(n.length){t.each(n,function(e,n){!function(e){t(e).hasClass("elementor-use-native")||e.flatpickr({noCalendar:!0,enableTime:!0,allowInput:!0})}(n)})}}},function(e,t,n){"use strict";e.exports=function(){jQuery.fn.smartmenus&&(jQuery.SmartMenus.prototype.isCSSOn=function(){return!0},elementorFrontend.config.is_rtl&&(jQuery.fn.smartmenus.defaults.rightToLeftSubMenus=!0)),elementorFrontend.hooks.addAction("frontend/element_ready/nav-menu.default",n(109))}},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({stretchElement:null,getDefaultSettings:function(){return{selectors:{menu:".elementor-nav-menu",anchorLink:".elementor-nav-menu--main .elementor-item-anchor",dropdownMenu:".elementor-nav-menu__container.elementor-nav-menu--dropdown",menuToggle:".elementor-menu-toggle"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$menu=this.$element.find(e.menu),t.$anchorLink=this.$element.find(e.anchorLink),t.$dropdownMenu=this.$element.find(e.dropdownMenu),t.$dropdownMenuFinalItems=t.$dropdownMenu.find(".menu-item:not(.menu-item-has-children) > a"),t.$menuToggle=this.$element.find(e.menuToggle),t},bindEvents:function(){this.elements.$menu.length&&(this.elements.$menuToggle.on("click",this.toggleMenu.bind(this)),this.getElementSettings("full_width")&&this.elements.$dropdownMenuFinalItems.on("click",this.toggleMenu.bind(this,!1)),elementorFrontend.addListenerOnce(this.$element.data("model-cid"),"resize",this.stretchMenu))},initStretchElement:function(){this.stretchElement=new elementorModules.frontend.tools.StretchElement({element:this.elements.$dropdownMenu})},toggleMenu:function(e){var t=this.elements.$menuToggle.hasClass("elementor-active");"boolean"!=typeof e&&(e=!t),this.elements.$menuToggle.toggleClass("elementor-active",e),e&&this.getElementSettings("full_width")&&this.stretchElement.stretch()},followMenuAnchors:function(){var e=this;e.elements.$anchorLink.each(function(){location.pathname===this.pathname&&""!==this.hash&&e.followMenuAnchor(jQuery(this))})},followMenuAnchor:function(e){var t=e[0].hash,n=-300,o=void 0;try{o=jQuery(decodeURIComponent(t))}catch(e){return}if(o.length){if(!o.hasClass("elementor-menu-anchor")){var i=jQuery(window).height()/2;n=-o.outerHeight()+i}elementorFrontend.waypoint(o,function(t){"down"===t?e.addClass("elementor-item-active"):e.removeClass("elementor-item-active")},{offset:"50%",triggerOnce:!1}),elementorFrontend.waypoint(o,function(t){"down"===t?e.removeClass("elementor-item-active"):e.addClass("elementor-item-active")},{offset:n,triggerOnce:!1})}},stretchMenu:function(){this.getElementSettings("full_width")?(this.stretchElement.stretch(),this.elements.$dropdownMenu.css("top",this.elements.$menuToggle.outerHeight())):this.stretchElement.reset()},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.elements.$menu.length&&(this.elements.$menu.smartmenus({subIndicatorsText:'',subIndicatorsPos:"append",subMenusMaxWidth:"1000px"}),this.initStretchElement(),this.stretchMenu(),elementorFrontend.isEditMode()||this.followMenuAnchors())},onElementChange:function(e){"full_width"===e&&this.stretchMenu()}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";e.exports=function(){var e=n(3),t=n(9),o=n(111);elementorFrontend.hooks.addAction("frontend/element_ready/posts.classic",function(t){new e({$element:t})}),elementorFrontend.hooks.addAction("frontend/element_ready/posts.cards",function(e){new t({$element:e})}),elementorFrontend.hooks.addAction("frontend/element_ready/portfolio.default",function(e){e.find(".elementor-portfolio").length&&new o({$element:e})})}},function(e,t,n){"use strict";var o=n(3);e.exports=o.extend({getSkinPrefix:function(){return""},getDefaultSettings:function(){var e=o.prototype.getDefaultSettings.apply(this,arguments);return e.transitionDuration=450,jQuery.extend(e.classes,{active:"elementor-active",item:"elementor-portfolio-item",ghostItem:"elementor-portfolio-ghost-item"}),e},getDefaultElements:function(){var e=o.prototype.getDefaultElements.apply(this,arguments);return e.$filterButtons=this.$element.find(".elementor-portfolio__filter"),e},getOffset:function(e,t,n){var o=this.getSettings(),i=this.elements.$postsContainer.width()/o.colsCount-t;return{start:(t+(i+=i/(o.colsCount-1)))*(e%o.colsCount),top:(n+i)*Math.floor(e/o.colsCount)}},getClosureMethodsNames:function(){return o.prototype.getClosureMethodsNames.apply(this,arguments).concat(["onFilterButtonClick"])},filterItems:function(e){var t=this.elements.$posts,n=this.getSettings("classes.active"),o=".elementor-filter-"+e;"__all"!==e?(t.not(o).removeClass(n),t.filter(o).addClass(n)):t.addClass(n)},removeExtraGhostItems:function(){var e=this.getSettings(),t=this.elements.$posts.filter(":visible"),n=(e.colsCount-t.length%e.colsCount)%e.colsCount;this.elements.$postsContainer.find("."+e.classes.ghostItem).slice(n).remove()},handleEmptyColumns:function(){this.removeExtraGhostItems();for(var e=this.getSettings(),t=this.elements.$posts.filter(":visible"),n=this.elements.$postsContainer.find("."+e.classes.ghostItem),o=(e.colsCount-(t.length+n.length)%e.colsCount)%e.colsCount,i=0;i",{class:e.classes.item+" "+e.classes.ghostItem}))},showItems:function(e){e.show(),setTimeout(function(){e.css({opacity:1})})},hideItems:function(e){e.hide()},arrangeGrid:function(){var e=jQuery,t=this,n=t.getSettings(),o=t.elements.$posts.filter("."+n.classes.active),i=t.elements.$posts.not("."+n.classes.active),r=t.elements.$posts.filter(":visible"),s=o.add(r),a=o.filter(":visible"),l=o.filter(":hidden"),u=i.filter(":visible"),c=r.outerWidth(),f=r.outerHeight();if(t.elements.$posts.css("transition-duration",n.transitionDuration+"ms"),t.showItems(l),t.isEdit&&t.fitImages(),t.handleEmptyColumns(),t.isMasonryEnabled())return t.hideItems(u),t.showItems(l),t.handleEmptyColumns(),void t.runMasonry();u.css({opacity:0,transform:"scale3d(0.2, 0.2, 1)"}),a.each(function(){var n=e(this),o=t.getOffset(s.index(n),c,f),i=t.getOffset(r.index(n),c,f);o.start===i.start&&o.top===i.top||(i.start-=o.start,i.top-=o.top,elementorFrontend.config.is_rtl&&(i.start*=-1),n.css({transitionDuration:"",transform:"translate3d("+i.start+"px, "+i.top+"px, 0)"}))}),setTimeout(function(){o.each(function(){var i=e(this),r=t.getOffset(s.index(i),c,f),a=t.getOffset(o.index(i),c,f);i.css({transitionDuration:n.transitionDuration+"ms"}),a.start-=r.start,a.top-=r.top,elementorFrontend.config.is_rtl&&(a.start*=-1),setTimeout(function(){i.css("transform","translate3d("+a.start+"px, "+a.top+"px, 0)")})})}),setTimeout(function(){t.hideItems(u),o.css({transitionDuration:"",transform:"translate3d(0px, 0px, 0px)"}),t.handleEmptyColumns()},n.transitionDuration)},activeFilterButton:function(e){var t=this.getSettings("classes.active"),n=this.elements.$filterButtons,o=n.filter('[data-filter="'+e+'"]');n.removeClass(t),o.addClass(t)},setFilter:function(e){this.activeFilterButton(e),this.filterItems(e),this.arrangeGrid()},refreshGrid:function(){this.setColsCountSettings(),this.arrangeGrid()},bindEvents:function(){o.prototype.bindEvents.apply(this,arguments),this.elements.$filterButtons.on("click",this.onFilterButtonClick)},isMasonryEnabled:function(){return!!this.getElementSettings("masonry")},run:function(){o.prototype.run.apply(this,arguments),this.setColsCountSettings(),this.setFilter("__all"),this.handleEmptyColumns()},onFilterButtonClick:function(e){this.setFilter(jQuery(e.currentTarget).data("filter"))},onWindowResize:function(){o.prototype.onWindowResize.apply(this,arguments),this.refreshGrid()},onElementChange:function(e){o.prototype.onElementChange.apply(this,arguments),"classic_item_ratio"===e&&this.refreshGrid()}})},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.isEditMode()||elementorFrontend.hooks.addAction("frontend/element_ready/share-buttons.default",n(113))}},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments);var e=this.getElementSettings(),t=this.getSettings("classes"),n=e.share_url&&e.share_url.url,o={classPrefix:t.shareLinkPrefix};if(n?o.url=e.share_url.url:(o.url=location.href,o.title=elementorFrontend.config.post.title,o.text=elementorFrontend.config.post.excerpt),this.elements.$shareButton.shareLink){this.elements.$shareButton.shareLink(o);var i=jQuery.map(elementorProFrontend.config.shareButtonsNetworks,function(e,t){return e.has_counter?t:null});ElementorProFrontendConfig.hasOwnProperty("donreach")&&this.elements.$shareCounter.shareCounter({url:n?e.share_url.url:location.href,providers:i,classPrefix:t.shareCounterPrefix,formatCount:!0})}},getDefaultSettings:function(){return{selectors:{shareButton:".elementor-share-btn",shareCounter:".elementor-share-btn__counter"},classes:{shareLinkPrefix:"elementor-share-btn_",shareCounterPrefix:"elementor-share-btn__counter_"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$shareButton:this.$element.find(e.shareButton),$shareCounter:this.$element.find(e.shareCounter)}}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/slides.default",n(115))}},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{slider:".elementor-slides",slideContent:".elementor-slide-content"},classes:{animated:"animated"},attributes:{dataSliderOptions:"slider_options",dataAnimation:"animation"}}},getDefaultElements:function(){var e=this.getSettings("selectors");return{$slider:this.$element.find(e.slider)}},initSlider:function(){var e=this.elements.$slider;e.length&&e.slick(e.data(this.getSettings("attributes.dataSliderOptions")))},goToActiveSlide:function(){this.elements.$slider.slick("slickGoTo",this.getEditSettings("activeItemIndex")-1)},onPanelShow:function(){var e=this.elements.$slider;e.slick("slickPause"),e.on("afterChange",function(){e.slick("slickPause")})},bindEvents:function(){var e=this.elements.$slider,t=this.getSettings(),n=e.data(t.attributes.dataAnimation);n&&(elementorFrontend.isEditMode()&&elementor.hooks.addAction("panel/open_editor/widget/slides",this.onPanelShow),e.on({beforeChange:function(){e.find(t.selectors.slideContent).removeClass(t.classes.animated+" "+n).hide()},afterChange:function(e,o,i){jQuery(o.$slides.get(i)).find(t.selectors.slideContent).show().addClass(t.classes.animated+" "+n)}}))},onInit:function(){elementorModules.frontend.handlers.Base.prototype.onInit.apply(this,arguments),this.initSlider(),this.isEdit&&this.goToActiveSlide()},onEditSettingsChange:function(e){"activeItemIndex"===e&&this.goToActiveSlide()}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";var o=n(117);e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/facebook-button.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/facebook-comments.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/facebook-embed.default",o),elementorFrontend.hooks.addAction("frontend/element_ready/facebook-page.default",o)}},function(e,t,n){"use strict";var o=ElementorProFrontendConfig.facebook_sdk;e.exports=function(e){o.isLoading||o.isLoaded||(o.isLoading=!0,jQuery.ajax({url:"https://connect.facebook.net/"+o.lang+"/sdk.js",dataType:"script",cache:!0,success:function(){FB.init({appId:o.app_id,version:"v2.10",xfbml:!1}),o.isLoaded=!0,o.isLoading=!1,jQuery(document).trigger("fb:sdk:loaded")}}));var t=function(){e.find(".elementor-widget-container div").attr("data-width",e.width()+"px"),FB.XFBML.parse(e[0])};o.isLoaded?t():jQuery(document).on("fb:sdk:loaded",t)}},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/section",n(10)),elementorFrontend.hooks.addAction("frontend/element_ready/widget",n(10))}},function(e,t,n){"use strict";e.exports=function(){var e=n(120),t=n(121);elementorFrontend.hooks.addAction("frontend/element_ready/archive-posts.archive_classic",function(t){new e({$element:t})}),elementorFrontend.hooks.addAction("frontend/element_ready/archive-posts.archive_cards",function(e){new t({$element:e})}),jQuery(function(){var e=location.search.match(/theme_template_id=(\d*)/),t=e?jQuery(".elementor-"+e[1]):[];t.length&&jQuery("html, body").animate({scrollTop:t.offset().top-window.innerHeight/2})})}},function(e,t,n){"use strict";var o=n(3);e.exports=o.extend({getSkinPrefix:function(){return"archive_classic_"}})},function(e,t,n){"use strict";var o=n(9);e.exports=o.extend({getSkinPrefix:function(){return"archive_cards_"}})},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/search-form.default",n(123))}},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{wrapper:".elementor-search-form",container:".elementor-search-form__container",icon:".elementor-search-form__icon",input:".elementor-search-form__input",toggle:".elementor-search-form__toggle",submit:".elementor-search-form__submit",closeButton:".dialog-close-button"},classes:{isFocus:"elementor-search-form--focus",isFullScreen:"elementor-search-form--full-screen",lightbox:"elementor-lightbox"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$wrapper=this.$element.find(e.wrapper),t.$container=this.$element.find(e.container),t.$input=this.$element.find(e.input),t.$icon=this.$element.find(e.icon),t.$toggle=this.$element.find(e.toggle),t.$submit=this.$element.find(e.submit),t.$closeButton=this.$element.find(e.closeButton),t},bindEvents:function(){var e=this.elements.$container,t=this.elements.$closeButton,n=this.elements.$input,o=this.elements.$wrapper,i=this.elements.$icon,r=this.getElementSettings("skin"),s=this.getSettings("classes");"full_screen"===r?(this.elements.$toggle.on("click",function(){e.toggleClass(s.isFullScreen).toggleClass(s.lightbox),n.focus()}),e.on("click",function(t){e.hasClass(s.isFullScreen)&&e[0]===t.target&&e.removeClass(s.isFullScreen).removeClass(s.lightbox)}),t.on("click",function(){e.removeClass(s.isFullScreen).removeClass(s.lightbox)}),elementorFrontend.elements.$document.keyup(function(t){27===t.keyCode&&e.hasClass(s.isFullScreen)&&e.click()})):n.on({focus:function(){o.addClass(s.isFocus)},blur:function(){o.removeClass(s.isFocus)}}),"minimal"===r&&i.on("click",function(){o.addClass(s.isFocus),n.focus()})}});e.exports=function(e){new o({$element:e})}},function(e,t,n){"use strict";e.exports=function(){elementorFrontend.hooks.addAction("frontend/element_ready/woocommerce-menu-cart.default",n(125)),elementorFrontend.isEditMode()||jQuery(document.body).on("wc_fragments_loaded wc_fragments_refreshed",function(){jQuery("div.elementor-widget-woocommerce-menu-cart").each(function(){elementorFrontend.elementsHandler.runReadyTrigger(jQuery(this))})})}},function(e,t,n){"use strict";var o=elementorModules.frontend.handlers.Base.extend({getDefaultSettings:function(){return{selectors:{container:".elementor-menu-cart__container",toggle:".elementor-menu-cart__toggle .elementor-button",closeButton:".elementor-menu-cart__close-button"},classes:{isShown:"elementor-menu-cart--shown",lightbox:"elementor-lightbox",isHidden:"elementor-menu-cart-hidden"}}},getDefaultElements:function(){var e=this.getSettings("selectors"),t={};return t.$container=this.$element.find(e.container),t.$toggle=this.$element.find(e.toggle),t.$closeButton=this.$element.find(e.closeButton),t},bindEvents:function(){var e=this,t=e.elements.$container,n=e.elements.$closeButton,o=this.getSettings("classes");e.elements.$toggle.on("click",function(n){e.elements.$toggle.hasClass(o.isHidden)||(n.preventDefault(),t.toggleClass(o.isShown))}),t.on("click",function(e){t.hasClass(o.isShown)&&t[0]===e.target&&t.removeClass(o.isShown)}),n.on("click",function(){t.removeClass(o.isShown)}),elementorFrontend.elements.$document.keyup(function(e){27===e.keyCode&&t.hasClass(o.isShown)&&t.click()})}});e.exports=function(e){new o({$element:e})}}]); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/main.js?ver=1.5.2 ( function( $ ) { // -------------------------- /*function handleGoToPage ( newValue ) { alert(newValue); if(newValue){ // SI alert('Gooo'); //$('.dce-go-to-page-template').attr('href','Ciaooooooo'); }else{ // NO } }*/ //alert($('.unfold-yes .dce-content').height()); $( window ).on( 'elementor/frontend/init', function() { /*alert(elementorFrontend.isEditMode()); if ( elementorFrontend.isEditMode() ){ elementor.settings.page.addChangeCallback( 'other_post_source', handleGoToPage ); }*/ //alert('main'); if ( elementorFrontend.isEditMode() ){ elementor.channels.editor.on( 'dceMain:previewPage', function(e,editor) { //alert(e); var model = e.getOption('editedElementView').getEditModel(), currentElementType = model.get('elType'); //var model = editor.getOption('other_post_source').getEditModel(); //alert(model); //elementor.$preview[0].contentWindow.location = 'XXX'; //console.log(modelE); //alert('ss'); } ); } }); // -------- } )( jQuery ); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/ajaxmodal.js?ver=1.5.2 /////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////. AJAX Modal System //////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////// var urlAttuale; var titoloAttuale; var ajaxPage_init = function( $tid, scopeId ){ if(jQuery('#dce-wrap').length == 0){ jQuery('body').addClass('dce-ajax-page-open'); jQuery('body').wrapInner('
'); } jQuery('.ajax-open[data-id='+scopeId+']').on('click','.dce-wrapper a',function(e){ urlAttuale = location.pathname; titoloAttuale = document.title; //console.log(location); //alert(titoloAttuale); jQuery('body').addClass('modal-p-'+scopeId); // var modale = '
'; var loading ='
'; var linkHref = jQuery(this).attr('href'); jQuery('body').append(modale).append(loading); newLocation = linkHref; // jQuery.ajax({ url: dceAjaxPath.ajaxurl,//linkHref, // dataType: "html", type: 'POST', //context: document.body, data : { 'action': 'modale_action', 'post_href': linkHref, 'template_id': $tid }, error: function() { erroreModale(); //alert('error'); }, success: function(data, status, xhr) { // var $result = data; //$.parseHTML(xhr.responseText,true); // riempiModale($result,linkHref,scopeId); }, }); // ------------------------------------------------- jQuery('.modals-p .wrap-p').find('.close').on('click',function(e){ var linkHref = jQuery(this).attr('href'); chiudiModale( linkHref, scopeId ); return false; }); jQuery(document).on('keyup',function(e) { if (e.keyCode == 27) { // escape key maps to keycode `27` chiudiModale(urlAttuale, scopeId) } }); // return false; }); } /*if( window.history && window.history.pushState ){   history.pushState( "nohb", null, "" );   $(window).on( "popstate", function(event){     if( !event.originalEvent.state ){       history.pushState( "nohb", null, "" );       return;     }   }); }*/ function googleAnalytics_view(path, title, scopeId){ ga('set', { page: path, title: title }); ga('send', 'pageview'); } function riempiModale( data, url, scopeId ) { if ( 0 != data ) { var posScroll = jQuery('body').scrollTop(); jQuery('.load-p').remove(); var titoloPagina = jQuery(data).find('.titolo-nativo').text(); var quelloCheVoglio = jQuery(data).filter('.content-p');//jQuery(data).find('.elementor-917'); quelloCheVoglio.find('.titolo-nativo').remove(); jQuery('body').addClass('modal-p-on'); jQuery('.modals-p-'+scopeId+' .modal-p').html(quelloCheVoglio); //.append(stili); //console.log(elementorFrontend); jQuery('body.modal-p-on.modal-p-'+scopeId+' .wrap-p .modal-p').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(el){ //alert(posScroll); jQuery('html, body').addClass('no-scroll'); jQuery('body').addClass('cancella-body'); }); var element_el = quelloCheVoglio.find('.elementor-element'); element_el.each(function(i) { var el = jQuery(this).data('element_type'); elementorFrontend.elementsHandler.runReadyTrigger( jQuery(this) ); }); // var stateObj = { url: "bar" }; //window.history.pushState(stateObj, titoloPagina, url); if(url!=window.location){ //alert(url); window.history.pushState(null, null, url); document.title = titoloPagina; } } } function chiudiModale( url, scopeId ) { jQuery('html, body').removeClass('no-scroll'); // jQuery('body').removeClass('modal-p-on cancella-body').addClass('modal-p-off'); jQuery('body.modal-p-off.modal-p-'+scopeId+' .wrap-p .modal-p').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(el){ //alert('fine'); jQuery(document).off('keyup'); jQuery('.modals-p .wrap-p').find('.close').off('click'); jQuery('.modals-p-'+scopeId).remove(); // jQuery(el.currentTarget).off('webkitAnimationEnd oanimationend msAnimationEnd animationend'); // if(url!=window.location){ window.history.pushState(null,null,url); document.title = titoloAttuale; } }); jQuery('body.modal-p-off.modal-p-'+scopeId+' #dce-wrap').one('webkitAnimationEnd oanimationend msAnimationEnd animationend', function(el){ // //console.log(el); //alert('fine'); // //cancellaEventi(scopeId); jQuery('body').removeClass('modal-p-off modal-p-'+scopeId); jQuery(el.currentTarget).off('webkitAnimationEnd oanimationend msAnimationEnd animationend'); }); } function erroreModale(){ jQuery('.modals-p').html('

An error has occurred

'); } function requestContent(file) { jQuery('.content').load(file + ' .content'); } /*window.addEventListener('popstate', function(e) { // var character = e.state; // alert(character); // console.log('state: '+character); // if (character == null) { // chiudiModale(); // }else{ // } // if (character == null) { // removeCurrentClass(); // textWrapper.innerHTML = " "; // content.innerHTML = " "; // document.title = defaultTitle; // } else { // updateText(character); // requestContent(character + ".html"); // addCurrentClass(character); // document.title = "Ghostbuster | " + character; // } });*/ ////////////////////////////////////////////////////////////////// var get_DCE_ElementSettings = function( $element ) { var elementSettings = {}, modelCID = $element.data( 'model-cid' ); if ( elementorFrontend.isEditMode() && modelCID ) { var settings = elementorFrontend.config.elements.data[ modelCID ], settingsKeys = elementorFrontend.config.elements.keys[ settings.attributes.widgetType || settings.attributes.elType ]; jQuery.each( settings.getActiveControls(), function( controlKey ) { if ( -1 !== settingsKeys.indexOf( controlKey ) ) { elementSettings[ controlKey ] = settings.attributes[ controlKey ]; } } ); } else { elementSettings = $element.data('settings') || {}; } return elementSettings; } ////////////////////////////////////////////////////////////////// if(jQuery('.ajax-open').length > 0){ jQuery('.ajax-open').each(function(i,el){ var elementSettings_ajaxOpen = get_DCE_ElementSettings(jQuery(this)); //alert(jQuery(this).attr('data-id')+' '+elementSettings_ajaxOpen.ajax_page_template); ajaxPage_init(elementSettings_ajaxOpen.ajax_page_template, jQuery(this).attr('data-id')); }); }; // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/dce-all.min.js?ver=5.2.2 /*dce-nextprev.min.js*/ ;(function($){var WidgetElements_NextPrevHandler=function($scope,$){if(typeof $('#main').ajaxify==="function"){$('#main').ajaxify({selector:".elementor-widget-dyncontel-post-nextprev a:not(.no-ajaxy)",maincontent:!1,forms:"form:not(.no-ajaxy)",canonical:!0,refresh:!1,requestDelay:0,aniTime:0,aniParams:!1,previewoff:!0,scrolltop:"s",bodyClasses:!1,idleTime:0,slideTime:0,menu:!1,addclass:"jqhover",toggleSlide:!1,deltas:!0,asyncdef:!1,alwayshints:"leaflet-embed",inline:!0,inlinehints:!1,inlineskip:"adsbygoogle",inlineappend:!0,style:!0,prefetch:!0,verbosity:0,memoryoff:!1,cb:null,pluginon:!0})}};$(window).on('pronto.render',function(event,eventInfo){var target=eventInfo.target||eventInfo.srcElement;if(typeof eventInfo.delegateTarget!=='undefined'){var element_el=$(eventInfo.delegateTarget.innerHTML).find('.elementor-element');element_el.each(function(i){var el=jQuery(this).data('element_type');elementorFrontend.elementsHandler.runReadyTrigger(jQuery(this))})} $(window).trigger('elementor/frontend/init');$(window).trigger('ready')}) $(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-post-nextprev.default',WidgetElements_NextPrevHandler)})})(jQuery) /*dce-settings.min.js*/ ;function get_Dyncontel_ElementSettings($element){var elementSettings=[];var modelCID=$element.data('model-cid');if(elementorFrontend.isEditMode()&&modelCID){var settings=elementorFrontend.config.elements.data[modelCID];var type=settings.attributes.widgetType||settings.attributes.elType;var settingsKeys=elementorFrontend.config.elements.keys[type];if(!settingsKeys){settingsKeys=elementorFrontend.config.elements.keys[type]=[];jQuery.each(settings.controls,function(name,control){if(control.frontend_available){settingsKeys.push(name)}})} jQuery.each(settings.getActiveControls(),function(controlKey){if(-1!==settingsKeys.indexOf(controlKey)){elementSettings[controlKey]=settings.attributes[controlKey]}})}else{elementSettings=$element.data('settings')||{}} return elementSettings}(function($){var get_Dyncontel_ElementSettings=function($element){var elementSettings={};var modelCID=$element.data('model-cid');if(elementorFrontend.isEditMode()&&modelCID){var settings=elementorFrontend.config.elements.data[modelCID];var settingsKeys=elementorFrontend.config.elements.keys[settings.attributes.widgetType||settings.attributes.elType];var type=settings.attributes.widgetType||settings.attributes.elType;if(!settingsKeys){settingsKeys=elementorFrontend.config.elements.keys[type]=[];jQuery.each(settings.controls,function(name,control){if(control.frontend_available){settingsKeys.push(name)}})} jQuery.each(settings.getActiveControls(),function(controlKey){if(-1!==settingsKeys.indexOf(controlKey)){elementSettings[controlKey]=settings.attributes[controlKey]}})}else{elementSettings=$element.data('settings')||[]} return elementSettings}})(jQuery) /*dce-svgmorph.min.js*/ ;(function($){var WidgetElements_SvgMorphHandler=function($scope,$){var elementSettings=get_Dyncontel_ElementSettings($scope);var id_scope=$scope.attr('data-id');var forma=elementSettings.type_of_shape;var step=0;var run=$('#dce-svg-'+id_scope).attr('data-run');var is_running=!1;var ripetitore='repeater_shape_'+forma;eval('var repeaterShape = elementSettings.'+ripetitore);var contentElemsTotal=repeaterShape.length;var numberOfElements=repeaterShape.length;var shapes=[];var delayStart=100;var dceshape="#forma-"+id_scope;var dceshape_svg="#dce-svg-"+id_scope;if(tl)tl.kill($(dceshape));var tl=null;tl=new TimelineMax();if(tlpos)tlpos.kill($(dceshape_svg));var tlpos=null;tlpos=new TimelineMax();var dceshape_delay=elementSettings.duration_morph.size||2,dceshape_speed=elementSettings.speed_morph.size||1;var easing_morph_ease=elementSettings.easing_morph_ease||'Power3',easing_morph=elementSettings.easing_morph||'easeInOut';var repeat_morph=elementSettings.repeat_morph||-1;if(transitionTl)transitionTl.kill($(dceshape));var transitionTl=null;if(transitionTl)transitionTlpos.kill($(dceshape_svg));var transitionTlpos=null;var get_data_anim=function(){var duration_anim=elementSettings.duration_morph.size||3;var speed_anim=elementSettings.speed_morph.size||1;easing_morph_ease=elementSettings.easing_morph_ease;easing_morph=elementSettings.easing_morph;repeat_morph=elementSettings.repeat_morph||-1;dceshape_delay=duration_anim;dceshape_speed=speed_anim} var get_data_shape=function(){shapes=[];var ciccio=[];if(elementorFrontend.isEditMode()){ciccio=repeaterShape.models}else{ciccio=repeaterShape} var old_points='';$.each(ciccio,function(i,el){var pippo=[];if(elementorFrontend.isEditMode()){pippo=repeaterShape.models[i].attributes}else{pippo=repeaterShape[i]} var id_shape=pippo.id_shape;var points=pippo.shape_numbers;if(points==''){points=old_points} old_points=points;var fillColor=pippo.fill_color;var strokeColor=pippo.stroke_color;var strokeWidth=pippo.stroke_width.size||0;var shapeX=pippo.shape_x.size||0;var shapeY=pippo.shape_y.size||0;var dceshape_delay=elementSettings.duration_morph.size||2,dceshape_speed=elementSettings.speed_morph.size||1;var objRep={points:points,path:{duration:pippo.duration_morph.size,speed:pippo.speed_morph.size,easing:pippo.easing_morph_ease,morph:pippo.easing_morph,elasticity:600,},fill:{color:fillColor,},stroke:{width:strokeWidth,color:strokeColor},svg:{x:shapeX,y:shapeY,rotation:0,elasticity:600}} shapes.push(objRep)})} var getCustomData_speed=function(i){if(shapes[i].path.speed){dceshape_speed=shapes[i].path.speed}else{dceshape_speed=elementSettings.speed_morph.size} console.log(dceshape_speed);return dceshape_speed} var getCustomData_duration=function(i){if(shapes[i].path.duration){dceshape_delay=shapes[i].path.duration}else{dceshape_delay=elementSettings.duration_morph.size} return dceshape_delay} var getCustomData_easing=function(i){if(shapes[i].path.easing){easing_morph_ease=shapes[i].path.easing}else{easing_morph_ease=elementSettings.easing_morph_ease} return easing_morph_ease} var getCustomData_morph=function(i){if(shapes[i].path.morph){easing_morph=shapes[i].path.morph}else{easing_morph=elementSettings.easing_morph} return easing_morph} var animateShapes=function(){if($("#forma-"+id_scope).length){var tweenSVG='tlpos';var tweenString='tl';$.each(shapes,function(i,el){if(i>0){tweenString+='.to("'+dceshape+'", '+getCustomData_speed(i)+', {onComplete: myFunction1, onCompleteParams:['+i+'], morphSVG:`'+shapes[i].points+'`, ease: '+getCustomData_easing(i)+'.'+getCustomData_morph(i)+', fill:"'+shapes[i].fill.color+'", strokeWidth:'+shapes[i].stroke.width+', stroke:"'+shapes[i].stroke.color+'"}, "+='+getCustomData_duration(i)+'")';tweenSVG+='.to("'+dceshape_svg+'", '+getCustomData_speed(i)+', {x:'+shapes[i].svg.x+',y:'+shapes[i].svg.y+', ease: '+getCustomData_easing(i)+'.'+getCustomData_morph(i)+'}, "+='+getCustomData_duration(i)+'")'}});tweenString+='.to("'+dceshape+'", '+getCustomData_speed(0)+', {onComplete: myFunction1, onCompleteParams:[0], morphSVG:`'+shapes[0].points+'`, ease: '+getCustomData_easing(0)+'.'+getCustomData_morph(0)+', fill:"'+shapes[0].fill.color+'", strokeWidth:'+shapes[0].stroke.width+', stroke:"'+shapes[0].stroke.color+'"}, "+='+getCustomData_duration(0)+'")';tweenString+=';';tweenSVG+='.to("'+dceshape_svg+'", '+getCustomData_speed(0)+', {x:'+shapes[0].svg.x+',y:'+shapes[0].svg.y+', ease: '+getCustomData_easing(0)+'.'+getCustomData_morph(0)+'}, "+='+getCustomData_duration(0)+'")';tweenSVG+=';'} eval(tweenString);eval(tweenSVG);is_running=!0;if(run=='paused'&&elementorFrontend.isEditMode()){tl.stop();tlpos.stop();is_running=!1} tl.repeat(repeat_morph);tlpos.repeat(repeat_morph)} var myFunction=function(a,b){} var myFunction1=function(id_step){$('#dce-svg-'+id_scope).attr('data-morphid',id_step)} var myFunction2=function(id_step){if(transitionTl)transitionTl.kill($(dceshape));if(transitionTlpos)transitionTl.kill($(dceshape_svg))} var updateSlider=function(){} var playShapeEl=function(){transitionTl=new TimelineMax();transitionTlpos=new TimelineMax();function repeatOften(){if(run!=$('#dce-svg-'+id_scope).attr('data-run')){get_data_anim();run=$('#dce-svg-'+id_scope).attr('data-run');if(run=='running'){tl.play();tlpos.play();is_running=!0}else{tl.stop();tlpos.stop();is_running=!1}} if(!is_running){if(step!=$('#dce-svg-'+id_scope).attr('data-morphid')){step=$('#dce-svg-'+id_scope).attr('data-morphid');get_data_shape();if(typeof shapes[step]!=="undefined"){var tweenString='transitionTl.to("'+dceshape+'", '+getCustomData_speed(step)+', {onComplete: myFunction2, onCompleteParams:['+step+'], morphSVG:`'+shapes[step].points+'`, ease: '+getCustomData_easing(step)+'.'+getCustomData_morph(step)+', fill:"'+shapes[step].fill.color+'", strokeWidth:'+shapes[step].stroke.width+', stroke:"'+shapes[step].stroke.color+'"});';var tweenStringPos='transitionTlpos.to("'+dceshape_svg+'", '+getCustomData_speed(step)+', {x:'+shapes[step].svg.x+', y:'+shapes[step].svg.y+', ease: '+getCustomData_easing(step)+'.'+getCustomData_morph(step)+'});';eval(tweenStringPos);eval(tweenString)}}} requestAnimationFrame(repeatOften)} requestAnimationFrame(repeatOften)} if(!elementorFrontend.isEditMode()&&contentElemsTotal>1){$('#dce-svg-'+id_scope).attr('data-run','running')} setTimeout(function(){get_data_anim();get_data_shape();animateShapes()},delayStart);if(elementorFrontend.isEditMode()&&contentElemsTotal>1)playShapeEl()};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-svgmorphing.default',WidgetElements_SvgMorphHandler)})})(jQuery) /*elements-acf.min.js*/ ;var isAdminBar=!1,isEditMode=!1;(function($){var get_acf_ElementSettings=function($element){var elementSettings={},modelCID=$element.data('model-cid');if(elementorFrontend.isEditMode()&&modelCID){var settings=elementorFrontend.config.elements.data[modelCID],settingsKeys=elementorFrontend.config.elements.keys[settings.attributes.widgetType||settings.attributes.elType];jQuery.each(settings.getActiveControls(),function(controlKey){if(-1!==settingsKeys.indexOf(controlKey)){elementSettings[controlKey]=settings.attributes[controlKey]}})}else{elementSettings=$element.data('settings')||{}} return elementSettings} var WidgetElementsACFDCEHandler=function($scope,$){var elementSettings=get_acf_ElementSettings($scope);if(elementSettings.drop_cap){$scope.find('p').html(function(i,html){return html.replace(/^[^a-zA-Z]*([a-zA-Z])/g,'$1')})} var bindEvents=function(){$scope.find('.elementor-custom-embed-image-overlay').on('click',handleVideo)};var handleVideo=function(){if(elementSettings.lightbox){alert(elementSettings.lightbox)}else{$(this).fadeOut(1000,function(){$(this).remove();playVideo()})}};var playVideo=function(){var $videoFrame=$scope.find('iframe'),newSourceUrl=$videoFrame[0].src.replace('&autoplay=0','');$videoFrame[0].src=newSourceUrl+'&autoplay=1'};bindEvents()};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-acf.default',WidgetElementsACFDCEHandler)})})(jQuery) /*elements-acfgallery.min.js*/ ;(function($){var WidgetDyncontel_ACFGalleryHandler=function($scope,$){var elementSettingsACFGallery=get_Dyncontel_ElementSettings($scope);var $block_acfgallery='.dynamic_acfgallery';if(elementSettingsACFGallery.gallery_type=='masonry'){var $grid_dce_posts=$scope.find($block_acfgallery).masonry();$grid_dce_posts.imagesLoaded().progress(function(){$grid_dce_posts.masonry('layout')})}else if(elementSettingsACFGallery.gallery_type=='diamond'){var $size_d=elementSettingsACFGallery.size_diamond;var column_d=elementSettingsACFGallery.column_diamond;var $diamond_grid=$scope.find($block_acfgallery).diamonds({size:$size_d.size||240,gap:elementSettingsACFGallery.gap_diamond||0,itemSelector:".acfgallery-item",hideIncompleteRow:'yes'===elementSettingsACFGallery.hideIncompleteRow,autoRedraw:!0,minDiamondsPerRow:column_d,});$(window).resize(function(){$scope.find($block_acfgallery).diamonds("draw")})}else if(elementSettingsACFGallery.gallery_type=='hexagon'){var $size_d='';$size_d=elementSettingsACFGallery.size_honeycombs;$scope.find('.honeycombs-grid').honeycombs({combWidth:$size_d,margin:elementSettingsACFGallery.gap_honeycombs||10,})} if(elementSettingsACFGallery.enabled_wow=='yes'){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0,callback:function(box){},scrollContainer:null});wow.init()} var initPhotoSwipeFromDOM=function(gallerySelector){var parseThumbnailElements=function(el){var thumbElements=el.childNodes,numNodes=thumbElements.length,items=[],figureEl,linkEl,size,item;for(var i=0;i1){item.title=figureEl.children[1].innerHTML} if(linkEl.children.length>0){item.msrc=linkEl.children[0].getAttribute('src')} item.el=figureEl;items.push(item)} return items};var closest=function closest(el,fn){return el&&(fn(el)?el:closest(el.parentNode,fn))};var onThumbnailsClick=function(e){e=e||window.event;e.preventDefault?e.preventDefault():e.returnValue=!1;var eTarget=e.target||e.srcElement;var clickedListItem=closest(eTarget,function(el){return(el.tagName&&el.tagName.toUpperCase()==='FIGURE')});if(!clickedListItem){return} var clickedGallery=clickedListItem.parentNode,childNodes=clickedListItem.parentNode.childNodes,numChildNodes=childNodes.length,nodeIndex=0,index;for(var i=0;i=0){openPhotoSwipe(index,clickedGallery)} return!1};var photoswipeParseHash=function(){var hash=window.location.hash.substring(1),params={};if(hash.length<5){return params} var vars=hash.split('&');for(var i=0;i0){if($('body').find('.pswp').length<1) photoSwipeContent();initPhotoSwipeFromDOM('.dynamic_acfgallery.is-lightbox.photoswipe')}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-acfgallery.default',WidgetDyncontel_ACFGalleryHandler)});var photoSwipeContent=function(){$('body').append('')}})(jQuery) /*elements-acfposts.min.js*/ ;var isAdminBar=!1,isEditMode=!1;(function($){var get_Dyncontel_ElementSettings=function($element){var elementSettings={},modelCID=$element.data('model-cid');if(elementorFrontend.isEditMode()&&modelCID){var settings=elementorFrontend.config.elements.data[modelCID],settingsKeys=elementorFrontend.config.elements.keys[settings.attributes.widgetType||settings.attributes.elType];jQuery.each(settings.getActiveControls(),function(controlKey){if(-1!==settingsKeys.indexOf(controlKey)){elementSettings[controlKey]=settings.attributes[controlKey]}})}else{elementSettings=$element.data('settings')||{}} return elementSettings} var WidgetElementsPostsDCEHandler=function($scope,$){var infScroll=null;var elementSettings=get_Dyncontel_ElementSettings($scope),id_scope=$scope.attr('data-id'),elementorElement='.elementor-element-'+id_scope,is_history='yes'===elementSettings.infiniteScroll_enable_history?'replace':!1 $block_acfposts='.acfposts-grid',$objBlock_acfposts=$scope.find($block_acfposts);if($objBlock_acfposts.data('style')=='grid'){$layoutMode='masonry';if($objBlock_acfposts.data('fitrow')=='yes') $layoutMode='fitRows';var $grid_dce_posts=$objBlock_acfposts.isotope({itemSelector:'.dce-post-item',layoutMode:$layoutMode,sortBy:'original-order',percentPosition:!0,masonry:{columnWidth:'.dce-post-item'}});$grid_dce_posts.imagesLoaded().progress(function(){$grid_dce_posts.isotope('layout')});var iso=$grid_dce_posts.data('isotope');$scope.find('.dce-filters .filters-item').on('click','a',function(e){var filterValue=$(this).attr('data-filter');$(this).parent().siblings().removeClass('filter-active');$(this).parent().addClass('filter-active');$grid_dce_posts.isotope({filter:filterValue});if(elementSettings.infiniteScroll_enable){if($objBlock_acfposts.length){$objBlock_acfposts.infiniteScroll('loadNextPage')}} return!1})}else if($($scope).find($block_acfposts).data('style')=='carousel'){var slidesToShow=+elementSettings.slides_to_show||3,isSingleSlide=1===slidesToShow,centro=!0;if($objBlock_acfposts.children().length>1) centro='yes'===elementSettings.carousel_center_enable;var slickOptions={dots:'yes'===elementSettings.carousel_dots_enable,arrows:'yes'===elementSettings.carousel_arrow_enable,prevArrow:'',nextArrow:'',infinite:'yes'===elementSettings.carousel_infinite_enable,autoplay:'yes'===elementSettings.carousel_autoplay_enable,centerMode:Boolean(centro),speed:elementSettings.carousel_speed||500,autoplaySpeed:elementSettings.carousel_autoplayspeed||3000,slidesToShow:Number(elementSettings.slides_to_show)||4,slidesToScroll:Number(elementSettings.slides_to_scroll)||4,responsive:[{breakpoint:992,settings:{slidesToShow:Number(elementSettings.slides_to_show_tablet)||2,slidesToScroll:Number(elementSettings.slides_to_scroll_tablet)||2,dots:!1}},{breakpoint:480,settings:{slidesToShow:Number(elementSettings.slides_to_show_mobile)||1,slidesToScroll:Number(elementSettings.slides_to_scroll_mobile)||1,dots:!1}}]};if(isSingleSlide){slickOptions.fade='fade'===elementSettings.carousel_effect}else{slickOptions.slidesToScroll=+elementSettings.slides_to_scroll} $objBlock_acfposts.slick(slickOptions)}else if($($scope).find($block_acfposts).data('style')=='swiper'){var elementSettings=get_Dyncontel_ElementSettings($scope);var elementSwiper=$scope.find('.swiper-container')[0];var id_scope=$scope.attr('data-id');var centroDiapo=!1;var cicloInfinito=!1;var slideInitNum=0;var slidesPerView=Number(elementSettings.slidesPerView);var slideNum=$scope.find('.dce-post-item').length;if(slideNum1) var mySwiper=new Swiper(elementSwiper,swiperOptions)} if($objBlock_acfposts.data('style')=='grid'||$objBlock_acfposts.data('style')=='flexgrid'){if(elementSettings.infiniteScroll_enable){var infiniteScroll_options={path:elementorElement+' .pagination__next',history:is_history,append:elementorElement+' .dce-post-item',outlayer:iso,status:elementorElement+' .page-load-status',hideNav:elementorElement+'.pagination',scrollThreshold:'scroll'===elementSettings.infiniteScroll_trigger?!0:!1,loadOnScroll:'scroll'===elementSettings.infiniteScroll_trigger?!0:!1,onInit:function(){this.on('load',function(){})}} if(elementSettings.infiniteScroll_trigger=='button'){infiniteScroll_options.button=elementorElement+' .view-more-button'} infScroll=$objBlock_acfposts.infiniteScroll(infiniteScroll_options);var nElements=jQuery(elementorElement+' .dce-post-item:visible').length;$objBlock_acfposts.on('append.infiniteScroll',function(event,response,path,items){setTimeout(function(){var nElementsVisible=jQuery(elementorElement+' .dce-post-item:visible').length;if(nElementsVisible<=nElements){$objBlock_acfposts.infiniteScroll('loadNextPage')}},1000)})}} if(elementSettings.enabled_wow){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0,callback:function(box){},scrollContainer:null});wow.init()} function VerticalTimeline(element){this.element=element;this.blocks=this.element.getElementsByClassName("js-cd-block");this.images=this.element.getElementsByClassName("js-cd-img");this.contents=this.element.getElementsByClassName("js-cd-content");this.offset=0.8;this.hideBlocks()};VerticalTimeline.prototype.hideBlocks=function(){if(!"classList" in document.documentElement){return} var self=this;for(var i=0;iwindow.innerHeight*self.offset){self.images[i].classList.add("cd-is-hidden");self.contents[i].classList.add("cd-is-hidden")}})(i)}};VerticalTimeline.prototype.showBlocks=function(){if(!"classList" in document.documentElement){return} var self=this;for(var i=0;i0){for(var i=0;i0){translate=progress*swiper.width;innerTranslate=translate*interleaveOffset}else{innerTranslate=Math.abs(progress*swiper.width)*interleaveOffset;translate=0} if(i==0){console.log(progress+' <- progress')} var transizione;if(elementSettings.directionSlide=='horizontal'){transizione='translate3d('+translate+'px,0,0)'}else if(elementSettings.directionSlide=='vertical'){transizione='translate3d(0,'+translate+'px,0)'} $(slide).css({transform:transizione,});var transizioneInterna;if(elementSettings.directionSlide=='horizontal'){transizioneInterna='translate3d('+innerTranslate+'px,0,0)'}else if(elementSettings.directionSlide=='vertical'){transizioneInterna='translate3d(0,'+innerTranslate+'px,0)'} $(slide).find('.slide-inner').css({transform:transizioneInterna})}},onTouchStart:function(swiper){for(var i=0;i
'+''+String(elementSettings.fraction_separator)+''+''},},navigation:{nextEl:'.next-'+id_scope,prevEl:'.prev-'+id_scope,},scrollbar:'.swiper-scrollbar',breakpoints:{480:{slidesPerView:Number(elementSettings.slidesPerView_mobile)||Number(elementSettings.slidesPerView)||'auto',slidesPerGroup:Number(elementSettings.slidesPerGroup_mobile)||Number(elementSettings.slidesPerGroup)||1,spaceBetween:Number(elementSettings.spaceBetween_mobile)||Number(elementSettings.spaceBetween)||0,slidesPerColumn:Number(elementSettings.slidesColumn_mobile)||Number(elementSettings.slidesColumn)||1,},992:{slidesPerView:Number(elementSettings.slidesPerView_tablet)||Number(elementSettings.slidesPerView)||'auto',slidesPerGroup:Number(elementSettings.slidesPerGroup_tablet)||Number(elementSettings.slidesPerGroup)||1,spaceBetween:Number(elementSettings.spaceBetween_tablet)||Number(elementSettings.spaceBetween)||0,slidesPerColumn:Number(elementSettings.slidesColumn_tablet)||Number(elementSettings.slidesColumn)||1,}},};if('yes'==elementSettings.useAutoplay){swiperOptions=$.extend(swiperOptions,{autoplay:!0});if(Number(elementSettings.autoplay)!=''){swiperOptions=$.extend(swiperOptions,{autoplay:{delay:Number(elementSettings.autoplay)}})} if('yes'===elementSettings.autoplayDisableOnInteraction){swiperOptions=$.extend(swiperOptions,{autoplay:{disableOnInteraction:'yes'===elementSettings.autoplayDisableOnInteraction}})} if('yes'===elementSettings.autoplayStopOnLast){swiperOptions=$.extend(swiperOptions,{autoplay:{disableOnInteraction:'yes'===elementSettings.autoplayStopOnLast}})}} if(elementSettings.effects=='custom1'){swiperOptions=$.extend(swiperOptions,interleaveEffect)} if($scope.find('.swiper-slide').length>1)var dce_swiper=new Swiper(elementSwiper,swiperOptions);var initPhotoSwipeFromDOM=function(gallerySelector){var parseThumbnailElements=function(el){var thumbElements=el.childNodes,numNodes=thumbElements.length,items=[],figureEl,linkEl,size,item;for(var i=0;i1){item.title=figureEl.children[1].innerHTML} if(linkEl.children.length>0){item.msrc=linkEl.children[0].getAttribute('src')} item.el=figureEl;items.push(item)} return items};var closest=function closest(el,fn){return el&&(fn(el)?el:closest(el.parentNode,fn))};var onThumbnailsClick=function(e){e=e||window.event;e.preventDefault?e.preventDefault():e.returnValue=!1;var eTarget=e.target||e.srcElement;var clickedListItem=closest(eTarget,function(el){return(el.tagName&&el.tagName.toUpperCase()==='FIGURE')});if(!clickedListItem){return} var clickedGallery=clickedListItem.parentNode,childNodes=clickedListItem.parentNode.childNodes,numChildNodes=childNodes.length,nodeIndex=0,index;for(var i=0;i=0){openPhotoSwipe(index,clickedGallery)} return!1};var photoswipeParseHash=function(){var hash=window.location.hash.substring(1),params={};if(hash.length<5){return params} var vars=hash.split('&');for(var i=0;i0){if($('body').find('.pswp').length<1)photoSwipeContent();initPhotoSwipeFromDOM('.dynamic_acfslider.is-lightbox.photoswipe')}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-acfslider.default',WidgetElements_ACFSliderHandler)});var photoSwipeContent=function(){$('body').append('')}})(jQuery) /*elements-content.min.js*/ ;(function($){var WidgetElements_ContentHandler=function($scope,$){var dcecontent=$scope.find('.dce-content');var dceunfold=$scope.find('.unfold-btn a');var dceunfoldfa=$scope.find('.unfold-btn i.fa');var elementSettings=get_Dyncontel_ElementSettings($scope);if(elementSettings.enable_unfold){var originalHeightUnfold=dcecontent.outerHeight();var heightUnfold=elementSettings.height_content.size;dcecontent.addClass('unfolded');if(originalHeightUnfold>heightUnfold){dceunfold.toggle(function(){dcecontent.height(originalHeightUnfold);dceunfoldfa.removeClass('fa-plus-circle').addClass('fa-minus-circle')},function(){dcecontent.height(heightUnfold);dceunfoldfa.removeClass('fa-minus-circle').addClass('fa-plus-circle')})}else{dcecontent.removeClass('unfolded').addClass('unfold-open');dceunfold.remove()}}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-content.default',WidgetElements_ContentHandler)})})(jQuery) /*elements-dynamicusers.min.js*/ ;var isAdminBar=!1,isEditMode=!1;(function($){var WidgetElementsDynamicUsersDCEHandler=function($scope,$){var elementSettings=get_Dyncontel_ElementSettings($scope);var id_scope=$scope.attr('data-id');$block_acfposts='.dce-grid-users';$objBlock_acfposts=$scope.find($block_acfposts);if(elementSettings.posts_style=='grid'){$layoutMode='masonry';if($objBlock_acfposts.data('fitrow')=='yes')$layoutMode='fitRows';var $grid_dce_posts=$objBlock_acfposts.isotope({itemSelector:'.dce-item-user',layoutMode:$layoutMode,sortBy:'original-order',percentPosition:!0,masonry:{columnWidth:'.dce-item-user'}});$grid_dce_posts.imagesLoaded().progress(function(){$grid_dce_posts.isotope('layout')});$scope.find('.dce-users-filters .users-filters-item').on('click','a',function(e){var filterValue=$(this).attr('data-filter');$(this).parent().siblings().removeClass('filter-active');$(this).parent().addClass('filter-active');$grid_dce_posts.isotope({filter:filterValue});return!1})} if(elementSettings.enabled_wow=='yes'){var wow=new WOW({boxClass:'wow',animateClass:'animated',offset:0,mobile:!0,live:!0,callback:function(box){},scrollContainer:null});wow.init()} function VerticalTimeline(element){this.element=element;this.blocks=this.element.getElementsByClassName("js-cd-block");this.images=this.element.getElementsByClassName("js-cd-img");this.contents=this.element.getElementsByClassName("js-cd-content");this.offset=0.8;this.hideBlocks()};VerticalTimeline.prototype.hideBlocks=function(){if(!"classList" in document.documentElement){return} var self=this;for(var i=0;iwindow.innerHeight*self.offset){self.images[i].classList.add("cd-is-hidden");self.contents[i].classList.add("cd-is-hidden")}})(i)}};VerticalTimeline.prototype.showBlocks=function(){if(!"classList" in document.documentElement){return} var self=this;for(var i=0;i0){for(var i=0;i0)window.requestAnimationFrame(updateLayer)});function retrieveScale(btn){var btnRadius=btn.width()/2,left=btn.offset().left+btnRadius,top=btn.offset().top+btnRadius-$(window).scrollTop(),scale=scaleValue(top,left,btnRadius,$(window).height()+100,$(window).width())+100;btn.css('position','fixed').velocity({top:top-btnRadius,left:left-btnRadius,translateX:0,},0);return scale} function scaleValue(topValue,leftValue,radiusValue,windowW,windowH){var maxDistHor=(leftValue>windowW/2)?leftValue:(windowW-leftValue),maxDistVert=(topValue>windowH/2)?topValue:(windowH-topValue);return Math.ceil(Math.sqrt(Math.pow(maxDistHor,2)+Math.pow(maxDistVert,2))/radiusValue)} function animateLayer(layer,scaleVal,bool){layer.velocity({scale:scaleVal},600,function(){$('body').toggleClass('overflow-hidden',bool);(bool)?layer.parents('.dce-modalwindow-section').addClass('modal-is-visible').end().off('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend'):layer.removeClass('is-visible').removeAttr('style').siblings('[data-type="modal-trigger"]').removeClass('to-circle').velocity({width:larghezza,paddingLeft:paddingL,paddingRight:paddingR},{duration:200,complete:function(e){var btn=$(this);setTimeout(function(){btn.removeAttr('style');btn.parent().removeAttr('style')},300)}})})} function updateLayer(){var layer=$scope.find('.dce-modalwindow-section.modal-is-visible').find('.cd-modal-bg'),layerRadius=layer.width()/2,layerTop=layer.siblings('.btn').offset().top+layerRadius-$(window).scrollTop(),layerLeft=layer.siblings('.btn').offset().left+layerRadius,scale=scaleValue(layerTop,layerLeft,layerRadius,$(window).height(),$(window).width());layer.velocity({top:layerTop-layerRadius,left:layerLeft-layerRadius,scale:scale,},0)} function closeModal(){var section=$scope.find('.dce-modalwindow-section.modal-is-visible');section.removeClass('modal-is-visible').one('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend',function(){});animateLayer(section.find('.cd-modal-bg'),1,!1)}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-modalwindow.default',WidgetElements_ModalWindowHandler)})})(jQuery) /*elements-parallax.min.js*/ ;(function($){var WidgetElements_ParallaxHandler=function($scope,$){var scene=$scope.find('#scene');var parallax=new Parallax(scene[0])};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-parallax.default',WidgetElements_ParallaxHandler)})})(jQuery) /*elements-popup.min.js*/ ;(function($){var WidgetElementsPopupHandler=function($scope,$){var get_dce_ElementSettings=function($element){var elementSettings={},modelCID=$element.data('model-cid');if(elementorFrontend.isEditMode()&&modelCID){var settings=elementorFrontend.config.elements.data[modelCID],settingsKeys=elementorFrontend.config.elements.keys[settings.attributes.widgetType||settings.attributes.elType];$.each(settings.getActiveControls(),function(controlKey){if(-1!==settingsKeys.indexOf(controlKey)){elementSettings[controlKey]=settings.attributes[controlKey]}})}else{elementSettings=$element.data('settings')||{}} return elementSettings} function dce_getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;idce_popup_settings.scroll_display_displacement){$(this).removeClass('dce-popup-scroll');var id_modal=$(this).find('.dce-modal').attr('id');console.log('trigger scroll for: '+id_modal);dce_show_modal(id_modal)}})})} $(window).on('scroll',function(){$('.modal-hide-on-scroll:visible').each(function(){$(this).removeClass('modal-hide-on-scroll');dce_hide_modal($(this).attr('id'))})});$(document).on('keyup',function(evt){if(evt.keyCode==27){$('.modal-hide-esc:visible').each(function(){dce_hide_modal($(this).attr('id'))})}});$(document).on('click','.dce-modal .dce-modal-close, .dce-button-close-modal, .dce-modal .dce-button-next-modal',function(){dce_hide_modal($(this).closest('.dce-modal').attr('id'))});$(document).on('click','.dce-modal-background-layer-close',function(){dce_hide_modal($(this).attr('data-target'))})} $(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/dyncontel-popup.default',WidgetElementsPopupHandler)})})(jQuery) /*elements-reveal.min.js*/ ;(function($){var isReveal=!1;var WidgetElements_RevealHandler=function($scope,$){var elementSettings=get_Dyncontel_ElementSettings($scope);var rev1;var revealAction=function(){rev1=new RevealFx(revealistance,{revealSettings:{bgcolor:elementSettings.reveal_bgcolor,direction:elementSettings.reveal_direction,duration:Number(elementSettings.reveal_speed.size)*100,delay:Number(elementSettings.reveal_delay.size)*100,onCover:function(contentEl,revealerEl){contentEl.style.opacity=1}}})} var runReveal=function(){rev1.reveal()} if(elementSettings.enabled_reveal){var revealId='#reveal-'+$scope.data('id');var revealistance=document.querySelector(revealId);revealAction();var waypointOptions={offset:'100%',triggerOnce:!0};elementorFrontend.waypoint($(revealistance),runReveal,waypointOptions)}};$(window).on('elementor/frontend/init',function(){elementorFrontend.hooks.addAction('frontend/element_ready/global',WidgetElements_RevealHandler)})})(jQuery) /*elements-swiper.min.js*/ ;(function($){var WidgetElements_SwiperHandler=function($scope,$){console.log(' WidgetElements_SwiperHandler');alert('Swiper');var elementSettings=get_Dyncontel_ElementSettings($scope);var elementSwiper=$scope.find('.swiper-container')[0];var oggg={loop:!0,pagination:'.swiper-pagination',nextButton:'.swiper-button-next',prevButton:'.swiper-button-prev',effect:'slide',keyboardControl:!0,mousewheelControl:!0,};var interleaveOffset=-.5;var interleaveEffect={onProgress:function(swiper,progress){for(var i=0;i0){translate=progress*swiper.width;innerTranslate=translate*interleaveOffset}else{innerTranslate=Math.abs(progress*swiper.width)*interleaveOffset;translate=0} if(i==0){console.log(progress+' <- progress')} var transizione;if(elementSettings.direction=='horizontal'){transizione='translate3d('+translate+'px,0,0)'}else if(elementSettings.direction=='vertical'){transizione='translate3d(0,'+translate+'px,0)'} $(slide).css({transform:transizione,});var transizioneInterna;if(elementSettings.direction=='horizontal'){transizioneInterna='translate3d('+innerTranslate+'px,0,0)'}else if(elementSettings.direction=='vertical'){transizioneInterna='translate3d(0,'+innerTranslate+'px,0)'} $(slide).find('.slide-inner').css({transform:transizioneInterna})}},onTouchStart:function(swiper){for(var i=0;i https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/rellax/rellax.min.js?ver=5.2.2 (function(h,g){"function"===typeof define&&define.amd?define([],g):"object"===typeof module&&module.exports?module.exports=g():h.Rellax=g()})(this,function(){var h=function(g,n){var a=Object.create(h.prototype),k=0,p=0,l=0,q=0,e=[],r=!0,z=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||function(a){setTimeout(a,1E3/60)},A=window.transformProp||function(){var a=document.createElement("div"); if(null===a.style.transform){var b=["Webkit","Moz","ms"],d;for(d in b)if(void 0!==a.style[b[d]+"Transform"])return b[d]+"Transform"}return"transform"}();a.options={speed:-2,center:!1,wrapper:null,round:!0,vertical:!0,horizontal:!1,callback:function(){}};n&&Object.keys(n).forEach(function(c){a.options[c]=n[c]});g||(g=".rellax");var m="string"===typeof g?document.querySelectorAll(g):[g];if(0 https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/elements-rellax.js?ver=5.2.2 (function ($) { var isRellax = false; var currentDevice = ''; var WidgetElements_RellaxHandler = function (panel, model, view) { //console.log( $scope ); //alert('Rellax'); var $scope = view.$el; var scene = $scope.find('#scene'); //var parallax = new Rellax( scene[0] ); }; var WidgetElements_RellaxHandlerFront = function ($scope, $) { //console.log( $scope ); var elementSettings = get_Dyncontel_ElementSettings($scope); //console.log(elementorFrontend); //var $scope = $scope; //var myitem = $scope.find('.parallax').attr('id'); var rellax = null; $(window).on('resize', function () { if (rellax) { rellax.destroy(); if (rellax) initRellax(); } }) var initRellax = function () { if (elementSettings.enabled_rellax) { currentDevice = elementorFrontend.getCurrentDeviceMode(); var setting_speed = 'speed_rellax'; var value_speed = 0; if (currentDevice != 'desktop') { setting_speed = 'speed_rellax_' + currentDevice; } if (eval('elementSettings.' + setting_speed + '.size')) value_speed = eval('elementSettings.' + setting_speed + '.size'); var rellaxId = '#rellax-' + $scope.data('id'); //alert(elementorFrontend.getCurrentDeviceMode()); //if( rellax ) rellax.destroy(); //alert('Rellax '+rellaxId); if( $(rellaxId).length ) rellax = new Rellax(rellaxId , { speed: value_speed, //center: true /*wrapper: '.elementor', relativeToWrapper: true,*/ //round: true, //vertical: 'yes' === elementSettings.vertical_rellax, //horizontal: 'yes' === elementSettings.horizontal_rellax, } ); //alert(elementSettings.horizontal_rellax); isRellax = true; } ; }; initRellax(); }; $(window).on('elementor/frontend/init', function () { elementorFrontend.hooks.addAction('frontend/element_ready/global', WidgetElements_RellaxHandlerFront); }); })(jQuery); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/anime/anime.min.js?ver=5.2.2 /* 2017 Julian Garnier Released under the MIT license */ var $jscomp={scope:{}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(e,r,p){if(p.get||p.set)throw new TypeError("ES3 does not support getters and setters.");e!=Array.prototype&&e!=Object.prototype&&(e[r]=p.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; $jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.symbolCounter_=0;$jscomp.Symbol=function(e){return $jscomp.SYMBOL_PREFIX+(e||"")+$jscomp.symbolCounter_++}; $jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var e=$jscomp.global.Symbol.iterator;e||(e=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[e]&&$jscomp.defineProperty(Array.prototype,e,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(e){var r=0;return $jscomp.iteratorPrototype(function(){return rb&&(b+=1);1b?c:b<2/3?a+(c-a)*(2/3-b)*6:a}var d=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(a)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(a);a=parseInt(d[1])/360;var b=parseInt(d[2])/100,f=parseInt(d[3])/100,d=d[4]||1;if(0==b)f=b=a=f;else{var n=.5>f?f*(1+b):f+b-f*b,k=2*f-n,f=c(k,n,a+1/3),b=c(k,n,a);a=c(k,n,a-1/3)}return"rgba("+ 255*f+","+255*b+","+255*a+","+d+")"}function y(a){if(a=/([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(a))return a[2]}function V(a){if(-1=g.currentTime)for(var G=0;G=w||!k)g.began||(g.began=!0,f("begin")),f("run");if(q>n&&q=k&&r!==k||!k)b(k),x||e();f("update");a>=k&&(g.remaining?(t=h,"alternate"===g.direction&&(g.reversed=!g.reversed)):(g.pause(),g.completed||(g.completed=!0,f("complete"),"Promise"in window&&(p(),m=c()))),l=0)}a=void 0===a?{}:a;var h,t,l=0,p=null,m=c(),g=fa(a);g.reset=function(){var a=g.direction,c=g.loop;g.currentTime= 0;g.progress=0;g.paused=!0;g.began=!1;g.completed=!1;g.reversed="reverse"===a;g.remaining="alternate"===a&&1===c?2:c;b(0);for(a=g.children.length;a--;)g.children[a].reset()};g.tick=function(a){h=a;t||(t=h);k((l+h-t)*q.speed)};g.seek=function(a){k(d(a))};g.pause=function(){var a=v.indexOf(g);-1=c&&0<=b&&1>=b){var e=new Float32Array(11);if(c!==d||b!==f)for(var k=0;11>k;++k)e[k]=a(.1*k,c,b);return function(k){if(c===d&&b===f)return k;if(0===k)return 0;if(1===k)return 1;for(var h=0,l=1;10!==l&&e[l]<=k;++l)h+=.1;--l;var l=h+(k-e[l])/(e[l+1]-e[l])*.1,n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(.001<=n){for(h=0;4>h;++h){n=3*(1-3*b+3*c)*l*l+2*(3*b-6*c)*l+3*c;if(0===n)break;var m=a(l,c,b)-k,l=l-m/n}k=l}else if(0=== n)k=l;else{var l=h,h=h+.1,g=0;do m=l+(h-l)/2,n=a(m,c,b)-k,0++g);k=m}return a(k,d,f)}}}}(),Q=function(){function a(a,b){return 0===a||1===a?a:-Math.pow(2,10*(a-1))*Math.sin(2*(a-1-b/(2*Math.PI)*Math.asin(1))*Math.PI/b)}var c="Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "),d={In:[[.55,.085,.68,.53],[.55,.055,.675,.19],[.895,.03,.685,.22],[.755,.05,.855,.06],[.47,0,.745,.715],[.95,.05,.795,.035],[.6,.04,.98,.335],[.6,-.28,.735,.045],a],Out:[[.25, .46,.45,.94],[.215,.61,.355,1],[.165,.84,.44,1],[.23,1,.32,1],[.39,.575,.565,1],[.19,1,.22,1],[.075,.82,.165,1],[.175,.885,.32,1.275],function(b,c){return 1-a(1-b,c)}],InOut:[[.455,.03,.515,.955],[.645,.045,.355,1],[.77,0,.175,1],[.86,0,.07,1],[.445,.05,.55,.95],[1,0,0,1],[.785,.135,.15,.86],[.68,-.55,.265,1.55],function(b,c){return.5>b?a(2*b,c)/2:1-a(-2*b+2,c)/2}]},b={linear:A(.25,.25,.75,.75)},f={},e;for(e in d)f.type=e,d[f.type].forEach(function(a){return function(d,f){b["ease"+a.type+c[f]]=h.fnc(d)? d:A.apply($jscomp$this,d)}}(f)),f={type:f.type};return b}(),ha={css:function(a,c,d){return a.style[c]=d},attribute:function(a,c,d){return a.setAttribute(c,d)},object:function(a,c,d){return a[c]=d},transform:function(a,c,d,b,f){b[f]||(b[f]=[]);b[f].push(c+"("+d+")")}},v=[],B=0,ia=function(){function a(){B=requestAnimationFrame(c)}function c(c){var b=v.length;if(b){for(var d=0;db&&(c.duration=d.duration);c.children.push(d)});c.seek(0);c.reset();c.autoplay&&c.restart();return c};return c};q.random=function(a,c){return Math.floor(Math.random()*(c-a+1))+a};return q}); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/reveal/revealFx.js?ver=5.2.2 /** * main.js * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2016, Codrops * http://www.codrops.com */ ;(function(window) { 'use strict'; // Helper vars and functions. function extend(a, b) { for(var key in b) { if( b.hasOwnProperty( key ) ) { a[key] = b[key]; } } return a; } function createDOMEl(type, className, content) { var el = document.createElement(type); el.className = className || ''; el.innerHTML = content || ''; return el; } /** * RevealFx obj. */ function RevealFx(el, options) { this.el = el; this.options = extend({}, this.options); extend(this.options, options); this._init(); } /** * RevealFx options. */ RevealFx.prototype.options = { // If true, then the content will be hidden until it´s "revealed". isContentHidden: true, // The animation/reveal settings. This can be set initially or passed when calling the reveal method. revealSettings: { // Animation direction: left right (lr) || right left (rl) || top bottom (tb) || bottom top (bt). direction: 'lr', // Revealer´s background color. bgcolor: '#f0f0f0', // Animation speed. This is the speed to "cover" and also "uncover" the element (seperately, not the total time). duration: 500, // Animation easing. This is the easing to "cover" and also "uncover" the element. easing: 'easeInOutQuint', // percentage-based value representing how much of the area should be left covered. coverArea: 0, // Callback for when the revealer is covering the element (halfway through of the whole animation). onCover: function(contentEl, revealerEl) { return false; }, // Callback for when the animation starts (animation start). onStart: function(contentEl, revealerEl) { return false; }, // Callback for when the revealer has completed uncovering (animation end). onComplete: function(contentEl, revealerEl) { return false; } } }; /** * Init. */ RevealFx.prototype._init = function() { this._layout(); }; /** * Build the necessary structure. */ RevealFx.prototype._layout = function() { var position = getComputedStyle(this.el).position; if( position !== 'fixed' && position !== 'absolute' && position !== 'relative' ) { this.el.style.position = 'relative'; } // Content element. this.content = createDOMEl('div', 'block-revealer__content', this.el.innerHTML); if( this.options.isContentHidden) { this.content.style.opacity = 0; } // Revealer element (the one that animates) this.revealer = createDOMEl('div', 'block-revealer__element'); this.el.classList.add('block-revealer'); this.el.innerHTML = ''; this.el.appendChild(this.content); this.el.appendChild(this.revealer); }; /** * Gets the revealer element´s transform and transform origin. */ RevealFx.prototype._getTransformSettings = function(direction) { var val, origin, origin_2; switch (direction) { case 'lr' : val = 'scale3d(0,1,1)'; origin = '0 50%'; origin_2 = '100% 50%'; break; case 'rl' : val = 'scale3d(0,1,1)'; origin = '100% 50%'; origin_2 = '0 50%'; break; case 'tb' : val = 'scale3d(1,0,1)'; origin = '50% 0'; origin_2 = '50% 100%'; break; case 'bt' : val = 'scale3d(1,0,1)'; origin = '50% 100%'; origin_2 = '50% 0'; break; default : val = 'scale3d(0,1,1)'; origin = '0 50%'; origin_2 = '100% 50%'; break; }; return { // transform value. val: val, // initial and halfway/final transform origin. origin: {initial: origin, halfway: origin_2}, }; }; /** * Reveal animation. If revealSettings is passed, then it will overwrite the options.revealSettings. */ RevealFx.prototype.reveal = function(revealSettings) { // Do nothing if currently animating. if( this.isAnimating ) { return false; } this.isAnimating = true; // Set the revealer element´s transform and transform origin. var defaults = { // In case revealSettings is incomplete, its properties deafault to: duration: 500, easing: 'easeInOutQuint', delay: 0, bgcolor: '#f0f0f0', direction: 'lr', coverArea: 0 }, revealSettings = revealSettings || this.options.revealSettings, direction = revealSettings.direction || defaults.direction, transformSettings = this._getTransformSettings(direction); this.revealer.style.WebkitTransform = this.revealer.style.transform = transformSettings.val; this.revealer.style.WebkitTransformOrigin = this.revealer.style.transformOrigin = transformSettings.origin.initial; // Set the Revealer´s background color. this.revealer.style.backgroundColor = revealSettings.bgcolor || defaults.bgcolor; // Show it. By default the revealer element has opacity = 0 (CSS). this.revealer.style.opacity = 1; // Animate it. var self = this, // Second animation step. animationSettings_2 = { complete: function() { self.isAnimating = false; if( typeof revealSettings.onComplete === 'function' ) { revealSettings.onComplete(self.content, self.revealer); } } }, // First animation step. animationSettings = { delay: revealSettings.delay || defaults.delay, complete: function() { self.revealer.style.WebkitTransformOrigin = self.revealer.style.transformOrigin = transformSettings.origin.halfway; if( typeof revealSettings.onCover === 'function' ) { revealSettings.onCover(self.content, self.revealer); } anime(animationSettings_2); } }; animationSettings.targets = animationSettings_2.targets = this.revealer; animationSettings.duration = animationSettings_2.duration = revealSettings.duration || defaults.duration; animationSettings.easing = animationSettings_2.easing = revealSettings.easing || defaults.easing; var coverArea = revealSettings.coverArea || defaults.coverArea; if( direction === 'lr' || direction === 'rl' ) { animationSettings.scaleX = [0,1]; animationSettings_2.scaleX = [1,coverArea/100]; } else { animationSettings.scaleY = [0,1]; animationSettings_2.scaleY = [1,coverArea/100]; } if( typeof revealSettings.onStart === 'function' ) { revealSettings.onStart(self.content, self.revealer); } anime(animationSettings); }; window.RevealFx = RevealFx; })(window); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/greensock/TweenMax.min.js?ver=5.2.2 /*! * VERSION: 2.1.3 * DATE: 2019-05-17 * UPDATES AND DOCS AT: http://greensock.com * * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin * * @license Copyright (c) 2008-2019, GreenSock. All rights reserved. * This work is subject to the terms at http://greensock.com/standard-license or for * Club GreenSock members, the software agreement that was issued with your membership. * * @author: Jack Doyle, jack@greensock.com **/ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c],b):e[c%e.length];delete a.cycle},f=function(a){if("function"==typeof a)return a;var b="object"==typeof a?a:{each:a},c=b.ease,d=b.from||0,e=b.base||0,f={},g=isNaN(d),h=b.axis,i={center:.5,end:1}[d]||0;return function(a,j,k){var l,m,n,o,p,q,r,s,t,u=(k||b).length,v=f[u];if(!v){if(t="auto"===b.grid?0:(b.grid||[1/0])[0],!t){for(r=-(1/0);r<(r=k[t++].getBoundingClientRect().left)&&u>t;);t--}for(v=f[u]=[],l=g?Math.min(t,u)*i-.5:d%t,m=g?u*i/t-.5:d/t|0,r=0,s=1/0,q=0;u>q;q++)n=q%t-l,o=m-(q/t|0),v[q]=p=h?Math.abs("y"===h?o:n):Math.sqrt(n*n+o*o),p>r&&(r=p),s>p&&(s=p);v.max=r-s,v.min=s,v.v=u=b.amount||b.each*(t>u?u-1:h?"y"===h?u/t:t:Math.max(t,u/t))||0,v.b=0>u?e-u:e}return u=(v[a]-v.min)/v.max,v.b+(c?c.getRatio(u):u)*v.v}},g=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=g.prototype.render},h=1e-8,i=c._internals,j=i.isSelector,k=i.isArray,l=g.prototype=c.to({},.1,{}),m=[];g.version="2.1.3",l.constructor=g,l.kill()._gc=!1,g.killTweensOf=g.killDelayedCallsTo=c.killTweensOf,g.getTweensOf=c.getTweensOf,g.lagSmoothing=c.lagSmoothing,g.ticker=c.ticker,g.render=c.render,g.distribute=f,l.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),c.prototype.invalidate.call(this)},l.updateTo=function(a,b){var d,e=this,f=e.ratio,g=e.vars.immediateRender||a.immediateRender;b&&e._startTime.998){var h=e._totalTime;e.render(0,!0,!1),e._initted=!1,e.render(h,!0,!1)}else if(e._initted=!1,e._init(),e._time>0||g)for(var i,j=1/(1-f),k=e._firstPT;k;)i=k.s+k.c,k.c*=j,k.s=i-k.c,k=k._next;return e},l.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,g,j,k,l,m,n,o,p=this,q=p._dirty?p.totalDuration():p._totalDuration,r=p._time,s=p._totalTime,t=p._cycle,u=p._duration,v=p._rawPrevTime;if(a>=q-h&&a>=0?(p._totalTime=q,p._cycle=p._repeat,p._yoyo&&0!==(1&p._cycle)?(p._time=0,p.ratio=p._ease._calcEnd?p._ease.getRatio(0):0):(p._time=u,p.ratio=p._ease._calcEnd?p._ease.getRatio(1):1),p._reversed||(e=!0,f="onComplete",d=d||p._timeline.autoRemoveChildren),0===u&&(p._initted||!p.vars.lazy||d)&&(p._startTime===p._timeline._duration&&(a=0),(0>v||0>=a&&a>=-h||v===h&&"isPause"!==p.data)&&v!==a&&(d=!0,v>h&&(f="onReverseComplete")),p._rawPrevTime=n=!b||a||v===a?a:h)):h>a?(p._totalTime=p._time=p._cycle=0,p.ratio=p._ease._calcEnd?p._ease.getRatio(0):0,(0!==s||0===u&&v>0)&&(f="onReverseComplete",e=p._reversed),a>-h?a=0:0>a&&(p._active=!1,0===u&&(p._initted||!p.vars.lazy||d)&&(v>=0&&(d=!0),p._rawPrevTime=n=!b||a||v===a?a:h)),p._initted||(d=!0)):(p._totalTime=p._time=a,0!==p._repeat&&(j=u+p._repeatDelay,p._cycle=p._totalTime/j>>0,0!==p._cycle&&p._cycle===p._totalTime/j&&a>=s&&p._cycle--,p._time=p._totalTime-p._cycle*j,p._yoyo&&0!==(1&p._cycle)&&(p._time=u-p._time,o=p._yoyoEase||p.vars.yoyoEase,o&&(p._yoyoEase||(o!==!0||p._initted?p._yoyoEase=o=o===!0?p._ease:o instanceof Ease?o:Ease.map[o]:(o=p.vars.ease,p._yoyoEase=o=o?o instanceof Ease?o:"function"==typeof o?new Ease(o,p.vars.easeParams):Ease.map[o]||c.defaultEase:c.defaultEase)),p.ratio=o?1-o.getRatio((u-p._time)/u):0)),p._time>u?p._time=u:p._time<0&&(p._time=0)),p._easeType&&!o?(k=p._time/u,l=p._easeType,m=p._easePower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),p.ratio=1===l?1-k:2===l?k:p._time/u<.5?k/2:1-k/2):o||(p.ratio=p._ease.getRatio(p._time/u))),r===p._time&&!d&&t===p._cycle)return void(s!==p._totalTime&&p._onUpdate&&(b||p._callback("onUpdate")));if(!p._initted){if(p._init(),!p._initted||p._gc)return;if(!d&&p._firstPT&&(p.vars.lazy!==!1&&p._duration||p.vars.lazy&&!p._duration))return p._time=r,p._totalTime=s,p._rawPrevTime=v,p._cycle=t,i.lazyTweens.push(p),void(p._lazy=[a,b]);!p._time||e||o?e&&this._ease._calcEnd&&!o&&(p.ratio=p._ease.getRatio(0===p._time?0:1)):p.ratio=p._ease.getRatio(p._time/u)}for(p._lazy!==!1&&(p._lazy=!1),p._active||!p._paused&&p._time!==r&&a>=0&&(p._active=!0),0===s&&(2===p._initted&&a>0&&p._init(),p._startAt&&(a>=0?p._startAt.render(a,!0,d):f||(f="_dummyGS")),p.vars.onStart&&(0!==p._totalTime||0===u)&&(b||p._callback("onStart"))),g=p._firstPT;g;)g.f?g.t[g.p](g.c*p.ratio+g.s):g.t[g.p]=g.c*p.ratio+g.s,g=g._next;p._onUpdate&&(0>a&&p._startAt&&p._startTime&&p._startAt.render(a,!0,d),b||(p._totalTime!==s||f)&&p._callback("onUpdate")),p._cycle!==t&&(b||p._gc||p.vars.onRepeat&&p._callback("onRepeat")),f&&(!p._gc||d)&&(0>a&&p._startAt&&!p._onUpdate&&p._startTime&&p._startAt.render(a,!0,d),e&&(p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!b&&p.vars[f]&&p._callback(f),0===u&&p._rawPrevTime===h&&n!==h&&(p._rawPrevTime=0))},g.to=function(a,b,c){return new g(a,b,c)},g.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new g(a,b,c)},g.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new g(a,b,d)},g.staggerTo=g.allTo=function(a,b,h,i,l,n,o){var p,q,r,s,t=[],u=f(h.stagger||i),v=h.cycle,w=(h.startAt||m).cycle;for(k(a)||("string"==typeof a&&(a=c.selector(a)||a),j(a)&&(a=d(a))),a=a||[],p=a.length-1,r=0;p>=r;r++){q={};for(s in h)q[s]=h[s];if(v&&(e(q,a,r),null!=q.duration&&(b=q.duration,delete q.duration)),w){w=q.startAt={};for(s in h.startAt)w[s]=h.startAt[s];e(q.startAt,a,r)}q.delay=u(r,a[r],a)+(q.delay||0),r===p&&l&&(q.onComplete=function(){h.onComplete&&h.onComplete.apply(h.onCompleteScope||this,arguments),l.apply(o||h.callbackScope||this,n||m)}),t[r]=new g(a[r],b,q)}return t},g.staggerFrom=g.allFrom=function(a,b,c,d,e,f,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,g.staggerTo(a,b,c,d,e,f,h)},g.staggerFromTo=g.allFromTo=function(a,b,c,d,e,f,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,g.staggerTo(a,b,d,e,f,h,i)},g.delayedCall=function(a,b,c,d,e){return new g(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},g.set=function(a,b){return new g(a,0,b)},g.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var n=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(n(f,b)),e=d.length),f=f._next;return d},o=g.getAllTweens=function(b){return n(a._rootTimeline,b).concat(n(a._rootFramesTimeline,b))};g.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=o(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},g.killChildTweensOf=function(a,b){if(null!=a){var e,f,h,l,m,n=i.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),j(a)&&(a=d(a)),k(a))for(l=a.length;--l>-1;)g.killChildTweensOf(a[l],b);else{e=[];for(h in n)for(f=n[h].target.parentNode;f;)f===a&&(e=e.concat(n[h].tweens)),f=f.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var p=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=o(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return g.pauseAll=function(a,b,c){p(!0,a,b,c)},g.resumeAll=function(a,b,c){p(!1,a,b,c)},g.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||h,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},l.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this.duration()?this._time/this._duration:this.ratio},l.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},l.time=function(a,b){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var c=this._duration,d=this._cycle,e=d*(c+this._repeatDelay);return a>c&&(a=c),this.totalTime(this._yoyo&&1&d?c-a+e:this._repeat?a+e:a,b)},l.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},l.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},l.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},l.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},l.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},g},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a);var c,d,e=this,f=e.vars;e._labels={},e.autoRemoveChildren=!!f.autoRemoveChildren,e.smoothChildTiming=!!f.smoothChildTiming,e._sortChildren=!0,e._onUpdate=f.onUpdate;for(d in f)c=f[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(f[d]=e._swapSelfInParams(c));i(f.tweens)&&e.add(f.tweens,0,f.align,f.stagger)},e=1e-8,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c],b):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=function(a,b,c,d){var e="immediateRender";return e in b||(b[e]=!(c&&c[e]===!1||d)),b},r=function(a){if("function"==typeof a)return a;var b="object"==typeof a?a:{each:a},c=b.ease,d=b.from||0,e=b.base||0,f={},g=isNaN(d),h=b.axis,i={center:.5,end:1}[d]||0;return function(a,j,k){var l,m,n,o,p,q,r,s,t,u=(k||b).length,v=f[u];if(!v){if(t="auto"===b.grid?0:(b.grid||[1/0])[0],!t){for(r=-(1/0);r<(r=k[t++].getBoundingClientRect().left)&&u>t;);t--}for(v=f[u]=[],l=g?Math.min(t,u)*i-.5:d%t,m=g?u*i/t-.5:d/t|0,r=0,s=1/0,q=0;u>q;q++)n=q%t-l,o=m-(q/t|0),v[q]=p=h?Math.abs("y"===h?o:n):Math.sqrt(n*n+o*o),p>r&&(r=p),s>p&&(s=p);v.max=r-s,v.min=s,v.v=u=b.amount||b.each*(t>u?u-1:h?"y"===h?u/t:t:Math.max(t,u/t))||0,v.b=0>u?e-u:e}return u=(v[a]-v.min)/v.max,v.b+(c?c.getRatio(u):u)*v.v}},s=d.prototype=new b;return d.version="2.1.3",d.distribute=r,s.constructor=d,s.kill()._gc=s._forcingPlayhead=s._hasPause=!1,s.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},s.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,q(this,d)),e)},s.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return e=q(this,e,d),b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},s.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),s=r(e.stagger||f),t=e.startAt,u=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),o=0;of&&(e=1),i.add(g,f)),g=h;return j.add(i,0),e&&i.totalDuration(),i},s.add=function(e,f,g,h){var j,k,l,m,n,o,p=this;if("number"!=typeof f&&(f=p._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),p.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return p._uncache(!0)}if("string"==typeof e)return p.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(p,e,f),(e._time||!e._duration&&e._initted)&&(j=(p.rawTime()-e._startTime)*e._timeScale,(!e._duration||Math.abs(Math.max(0,Math.min(e.totalDuration(),j)))-e._totalTime>1e-5)&&e.render(j,!1,!1)),(p._gc||p._time===p._duration)&&!p._paused&&p._duratione._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return p},s.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},s._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},s.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},s.insert=s.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},s.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},s.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},s.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},s.removeLabel=function(a){return delete this._labels[a],this},s.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},s._parseTimeOrLabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f="number"!=typeof b||c?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexOf("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseInt(b.charAt(g-1)+"1",10)*Number(b.substr(g+1)),b=g>1?this._parseTimeOrLabel(b.substr(0,g-1),0,d):f}return Number(b)+c},s.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},s.stop=function(){return this.paused(!0)},s.gotoAndPlay=function(a,b){return this.play(a,b)},s.gotoAndStop=function(a,b){return this.pause(a,b)},s.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n,o=this,p=o._time,q=o._dirty?o.totalDuration():o._totalDuration,r=o._startTime,s=o._timeScale,t=o._paused;if(p!==o._time&&(a+=o._time-p),o._hasPause&&!o._forcingPlayhead&&!b){if(a>p)for(d=o._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===o._rawPrevTime||(l=d),d=d._next;else for(d=o._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(o._time=o._totalTime=a=l._startTime,n=o._startTime+(o._reversed?o._duration-a:a)/o._timeScale)}if(a>=q-e&&a>=0)o._totalTime=o._time=q,o._reversed||o._hasPausedChild()||(f=!0,h="onComplete",i=!!o._timeline.autoRemoveChildren,0===o._duration&&(0>=a&&a>=-e||o._rawPrevTime<0||o._rawPrevTime===e)&&o._rawPrevTime!==a&&o._first&&(i=!0,o._rawPrevTime>e&&(h="onReverseComplete"))),o._rawPrevTime=o._duration||!b||a||o._rawPrevTime===a?a:e,a=q+1e-4;else if(e>a)if(o._totalTime=o._time=0,a>-e&&(a=0),(0!==p||0===o._duration&&o._rawPrevTime!==e&&(o._rawPrevTime>0||0>a&&o._rawPrevTime>=0))&&(h="onReverseComplete",f=o._reversed),0>a)o._active=!1,o._timeline.autoRemoveChildren&&o._reversed?(i=f=!0,h="onReverseComplete"):o._rawPrevTime>=0&&o._first&&(i=!0),o._rawPrevTime=a;else{if(o._rawPrevTime=o._duration||!b||a||o._rawPrevTime===a?a:e,0===a&&f)for(d=o._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,o._initted||(i=!0)}else o._totalTime=o._time=o._rawPrevTime=a;if(o._time!==p&&o._first||c||i||l){if(o._initted||(o._initted=!0),o._active||!o._paused&&o._time!==p&&a>0&&(o._active=!0),0===p&&o.vars.onStart&&(0===o._time&&o._duration||b||o._callback("onStart")),m=o._time,m>=p)for(d=o._first;d&&(g=d._next,m===o._time&&(!o._paused||t));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&(o.pause(),o._pauseTime=n),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=o._last;d&&(g=d._prev,m===o._time&&(!o._paused||t));){if(d._active||d._startTime<=p&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>o._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,o.pause(),o._pauseTime=n}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}o._onUpdate&&(b||(j.length&&k(),o._callback("onUpdate"))),h&&(o._gc||(r===o._startTime||s!==o._timeScale)&&(0===o._time||q>=o.totalDuration())&&(f&&(j.length&&k(),o._timeline.autoRemoveChildren&&o._enabled(!1,!1),o._active=!1),!b&&o.vars[h]&&o._callback(h)))}},s._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},s.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},s.recent=function(){return this._recent},s._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},s.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},s._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},s.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},s.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},s._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},s.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},s.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},s.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this,f=e._last,g=999999999999;f;)b=f._prev,f._dirty&&f.totalDuration(),f._startTime>g&&e._sortChildren&&!f._paused&&!e._calculatingDuration?(e._calculatingDuration=1,e.add(f,f._startTime-f._delay),e._calculatingDuration=0):g=f._startTime,f._startTime<0&&!f._paused&&(d-=f._startTime,e._timeline.smoothChildTiming&&(e._startTime+=f._startTime/e._timeScale,e._time-=f._startTime,e._totalTime-=f._startTime,e._rawPrevTime-=f._startTime),e.shiftChildren(-f._startTime,!1,-9999999999),g=0),c=f._startTime+f._totalDuration/f._timeScale,c>d&&(d=c),f=b;e._duration=e._totalDuration=d,e._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},s.paused=function(b){if(b===!1&&this._paused)for(var c=this._first;c;)c._startTime===this._time&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},s.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},s.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},e=1e-8,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="2.1.3",k.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time===f.target.time()||d!==f.duration()||f.isFromTo||f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale).render(f.time(),!0,!0),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.isFromTo=1,d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o,p=this,q=p._time,r=p._dirty?p.totalDuration():p._totalDuration,s=p._duration,t=p._totalTime,u=p._startTime,v=p._timeScale,w=p._rawPrevTime,x=p._paused,y=p._cycle;if(q!==p._time&&(a+=p._time-q),a>=r-e&&a>=0)p._locked||(p._totalTime=r,p._cycle=p._repeat),p._reversed||p._hasPausedChild()||(f=!0,j="onComplete",k=!!p._timeline.autoRemoveChildren,0===p._duration&&(0>=a&&a>=-e||0>w||w===e)&&w!==a&&p._first&&(k=!0,w>e&&(j="onReverseComplete"))),p._rawPrevTime=p._duration||!b||a||p._rawPrevTime===a?a:e,p._yoyo&&1&p._cycle?p._time=a=0:(p._time=s,a=s+1e-4);else if(e>a)if(p._locked||(p._totalTime=p._cycle=0),p._time=0,a>-e&&(a=0),(0!==q||0===s&&w!==e&&(w>0||0>a&&w>=0)&&!p._locked)&&(j="onReverseComplete",f=p._reversed),0>a)p._active=!1,p._timeline.autoRemoveChildren&&p._reversed?(k=f=!0,j="onReverseComplete"):w>=0&&p._first&&(k=!0),p._rawPrevTime=a;else{if(p._rawPrevTime=s||!b||a||p._rawPrevTime===a?a:e,0===a&&f)for(d=p._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,p._initted||(k=!0)}else 0===s&&0>w&&(k=!0),p._time=p._rawPrevTime=a,p._locked||(p._totalTime=a,0!==p._repeat&&(l=s+p._repeatDelay,p._cycle=p._totalTime/l>>0,p._cycle&&p._cycle===p._totalTime/l&&a>=t&&p._cycle--,p._time=p._totalTime-p._cycle*l,p._yoyo&&1&p._cycle&&(p._time=s-p._time),p._time>s?(p._time=s,a=s+1e-4):p._time<0?p._time=a=0:a=p._time));if(p._hasPause&&!p._forcingPlayhead&&!b){if(a=p._time,a>q||p._repeat&&y!==p._cycle)for(d=p._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===p._rawPrevTime||(m=d),d=d._next;else for(d=p._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&(o=p._startTime+(p._reversed?p._duration-m._startTime:m._startTime)/p._timeScale,m._startTime0&&(p._active=!0),0===t&&p.vars.onStart&&(0===p._totalTime&&p._totalDuration||b||p._callback("onStart")),n=p._time,n>=q)for(d=p._first;d&&(i=d._next,n===p._time&&(!p._paused||x));)(d._active||d._startTime<=p._time&&!d._paused&&!d._gc)&&(m===d&&(p.pause(),p._pauseTime=o),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=p._last;d&&(i=d._prev,n===p._time&&(!p._paused||x));){if(d._active||d._startTime<=q&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>p._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,p.pause(),p._pauseTime=o}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}p._onUpdate&&(b||(g.length&&h(),p._callback("onUpdate"))),j&&(p._locked||p._gc||(u===p._startTime||v!==p._timeScale)&&(0===p._time||r>=p.totalDuration())&&(f&&(g.length&&h(),p._timeline.autoRemoveChildren&&p._enabled(!1,!1),p._active=!1),!b&&p.vars[j]&&p._callback(j)))},k.getActive=function(a,b,c){var d,e,f=[],g=this.getChildren(a||null==a,b||null==a,!!c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].timec&&(a=c),this.totalTime(this._yoyo&&1&d?c-a+e:this._repeat?a+e:a,b)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+e)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]], s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.9",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m,n=this._segCount,o=this._func,p=this._target,q=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,m=b*this._length,e=this._li,m>this._l2&&n-1>e){for(j=n-1;j>e&&(this._l2=k[++e])<=m;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(m0){for(;e>0&&(this._l1=k[--e])>=m;);0===e&&mthis._s2&&ee&&(this._s2=l[++e])<=m;);this._s1=l[e-1],this._si=e}else if(m0){for(;e>0&&(this._s1=l[--e])>=m;);0===e&&mb?0:b>=1?n-1:n*b>>0,h=(b-c*(1/n))*n;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,p)),o[f]?p[f](i):p[f]=i;if(this._autoRotate){var r,s,t,u,v,w,x,y=this._autoRotate;for(e=y.length;--e>-1;)f=y[e][2],w=y[e][3]||0,x=y[e][4]===!0?1:a,g=this._beziers[y[e][0]],r=this._beziers[y[e][1]],g&&r&&(g=g[c],r=r[c],s=g.a+(g.b-g.a)*h,u=g.b+(g.c-g.b)*h,s+=(u-s)*h,u+=(g.c+(g.d-g.c)*h-u)*h,t=r.a+(r.b-r.a)*h,v=r.b+(r.c-r.b)*h,t+=(v-t)*h,v+=(r.c+(r.d-r.c)*h-v)*h,i=q?Math.atan2(v-t,u-s)*x+w:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,p)),o[f]?p[f](i):p[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="2.1.3",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b),?/gi,w=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,x=/(?:\d|\-|\+|=|#|\.)*/g,y=/opacity *= *([^)]*)/i,z=/opacity:([^;]*)/i,A=/alpha\(opacity *=.+?\)/i,B=/^(rgb|hsl)/,C=/([A-Z])/g,D=/-([a-z])/gi,E=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,F=function(a,b){return b.toUpperCase()},G=/(?:Left|Right|Width)/i,H=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,I=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,J=/,(?=[^\)]*(?:\(|$))/gi,K=/[\s,\(]/i,L=Math.PI/180,M=180/Math.PI,N={},O={style:{}},P=_gsScope.document||{createElement:function(){return O}},Q=function(a,b){var c=P.createElementNS?P.createElementNS(b||"http://www.w3.org/1999/xhtml",a):P.createElement(a);return c.style?c:P.createElement(a)},R=Q("div"),S=Q("img"),T=g._internals={_specialProps:i},U=(_gsScope.navigator||{}).userAgent||"",V=function(){var a=U.indexOf("Android"),b=Q("a");return m=-1!==U.indexOf("Safari")&&-1===U.indexOf("Chrome")&&(-1===a||parseFloat(U.substr(a+8,2))>3),o=m&&parseFloat(U.substr(U.indexOf("Version/")+8,2))<6,n=-1!==U.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(U)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(U))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),W=function(a){return y.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},X=function(a){_gsScope.console&&console.log(a)},Y="",Z="",$=function(a,b){b=b||R;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Z=3===d?"ms":c[d],Y="-"+Z.toLowerCase()+"-",Z+a):null},_="undefined"!=typeof window?window:P.defaultView||{getComputedStyle:function(){}},aa=function(a){return _.getComputedStyle(a)},ba=g.getStyle=function(a,b,c,d,e){var f;return V||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||aa(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(C,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):W(a)},ca=T.convertToPixels=function(a,c,d,e,f){if("px"===e||!e&&"lineHeight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=G.test(c),l=a,m=R.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineHeight"!==c||e)if("%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+ba(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||P.body,-1!==ba(l,"display").indexOf("flex")&&(m.position="absolute"),i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(R),h=parseFloat(R[k?"offsetWidth":"offsetHeight"]),l.removeChild(R),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=ca(a,c,d,e,!0))}else i=aa(a).lineHeight,a.style.lineHeight=d,h=parseFloat(aa(a).lineHeight),a.style.lineHeight=i;return o&&(h/=100),n?-h:h},da=T.calculateOffset=function(a,b,c){if("absolute"!==ba(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=ba(a,"margin"+d,c);return a["offset"+d]-(ca(a,b,parseFloat(e),e.replace(x,""))||0)},ea=function(a,b){var c,d,e,f={};if(b=b||aa(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Fa===e)&&(f[e.replace(D,F)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ea===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(D,F)]=b[c]);return V||(f.opacity=W(a)),d=Ta(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Ha&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},fa=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(w,"")?f:0:da(a,g),void 0!==j[g]&&(h=new ua(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ga={width:["Left","Right"],height:["Top","Bottom"]},ha=["marginLeft","marginRight","marginTop","marginBottom"],ia=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||aa(a))[b]||0;if(a.getCTM&&Qa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ga[b],f=e.length;for(c=c||aa(a,null);--f>-1;)d-=parseFloat(ba(a,"padding"+e[f],c,!0))||0,d-=parseFloat(ba(a,"border"+e[f]+"Width",c,!0))||0;return d},ja=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(w,"")),b.oy=parseFloat(f.replace(w,"")),b.v=a),b||a},ka=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},la=function(a,b){"function"==typeof a&&(a=a(r,q));var c="string"==typeof a&&"="===a.charAt(1);return"string"==typeof a&&"v"===a.charAt(a.length-2)&&(a=(c?a.substr(0,2):0)+window["inner"+("vh"===a.substr(-2)?"Height":"Width")]*(parseFloat(c?a.substr(2):a)/100)),null==a?b:c?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ma=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:M)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},na={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},oa=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},pa=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),na[a])c=na[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(c[3])),c[0]=oa(g+1/3,d,e),c[1]=oa(g,d,e),c[2]=oa(g-1/3,d,e);else c=a.match(s)||na.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=na.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},qa=function(a,b){var c,d,e,f=a.match(ra)||[],g=0,h="";if(!f.length)return a;for(c=0;c0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&J.test(a)){for(o=a.replace(J,"|").split("|"),n=0;nn--)for(;++nm--)for(;++mi;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},ua=(T._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=i.r(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod.call(this._tween,h.rotation,this.t,this._tween):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new ua(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},T.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof va||f.push(this.n),this.r=j?"function"==typeof j?j:Math.round:j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),wa=function(a,b,c,d,e,f){var g=new va(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},xa=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new va(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&ra.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(-1!==(d+c).indexOf("rgb")||-1!==(d+c).indexOf("hsl")?(D=D.join(" ").replace(J,", ").split(" "),E=E.join(" ").replace(J,", ").split(" ")):(D=D.join(" ").split(",").join(", ").split(" "),E=E.join(" ").split(",").join(", ").split(" ")),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,ra.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m]+"",x=parseFloat(p),x||0===x)h.appendXtra("",x,ka(u,x),u.replace(t,""),G&&-1!==u.indexOf("px")?Math.round:!1,!0);else if(e&&ra.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&V,z=u,p=pa(p,C),u=pa(u,C),y=p.length+u.length>6,y&&!V&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(V||(y=!1),C?h.appendXtra(z.substr(0,z.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ka(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ka(u[1],p[1]),"%,",!1).appendXtra("",p[2],ka(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(z.substr(0,z.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",Math.round,!0).appendXtra("",p[1],u[1]-p[1],",",Math.round).appendXtra("",p[2],u[2]-p[2],y?",":B,Math.round),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),ra.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n0;)j["xn"+ya]=0,j["xs"+ya]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new va(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var za=function(a,b){b=b||{},this.p=b.prefix?$(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||sa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.allowFunc=b.allowFunc,this.pr=b.priority||0},Aa=T._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;dh.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return xa(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(ba(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){Aa(a,{parser:function(a,d,e,f,g,h,i){var j=new va(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Ca,Da="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ea=$("transform"),Fa=Y+"transform",Ga=$("transformOrigin"),Ha=null!==$("perspective"),Ia=T.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Ha?g.defaultForce3D||"auto":!1},Ja=_gsScope.SVGElement,Ka=function(a,b,c){var d,e=P.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},La=P.documentElement||{},Ma=function(){var a,b,c,d=p||/Android/i.test(U)&&!_gsScope.chrome;return P.createElementNS&&La.appendChild&&!d&&(a=Ka("svg",La),b=Ka("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ga]="50% 50%",b.style[Ea]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Ha),La.removeChild(a)),d}(),Na=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Sa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ja(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Ra&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Oa=function(a){var b,c=Q("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(La.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Oa}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),La.removeChild(c),this.style.cssText=f,b},Pa=function(a){try{return a.getBBox()}catch(b){return Oa.call(a,!0)}},Qa=function(a){return!(!Ja||!a.getCTM||a.parentNode&&!a.ownerSVGElement||!Pa(a))},Ra=[1,0,0,1,0,0],Sa=function(a,b){var c,d,e,f,g,h,i,j=a._gsTransform||new Ia,k=1e5,l=a.style;if(Ea?d=ba(a,Fa,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(H),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),j.x||0,j.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,Ea&&c&&!a.offsetParent&&a!==La&&(f=l.display,l.display="block",i=a.parentNode,i&&a.offsetParent||(g=1,h=a.nextSibling,La.appendChild(a)),d=ba(a,Fa,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?l.display=f:Xa(l,"display"),g&&(h?i.insertBefore(a,h):i?i.appendChild(a):La.removeChild(a))),(j.svg||a.getCTM&&Qa(a))&&(c&&-1!==(l[Ea]+"").indexOf("matrix")&&(d=l[Ea],c=0),e=a.getAttribute("transform"),c&&e&&(e=a.transform.baseVal.consolidate().matrix,d="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")",c=0)),c)return Ra;for(e=(d||"").match(s)||[],ya=e.length;--ya>-1;)f=Number(e[ya]),e[ya]=(g=f-(f|=0))?(g*k+(0>g?-.5:.5)|0)/k+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ta=T.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ia:new Ia,n=m.scaleX<0,o=2e-5,p=1e5,q=Ha?parseFloat(ba(a,Ga,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Qa(a)),m.svg&&(Na(a,ba(a,Ga,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Ca=g.useSVGTransformAttr||Ma),f=Sa(a),f!==Ra){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],L=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*M,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,L=E*-w+L*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*M,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,L=A*w+L*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*M,N&&(v=Math.cos(N),w=Math.sin(N),s=x*v+y*w,t=B*v+C*w,u=F*v+G*w,y=y*v-x*w,C=C*v-B*w,G=G*v-F*w,x=s,B=t,F=u),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),N=Math.atan2(B,C),m.scaleX=(Math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+D*D)*p+.5|0)/p,m.scaleZ=(Math.sqrt(F*F+G*G+H*H)*p+.5|0)/p,x/=m.scaleX,B/=m.scaleY,y/=m.scaleX,C/=m.scaleY,Math.abs(N)>o?(m.skewX=N*M,B=0,"simple"!==m.skewType&&(m.scaleY*=1/Math.cos(N))):m.skewX=0,m.perspective=L?1/(0>L?-L:L):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Ha||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*M:m.rotation||0,l=R||S?Math.atan2(R,S)*M+k:m.skewX||0,m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Ha&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180)),m.zOrigin=q;for(h in m)m[h]-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Ca&&a.style[Ea]?b.delayedCall(.001,function(){Xa(a.style,Ea)}):!Ca&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Ua=function(a){var b,c,d=this.data,e=-d.rotation*L,f=e+d.skewX*L,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(I,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||y.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var w,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),ya=0;4>ya;ya++)z=ha[ya],w=m[z],c=-1!==w.indexOf("px")?parseFloat(w):ca(this.t,z,parseFloat(w),w.replace(x,""))||0,A=c!==d[z]?2>ya?-d.ieOffsetX:-d.ieOffsetY:2>ya?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===ya||2===ya?1:B)))+"px"}}},Va=T.set3DTransformRatio=T.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,K=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Ca&&K||!Ha)return void(B||P||K?(B*=L,x=P*L,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*L),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*L),b=Math.sqrt(1+b*b),c*=b,f*=b)),K&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Ca&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",K&&Ca?this.t.setAttribute("transform","matrix("+u):A[Ea]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ea]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=L,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*L,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*L),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*L),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||K))return void(A[Ea]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*L,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*L,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||K)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),K&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g), C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ea]=u};j=Ia.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,Aa("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j=i.scale&&"function"==typeof i.scale?i.scale:0;j&&(i.scale=j(r,a));var k,l,m,n,o,p,s,t,u,v=a._gsTransform,w=a.style,x=1e-6,y=Da.length,z=i,A={},B="transformOrigin",C=Ta(a,e,!0,z.parseTransform),D=z.transform&&("function"==typeof z.transform?z.transform(r,q):z.transform);if(C.skewType=z.skewType||C.skewType||g.defaultSkewType,d._transform=C,"rotationZ"in z&&(z.rotation=z.rotationZ),D&&"string"==typeof D&&Ea)l=R.style,l[Ea]=D,l.display="block",l.position="absolute",-1!==D.indexOf("%")&&(l.width=ba(a,"width"),l.height=ba(a,"height")),P.body.appendChild(R),k=Ta(R,null,!1),"simple"===C.skewType&&(k.scaleY*=Math.cos(k.skewX*L)),C.svg&&(p=C.xOrigin,s=C.yOrigin,k.x-=C.xOffset,k.y-=C.yOffset,(z.transformOrigin||z.svgOrigin)&&(D={},Na(a,ja(z.transformOrigin),D,z.svgOrigin,z.smoothOrigin,!0),p=D.xOrigin,s=D.yOrigin,k.x-=D.xOffset-C.xOffset,k.y-=D.yOffset-C.yOffset),(p||s)&&(t=Sa(R,!0),k.x-=p-(p*t[0]+s*t[2]),k.y-=s-(p*t[1]+s*t[3]))),P.body.removeChild(R),k.perspective||(k.perspective=C.perspective),null!=z.xPercent&&(k.xPercent=la(z.xPercent,C.xPercent)),null!=z.yPercent&&(k.yPercent=la(z.yPercent,C.yPercent));else if("object"==typeof z){if(k={scaleX:la(null!=z.scaleX?z.scaleX:z.scale,C.scaleX),scaleY:la(null!=z.scaleY?z.scaleY:z.scale,C.scaleY),scaleZ:la(z.scaleZ,C.scaleZ),x:la(z.x,C.x),y:la(z.y,C.y),z:la(z.z,C.z),xPercent:la(z.xPercent,C.xPercent),yPercent:la(z.yPercent,C.yPercent),perspective:la(z.transformPerspective,C.perspective)},o=z.directionalRotation,null!=o)if("object"==typeof o)for(l in o)z[l]=o[l];else z.rotation=o;"string"==typeof z.x&&-1!==z.x.indexOf("%")&&(k.x=0,k.xPercent=la(z.x,C.xPercent)),"string"==typeof z.y&&-1!==z.y.indexOf("%")&&(k.y=0,k.yPercent=la(z.y,C.yPercent)),k.rotation=ma("rotation"in z?z.rotation:"shortRotation"in z?z.shortRotation+"_short":C.rotation,C.rotation,"rotation",A),Ha&&(k.rotationX=ma("rotationX"in z?z.rotationX:"shortRotationX"in z?z.shortRotationX+"_short":C.rotationX||0,C.rotationX,"rotationX",A),k.rotationY=ma("rotationY"in z?z.rotationY:"shortRotationY"in z?z.shortRotationY+"_short":C.rotationY||0,C.rotationY,"rotationY",A)),k.skewX=ma(z.skewX,C.skewX),k.skewY=ma(z.skewY,C.skewY)}for(Ha&&null!=z.force3D&&(C.force3D=z.force3D,n=!0),m=C.force3D||C.z||C.rotationX||C.rotationY||k.z||k.rotationX||k.rotationY||k.perspective,m||null==z.scale||(k.scaleZ=1);--y>-1;)u=Da[y],D=k[u]-C[u],(D>x||-x>D||null!=z[u]||null!=N[u])&&(n=!0,f=new va(C,u,C[u],D,f),u in A&&(f.e=A[u]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return D="function"==typeof z.transformOrigin?z.transformOrigin(r,q):z.transformOrigin,C.svg&&(D||z.svgOrigin)&&(p=C.xOffset,s=C.yOffset,Na(a,ja(D),k,z.svgOrigin,z.smoothOrigin),f=wa(C,"xOrigin",(v?C:k).xOrigin,k.xOrigin,f,B),f=wa(C,"yOrigin",(v?C:k).yOrigin,k.yOrigin,f,B),(p!==C.xOffset||s!==C.yOffset)&&(f=wa(C,"xOffset",v?p:C.xOffset,C.xOffset,f,B),f=wa(C,"yOffset",v?s:C.yOffset,C.yOffset,f,B)),D="0px 0px"),(D||Ha&&m&&C.zOrigin)&&(Ea?(n=!0,u=Ga,D||(D=(ba(a,u,e,!1,"50% 50%")+"").split(" "),D=D[0]+" "+D[1]+" "+C.zOrigin+"px"),D+="",f=new va(w,u,0,0,f,-1,B),f.b=w[u],f.plugin=h,Ha?(l=C.zOrigin,D=D.split(" "),C.zOrigin=(D.length>2?parseFloat(D[2]):l)||0,f.xs0=f.e=D[0]+" "+(D[1]||"50%")+" 0px",f=new va(C,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=C.zOrigin):f.xs0=f.e=D):ja(D+"",C)),n&&(d._transformType=C.svg&&Ca||!m&&3!==this._transformType?2:3),j&&(i.scale=j),f},allowFunc:!0,prefix:!0}),Aa("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Aa("clipPath",{defaultValue:"inset(0%)",prefix:!0,multi:!0,formatter:sa("inset(0% 0% 0% 0%)",!1,!0)}),Aa("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;jp?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=ca(a,"borderLeft",o,t),w=ca(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=ca(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=xa(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:sa("0px 0px 0px 0px",!1,!0)}),Aa("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return xa(a.style,c,this.format(ba(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:sa("0px 0px",!1,!0)}),Aa("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||aa(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=ba(a,"backgroundImage").replace(E,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),S.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-S.width:a.offsetHeight-S.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ja}),Aa("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="","co"===a.substr(0,2)?a:ja(-1===a.indexOf(" ")?a+" "+a:a)}}),Aa("perspective",{defaultValue:"0px",prefix:!0}),Aa("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Aa("transformStyle",{prefix:!0}),Aa("backfaceVisibility",{prefix:!0}),Aa("userSelect",{prefix:!0}),Aa("margin",{parser:ta("marginTop,marginRight,marginBottom,marginLeft")}),Aa("padding",{parser:ta("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Aa("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(ba(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),Aa("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Aa("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),Aa("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=ba(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(x,"");return"px"!==j&&(h=parseFloat(h)/ca(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+ba(a,"borderTopStyle",e,!1,"solid")+" "+ba(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(ra)||["#000"])[0]}}),Aa("borderWidth",{parser:ta("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Aa("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new va(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Wa=function(a){var b,c=this.t,d=c.filter||ba(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!ba(this.data,"filter")):(c.filter=d.replace(A,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(y,"opacity="+e))};Aa("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(ba(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===ba(a,"visibility",e)&&0!==b&&(h=0),V?f=new va(i,"opacity",h,b-h,f):(f=new va(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Wa),j&&(f=new va(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Xa=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(C,"-$1").toLowerCase())):a.removeAttribute(b))},Ya=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Xa(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Aa("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new va(a,d,0,0,g,2),g.setRatio=Ya,g.pr=-11,c=!0,g.b=o,k=ea(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=fa(a,k,ea(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText!==p&&(a.style.cssText=p),g=g.xfirst=f.parse(a,j.difs,g,h)}});var Za=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ga:i[c].p),Xa(g,c);e&&(Xa(g,Ea),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Aa("clearProps",{parser:function(a,b,d,e,f){return f=new va(a,d,0,0,f,2),f.setRatio=Za,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),ya=j.length;ya--;)Ba(j[ya]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=aa(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,y,A=a.style;if(l&&""===A.zIndex&&(n=ba(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ea(a,e),A.cssText=t+";"+b,n=fa(a,n,ea(a)).difs,!V&&z.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(y=3===this._transformType,Ea?m&&(l=!0,""===A.zIndex&&(w=ba(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(y?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new va(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ea?Va:Ua,x.data=this._transform||Ta(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],h=i[g],"function"!=typeof n||h&&h.allowFunc||(n=n(r,q)),h)c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._propLookup[g]=this._addTween.call(this._tween,a.style,"setProperty",aa(a).getPropertyValue(g)+"",n+"",g,!1,g);continue}m=ba(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&B.test(n)?(s||(n=pa(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=xa(u,g,m,n,!0,"transparent",c,0,f)):s&&K.test(n)?c=xa(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ia(a,g,e),o="px"):"left"===g||"top"===g?(j=da(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(x,"")):(l=parseFloat(n),p=s?n.replace(x,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineHeight"===g)&&(l||0===l)&&j&&(j=ca(a,g,j,o),"%"===p?(j/=ca(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=ca(a,g,1,p):"px"!==p&&(l=ca(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new va(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):X("invalid "+g+" tween value: "+b[g]):(c=new va(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=e.r(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d-1;)_a(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ea(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||_a(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,_a(a,k,m),i.render(c,!0,!0),_a(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=fa(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){var b=1>a?Math.pow(10,(a+"").length-2):1;return function(c){return(Math.round(c/a)*a*b|0)/b}},c=function(a,b){for(;a;)a.f||a.blob||(a.m=b||Math.round),a=a._next},d=a.prototype;d._onInitAllProps=function(){var a,d,e,f,g=this._tween,h=g.vars.roundProps,i={},j=g._propLookup.roundProps;if("object"!=typeof h||h.push)for("string"==typeof h&&(h=h.split(",")),e=h.length;--e>-1;)i[h[e]]=Math.round;else for(f in h)i[f]=b(h[f]);for(f in i)for(a=g._firstPT;a;)d=a._next,a.pg?a.t._mod(i):a.n===f&&(2===a.f&&a.t?c(a.t._firstPT,i[f]):(this._add(a.t,f,a.s,a.c,i[f]),d&&(d._prev=a._prev),a._prev?a._prev._next=d:g._firstPT===a&&(g._firstPT=d),a._next=a._prev=null,g._propLookup[f]=j)),a=d;return!1},d._add=function(a,b,c,d,e){this._addTween(a,b,c,c+d,b,e||Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e,f=_gsScope.GreenSockGlobals||_gsScope,g=f.com.greensock,h=2*Math.PI,i=Math.PI/2,j=g._class,k=function(b,c){var d=j("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},l=a.register||function(){},m=function(a,b,c,d,e){var f=j("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return l(f,a),f},n=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},o=function(b,c){var d=j("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},p=m("Back",o("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),o("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),o("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),q=j("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),r=q.prototype=new a;return r.constructor=q,r.getRatio=function(a){var b=a+(.5-a)*this._p;return athis._p3?this._calcEnd?1===a?0:1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},q.ease=new q(.7,.7),r.config=q.config=function(a,b,c){return new q(a,b,c)},b=j("easing.SteppedEase",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),r=b.prototype=new a,r.constructor=b,r.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},r.config=b.config=function(a,c){return new b(a,c)},c=j("easing.ExpoScaleEase",function(a,b,c){this._p1=Math.log(b/a),this._p2=b-a,this._p3=a,this._ease=c},!0),r=c.prototype=new a,r.constructor=c,r.getRatio=function(a){return this._ease&&(a=this._ease.getRatio(a)),(this._p3*Math.exp(this._p1*a)-this._p3)/this._p2},r.config=c.config=function(a,b,d){return new c(a,b,d)},d=j("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),m=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--m>-1;)c=o?Math.random():1/l*m,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:m%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new n(1,1,null),m=l;--m>-1;)g=j[m],h=new n(g.x,g.y,h);this._prev=new n(0,0,0!==h.t?h:h.next)},!0),r=d.prototype=new a,r.constructor=d,r.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},r.config=function(a){return new d(a)},d.ease=new d,m("Bounce",k("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),k("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),k("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),m("Circ",k("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),k("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),k("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),e=function(b,c,d){var e=j("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},m("Elastic",e("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),e("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),e("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),m("Expo",k("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),k("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),k("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),m("Sine",k("SineOut",function(a){return Math.sin(a*i)}),k("SineIn",function(a){return-Math.cos(a*i)+1}),k("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),j("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),l(f.SlowMo,"SlowMo","ease,"),l(d,"RoughEase","ease,"),l(b,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a,f=e[b];if(f)return"undefined"!=typeof module&&module.exports&&(module.exports=f),f;var g,h,i,j,k,l=function(a){var b,c=a.split("."),d=e;for(b=0;b-1;)(k=r[f[p]]||new s(f[p],[])).gsClass?(i[p]=k.gsClass,q--):j&&k.sc.push(this);if(0===q&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=l(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p-1;)for(f=i[j],e=d?u("easing."+f,null,!0):m.easing[f]||{},g=k.length;--g>-1;)h=k[g],x[f+"."+h]=x[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(i=w.prototype,i._calcEnd=!1,i.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},g=["Linear","Quad","Cubic","Quart","Quint,Strong"],h=g.length;--h>-1;)i=g[h]+",Power"+h,y(new w(null,null,1,h),i,"easeOut",!0),y(new w(null,null,2,h),i,"easeIn"+(0===h?",easeNone":"")),y(new w(null,null,3,h),i,"easeInOut");x.linear=m.easing.Linear.easeIn,x.swing=m.easing.Quad.easeInOut;var z=u("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});i=z.prototype,i.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],i=0;for(this!==j||k||j.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===i&&f.pr-1;)if(d[c].c===b)return void d.splice(c,1)},i.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var A=a.requestAnimationFrame,B=a.cancelAnimationFrame,C=Date.now||function(){return(new Date).getTime()},D=C();for(g=["ms","moz","webkit","o"],h=g.length;--h>-1&&!A;)A=a[g[h]+"RequestAnimationFrame"],B=a[g[h]+"CancelAnimationFrame"]||a[g[h]+"CancelRequestAnimationFrame"];u("Ticker",function(a,b){var c,e,f,g,h,i=this,l=C(),m=b!==!1&&A?"auto":!1,o=500,q=33,r="tick",s=function(a){var b,d,j=C()-D;j>o&&(l+=j-q),D+=j,i.time=(D-l)/1e3,b=i.time-h,(!c||b>0||a===!0)&&(i.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&i.dispatchEvent(r)};z.call(i),i.time=i.frame=0,i.tick=function(){s(!0)},i.lagSmoothing=function(a,b){return arguments.length?(o=a||1/n,void(q=Math.min(b,o,0))):1/n>o},i.sleep=function(){null!=f&&(m&&B?B(f):clearTimeout(f),e=p,f=null,i===j&&(k=!1))},i.wake=function(a){null!==f?i.sleep():a?l+=-D+(D=C()):i.frame>10&&(D=C()-o+5),e=0===c?p:m&&A?A:function(a){return setTimeout(a,1e3*(h-i.time)+1|0)},i===j&&(k=!0),s(2)},i.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void i.wake()):c},i.useRAF=function(a){return arguments.length?(i.sleep(),m=a,void i.fps(c)):m},i.fps(a),setTimeout(function(){"auto"===m&&i.frame<5&&"hidden"!==(d||{}).visibilityState&&i.useRAF(!1)},1500)}),i=m.Ticker.prototype=new m.events.EventDispatcher,i.constructor=m.Ticker;var E=u("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=!!b.immediateRender,this.data=b.data,this._reversed=!!b.reversed,Z){k||j.wake();var c=this.vars.useFrames?Y:Z;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});j=E.ticker=new m.Ticker,i=E.prototype,i._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var F=function(){k&&C()-D>2e3&&("hidden"!==(d||{}).visibilityState||!j.lagSmoothing())&&j.wake();var a=setTimeout(F,2e3);a.unref&&a.unref()};F(),i.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},i.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},i.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},i.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},i.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},i.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},i.render=function(a,b,c){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},i.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a-1;)"{self}"===a[b]&&(c[b]=this);return c},i._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},i.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=q(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},i.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},i.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},i.totalTime=function(a,b,c){if(k||j.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0), e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(K.length&&_(),this.render(a,b,!1),K.length&&_())}return this},i.progress=i.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},i.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},i.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(a){if(!arguments.length)return this._timeScale;var b,c;for(a=a||n,this._timeline&&this._timeline.smoothChildTiming&&(b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime(),this._startTime=c-(c-this._startTime)*this._timeScale/a),this._timeScale=a,c=this.timeline;c&&c.timeline;)c._dirty=!0,c.totalDuration(),c=c.timeline;return this},i.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(k||a||j.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var G=u("core.SimpleTimeline",function(a){E.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});i=G.prototype=new E,i.constructor=G,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=this.rawTime()-(a._timeline.rawTime()-a._pauseTime)),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},i._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},i.rawTime=function(){return k||j.wake(),this._totalTime};var H=u("TweenLite",function(b,c,d){if(E.call(this,c,d),this.render=H.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:H.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?X[H.defaultOverwrite]:"number"==typeof i?i>>0:X[i],(h||b instanceof Array||b.push&&q(b))&&"number"!=typeof b[0])for(this._targets=g=o(b),this._propLookup=[],this._siblings=[],e=0;e1&&ca(f,this,null,1,this._siblings[e])):(f=g[e--]=H.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=aa(b,this,!1),1===i&&this._siblings.length>1&&ca(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-n,this.render(Math.min(0,-this._delay)))},!0),I=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},J=function(a,b){var c,d={};for(c in a)W[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!T[c]||T[c]&&T[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};i=H.prototype=new E,i.constructor=H,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,H.version="2.1.3",H.defaultEase=i._ease=new w(null,null,1,1),H.defaultOverwrite="auto",H.ticker=j,H.autoSleep=120,H.lagSmoothing=function(a,b){j.lagSmoothing(a,b)},H.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(H.selector=c,c(b)):(d||(d=a.document),d?d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b):b)};var K=[],L={},M=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,N=/[\+-]=-?[\.\d]/,O=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a&&null!=this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m.call(this._tween,b,this._target||c.t,this._tween):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},P=function(a){return(1e3*a|0)/1e3+""},Q=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(M)||[],f=b.match(M)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:P}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=O,N.test(b)&&(l.end=null),l},R=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=Q(m,n?parseFloat(o.s)+o.c+(o.s+"").replace(/[0-9\-\.]/g,""):d,h||H.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},S=H._internals={isArray:q,isSelector:I,lazyTweens:K,blobDif:Q},T=H._plugins={},U=S.tweenLookup={},V=0,W=S.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},X={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},Y=E._rootFramesTimeline=new G,Z=E._rootTimeline=new G,$=30,_=S.lazyRender=function(){var a,b,c=K.length;for(L={},a=0;c>a;a++)b=K[a],b&&b._lazy!==!1&&(b.render(b._lazy[0],b._lazy[1],!0),b._lazy=!1);K.length=0};Z._startTime=j.time,Y._startTime=j.frame,Z._active=Y._active=!0,setTimeout(_,1),E._updateRoot=H.render=function(){var a,b,c;if(K.length&&_(),Z.render((j.time-Z._startTime)*Z._timeScale,!1,!1),Y.render((j.frame-Y._startTime)*Y._timeScale,!1,!1),K.length&&_(),j.frame>=$){$=j.frame+(parseInt(H.autoSleep,10)||120);for(c in U){for(b=U[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete U[c]}if(c=Z._first,(!c||c._paused)&&H.autoSleep&&!Y._first&&1===j._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||j.sleep()}}},j.addEventListener("tick",E._updateRoot);var aa=function(a,b,c){var d,e,f=a._gsTweenID;if(U[f||(a._gsTweenID=f="t"+V++)]||(U[f]={target:a,tweens:[]}),b&&(d=U[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return U[f].tweens},ba=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=H.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},ca=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+n,l=[],m=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||da(b,0,o),0===da(h,j,o)&&(l[m++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2*n||(l[m++]=h)));for(f=m;--f>-1;)if(h=l[f],i=h._firstPT,2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted&&i){if(2!==d&&!ba(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},da=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*n>f-b?n:(f+=a.totalDuration()/a._timeScale/e)>b+n?0:f-b-n};i._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease,l=this._startAt;if(g.startAt){l&&(l.render(-1,!0),l.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.data="isStart",e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,e.onUpdate=g.onUpdate,e.onUpdateParams=g.onUpdateParams,e.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=H.to(this.target||{},0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(l)l.render(-1,!0),l.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)W[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=H.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof w?k:"function"==typeof k?new w(k,g.easeParams):x[k]||H.defaultEase:H.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&H._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},i._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;L[b._gsTweenID]&&_(),this.vars.css||b.style&&b!==a&&b.nodeType&&T.css&&this.vars.autoCSS!==!1&&J(this.vars,b);for(g in this.vars)if(l=this.vars[g],W[g])l&&(l instanceof Array||l.push&&q(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(T[g]&&(j=new T[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=R.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&ca(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(L[b._gsTweenID]=!0),i)},i.render=function(a,b,c){var d,e,f,g,h=this,i=h._time,j=h._duration,k=h._rawPrevTime;if(a>=j-n&&a>=0)h._totalTime=h._time=j,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1,h._reversed||(d=!0,e="onComplete",c=c||h._timeline.autoRemoveChildren),0===j&&(h._initted||!h.vars.lazy||c)&&(h._startTime===h._timeline._duration&&(a=0),(0>k||0>=a&&a>=-n||k===n&&"isPause"!==h.data)&&k!==a&&(c=!0,k>n&&(e="onReverseComplete")),h._rawPrevTime=g=!b||a||k===a?a:n);else if(n>a)h._totalTime=h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==i||0===j&&k>0)&&(e="onReverseComplete",d=h._reversed),a>-n?a=0:0>a&&(h._active=!1,0===j&&(h._initted||!h.vars.lazy||c)&&(k>=0&&(k!==n||"isPause"!==h.data)&&(c=!0),h._rawPrevTime=g=!b||a||k===a?a:n)),(!h._initted||h._startAt&&h._startAt.progress())&&(c=!0);else if(h._totalTime=h._time=a,h._easeType){var l=a/j,m=h._easeType,o=h._easePower;(1===m||3===m&&l>=.5)&&(l=1-l),3===m&&(l*=2),1===o?l*=l:2===o?l*=l*l:3===o?l*=l*l*l:4===o&&(l*=l*l*l*l),h.ratio=1===m?1-l:2===m?l:.5>a/j?l/2:1-l/2}else h.ratio=h._ease.getRatio(a/j);if(h._time!==i||c){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!c&&h._firstPT&&(h.vars.lazy!==!1&&h._duration||h.vars.lazy&&!h._duration))return h._time=h._totalTime=i,h._rawPrevTime=k,K.push(h),void(h._lazy=[a,b]);h._time&&!d?h.ratio=h._ease.getRatio(h._time/j):d&&h._ease._calcEnd&&(h.ratio=h._ease.getRatio(0===h._time?0:1))}for(h._lazy!==!1&&(h._lazy=!1),h._active||!h._paused&&h._time!==i&&a>=0&&(h._active=!0),0===i&&(h._startAt&&(a>=0?h._startAt.render(a,!0,c):e||(e="_dummyGS")),h.vars.onStart&&(0!==h._time||0===j)&&(b||h._callback("onStart"))),f=h._firstPT;f;)f.f?f.t[f.p](f.c*h.ratio+f.s):f.t[f.p]=f.c*h.ratio+f.s,f=f._next;h._onUpdate&&(0>a&&h._startAt&&a!==-1e-4&&h._startAt.render(a,!0,c),b||(h._time!==i||d||c)&&h._callback("onUpdate")),e&&(!h._gc||c)&&(0>a&&h._startAt&&!h._onUpdate&&a!==-1e-4&&h._startAt.render(a,!0,c),d&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!b&&h.vars[e]&&h._callback(e),0===j&&h._rawPrevTime===n&&g!==n&&(h._rawPrevTime=0))}},i._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:H.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline,n=this._firstPT;if((q(b)||I(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(H.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!ba(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&n&&this._enabled(!1,!1)}}return i},i.invalidate=function(){this._notifyPluginsOfEnabled&&H._onPluginEvent("_onDisable",this);var a=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],E.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-n,this.render(a,!1,this.vars.lazy!==!1)),this},i._enabled=function(a,b){if(k||j.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=aa(d[c],this,!0);else this._siblings=aa(this.target,this,!0)}return E.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?H._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},H.to=function(a,b,c){return new H(a,b,c)},H.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new H(a,b,c)},H.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new H(a,b,d)},H.delayedCall=function(a,b,c,d,e){return new H(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},H.set=function(a,b){return new H(a,0,b)},H.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:H.selector(a)||a;var c,d,e,f;if((q(a)||I(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(H.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gsTweenID)for(d=aa(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d||[]},H.killTweensOf=H.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=H.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ea=u("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ea.prototype},!0);if(i=ea.prototype,ea.version="1.19.0",ea.API=2,i._firstPT=null,i._addTween=R,i.setRatio=O,i._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},i._mod=i._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},H._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ea.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ea.API&&(T[(new a[b])._propName]=a[b]);return!0},t.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=u("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ea.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ea(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ea.activate([g]),g},g=a._gsQueue){for(h=0;h https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/inertiaScroll/jquery-inertiaScroll.js?ver=5.2.2 /** jquery-inertiaScroll Copyright(c) 2017 Go Nishiduka This software is released under the MIT License. http://opensource.org/licenses/mit-license.php Last Update: 2017-10-23 Version:1.1.1 */ 'use strict'; (function($){ $.fn.inertiaScroll = function(options){ ////////////////////////////////////////////////// // options ////////////////////////////////////////////////// var settings = $.extend({ parent: '', childDelta1: 0.02, childDelta2: 0.1, parentDelta: 0.08 }, options); ////////////////////////////////////////////////// // jqeury object ////////////////////////////////////////////////// var $window = $(window); var $body = $('body'); var $parent = settings.parent; var $child = this; ////////////////////////////////////////////////// // inertiaScroll childClass ////////////////////////////////////////////////// var ChildBox = function(elm, offset, speed, margin){ this.elm = elm; this.offset = offset !== undefined ? offset : 0; this.speed = speed !== undefined ? speed : 1; this.margin = margin !== undefined ? margin : 0; }; ChildBox.prototype.update = function(windowOffset,offsetBottom){ this.offset += (windowOffset * settings.childDelta1 * Number(this.speed) - this.offset) * settings.childDelta2; this.elm.css({transform:'translate3d(' + 0 + ',' + ( Number(this.margin) - Number(this.offset) ) + 'px ,' + 0 +')'}); }; ////////////////////////////////////////////////// // inertiaScroll parentClass ////////////////////////////////////////////////// var ParentBox = function(elm, offset, speed, margin){ ChildBox.apply(this,arguments); }; ParentBox.prototype = Object.create(ChildBox.prototype,{ constructor:{ value: ParentBox } }); ParentBox.prototype.update = function(windowOffset){ this.offset += (windowOffset - this.offset) * settings.parentDelta; this.elm.css({transform:'translate3d(' + 0 + ',' + (-this.offset) + 'px ,' + 0 + ')'}); }; ParentBox.prototype.setcss = function(){ this.elm.css({ 'width':'100%', 'position':'fixed' }); }; ////////////////////////////////////////////////// // make Object ////////////////////////////////////////////////// var Boxes = function(){ this.ChildBox = []; this.ChildBoxLength = 0; this.ParentBox = ''; this.windowHeight = 0; }; Boxes.prototype = { init:function(){ this.createElm($child,$parent); this.loop(); }, createElm:function(child,parent){ this.ParentBox = new ParentBox(parent,0,1); this.ParentBox.setcss(); this.boxArrayLength = child.length; for (var i = 0; i < this.boxArrayLength; i++) { var e = child.eq(i); var speed = e.data('speed'); var margin = e.data('margin'); this.ChildBox.push(new ChildBox(e,0,speed,margin)); } }, smoothScroll:function(){ var windowOffset = $window.scrollTop(); var offsetBottom = windowOffset + this.windowHeight; this.ParentBox.update(windowOffset); for (var i = 0; i < this.boxArrayLength; i++) { this.ChildBox[i].update(windowOffset,offsetBottom); } }, loop:function(){ this.smoothScroll(); window.requestAnimationFrame(this.loop.bind(this)); } }; ////////////////////////////////////////////////// // Done ////////////////////////////////////////////////// $(function(){ $body.height($parent.height()); var boxes = new Boxes(); boxes.init(); }); return this; }; })(jQuery); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/elements-inertiaScroll.js?ver=5.2.2 ( function( $ ) { var settings_page = {}; var is_inertiaScroll = false; var sectionsAvailable = []; var directionScroll = 'vertical'; var coefSpeed_inertiaScroll = 0.05; var html = document.documentElement; var body = document.body; var scroller = {}; function init_InertiaScroll($dir){ //alert($dir); $('body').addClass('dce-inertiaScroll dce-scrolling'); //$('body').prepend('
'); if( settings_page.custom_class_section ){ $customClass = settings_page.custom_class_section; }else{ $customClass = 'elementor-section'; } // DIRECTIONS if(typeof(settings_page.directionScroll) !== 'undefined') directionScroll = settings_page.directionScroll || $dir; if( typeof($dir) !== 'undefined' && ($dir == 'horizontal' || $dir == 'vertical')) directionScroll = $dir; //alert('sett: ' + directionScroll); // SPEED if(typeof(settings_page.coefSpeed_inertiaScroll) !== 'undefined') coefSpeed_inertiaScroll = Number(settings_page.coefSpeed_inertiaScroll.size); //$target_sections = settings_page.scroll_target+' '; $target_sections = '.elementor-'+settings_page.scroll_id_page; if(!$target_sections) $target_sections = ''; // Get the section widgets of frst level in content-page var sezioni = $target_sections + '.elementor > .elementor-inner > .elementor-section-wrap > .' + $customClass; sectionsAvailable = $(sezioni); // Class direction $($target_sections).addClass('scroll-direction-'+directionScroll); // configure sectionsAvailable.addClass('inertia-scroll'); $scrollContent = settings_page.scroll_contentScroll; if(settings_page.scroll_target) $scrollContent = settings_page.scroll_target; scroller = { viewport: document.querySelector(settings_page.scroll_viewport) || document.querySelector('#outer-wrap'), target: document.querySelector($scrollContent) || document.querySelector('#wrap'), ease: coefSpeed_inertiaScroll || 0.05, // <= scroll speed ... endY: 0, endX: 0, y: 0, x: 0, resizeRequest: 1, scrollRequest: 0, }; //alert(coefSpeed_inertiaScroll); var requestId = undefined; TweenMax.set(scroller.target, { rotation: 0.01, force3D: true }); // Viewoport /*TweenMax.set(scroller.viewport, { overflow: hidden; position: fixed; height: '100%'; width: '100%'; top: 0; left: 0; right: 0; bottom: 0; });*/ TweenMax.set(scroller.viewport, { overflow: 'hidden', position: 'fixed', height: '100%', width: '100%', top: 0, left: 0, right: 0, bottom: 0, }); updateScroller(); window.focus(); window.addEventListener("resize", onResize); document.addEventListener("scroll", onScroll); is_inertiaScroll = true; } function removeInertiaScroll(){ $('body').removeClass('dce-inertiaScroll'); if(sectionsAvailable.length) sectionsAvailable.removeClass('inertia-scroll'); TweenMax.kill( scroller.target ); TweenMax.set(scroller.target, {clearProps:"all"}); TweenMax.set(scroller.viewport, {clearProps:"all"}); sectionsAvailable.each(function(i, el){ TweenMax.set(el, {clearProps:"all"}); }); scroller = { endY: 0, y: 0, resizeRequest: 1, scrollRequest: 0, }; if (requestId) { window.cancelAnimationFrame(requestId); requestId = undefined; } window.removeEventListener("resize", onResize); document.removeEventListener("scroll", onScroll); is_inertiaScroll = false; } // function handleInertiaScroll ( newValue ) { //console.log( newValue ); //elementor.reloadPreview(); if(newValue){ // SI if(is_inertiaScroll){ removeInertiaScroll(); }else{ settings_page = elementor.settings.page.model.attributes; } setTimeout(function(){ if( settings_page.enable_inertiaScroll ) init_InertiaScroll(newValue); },100); }else{ // NO removeInertiaScroll(); } } function handleDCEScroll ( newValue ) { if(newValue){ }else{ // NO //removeInertiaScroll(); } } // EVENTS function updateScroller() { var resized = scroller.resizeRequest > 0; var w = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var h = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var cfc = h/w; // qui sto elaborando la [ Y ] ----------------------------------------------- if( directionScroll == 'vertical' ) { if (resized) { var height = scroller.target.clientHeight; body.style.height = height + "px"; scroller.resizeRequest = 0; } var scrollY = window.pageYOffset || html.scrollTop || body.scrollTop || 0; scroller.endY = scrollY; scroller.y += (scrollY - scroller.y) * scroller.ease; if (Math.abs(scrollY - scroller.y) < 0.05 || resized) { scroller.y = scrollY; scroller.scrollRequest = 0; } // ------------------------ TweenMax.set(scroller.target, { y: -scroller.y }); }else if( directionScroll == 'horizontal' ){ // qui invece elaboro la [ X ] ----------------------------------------------- if (resized) { //alert(sectionsAvailable.length); var totalWidth = 0; var completeWidth = 0; var count = 0; sectionsAvailable.each(function(i, el){ //alert($(el).width()); completeWidth += $(el).width(); if( count > 0 ) totalWidth += $(el).width(); //$(el).css({'position':'absolute','width':'100%','height':'100vh','left':(i*100)+'vw'}); //$(el).css({'float':'left','width':(100/sectionsAvailable.length)+'%','height':'100vh'}); TweenMax.set(el, { float: 'left', width: (100/sectionsAvailable.length)+'%', //height: '100vh' }); count++; }); //alert(totalWidth); TweenMax.set(scroller.target, { width: completeWidth }); totalWidth += h; //totalWidth -= ($(settings_page.scroll_viewport).find('footer').height()) //var width = //scroller.target.clientWidth*3; body.style.height = totalWidth + "px"; scroller.resizeRequest = 0; } var scrollX = window.pageYOffset || html.scrollTop || body.scrollTop || 0; scroller.endX = scrollX; scroller.x += (scrollX - scroller.x) * scroller.ease; //scroller.x = scrollX; if (Math.abs(scrollX - scroller.x) < 0.05 || resized) { scroller.x = scrollX; scroller.scrollRequest = 0; } // ------------------------ TweenMax.set(scroller.target, { x: -scroller.x }); } //$('.trace').text(window.scrollY); //scroller.x requestId = scroller.scrollRequest > 0 ? requestAnimationFrame(updateScroller) : null; } function onScroll() { scroller.scrollRequest++; if (!requestId) { requestId = requestAnimationFrame(updateScroller); } } function onResize() { scroller.resizeRequest++; if (!requestId) { requestId = requestAnimationFrame(updateScroller); } } // Make sure you run this code under Elementor.. $( document ).on( 'ready', function() { /*if ( elementorFrontend.isEditMode() ) { dce_isEditMode = true; } if ( $('body').is('.admin-bar') ) { dce_isAdminBar = true; }*/ /*if ( elementorFrontend.isEditMode() ){ }else{ settings_page = JSON.parse( $('.elementor').attr('data-elementor-settings') ); // }*/ settings_page = elementorFrontendConfig.settings.page; if(settings_page){ var is_enable_dceScrolling = settings_page.enable_dceScrolling; var is_enable_inertiaScroll = settings_page.enable_inertiaScroll; //alert(settings_page.enable_inertiaScroll); if( is_enable_inertiaScroll && is_enable_dceScrolling ){ setTimeout(function(){ init_InertiaScroll(); },100); } } // per il renderin della preview in EditMode if ( elementorFrontend.isEditMode() ){ elementor.settings.page.addChangeCallback( 'enable_inertiaScroll', handleInertiaScroll ); elementor.settings.page.addChangeCallback( 'directionScroll', handleInertiaScroll ); elementor.settings.page.addChangeCallback( 'scroll_target', handleInertiaScroll ); elementor.settings.page.addChangeCallback( 'coefSpeed_inertiaScroll', handleInertiaScroll ); //elementor.settings.page.addChangeCallback( 'enable_dceScrolling', handleInertiaScroll ); } // ------------ /*elementor.hooks.addAction( 'panel/open_editor/post/enable_scrollify', function( panel, model, view ) { var $element = view.$el.find( '.elementor-selector' ); alert('open editor'); if ( $element.length ) { $element.click( function() { alert( 'Some Message' ); } ); } } );*/ // ----------- /*elementorFrontend.hooks.addAction( 'frontend/element_ready/global', function( $scope ) { console.log($scope); if ( $scope.data( 'shake' ) ){ $scope.shake(); } } );*/ } ); } )( jQuery ); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/lax/lax.min.js?ver=5.2.2 "use strict";function _slicedToArray(t,a){return _arrayWithHoles(t)||_iterableToArrayLimit(t,a)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function _iterableToArrayLimit(t,a){var n=[],e=!0,r=!1,o=void 0;try{for(var l,i=t[Symbol.iterator]();!(e=(l=i.next()).done)&&(n.push(l.value),!a||n.length!==a);e=!0);}catch(t){r=!0,o=t}finally{try{e||null==i.return||i.return()}finally{if(r)throw o}}return n}function _arrayWithHoles(t){if(Array.isArray(t))return t}!function(){var lax=function(){for(var lax={elements:[]},lastY=0,currentBreakpoint="default",breakpointsSeparator="_",transformFns={"data-lax-opacity":function(t,a){t.opacity=a},"data-lax-translate":function(t,a){t.transform+=" translate(".concat(a,"px, ").concat(a,"px)")},"data-lax-translate-x":function(t,a){t.transform+=" translateX(".concat(a,"px)")},"data-lax-translate-y":function(t,a){t.transform+=" translateY(".concat(a,"px)")},"data-lax-scale":function(t,a){t.transform+=" scale(".concat(a,")")},"data-lax-scale-x":function(t,a){t.transform+=" scaleX(".concat(a,")")},"data-lax-scale-y":function(t,a){t.transform+=" scaleY(".concat(a,")")},"data-lax-skew":function(t,a){t.transform+=" skew(".concat(a,"deg, ").concat(a,"deg)")},"data-lax-skew-x":function(t,a){t.transform+=" skewX(".concat(a,"deg)")},"data-lax-skew-y":function(t,a){t.transform+=" skewY(".concat(a,"deg)")},"data-lax-rotate":function(t,a){t.transform+=" rotate(".concat(a,"deg)")},"data-lax-brightness":function(t,a){t.filter+=" brightness(".concat(a,"%)")},"data-lax-contrast":function(t,a){t.filter+=" contrast(".concat(a,"%)")},"data-lax-hue-rotate":function(t,a){t.filter+=" hue-rotate(".concat(a,"deg)")},"data-lax-blur":function(t,a){t.filter+=" blur(".concat(a,"px)")},"data-lax-invert":function(t,a){t.filter+=" invert(".concat(a,"%)")},"data-lax-saturate":function(t,a){t.filter+=" saturate(".concat(a,"%)")},"data-lax-grayscale":function(t,a){t.filter+=" grayscale(".concat(a,"%)")},"data-lax-bg-pos":function(t,a){t.backgroundPosition="".concat(a,"px ").concat(a,"px")},"data-lax-bg-pos-x":function(t,a){t.backgroundPositionX="".concat(a,"px")},"data-lax-bg-pos-y":function(t,a){t.backgroundPositionY="".concat(a,"px")}},_crazy="",i=0;i<20;i++)_crazy+=" "+5*i+" "+47*i%360+", ";function intrp(t,a){for(var n=0;t[n][0]<=a&&void 0!==t[n+1];)n+=1;var e=t[n][0],r=void 0===t[n-1]?e:t[n-1][0],o=t[n][1],l=void 0===t[n-1]?o:t[n-1][1];return Math.min(Math.max((a-r)/(e-r),0),1)*(o-l)+l}function fnOrVal(s){return"("===s[0]?eval(s):parseFloat(s)}return lax.presets={linger:function(t){return{"data-lax-translate-y":"(vh*0.7) 0, 0 200, -500 0"}},lazy:function(){var t=0 https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/elements-lax.js?ver=5.2.2 (function ($) { var settings_page = {}; var is_scrollEffects = false; var sectionsAvailable = []; var datalax = [ 'data-lax-opacity', 'data-lax-translate', 'data-lax-translate-x', 'data-lax-translate-y', 'data-lax-scale', 'data-lax-scale-x', 'data-lax-scale-y', 'data-lax-skew', 'data-lax-skew-x', 'data-lax-skew-y', 'data-lax-rotate', 'data-lax-rotate-x', 'data-lax-rotate-y', 'data-lax-brightness', 'data-lax-contrast', 'data-lax-hue-rotate', 'data-lax-blur', 'data-lax-invert', 'data-lax-saturate', 'data-lax-grayscale', 'data-lax-bg-pos', 'data-lax-bg-pos-x', 'data-lax-bg-pos-y', 'data-lax-anchor' ] var init_PageScroll = function ( ) { $('body').addClass('dce-pageScroll dce-scrolling'); if (settings_page.custom_class_section) { $customClass = settings_page.custom_class_section; } else { $customClass = 'elementor-section'; } // Get the section widgets of frst level in content-page // settings_page.scrollEffects_id_page //alert(settings_page.scroll_target); $target_sections = settings_page.scroll_target + ' '; $target_sections = '.elementor-' + settings_page.scroll_id_page; if (!$target_sections) $target_sections = ''; var sezioni = $target_sections + '.elementor > .elementor-inner > .elementor-section-wrap > .' + $customClass; sectionsAvailable = $(sezioni); // Class direction $($target_sections).addClass('scroll-direction-' + settings_page.directionScroll); // property animationType = settings_page.animation_effects || ['spin']; //$scope.find('#dce_pagescroll').data('animation'), var animationType_string = []; if (animationType.length) animationType_string = animationType.join(' '); // configure sectionsAvailable.addClass('lax'); setStyleEffects(animationType_string); // ------------------------------- //alert(sectionsAvailable.length); lax.addPreset("scaleDown", function () { return { //"data-lax-scale": "-vh 0, 0 1, vh 1.5", "data-lax-scale": "0 1, (document.body.scrollHeight) 0", //"data-lax-translate-y": "0 0, vh 200", } }); lax.addPreset("zoomInOut", function () { return { //"data-lax-scale": "-vh 0, 0 1, vh 1.5", "data-lax-scale": "-vh 0, 0 1, vh 0", "data-lax-translate-y": "0 0, vh -vh*0.2", } }); lax.addPreset("leftToRight", function () { return { //"data-lax-scale": "-vh 0, 0 1, vh 1.5", "data-lax-translate-x": "-vh -vw,0 0, 0 1, vh vw", } }); lax.addPreset("rightToLeft", function () { return { //"data-lax-scale": "-vh 0, 0 1, vh 1.5", "data-lax-translate-x": "-vh vw,0 0, 0 1, vh -vw", } }); lax.addPreset("opacity", function () { return { "data-lax-opacity": "-vh 0, 0 1, vh 0", } }); lax.addPreset("fixed", function () { return { "data-lax-translate-y": "0 0, vh elh", } }); lax.addPreset("parallax", function () { return { "data-lax-translate-y": "0 0, elh elh", } }); lax.addPreset("rotation", function () { return { "data-lax-rotate": "0 0, vh -30", } }); lax.setup() // init Laxxx const updateLax = () => { if (lax) lax.update(window.scrollY) window.requestAnimationFrame(updateLax); } window.requestAnimationFrame(updateLax) is_scrollEffects = true; } // UTIL function removeScrollEffects() { //$('.elementor-'+settings_page.scrollEffects_id_page).removeClass('dce-pageScroll-element'); $('body').removeClass('dce-pageScroll'); if (sectionsAvailable.length) sectionsAvailable.removeClass('lax'); clearStyleEffects(); //updateLax = null; lax.removeElement(); is_scrollEffects = false; } function setStyleEffects(effect) { if (effect) sectionsAvailable.attr('data-lax-preset', effect); } function clearStyleEffects() { //alert(sectionsAvailable.length); for (var i = 0; i < datalax.length; i++) { if (sectionsAvailable.length) sectionsAvailable.removeAttr(datalax[i]); if (lax) lax.updateElements(); } sectionsAvailable.removeAttr('style'); } // Change CallBack - - - - - - - - - - - - - - - - - - - - - - - - - function handleScrollEffects(newValue) { if (newValue) { // SI if (is_scrollEffects) { removeScrollEffects(); } else { settings_page = elementor.settings.page.model.attributes; } setTimeout(function () { init_PageScroll(); }, 100); } else { // NO removeScrollEffects(); } } function handleScrollEffects_animations(newValue) { // //clearStyleEffects(); var animationType_string = newValue.join(' '); if (newValue.length) { removeScrollEffects(); settings_page = elementor.settings.page.model.attributes; init_PageScroll(); setStyleEffects(animationType_string); lax.updateElements(); } lax.updateElements(); } $(window).on('elementor/frontend/init', function () { }); window.onload = function () { } window.addEventListener("resize", function () { if (typeof lax !== 'undefined') { if (lax) lax.updateElements(); } }); $(document).on('ready', function () { //alert($('.elementor[data-elementor-type=page]').length); if (typeof elementorFrontendConfig.settings.page !== 'undefined') { /*if ( elementorFrontend.isEditMode() ){ }else{ settings_page = JSON.parse( $('.elementor').attr('data-elementor-settings') ); // }*/ settings_page = elementorFrontendConfig.settings.page; //alert(settings_page.enable_scrollEffects); //console.log($('.elementor').attr('data-elementor-settings')); //alert(elementSettings.enable_scrollEffects); if (settings_page) { var is_enable_dceScrolling = settings_page.enable_dceScrolling; var is_enable_scrollEffects = settings_page.enable_scrollEffects; //console.log(elementorFrontendConfig.post.id); if (is_enable_scrollEffects && is_enable_dceScrolling) { // //alert('lax: '.elementorFrontendConfig.post.id); setTimeout(function () { }, 100); init_PageScroll(); //INIT } if (elementorFrontend.isEditMode()) { /*elementor.once( 'preview:loaded', function() { // questo è il callBack di fine loading della preview } );*/ elementor.settings.page.addChangeCallback('enable_scrollEffects', handleScrollEffects); elementor.settings.page.addChangeCallback('animation_effects', handleScrollEffects_animations); //elementor.settings.page.addChangeCallback( 'enable_dceScrolling', handleScrollEffects ); } } } }); })(jQuery); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/lib/scrollify/jquery.scrollify.js?ver=5.2.2 /*! * jQuery Scrollify * Version 1.0.20 * * Requires: * - jQuery 1.7 or higher * * https://github.com/lukehaas/Scrollify * * Copyright 2016, Luke Haas * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. if touchScroll is false - update index */ (function (global,factory) { "use strict"; if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], function($) { return factory($, global, global.document); }); } else if (typeof module === 'object' && module.exports) { // Node/CommonJS module.exports = factory(require('jquery'), global, global.document); } else { // Browser globals factory(jQuery, global, global.document); } }(typeof window !== 'undefined' ? window : this, function ($, window, document, undefined) { "use strict"; var heights = [], names = [], elements = [], overflow = [], index = 0, currentIndex = 0, interstitialIndex = 1, hasLocation = false, timeoutId, timeoutId2, $window = $(window), portHeight, top = $window.scrollTop(), scrollable = false, locked = false, scrolled = false, manualScroll, swipeScroll, util, disabled = false, scrollSamples = [], scrollTime = new Date().getTime(), firstLoad = true, initialised = false, destination = 0, wheelEvent = 'onwheel' in document ? 'wheel' : document.onmousewheel !== undefined ? 'mousewheel' : 'DOMMouseScroll', settings = { //section should be an identifier that is the same for each section section: ".section", sectionName: "section-name", interstitialSection: "", easing: "easeOutExpo", scrollSpeed: 1100, offset: 0, scrollbars: true, target:"html,body", standardScrollElements: false, setHeights: true, overflowScroll:true, updateHash: true, touchScroll:true, before:function() {}, after:function() {}, afterResize:function() {}, afterRender:function() {} }; function getportHeight() { return ($window.height() + settings.offset); } function animateScroll(index,instant,callbacks,toTop) { if(currentIndex===index) { callbacks = false; } if(disabled===true) { return true; } if(names[index]) { scrollable = false; if(firstLoad===true) { firstLoad = false; settings.afterRender(); } if(callbacks) { if( typeof settings.before == 'function' && settings.before(index,elements) === false ){ return true; } } interstitialIndex = 1; destination = (!index) ? 0 : heights[index]; if(firstLoad===false && currentIndex>index && toTop===false) { //We're going backwards if(overflow[index]) { portHeight = getportHeight(); interstitialIndex = parseInt(elements[index].outerHeight()/portHeight); destination = parseInt(heights[index])+(elements[index].outerHeight()-portHeight); } } if(settings.updateHash && settings.sectionName && !(firstLoad===true && index===0)) { if(history.pushState) { try { history.replaceState(null, null, names[index]); } catch (e) { if(window.console) { console.warn("Scrollify warning: Page must be hosted to manipulate the hash value."); } } } else { window.location.hash = names[index]; } } currentIndex = index; if(instant) { $(settings.target).stop().scrollTop(destination); if(callbacks) { settings.after(index,elements); } } else { locked = true; if( $().velocity ) { $(settings.target).stop().velocity('scroll', { duration: settings.scrollSpeed, easing: settings.easing, offset: destination, mobileHA: false }); } else { $(settings.target).stop().animate({ scrollTop: destination }, settings.scrollSpeed,settings.easing); } if(window.location.hash.length && settings.sectionName && window.console) { try { if($(window.location.hash).length) { console.warn("Scrollify warning: ID matches hash value - this will cause the page to anchor."); } } catch (e) {} } $(settings.target).promise().done(function(){ locked = false; firstLoad = false; if(callbacks) { settings.after(index,elements); } }); } } } function isAccelerating(samples) { function average(num) { var sum = 0; var lastElements = samples.slice(Math.max(samples.length - num, 1)); for(var i = 0; i < lastElements.length; i++){ sum += lastElements[i]; } return Math.ceil(sum/num); } var avEnd = average(10); var avMiddle = average(70); if(avEnd >= avMiddle) { return true; } else { return false; } } var scrollify = function(options) { initialised = true; $.easing['easeOutExpo'] = function(x, t, b, c, d) { return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; }; manualScroll = { handleMousedown:function() { if(disabled===true) { return true; } scrollable = false; scrolled = false; }, handleMouseup:function() { if(disabled===true) { return true; } scrollable = true; if(scrolled) { //instant,callbacks manualScroll.calculateNearest(false,true); } }, handleScroll:function() { if(disabled===true) { return true; } if(timeoutId){ clearTimeout(timeoutId); } timeoutId = setTimeout(function(){ scrolled = true; if(scrollable===false) { return false; } scrollable = false; //instant,callbacks manualScroll.calculateNearest(false,true); }, 200); }, calculateNearest:function(instant,callbacks) { top = $window.scrollTop(); var i =1, max = heights.length, closest = 0, prev = Math.abs(heights[0] - top), diff; for(;iindex) || atTop()) { index = closest; //index, instant, callbacks, toTop animateScroll(closest,instant,callbacks,false); } }, wheelHandler:function(e) { if(disabled===true) { return true; } else if(settings.standardScrollElements) { if($(e.target).is(settings.standardScrollElements) || $(e.target).closest(settings.standardScrollElements).length) { return true; } } if(!overflow[index]) { e.preventDefault(); } var currentScrollTime = new Date().getTime(); e = e || window.event; var value; if (e.originalEvent) { value = e.originalEvent.wheelDelta || -e.originalEvent.deltaY || -e.originalEvent.detail; } else { value = e.wheelDelta || -e.deltaY || -e.detail; } var delta = Math.max(-1, Math.min(1, value)); //delta = delta || -e.originalEvent.detail / 3 || e.originalEvent.wheelDelta / 120; if(scrollSamples.length > 149){ scrollSamples.shift(); } //scrollSamples.push(Math.abs(delta*10)); scrollSamples.push(Math.abs(value)); if((currentScrollTime-scrollTime) > 200){ scrollSamples = []; } scrollTime = currentScrollTime; if(locked) { return false; } if(delta<0) { if(index0) { if(index>0) { if(atTop()) { if(isAccelerating(scrollSamples)) { e.preventDefault(); index--; locked = true; //index, instant, callbacks, toTop animateScroll(index,false,true, false); } else { return false } } } } }, keyHandler:function(e) { if(disabled===true || document.activeElement.readOnly===false) { return true; } else if(settings.standardScrollElements) { if($(e.target).is(settings.standardScrollElements) || $(e.target).closest(settings.standardScrollElements).length) { return true; } } if(locked===true) { return false; } if(e.keyCode==38 || e.keyCode==33) { if(index>0) { if(atTop()) { e.preventDefault(); index--; //index, instant, callbacks, toTop animateScroll(index,false,true,false); } } } else if(e.keyCode==40 || e.keyCode==34) { if(indexMath.abs(swipeScroll.touches.touchstart.x-swipeScroll.touches.touchmove.x))) { //if(!overflow[index]) { event.preventDefault(); //} swipeScroll.touches.direction = "y"; if((swipeScroll.options.timeStamp+swipeScroll.options.timeGap)<(new Date().getTime()) && swipeScroll.touches.touchend == false) { swipeScroll.touches.touchend = true; if (swipeScroll.touches.touchstart.y > -1) { if(Math.abs(swipeScroll.touches.touchmove.y-swipeScroll.touches.touchstart.y)>swipeScroll.options.distance) { if(swipeScroll.touches.touchstart.y < swipeScroll.touches.touchmove.y) { swipeScroll.up(); } else { swipeScroll.down(); } } } } } break; case 'touchend': if(swipeScroll.touches[event.type]===false) { swipeScroll.touches[event.type] = true; if (swipeScroll.touches.touchstart.y > -1 && swipeScroll.touches.touchmove.y > -1 && swipeScroll.touches.direction==="y") { if(Math.abs(swipeScroll.touches.touchmove.y-swipeScroll.touches.touchstart.y)>swipeScroll.options.distance) { if(swipeScroll.touches.touchstart.y < swipeScroll.touches.touchmove.y) { swipeScroll.up(); } else { swipeScroll.down(); } } swipeScroll.touches.touchstart.y = -1; swipeScroll.touches.touchstart.x = -1; swipeScroll.touches.direction = "undetermined"; } } default: break; } } } }, down: function() { if(indexinterstitialIndex) { interstitialScroll(parseInt(heights[index])+(portHeight*interstitialIndex)); interstitialIndex += 1; } else { interstitialScroll(parseInt(heights[index])+(elements[index].outerHeight()-portHeight)); } } } }, up: function() { if(index>=0) { if(atTop() && index>0) { index--; //index, instant, callbacks, toTop animateScroll(index,false,true,false); } else { if(interstitialIndex>2) { portHeight = getportHeight(); interstitialIndex -= 1; interstitialScroll(parseInt(heights[index])+(portHeight*interstitialIndex)); } else { interstitialIndex = 1; interstitialScroll(parseInt(heights[index])); } } } }, init: function() { if (document.addEventListener && settings.touchScroll) { var eventListenerOptions = { passive: false }; document.addEventListener('touchstart', swipeScroll.touchHandler, eventListenerOptions); document.addEventListener('touchmove', swipeScroll.touchHandler, eventListenerOptions); document.addEventListener('touchend', swipeScroll.touchHandler, eventListenerOptions); } } }; util = { refresh:function(withCallback,scroll) { clearTimeout(timeoutId2); timeoutId2 = setTimeout(function() { //retain position sizePanels(true); //scroll, firstLoad calculatePositions(scroll,false); if(withCallback) { settings.afterResize(); } },400); }, handleUpdate:function() { //callbacks, scroll //changed from false,true to false,false util.refresh(false,false); }, handleResize:function() { //callbacks, scroll util.refresh(true,false); }, handleOrientation:function() { //callbacks, scroll util.refresh(true,true); } }; settings = $.extend(settings, options); //retain position sizePanels(false); calculatePositions(false,true); if(true===hasLocation) { //index, instant, callbacks, toTop animateScroll(index,false,true,true); } else { setTimeout(function() { //instant,callbacks manualScroll.calculateNearest(true,false); },200); } if(heights.length) { manualScroll.init(); swipeScroll.init(); $window.on("resize",util.handleResize); if (document.addEventListener) { window.addEventListener("orientationchange", util.handleOrientation, false); } } function interstitialScroll(pos) { if( $().velocity ) { $(settings.target).stop().velocity('scroll', { duration: settings.scrollSpeed, easing: settings.easing, offset: pos, mobileHA: false }); } else { $(settings.target).stop().animate({ scrollTop: pos }, settings.scrollSpeed,settings.easing); } } function sizePanels(keepPosition) { if(keepPosition) { top = $window.scrollTop(); } var selector = settings.section; overflow = []; if(settings.interstitialSection.length) { selector += "," + settings.interstitialSection; } if(settings.scrollbars===false) { settings.overflowScroll = false; } portHeight = getportHeight(); $(selector).each(function(i) { var $this = $(this); if(settings.setHeights) { if($this.is(settings.interstitialSection)) { overflow[i] = false; } else { if(($this.css("height","auto").outerHeight()0) { heights[i] = parseInt($this.offset().top) + settings.offset; } else { heights[i] = parseInt($this.offset().top); } if(settings.sectionName && $this.data(settings.sectionName)) { names[i] = "#" + $this.data(settings.sectionName).toString().replace(/ /g,"-"); } else { if($this.is(settings.interstitialSection)===false) { names[i] = "#" + (i + 1); } else { names[i] = "#"; if(i===$(selector).length-1 && i>1) { heights[i] = heights[i-1] + (parseInt($($(selector)[i-1]).outerHeight()) - parseInt($(window).height())) + parseInt($this.outerHeight()); } } } elements[i] = $this; try { if($(names[i]).length && window.console) { console.warn("Scrollify warning: Section names can't match IDs - this will cause the browser to anchor."); } } catch (e) {} if(window.location.hash===names[i]) { index = i; hasLocation = true; } }); if(true===scroll) { //index, instant, callbacks, toTop animateScroll(index,false,false,false); } } function atTop() { if(!overflow[index]) { return true; } top = $window.scrollTop(); if(top>parseInt(heights[index])) { return false; } else { return true; } } function atBottom() { if(!overflow[index]) { return true; } top = $window.scrollTop(); portHeight = getportHeight(); if(top=0;z--) { if(typeof panel === 'string') { if (names[z]===panel) { index = z; //index, instant, callbacks, toTop animateScroll(z,instant,true,true); } } else { if(z===panel) { index = z; //index, instant, callbacks, toTop animateScroll(z,instant,true,true); } } } } scrollify.move = function(panel) { if(panel===undefined) { return false; } if(panel.originalEvent) { panel = $(this).attr("href"); } move(panel,false); }; scrollify.instantMove = function(panel) { if(panel===undefined) { return false; } move(panel,true); }; scrollify.next = function() { if(index0) { index -= 1; //index, instant, callbacks, toTop animateScroll(index,false,true,true); } }; scrollify.instantNext = function() { if(index0) { index -= 1; //index, instant, callbacks, toTop animateScroll(index,true,true,true); } }; scrollify.destroy = function() { if(!initialised) { return false; } if(settings.setHeights) { $(settings.section).each(function() { $(this).css("height","auto"); }); } $window.off("resize",util.handleResize); if(settings.scrollbars) { $window.off('mousedown', manualScroll.handleMousedown); $window.off('mouseup', manualScroll.handleMouseup); $window.off('scroll', manualScroll.handleScroll); } // $window.off(wheelEvent,manualScroll.wheelHandler); window.removeEventListener(wheelEvent,manualScroll.wheelHandler); $window.off('keydown', manualScroll.keyHandler); if (document.addEventListener && settings.touchScroll) { document.removeEventListener('touchstart', swipeScroll.touchHandler, false); document.removeEventListener('touchmove', swipeScroll.touchHandler, false); document.removeEventListener('touchend', swipeScroll.touchHandler, false); } heights = []; names = []; elements = []; overflow = []; }; scrollify.update = function() { if(!initialised) { return false; } util.handleUpdate(); }; scrollify.current = function() { return elements[index]; }; scrollify.currentIndex = function() { return index; }; scrollify.disable = function() { disabled = true; }; scrollify.enable = function() { disabled = false; if (initialised) { //instant,callbacks manualScroll.calculateNearest(false,false); } }; scrollify.isDisabled = function() { return disabled; }; scrollify.setOptions = function(updatedOptions) { if(!initialised) { return false; } if(typeof updatedOptions === "object") { settings = $.extend(settings, updatedOptions); util.handleUpdate(); } else if(window.console) { console.warn("Scrollify warning: setOptions expects an object."); } }; $.scrollify = scrollify; return scrollify; })); // source --> https://www.luxurytravelservice.gr/wp-content/plugins/dynamic-content-for-elementor/assets/js/elements-scrollify.js?ver=5.2.2 ( function( $ ) { var settings_page = {}; var is_scrollify = false; var PosttElements_ScrollifyHandler = function( ) { //console.log( $scope ); //alert('scrollify Handle'); //var sezioni = '.elementor-inner > .elementor-section-wrap > .elementor-section'; //var sezioni = '.elementor[data-elementor-type=post] > .elementor-inner > .elementor-section-wrap > .elementor-section'; $('body').addClass('dce-scrollify dce-scrolling'); // $("body").addClass('scrollify').append(scrollify_pagination); if( settings_page.custom_class_section_sfy ){ $customClass = settings_page.custom_class_section_sfy; }else{ $customClass = 'elementor-section'; } //alert($customClass); //sezioni = '.elementor-' + settings_page.scrollEffects_id_page + ' > .elementor-inner > .elementor-section-wrap > .elementor-section'; //$target_sections = settings_page.scroll_target+' '; $target_sections = '.elementor-'+settings_page.scroll_id_page; if(!$target_sections) $target_sections = ''; var sezioni = $target_sections + '.elementor > .elementor-inner > .elementor-section-wrap > .' + $customClass; // Class direction $($target_sections).addClass('scroll-direction-'+settings_page.directionScroll); /*if( settings_page.directionScroll == 'vertical' ){ }*/ //alert(settings_page.scrollify_id_page); //alert($customClass); //alert('count '+$(sezioni).length); // -------------------------------------------------------- //console.log(elementor.settings.page.model.attributes); //alert(elementor.settings.page.model.get( 'scrollSpeed' )); //alert(elementor.settings.page.model.attributes.scrollSpeed.size); // -------------------------------------------------------- //alert(settings_page.scrollSpeed.size); //console.log(settings_page); $.scrollify({ section : sezioni, sectionName : 'id', interstitialSection : settings_page.interstitialSection, //"header, footer.site-footer", //easing: settings_page.ease_scrollify || "easeOutExpo", scrollSpeed: Number(settings_page.scrollSpeed.size) || 1100, //1100, offset : Number(settings_page.offset.size) || 0, //0, //scrollbars: 'yes' === settings_page.scrollbars, //true, // standardScrollElements: "", setHeights: 'yes' === settings_page.setHeights, //true, overflowScroll: 'yes' === settings_page.overflowScroll, //true, updateHash: 'yes' === settings_page.updateHash, //true, touchScroll: 'yes' === settings_page.touchScroll, //true, // before:function() {}, // after:function() {}, // afterResize:function() {}, // afterRender:function() {} before:function(i,panels) { var ref = panels[i].attr("data-id"); // $(".dce-scrollify-pagination .active").removeClass("active"); $(".dce-scrollify-pagination").find("a[href=\"#" + ref + "\"]").addClass("active"); // }, afterRender:function() { is_scrollify = true; // //alert(settings_page.enable_scrollify_nav); if(settings_page.enable_scrollify_nav){ //alert('pagination'); var scrollify_pagination = ""; $("body").append(scrollify_pagination); //Tip: The two click events below are the same: $("body").on("click",".dce-scrollify-pagination a",function() { $.scrollify.move($(this).attr("href")); }); } } }); $.scrollify.update(); }; function handleScrollify ( newValue ) { //settings_page.enable_scrollify = newValue; //elementor.reloadPreview(); //console.log( 'aaaa '.settings_page ); if(newValue){ // SI if(is_scrollify){ $.scrollify.enable(); $('body').find('.dce-scrollify-pagination').show(); }else{ settings_page = elementor.settings.page.model.attributes; } //alert('Siiii'); PosttElements_ScrollifyHandler(); }else{ // NO //$.scrollify.isDisabled(); $.scrollify.destroy(); $('body').find('.dce-scrollify-pagination').hide(); //alert('Noooooo'); // } } function handleScrollify_speed ( newValue ) { //alert(newValue.size) $.scrollify.setOptions({scrollSpeed: newValue.size}); } function handleScrollify_interstitialSection ( newValue ) { $.scrollify.setOptions({scrollSpeed: newValue}); } function handleScrollify_offset ( newValue ) { $.scrollify.setOptions({offset: newValue.size}); } function handleScrollify_ease ( newValue ) { $.scrollify.setOptions({easing: newValue}); } function handleScrollify_setHeights ( newValue ) { //alert(newValue ? true : false); $.scrollify.setOptions({setHeights: newValue ? true : false }); } function handleScrollify_overflowScroll ( newValue ) { $.scrollify.setOptions({overflowScroll: newValue ? true : false }); } function handleScrollify_updateHash ( newValue ) { $.scrollify.setOptions({updateHash: newValue ? true : false }); } function handleScrollify_touchScroll ( newValue ) { $.scrollify.setOptions({touchScroll: newValue ? true : false }); } function handleScrollify_enablenavigation ( newValue ) { if(newValue){ $('body').addClass('dce-scrollify').find('.dce-scrollify-pagination').show(); }else{ $('body').removeClass('dce-scrollify').find('.dce-scrollify-pagination').hide(); } } // Make sure you run this code under Elementor.. $(document).on('ready', function () { // if( typeof elementorFrontendConfig.settings.page !== 'undefined' ){ /*if ( elementorFrontend.isEditMode() ){ }else{ settings_page = JSON.parse( $('.elementor').attr('data-elementor-settings') ); // }*/ settings_page = elementorFrontendConfig.settings.page; // //alert(settings_page.enable_scrollify); // console.log( settings_page ); if(settings_page){ var is_enable_dceScrolling = settings_page.enable_dceScrolling; var is_enable_scrollify = settings_page.enable_scrollify; /*setTimeout(function(){ },1000);*/ if( is_enable_scrollify && is_enable_dceScrolling ){ PosttElements_ScrollifyHandler( ); } // //console.log( elementorFrontendConfig.settings.page); // per il renderin della preview in EditMode if ( elementorFrontend.isEditMode() ){ /*elementor.once( 'preview:loaded', function() { // questo è il callBack di fine loading della preview //alert('fine '+settings_page.enable_scrollify); } );*/ elementor.settings.page.addChangeCallback( 'enable_scrollify', handleScrollify ); elementor.settings.page.addChangeCallback( 'scrollSpeed', handleScrollify_speed ); elementor.settings.page.addChangeCallback( 'offset', handleScrollify_offset ); elementor.settings.page.addChangeCallback( 'ease_scrollify', handleScrollify_ease ); elementor.settings.page.addChangeCallback( 'setHeights', handleScrollify_setHeights ); elementor.settings.page.addChangeCallback( 'overflowScroll', handleScrollify_overflowScroll ); elementor.settings.page.addChangeCallback( 'updateHash', handleScrollify_updateHash ); elementor.settings.page.addChangeCallback( 'touchScroll', handleScrollify_touchScroll ); elementor.settings.page.addChangeCallback( 'enable_scrollify_nav', handleScrollify_enablenavigation ); //elementor.settings.page.addChangeCallback( 'enable_dceScrolling', handleScrollify ); /*var c_settings = Object.keys(settings_page).length; var c = 1; for (var key in settings_page) { console.log(key, settings_page[key]); alert(key+' '+settings_page[key]); elementor.settings.page.addChangeCallback( key, function ( newValue ) { //settings_page = elementorFrontendConfig.settings.page; settings_page[key] = newValue; //console.log( settings_page ); if( c == c_settings ) PosttElements_ScrollifyHandler( settings_page ); //elementor.reloadPreview(); c ++; } ); }*/ } } } // ------------ /*elementor.hooks.addAction( 'panel/open_editor/post/enable_scrollify', function( panel, model, view ) { var $element = view.$el.find( '.elementor-selector' ); alert('open editor'); if ( $element.length ) { $element.click( function() { alert( 'Some Message' ); } ); } } );*/ // ----------- /*elementorFrontend.hooks.addAction( 'frontend/element_ready/global', function( $scope ) { console.log($scope); if ( $scope.data( 'shake' ) ){ $scope.shake(); } } );*/ } ); } )( jQuery );