/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ !function(t,e,i,n){"use strict";function o(t,e,i){return setTimeout(c(t,i),e)}function r(t,e,i){return!!Array.isArray(t)&&(s(t,i[e],i),!0)}function s(t,e,i){var o;if(t)if(t.forEach)t.forEach(e,i);else if(t.length!==n)for(o=0;o\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,o,n),e.apply(this,arguments)}}function l(t,e,i){var n,o=e.prototype;n=t.prototype=Object.create(o),n.constructor=t,n._super=o,i&&ut(n,i)}function c(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return typeof t==pt?t.apply(e?e[0]||n:n,e):t}function h(t,e){return t===n?e:t}function d(t,e,i){s(m(e),function(e){t.addEventListener(e,i,!1)})}function p(t,e,i){s(m(e),function(e){t.removeEventListener(e,i,!1)})}function f(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function g(t,e,i){if(t.indexOf&&!i)return t.indexOf(e);for(var n=0;ni[e]}):n.sort()),n}function b(t,e){for(var i,o,r=e[0].toUpperCase()+e.slice(1),s=0;s1&&!i.firstMultiple?i.firstMultiple=A(e):1===o&&(i.firstMultiple=!1);var r=i.firstInput,s=i.firstMultiple,a=s?s.center:r.center,l=e.center=D(n);e.timeStamp=mt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=_(a,l),e.distance=O(a,l),z(i,e),e.offsetDirection=k(e.deltaX,e.deltaY);var c=q(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=vt(c.x)>vt(c.y)?c.x:c.y,e.scale=s?X(s.pointers,n):1,e.rotation=s?j(s.pointers,n):0,e.maxPointers=i.prevInput?e.pointers.length>i.prevInput.maxPointers?e.pointers.length:i.prevInput.maxPointers:e.pointers.length,S(i,e);var u=t.element;f(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}function z(t,e){var i=e.center,n=t.offsetDelta||{},o=t.prevDelta||{},r=t.prevInput||{};e.eventType!==zt&&r.eventType!==At||(o=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},n=t.offsetDelta={x:i.x,y:i.y}),e.deltaX=o.x+(i.x-n.x),e.deltaY=o.y+(i.y-n.y)}function S(t,e){var i,o,r,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=Dt&&(l>Pt||a.velocity===n)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,h=q(l,c,u);o=h.x,r=h.y,i=vt(h.x)>vt(h.y)?h.x:h.y,s=k(c,u),t.lastInterval=e}else i=a.velocity,o=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=i,e.velocityX=o,e.velocityY=r,e.direction=s}function A(t){for(var e=[],i=0;io;)i+=t[o].clientX,n+=t[o].clientY,o++;return{x:ft(i/e),y:ft(n/e)}}function q(t,e,i){return{x:e/t||0,y:i/t||0}}function k(t,e){return t===e?qt:vt(t)>=vt(e)?0>t?kt:Ot:0>e?_t:jt}function O(t,e,i){i||(i=Nt);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return Math.sqrt(n*n+o*o)}function _(t,e,i){i||(i=Nt);var n=e[i[0]]-t[i[0]],o=e[i[1]]-t[i[1]];return 180*Math.atan2(o,n)/Math.PI}function j(t,e){return _(e[1],e[0],Bt)+_(t[1],t[0],Bt)}function X(t,e){return O(e[0],e[1],Bt)/O(t[0],t[1],Bt)}function M(){this.evEl=Lt,this.evWin=Ht,this.pressed=!1,I.apply(this,arguments)}function Y(){this.evEl=Ut,this.evWin=$t,I.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=Zt,this.evWin=Gt,this.started=!1,I.apply(this,arguments)}function B(t,e){var i=y(t.touches),n=y(t.changedTouches);return e&(At|Dt)&&(i=w(i.concat(n),"identifier",!0)),[i,n]}function F(){this.evTarget=Kt,this.targetIds={},I.apply(this,arguments)}function L(t,e){var i=y(t.touches),n=this.targetIds;if(e&(zt|St)&&1===i.length)return n[i[0].identifier]=!0,[i,i];var o,r,s=y(t.changedTouches),a=[],l=this.target;if(r=i.filter(function(t){return f(t.target,l)}),e===zt)for(o=0;o-1&&n.splice(t,1)};setTimeout(o,Jt)}}function U(t){for(var e=t.srcEvent.clientX,i=t.srcEvent.clientY,n=0;n=r&&te>=s)return!0}return!1}function $(t,e){this.manager=t,this.set(e)}function V(t){if(v(t,se))return se;var e=v(t,ae),i=v(t,le);return e&&i?se:e||i?e?ae:le:v(t,re)?re:oe}function Z(t){this.options=ut({},this.defaults,t||{}),this.id=T(),this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=ue,this.simultaneous={},this.requireFail=[]}function G(t){return t&ve?"cancel":t&pe?"end":t&de?"move":t&he?"start":""}function Q(t){return t==jt?"down":t==_t?"up":t==kt?"left":t==Ot?"right":""}function K(t,e){var i=e.manager;return i?i.get(t):t}function J(){Z.apply(this,arguments)}function tt(){J.apply(this,arguments),this.pX=null,this.pY=null}function et(){J.apply(this,arguments)}function it(){Z.apply(this,arguments),this._timer=null,this._input=null}function nt(){J.apply(this,arguments)}function ot(){J.apply(this,arguments)}function rt(){Z.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function st(t,e){return e=e||{},e.recognizers=h(e.recognizers,st.defaults.preset),new at(t,e)}function at(t,e){this.options=ut({},st.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=C(this),this.touchAction=new $(this,this.options.touchAction),lt(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function lt(t,e){var i=t.element;if(i.style){var n;s(t.options.cssProps,function(o,r){n=b(i.style,r),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={})}}function ct(t,i){var n=e.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=i,i.target.dispatchEvent(n)}var ut,ht=["","webkit","Moz","MS","ms","o"],dt=e.createElement("div"),pt="function",ft=Math.round,vt=Math.abs,mt=Date.now;ut="function"!=typeof Object.assign?function(t){if(t===n||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;ia&&(e.push(t),a=e.length-1):o&(At|Dt)&&(i=!0),0>a||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),i&&e.splice(a,1))}});var Vt={touchstart:zt,touchmove:St,touchend:At,touchcancel:Dt},Zt="touchstart",Gt="touchstart touchmove touchend touchcancel";l(N,I,{handler:function(t){var e=Vt[t.type];if(e===zt&&(this.started=!0),this.started){var i=B.call(this,t,e);e&(At|Dt)&&i[0].length-i[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Ct,srcEvent:t})}}});var Qt={touchstart:zt,touchmove:St,touchend:At,touchcancel:Dt},Kt="touchstart touchmove touchend touchcancel";l(F,I,{handler:function(t){var e=Qt[t.type],i=L.call(this,t,e);i&&this.callback(this.manager,e,{pointers:i[0],changedPointers:i[1],pointerType:Ct,srcEvent:t})}});var Jt=2500,te=25;l(H,I,{handler:function(t,e,i){var n=i.pointerType==Ct,o=i.pointerType==Et;if(!(o&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(n)R.call(this,e,i);else if(o&&U.call(this,i))return;this.callback(t,e,i)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var ee=b(dt.style,"touchAction"),ie=ee!==n,ne="compute",oe="auto",re="manipulation",se="none",ae="pan-x",le="pan-y",ce=function(){if(!ie)return!1;var e={},i=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(n){e[n]=!i||t.CSS.supports("touch-action",n)}),e}();$.prototype={set:function(t){t==ne&&(t=this.compute()),ie&&this.manager.element.style&&ce[t]&&(this.manager.element.style[ee]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){u(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),V(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,i=t.offsetDirection;if(this.manager.session.prevented)return void e.preventDefault();var n=this.actions,o=v(n,se)&&!ce[se],r=v(n,le)&&!ce[le],s=v(n,ae)&&!ce[ae];if(o){var a=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(a&&l&&c)return}return s&&r?void 0:o||r&&i&Xt||s&&i&Mt?this.preventSrc(e):void 0},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var ue=1,he=2,de=4,pe=8,fe=pe,ve=16;Z.prototype={defaults:{},set:function(t){return ut(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return t=K(t,this),e[t.id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)?this:(t=K(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return t=K(t,this),-1===g(e,t)&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=K(t,this);var e=g(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){i.manager.emit(e,t)}var i=this,n=this.state;pe>n&&e(i.options.event+G(n)),e(i.options.event),t.additionalEvent&&e(t.additionalEvent),n>=pe&&e(i.options.event+G(n))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;tr?kt:Ot,i=r!=this.pX,n=Math.abs(t.deltaX)):(o=0===s?qt:0>s?_t:jt,i=s!=this.pY,n=Math.abs(t.deltaY))),t.direction=o,i&&n>e.threshold&&o&e.direction},attrTest:function(t){return J.prototype.attrTest.call(this,t)&&(this.state&he||!(this.state&he)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Q(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),l(et,J,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&he)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),l(it,Z,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[oe]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distancee.time;if(this._input=t,!n||!i||t.eventType&(At|Dt)&&!r)this.reset();else if(t.eventType&zt)this.reset(),this._timer=o(function(){this.state=fe,this.tryEmit()},e.time,this);else if(t.eventType&At)return fe;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===fe&&(t&&t.eventType&At?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=mt(),this.manager.emit(this.options.event,this._input)))}}),l(nt,J,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&he)}}),l(ot,J,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:Xt|Mt,pointers:1},getTouchAction:function(){return tt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,i=this.options.direction;return i&(Xt|Mt)?e=t.overallVelocity:i&Xt?e=t.overallVelocityX:i&Mt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&vt(e)>this.options.velocity&&t.eventType&At},emit:function(t){var e=Q(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),l(rt,Z,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[re]},process:function(t){var e=this.options,i=t.pointers.length===e.pointers,n=t.distance0&&(It-=k(p,f)),e===d&&(g.end+=s,It+=s,h=m?f:0),_t.push(g),o=g}),Tt[0].style[gt.horizontal?"width":"height"]=(a?It:It-r-s)+"px",It-=h,_t.length?(Ct.start=_t[0][Ft?"center":"start"],Ct.end=Ft?o.center:It>xt?o.end:Ct.start):Ct.start=Ct.end=0}if(Ct.center=D(Ct.end/2+Ct.start/2),$(),Pt.length&&zt>0&&(gt.dynamicHandle?(St=Ct.start===Ct.end?zt:D(zt*xt/It),St=u(St,gt.minHandleSize,zt),Pt[0].style[gt.horizontal?"width":"height"]=St+"px"):St=Pt[gt.horizontal?"outerWidth":"outerHeight"](),At.end=zt-St,oe||N()),!wt&&xt>0){var p=Ct.start,f="";if(Ht)t.each(_t,function(t,e){Ft?kt.push(e.center):e.start+e.size>p&&p<=Ct.end&&(p=e.start,kt.push(p),(p+=xt)>Ct.end&&pCt.start&&tCt.end?t=Ct.end+(t-Ct.end)/6:t0?Ct.end:Ct.start)||yt.stop(),ae=ie.init?g(F):0,ee.now=+new Date,ee.pos=Ct.cur+(ee.now-ee.lastTime)/1e3*ee.speed,M(ie.init?ee.pos:D(ee.pos)),ie.init||Ct.cur!==Ct.dest||ft("moveEnd"),ee.lastTime=ee.now}function L(t,e,n){if("boolean"===o(e)&&(n=e,e=i),e===i)M(Ct[t],n);else{if(Lt&&"center"!==t)return;var r=yt.getPos(e);r&&M(r[t],n,!Lt)}}function H(t){return null!=t?l(t)?t>=0&&t<_t.length?t:-1:Ot.index(t):-1}function R(t){return H(l(t)&&0>t?t+_t.length:t)}function W(t,e){var i=H(t);return!(!Ht||0>i)&&((Jt.active!==i||e)&&(Ot.eq(jt.activeItem).removeClass(gt.activeClass),Ot.eq(i).addClass(gt.activeClass),Jt.active=jt.activeItem=i,V(),ft("active",i)),i)}function U(t){t=u(l(t)?t:Ct.dest,Ct.start,Ct.end);var e={},i=Ft?0:xt/2;if(!wt)for(var n=0,o=kt.length;o>n;n++){if(t>=Ct.end||n===kt.length-1){e.activePage=kt.length-1;break}if(t<=kt[n]+i){e.activePage=n;break}}if(Ht){for(var r=!1,s=!1,a=!1,c=0,h=_t.length;h>c;c++)if(!1===r&&t<=_t[c].start+_t[c].half&&(r=c),!1===a&&t<=_t[c].center+_t[c].half&&(a=c),c===h-1||t<=_t[c].end+_t[c].half){s=c;break}e.firstItem=l(r)?r:0,e.centerItem=l(a)?a:e.firstItem,e.lastItem=l(s)?s:e.centerItem}return e}function $(e){t.extend(jt,U(e))}function V(){var t=Ct.dest<=Ct.start,e=Ct.dest>=Ct.end,i=(t?1:0)|(e?2:0);if(Jt.slideePosState!==i&&(Jt.slideePosState=i,Gt.is("button,input")&&Gt.prop("disabled",t),Qt.is("button,input")&&Qt.prop("disabled",e),Gt.add($t)[t?"addClass":"removeClass"](gt.disabledClass),Qt.add(Ut)[e?"addClass":"removeClass"](gt.disabledClass)),Jt.fwdbwdState!==i&&ie.released&&(Jt.fwdbwdState=i,$t.is("button,input")&&$t.prop("disabled",t),Ut.is("button,input")&&Ut.prop("disabled",e)),Ht&&null!=jt.activeItem){var n=0===jt.activeItem,o=jt.activeItem>=_t.length-1,r=(n?1:0)|(o?2:0);Jt.itemsButtonState!==r&&(Jt.itemsButtonState=r,Vt.is("button,input")&&Vt.prop("disabled",n),Zt.is("button,input")&&Zt.prop("disabled",o),Vt[n?"addClass":"removeClass"](gt.disabledClass),Zt[o?"addClass":"removeClass"](gt.disabledClass))}}function Z(t,e,i){if(t=R(t),e=R(e),t>-1&&e>-1&&t!==e&&(!i||e!==t-1)&&(i||e!==t+1)){Ot.eq(t)[i?"insertAfter":"insertBefore"](_t[e].el);var n=e>t?t:i?e:e-1,o=t>e?t:i?e+1:e,r=t>e;null!=jt.activeItem&&(t===jt.activeItem?Jt.active=jt.activeItem=i?r?e+1:e:r?e:e-1:jt.activeItem>n&&jt.activeItemi;i++)if(Kt[t][i]===e)return i;return-1}function Q(){ie.released&&!yt.isPaused&&yt.resume()}function K(t){return D(u(t,At.start,At.end)/At.end*(Ct.end-Ct.start))+Ct.start}function J(){ie.history[0]=ie.history[1],ie.history[1]=ie.history[2],ie.history[2]=ie.history[3],ie.history[3]=ie.delta}function tt(t){ie.released=0,ie.source=t,ie.slidee="slidee"===t}function et(e){var i="touchstart"===e.type,n=e.data.source,o="slidee"===n;ie.init||!i&&ot(e.target)||("handle"!==n||gt.dragHandle&&At.start!==At.end)&&(!o||(i?gt.touchDragging:gt.mouseDragging&&e.which<2))&&(i||r(e),tt(n),ie.init=0,ie.$source=t(e.target),ie.touch=i,ie.pointer=i?e.originalEvent.touches[0]:e,ie.initX=ie.pointer.pageX,ie.initY=ie.pointer.pageY,ie.initPos=o?Ct.cur:At.cur,ie.start=+new Date,ie.time=0,ie.path=0,ie.delta=0,ie.locked=0,ie.history=[0,0,0,0],ie.pathToLock=o?i?30:10:0,y.on(i?T:b,it),yt.pause(1),(o?Tt:Pt).addClass(gt.draggedClass),ft("moveStart"),o&&(re=setInterval(J,10)))}function it(t){if(ie.released="mouseup"===t.type||"touchend"===t.type,ie.pointer=ie.touch?t.originalEvent[ie.released?"changedTouches":"touches"][0]:t,ie.pathX=ie.pointer.pageX-ie.initX,ie.pathY=ie.pointer.pageY-ie.initY,ie.path=S(A(ie.pathX,2)+A(ie.pathY,2)),ie.delta=gt.horizontal?ie.pathX:ie.pathY,ie.released||!(ie.path<1)){if(!ie.init){if(ie.pathz(ie.pathY):z(ie.pathX)ie.pathToLock&&ie.slidee&&(ie.locked=1,ie.$source.on(I,s)),ie.released&&(nt(),gt.releaseSwing&&ie.slidee&&(ie.swing=(ie.delta-ie.history[0])/40*300,ie.delta+=ie.swing,ie.tweese=z(ie.swing)>10)),M(ie.slidee?D(ie.initPos-ie.delta):K(ie.initPos+ie.delta))}}function nt(){clearInterval(re),ie.released=!0,y.off(ie.touch?T:b,it),(ie.slidee?Tt:Pt).removeClass(gt.draggedClass),setTimeout(function(){ie.$source.off(I,s)}),Ct.cur===Ct.dest&&ie.init&&ft("moveEnd"),yt.resume(1),ie.init=0}function ot(e){return~t.inArray(e.nodeName,E)||t(e).is(gt.interactive)}function rt(){yt.stop(),y.off("mouseup",rt)}function st(t){switch(r(t),this){case Ut[0]:case $t[0]:yt.moveBy(Ut.is(this)?gt.moveBy:-gt.moveBy),y.on("mouseup",rt);break;case Vt[0]:yt.prev();break;case Zt[0]:yt.next();break;case Gt[0]:yt.prevPage();break;case Qt[0]:yt.nextPage()}}function at(t){return ne.curDelta=(gt.horizontal?t.deltaY||t.deltaX:t.deltaY)||-t.wheelDelta,ne.curDelta/=1===t.deltaMode?3:100,Ht?(f=+new Date,ne.laste&&Rt[0]!==document&&Rt[0]!==window)return void(O=e);if(gt.scrollBy&&Ct.start!==Ct.end){var i=at(t.originalEvent);(gt.scrollTrap||i>0&&Ct.desti&&Ct.dest>Ct.start)&&r(t,1),yt.slideBy(gt.scrollBy*i)}}function ct(t){gt.clickBar&&t.target===Et[0]&&(r(t),M(K((gt.horizontal?t.pageX-Et.offset().left:t.pageY-Et.offset().top)-St/2)))}function ut(t){if(gt.keyboardNavBy)switch(t.which){case gt.horizontal?37:38:r(t),yt["pages"===gt.keyboardNavBy?"prevPage":"prev"]();break;case gt.horizontal?39:40:r(t),yt["pages"===gt.keyboardNavBy?"nextPage":"next"]()}}function ht(t){return ot(this)?void(t.originalEvent[v+"ignore"]=!0):void(this.parentNode!==Tt[0]||t.originalEvent[v+"ignore"]||yt.activate(this))}function dt(){this.parentNode===Dt[0]&&yt.activatePage(qt.index(this))}function pt(t){gt.pauseOnHover&&yt["mouseenter"===t.type?"pause":"resume"](2)}function ft(t,e){if(Kt[t]){for(mt=Kt[t].length,P.length=0,vt=0;mt>vt;vt++)P.push(Kt[t][vt]);for(vt=0;mt>vt;vt++)P[vt].call(yt,t,e)}}if(!(this instanceof n))return new n(e,_,j);var vt,mt,gt=t.extend({},n.defaults,_),yt=this,wt=l(e),bt=t(e),Tt=gt.slidee?t(gt.slidee).eq(0):bt.children().eq(0),xt=0,It=0,Ct={start:0,center:0,end:0,cur:0,dest:0},Et=t(gt.scrollBar).eq(0),Pt=Et.children().eq(0),zt=0,St=0,At={start:0,end:0,cur:0},Dt=t(gt.pagesBar),qt=0,kt=[],Ot=0,_t=[],jt={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},Xt=new h(bt[0]),Mt=new h(Tt[0]),Yt=new h(Et[0]),Nt=new h(Pt[0]),Bt="basic"===gt.itemNav,Ft="forceCentered"===gt.itemNav,Lt="centered"===gt.itemNav||Ft,Ht=!wt&&(Bt||Lt||Ft),Rt=gt.scrollSource?t(gt.scrollSource):bt,Wt=gt.dragSource?t(gt.dragSource):bt,Ut=t(gt.forward),$t=t(gt.backward),Vt=t(gt.prev),Zt=t(gt.next),Gt=t(gt.prevPage),Qt=t(gt.nextPage),Kt={},Jt={},te={},ee={},ie={released:1},ne={last:0,delta:0,resetTime:200},oe=0,re=0,se=0,ae=0;wt||(e=bt[0]),yt.initialized=0,yt.frame=e,yt.slidee=Tt[0],yt.pos=Ct,yt.rel=jt,yt.items=_t,yt.pages=kt,yt.isPaused=0,yt.options=gt,yt.dragging=ie,yt.reload=function(){X()},yt.getPos=function(t){if(Ht){var e=H(t);return-1!==e&&_t[e]}var i=Tt.find(t).eq(0);if(i[0]){var n=gt.horizontal?i.offset().left-Tt.offset().left:i.offset().top-Tt.offset().top,o=i[gt.horizontal?"outerWidth":"outerHeight"]();return{start:n,center:n-xt/2+o/2,end:n-xt+o,size:o}}return!1},yt.moveBy=function(t){ee.speed=t,!ie.init&&ee.speed&&Ct.cur!==(ee.speed>0?Ct.end:Ct.start)&&(ee.lastTime=+new Date,ee.startPos=Ct.cur,tt("button"),ie.init=1,ft("moveStart"),m(ae),F())},yt.stop=function(){"button"===ie.source&&(ie.init=0,ie.released=1)},yt.prev=function(){yt.activate(null==jt.activeItem?0:jt.activeItem-1)},yt.next=function(){ yt.activate(null==jt.activeItem?0:jt.activeItem+1)},yt.prevPage=function(){yt.activatePage(jt.activePage-1)},yt.nextPage=function(){yt.activatePage(jt.activePage+1)},yt.slideBy=function(t,e){t&&(Ht?yt[Lt?"toCenter":"toStart"](u((Lt?jt.centerItem:jt.firstItem)+gt.scrollBy*t,0,_t.length)):M(Ct.dest+t,e))},yt.slideTo=function(t,e){M(t,e)},yt.toStart=function(t,e){L("start",t,e)},yt.toEnd=function(t,e){L("end",t,e)},yt.toCenter=function(t,e){L("center",t,e)},yt.getIndex=H,yt.activate=function(t,e){var i=W(t);gt.smart&&!1!==i&&(Lt?yt.toCenter(i,e):i>=jt.lastItem?yt.toStart(i,e):i<=jt.firstItem?yt.toEnd(i,e):Q())},yt.activatePage=function(t,e){l(t)&&M(kt[u(t,0,kt.length-1)],e)},yt.resume=function(t){gt.cycleBy&>.cycleInterval&&("items"!==gt.cycleBy||_t[0]&&null!=jt.activeItem)&&!(t=_t.length-1?0:jt.activeItem+1);break;case"pages":yt.activatePage(jt.activePage>=kt.length-1?0:jt.activePage+1)}},gt.cycleInterval))},yt.pause=function(t){t=_t.length?n.appendTo(Tt):_t.length&&n.insertBefore(_t[i].el),null!=jt.activeItem&&i<=jt.activeItem&&(Jt.active=jt.activeItem+=n.length)):Tt.append(n),X()},yt.remove=function(e){if(Ht){var i=R(e);if(i>-1){Ot.eq(i).remove();var n=i===jt.activeItem;null!=jt.activeItem&&ir;r++)Kt[n[r]]=Kt[n[r]]||[],-1===G(n[r],e)&&Kt[n[r]].push(e);else if("array"===o(e))for(var a=0,l=e.length;l>a;a++)yt.on(t,e[a])},yt.one=function(t,e){function i(){e.apply(yt,arguments),yt.off(t,i)}yt.on(t,i)},yt.off=function(t,e){if(e instanceof Array)for(var i=0,n=e.length;n>i;i++)yt.off(t,e[i]);else for(var o=t.split(" "),r=0,s=o.length;s>r;r++)if(Kt[o[r]]=Kt[o[r]]||[],null==e)Kt[o[r]].length=0;else{var a=G(o[r],e);-1!==a&&Kt[o[r]].splice(a,1)}},yt.destroy=function(){return n.removeInstance(e),Rt.add(Pt).add(Et).add(Dt).add(Ut).add($t).add(Vt).add(Zt).add(Gt).add(Qt).off("."+v),y.off("keydown",ut),Vt.add(Zt).add(Gt).add(Qt).removeClass(gt.disabledClass),Ot&&null!=jt.activeItem&&Ot.eq(jt.activeItem).removeClass(gt.activeClass),Dt.empty(),wt||(bt.off("."+v),Xt.restore(),Mt.restore(),Yt.restore(),Nt.restore(),t.removeData(e,v)),_t.length=kt.length=0,Jt={},yt.initialized=0,yt},yt.init=function(){if(!yt.initialized){if(n.getInstance(e))throw new Error("There is already a Sly instance on this element");n.storeInstance(e,yt),yt.on(j);var t=["overflow","position"],i=["position","webkitTransform","msTransform","transform","left","top","width","height"];Xt.save.apply(Xt,t),Yt.save.apply(Yt,t),Mt.save.apply(Mt,i),Nt.save.apply(Nt,i);var o=Pt;return wt||(o=o.add(Tt),bt.css("overflow","hidden"),d||"static"!==bt.css("position")||bt.css("position","relative")),d?p&&o.css(d,p):("static"===Et.css("position")&&Et.css("position","relative"),o.css({position:"absolute"})),gt.forward&&Ut.on(C,st),gt.backward&&$t.on(C,st),gt.prev&&Vt.on(I,st),gt.next&&Zt.on(I,st),gt.prevPage&&Gt.on(I,st),gt.nextPage&&Qt.on(I,st),Rt.on(x,lt),Et[0]&&Et.on(I,ct),Ht&>.activateOn&&bt.on(gt.activateOn+"."+v,"*",ht),Dt[0]&>.activatePageOn&&Dt.on(gt.activatePageOn+"."+v,"*",dt),Wt.on(w,{source:"slidee"},et),Pt&&Pt.on(w,{source:"handle"},et),y.on("keydown",ut),wt||(bt.on("mouseenter."+v+" mouseleave."+v,pt),bt.on("scroll."+v,a)),yt.initialized=1,X(!0),gt.cycleBy&&!wt&&yt[gt.startPaused?"pause":"resume"](),yt}}}function o(t){return null==t?String(t):"object"==typeof t||"function"==typeof t?Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":typeof t}function r(t,e){t.preventDefault(),e&&t.stopPropagation()}function s(e){r(e,1),t(this).off(e.type,s)}function a(){this.scrollLeft=0,this.scrollTop=0}function l(t){return!isNaN(parseFloat(t))&&isFinite(t)}function c(t,e){return 0|D(String(t.css(e)).replace(/[^\-0-9.]/g,""))}function u(t,e,i){return e>t?e:t>i?i:t}function h(t){var e={};return e.style={},e.save=function(){if(t&&t.nodeType){for(var i=0;in;n++){var r=e[n]?e[n]+t.charAt(0).toUpperCase()+t.slice(1):t;if(null!=i.style[r])return r}}var e=["","Webkit","Moz","ms","O"],i=document.createElement("div");d=t("transform"),p=t("perspective")?"translateZ(0) ":""}(),e.Sly=n,t.fn.sly=function(e,i){var r,s;return t.isPlainObject(e)||(("string"===o(e)||!1===e)&&(r=!1===e?"destroy":e,s=Array.prototype.slice.call(arguments,1)),e={}),this.each(function(t,o){var a=n.getInstance(o);a||r?a&&r&&a[r]&&a[r].apply(a,s):a=new n(o,e,i).init()})},n.defaults={slidee:null,horizontal:!1,itemNav:null,itemSelector:null,smart:!1,activateOn:null,activateMiddle:!1,scrollSource:null,scrollBy:0,scrollHijack:300,scrollTrap:!1,dragSource:null,mouseDragging:!1,touchDragging:!1,releaseSwing:!1,swingSpeed:.2,elasticBounds:!1,dragThreshold:3,interactive:null,scrollBar:null,dragHandle:!1,dynamicHandle:!1,minHandleSize:50,clickBar:!1,syncSpeed:.5,pagesBar:null,activatePageOn:null,pageBuilder:function(t){return"
  • "+(t+1)+"
  • "},forward:null,backward:null,prev:null,next:null,prevPage:null,nextPage:null,cycleBy:null,cycleInterval:5e3,pauseOnHover:!1,startPaused:!1,moveBy:300,speed:0,easing:"swing",startAt:null,keyboardNavBy:null,draggedClass:"dragged",activeClass:"active",disabledClass:"disabled"}}(jQuery,window);var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and deltaY * * Version: 3.0.6 * * Requires: 1.2.2+ */ !function(t){function e(e){var i=e||window.event,n=[].slice.call(arguments,1),o=0,r=0,s=0;return e=t.event.fix(i),e.type="mousewheel",i.wheelDelta&&(o=i.wheelDelta/120),i.detail&&(o=-i.detail/3),s=o,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(s=0,r=-1*o),void 0!==i.wheelDeltaY&&(s=i.wheelDeltaY/120),void 0!==i.wheelDeltaX&&(r=-1*i.wheelDeltaX/120),n.unshift(e,o,r,s),(t.event.dispatch||t.event.handle).apply(this,n)}var i=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=i.length;n;)t.event.fixHooks[i[--n]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],e,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery),/*! * qTip2 - Pretty powerful tooltips * http://craigsworks.com/projects/qtip2/ * * Version: nightly * Copyright 2009-2010 Craig Michael Thompson - http://craigsworks.com * * Dual licensed under MIT or GPLv2 licenses * http://en.wikipedia.org/wiki/MIT_License * http://en.wikipedia.org/wiki/GNU_General_Public_License * * Date: Thu Aug 18 12:11:24 PDT 2011 */ function(t,e,i){function n(e,i){var n,c,u,f,v,m=t(this),g=t(document.body),y=this===document?g:m,w=m.metadata?m.metadata(i.metadata):p,b="html5"===i.metadata.type&&w?w[i.metadata.name]:p,T=m.data(i.metadata.name||"qtipopts");try{T="string"==typeof T?new Function("return "+T)():T}catch(t){s("Unable to parse HTML5 attribute data: "+T)}if(f=t.extend(h,{},a.defaults,i,"object"===(void 0===T?"undefined":_typeof(T))?r(T):p,r(b||w)),c=f.position,f.id=e,"boolean"==typeof f.content.text){if(u=m.attr(f.content.attr),f.content.attr===d||!u)return s("Unable to locate content for tooltip! Aborting render of tooltip on element: ",m),d;f.content.text=u}if(c.container===d&&(c.container=g),c.target===d&&(c.target=y),f.show.target===d&&(f.show.target=y),f.show.solo===h&&(f.show.solo=g),f.hide.target===d&&(f.hide.target=y),f.position.viewport===h&&(f.position.viewport=c.container),c.at=new l.Corner(c.at),c.my=new l.Corner(c.my),t.data(this,"qtip"))if(f.overwrite)m.qtip("destroy");else if(f.overwrite===d)return d;return f.suppress&&(v=t.attr(this,"title"))&&t(this).removeAttr("title").attr(C,v),n=new o(m,f,e,!!u),t.data(this,"qtip",n),m.bind("remove.qtip",function(){n.destroy()}),n}function o(n,o,s,I){function E(){var i=[o.show.target[0],o.hide.target[0],M.rendered&&j.tooltip[0],o.position.container[0],o.position.viewport[0],e,document];M.rendered?t([]).pushStack(t.grep(i,function(t){return"object"===(void 0===t?"undefined":_typeof(t))})).unbind(H):o.show.target.unbind(H+"-create")}function P(){function i(t){L.is(":visible")&&M.reposition(t)}function r(t){if(L.hasClass(g))return d;clearTimeout(M.timers.inactive),M.timers.inactive=setTimeout(function(){M.hide(t)},o.hide.inactive)}function l(e){if(L.hasClass(g)||B||F)return d;var i=t(e.relatedTarget||e.target),n=i.closest(y)[0]===L[0],r=i[0]===f.show[0];clearTimeout(M.timers.show),clearTimeout(M.timers.hide),"mouse"===p.target&&n||o.hide.fixed&&/mouse(out|leave|move)/.test(e.type)&&(n||r)?(e.preventDefault(),e.stopImmediatePropagation()):o.hide.delay>0?M.timers.hide=setTimeout(function(){M.hide(e)},o.hide.delay):M.hide(e)}function u(t){if(L.hasClass(g))return d;f.show.trigger("qtip-"+s+"-inactive"),clearTimeout(M.timers.show),clearTimeout(M.timers.hide);var e=function(){M.toggle(h,t)};o.show.delay>0?M.timers.show=setTimeout(e,o.show.delay):e()}var p=o.position,f={show:o.show.target,hide:o.hide.target,viewport:t(p.viewport),document:t(document),window:t(e)},v={show:t.trim(""+o.show.event).split(" "),hide:t.trim(""+o.hide.event).split(" ")},m=t.browser.msie&&6===parseInt(t.browser.version,10);L.bind("mouseenter"+H+" mouseleave"+H,function(t){var e="mouseenter"===t.type;e&&M.focus(t),L.toggleClass(T,e)}),o.hide.fixed&&(f.hide=f.hide.add(L),L.bind("mouseover"+H,function(){L.hasClass(g)||clearTimeout(M.timers.hide)})),/mouse(out|leave)/i.test(o.hide.event)?"window"===o.hide.leave&&f.window.bind("mouseout"+H,function(t){/select|option/.test(t.target)&&!t.relatedTarget&&M.hide(t)}):/mouse(over|enter)/i.test(o.show.event)&&f.hide.bind("mouseleave"+H,function(t){clearTimeout(M.timers.show)}),(""+o.hide.event).indexOf("unfocus")>-1&&f.document.bind("mousedown"+H,function(e){var i=t(e.target);!L.hasClass(g)&&L.is(":visible");i[0]!==L[0]&&0===i.parents(y).length&&i.add(n).length>1&&M.hide(e)}),"number"==typeof o.hide.inactive&&(f.show.bind("qtip-"+s+"-inactive",r),t.each(a.inactiveEvents,function(t,e){f.hide.add(j.tooltip).bind(e+H+"-inactive",r)})),t.each(v.hide,function(e,i){var n=t.inArray(i,v.show),o=t(f.hide);n>-1&&o.add(f.show).length===o.length||"unfocus"===i?(f.show.bind(i+H,function(t){L.is(":visible")?l(t):u(t)}),delete v.show[n]):f.hide.bind(i+H,l)}),t.each(v.show,function(t,e){f.show.bind(e+H,u)}),"number"==typeof o.hide.distance&&f.show.add(L).bind("mousemove"+H,function(t){var e=X.origin||{},i=o.hide.distance,n=Math.abs;(n(t.pageX-e.pageX)>=i||n(t.pageY-e.pageY)>=i)&&M.hide(t)}),"mouse"===p.target&&(f.show.bind("mousemove"+H,function(t){c={pageX:t.pageX,pageY:t.pageY,type:"mousemove"}}),p.adjust.mouse&&(o.hide.event&&L.bind("mouseleave"+H,function(t){(t.relatedTarget||t.target)!==f.show[0]&&M.hide(t)}),f.document.bind("mousemove"+H,function(t){!L.hasClass(g)&&L.is(":visible")&&M.reposition(t||c)}))),(p.adjust.resize||f.viewport.length)&&(t.event.special.resize?f.viewport:f.window).bind("resize"+H,i),(f.viewport.length||m&&"fixed"===L.css("position"))&&f.viewport.bind("scroll"+H,i)}function z(e,o){function r(e){function n(i){i&&(delete a[i.src],clearTimeout(M.timers.img[i.src]),t(i).unbind(H)),t.isEmptyObject(a)&&(M.redraw(),o!==d&&M.reposition(X.event),e())}var r,a={};if(0===(r=s.find("img:not([height]):not([width])")).length)return n();r.each(function(e,o){a[o.src]===i&&(function t(){if(o.height||o.width)return n(o);M.timers.img[o.src]=setTimeout(t,700)}(),t(o).bind("error"+H+" load"+H,function(){n(this)}),a[o.src]=o)})}var s=j.content;return M.rendered&&e?(t.isFunction(e)&&(e=e.call(n,X.event,M)||""),e.jquery&&e.length>0?s.empty().append(e.css({display:"block"})):s.html(e),M.rendered<0?L.queue("fx",r):(F=0,r(t.noop)),M):d}function S(e,i){var o=j.title;return M.rendered&&e?(t.isFunction(e)&&(e=e.call(n,X.event,M)),e===d?k(d):(e.jquery&&e.length>0?o.empty().append(e.css({display:"block"})):o.html(e),M.redraw(),i!==d&&M.rendered&&L.is(":visible")&&M.reposition(X.event),void 0)):d}function A(t){var e=j.button,i=j.title;if(!M.rendered)return d;t?(i||D(),q()):e.remove()}function D(){var e=N+"-title";j.titlebar&&k(),j.titlebar=t("
    ",{class:v+"-titlebar "+(o.style.widget?"ui-widget-header":"")}).append(j.title=t("
    ",{id:e,class:v+"-title"})).insertBefore(j.content),o.content.title.button?q():M.rendered&&M.redraw()}function q(){var e=o.content.title.button,i="string"==typeof e,n=i?e:"Close tooltip";j.button&&j.button.remove(),e.jquery?j.button=e:j.button=t("",{class:"ui-state-default "+(o.style.widget?"":v+"-icon"),title:n,"aria-label":n}).prepend(t("",{class:"ui-icon ui-icon-close",html:"×"})),j.button.appendTo(j.titlebar).attr("role","button").hover(function(e){t(this).toggleClass("ui-state-hover","mouseenter"===e.type)}).click(function(t){return L.hasClass(g)||M.hide(t),d}).bind("mousedown keydown mouseup keyup mouseout",function(e){t(this).toggleClass("ui-state-active ui-state-focus","down"===e.type.substr(-4))}),M.redraw()}function k(t){j.title&&(j.titlebar.remove(),j.titlebar=j.title=j.button=p,t!==d&&M.reposition())}function O(){var t=o.style.widget;L.toggleClass(m,t).toggleClass(w,!t),j.content.toggleClass(m+"-content",t),j.titlebar&&j.titlebar.toggleClass(m+"-header",t),j.button&&j.button.toggleClass(v+"-icon",!t)}function _(t){for(var e,i=0,n=o,r=t.split(".");n=n[r[i++]];)i0&&!t("#"+r).length&&(L[0].id=r,j.content[0].id=r+"-content",j.title[0].id=r+"-title")},"^content.text$":function(t,e,i){z(i)},"^content.title.text$":function(t,e,i){if(!i)return k();!j.title&&i&&D(),S(i)},"^content.title.button$":function(t,e,i){A(i)},"^position.(my|at)$":function(t,e,i){"string"==typeof i&&(t[e]=new l.Corner(i))},"^position.container$":function(t,e,i){M.rendered&&L.appendTo(i)},"^show.ready$":function(){M.rendered?M.toggle(h):M.render(1)},"^style.classes$":function(t,e,i){L.attr("class",v+" qtip ui-helper-reset "+i)},"^style.widget|content.title":O,"^events.(render|show|move|hide|focus|blur)$":function(e,i,n){L[(t.isFunction(n)?"":"un")+"bind"]("tooltip"+i,n)},"^(show|hide|position).(event|target|fixed|inactive|leave|distance|viewport|adjust)":function(){var t=o.position;L.attr("tracking","mouse"===t.target&&t.adjust.mouse),E(),P()}},t.extend(M,{render:function(e){if(M.rendered)return M;var i=o.content.title.text,r=o.position,s=t.Event("tooltiprender");return t.attr(n[0],"aria-describedby",N),L=j.tooltip=t("
    ",{id:N,class:v+" qtip ui-helper-reset "+w+" "+o.style.classes,width:o.style.width||"",height:o.style.height||"",tracking:"mouse"===r.target&&r.adjust.mouse,role:"alert","aria-live":"polite","aria-describedby":N+"-content","aria-hidden":h}).toggleClass(g,X.disabled).data("qtip",M).appendTo(o.position.container).append(j.content=t("
    ",{class:v+"-content",id:N+"-content"})),M.rendered=-1,F=1,B=1,i&&(D(),S(i,d)),z(o.content.text,d),M.rendered=h,O(),t.each(o.events,function(e,i){t.isFunction(i)&&L.bind("toggle"===e?"tooltipshow tooltiphide":"tooltip"+e,i)}),t.each(l,function(){"render"===this.initialize&&this(M)}),P(),L.queue("fx",function(t){s.originalEvent=X.event,L.trigger(s,[M]),F=0,B=0,M.redraw(),(o.show.ready||e)&&M.toggle(h,X.event),t()}),M},get:function(t){var e,i;switch(t.toLowerCase()){case"dimensions":e={height:L.outerHeight(),width:L.outerWidth()};break;case"offset":e=l.offset(L,o.position.container);break;default:i=_(t.toLowerCase()),e=i[0][i[1]],e=e.precedance?e.string():e}return e},set:function(e,i){function n(t,e){var i,n,o;for(i in f)for(n in f[i])(o=new RegExp(n,"i").exec(t))&&(e.push(o),f[i][n].apply(M,e))}var s,a=/^position\.(my|at|adjust|target|container)|style|content|show\.ready/i,l=/^content\.(title|attr)|style/i,c=d,u=d,f=M.checks;return"string"==typeof e?(s=e,e={},e[s]=i):e=t.extend(h,{},e),t.each(e,function(i,n){var o,r=_(i.toLowerCase());o=r[0][r[1]],r[0][r[1]]="object"===(void 0===n?"undefined":_typeof(n))&&n.nodeType?t(n):n,e[i]=[r[0],r[1],n,o],c=a.test(i)||c,u=l.test(i)||u}),r(o),B=F=1,t.each(e,n),B=F=0,L.is(":visible")&&M.rendered&&(c&&M.reposition("mouse"===o.position.target?p:X.event),u&&M.redraw()),M},toggle:function(e,i){function n(){e?(t.browser.msie&&L[0].style.removeAttribute("filter"),L.css("overflow",""),"string"==typeof l.autofocus&&t(l.autofocus,L).focus(),r=t.Event("tooltipvisible"),r.originalEvent=i?X.event:p,L.trigger(r,[M])):L.css({display:"",visibility:"",opacity:"",left:"",top:""})}if(!M.rendered){if(!e)return M;M.render(1)}var r,a=e?"show":"hide",l=o[a],f=L.is(":visible"),v=!i||o[a].target.length<2||X.target[0]===i.target,m=o.position,g=o.content;if((void 0===e?"undefined":_typeof(e)).search("boolean|number")&&(e=!f),!L.is(":animated")&&f===e&&v)return M;if(i){if(/over|enter/.test(i.type)&&/out|leave/.test(X.event.type)&&i.target===o.show.target[0]&&L.has(i.relatedTarget).length)return M;X.event=t.extend({},i)}return r=t.Event("tooltip"+a),r.originalEvent=i?X.event:p,L.trigger(r,[M,90]),r.isDefaultPrevented()?M:(t.attr(L[0],"aria-hidden",!e),e?(X.origin=t.extend({},c),M.focus(i),t.isFunction(g.text)&&z(g.text,d),t.isFunction(g.title.text)&&S(g.title.text,d),!u&&"mouse"===m.target&&m.adjust.mouse&&(t(document).bind("mousemove.qtip",function(t){c={pageX:t.pageX,pageY:t.pageY,type:"mousemove"}}),u=h),M.reposition(i),l.solo&&t(y,l.solo).not(L).qtip("hide",r)):(clearTimeout(M.timers.show),delete X.origin,u&&!t(y+'[tracking="true"]:visible',l.solo).not(L).length&&(t(document).unbind("mousemove.qtip"),u=d),M.blur(i)),v&&L.stop(0,1),l.effect===d?(L[a](),n.call(L)):t.isFunction(l.effect)?(l.effect.call(L,M),L.queue("fx",function(t){n(),t()})):L.fadeTo(90,e?1:0,n),e&&l.target.trigger("qtip-"+s+"-inactive"),M)},show:function(t){return M.toggle(h,t)},hide:function(t){return M.toggle(d,t)},focus:function(e){if(!M.rendered)return M;var i,n=t(y),o=parseInt(L[0].style.zIndex,10),r=a.zindex+n.length,s=t.extend({},e);return L.hasClass(b)||(i=t.Event("tooltipfocus"),i.originalEvent=s,L.trigger(i,[M,r]),i.isDefaultPrevented()||(o!==r&&(n.each(function(){this.style.zIndex>o&&(this.style.zIndex=this.style.zIndex-1)}),n.filter("."+b).qtip("blur",s)),L.addClass(b)[0].style.zIndex=r)),M},blur:function(e){var i,n=t.extend({},e);return L.removeClass(b),i=t.Event("tooltipblur"),i.originalEvent=n,L.trigger(i,[M]),M},reposition:function(i,n){if(!M.rendered||B)return M;B=1;var r=o.position.target,s=o.position,a=s.my,u=s.at,h=s.adjust,p=h.method.split(" "),f=L.outerWidth(),m=L.outerHeight(),g=0,y=0,w=t.Event("tooltipmove"),b="fixed"===L.css("position"),T=s.viewport,x={left:0,top:0},I=M.plugins.tip,C={horizontal:p[0],vertical:p[1]||p[0],left:function(t){var e="shift"===C.horizontal,i=T.offset.left+T.scrollLeft,n="left"===a.x?f:"right"===a.x?-f:-f/2,o="left"===u.x?g:"right"===u.x?-g:-g/2,r=I&&I.size?I.size.width||0:0,s=I&&I.corner&&"x"===I.corner.precedance&&!e?r:0,l=i-t+s,c=t+f-T.width-i+s,d=n-("x"===a.precedance||a.x===a.y?o:0),p="center"===a.x;return e?(s=I&&I.corner&&"y"===I.corner.precedance?r:0,d=("left"===a.x?1:-1)*n-s,x.left+=l>0?l:c>0?-c:0,x.left=Math.max(T.offset.left+(s&&"center"===I.corner.x?I.offset:0),t-d,Math.min(Math.max(T.offset.left+T.width,t+d),x.left))):(l>0&&("left"!==a.x||c>0)?x.left-=d+(p?0:2*h.x):c>0&&("right"!==a.x||l>0)&&(x.left-=p?-d:d+2*h.x),x.left!==t&&p&&(x.left-=h.x),x.leftc&&(x.left=t)),x.left-t},top:function(t){var e="shift"===C.vertical,i=T.offset.top+T.scrollTop,n="top"===a.y?m:"bottom"===a.y?-m:-m/2,o="top"===u.y?y:"bottom"===u.y?-y:-y/2,r=I&&I.size?I.size.height||0:0,s=I&&I.corner&&"y"===I.corner.precedance&&!e?r:0,l=i-t+s,c=t+m-T.height-i+s,d=n-("y"===a.precedance||a.x===a.y?o:0),p="center"===a.y;return e?(s=I&&I.corner&&"x"===I.corner.precedance?r:0,d=("top"===a.y?1:-1)*n-s,x.top+=l>0?l:c>0?-c:0,x.top=Math.max(T.offset.top+(s&&"center"===I.corner.x?I.offset:0),t-d,Math.min(Math.max(T.offset.top+T.height,t+d),x.top))):(l>0&&("top"!==a.y||c>0)?x.top-=d+(p?0:2*h.y):c>0&&("bottom"!==a.y||l>0)&&(x.top-=p?-d:d+2*h.y),x.top!==t&&p&&(x.top-=h.y),x.top<0&&-x.top>c&&(x.top=t)),x.top-t}};if(t.isArray(r)&&2===r.length)u={x:"left",y:"top"},x={left:r[0],top:r[1]};else if("mouse"===r&&(i&&i.pageX||X.event.pageX))u={x:"left",y:"top"},i=(!i||"resize"!==i.type&&"scroll"!==i.type?i&&i.pageX&&"mousemove"===i.type?i:!c||!c.pageX||!h.mouse&&i&&i.pageX?!h.mouse&&X.origin&&X.origin.pageX?X.origin:i:{pageX:c.pageX,pageY:c.pageY}:X.event)||i||X.event||c||{},x={top:i.pageY,left:i.pageX};else{if("event"===r?r=i&&i.target&&"scroll"!==i.type&&"resize"!==i.type?X.target=t(i.target):X.target:X.target=t(r),r=t(r).eq(0),0===r.length)return M;r[0]===document||r[0]===e?(g=l.iOS?e.innerWidth:r.width(),y=l.iOS?e.innerHeight:r.height(),r[0]===e&&(x={top:!b||l.iOS?(T||r).scrollTop():0,left:!b||l.iOS?(T||r).scrollLeft():0})):r.is("area")&&l.imagemap?x=l.imagemap(r,u):"http://www.w3.org/2000/svg"===r[0].namespaceURI&&l.svg?x=l.svg(r,u):(g=r.outerWidth(),y=r.outerHeight(),x=l.offset(r,s.container,b)),x.offset&&(g=x.width,y=x.height,x=x.offset),x.left+="right"===u.x?g:"center"===u.x?g/2:0,x.top+="bottom"===u.y?y:"center"===u.y?y/2:0}return x.left+=h.x+("right"===a.x?-f:"center"===a.x?-f/2:0),x.top+=h.y+("bottom"===a.y?-m:"center"===a.y?-m/2:0),T.jquery&&r[0]!==e&&r[0]!==Y&&C.vertical+C.horizontal!=="nonenone"?(T={elem:T,height:T[(T[0]===e?"h":"outerH")+"eight"](),width:T[(T[0]===e?"w":"outerW")+"idth"](),scrollLeft:b?0:T.scrollLeft(),scrollTop:b?0:T.scrollTop(),offset:T.offset()||{left:0,top:0}},x.adjusted={left:"none"!==C.horizontal?C.left(x.left):0,top:"none"!==C.vertical?C.top(x.top):0}):x.adjusted={left:0,top:0},L.attr("class",function(e,i){return t.attr(this,"class").replace(/ui-tooltip-pos-\w+/i,"")}).addClass(v+"-pos-"+a.abbreviation()),w.originalEvent=t.extend({},i),L.trigger(w,[M,x,T.elem||T]),w.isDefaultPrevented()?M:(delete x.adjusted,n===d||isNaN(x.left)||isNaN(x.top)||"mouse"===r||!t.isFunction(s.effect)?L.css(x):t.isFunction(s.effect)&&(s.effect.call(L,M,t.extend({},x)),L.queue(function(e){t(this).css({opacity:"",height:""}),t.browser.msie&&this.style.removeAttribute("filter"),e()})),B=0,M)},redraw:function(){if(M.rendered<1||F)return M;var t,e,i,n,r=o.position.container;return F=1,o.style.height&&L.css("height",o.style.height),o.style.width?L.css("width",o.style.width):(L.css("width","").addClass(x),e=L.width()+1,i=L.css("max-width")||"",n=L.css("min-width")||"",t=(i+n).indexOf("%")>-1?r.width()/100:0,i=(i.indexOf("%")>-1?t:1)*parseInt(i,10)||e,n=(n.indexOf("%")>-1?t:1)*parseInt(n,10)||0,e=i+n?Math.min(Math.max(e,n),i):e,L.css("width",Math.round(e)).removeClass(x)),F=0,M},disable:function(e){return"boolean"!=typeof e&&(e=!L.hasClass(g)&&!X.disabled),M.rendered?(L.toggleClass(g,e),t.attr(L[0],"aria-disabled",e)):X.disabled=!!e,M},enable:function(){return M.disable(d)},destroy:function(){var e=n[0],i=t.attr(e,C);return M.rendered&&(L.remove(),t.each(M.plugins,function(){this.destroy&&this.destroy()})),clearTimeout(M.timers.show),clearTimeout(M.timers.hide),E(),t.removeData(e,"qtip"),o.suppress&&i&&(t.attr(e,"title",i),n.removeAttr(C)),n.removeAttr("aria-describedby").unbind(".qtip"),delete f[M.id],n}})}function r(e){var i;return e&&"object"===(void 0===e?"undefined":_typeof(e))?("object"!==_typeof(e.metadata)&&(e.metadata={type:e.metadata}),"content"in e&&(("object"!==_typeof(e.content)||e.content.jquery)&&(e.content={text:e.content}),i=e.content.text||d,!t.isFunction(i)&&(!i&&!i.attr||i.length<1||"object"===(void 0===i?"undefined":_typeof(i))&&!i.jquery)&&(e.content.text=d),"title"in e.content&&("object"!==_typeof(e.content.title)&&(e.content.title={text:e.content.title}),i=e.content.title.text||d,!t.isFunction(i)&&(!i&&!i.attr||i.length<1||"object"===(void 0===i?"undefined":_typeof(i))&&!i.jquery)&&(e.content.title.text=d))),"position"in e&&"object"!==_typeof(e.position)&&(e.position={my:e.position,at:e.position}),"show"in e&&"object"!==_typeof(e.show)&&(e.show.jquery?e.show={target:e.show}:e.show={event:e.show}),"hide"in e&&"object"!==_typeof(e.hide)&&(e.hide.jquery?e.hide={target:e.hide}:e.hide={event:e.hide}),"style"in e&&"object"!==_typeof(e.style)&&(e.style={classes:e.style}),t.each(l,function(){this.sanitize&&this.sanitize(e)}),e):d}function s(){if(s.history=s.history||[],s.history.push(arguments),"object"===("undefined"==typeof console?"undefined":_typeof(console))){var t=console[console.warn?"warn":"log"],e=Array.prototype.slice.call(arguments);"string"==typeof arguments[0]&&(e[0]="qTip2: "+e[0]),t.apply?t.apply(console,e):t(e)}}var a,l,c,u,h=!0,d=!1,p=null,f={},v="ui-tooltip",m="ui-widget",g="ui-state-disabled",y="div.qtip."+v,w=v+"-default",b=v+"-focus",T=v+"-hover",x=v+"-fluid",I="_replacedByqTip",C="oldtitle";a=t.fn.qtip=function(e,n,o){var s=(""+e).toLowerCase(),l=p,c="disable"===s?[h]:t.makeArray(arguments).slice(1),u=c[c.length-1],f=this[0]?t.data(this[0],"qtip"):p;return!arguments.length&&f||"api"===s?f:"string"==typeof e?(this.each(function(){var e=t.data(this,"qtip");if(!e)return h;if(u&&u.timeStamp&&(e.cache.event=u),"option"!==s&&"options"!==s||!n)e[s]&&e[s].apply(e[s],c);else{if(!t.isPlainObject(n)&&o===i)return l=e.get(n),d;e.set(n,o)}}),l!==p?l:this):"object"!==(void 0===e?"undefined":_typeof(e))&&arguments.length?void 0:(f=r(t.extend(h,{},e)),a.bind.call(this,f,u))},a.bind=function(e,o){return this.each(function(r){function s(e){function n(){g.render("object"===(void 0===e?"undefined":_typeof(e))||u.show.ready),p.show.add(p.hide).unbind(m)}if(g.cache.disabled)return d;g.cache.event=t.extend({},e),g.cache.target=e?t(e.target):[i],u.show.delay>0?(clearTimeout(g.timers.show),g.timers.show=setTimeout(n,u.show.delay),v.show!==v.hide&&p.hide.bind(v.hide,function(){clearTimeout(g.timers.show)})):n()}var u,p,v,m,g,y;if(y=t.isArray(e.id)?e.id[r]:e.id,y=!y||y===d||y.length<1||f[y]?a.nextid++:f[y]=y,m=".qtip-"+y+"-create",g=n.call(this,y,e),g===d)return h;u=g.options,t.each(l,function(){"initialize"===this.initialize&&this(g)}),p={show:u.show.target,hide:u.hide.target},v={show:t.trim(""+u.show.event).replace(/ /g,m+" ")+m,hide:t.trim(""+u.hide.event).replace(/ /g,m+" ")+m},/mouse(over|enter)/i.test(v.show)&&!/mouse(out|leave)/i.test(v.hide)&&(v.hide+=" mouseleave"+m),p.show.bind("mousemove"+m,function(t){c={pageX:t.pageX,pageY:t.pageY,type:"mousemove"}}),p.show.bind(v.show,s),(u.show.ready||u.prerender)&&s(o)})},l=a.plugins={Corner:function(t){t=(""+t).replace(/([A-Z])/," $1").replace(/middle/gi,"center").toLowerCase(),this.x=(t.match(/left|right/i)||t.match(/center/)||["inherit"])[0].toLowerCase(),this.y=(t.match(/top|bottom|center/i)||["inherit"])[0].toLowerCase(),this.precedance=t.charAt(0).search(/^(t|b)/)>-1?"y":"x",this.string=function(){return"y"===this.precedance?this.y+this.x:this.x+this.y},this.abbreviation=function(){var t=this.x.substr(0,1),e=this.y.substr(0,1);return t===e?t:"c"===t||"c"!==t&&"c"!==e?e+t:t+e}},offset:function(i,n,o){function r(t,e){a.left+=e*t.scrollLeft(),a.top+=e*t.scrollTop()}var s,a=i.offset(),c=n,u=0,h=document.body;if(c){do{if("static"!==c.css("position")&&(s=c[0]===h?{left:parseInt(c.css("left"),10)||0,top:parseInt(c.css("top"),10)||0}:c.position(),a.left-=s.left+(parseInt(c.css("borderLeftWidth"),10)||0)+(parseInt(c.css("marginLeft"),10)||0),a.top-=s.top+(parseInt(c.css("borderTopWidth"),10)||0),u++),c[0]===h)break}while(c=c.offsetParent());n[0]!==h&&u>1&&r(n,1),(l.iOS<4.1&&l.iOS>3.1||!l.iOS&&o)&&r(t(e),-1)}return a},iOS:parseFloat((""+(/CPU.*OS ([0-9_]{1,3})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)||[0,""])[1]).replace("undefined","3_2").replace("_","."))||d,fn:{attr:function(e,i){if(this.length){var n=this[0],o="title",r=t.data(n,"qtip");if(e===o&&"object"===(void 0===r?"undefined":_typeof(r))&&r.options.suppress)return arguments.length<2?t.attr(n,C):(r&&r.options.content.attr===o&&r.cache.attr&&r.set("content.text",i),this.attr(C,i))}return t.fn["attr"+I].apply(this,arguments)},clone:function(e){var i=(t([]),t.fn["clone"+I].apply(this,arguments));return e||i.filter("["+C+"]").attr("title",function(){return t.attr(this,C)}).removeAttr(C),i},remove:t.ui?p:function(e,i){t(this).each(function(){i||(!e||t.filter(e,[this]).length)&&t("*",this).add(this).each(function(){t(this).triggerHandler("remove")})})}}},t.each(l.fn,function(e,i){if(!i)return h;var n=t.fn[e+I]=t.fn[e];t.fn[e]=function(){return i.apply(this,arguments)||n.apply(this,arguments)}}),a.version="nightly",a.nextid=0,a.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" "),a.zindex=15e3,a.defaults={prerender:d,id:d,overwrite:h,suppress:h,content:{text:h,attr:"title",title:{text:d,button:d}},position:{my:"top left",at:"bottom right",target:d,container:d,viewport:d,adjust:{x:0,y:0,mouse:h,resize:h,method:"flip flip"},effect:function(e,i,n){t(this).animate(i,{duration:200,queue:d})}},show:{target:d,event:"mouseenter",effect:h,delay:90,solo:d,ready:d,autofocus:d},hide:{target:d,event:"mouseleave",effect:h,delay:0,fixed:d,inactive:d,leave:"window",distance:d},style:{classes:"",widget:d,width:d,height:d},events:{render:p,move:p,show:p,hide:p,toggle:p,visible:p,focus:p,blur:p}}}(jQuery,window),function(t){var e,i,n;n=function(t){t=t.toLowerCase();var e=/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[];return{browser:e[1]||"",version:e[2]||"0"}},e=n(navigator.userAgent),i={},e.browser&&(i[e.browser]=!0,i.version=e.version),i.chrome?i.webkit=!0:i.webkit&&(i.safari=!0),t.browser=i}(jQuery);