PageSourceSearch

https://www.gg-resort.at/typo3temp/assets/compressed/merged-f877f1…646a6e92689785b6009a530e3d970.js?1780421367

js gg-resort.at collected 2026-10-04 02:38:10 UTC 348,035 bytes, 5,252 lines download raw bytes

vendor: 16,616 bytes, lines 1-3
1
2window.Modernizr=(function(window,document,undefined){var version='2.6.2',Modernizr={},enableClasses=true,docElement=document.documentElement,mod='modernizr',modElem=document.createElement(mod),mStyle=modElem.style,inputElem=document.createElement('input'),smile=':)',toString={}.toString,prefixes=' -webkit- -moz- -o- -ms- '.split(' '),omPrefixes='Webkit Moz O ms',cssomPrefixes=omPrefixes.split(' '),domPrefixes=omPrefixes.toLowerCase().split(' '),ns={'svg':'http://www.w3.org/2000/svg'},tests={},inputs={},attrs={},classes=[],slice=classes.slice,featureName,injectElementWithStyles=function(rule,callback,nodes,testnames){var style,ret,node,docOverflow,div=document.createElement('div'),body=document.body,fakeBody=body||document.createElement('body');if(parseInt(nodes,10)){while(nodes--){node=document.createElement('div');node.id=testnames?testnames[nodes]:mod+(nodes+1);div.appendChild(node);}}style=['&#173;','<style id="s',mod,'">',rule,'</style>'].join('');div.id=mod;(body?div:fakeBody).innerHTML+=style;fakeBody.appendChild(div);if(!body){fakeBody.style.background='';fakeBody.style.overflow='hidden';docOverflow=docElement.style.overflow;docElement.style.overflow='hidden';docElement.appendChild(fakeBody);}ret=callback(div,rule);if(!body){fakeBody.parentNode.removeChild(fakeBody);docElement.style.overflow=docOverflow;}else{div.parentNode.removeChild(div);}return!!ret;},testMediaQuery=function(mq){var matchMedia=window.matchMedia||window.msMatchMedia;if(matchMedia){return matchMedia(mq).matches;}var bool;injectElementWithStyles('@media '+mq+' { #'+mod+' { position: absolute; } }',function(node){bool=(window.getComputedStyle?getComputedStyle(node,null):node.currentStyle)['position']=='absolute';});return bool;},isEventSupported=(function(){var TAGNAMES={'select':'input','change':'input','submit':'form','reset':'form','error':'img','load':'img','abort':'img'};function isEventSupported(eventName,element){element=element||document.createElement(TAGNAMES[eventName]||'div');eventName='on'+eventName;var isSupported=eventName in element;if(!isSupported){if(!element.setAttribute){element=document.createElement('div');}if(element.setAttribute&&element.removeAttribute){element.setAttribute(eventName,'');isSupported=is(element[eventName],'function');if(!is(element[eventName],'undefined')){element[eventName]=undefined;}element.removeAttribute(eventName);}}element=null;return isSupported;}return isEventSupported;})(),_hasOwnProperty=({}).hasOwnProperty,hasOwnProp;if(!is(_hasOwnProperty,'undefined')&&!is(_hasOwnProperty.call,'undefined')){hasOwnProp=function(object,property){return _hasOwnProperty.call(object,property);};}else{hasOwnProp=function(object,property){return((property in object)&&is(object.constructor.prototype[property],'undefined'));};}if(!Function.prototype.bind){Function.prototype.bind=function bind(that){var target=this;if(typeof target!="function"){throw new TypeError();}var args=slice.call(arguments,1),bound=function(){if(this instanceof bound){var F=function(){};F.prototype=target.prototype;var self=new F();var result=target.apply(self,args.concat(slice.call(arguments)));if(Object(result)===result){return result;}return self;}else{return target.apply(that,args.concat(slice.call(arguments)));}};return bound;};}function setCss(str){mStyle.cssText=str;}function setCssAll(str1,str2){return setCss(prefixes.join(str1+';')+(str2||''));}function is(obj,type){return typeof obj===type;}function contains(str,substr){return!!~(''+str).indexOf(substr);}function testProps(props,prefixed){for(var i in props){var prop=props[i];if(!contains(prop,"-")&&mStyle[prop]!==undefined){return prefixed=='pfx'?prop:true;}}return false;}function testDOMProps(props,obj,elem){for(var i in props){var item=obj[props[i]];if(item!==undefined){if(elem===false)return props[i];if(is(item,'function')){return item.bind(elem||obj);}return item;}}return false;}function testPropsAll(prop,prefixed,elem){var ucProp=prop.charAt(0).toUpperCase()+prop.slice(1),props=(prop+' '+cssomPrefixes.join(ucProp+' ')+ucProp).split(' ');if(is(prefixed,"string")||is(prefixed,"undefined")){return testProps(props,prefixed);}else{props=(prop+' '+(domPrefixes).join(ucProp+' ')+ucProp).split(' ');return testDOMProps(props,prefixed,elem);}}tests['flexbox']=function(){return testPropsAll('flexWrap');};tests['flexboxlegacy']=function(){return testPropsAll('boxDirection');};tests['canvas']=function(){var elem=document.createElement('canvas');return!!(elem.getContext&&elem.getContext('2d'));};tests['canvastext']=function(){return!!(Modernizr['canvas']&&is(document.createElement('canvas').getContext('2d').fillText,'function'));};tests['webgl']=function(){return!!window.WebGLRenderingContext;};tests['touch']=function(){var bool;if(('ontouchstart'in window)||window.DocumentTouch&&document instanceof DocumentTouch){bool=true;}else{injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''),function(node){bool=node.offsetTop===9;});}return bool;};tests['geolocation']=function(){return'geolocation'in navigator;};tests['postmessage']=function(){return!!window.postMessage;};tests['websqldatabase']=function(){return!!window.openDatabase;};tests['indexedDB']=function(){return!!testPropsAll("indexedDB",window);};tests['hashchange']=function(){return isEventSupported('hashchange',window)&&(document.documentMode===undefined||document.documentMode>7);};tests['history']=function(){return!!(window.history&&history.pushState);};tests['draganddrop']=function(){var div=document.createElement('div');return('draggable'in div)||('ondragstart'in div&&'ondrop'in div);};tests['websockets']=function(){return'WebSocket'in window||'MozWebSocket'in window;};tests['rgba']=function(){setCss('background-color:rgba(150,255,150,.5)');return contains(mStyle.backgroundColor,'rgba');};tests['hsla']=function(){setCss('background-color:hsla(120,40%,100%,.5)');return contains(mStyle.backgroundColor,'rgba')||contains(mStyle.backgroundColor,'hsla');};tests['multiplebgs']=function(){setCss('background:url(https://),url(https://),red url(https://)');return(/(url\s*\(.*?){3}/).test(mStyle.background);};tests['backgroundsize']=function(){return testPropsAll('backgroundSize');};tests['borderimage']=function(){return testPropsAll('borderImage');};tests['borderradius']=function(){return testPropsAll('borderRadius');};tests['boxshadow']=function(){return testPropsAll('boxShadow');};tests['textshadow']=function(){return document.createElement('div').style.textShadow==='';};tests['opacity']=function(){setCssAll('opacity:.55');return(/^0.55$/).test(mStyle.opacity);};tests['cssanimations']=function(){return testPropsAll('animationName');};tests['csscolumns']=function(){return testPropsAll('columnCount');};tests['cssgradients']=function(){var str1='background-image:',str2='gradient(linear,left top,right bottom,from(#9f9),to(white));',str3='linear-gradient(left top,#9f9, white);';setCss((str1+'-webkit- '.split(' ').join(str2+str1)+prefixes.join(str3+str1)).slice(0,-str1.length));return contains(mStyle.backgroundImage,'gradient');};tests['cssreflections']=function(){return testPropsAll('boxReflect');};tests['csstransforms']=function(){return!!testPropsAll('transform');};tests['csstransforms3d']=function(){var ret=!!testPropsAll('perspective');if(ret&&'webkitPerspective'in docElement.style){injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}',function(node,rule){ret=node.offsetLeft===9&&node.offsetHeight===3;});}return ret;};tests['csstransitions']=function(){return testPropsAll('transition');};tests['fontface']=function(){var bool;injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}',function(node,rule){var style=document.getElementById('smodernizr'),sheet=style.sheet||style.styleSheet,cssText=sheet?(sheet.cssRules&&sheet.cssRules[0]?sheet.cssRules[0].cssText:sheet.cssText||''):'';bool=/src/i.test(cssText)&&cssText.indexOf(rule.split(' ')[0])===0;});return bool;};tests['generatedcontent']=function(){var bool;injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''),function(node){bool=node.offsetHeight>=3;});return bool;};tests['video']=function(){var elem=document.createElement('video'),bool=false;try{if(bool=!!elem.canPlayType){bool=new Boolean(bool);bool.ogg=elem.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,'');bool.h264=elem.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,'');bool.webm=elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,'');}}catch(e){}return bool;};tests['audio']=function(){var elem=document.createElement('audio'),bool=false;try{if(bool=!!elem.canPlayType){bool=new Boolean(bool);bool.ogg=elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,'');bool.mp3=elem.canPlayType('audio/mpeg;').replace(/^no$/,'');bool.wav=elem.canPlayType('audio/wav; codecs="1"').replace(/^no$/,'');bool.m4a=(elem.canPlayType('audio/x-m4a;')||elem.canPlayType('audio/aac;')).replace(/^no$/,'');}}catch(e){}return bool;};tests['localstorage']=function(){try{localStorage.setItem(mod,mod);localStorage.removeItem(mod);return true;}catch(e){return false;}};tests['sessionstorage']=function(){try{sessionStorage.setItem(mod,mod);sessionStorage.removeItem(mod);return true;}catch(e){return false;}};tests['webworkers']=function(){return!!window.Worker;};tests['applicationcache']=function(){return!!window.applicationCache;};tests['svg']=function(){return!!document.createElementNS&&!!document.createElementNS(ns.svg,'svg').createSVGRect;};tests['inlinesvg']=function(){var div=document.createElement('div');div.innerHTML='<svg/>';return(div.firstChild&&div.firstChild.namespaceURI)==ns.svg;};tests['smil']=function(){return!!document.createElementNS&&/SVGAnimate/.test(toString.call(document.createElementNS(ns.svg,'animate')));};tests['svgclippaths']=function(){return!!document.createElementNS&&/SVGClipPath/.test(toString.call(document.createElementNS(ns.svg,'clipPath')));};function webforms(){Modernizr['input']=(function(props){for(var i=0,len=props.length;i<len;i++){attrs[props[i]]=!!(props[i]in inputElem);}if(attrs.list){attrs.list=!!(document.createElement('datalist')&&window.HTMLDataListElement);}return attrs;})('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' '));Modernizr['inputtypes']=(function(props){for(var i=0,bool,inputElemType,defaultView,len=props.length;i<len;i++){inputElem.setAttribute('type',inputElemType=props[i]);bool=inputElem.type!=='text';if(bool){inputElem.value=smile;inputElem.style.cssText='position:absolute;visibility:hidden;';if(/^range$/.test(inputElemType)&&inputElem.style.WebkitAppearance!==undefined){docElement.appendChild(inputElem);defaultView=document.defaultView;bool=defaultView.getComputedStyle&&defaultView.getComputedStyle(inputElem,null).WebkitAppearance!=='textfield'&&(inputElem.offsetHeight!==0);docElement.removeChild(inputElem);}else if(/^(search|tel)$/.test(inputElemType)){}else if(/^(url|email)$/.test(inputElemType)){bool=inputElem.checkValidity&&inputElem.checkValidity()===false;}else{bool=inputElem.value!=smile;}}inputs[props[i]]=!!bool;}return inputs;})('search tel url email datetime date month week time datetime-local number range color'.split(' '));}for(var feature in tests){if(hasOwnProp(tests,feature)){featureName=feature.toLowerCase();Modernizr[featureName]=tests[feature]();classes.push((Modernizr[featureName]?'':'no-')+featureName);}}Modernizr.input||webforms();Modernizr.addTest=function(feature,test){if(typeof feature=='object'){for(var key in feature){if(hasOwnProp(feature,key)){Modernizr.addTest(key,feature[key]);}}}else{feature=feature.toLowerCase();if(Modernizr[feature]!==undefined){return Modernizr;}test=typeof test=='function'?test():test;if(typeof enableClasses!=="undefined"&&enableClasses){docElement.className+=' '+(test?'':'no-')+feature;}Modernizr[feature]=test;}return Modernizr;};setCss('');modElem=inputElem=null;;(function(window,document){var options=window.html5||{};var reSkip=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;var saveClones=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;var supportsHtml5Styles;var expando='_html5shiv';var expanID=0;var expandoData={};var supportsUnknownElements;(function(){try{var a=document.createElement('a');a.innerHTML='<xyz></xyz>';supportsHtml5Styles=('hidden'in a);supportsUnknownElements=a.childNodes.length==1||(function(){(document.createElement)('a');var frag=document.createDocumentFragment();return(typeof frag.cloneNode=='undefined'||typeof frag.createDocumentFragment=='undefined'||typeof frag.createElement=='undefined');}());}catch(e){supportsHtml5Styles=true;supportsUnknownElements=true;}}());function addStyleSheet(ownerDocument,cssText){var p=ownerDocument.createElement('p'),parent=ownerDocument.getElementsByTagName('head')[0]||ownerDocument.documentElement;p.innerHTML='x<style>'+cssText+'</style>';return parent.insertBefore(p.lastChild,parent.firstChild);}function getElements(){var elements=html5.elements;return typeof elements=='string'?elements.split(' '):elements;}function getExpandoData(ownerDocument){var data=expandoData[ownerDocument[expando]];if(!data){data={};expanID++;ownerDocument[expando]=expanID;expandoData[expanID]=data;}return data;}function createElement(nodeName,ownerDocument,data){if(!ownerDocument){ownerDocument=document;}if(supportsUnknownElements){return ownerDocument.createElement(nodeName);}if(!data){data=getExpandoData(ownerDocument);}var node;if(data.cache[nodeName]){node=data.cache[nodeName].cloneNode();}else if(saveClones.test(nodeName)){node=(data.cache[nodeName]=data.createElem(nodeName)).cloneNode();}else{node=data.createElem(nodeName);}return node.canHaveChildren&&!reSkip.test(nodeName)?data.frag.appendChild(node):node;}function createDocumentFragment(ownerDocument,data){if(!ownerDocument){ownerDocument=document;}if(supportsUnknownElements){return ownerDocument.createDocumentFragment();}data=data||getExpandoData(ownerDocument);var clone=data.frag.cloneNode(),i=0,elems=getElements(),l=elems.length;for(;i<l;i++){clone.createElement(elems[i]);}return clone;}function shivMethods(ownerDocument,data){if(!data.cache){data.cache={};data.createElem=ownerDocument.createElement;data.createFrag=ownerDocument.createDocumentFragment;data.frag=data.createFrag();}ownerDocument.createElement=function(nodeName){if(!html5.shivMethods){return data.createElem(nodeName);}return createElement(nodeName,ownerDocument,data);};ownerDocument.createDocumentFragment=Function('h,f','return function(){'+'var n=f.cloneNode(),c=n.createElement;'+'h.shivMethods&&('+getElements().join().replace(/\w+/g,function(nodeName){data.createElem(nodeName);data.frag.createElement(nodeName);return'c("'+nodeName+'")';})+');return n}')(html5,data.frag);}function shivDocument(ownerDocument){if(!ownerDocument){ownerDocument=document;}var data=getExpandoData(ownerDocument);if(html5.shivCSS&&!supportsHtml5Styles&&!data.hasCSS){data.hasCSS=!!addStyleSheet(ownerDocument,'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}'+'mark{background:#FF0;color:#000}');}if(!supportsUnknownElements){shivMethods(ownerDocument,data);}return ownerDocument;}var html5={'elements':options.elements||'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video','shivCSS':(options.shivCSS!==false),'supportsUnknownElements':supportsUnknownElements,'shivMethods':(options.shivMethods!==false),'type':'default','shivDocument':shivDocument,createElement:createElement,createDocumentFragment:createDocumentFragment};window.html5=html5;shivDocument(document);}(this,document));Modernizr._version=version;Modernizr._prefixes=prefixes;Modernizr._domPrefixes=domPrefixes;Modernizr._cssomPrefixes=cssomPrefixes;Modernizr.mq=testMediaQuery;Modernizr.hasEvent=isEventSupported;Modernizr.testProp=function(prop){return testProps([prop]);};Modernizr.testAllProps=testPropsAll;Modernizr.testStyles=injectElementWithStyles;Modernizr.prefixed=function(prop,obj,elem){if(!obj){return testPropsAll(prop,'pfx');}else{return testPropsAll(prop,obj,elem);}};docElement.className=docElement.className.replace(/(^|\s)no-js(\s|$)/,'$1$2')+(enableClasses?' js '+classes.join(' '):'');return Modernizr;})(this,this.document);
3/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */�
vendor: 22,793 bytes, lines 3-4
3
4!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}
vendor: 1,967 bytes, line 4
4return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||
vendor: 9,546 bytes, line 4
4ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||
vendor: 8,814 bytes, line 4
4(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);
vendor: 14,182 bytes, line 4
4n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;
vendor: 4,590 bytes, line 4
4return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1)
vendor: 13,972 bytes, line 4
4);!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);
vendor: 9,033 bytes, line 4
4if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return 
vendor: 3,396 bytes, lines 4-16
4M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
5
6// ==================================================
7// fancyBox v3.5.6
8//
9// Licensed GPLv3 for open source use
10// or fancyBox Commercial License for commercial use
11//
12// http://fancyapps.com/fancybox/
13// Copyright 2018 fancyApps
14//
15// ==================================================
16!function(t,e,n,o){"use strict";function i(t,e){var o,i,a,s=[],r=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=h(t.data.options,e)),o=e.$target||n(t.currentTarget).trigger("blur"),(a=n.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(o)||(e.selector?s=n(e.selector):(i=o.attr("data-fancybox")||"",i?(s=t.data?t.data.items:[],s=s.length?s.filter('[data-fancybox="'+i+'"]'):n('[data-fancybox="'+i+'"]')):s=[o]),r=n(s).index(o),r<0&&(r=0),a=n.fancybox.open(s,e,r),a.$trigger=o))}if(t.console=t.console||{info:function(t){}}
vendor: 10,680 bytes, line 16
16,n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},s=n(t),r=n(e),c=0,l=function(t){return t&&t.hasOwnProperty&&t instanceof n},d=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),u=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),f=function(){var t,n=e.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in o)if(void 0!==n.style[t])return o[t];return"transitionend"}(),p=function(t){return t&&t.length&&t[0].offsetHeight},h=function(t,e){var o=n.extend(!0,{},t,e);return n.each(e,function(t,e){n.isArray(e)&&(o[t]=e)}),o},g=function(t){var o,i;return!(!t||t.ownerDocument!==e)&&(n(".fancybox-container").css("pointer-events","none"),o={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},i=e.elementFromPoint(o.x,o.y)===t,n(".fancybox-container").css("pointer-events",""),i)},b=function(t,e,o){var i=this;i.opts=h({index:o},n.fancybox.defaults),n.isPlainObject(e)&&(i.opts=h(i.opts,e)),n.fancybox.isMobile&&(i.opts=h(i.opts,i.opts.mobile)),i.id=i.opts.id||++c,i.currIndex=parseInt(i.opts.index,10)||0,i.prevIndex=null,i.prevPos=null,i.currPos=0,i.firstRun=!0,i.group=[],i.slides={},i.addContent(t),i.group.length&&i.init()};n.extend(b.prototype,{init:function(){var o,i,a=this,s=a.group[a.currIndex],r=s.opts;r.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==r.hideScrollbar&&!n.fancybox.isMobile&&e.body.scrollHeight>t.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),i="",n.each(r.buttons,function(t,e){i+=r.btnTpl[e]||""}),o=n(a.translate(a,r.baseTpl.replace("{{buttons}}",i).replace("{{arrows}}",r.btnTpl.arrowLeft+r.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(r.baseClass).data("FancyBox",a).appendTo(r.parentEl),a.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach(function(t){a.$refs[t]=o.find(".fancybox-"+t)}),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var n=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,function(t,e){return void 0===n[e]?t:n[e]})},addContent:function(t){var e,o=this,i=n.makeArray(t);n.each(i,function(t,e){var i,a,s,r,c,l={},d={};n.isPlainObject(e)?(l=e,d=e.opts||e):"object"===n.type(e)&&n(e).length?(i=n(e),d=i.data()||{},d=n.extend(!0,{},d,d.options),d.$orig=i,l.src=o.opts.src||d.src||i.attr("href"),l.type||l.src||(l.type="inline",l.src=e)):l={type:"html",src:e+""},l.opts=n.extend(!0,{},o.opts,d),n.isArray(d.buttons)&&(l.opts.buttons=d.buttons),n.fancybox.isMobile&&l.opts.mobile&&(l.opts=h(l.opts,l.opts.mobile)),a=l.type||l.opts.type,r=l.src||"",!a&&r&&((s=r.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",l.opts.video.format||(l.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):r.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":r.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",l=n.extend(!0,l,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===r.charAt(0)&&(a="inline")),a?l.type=a:o.trigger("objectNeedsType",l),l.contentType||(l.contentType=n.inArray(l.type,["html","inline","ajax"])>-1?"html":l.type),l.index=o.group.length,"auto"==l.opts.smallBtn&&(l.opts.smallBtn=n.inArray(l.type,["html","inline","ajax"])>-1),"auto"===l.opts.toolbar&&(l.opts.toolbar=!l.opts.smallBtn),l.$thumb=l.opts.$thumb||null,l.opts.$trigger&&l.index===o.opts.index&&(l.$thumb=l.opts.$trigger.find("img:first"),l.$thumb.length&&(l.opts.$orig=l.opts.$trigger)),l.$thumb&&l.$thumb.length||!l.opts.$orig||(l.$thumb=l.opts.$orig.find("img:first")),l.$thumb&&!l.$thumb.length&&(l.$thumb=null),l.thumb=l.opts.thumb||(l.$thumb?l.$thumb[0].src:null),"function"===n.type(l.opts.caption)&&(l.opts.caption=l.opts.caption.apply(e,[o,l])),"function"===n.type(o.opts.caption)&&(l.opts.caption=o.opts.caption.apply(e,[o,l])),l.opts.caption instanceof n||(l.opts.caption=void 0===l.opts.caption?"":l.opts.caption+""),"ajax"===l.type&&(c=r.split(/\s+/,2),c.length>1&&(l.src=c.shift(),l.opts.filter=c.shift())),l.opts.modal&&(l.opts=n.extend(!0,l.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(l)}),Object.keys(o.slides).length&&(o.updateControls(),(e=o.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",function(t){t.stopPropagation(),t.preventDefault(),e.close(t)}).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",function(t){t.stopPropagation(),t.preventDefault(),e.previous()}).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",function(t){t.stopPropagation(),t.preventDefault(),e.next()}).on("click.fb","[data-fancybox-zoom]",function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()}),s.on("orientationchange.fb resize.fb",function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=d(function(){e.update(t)})):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout(function(){e.$refs.stage.show(),e.update(t)},n.fancybox.isMobile?600:250))}
16),r.on("keydown.fb",function(t){var o=n.fancybox?n.fancybox.getInstance():null,i=o.current,a=t.keyCode||t.which;if(9==a)return void(i.opts.trapFocus&&e.focus(t));if(!(!i.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||n(t.target).is("input,textarea,video,audio
vendor: 17,891 bytes, line 16
16")))return 8===a||27===a?(t.preventDefault(),void e.close(t)):37===a||38===a?(t.preventDefault(),void e.previous()):39===a||40===a?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,a)}),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,r.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1}),e.idleInterval=t.setInterval(function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())},1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),r.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var o,i,a,s,r,c,l,d,u,f=this,h=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=h))return!1;if(o=f.firstRun=!Object.keys(f.slides).length,r=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),h>1&&((a||s.index<h-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",o),f.updateControls(),s.forcedDuration=void 0,n.isNumeric(e)?s.forcedDuration=e:e=s.opts[o?"animationDuration":"transitionDuration"],e=parseInt(e,10),i=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),o)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");c=n.fancybox.getTranslate(r.$slide),l=n.fancybox.getTranslate(f.$refs.stage),n.each(f.slides,function(t,e){n.fancybox.stop(e.$slide,!0)}),r.pos!==s.pos&&(r.isComplete=!1),r.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),i?(u=c.left-(r.pos*c.width+r.pos*r.opts.gutter),n.each(f.slides,function(t,o){o.$slide.removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")});var i=o.pos*c.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:i-l.left+u}),o.pos!==s.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),p(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-s.pos)*c.width+(o.pos-s.pos)*o.opts.gutter},e,function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===f.currPos&&f.complete()})})):e&&s.opts.transitionEffect&&(d="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,r.$slide.addClass("fancybox-slide--"+(r.pos>s.pos?"next":"previous")),n.fancybox.animate(r.$slide,d,e,function(){r.$slide.removeClass(d).removeClass("fancybox-slide--next fancybox-slide--previous")},!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,o,i=this;return o=t%i.group.length,o=o<0?i.group.length+o:o,!i.slides[t]&&i.group[o]&&(e=n('<div class="fancybox-slide"></div>').appendTo(i.$refs.stage),i.slides[t]=n.extend(!0,{},i.group[o],{pos:t,$slide:e,isLoaded:!1}),i.updateSlide(i.slides[t])),i.slides[t]},scaleToActual:function(t,e,o){var i,a,s,r,c,l=this,d=l.current,u=d.$content,f=n.fancybox.getTranslate(d.$slide).width,p=n.fancybox.getTranslate(d.$slide).height,h=d.width,g=d.height;l.isAnimating||l.isMoved()||!u||"image"!=d.type||!d.isLoaded||d.hasError||(l.isAnimating=!0,n.fancybox.stop(u),t=void 0===t?.5*f:t,e=void 0===e?.5*p:e,i=n.fancybox.getTranslate(u),i.top-=n.fancybox.getTranslate(d.$slide).top,i.left-=n.fancybox.getTranslate(d.$slide).left,r=h/i.width,c=g/i.height,a=.5*f-.5*h,s=.5*p-.5*g,h>f&&(a=i.left*r-(t*r-t),a>0&&(a=0),a<f-h&&(a=f-h)),g>p&&(s=i.top*c-(e*c-e),s>0&&(s=0),s<p-g&&(s=p-g)),l.updateCursor(h,g),n.fancybox.animate(u,{top:s,left:a,scaleX:r,scaleY:c},o||366,function(){l.isAnimating=!1}),l.SlideShow&&l.SlideShow.isActive&&l.SlideShow.stop())},scaleToFit:function(t){var e,o=this,i=o.current,a=i.$content;o.isAnimating||o.isMoved()||!a||"image"!=i.type||!i.isLoaded||i.hasError||(o.isAnimating=!0,n.fancybox.stop(a),e=o.getFitPos(i),o.updateCursor(e.width,e.height),n.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,function(){o.isAnimating=!1}))},getFitPos:function(t){var e,o,i,a,s=this,r=t.$content,c=t.$slide,l=t.width||t.opts.width,d=t.height||t.opts.height,u={};return!!(t.isLoaded&&r&&r.length)&&(e=n.fancybox.getTranslate(s.$refs.stage).width,o=n.fancybox.getTranslate(s.$refs.stage).height,e-=parseFloat(c.css("paddingLeft"))+parseFloat(c.css("paddingRight"))+parseFloat(r.css("marginLeft"))+parseFloat(r.css("marginRight")),o-=parseFloat(c.css("paddingTop"))+parseFloat(c.css("paddingBottom"))+parseFloat(r.css("marginTop"))+parseFloat(r.css("marginBottom")),l&&d||(l=e,d=o),i=Math.min(1,e/l,o/d),l*=i,d*=i,l>e-.5&&(l=e),d>o-.5&&(d=o),"image"===t.type?(u.top=Math.floor(.5*(o-d))+parseFloat(c.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(c.css("paddingLeft"))):"video"===t.contentType&&(a=t.opts.width&&t.opts.height?l/d:t.opts.ratio||16/9,d>l/a?d=l/a:l>d*a&&(l=d*a)),u.width=l,u.height=d,u)},update:function(t){var e=this;n.each(e.slides,function(n,o){e.updateSlide(o,t)})},updateSlide:function(t,e){var o=this,i=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,r=t.$slide;o.adjustCaption(t),i&&(a||s||"video"===t.contentType)&&!t.hasError&&(n.fancybox.stop(i),n.fancybox.setTranslate(i,o.getFitPos(t)),t.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(t),r.length&&(r.trigger("refresh"),t.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",r.get(0).scrollHeight>r.get(0).clientHeight)),o.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,o=e.current,i=o.$slide;!e.isClosing&&o&&(i.siblings().css({transform:"",opacity:""}),i.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(i,{top:0,left:0,opacity:1},void 0===t?0:t,function(){i.css({transform:"",opacity:""}),o.isComplete||e.complete()},!1))},isMoved:function(t){var e,o,i=t||this.current;return!!i&&(o=n.fancybox.getTranslate(this.$refs.stage),e=n.fancybox.getTranslate(i.$slide),!i.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-o.top)>.5||Math.abs(e.left-o.left)>.5))},updateCursor:function(t,e){var o,i,a=this,s=a.current,r=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(r.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),o=a.canPan(t,e),i=!!o||a.isZoomable(),r.toggleClass("fancybox-is-zoomable",i),n("[data-fancybox-zoom]").prop("disabled",!i),o?r.addClass("fancybox-can-pan"):i&&("zoom"===s.opts.clickContent||n.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?r.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&r.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,n=e.current;if(n&&!e.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((t=e.getFitPos(n))&&(n.width>t.width||n.height>t.height))return!0}return!1},isScaledDown:function(t,e){var o=this,i=!1,a=o.current,s=a.$content;return void 0!==t&&void 0!==e?i=t<a.width&&e<a.height:s&&(i=n.fancybox.getTranslate(s),i=i.width<a.width&&i.height<a.height),i},canPan:function(t,e){var o=this,i=o.current,a=null,s=!1;return"image"===i.type&&(i.isComplete||t&&e)&&!i.hasError&&(s=o.getFitPos(i),void 0!==t&&void 0!==e?a={width:t,height:e}:i.isComplete&&(a=n.fancybox.getTranslate(i.$content)),a&&s&&(s=Math.abs(a.width-s.width)>1.5||Math.abs(a.height-s.height)>1.5)),s},loadSlide:function(t){var e,o,i,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,o=t.$slide,o.off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":n(t.src).length?a.setContent(t,n(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),i=n.ajax(n.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,n){"success"===n&&a.setContent(t,e)},error:function(e,n){e&&"abort"!==n&&a.setError(t)}})),o.one("onReset",function(){i.abort()});break;default:a.setError(t)}return!0}},setImage:function(t){var o,i=this;setTimeout(function(){var e=t.$image;i.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||i.showLoading(t)},50),i.checkSrcset(t),t.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,o=e.createElement("img"),o.onerror=function(){n(this).remove(),t.$ghost=null},o.onload=function(){i.afterLoad(t)},t.$ghost=n(o).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),i.setBigImage(t)},checkSrcset:function(e){var n,o,i,a,s=e.opts.srcset||e.opts.image.srcset;if(s){i=t.devicePixelRatio||1,a=t.innerWidth*i,o=s.split(",").map(function(t){var e={};return t.trim().split(/\s+/).forEach(function(t,n){var o=parseInt(t.substring(0,t.length-1),10);if(0===n)return e.url=t;o&&(e.value=o,e.postfix=t[t.length-1])}),e}),o.sort(function(t,e){return t.value-e.value});for(var r=0;r<o.length;r++){var c=o[r];if("w"===c.postfix&&c.value>=a||"x"===c.postfix&&c.value>=i){n=c;break}}!n&&o.length&&(n=o[o.length-1]),n&&(e.src=n.url,e.width&&e.height&&"w"==n.postfix&&(e.height=e.width/e.height*n.value,e.width=n.value),e.opts.srcset=s)}},setBigImage:function(t){var o=this,i=e.createElement("img"),a=n(i);t.$image=a.one("error",function(){o.setError(t)}).one("load",function(){var e;t.$ghost||(o.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),o.afterLoad(t)),o.isClosing||(t.opts.srcset&&(e=t.opts.sizes,e&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout(function(){t.$ghost&&!o.isClosing&&t.$ghost.hide()},Math.min(300,Math.max(1e3,t.height/1600))),o.hideLoading(t))}).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(i.complete||"complete"==i.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):i.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,n){var o=parseInt(t.opts.width,10),i=parseInt(t.opts.height,10);t.width=e,t.height=n,o>0&&(t.width=o,t.height=Math.floor(o*n/e)),i>0&&(t.width=Math.floor(i*e/n),t.height=i)},setIframe:function(t){var e,o=this,i=t.opts.iframe,a=t.$slide;t.$content=n('<div class="fancybox-content'+(i.preload?" fancybox-is-hidden":"")+'"></div>').css(i.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=n(i.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(i.attr).appendTo(t.$content),i.preload?(o.showLoading(t),e.on("load.fb error.fb",function(e){this.isReady=1,t.$slide.trigger("refresh"),o.afterLoad(t)}),a.on("refresh.fb",function(){var n,o,s=t.$content,r=i.css.width,c=i.css.height;if(1===e[0].isReady){try{n=e.contents(),o=n.find("body")}catch(t){}o&&o.length&&o.children().length&&(a.css("overflow","visible"),s.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===r&&(r=Math.ceil(Math.max(o[0].clientWidth,o.outerWidth(!0)))),s.css("width",r||"").css("max-width",""),void 0===c&&(c=Math.ceil(Math.max(o[0].clientHeight,o.outerHeight(!0)))),s.css("height",c||""),a.css("overflow","auto")),s.removeClass("fancybox-is-hidden")}})):o.afterLoad(t),e.attr("src",t.src),a.one("onReset",function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}n(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1})},setContent:function(t,e){var o=this;o.isClosing||(o.hideLoading(t),t.$content&&n.fancybox.stop(t.$content),t.$slide.empty(),l(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=n("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===n.type(e)&&(e=n("<div>").append(n.trim(e)).contents()),t.opts.filter&&(e=n("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",function(){n(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(n(this).empty(),t.isLoaded=!1,t.isRevealed=!1)}),n(e).appendTo(t.$slide),n(e).is("video,audio")&&(n(e).addClass("fancybox-video"),n(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||n(e).attr("width"),t.opts.height=t.opts.height||n(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),o.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=n(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){var e=this;(t=t||e.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=n(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",function(t){return 2==t.button&&t.preventDefault(),!0}),"image"===t.type&&n('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(),e.revealContent(t))},adjustCaption:function(t){var e,n=this,o=t||n.current,i=o.opts.caption,a=o.opts.preventCaptionOverlap,s=n.$refs.caption,r=!1;s.toggleClass("fancybox-caption--separate",a),a&&i&&i.length&&(o.pos!==n.currPos?(e=s.clone().appendTo(s.parent()),e.children().eq(0).empty().html(i),r=e.outerHeight(!0),e.empty().remove()):n.$caption&&(r=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",r||""))},adjustLayout:function(t){var e,n,o,i,a=this,s=t||a.current;s.isLoaded&&!0!==s.opts.disableLayoutFix&&(s.$content.css("margin-bottom",""),s.$content.outerHeight()>s.$slide.height()+.5&&(o=s.$slide[0].style["padding-bottom"],i=s.$slide.css("padding-bottom"),parseFloat(i)>0&&(e=s.$slide[0].scrollHeight,s.$slide.css("padding-bottom",0),Math.abs(e-s.$slide[0].scrollHeight)<1&&(n=i),s.$slide.css("padding-bottom",o))),s.$content.css("margin-bottom",n))},revealContent:function(t){var e,o,i,a,s=this,r=t.$slide,c=!1,l=!1,d=s.isMoved(t),u=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],i=t.opts[s.firstRun?"animationDuration":"transitionDuration"],i=parseInt(void 0===t.forcedDuration?i:t.forcedDuration,10),!d&&t.pos===s.currPos&&i||(e=!1),"zoom"===e&&(t.pos===s.currPos&&i&&"image"===t.type&&!t.hasError&&(l=s.getThumbPos(t))?c=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,c.scaleX=c.width/l.width,c.scaleY=c.height/l.height,a=t.opts.zoomOpacity,"auto"==a&&(a=Math.abs(t.width/t.height-l.width/l.height)>.1),a&&(l.opacity=.1,c.opacity=1),n.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),l),p(t.$content),void n.fancybox.animate(t.$content,c,i,function(){s.isAnimating=!1,s.complete()})):(s.updateSlide(t),e?(n.fancybox.stop(r),o="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e,r.addClass(o).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),p(r),"image"!==t.type&&t.$content.hide().show(0),void n.fancybox.animate(r,"fancybox-slide--current",i,function(){r.removeClass(o).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()},!0)):(t.$content.removeClass("fancybox-is-hidden"),u||!d||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,o,i,a,s,r=!1,c=t.$thumb;return!(!c||!g(c[0]))&&(e=n.fancybox.getTranslate(c),o=parseFloat(c.css("border-top-width")||0),i=parseFloat(c.css("border-right-width")||0),a=parseFloat(c.css("border-bottom-width")||0),s=parseFloat(c.css("border-left-width")||0),r={top:e.top+o,left:e.left+s,width:e.width-i-s,height:e.height-o-a,scaleX:1,scaleY:1},e.width>0&&e.height>0&&r)},complete:function(){var t,e=this,o=e.current,i={};!e.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),e.preload("inline"),p(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(e.slides,function(t,o){o.pos>=e.currPos-1&&o.pos<=e.currPos+1?i[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())}),e.slides=i),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",function(){
vendor: 5,241 bytes, lines 16-17
16this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()}),o.opts.autoFocus&&"html"===o.contentType&&(t=o.$content.find("input[autofocus]:enabled:visible:first"),t.length?t.trigger("focus"):e.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],e=o.slides[o.currPos-1],e&&e.type===t&&o.loadSlide(e),n&&n.type===t&&o.loadSlide(n))},focus:function(t,o){var i,a,s=this,r=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||(i=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible"),i=i.filter(r).filter(function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}),i.length?(a=i.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),i.eq(i.length-1).trigger("focus")):(a<0||a==i.length-1)&&(t&&t.preventDefault(),i.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;n(".fancybox-container").each(function(){var e=n(this).data("FancyBox");e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)}),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var o,i,a,s,r,c,l,u=this,f=u.current,h=function(){u.cleanUp(t)};return!u.isClosing&&(u.isClosing=!0,!1===u.trigger("beforeClose",t)?(u.isClosing=!1,d(function(){u.update()}),!1):(u.removeEvents(),a=f.$content,o=f.opts.animationEffect,i=n.isNumeric(e)?e:o?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?n.fancybox.stop(f.$slide):o=!1,f.$slide.siblings().trigger("onReset").remove(),i&&u.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",i+"ms"),u.hideLoading(f),u.hideControls(!0),u.updateCursor(),"zoom"!==o||a&&i&&"image"===f.type&&!u.isMoved()&&!f.hasError&&(l=u.getThumbPos(f))||(o="fade"),"zoom"===o?(n.fancybox.stop(a),s=n.fancybox.getTranslate(a),c={top:s.top,left:s.left,scaleX:s.width/l.width,scaleY:s.height/l.height,width:l.width,height:l.height},r=f.opts.zoomOpacity,"auto"==r&&(r=Math.abs(f.width/f.height-l.width/l.height)>.1),r&&(l.opacity=0),
17n.fancybox.setTranslate(a,c),p(a),n.fancybox.animate(a,l,i,h),!0):(o&&i?n.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,i,h):!0===t?setTimeout(h,i):h(),!0)))},cleanUp:function(e){var o,i,a,s=this,r=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(r&&r.length&&r.is(":visible")||(r=s.$trigger),r&&r.length&&(i=t.scrollX,a=t.scrollY,r.trigger("focus"),n("html, body").scrollTop(a).scrollLeft(i))),s.current=null,o=n.fancybox.getInstance(),o?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(t,e){var o,i=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;if(s?i.unshift(s):s=a,i.unshift(a),n.isFunction(s.opts[t])&&(o=s.opts[t].apply(s,i)),!1===o)return o;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",i):r.trigger(t+".fb",i)},updateControls:function(){var t=this,o=t.current,i=o.index,a=t.$refs.container,s=t.$refs.caption,r=o.opts.caption;o.$slide.trigger("refresh"),r&&r.length?(t.$caption=s,s.children().eq(0).html(r)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(i+1),a.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&i<=0),a.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&i>=t.group.length-1),"image"===o.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=this,n=["infobar","toolbar","nav"];!t&&e.current.opts.preventCaptionOverlap||n.push("caption"),this.$refs.container.removeClass(n.map(function(t){return"fancybox-show-"+t}).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,n=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.6
vendor: 28,259 bytes, line 17
17",defaults:a,getInstance:function(t){var e=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return e instanceof b&&("string"===n.type(t)?e[t].apply(e,o):"function"===n.type(t)&&t.apply(e,o),e)},open:function(t,e,n){return new b(t,e,n)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),r.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(n)&&t.getComputedStyle(n).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&(e=t[0].getBoundingClientRect(),{top:e.top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))})},setTranslate:function(t,e){var n="",o={};if(t&&e)return void 0===e.left&&void 0===e.top||(n=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==e.scaleX&&void 0!==e.scaleY?n+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(n+=" scaleX("+e.scaleX+")"),n.length&&(o.transform=n),void 0!==e.opacity&&(o.opacity=e.opacity),void 0!==e.width&&(o.width=e.width),void 0!==e.height&&(o.height=e.height),t.css(o)},animate:function(t,e,o,i,a){var s,r=this;n.isFunction(o)&&(i=o,o=null),r.stop(t),s=r.getTranslate(t),t.on(f,function(c){(!c||!c.originalEvent||t.is(c.originalEvent.target)&&"z-index"!=c.originalEvent.propertyName)&&(r.stop(t),n.isNumeric(o)&&t.css("transition-duration",""),n.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&r.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),n.isFunction(i)&&i(c))}),n.isNumeric(o)&&t.css("transition-duration",o+"ms"),n.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout(function(){t.trigger(f)},o+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(f),t.off(f).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(t){var e;return t=t||{},e=t.selector||!1,e?n("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},i):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},i),this},r.on("click.fb-start","[data-fancybox]",i),r.on("click.fb-start","[data-fancybox-trigger]",function(t){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})}),function(){var t=null;r.on("mousedown mouseup focus blur",".fancybox-button",function(e){switch(e.type){case"mousedown":t=n(this);break;case"mouseup":t=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(t)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}})}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(e,n,o){if(e)return o=o||"","object"===t.type(o)&&(o=t.param(o,!0)),t.each(n,function(t,n){e=e.replace("$"+t,n||"")}),o.length&&(e+=(e.indexOf("?")>0?"&":"?")+o),e};t(document).on("objectNeedsType.fb",function(o,i,a){var s,r,c,l,d,u,f,p=a.src||"",h=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,function(e,o){if(c=p.match(o.matcher)){if(h=o.type,f=e,u={},o.paramPlace&&c[o.paramPlace]){d=c[o.paramPlace],"?"==d[0]&&(d=d.substring(1)),d=d.split("&");for(var i=0;i<d.length;++i){var s=d[i].split("=",2);2==s.length&&(u[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return l=t.extend(!0,{},o.params,a.opts[e],u),p="function"===t.type(o.url)?o.url.call(this,c,l,a):n(o.url,c,l),r="function"===t.type(o.thumb)?o.thumb.call(this,c,l,a):n(o.thumb,c),"youtube"===e?p=p.replace(/&t=((\d+)m)?(\d+)s/,function(t,e,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))}):"vimeo"===e&&(p=p.replace("&%23","#")),!1}}),h?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=r),"iframe"===h&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:h,src:p,origSrc:a.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(a.type=a.opts.defaultType)});var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,n=this;if(this[t].loaded)return void setTimeout(function(){n.done(t)});this[t].loading||(this[t].loading=!0,e=document.createElement("script"),e.type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){n[t].loaded=!0,n.done(t)}:e.onload=function(){n[t].loaded=!0,n.done(t)},document.body.appendChild(e))},done:function(e){var n,o,i;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(n=t.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?i=new YT.Player(o.attr("id"),{events:{onStateChange:function(t){0==t.data&&n.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&(i=new Vimeo.Player(o),i.on("ended",function(){n.next()})))}};t(document).on({"afterShow.fb":function(t,e,n){e.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(jQuery),function(t,e,n){"use strict";var o=function(){return t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)}}(),i=function(){return t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)}}(),a=function(e){var n=[];e=e.originalEvent||e||t.e,e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var o in e)e[o].pageX?n.push({x:e[o].pageX,y:e[o].pageY}):e[o].clientX&&n.push({x:e[o].clientX,y:e[o].clientY});return n},s=function(t,e,n){return e&&t?"x"===n?t.x-e.x:"y"===n?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},r=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,o=t[0].attributes,i=o.length;e<i;e++)if("data-fancybox-"===o[e].nodeName.substr(0,14))return!0;return!1},c=function(e){var n=t.getComputedStyle(e)["overflow-y"],o=t.getComputedStyle(e)["overflow-x"],i=("scroll"===n||"auto"===n)&&e.scrollHeight>e.clientHeight,a=("scroll"===o||"auto"===o)&&e.scrollWidth>e.clientWidth;return i||a},l=function(t){for(var e=!1;;){if(e=c(t.get(0)))break;if(t=t.parent(),!t.length||t.hasClass("fancybox-stage")||t.is("body"))break}return e},d=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(e,"ontouchstart"))};d.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),n(e).off(".fb.touch"),t.requestId&&(i(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},d.prototype.ontouchstart=function(o){var i=this,c=n(o.target),d=i.instance,u=d.current,f=u.$slide,p=u.$content,h="touchstart"==o.type;if(h&&i.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&c.length&&!r(c)&&!r(c.parent())&&(c.is("img")||!(o.originalEvent.clientX>c[0].clientWidth+c.offset().left))){if(!u||d.isAnimating||u.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();i.realPoints=i.startPoints=a(o),i.startPoints.length&&(u.touch&&o.stopPropagation(),i.startEvent=o,i.canTap=!0,i.$target=c,i.$content=p,i.opts=u.opts.touch,i.isPanning=!1,i.isSwiping=!1,i.isZooming=!1,i.isScrolling=!1,i.canPan=d.canPan(),i.startTime=(new Date).getTime(),i.distanceX=i.distanceY=i.distance=0,i.canvasWidth=Math.round(f[0].clientWidth),i.canvasHeight=Math.round(f[0].clientHeight),i.contentLastPos=null,i.contentStartPos=n.fancybox.getTranslate(i.$content)||{top:0,left:0},i.sliderStartPos=n.fancybox.getTranslate(f),i.stagePos=n.fancybox.getTranslate(d.$refs.stage),i.sliderStartPos.top-=i.stagePos.top,i.sliderStartPos.left-=i.stagePos.left,i.contentStartPos.top-=i.stagePos.top,i.contentStartPos.left-=i.stagePos.left,n(e).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(i,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(i,"ontouchmove")),n.fancybox.isMobile&&e.addEventListener("scroll",i.onscroll,!0),((i.opts||i.canPan)&&(c.is(i.$stage)||i.$stage.find(c).length)||(c.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&c.parents(".fancybox-caption").length))&&(i.isScrollable=l(c)||l(c.parent()),n.fancybox.isMobile&&i.isScrollable||o.preventDefault(),(1===i.startPoints.length||u.hasError)&&(i.canPan?(n.fancybox.stop(i.$content),i.isPanning=!0):i.isSwiping=!0,i.$container.addClass("fancybox-is-grabbing")),2===i.startPoints.length&&"image"===u.type&&(u.isLoaded||u.$ghost)&&(i.canTap=!1,i.isSwiping=!1,i.isPanning=!1,i.isZooming=!0,n.fancybox.stop(i.$content),i.centerPointStartX=.5*(i.startPoints[0].x+i.startPoints[1].x)-n(t).scrollLeft(),i.centerPointStartY=.5*(i.startPoints[0].y+i.startPoints[1].y)-n(t).scrollTop(),i.percentageOfImageAtPinchPointX=(i.centerPointStartX-i.contentStartPos.left)/i.contentStartPos.width,i.percentageOfImageAtPinchPointY=(i.centerPointStartY-i.contentStartPos.top)/i.contentStartPos.height,i.startDistanceBetweenFingers=s(i.startPoints[0],i.startPoints[1]))))}},d.prototype.onscroll=function(t){var n=this;n.isScrolling=!0,e.removeEventListener("scroll",n.onscroll,!0)},d.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},d.prototype.onSwipe=function(e){var a,s=this,r=s.instance,c=s.isSwiping,l=s.sliderStartPos.left||0;if(!0!==c)"x"==c&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?l+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?l-=Math.pow(-s.distanceX,.8):l+=s.distanceX),s.sliderLastPos={top:"x"==c?0:s.sliderStartPos.top+s.distanceY,left:l},s.requestId&&(i(s.requestId),s.requestId=null),s.requestId=o(function(){s.sliderLastPos&&(n.each(s.instance.slides,function(t,e){var o=e.pos-s.instance.currPos;n.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+o*s.canvasWidth+o*e.opts.gutter})}),s.$container.addClass("fancybox-is-sliding"))});else if(Math.abs(s.distance)>10){if(s.canTap=!1,r.group.length<2&&s.opts.vertical?s.isSwiping="y":r.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&n(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&n.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);r.isDragging=s.isSwiping,s.startPoints=s.newPoints,n.each(r.slides,function(t,e){var o,i;n.fancybox.stop(e.$slide),o=n.fancybox.getTranslate(e.$slide),i=n.fancybox.getTranslate(r.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass(function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}),e.pos===r.current.pos&&(s.sliderStartPos.top=o.top-i.top,s.sliderStartPos.left=o.left-i.left),n.fancybox.setTranslate(e.$slide,{top:o.top-i.top,left:o.left-i.left})}),r.SlideShow&&r.SlideShow.isActive&&r.SlideShow.stop()}},d.prototype.onPan=function(){var t=this;if(s(t.newPoints[0],t.realPoints[0])<(n.fancybox.isMobile?10:5))return void(t.startPoints=t.newPoints);t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&i(t.requestId),t.requestId=o(function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)})},d.prototype.limitMovement=function(){var t,e,n,o,i,a,s=this,r=s.canvasWidth,c=s.canvasHeight,l=s.distanceX,d=s.distanceY,u=s.contentStartPos,f=u.left,p=u.top,h=u.width,g=u.height;return i=h>r?f+l:f,a=p+d,t=Math.max(0,.5*r-.5*h),e=Math.max(0,.5*c-.5*g),n=Math.min(r-h,.5*r-.5*h),o=Math.min(c-g,.5*c-.5*g),l>0&&i>t&&(i=t-1+Math.pow(-t+f+l,.8)||0),l<0&&i<n&&(i=n+1-Math.pow(n-f-l,.8)||0),d>0&&a>e&&(a=e-1+Math.pow(-e+p+d,.8)||0),d<0&&a<o&&(a=o+1-Math.pow(o-p-d,.8)||0),{top:a,left:i}},d.prototype.limitPosition=function(t,e,n,o){var i=this,a=i.canvasWidth,s=i.canvasHeight;return n>a?(t=t>0?0:t,t=t<a-n?a-n:t):t=Math.max(0,a/2-n/2),o>s?(e=e>0?0:e,e=e<s-o?s-o:e):e=Math.max(0,s/2-o/2),{top:e,left:t}},d.prototype.onZoom=function(){var e=this,a=e.contentStartPos,r=a.width,c=a.height,l=a.left,d=a.top,u=s(e.newPoints[0],e.newPoints[1]),f=u/e.startDistanceBetweenFingers,p=Math.floor(r*f),h=Math.floor(c*f),g=(r-p)*e.percentageOfImageAtPinchPointX,b=(c-h)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-n(t).scrollLeft(),v=(e.newPoints[0].y+e.newPoints[1].y)/2-n(t).scrollTop(),y=m-e.centerPointStartX,x=v-e.centerPointStartY,w=l+(g+y),$=d+(b+x),S={top:$,left:w,scaleX:f,scaleY:f};e.canTap=!1,e.newWidth=p,e.newHeight=h,e.contentLastPos=S,e.requestId&&i(e.requestId),e.requestId=o(function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})},d.prototype.ontouchend=function(t){var o=this,s=o.isSwiping,r=o.isPanning,c=o.isZooming,l=o.isScrolling;if(o.endPoints=a(t),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(e).off(".fb.touch"),e.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(i(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(t);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,r?o.endPanning():c?o.endZooming():o.endSwiping(s,l)},d.prototype.endSwiping=function(t,e){var o=this,i=!1,a=o.instance.group.length,s=Math.abs(o.distanceX),r="x"==t&&a>1&&(o.dMs>130&&s>10||s>50);o.sliderLastPos=null,"y"==t&&!e&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),i=o.instance.close(!0,250)):r&&o.distanceX>0?i=o.instance.previous(300):r&&o.distanceX<0&&(i=o.instance.next(300)),!1!==i||"x"!=t&&"y"!=t||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},d.prototype.endPanning=function(){var t,e,o,i=this;i.contentLastPos&&(!1===i.opts.momentum||i.dMs>350?(t=i.contentLastPos.left,e=i.contentLastPos.top):(t=i.contentLastPos.left+500*i.velocityX,e=i.contentLastPos.top+500*i.velocityY),o=i.limitPosition(t,e,i.contentStartPos.width,i.contentStartPos.height),o.width=i.contentStartPos.width,o.height=i.contentStartPos.height,n.fancybox.animate(i.$content,o,366))},d.prototype.endZooming=function(){var t,e,o,i,a=this,s=a.instance.current,r=a.newWidth,c=a.newHeight;a.contentLastPos&&(t=a.contentLastPos.left,e=a.contentLastPos.top,i={top:e,left:t,width:r,height:c,scaleX:1,scaleY:1},n.fancybox.setTranslate(a.$content,i),r<a.canvasWidth&&c<a.canvasHeight?a.instance.scaleToFit(150):r>s.width||c>s.height?a.instance.scaleToActual(a.centerPointStartX,a.centerPointStartY,150):(o=a.limitPosition(t,e,r,c),n.fancybox.animate(a.$content,o,150)))},d.prototype.onTap=function(e){var o,i=this,s=n(e.target),r=i.instance,c=r.current,l=e&&a(e)||i.startPoints,d=l[0]?l[0].x-n(t).scrollLeft()-i.stagePos.left:0,u=l[0]?l[0].y-n(t).scrollTop()-i.stagePos.top:0,f=function(t){var o=c.opts[t];if(n.isFunction(o)&&(o=o.apply(r,[c,e])),o)switch(o){case"close":r.close(i.startEvent);break;case"toggleControls":r.toggleControls();break;case"next":r.next();break;case"nextOrClose":r.group.length>1?r.next():r.close(i.startEvent);break;case"zoom":"image"==c.type&&(c.isLoaded||c.$ghost)&&(r.canPan()?r.scaleToFit():r.isScaledDown()?r.scaleToActual(d,u):r.group.length<2&&r.close(i.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(d>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(s.is(".fancybox-slide"))o="Slide";else{if(!r.current.$content||!r.current.$content.find(s).addBack().filter(s).length)return;o="Content"}if(i.tapped){if(clearTimeout(i.tapped),i.tapped=null,Math.abs(d-i.tapX)>50||Math.abs(u-i.tapY)>50)return this;f("dblclick"+o)}else i.tapX=d,i.tapY=u,c.opts["dblclick"+o]&&c.opts["dblclick"+o]!==c.opts["click"+o]?i.tapped=setTimeout(function(){i.tapped=null,r.isAnimating||f("click"+o)},500):f("click"+o);return this}},n(e).on("onActivate.fb",function(t,e){e&&!e.Guestures&&(e.Guestures=new d(e))}).on("beforeClose.fb",function(t,e){e&&e.Guestures&&e.Guestures.destroy()})}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(t){this.instance=t,this.init()};e.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,n=t.instance,o=n.group[n.currIndex].opts.slideShow;t.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",function(){t.toggle()}),n.group.length<2||!o?t.$button.hide():o.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(t){var n=this,o=n.instance,i=o.current;i&&(!0===t||i.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==i.contentType&&(n.$progress&&e.fancybox.animate(n.$progress.show(),{scaleX:1},i.opts.slideShow.speed),n.timer=setTimeout(function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)},i.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new n(e))},"beforeShow.fb":function(t,e,n,o){var i=e&&e.SlideShow;o?i&&n.opts.slideShow.autoStart&&i.start():i&&i.isActive&&i.clear()},"afterShow.fb":function(t,e,n){var o=e&&e.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,i,a,s){var r=o&&o.SlideShow;!r||!i.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),r.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var n=e&&e.SlideShow;n&&n.stop()}}),e(t).on("visibilitychange",function(){var n=e.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(t.hidden?o.clear():o.set())})}(document,jQuery),function(t,e){"use strict";var n=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<e.length;o++){var i=e[o];if(i&&i[1]in t){for(var a=0;a<i.length;a++)n[e[0][a]]=i[a];return n}}return!1}();if(n){var o={request:function(e){e=e||t.documentElement,e[n.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[n.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[n.fullscreenElement])},enabled:function(){return Boolean(t[n.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(n.fullscreenchange,function(){var t=o.isFullscreen(),n=e.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",t),n.$refs.container.toggleClass("fancybox-is-fullscreen",t),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))})}e(t).on({"onInit.fb":function(t,e){var i;if(!n)return void e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove();e&&e.group[e.currIndex].opts.fullScreen?(i=e.$refs.container,i.on("click.fb-fullscreen","[data-fancybox-fullscreen]",function(t){t.stopPropagation(),t.preventDefault(),o.toggle()}),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&o.request(),e.FullScreen=o):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide()},"afterKeydown.fb":function(t,e,n,o,i){e&&e.FullScreen&&70===i&&(o.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,jQuery),function(t,e){"use strict";var n="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var o=function(t){this.init(t)};e.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,n=t.group,o=0;e.instance=t,e.opts=n[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var i=0,a=n.length;i<a&&(n[i].thumb&&o++,!(o>1));i++);o>1&&e.opts?(e.$button.removeAttr("style").on("click",function(){e.toggle()}),e.isActive=!0):e.$button.hide()},create:function(){var t,o=this,i=o.instance,a=o.opts.parentEl,s=[];o.$grid||(o.$grid=e('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(i.$refs.container.find(a).addBack().filter(a)),o.$grid.on("click","a",function(){i.jumpTo(e(this).attr("data-index"))})),o.$list||(o.$list=e('<div class="'+n+'__list">').appendTo(o.$grid)),e.each(i.group,function(e,n){t=n.thumb,t||"image"!==n.type||(t=n.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")}),o.$list[0].innerHTML=s.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+i.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,n,o=this,i=o.$list,a=o.$grid;o.instance.current&&(e=i.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active"),n=e.position(),"y"===o.opts.axis&&(n.top<0||n.top>i.height()-e.outerHeight())?i.stop().animate({scrollTop:i.scrollTop()+n.top},t):"x"===o.opts.axis&&(n.left<a.scrollLeft()||n.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&i.parent().stop().animate({scrollLeft:n.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focus(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var n;e&&!e.Thumbs&&(n=new o(e),n.isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(t,e,n,o){var i=e&&e.Thumbs;i&&i.isVisible&&i.focus(o?0:250)},"afterKeydown.fb":function(t,e,n,o,i){var a=e&&e.Thumbs;a&&a.isActive&&71===i&&(o.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var n=e&&e.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";function n(t){var e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(t).replace(/[&<>"'`=\/]/g,function(t){return e[t]})}e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},
vendor: 2,330 bytes, lines 17-18
17
18tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",function(){var t,o,i=e.fancybox.getInstance(),a=i.current||null;a&&("function"===e.type(a.opts.share.url)&&(t=a.opts.share.url.apply(a,[i,a])),o=a.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===a.type?encodeURIComponent(a.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,n(t)).replace(/\{\{descr\}\}/g,i.$caption?encodeURIComponent(i.$caption.text()):""),e.fancybox.open({src:i.translate(i,o),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){i.$refs.container.one("beforeClose.fb",function(){t.close(null,0)}),e.$content.find(".fancybox-share__button").click(function(){return window.open(this.href,"Share","width=550, height=450"),!1})}
18,mobile:{autoFocus:!1}}}))})}(document,jQuery),function(t,e,n){"use strict";function o(){var e=t.location.hash.substr(1),n=e.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])?parseInt(n.pop(-1),10)||1:1,i=n.join("-");return{hash:e,index:o<1?1:o,gallery:i}}function i(t){""!==t.gallery&&n("[data-fancybox='"+n.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,n;return!!t&&(e=t.current?t.current.opts:t.opts,""!==(n=e.hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t})}),n(function(){!1!==n.fancybox.defaults.hash&&(n(e).on({"onInit.fb":function(t,e){var n,i;!1!==e.group[e.currIndex].opts.hash&&(n=o(),(i=a(e))&&n.gallery&&i==n.gallery&&(e.currIndex=n.index-1))},"beforeShow.fb":function(n,o,i,s){var r;i&&!1!==i.opts.hash&&(r=a(o))&&(o.currentHash=r+(o.group.length>1?"-"+(i.index+1):""),t.location.hash!=="#"+o.currentHash&&(s&&!o.origHash&&(o.origHash=t.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout(function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+o.currentHash),s&&(o.hasCreatedHistory=!0)):t.location.hash=o.currentHash,o.hashTimer=null},300)))},"beforeClose.fb":function(n,o,i){i&&!1!==i.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?t.history.back():o.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(o.origHash||"")):t.location.hash=o.origHash),o.currentHash=null)}}),n(t).on("hashchange.fb",function(){var t=o(),e=null;n.each(n(".fancybox-container").get().reverse(),function(t,o){var i=n(o).data("FancyBox");if(i&&i.currentHash)return e=i,!1}),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&i(t)}),setTimeout(function(){n.fancybox.getInstance()||i(o())},50))})}(window,document,jQuery),function(t,e){"use strict";var n=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,o){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",function(t){var o=e.current,i=(new Date).getTime();e.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(t.preventDefault(),t.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,i-n<250||(n=i,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))})}})}(document,jQuery);
19(function(window){'use strict';function classReg(className){return new RegExp("(^|\\s+)"+className+"(\\s+|$)");}var hasClass,addClass,removeClass;if('classList'in document.documentElement){hasClass=function(elem,c){return elem.classList.contains(c);};addClass=function(elem,c){elem.classList.add(c);};removeClass=function(elem,c){elem.classList.remove(c);};}else{hasClass=function(elem,c){return classReg(c).test(elem.className);};addClass=function(elem,c){if(!hasClass(elem,c)){elem.className=elem.className+' '+c;}};removeClass=function(elem,c){elem.className=elem.className.replace(classReg(c),' ');};}function toggleClass(elem,c){var fn=hasClass(elem,c)?removeClass:addClass;fn(elem,c);}var classie={hasClass:hasClass,addClass:addClass,removeClass:removeClass,toggleClass:toggleClass,has:hasClass,add:addClass,remove:removeClass,toggle:toggleClass};if(typeof define==='function'&&define.amd){define(classie);}else{window.classie=classie;}})(window);
20/*
21 * jQuery FlexSlider v2.4.0
22 * Copyright 2012 WooThemes
23 * Contributing Author: Tyler Smith
24 */!function($){$.flexslider=function(e,t){var a=$(e);a.vars=$.extend({},$.flexslider.defaults,t);var n=a.vars.namespace,i=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,s=("ontouchstart"in window||i||window.DocumentTouch&&document instanceof DocumentTouch)&&a.vars.touch,r="click touchend MSPointerUp keyup",o="",l,c="vertical"===a.vars.direction,d=a.vars.reverse,u=a.vars.itemWidth>0,v="fade"===a.vars.animation,p=""!==a.vars.asNavFor,m={},f=!0;$.data(e,"flexslider",a),m={init:function(){a.animating=!1,a.currentSlide=parseInt(a.vars.startAt?a.vars.startAt:0,10),isNaN(a.currentSlide)&&(a.currentSlide=0),a.animatingTo=a.currentSlide,a.atEnd=0===a.currentSlide||a.currentSlide===a.last,a.containerSelector=a.vars.selector.substr(0,a.vars.selector.search(" ")),a.slides=$(a.vars.selector,a),a.container=$(a.containerSelector,a),a.count=a.slides.length,a.syncExists=$(a.vars.sync).length>0,"slide"===a.vars.animation&&(a.vars.animation="swing"),a.prop=c?"top":"marginLeft",a.args={},a.manualPause=!1,a.stopped=!1,a.started=!1,a.startTimeout=null,a.transitions=!a.vars.video&&!v&&a.vars.useCSS&&function(){var e=document.createElement("div"),t=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var n in t)if(void 0!==e.style[t[n]])return a.pfx=t[n].replace("Perspective","").toLowerCase(),a.prop="-"+a.pfx+"-transform",!0;return!1}(),a.ensureAnimationEnd="",""!==a.vars.controlsContainer&&(a.controlsContainer=$(a.vars.controlsContainer).length>0&&$(a.vars.controlsContainer)),""!==a.vars.manualControls&&(a.manualControls=$(a.vars.manualControls).length>0&&$(a.vars.manualControls)),a.vars.randomize&&(a.slides.sort(function(){return Math.round(Math.random())-.5}),a.container.empty().append(a.slides)),a.doMath(),a.setup("init"),a.vars.c
vendor: 4,153 bytes, line 24
24ontrolNav&&m.controlNav.setup(),a.vars.directionNav&&m.directionNav.setup(),a.vars.keyboard&&(1===$(a.containerSelector).length||a.vars.multipleKeyboard)&&$(document).bind("keyup",function(e){var t=e.keyCode;if(!a.animating&&(39===t||37===t)){var n=39===t?a.getTarget("next"):37===t?a.getTarget("prev"):!1;a.flexAnimate(n,a.vars.pauseOnAction)}}),a.vars.mousewheel&&a.bind("mousewheel",function(e,t,n,i){e.preventDefault();var s=a.getTarget(0>t?"next":"prev");a.flexAnimate(s,a.vars.pauseOnAction)}),a.vars.pausePlay&&m.pausePlay.setup(),a.vars.slideshow&&a.vars.pauseInvisible&&m.pauseInvisible.init(),a.vars.slideshow&&(a.vars.pauseOnHover&&a.hover(function(){a.manualPlay||a.manualPause||a.pause()},function(){a.manualPause||a.manualPlay||a.stopped||a.play()}),a.vars.pauseInvisible&&m.pauseInvisible.isHidden()||(a.vars.initDelay>0?a.startTimeout=setTimeout(a.play,a.vars.initDelay):a.play())),p&&m.asNav.setup(),s&&a.vars.touch&&m.touch(),(!v||v&&a.vars.smoothHeight)&&$(window).bind("resize orientationchange focus",m.resize),a.find("img").attr("draggable","false"),setTimeout(function(){a.vars.start(a)},200)},asNav:{setup:function(){a.asNav=!0,a.animatingTo=Math.floor(a.currentSlide/a.move),a.currentItem=a.currentSlide,a.slides.removeClass(n+"active-slide").eq(a.currentItem).addClass(n+"active-slide"),i?(e._slider=a,a.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(e){e.preventDefault(),e.currentTarget._gesture&&e.currentTarget._gesture.addPointer(e.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var t=$(this),n=t.index();$(a.vars.asNavFor).data("flexslider").animating||t.hasClass("active")||(a.direction=a.currentItem<n?"next":"prev",a.flexAnimate(n,a.vars.pauseOnAction,!1,!0,!0))})})):a.slides.on(r,function(e){e.preventDefault();var t=$(this),i=t.index(),s=t.offset().left-$(a).scrollLeft();0>=s&&t.hasClass(n+"active-slide")?a.flexAnimate(a.getTarget("prev"),!0):$(a.vars.asNavFor).data("flexslider").animating||t.hasClass(n+"active-slide")||(a.direction=a.currentItem<i?"next":"prev",a.flexAnimate(i,a.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){a.manualControls?m.controlNav.setupManual():m.controlNav.setupPaging()},setupPaging:function(){var e="thumbnails"===a.vars.controlNav?"control-thumbs":"control-paging",t=1,i,s;if(a.controlNavScaffold=$('<ol class="'+n+"control-nav "+n+e+'"></ol>'),a.pagingCount>1)for(var l=0;l<a.pagingCount;l++){if(s=a.slides.eq(l),i="thumbnails"===a.vars.controlNav?'<img src="'+s.attr("data-thumb")+'"/>':"<a>"+t+"</a>","thumbnails"===a.vars.controlNav&&!0===a.vars.thumbCaptions){var c=s.attr("data-thumbcaption");""!=c&&void 0!=c&&(i+='<span class="'+n+'caption">'+c+"</span>")}a.controlNavScaffold.append("<li>"+i+"</li>"),t++}a.controlsContainer?$(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold),m.controlNav.set(),m.controlNav.active(),a.controlNavScaffold.delegate("a, img",r,function(e){if(e.preventDefault(),""===o||o===e.type){var t=$(this),i=a.controlNav.index(t);t.hasClass(n+"active")||(a.direction=i>a.currentSlide?"next":"prev",a.flexAnimate(i,a.vars.pauseOnAction))}""===o&&(o=e.type),m.setToClearWatchedEvent()})},setupManual:function(){a.controlNav=a.manualControls,m.controlNav.active(),a.controlNav.bind(r,function(e){if(e.preventDefault(),""===o||o===e.type){var t=$(this),i=a.controlNav.index(t);t.hasClass(n+"active")||(a.direction=i>a.currentSlide?"next":"prev",a.flexAnimate(i,a.vars.pauseOnAction))}""===o&&(o=e.type),m.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===a.vars.controlNav?"img":"a";a.controlNav=$("."+n+"control-nav li "+e,a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(n+"active").eq(a.animatingTo).addClass(n+"active")},update:function(e,t){a.pagingCount>1&&"add"===e?a.controlNavScaffold.append($("<li><a>"+a.count+"</a></li>")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(t).closest("li").remove(),m.controlNav.set(),a.pagingCount>1&&a.pagingCount!==a.controlNav.length?a.update(t,e):m.controlNav.active()}}
24,directionNav:{setup:function(){var e=$('<ul class="'+n+'direction-nav"><li class="'+n+'nav-prev"><a class="'+n+'prev" href="#">'+a.vars.prevText+'</a></li><li class="'+n+'nav-next"><a class="'+n+'next" href="#">'+a.vars.nextText+"</a></li></ul>");a.controlsContainer?($(a.controlsContainer).append(e),a.directionNav=$("."+n+"direction-nav li a",a.controlsContainer)):(a.append(e),a.directionNav=$("."+n+"direction-nav li a",a)),m.directionNav.update(),a.directionNav.bind(r,function(e){e.preventDefault();var t;(""===o||o===e.type)&&(t=a.getTarget($(this).hasClass(n+"next")?"next":"prev"),a.flexAnimate(t,a.vars.pauseOnAction)),""===o&&(o=e.type),m.setToClearWatchedEvent()})},update:function(){var e=n+"disabled";1===a.pagingCount?a.directionNav.addClass(e).attr("tabindex","-1"):a.vars.animationLoop?a.directionNav.removeClass(e).removeAttr("tabindex"):0===a.animatingTo?a.directionNav.removeClass(e).filter("."+n+"prev").addClass(e).attr("tabindex","-1"):a.animatingTo===a.last?a.directionNav.removeClass(e).filter("."+n+"next").addClass(e).attr("tabindex","-1"):a.directionNav.removeClass(e).removeAttr("tabindex")}}
24,pausePlay:{setup:function(){var e=$('<div class="'+n+'pauseplay"><a></a></div>');a.controlsContainer?(a.controlsContainer.append(e),a.pausePlay=$("."+n+"pauseplay a",a.controlsContainer)):(a.append(e),a.pausePlay=$("."+n+"pauseplay a",a)),m.pausePlay.update(a.vars.slideshow?n+"pause":n+"play"),a.pausePlay.bind(r,function(e){e.preventDefault(),(""===o||o===e.type)&&($(this).hasClass(n+"pause")?(a.manualPause=!0,a.manualPlay=!1,a.pause()):(a.manualPause=!1,a.manualPlay=!0,a.play())),""===o&&(o=e.type),m.setToClearWatchedEvent()})},update:function(e){"play"===e?a.pausePlay.removeClass(n+"pause").addClass(n+"play").html(a.vars.playText):a.pausePlay.removeClass(n+"play").addClass(n+"pause").html(a.vars.pauseText)}},touch:function(){function t(t){a.animating?t.preventDefault():(window.navigator.msPointerEnabled||1===t.touches.length)&&(a.pause(),g=c?a.h:a.w,S=Number(new Date),x=t.touches[0].pageX,b=t.touches[0].pageY,f=u&&d&&a.animatingTo===a.last?0:u&&d?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:u&&a.currentSlide===a.last?a.limit:u?(a.itemW+a.vars.itemMargin)*a.move*a.currentSlide:d?(a.last-a.currentSlide+a.cloneOffset)*g:(a.currentSlide+a.cloneOffset)*g,p=c?b:x,m=c?x:b,e.addEventListener("touchmove",n,!1),e.addEventListener("touchend",s,!1))}function n(e){x=e.touches[0].pageX,b=e.touches[0].pageY,h=c?p-b:p-x,y=c?Math.abs(h)<Math.abs(x-m):Math.abs(h)<Math.abs(b-m);var t=500;(!y||Number(new Date)-S>t)&&(e.preventDefault(),!v&&a.transitions&&(a.vars.animationLoop||(h/=0===a.currentSlide&&0>h||a.currentSlide===a.last&&h>0?Math.abs(h)/g+2:1),a.setProps(f+h,"setTouch")))}function s(t){if(e.removeEventListener("touchmove",n,!1),a.animatingTo===a.currentSlide&&!y&&null!==h){var i=d?-h:h,r=a.getTarget(i>0?"next":"prev");a.canAdvance(r)&&(Number(new Date)-S<550&&Math.abs(i)>50||Math.abs(i)>g/2)?a.flexAnimate(r,a.vars.pauseOnAction):v||a.flexAnimate(a.currentSlide,a.vars.pauseOnAction,!0)}e.removeEventListener("touchend",s,!1),p=null,m=null,h=null,f=null}function r(t){t.stopPropagation(),a.animating?t.preventDefault():(a.pause(),e._gesture.addPointer(t.pointerId),w=0,g=c?a.h:a.w,S=Number(new Date),f=u&&d&&a.animatingTo===a.last?0:u&&d?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:u&&a.currentSlide===a.last?a.limit:u?(a.itemW+a.vars.itemMargin)*a.move*a.currentSlide:d?(a.last-a.currentSlide+a.cloneOffset)*g:(a.currentSlide+a.cloneOffset)*g)}function o(t){t.stopPropagation();var a=t.target._slider;if(a){var n=-t.translationX,i=-t.translationY;return w+=c?i:n,h=w,y=c?Math.abs(w)<Math.abs(-n):Math.abs(w)<Math.abs(-i),t.detail===t.MSGESTURE_FLAG_INERTIA?void setImmediate(function(){e._gesture.stop()}):void((!y||Number(new Date)-S>500)&&(t.preventDefault(),!v&&a.transitions&&(a.vars.animationLoop||(h=w/(0===a.currentSlide&&0>w||a.currentSlide===a.last&&w>0?Math.abs(w)/g+2:1)),a.setProps(f+h,"setTouch"))))}}function l(e){e.stopPropagation();var t=e.target._slider;if(t){if(t.animatingTo===t.currentSlide&&!y&&null!==h){var a=d?-h:h,n=t.getTarget(a>0?"next":"prev");t.canAdvance(n)&&(Number(new Date)-S<550&&Math.abs(a)>50||Math.abs(a)>g/2)?t.flexAnimate(n,t.vars.pauseOnAction):v||t.flexAnimate(t.currentSlide,t.vars.pauseOnAction,!0)}p=null,m=null,h=null,f=null,w=0}}var p,m,f,g,h,S,y=!1,x=0,b=0,w=0;i?(e.style.msTouchAction="none",e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",r,!1),e._slider=a,e.addEventListener("MSGestureChange",o,!1),e.addEventListener("MSGestureEnd",l,!1)):e.addEventListener("touchstart",t,!1)},resize:function(){!a.animating&&a.is(":visible")&&(u||a.doMath(),v?m.smoothHeight():u?(a.slides.width(a.computedW),a.update(a.pagingCount),a.setProps()):c?(a.viewport.height(a.h),a.setProps(a.h,"setTotal")):(a.vars.smoothHeight&&m.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW,"setTotal")))},smoothHeight:function(e){if(!c||v){var t=v?a:a.viewport;e?t.animate({height:a.slides.eq(a.animatingTo).height()},e):t.height(a.slides.eq(a.animatingTo).height())}},sync:function(e){var t=$(a.vars.sync).data("flexslider"),n=a.animatingTo;switch(e){case"animate":t.flexAnimate(n,a.vars.pauseOnAction,!1,!0);break;case"play":t.playing||t.asNav||t.play();break;case"pause":t.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=$
vendor: 7,983 bytes, line 24
24(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var e=m.pauseInvisible.getHiddenProp();if(e){var t=e.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(t,function(){m.pauseInvisible.isHidden()?a.startTimeout?clearTimeout(a.startTimeout):a.pause():a.started?a.play():a.vars.initDelay>0?setTimeout(a.play,a.vars.initDelay):a.play()})}},isHidden:function(){var e=m.pauseInvisible.getHiddenProp();return e?document[e]:!1},getHiddenProp:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(l),l=setTimeout(function(){o=""},3e3)}},a.flexAnimate=function(e,t,i,r,o){if(a.vars.animationLoop||e===a.currentSlide||(a.direction=e>a.currentSlide?"next":"prev"),p&&1===a.pagingCount&&(a.direction=a.currentItem<e?"next":"prev"),!a.animating&&(a.canAdvance(e,o)||i)&&a.is(":visible")){if(p&&r){var l=$(a.vars.asNavFor).data("flexslider");if(a.atEnd=0===e||e===a.count-1,l.flexAnimate(e,!0,!1,!0,o),a.direction=a.currentItem<e?"next":"prev",l.direction=a.direction,Math.ceil((e+1)/a.visible)-1===a.currentSlide||0===e)return a.currentItem=e,a.slides.removeClass(n+"active-slide").eq(e).addClass(n+"active-slide"),!1;a.currentItem=e,a.slides.removeClass(n+"active-slide").eq(e).addClass(n+"active-slide"),e=Math.floor(e/a.visible)}if(a.animating=!0,a.animatingTo=e,t&&a.pause(),a.vars.before(a),a.syncExists&&!o&&m.sync("animate"),a.vars.controlNav&&m.controlNav.active(),u||a.slides.removeClass(n+"active-slide").eq(e).addClass(n+"active-slide"),a.atEnd=0===e||e===a.last,a.vars.directionNav&&m.directionNav.update(),e===a.last&&(a.vars.end(a),a.vars.animationLoop||a.pause()),v)s?(a.slides.eq(a.currentSlide).css({opacity:0,zIndex:1}),a.slides.eq(e).css({opacity:1,zIndex:2}),a.wrapup(f)):(a.slides.eq(a.currentSlide).css({zIndex:1}).animate({opacity:0},a.vars.animationSpeed,a.vars.easing),a.slides.eq(e).css({zIndex:2}).animate({opacity:1},a.vars.animationSpeed,a.vars.easing,a.wrapup));else{var f=c?a.slides.filter(":first").height():a.computedW,g,h,S;u?(g=a.vars.itemMargin,S=(a.itemW+g)*a.move*a.animatingTo,h=S>a.limit&&1!==a.visible?a.limit:S):h=0===a.currentSlide&&e===a.count-1&&a.vars.animationLoop&&"next"!==a.direction?d?(a.count+a.cloneOffset)*f:0:a.currentSlide===a.last&&0===e&&a.vars.animationLoop&&"prev"!==a.direction?d?0:(a.count+1)*f:d?(a.count-1-e+a.cloneOffset)*f:(e+a.cloneOffset)*f,a.setProps(h,"",a.vars.animationSpeed),a.transitions?(a.vars.animationLoop&&a.atEnd||(a.animating=!1,a.currentSlide=a.animatingTo),a.container.unbind("webkitTransitionEnd transitionend"),a.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(a.ensureAnimationEnd),a.wrapup(f)}),clearTimeout(a.ensureAnimationEnd),a.ensureAnimationEnd=setTimeout(function(){a.wrapup(f)},a.vars.animationSpeed+100)):a.container.animate(a.args,a.vars.animationSpeed,a.vars.easing,function(){a.wrapup(f)})}a.vars.smoothHeight&&m.smoothHeight(a.vars.animationSpeed)}},a.wrapup=function(e){v||u||(0===a.currentSlide&&a.animatingTo===a.last&&a.vars.animationLoop?a.setProps(e,"jumpEnd"):a.currentSlide===a.last&&0===a.animatingTo&&a.vars.animationLoop&&a.setProps(e,"jumpStart")),a.animating=!1,a.currentSlide=a.animatingTo,a.vars.after(a)},a.animateSlides=function(){!a.animating&&f&&a.flexAnimate(a.getTarget("next"))},a.pause=function(){clearInterval(a.animatedSlides),a.animatedSlides=null,a.playing=!1,a.vars.pausePlay&&m.pausePlay.update("play"),a.syncExists&&m.sync("pause")},a.play=function(){a.playing&&clearInterval(a.animatedSlides),a.animatedSlides=a.animatedSlides||setInterval(a.animateSlides,a.vars.slideshowSpeed),a.started=a.playing=!0,a.vars.pausePlay&&m.pausePlay.update("pause"),a.syncExists&&m.sync("play")},a.stop=function(){a.pause(),a.stopped=!0},a.canAdvance=function(e,t){var n=p?a.pagingCount-1:a.last;return t?!0:p&&a.currentItem===a.count-1&&0===e&&"prev"===a.direction?!0:p&&0===a.currentItem&&e===a.pagingCount-1&&"next"!==a.direction?!1:e!==a.currentSlide||p?a.vars.animationLoop?!0:a.atEnd&&0===a.currentSlide&&e===n&&"next"!==a.direction?!1:a.atEnd&&a.currentSlide===n&&0===e&&"next"===a.direction?!1:!0:!1},a.getTarget=function(e){return a.direction=e,"next"===e?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?a.last:a.currentSlide-1},a.setProps=function(e,t,n){var i=function(){var n=e?e:(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo,i=function(){if(u)return"setTouch"===t?e:d&&a.animatingTo===a.last?0:d?a.limit-(a.itemW+a.vars.itemMargin)*a.move*a.animatingTo:a.animatingTo===a.last?a.limit:n;switch(t){case"setTotal":return d?(a.count-1-a.currentSlide+a.cloneOffset)*e:(a.currentSlide+a.cloneOffset)*e;case"setTouch":return d?e:e;case"jumpEnd":return d?e:a.count*e;case"jumpStart":return d?a.count*e:e;default:return e}}();return-1*i+"px"}();a.transitions&&(i=c?"translate3d(0,"+i+",0)":"translate3d("+i+",0,0)",n=void 0!==n?n/1e3+"s":"0s",a.container.css("-"+a.pfx+"-transition-duration",n),a.container.css("transition-duration",n)),a.args[a.prop]=i,(a.transitions||void 0===n)&&a.container.css(a.args),a.container.css("transform",i)},a.setup=function(e){if(v)a.slides.css({width:"100%","float":"left",marginRight:"-100%",position:"relative"}),"init"===e&&(s?a.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+a.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(a.currentSlide).css({opacity:1,zIndex:2}):0==a.vars.fadeFirstSlide?a.slides.css({opacity:0,display:"block",zIndex:1}).eq(a.currentSlide).css({zIndex:2}).css({opacity:1}):a.slides.css({opacity:0,display:"block",zIndex:1}).eq(a.currentSlide).css({zIndex:2}).animate({opacity:1},a.vars.animationSpeed,a.vars.easing)),a.vars.smoothHeight&&m.smoothHeight();else{var t,i;"init"===e&&(a.viewport=$('<div class="'+n+'viewport"></div>').css({overflow:"hidden",position:"relative"}).appendTo(a).append(a.container),a.cloneCount=0,a.cloneOffset=0,d&&(i=$.makeArray(a.slides).reverse(),a.slides=$(i),a.container.empty().append(a.slides))),a.vars.animationLoop&&!u&&(a.cloneCount=2,a.cloneOffset=1,"init"!==e&&a.container.find(".clone").remove(),a.container.append(m.uniqueID(a.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(m.uniqueID(a.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),a.newSlides=$(a.vars.selector,a),t=d?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+a.cloneOffset,c&&!u?(a.container.height(200*(a.count+a.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){a.newSlides.css({display:"block"}),a.doMath(),a.viewport.height(a.h),a.setProps(t*a.h,"init")},"init"===e?100:0)):(a.container.width(200*(a.count+a.cloneCount)+"%"),a.setProps(t*a.computedW,"init"),setTimeout(function(){a.doMath(),a.newSlides.css({width:a.computedW,"float":"left",display:"block"}),a.vars.smoothHeight&&m.smoothHeight()},"init"===e?100:0))}u||a.slides.removeClass(n+"active-slide").eq(a.currentSlide).addClass(n+"active-slide"),a.vars.init(a)},a.doMath=function(){var e=a.slides.first(),t=a.vars.itemMargin,n=a.vars.minItems,i=a.vars.maxItems;a.w=void 0===a.viewport?a.width():a.viewport.width(),a.h=e.height(),a.boxPadding=e.outerWidth()-e.width(),u?(a.itemT=a.vars.itemWidth+t,a.minW=n?n*a.itemT:a.w,a.maxW=i?i*a.itemT-t:a.w,a.itemW=a.minW>a.w?(a.w-t*(n-1))/n:a.maxW<a.w?(a.w-t*(i-1))/i:a.vars.itemWidth>a.w?a.w:a.vars.itemWidth,a.visible=Math.floor(a.w/a.itemW),a.move=a.vars.move>0&&a.vars.move<a.visible?a.vars.move:a.visible,a.pagingCount=Math.ceil((a.count-a.visible)/a.move+1),a.last=a.pagingCount-1,a.limit=1===a.pagingCount?0:a.vars.itemWidth>a.w?a.itemW*(a.count-1)+t*(a.count-1):(a.itemW+t)*a.count-a.w-t):(a.itemW=a.w,a.pagingCount=a.count,a.last=a.count-1),a.computedW=a.itemW-a.boxPadding},a.update=function(e,t){a.doMath(),u||(e<a.currentSlide?a.currentSlide+=1:e<=a.currentSlide&&0!==e&&(a.currentSlide-=1),a.animatingTo=a.currentSlide),a.vars.c
24ontrolNav&&!a.manualControls&&("add"===t&&!u||a.pagingCount>a.controlNav.length?m.controlNav.update("add"):("remove"===t&&!u||a.pagingCount<a.controlNav.length)&&(u&&a.currentSlide>a.last&&(a.currentSlide-=1,a.animatingTo-=1),m.controlNav.update("remove",a.last))),a.vars.directionNav&&m.directionNav.update()},a.addSlide=function(e,t){var n=$(e);a.count+=1,a.last=a.count-1,c&&d?void 0!==t?a.slides.eq(a.count-t).after(n):a.container.prepend(n):void 0!==t?a.slides.eq(t).before(n):a.container.append(n),a.update(t,"add"),a.slides=$(a.vars.selector+":not(.clone)",a),a.setup(),a.vars.added(a)},a.removeSlide=function(e){var t=isNaN(e)?a.slides.index($(e)):e;a.count-=1,a.last=a.count-1,isNaN(e)?$(e,a.slides).remove():c&&d?a.slides.eq(a.last).remove():a.slides.eq(e).remove(),a.doMath(),a.update(t,"remove"),a.slides=$(a.vars.selector+":not(.clone)",a),a.setup(),a.vars.removed(a)},m.init()},$(window).blur(function(e){focused=!1}).focus(function(e){focused=!0}),$.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){}},$.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var t=$(this),a=e.selector?e.selector:".slides > li",n=t.find(a);1===n.length&&e.allowOneSlide===!0||0===n.length?(n.fadeIn(400),e.start&&e.start(t)):void 0===t.data("flexslider")&&new $.flexslider(this,e)});var t=$(this).data("flexslider");switch(e){case"play":t.play();break;case"pause":t.pause();break;case"stop":t.stop();break;case"next":t.flexAnimate(t.getTarget("next"),!0);break;case"prev":case"previous":t.flexAnimate(t.getTarget("prev"),!0);break;default:"number"==typeof e&&t.flexAnimate(e,!0)}}}(jQuery);
25/**
26 * Owl Carousel v2.2.1
27 * Copyright 2013-2017 David Deutsch
28 * Licensed under  ()
29 */
30/**
31 * Owl carousel
32 * @version 2.1.6
33 * @author Bartosz Wojciechowski
34 * @author David Deutsch
35 * @license The MIT License (MIT)
36 * @todo Lazy Load Icon
37 * @todo prevent animationend bubling
38 * @todo itemsScaleUp
39 * @todo Test Zepto
40 * @todo stagePadding calculate wrong active classes
41 */
42;(function($, window, document, undefined) {
43
44	/**
45	 * Creates a carousel.
46	 * @class The Owl Carousel.
47	 * @public
48	 * @param {HTMLElement|jQuery} element - The element to create the carousel for.
49	 * @param {Object} [options] - The options
50	 */
51	function Owl(element, options) {
52
53		/**
54		 * Current settings for the carousel.
55		 * @public
56		 */
57		this.settings = null;
58
59		/**
60		 * Current options set by the caller including defaults.
61		 * @public
62		 */
63		this.options = $.extend({}, Owl.Defaults, options);
64
65		/**
66		 * Plugin element.
67		 * @public
68		 */
69		this.$element = $(element);
70
71		/**
72		 * Proxied event handlers.
73		 * @protected
74		 */
75		this._handlers = {};
76
77		/**
78		 * References to the running plugins of this carousel.
79		 * @protected
80		 */
81		this._plugins = {};
82
83		/**
84		 * Currently suppressed events to prevent them from beeing retriggered.
85		 * @protected
86		 */
87		this._supress = {};
88
89		/**
90		 * Absolute current position.
91		 * @protected
92		 */
93		this._current = null;
94
95		/**
96		 * Animation speed in milliseconds.
97		 * @protected
98		 */
99		this._speed = null;
100
101		/**
102		 * Coordinates of all items in pixel.
103		 * @todo The name of this member is missleading.
104		 * @protected
105		 */
106		this._coordinates = [];
107
108		/**
109		 * Current breakpoint.
110		 * @todo Real media queries would be nice.
111		 * @protected
112		 */
113		this._breakpoint = null;
114
115		/**
116		 * Current width of the plugin element.
117		 */
118		this._width = null;
119
120		/**
121		 * All real items.
122		 * @protected
123		 */
124		this._items = [];
125
126		/**
127		 * All cloned items.
128		 * @protected
129		 */
130		this._clones = [];
131
132		/**
133		 * Merge values of all items.
134		 * @todo Maybe this could be part of a plugin.
135		 * @protected
136		 */
137		this._mergers = [];
138
139		/**
140		 * Widths of all items.
141		 */
142		this._widths = [];
143
144		/**
145		 * Invalidated parts within the update process.
146		 * @protected
147		 */
148		this._invalidated = {};
149
150		/**
151		 * Ordered list of workers for the update process.
152		 * @protected
153		 */
154		this._pipe = [];
155
156		/**
157		 * Current state information for the drag operation.
158		 * @todo #261
159		 * @protected
160		 */
161		this._drag = {
162			time: null,
163			target: null,
164			pointer: null,
165			stage: {
166				start: null,
167				current: null
168			},
169			direction: null
170		};
171
172		/**
173		 * Current state information and their tags.
174		 * @type {Object}
175		 * @protected
176		 */
177		this._states = {
178			current: {},
179			tags: {
180				'initializing': [ 'busy' ],
181				'animating': [ 'busy' ],
182				'dragging': [ 'interacting' ]
183			}
184		};
185
186		$.each([ 'onResize', 'onThrottledResize' ], $.proxy(function(i, handler) {
187			this._handlers[handler] = $.proxy(this[handler], this);
188		}, this));
189
190		$.each(Owl.Plugins, $.proxy(function(key, plugin) {
191			this._plugins[key.charAt(0).toLowerCase() + key.slice(1)]
192				= new plugin(this);
193		}, this));
194
195		$.each(Owl.Workers, $.proxy(function(priority, worker) {
196			this._pipe.push({
197				'filter': worker.filter,
198				'run': $.proxy(worker.run, this)
199			});
200		}, this));
201
202		this.setup();
203		this.initialize();
204	}
205
206	/**
207	 * Default options for the carousel.
208	 * @public
209	 */
210	Owl.Defaults = {
211		items: 3,
212		loop: false,
213		center: false,
214		rewind: false,
215
vendor: 4,168 bytes, lines 216-390
216		mouseDrag: true,
217		touchDrag: true,
218		pullDrag: true,
219		freeDrag: false,
220
221		margin: 0,
222		stagePadding: 0,
223
224		merge: false,
225		mergeFit: true,
226		autoWidth: false,
227
228		startPosition: 0,
229		rtl: false,
230
231		smartSpeed: 250,
232		fluidSpeed: false,
233		dragEndSpeed: false,
234
235		responsive: {},
236		responsiveRefreshRate: 200,
237		responsiveBaseElement: window,
238
239		fallbackEasing: 'swing',
240
241		info: false,
242
243		nestedItemSelector: false,
244		itemElement: 'div',
245		stageElement: 'div',
246
247		refreshClass: 'owl-refresh',
248		loadedClass: 'owl-loaded',
249		loadingClass: 'owl-loading',
250		rtlClass: 'owl-rtl',
251		responsiveClass: 'owl-responsive',
252		dragClass: 'owl-drag',
253		itemClass: 'owl-item',
254		stageClass: 'owl-stage',
255		stageOuterClass: 'owl-stage-outer',
256		grabClass: 'owl-grab'
257	};
258
259	/**
260	 * Enumeration for width.
261	 * @public
262	 * @readonly
263	 * @enum {String}
264	 */
265	Owl.Width = {
266		Default: 'default',
267		Inner: 'inner',
268		Outer: 'outer'
269	};
270
271	/**
272	 * Enumeration for types.
273	 * @public
274	 * @readonly
275	 * @enum {String}
276	 */
277	Owl.Type = {
278		Event: 'event',
279		State: 'state'
280	};
281
282	/**
283	 * Contains all registered plugins.
284	 * @public
285	 */
286	Owl.Plugins = {};
287
288	/**
289	 * List of workers involved in the update process.
290	 */
291	Owl.Workers = [ {
292		filter: [ 'width', 'settings' ],
293		run: function() {
294			this._width = this.$element.width();
295		}
296	}, {
297		filter: [ 'width', 'items', 'settings' ],
298		run: function(cache) {
299			cache.current = this._items && this._items[this.relative(this._current)];
300		}
301	}, {
302		filter: [ 'items', 'settings' ],
303		run: function() {
304			this.$stage.children('.cloned').remove();
305		}
306	}, {
307		filter: [ 'width', 'items', 'settings' ],
308		run: function(cache) {
309			var margin = this.settings.margin || '',
310				grid = !this.settings.autoWidth,
311				rtl = this.settings.rtl,
312				css = {
313					'width': 'auto',
314					'margin-left': rtl ? margin : '',
315					'margin-right': rtl ? '' : margin
316				};
317
318			!grid && this.$stage.children().css(css);
319
320			cache.css = css;
321		}
322	}, {
323		filter: [ 'width', 'items', 'settings' ],
324		run: function(cache) {
325			var width = (this.width() / this.settings.items).toFixed(3) - this.settings.margin,
326				merge = null,
327				iterator = this._items.length,
328				grid = !this.settings.autoWidth,
329				widths = [];
330
331			cache.items = {
332				merge: false,
333				width: width
334			};
335
336			while (iterator--) {
337				merge = this._mergers[iterator];
338				merge = this.settings.mergeFit && Math.min(merge, this.settings.items) || merge;
339
340				cache.items.merge = merge > 1 || cache.items.merge;
341
342				widths[iterator] = !grid ? this._items[iterator].width() : width * merge;
343			}
344
345			this._widths = widths;
346		}
347	}, {
348		filter: [ 'items', 'settings' ],
349		run: function() {
350			var clones = [],
351				items = this._items,
352				settings = this.settings,
353				// TODO: Should be computed from number of min width items in stage
354				view = Math.max(settings.items * 2, 4),
355				size = Math.ceil(items.length / 2) * 2,
356				repeat = settings.loop && items.length ? settings.rewind ? view : Math.max(view, size) : 0,
357				append = '',
358				prepend = '';
359
360			repeat /= 2;
361
362			while (repeat--) {
363				// Switch to only using appended clones
364				clones.push(this.normalize(clones.length / 2, true));
365				append = append + items[clones[clones.length - 1]][0].outerHTML;
366				clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true));
367				prepend = items[clones[clones.length - 1]][0].outerHTML + prepend;
368			}
369
370			this._clones = clones;
371
372			$(append).addClass('cloned').appendTo(this.$stage);
373			$(prepend).addClass('cloned').prependTo(this.$stage);
374		}
375	}, {
376		filter: [ 'width', 'items', 'settings' ],
377		run: function() {
378			var rtl = this.settings.rtl ? 1 : -1,
379				size = this._clones.length + this._items.length,
380				iterator = -1,
381				previous = 0,
382				current = 0,
383				coordinates = [];
384
385			while (++iterator < size) {
386				previous = coordinates[iterator - 1] || 0;
387				current = this._widths[this.relative(iterator)] + this.settings.margin;
388				coordinates.push(previous + current * rtl);
389			}
390
vendor: 8,253 bytes, lines 391-703
391			this._coordinates = coordinates;
392		}
393	}, {
394		filter: [ 'width', 'items', 'settings' ],
395		run: function() {
396			var padding = this.settings.stagePadding,
397				coordinates = this._coordinates,
398				css = {
399					'width': Math.ceil(Math.abs(coordinates[coordinates.length - 1])) + padding * 2,
400					'padding-left': padding || '',
401					'padding-right': padding || ''
402				};
403
404			this.$stage.css(css);
405		}
406	}, {
407		filter: [ 'width', 'items', 'settings' ],
408		run: function(cache) {
409			var iterator = this._coordinates.length,
410				grid = !this.settings.autoWidth,
411				items = this.$stage.children();
412
413			if (grid && cache.items.merge) {
414				while (iterator--) {
415					cache.css.width = this._widths[this.relative(iterator)];
416					items.eq(iterator).css(cache.css);
417				}
418			} else if (grid) {
419				cache.css.width = cache.items.width;
420				items.css(cache.css);
421			}
422		}
423	}, {
424		filter: [ 'items' ],
425		run: function() {
426			this._coordinates.length < 1 && this.$stage.removeAttr('style');
427		}
428	}, {
429		filter: [ 'width', 'items', 'settings' ],
430		run: function(cache) {
431			cache.current = cache.current ? this.$stage.children().index(cache.current) : 0;
432			cache.current = Math.max(this.minimum(), Math.min(this.maximum(), cache.current));
433			this.reset(cache.current);
434		}
435	}, {
436		filter: [ 'position' ],
437		run: function() {
438			this.animate(this.coordinates(this._current));
439		}
440	}, {
441		filter: [ 'width', 'position', 'items', 'settings' ],
442		run: function() {
443			var rtl = this.settings.rtl ? 1 : -1,
444				padding = this.settings.stagePadding * 2,
445				begin = this.coordinates(this.current()) + padding,
446				end = begin + this.width() * rtl,
447				inner, outer, matches = [], i, n;
448
449			for (i = 0, n = this._coordinates.length; i < n; i++) {
450				inner = this._coordinates[i - 1] || 0;
451				outer = Math.abs(this._coordinates[i]) + padding * rtl;
452
453				if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end)))
454					|| (this.op(outer, '<', begin) && this.op(outer, '>', end))) {
455					matches.push(i);
456				}
457			}
458
459			this.$stage.children('.active').removeClass('active');
460			this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active');
461
462			if (this.settings.center) {
463				this.$stage.children('.center').removeClass('center');
464				this.$stage.children().eq(this.current()).addClass('center');
465			}
466		}
467	} ];
468
469	/**
470	 * Initializes the carousel.
471	 * @protected
472	 */
473	Owl.prototype.initialize = function() {
474		this.enter('initializing');
475		this.trigger('initialize');
476
477		this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl);
478
479		if (this.settings.autoWidth && !this.is('pre-loading')) {
480			var imgs, nestedSelector, width;
481			imgs = this.$element.find('img');
482			nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
483			width = this.$element.children(nestedSelector).width();
484
485			if (imgs.length && width <= 0) {
486				this.preloadAutoWidthImages(imgs);
487			}
488		}
489
490		this.$element.addClass(this.options.loadingClass);
491
492		// create stage
493		this.$stage = $('<' + this.settings.stageElement + ' class="' + this.settings.stageClass + '"/>')
494			.wrap('<div class="' + this.settings.stageOuterClass + '"/>');
495
496		// append stage
497		this.$element.append(this.$stage.parent());
498
499		// append content
500		this.replace(this.$element.children().not(this.$stage.parent()));
501
502		// check visibility
503		if (this.$element.is(':visible')) {
504			// update view
505			this.refresh();
506		} else {
507			// invalidate width
508			this.invalidate('width');
509		}
510
511		this.$element
512			.removeClass(this.options.loadingClass)
513			.addClass(this.options.loadedClass);
514
515		// register event handlers
516		this.registerEventHandlers();
517
518		this.leave('initializing');
519		this.trigger('initialized');
520	};
521
522	/**
523	 * Setups the current settings.
524	 * @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
525	 * @todo Support for media queries by using `matchMedia` would be nice.
526	 * @public
527	 */
528	Owl.prototype.setup = function() {
529		var viewport = this.viewport(),
530			overwrites = this.options.responsive,
531			match = -1,
532			settings = null;
533
534		if (!overwrites) {
535			settings = $.extend({}, this.options);
536		} else {
537			$.each(overwrites, function(breakpoint) {
538				if (breakpoint <= viewport && breakpoint > match) {
539					match = Number(breakpoint);
540				}
541
542			});
543
544			settings = $.extend({}, this.options, overwrites[match]);
545			if (typeof settings.stagePadding === 'function') {
546				settings.stagePadding = settings.stagePadding();
547			}
548			delete settings.responsive;
549
550			// responsive class
551			if (settings.responsiveClass) {
552				this.$element.attr('class',
553					this.$element.attr('class').replace(new RegExp('(' + this.options.responsiveClass + '-)\\S+\\s', 'g'), '$1' + match)
554				);
555			}
556		}
557
558		this.trigger('change', { property: { name: 'settings', value: settings } });
559		this._breakpoint = match;
560		this.settings = settings;
561		this.invalidate('settings');
562		this.trigger('changed', { property: { name: 'settings', value: this.settings } });
563	};
564
565	/**
566	 * Updates option logic if necessery.
567	 * @protected
568	 */
569	Owl.prototype.optionsLogic = function() {
570		if (this.settings.autoWidth) {
571			this.settings.stagePadding = false;
572			this.settings.merge = false;
573		}
574	};
575
576	/**
577	 * Prepares an item before add.
578	 * @todo Rename event parameter `content` to `item`.
579	 * @protected
580	 * @returns {jQuery|HTMLElement} - The item container.
581	 */
582	Owl.prototype.prepare = function(item) {
583		var event = this.trigger('prepare', { content: item });
584
585		if (!event.data) {
586			event.data = $('<' + this.settings.itemElement + '/>')
587				.addClass(this.options.itemClass).append(item)
588		}
589
590		this.trigger('prepared', { content: event.data });
591
592		return event.data;
593	};
594
595	/**
596	 * Updates the view.
597	 * @public
598	 */
599	Owl.prototype.update = function() {
600		var i = 0,
601			n = this._pipe.length,
602			filter = $.proxy(function(p) { return this[p] }, this._invalidated),
603			cache = {};
604
605		while (i < n) {
606			if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) {
607				this._pipe[i].run(cache);
608			}
609			i++;
610		}
611
612		this._invalidated = {};
613
614		!this.is('valid') && this.enter('valid');
615	};
616
617	/**
618	 * Gets the width of the view.
619	 * @public
620	 * @param {Owl.Width} [dimension=Owl.Width.Default] - The dimension to return.
621	 * @returns {Number} - The width of the view in pixel.
622	 */
623	Owl.prototype.width = function(dimension) {
624		dimension = dimension || Owl.Width.Default;
625		switch (dimension) {
626			case Owl.Width.Inner:
627			case Owl.Width.Outer:
628				return this._width;
629			default:
630				return this._width - this.settings.stagePadding * 2 + this.settings.margin;
631		}
632	};
633
634	/**
635	 * Refreshes the carousel primarily for adaptive purposes.
636	 * @public
637	 */
638	Owl.prototype.refresh = function() {
639		this.enter('refreshing');
640		this.trigger('refresh');
641
642		this.setup();
643
644		this.optionsLogic();
645
646		this.$element.addClass(this.options.refreshClass);
647
648		this.update();
649
650		this.$element.removeClass(this.options.refreshClass);
651
652		this.leave('refreshing');
653		this.trigger('refreshed');
654	};
655
656	/**
657	 * Checks window `resize` event.
658	 * @protected
659	 */
660	Owl.prototype.onThrottledResize = function() {
661		window.clearTimeout(this.resizeTimer);
662		this.resizeTimer = window.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate);
663	};
664
665	/**
666	 * Checks window `resize` event.
667	 * @protected
668	 */
669	Owl.prototype.onResize = function() {
670		if (!this._items.length) {
671			return false;
672		}
673
674		if (this._width === this.$element.width()) {
675			return false;
676		}
677
678		if (!this.$element.is(':visible')) {
679			return false;
680		}
681
682		this.enter('resizing');
683
684		if (this.trigger('resize').isDefaultPrevented()) {
685			this.leave('resizing');
686			return false;
687		}
688
689		this.invalidate('width');
690
691		this.refresh();
692
693		this.leave('resizing');
694		this.trigger('resized');
695	};
696
697	/**
698	 * Registers event handlers.
699	 * @todo Check `msPointerEnabled`
700	 * @todo #261
701	 * @protected
702	 */
703	Owl.prototype.registerEventHandlers = function() {
vendor: 5,216 bytes, lines 704-872
704		if ($.support.transition) {
705			this.$stage.on($.support.transition.end + '.owl.core', $.proxy(this.onTransitionEnd, this));
706		}
707
708		if (this.settings.responsive !== false) {
709			this.on(window, 'resize', this._handlers.onThrottledResize);
710		}
711
712		if (this.settings.mouseDrag) {
713
714			this.$element.addClass(this.options.dragClass);
715			this.$stage.on('mousedown.owl.core', $.proxy(this.onDragStart, this));
716			this.$stage.on('dragstart.owl.core selectstart.owl.core', function() { return false });
717		}
718
719		if (this.settings.touchDrag){
720			this.$stage.on('touchstart.owl.core', $.proxy(this.onDragStart, this));
721			this.$stage.on('touchcancel.owl.core', $.proxy(this.onDragEnd, this));
722		}
723	};
724
725	/**
726	 * Handles `touchstart` and `mousedown` events.
727	 * @todo Horizontal swipe threshold as option
728	 * @todo #261
729	 * @protected
730	 * @param {Event} event - The event arguments.
731	 */
732	Owl.prototype.onDragStart = function(event) {
733		var stage = null;
734
735		if (event.which === 3) {
736			return;
737		}
738
739		if ($.support.transform) {
740			stage = this.$stage.css('transform').replace(/.*\(|\)| /g, '').split(',');
741			stage = {
742				x: stage[stage.length === 16 ? 12 : 4],
743				y: stage[stage.length === 16 ? 13 : 5]
744			};
745		} else {
746			stage = this.$stage.position();
747			stage = {
748				x: this.settings.rtl ?
749					stage.left + this.$stage.width() - this.width() + this.settings.margin :
750					stage.left,
751				y: stage.top
752			};
753		}
754
755		if (this.is('animating')) {
756			$.support.transform ? this.animate(stage.x) : this.$stage.stop()
757			this.invalidate('position');
758		}
759
760		this.$element.toggleClass(this.options.grabClass, event.type === 'mousedown');
761
762		this.speed(0);
763
764		this._drag.time = new Date().getTime();
765		this._drag.target = $(event.target);
766		this._drag.stage.start = stage;
767		this._drag.stage.current = stage;
768		this._drag.pointer = this.pointer(event);
769
770		$(document).on('mouseup.owl.core touchend.owl.core', $.proxy(this.onDragEnd, this));
771
772		$(document).one('mousemove.owl.core touchmove.owl.core', $.proxy(function(event) {
773			var delta = this.difference(this._drag.pointer, this.pointer(event));
774
775			$(document).on('mousemove.owl.core touchmove.owl.core', $.proxy(this.onDragMove, this));
776
777			if (Math.abs(delta.x) < Math.abs(delta.y) && this.is('valid')) {
778				return;
779			}
780
781			event.preventDefault();
782
783			this.enter('dragging');
784			this.trigger('drag');
785		}, this));
786	};
787
788	/**
789	 * Handles the `touchmove` and `mousemove` events.
790	 * @todo #261
791	 * @protected
792	 * @param {Event} event - The event arguments.
793	 */
794	Owl.prototype.onDragMove = function(event) {
795		var minimum = null,
796			maximum = null,
797			pull = null,
798			delta = this.difference(this._drag.pointer, this.pointer(event)),
799			stage = this.difference(this._drag.stage.start, delta);
800
801		if (!this.is('dragging')) {
802			return;
803		}
804
805		event.preventDefault();
806
807		if (this.settings.loop) {
808			minimum = this.coordinates(this.minimum());
809			maximum = this.coordinates(this.maximum() + 1) - minimum;
810			stage.x = (((stage.x - minimum) % maximum + maximum) % maximum) + minimum;
811		} else {
812			minimum = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum());
813			maximum = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum());
814			pull = this.settings.pullDrag ? -1 * delta.x / 5 : 0;
815			stage.x = Math.max(Math.min(stage.x, minimum + pull), maximum + pull);
816		}
817
818		this._drag.stage.current = stage;
819
820		this.animate(stage.x);
821	};
822
823	/**
824	 * Handles the `touchend` and `mouseup` events.
825	 * @todo #261
826	 * @todo Threshold for click event
827	 * @protected
828	 * @param {Event} event - The event arguments.
829	 */
830	Owl.prototype.onDragEnd = function(event) {
831		var delta = this.difference(this._drag.pointer, this.pointer(event)),
832			stage = this._drag.stage.current,
833			direction = delta.x > 0 ^ this.settings.rtl ? 'left' : 'right';
834
835		$(document).off('.owl.core');
836
837		this.$element.removeClass(this.options.grabClass);
838
839		if (delta.x !== 0 && this.is('dragging') || !this.is('valid')) {
840			this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed);
841			this.current(this.closest(stage.x, delta.x !== 0 ? direction : this._drag.direction));
842			this.invalidate('position');
843			this.update();
844
845			this._drag.direction = direction;
846
847			if (Math.abs(delta.x) > 3 || new Date().getTime() - this._drag.time > 300) {
848				this._drag.target.one('click.owl.core', function() { return false; });
849			}
850		}
851
852		if (!this.is('dragging')) {
853			return;
854		}
855
856		this.leave('dragging');
857		this.trigger('dragged');
858	};
859
860	/**
861	 * Gets absolute position of the closest item for a coordinate.
862	 * @todo Setting `freeDrag` makes `closest` not reusable. See #165.
863	 * @protected
864	 * @param {Number} coordinate - The coordinate in pixel.
865	 * @param {String} direction - The direction to check for the closest item. Ether `left` or `right`.
866	 * @return {Number} - The absolute position of the closest item.
867	 */
868	Owl.prototype.closest = function(coordinate, direction) {
869		var position = -1,
870			pull = 30,
871			width = this.width(),
872			coordinates = this.coordinates();
vendor: 59,760 bytes, lines 873-3015
873
874		if (!this.settings.freeDrag) {
875			// check closest item
876			$.each(coordinates, $.proxy(function(index, value) {
877				// on a left pull, check on current index
878				if (direction === 'left' && coordinate > value - pull && coordinate < value + pull) {
879					position = index;
880				// on a right pull, check on previous index
881				// to do so, subtract width from value and set position = index + 1
882				} else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
883					position = index + 1;
884				} else if (this.op(coordinate, '<', value)
885					&& this.op(coordinate, '>', coordinates[index + 1] || value - width)) {
886					position = direction === 'left' ? index + 1 : index;
887				}
888				return position === -1;
889			}, this));
890		}
891
892		if (!this.settings.loop) {
893			// non loop boundries
894			if (this.op(coordinate, '>', coordinates[this.minimum()])) {
895				position = coordinate = this.minimum();
896			} else if (this.op(coordinate, '<', coordinates[this.maximum()])) {
897				position = coordinate = this.maximum();
898			}
899		}
900
901		return position;
902	};
903
904	/**
905	 * Animates the stage.
906	 * @todo #270
907	 * @public
908	 * @param {Number} coordinate - The coordinate in pixels.
909	 */
910	Owl.prototype.animate = function(coordinate) {
911		var animate = this.speed() > 0;
912
913		this.is('animating') && this.onTransitionEnd();
914
915		if (animate) {
916			this.enter('animating');
917			this.trigger('translate');
918		}
919
920		if ($.support.transform3d && $.support.transition) {
921			this.$stage.css({
922				transform: 'translate3d(' + coordinate + 'px,0px,0px)',
923				transition: (this.speed() / 1000) + 's'
924			});
925		} else if (animate) {
926			this.$stage.animate({
927				left: coordinate + 'px'
928			}, this.speed(), this.settings.fallbackEasing, $.proxy(this.onTransitionEnd, this));
929		} else {
930			this.$stage.css({
931				left: coordinate + 'px'
932			});
933		}
934	};
935
936	/**
937	 * Checks whether the carousel is in a specific state or not.
938	 * @param {String} state - The state to check.
939	 * @returns {Boolean} - The flag which indicates if the carousel is busy.
940	 */
941	Owl.prototype.is = function(state) {
942		return this._states.current[state] && this._states.current[state] > 0;
943	};
944
945	/**
946	 * Sets the absolute position of the current item.
947	 * @public
948	 * @param {Number} [position] - The new absolute position or nothing to leave it unchanged.
949	 * @returns {Number} - The absolute position of the current item.
950	 */
951	Owl.prototype.current = function(position) {
952		if (position === undefined) {
953			return this._current;
954		}
955
956		if (this._items.length === 0) {
957			return undefined;
958		}
959
960		position = this.normalize(position);
961
962		if (this._current !== position) {
963			var event = this.trigger('change', { property: { name: 'position', value: position } });
964
965			if (event.data !== undefined) {
966				position = this.normalize(event.data);
967			}
968
969			this._current = position;
970
971			this.invalidate('position');
972
973			this.trigger('changed', { property: { name: 'position', value: this._current } });
974		}
975
976		return this._current;
977	};
978
979	/**
980	 * Invalidates the given part of the update routine.
981	 * @param {String} [part] - The part to invalidate.
982	 * @returns {Array.<String>} - The invalidated parts.
983	 */
984	Owl.prototype.invalidate = function(part) {
985		if ($.type(part) === 'string') {
986			this._invalidated[part] = true;
987			this.is('valid') && this.leave('valid');
988		}
989		return $.map(this._invalidated, function(v, i) { return i });
990	};
991
992	/**
993	 * Resets the absolute position of the current item.
994	 * @public
995	 * @param {Number} position - The absolute position of the new item.
996	 */
997	Owl.prototype.reset = function(position) {
998		position = this.normalize(position);
999
1000		if (position === undefined) {
1001			return;
1002		}
1003
1004		this._speed = 0;
1005		this._current = position;
1006
1007		this.suppress([ 'translate', 'translated' ]);
1008
1009		this.animate(this.coordinates(position));
1010
1011		this.release([ 'translate', 'translated' ]);
1012	};
1013
1014	/**
1015	 * Normalizes an absolute or a relative position of an item.
1016	 * @public
1017	 * @param {Number} position - The absolute or relative position to normalize.
1018	 * @param {Boolean} [relative=false] - Whether the given position is relative or not.
1019	 * @returns {Number} - The normalized position.
1020	 */
1021	Owl.prototype.normalize = function(position, relative) {
1022		var n = this._items.length,
1023			m = relative ? 0 : this._clones.length;
1024
1025		if (!this.isNumeric(position) || n < 1) {
1026			position = undefined;
1027		} else if (position < 0 || position >= n + m) {
1028			position = ((position - m / 2) % n + n) % n + m / 2;
1029		}
1030
1031		return position;
1032	};
1033
1034	/**
1035	 * Converts an absolute position of an item into a relative one.
1036	 * @public
1037	 * @param {Number} position - The absolute position to convert.
1038	 * @returns {Number} - The converted position.
1039	 */
1040	Owl.prototype.relative = function(position) {
1041		position -= this._clones.length / 2;
1042		return this.normalize(position, true);
1043	};
1044
1045	/**
1046	 * Gets the maximum position for the current item.
1047	 * @public
1048	 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1049	 * @returns {Number}
1050	 */
1051	Owl.prototype.maximum = function(relative) {
1052		var settings = this.settings,
1053			maximum = this._coordinates.length,
1054			iterator,
1055			reciprocalItemsWidth,
1056			elementWidth;
1057
1058		if (settings.loop) {
1059			maximum = this._clones.length / 2 + this._items.length - 1;
1060		} else if (settings.autoWidth || settings.merge) {
1061			iterator = this._items.length;
1062			reciprocalItemsWidth = this._items[--iterator].width();
1063			elementWidth = this.$element.width();
1064			while (iterator--) {
1065				reciprocalItemsWidth += this._items[iterator].width() + this.settings.margin;
1066				if (reciprocalItemsWidth > elementWidth) {
1067					break;
1068				}
1069			}
1070			maximum = iterator + 1;
1071		} else if (settings.center) {
1072			maximum = this._items.length - 1;
1073		} else {
1074			maximum = this._items.length - settings.items;
1075		}
1076
1077		if (relative) {
1078			maximum -= this._clones.length / 2;
1079		}
1080
1081		return Math.max(maximum, 0);
1082	};
1083
1084	/**
1085	 * Gets the minimum position for the current item.
1086	 * @public
1087	 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
1088	 * @returns {Number}
1089	 */
1090	Owl.prototype.minimum = function(relative) {
1091		return relative ? 0 : this._clones.length / 2;
1092	};
1093
1094	/**
1095	 * Gets an item at the specified relative position.
1096	 * @public
1097	 * @param {Number} [position] - The relative position of the item.
1098	 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1099	 */
1100	Owl.prototype.items = function(position) {
1101		if (position === undefined) {
1102			return this._items.slice();
1103		}
1104
1105		position = this.normalize(position, true);
1106		return this._items[position];
1107	};
1108
1109	/**
1110	 * Gets an item at the specified relative position.
1111	 * @public
1112	 * @param {Number} [position] - The relative position of the item.
1113	 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
1114	 */
1115	Owl.prototype.mergers = function(position) {
1116		if (position === undefined) {
1117			return this._mergers.slice();
1118		}
1119
1120		position = this.normalize(position, true);
1121		return this._mergers[position];
1122	};
1123
1124	/**
1125	 * Gets the absolute positions of clones for an item.
1126	 * @public
1127	 * @param {Number} [position] - The relative position of the item.
1128	 * @returns {Array.<Number>} - The absolute positions of clones for the item or all if no position was given.
1129	 */
1130	Owl.prototype.clones = function(position) {
1131		var odd = this._clones.length / 2,
1132			even = odd + this._items.length,
1133			map = function(index) { return index % 2 === 0 ? even + index / 2 : odd - (index + 1) / 2 };
1134
1135		if (position === undefined) {
1136			return $.map(this._clones, function(v, i) { return map(i) });
1137		}
1138
1139		return $.map(this._clones, function(v, i) { return v === position ? map(i) : null });
1140	};
1141
1142	/**
1143	 * Sets the current animation speed.
1144	 * @public
1145	 * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged.
1146	 * @returns {Number} - The current animation speed in milliseconds.
1147	 */
1148	Owl.prototype.speed = function(speed) {
1149		if (speed !== undefined) {
1150			this._speed = speed;
1151		}
1152
1153		return this._speed;
1154	};
1155
1156	/**
1157	 * Gets the coordinate of an item.
1158	 * @todo The name of this method is missleanding.
1159	 * @public
1160	 * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`.
1161	 * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates.
1162	 */
1163	Owl.prototype.coordinates = function(position) {
1164		var multiplier = 1,
1165			newPosition = position - 1,
1166			coordinate;
1167
1168		if (position === undefined) {
1169			return $.map(this._coordinates, $.proxy(function(coordinate, index) {
1170				return this.coordinates(index);
1171			}, this));
1172		}
1173
1174		if (this.settings.center) {
1175			if (this.settings.rtl) {
1176				multiplier = -1;
1177				newPosition = position + 1;
1178			}
1179
1180			coordinate = this._coordinates[position];
1181			coordinate += (this.width() - coordinate + (this._coordinates[newPosition] || 0)) / 2 * multiplier;
1182		} else {
1183			coordinate = this._coordinates[newPosition] || 0;
1184		}
1185
1186		coordinate = Math.ceil(coordinate);
1187
1188		return coordinate;
1189	};
1190
1191	/**
1192	 * Calculates the speed for a translation.
1193	 * @protected
1194	 * @param {Number} from - The absolute position of the start item.
1195	 * @param {Number} to - The absolute position of the target item.
1196	 * @param {Number} [factor=undefined] - The time factor in milliseconds.
1197	 * @returns {Number} - The time in milliseconds for the translation.
1198	 */
1199	Owl.prototype.duration = function(from, to, factor) {
1200		if (factor === 0) {
1201			return 0;
1202		}
1203
1204		return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed));
1205	};
1206
1207	/**
1208	 * Slides to the specified item.
1209	 * @public
1210	 * @param {Number} position - The position of the item.
1211	 * @param {Number} [speed] - The time in milliseconds for the transition.
1212	 */
1213	Owl.prototype.to = function(position, speed) {
1214		var current = this.current(),
1215			revert = null,
1216			distance = position - this.relative(current),
1217			direction = (distance > 0) - (distance < 0),
1218			items = this._items.length,
1219			minimum = this.minimum(),
1220			maximum = this.maximum();
1221
1222		if (this.settings.loop) {
1223			if (!this.settings.rewind && Math.abs(distance) > items / 2) {
1224				distance += direction * -1 * items;
1225			}
1226
1227			position = current + distance;
1228			revert = ((position - minimum) % items + items) % items + minimum;
1229
1230			if (revert !== position && revert - distance <= maximum && revert - distance > 0) {
1231				current = revert - distance;
1232				position = revert;
1233				this.reset(current);
1234			}
1235		} else if (this.settings.rewind) {
1236			maximum += 1;
1237			position = (position % maximum + maximum) % maximum;
1238		} else {
1239			position = Math.max(minimum, Math.min(maximum, position));
1240		}
1241
1242		this.speed(this.duration(current, position, speed));
1243		this.current(position);
1244
1245		if (this.$element.is(':visible')) {
1246			this.update();
1247		}
1248	};
1249
1250	/**
1251	 * Slides to the next item.
1252	 * @public
1253	 * @param {Number} [speed] - The time in milliseconds for the transition.
1254	 */
1255	Owl.prototype.next = function(speed) {
1256		speed = speed || false;
1257		this.to(this.relative(this.current()) + 1, speed);
1258	};
1259
1260	/**
1261	 * Slides to the previous item.
1262	 * @public
1263	 * @param {Number} [speed] - The time in milliseconds for the transition.
1264	 */
1265	Owl.prototype.prev = function(speed) {
1266		speed = speed || false;
1267		this.to(this.relative(this.current()) - 1, speed);
1268	};
1269
1270	/**
1271	 * Handles the end of an animation.
1272	 * @protected
1273	 * @param {Event} event - The event arguments.
1274	 */
1275	Owl.prototype.onTransitionEnd = function(event) {
1276
1277		// if css2 animation then event object is undefined
1278		if (event !== undefined) {
1279			event.stopPropagation();
1280
1281			// Catch only owl-stage transitionEnd event
1282			if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) {
1283				return false;
1284			}
1285		}
1286
1287		this.leave('animating');
1288		this.trigger('translated');
1289	};
1290
1291	/**
1292	 * Gets viewport width.
1293	 * @protected
1294	 * @return {Number} - The width in pixel.
1295	 */
1296	Owl.prototype.viewport = function() {
1297		var width;
1298		if (this.options.responsiveBaseElement !== window) {
1299			width = $(this.options.responsiveBaseElement).width();
1300		} else if (window.innerWidth) {
1301			width = window.innerWidth;
1302		} else if (document.documentElement && document.documentElement.clientWidth) {
1303			width = document.documentElement.clientWidth;
1304		} else {
1305			console.warn('Can not detect viewport width.');
1306		}
1307		return width;
1308	};
1309
1310	/**
1311	 * Replaces the current content.
1312	 * @public
1313	 * @param {HTMLElement|jQuery|String} content - The new content.
1314	 */
1315	Owl.prototype.replace = function(content) {
1316		this.$stage.empty();
1317		this._items = [];
1318
1319		if (content) {
1320			content = (content instanceof jQuery) ? content : $(content);
1321		}
1322
1323		if (this.settings.nestedItemSelector) {
1324			content = content.find('.' + this.settings.nestedItemSelector);
1325		}
1326
1327		content.filter(function() {
1328			return this.nodeType === 1;
1329		}).each($.proxy(function(index, item) {
1330			item = this.prepare(item);
1331			this.$stage.append(item);
1332			this._items.push(item);
1333			this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1334		}, this));
1335
1336		this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0);
1337
1338		this.invalidate('items');
1339	};
1340
1341	/**
1342	 * Adds an item.
1343	 * @todo Use `item` instead of `content` for the event arguments.
1344	 * @public
1345	 * @param {HTMLElement|jQuery|String} content - The item content to add.
1346	 * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end.
1347	 */
1348	Owl.prototype.add = function(content, position) {
1349		var current = this.relative(this._current);
1350
1351		position = position === undefined ? this._items.length : this.normalize(position, true);
1352		content = content instanceof jQuery ? content : $(content);
1353
1354		this.trigger('add', { content: content, position: position });
1355
1356		content = this.prepare(content);
1357
1358		if (this._items.length === 0 || position === this._items.length) {
1359			this._items.length === 0 && this.$stage.append(content);
1360			this._items.length !== 0 && this._items[position - 1].after(content);
1361			this._items.push(content);
1362			this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1363		} else {
1364			this._items[position].before(content);
1365			this._items.splice(position, 0, content);
1366			this._mergers.splice(position, 0, content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
1367		}
1368
1369		this._items[current] && this.reset(this._items[current].index());
1370
1371		this.invalidate('items');
1372
1373		this.trigger('added', { content: content, position: position });
1374	};
1375
1376	/**
1377	 * Removes an item by its position.
1378	 * @todo Use `item` instead of `content` for the event arguments.
1379	 * @public
1380	 * @param {Number} position - The relative position of the item to remove.
1381	 */
1382	Owl.prototype.remove = function(position) {
1383		position = this.normalize(position, true);
1384
1385		if (position === undefined) {
1386			return;
1387		}
1388
1389		this.trigger('remove', { content: this._items[position], position: position });
1390
1391		this._items[position].remove();
1392		this._items.splice(position, 1);
1393		this._mergers.splice(position, 1);
1394
1395		this.invalidate('items');
1396
1397		this.trigger('removed', { content: null, position: position });
1398	};
1399
1400	/**
1401	 * Preloads images with auto width.
1402	 * @todo Replace by a more generic approach
1403	 * @protected
1404	 */
1405	Owl.prototype.preloadAutoWidthImages = function(images) {
1406		images.each($.proxy(function(i, element) {
1407			this.enter('pre-loading');
1408			element = $(element);
1409			$(new Image()).one('load', $.proxy(function(e) {
1410				element.attr('src', e.target.src);
1411				element.css('opacity', 1);
1412				this.leave('pre-loading');
1413				!this.is('pre-loading') && !this.is('initializing') && this.refresh();
1414			}, this)).attr('src', element.attr('src') || element.attr('data-src') || element.attr('data-src-retina'));
1415		}, this));
1416	};
1417
1418	/**
1419	 * Destroys the carousel.
1420	 * @public
1421	 */
1422	Owl.prototype.destroy = function() {
1423
1424		this.$element.off('.owl.core');
1425		this.$stage.off('.owl.core');
1426		$(document).off('.owl.core');
1427
1428		if (this.settings.responsive !== false) {
1429			window.clearTimeout(this.resizeTimer);
1430			this.off(window, 'resize', this._handlers.onThrottledResize);
1431		}
1432
1433		for (var i in this._plugins) {
1434			this._plugins[i].destroy();
1435		}
1436
1437		this.$stage.children('.cloned').remove();
1438
1439		this.$stage.unwrap();
1440		this.$stage.children().contents().unwrap();
1441		this.$stage.children().unwrap();
1442
1443		this.$element
1444			.removeClass(this.options.refreshClass)
1445			.removeClass(this.options.loadingClass)
1446			.removeClass(this.options.loadedClass)
1447			.removeClass(this.options.rtlClass)
1448			.removeClass(this.options.dragClass)
1449			.removeClass(this.options.grabClass)
1450			.attr('class', this.$element.attr('class').replace(new RegExp(this.options.responsiveClass + '-\\S+\\s', 'g'), ''))
1451			.removeData('owl.carousel');
1452	};
1453
1454	/**
1455	 * Operators to calculate right-to-left and left-to-right.
1456	 * @protected
1457	 * @param {Number} [a] - The left side operand.
1458	 * @param {String} [o] - The operator.
1459	 * @param {Number} [b] - The right side operand.
1460	 */
1461	Owl.prototype.op = function(a, o, b) {
1462		var rtl = this.settings.rtl;
1463		switch (o) {
1464			case '<':
1465				return rtl ? a > b : a < b;
1466			case '>':
1467				return rtl ? a < b : a > b;
1468			case '>=':
1469				return rtl ? a <= b : a >= b;
1470			case '<=':
1471				return rtl ? a >= b : a <= b;
1472			default:
1473				break;
1474		}
1475	};
1476
1477	/**
1478	 * Attaches to an internal event.
1479	 * @protected
1480	 * @param {HTMLElement} element - The event source.
1481	 * @param {String} event - The event name.
1482	 * @param {Function} listener - The event handler to attach.
1483	 * @param {Boolean} capture - Wether the event should be handled at the capturing phase or not.
1484	 */
1485	Owl.prototype.on = function(element, event, listener, capture) {
1486		if (element.addEventListener) {
1487			element.addEventListener(event, listener, capture);
1488		} else if (element.attachEvent) {
1489			element.attachEvent('on' + event, listener);
1490		}
1491	};
1492
1493	/**
1494	 * Detaches from an internal event.
1495	 * @protected
1496	 * @param {HTMLElement} element - The event source.
1497	 * @param {String} event - The event name.
1498	 * @param {Function} listener - The attached event handler to detach.
1499	 * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not.
1500	 */
1501	Owl.prototype.off = function(element, event, listener, capture) {
1502		if (element.removeEventListener) {
1503			element.removeEventListener(event, listener, capture);
1504		} else if (element.detachEvent) {
1505			element.detachEvent('on' + event, listener);
1506		}
1507	};
1508
1509	/**
1510	 * Triggers a public event.
1511	 * @todo Remove `status`, `relatedTarget` should be used instead.
1512	 * @protected
1513	 * @param {String} name - The event name.
1514	 * @param {*} [data=null] - The event data.
1515	 * @param {String} [namespace=carousel] - The event namespace.
1516	 * @param {String} [state] - The state which is associated with the event.
1517	 * @param {Boolean} [enter=false] - Indicates if the call enters the specified state or not.
1518	 * @returns {Event} - The event arguments.
1519	 */
1520	Owl.prototype.trigger = function(name, data, namespace, state, enter) {
1521		var status = {
1522			item: { count: this._items.length, index: this.current() }
1523		}, handler = $.camelCase(
1524			$.grep([ 'on', name, namespace ], function(v) { return v })
1525				.join('-').toLowerCase()
1526		), event = $.Event(
1527			[ name, 'owl', namespace || 'carousel' ].join('.').toLowerCase(),
1528			$.extend({ relatedTarget: this }, status, data)
1529		);
1530
1531		if (!this._supress[name]) {
1532			$.each(this._plugins, function(name, plugin) {
1533				if (plugin.onTrigger) {
1534					plugin.onTrigger(event);
1535				}
1536			});
1537
1538			this.register({ type: Owl.Type.Event, name: name });
1539			this.$element.trigger(event);
1540
1541			if (this.settings && typeof this.settings[handler] === 'function') {
1542				this.settings[handler].call(this, event);
1543			}
1544		}
1545
1546		return event;
1547	};
1548
1549	/**
1550	 * Enters a state.
1551	 * @param name - The state name.
1552	 */
1553	Owl.prototype.enter = function(name) {
1554		$.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) {
1555			if (this._states.current[name] === undefined) {
1556				this._states.current[name] = 0;
1557			}
1558
1559			this._states.current[name]++;
1560		}, this));
1561	};
1562
1563	/**
1564	 * Leaves a state.
1565	 * @param name - The state name.
1566	 */
1567	Owl.prototype.leave = function(name) {
1568		$.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) {
1569			this._states.current[name]--;
1570		}, this));
1571	};
1572
1573	/**
1574	 * Registers an event or state.
1575	 * @public
1576	 * @param {Object} object - The event or state to register.
1577	 */
1578	Owl.prototype.register = function(object) {
1579		if (object.type === Owl.Type.Event) {
1580			if (!$.event.special[object.name]) {
1581				$.event.special[object.name] = {};
1582			}
1583
1584			if (!$.event.special[object.name].owl) {
1585				var _default = $.event.special[object.name]._default;
1586				$.event.special[object.name]._default = function(e) {
1587					if (_default && _default.apply && (!e.namespace || e.namespace.indexOf('owl') === -1)) {
1588						return _default.apply(this, arguments);
1589					}
1590					return e.namespace && e.namespace.indexOf('owl') > -1;
1591				};
1592				$.event.special[object.name].owl = true;
1593			}
1594		} else if (object.type === Owl.Type.State) {
1595			if (!this._states.tags[object.name]) {
1596				this._states.tags[object.name] = object.tags;
1597			} else {
1598				this._states.tags[object.name] = this._states.tags[object.name].concat(object.tags);
1599			}
1600
1601			this._states.tags[object.name] = $.grep(this._states.tags[object.name], $.proxy(function(tag, i) {
1602				return $.inArray(tag, this._states.tags[object.name]) === i;
1603			}, this));
1604		}
1605	};
1606
1607	/**
1608	 * Suppresses events.
1609	 * @protected
1610	 * @param {Array.<String>} events - The events to suppress.
1611	 */
1612	Owl.prototype.suppress = function(events) {
1613		$.each(events, $.proxy(function(index, event) {
1614			this._supress[event] = true;
1615		}, this));
1616	};
1617
1618	/**
1619	 * Releases suppressed events.
1620	 * @protected
1621	 * @param {Array.<String>} events - The events to release.
1622	 */
1623	Owl.prototype.release = function(events) {
1624		$.each(events, $.proxy(function(index, event) {
1625			delete this._supress[event];
1626		}, this));
1627	};
1628
1629	/**
1630	 * Gets unified pointer coordinates from event.
1631	 * @todo #261
1632	 * @protected
1633	 * @param {Event} - The `mousedown` or `touchstart` event.
1634	 * @returns {Object} - Contains `x` and `y` coordinates of current pointer position.
1635	 */
1636	Owl.prototype.pointer = function(event) {
1637		var result = { x: null, y: null };
1638
1639		event = event.originalEvent || event || window.event;
1640
1641		event = event.touches && event.touches.length ?
1642			event.touches[0] : event.changedTouches && event.changedTouches.length ?
1643				event.changedTouches[0] : event;
1644
1645		if (event.pageX) {
1646			result.x = event.pageX;
1647			result.y = event.pageY;
1648		} else {
1649			result.x = event.clientX;
1650			result.y = event.clientY;
1651		}
1652
1653		return result;
1654	};
1655
1656	/**
1657	 * Determines if the input is a Number or something that can be coerced to a Number
1658	 * @protected
1659	 * @param {Number|String|Object|Array|Boolean|RegExp|Function|Symbol} - The input to be tested
1660	 * @returns {Boolean} - An indication if the input is a Number or can be coerced to a Number
1661	 */
1662	Owl.prototype.isNumeric = function(number) {
1663		return !isNaN(parseFloat(number));
1664	};
1665
1666	/**
1667	 * Gets the difference of two vectors.
1668	 * @todo #261
1669	 * @protected
1670	 * @param {Object} - The first vector.
1671	 * @param {Object} - The second vector.
1672	 * @returns {Object} - The difference.
1673	 */
1674	Owl.prototype.difference = function(first, second) {
1675		return {
1676			x: first.x - second.x,
1677			y: first.y - second.y
1678		};
1679	};
1680
1681	/**
1682	 * The jQuery Plugin for the Owl Carousel
1683	 * @todo Navigation plugin `next` and `prev`
1684	 * @public
1685	 */
1686	$.fn.owlCarousel = function(option) {
1687		var args = Array.prototype.slice.call(arguments, 1);
1688
1689		return this.each(function() {
1690			var $this = $(this),
1691				data = $this.data('owl.carousel');
1692
1693			if (!data) {
1694				data = new Owl(this, typeof option == 'object' && option);
1695				$this.data('owl.carousel', data);
1696
1697				$.each([
1698					'next', 'prev', 'to', 'destroy', 'refresh', 'replace', 'add', 'remove'
1699				], function(i, event) {
1700					data.register({ type: Owl.Type.Event, name: event });
1701					data.$element.on(event + '.owl.carousel.core', $.proxy(function(e) {
1702						if (e.namespace && e.relatedTarget !== this) {
1703							this.suppress([ event ]);
1704							data[event].apply(this, [].slice.call(arguments, 1));
1705							this.release([ event ]);
1706						}
1707					}, data));
1708				});
1709			}
1710
1711			if (typeof option == 'string' && option.charAt(0) !== '_') {
1712				data[option].apply(data, args);
1713			}
1714		});
1715	};
1716
1717	/**
1718	 * The constructor for the jQuery Plugin
1719	 * @public
1720	 */
1721	$.fn.owlCarousel.Constructor = Owl;
1722
1723})(window.Zepto || window.jQuery, window, document);
1724
1725/**
1726 * AutoRefresh Plugin
1727 * @version 2.1.0
1728 * @author Artus Kolanowski
1729 * @author David Deutsch
1730 * @license The MIT License (MIT)
1731 */
1732;(function($, window, document, undefined) {
1733
1734	/**
1735	 * Creates the auto refresh plugin.
1736	 * @class The Auto Refresh Plugin
1737	 * @param {Owl} carousel - The Owl Carousel
1738	 */
1739	var AutoRefresh = function(carousel) {
1740		/**
1741		 * Reference to the core.
1742		 * @protected
1743		 * @type {Owl}
1744		 */
1745		this._core = carousel;
1746
1747		/**
1748		 * Refresh interval.
1749		 * @protected
1750		 * @type {number}
1751		 */
1752		this._interval = null;
1753
1754		/**
1755		 * Whether the element is currently visible or not.
1756		 * @protected
1757		 * @type {Boolean}
1758		 */
1759		this._visible = null;
1760
1761		/**
1762		 * All event handlers.
1763		 * @protected
1764		 * @type {Object}
1765		 */
1766		this._handlers = {
1767			'initialized.owl.carousel': $.proxy(function(e) {
1768				if (e.namespace && this._core.settings.autoRefresh) {
1769					this.watch();
1770				}
1771			}, this)
1772		};
1773
1774		// set default options
1775		this._core.options = $.extend({}, AutoRefresh.Defaults, this._core.options);
1776
1777		// register event handlers
1778		this._core.$element.on(this._handlers);
1779	};
1780
1781	/**
1782	 * Default options.
1783	 * @public
1784	 */
1785	AutoRefresh.Defaults = {
1786		autoRefresh: true,
1787		autoRefreshInterval: 500
1788	};
1789
1790	/**
1791	 * Watches the element.
1792	 */
1793	AutoRefresh.prototype.watch = function() {
1794		if (this._interval) {
1795			return;
1796		}
1797
1798		this._visible = this._core.$element.is(':visible');
1799		this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval);
1800	};
1801
1802	/**
1803	 * Refreshes the element.
1804	 */
1805	AutoRefresh.prototype.refresh = function() {
1806		if (this._core.$element.is(':visible') === this._visible) {
1807			return;
1808		}
1809
1810		this._visible = !this._visible;
1811
1812		this._core.$element.toggleClass('owl-hidden', !this._visible);
1813
1814		this._visible && (this._core.invalidate('width') && this._core.refresh());
1815	};
1816
1817	/**
1818	 * Destroys the plugin.
1819	 */
1820	AutoRefresh.prototype.destroy = function() {
1821		var handler, property;
1822
1823		window.clearInterval(this._interval);
1824
1825		for (handler in this._handlers) {
1826			this._core.$element.off(handler, this._handlers[handler]);
1827		}
1828		for (property in Object.getOwnPropertyNames(this)) {
1829			typeof this[property] != 'function' && (this[property] = null);
1830		}
1831	};
1832
1833	$.fn.owlCarousel.Constructor.Plugins.AutoRefresh = AutoRefresh;
1834
1835})(window.Zepto || window.jQuery, window, document);
1836
1837/**
1838 * Lazy Plugin
1839 * @version 2.1.0
1840 * @author Bartosz Wojciechowski
1841 * @author David Deutsch
1842 * @license The MIT License (MIT)
1843 */
1844;(function($, window, document, undefined) {
1845
1846	/**
1847	 * Creates the lazy plugin.
1848	 * @class The Lazy Plugin
1849	 * @param {Owl} carousel - The Owl Carousel
1850	 */
1851	var Lazy = function(carousel) {
1852
1853		/**
1854		 * Reference to the core.
1855		 * @protected
1856		 * @type {Owl}
1857		 */
1858		this._core = carousel;
1859
1860		/**
1861		 * Already loaded items.
1862		 * @protected
1863		 * @type {Array.<jQuery>}
1864		 */
1865		this._loaded = [];
1866
1867		/**
1868		 * Event handlers.
1869		 * @protected
1870		 * @type {Object}
1871		 */
1872		this._handlers = {
1873			'initialized.owl.carousel change.owl.carousel resized.owl.carousel': $.proxy(function(e) {
1874				if (!e.namespace) {
1875					return;
1876				}
1877
1878				if (!this._core.settings || !this._core.settings.lazyLoad) {
1879					return;
1880				}
1881
1882				if ((e.property && e.property.name == 'position') || e.type == 'initialized') {
1883					var settings = this._core.settings,
1884						n = (settings.center && Math.ceil(settings.items / 2) || settings.items),
1885						i = ((settings.center && n * -1) || 0),
1886						position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i,
1887						clones = this._core.clones().length,
1888						load = $.proxy(function(i, v) { this.load(v) }, this);
1889
1890					while (i++ < n) {
1891						this.load(clones / 2 + this._core.relative(position));
1892						clones && $.each(this._core.clones(this._core.relative(position)), load);
1893						position++;
1894					}
1895				}
1896			}, this)
1897		};
1898
1899		// set the default options
1900		this._core.options = $.extend({}, Lazy.Defaults, this._core.options);
1901
1902		// register event handler
1903		this._core.$element.on(this._handlers);
1904	};
1905
1906	/**
1907	 * Default options.
1908	 * @public
1909	 */
1910	Lazy.Defaults = {
1911		lazyLoad: false
1912	};
1913
1914	/**
1915	 * Loads all resources of an item at the specified position.
1916	 * @param {Number} position - The absolute position of the item.
1917	 * @protected
1918	 */
1919	Lazy.prototype.load = function(position) {
1920		var $item = this._core.$stage.children().eq(position),
1921			$elements = $item && $item.find('.owl-lazy');
1922
1923		if (!$elements || $.inArray($item.get(0), this._loaded) > -1) {
1924			return;
1925		}
1926
1927		$elements.each($.proxy(function(index, element) {
1928			var $element = $(element), image,
1929				url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src');
1930
1931			this._core.trigger('load', { element: $element, url: url }, 'lazy');
1932
1933			if ($element.is('img')) {
1934				$element.one('load.owl.lazy', $.proxy(function() {
1935					$element.css('opacity', 1);
1936					this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
1937				}, this)).attr('src', url);
1938			} else {
1939				image = new Image();
1940				image.onload = $.proxy(function() {
1941					$element.css({
1942						'background-image': 'url("' + url + '")',
1943						'opacity': '1'
1944					});
1945					this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
1946				}, this);
1947				image.src = url;
1948			}
1949		}, this));
1950
1951		this._loaded.push($item.get(0));
1952	};
1953
1954	/**
1955	 * Destroys the plugin.
1956	 * @public
1957	 */
1958	Lazy.prototype.destroy = function() {
1959		var handler, property;
1960
1961		for (handler in this.handlers) {
1962			this._core.$element.off(handler, this.handlers[handler]);
1963		}
1964		for (property in Object.getOwnPropertyNames(this)) {
1965			typeof this[property] != 'function' && (this[property] = null);
1966		}
1967	};
1968
1969	$.fn.owlCarousel.Constructor.Plugins.Lazy = Lazy;
1970
1971})(window.Zepto || window.jQuery, window, document);
1972
1973/**
1974 * AutoHeight Plugin
1975 * @version 2.1.0
1976 * @author Bartosz Wojciechowski
1977 * @author David Deutsch
1978 * @license The MIT License (MIT)
1979 */
1980;(function($, window, document, undefined) {
1981
1982	/**
1983	 * Creates the auto height plugin.
1984	 * @class The Auto Height Plugin
1985	 * @param {Owl} carousel - The Owl Carousel
1986	 */
1987	var AutoHeight = function(carousel) {
1988		/**
1989		 * Reference to the core.
1990		 * @protected
1991		 * @type {Owl}
1992		 */
1993		this._core = carousel;
1994
1995		/**
1996		 * All event handlers.
1997		 * @protected
1998		 * @type {Object}
1999		 */
2000		this._handlers = {
2001			'initialized.owl.carousel refreshed.owl.carousel': $.proxy(function(e) {
2002				if (e.namespace && this._core.settings.autoHeight) {
2003					this.update();
2004				}
2005			}, this),
2006			'changed.owl.carousel': $.proxy(function(e) {
2007				if (e.namespace && this._core.settings.autoHeight && e.property.name == 'position'){
2008					this.update();
2009				}
2010			}, this),
2011			'loaded.owl.lazy': $.proxy(function(e) {
2012				if (e.namespace && this._core.settings.autoHeight
2013					&& e.element.closest('.' + this._core.settings.itemClass).index() === this._core.current()) {
2014					this.update();
2015				}
2016			}, this)
2017		};
2018
2019		// set default options
2020		this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options);
2021
2022		// register event handlers
2023		this._core.$element.on(this._handlers);
2024	};
2025
2026	/**
2027	 * Default options.
2028	 * @public
2029	 */
2030	AutoHeight.Defaults = {
2031		autoHeight: false,
2032		autoHeightClass: 'owl-height'
2033	};
2034
2035	/**
2036	 * Updates the view.
2037	 */
2038	AutoHeight.prototype.update = function() {
2039		var start = this._core._current,
2040			end = start + this._core.settings.items,
2041			visible = this._core.$stage.children().toArray().slice(start, end),
2042			heights = [],
2043			maxheight = 0;
2044
2045		$.each(visible, function(index, item) {
2046			heights.push($(item).height());
2047		});
2048
2049		maxheight = Math.max.apply(null, heights);
2050
2051		this._core.$stage.parent()
2052			.height(maxheight)
2053			.addClass(this._core.settings.autoHeightClass);
2054	};
2055
2056	AutoHeight.prototype.destroy = function() {
2057		var handler, property;
2058
2059		for (handler in this._handlers) {
2060			this._core.$element.off(handler, this._handlers[handler]);
2061		}
2062		for (property in Object.getOwnPropertyNames(this)) {
2063			typeof this[property] != 'function' && (this[property] = null);
2064		}
2065	};
2066
2067	$.fn.owlCarousel.Constructor.Plugins.AutoHeight = AutoHeight;
2068
2069})(window.Zepto || window.jQuery, window, document);
2070
2071/**
2072 * Video Plugin
2073 * @version 2.1.0
2074 * @author Bartosz Wojciechowski
2075 * @author David Deutsch
2076 * @license The MIT License (MIT)
2077 */
2078;(function($, window, document, undefined) {
2079
2080	/**
2081	 * Creates the video plugin.
2082	 * @class The Video Plugin
2083	 * @param {Owl} carousel - The Owl Carousel
2084	 */
2085	var Video = function(carousel) {
2086		/**
2087		 * Reference to the core.
2088		 * @protected
2089		 * @type {Owl}
2090		 */
2091		this._core = carousel;
2092
2093		/**
2094		 * Cache all video URLs.
2095		 * @protected
2096		 * @type {Object}
2097		 */
2098		this._videos = {};
2099
2100		/**
2101		 * Current playing item.
2102		 * @protected
2103		 * @type {jQuery}
2104		 */
2105		this._playing = null;
2106
2107		/**
2108		 * All event handlers.
2109		 * @todo The cloned content removale is too late
2110		 * @protected
2111		 * @type {Object}
2112		 */
2113		this._handlers = {
2114			'initialized.owl.carousel': $.proxy(function(e) {
2115				if (e.namespace) {
2116					this._core.register({ type: 'state', name: 'playing', tags: [ 'interacting' ] });
2117				}
2118			}, this),
2119			'resize.owl.carousel': $.proxy(function(e) {
2120				if (e.namespace && this._core.settings.video && this.isInFullScreen()) {
2121					e.preventDefault();
2122				}
2123			}, this),
2124			'refreshed.owl.carousel': $.proxy(function(e) {
2125				if (e.namespace && this._core.is('resizing')) {
2126					this._core.$stage.find('.cloned .owl-video-frame').remove();
2127				}
2128			}, this),
2129			'changed.owl.carousel': $.proxy(function(e) {
2130				if (e.namespace && e.property.name === 'position' && this._playing) {
2131					this.stop();
2132				}
2133			}, this),
2134			'prepared.owl.carousel': $.proxy(function(e) {
2135				if (!e.namespace) {
2136					return;
2137				}
2138
2139				var $element = $(e.content).find('.owl-video');
2140
2141				if ($element.length) {
2142					$element.css('display', 'none');
2143					this.fetch($element, $(e.content));
2144				}
2145			}, this)
2146		};
2147
2148		// set default options
2149		this._core.options = $.extend({}, Video.Defaults, this._core.options);
2150
2151		// register event handlers
2152		this._core.$element.on(this._handlers);
2153
2154		this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function(e) {
2155			this.play(e);
2156		}, this));
2157	};
2158
2159	/**
2160	 * Default options.
2161	 * @public
2162	 */
2163	Video.Defaults = {
2164		video: false,
2165		videoHeight: false,
2166		videoWidth: false
2167	};
2168
2169	/**
2170	 * Gets the video ID and the type (YouTube/Vimeo/vzaar only).
2171	 * @protected
2172	 * @param {jQuery} target - The target containing the video data.
2173	 * @param {jQuery} item - The item containing the video.
2174	 */
2175	Video.prototype.fetch = function(target, item) {
2176			var type = (function() {
2177					if (target.attr('data-vimeo-id')) {
2178						return 'vimeo';
2179					} else if (target.attr('data-vzaar-id')) {
2180						return 'vzaar'
2181					} else {
2182						return 'youtube';
2183					}
2184				})(),
2185				id = target.attr('data-vimeo-id') || target.attr('data-youtube-id') || target.attr('data-vzaar-id'),
2186				width = target.attr('data-width') || this._core.settings.videoWidth,
2187				height = target.attr('data-height') || this._core.settings.videoHeight,
2188				url = target.attr('href');
2189
2190		if (url) {
2191
2192			/*
2193					Parses the id's out of the following urls (and probably more):
2194					https://www.youtube.com/watch?v=:id
2195					https://youtu.be/:id
2196					https://vimeo.com/:id
2197					https://vimeo.com/channels/:channel/:id
2198					https://vimeo.com/groups/:group/videos/:id
2199					https://app.vzaar.com/videos/:id
2200
2201					Visual example: https://regexper.com/#(http%3A%7Chttps%3A%7C)%5C%2F%5C%2F(player.%7Cwww.%7Capp.)%3F(vimeo%5C.com%7Cyoutu(be%5C.com%7C%5C.be%7Cbe%5C.googleapis%5C.com)%7Cvzaar%5C.com)%5C%2F(video%5C%2F%7Cvideos%5C%2F%7Cembed%5C%2F%7Cchannels%5C%2F.%2B%5C%2F%7Cgroups%5C%2F.%2B%5C%2F%7Cwatch%5C%3Fv%3D%7Cv%5C%2F)%3F(%5BA-Za-z0-9._%25-%5D*)(%5C%26%5CS%2B)%3F
2202			*/
2203
2204			id = url.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/);
2205
2206			if (id[3].indexOf('youtu') > -1) {
2207				type = 'youtube';
2208			} else if (id[3].indexOf('vimeo') > -1) {
2209				type = 'vimeo';
2210			} else if (id[3].indexOf('vzaar') > -1) {
2211				type = 'vzaar';
2212			} else {
2213				throw new Error('Video URL not supported.');
2214			}
2215			id = id[6];
2216		} else {
2217			throw new Error('Missing video URL.');
2218		}
2219
2220		this._videos[url] = {
2221			type: type,
2222			id: id,
2223			width: width,
2224			height: height
2225		};
2226
2227		item.attr('data-video', url);
2228
2229		this.thumbnail(target, this._videos[url]);
2230	};
2231
2232	/**
2233	 * Creates video thumbnail.
2234	 * @protected
2235	 * @param {jQuery} target - The target containing the video data.
2236	 * @param {Object} info - The video info object.
2237	 * @see `fetch`
2238	 */
2239	Video.prototype.thumbnail = function(target, video) {
2240		var tnLink,
2241			icon,
2242			path,
2243			dimensions = video.width && video.height ? 'style="width:' + video.width + 'px;height:' + video.height + 'px;"' : '',
2244			customTn = target.find('img'),
2245			srcType = 'src',
2246			lazyClass = '',
2247			settings = this._core.settings,
2248			create = function(path) {
2249				icon = '<div class="owl-video-play-icon"></div>';
2250
2251				if (settings.lazyLoad) {
2252					tnLink = '<div class="owl-video-tn ' + lazyClass + '" ' + srcType + '="' + path + '"></div>';
2253				} else {
2254					tnLink = '<div class="owl-video-tn" style="opacity:1;background-image:url(' + path + ')"></div>';
2255				}
2256				target.after(tnLink);
2257				target.after(icon);
2258			};
2259
2260		// wrap video content into owl-video-wrapper div
2261		target.wrap('<div class="owl-video-wrapper"' + dimensions + '></div>');
2262
2263		if (this._core.settings.lazyLoad) {
2264			srcType = 'data-src';
2265			lazyClass = 'owl-lazy';
2266		}
2267
2268		// custom thumbnail
2269		if (customTn.length) {
2270			create(customTn.attr(srcType));
2271			customTn.remove();
2272			return false;
2273		}
2274
2275		if (video.type === 'youtube') {
2276			path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg";
2277			create(path);
2278		} else if (video.type === 'vimeo') {
2279			$.ajax({
2280				type: 'GET',
2281				url: '//vimeo.com/api/v2/video/' + video.id + '.json',
2282				jsonp: 'callback',
2283				dataType: 'jsonp',
2284				success: function(data) {
2285					path = data[0].thumbnail_large;
2286					create(path);
2287				}
2288			});
2289		} else if (video.type === 'vzaar') {
2290			$.ajax({
2291				type: 'GET',
2292				url: '//vzaar.com/api/videos/' + video.id + '.json',
2293				jsonp: 'callback',
2294				dataType: 'jsonp',
2295				success: function(data) {
2296					path = data.framegrab_url;
2297					create(path);
2298				}
2299			});
2300		}
2301	};
2302
2303	/**
2304	 * Stops the current video.
2305	 * @public
2306	 */
2307	Video.prototype.stop = function() {
2308		this._core.trigger('stop', null, 'video');
2309		this._playing.find('.owl-video-frame').remove();
2310		this._playing.removeClass('owl-video-playing');
2311		this._playing = null;
2312		this._core.leave('playing');
2313		this._core.trigger('stopped', null, 'video');
2314	};
2315
2316	/**
2317	 * Starts the current video.
2318	 * @public
2319	 * @param {Event} event - The event arguments.
2320	 */
2321	Video.prototype.play = function(event) {
2322		var target = $(event.target),
2323			item = target.closest('.' + this._core.settings.itemClass),
2324			video = this._videos[item.attr('data-video')],
2325			width = video.width || '100%',
2326			height = video.height || this._core.$stage.height(),
2327			html;
2328
2329		if (this._playing) {
2330			return;
2331		}
2332
2333		this._core.enter('playing');
2334		this._core.trigger('play', null, 'video');
2335
2336		item = this._core.items(this._core.relative(item.index()));
2337
2338		this._core.reset(item.index());
2339
2340		if (video.type === 'youtube') {
2341			html = '<iframe width="' + width + '" height="' + height + '" src="//www.youtube.com/embed/' +
2342				video.id + '?autoplay=1&rel=0&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>';
2343		} else if (video.type === 'vimeo') {
2344			html = '<iframe src="//player.vimeo.com/video/' + video.id +
2345				'?autoplay=1" width="' + width + '" height="' + height +
2346				'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
2347		} else if (video.type === 'vzaar') {
2348			html = '<iframe frameborder="0"' + 'height="' + height + '"' + 'width="' + width +
2349				'" allowfullscreen mozallowfullscreen webkitAllowFullScreen ' +
2350				'src="//view.vzaar.com/' + video.id + '/player?autoplay=true"></iframe>';
2351		}
2352
2353		$('<div class="owl-video-frame">' + html + '</div>').insertAfter(item.find('.owl-video'));
2354
2355		this._playing = item.addClass('owl-video-playing');
2356	};
2357
2358	/**
2359	 * Checks whether an video is currently in full screen mode or not.
2360	 * @todo Bad style because looks like a readonly method but changes members.
2361	 * @protected
2362	 * @returns {Boolean}
2363	 */
2364	Video.prototype.isInFullScreen = function() {
2365		var element = document.fullscreenElement || document.mozFullScreenElement ||
2366				document.webkitFullscreenElement;
2367
2368		return element && $(element).parent().hasClass('owl-video-frame');
2369	};
2370
2371	/**
2372	 * Destroys the plugin.
2373	 */
2374	Video.prototype.destroy = function() {
2375		var handler, property;
2376
2377		this._core.$element.off('click.owl.video');
2378
2379		for (handler in this._handlers) {
2380			this._core.$element.off(handler, this._handlers[handler]);
2381		}
2382		for (property in Object.getOwnPropertyNames(this)) {
2383			typeof this[property] != 'function' && (this[property] = null);
2384		}
2385	};
2386
2387	$.fn.owlCarousel.Constructor.Plugins.Video = Video;
2388
2389})(window.Zepto || window.jQuery, window, document);
2390
2391/**
2392 * Animate Plugin
2393 * @version 2.1.0
2394 * @author Bartosz Wojciechowski
2395 * @author David Deutsch
2396 * @license The MIT License (MIT)
2397 */
2398;(function($, window, document, undefined) {
2399
2400	/**
2401	 * Creates the animate plugin.
2402	 * @class The Navigation Plugin
2403	 * @param {Owl} scope - The Owl Carousel
2404	 */
2405	var Animate = function(scope) {
2406		this.core = scope;
2407		this.core.options = $.extend({}, Animate.Defaults, this.core.options);
2408		this.swapping = true;
2409		this.previous = undefined;
2410		this.next = undefined;
2411
2412		this.handlers = {
2413			'change.owl.carousel': $.proxy(function(e) {
2414				if (e.namespace && e.property.name == 'position') {
2415					this.previous = this.core.current();
2416					this.next = e.property.value;
2417				}
2418			}, this),
2419			'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function(e) {
2420				if (e.namespace) {
2421					this.swapping = e.type == 'translated';
2422				}
2423			}, this),
2424			'translate.owl.carousel': $.proxy(function(e) {
2425				if (e.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) {
2426					this.swap();
2427				}
2428			}, this)
2429		};
2430
2431		this.core.$element.on(this.handlers);
2432	};
2433
2434	/**
2435	 * Default options.
2436	 * @public
2437	 */
2438	Animate.Defaults = {
2439		animateOut: false,
2440		animateIn: false
2441	};
2442
2443	/**
2444	 * Toggles the animation classes whenever an translations starts.
2445	 * @protected
2446	 * @returns {Boolean|undefined}
2447	 */
2448	Animate.prototype.swap = function() {
2449
2450		if (this.core.settings.items !== 1) {
2451			return;
2452		}
2453
2454		if (!$.support.animation || !$.support.transition) {
2455			return;
2456		}
2457
2458		this.core.speed(0);
2459
2460		var left,
2461			clear = $.proxy(this.clear, this),
2462			previous = this.core.$stage.children().eq(this.previous),
2463			next = this.core.$stage.children().eq(this.next),
2464			incoming = this.core.settings.animateIn,
2465			outgoing = this.core.settings.animateOut;
2466
2467		if (this.core.current() === this.previous) {
2468			return;
2469		}
2470
2471		if (outgoing) {
2472			left = this.core.coordinates(this.previous) - this.core.coordinates(this.next);
2473			previous.one($.support.animation.end, clear)
2474				.css( { 'left': left + 'px' } )
2475				.addClass('animated owl-animated-out')
2476				.addClass(outgoing);
2477		}
2478
2479		if (incoming) {
2480			next.one($.support.animation.end, clear)
2481				.addClass('animated owl-animated-in')
2482				.addClass(incoming);
2483		}
2484	};
2485
2486	Animate.prototype.clear = function(e) {
2487		$(e.target).css( { 'left': '' } )
2488			.removeClass('animated owl-animated-out owl-animated-in')
2489			.removeClass(this.core.settings.animateIn)
2490			.removeClass(this.core.settings.animateOut);
2491		this.core.onTransitionEnd();
2492	};
2493
2494	/**
2495	 * Destroys the plugin.
2496	 * @public
2497	 */
2498	Animate.prototype.destroy = function() {
2499		var handler, property;
2500
2501		for (handler in this.handlers) {
2502			this.core.$element.off(handler, this.handlers[handler]);
2503		}
2504		for (property in Object.getOwnPropertyNames(this)) {
2505			typeof this[property] != 'function' && (this[property] = null);
2506		}
2507	};
2508
2509	$.fn.owlCarousel.Constructor.Plugins.Animate = Animate;
2510
2511})(window.Zepto || window.jQuery, window, document);
2512
2513/**
2514 * Autoplay Plugin
2515 * @version 2.1.0
2516 * @author Bartosz Wojciechowski
2517 * @author Artus Kolanowski
2518 * @author David Deutsch
2519 * @license The MIT License (MIT)
2520 */
2521;(function($, window, document, undefined) {
2522
2523	/**
2524	 * Creates the autoplay plugin.
2525	 * @class The Autoplay Plugin
2526	 * @param {Owl} scope - The Owl Carousel
2527	 */
2528	var Autoplay = function(carousel) {
2529		/**
2530		 * Reference to the core.
2531		 * @protected
2532		 * @type {Owl}
2533		 */
2534		this._core = carousel;
2535
2536		/**
2537		 * The autoplay timeout.
2538		 * @type {Timeout}
2539		 */
2540		this._timeout = null;
2541
2542		/**
2543		 * Indicates whenever the autoplay is paused.
2544		 * @type {Boolean}
2545		 */
2546		this._paused = false;
2547
2548		/**
2549		 * All event handlers.
2550		 * @protected
2551		 * @type {Object}
2552		 */
2553		this._handlers = {
2554			'changed.owl.carousel': $.proxy(function(e) {
2555				if (e.namespace && e.property.name === 'settings') {
2556					if (this._core.settings.autoplay) {
2557						this.play();
2558					} else {
2559						this.stop();
2560					}
2561				} else if (e.namespace && e.property.name === 'position') {
2562					//console.log('play?', e);
2563					if (this._core.settings.autoplay) {
2564						this._setAutoPlayInterval();
2565					}
2566				}
2567			}, this),
2568			'initialized.owl.carousel': $.proxy(function(e) {
2569				if (e.namespace && this._core.settings.autoplay) {
2570					this.play();
2571				}
2572			}, this),
2573			'play.owl.autoplay': $.proxy(function(e, t, s) {
2574				if (e.namespace) {
2575					this.play(t, s);
2576				}
2577			}, this),
2578			'stop.owl.autoplay': $.proxy(function(e) {
2579				if (e.namespace) {
2580					this.stop();
2581				}
2582			}, this),
2583			'mouseover.owl.autoplay': $.proxy(function() {
2584				if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2585					this.pause();
2586				}
2587			}, this),
2588			'mouseleave.owl.autoplay': $.proxy(function() {
2589				if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2590					this.play();
2591				}
2592			}, this),
2593			'touchstart.owl.core': $.proxy(function() {
2594				if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
2595					this.pause();
2596				}
2597			}, this),
2598			'touchend.owl.core': $.proxy(function() {
2599				if (this._core.settings.autoplayHoverPause) {
2600					this.play();
2601				}
2602			}, this)
2603		};
2604
2605		// register event handlers
2606		this._core.$element.on(this._handlers);
2607
2608		// set default options
2609		this._core.options = $.extend({}, Autoplay.Defaults, this._core.options);
2610	};
2611
2612	/**
2613	 * Default options.
2614	 * @public
2615	 */
2616	Autoplay.Defaults = {
2617		autoplay: false,
2618		autoplayTimeout: 5000,
2619		autoplayHoverPause: false,
2620		autoplaySpeed: false
2621	};
2622
2623	/**
2624	 * Starts the autoplay.
2625	 * @public
2626	 * @param {Number} [timeout] - The interval before the next animation starts.
2627	 * @param {Number} [speed] - The animation speed for the animations.
2628	 */
2629	Autoplay.prototype.play = function(timeout, speed) {
2630		this._paused = false;
2631
2632		if (this._core.is('rotating')) {
2633			return;
2634		}
2635
2636		this._core.enter('rotating');
2637
2638		this._setAutoPlayInterval();
2639	};
2640
2641	/**
2642	 * Gets a new timeout
2643	 * @private
2644	 * @param {Number} [timeout] - The interval before the next animation starts.
2645	 * @param {Number} [speed] - The animation speed for the animations.
2646	 * @return {Timeout}
2647	 */
2648	Autoplay.prototype._getNextTimeout = function(timeout, speed) {
2649		if ( this._timeout ) {
2650			window.clearTimeout(this._timeout);
2651		}
2652		return window.setTimeout($.proxy(function() {
2653			if (this._paused || this._core.is('busy') || this._core.is('interacting') || document.hidden) {
2654				return;
2655			}
2656			this._core.next(speed || this._core.settings.autoplaySpeed);
2657		}, this), timeout || this._core.settings.autoplayTimeout);
2658	};
2659
2660	/**
2661	 * Sets autoplay in motion.
2662	 * @private
2663	 */
2664	Autoplay.prototype._setAutoPlayInterval = function() {
2665		this._timeout = this._getNextTimeout();
2666	};
2667
2668	/**
2669	 * Stops the autoplay.
2670	 * @public
2671	 */
2672	Autoplay.prototype.stop = function() {
2673		if (!this._core.is('rotating')) {
2674			return;
2675		}
2676
2677		window.clearTimeout(this._timeout);
2678		this._core.leave('rotating');
2679	};
2680
2681	/**
2682	 * Stops the autoplay.
2683	 * @public
2684	 */
2685	Autoplay.prototype.pause = function() {
2686		if (!this._core.is('rotating')) {
2687			return;
2688		}
2689
2690		this._paused = true;
2691	};
2692
2693	/**
2694	 * Destroys the plugin.
2695	 */
2696	Autoplay.prototype.destroy = function() {
2697		var handler, property;
2698
2699		this.stop();
2700
2701		for (handler in this._handlers) {
2702			this._core.$element.off(handler, this._handlers[handler]);
2703		}
2704		for (property in Object.getOwnPropertyNames(this)) {
2705			typeof this[property] != 'function' && (this[property] = null);
2706		}
2707	};
2708
2709	$.fn.owlCarousel.Constructor.Plugins.autoplay = Autoplay;
2710
2711})(window.Zepto || window.jQuery, window, document);
2712
2713/**
2714 * Navigation Plugin
2715 * @version 2.1.0
2716 * @author Artus Kolanowski
2717 * @author David Deutsch
2718 * @license The MIT License (MIT)
2719 */
2720;(function($, window, document, undefined) {
2721	'use strict';
2722
2723	/**
2724	 * Creates the navigation plugin.
2725	 * @class The Navigation Plugin
2726	 * @param {Owl} carousel - The Owl Carousel.
2727	 */
2728	var Navigation = function(carousel) {
2729		/**
2730		 * Reference to the core.
2731		 * @protected
2732		 * @type {Owl}
2733		 */
2734		this._core = carousel;
2735
2736		/**
2737		 * Indicates whether the plugin is initialized or not.
2738		 * @protected
2739		 * @type {Boolean}
2740		 */
2741		this._initialized = false;
2742
2743		/**
2744		 * The current paging indexes.
2745		 * @protected
2746		 * @type {Array}
2747		 */
2748		this._pages = [];
2749
2750		/**
2751		 * All DOM elements of the user interface.
2752		 * @protected
2753		 * @type {Object}
2754		 */
2755		this._controls = {};
2756
2757		/**
2758		 * Markup for an indicator.
2759		 * @protected
2760		 * @type {Array.<String>}
2761		 */
2762		this._templates = [];
2763
2764		/**
2765		 * The carousel element.
2766		 * @type {jQuery}
2767		 */
2768		this.$element = this._core.$element;
2769
2770		/**
2771		 * Overridden methods of the carousel.
2772		 * @protected
2773		 * @type {Object}
2774		 */
2775		this._overrides = {
2776			next: this._core.next,
2777			prev: this._core.prev,
2778			to: this._core.to
2779		};
2780
2781		/**
2782		 * All event handlers.
2783		 * @protected
2784		 * @type {Object}
2785		 */
2786		this._handlers = {
2787			'prepared.owl.carousel': $.proxy(function(e) {
2788				if (e.namespace && this._core.settings.dotsData) {
2789					this._templates.push('<div class="' + this._core.settings.dotClass + '">' +
2790						$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '</div>');
2791				}
2792			}, this),
2793			'added.owl.carousel': $.proxy(function(e) {
2794				if (e.namespace && this._core.settings.dotsData) {
2795					this._templates.splice(e.position, 0, this._templates.pop());
2796				}
2797			}, this),
2798			'remove.owl.carousel': $.proxy(function(e) {
2799				if (e.namespace && this._core.settings.dotsData) {
2800					this._templates.splice(e.position, 1);
2801				}
2802			}, this),
2803			'changed.owl.carousel': $.proxy(function(e) {
2804				if (e.namespace && e.property.name == 'position') {
2805					this.draw();
2806				}
2807			}, this),
2808			'initialized.owl.carousel': $.proxy(function(e) {
2809				if (e.namespace && !this._initialized) {
2810					this._core.trigger('initialize', null, 'navigation');
2811					this.initialize();
2812					this.update();
2813					this.draw();
2814					this._initialized = true;
2815					this._core.trigger('initialized', null, 'navigation');
2816				}
2817			}, this),
2818			'refreshed.owl.carousel': $.proxy(function(e) {
2819				if (e.namespace && this._initialized) {
2820					this._core.trigger('refresh', null, 'navigation');
2821					this.update();
2822					this.draw();
2823					this._core.trigger('refreshed', null, 'navigation');
2824				}
2825			}, this)
2826		};
2827
2828		// set default options
2829		this._core.options = $.extend({}, Navigation.Defaults, this._core.options);
2830
2831		// register event handlers
2832		this.$element.on(this._handlers);
2833	};
2834
2835	/**
2836	 * Default options.
2837	 * @public
2838	 * @todo Rename `slideBy` to `navBy`
2839	 */
2840	Navigation.Defaults = {
2841		nav: false,
2842		navText: [ 'prev', 'next' ],
2843		navSpeed: false,
2844		navElement: 'div',
2845		navContainer: false,
2846		navContainerClass: 'owl-nav',
2847		navClass: [ 'owl-prev', 'owl-next' ],
2848		slideBy: 1,
2849		dotClass: 'owl-dot',
2850		dotsClass: 'owl-dots',
2851		dots: true,
2852		dotsEach: false,
2853		dotsData: false,
2854		dotsSpeed: false,
2855		dotsContainer: false
2856	};
2857
2858	/**
2859	 * Initializes the layout of the plugin and extends the carousel.
2860	 * @protected
2861	 */
2862	Navigation.prototype.initialize = function() {
2863		var override,
2864			settings = this._core.settings;
2865
2866		// create DOM structure for relative navigation
2867		this._controls.$relative = (settings.navContainer ? $(settings.navContainer)
2868			: $('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');
2869
2870		this._controls.$previous = $('<' + settings.navElement + '>')
2871			.addClass(settings.navClass[0])
2872			.html(settings.navText[0])
2873			.prependTo(this._controls.$relative)
2874			.on('click', $.proxy(function(e) {
2875				this.prev(settings.navSpeed);
2876			}, this));
2877		this._controls.$next = $('<' + settings.navElement + '>')
2878			.addClass(settings.navClass[1])
2879			.html(settings.navText[1])
2880			.appendTo(this._controls.$relative)
2881			.on('click', $.proxy(function(e) {
2882				this.next(settings.navSpeed);
2883			}, this));
2884
2885		// create DOM structure for absolute navigation
2886		if (!settings.dotsData) {
2887			this._templates = [ $('<div>')
2888				.addClass(settings.dotClass)
2889				.append($('<span>'))
2890				.prop('outerHTML') ];
2891		}
2892
2893		this._controls.$absolute = (settings.dotsContainer ? $(settings.dotsContainer)
2894			: $('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');
2895
2896		this._controls.$absolute.on('click', 'div', $.proxy(function(e) {
2897			var index = $(e.target).parent().is(this._controls.$absolute)
2898				? $(e.target).index() : $(e.target).parent().index();
2899
2900			e.preventDefault();
2901
2902			this.to(index, settings.dotsSpeed);
2903		}, this));
2904
2905		// override public methods of the carousel
2906		for (override in this._overrides) {
2907			this._core[override] = $.proxy(this[override], this);
2908		}
2909	};
2910
2911	/**
2912	 * Destroys the plugin.
2913	 * @protected
2914	 */
2915	Navigation.prototype.destroy = function() {
2916		var handler, control, property, override;
2917
2918		for (handler in this._handlers) {
2919			this.$element.off(handler, this._handlers[handler]);
2920		}
2921		for (control in this._controls) {
2922			this._controls[control].remove();
2923		}
2924		for (override in this.overides) {
2925			this._core[override] = this._overrides[override];
2926		}
2927		for (property in Object.getOwnPropertyNames(this)) {
2928			typeof this[property] != 'function' && (this[property] = null);
2929		}
2930	};
2931
2932	/**
2933	 * Updates the internal state.
2934	 * @protected
2935	 */
2936	Navigation.prototype.update = function() {
2937		var i, j, k,
2938			lower = this._core.clones().length / 2,
2939			upper = lower + this._core.items().length,
2940			maximum = this._core.maximum(true),
2941			settings = this._core.settings,
2942			size = settings.center || settings.autoWidth || settings.dotsData
2943				? 1 : settings.dotsEach || settings.items;
2944
2945		if (settings.slideBy !== 'page') {
2946			settings.slideBy = Math.min(settings.slideBy, settings.items);
2947		}
2948
2949		if (settings.dots || settings.slideBy == 'page') {
2950			this._pages = [];
2951
2952			for (i = lower, j = 0, k = 0; i < upper; i++) {
2953				if (j >= size || j === 0) {
2954					this._pages.push({
2955						start: Math.min(maximum, i - lower),
2956						end: i - lower + size - 1
2957					});
2958					if (Math.min(maximum, i - lower) === maximum) {
2959						break;
2960					}
2961					j = 0, ++k;
2962				}
2963				j += this._core.mergers(this._core.relative(i));
2964			}
2965		}
2966	};
2967
2968	/**
2969	 * Draws the user interface.
2970	 * @todo The option `dotsData` wont work.
2971	 * @protected
2972	 */
2973	Navigation.prototype.draw = function() {
2974		var difference,
2975			settings = this._core.settings,
2976			disabled = this._core.items().length <= settings.items,
2977			index = this._core.relative(this._core.current()),
2978			loop = settings.loop || settings.rewind;
2979
2980		this._controls.$relative.toggleClass('disabled', !settings.nav || disabled);
2981
2982		if (settings.nav) {
2983			this._controls.$previous.toggleClass('disabled', !loop && index <= this._core.minimum(true));
2984			this._controls.$next.toggleClass('disabled', !loop && index >= this._core.maximum(true));
2985		}
2986
2987		this._controls.$absolute.toggleClass('disabled', !settings.dots || disabled);
2988
2989		if (settings.dots) {
2990			difference = this._pages.length - this._controls.$absolute.children().length;
2991
2992			if (settings.dotsData && difference !== 0) {
2993				this._controls.$absolute.html(this._templates.join(''));
2994			} else if (difference > 0) {
2995				this._controls.$absolute.append(new Array(difference + 1).join(this._templates[0]));
2996			} else if (difference < 0) {
2997				this._controls.$absolute.children().slice(difference).remove();
2998			}
2999
3000			this._controls.$absolute.find('.active').removeClass('active');
3001			this._controls.$absolute.children().eq($.inArray(this.current(), this._pages)).addClass('active');
3002		}
3003	};
3004
3005	/**
3006	 * Extends event data.
3007	 * @protected
3008	 * @param {Event} event - The event object which gets thrown.
3009	 */
3010	Navigation.prototype.onTrigger = function(event) {
3011		var settings = this._core.settings;
3012
3013		event.page = {
3014			index: $.inArray(this.current(), this._pages),
3015			count: this._pages.length,
vendor: 7,458 bytes, lines 3016-3297
3016			size: settings && (settings.center || settings.autoWidth || settings.dotsData
3017				? 1 : settings.dotsEach || settings.items)
3018		};
3019	};
3020
3021	/**
3022	 * Gets the current page position of the carousel.
3023	 * @protected
3024	 * @returns {Number}
3025	 */
3026	Navigation.prototype.current = function() {
3027		var current = this._core.relative(this._core.current());
3028		return $.grep(this._pages, $.proxy(function(page, index) {
3029			return page.start <= current && page.end >= current;
3030		}, this)).pop();
3031	};
3032
3033	/**
3034	 * Gets the current succesor/predecessor position.
3035	 * @protected
3036	 * @returns {Number}
3037	 */
3038	Navigation.prototype.getPosition = function(successor) {
3039		var position, length,
3040			settings = this._core.settings;
3041
3042		if (settings.slideBy == 'page') {
3043			position = $.inArray(this.current(), this._pages);
3044			length = this._pages.length;
3045			successor ? ++position : --position;
3046			position = this._pages[((position % length) + length) % length].start;
3047		} else {
3048			position = this._core.relative(this._core.current());
3049			length = this._core.items().length;
3050			successor ? position += settings.slideBy : position -= settings.slideBy;
3051		}
3052
3053		return position;
3054	};
3055
3056	/**
3057	 * Slides to the next item or page.
3058	 * @public
3059	 * @param {Number} [speed=false] - The time in milliseconds for the transition.
3060	 */
3061	Navigation.prototype.next = function(speed) {
3062		$.proxy(this._overrides.to, this._core)(this.getPosition(true), speed);
3063	};
3064
3065	/**
3066	 * Slides to the previous item or page.
3067	 * @public
3068	 * @param {Number} [speed=false] - The time in milliseconds for the transition.
3069	 */
3070	Navigation.prototype.prev = function(speed) {
3071		$.proxy(this._overrides.to, this._core)(this.getPosition(false), speed);
3072	};
3073
3074	/**
3075	 * Slides to the specified item or page.
3076	 * @public
3077	 * @param {Number} position - The position of the item or page.
3078	 * @param {Number} [speed] - The time in milliseconds for the transition.
3079	 * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not.
3080	 */
3081	Navigation.prototype.to = function(position, speed, standard) {
3082		var length;
3083
3084		if (!standard && this._pages.length) {
3085			length = this._pages.length;
3086			$.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed);
3087		} else {
3088			$.proxy(this._overrides.to, this._core)(position, speed);
3089		}
3090	};
3091
3092	$.fn.owlCarousel.Constructor.Plugins.Navigation = Navigation;
3093
3094})(window.Zepto || window.jQuery, window, document);
3095
3096/**
3097 * Hash Plugin
3098 * @version 2.1.0
3099 * @author Artus Kolanowski
3100 * @author David Deutsch
3101 * @license The MIT License (MIT)
3102 */
3103;(function($, window, document, undefined) {
3104	'use strict';
3105
3106	/**
3107	 * Creates the hash plugin.
3108	 * @class The Hash Plugin
3109	 * @param {Owl} carousel - The Owl Carousel
3110	 */
3111	var Hash = function(carousel) {
3112		/**
3113		 * Reference to the core.
3114		 * @protected
3115		 * @type {Owl}
3116		 */
3117		this._core = carousel;
3118
3119		/**
3120		 * Hash index for the items.
3121		 * @protected
3122		 * @type {Object}
3123		 */
3124		this._hashes = {};
3125
3126		/**
3127		 * The carousel element.
3128		 * @type {jQuery}
3129		 */
3130		this.$element = this._core.$element;
3131
3132		/**
3133		 * All event handlers.
3134		 * @protected
3135		 * @type {Object}
3136		 */
3137		this._handlers = {
3138			'initialized.owl.carousel': $.proxy(function(e) {
3139				if (e.namespace && this._core.settings.startPosition === 'URLHash') {
3140					$(window).trigger('hashchange.owl.navigation');
3141				}
3142			}, this),
3143			'prepared.owl.carousel': $.proxy(function(e) {
3144				if (e.namespace) {
3145					var hash = $(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');
3146
3147					if (!hash) {
3148						return;
3149					}
3150
3151					this._hashes[hash] = e.content;
3152				}
3153			}, this),
3154			'changed.owl.carousel': $.proxy(function(e) {
3155				if (e.namespace && e.property.name === 'position') {
3156					var current = this._core.items(this._core.relative(this._core.current())),
3157						hash = $.map(this._hashes, function(item, hash) {
3158							return item === current ? hash : null;
3159						}).join();
3160
3161					if (!hash || window.location.hash.slice(1) === hash) {
3162						return;
3163					}
3164
3165					window.location.hash = hash;
3166				}
3167			}, this)
3168		};
3169
3170		// set default options
3171		this._core.options = $.extend({}, Hash.Defaults, this._core.options);
3172
3173		// register the event handlers
3174		this.$element.on(this._handlers);
3175
3176		// register event listener for hash navigation
3177		$(window).on('hashchange.owl.navigation', $.proxy(function(e) {
3178			var hash = window.location.hash.substring(1),
3179				items = this._core.$stage.children(),
3180				position = this._hashes[hash] && items.index(this._hashes[hash]);
3181
3182			if (position === undefined || position === this._core.current()) {
3183				return;
3184			}
3185
3186			this._core.to(this._core.relative(position), false, true);
3187		}, this));
3188	};
3189
3190	/**
3191	 * Default options.
3192	 * @public
3193	 */
3194	Hash.Defaults = {
3195		URLhashListener: false
3196	};
3197
3198	/**
3199	 * Destroys the plugin.
3200	 * @public
3201	 */
3202	Hash.prototype.destroy = function() {
3203		var handler, property;
3204
3205		$(window).off('hashchange.owl.navigation');
3206
3207		for (handler in this._handlers) {
3208			this._core.$element.off(handler, this._handlers[handler]);
3209		}
3210		for (property in Object.getOwnPropertyNames(this)) {
3211			typeof this[property] != 'function' && (this[property] = null);
3212		}
3213	};
3214
3215	$.fn.owlCarousel.Constructor.Plugins.Hash = Hash;
3216
3217})(window.Zepto || window.jQuery, window, document);
3218
3219/**
3220 * Support Plugin
3221 *
3222 * @version 2.1.0
3223 * @author Vivid Planet Software GmbH
3224 * @author Artus Kolanowski
3225 * @author David Deutsch
3226 * @license The MIT License (MIT)
3227 */
3228;(function($, window, document, undefined) {
3229
3230	var style = $('<support>').get(0).style,
3231		prefixes = 'Webkit Moz O ms'.split(' '),
3232		events = {
3233			transition: {
3234				end: {
3235					WebkitTransition: 'webkitTransitionEnd',
3236					MozTransition: 'transitionend',
3237					OTransition: 'oTransitionEnd',
3238					transition: 'transitionend'
3239				}
3240			},
3241			animation: {
3242				end: {
3243					WebkitAnimation: 'webkitAnimationEnd',
3244					MozAnimation: 'animationend',
3245					OAnimation: 'oAnimationEnd',
3246					animation: 'animationend'
3247				}
3248			}
3249		},
3250		tests = {
3251			csstransforms: function() {
3252				return !!test('transform');
3253			},
3254			csstransforms3d: function() {
3255				return !!test('perspective');
3256			},
3257			csstransitions: function() {
3258				return !!test('transition');
3259			},
3260			cssanimations: function() {
3261				return !!test('animation');
3262			}
3263		};
3264
3265	function test(property, prefixed) {
3266		var result = false,
3267			upper = property.charAt(0).toUpperCase() + property.slice(1);
3268
3269		$.each((property + ' ' + prefixes.join(upper + ' ') + upper).split(' '), function(i, property) {
3270			if (style[property] !== undefined) {
3271				result = prefixed ? property : true;
3272				return false;
3273			}
3274		});
3275
3276		return result;
3277	}
3278
3279	function prefixed(property) {
3280		return test(property, true);
3281	}
3282
3283	if (tests.csstransitions()) {
3284		/* jshint -W053 */
3285		$.support.transition = new String(prefixed('transition'))
3286		$.support.transition.end = events.transition.end[ $.support.transition ];
3287	}
3288
3289	if (tests.cssanimations()) {
3290		/* jshint -W053 */
3291		$.support.animation = new String(prefixed('animation'))
3292		$.support.animation.end = events.animation.end[ $.support.animation ];
3293	}
3294
3295	if (tests.csstransforms()) {
3296		/* jshint -W053 */
3297		$.support.transform = new String(prefixed('transform'));
3298		$.support.transform3d = tests.csstransforms3d();
3299	}
3300
3301})(window.Zepto || window.jQuery, window, document);
3302
3303function setActiveStyleSheet(title){
3304  var i, a, main;
3305  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
3306    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
3307      a.disabled = true;
3308      if(a.getAttribute("title") == title) a.disabled = false;
3309    }
3310	
3311	   $('.con').removeClass("active");
3312	  $('.'+title).addClass('active');
3313	  //document.getElementById(title).classList.add("active");
3314	  
3315  }
3316}
3317
3318function getActiveStyleSheet() {
3319  var i, a;
3320  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
3321    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");
3322  }
3323  return null;
3324}
3325
3326function getPreferredStyleSheet() {
3327  var i, a;
3328  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
3329    if(a.getAttribute("rel").indexOf("style") != -1
3330       && a.getAttribute("rel").indexOf("alt") == -1
3331       && a.getAttribute("title")
3332       ) return a.getAttribute("title");
3333  }
3334  return null;
3335}
3336
3337function createCookie(name,value,days) {
3338  if (days) {
3339    var date = new Date();
3340    date.setTime(date.getTime()+(days*24*60*60*1000));
3341    var expires = "; expires="+date.toGMTString();
3342  }
3343  else expires = "";
3344  document.cookie = name+"="+value+expires+"; path=/";
3345}
3346
3347function readCookie(name) {
3348  var nameEQ = name + "=";
3349  var ca = document.cookie.split(';');
3350  for(var i=0;i < ca.length;i++) {
3351    var c = ca[i];
3352    while (c.charAt(0)==' ') c = c.substring(1,c.length);
3353    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
3354  }
3355  return null;
3356}
3357
3358window.onload = function(e) {
3359  var cookie = readCookie("style");
3360  var title = cookie ? cookie : getPreferredStyleSheet();
3361  setActiveStyleSheet(title);
3362}
3363
3364window.onunload = function(e) {
3365  var title = getActiveStyleSheet();
3366  createCookie("style", title, 365);
3367}
3368
3369var cookie = readCookie("style");
3370var title = cookie ? cookie : getPreferredStyleSheet();
3371setActiveStyleSheet(title);
3372!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AOS=t():e.AOS=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={exports:{},id:o,loaded:!1};return e[o].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},r=n(1),a=(o(r),n(6)),u=o(a),c=n(7),f=o(c),s=n(8),d=o(s),l=n(9),p=o(l),m=n(10),b=o(m),v=n(11),y=o(v),g=n(14),h=o(g),w=[],k=!1,x={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},j=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(e&&(k=!0),k)return w=(0,y.default)(w,x),(0,b.default)(w,x.once),w},O=function(){w=(0,h.default)(),j()},_=function(){w.forEach(function(e,t){e.node.removeAttribute("data-aos"),e.node.removeAttribute("data-aos-easing"),e.node.removeAttribute("data-aos-duration"),e.node.removeAttribute("data-aos-delay")})},S=function(e){return e===!0||"mobile"===e&&p.default.mobile()||"phone"===e&&p.default.phone()||"tablet"===e&&p.default.tablet()||"function"==typeof e&&e()===!0},z=function(e){x=i(x,e),w=(0,h.default)();var t=document.all&&!window.atob;return S(x.disable)||t?_():(document.querySelector("body").setAttribute("data-aos-easing",x.easing),document.querySelector("body").setAttribute("data-aos-duration",x.duration),document.querySelector("body").setAttribute("data-aos-delay",x.delay),"DOMContentLoaded"===x.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?j(!0):"load"===x.startEvent?window.addEventListener(x.startEvent,function(){j(!0)}):document.addEventListener(x.startEvent,function(){j(!0)}),window.addEventListener("resize",(0,f.default)(j,x.debounceDelay,!0)),window.addEventListener("orientationchange",(0,f.default)(j,x.debounceDelay,!0)),window.addEventListener("scroll",(0,u.default)(function(){(0,b.default)(w,x.once)},x.throttleDelay)),x.disableMutationObserver||(0,d.default)("[data-aos]",O),w)};e.exports={init:z,refresh:j,refreshHard:O}},function(e,t){},,,,,function(e,t){(function(t){"use strict";function n(e,t,n){function o(t){var n=b,o=v;return b=v=void 0,k=t,g=e.apply(o,n)}function r(e){return k=e,h=setTimeout(s,t),_?o(e):g}function a(e){var n=e-w,o=e-k,i=t-n;return S?j(i,y-o):i}function c(e){var n=e-w,o=e-k;return void 0===w||n>=t||n<0||S&&o>=y}function s(){var e=O();return c(e)?d(e):void(h=setTimeout(s,a(e)))}function d(e){return h=void 0,z&&b?o(e):(b=v=void 0,g)}function l(){void 0!==h&&clearTimeout(h),k=0,b=w=v=h=void 0}function p(){return void 0===h?g:d(O())}function m(){var e=O(),n=c(e);if(b=arguments,v=this,w=e,n){if(void 0===h)return r(w);if(S)return h=setTimeout(s,t),o(w)}return void 0===h&&(h=setTimeout(s,t)),g}var b,v,y,g,h,w,k=0,_=!1,S=!1,z=!0;if("function"!=typeof e)throw new TypeError(f);return t=u(t)||0,i(n)&&(_=!!n.leading,S="maxWait"in n,y=S?x(u(n.maxWait)||0,t):y,z="trailing"in n?!!n.trailing:z),m.cancel=l,m.flush=p,m}function o(e,t,o){var r=!0,a=!0;if("function"!=typeof e)throw new TypeError(f);return i(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:r,maxWait:t,trailing:a})}function i(e){var t="undefined"==typeof e?"undefined":c(e);return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==("undefined"==typeof e?"undefined":c(e))}function a(e){return"symbol"==("undefined"==typeof e?"undefined":c(e))||r(e)&&k.call(e)==d}function u(e){if("number"==typeof e)return e;if(a(e))return s;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l,"");var n=m.test(e);return n||b.test(e)?v(e.slice(2),n?2:8):p.test(e)?s:+e}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f="Expected a function",s=NaN,d="[object Symbol]",l=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,b=/^0o[0-7]+$/i,v=parseInt,y="object"==("undefined"==typeof t?"undefined":c(t))&&t&&t.Object===Object&&t,g="object"==("undefined"==typeof self?"undefined":c(self))&&self&&self.Object===Object&&self,h=y||g||Function("return this")(),w=Object.prototype,k=w.toString,x=Math.max,j=Math.min,O=function(){return h.Date.now()};e.exports=o}).call(t,function(){return this}())},function(e,t){(function(t){"use strict";function n(e,t,n){function i(t){var n=b,o=v;return b=v=void 0,O=t,g=e.apply(o,n)}function r(e){return O=e,h=setTimeout(s,t),_?i(e):g}function u(e){var n=e-w,o=e-O,i=t-n;return S?x(i,y-o):i}function f(e){var n=e-w,o=e-O;return void 0===w||n>=t||n<0||S&&o>=y}function s(){var e=j();return f(e)?d(e):void(h=setTimeout(s,u(e)))}function d(e){return h=void 0,z&&b?i(e):(b=v=void 0,g)}function l(){void 0!==h&&clearTimeout(h),O=0,b=w=v=h=void 0}function p(){return void 0===h?g:d(j())}function m(){var e=j(),n=f(e);if(b=arguments,v=this,w=e,n){if(void 0===h)return r(w);if(S)return h=setTimeout(s,t),i(w)}return void 0===h&&(h=setTimeout(s,t)),g}var b,v,y,g,h,w,O=0,_=!1,S=!1,z=!0;if("function"!=typeof e)throw new TypeError(c);return t=a(t)||0,o(n)&&(_=!!n.leading,S="maxWait"in n,y=S?k(a(n.maxWait)||0,t):y,z="trailing"in n?!!n.trailing:z),m.cancel=l,m.flush=p,m}function o(e){var t="undefined"==typeof e?"undefined":u(e);return!!e&&("object"==t||"function"==t)}function i(e){return!!e&&"object"==("undefined"==typeof e?"undefined":u(e))}function r(e){return"symbol"==("undefined"==typeof e?"undefined":u(e))||i(e)&&w.call(e)==s}function a(e){if("number"==typeof e)return e;if(r(e))return f;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(d,"");var n=p.test(e);return n||m.test(e)?b(e.slice(2),n?2:8):l.test(e)?f:+e}var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c="Expected a function",f=NaN,s="[object Symbol]",d=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,p=/^0b[01]+$/i,m=/^0o[0-7]+$/i,b=parseInt,v="object"==("undefined"==typeof t?"undefined":u(t))&&t&&t.Object===Object&&t,y="object"==("undefined"==typeof self?"undefined":u(self))&&self&&self.Object===Object&&self,g=v||y||Function("return this")(),h=Object.prototype,w=h.toString,k=Math.max,x=Math.min,j=function(){return g.Date.now()};e.exports=n}).call(t,function(){return this}())},function(e,t){"use strict";function n(e,t){var n=window.document,r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,a=new r(o);i=t,a.observe(n.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function o(e){e&&e.forEach(function(e){var t=Array.prototype.slice.call(e.addedNodes),n=Array.prototype.slice.call(e.removedNodes
3372),o=t.concat(n).filter(function(e){return e.hasAttribute&&e.hasAttribute("data-aos")}).length;o&&i()})}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){};t.default=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,a=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,u=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,c=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
3372sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,f=function(){function e(){n(this,e)}return i(e,[{key:"phone",value:function(){var e=o();return!(!r.test(e)&&!a.test(e.substr(0,4)))}},{key:"mobile",value:function(){var e=o();return!(!u.test(e)&&!c.test(e.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),e}();t.default=new f},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t,n){var o=e.node.getAttribute("data-aos-once");t>e.position?e.node.classList.add("aos-animate"):"undefined"!=typeof o&&("false"===o||!n&&"true"!==o)&&e.node.classList.remove("aos-animate")},o=function(e,t){var o=window.pageYOffset,i=window.innerHeight;e.forEach(function(e,r){n(e,i+o,t)})};t.default=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),r=o(i),a=function(e,t){return e.forEach(function(e,n){e.node.classList.add("aos-init"),e.position=(0,r.default)(e.node,t.offset)}),e};t.default=a},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),r=o(i),a=function(e,t){var n=0,o=0,i=window.innerHeight,a={offset:e.getAttribute("data-aos-offset"),anchor:e.getAttribute("data-aos-anchor"),anchorPlacement:e.getAttribute("data-aos-anchor-placement")};switch(a.offset&&!isNaN(a.offset)&&(o=parseInt(a.offset)),a.anchor&&document.querySelectorAll(a.anchor)&&(e=document.querySelectorAll(a.anchor)[0]),n=(0,r.default)(e).top,a.anchorPlacement){case"top-bottom":break;case"center-bottom":n+=e.offsetHeight/2;break;case"bottom-bottom":n+=e.offsetHeight;break;case"top-center":n+=i/2;break;case"bottom-center":n+=i/2+e.offsetHeight;break;case"center-center":n+=i/2+e.offsetHeight/2;break;case"top-top":n+=i;break;case"bottom-top":n+=e.offsetHeight+i;break;case"center-top":n+=e.offsetHeight/2+i}return a.anchorPlacement||a.offset||isNaN(t)||(o=t),n+o};t.default=a},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){for(var t=0,n=0;e&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);)t+=e.offsetLeft-("BODY"!=e.tagName?e.scrollLeft:0),n+=e.offsetTop-("BODY"!=e.tagName?e.scrollTop:0),e=e.offsetParent;return{top:n,left:t}};t.default=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e=e||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(e,function(e){return{node:e}})};t.default=n}])});
3373let scrollRef = 0;
3374
3375window.addEventListener('scroll', function() {
3376  // increase value up to 10, then refresh AOS
3377  scrollRef <= 10 ? scrollRef++ : AOS.refresh();
3378});
3379if($(window).width() > 9999992) {
3380if ( /^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
3381	
3382}
3383	else {
3384		const lenis = new Lenis()
3385
3386	lenis.on('scroll', (e) => {
3387	  //console.log(e)
3388	})
3389
3390	function raf(time) {
3391	  lenis.raf(time)
3392	  requestAnimationFrame(raf)
3393	}
3394
3395	requestAnimationFrame(raf)
3396	}
3397
3398
3399}
3400
3401
3402	AOS.init({
3403	  duration: 1200,
3404		offset: 80,
3405	});
3406
3407
3408if($('#fixedslider').length){
3409	 
3410	var distance = $('#fixedslider').offset().top; 
3411	setposition();
3412	$(window).scroll(function () {
3413		setposition();
3414	});		
3415	
3416	function setposition() { 
3417		var height50 = $(window).height()/2.5;
3418		var distancex = $('#wechsler').offset().top; 
3419		if ($(window).scrollTop() > distancex) {
3420			var yPos = ( ($(window).scrollTop()) / 2 * -1);
3421			var coords = yPos + 'px';
3422			$('#fixedslider').css('top', coords);
3423			
3424		} else {
3425			$('#fixedslider').css('top', '0px');
3426		}
3427	}
3428}
3429
3430
3431$('#changeschrift').on('change', function() {
3432
3433	if(this.value == 'Arial') {
3434		$('html').addClass('usearial');   
3435	}
3436	else if(this.value == 'Times') {
3437		$('html').addClass('usetimes');  
3438	}
3439	else {
3440		$('html').removeClass('usearial');  
3441		$('html').removeClass('usetimes');  
3442	}
3443	
3444  	
3445});
3446
3447$('#changeschriftgroesse').on('change', function() {
3448
3449	if(this.value == 'bigger') {
3450		$('html').addClass('usebigger');   
3451	}
3452	else {
3453		$('html').removeClass('usebigger');  
3454	}
3455	
3456  	
3457});
3458
3459$(window).scroll(function() {
3460	
3461if ($(this).scrollTop() > 100){  
3462    $('#header').addClass("sticky");
3463	  $('#header').prop('inert', true);
3464  }
3465  else{
3466    $('#header').removeClass("sticky");
3467	  $('#header').prop('inert', false);
3468  }
3469	
3470  if ($(this).scrollTop() > 10){  
3471    $('#headerfix').addClass("stickymobile");
3472  }
3473  else{
3474    $('#headerfix').removeClass("stickymobile");
3475  }
3476});
3477
3478
3479
3480$(document).on('click', '.anker', function(event){
3481	 if($('#topnews').length){
3482		if($('#topnews').hasClass('hidden')) {
3483			var fromTop = 0;
3484			
3485		}
3486		else {
3487		   if($(window).width() < 768) {
3488				var fromTop = $(window).width()/100*0.833333*3.75;
3489			}
3490			else {
3491				var fromTop = $(window).width()/100*0.833333*3.75;
3492			}
3493		}
3494	 }
3495	
3496	
3497
3498	event.preventDefault();
3499	var href = $(this).attr("href");
3500	var hash = href.substr(href.indexOf("#"));
3501
3502	var distance = $(hash).offset().top; 
3503	var scrolltop = $(window).scrollTop();
3504	var height100 = $(window).height();
3505	var distanceToscroll = Math.abs((distance - scrolltop)*0.4);
3506	
3507	var body = $("html, body");
3508	body.stop().animate({scrollTop:$( hash ).offset().top-fromTop}, distanceToscroll, 'linear', function() { 
3509
3510	});
3511	
3512	
3513	return false;
3514});
3515
3516$(window).on('load', function() {
3517    // Hash auslesen und das '#' entfernen
3518    var hash = location.hash.replace('#', '');
3519    
3520    if (hash !== '') {
3521        // Zuerst nach ganz oben springen, um den Standard-Browser-Scroll abzufangen
3522        $('html, body').animate({ scrollTop: 0 }, 0);
3523
3524        // WICHTIG: Definiere einen Standardwert außerhalb der if-Blöcke!
3525        var fromTop = 0; 
3526        
3527        if ($('#topnews').length) {
3528            if (!$('#topnews').hasClass('hidden')) {
3529                // Die mathematische Formel ist für Mobile und Desktop identisch in deinem Code,
3530                // daher reicht eine einzige Zuweisung.
3531                fromTop = ($(window).width() / 100) * 0.833333 * 3.75;
3532            }
3533        }
3534        
3535        // Timeout, damit der Browser Zeit hat, Layouts zu berechnen
3536        setTimeout(function() { 
3537            var $targetElement = $('#' + hash);
3538            
3539            // WCAG / JS-Best-Practice: Prüfen, ob das Element wirklich existiert!
3540            if ($targetElement.length) {
3541                var distance = $targetElement.offset().top; 
3542                var scrolltop = $(window).scrollTop();
3543                
3544                // Dynamische Dauer berechnen
3545                var distanceToScroll = Math.abs((distance - scrolltop) * 0.4);
3546                
3547                // Mindestdauer festlegen, falls der Weg sehr kurz ist
3548                if (distanceToScroll < 200) distanceToScroll = 300;
3549
3550                // Der eigentliche Scroll-Vorgang
3551                $('html, body').animate({ 
3552                    scrollTop: distance - fromTop 
3553                }, distanceToScroll);
3554            } else {
3555                console.warn("Scroll-Ziel-ID '#" + hash + "' wurde auf dieser Seite nicht gefunden.");
3556            }
3557        }, 400); // 400ms reichen meistens völlig aus nach dem Load-Event
3558    }
3559});
3560
3561
3562
3563$(function() {
3564	$(".cc-text").append(' <a href="datenschutz" target="_blank">Datenschutzerklärung</a>');
3565});
3566
3567$('[data-fancybox]').fancybox({
3568    beforeShow: function() {
3569        $('.caption--image').remove();
3570    },
3571    afterShow: function() {
3572        var caption = $(".fancybox-caption"),
3573            innerCaption = caption.clone().addClass('caption--image');
3574        $(".fancybox-slide--current .fancybox-content").append(innerCaption);
3575        caption.not('.caption--image').addClass('caption--bottom');
3576    }
3577});
3578
3579function owlInitialize() {
3580   if ($(window).width() < 768) {
3581      $('.owl-newsmobile').owlCarousel({
3582        loop:true,
3583        margin:0,
3584		  navText: [ '', '' ],
3585        responsiveClass:true,
3586        responsive:{
3587          0:{
3588            items:1.175,
3589            nav:false,
3590			  margin:0,
3591			stagePadding: 0,
3592            dots:false
3593
3594          },
3595         
3596          768:{
3597            items:3,
3598            nav:true,
3599            dots:false
3600          },
3601          993:{
3602            items:3,
3603            nav:true,
3604            dots:false
3605          },
3606          1300:{
3607            items:3,
3608            nav:true,
3609            dots:false
3610          }
3611        }
3612      });
3613	
3614   }else{
3615      $('.owl-newsmobile').owlCarousel('destroy');
3616   }
3617}
3618
3619
3620 if($('.owl-newsmobile').length){
3621	 $(window).resize(function() {
3622	   owlInitialize();
3623	 });
3624	$(window).on('load', function(){
3625	   owlInitialize();
3626	});
3627 }
3628
3629
3630function owlInitialize2() {
3631   if ($(window).width() < 768) {
3632      $('.owl-skigebietinfomobile').owlCarousel({
3633        loop:true,
3634        margin:0,
3635		  navText: [ '', '' ],
3636        responsiveClass:true,
3637        responsive:{
3638          0:{
3639            items:1.175,
3640            nav:false,
3641			  margin:0,
3642			stagePadding: 0,
3643            dots:false
3644
3645          },
3646         
3647          768:{
3648            items:3,
3649            nav:true,
3650            dots:false
3651          },
3652          993:{
3653            items:3,
3654            nav:true,
3655            dots:false
3656          },
3657          1300:{
3658            items:3,
3659            nav:true,
3660            dots:false
3661          }
3662        }
3663      });
3664	   
3665	
3666   }else{
3667      $('.owl-skigebietinfomobile').owlCarousel('destroy');
3668   }
3669}
3670
3671
3672 if($('.owl-skigebietinfomobile').length){
3673	 $(window).resize(function() {
3674	   owlInitialize2();
3675	 });
3676	$(window).on('load', function(){
3677	   owlInitialize2();
3678	});
3679 }
3680
3681function owlInitialize3() {
3682   if ($(window).width() < 768) {
3683      $('.owl-dreiereasermobile').owlCarousel({
3684        loop:true,
3685        margin:0,
3686		  navText: [ '', '' ],
3687        responsiveClass:true,
3688        responsive:{
3689          0:{
3690            items:1.175,
3691            nav:false,
3692			  margin:0,
3693			stagePadding: 0,
3694            dots:false
3695
3696          },
3697         
3698          768:{
3699            items:3,
3700            nav:true,
3701            dots:false
3702          },
3703          993:{
3704            items:3,
3705            nav:true,
3706            dots:false
3707          },
3708          1300:{
3709            items:3,
3710            nav:true,
3711            dots:false
3712          }
3713        }
3714      });
3715	   
3716	
3717   }else{
3718      $('.owl-dreiereasermobile').owlCarousel('destroy');
3719   }
3720}
3721
3722
3723 if($('.owl-dreiereasermobile').length){
3724	 $(window).resize(function() {
3725	   owlInitialize3();
3726	 });
3727	$(window).on('load', function(){
3728	   owlInitialize3();
3729	});
3730 }
3731
3732
3733
3734function owlInitialize4() {
3735   if ($(window).width() < 768) {
3736      $('.owl-angebotsteasermobile').owlCarousel({
3737        loop:true,
3738        margin:0,
3739		  navText: [ '', '' ],
3740        responsiveClass:true,
3741        responsive:{
3742          0:{
3743            items:1.175,
3744            nav:false,
3745			  margin:0,
3746			stagePadding: 0,
3747            dots:false
3748
3749          },
3750         
3751          768:{
3752            items:3,
3753            nav:true,
3754            dots:false
3755          },
3756          993:{
3757            items:3,
3758            nav:true,
3759            dots:false
3760          },
3761          1300:{
3762            items:3,
3763            nav:true,
3764            dots:false
3765          }
3766        }
3767      });
3768	   
3769	
3770   }else{
3771      $('.owl-angebotsteasermobile').owlCarousel('destroy');
3772   }
3773}
3774
3775
3776 if($('.owl-angebotsteasermobile').length){
3777	 $(window).resize(function() {
3778	   owlInitialize4();
3779	 });
3780	$(window).on('load', function(){
3781	   owlInitialize4();
3782	});
3783 }
3784
3785
3786
3787function owlInitialize5() {
3788   if ($(window).width() < 768) {
3789      $('.owl-dreiberbildteaser').owlCarousel({
3790        loop:true,
3791        margin:0,
3792		  navText: [ '', '' ],
3793        responsiveClass:true,
3794        responsive:{
3795          0:{
3796            items:1.175,
3797            nav:false,
3798			  margin:0,
3799			stagePadding: 0,
3800            dots:false
3801
3802          },
3803         
3804          768:{
3805            items:3,
3806            nav:true,
3807            dots:false
3808          },
3809          993:{
3810            items:3,
3811            nav:true,
3812            dots:false
3813          },
3814          1300:{
3815            items:3,
3816            nav:true,
3817            dots:false
3818          }
3819        }
3820      });
3821	   
3822	
3823   }else{
3824      $('.owl-dreiberbildteaser').owlCarousel('destroy');
3825   }
3826}
3827
3828
3829 if($('.owl-dreiberbildteaser').length){
3830	 $(window).resize(function() {
3831	   owlInitialize5();
3832	 });
3833	$(window).on('load', function(){
3834	   owlInitialize5();
3835	});
3836 }
3837
3838
3839function owlInitialize6() {
3840   if ($(window).width() < 768) {
3841      $('.owl-dreiberbildteaser2').owlCarousel({
3842        loop:true,
3843        margin:0,
3844		  navText: [ '', '' ],
3845        responsiveClass:true,
3846        responsive:{
3847          0:{
3848            items:1.175,
3849            nav:false,
3850			  margin:0,
3851			stagePadding: 0,
3852            dots:false
3853
3854          },
3855         
3856          768:{
3857            items:3,
3858            nav:true,
3859            dots:false
3860          },
3861          993:{
3862            items:3,
3863            nav:true,
3864            dots:false
3865          },
3866          1300:{
3867            items:3,
3868            nav:true,
3869            dots:false
3870          }
3871        }
3872      });
3873	   
3874	
3875   }else{
3876      $('.owl-dreiberbildteaser2').owlCarousel('destroy');
3877   }
3878}
3879
3880
3881 if($('.owl-dreiberbildteaser2').length){
3882	 $(window).resize(function() {
3883	   owlInitialize6();
3884	 });
3885	$(window).on('load', function(){
3886	   owlInitialize6();
3887	});
3888 }
3889
3890
3891function owlInitialize7() {
3892   if ($(window).width() < 768) {
3893      $('.owl-dreierbildteasercaroumobile').owlCarousel({
3894        loop:true,
3895        margin:0,
3896		  navText: [ '', '' ],
3897        responsiveClass:true,
3898        responsive:{
3899          0:{
3900            items:1.175,
3901            nav:false,
3902			  margin:0,
3903			stagePadding: 0,
3904            dots:false
3905
3906          },
3907         
3908          768:{
3909            items:3,
3910            nav:true,
3911            dots:false
3912          },
3913          993:{
3914            items:3,
3915            nav:true,
3916            dots:false
3917          },
3918          1300:{
3919            items:3,
3920            nav:true,
3921            dots:false
3922          }
3923        }
3924      });
3925	   
3926	
3927   }else{
3928      $('.owl-dreierbildteasercaroumobile').owlCarousel('destroy');
3929   }
3930}
3931
3932
3933 if($('.owl-dreierbildteasercaroumobile').length){
3934	 $(window).resize(function() {
3935	   owlInitialize7();
3936	 });
3937	$(window).on('load', function(){
3938	   owlInitialize7();
3939	});
3940 }
3941
3942function owlInitialize8() {
3943   if ($(window).width() < 768) {
3944      $('.owl-dreierteaserovercaroumobile').owlCarousel({
3945        loop:true,
3946        margin:0,
3947		  navText: [ '', '' ],
3948        responsiveClass:true,
3949        responsive:{
3950          0:{
3951            items:1.175,
3952            nav:false,
3953			  margin:0,
3954			stagePadding: 0,
3955            dots:false
3956
3957          },
3958         
3959          768:{
3960            items:3,
3961            nav:true,
3962            dots:false
3963          },
3964          993:{
3965            items:3,
3966            nav:true,
3967            dots:false
3968          },
3969          1300:{
3970            items:3,
3971            nav:true,
3972            dots:false
3973          }
3974        }
3975      });
3976	   
3977	
3978   }else{
3979      $('.owl-dreierteaserovercaroumobile').owlCarousel('destroy');
3980   }
3981}
3982
3983
3984 if($('.owl-dreierteaserovercaroumobile').length){
3985	 $(window).resize(function() {
3986	   owlInitialize8();
3987	 });
3988	$(window).on('load', function(){
3989	   owlInitialize8();
3990	});
3991 }
3992
3993
3994 if($('.owl-dreierbildteasercaroumobile').length){
3995	 $(window).resize(function() {
3996	   owlInitialize7();
3997	 });
3998	$(window).on('load', function(){
3999	   owlInitialize7();
4000	});
4001 }
4002
4003function owlInitialize9() {
4004   if ($(window).width() < 768) {
4005      $('.owl-schneebericht').owlCarousel({
4006        loop:true,
4007        margin:0,
4008		  navText: [ '', '' ],
4009        responsiveClass:true,
4010        responsive:{
4011          0:{
4012            items:1,
4013            nav:true,
4014			  margin:0,
4015			stagePadding: 0,
4016            dots:false
4017
4018          },
4019         
4020          768:{
4021            items:3,
4022            nav:true,
4023            dots:false
4024          },
4025          993:{
4026            items:3,
4027            nav:true,
4028            dots:false
4029          },
4030          1300:{
4031            items:3,
4032            nav:true,
4033            dots:false
4034          }
4035        }
4036      });
4037	   
4038	
4039   }else{
4040      $('.owl-schneebericht').owlCarousel('destroy');
4041   }
4042}
4043
4044
4045 if($('.owl-schneebericht').length){
4046	 $(window).resize(function() {
4047	   owlInitialize9();
4048	 });
4049	$(window).on('load', function(){
4050	   owlInitialize9();
4051	});
4052 }
4053
4054
4055$(document).ready(function() {
4056	 if($(window).width() >= 0) {
4057    	var previousScroll = 0,
4058        headerOrgOffset = $('#headerfix').offset().top;
4059		 if($(headerOrgOffset).hasClass('unterseite')) {
4060			 ofTop = 200;
4061		 }
4062		 else {
4063			 ofTop = 400;
4064		 }
4065		 
4066		var wHeight = $(window).height();
4067		headerOrgOffset = wHeight/3;
4068		$(window).scroll(function() {
4069			if ($(this).scrollTop() > ofTop){  
4070				var currentScroll = $(this).scrollTop();
4071				if(currentScroll > headerOrgOffset) {
4072					if (currentScroll > previousScroll) {
4073						$('#sideoffen').removeClass("sticky");
4074						$('#togglemeinski').removeClass("sticky");
4075						$('body').removeClass('bodysticky');
4076						$('#headerfix').removeClass('sticky');
4077						if($(window).width() > 767) {
4078						$('#headerfix').prop('inert', true);
4079						}
4080
4081					} else {
4082						$('#sideoffen').addClass("sticky");
4083						$('#togglemeinski').addClass("sticky");
4084						$('#headerfix').addClass('sticky');
4085						if($(window).width() > 767) {
4086						$('#headerfix').prop('inert', false);
4087						}
4088						$('body').addClass('bodysticky');
4089
4090					}
4091				} else {
4092					 $('#headerfix').removeClass('sticky');  
4093					if($(window).width() > 767) {
4094					$('#headerfix').prop('inert', true);
4095					}
4096					$('#sideoffen').removeClass("sticky");
4097					$('#togglemeinski').removeClass("sticky");
4098					$('body').removeClass('bodysticky');
4099				}
4100				previousScroll = currentScroll;
4101			}
4102			else {
4103				$('#headerfix').removeClass('sticky'); 
4104				if($(window).width() > 767) {
4105				$('#headerfix').prop('inert', true);
4106				}
4107				$('#sideoffen').removeClass("sticky");
4108				$('#togglemeinski').removeClass("sticky");
4109				$('body').removeClass('bodysticky');
4110			}
4111		});
4112	 }
4113	else {
4114		
4115	}
4116});
4117
4118$(document).ready(function() {
4119	 
4120    // see whether device supports touch events (a bit simplistic, but...)
4121    var hasTouch = ("ontouchstart" in window);
4122    var iOS5 = /iPad|iPod|iPhone/.test(navigator.platform) && "matchMedia" in 
4122window;
4123         
4124    // hook touch events for drop-down menus
4125    // NB: if has touch events, then has standards event handling too
4126    // but we don't want to run this code on iOS5+
4127    if (hasTouch && document.querySelectorAll && !iOS5) {
4128      var i, len, element,
4129        dropdowns = document.querySelectorAll(".menu > a");
4130         
4131      function menuTouch(event) {
4132        // toggle flag for preventing click for this link
4133        var i, len, noclick = !(this.dataNoclick);
4134       
4135        // reset flag on all links
4136        for (i = 0, len = dropdowns.length; i < len; ++i) {
4137          dropdowns[i].dataNoclick = false;
4138        }
4139         
4140        // set new flag value and focus on dropdown menu
4141        this.dataNoclick = noclick;
4142        this.focus();
4143      }
4144         
4145      function menuClick(event) {
4146        // if click isn't wanted, prevent it
4147        if (this.dataNoclick) {
4148          event.preventDefault();
4149        }
4150      }
4151         
4152      for (i = 0, len = dropdowns.length; i < len; ++i) {
4153        element = dropdowns[i];
4154        element.dataNoclick = false;
4155        element.addEventListener("touchstart", menuTouch, false);
4156        element.addEventListener("click", menuClick, false);
4157      }
4158    }
4159	
4160	
4161    var 
4162    menuLeft = document.getElementById( 'cbp-spmenu-s1' ),
4163    showLeft = document.getElementById('nav-icon'),
4164    body = document.body;
4165
4166    showLeft.onclick = function() {
4167      classie.toggle( this, 'active' );
4168      classie.toggle( menuLeft, 'cbp-spmenu-open' );
4169    };
4170	
4171	 $(function(){
4172        var children=$('.cbp-spmenu-vertical li a').filter(function(){return $(this).nextAll().length>0})
4173        $('<span class="toChild"></span>').insertAfter(children)
4174        $('.cbp-spmenu-vertical .toChild').click(function (e) {
4175          $(this).next().slideToggle(300);
4176        $(this).next().toggleClass('open');
4177			$(this).toggleClass('open');
4178           return false;
4179        });
4180      });
4181	
4182    (function () {
4183		  const $menu = $('#cbp-spmenu-s1');
4184		  const $wrapper = $('#wrapper');
4185		  const $headerfix = $('#headerfix');
4186
4187		  const TRIGGER_SELECTOR = 'a.nav-icon';
4188
4189		  const OPEN_FOCUS_SELECTOR = '#nav-icon3';
4190		  const CLOSE_FOCUS_STICKY_SELECTOR = '#nav-icon';
4191		  const CLOSE_FOCUS_NOT_STICKY_SELECTOR = '#nav-icon2';
4192
4193		  // Baseline-Zustand (vor Menü öffnen) nur für Elemente, die wir anfassen
4194		  let baselineInert = null; // Map<Element, { inert:boolean, ariaHidden:string|null }>
4195
4196		  // Merkt sich, welche Elemente wir beim MENÜ-OFFEN zuletzt inert gesetzt haben
4197		  let lastTouchedTargets = $(); // jQuery collection
4198
4199		  function isDesktop() {
4200			return window.matchMedia('(min-width: 768px)').matches;
4201		  }
4202
4203		  function isMenuOpen() {
4204			return $menu.hasClass('cbp-spmenu-open');
4205		  }
4206
4207		  function setMenuAttrs(open) {
4208			if (open) {
4209			  $menu
4210				.addClass('cbp-spmenu-open')
4211				.attr({
4212				  role: 'dialog',
4213				  'aria-hidden': 'false',
4214				  'aria-expanded': 'true',
4215				  'aria-modal': 'true'
4216				})
4217				.prop('inert', false)
4218				.removeAttr('inert');
4219
4220			  $(TRIGGER_SELECTOR)
4221				.addClass('active open')
4222				.attr({
4223				  'aria-expanded': 'true',
4224				  'aria-label': 'Navigation ausblenden'
4225				});
4226			} else {
4227			  $menu
4228				.removeClass('cbp-spmenu-open')
4229				.attr({
4230				  role: 'dialog',
4231				  'aria-hidden': 'true',
4232				  'aria-expanded': 'false',
4233				  'aria-modal': 'true'
4234				})
4235				.prop('inert', true)
4236				.attr('inert', '');
4237
4238			  $(TRIGGER_SELECTOR)
4239				.removeClass('active open')
4240				.attr({
4241				  'aria-expanded': 'false',
4242				  'aria-label': 'Navigation einblenden'
4243				});
4244			}
4245		  }
4246
4247		  function getTargetsToTouchForMenuOpen() {
4248			const $bodyChildren = $('body').children().not('script, style, link');
4249
4250			if (isDesktop()) {
4251			  // Desktop: alles außer Menü inert (inkl. #wrapper)
4252			  return $bodyChildren.not($menu);
4253			}
4254
4255			// Mobile:
4256			// - außerhalb wrapper inert
4257			// - im wrapper: direkte Kinder außer headerfix inert
4258			// - wrapper selbst bleibt aktiv
4259			const $outsideWrapper = $bodyChildren.not($wrapper).not($menu);
4260
4261			const $insideWrapper = $wrapper.length
4262			  ? $wrapper.children().not($headerfix).not($menu).not('script, style, link')
4263			  : $();
4264
4265			return $outsideWrapper.add($insideWrapper);
4266		  }
4267
4268		  function snapshotBaseline() {
4269			baselineInert = new Map();
4270
4271			// initiale Zielmenge hängt vom Breakpoint ab – aber egal:
4272			// wir speichern Baseline für alle Elemente, die wir im aktuellen Modus anfassen.
4273			// Bei Breakpoint-Wechsel ergänzen wir Baseline ggf. um weitere Targets (siehe ensureBaselineForTargets()).
4274			const $targets = getTargetsToTouchForMenuOpen();
4275			ensureBaselineForTargets($targets);
4276		  }
4277
4278		  // Ergänzt Baseline für neue Targets (wenn Breakpoint wechselt, kommt ggf. neue Zielmenge dazu)
4279		  function ensureBaselineForTargets($targets) {
4280			if (!baselineInert) baselineInert = new Map();
4281
4282			$targets.each(function () {
4283			  const el = this;
4284			  if (baselineInert.has(el)) return;
4285
4286			  baselineInert.set(el, {
4287				inert: $(el).prop('inert') === true || $(el).is('[inert]'),
4288				ariaHidden: $(el).attr('aria-hidden') ?? null
4289			  });
4290			});
4291		  }
4292
4293		  // stellt Baseline für eine bestimmte Elementmenge wieder her
4294		  function restoreBaselineForTargets($targets) {
4295			if (!baselineInert) return;
4296
4297			$targets.each(function () {
4298			  const el = this;
4299			  const state = baselineInert.get(el);
4300			  if (!state) return;
4301
4302			  const $el = $(el);
4303			  $el.prop('inert', state.inert);
4304
4305			  if (state.ariaHidden === null) $el.removeAttr('aria-hidden');
4306			  else $el.attr('aria-hidden', state.ariaHidden);
4307			});
4308		  }
4309
4310		  function restoreAllBaseline() {
4311			if (!baselineInert) return;
4312
4313			baselineInert.forEach((state, el) => {
4314			  const $el = $(el);
4315			  $el.prop('inert', state.inert);
4316			  if (state.ariaHidden === null) $el.removeAttr('aria-hidden');
4317			  else $el.attr('aria-hidden', state.ariaHidden);
4318			});
4319
4320			baselineInert = null;
4321		  }
4322
4323		  function applyInertWhenOpen() {
4324			// 1) Baseline initial snapshot, falls noch nicht vorhanden
4325			if (!baselineInert) snapshotBaseline();
4326
4327			// 2) Neue Zielmenge je nach Breakpoint bestimmen
4328			const $targets = getTargetsToTouchForMenuOpen();
4329
4330			// 3) Sicherstellen, dass Baseline auch für diese Targets existiert (Breakpoint-Wechsel!)
4331			ensureBaselineForTargets($targets);
4332
4333			// 4) WICHTIG: zuvor gesetzte Targets zuerst wieder auf Baseline zurücksetzen
4334			//    (sonst bleibt z.B. #wrapper inert, wenn man von Desktop -> Mobile wechselt)
4335			if (lastTouchedTargets && lastTouchedTargets.length) {
4336			  restoreBaselineForTargets(lastTouchedTargets);
4337			}
4338
4339			// 5) Jetzt neue Targets inert setzen
4340			$targets.prop('inert', true).attr('aria-hidden', 'true');
4341
4342			// 6) Menü selbst aktiv lassen
4343			$menu.prop('inert', false).removeAttr('aria-hidden');
4344
4345			// 7) Mobile-Sonderfall: headerfix erreichbar lassen
4346			if (!isDesktop()) {
4347			  $headerfix.prop('inert', false);
4348			  // aria-hidden nicht pauschal anfassen (Baseline bleibt)
4349			}
4350
4351			// 8) Merken, was wir zuletzt gesetzt haben
4352			lastTouchedTargets = $targets;
4353		  }
4354
4355		  function applyInertWhenClosed() {
4356			// Menü schließen
4357			$menu.prop('inert', true).attr('aria-hidden', 'true');
4358
4359			// Alle Änderungen zurück auf Baseline
4360			restoreAllBaseline();
4361
4362			// Reset tracking
4363			lastTouchedTargets = $();
4364		  }
4365
4366		  function focusAfterOpen() {
4367			requestAnimationFrame(() => {
4368			  setTimeout(() => {
4369				const $focusTarget = $(OPEN_FOCUS_SELECTOR);
4370				if ($focusTarget.length && $focusTarget.is(':visible')) {
4371				  $focusTarget.trigger('focus');
4372				  return;
4373				}
4374
4375				const $fallback = $menu
4376				  .find('a,button,input,[tabindex]:not([tabindex="-1"])')
4377				  .filter(':visible')
4378				  .first();
4379
4380				if ($fallback.length) $fallback.trigger('focus');
4381			  }, 50);
4382			});
4383		  }
4384
4385		  function focusAfterClose() {
4386			const sticky = $('#header').hasClass('sticky') || $('#headerfix').hasClass('sticky');
4387			const $preferred = sticky ? $(CLOSE_FOCUS_STICKY_SELECTOR) : $(CLOSE_FOCUS_NOT_STICKY_SELECTOR);
4388
4389			const $fallbacks = $([
4390			  $preferred.get(0),
4391			  $(CLOSE_FOCUS_STICKY_SELECTOR).get(0),
4392			  $(CLOSE_FOCUS_NOT_STICKY_SELECTOR).get(0)
4393			].filter(Boolean));
4394
4395			const $target = $fallbacks.filter(':visible').first();
4396
4397			requestAnimationFrame(() => {
4398			  setTimeout(() => {
4399				if ($target.length) $target.trigger('focus');
4400			  }, 50);
4401			});
4402		  }
4403
4404		  function applyMenuState(open, opts = { moveFocus: false }) {
4405			setMenuAttrs(open);
4406
4407			if (open) {
4408			  applyInertWhenOpen();
4409			  if (opts.moveFocus) focusAfterOpen();
4410			} else {
4411			  applyInertWhenClosed();
4412			  if (opts.moveFocus) focusAfterClose();
4413			}
4414		  }
4415
4416		  // CLICK: Toggle
4417		  $(document).on('click', TRIGGER_SELECTOR, function (e) {
4418			e.preventDefault();
4419			applyMenuState(!isMenuOpen(), { moveFocus: true });
4420			return false;
4421		  });
4422
4423		  // TAB-LOOP (Focus Trap) im Menü
4424		  $(document).on('keydown', '#cbp-spmenu-s1', function (e) {
4425			const isTabPressed = e.key === 'Tab' || e.keyCode === 9;
4426			if (!isTabPressed) return;
4427			if (!isMenuOpen()) return;
4428
4429			const $focusable = $menu
4430			  .find('a,button,input,[tabindex]:not([tabindex="-1"])')
4431			  .filter(':visible');
4432
4433			if (!$focusable.length) return;
4434
4435			const first = $focusable.get(0);
4436			const last = $focusable.get($focusable.length - 1);
4437
4438			if (!e.shiftKey && document.activeElement === last) {
4439			  e.preventDefault();
4440			  $(first).trigger('focus');
4441			} else if (e.shiftKey && document.activeElement === first) {
4442			  e.preventDefault();
4443			  $(last).trigger('focus');
4444			}
4445		  });
4446
4447		  // ESC: schließen
4448		  $(document).on('keydown', function (e) {
4449			if ((e.key === 'Escape' || e.keyCode === 27) && isMenuOpen()) {
4450			  e.preventDefault();
4451			  applyMenuState(false, { moveFocus: true });
4452			}
4453		  });
4454
4455		  // RESIZE / ORIENTATIONCHANGE: wenn Menü offen ist, Inert neu anwenden
4456		  let resizeTimer = null;
4457
4458		  function reapplyOnResize() {
4459
4460			if (!isMenuOpen()) return;
4461			// NICHT setMenuAttrs(true) nochmal nötig, aber schadet nicht;
4462			// wichtig ist applyInertWhenOpen() mit "restore previous targets" (oben).
4463			applyInertWhenOpen();
4464		  }
4465
4466		  $(window).on('resize', function () {
4467			clearTimeout(resizeTimer);
4468			resizeTimer = setTimeout(reapplyOnResize, 120);
4469		  });
4470
4471		  $(window).on('orientationchange', function () {
4472			clearTimeout(resizeTimer);
4473			resizeTimer = setTimeout(reapplyOnResize, 120);
4474		  });
4475
4476		  // Kein applyMenuState(false) beim Load, damit bestehende inert im HTML erhalten bleiben.
4477		})();
4478
4479
4480
4481
4482	
4483    $('#nav-icon').click(function(){
4484      		$('#nav-icon2').trigger('click');
4485
4486    });
4487	
4488	$('#nav-icon2').click(function(){
4489      	$('.nav-icon').toggleClass('open');
4490		$('#headerfix').toggleClass('cpmenuopen');
4491		$('#topnews').toggleClass('meinisopen');
4492		$('#sideoffen').toggleClass('stickymenu');
4493		$('#secondside').toggleClass('cpmenuopen');
4494		
4495		if ($(window).scrollTop() > 10){  
4496			$('#sideoffen').toggleClass('cpmenuopen');
4497		}
4498	
4499    });
4500	
4501	$('#tomenu').click(function(){
4502      	$('#nav-icon').trigger('click');
4503		return false;
4504    });
4505
4506	
4507	$('.nav-icon3').click(function(){
4508      	$('#nav-icon2').trigger('click');
4509		return false;
4510    });
4511	
4512
4513	$('#togglemeinski_x').click(function() {
4514		$('#meinskigebiet').addClass('open');
4515		return false;
4516	});
4517  
4518	$('#closemeinskigebiet_x').click(function() {
4519		$('#meinskigebiet').removeClass('open');
4520		return false;
4521	});
4522	
4523	$(document).on('click', '.openmeinski, #closemeinskigebiet a, #openwcag', function (e) {
4524		e.preventDefault();
4525
4526		const isOpen = $('#meinskigebiet').hasClass('meinisopen'); 
4527
4528		// --- KORRIGIERTE SELEKTION ---
4529		// 1. Alles, was im selben Container wie #headerfix liegt (aber nicht der Header selbst ist)
4530		const siblingsOfHeader = $('#meinskigebiet').siblings().not('script, style');
4531
4532		// 2. Alles, was auf Ebene des Wrappers liegt (z.B. Footer, wenn außerhalb), aber nicht der Wrapper selbst
4533		// Wir gehen davon aus, dass #wrapper das Elternelement ist.
4534		const siblingsOfWrapper = $('#meinskigebiet').parent().siblings().not('script, style, link');
4535
4536		// Wir kombinieren beide Gruppen
4537		const backgroundContent = siblingsOfHeader.add(siblingsOfWrapper);
4538
4539		$('#meinskigebiet').toggleClass('meinisopen');
4540
4541		if ($('#topnews').length) {
4542			$('#topnews').toggleClass('meinisopen');
4543		}
4544
4545		$('#meinskigebiet').toggleClass('open');
4546
4547		const dialogElement = $('#meinskigebiet');
4548
4549		if (dialogElement.length) {
4550			if (isOpen) {
4551				// ---------------------------------------------------
4552				// WIRD GESCHLOSSEN
4553				// ---------------------------------------------------
4554				dialogElement.attr({
4555					'role': 'dialog',
4556					'aria-hidden': 'true',
4557					'aria-expanded': 'false',
4558					'aria-modal': 'true'
4559				}).prop('inert', true); 
4560
4561				// Hintergrund wieder aktivieren
4562				backgroundContent.prop('inert', false);
4563				backgroundContent.removeAttr('aria-hidden');
4564
4565				$('.openmeinski').focus();
4566
4567				$('.openmeinski').attr('aria-expanded', 'false');
4568
4569			} else {
4570				// ---------------------------------------------------
4571				// WIRD GEÖFFNET
4572				// ---------------------------------------------------
4573				dialogElement.attr({
4574					'role': 'dialog',
4575					'aria-hidden': 'false',
4576					'aria-expanded': 'true',
4577					'aria-modal': 'true'
4578				}).prop('inert', false); 
4579
4580				// Hintergrund deaktivieren
4581				// Jetzt werden nur die "Nachbarn" deaktiviert, der Pfad zum #headerfix bleibt offen!
4582				backgroundContent.prop('inert', true);
4583				backgroundContent.attr('aria-hidden', 'true');
4584
4585				$('.openmeinski').attr('aria-expanded', 'true');
4586
4587				setTimeout(function(){
4588					$('#closemeinskigebiet a').focus();
4589				}, 50);
4590			}
4591		}
4592
4593		return false;
4594	});
4595	
4596	
4597	$(document).on('click', '.clickgeoffnet', function (e) {
4598		e.preventDefault();
4599
4600
4601	    
4602		const isOpen = $('#geoffnetopen').hasClass('open'); 
4603
4604		// --- KORRIGIERTE SELEKTION ---
4605		// 1. Alles, was im selben Container wie #headerfix liegt (aber nicht der Header selbst ist)
4606		const siblingsOfHeader = $('#geoffnetopen').siblings().not('script, style');
4607
4608		// 2. Alles, was auf Ebene des Wrappers liegt (z.B. Footer, wenn außerhalb), aber nicht der Wrapper selbst
4609		// Wir gehen davon aus, dass #wrapper das Elternelement ist.
4610		const siblingsOfWrapper = $('#geoffnetopen').parent().siblings().not('script, style, link');
4611
4612		// Wir kombinieren beide Gruppen
4613		const backgroundContent = siblingsOfHeader.add(siblingsOfWrapper);
4614
4615		$('#geoffnetopen').toggleClass('open');
4616
4617
4618		const dialogElement = $('#geoffnetopen');
4619
4620		if (dialogElement.length) {
4621			if (isOpen) {
4622				// ---------------------------------------------------
4623				// WIRD GESCHLOSSEN
4624				// ---------------------------------------------------
4625				dialogElement.attr({
4626					'role': 'dialog',
4627					'aria-hidden': 'true',
4628					'aria-expanded': 'false',
4629					'aria-modal': 'true'
4630				}).prop('inert', true); 
4631
4632				// Hintergrund wieder aktivieren
4633				backgroundContent.prop('inert', false);
4634				backgroundContent.removeAttr('aria-hidden');
4635				
4636				if($('#sideoffen').hasClass('sticky')) {
4637					$('#sideoffenopenclose').focus();
4638				}
4639				else {
4640					$('#secondside').focus();	
4641				}
4642				
4643
4644				$('.clickgeoffnet').attr('aria-expanded', 'false');
4645
4646			} else {
4647				// ---------------------------------------------------
4648				// WIRD GEÖFFNET
4649				// ---------------------------------------------------
4650				dialogElement.attr({
4651					'role': 'dialog',
4652					'aria-hidden': 'false',
4653					'aria-expanded': 'true',
4654					'aria-modal': 'true'
4655				}).prop('inert', false); 
4656
4657				// Hintergrund deaktivieren
4658				// Jetzt werden nur die "Nachbarn" deaktiviert, der Pfad zum #headerfix bleibt offen!
4659				backgroundContent.prop('inert', true);
4660				backgroundContent.attr('aria-hidden', 'true');
4661
4662				$('.clickgeoffnet').attr('aria-expanded', 'true');
4663
4664				setTimeout(function(){
4665					$('#closeopeninfo').focus();
4666				}, 50);
4667			}
4668		}
4669
4670		return false;
4671	});
4672	
4673	
4674	$(document).on('keydown', function(e) {
4675		if (e.key === "Escape" || e.keyCode === 27) {
4676
4677			if ($('#meinskigebiet').hasClass('meinisopen')) {
4678				$('#closemeinskigebiet a').trigger('click');
4679			}
4680			if ($('#geoffnetopen').hasClass('open')) {
4681				$('#closeopeninfo').trigger('click');
4682			}
4683		}
4684	});
4685	
4686	 if($('#topnews').length){
4687	
4688		var currentTime = new Date().getTime();
4689		Date.prototype.addHours = function(h) {    
4690		   this.setTime(this.getTime() + (h*60*60*1000)); 
4691		   return this;   
4692		}
4693		var after24 = new Date().addHours(10).getTime();
4694	   
4695		$('#closetopnews').on('click',function(event) {
4696			$('#topnews').fadeOut(function() {
4697				$('#topnews').addClass('hidden');
4698			});
4699			
4700			localStorage.setItem('desiredTimeNews', after24); 
4701			
4702		});
4703
4704
4705		if(localStorage.getItem('desiredTimeNews') >= currentTime) {
4706		   $('#topnews').fadeOut(function() {
4707			    $('#topnews').addClass('hidden');
4708		   });
4709		  
4710		}
4711		else {
4712			$('#topnews').fadeIn(function() {
4713				$('#topnews').removeClass('hidden');
4714			});
4715			
4716		}
4717	}
4718
4719	// Accordion (WCAG/ARIA)
4720	// - Button steuert Panel via aria-controls
4721	// - aria-expanded wird gesetzt
4722	// - Panel wird via [hidden] ein/ausgeblendet
4723	$(document).on('click', '.acc_head', function () {
4724	  const $btn = $(this);
4725	  const panelId = $btn.attr('aria-controls');
4726	  const $panel = $('#' + panelId);
4727
4728	  // Wrapper (Accordion-Item) finden und später .open togglen
4729	  const $item = $btn.closest('.accordion');
4730
4731	  const isOpen = $btn.attr('aria-expanded') === 'true';
4732
4733	  // Toggle
4734	  $btn.attr('aria-expanded', String(!isOpen));
4735
4736	  if (isOpen) {
4737		// SCHLIESSEN
4738		$item.removeClass('open'); // <-- neu
4739		$panel.stop(true, true).slideUp(200, function () {
4740		  $panel.prop('hidden', true);
4741		});
4742	  } else {
4743		// ÖFFNEN
4744		$item.addClass('open'); // <-- neu
4745		$panel.prop('hidden', false).hide().stop(true, true).slideDown(200);
4746	  }
4747
4748	  setTimeout(function () {
4749		if (typeof AOS !== 'undefined') AOS.refresh();
4750	  }, 250);
4751	});
4752
4753	// Optional (empfohlen): Pfeiltasten-Navigation zwischen Accordion-Buttons
4754	$(document).on('keydown', '.acc_head', function (e) {
4755	  const keys = ['ArrowDown', 'ArrowUp', 'Home', 'End'];
4756	  if (!keys.includes(e.key)) return;
4757
4758	  const $buttons = $('.acc_head:visible');
4759	  const index = $buttons.index(this);
4760
4761	  let nextIndex = index;
4762
4763	  if (e.key === 'ArrowDown') nextIndex = Math.min(index + 1, $buttons.length - 1);
4764	  if (e.key === 'ArrowUp') nextIndex = Math.max(index - 1, 0);
4765	  if (e.key === 'Home') nextIndex = 0;
4766	  if (e.key === 'End') nextIndex = $buttons.length - 1;
4767
4768	  e.preventDefault();
4769	  $buttons.eq(nextIndex).trigger('focus');
4770	});
4771	
4772	$('.more_head').click(function() {
4773		var toToggle = $(this).next('.more_content');
4774		$(this).toggleClass('open');
4775		$(toToggle).toggleClass('open');
4776		$(toToggle).slideToggle();
4777		
4778		setTimeout(function(){ 
4779			AOS.refresh();
4780		}, 500);
4781	});
4782	
4783	$().fancybox({
4784		selector : 'a.fancycarou',
4785	 	backFocus : false,
4786            hash   : false,
4787            afterClose: function() {
4788               
4789            }
4790		});
4791	    
4792    if($('.startslider').length){
4793		 $('.startslider').flexslider({
4794			  animation: "fade",
4795			  animationSpeed: 200,
4796			  controlNav: true,  
4797			  slideshowSpeed: 7000,
4798			  pausePlay: false, 
4799			  directionNav: false, 
4800			  prevText: "",      
4801			  nextText: "",
4802			  start: function(slider){
4803				$('body').removeClass('loading');
4804			  },
4805			  after: function(slider){
4806				//  var headercolor = $('#item_11_'+slider.currentSlide).data('color');
4807				//  $(body).removeClass('headerblack');
4808				// $(body).removeClass('headerwhite');
4809				//  $(body).addClass(headercolor);
4810			  }   
4811		  });
4812    }
4813	
4814	if($('.contentslider').length){
4815		var $sliderItemTotal = $(".slider-item-total"),
4816		$sliderItemCurrent = $(".slider-item-current");
4817		
4818		 $('.contentslider').flexslider({
4819			  animation: "fade",
4820			  controlsContainer: $(".custom-controls-container"),
4821    		  customDirectionNav: $(".custom-navigation a"),
4822			  animationSpeed: 200,
4823			  controlNav: false,  
4824			  slideshowSpeed: 7000,
4825			  pausePlay: false, 
4826			  directionNav: true, 
4827			  prevText: "",      
4828			  nextText: "",
4829			  start: function(item){
4830					slideCounter(item);
4831				},
4832			  after: function(item){
4833				slideCounter(item);
4834			  }
4835		  });
4836		function slideCounter(item){
4837			$sliderItemCurrent.text(item.currentSlide + 1);
4838			$sliderItemTotal.text(item.count);
4839		}
4840    }
4841
4842	
4843
4844	if($('.owl-viererteaserovercarou').length){
4845           $('.owl-viererteaserovercarou').owlCarousel({
4846        loop:true,
4847        margin:0,
4848		  navText: [ '', '' ],
4849        responsiveClass:true,
4850        responsive:{
4851          0:{
4852            items:1.175,
4853            nav:false,
4854			  margin:0,
4855			stagePadding: 0,
4856            dots:false
4857
4858          },
4859         
4860          768:{
4861            items:4,
4862            nav:true,
4863            dots:false
4864          },
4865          993:{
4866            items:4,
4867            nav:true,
4868            dots:false
4869          },
4870          1300:{
4871            items:4,
4872            nav:true,
4873            dots:false
4874          }
4875        }
4876      });
4877	   
4878	
4879	}
4880
4881   
4882	
4883	if($('#defaultOpen').length){
4884		//document.getElementById("defaultOpen").click();
4885	}
4886	
4887
4888	    
4889	if($('#popup').length){
4890	
4891		var currentTime = new Date().getTime();
4892		Date.prototype.addHours = function(h) {    
4893		   this.setTime(this.getTime() + (h*60*60*1000)); 
4894		   return this;   
4895		}
4896		var after24 = new Date().addHours(10).getTime();
4897	   
4898		$('#closepopup').on('click',function(event) {
4899			$('#popup').fadeOut(function() {
4900				$('#popup').addClass('hidden');
4901			});
4902			
4903			localStorage.setItem('desiredTime', after24); 
4904			return false;
4905		});
4906
4907
4908		if(localStorage.getItem('desiredTime') >= currentTime) {
4909		   $('#popup').fadeOut(function() {
4910			    $('#popup').addClass('hidden');
4911		   });
4912		  
4913		}
4914		else {
4915			$('#popup').fadeIn(function() {
4916				$('#popup').removeClass('hidden');
4917			});
4918			
4919		}
4920	}
4921	
4922		
4923  });
4924
4925! function(o, e) {
4926		"object" == typeof exports ? module.exports = e(o.jQuery) : o.owlcarousel2_filter = e(o.jQuery)
4927	}(window, function(o, e) {
4928		"use strict";
4929		o.fn.owlcarousel2_filter = function(o, e) {
4930			
4931			var t = this.data("owl.carousel").options;
4932			this.trigger("destroy.owl.carousel"), this.oc2_filter_clone || (this.oc2_filter_clone = this.clone());
4933			var l = this.oc2_filter_clone.children(o).clone();
4934			this.empty().append(l).owlCarousel(t)
4935		}
4936	});
4937	
4938
4939
4940        jQuery(window).bind('orientationchange', function(event) {
4941          if (window.orientation == 90 || window.orientation == -90 || window.orientation == 270) {
4942             setsize();
4943          } else {
4944           setsize();
4945           //setAccordion();
4946          }
4947        }).trigger('orientationchange');
4948        
4949        jQuery(window).resize(function(){
4950          setsize();
4951          
4952        });
4953        
4954        $(window).on('load', function(){
4955          setsize();
4956			
4957			if($(window).scrollTop() > 100) { 
4958			  	$('#header').addClass("sticky");
4959				//$('#sideoffen').addClass("sticky");
4960			}
4961			
4962			if($(window).width() > 767) {
4963					$('.parallax').each(function (index, value){
4964						var yPos = ( ($(window).scrollTop() - $(this).offset().top) / 4);
4965						var coords = '50% '+ yPos + 'px';
4966						// $('.slides li').css({ backgroundPosition: coords });
4967						$(this).css('background-position', coords);
4968					});
4969				}
4970			
4971			if($(window).width() > 767) {
4972				$('#headerfix').prop('inert', true);
4973			}
4974
4975
4976			
4977        });
4978        
4979        jQuery(document).ready(function(){
4980          setsize();
4981        });
4982        
4983        
4984        
4985        function setsize() { 
4986			
4987			if($(window).width() > 767) {
4988				$(window).scroll(function() {
4989				if($(window).scrollTop() > 0) {
4990					$('.parallax').each(function (index, value){
4991						var yPos = ( ($(window).scrollTop() - $(this).offset().top) / 4);
4992						var coords = '50% '+ yPos + 'px';
4993						// $('.slides li').css({ backgroundPosition: coords });
4994						$(this).css('background-position', coords);
4995					});
4996				}
4997			});
4998				
4999			}
5000
5001			if($('.newsbox_txt_i h3').length){
5002				setTimeout(function(){ 
5003				var highestBox = 0;
5004				jQuery('.newsbox_txt_i h3').css('height', 'auto');
5005				jQuery('.newsbox_txt_i h3').each(function(){
5006				  if(jQuery(this).height() > highestBox) {
5007					 highestBox = jQuery(this).height(); 
5008				  }
5009				});  
5010
5011				jQuery('.newsbox_txt_i h3').height(highestBox);
5012			   }, 30);
5013
5014			}
5015			
5016			if($('.newsbox_txt_i').length){
5017				setTimeout(function(){ 
5018				var highestBox = 0;
5019				jQuery('.newsbox_txt_i').css('height', 'auto');
5020				jQuery('.newsbox_txt_i').each(function(){
5021				  if(jQuery(this).height() > highestBox) {
5022					 highestBox = jQuery(this).height(); 
5023				  }
5024				});  
5025
5026				jQuery('.newsbox_txt_i').height(highestBox);
5027			   }, 80);
5028
5029			}
5030			
5031			if($('.schneebox_news').length){
5032				setTimeout(function(){ 
5033				var highestBox = 0;
5034				jQuery('.schneebox_news').css('height', 'auto');
5035				jQuery('.schneebox_news').each(function(){
5036				  if(jQuery(this).height() > highestBox) {
5037					 highestBox = jQuery(this).height(); 
5038				  }
5039				});  
5040
5041				jQuery('.schneebox_news').height(highestBox);
5042			   }, 80);
5043
5044			}
5045			
5046			if($('.schneebox_pistenbox').length){
5047				setTimeout(function(){ 
5048				var highestBox = 0;
5049				jQuery('.schneebox_pistenbox').css('height', 'auto');
5050				jQuery('.schneebox_pistenbox').each(function(){
5051				  if(jQuery(this).height() > highestBox) {
5052					 highestBox = jQuery(this).height(); 
5053				  }
5054				});  
5055
5056				jQuery('.schneebox_pistenbox').height(highestBox);
5057			   }, 80);
5058
5059			}
5060			
5061			if($(window).width() < 767) {
5062				if($('.col50_txt_i').length){
5063					setTimeout(function(){ 
5064					var highestBox = 0;
5065					jQuery('.col50_txt_i').css('height', 'auto');
5066					jQuery('.col50_txt_i').each(function(){
5067					  if(jQuery(this).height() > highestBox) {
5068						 highestBox = jQuery(this).height(); 
5069					  }
5070					});  
5071
5072					jQuery('.col50_txt_i').height(highestBox);
5073				   }, 80);
5074
5075				}
5076				
5077			}
5078        }
5079
5080
5081
5082$(document).ready(function() {
5083  //parallax scroll
5084  $(window).on("load scroll", function() {
5085    var parallaxElement = $(".parallax_scroll h1"),
5086      parallaxQuantity = parallaxElement.length;
5087    window.requestAnimationFrame(function() {
5088      for (var i = 0; i < parallaxQuantity; i++) {
5089        var currentElement = parallaxElement.eq(i),
5090          windowTop = $(window).scrollTop(),
5091          elementTop = currentElement.offset().top,
5092          elementHeight = currentElement.height(),
5093          viewPortHeight = window.innerHeight * 0.5 - elementHeight * 0.5,
5094          scrolled = windowTop - elementTop + viewPortHeight;
5095        currentElement.css({
5096          transform: "translate3d(0," + scrolled * -0.1 + "px, 0)"
5097        });
5098      }
5099    });
5100  });
5101});
5102
5103
5104function openCity(evt, cityName) {
5105  // Declare all variables
5106  var i, tabcontent, tablinks;
5107
5108  // Get all elements with class="tabcontent" and hide them
5109  tabcontent = document.getElementsByClassName("tabcontent");
5110  for (i = 0; i < tabcontent.length; i++) {
5111    tabcontent[i].style.display = "none";
5112  }
5113
5114  // Get all elements with class="tablinks" and remove the class "active"
5115  tablinks = document.getElementsByClassName("tablinks");
5116  for (i = 0; i < tablinks.length; i++) {
5117    tablinks[i].className = tablinks[i].className.replace(" active", "");
5118  }
5119
5120  // Show the current tab, and add an "active" class to the button that opened the tab
5121  document.getElementById(cityName).style.display = "block";
5122  evt.currentTarget.className += " active";
5123	
5124
5125	   
5126if($('.flipsterx').length){
5127
5128	var flipContainer = $('.flipsterx'),
5129	flipItemContainer = flipContainer.find('.flip-items'),
5130	flipItem = flipContainer.find('li');
5131
5132	flipContainer.flipster({
5133	  itemContainer: flipItemContainer,
5134	  itemSelector: flipItem,
5135	  loop: 1,
5136	  start: 1,
5137	  style: 'infinite-carousel',
5138	  spacing: 0,
5139	  scrollwheel: false,
5140		touch: false,
5141	  //nav: 'after',
5142	  buttons: true });
5143//# sourceURL=pen.js
5144	   }
5145	
5146		   
5147if($('.swiper-containerx').length){
5148
5149				var mySwiper = new Swiper('.swiper-containerx', {
5150  loop: true,
5151  slidesPerView: 2,
5152  centeredSlides: true,
5153  effect: 'coverflow',
5154  coverflow: {
5155    rotate: 0,
5156    stretch: 0,
5157    depth: 100,
5158    modifier: 2,
5159    slideShadows: false },
5160
5161  // Navigation arrows
5162  nextButton: '.swiper-button-next',
5163  prevButton: '.swiper-button-prev' });
5164			  
5165	
5166	
5167	   }
5168	
5169	setTimeout(function(){ 
5170			AOS.refresh();
5171		}, 250);
5172
5173} 
5174
5175
5176
5177
5178$('#menu').on('keydown', 'a', function(e) {
5179    // Nur ausführen, wenn Bildschirm breiter als 992px ist
5180    if ($(window).width() < 768) {
5181        return;
5182    }
5183
5184    // Tastencodes prüfen (Pfeiltasten)
5185    // 37=Links, 38=Oben, 39=Rechts, 40=Unten
5186    if ([37, 38, 39, 40].indexOf(e.which) === -1) {
5187        return; // Andere Tasten (Tab, Enter) normal zulassen
5188    }
5189
5190    e.preventDefault(); // Verhindert Scrollen der Seite durch Pfeiltasten
5191
5192    var currentLink = $(this);
5193    
5194    // 1. Die aktuelle Spalte (das oberste li) finden
5195    var currentColumn = currentLink.closest('#menu > li');
5196    
5197    // 2. Alle Spalten finden
5198    var allColumns = $('#menu > li');
5199    
5200    // 3. Alle Links in der aktuellen Spalte sammeln (Überschrift + Sublinks)
5201    var linksInCurrentColumn = currentColumn.find('a');
5202    
5203    // Indizes bestimmen
5204    var colIndex = allColumns.index(currentColumn);
5205    var linkIndex = linksInCurrentColumn.index(currentLink);
5206
5207    var targetLink = null;
5208
5209    switch(e.which) {
5210        case 38: // OBEN (Up)
5211            if (linkIndex > 0) {
5212                targetLink = linksInCurrentColumn.eq(linkIndex - 1);
5213            }
5214            break;
5215
5216        case 40: // UNTEN (Down)
5217            if (linkIndex < linksInCurrentColumn.length - 1) {
5218                targetLink = linksInCurrentColumn.eq(linkIndex + 1);
5219            }
5220            break;
5221
5222        case 37: // LINKS (Left)
5223            if (colIndex > 0) {
5224                // Vorherige Spalte holen
5225                var prevColumn = allColumns.eq(colIndex - 1);
5226                var linksInPrev = prevColumn.find('a');
5227                
5228                // Versuchen, den gleichen vertikalen Index zu treffen.
5229                // Falls die linke Spalte kürzer ist, den letzten Link nehmen.
5230                var targetIndex = Math.min(linkIndex, linksInPrev.length - 1);
5231                targetLink = linksInPrev.eq(targetIndex);
5232            }
5233            break;
5234
5235        case 39: // RECHTS (Right)
5236            if (colIndex < allColumns.length - 1) {
5237                // Nächste Spalte holen
5238                var nextColumn = allColumns.eq(colIndex + 1);
5239                var linksInNext = nextColumn.find('a');
5240                
5241                // Versuchen, den gleichen vertikalen Index zu treffen.
5242                var targetIndex = Math.min(linkIndex, linksInNext.length - 1);
5243                targetLink = linksInNext.eq(targetIndex);
5244            }
5245            break;
5246    }
5247
5248    // Fokus setzen, wenn ein Ziel gefunden wurde
5249    if (targetLink && targetLink.length) {
5250        targetLink.focus();
5251    }
5252});

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.