text: "use strict";!function(a,b){"function"==typeof define&&define.amd?define([],b):"undefined"!=typeof module&&module.exports?module.exports=b():a.tickerBar=b()}(window||module||{},function(){function a(a,b){this.elem=a,this.xPos=0,this.ticking=!1,this.recycleOnTick=!1,this.options=void 0!==b?b:{},this.tickerItems=a.children,this.pxPerFrame=void 0!==this.options.pxPerSec?parseFloat(this.options.pxPerSec/60):1,this.autoFill=void 0===this.options.autoFill||this.options.autoFill,this.autoStart=void 0===this.options.autoStart||this.options.autoStart,this.autoStart===!0&&this.start()}function b(a){return a.clientWidth}function c(a){return parseInt(a.clientWidth)+parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight)}function d(a){for(var b=0,d=0;d<a.length;d++)b+=c(a[d]);return b}function e(a){for(var b=a[0],d=0;d<a.length;d++)c(a[d])>c(b)&&(b=a[d]);return b}return a.prototype={fill:function(){var a=[];if(d(this.tickerItems)-c(e(this.tickerItems))<=b(this.elem))for(var f=0;f<this.tickerItems.length;f++)a.push(this.tickerItems[f].cloneNode(!0));for(;d(this.tickerItems)-c(e(this.tickerItems))<=b(this.elem);)for(var g=0;g<a.length;g++)this.elem.appendChild(a[g].cloneNode(!0))},start:function(){this.ticking||(this.autoFill&&this.fill(),this.ticking=!0,this.tick())},stop:function(){this.ticking=!1},toggle:function(){this.ticking?this.stop():this.start()},tick:function(){this.recycleOnTick&&(this.xPos-=c(this.tickerItems[0]),this.tickerItems[0].parentNode.removeChild(this.tickerItems[0]),this.recycleOnTick=!1),this.xPos+=this.pxPerFrame;for(var a=0;a<this.tickerItems.length;a++)this.tickerItems[a].style.transform="translateX(-"+this.xPos+"px)";c(this.tickerItems[0])<this.xPos&&(this.elem.appendChild(this.tickerItems[0].cloneNode(!0)),this.recycleOnTick=!0),this.ticking&&window.requestAnimationFrame(this.tick.bind(this))}},a});