PageSourceSearch

https://www.dogma.gr/wp-content/cache/min/1/wp-content/themes/dogma/js/jquery.main.js?ver=1787732719

js dogma.gr collected 2026-10-02 07:19:03 UTC 51,673 bytes, 82 lines download raw bytes

1jQuery(function(){initCustomForms();initCarousel();initPopups();initOpenClose()});function initCustomForms(){jcf.replaceAll()}
2function initCarousel(){jQuery('div.mobile-carousel-gallery').scrollGallery({mask:'div.mask',slider:'div.slideset',slides:'div.slide',btnPrev:'a.btn-prev',btnNext:'a.btn-next',pagerLinks:'.pagination li',circularRotation:!1,maskAutoSize:!0,autoRotation:!1,switchTime:3000,animSpeed:500,step:1});jQuery('div.carousel').scrollGallery({mask:'div.mask',slider:'div.slideset',slides:'div.slide',btnPrev:'a.prev',btnNext:'a.next',pagerLinks:'.pagination li',stretchSlideToMask:!0,circularRotation:!1,pauseOnHover:!1,maskAutoSize:!0,autoRotation:!1,switchTime:3000,animSpeed:500,step:1})}
3function initPopups(){jQuery('.popup-holder').contentPopup({mode:'click',hideOnClickLink:!1})}
4function initOpenClose(){jQuery('div.mobile-open-close').openClose({activeClass:'active',opener:'.opener',slider:'.slide',animSpeed:400,effect:'slide'})};(function($){function ScrollGallery(options){this.options=$.extend({mask:'div.mask',slider:'>*',slides:'>*',activeClass:'active',disabledClass:'disabled',btnPrev:'a.btn-prev',btnNext:'a.btn-next',generatePagination:!1,pagerList:'<ul>',pagerListItem:'<li><a href="#"></a></li>',pagerListItemText:'a',pagerLinks:'.pagination li',currentNumber:'span.current-num',totalNumber:'span.total-num',btnPlay:'.btn-play',btnPause:'.btn-pause',btnPlayPause:'.btn-play-pause',galleryReadyClass:'gallery-js-ready',autorotationActiveClass:'autorotation-active',autorotationDisabledClass:'autorotation-disabled',stretchSlideToMask:!1,circularRotation:!0,disableWhileAnimating:!1,autoRotation:!1,pauseOnHover:isTouchDevice?!1:!0,maskAutoSize:!1,switchTime:4000,animSpeed:600,event:'click',swipeThreshold:15,handleTouch:!0,vertical:!1,useTranslate3D:!1,step:!1},options);this.init()}
5ScrollGallery.prototype={init:function(){if(this.options.holder){this.findElements();this.attachEvents();this.refreshPosition();this.refreshState(!0);this.resumeRotation();this.makeCallback('onInit',this)}},findElements:function(){this.fullSizeFunction=this.options.vertical?'outerHeight':'outerWidth';this.innerSizeFunction=this.options.vertical?'height':'width';this.slideSizeFunction='outerHeight';this.maskSizeProperty='height';this.animProperty=this.options.vertical?'marginTop':'marginLeft';this.gallery=$(this.options.holder).addClass(this.options.galleryReadyClass);this.mask=this.gallery.find(this.options.mask);this.slider=this.mask.find(this.options.slider);this.slides=this.slider.find(this.options.slides);this.btnPrev=this.gallery.find(this.options.btnPrev);this.btnNext=this.gallery.find(this.options.btnNext);this.currentStep=0;this.stepsCount=0;if(this.options.step===!1){var activeSlide=this.slides.filter('.'+this.options.activeClass);if(activeSlide.length){this.currentStep=this.slides.index(activeSlide)}}
6this.calculateOffsets();if(typeof this.options.generatePagination==='string'){this.pagerLinks=$();this.buildPagination()}else{this.pagerLinks=this.gallery.find(this.options.pagerLinks);this.attachPaginationEvents()}
7this.btnPlay=this.gallery.find(this.options.btnPlay);this.btnPause=this.gallery.find(this.options.btnPause);this.btnPlayPause=this.gallery.find(this.options.btnPlayPause);this.curNum=this.gallery.find(this.options.currentNumber);this.allNum=this.gallery.find(this.options.totalNumber)},attachEvents:function(){var self=this;this.bindHandlers(['onWindowResize']);$(window).bind('load resize orientationchange',this.onWindowResize);if(this.btnPrev.length){this.prevSlideHandler=function(e){e.preventDefault();self.prevSlide()};this.btnPrev.bind(this.options.event,this.prevSlideHandler)}
8if(this.btnNext.length){this.nextSlideHandler=function(e){e.preventDefault();self.nextSlide()};this.btnNext.bind(this.options.event,this.nextSlideHandler)}
9if(this.options.pauseOnHover&&!isTouchDevice){this.hoverHandler=function(){if(self.options.autoRotation){self.galleryHover=!0;self.pauseRotation()}};this.leaveHandler=function(){if(self.options.autoRotation){self.galleryHover=!1;self.resumeRotation()}};this.gallery.bind({mouseenter:this.hoverHandler,mouseleave:this.leaveHandler})}
10if(this.btnPlay.length){this.btnPlayHandler=function(e){e.preventDefault();self.startRotation()};this.btnPlay.bind(this.options.event,this.btnPlayHandler)}
11if(this.btnPause.length){this.btnPauseHandler=function(e){e.preventDefault();self.stopRotation()};this.btnPause.bind(this.options.event,this.btnPauseHandler)}
12if(this.btnPlayPause.length){this.btnPlayPauseHandler=function(e){e.preventDefault();if(!self.gallery.hasClass(self.options.autorotationActiveClass)){self.startRotation()}else{self.stopRotation()}};this.btnPlayPause.bind(this.options.event,this.btnPlayPauseHandler)}
13if(isTouchDevice&&this.options.useTranslate3D){this.slider.css({'-webkit-transform':'translate3d(0px, 0px, 0px)'})}
14if(isTouchDevice&&this.options.handleTouch&&window.Hammer&&this.mask.length){this.swipeHandler=new Hammer.Manager(this.mask[0]);this.swipeHandler.add(new Hammer.Pan({direction:self.options.vertical?Hammer.DIRECTION_VERTICAL:Hammer.DIRECTION_HORIZONTAL,threshold:self.options.swipeThreshold}));this.swipeHandler.on('panstart',function(){if(self.galleryAnimating){self.swipeHandler.stop()}else{self.pauseRotation();self.originalOffset=parseFloat(self.slider.css(self.animProperty))}}).on('panmove',function(e){var tmpOffset=self.originalOffset+e[self.options.vertical?'deltaY':'deltaX'];tmpOffset=Math.max(Math.min(0,tmpOffset),self.maxOffset);self.slider.css(self.animProperty,tmpOffset)}).on('panend',function(e){self.resumeRotation();if(e.distance>self.options.swipeThreshold){if(e.offsetDirection===Hammer.DIRECTION_RIGHT||e.offsetDirection===Hammer.DIRECTION_DOWN){self.nextSlide()}else{self.prevSlide()}}else{self.switchSlide()}})}},onWindowResize:function(){if(!this.galleryAnimating){this.calculateOffsets();this.refreshPosition();this.buildPagination();this.refreshState();this.resizeQueue=!1}else{this.resizeQueue=!0}},refreshPosition:function(){this.currentStep=Math.min(this.currentStep,this.stepsCount-1);this.tmpProps={};this.tmpProps[this.animProperty]=this.getStepOffset();this.slider.stop().css(this.tmpProps)}
14,calculateOffsets:function(){var self=this,tmpOffset,tmpStep;if(this.options.stretchSlideToMask){var tmpObj={};tmpObj[this.innerSizeFunction]=this.mask[this.innerSizeFunction]();this.slides.css(tmpObj)}
15this.maskSize=this.mask[this.innerSizeFunction]();this.sumSize=this.getSumSize();this.maxOffset=this.maskSize-this.sumSize;if(this.options.vertical&&this.options.maskAutoSize){this.options.step=1;this.stepsCount=this.slides.length;this.stepOffsets=[0];tmpOffset=0;for(var i=0;i<this.slides.length;i++){tmpOffset-=$(this.slides[i])[this.fullSizeFunction](!0);this.stepOffsets.push(tmpOffset)}
16this.maxOffset=tmpOffset;return}
17if(typeof this.options.step==='number'&&this.options.step>0){this.slideDimensions=[];this.slides.each($.proxy(function(ind,obj){self.slideDimensions.push($(obj)[self.fullSizeFunction](!0))},this));this.stepOffsets=[0];this.stepsCount=1;tmpOffset=tmpStep=0;while(tmpOffset>this.maxOffset){tmpOffset-=this.getSlideSize(tmpStep,tmpStep+this.options.step);tmpStep+=this.options.step;this.stepOffsets.push(Math.max(tmpOffset,this.maxOffset));this.stepsCount++}}else{this.stepSize=this.maskSize;this.stepsCount=1;tmpOffset=0;while(tmpOffset>this.maxOffset){tmpOffset-=this.stepSize;this.stepsCount++}}},getSumSize:function(){var sum=0;this.slides.each($.proxy(function(ind,obj){sum+=$(obj)[this.fullSizeFunction](!0)},this));this.slider.css(this.innerSizeFunction,sum);return sum},getStepOffset:function(step){step=step||this.currentStep;if(typeof this.options.step==='number'){return this.stepOffsets[this.currentStep]}else{return Math.min(0,Math.max(-this.currentStep*this.stepSize,this.maxOffset))}},getSlideSize:function(i1,i2){var sum=0;for(var i=i1;i<Math.min(i2,this.slideDimensions.length);i++){sum+=this.slideDimensions[i]}
18return sum},buildPagination:function(){if(typeof this.options.generatePagination==='string'){if(!this.pagerHolder){this.pagerHolder=this.gallery.find(this.options.generatePagination)}
19if(this.pagerHolder.length&&this.oldStepsCount!=this.stepsCount){this.oldStepsCount=this.stepsCount;this.pagerHolder.empty();this.pagerList=$(this.options.pagerList).appendTo(this.pagerHolder);for(var i=0;i<this.stepsCount;i++){$(this.options.pagerListItem).appendTo(this.pagerList).find(this.options.pagerListItemText).text(i+1)}
20this.pagerLinks=this.pagerList.children();this.attachPaginationEvents()}}},attachPaginationEvents:function(){var self=this;this.pagerLinksHandler=function(e){e.preventDefault();self.numSlide(self.pagerLinks.index(e.currentTarget))};this.pagerLinks.bind(this.options.event,this.pagerLinksHandler)},prevSlide:function(){if(!(this.options.disableWhileAnimating&&this.galleryAnimating)){if(this.currentStep>0){this.currentStep--;this.switchSlide()}else if(this.options.circularRotation){this.currentStep=this.stepsCount-1;this.switchSlide()}}},nextSlide:function(fromAutoRotation){if(!(this.options.disableWhileAnimating&&this.galleryAnimating)){if(this.currentStep<this.stepsCount-1){this.currentStep++;this.switchSlide()}else if(this.options.circularRotation||fromAutoRotation===!0){this.currentStep=0;this.switchSlide()}}},numSlide:function(c){if(this.currentStep!=c){this.currentStep=c;this.switchSlide()}},switchSlide:function(){var self=this;this.galleryAnimating=!0;this.tmpProps={};this.tmpProps[this.animProperty]=this.getStepOffset();this.slider.stop().animate(this.tmpProps,{duration:this.options.animSpeed,complete:function(){self.galleryAnimating=!1;if(self.resizeQueue){self.onWindowResize()}
21self.makeCallback('onChange',self);self.autoRotate()}});this.refreshState();this.makeCallback('onBeforeChange',this)},refreshState:function(initial){if(this.options.step===1||this.stepsCount===this.slides.length){this.slides.removeClass(this.options.activeClass).eq(this.currentStep).addClass(this.options.activeClass)}
22this.pagerLinks.removeClass(this.options.activeClass).eq(this.currentStep).addClass(this.options.activeClass);this.curNum.html(this.currentStep+1);this.allNum.html(this.stepsCount);if(this.options.maskAutoSize&&typeof this.options.step==='number'){this.tmpProps={};this.tmpProps[this.maskSizeProperty]=this.slides.eq(Math.min(this.currentStep,this.slides.length-1))[this.slideSizeFunction](!0);this.mask.stop()[initial?'css':'animate'](this.tmpProps)}
23if(!this.options.circularRotation){this.btnPrev.add(this.btnNext).removeClass(this.options.disabledClass);if(this.currentStep===0)this.btnPrev.addClass(this.options.disabledClass);if(this.currentStep===this.stepsCount-1)this.btnNext.addClass(this.options.disabledClass)}
24this.gallery.toggleClass('not-enough-slides',this.sumSize<=this.maskSize)},startRotation:function(){this.options.autoRotation=!0;this.galleryHover=!1;this.autoRotationStopped=!1;this.resumeRotation()},stopRotation:function(){this.galleryHover=!0;this.autoRotationStopped=!0;this.pauseRotation()},pauseRotation:function(){this.gallery.addClass(this.options.autorotationDisabledClass);this.gallery.removeClass(this.options.autorotationActiveClass);clearTimeout(this.timer)},resumeRotation:function(){if(!this.autoRotationStopped){this.gallery.addClass(this.options.autorotationActiveClass);this.gallery.removeClass(this.options.autorotationDisabledClass);this.autoRotate()}},autoRotate:function(){var self=this;clearTimeout(this.timer);if(this.options.autoRotation&&!this.galleryHover&&!this.autoRotationStopped){this.timer=setTimeout(function(){self.nextSlide(!0)},this.options.switchTime)}else{this.pauseRotation()}},bindHandlers:function(handlersList){var self=this;$.each(handlersList,function(index,handler){var origHandler=self[handler];self[handler]=function(){return origHandler.apply(self,arguments)}})},makeCallback:function(name){if(typeof this.options[name]==='function'){var args=Array.prototype.slice.call(arguments);args.shift();this.options[name].apply(this,args)}},destroy:function(){$(window).unbind('load resize orientationchange',this.onWindowResize);this.btnPrev.unbind(this.options.event,this.prevSlideHandler);this.btnNext.unbind(this.options.event,this.nextSlideHandler);this.pagerLinks.unbind(this.options.event,this.pagerLinksHandler);this.gallery.unbind('mouseenter',this.hoverHandler);this.gallery.unbind('mouseleave',this.leaveHandler);this.stopRotation();this.btnPlay.unbind(this.options.event,this.btnPlayHandler);this.btnPause.unbind(this.options.event,this.btnPauseHandler);this.btnPlayPause.unbind(this.options.event,this.btnPlayPauseHandler);if(this.swipeHandler){this.swipeHandler.destroy()}
25var unneededClasses=[this.options.galleryReadyClass,this.options.autorotationActiveClass,this.options.autorotationDisabledClass];this.gallery.removeClass(unneededClasses.join(' '));this.slider.add(this.slides).removeAttr('style');if(typeof this.options.generatePagination==='string'){this.pagerHolder.empty()}}};var isTouchDevice=/Windows Phone/.test(navigator.userAgent)||('ontouchstart' in window)||window.DocumentTouch&&document instanceof DocumentTouch;$.fn.scrollGallery=function(opt){return this.each(function(){$(this).data('ScrollGallery',new ScrollGallery($.extend(opt,{holder:this})))})}}(jQuery));(function($){function ContentPopup(opt){this.options=$.extend({holder:null,popup:'.popup',btnOpen:'.open',btnClose:'.close',openClass:'popup-active',clickEvent:'click',mode:'click',hideOnClickLink:!0,hideOnClickOutside:!0,delay:50},opt);if(this.options.holder){this.holder=$(this.options.holder);this.init()}}
26ContentPopup.prototype={init:function(){this.findElements();this.attachEvents()},findElements:function(){this.popup=this.holder.find(this.options.popup);this.btnOpen=this.holder.find(this.options.btnOpen);this.btnClose=this.holder.find(this.options.btnClose)},attachEvents:function(){var self=this;this.clickMode=isTouchDevice||(self.options.mode===self.options.clickEvent);if(this.clickMode){this.btnOpen.bind(self.options.clickEvent,function(e){if(self.holder.hasClass(self.options.openClass)){if(self.options.hideOnClickLink){self.hidePopup()}}else{self.showPopup()}
27e.preventDefault()});this.outsideClickHandler=this.bind(this.outsideClickHandler,this)}else{var timer,delayedFunc=function(func){clearTimeout(timer);timer=setTimeout(function(){func.call(self)},self.options.delay)};this.btnOpen.bind('mouseover',function(){delayedFunc(self.showPopup)}).bind('mouseout',function(){delayedFunc(self.hidePopup)});this.popup.bind('mouseover',function(){delayedFunc(self.showPopup)}).bind('mouseout',function(){delayedFunc(self.hidePopup)})}
28this.btnClose.bind(self.options.clickEvent,function(e){self.hidePopup();e.preventDefault()})},outsideClickHandler:function(e){var targetNode=$((e.changedTouches?e.changedTouches[0]:e).target);if(!targetNode.closest(this.popup).length&&!targetNode.closest(this.btnOpen).length){this.hidePopup()}},showPopup:function(){this.holder.addClass(this.options.openClass);this.popup.css({display:'block'});if(this.clickMode&&this.options.hideOnClickOutside&&!this.outsideHandlerActive){this.outsideHandlerActive=!0;$(document).bind('click touchstart',this.outsideClickHandler)}},hidePopup:function(){this.holder.removeClass(this.options.openClass);this.popup.css({display:'none'});if(this.clickMode&&this.options.hideOnClickOutside&&this.outsideHandlerActive){this.outsideHandlerActive=!1;$(document).unbind('click touchstart',this.outsideClickHandler)}},bind:function(f,scope,forceArgs){return function(){return f.apply(scope,forceArgs?[forceArgs]:arguments)}}};var isTouchDevice=/Windows Phone/.test(navigator.userAgent)||('ontouchstart' in window)||window.DocumentTouch&&document instanceof DocumentTouch;$.fn.contentPopup=function(opt){return this.each(function(){new ContentPopup($.extend(opt,{holder:this}))})}}(jQuery));(function($){function OpenClose(options){this.options=$.extend({addClassBeforeAnimation:!0,hideOnClickOutside:!1,activeClass:'active',opener:'.opener',slider:'.slide',animSpeed:400,effect:'fade',event:'click'},options);this.init()}
29OpenClose.prototype={init:function(){if(this.options.holder){this.findElements();this.attachEvents();this.makeCallback('onInit',this)}},findElements:function(){this.holder=$(this.options.holder);this.opener=this.holder.find(this.options.opener);this.slider=this.holder.find(this.options.slider)},attachEvents:function(){var self=this;this.eventHandler=function(e){e.preventDefault();if(self.slider.hasClass(slideHiddenClass)){self.showSlide()}else{self.hideSlide()}};self.opener.bind(self.options.event,this.eventHandler);if(self.options.event==='over'){self.opener.bind('mouseenter',function(){if(!self.holder.hasClass(self.options.activeClass)){self.showSlide()}});self.holder.bind('mouseleave',function(){self.hideSlide()})}
30self.outsideClickHandler=function(e){if(self.options.hideOnClickOutside){var target=$(e.target);if(!target.is(self.holder)&&!target.closest(self.holder).length){self.hideSlide()}}};if(this.holder.hasClass(this.options.activeClass)){$(document).bind('click touchstart',self.outsideClickHandler)}else{this.slider.addClass(slideHiddenClass)}},showSlide:function(){var self=this;if(self.options.addClassBeforeAnimation){self.holder.addClass(self.options.activeClass)}
31self.slider.removeClass(slideHiddenClass);$(document).bind('click touchstart',self.outsideClickHandler);self.makeCallback('animStart',!0);toggleEffects[self.options.effect].show({box:self.slider,speed:self.options.animSpeed,complete:function(){if(!self.options.addClassBeforeAnimation){self.holder.addClass(self.options.activeClass)}
32self.makeCallback('animEnd',!0)}})},hideSlide:function(){var self=this;if(self.options.addClassBeforeAnimation){self.holder.removeClass(self.options.activeClass)}
33$(document).unbind('click touchstart',self.outsideClickHandler);self.makeCallback('animStart',!1);toggleEffects[self.options.effect].hide({box:self.slider,speed:self.options.animSpeed,complete:function(){if(!self.options.addClassBeforeAnimation){self.holder.removeClass(self.options.activeClass)}
34self.slider.addClass(slideHiddenClass);self.makeCallback('animEnd',!1)}})},destroy:function(){this.slider.removeClass(slideHiddenClass).css({display:''});this.opener.unbind(this.options.event,this.eventHandler);this.holder.removeClass(this.options.activeClass).removeData('OpenClose');$(document).unbind('click touchstart',this.outsideClickHandler)},makeCallback:function(name){if(typeof this.options[name]==='function'){var args=Array.prototype.slice.call(arguments);args.shift();this.options[name].apply(this,args)}}};var slideHiddenClass='js-slide-hidden';(function(){var tabStyleSheet=$('<style type="text/css">')[0];var tabStyleRule='.'+slideHiddenClass;tabStyleRule+='{position:absolute !important;left:-9999px !important;top:-9999px !important;display:block !important}';if(tabStyleSheet.styleSheet){tabStyleSheet.styleSheet.cssText=tabStyleRule}else{tabStyleSheet.appendChild(document.createTextNode(tabStyleRule))}
35$('head').append(tabStyleSheet)}());var toggleEffects={slide:{show:function(o){o.box.stop(!0).hide().slideDown(o.speed,o.complete)},hide:function(o){o.box.stop(!0).slideUp(o.speed,o.complete)}},fade:{show:function(o){o.box.stop(!0).hide().fadeIn(o.speed,o.complete)},hide:function(o){o.box.stop(!0).fadeOut(o.speed,o.complete)}},none:{show:function(o){o.box.hide().show(0,o.complete)},hide:function(o){o.box.hide(0,o.complete)}}};$.fn.openClose=function(opt){return this.each(function(){jQuery(this).data('OpenClose',new OpenClose($.extend(opt,{holder:this})))})}}(jQuery));
36/*!
37 * JavaScript Custom Forms
38 *
39 * Copyright 2014-2015 PSD2HTML - http://psd2html.com/jcf
40 * Released under the MIT license (LICENSE.txt)
41 *
42 * Version: 1.1.3
43 */
44;(function(root,factory){'use strict';if(typeof define==='function'&&define.amd){define(['jquery'],factory)}else if(typeof exports==='object'){module.exports=factory(require('jquery'))}else{root.jcf=factory(jQuery)}}(this,function($){'use strict';var version='1.1.3';var customInstances=[];var commonOptions={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'};var isTouchDevice=('ontouchstart' in window)||window.DocumentTouch&&document instanceof window.DocumentTouch,isWinPhoneDevice=/Windows Phone/.test(navigator.userAgent);commonOptions.isMobileDevice=!!(isTouchDevice||isWinPhoneDevice);var createStyleSheet=function(){var styleTag=$('<style>').appendTo('head'),styleSheet=styleTag.prop('sheet')||styleTag.prop('styleSheet');var addCSSRule=function(selector,rules,index){if(styleSheet.insertRule){styleSheet.insertRule(selector+'{'+rules+'}',index)}else{styleSheet.addRule(selector,rules,index)}};addCSSRule('.'+commonOptions.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');addCSSRule('.'+commonOptions.rtlClass+' .'+commonOptions.hiddenClass,'right:-9999px !important; left: auto !important');addCSSRule('.'+commonOptions.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);');addCSSRule('.'+commonOptions.resetAppearanceClass,'background: none; border: none; -webkit-appearance: none; appearance: none; opacity: 0; filter: alpha(opacity=0);');var html=$('html'),body=$('body');if(html.css('direction')==='rtl'||body.css('direction')==='rtl'){html.addClass(commonOptions.rtlClass)}
45html.on('reset',function(){setTimeout(function(){api.refreshAll()},0)});commonOptions.styleSheetCreated=!0};(function(){var pointerEventsSupported=navigator.pointerEnabled||navigator.msPointerEnabled,touchEventsSupported=('ontouchstart' in window)||window.DocumentTouch&&document instanceof window.DocumentTouch,eventList,eventMap={},eventPrefix='jcf-';if(pointerEventsSupported){eventList={pointerover:navigator.pointerEnabled?'pointerover':'MSPointerOver',pointerdown:navigator.pointerEnabled?'pointerdown':'MSPointerDown',pointermove:navigator.pointerEnabled?'pointermove':'MSPointerMove',pointerup:navigator.pointerEnabled?'pointerup':'MSPointerUp'}}else{eventList={pointerover:'mouseover',pointerdown:'mousedown'+(touchEventsSupported?' touchstart':''),pointermove:'mousemove'+(touchEventsSupported?' touchmove':''),pointerup:'mouseup'+(touchEventsSupported?' touchend':'')}}
46$.each(eventList,function(targetEventName,fakeEventList){$.each(fakeEventList.split(' '),function(index,fakeEventName){eventMap[fakeEventName]=targetEventName})});$.each(eventList,function(eventName,eventHandlers){eventHandlers=eventHandlers.split(' ');$.event.special[eventPrefix+eventName]={setup:function(){var self=this;$.each(eventHandlers,function(index,fallbackEvent){if(self.addEventListener)self.addEventListener(fallbackEvent,fixEvent,!1);else self['on'+fallbackEvent]=fixEvent})},teardown:function(){var self=this;$.each(eventHandlers,function(index,fallbackEvent){if(self.addEventListener)self.removeEventListener(fallbackEvent,fixEvent,!1);else self['on'+fallbackEvent]=null})}}});var lastTouch=null;var mouseEventSimulated=function(e){var dx=Math.abs(e.pageX-lastTouch.x),dy=Math.abs(e.pageY-lastTouch.y),rangeDistance=25;if(dx<=rangeDistance&&dy<=rangeDistance){return!0}};var fixEvent=function(e){var origEvent=e||window.event,touchEventData=null,targetEventName=eventMap[origEvent.type];e=$.event.fix(origEvent);e.type=eventPrefix+targetEventName;if(origEvent.pointerType){switch(origEvent.pointerType){case 2:e.pointerType='touch';break;case 3:e.pointerType='pen';break;
46case 4:e.pointerType='mouse';break;default:e.pointerType=origEvent.pointerType}}else{e.pointerType=origEvent.type.substr(0,5)}
47if(!e.pageX&&!e.pageY){touchEventData=origEvent.changedTouches?origEvent.changedTouches[0]:origEvent;e.pageX=touchEventData.pageX;e.pageY=touchEventData.pageY}
48if(origEvent.type==='touchend'){lastTouch={x:e.pageX,y:e.pageY}}
49if(e.pointerType==='mouse'&&lastTouch&&mouseEventSimulated(e)){return}else{return($.event.dispatch||$.event.handle).call(this,e)}}}());(function(){var wheelEvents=('onwheel' in document||document.documentMode>=9?'wheel':'mousewheel DOMMouseScroll').split(' '),shimEventName='jcf-mousewheel';$.event.special[shimEventName]={setup:function(){var self=this;$.each(wheelEvents,function(index,fallbackEvent){if(self.addEventListener)self.addEventListener(fallbackEvent,fixEvent,!1);else self['on'+fallbackEvent]=fixEvent})},teardown:function(){var self=this;$.each(wheelEvents,function(index,fallbackEvent){if(self.addEventListener)self.removeEventListener(fallbackEvent,fixEvent,!1);else self['on'+fallbackEvent]=null})}};var fixEvent=function(e){var origEvent=e||window.event;e=$.event.fix(origEvent);e.type=shimEventName;if('detail' in origEvent){e.deltaY=-origEvent.detail}
50if('wheelDelta' in origEvent){e.deltaY=-origEvent.wheelDelta}
51if('wheelDeltaY' in origEvent){e.deltaY=-origEvent.wheelDeltaY}
52if('wheelDeltaX' in origEvent){e.deltaX=-origEvent.wheelDeltaX}
53if('deltaY' in origEvent){e.deltaY=origEvent.deltaY}
54if('deltaX' in origEvent){e.deltaX=origEvent.deltaX}
55e.delta=e.deltaY||e.deltaX;if(origEvent.deltaMode===1){var lineHeight=16;e.delta*=lineHeight;e.deltaY*=lineHeight;e.deltaX*=lineHeight}
56return($.event.dispatch||$.event.handle).call(this,e)}}());var moduleMixin={fireNativeEvent:function(elements,eventName){$(elements).each(function(){var element=this,eventObject;if(element.dispatchEvent){eventObject=document.createEvent('HTMLEvents');eventObject.initEvent(eventName,!0,!0);element.dispatchEvent(eventObject)}else if(document.createEventObject){eventObject=document.createEventObject();eventObject.target=element;element.fireEvent('on'+eventName,eventObject)}})},bindHandlers:function(){var self=this;$.each(self,function(propName,propValue){if(propName.indexOf('on')===0&&$.isFunction(propValue)){self[propName]=function(){return propValue.apply(self,arguments)}}})}};var api={version:version,modules:{},getOptions:function(){return $.extend({},commonOptions)},setOptions:function(moduleName,moduleOptions){if(arguments.length>1){if(this.modules[moduleName]){$.extend(this.modules[moduleName].prototype.options,moduleOptions)}}else{$.extend(commonOptions,moduleName)}},addModule:function(proto){var Module=function(options){if(!options.element.data(commonOptions.dataKey)){options.element.data(commonOptions.dataKey,this)}
57customInstances.push(this);this.options=$.extend({},commonOptions,this.options,getInlineOptions(options.element),options);this.bindHandlers();this.init.apply(this,arguments)};var getInlineOptions=function(element){var dataOptions=element.data(commonOptions.optionsKey),attrOptions=element.attr(commonOptions.optionsKey);if(dataOptions){return dataOptions}else if(attrOptions){try{return $.parseJSON(attrOptions)}catch(e){}}};Module.prototype=proto;$.extend(proto,moduleMixin);if(proto.plugins){$.each(proto.plugins,function(pluginName,plugin){$.extend(plugin.prototype,moduleMixin)})}
58var originalDestroy=Module.prototype.destroy;Module.prototype.destroy=function(){this.options.element.removeData(this.options.dataKey);for(var i=customInstances.length-1;i>=0;i--){if(customInstances[i]===this){customInstances.splice(i,1);break}}
59if(originalDestroy){originalDestroy.apply(this,arguments)}};this.modules[proto.name]=Module},getInstance:function(element){return $(element).data(commonOptions.dataKey)},replace:function(elements,moduleName,customOptions){var self=this,instance;if(!commonOptions.styleSheetCreated){createStyleSheet()}
60$(elements).each(function(){var moduleOptions,element=$(this);instance=element.data(commonOptions.dataKey);if(instance){instance.refresh()}else{if(!moduleName){$.each(self.modules,function(currentModuleName,module){if(module.prototype.matchElement.call(module.prototype,element)){moduleName=currentModuleName;return!1}})}
61if(moduleName){moduleOptions=$.extend({element:element},customOptions);instance=new self.modules[moduleName](moduleOptions)}}});return instance},refresh:function(elements){$(elements).each(function(){var instance=$(this).data(commonOptions.dataKey);if(instance){instance.refresh()}})},destroy:function(elements){$(elements).each(function(){var instance=$(this).data(commonOptions.dataKey);if(instance){instance.destroy()}})},replaceAll:function(context){var self=this;$.each(this.modules,function(moduleName,module){$(module.prototype.selector,context).each(function(){if(this.className.indexOf('jcf-ignore')<0){self.replace(this,moduleName)}})})},refreshAll:function(context){if(context){$.each(this.modules,function(moduleName,module){$(module.prototype.selector,context).each(function(){var instance=$(this).data(commonOptions.dataKey);if(instance){instance.refresh()}})})}else{for(var i=customInstances.length-1;i>=0;i--){customInstances[i].refresh()}}},destroyAll:function(context){if(context){$.each(this.modules,function(moduleName,module){$(module.prototype.selector,context).each(function(index,element){var instance=$(element).data(commonOptions.dataKey);if(instance){instance.destroy()}})})}else{while(customInstances.length){customInstances[0].destroy()}}}};window.jcf=api;return api}));
62/*!
63 * JavaScript Custom Forms : Radio Module
64 *
65 * Copyright 2014-2015 PSD2HTML - http://psd2html.com/jcf
66 * Released under the MIT license (LICENSE.txt)
67 *
68 * Version: 1.1.3
69 */
70;(function($){'use strict';jcf.addModule({name:'Radio',selector:'input[type="radio"]',options:{wrapNative:!0,checkedClass:'jcf-checked',uncheckedClass:'jcf-unchecked',labelActiveClass:'jcf-label-active',fakeStructure:'<span class="jcf-radio"><span></span></span>'},matchElement:function(element){return element.is(':radio')},init:function(){this.initStructure();this.attachEvents();this.refresh()},initStructure:function(){this.doc=$(document);this.realElement=$(this.options.element);this.fakeElement=$(this.options.fakeStructure).insertAfter(this.realElement);this.labelElement=this.getLabelFor();
70if(this.options.wrapNative){this.realElement.prependTo(this.fakeElement).css({position:'absolute',opacity:0})}else{this.realElement.addClass(this.options.hiddenClass)}},attachEvents:function(){this.realElement.on({focus:this.onFocus,click:this.onRealClick});this.fakeElement.on('click',this.onFakeClick);this.fakeElement.on('jcf-pointerdown',this.onPress)},onRealClick:function(e){var self=this;this.savedEventObject=e;setTimeout(function(){self.refreshRadioGroup()},0)},onFakeClick:function(e){if(this.options.wrapNative&&this.realElement.is(e.target)){return}
71if(!this.realElement.is(':disabled')){delete this.savedEventObject;this.currentActiveRadio=this.getCurrentActiveRadio();this.stateChecked=this.realElement.prop('checked');this.realElement.prop('checked',!0);this.fireNativeEvent(this.realElement,'click');if(this.savedEventObject&&this.savedEventObject.isDefaultPrevented()){this.realElement.prop('checked',this.stateChecked);this.currentActiveRadio.prop('checked',!0)}else{this.fireNativeEvent(this.realElement,'change')}
72delete this.savedEventObject}},onFocus:function(){if(!this.pressedFlag||!this.focusedFlag){this.focusedFlag=!0;this.fakeElement.addClass(this.options.focusClass);this.realElement.on('blur',this.onBlur)}},onBlur:function(){if(!this.pressedFlag){this.focusedFlag=!1;this.fakeElement.removeClass(this.options.focusClass);this.realElement.off('blur',this.onBlur)}},onPress:function(e){if(!this.focusedFlag&&e.pointerType==='mouse'){this.realElement.focus()}
73this.pressedFlag=!0;this.fakeElement.addClass(this.options.pressedClass);this.doc.on('jcf-pointerup',this.onRelease)},onRelease:function(e){if(this.focusedFlag&&e.pointerType==='mouse'){this.realElement.focus()}
74this.pressedFlag=!1;this.fakeElement.removeClass(this.options.pressedClass);this.doc.off('jcf-pointerup',this.onRelease)},getCurrentActiveRadio:function(){return this.getRadioGroup(this.realElement).filter(':checked')},getRadioGroup:function(radio){var name=radio.attr('name'),parentForm=radio.parents('form');if(name){if(parentForm.length){return parentForm.find('input[name="'+name+'"]')}else{return $('input[name="'+name+'"]:not(form input)')}}else{return radio}},getLabelFor:function(){var parentLabel=this.realElement.closest('label'),elementId=this.realElement.prop('id');if(!parentLabel.length&&elementId){parentLabel=$('label[for="'+elementId+'"]')}
75return parentLabel.length?parentLabel:null},refreshRadioGroup:function(){this.getRadioGroup(this.realElement).each(function(){jcf.refresh(this)})},refresh:function(){var isChecked=this.realElement.is(':checked'),isDisabled=this.realElement.is(':disabled');this.fakeElement.toggleClass(this.options.checkedClass,isChecked).toggleClass(this.options.uncheckedClass,!isChecked).toggleClass(this.options.disabledClass,isDisabled);if(this.labelElement){this.labelElement.toggleClass(this.options.labelActiveClass,isChecked)}},destroy:function(){if(this.options.wrapNative){this.realElement.insertBefore(this.fakeElement).css({position:'',width:'',height:'',opacity:'',margin:''})}else{this.realElement.removeClass(this.options.hiddenClass)}
76this.fakeElement.off('jcf-pointerdown',this.onPress);this.fakeElement.remove();this.doc.off('jcf-pointerup',this.onRelease);this.realElement.off({blur:this.onBlur,focus:this.onFocus,click:this.onRealClick})}})}(jQuery));
77/*! Hammer.JS - v2.0.4 - 2014-09-28
78 * http://hammerjs.github.io/
79 *
80 * Copyright (c) 2014 Jorik Tangelder;
81 * Licensed under the MIT license */
82if(Object.create){
vendor: 18,176 bytes, line 82
82!function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(k(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.forEach)a.forEach(b,c);else if(a.length!==d)for(e=0;e<a.length;)b.call(c,a[e],e,a),e++;else for(e in a)a.hasOwnProperty(e)&&b.call(c,a[e],e,a)}function h(a,b,c){for(var e=Object.keys(b),f=0;f<e.length;)(!c||c&&a[e[f]]===d)&&(a[e[f]]=b[e[f]]),f++;return a}function i(a,b){return h(a,b,!0)}function j(a,b,c){var d,e=b.prototype;d=a.prototype=Object.create(e),d.constructor=a,d._super=e,c&&h(d,c)}function k(a,b){return function(){return a.apply(b,arguments)}}function l(a,b){return typeof a==kb?a.apply(b?b[0]||d:d,b):a}function m(a,b){return a===d?b:a}function n(a,b,c){g(r(b),function(b){a.addEventListener(b,c,!1)})}function o(a,b,c){g(r(b),function(b){a.removeEventListener(b,c,!1)})}function p(a,b){for(;a;){if(a==b)return!0;a=a.parentNode}return!1}function q(a,b){return a.indexOf(b)>-1}function r(a){return a.trim().split(/\s+/g)}function s(a,b,c){if(a.indexOf&&!c)return a.indexOf(b);for(var d=0;d<a.length;){if(c&&a[d][c]==b||!c&&a[d]===b)return d;d++}return-1}function t(a){return Array.prototype.slice.call(a,0)}function u(a,b,c){for(var d=[],e=[],f=0;f<a.length;){var g=b?a[f][b]:a[f];s(e,g)<0&&d.push(a[f]),e[f]=g,f++}return c&&(d=b?d.sort(function(a,c){return a[b]>c[b]}):d.sort()),d}function v(a,b){for(var c,e,f=b[0].toUpperCase()+b.slice(1),g=0;g<ib.length;){if(c=ib[g],e=c?c+f:b,e in a)return e;g++}return d}function w(){return ob++}function x(a){var b=a.ownerDocument;return b.defaultView||b.parentWindow}function y(a,b){var c=this;this.manager=a,this.callback=b,this.element=a.element,this.target=a.options.inputTarget,this.domHandler=function(b){l(a.options.enable,[a])&&c.handler(b)},this.init()}function z(a){var b,c=a.options.inputClass;return new(b=c?c:rb?N:sb?Q:qb?S:M)(a,A)}function A(a,b,c){var d=c.pointers.length,e=c.changedPointers.length,f=b&yb&&d-e===0,g=b&(Ab|Bb)&&d-e===0;c.isFirst=!!f,c.isFinal=!!g,f&&(a.session={}),c.eventType=b,B(a,c),a.emit("hammer.input",c),a.recognize(c),a.session.prevInput=c}function B(a,b){var c=a.session,d=b.pointers,e=d.length;c.firstInput||(c.firstInput=E(b)),e>1&&!c.firstMultiple?c.firstMultiple=E(b):1===e&&(c.firstMultiple=!1);var f=c.firstInput,g=c.firstMultiple,h=g?g.center:f.center,i=b.center=F(d);b.timeStamp=nb(),b.deltaTime=b.timeStamp-f.timeStamp,b.angle=J(h,i),b.distance=I(h,i),C(c,b),b.offsetDirection=H(b.deltaX,b.deltaY),b.scale=g?L(g.pointers,d):1,b.rotation=g?K(g.pointers,d):0,D(c,b);var j=a.element;p(b.srcEvent.target,j)&&(j=b.srcEvent.target),b.target=j}function C(a,b){var c=b.center,d=a.offsetDelta||{},e=a.prevDelta||{},f=a.prevInput||{};(b.eventType===yb||f.eventType===Ab)&&(e=a.prevDelta={x:f.deltaX||0,y:f.deltaY||0},d=a.offsetDelta={x:c.x,y:c.y}),b.deltaX=e.x+(c.x-d.x),b.deltaY=e.y+(c.y-d.y)}function D(a,b){var c,e,f,g,h=a.lastInterval||b,i=b.timeStamp-h.timeStamp;if(b.eventType!=Bb&&(i>xb||h.velocity===d)){var j=h.deltaX-b.deltaX,k=h.deltaY-b.deltaY,l=G(i,j,k);e=l.x,f=l.y,c=mb(l.x)>mb(l.y)?l.x:l.y,g=H(j,k),a.lastInterval=b}else c=h.velocity,e=h.velocityX,f=h.velocityY,g=h.direction;b.velocity=c,b.velocityX=e,b.velocityY=f,b.direction=g}function E(a){for(var b=[],c=0;c<a.pointers.length;)b[c]={clientX:lb(a.pointers[c].clientX),clientY:lb(a.pointers[c].clientY)},c++;return{timeStamp:nb(),pointers:b,center:F(b),deltaX:a.deltaX,deltaY:a.deltaY}}function F(a){var b=a.length;if(1===b)return{x:lb(a[0].clientX),y:lb(a[0].clientY)};for(var c=0,d=0,e=0;b>e;)c+=a[e].clientX,d+=a[e].clientY,e++;return{x:lb(c/b),y:lb(d/b)}}function G(a,b,c){return{x:b/a||0,y:c/a||0}}function H(a,b){return a===b?Cb:mb(a)>=mb(b)?a>0?Db:Eb:b>0?Fb:Gb}function I(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return Math.sqrt(d*d+e*e)}function J(a,b,c){c||(c=Kb);var d=b[c[0]]-a[c[0]],e=b[c[1]]-a[c[1]];return 180*Math.atan2(e,d)/Math.PI}function K(a,b){return J(b[1],b[0],Lb)-J(a[1],a[0],Lb)}function L(a,b){return I(b[0],b[1],Lb)/I(a[0],a[1],Lb)}function M(){this.evEl=Nb,this.evWin=Ob,this.allow=!0,this.pressed=!1,y.apply(this,arguments)}function N(){this.evEl=Rb,this.evWin=Sb,y.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function O(){this.evTarget=Ub,this.evWin=Vb,this.started=!1,y.apply(this,arguments)}function P(a,b){var c=t(a.touches),d=t(a.changedTouches);return b&(Ab|Bb)&&(c=u(c.concat(d),"identifier",!0)),[c,d]}function Q(){this.evTarget=Xb,this.targetIds={},y.apply(this,arguments)}function R(a,b){var c=t(a.touches),d=this.targetIds;if(b&(yb|zb)&&1===c.length)return d[c[0].identifier]=!0,[c,c];var e,f,g=t(a.changedTouches),h=[],i=this.target;if(f=c.filter(function(a){return p(a.target,i)}),b===yb)for(e=0;e<f.length;)d[f[e].identifier]=!0,e++;for(e=0;e<g.length;)d[g[e].identifier]&&h.push(g[e]),b&(Ab|Bb)&&delete d[g[e].identifier],e++;return h.length?[u(f.concat(h),"identifier",!0),h]:void 0}function S(){y.apply(this,arguments);var a=k(this.handler,this);this.touch=new Q(this.manager,a),this.mouse=new M(this.manager,a)}function T(a,b){this.manager=a,this.set(b)}function U(a){if(q(a,bc))return bc;var b=q(a,cc),c=q(a,dc);return b&&c?cc+" "+dc:b||c?b?cc:dc:q(a,ac)?ac:_b}function V(a){this.id=w(),this.manager=null,this.options=i(a||{},this.defaults),this.options.enable=m(this.options.enable,!0),this.state=ec,this.simultaneous={},this.requireFail=[]}function W(a){return a&jc?"cancel":a&hc?"end":a&gc?"move":a&fc?"start":""}function X(a){return a==Gb?"down":a==Fb?"up":a==Db?"left":a==Eb?"right":""}function Y(a,b){var c=b.manager;return c?c.get(a):a}function Z(){V.apply(this,arguments)}function $(){Z.apply(this,arguments),this.pX=null,this.pY=null}function _(){Z.apply(this,arguments)}function ab(){V.apply(this,arguments),this._timer=null,this._input=null}function bb(){Z.apply(this,arguments)}function cb(){Z.apply(this,arguments)}function db(){V.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function eb(a,b){return b=b||{},b.recognizers=m(b.recognizers,eb.defaults.preset),new fb(a,b)}function fb(a,b){b=b||{},this.options=i(b,eb.defaults),this.options.inputTarget=this.options.inputTarget||a,this.handlers={},this.session={},this.recognizers=[],this.element=a,this.input=z(this),this.touchAction=new T(this,this.options.touchAction),gb(this,!0),g(b.recognizers,function(a){var b=this.add(new a[0](a[1]));a[2]&&b.recognizeWith(a[2]),a[3]&&b.requireFailure(a[3])},this)}function gb(a,b){var c=a.element;g(a.options.cssProps,function(a,d){c.style[v(c.style,d)]=b?a:""})}function hb(a,c){var d=b.createEvent("Event");d.initEvent(a,!0,!0),d.gesture=c,c.target.dispatchEvent(d)}var ib=["","webkit","moz","MS","ms","o"],jb=b.createElement("div"),kb="function",lb=Math.round,mb=Math.abs,nb=Date.now,ob=1,pb=/mobile|tablet|ip(ad|hone|od)|android/i,qb="ontouchstart"in a,rb=v(a,"PointerEvent")!==d,sb=qb&&pb.test(navigator.userAgent),tb="touch",ub="pen",vb="mouse",wb="kinect",xb=25,yb=1,zb=2,Ab=4,Bb=8,Cb=1,Db=2,Eb=4,Fb=8,Gb=16,Hb=Db|Eb,Ib=Fb|Gb,Jb=Hb|Ib,Kb=["x","y"],Lb=["clientX","clientY"];y.prototype={handler:function(){},init:function(){this.evEl&&n(this.element,this.evEl,this.domHandler),this.evTarget&&n(this.target,this.evTarget,this.domHandler),this.evWin&&n(x(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&o(this.element,this.evEl,this.domHandler),this.evTarget&&o(this.target,this.evTarget,this.domHandler),this.evWin&&o(x(this.element),this.evWin,this.domHandler)}};var Mb={mousedown:yb,mousemove:zb,mouseup:Ab},Nb="mousedown",Ob="mousemove mouseup";j(M,y,{handler:function(a){var b=Mb[a.type];b&yb&&0===a.button&&(this.pressed=!0),b&zb&&1!==a.which&&(b=Ab),this.pressed&&this.allow&&(b&Ab&&(this.pressed=!1),this.callback(this.manager,b,{pointers:[a],changedPointers:[a],pointerType:vb,srcEvent:a}))}});var Pb={pointerdown:yb,pointermove:zb,pointerup:Ab,pointercancel:Bb,pointerout:Bb},Qb={2:tb,3:ub,4:vb,5:wb},Rb="pointerdown",Sb="pointermove pointerup pointercancel";a.MSPointerEvent&&(Rb="MSPointerDown",Sb="MSPointerMove MSPointerUp MSPointerCancel"),j(N,y,{handler:function(a){var b=this.store,c=!1,d=a.type.toLowerCase().replace("ms",""),e=Pb[d],f=Qb[a.pointerType]||a.pointerType,g=f==tb,h=s(b,a.pointerId,"pointerId");e&yb&&(0===a.button||g)?0>h&&(b.push(a),h=b.length-1):e&(Ab|Bb)&&(c=!0),0>h||(b[h]=a,this.callback(this.manager,e,{pointers:b,changedPointers:[a],pointerType:f,srcEvent:a}),c&&b.splice(h,1))}});var Tb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Ub="touchstart",Vb="touchstart touchmove touchend touchcancel";j(O,y,{handler:function(a){var b=Tb[a.type];if(b===yb&&(this.started=!0),this.started){var c=P.call(this,a,b);b&(Ab|Bb)&&c[0].length-c[1].length===0&&(this.started=!1),this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}});var Wb={touchstart:yb,touchmove:zb,touchend:Ab,touchcancel:Bb},Xb="touchstart touchmove touchend touchcancel";j(Q,y,{handler:function(a){var b=Wb[a.type],c=R.call(this,a,b);c&&this.callback(this.manager,b,{pointers:c[0],changedPointers:c[1],pointerType:tb,srcEvent:a})}}),j(S,y,{handler:function(a,b,c){var d=c.pointerType==tb,e=c.pointerType==vb;if(d)this.mouse.allow=!1;else if(e&&!this.mouse.allow)return;b&(Ab|Bb)&&(this.mouse.allow=!0),this.callback(a,b,c)},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Yb=v(jb.style,"touchAction"),Zb=Yb!==d,$b="compute",_b="auto",ac="manipulation",bc="none",cc="pan-x",dc="pan-y";T.prototype={set:function(a){a==$b&&(a=this.compute()),Zb&&(this.manager.element.style[Yb]=a),this.actions=a.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var a=[];return g(this.manager.recognizers,function(b){l(b.options.enable,[b])&&(a=a.concat(b.getTouchAction()))}),U(a.join(" "))},preventDefaults:function(a){if(!Zb){var b=a.srcEvent,c=a.offsetDirection;if(this.manager.session.prevented)return void b.preventDefault();var d=this.actions,e=q(d,bc),f=q(d,dc),g=q(d,cc);return e||f&&c&Hb||g&&c&Ib?this.preventSrc(b):void 0}},preventSrc:function(a){this.manager.session.prevented=!0,a.preventDefault()}};var ec=1,fc=2,gc=4,hc=8,ic=hc,jc=16,kc=32;V.prototype={defaults:{},set:function(a){return h(this.options,a),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(a){if(f(a,"recognizeWith",this))return this;var b=this.simultaneous;return a=Y(a,this),b[a.id]||(b[a.id]=a,a.recognizeWith(this)),this},dropRecognizeWith:function(a){return f(a,"dropRecognizeWith",this)?this:(a=Y(a,this),delete this.simultaneous[a.id],this)},requireFailure:function(a){if(f(a,"requireFailure",this))return this;var b=this.requireFail;return a=Y(a,this),-1===s(b,a)&&(b.push(a),a.requireFailure(this)),this},dropRequireFailure:function(a){if(f(a,"dropRequireFailure",this))return this;a=Y(a,this);var b=s(this.requireFail,a);return b>-1&&this.requireFail.splice(b,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(a){return!!this.simultaneous[a.id]},emit:function(a){function b(b){c.manager.emit(c.options.event+(b?W(d):""),a)}var c=this,d=this.state;hc>d&&b(!0),b(),d>=hc&&b(!0)},tryEmit:function(a){return this.canEmit()?this.emit(a):void(this.state=kc)},canEmit:function(){for(var a=0;a<this.requireFail.length;){if(!(this.requireFail[a].state&(kc|ec)))return!1;a++}return!0},recognize:function(a){var b=h({},a);return l(this.options.enable,[this,b])?(this.state&(ic|jc|kc)&&(this.state=ec),this.state=this.process(b),void(this.state&(fc|gc|hc|jc)&&this.tryEmit(b))):(this.reset(),void(this.state=kc))},process:function(){},getTouchAction:function(){},reset:function(){}},j(Z,V,{defaults:{pointers:1},attrTest:function(a){var b=this.options.pointers;return 0===b||a.pointers.length===b},process:function(a){var b=this.state,c=a.eventType,d=b&(fc|gc),e=this.attrTest(a);return d&&(c&Bb||!e)?b|jc:d||e?c&Ab?b|hc:b&fc?b|gc:fc:kc}}),j($,Z,{defaults:{event:"pan",threshold:10,pointers:1,direction:Jb},getTouchAction:function(){var a=this.options.direction,b=[];return a&Hb&&b.push(dc),a&Ib&&b.push(cc),b},directionTest:function(a){var b=this.options,c=!0,d=a.distance,e=a.direction,f=a.deltaX,g=a.deltaY;return e&b.direction||(b.direction&Hb?(e=0===f?Cb:0>f?Db:Eb,c=f!=this.pX,d=Math.abs(a.deltaX)):(e=0===g?Cb:0>g?Fb:Gb,c=g!=this.pY,d=Math.abs(a.deltaY))),a.direction=e,c&&d>b.threshold&&e&b.direction},attrTest:function(a){return Z.prototype.attrTest.call(this,a)&&(this.state&fc||!(this.state&fc)&&this.directionTest(a))},emit:function(a){this.pX=a.deltaX,this.pY=a.deltaY;var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this._super.emit.call(this,a)}}),j(_,Z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.scale-1)>this.options.threshold||this.state&fc)},emit:function(a){if(this._super.emit.call(this,a),1!==a.scale){var b=a.scale<1?"in":"out";this.manager.emit(this.options.event+b,a)}}}),j(ab,V,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return[_b]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime>b.time;if(this._input=a,!d||!c||a.eventType&(Ab|Bb)&&!f)this.reset();else if(a.eventType&yb)this.reset(),this._timer=e(function(){this.state=ic,this.tryEmit()},b.time,this);else if(a.eventType&Ab)return ic;return kc},reset:function(){clearTimeout(this._timer)},emit:function(a){this.state===ic&&(a&&a.eventType&Ab?this.manager.emit(this.options.event+"up",a):(this._input.timeStamp=nb(),this.manager.emit(this.options.event,this._input)))}}),j(bb,Z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[bc]},attrTest:function(a){return this._super.attrTest.call(this,a)&&(Math.abs(a.rotation)>this.options.threshold||this.state&fc)}}),j(cb,Z,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:Hb|Ib,pointers:1},getTouchAction:function(){return $.prototype.getTouchAction.call(this)},attrTest:function(a){var b,c=this.options.direction;return c&(Hb|Ib)?b=a.velocity:c&Hb?b=a.velocityX:c&Ib&&(b=a.velocityY),this._super.attrTest.call(this,a)&&c&a.direction&&a.distance>this.options.threshold&&mb(b)>this.options.velocity&&a.eventType&Ab},emit:function(a){var b=X(a.direction);b&&this.manager.emit(this.options.event+b,a),this.manager.emit(this.options.event,a)}}),j(db,V,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return[ac]},process:function(a){var b=this.options,c=a.pointers.length===b.pointers,d=a.distance<b.threshold,f=a.deltaTime<b.time;if(this.reset(),a.eventType&yb&&0===this.count)return this.failTimeout();if(d&&f&&c){if(a.eventType!=Ab)return this.failTimeout();var g=this.pTime?a.timeStamp-this.pTime<b.interval:!0,h=!this.pCenter||I(this.pCenter,a.center)<b.posThreshold;this.pTime=a.timeStamp,this.pCenter=a.center,h&&g?this.count+=1:this.count=1,this._input=a;var i=this.count%b.taps;if(0===i)return this.hasRequireFailures()?(this._timer=e(function(){this.state=ic,this.tryEmit()},b.interval,this),fc):ic}return kc},failTimeout:function(){return this._timer=e(function(){this.state=kc},this.options.interval,this),kc},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ic&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),eb.VERSION="2.0.4",eb.defaults={domEvents:!1,touchAction:$b,enable:!0,inputTarget:null,inputClass:null,preset:[[bb,{enable:!1}],[_,{enable:!1},["rotate"]],[cb,{direction:Hb}],[$,{direction:Hb},["swipe"]],[db],[db,{event:"doubletap",taps:2},["tap"]],[ab]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var lc=1,mc=2;fb.prototype={set:function(a){return h(this.options,a),a.touchAction&&this.touchAction.update(),a.inputTarget&&(this.input.destroy(),this.input.target=a.inputTarget,this.input.init()),this},stop:function(a){this.session.stopped=a?mc:lc},recognize:function(a){var b=this.session;if(!b.stopped){this.touchAction.preventDefaults(a);var c,d=this.recognizers,e=b.curRecognizer;(!e||e&&e.state&ic)&&(e=b.curRecognizer=null);for(var f=0;f<d.length;)c=d[f],b.stopped===mc||e&&c!=e&&!c.canRecognizeWith(e)?c.reset():c.recognize(a),!e&&c.state&(fc|gc|hc)&&(e=b.curRecognizer=c),f++}},get:function(a){if(a instanceof V)return a;for(var b=this.recognizers,c=0;c<b.length;c++)if(b[c].options.event==a)return b[c];return null},add:function(a){if(f(a,"add",this))return this;var b=this.get(a.options.event);return b&&this.remove(b),this.recognizers.push(a),a.manager=this,this.touchAction.update(),a},remove:function(a){if(f(a,"remove",this))return this;var b=this.recognizers;return a=this.get(a),b.splice(s(b,a),1),this.touchAction.update(),this},on:function(a,b){var c=this.handlers;return g(r(a),function(a){c[a]=c[a]||[],c[a].push(b)}),this},off:function(a,b){var c=this.handlers;return g(r(a),function(a){b?c[a].splice(s(c[a],b),1):delete c[a]}),this},emit:function(a,b){this.options.domEvents&&hb(a,b);var c=this.handlers[a]&&this.handlers[a].slice();if(c&&c.length){b.type=a,b.preventDefault=function(){b.srcEvent.preventDefault()};for(var d=0;d<c.length;)c[d](b),d++}},destroy:function(){this.element&&gb(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},h(eb,{INPUT_START:yb,INPUT_MOVE:zb,INPUT_END:Ab,INPUT_CANCEL:Bb,STATE_POSSIBLE:ec,STATE_BEGAN:fc,STATE_CHANGED:gc,STATE_ENDED:hc,STATE_RECOGNIZED:ic,STATE_CANCELLED:jc,STATE_FAILED:kc,DIRECTION_NONE:Cb,DIRECTION_LEFT:Db,DIRECTION_RIGHT:Eb,DIRECTION_UP:Fb,DIRECTION_DOWN:Gb,DIRECTION_HORIZONTAL:Hb,DIRECTION_VERTICAL:Ib,DIRECTION_ALL:Jb,Manager:fb,Input:y,TouchAction:T,TouchInput:Q,MouseInput:M,PointerEventInput:N,TouchMouseInput:S,SingleTouchInput:O,Recognizer:V,AttrRecognizer:Z,Tap:db,Pan:$,Swipe:cb,Pinch:_,Rotate:bb,Press:ab,on:n,off:o,each:g,merge:i,extend:h,inherit:j,bindFn:k,prefixed:v}),typeof define==kb&&define.amd?define(function(){return eb}):"undefined"!=typeof module&&module.exports?module.exports=eb:a[c]=eb}(window,document,"Hammer")
82}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.