!function(e,n,i){"function"==typeof define&&define.amd?define(["jquery.tiny"],function(t){return i(t,e,n),t.mobile}):i(e.jQuery,e,n)}(this,document,function(t,e,n,i){!function(f,t,e,v){var l,n,o="virtualMouseBindings",r="virtualTouchID",i="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),d="clientX clientY pageX pageY screenX screenY".split(" "),c=f.event.mouseHooks?f.event.mouseHooks.props:[],p=f.event.props.concat(c),a={},s=0,u=0,h=0,g=!1,m=[],k=!1,y=!1,b="addEventListener"in e,w=f(e),T=1,E=0;function x(t){for(;t&&void 0!==t.originalEvent;)t=t.originalEvent;return t}function D(t){for(var e,n,i={};t;){for(n in e=f.data(t,o))e[n]&&(i[n]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function j(){y=!0}function S(){y=!1}function X(){Y(),s=setTimeout(function(){E=s=0,m.length=0,k=!1,j()},f.vmouse.resetTimerDuration)}function Y(){s&&(clearTimeout(s),s=0)}function M(t,e,n){var i;return(n&&n[t]||!n&&function(t,e){for(var n;t;){if((n=f.data(t,o))&&(!e||n[e]))return t;t=t.parentNode}return null}(e.target,t))&&(i=function(t,e){var n,i,o,c,a,s,l,r,u,h=t.type;if((t=f.Event(t)).type=e,n=t.originalEvent,i=f.event.props,-1<h.search(/^(mouse|click)/)&&(i=p),n)for(l=i.length;l;)t[c=i[--l]]=n[c];if(-1<h.search(/mouse(down|up)|click/)&&!t.which&&(t.which=1),-1!==h.search(/^touch/)&&(h=(o=x(n)).touches,a=o.changedTouches,s=h&&h.length?h[0]:a&&a.length?a[0]:v))for(r=0,u=d.length;r<u;r++)t[c=d[r]]=s[c];return t}(e,t),f(e.target).trigger(i)),i}function P(t){var e,n=f.data(t.target,r);k||E&&E===n||(e=M("v"+t.type,t))&&(e.isDefaultPrevented()&&t.preventDefault(),e.isPropagationStopped()&&t.stopPropagation(),e.isImmediatePropagationStopped()&&t.stopImmediatePropagation())}function C(t){var e,n,i,o=x(t).touches;o&&1===o.length&&(n=D(e=t.target)).hasVirtualBinding&&(E=T++,f.data(e,r,E),Y(),S(),g=!1,i=x(t).touches[0],u=i.pageX,h=i.pageY,M("vmouseover",t,n),M("vmousedown",t,n))}function R(t){y||(g||M("vmousecancel",t,D(t.target)),g=!0,X())}function A(t){if(!y){var e=x(t).touches[0],n=g,i=f.vmouse.moveDistanceThreshold,o=D(t.target);(g=g||Math.abs(e.pageX-u)>i||Math.abs(e.pageY-h)>i)&&!n&&M("vmousecancel",t,o),M("vmousemove",t,o),X()}}function I(t){if(!y){j();var e,n,i=D(t.target);M("vmouseup",t,i),g||(e=M("vclick",t,i))&&e.isDefaultPrevented()&&(n=x(t).changedTouches[0],m.push({touchID:E,x:n.clientX,y:n.clientY}),k=!0),M("vmouseout",t,i),g=!1,X()}}function H(t){var e,n=f.data(t,o);if(n)for(e in n)if(n[e])return!0;return!1}function q(){}function O(n){var i=n.substr(1);return{setup:function(){H(this)||f.data(this,o,{}),f.data(this,o)[n]=!0,a[n]=(a[n]||0)+1,1===a[n]&&w.bind(i,P),f(this).bind(i,q),b&&(a.touchstart=(a.touchstart||0)+1,1===a.touchstart&&w.bind("touchstart",C).bind("touchend",I).bind("touchmove",A).bind("scroll",R))},teardown:function(){--a[n],a[n]||w.unbind(i,P),b&&(--a.touchstart,a.touchstart||w.unbind("touchstart",C).unbind("touchmove",A).unbind("touchend",I).unbind("scroll",R));var t=f(this),e=f.data(this,o);e&&(e[n]=!1),t.unbind(i,q),H(this)||t.removeData(o)}}}for(f.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},n=0;n<i.length;n++)f.event.special[i[n]]=O(i[n]);b&&e.addEventListener("click",function(t){var e,n,i,o,c,a=m.length,s=t.target;if(a)for(e=t.clientX,n=t.clientY,l=f.vmouse.clickDistanceThreshold,i=s;i;){for(o=0;o<a;o++)if(c=m[o],0,i===s&&Math.abs(c.x-e)<l&&Math.abs(c.y-n)<l||f.data(i,r)===c.touchID)return t.preventDefault(),void t.stopPropagation();i=i.parentNode}},!0)}(t,0,n)}),function(c){var a=c.event.dispatch||c.event.handle,s=c.event.special,o="D"+ +new Date,n="D"+(+new Date+1);s.scrollstart={setup:function(t){function e(t){var e=arguments;n?clearTimeout(n):(t.type="scrollstart",a.apply(this,e)),n=setTimeout(function(){n=null},i.latency)}var n,i=c.extend({latency:s.scrollstop.latency},t);c(this).bind("scroll",e).data(o,e)},teardown:function(){c(this).unbind("scroll",c(this).data(o))}},s.scrollstop={latency:250,setup:function(t){function e(t){var e=this,n=arguments;i&&clearTimeout(i),i=setTimeout(function(){i=null,t.type="scrollstop",a.apply(e,n)},o.latency)}var i,o=c.extend({latency:s.scrollstop.latency},t);c(this).bind("scroll",e).data(n,e)},teardown:function(){c(this).unbind("scroll",c(this).data(n))}}}(jQuery),jQuery.fn.caret=function(t){var e=this[0],n=e&&"true"===e.contentEditable;if(0!=arguments.length)return e&&(-1==t&&(t=this[n?"text":"val"]().length),window.getSelection?n?(e.focus(),window.getSelection().collapse(e.firstChild,t)):e.setSelectionRange(t,t):document.body.createTextRange&&(n?((c=document.body.createTextRange()).moveToElementText(e),c.moveStart("character",t),c.collapse(!0)):(c=e.createTextRange()).move("character",t),c.select()),n||e.focus()),this;if(e){if(window.getSelection)return n?(e.focus(),(o=(i=window.getSelection().getRangeAt(0)).cloneRange()).selectNodeContents(e),o.setEnd(i.endContainer,i.endOffset),o.toString().length):e.selectionStart;if(document.selection){if(e.focus(),n){var i=document.selection.createRange();return(o=document.body.createTextRange()).moveToElementText(e),o.setEndPoint("EndToEnd",i),o.text.length}t=0;var o,c=e.createTextRange(),a=(o=document.selection.createRange().duplicate()).getBookmark();for(c.moveToBookmark(a);0!==c.moveStart("character",-1);)t++;return t}if(e.selectionStart)return e.selectionStart}},function(o){function c(t){var e,n;for(e=0,n=s.length;e<n;e++){if(Math.abs(t.pageX-s[e].x)<30&&Math.abs(t.pageY-s[e].y)<30)t.target=null,t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault(),o(t.target).is("input:not([type=submit]),select,textarea")&&(t.target=null)}}var a=o([]),s=[],l={},e=!1;"ontouchstart"in window&&(e=!0);function r(){s.splice(0,1)}function i(t){l.hasMoved=!0,o(t).off("touchmove",o.event.special.fastclick.touchmove)}var u;o.event.special.fastclick={touchstart:function(t){l.startX=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&t.originalEvent.touches[0].pageX||0,l.startY=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&t.originalEvent.touches[0].pageY||0,l.hasMoved=!1,o(this).on("touchmove",o.event.special.fastclick.touchmove),o.event.special.fastclick.isTouch=this,o(window).on("scrollstart",o.event.special.fastclick.scroll)},doclick:function(){var t=o(this);t.off("click",o.event.special.fastclick.handler),o.event.special.fastclick.isTouch||t.one("click",o.event.special.fastclick.handler)},touchcancel:function(){o.event.special.fastclick.isTouch=!1,o(window).off("scrollstart",o.event.special.fastclick.scroll)},isTouch:!1,touchmove:function(t){var e=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&t.originalEvent.touches[0].pageX||0,n=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0]&&t.originalEvent.touches[0].pageY||0;(40<Math.abs(e-l.startX)||40<Math.abs(n-l.startY))&&i(o(this))},add:function(t){if(e){var n=o(this),i=(n.data("objHandlers")[t.guid]=t).handler;t.handler=function(t){if(n.off("touchmove",o.event.special.fastclick.touchmove),!l.hasMoved){r(),window.clearTimeout(u),s.push({x:l.startX,y:l.startY}),u=window.setTimeout(r,2500);o([]);var e=arguments;o.each(n.data("objHandlers"),function(){this.selector?o(this.selector,n).each(function(){(this==t.target||0<o(this).has(t.target).length)&&i.apply(this,e)}):(n[0]==t.target||0<n.has(t.target).length)&&i.apply(n,e)})}}}},scroll:function(){i(o.event.special.fastclick.isTouch)},setup:function(t,e,n){var i=o(this);i.on("mousedown",o.event.special.fastclick.doclick),a=a.add(i),i.data("objHandlers")||(i.data("objHandlers",{}),i.on("touchstart",o.event.special.fastclick.touchstart),i.on("touchend",o.event.special.fastclick.handler),i.on("mouseup touchcancel",o.event.special.fastclick.touchcancel)),l.ghostbuster||(o(document).on("click vclick mousedown mouseup",c),l.ghostbuster=!0)},teardown:function(t){var e=o(this);a=a.not(e),e.off("touchstart",o.event.special.fastclick.touchstart),e.off("touchmove",o.event.special.fastclick.touchmove),e.off("touchend",o.event.special.fastclick.handler),e.off("mouseup touchcancel",o.event.special.fastclick.touchcancel),e.off("click",o.event.special.fastclick.handler),e.off("mousedown",o.event.special.fastclick.doclick),o(window).off("scrollstart",o.event.special.fastclick.scroll),0==a.length&&(o(document).off("click vclick mousedown",c),l.ghostbuster=!1)},remove:function(t){e&&delete o(this).data("objHandlers")[t.guid]},handler:function(t){var e=t.type;t.type="fastclick",o(window).off("scrollstart",o.event.special.fastclick.scroll),o.event.trigger.call(this,t,{},this,!0),o(document.activeElement).is(t.target)||o(document.activeElement).blur(),t.type=e}}}(jQuery),function(a){var t=a.fn.jquery.split("."),e=parseInt(t[0]),n=parseInt(t[1]),s=e<1||1==e&&n<7;function o(t,e,n){var i=function(t){return s?t.data("events"):a._data(t[0]).events}(t),o=i[e];if(s)n?i.live.unshift(i.live.pop()):o.unshift(o.pop());else{var c=n?o.splice(o.delegateCount-1,1)[0]:o.pop();o.splice(n?0:o.delegateCount||0,0,c)}}function c(t,e,n){var i=e.split(/\s+/);t.each(function(){for(var t=0;t<i.length;++t){var e=a.trim(i[t]).match(/[^\.]+/i)[0];o(a(this),e,n)}})}function i(e){a.fn[e+"First"]=function(){var t=a.makeArray(arguments).shift();return t&&(a.fn[e].apply(this,arguments),c(this,t)),this}}i("bind"),i("one"),a.fn.delegateFirst=function(){var t=a.makeArray(arguments),e=t[1];return e&&(t.splice(0,2),a.fn.delegate.apply(this,arguments),c(this,e,!0)),this},a.fn.liveFirst=function(){var t=a.makeArray(arguments);return t.unshift(this.selector),a.fn.delegateFirst.apply(a(document),t),this},s||(a.fn.onFirst=function(t,e){var n=a(this),i="string"==typeof e;if(a.fn.on.apply(n,arguments),"object"==typeof t)for(type in t)t.hasOwnProperty(type)&&c(n,type,i);else"string"==typeof t&&c(n,t,i);return n})}(jQuery),function(n){var i=n.fn.on,o=n.fn.off,c=n.fn.trigger,a=n.fn.one,t="-webkit-user-select : none;-ms-user-select : none;user-select : none;-ms-user-select : none;-webkit-touch-callout : none;-ms-content-zooming : none;-webkit-user-drag : none;-webkit-tap-highlight-color: rgba(0,0,0,0);touch-action : manipulation;";n("head style[data-touch]").length<=0&&n("head").append('<style type="text/css" data-touch="true">.touch-element-cl{'+t+"} .touch-element-swipeh-cl{-webkit-user-select : none;-ms-user-select : none;user-select : none;-ms-user-select : none;-webkit-touch-callout : none;-ms-content-zooming : none;-webkit-user-drag : none;-webkit-tap-highlight-color: rgba(0,0,0,0);touch-action : manipulation;touch-action:pan-y;} .touch-element-swipev-cl{-webkit-user-select : none;-ms-user-select : none;user-select : none;-ms-user-select : none;-webkit-touch-callout : none;-ms-content-zooming : none;-webkit-user-drag : none;-webkit-tap-highlight-color: rgba(0,0,0,0);touch-action : manipulation;touch-action:pan-x;}</style>");var s=["vclick"];n.fn.on=function(){var t=Array.prototype.slice.call(arguments),e=t[0];return-1<s.indexOf(e)&&("vclick"!=e||n(this).is("input,select,textarea,label")||n(this).is(document)||n(this).is("body")||n(this).is(window)||n(this).addClass("touch-element-cl"),"vclick"==e&&(t[0]="fastclick"),(n(this).is(document)||n(this).is("body")||n(this).is(window)||n(this).is("lablel"))&&"vclick"==e&&(t[0]="vclick"),n(this).is("label")&&n(this).addClass("touch-element-cl")),"vclickjq"==e&&(t[0]="vclick"),i.apply(this,t)},n.fn.one=function(){var t=Array.prototype.slice.call(arguments),e=t[0];return-1<s.indexOf(e)&&("vclick"!=e||n(this).is("input,select,textarea,label")||n(this).is(document)||n(this).is("body")||n(this).is(window)||n(this).addClass("touch-element-cl"),"vclick"==e&&(t[0]="fastclick"),(n(this).is(document)||n(this).is("body")||n(this).is(window)||n(this).is("lablel"))&&"vclick"==e&&(t[0]="vclick"),n(this).is("label")&&n(this).addClass("touch-element-cl")),"vclickjq"==e&&(t[0]="vclick"),a.apply(this,t)},n.fn.off=function(){var t=Array.prototype.slice.call(arguments),e=t[0];return-1<s.indexOf(e)&&(n(this).removeClass("touch-element-cl touch-element-swipeh-cl touch-element-swipev-cl"),"vclick"==e&&(t[0]="fastclick"),(n(this).is(document)||n(this).is("body")||n(this).is(window))&&"vclick"==e&&(t[0]="vclick")),"vclickjq"==e&&(t[0]="vclick"),o.apply(this,t)},n.fn.trigger=function(){var t=Array.prototype.slice.call(arguments),e=t[0];return-1<s.indexOf(e)&&("vclick"==e&&(t[0]="fastclick"),(n(this).is(document)||n(this).is("body")||n(this).is(window))&&"vclick"==e&&(t[0]="vclick")),"vclickjq"==e&&(t[0]="vclick"),c.apply(this,t)}}(jQuery);