"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(i){"function"==typeof define&&define.amd?define(["jquery"],i):"object"===("undefined"==typeof module?"undefined":_typeof(module))&&module.exports?module.exports=function(t,e){return void 0===e&&(e="undefined"!=typeof window?require("jquery"):require("jquery")(t)),i(e),e}:i(jQuery)}(function(d){return d.fn.tilt=function(e){function i(t){this.ticking=!1,d(this).css({"will-change":"transform"}),o.call(this),d(this).trigger("tilt.mouseEnter")}function s(t){this.mousePositions=l(t),r.call(this)}function n(){o.call(this),this.reset=!0,r.call(this),d(this).trigger("tilt.mouseLeave")}function a(){this.glareElement.css({width:""+2*d(this).outerWidth(),height:""+2*d(this).outerWidth()})}var r=function(){this.ticking||(requestAnimationFrame(t.bind(this)),this.ticking=!0)},o=function(){var t=this;void 0!==this.timeout&&clearTimeout(this.timeout),d(this).css({transition:this.settings.speed+"ms "+this.settings.easing}),this.settings.glare&&this.glareElement.css({transition:"opacity "+this.settings.speed+"ms "+this.settings.easing}),this.timeout=setTimeout(function(){d(t).css({transition:""}),t.settings.glare&&t.glareElement.css({transition:""})},this.settings.speed)},l=function(t){return{x:(t=void 0===t?{pageX:d(this).offset().left+d(this).outerWidth()/2,pageY:d(this).offset().top+d(this).outerHeight()/2}:t).pageX,y:t.pageY}},h=function(){var t=d(this).outerWidth(),e=d(this).outerHeight(),i=d(this).offset().left,s=d(this).offset().top,n=(this.mousePositions.x-i)/t,a=(this.mousePositions.y-s)/e;return{tiltX:(this.settings.maxTilt/2-n*this.settings.maxTilt).toFixed(2),tiltY:(a*this.settings.maxTilt-this.settings.maxTilt/2).toFixed(2),percentageX:100*n,percentageY:100*a,angle:Math.atan2(this.mousePositions.x-(i+t/2),-(this.mousePositions.y-(s+e/2)))*(180/Math.PI)}},t=function(){this.transforms=h.call(this),this.reset?(this.reset=!1,d(this).css("transform","perspective("+this.settings.perspective+"px) rotateX(0deg) rotateY(0deg)"),this.settings.glare&&(this.glareElement.css("transform","rotate(180deg) translate(-50%, -50%)"),this.glareElement.css("opacity","0"))):(d(this).css("transform","perspective("+this.settings.perspective+"px) rotateX("+("x"===this.settings.disableAxis?0:this.transforms.tiltY)+"deg) rotateY("+("y"===this.settings.disableAxis?0:this.transforms.tiltX)+"deg) scale3d("+this.settings.scale+","+this.settings.scale+","+this.settings.scale+")"),this.settings.glare&&(this.glareElement.css("transform","rotate("+this.transforms.angle+"deg) translate(-50%, -50%)"),this.glareElement.css("opacity",""+this.transforms.percentageY*this.settings.maxGlare/100)),d(this).trigger("change",[this.transforms]),this.ticking=!1)};return d.fn.tilt.destroy=function(){d(this).each(function(){d(this).find(".js-tilt-glare").remove(),d(this).css({"will-change":"",transform:""}),d(this).off("mousemove mouseenter mouseleave")})},d.fn.tilt.getValues=function(){var t=[];return d(this).each(function(){this.mousePositions=l.call(this),t.push(h.call(this))}),t},d.fn.tilt.reset=function(){d(this).each(function(){var t=this;this.mousePositions=l.call(this),this.settings=d(this).data("tilt-settings"),n.call(this),setTimeout(function(){t.reset=!1},this.settings.transition)})},this.each(function(){var t=this;this.settings=d.extend({maxTilt:d(this).is("[data-tilt-max]")?d(this).data("tilt-max"):20,perspective:d(this).is("[data-tilt-perspective]")?d(this).data("tilt-perspective"):300,easing:d(this).is("[data-tilt-easing]")?d(this).data("tilt-easing"):"cubic-bezier(.03,.98,.52,.99)",scale:d(this).is("[data-tilt-scale]")?d(this).data("tilt-scale"):"1",speed:d(this).is("[data-tilt-speed]")?d(this).data("tilt-speed"):"400",transition:!d(this).is("[data-tilt-transition]")||d(this).data("tilt-transition"),disableAxis:d(this).is("[data-tilt-disable-axis]")?d(this).data("tilt-disable-axis"):null,axis:d(this).is("[data-tilt-axis]")?d(this).data("tilt-axis"):null,reset:!d(this).is("[data-tilt-reset]")||d(this).data("tilt-reset"),glare:!!d(this).is("[data-tilt-glare]")&&d(this).data("tilt-glare"),maxGlare:d(this).is("[data-tilt-maxglare]")?d(this).data("tilt-maxglare"):1},e),null!==this.settings.axis&&(console.warn("Tilt.js: the axis setting has been renamed to disableAxis. See https://github.com/gijsroge/tilt.js/pull/26 for more information"),this.settings.disableAxis=this.settings.axis),this.init=function(){d(t).data("tilt-settings",t.settings),t.settings.glare&&function(){var t=this.settings.glarePrerender;t||d(this).append('