(function(a){a.fn.bgSlideShow=function(b){var c=Math.floor;function d(a,b){return void 0===a?b:"boolean"==typeof a?a:(a=a.trim().toLowerCase(),a.startsWith("t")||a.startsWith("y")||1==a)}function e(b,c){var e={};return e.uniqueId=k(b),e.current=a(b).data("current")||c.current||0,e.images=c.images,e.slideControls=c.slideControls,e.slideControls.enabled=d(a(b).data("slidecontrols.enabled"),c.slideControls.enabled),e.slideControls.classes=a(b).data("slidecontrols.classes")||c.slideControls.classes,a(b).data("images")&&(e.images=a(b).data("images").split(",").map(a=>a.trim())),e.initialBackground=a(b).data("initialbackground")||c.initialBackground,e.transitionDelay=a(b).data("transitiondelay")||c.transitionDelay,e.gradient=a(b).data("gradient")||c.gradient,e.transitionSpeed=a(b).data("transitionspeed")||c.transitionSpeed,e.transitionEffect=a(b).data("transitioneffect")||c.transitionEffect,e.randomize=d(a(b).data("randomize"),c.randomize),e.debug=d(a(b).data("debug"),c.debug),e.eventHandlers=c.eventHandlers,e.defaultDisplay=a(b).css("display")||"block",e}function f(a,b){a&&console.log(b)}function g(a){if(a.randomize){for(var b=a.current;b==a.current;)b=c(Math.random()*a.images.length);return a.current=b,a.images[b]}a.current>=a.images.length&&(a.current=0);var d=a.images[a.current];return++a.current,d}function h(b,c){f(c.debug,"ProcessShow with element ["+b+"]"),a(b).data("bgSlideShowApplied",!0),m(b,c),q(c.images),c.wrapBgElement=a("
",{class:"jquery-bg-slideshow-wrap-bg-element",id:c.uniqueId+"-wrap-widget"}),a(b).wrap(c.wrapBgElement);var d=a(b).css("position","absolute");j(b,d.parent(),c),f(c.debug,"Setting timeout for element ["+b+"]"),p(c,c.current),c.timerId=setTimeout(n,c.transitionDelay,b,c)}function j(b,c,d){if(f(d.debug,"List controls enabled: "+d.slideControls.enabled),!0==d.slideControls.enabled){d.slideControlsElement=a("",{class:"jquery-bg-slideshow-list-control-element"+(d.slideControls.classes?" "+d.slideControls.classes:"")});for(var e,g=d.images.length,h=0;h