{"size": 6491, "ext": "js", "max_stars_repo_path": "js/vendor/footer/jcf.js", "max_stars_repo_name": "paulheading/BourneSt", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/vendor/footer/jcf.js", "max_issues_repo_name": "paulheading/BourneSt", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js/vendor/footer/jcf.js", "max_forks_repo_name": "paulheading/BourneSt", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 6491.0, "max_line_length": 6491, "alphanum_fraction": 0.7148359267}
!function(e,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.jcf=t(jQuery)}(this,function($){"use strict";var e="1.2.0",t=[],n={optionsKey:"jcf",dataKey:"jcf-instance",rtlClass:"jcf-rtl",focusClass:"jcf-focus",pressedClass:"jcf-pressed",disabledClass:"jcf-disabled",hiddenClass:"jcf-hidden",resetAppearanceClass:"jcf-reset-appearance",unselectableClass:"jcf-unselectable"},o="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,a=/Windows Phone/.test(navigator.userAgent);n.isMobileDevice=!(!o&&!a);var i=function(){var e=$("<style>").appendTo("head"),t=e.prop("sheet")||e.prop("styleSheet"),o=function(e,n,o){t.insertRule?t.insertRule(e+"{"+n+"}",o):t.addRule(e,n,o)};o("."+n.hiddenClass,"position:absolute !important;left:-9999px !important;height:1px !important;width:1px !important;margin:0 !important;border-width:0 !important;-webkit-appearance:none;-moz-appearance:none;appearance:none"),o("."+n.rtlClass+" ."+n.hiddenClass,"right:-9999px !important; left: auto !important"),o("."+n.unselectableClass,"-webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-tap-highlight-color: rgba(0,0,0,0);"),o("."+n.resetAppearanceClass,"background: none; border: none; -webkit-appearance: none; appearance: none; opacity: 0; filter: alpha(opacity=0);");var a=$("html"),i=$("body");"rtl"!==a.css("direction")&&"rtl"!==i.css("direction")||a.addClass(n.rtlClass),a.on("reset",function(){setTimeout(function(){s.refreshAll()},0)}),n.styleSheetCreated=!0};!function(){var e=navigator.pointerEnabled||navigator.msPointerEnabled,t="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,n,o={},a="jcf-";n=e?{pointerover:navigator.pointerEnabled?"pointerover":"MSPointerOver",pointerdown:navigator.pointerEnabled?"pointerdown":"MSPointerDown",pointermove:navigator.pointerEnabled?"pointermove":"MSPointerMove",pointerup:navigator.pointerEnabled?"pointerup":"MSPointerUp"}:{pointerover:"mouseover",pointerdown:"mousedown"+(t?" touchstart":""),pointermove:"mousemove"+(t?" touchmove":""),pointerup:"mouseup"+(t?" touchend":"")},$.each(n,function(e,t){$.each(t.split(" "),function(t,n){o[n]=e})}),$.each(n,function(e,t){t=t.split(" "),$.event.special[a+e]={setup:function(){var e=this;$.each(t,function(t,n){e.addEventListener?e.addEventListener(n,s,!1):e["on"+n]=s})},teardown:function(){var e=this;$.each(t,function(t,n){e.addEventListener?e.removeEventListener(n,s,!1):e["on"+n]=null})}}});var i=null,r=function(e){var t=Math.abs(e.pageX-i.x),n=Math.abs(e.pageY-i.y),o=25;return o>=t&&o>=n?!0:void 0},s=function(e){var t=e||window.event,n=null,s=o[t.type];if(e=$.event.fix(t),e.type=a+s,t.pointerType)switch(t.pointerType){case 2:e.pointerType="touch";break;case 3:e.pointerType="pen";break;case 4:e.pointerType="mouse";break;default:e.pointerType=t.pointerType}else e.pointerType=t.type.substr(0,5);return e.pageX||e.pageY||(n=t.changedTouches?t.changedTouches[0]:t,e.pageX=n.pageX,e.pageY=n.pageY),"touchend"===t.type&&(i={x:e.pageX,y:e.pageY}),"mouse"===e.pointerType&&i&&r(e)?void 0:($.event.dispatch||$.event.handle).call(this,e)}}(),function(){var e=("onwheel"in document||document.documentMode>=9?"wheel":"mousewheel DOMMouseScroll").split(" "),t="jcf-mousewheel";$.event.special[t]={setup:function(){var t=this;$.each(e,function(e,o){t.addEventListener?t.addEventListener(o,n,!1):t["on"+o]=n})},teardown:function(){var t=this;$.each(e,function(e,o){t.addEventListener?t.removeEventListener(o,n,!1):t["on"+o]=null})}};var n=function(e){var n=e||window.event;if(e=$.event.fix(n),e.type=t,"detail"in n&&(e.deltaY=-n.detail),"wheelDelta"in n&&(e.deltaY=-n.wheelDelta),"wheelDeltaY"in n&&(e.deltaY=-n.wheelDeltaY),"wheelDeltaX"in n&&(e.deltaX=-n.wheelDeltaX),"deltaY"in n&&(e.deltaY=n.deltaY),"deltaX"in n&&(e.deltaX=n.deltaX),e.delta=e.deltaY||e.deltaX,1===n.deltaMode){var o=16;e.delta*=o,e.deltaY*=o,e.deltaX*=o}return($.event.dispatch||$.event.handle).call(this,e)}}();var r={fireNativeEvent:function(e,t){$(e).each(function(){var e=this,n;e.dispatchEvent?(n=document.createEvent("HTMLEvents"),n.initEvent(t,!0,!0),e.dispatchEvent(n)):document.createEventObject&&(n=document.createEventObject(),n.target=e,e.fireEvent("on"+t,n))})},bindHandlers:function(){var e=this;$.each(e,function(t,n){0===t.indexOf("on")&&$.isFunction(n)&&(e[t]=function(){return n.apply(e,arguments)})})}},s={version:e,modules:{},getOptions:function(){return $.extend({},n)},setOptions:function(e,t){arguments.length>1?this.modules[e]&&$.extend(this.modules[e].prototype.options,t):$.extend(n,e)},addModule:function(e){$.isFunction(e)&&(e=e($,window));var o=function(e){e.element.data(n.dataKey)||e.element.data(n.dataKey,this),t.push(this),this.options=$.extend({},n,this.options,a(e.element),e),this.bindHandlers(),this.init.apply(this,arguments)},a=function(e){var t=e.data(n.optionsKey),o=e.attr(n.optionsKey);if(t)return t;if(o)try{return $.parseJSON(o)}catch(a){}};o.prototype=e,$.extend(e,r),e.plugins&&$.each(e.plugins,function(e,t){$.extend(t.prototype,r)});var i=o.prototype.destroy;o.prototype.destroy=function(){this.options.element.removeData(this.options.dataKey);for(var e=t.length-1;e>=0;e--)if(t[e]===this){t.splice(e,1);break}i&&i.apply(this,arguments)},this.modules[e.name]=o},getInstance:function(e){return $(e).data(n.dataKey)},replace:function(e,t,o){var a=this,r;return n.styleSheetCreated||i(),$(e).each(function(){var e,i=$(this);r=i.data(n.dataKey),r?r.refresh():(t||$.each(a.modules,function(e,n){return n.prototype.matchElement.call(n.prototype,i)?(t=e,!1):void 0}),t&&(e=$.extend({element:i},o),r=new a.modules[t](e)))}),r},refresh:function(e){$(e).each(function(){var e=$(this).data(n.dataKey);e&&e.refresh()})},destroy:function(e){$(e).each(function(){var e=$(this).data(n.dataKey);e&&e.destroy()})},replaceAll:function(e){var t=this;$.each(this.modules,function(n,o){$(o.prototype.selector,e).each(function(){this.className.indexOf("jcf-ignore")<0&&t.replace(this,n)})})},refreshAll:function(e){if(e)$.each(this.modules,function(t,o){$(o.prototype.selector,e).each(function(){var e=$(this).data(n.dataKey);e&&e.refresh()})});else for(var o=t.length-1;o>=0;o--)t[o].refresh()},destroyAll:function(e){if(e)$.each(this.modules,function(t,o){$(o.prototype.selector,e).each(function(e,t){var o=$(t).data(n.dataKey);o&&o.destroy()})});else for(;t.length;)t[0].destroy()}};return window.jcf=s,s});