- Created complete documentation in docs/ directory - Added PROJECT_OVERVIEW.md with feature highlights and getting started guide - Added ARCHITECTURE.md with system design and technical details - Added SECURITY.md with comprehensive security implementation guide - Added DEVELOPMENT.md with development workflows and best practices - Added DEPLOYMENT.md with production deployment instructions - Added API.md with complete REST API documentation - Added CONTRIBUTING.md with contribution guidelines - Added CHANGELOG.md with version history and migration notes - Reorganized all documentation files into docs/ directory for better organization - Updated README.md with proper documentation links and quick navigation - Enhanced project structure with professional documentation standards
1 line
72 KiB
JavaScript
1 line
72 KiB
JavaScript
!function(h,l,r,a){function i(t,e){this.settings=null,this.options=h.extend({},i.Defaults,e),this.$element=h(t),this.drag=h.extend({},d),this.state=h.extend({},p),this.e=h.extend({},f),this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._invalidated={},this._pipe=[],h.each(i.Plugins,h.proxy(function(t,e){this._plugins[t[0].toLowerCase()+t.slice(1)]=new e(this)},this)),h.each(i.Pipe,h.proxy(function(t,e){this._pipe.push({filter:e.filter,run:h.proxy(e.run,this)})},this)),this.setup(),this.initialize()}function c(t){if(t.touches!==a)return{x:t.touches[0].pageX,y:t.touches[0].pageY};if(t.touches===a){if(t.pageX!==a)return{x:t.pageX,y:t.pageY};if(t.pageX===a)return{x:t.clientX,y:t.clientY}}}function t(t){var e,i,n=r.createElement("div"),s=t;for(e in s)if(i=s[e],"undefined"!=typeof n.style[i])return n=null,[i,e];return[!1]}function e(){return t(["transition","WebkitTransition","MozTransition","OTransition"])[1]}function n(){return t(["transform","WebkitTransform","MozTransform","OTransform","msTransform"])[0]}function s(){return t(["perspective","webkitPerspective","MozPerspective","OPerspective","MsPerspective"])[0]}function o(){return"ontouchstart"in l||!!navigator.msMaxTouchPoints}function u(){return l.navigator.msPointerEnabled}var d,p,f;d={start:0,startX:0,startY:0,current:0,currentX:0,currentY:0,offsetX:0,offsetY:0,distance:null,startTime:0,endTime:0,updatedX:0,targetEl:null},p={isTouch:!1,isScrolling:!1,isSwiping:!1,direction:!1,inMotion:!1},f={_onDragStart:null,_onDragMove:null,_onDragEnd:null,_transitionEnd:null,_resizer:null,_responsiveCall:null,_goToLoop:null,_checkVisibile:null},i.Defaults={items:3,loop:!1,center:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:l,responsiveClass:!1,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",themeClass:"owl-theme",baseClass:"owl-carousel",itemClass:"owl-item",centerClass:"center",activeClass:"active"},i.Width={Default:"default",Inner:"inner",Outer:"outer"},i.Plugins={},i.Pipe=[{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){var t=this._clones,e=this.$stage.children(".cloned");(e.length!==t.length||!this.settings.loop&&t.length>0)&&(this.$stage.children(".cloned").remove(),this._clones=[])}},{filter:["items","settings"],run:function(){var t,e,i=this._clones,n=this._items,s=this.settings.loop?i.length-Math.max(2*this.settings.items,4):0;for(t=0,e=Math.abs(s/2);e>t;t++)s>0?(this.$stage.children().eq(n.length+i.length-1).remove(),i.pop(),this.$stage.children().eq(0).remove(),i.pop()):(i.push(i.length/2),this.$stage.append(n[i[i.length-1]].clone().addClass("cloned")),i.push(n.length-1-(i.length-1)/2),this.$stage.prepend(n[i[i.length-1]].clone().addClass("cloned")))}},{filter:["width","items","settings"],run:function(){var t,e,i,n=this.settings.rtl?1:-1,s=(this.width()/this.settings.items).toFixed(3),r=0;for(this._coordinates=[],e=0,i=this._clones.length+this._items.length;i>e;e++)t=this._mergers[this.relative(e)],t=this.settings.mergeFit&&Math.min(t,this.settings.items)||t,r+=(this.settings.autoWidth?this._items[this.relative(e)].width()+this.settings.margin:s*t)*n,this._coordinates.push(r)}},{filter:["width","items","settings"],run:function(){var t,e,i=(this.width()/this.settings.items).toFixed(3),n={width:Math.abs(this._coordinates[this._coordinates.length-1])+2*this.settings.stagePadding,"padding-left":this.settings.stagePadding||"","padding-right":this.settings.stagePadding||""};if(this.$stage.css(n),n={width:this.settings.autoWidth?"auto":i-this.settings.margin},n[this.settings.rtl?"margin-left":"margin-right"]=this.settings.margin,!this.settings.autoWidth&&h.grep(this._mergers,function(t){return t>1}).length>0)for(t=0,e=this._coordinates.length;e>t;t++)n.width=Math.abs(this._coordinates[t])-Math.abs(this._coordinates[t-1]||0)-this.settings.margin,this.$stage.children().eq(t).css(n);else this.$stage.children().css(n)}},{filter:["width","items","settings"],run:function(t){t.current&&this.reset(this.$stage.children().index(t.current))}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,r=2*this.settings.stagePadding,o=this.coordinates(this.current())+r,a=o+this.width()*s,h=[];for(i=0,n=this._coordinates.length;n>i;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+r*s,(this.op(t,"<=",o)&&this.op(t,">",a)||this.op(e,"<",o)&&this.op(e,">",a))&&h.push(i);this.$stage.children("."+this.settings.activeClass).removeClass(this.settings.activeClass),this.$stage.children(":eq("+h.join("), :eq(")+")").addClass(this.settings.activeClass),this.settings.center&&(this.$stage.children("."+this.settings.centerClass).removeClass(this.settings.centerClass),this.$stage.children().eq(this.current()).addClass(this.settings.centerClass))}}],i.prototype.initialize=function(){if(this.trigger("initialize"),this.$element.addClass(this.settings.baseClass).addClass(this.settings.themeClass).toggleClass("owl-rtl",this.settings.rtl),this.browserSupport(),this.settings.autoWidth&&this.state.imagesLoaded!==!0){var t,e,i;if(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&0>=i)return this.preloadAutoWidthImages(t),!1}this.$element.addClass("owl-loading"),this.$stage=h("<"+this.settings.stageElement+' class="owl-stage"/>').wrap('<div class="owl-stage-outer">'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this._width=this.$element.width(),this.refresh(),this.$element.removeClass("owl-loading").addClass("owl-loaded"),this.eventsCall(),this.internalEvents(),this.addTriggerableEvents(),this.trigger("initialized")},i.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(h.each(t,function(t){e>=t&&t>i&&(i=Number(t))}),n=h.extend({},this.options,t[i]),delete n.responsive,n.responsiveClass&&this.$element.attr("class",function(t,e){return e.replace(/\b owl-responsive-\S+/g,"")}).addClass("owl-responsive-"+i)):n=h.extend({},this.options),(null===this.settings||this._breakpoint!==i)&&(this.trigger("change",{property:{name:"settings",value:n}}),this._breakpoint=i,this.settings=n,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},i.prototype.optionsLogic=function(){this.$element.toggleClass("owl-center",this.settings.center),this.settings.loop&&this._items.length<this.settings.items&&(this.settings.loop=!1),this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},i.prototype.prepare=function(t){var e=this.trigger("prepare",{content:t});return e.data||(e.data=h("<"+this.settings.itemElement+"/>").addClass(this.settings.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},i.prototype.update=function(){for(var t=0,e=this._pipe.length,i=h.proxy(function(t){return this[t]},this._invalidated),n={};e>t;)(this._invalidated.all||h.grep(this._pipe[t].filter,i).length>0)&&this._pipe[t].run(n),t++;this._invalidated={}},i.prototype.width=function(t){switch(t=t||i.Width.Default){case i.Width.Inner:case i.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},i.prototype.refresh=function(){if(0===this._items.length)return!1;(new Date).getTime();this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$stage.addClass("owl-refresh"),this.update(),this.$stage.removeClass("owl-refresh"),this.state.orientation=l.orientation,this.watchVisibility(),this.trigger("refreshed")},i.prototype.eventsCall=function(){this.e._onDragStart=h.proxy(function(t){this.onDragStart(t)},this),this.e._onDragMove=h.proxy(function(t){this.onDragMove(t)},this),this.e._onDragEnd=h.proxy(function(t){this.onDragEnd(t)},this),this.e._onResize=h.proxy(function(t){this.onResize(t)},this),this.e._transitionEnd=h.proxy(function(t){this.transitionEnd(t)},this),this.e._preventClick=h.proxy(function(t){this.preventClick(t)},this)},i.prototype.onThrottledResize=function(){l.clearTimeout(this.resizeTimer),this.resizeTimer=l.setTimeout(this.e._onResize,this.settings.responsiveRefreshRate)},i.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.trigger("resize").isDefaultPrevented()?!1:(this._width=this.$element.width(),this.invalidate("width"),this.refresh(),void this.trigger("resized")):!1},i.prototype.eventsRouter=function(t){var e=t.type;"mousedown"===e||"touchstart"===e?this.onDragStart(t):"mousemove"===e||"touchmove"===e?this.onDragMove(t):"mouseup"===e||"touchend"===e?this.onDragEnd(t):"touchcancel"===e&&this.onDragEnd(t)},i.prototype.internalEvents=function(){var t=(o(),u());this.settings.mouseDrag?(this.$stage.on("mousedown",h.proxy(function(t){this.eventsRouter(t)},this)),this.$stage.on("dragstart",function(){return!1}),this.$stage.get(0).onselectstart=function(){return!1}):this.$element.addClass("owl-text-select-on"),this.settings.touchDrag&&!t&&this.$stage.on("touchstart touchcancel",h.proxy(function(t){this.eventsRouter(t)},this)),this.transitionEndVendor&&this.on(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd,!1),this.settings.responsive!==!1&&this.on(l,"resize",h.proxy(this.onThrottledResize,this))},i.prototype.onDragStart=function(t){var e,i,n,s;if(e=t.originalEvent||t||l.event,3===e.which||this.state.isTouch)return!1;if("mousedown"===e.type&&this.$stage.addClass("owl-grab"),this.trigger("drag"),this.drag.startTime=(new Date).getTime(),this.speed(0),this.state.isTouch=!0,this.state.isScrolling=!1,this.state.isSwiping=!1,this.drag.distance=0,i=c(e).x,n=c(e).y,this.drag.offsetX=this.$stage.position().left,this.drag.offsetY=this.$stage.position().top,this.settings.rtl&&(this.drag.offsetX=this.$stage.position().left+this.$stage.width()-this.width()+this.settings.margin),this.state.inMotion&&this.support3d)s=this.getTransformProperty(),this.drag.offsetX=s,this.animate(s),this.state.inMotion=!0;else if(this.state.inMotion&&!this.support3d)return this.state.inMotion=!1,!1;this.drag.startX=i-this.drag.offsetX,this.drag.startY=n-this.drag.offsetY,this.drag.start=i-this.drag.startX,this.drag.targetEl=e.target||e.srcElement,this.drag.updatedX=this.drag.start,("IMG"===this.drag.targetEl.tagName||"A"===this.drag.targetEl.tagName)&&(this.drag.targetEl.draggable=!1),h(r).on("mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents",h.proxy(function(t){this.eventsRouter(t)},this))},i.prototype.onDragMove=function(t){var e,i,n,s,r,o;this.state.isTouch&&(this.state.isScrolling||(e=t.originalEvent||t||l.event,i=c(e).x,n=c(e).y,this.drag.currentX=i-this.drag.startX,this.drag.currentY=n-this.drag.startY,this.drag.distance=this.drag.currentX-this.drag.offsetX,this.drag.distance<0?this.state.direction=this.settings.rtl?"right":"left":this.drag.distance>0&&(this.state.direction=this.settings.rtl?"left":"right"),this.settings.loop?this.op(this.drag.currentX,">",this.coordinates(this.minimum()))&&"right"===this.state.direction?this.drag.currentX-=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length):this.op(this.drag.currentX,"<",this.coordinates(this.maximum()))&&"left"===this.state.direction&&(this.drag.currentX+=(this.settings.center&&this.coordinates(0))-this.coordinates(this._items.length)):(s=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),r=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),o=this.settings.pullDrag?this.drag.distance/5:0,this.drag.currentX=Math.max(Math.min(this.drag.currentX,s+o),r+o)),(this.drag.distance>8||this.drag.distance<-8)&&(e.preventDefault!==a?e.preventDefault():e.returnValue=!1,this.state.isSwiping=!0),this.drag.updatedX=this.drag.currentX,(this.drag.currentY>16||this.drag.currentY<-16)&&this.state.isSwiping===!1&&(this.state.isScrolling=!0,this.drag.updatedX=this.drag.start),this.animate(this.drag.updatedX)))},i.prototype.onDragEnd=function(t){var e,i,n;if(this.state.isTouch){if("mouseup"===t.type&&this.$stage.removeClass("owl-grab"),this.trigger("dragged"),this.drag.targetEl.removeAttribute("draggable"),this.state.isTouch=!1,this.state.isScrolling=!1,this.state.isSwiping=!1,0===this.drag.distance&&this.state.inMotion!==!0)return this.state.inMotion=!1,!1;this.drag.endTime=(new Date).getTime(),e=this.drag.endTime-this.drag.startTime,i=Math.abs(this.drag.distance),(i>3||e>300)&&this.removeClick(this.drag.targetEl),n=this.closest(this.drag.updatedX),this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(n),this.invalidate("position"),this.update(),this.settings.pullDrag||this.drag.updatedX!==this.coordinates(n)||this.transitionEnd(),this.drag.distance=0,h(r).off(".owl.dragEvents")}},i.prototype.removeClick=function(t){this.drag.targetEl=t,h(t).on("click.preventClick",this.e._preventClick),l.setTimeout(function(){h(t).off("click.preventClick")},300)},i.prototype.preventClick=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1,t.stopPropagation&&t.stopPropagation(),h(t.target).off("click.preventClick")},i.prototype.getTransformProperty=function(){var t,e;return t=l.getComputedStyle(this.$stage.get(0),null).getPropertyValue(this.vendorName+"transform"),t=t.replace(/matrix(3d)?\(|\)/g,"").split(","),e=16===t.length,e!==!0?t[4]:t[12]},i.prototype.closest=function(i){var n=-1,s=30,r=this.width(),o=this.coordinates();return this.settings.freeDrag||h.each(o,h.proxy(function(t,e){return i>e-s&&e+s>i?n=t:this.op(i,"<",e)&&this.op(i,">",o[t+1]||e-r)&&(n="left"===this.state.direction?t+1:t),-1===n},this)),this.settings.loop||(this.op(i,">",o[this.minimum()])?n=i=this.minimum():this.op(i,"<",o[this.maximum()])&&(n=i=this.maximum())),n},i.prototype.animate=function(t){this.trigger("translate"),this.state.inMotion=this.speed()>0,this.support3d?this.$stage.css({transform:"translate3d("+t+"px,0px, 0px)",transition:this.speed()/1e3+"s"}):this.state.isTouch?this.$stage.css({left:t+"px"}):this.$stage.animate({left:t},this.speed()/1e3,this.settings.fallbackEasing,h.proxy(function(){this.state.inMotion&&this.transitionEnd()},this))},i.prototype.current=function(t){if(t===a)return this._current;if(0===this._items.length)return a;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==a&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},i.prototype.invalidate=function(t){this._invalidated[t]=!0},i.prototype.reset=function(t){t=this.normalize(t),t!==a&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},i.prototype.normalize=function(t,e){var i=e?this._items.length:this._items.length+this._clones.length;return!h.isNumeric(t)||1>i?a:t=this._clones.length?(t%i+i)%i:Math.max(this.minimum(e),Math.min(this.maximum(e),t))},i.prototype.relative=function(t){return t=this.normalize(t),t-=this._clones.length/2,this.normalize(t,!0)},i.prototype.maximum=function(t){var e,i,n,s=0,r=this.settings;if(t)return this._items.length-1;if(!r.loop&&r.center)e=this._items.length-1;else if(r.loop||r.center)if(r.loop||r.center)e=this._items.length+r.items;else{if(!r.autoWidth&&!r.merge)throw"Can not detect maximum absolute position.";for(revert=r.rtl?1:-1,i=this.$stage.width()-this.$element.width();(n=this.coordinates(s))&&!(n*revert>=i);)e=++s}else e=this._items.length-r.items;return e},i.prototype.minimum=function(t){return t?0:this._clones.length/2},i.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},i.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},i.prototype.clones=function(i){var e=this._clones.length/2,n=e+this._items.length,s=function(t){return t%2===0?n+t/2:e-(t+1)/2};return i===a?h.map(this._clones,function(t,e){return s(e)}):h.map(this._clones,function(t,e){return t===i?s(e):null})},i.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},i.prototype.coordinates=function(t){var e=null;return t===a?h.map(this._coordinates,h.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[t-1]||0))/2*(this.settings.rtl?-1:1)):e=this._coordinates[t-1]||0,e)},i.prototype.duration=function(t,e,i){return Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},i.prototype.to=function(t,e){if(this.settings.loop){var i=t-this.relative(this.current()),n=this.current(),s=this.current(),r=this.current()+i,o=0>s-r?!0:!1,a=this._clones.length+this._items.length;r<this.settings.items&&o===!1?(n=s+this._items.length,this.reset(n)):r>=a-this.settings.items&&o===!0&&(n=s-this._items.length,this.reset(n)),l.clearTimeout(this.e._goToLoop),this.e._goToLoop=l.setTimeout(h.proxy(function(){this.speed(this.duration(this.current(),n+i,e)),this.current(n+i),this.update()},this),30)}else this.speed(this.duration(this.current(),t,e)),this.current(t),this.update()},i.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},i.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},i.prototype.transitionEnd=function(t){return t!==a&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0))?!1:(this.state.inMotion=!1,void this.trigger("translated"))},i.prototype.viewport=function(){var t;if(this.options.responsiveBaseElement!==l)t=h(this.options.responsiveBaseElement).width();else if(l.innerWidth)t=l.innerWidth;else{if(!r.documentElement||!r.documentElement.clientWidth)throw"Can not detect viewport width.";t=r.documentElement.clientWidth}return t},i.prototype.replace=function(t){this.$stage.empty(),this._items=[],t&&(t=t instanceof jQuery?t:h(t)),this.settings.nestedItemSelector&&(t=t.find("."+this.settings.nestedItemSelector)),t.filter(function(){return 1===this.nodeType}).each(h.proxy(function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(h.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},i.prototype.add=function(t,e){e=e===a?this._items.length:this.normalize(e,!0),this.trigger("add",{content:t,position:e}),0===this._items.length||e===this._items.length?(this.$stage.append(t),this._items.push(t),this._mergers.push(1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[e].before(t),this._items.splice(e,0,t),this._mergers.splice(e,0,1*t.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this.invalidate("items"),this.trigger("added",{content:t,position:e})},i.prototype.remove=function(t){t=this.normalize(t,!0),t!==a&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},i.prototype.addTriggerableEvents=function(){var i=h.proxy(function(e,i){return h.proxy(function(t){t.relatedTarget!==this&&(this.suppress([i]),e.apply(this,[].slice.call(arguments,1)),this.release([i]))},this)},this);h.each({next:this.next,prev:this.prev,to:this.to,destroy:this.destroy,refresh:this.refresh,replace:this.replace,add:this.add,remove:this.remove},h.proxy(function(t,e){this.$element.on(t+".owl.carousel",i(e,t+".owl.carousel"))},this))},i.prototype.watchVisibility=function(){function t(t){return t.offsetWidth>0&&t.offsetHeight>0}function e(){t(this.$element.get(0))&&(this.$element.removeClass("owl-hidden"),this.refresh(),l.clearInterval(this.e._checkVisibile))}t(this.$element.get(0))||(this.$element.addClass("owl-hidden"),l.clearInterval(this.e._checkVisibile),this.e._checkVisibile=l.setInterval(h.proxy(e,this),500))},i.prototype.preloadAutoWidthImages=function(i){var n,s,r,o;n=0,s=this,i.each(function(t,e){r=h(e),o=new Image,o.onload=function(){n++,r.attr("src",o.src),r.css("opacity",1),n>=i.length&&(s.state.imagesLoaded=!0,s.initialize())},o.src=r.attr("src")||r.attr("data-src")||r.attr("data-src-retina")})},i.prototype.destroy=function(){this.$element.hasClass(this.settings.themeClass)&&this.$element.removeClass(this.settings.themeClass),this.settings.responsive!==!1&&h(l).off("resize.owl.carousel"),this.transitionEndVendor&&this.off(this.$stage.get(0),this.transitionEndVendor,this.e._transitionEnd);for(var t in this._plugins)this._plugins[t].destroy();(this.settings.mouseDrag||this.settings.touchDrag)&&(this.$stage.off("mousedown touchstart touchcancel"),h(r).off(".owl.dragEvents"),this.$stage.get(0).onselectstart=function(){},this.$stage.off("dragstart",function(){return!1})),this.$element.off(".owl"),this.$stage.children(".cloned").remove(),this.e=null,this.$element.removeData("owlCarousel"),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.unwrap()},i.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:i>t;case">":return n?i>t:t>i;case">=":return n?i>=t:t>=i;case"<=":return n?t>=i:i>=t}},i.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},i.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},i.prototype.trigger=function(t,e,i){var n={item:{count:this._items.length,index:this.current()}},s=h.camelCase(h.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),r=h.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),h.extend({relatedTarget:this},n,e));return this._supress[t]||(h.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(r)}),this.$element.trigger(r),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].apply(this,r)),r},i.prototype.suppress=function(t){h.each(t,h.proxy(function(t,e){this._supress[e]=!0},this))},i.prototype.release=function(t){h.each(t,h.proxy(function(t,e){delete this._supress[e]},this))},i.prototype.browserSupport=function(){if(this.support3d=s(),this.support3d){this.transformVendor=n();var t=["transitionend","webkitTransitionEnd","transitionend","oTransitionEnd"];this.transitionEndVendor=t[e()],this.vendorName=this.transformVendor.replace(/Transform/i,""),this.vendorName=""!==this.vendorName?"-"+this.vendorName.toLowerCase()+"-":""}this.state.orientation=l.orientation},h.fn.owlCarousel=function(t){return this.each(function(){h(this).data("owlCarousel")||h(this).data("owlCarousel",new i(this,t))})},h.fn.owlCarousel.Constructor=i}(window.Zepto||window.jQuery,window,document),function(a,r){var e=function(t){this._core=t,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel":a.proxy(function(t){if(t.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(t.property&&"position"==t.property.name||"initialized"==t.type))for(var e=this._core.settings,i=e.center&&Math.ceil(e.items/2)||e.items,n=e.center&&-1*i||0,s=(t.property&&t.property.value||this._core.current())+n,r=this._core.clones().length,o=a.proxy(function(t,e){this.load(e)},this);n++<i;)this.load(r/2+this._core.relative(s)),r&&a.each(this._core.clones(this._core.relative(s++)),o)},this)},this._core.options=a.extend({},e.Defaults,this._core.options),this._core.$element.on(this._handlers)};e.Defaults={lazyLoad:!1},e.prototype.load=function(t){var e=this._core.$stage.children().eq(t),i=e&&e.find(".owl-lazy");!i||a.inArray(e.get(0),this._loaded)>-1||(i.each(a.proxy(function(t,e){var i,n=a(e),s=r.devicePixelRatio>1&&n.attr("data-src-retina")||n.attr("data-src");this._core.trigger("load",{element:n,url:s},"lazy"),n.is("img")?n.one("load.owl.lazy",a.proxy(function(){n.css("opacity",1),this._core.trigger("loaded",{element:n,url:s},"lazy")},this)).attr("src",s):(i=new Image,i.onload=a.proxy(function(){n.css({"background-image":"url("+s+")",opacity:"1"}),this._core.trigger("loaded",{element:n,url:s},"lazy")},this),i.src=s)},this)),this._loaded.push(e.get(0)))},e.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},a.fn.owlCarousel.Constructor.Plugins.Lazy=e}(window.Zepto||window.jQuery,window,document),function(e){var i=function(t){this._core=t,this._handlers={"initialized.owl.carousel":e.proxy(function(){this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":e.proxy(function(t){this._core.settings.autoHeight&&"position"==t.property.name&&this.update()},this),"loaded.owl.lazy":e.proxy(function(t){this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass)===this._core.$stage.children().eq(this._core.current())&&this.update()},this)},this._core.options=e.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){this._core.$stage.parent().height(this._core.$stage.children().eq(this._core.current()).height()).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(u,e,i){var n=function(t){this._core=t,this._videos={},this._playing=null,this._fullscreen=!1,this._handlers={"resize.owl.carousel":u.proxy(function(t){this._core.settings.video&&!this.isInFullScreen()&&t.preventDefault()},this),"refresh.owl.carousel changed.owl.carousel":u.proxy(function(){this._playing&&this.stop()},this),"prepared.owl.carousel":u.proxy(function(t){var e=u(t.content).find(".owl-video");e.length&&(e.css("display","none"),this.fetch(e,u(t.content)))},this)},this._core.options=u.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",u.proxy(function(t){this.play(t)},this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id"),s=t.attr("data-width")||this._core.settings.videoWidth,r=t.attr("data-height")||this._core.settings.videoHeight,o=t.attr("href");if(!o)throw new Error("Missing video URL.");if(n=o.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/),n[3].indexOf("youtu")>-1)i="youtube";else{if(!(n[3].indexOf("vimeo")>-1))throw new Error("Video URL not supported.");i="vimeo"}n=n[6],this._videos[o]={type:i,id:n,width:s,height:r},e.attr("data-video",o),this.thumbnail(t,this._videos[o])},n.prototype.thumbnail=function(e,t){var i,n,s,r=t.width&&t.height?'style="width:'+t.width+"px;height:"+t.height+'px;"':"",o=e.find("img"),a="src",h="",l=this._core.settings,c=function(t){n='<div class="owl-video-play-icon"></div>',i=l.lazyLoad?'<div class="owl-video-tn '+h+'" '+a+'="'+t+'"></div>':'<div class="owl-video-tn" style="opacity:1;background-image:url('+t+')"></div>',e.after(i),e.after(n)};return e.wrap('<div class="owl-video-wrapper"'+r+"></div>"),this._core.settings.lazyLoad&&(a="data-src",h="owl-lazy"),o.length?(c(o.attr(a)),o.remove(),!1):void("youtube"===t.type?(s="http://img.youtube.com/vi/"+t.id+"/hqdefault.jpg",c(s)):"vimeo"===t.type&&u.ajax({type:"GET",url:"http://vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,c(s)}}))},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null},n.prototype.play=function(t){this._core.trigger("play",null,"video"),this._playing&&this.stop();var e,i,n=u(t.target||t.srcElement),s=n.closest("."+this._core.settings.itemClass),r=this._videos[s.attr("data-video")],o=r.width||"100%",a=r.height||this._core.$stage.height();"youtube"===r.type?e='<iframe width="'+o+'" height="'+a+'" src="http://www.youtube.com/embed/'+r.id+"?autoplay=1&v="+r.id+'" frameborder="0" allowfullscreen></iframe>':"vimeo"===r.type&&(e='<iframe src="http://player.vimeo.com/video/'+r.id+'?autoplay=1" width="'+o+'" height="'+a+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'),s.addClass("owl-video-playing"),this._playing=s,i=u('<div style="height:'+a+"px; width:"+o+'px" class="owl-video-frame">'+e+"</div>"),n.after(i)},n.prototype.isInFullScreen=function(){var t=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return t&&u(t).parent().hasClass("owl-video-frame")&&(this._core.speed(0),this._fullscreen=!0),t&&this._fullscreen&&this._playing?!1:this._fullscreen?(this._fullscreen=!1,!1):this._playing&&this._core.state.orientation!==e.orientation?(this._core.state.orientation=e.orientation,!1):!0},n.prototype.destroy=function(){var t,e;this._core.$element.off("click.owl.video");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(o,t,e,i){var n=function(t){this.core=t,this.core.options=o.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=i,this.next=i,this.handlers={"change.owl.carousel":o.proxy(function(t){"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":o.proxy(function(t){this.swapping="translated"==t.type},this),"translate.owl.carousel":o.proxy(function(){this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&this.core.support3d){this.core.speed(0);var t,e=o.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.css({left:t+"px"}).addClass("animated owl-animated-out").addClass(r).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e)),s&&n.addClass("animated owl-animated-in").addClass(s).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",e))}},n.prototype.clear=function(t){o(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.transitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},o.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(e,i,t){var n=function(t){this.core=t,this.core.options=e.extend({},n.Defaults,this.core.options),this.handlers={"translated.owl.carousel refreshed.owl.carousel":e.proxy(function(){this.autoplay()},this),"play.owl.autoplay":e.proxy(function(t,e,i){this.play(e,i)},this),"stop.owl.autoplay":e.proxy(function(){this.stop()},this),"mouseover.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.pause()},this),"mouseleave.owl.autoplay":e.proxy(function(){this.core.settings.autoplayHoverPause&&this.autoplay()},this)},this.core.$element.on(this.handlers)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype.autoplay=function(){this.core.settings.autoplay&&!this.core.state.videoPlay?(i.clearInterval(this.interval),this.interval=i.setInterval(e.proxy(function(){this.play()},this),this.core.settings.autoplayTimeout)):i.clearInterval(this.interval)},n.prototype.play=function(){return t.hidden===!0||this.core.state.isTouch||this.core.state.isScrolling||this.core.state.isSwiping||this.core.state.inMotion?void 0:this.core.settings.autoplay===!1?void i.clearInterval(this.interval):void this.core.next(this.core.settings.autoplaySpeed)},n.prototype.stop=function(){i.clearInterval(this.interval)},n.prototype.pause=function(){i.clearInterval(this.interval)},n.prototype.destroy=function(){var t,e;i.clearInterval(this.interval);for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},e.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(r){"use strict";var e=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":r.proxy(function(t){this._core.settings.dotsData&&this._templates.push(r(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"add.owl.carousel":r.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,0,r(t.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot"))},this),"remove.owl.carousel prepared.owl.carousel":r.proxy(function(t){this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"change.owl.carousel":r.proxy(function(t){if("position"==t.property.name&&!this._core.state.revert&&!this._core.settings.loop&&this._core.settings.navRewind){var e=this._core.current(),i=this._core.maximum(),n=this._core.minimum();t.data=t.property.value>i?e>=i?n:i:t.property.value<n?i:t.property.value}},this),"changed.owl.carousel":r.proxy(function(t){"position"==t.property.name&&this.draw()},this),"refreshed.owl.carousel":r.proxy(function(){this._initialized||(this.initialize(),this._initialized=!0),this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation")},this)},this._core.options=r.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navRewind:!0,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotData:!1,dotsSpeed:!1,dotsContainer:!1,controlsClass:"owl-controls"},e.prototype.initialize=function(){var t,e,i=this._core.settings;i.dotsData||(this._templates=[r("<div>").addClass(i.dotClass).append(r("<span>")).prop("outerHTML")]),i.navContainer&&i.dotsContainer||(this._controls.$container=r("<div>").addClass(i.controlsClass).appendTo(this.$element)),this._controls.$indicators=i.dotsContainer?r(i.dotsContainer):r("<div>").hide().addClass(i.dotsClass).appendTo(this._controls.$container),this._controls.$indicators.on("click","div",r.proxy(function(t){var e=r(t.target).parent().is(this._controls.$indicators)?r(t.target).index():r(t.target).parent().index();t.preventDefault(),this.to(e,i.dotsSpeed)},this)),t=i.navContainer?r(i.navContainer):r("<div>").addClass(i.navContainerClass).prependTo(this._controls.$container),this._controls.$next=r("<"+i.navElement+">"),this._controls.$previous=this._controls.$next.clone(),this._controls.$previous.addClass(i.navClass[0]).html(i.navText[0]).hide().prependTo(t).on("click",r.proxy(function(){this.prev(i.navSpeed)},this)),this._controls.$next.addClass(i.navClass[1]).html(i.navText[1]).hide().appendTo(t).on("click",r.proxy(function(){this.next(i.navSpeed)},this));for(e in this._overrides)this._core[e]=r.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,n;for(t in this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i,n=this._core.settings,s=this._core.clones().length/2,r=s+this._core.items().length,o=n.center||n.autoWidth||n.dotData?1:n.dotsEach||n.items;if("page"!==n.slideBy&&(n.slideBy=Math.min(n.slideBy,n.items)),n.dots||"page"==n.slideBy)for(this._pages=[],t=s,e=0,i=0;r>t;t++)(e>=o||0===e)&&(this._pages.push({start:t-s,end:t-s+o-1}),e=0,++i),e+=this._core.mergers(this._core.relative(t))},e.prototype.draw=function(){var t,e,i="",n=this._core.settings,s=(this._core.$stage.children(),this._core.relative(this._core.current()));if(!n.nav||n.loop||n.navRewind||(this._controls.$previous.toggleClass("disabled",0>=s),this._controls.$next.toggleClass("disabled",s>=this._core.maximum())),this._controls.$previous.toggle(n.nav),this._controls.$next.toggle(n.nav),n.dots){if(t=this._pages.length-this._controls.$indicators.children().length,n.dotData&&0!==t){for(e=0;e<this._controls.$indicators.children().length;e++)i+=this._templates[this._core.relative(e)];this._controls.$indicators.html(i)}else t>0?(i=new Array(t+1).join(this._templates[0]),this._controls.$indicators.append(i)):0>t&&this._controls.$indicators.children().slice(t).remove();this._controls.$indicators.find(".active").removeClass("active"),this._controls.$indicators.children().eq(r.inArray(this.current(),this._pages)).addClass("active")}this._controls.$indicators.toggle(n.dots)},e.prototype.onTrigger=function(t){var e=this._core.settings;t.page={index:r.inArray(this.current(),this._pages),count:this._pages.length,size:e&&(e.center||e.autoWidth||e.dotData?1:e.dotsEach||e.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return r.grep(this._pages,function(t){return t.start<=e&&t.end>=e}).pop()},e.prototype.getPosition=function(t){var e,i,n=this._core.settings;return"page"==n.slideBy?(e=r.inArray(this.current(),this._pages),i=this._pages.length,t?++e:--e,e=this._pages[(e%i+i)%i].start):(e=this._core.relative(this._core.current()),i=this._core.items().length,t?e+=n.slideBy:e-=n.slideBy),e},e.prototype.next=function(t){r.proxy(this._overrides.to,this._core)(this.getPosition(!0),t)},e.prototype.prev=function(t){r.proxy(this._overrides.to,this._core)(this.getPosition(!1),t)},e.prototype.to=function(t,e,i){var n;i?r.proxy(this._overrides.to,this._core)(t,e):(n=this._pages.length,r.proxy(this._overrides.to,this._core)(this._pages[(t%n+n)%n].start,e))},r.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(i,n){"use strict";var e=function(t){this._core=t,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":i.proxy(function(){"URLHash"==this._core.settings.startPosition&&i(n).trigger("hashchange.owl.navigation")},this),"prepared.owl.carousel":i.proxy(function(t){var e=i(t.content).find("[data-hash]").andSelf("[data-hash]").attr("data-hash");this._hashes[e]=t.content},this)},this._core.options=i.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers),i(n).on("hashchange.owl.navigation",i.proxy(function(){var t=n.location.hash.substring(1),e=this._core.$stage.children(),i=this._hashes[t]&&e.index(this._hashes[t])||0;return t?void this._core.to(i,!1,!0):!1},this))};e.Defaults={URLhashListener:!1},e.prototype.destroy=function(){var t,e;i(n).off("hashchange.owl.navigation");for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},i.fn.owlCarousel.Constructor.Plugins.Hash=e}(window.Zepto||window.jQuery,window,document);!function(t,e){"function"==typeof define&&define.amd?define(function(){return e(t)}):e(t)}(this,function(tt){var t=function(){function h(t){return null==t?String(t):Z[Y.call(t)]||"object"}function o(t){return"function"==h(t)}function r(t){return null!=t&&t==t.window}function a(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function n(t){return"object"==h(t)}function l(t){return n(t)&&!r(t)&&Object.getPrototypeOf(t)==Object.prototype}function c(t){var e=!!t&&"length"in t&&t.length,i=E.type(t);return"function"!=i&&!r(t)&&("array"==i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t){return P.call(t,function(t){return null!=t})}function u(t){return t.length>0?E.fn.concat.apply([],t):t}function d(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function i(t){return t in e?e[t]:e[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function p(t,e){return"number"!=typeof e||M[d(t)]?e:e+"px"}function t(t){var e,i;return N[t]||(e=O.createElement(t),O.body.appendChild(e),i=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==i&&(i="block"),N[t]=i),N[t]}function f(t){return"children"in t?z.call(t.children):E.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function g(t,e){var i,n=t?t.length:0;for(i=0;n>i;i++)this[i]=t[i];this.length=n,this.selector=e||""}function m(t,e,i){for($ in e)i&&(l(e[$])||K(e[$]))?(l(e[$])&&!l(t[$])&&(t[$]={}),K(e[$])&&!K(t[$])&&(t[$]=[]),m(t[$],e[$],i)):e[$]!==b&&(t[$]=e[$])}function v(t,e){return null==e?E(t):E(t).filter(e)}function y(t,e,i,n){return o(e)?e.call(t,i,n):e}function w(t,e,i){null==i?t.removeAttribute(e):t.setAttribute(e,i)}function _(t,e){var i=t.className||"",n=i&&i.baseVal!==b;return e===b?n?i.baseVal:i:void(n?i.baseVal=e:t.className=e)}function x(e){try{return e?"true"==e||("false"==e?!1:"null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?E.parseJSON(e):e):e}catch(t){return e}}function C(t,e){e(t);for(var i=0,n=t.childNodes.length;n>i;i++)C(t.childNodes[i],e)}var b,$,E,j,T,S,D=[],k=D.concat,P=D.filter,z=D.slice,O=tt.document,N={},e={},M={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},L=/^\s*<(\w+|!)[^>]*>/,Q=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,A=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,I=/^(?:body|html)$/i,X=/([A-Z])/g,R=["val","css","html","text","data","width","height","offset"],q=["after","prepend","before","append"],F=O.createElement("table"),W=O.createElement("tr"),H={tr:O.createElement("tbody"),tbody:F,thead:F,tfoot:F,td:W,th:W,"*":O.createElement("div")},V=/complete|loaded|interactive/,B=/^[\w-]*$/,Z={},Y=Z.toString,U={},J=O.createElement("div"),G={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},K=Array.isArray||function(t){return t instanceof Array};return U.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var i=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(i)return i.call(t,e);var n,s=t.parentNode,r=!s;return r&&(s=J).appendChild(t),n=~U.qsa(s,e).indexOf(t),r&&J.removeChild(t),n},T=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},S=function(i){return P.call(i,function(t,e){return i.indexOf(t)==e})},U.fragment=function(t,e,i){var n,s,r;return Q.test(t)&&(n=E(O.createElement(RegExp.$1))),n||(t.replace&&(t=t.replace(A,"<$1></$2>")),e===b&&(e=L.test(t)&&RegExp.$1),e in H||(e="*"),r=H[e],r.innerHTML=""+t,n=E.each(z.call(r.childNodes),function(){r.removeChild(this)})),l(i)&&(s=E(n),E.each(i,function(t,e){R.indexOf(t)>-1?s[t](e):s.attr(t,e)})),n},U.Z=function(t,e){return new g(t,e)},U.isZ=function(t){return t instanceof U.Z},U.init=function(t,e){var i;if(!t)return U.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&L.test(t))i=U.fragment(t,RegExp.$1,e),t=null;else{if(e!==b)return E(e).find(t);i=U.qsa(O,t)}else{if(o(t))return E(O).ready(t);if(U.isZ(t))return t;if(K(t))i=s(t);else if(n(t))i=[t],t=null;else if(L.test(t))i=U.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==b)return E(e).find(t);i=U.qsa(O,t)}}return U.Z(i,t)},E=function(t,e){return U.init(t,e)},E.extend=function(e){var i,t=z.call(arguments,1);return"boolean"==typeof e&&(i=e,e=t.shift()),t.forEach(function(t){m(e,t,i)}),e},U.qsa=function(t,e){var i,n="#"==e[0],s=!n&&"."==e[0],r=n||s?e.slice(1):e,o=B.test(r);return t.getElementById&&o&&n?(i=t.getElementById(r))?[i]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:z.call(o&&!n&&t.getElementsByClassName?s?t.getElementsByClassName(r):t.getElementsByTagName(e):t.querySelectorAll(e))},E.contains=O.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},E.type=h,E.isFunction=o,E.isWindow=r,E.isArray=K,E.isPlainObject=l,E.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},E.isNumeric=function(t){var e=Number(t),i=typeof t;return null!=t&&"boolean"!=i&&("string"!=i||t.length)&&!isNaN(e)&&isFinite(e)||!1},E.inArray=function(t,e,i){return D.indexOf.call(e,t,i)},E.camelCase=T,E.trim=function(t){return null==t?"":String.prototype.trim.call(t)},E.uuid=0,E.support={},E.expr={},E.noop=function(){},E.map=function(t,e){var i,n,s,r=[];if(c(t))for(n=0;n<t.length;n++)i=e(t[n],n),null!=i&&r.push(i);else for(s in t)i=e(t[s],s),null!=i&&r.push(i);return u(r)},E.each=function(t,e){var i,n;if(c(t)){for(i=0;i<t.length;i++)if(e.call(t[i],i,t[i])===!1)return t}else for(n in t)if(e.call(t[n],n,t[n])===!1)return t;return t},E.grep=function(t,e){return P.call(t,e)},tt.JSON&&(E.parseJSON=JSON.parse),E.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){Z["[object "+e+"]"]=e.toLowerCase()}),E.fn={constructor:U.Z,length:0,forEach:D.forEach,reduce:D.reduce,push:D.push,sort:D.sort,splice:D.splice,indexOf:D.indexOf,concat:function(){var t,e,i=[];for(t=0;t<arguments.length;t++)e=arguments[t],i[t]=U.isZ(e)?e.toArray():e;return k.apply(U.isZ(this)?this.toArray():this,i)},map:function(i){return E(E.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return E(z.apply(this,arguments))},ready:function(t){return V.test(O.readyState)&&O.body?t(E):O.addEventListener("DOMContentLoaded",function(){t(E)},!1),this},get:function(t){return t===b?z.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(i){return D.every.call(this,function(t,e){return i.call(t,e,t)!==!1}),this},filter:function(e){return o(e)?this.not(this.not(e)):E(P.call(this,function(t){return U.matches(t,e)}))},add:function(t,e){return E(S(this.concat(E(t,e))))},is:function(t){return this.length>0&&U.matches(this[0],t)},not:function(e){var i=[];if(o(e)&&e.call!==b)this.each(function(t){e.call(this,t)||i.push(this)});else{var n="string"==typeof e?this.filter(e):c(e)&&o(e.item)?z.call(e):E(e);this.forEach(function(t){n.indexOf(t)<0&&i.push(t)})}return E(i)},has:function(t){return this.filter(function(){return n(t)?E.contains(this,t):E(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!n(t)?t:E(t)},last:function(){var t=this[this.length-1];return t&&!n(t)?t:E(t)},find:function(t){var e,i=this;return e=t?"object"==typeof t?E(t).filter(function(){var e=this;return D.some.call(i,function(t){return E.contains(t,e)})}):1==this.length?E(U.qsa(this[0],t)):this.map(function(){return U.qsa(this,t)}):E()},closest:function(i,n){var s=[],r="object"==typeof i&&E(i);return this.each(function(t,e){for(;e&&!(r?r.indexOf(e)>=0:U.matches(e,i));)e=e!==n&&!a(e)&&e.parentNode;e&&s.indexOf(e)<0&&s.push(e)}),E(s)},parents:function(t){for(var e=[],i=this;i.length>0;)i=E.map(i,function(t){return(t=t.parentNode)&&!a(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return v(e,t)},parent:function(t){return v(S(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return f(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||z.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,e){return P.call(f(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return E.map(this,function(t){return t[e]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=t(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(e){var i=o(e);if(this[0]&&!i)var n=E(e).get(0),s=n.parentNode||this.length>1;return this.each(function(t){E(this).wrapAll(i?e.call(this,t):s?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){E(this[0]).before(t=E(t));for(var e;(e=t.children()).length;)t=e.first();E(t).append(this)}return this},wrapInner:function(s){var r=o(s);return this.each(function(t){var e=E(this),i=e.contents(),n=r?s.call(this,t):s;i.length?i.wrapAll(n):e.append(n)})},unwrap:function(){return this.parent().each(function(){E(this).replaceWith(E(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=E(this);(e===b?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(t){return E(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return E(this.pluck("nextElementSibling")).filter(t||"*")},html:function(i){return 0 in arguments?this.each(function(t){var e=this.innerHTML;E(this).empty().append(y(this,i,t,e))}):0 in this?this[0].innerHTML:null},text:function(i){return 0 in arguments?this.each(function(t){var e=y(this,i,t,this.textContent);this.textContent=null==e?"":""+e}):0 in this?this.pluck("textContent").join(""):null},attr:function(e,i){var t;return"string"!=typeof e||1 in arguments?this.each(function(t){if(1===this.nodeType)if(n(e))for($ in e)w(this,$,e[$]);else w(this,e,y(this,i,t,this.getAttribute(e)))}):0 in this&&1==this[0].nodeType&&null!=(t=this[0].getAttribute(e))?t:b},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){w(this,t)},this)})},prop:function(e,i){return e=G[e]||e,1 in arguments?this.each(function(t){this[e]=y(this,i,t,this[e])}):this[0]&&this[0][e]},removeProp:function(t){return t=G[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var i="data-"+t.replace(X,"-$1").toLowerCase(),n=1 in arguments?this.attr(i,e):this.attr(i);return null!==n?x(n):b},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each(function(t){this.value=y(this,e,t,this.value)})):this[0]&&(this[0].multiple?E(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(r){if(r)return this.each(function(t){var e=E(this),i=y(this,r,t,e.offset()),n=e.offsetParent().offset(),s={top:i.top-n.top,left:i.left-n.left};"static"==e.css("position")&&(s.position="relative"),e.css(s)});if(!this.length)return null;if(O.documentElement!==this[0]&&!E.contains(O.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+tt.pageXOffset,top:t.top+tt.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(t,e){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[T(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(K(t)){if(!i)return;var n={},s=getComputedStyle(i,"");return E.each(t,function(t,e){n[e]=i.style[T(e)]||s.getPropertyValue(e)}),n}}var r="";if("string"==h(t))e||0===e?r=d(t)+":"+p(t,e):this.each(function(){this.style.removeProperty(d(t))});else for($ in t)t[$]||0===t[$]?r+=d($)+":"+p($,t[$])+";":this.each(function(){this.style.removeProperty(d($))});return this.each(function(){this.style.cssText+=";"+r})},index:function(t){return t?this.indexOf(E(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?D.some.call(this,function(t){return this.test(_(t))},i(t)):!1},addClass:function(n){return n?this.each(function(t){if("className"in this){j=[];var e=_(this),i=y(this,n,t,e);i.split(/\s+/g).forEach(function(t){E(this).hasClass(t)||j.push(t)},this),j.length&&_(this,e+(e?" ":"")+j.join(" "))}}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===b)return _(this,"");j=_(this),y(this,e,t,j).split(/\s+/g).forEach(function(t){j=j.replace(i(t)," ")}),_(this,j.trim())}})},toggleClass:function(n,s){return n?this.each(function(t){var e=E(this),i=y(this,n,t,_(this));i.split(/\s+/g).forEach(function(t){(s===b?!e.hasClass(t):s)?e.addClass(t):e.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===b?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===b?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),i=this.offset(),n=I.test(e[0].nodeName)?{top:0,left:0}:e.offset();return i.top-=parseFloat(E(t).css("margin-top"))||0,i.left-=parseFloat(E(t).css("margin-left"))||0,n.top+=parseFloat(E(e[0]).css("border-top-width"))||0,n.left+=parseFloat(E(e[0]).css("border-left-width"))||0,{top:i.top-n.top,left:i.left-n.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||O.body;t&&!I.test(t.nodeName)&&"static"==E(t).css("position");)t=t.offsetParent;return t})}},E.fn.detach=E.fn.remove,["width","height"].forEach(function(n){var s=n.replace(/./,function(t){return t[0].toUpperCase()});E.fn[n]=function(e){var t,i=this[0];return e===b?r(i)?i["inner"+s]:a(i)?i.documentElement["scroll"+s]:(t=this.offset())&&t[n]:this.each(function(t){i=E(this),i.css(n,y(this,e,t,i[n]()))})}}),q.forEach(function(e,o){var a=o%2;E.fn[e]=function(){var i,n,s=E.map(arguments,function(t){var e=[];return i=h(t),"array"==i?(t.forEach(function(t){return t.nodeType!==b?e.push(t):E.zepto.isZ(t)?e=e.concat(t.get()):void(e=e.concat(U.fragment(t)))}),e):"object"==i||null==t?t:U.fragment(t)}),r=this.length>1;return s.length<1?this:this.each(function(t,e){n=a?e:e.parentNode,e=0==o?e.nextSibling:1==o?e.firstChild:2==o?e:null;var i=E.contains(O.documentElement,n);s.forEach(function(t){if(r)t=t.cloneNode(!0);else if(!n)return E(t).remove();n.insertBefore(t,e),i&&C(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:tt;e.eval.call(e,t.innerHTML)}})})})},E.fn[a?e+"To":"insert"+(o?"Before":"After")]=function(t){return E(t)[e](this),this}}),U.Z.prototype=g.prototype=E.fn,U.uniq=S,U.deserializeValue=x,E.zepto=U,E}();return tt.Zepto=t,void 0===tt.$&&(tt.$=t),function(c){function u(t){return t._zid||(t._zid=e++)}function o(t,e,i,n){if(e=d(e),e.ns)var s=r(e.ns);return(C[u(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||s.test(t.ns))&&(!i||u(t.fn)===u(i))&&(!n||t.sel==n)})}function d(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function r(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function p(t,e){return t.del&&!i&&t.e in n||!!e}function f(t){return b[t]||i&&n[t]||t}function l(s,t,e,r,o,a,h){var i=u(s),l=C[i]||(C[i]=[]);t.split(/\s/).forEach(function(t){if("ready"==t)return c(document).ready(e);var i=d(t);i.fn=e,i.sel=o,i.e in b&&(e=function(t){var e=t.relatedTarget;return!e||e!==this&&!c.contains(this,e)?i.fn.apply(this,arguments):void 0}),i.del=a;var n=a||e;i.proxy=function(t){if(t=m(t),!t.isImmediatePropagationStopped()){t.data=r;var e=n.apply(s,t._args==y?[t]:[t].concat(t._args));return e===!1&&(t.preventDefault(),t.stopPropagation()),e}},i.i=l.length,l.push(i),"addEventListener"in s&&s.addEventListener(f(i.e),i.proxy,p(i,h))})}function g(e,t,i,n,s){var r=u(e);(t||"").split(/\s/).forEach(function(t){o(e,t,i,n).forEach(function(t){delete C[r][t.i],"removeEventListener"in e&&e.removeEventListener(f(t.e),t.proxy,p(t,s))})})}function m(n,s){return(s||!n.isDefaultPrevented)&&(s||(s=n),c.each(t,function(t,e){var i=s[t];n[t]=function(){return this[e]=h,i&&i.apply(s,arguments)},n[e]=$}),n.timeStamp||(n.timeStamp=Date.now()),(s.defaultPrevented!==y?s.defaultPrevented:"returnValue"in s?s.returnValue===!1:s.getPreventDefault&&s.getPreventDefault())&&(n.isDefaultPrevented=h)),n}function v(t){var e,i={originalEvent:t};for(e in t)s.test(e)||t[e]===y||(i[e]=t[e]);return m(i,t)}var y,e=1,w=Array.prototype.slice,_=c.isFunction,x=function(t){return"string"==typeof t},C={},a={},i="onfocusin"in tt,n={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};a.click=a.mousedown=a.mouseup=a.mousemove="MouseEvents",c.event={add:l,remove:g},c.proxy=function(t,e){var i=2 in arguments&&w.call(arguments,2);if(_(t)){var n=function(){return t.apply(e,i?i.concat(w.call(arguments)):arguments)};return n._zid=u(t),n}if(x(e))return i?(i.unshift(t[e],t),c.proxy.apply(null,i)):c.proxy(t[e],t);throw new TypeError("expected function")},c.fn.bind=function(t,e,i){return this.on(t,e,i)},c.fn.unbind=function(t,e){return this.off(t,e)},c.fn.one=function(t,e,i,n){return this.on(t,e,i,n,1)};var h=function(){return!0},$=function(){return!1},s=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,t={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};c.fn.delegate=function(t,e,i){return this.on(e,t,i)},c.fn.undelegate=function(t,e,i){return this.off(e,t,i)},c.fn.live=function(t,e){return c(document.body).delegate(this.selector,t,e),this},c.fn.die=function(t,e){return c(document.body).undelegate(this.selector,t,e),this},c.fn.on=function(e,s,i,r,o){var a,h,n=this;return e&&!x(e)?(c.each(e,function(t,e){n.on(t,s,i,e,o)}),n):(x(s)||_(r)||r===!1||(r=i,i=s,s=y),(r===y||i===!1)&&(r=i,i=y),r===!1&&(r=$),n.each(function(t,n){o&&(a=function(t){return g(n,t.type,r),r.apply(this,arguments)}),s&&(h=function(t){var e,i=c(t.target).closest(s,n).get(0);return i&&i!==n?(e=c.extend(v(t),{currentTarget:i,liveFired:n}),(a||r).apply(i,[e].concat(w.call(arguments,1)))):void 0}),l(n,e,r,i,s,h||a)}))},c.fn.off=function(t,i,e){var n=this;return t&&!x(t)?(c.each(t,function(t,e){n.off(t,i,e)}),n):(x(i)||_(e)||e===!1||(e=i,i=y),e===!1&&(e=$),n.each(function(){g(this,t,e,i)}))},c.fn.trigger=function(t,e){return t=x(t)||c.isPlainObject(t)?c.Event(t):m(t),t._args=e,this.each(function(){t.type in n&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):c(this).triggerHandler(t,e)})},c.fn.triggerHandler=function(i,n){var s,r;return this.each(function(t,e){s=v(x(i)?c.Event(i):i),s._args=n,s.target=e,c.each(o(e,i.type||i),function(t,e){return r=e.proxy(s),s.isImmediatePropagationStopped()?!1:void 0})}),r},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){c.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),c.Event=function(t,e){x(t)||(e=t,t=e.type);var i=document.createEvent(a[t]||"Events"),n=!0;if(e)for(var s in e)"bubbles"==s?n=!!e[s]:i[s]=e[s];return i.initEvent(t,n,!0),m(i)}}(t),function(g){function s(t,e,i){var n=g.Event(e);return g(t).trigger(n,i),!n.isDefaultPrevented()}function o(t,e,i,n){return t.global?s(e||T,i,n):void 0}function m(t){t.global&&0===g.active++&&o(t,null,"ajaxStart")}function r(t){t.global&&!--g.active&&o(t,null,"ajaxStop")}function v(t,e){var i=e.context;return e.beforeSend.call(i,t,e)===!1||o(e,i,"ajaxBeforeSend",[t,e])===!1?!1:void o(e,i,"ajaxSend",[t,e])}function y(t,e,i,n){var s=i.context,r="success";i.success.call(s,t,r,e),n&&n.resolveWith(s,[t,r,e]),o(i,s,"ajaxSuccess",[e,i,t]),a(r,e,i)}function w(t,e,i,n,s){var r=n.context;n.error.call(r,i,e,t),s&&s.rejectWith(r,[i,e,t]),o(n,r,"ajaxError",[i,n,t||e]),a(e,i,n)}function a(t,e,i){var n=i.context;i.complete.call(n,e,t),o(i,n,"ajaxComplete",[e,i]),r(i)}function _(t,e,i){if(i.dataFilter==x)return t;var n=i.context;return i.dataFilter.call(n,t,e)}function x(){}function C(t){return t&&(t=t.split(";",2)[0]),t&&(t==d?"html":t==n?"json":e.test(t)?"script":i.test(t)&&"xml")||"text"}function b(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function $(t){t.processData&&t.data&&"string"!=g.type(t.data)&&(t.data=g.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=b(t.url,t.data),t.data=void 0)}function h(t,e,i,n){return g.isFunction(e)&&(n=i,i=e,e=void 0),g.isFunction(i)||(n=i,i=void 0),{url:t,data:e,success:i,dataType:n}}function l(i,t,n,s){var r,o=g.isArray(t),a=g.isPlainObject(t);g.each(t,function(t,e){r=g.type(e),s&&(t=n?s:s+"["+(a||"object"==r||"array"==r?t:"")+"]"),!s&&o?i.add(e.name,e.value):"array"==r||!n&&"object"==r?l(i,e,n,t):i.add(t,e)})}var E,j,c=+new Date,T=tt.document,u=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,e=/^(?:text|application)\/javascript/i,i=/^(?:text|application)\/xml/i,n="application/json",d="text/html",S=/^\s*$/,D=T.createElement("a");D.href=tt.location.href,g.active=0,g.ajaxJSONP=function(i,n){if(!("type"in i))return g.ajax(i);var s,r,t=i.jsonpCallback,o=(g.isFunction(t)?t():t)||"Zepto"+c++,a=T.createElement("script"),h=tt[o],e=function(t){g(a).triggerHandler("error",t||"abort")},l={abort:e};return n&&n.promise(l),g(a).on("load error",function(t,e){clearTimeout(r),g(a).off().remove(),"error"!=t.type&&s?y(s[0],l,i,n):w(null,e||"error",l,i,n),tt[o]=h,s&&g.isFunction(h)&&h(s[0]),h=s=void 0}),v(l,i)===!1?(e("abort"),l):(tt[o]=function(){s=arguments},a.src=i.url.replace(/\?(.+)=\?/,"?$1="+o),T.head.appendChild(a),i.timeout>0&&(r=setTimeout(function(){e("timeout")},i.timeout)),l)},g.ajaxSettings={type:"GET",beforeSend:x,success:x,error:x,complete:x,context:null,global:!0,xhr:function(){return new tt.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:n,xml:"application/xml, text/xml",html:d,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:x},g.ajax=function(t){var e,i,n=g.extend({},t||{}),s=g.Deferred&&g.Deferred();for(E in g.ajaxSettings)void 0===n[E]&&(n[E]=g.ajaxSettings[E]);m(n),n.crossDomain||(e=T.createElement("a"),e.href=n.url,e.href=e.href,n.crossDomain=D.protocol+"//"+D.host!=e.protocol+"//"+e.host),n.url||(n.url=tt.location.toString()),(i=n.url.indexOf("#"))>-1&&(n.url=n.url.slice(0,i)),$(n);var r=n.dataType,o=/\?.+=\?/.test(n.url);if(o&&(r="jsonp"),n.cache!==!1&&(t&&t.cache===!0||"script"!=r&&"jsonp"!=r)||(n.url=b(n.url,"_="+Date.now())),"jsonp"==r)return o||(n.url=b(n.url,n.jsonp?n.jsonp+"=?":n.jsonp===!1?"":"callback=?")),g.ajaxJSONP(n,s);var a,h=n.accepts[r],l={},c=function(t,e){l[t.toLowerCase()]=[t,e]},u=/^([\w-]+:)\/\//.test(n.url)?RegExp.$1:tt.location.protocol,d=n.xhr(),p=d.setRequestHeader;if(s&&s.promise(d),n.crossDomain||c("X-Requested-With","XMLHttpRequest"),c("Accept",h||"*/*"),(h=n.mimeType||h)&&(h.indexOf(",")>-1&&(h=h.split(",",2)[0]),d.overrideMimeType&&d.overrideMimeType(h)),(n.contentType||n.contentType!==!1&&n.data&&"GET"!=n.type.toUpperCase())&&c("Content-Type",n.contentType||"application/x-www-form-urlencoded"),n.headers)for(j in n.headers)c(j,n.headers[j]);if(d.setRequestHeader=c,d.onreadystatechange=function(){if(4==d.readyState){d.onreadystatechange=x,clearTimeout(a);var t,e=!1;if(d.status>=200&&d.status<300||304==d.status||0==d.status&&"file:"==u){if(r=r||C(n.mimeType||d.getResponseHeader("content-type")),"arraybuffer"==d.responseType||"blob"==d.responseType)t=d.response;else{t=d.responseText;try{t=_(t,r,n),"script"==r?(1,eval)(t):"xml"==r?t=d.responseXML:"json"==r&&(t=S.test(t)?null:g.parseJSON(t))}catch(t){e=t}if(e)return w(e,"parsererror",d,n,s)}y(t,d,n,s)}else w(d.statusText||null,d.status?"error":"abort",d,n,s)}},v(d,n)===!1)return d.abort(),w(null,"abort",d,n,s),d;var f="async"in n?n.async:!0;if(d.open(n.type,n.url,f,n.username,n.password),n.xhrFields)for(j in n.xhrFields)d[j]=n.xhrFields[j];for(j in l)p.apply(d,l[j]);return n.timeout>0&&(a=setTimeout(function(){d.onreadystatechange=x,d.abort(),w(null,"timeout",d,n,s)},n.timeout)),d.send(n.data?n.data:null),d},g.get=function(){return g.ajax(h.apply(null,arguments))},g.post=function(){var t=h.apply(null,arguments);return t.type="POST",g.ajax(t)},g.getJSON=function(){var t=h.apply(null,arguments);return t.dataType="json",g.ajax(t)},g.fn.load=function(t,e,i){if(!this.length)return this;var n,s=this,r=t.split(/\s/),o=h(t,e,i),a=o.success;return r.length>1&&(o.url=r[0],n=r[1]),o.success=function(t){s.html(n?g("<div>").html(t.replace(u,"")).find(n):t),a&&a.apply(s,arguments)},g.ajax(o),this};var p=encodeURIComponent;g.param=function(t,e){var i=[];return i.add=function(t,e){g.isFunction(e)&&(e=e()),null==e&&(e=""),this.push(p(t)+"="+p(e))},l(i,t,e),i.join("&").replace(/%20/g,"+")}}(t),function(r){r.fn.serializeArray=function(){var i,n,e=[],s=function(t){return t.forEach?t.forEach(s):void e.push({name:i,value:t})};return this[0]&&r.each(this[0].elements,function(t,e){n=e.type,i=e.name,i&&"fieldset"!=e.nodeName.toLowerCase()&&!e.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||e.checked)&&s(r(e).val())}),e},r.fn.serialize=function(){var e=[];return this.serializeArray().forEach(function(t){e.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),e.join("&")},r.fn.submit=function(t){if(0 in arguments)this.bind("submit",t);else if(this.length){var e=r.Event("submit");this.eq(0).trigger(e),e.isDefaultPrevented()||this.get(0).submit()}return this}}(t),function(){try{getComputedStyle(void 0)}catch(t){var i=getComputedStyle;tt.getComputedStyle=function(t,e){try{return i(t,e)}catch(t){return null}}}}(),t});!function(c){function u(){var t,e,i={height:s.innerHeight,width:s.innerWidth};return i.height||(t=n.compatMode,(t||!c.support.boxModel)&&(e="CSS1Compat"===t?m:n.body,i={height:e.clientHeight,width:e.clientWidth})),i}function d(){return{top:s.pageYOffset||m.scrollTop||n.body.scrollTop,left:s.pageXOffset||m.scrollLeft||n.body.scrollLeft}}function e(){var t,s=c(),e=0;if(c.each(g,function(t,e){var i=e.data.selector,n=e.$element;s=s.add(i?n.find(i):n)}),t=s.length)for(p=p||u(),f=f||d();t>e;e++)if(c.contains(m,s[e])){var i,n,r,o=c(s[e]),a={height:o.height(),width:o.width()},h=o.offset(),l=o.data("inview");if(!f||!p)return;h.top+a.height>f.top&&h.top<f.top+p.height&&h.left+a.width>f.left&&h.left<f.left+p.width?(i=f.left>h.left?"right":f.left+p.width<h.left+a.width?"left":"both",n=f.top>h.top?"bottom":f.top+p.height<h.top+a.height?"top":"both",r=i+"-"+n,l&&l===r||o.data("inview",r).trigger("inview",[!0,i,n])):l&&o.data("inview",!1).trigger("inview",[!1])}}var p,f,i,g={},n=document,s=window,m=n.documentElement,r=c.expando;c.event.special.inview={add:function(t){g[t.guid+"-"+this[r]]={data:t,$element:c(this)},i||c.isEmptyObject(g)||(i=setInterval(e,250))},remove:function(t){try{delete g[t.guid+"-"+this[r]]}catch(t){}c.isEmptyObject(g)&&(clearInterval(i),i=null)}},c(s).bind("scroll resize scrollstop",function(){p=f=null}),!m.addEventListener&&m.attachEvent&&m.attachEvent("onfocusin",function(){f=null})}(jQuery);(function(){[].slice.call(document.querySelectorAll(".tabs")).forEach(function(t){new CBPFWTabs(t)})})();function oldSafariCSSfix(){if(isOldSafari()){var t=4;var e=jQuery("#siteContent").width()-32;jQuery("#div-share nav ul li").width(e/t-1).css("float","left");jQuery(".tabs nav").css("width",e+1)}}$(document).ready(function(){$(document).on("click",".tabs ul:not(.fileThumbs) li",function(){if($(this).find("a").attr("href")=="#section-thumb"){$(".save-entry-button").hide()}else{$(".save-entry-button").show()}})});jQuery(window).load(function(){oldSafariCSSfix()});jQuery(window).resize(function(){oldSafariCSSfix()});var dinamicSizeSetFunction_view=function(){};var jqUpdate_view=function t(){};jQuery(document).on({click:function(){var t=jQuery(this).attr("rel-key");var e=jQuery(this).attr("rel-type");var i=_rel+"?a=cb-watchadd&for=sort-"+e;var n=jQuery(this);if(n.find(jslang["lss"]=="1"?"icon-check":"icon-warning").hasClass("icon-check")){return}n.parent().next().mask("");n.next().text(jslang["loading"]);jQuery.post(i,{"fileid[0]":t},function(t){n.find(".icon-clock").removeClass("icon-clock").addClass(jslang["lss"]=="1"?"icon-check":"icon-warning");n.next().text(jslang["lss"]=="1"?jslang["inwatchlist"]:jslang["nowatchlist"]);n.parent().next().unmask()})}},".watch_later_wrap");jQuery(window).load(function(){thumbFade();$(document).on("click",".watch_later_wrap_off",function(){var t=jQuery(this).attr("rel-key");var e=jQuery(this).attr("rel-type");var i=_rel+"?do=cb-watchadd&for=sort-"+e;var n=jQuery(this);if(n.find(".icon-check").hasClass("icon-check")){return}n.parent().next().mask("");n.next().text("Loading...");jQuery.post(i,{"fileid[0]":t,uf_type:e},function(t){n.find(".icon-clock").removeClass("icon-clock").addClass("icon-check");n.next().text("In watchlist");n.parent().next().unmask()})})});jQuery(window).resize(function(){});jQuery(window).load(function(){jQuery(".showSingle").click(function(t){t.preventDefault();var e=jQuery(this).attr("target");jQuery(".showSingle").removeClass("active");jQuery(this).addClass("active");if(jQuery("#div-"+e).hasClass("inactive")){if(e!="comments"){jQuery(".targetDiv:not(#div-comments)").stop().slideUp(function(){jQuery(".targetDiv:not(#div-comments)").addClass("inactive")})}else{jQuery(".targetDiv").stop().slideUp(function(){jQuery(".targetDiv").addClass("inactive")})}jQuery("#div-"+e).stop().slideDown(function(){jQuery("#div-"+e).removeClass("inactive")})}else{jQuery("#div-"+e).stop().slideUp(function(){jQuery("#div-"+e).addClass("inactive")});jQuery(this).removeClass("active")}if(e=="info"){}});jQuery(".view-details-description").click(function(t){if(jQuery(".p-d-txt").hasClass("more")&&t.target.className=="p-d-txt more"){jQuery(".info-more").click()}});jQuery(".info-more").click(function(t){t.preventDefault();jQuery(".info-less").removeClass("no-display");jQuery(".info-more").addClass("no-display");jQuery(".p-d-txt").removeClass("more");jQuery(".view-details-description").removeClass("pointer")});jQuery(".info-less").click(function(t){t.preventDefault();jQuery(".info-less").addClass("no-display");jQuery(".info-more").removeClass("no-display");jQuery(".p-d-txt").addClass("more");jQuery(".view-details-description").addClass("pointer")});jQuery("#video-accordion").dcAccordion({classParent:"video-accordion-parent",classActive:"active",classArrow:"video-accordion-icon",classCount:"video-accordion-count",classExpand:"video-accordion-current-parent",classDisable:"",eventType:"click",hoverDelay:300,menuClose:true,autoClose:true,autoExpand:false,speed:"slow",saveState:true,disableLink:true,showCount:false,cookie:"video-accordion-accordion"})});$(document).ready(function(){var t=$(".playlist-carousel");if(typeof t.html()!=="undefined"){t.owlCarousel({items:4,loop:false,margin:10,autoplay:false,dots:false,nav:true,navText:["<i class='icon-chevron-left icon-white icon-previous'></i>","<i class='icon-chevron-right icon-white icon-next'></i>"],onInitialized:false,responsive:{0:{items:1},470:{items:2},560:{items:2},640:{items:2},920:{items:3},1200:{items:3},1600:{items:4}}})}});$(function(){$("#entry-action-pl").dlmenu({animationClasses:{classin:"dl-animate-in-5",classout:"dl-animate-out-5"}});$("#file-flag-reasons").dlmenu({animationClasses:{classin:"dl-animate-in-5",classout:"dl-animate-out-5"}})});if(typeof $(".js-textareacopybtn").html()!="undefined"){var copyTextareaBtn=document.querySelector(".js-textareacopybtn");copyTextareaBtn.addEventListener("click",function(t){var e=document.querySelector(".js-copytextarea");e.select();try{var i=document.execCommand("copy")}catch(t){}})}if(typeof $(".file-share-perma-short").html()!="undefined"){var copyTextareaBtn=document.querySelector(".js-textareacopybtn-p1");copyTextareaBtn.addEventListener("click",function(t){var e=document.querySelector(".file-share-perma-short");e.select();try{var i=document.execCommand("copy")}catch(t){}})}if(typeof $(".file-share-perma-seo").html()!="undefined"){var copyTextareaBtn=document.querySelector(".js-textareacopybtn-p2");copyTextareaBtn.addEventListener("click",function(t){var e=document.querySelector(".file-share-perma-seo");e.select();try{var i=document.execCommand("copy")}catch(t){}})}jQuery(document).on({click:function(){t=$(this);u=current_url+"?ap=";if(t.is(":checked")){u+="1"}else u+="0";$("#menu-trigger-response").load(u)}},"input[name=autoplay_switch_check]");jQuery(document).on({inview:function(e,i,n,r){t=$(this);k=t.attr("rel-key");tp=t.attr("rel-type");s=$(".swiper-top-main .swiper-slide-current a").attr("rel-type");u=current_url+menu_section+"?"+tp+"="+k+"&do=recommend-"+s;l=$("#"+s+"-list li").length;if(l==15&&i){$("#main-content #more-results").css("opacity",1).mask(" ");$.post(u,{t:s,f:$("input[name='uf_type']").val(),k:k,u:$("input[name='uf_vuid']").val(),c:$("input[name='uf_ct']").val()},function(t){$("#"+s+"-list").fadeIn().append(t);thumbFade();$("#main-content #more-results").css("opacity",0).unmask()})}}},".related-more"); |