1!function(t){"use strict";function i(e){this.$el=t(e),this.index=0,this.config=t.extend({},i.defaultConfig),this._setupBackgroundElement(),this._listenToResize()}var e={},s=Array.prototype.slice,n=Object.prototype.toString,h=["Top","Right","Bottom","Left"],o=["Attachment","Color","Image","Repeat","Position","Size","Clip","Origin"];t.fn.bgswitcher=function(){var e=arguments,s=i.keys.instance;return this.each(function(){var n=t.data(this,s);n||(n=new i(this),t.data(this,s,n)),n.dispatch.apply(n,e)})},t.fn.bgSwitcher=t.fn.bgswitcher,t.extend(i.prototype,{dispatch:function(t){switch(n.call(t)){case"[object Object]":this.setConfig(t);break;case"[object String]":this[t].apply(this,s.call(arguments,1));break;default:throw new Error("Please specify a Object or String")}},setConfig:function(i){this.config=t.extend(this.config,i),"undefined"!=typeof this.config.random&&(this.config.shuffle=this.config.random),this.refresh()},setImages:function(t){this.imageList=new this.constructor.ImageList(t),this.config.shuffle&&this.imageList.shuffle()},setSwitchHandler:function(i){this.switchHandler=t.proxy(i,this)},getBuiltInSwitchHandler:function(t){return this.constructor.switchHandlers[t||this.config.effect]},refresh:function(){this.setImages(this.config.images),this.setSwitchHandler(this.getBuiltInSwitchHandler()),this._prepareSwitching(),this.config.start&&this.start()},start:function(){this._timerID||(this._timerID=setTimeout(t.proxy(this,"next"),this.config.interval))},stop:function(){this._timerID&&(clearTimeout(this._timerID),this._timerID=null)},toggle:function(){this._timerID?this.stop():this.start()},reset:function(){this.index=0,this._prepareSwitching()},next:function(){var t=this.imageList.count();(this.config.loop||this.index+1!==t)&&(++this.index===t&&(this.index=0),this.switching())},prev:function(){(this.config.loop||0!==this.index)&&(-1===--this.index&&(this.index=this.imageList.count()-1),this.switching())},select:function(t){-1===t&&(t=this.imageList.count()-1),this.index=t,this.switching()},switching:function(){var t=!!this._timerID;t&&this.stop(),this._createSwitchableElement(),this._prepareSwitching(),this.switchHandler(this.$switchable),t&&this.start()},destroy:function(){this.stop(),this._stopListeningToResize(),this.$switchable&&(this.$switchable.stop(),this.$switchable.remove(),this.$switchable=null),this.$bg&&(this.$bg.remove(),this.$bg=null),this.$el.removeAttr("style"),this.$el.removeData(this.constructor.keys.instance),this.$el=null},_adjustRectangle:function(){for(var t,i=0,e=h.length,s=this.$el.position(),n={top:s.top,left:s.left,width:this.$el.innerWidth(),height:this.$el.innerHe
1ight()};e>i;i++)t=h[i],n["margin"+t]=this.$el.css("margin"+t),n["border"+t]=this.$el.css("border"+t);this.$bg.css(n)},_setupBackgroundElement:function(){this.$bg=t(document.createElement("div")),this.$bg.css({position:"absolute",zIndex:(parseInt(this.$el.css("zIndex"),10)||0)-1,overflow:"hidden"}),this._copyBackgroundStyles(),this._adjustRectangle(),"BODY"===this.$el[0].tagName?this.$el.prepend(this.$bg):(this.$el.before(this.$bg),this.$el.css("background","none"))},_createSwitchableElement:function(){this.$switchable&&this.$switchable.remove(),this.$switchable=this.$bg.clone(),this.$switchable.css({top:0,left:0,margin:0,border:"none"}),this.$switchable.appendTo(this.$bg)},_copyBackgroundStyles:function(){for(var t,i={},e=0,s=o.length,n="backgroundPosition";s>e;e++)t="background"+o[e],i[t]=this.$el.css(t);void 0===i[n]&&(i[n]=[this.$el.css(n+"X"),this.$el.css(n+"Y")].join(" ")),this.$bg.css(i)},_listenToResize:function(){var i=this;this._resizeHandler=function(){i._adjustRectangle()},t(window).on("resize",this._resizeHandler)},_stopListeningToResize:function(){t(window).off("resize",this._resizeHandler),this._resizeHandler=null},_prepareSwitching:function(){this.$bg.css("backgroundImage",this.imageList.url(this.index))}}),i.keys={instance:"bgSwitcher"},i.defaultConfig={images:[],interval:5e3,start:!0,loop:!0,shuffle:!1,effect:"fade",duration:1e3,easing:"swing"},i.switchHandlers={fade:function(t){t.animate({opacity:0}
1,this.config.duration,this.config.easing)},blind:function(t){t.animate({height:0},this.config.duration,this.config.easing)},clip:function(t){t.animate({top:parseInt(t.css("top"),10)+t.height()/2,height:0},this.config.duration,this.config.easing)},slide:function(t){t.animate({top:-t.height()},this.config.duration,this.config.easing)},drop:function(t){t.animate({left:-t.width(),opacity:0},this.config.duration,this.config.easing)},hide:function(t){t.hide()}},i.defineEffect=function(t,i){this.switchHandlers[t]=i},i.ImageList=function(t){this.images=t,this.createImagesBySequence(),this.preload()},t.extend(i.ImageList.prototype,{isSequenceable:function(){return"string"==typeof this.images[0]&&"number"==typeof this.images[1]&&"number"==typeof this.images[2]},createImagesBySequence:function(){if(this.isSequenceable()){var t=[],i=this.images[0],e=this.images[1],s=this.images[2];do t.push(i.replace(/\.\w+$/,e+"$&"));while(++e<=s);this.images=t}},preload:function(){for(var t,i=this.images.length,s=0;i>s;s++)t=this.images[s],e[t]||(e[t]=new Image,e[t].src=t)},shuffle:function(){var t,i,e=this.images.length,s=this.images.join();if(e){for(;e;)t=Math.floor(Math.random()*e),i=this.images[--e],this.images[e]=this.images[t],this.images[t]=i;this.images.join()===s&&this.shuffle()}},get:function(t){return this.images[t]},url:function(t){return"url("+this.get(t)+")"},count:function(){return this.images.length}}),t.BgSwitcher=i}(jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.