/** * jQuery AdaptText v1.3.4 * https://github.com/amazingSurge/jquery-adaptText * * Copyright (c) amazingSurge * Released under the LGPL-3.0 license */ !function(e,t){if("function"==typeof define&&define.amd)define(["jquery"],t);else if("undefined"!=typeof exports)t(require("jquery"));else{var i={exports:{}};t(e.jQuery),e.jqueryAdaptTextEs=i.exports}}(this,function(e){"use strict";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){var i=this,n=Date.now||function(){return(new Date).getTime()},s=void 0,a=void 0,r=void 0,o=void 0,l=0,u=function(){l=n(),s=null,o=e.apply(a,r),s||(a=r=null)};return function(){for(var f=arguments.length,d=Array(f),h=0;ht?(s&&(clearTimeout(s),s=null),l=c,o=e.apply(a,r),s||(a=r=null)):s||(s=setTimeout(u,p)),o}}var n=function(e){return e&&e.__esModule?e:{default:e}}(e),s=function(){function e(e,t){for(var i=0;i0){var i=Math.sqrt(t/e.width)*e.options.scrollSpeed;return e.$element.css("cursor","e-resize"),e.$element.stop().animate({"text-indent":-t},i,function(){return e.$element.css("cursor","text")})}},function(){return e.$element.stop().animate({"text-indent":0},e.options.scrollResetSpeed)})}},{key:"resize",value:function(){!0!==this.isDisabled&&(this.width=this.$element.width(),0!==this.width&&this.$element.css("font-size",Math.floor(Math.max(Math.min(this.width/this.options.compression,parseFloat(this.options.max)),parseFloat(this.options.min)))))}},{key:"enable",value:function(){!0===this.isDisabled&&(this.isDisabled=!1),this._trigger("enable")}},{key:"disable",value:function(){!1===this.isDisabled&&(this.isDisabled=!0),this._trigger("disable")}},{key:"_trigger",value:function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n1?t-1:0),s=1;s