/*!
 * jQuery Migrate - v1.4.1 - 2016-05-19
 * Copyright jQuery Foundation and other contributors
 */
(function(jQuery,window,undefined){jQuery.migrateVersion="1.4.1";var warnedAbout={};jQuery.migrateWarnings=[];if(window.console&&window.console.log){window.console.log("JQMIGRATE: Migrate is installed"+(jQuery.migrateMute?"":" with logging active")+", version "+jQuery.migrateVersion)}
if(jQuery.migrateTrace===undefined){jQuery.migrateTrace=!0}
jQuery.migrateReset=function(){warnedAbout={};jQuery.migrateWarnings.length=0};function migrateWarn(msg){var console=window.console;if(!warnedAbout[msg]){warnedAbout[msg]=!0;jQuery.migrateWarnings.push(msg);if(console&&console.warn&&!jQuery.migrateMute){console.warn("JQMIGRATE: "+msg);if(jQuery.migrateTrace&&console.trace){console.trace()}}}}
function migrateWarnProp(obj,prop,value,msg){if(Object.defineProperty){try{Object.defineProperty(obj,prop,{configurable:!0,enumerable:!0,get:function(){migrateWarn(msg);return value},set:function(newValue){migrateWarn(msg);value=newValue}});return}catch(err){}}
jQuery._definePropertyBroken=!0;obj[prop]=value}
if(document.compatMode==="BackCompat"){migrateWarn("jQuery is not compatible with Quirks Mode")}
var attrFn=jQuery("<input/>",{size:1}).attr("size")&&jQuery.attrFn,oldAttr=jQuery.attr,valueAttrGet=jQuery.attrHooks.value&&jQuery.attrHooks.value.get||function(){return null},valueAttrSet=jQuery.attrHooks.value&&jQuery.attrHooks.value.set||function(){return undefined},rnoType=/^(?:input|button)$/i,rnoAttrNodeType=/^[238]$/,rboolean=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ruseDefault=/^(?:checked|selected)$/i;migrateWarnProp(jQuery,"attrFn",attrFn||{},"jQuery.attrFn is deprecated");jQuery.attr=function(elem,name,value,pass){var lowerName=name.toLowerCase(),nType=elem&&elem.nodeType;if(pass){if(oldAttr.length<4){migrateWarn("jQuery.fn.attr( props, pass ) is deprecated")}
if(elem&&!rnoAttrNodeType.test(nType)&&(attrFn?name in attrFn:jQuery.isFunction(jQuery.fn[name]))){return jQuery(elem)[name](value)}}
if(name==="type"&&value!==undefined&&rnoType.test(elem.nodeName)&&elem.parentNode){migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8")}
if(!jQuery.attrHooks[lowerName]&&rboolean.test(lowerName)){jQuery.attrHooks[lowerName]={get:function(elem,name){var attrNode,property=jQuery.prop(elem,name);return property===!0||typeof property!=="boolean"&&(attrNode=elem.getAttributeNode(name))&&attrNode.nodeValue!==!1?name.toLowerCase():undefined},set:function(elem,value,name){var propName;if(value===!1){jQuery.removeAttr(elem,name)}else{propName=jQuery.propFix[name]||name;if(propName in elem){elem[propName]=!0}
elem.setAttribute(name,name.toLowerCase())}
return name}};if(ruseDefault.test(lowerName)){migrateWarn("jQuery.fn.attr('"+lowerName+"') might use property instead of attribute")}}
return oldAttr.call(jQuery,elem,name,value)};jQuery.attrHooks.value={get:function(elem,name){var nodeName=(elem.nodeName||"").toLowerCase();if(nodeName==="button"){return valueAttrGet.apply(this,arguments)}
if(nodeName!=="input"&&nodeName!=="option"){migrateWarn("jQuery.fn.attr('value') no longer gets properties")}
return name in elem?elem.value:null},set:function(elem,value){var nodeName=(elem.nodeName||"").toLowerCase();if(nodeName==="button"){return valueAttrSet.apply(this,arguments)}
if(nodeName!=="input"&&nodeName!=="option"){migrateWarn("jQuery.fn.attr('value', val) no longer sets properties")}
elem.value=value}};var matched,browser,oldInit=jQuery.fn.init,oldFind=jQuery.find,oldParseJSON=jQuery.parseJSON,rspaceAngle=/^\s*</,rattrHashTest=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,rattrHashGlob=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,rquickExpr=/^([^<]*)(<[\w\W]+>)([^>]*)$/;jQuery.fn.init=function(selector,context,rootjQuery){var match,ret;if(selector&&typeof selector==="string"){if(!jQuery.isPlainObject(context)&&(match=rquickExpr.exec(jQuery.trim(selector)))&&match[0]){if(!rspaceAngle.test(selector)){migrateWarn("$(html) HTML strings must start with '<' character")}
if(match[3]){migrateWarn("$(html) HTML text after last tag is ignored")}
if(match[0].charAt(0)==="#"){migrateWarn("HTML string cannot start with a '#' character");jQuery.error("JQMIGRATE: Invalid selector string (XSS)")}
if(context&&context.context&&context.context.nodeType){context=context.context}
if(jQuery.parseHTML){return oldInit.call(this,jQuery.parseHTML(match[2],context&&context.ownerDocument||context||document,!0),context,rootjQuery)}}}
ret=oldInit.apply(this,arguments);if(selector&&selector.selector!==undefined){ret.selector=selector.selector;ret.context=selector.context}else{ret.selector=typeof selector==="string"?selector:"";if(selector){ret.context=selector.nodeType?selector:context||document}}
return ret};jQuery.fn.init.prototype=jQuery.fn;jQuery.find=function(selector){var args=Array.prototype.slice.call(arguments);if(typeof selector==="string"&&rattrHashTest.test(selector)){try{document.querySelector(selector)}catch(err1){selector=selector.replace(rattrHashGlob,function(_,attr,op,value){return"["+attr+op+"\""+value+"\"]"});try{document.querySelector(selector);migrateWarn("Attribute selector with '#' must be quoted: "+args[0]);args[0]=selector}catch(err2){migrateWarn("Attribute selector with '#' was not fixed: "+args[0])}}}
return oldFind.apply(this,args)};var findProp;for(findProp in oldFind){if(Object.prototype.hasOwnProperty.call(oldFind,findProp)){jQuery.find[findProp]=oldFind[findProp]}}
jQuery.parseJSON=function(json){if(!json){migrateWarn("jQuery.parseJSON requires a valid JSON string");return null}
return oldParseJSON.apply(this,arguments)};jQuery.uaMatch=function(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}};if(!jQuery.browser){matched=jQuery.uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=!0;browser.version=matched.version}
if(browser.chrome){browser.webkit=!0}else if(browser.webkit){browser.safari=!0}
jQuery.browser=browser}
migrateWarnProp(jQuery,"browser",jQuery.browser,"jQuery.browser is deprecated");jQuery.boxModel=jQuery.support.boxModel=(document.compatMode==="CSS1Compat");migrateWarnProp(jQuery,"boxModel",jQuery.boxModel,"jQuery.boxModel is deprecated");migrateWarnProp(jQuery.support,"boxModel",jQuery.support.boxModel,"jQuery.support.boxModel is deprecated");jQuery.sub=function(){function jQuerySub(selector,context){return new jQuerySub.fn.init(selector,context)}
jQuery.extend(!0,jQuerySub,this);jQuerySub.superclass=this;jQuerySub.fn=jQuerySub.prototype=this();jQuerySub.fn.constructor=jQuerySub;jQuerySub.sub=this.sub;jQuerySub.fn.init=function init(selector,context){var instance=jQuery.fn.init.call(this,selector,context,rootjQuerySub);return instance instanceof jQuerySub?instance:jQuerySub(instance)};jQuerySub.fn.init.prototype=jQuerySub.fn;var rootjQuerySub=jQuerySub(document);migrateWarn("jQuery.sub() is deprecated");return jQuerySub};jQuery.fn.size=function(){migrateWarn("jQuery.fn.size() is deprecated; use the .length property");return this.length};var internalSwapCall=!1;if(jQuery.swap){jQuery.each(["height","width","reliableMarginRight"],function(_,name){var oldHook=jQuery.cssHooks[name]&&jQuery.cssHooks[name].get;if(oldHook){jQuery.cssHooks[name].get=function(){var ret;internalSwapCall=!0;ret=oldHook.apply(this,arguments);internalSwapCall=!1;return ret}}})}
jQuery.swap=function(elem,options,callback,args){var ret,name,old={};if(!internalSwapCall){migrateWarn("jQuery.swap() is undocumented and deprecated")}
for(name in options){old[name]=elem.style[name];elem.style[name]=options[name]}
ret=callback.apply(elem,args||[]);for(name in options){elem.style[name]=old[name]}
return ret};jQuery.ajaxSetup({converters:{"text json":jQuery.parseJSON}});var oldFnData=jQuery.fn.data;jQuery.fn.data=function(name){var ret,evt,elem=this[0];if(elem&&name==="events"&&arguments.length===1){ret=jQuery.data(elem,name);evt=jQuery._data(elem,name);if((ret===undefined||ret===evt)&&evt!==undefined){migrateWarn("Use of jQuery.fn.data('events') is deprecated");return evt}}
return oldFnData.apply(this,arguments)};var rscriptType=/\/(java|ecma)script/i;if(!jQuery.clean){jQuery.clean=function(elems,context,fragment,scripts){context=context||document;context=!context.nodeType&&context[0]||context;context=context.ownerDocument||context;migrateWarn("jQuery.clean() is deprecated");var i,elem,handleScript,jsTags,ret=[];jQuery.merge(ret,jQuery.buildFragment(elems,context).childNodes);if(fragment){handleScript=function(elem){if(!elem.type||rscriptType.test(elem.type)){return scripts?scripts.push(elem.parentNode?elem.parentNode.removeChild(elem):elem):fragment.appendChild(elem)}};for(i=0;(elem=ret[i])!=null;i++){if(!(jQuery.nodeName(elem,"script")&&handleScript(elem))){fragment.appendChild(elem);if(typeof elem.getElementsByTagName!=="undefined"){jsTags=jQuery.grep(jQuery.merge([],elem.getElementsByTagName("script")),handleScript);ret.splice.apply(ret,[i+1,0].concat(jsTags));i+=jsTags.length}}}}
return ret}}
var eventAdd=jQuery.event.add,eventRemove=jQuery.event.remove,eventTrigger=jQuery.event.trigger,oldToggle=jQuery.fn.toggle,oldLive=jQuery.fn.live,oldDie=jQuery.fn.die,oldLoad=jQuery.fn.load,ajaxEvents="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",rajaxEvent=new RegExp("\\b(?:"+ajaxEvents+")\\b"),rhoverHack=/(?:^|\s)hover(\.\S+|)\b/,hoverHack=function(events){if(typeof(events)!=="string"||jQuery.event.special.hover){return events}
if(rhoverHack.test(events)){migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'")}
return events&&events.replace(rhoverHack,"mouseenter$1 mouseleave$1")};if(jQuery.event.props&&jQuery.event.props[0]!=="attrChange"){jQuery.event.props.unshift("attrChange","attrName","relatedNode","srcElement")}
if(jQuery.event.dispatch){migrateWarnProp(jQuery.event,"handle",jQuery.event.dispatch,"jQuery.event.handle is undocumented and deprecated")}
jQuery.event.add=function(elem,types,handler,data,selector){if(elem!==document&&rajaxEvent.test(types)){migrateWarn("AJAX events should be attached to document: "+types)}
eventAdd.call(this,elem,hoverHack(types||""),handler,data,selector)};jQuery.event.remove=function(elem,types,handler,selector,mappedTypes){eventRemove.call(this,elem,hoverHack(types)||"",handler,selector,mappedTypes)};jQuery.each(["load","unload","error"],function(_,name){jQuery.fn[name]=function(){var args=Array.prototype.slice.call(arguments,0);if(name==="load"&&typeof args[0]==="string"){return oldLoad.apply(this,args)}
migrateWarn("jQuery.fn."+name+"() is deprecated");args.splice(0,0,name);if(arguments.length){return this.bind.apply(this,args)}
this.triggerHandler.apply(this,args);return this}});jQuery.fn.toggle=function(fn,fn2){if(!jQuery.isFunction(fn)||!jQuery.isFunction(fn2)){return oldToggle.apply(this,arguments)}
migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");var args=arguments,guid=fn.guid||jQuery.guid++,i=0,toggler=function(event){var lastToggle=(jQuery._data(this,"lastToggle"+fn.guid)||0)%i;jQuery._data(this,"lastToggle"+fn.guid,lastToggle+1);event.preventDefault();return args[lastToggle].apply(this,arguments)||!1};toggler.guid=guid;while(i<args.length){args[i++].guid=guid}
return this.click(toggler)};jQuery.fn.live=function(types,data,fn){migrateWarn("jQuery.fn.live() is deprecated");if(oldLive){return oldLive.apply(this,arguments)}
jQuery(this.context).on(types,this.selector,data,fn);return this};jQuery.fn.die=function(types,fn){migrateWarn("jQuery.fn.die() is deprecated");if(oldDie){return oldDie.apply(this,arguments)}
jQuery(this.context).off(types,this.selector||"**",fn);return this};jQuery.event.trigger=function(event,data,elem,onlyHandlers){if(!elem&&!rajaxEvent.test(event)){migrateWarn("Global events are undocumented and deprecated")}
return eventTrigger.call(this,event,data,elem||document,onlyHandlers)};jQuery.each(ajaxEvents.split("|"),function(_,name){jQuery.event.special[name]={setup:function(){var elem=this;if(elem!==document){jQuery.event.add(document,name+"."+jQuery.guid,function(){jQuery.event.trigger(name,Array.prototype.slice.call(arguments,1),elem,!0)});jQuery._data(this,name,jQuery.guid++)}
return!1},teardown:function(){if(this!==document){jQuery.event.remove(document,name+"."+jQuery._data(this,name))}
return!1}}});jQuery.event.special.ready={setup:function(){if(this===document){migrateWarn("'ready' event is deprecated")}}};var oldSelf=jQuery.fn.andSelf||jQuery.fn.addBack,oldFnFind=jQuery.fn.find;jQuery.fn.andSelf=function(){migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");return oldSelf.apply(this,arguments)};jQuery.fn.find=function(selector){var ret=oldFnFind.apply(this,arguments);ret.context=this.context;ret.selector=this.selector?this.selector+" "+selector:selector;return ret};if(jQuery.Callbacks){var oldDeferred=jQuery.Deferred,tuples=[["resolve","done",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),"resolved"],["reject","fail",jQuery.Callbacks("once memory"),jQuery.Callbacks("once memory"),"rejected"],["notify","progress",jQuery.Callbacks("memory"),jQuery.Callbacks("memory")]];jQuery.Deferred=function(func){var deferred=oldDeferred(),promise=deferred.promise();deferred.pipe=promise.pipe=function(){var fns=arguments;migrateWarn("deferred.pipe() is deprecated");return jQuery.Deferred(function(newDefer){jQuery.each(tuples,function(i,tuple){var fn=jQuery.isFunction(fns[i])&&fns[i];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&jQuery.isFunction(returned.promise)){returned.promise().done(newDefer.resolve).fail(newDefer.reject).progress(newDefer.notify)}else{newDefer[tuple[0]+"With"](this===promise?newDefer.promise():this,fn?[returned]:arguments)}})});fns=null}).promise()};deferred.isResolved=function(){migrateWarn("deferred.isResolved is deprecated");return deferred.state()==="resolved"};deferred.isRejected=function(){migrateWarn("deferred.isRejected is deprecated");return deferred.state()==="rejected"};if(func){func.call(deferred,deferred)}
return deferred}}})(jQuery,window);jQuery(function($){if(window.devicePixelRatio>=2){$("#site-logo img.logo-img").attr("src","https://welaunch.io/plugins/helpdesk/wp-content/uploads/sites/5/2018/08/logo2x.png").css("max-height","40px")}});var old_GS=window.GreenSockGlobals,old_GS_queue=window._gsQueue,old_GS_gsDefine=window._gsDefine;var DeeThemes_GS=window.GreenSockGlobals={};window._gsDefine=null;!function(a){var b,c,d="0.5.0",e="hasOwnProperty",f=/[\.\/]/,g=/\s*,\s*/,h="*",i=function(a,b){return a-b},j={n:{}},k=function(){for(var a=0,b=this.length;b>a;a++)if("undefined"!=typeof this[a])return this[a]},l=function(){for(var a=this.length;--a;)if("undefined"!=typeof this[a])return this[a]},m=Object.prototype.toString,n=String,o=Array.isArray||function(a){return a instanceof Array||"[object Array]"==m.call(a)};DeeThemes_eve=function(a,d){var e,f=c,g=Array.prototype.slice.call(arguments,2),h=DeeThemes_eve.listeners(a),j=0,m=[],n={},o=[],p=b;o.firstDefined=k,o.lastDefined=l,b=a,c=0;for(var q=0,r=h.length;r>q;q++)"zIndex"in h[q]&&(m.push(h[q].zIndex),h[q].zIndex<0&&(n[h[q].zIndex]=h[q]));for(m.sort(i);m[j]<0;)if(e=n[m[j++]],o.push(e.apply(d,g)),c)return c=f,o;for(q=0;r>q;q++)if(e=h[q],"zIndex"in e)if(e.zIndex==m[j]){if(o.push(e.apply(d,g)),c)break;do if(j++,e=n[m[j]],e&&o.push(e.apply(d,g)),c)break;while(e)}else n[e.zIndex]=e;else if(o.push(e.apply(d,g)),c)break;return c=f,b=p,o},DeeThemes_eve._events=j,DeeThemes_eve.listeners=function(a){var b,c,d,e,g,i,k,l,m=o(a)?a:a.split(f),n=j,p=[n],q=[];for(e=0,g=m.length;g>e;e++){for(l=[],i=0,k=p.length;k>i;i++)for(n=p[i].n,c=[n[m[e]],n[h]],d=2;d--;)b=c[d],b&&(l.push(b),q=q.concat(b.f||[]));p=l}return q},DeeThemes_eve.separator=function(a){a?(a=n(a).replace(/(?=[\.\^\]\[\-])/g,"\\"),a="["+a+"]",f=new RegExp(a)):f=/[\.\/]/},DeeThemes_eve.on=function(a,b){if("function"!=typeof b)return function(){};for(var c=o(a)?o(a[0])?a:[a]:n(a).split(g),d=0,e=c.length;e>d;d++)!function(a){for(var c,d=o(a)?a:n(a).split(f),e=j,g=0,h=d.length;h>g;g++)e=e.n,e=e.hasOwnProperty(d[g])&&e[d[g]]||(e[d[g]]={n:{}});for(e.f=e.f||[],g=0,h=e.f.length;h>g;g++)if(e.f[g]==b){c=!0;break}!c&&e.f.push(b)}(c[d]);return function(a){+a==+a&&(b.zIndex=+a)}},DeeThemes_eve.f=function(a){var b=[].slice.call(arguments,1);return function(){DeeThemes_eve.apply(null,[a,null].concat(b).concat([].slice.call(arguments,0)))}},DeeThemes_eve.stop=function(){c=1},DeeThemes_eve.nt=function(a){var c=o(b)?b.join("."):b;return a?new RegExp("(?:\\.|\\/|^)"+a+"(?:\\.|\\/|$)").test(c):c},DeeThemes_eve.nts=function(){return o(b)?b:b.split(f)},DeeThemes_eve.off=DeeThemes_eve.unbind=function(a,b){if(!a)return void(DeeThemes_eve._events=j={n:{}});var c=o(a)?o(a[0])?a:[a]:n(a).split(g);if(c.length>1)for(var d=0,i=c.length;i>d;d++)DeeThemes_eve.off(c[d],b);else{c=o(a)?a:n(a).split(f);var k,l,m,d,i,p,q,r=[j],s=[];for(d=0,i=c.length;i>d;d++)for(p=0;p<r.length;p+=m.length-2){if(m=[p,1],k=r[p].n,c[d]!=h)k[c[d]]&&(m.push(k[c[d]]),s.unshift({n:k,name:c[d]}));else for(l in k)k[e](l)&&(m.push(k[l]),s.unshift({n:k,name:l}));r.splice.apply(r,m)}for(d=0,i=r.length;i>d;d++)for(k=r[d];k.n;){if(b){if(k.f){for(p=0,q=k.f.length;q>p;p++)if(k.f[p]==b){k.f.splice(p,1);break}!k.f.length&&delete k.f}for(l in k.n)if(k.n[e](l)&&k.n[l].f){var t=k.n[l].f;for(p=0,q=t.length;q>p;p++)if(t[p]==b){t.splice(p,1);break}!t.length&&delete k.n[l].f}}else{delete k.f;for(l in k.n)k.n[e](l)&&k.n[l].f&&delete k.n[l].f}k=k.n}a:for(d=0,i=s.length;i>d;d++){k=s[d];for(l in k.n[k.name].f)continue a;for(l in k.n[k.name].n)continue a;delete k.n[k.name]}}},DeeThemes_eve.once=function(a,b){var c=function(){return DeeThemes_eve.off(a,c),b.apply(this,arguments)};return DeeThemes_eve.on(a,c)},DeeThemes_eve.version=d,DeeThemes_eve.toString=function(){return"You are running Eve "+d},"undefined"!=typeof module&&module.exports?module.exports=DeeThemes_eve:"function"==typeof define&&define.amd?define("DeeThemes_eve",[],function(){return DeeThemes_eve}):a.DeeThemes_eve=DeeThemes_eve}(this),function(a,b){if("function"==typeof define&&define.amd)define(["DeeThemes_eve"],function(c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("DeeThemes_eve");module.exports=b(a,c)}else b(a,a.DeeThemes_eve)}(window||this,function(a,b){var c=function(b){var c,d={},e=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||function(a){return setTimeout(a,16,(new Date).getTime()),!0},f=Array.isArray||function(a){return a instanceof Array||"[object Array]"==Object.prototype.toString.call(a)},g=0,h="M"+(+new Date).toString(36),i=function(){return h+(g++).toString(36)},j=Date.now||function(){return+new Date},k=function(a){var b=this;if(null==a)return b.s;var c=b.s-a;b.b+=b.dur*c,b.B+=b.dur*c,b.s=a},l=function(a){var b=this;return null==a?b.spd:void(b.spd=a)},m=function(a){var b=this;return null==a?b.dur:(b.s=b.s*a/b.dur,void(b.dur=a))},n=function(){var a=this;delete d[a.id],a.update(),b("mina.stop."+a.id,a)},o=function(){var a=this;a.pdif||(delete d[a.id],a.update(),a.pdif=a.get()-a.b)},p=function(){var a=this;a.pdif&&(a.b=a.get()-a.pdif,delete a.pdif,d[a.id]=a,r())},q=function(){var a,b=this;if(f(b.start)){a=[];for(var c=0,d=b.start.length;d>c;c++)a[c]=+b.start[c]+(b.end[c]-b.start[c])*b.easing(b.s)}else a=+b.start+(b.end-b.start)*b.easing(b.s);b.set(a)},r=function(a){if(!a)return void(c||(c=e(r)));var f=0;for(var g in d)if(d.hasOwnProperty(g)){var h=d[g],i=h.get();f++,h.s=(i-h.b)/(h.dur/h.spd),h.s>=1&&(delete d[g],h.s=1,f--,function(a){setTimeout(function(){b("mina.finish."+a.id,a)})}(h)),h.update()}c=f?e(r):!1},s=function(a,b,c,e,f,g,h){var j={id:i(),start:a,end:b,b:c,s:0,dur:e-c,spd:1,get:f,set:g,easing:h||s.linear,status:k,speed:l,duration:m,stop:n,pause:o,resume:p,update:q};d[j.id]=j;var t,u=0;for(t in d)if(d.hasOwnProperty(t)&&(u++,2==u))break;return 1==u&&r(),j};return s.time=j,s.getById=function(a){return d[a]||null},s.linear=function(a){return a},s.easeout=function(a){return Math.pow(a,1.7)},s.easein=function(a){return Math.pow(a,.48)},s.easeinout=function(a){if(1==a)return 1;if(0==a)return 0;var b=.48-a/1.04,c=Math.sqrt(.1734+b*b),d=c-b,e=Math.pow(Math.abs(d),1/3)*(0>d?-1:1),f=-c-b,g=Math.pow(Math.abs(f),1/3)*(0>f?-1:1),h=e+g+.5;return 3*(1-h)*h*h+h*h*h},s.backin=function(a){if(1==a)return 1;var b=1.70158;return a*a*((b+1)*a-b)},s.backout=function(a){if(0==a)return 0;a-=1;var b=1.70158;return a*a*((b+1)*a+b)+1},s.elastic=function(a){return a==!!a?a:Math.pow(2,-10*a)*Math.sin((a-.075)*(2*Math.PI)/.3)+1},s.bounce=function(a){var b,c=7.5625,d=2.75;return 1/d>a?b=c*a*a:2/d>a?(a-=1.5/d,b=c*a*a+.75):2.5/d>a?(a-=2.25/d,b=c*a*a+.9375):(a-=2.625/d,b=c*a*a+.984375),b},a.mina=s,s}("undefined"==typeof b?function(){}:b),d=function(a){function c(a,b){if(a){if(a.nodeType)return w(a);if(e(a,"array")&&c.set)return c.set.apply(c,a);if(a instanceof s)return a;if(null==b)try{return a=y.doc.querySelector(String(a)),w(a)}catch(d){return null}}return a=null==a?"100%":a,b=null==b?"100%":b,new v(a,b)}function d(a,b){if(b){if("#text"==a&&(a=y.doc.createTextNode(b.text||b["#text"]||"")),"#comment"==a&&(a=y.doc.createComment(b.text||b["#text"]||"")),"string"==typeof a&&(a=d(a)),"string"==typeof b)return 1==a.nodeType?"xlink:"==b.substring(0,6)?a.getAttributeNS(T,b.substring(6)):"xml:"==b.substring(0,4)?a.getAttributeNS(U,b.substring(4)):a.getAttribute(b):"text"==b?a.nodeValue:null;if(1==a.nodeType){for(var c in b)if(b[z](c)){var e=A(b[c]);e?"xlink:"==c.substring(0,6)?a.setAttributeNS(T,c.substring(6),e):"xml:"==c.substring(0,4)?a.setAttributeNS(U,c.substring(4),e):a.setAttribute(c,e):a.removeAttribute(c)}}else"text"in b&&(a.nodeValue=b.text)}else a=y.doc.createElementNS(U,a);return a}function e(a,b){return b=A.prototype.toLowerCase.call(b),"finite"==b?isFinite(a):"array"==b&&(a instanceof Array||Array.isArray&&Array.isArray(a))?!0:"null"==b&&null===a||b==typeof a&&null!==a||"object"==b&&a===Object(a)||J.call(a).slice(8,-1).toLowerCase()==b}function f(a){if("function"==typeof a||Object(a)!==a)return a;var b=new a.constructor;for(var c in a)a[z](c)&&(b[c]=f(a[c]));return b}function h(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return a.push(a.splice(c,1)[0])}function i(a,b,c){function d(){var e=Array.prototype.slice.call(arguments,0),f=e.join("␀"),g=d.cache=d.cache||{},i=d.count=d.count||[];return g[z](f)?(h(i,f),c?c(g[f]):g[f]):(i.length>=1e3&&delete g[i.shift()],i.push(f),g[f]=a.apply(b,e),c?c(g[f]):g[f])}return d}function j(a,b,c,d,e,f){if(null==e){var g=a-c,h=b-d;return g||h?(180+180*D.atan2(-h,-g)/H+360)%360:0}return j(a,b,e,f)-j(c,d,e,f)}function k(a){return a%360*H/180}function l(a){return 180*a/H%360}function m(a){var b=[];return a=a.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(a,c,d){return d=d.split(/\s*,\s*|\s+/),"rotate"==c&&1==d.length&&d.push(0,0),"scale"==c&&(d.length>2?d=d.slice(0,2):2==d.length&&d.push(0,0),1==d.length&&d.push(d[0],0,0)),"skewX"==c?b.push(["m",1,0,D.tan(k(d[0])),1,0,0]):"skewY"==c?b.push(["m",1,D.tan(k(d[0])),0,1,0,0]):b.push([c.charAt(0)].concat(d)),a}),b}function n(a,b){var d=aa(a),e=new c.Matrix;if(d)for(var f=0,g=d.length;g>f;f++){var h,i,j,k,l,m=d[f],n=m.length,o=A(m[0]).toLowerCase(),p=m[0]!=o,q=p?e.invert():0;"t"==o&&2==n?e.translate(m[1],0):"t"==o&&3==n?p?(h=q.x(0,0),i=q.y(0,0),j=q.x(m[1],m[2]),k=q.y(m[1],m[2]),e.translate(j-h,k-i)):e.translate(m[1],m[2]):"r"==o?2==n?(l=l||b,e.rotate(m[1],l.x+l.width/2,l.y+l.height/2)):4==n&&(p?(j=q.x(m[2],m[3]),k=q.y(m[2],m[3]),e.rotate(m[1],j,k)):e.rotate(m[1],m[2],m[3])):"s"==o?2==n||3==n?(l=l||b,e.scale(m[1],m[n-1],l.x+l.width/2,l.y+l.height/2)):4==n?p?(j=q.x(m[2],m[3]),k=q.y(m[2],m[3]),e.scale(m[1],m[1],j,k)):e.scale(m[1],m[1],m[2],m[3]):5==n&&(p?(j=q.x(m[3],m[4]),k=q.y(m[3],m[4]),e.scale(m[1],m[2],j,k)):e.scale(m[1],m[2],m[3],m[4])):"m"==o&&7==n&&e.add(m[1],m[2],m[3],m[4],m[5],m[6])}return e}function o(a){var b=a.node.ownerSVGElement&&w(a.node.ownerSVGElement)||a.node.parentNode&&w(a.node.parentNode)||c.select("svg")||c(0,0),d=b.select("defs"),e=null==d?!1:d.node;return e||(e=u("defs",b.node).node),e}function p(a){return a.node.ownerSVGElement&&w(a.node.ownerSVGElement)||c.select("svg")}function q(a,b,c){function e(a){if(null==a)return I;if(a==+a)return a;d(j,{width:a});try{return j.getBBox().width}catch(b){return 0}}function f(a){if(null==a)return I;if(a==+a)return a;d(j,{height:a});try{return j.getBBox().height}catch(b){return 0}}function g(d,e){null==b?i[d]=e(a.attr(d)||0):d==b&&(i=e(null==c?a.attr(d)||0:c))}var h=p(a).node,i={},j=h.querySelector(".svg---mgr");switch(j||(j=d("rect"),d(j,{x:-9e9,y:-9e9,width:10,height:10,"class":"svg---mgr",fill:"none"}),h.appendChild(j)),a.type){case"rect":g("rx",e),g("ry",f);case"image":g("width",e),g("height",f);case"text":g("x",e),g("y",f);break;case"circle":g("cx",e),g("cy",f),g("r",e);break;case"ellipse":g("cx",e),g("cy",f),g("rx",e),g("ry",f);break;case"line":g("x1",e),g("x2",e),g("y1",f),g("y2",f);break;case"marker":g("refX",e),g("markerWidth",e),g("refY",f),g("markerHeight",f);break;case"radialGradient":g("fx",e),g("fy",f);break;case"tspan":g("dx",e),g("dy",f);break;default:g(b,e)}return h.removeChild(j),i}function r(a){e(a,"array")||(a=Array.prototype.slice.call(arguments,0));for(var b=0,c=0,d=this.node;this[b];)delete this[b++];for(b=0;b<a.length;b++)"set"==a[b].type?a[b].forEach(function(a){d.appendChild(a.node)}):d.appendChild(a[b].node);var f=d.childNodes;for(b=0;b<f.length;b++)this[c++]=w(f[b]);return this}function s(a){if(a.snap in V)return V[a.snap];var b;try{b=a.ownerSVGElement}catch(c){}this.node=a,b&&(this.paper=new v(b)),this.type=a.tagName||a.nodeName;var d=this.id=S(this);if(this.anims={},this._={transform:[]},a.snap=d,V[d]=this,"g"==this.type&&(this.add=r),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var e in v.prototype)v.prototype[z](e)&&(this[e]=v.prototype[e])}function t(a){this.node=a}function u(a,b){var c=d(a);b.appendChild(c);var e=w(c);return e}function v(a,b){var c,e,f,g=v.prototype;if(a&&a.tagName&&"svg"==a.tagName.toLowerCase()){if(a.snap in V)return V[a.snap];var h=a.ownerDocument;c=new s(a),e=a.getElementsByTagName("desc")[0],f=a.getElementsByTagName("defs")[0],e||(e=d("desc"),e.appendChild(h.createTextNode("Created with Snap")),c.node.appendChild(e)),f||(f=d("defs"),c.node.appendChild(f)),c.defs=f;for(var i in g)g[z](i)&&(c[i]=g[i]);c.paper=c.root=c}else c=u("svg",y.doc.body),d(c.node,{height:b,version:1.1,width:a,xmlns:U});return c}function w(a){return a?a instanceof s||a instanceof t?a:a.tagName&&"svg"==a.tagName.toLowerCase()?new v(a):a.tagName&&"object"==a.tagName.toLowerCase()&&"image/svg+xml"==a.type?new v(a.contentDocument.getElementsByTagName("svg")[0]):new s(a):a}function x(a,b){for(var c=0,d=a.length;d>c;c++){var e={type:a[c].type,attr:a[c].attr()},f=a[c].children();b.push(e),f.length&&x(f,e.childNodes=[])}}c.version="0.5.1",c.toString=function(){return"Snap v"+this.version},c._={};var y={win:a.window,doc:a.window.document};c._.glob=y;var z="hasOwnProperty",A=String,B=parseFloat,C=parseInt,D=Math,E=D.max,F=D.min,G=D.abs,H=(D.pow,D.PI),I=(D.round,""),J=Object.prototype.toString,K=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,L=(c._.separator=/[,\s]+/,/[\s]*,[\s]*/),M={hs:1,rg:1},N=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,O=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,P=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,Q=0,R="S"+(+new Date).toString(36),S=function(a){return(a&&a.type?a.type:I)+R+(Q++).toString(36)},T="http://www.w3.org/1999/xlink",U="http://www.w3.org/2000/svg",V={};c.url=function(a){return"url('#"+a+"')"};c._.$=d,c._.id=S,c.format=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,d){var e=d;return c.replace(b,function(a,b,c,d,f){b=b||d,e&&(b in e&&(e=e[b]),"function"==typeof e&&f&&(e=e()))}),e=(null==e||e==d?a:e)+""};return function(b,d){return A(b).replace(a,function(a,b){return c(a,b,d)})}}(),c._.clone=f,c._.cacher=i,c.rad=k,c.deg=l,c.sin=function(a){return D.sin(c.rad(a))},c.tan=function(a){return D.tan(c.rad(a))},c.cos=function(a){return D.cos(c.rad(a))},c.asin=function(a){return c.deg(D.asin(a))},c.acos=function(a){return c.deg(D.acos(a))},c.atan=function(a){return c.deg(D.atan(a))},c.atan2=function(a){return c.deg(D.atan2(a))},c.angle=j,c.len=function(a,b,d,e){return Math.sqrt(c.len2(a,b,d,e))},c.len2=function(a,b,c,d){return(a-c)*(a-c)+(b-d)*(b-d)},c.closestPoint=function(a,b,c){function d(a){var d=a.x-b,e=a.y-c;return d*d+e*e}for(var e,f,g,h,i=a.node,j=i.getTotalLength(),k=j/i.pathSegList.numberOfItems*.125,l=1/0,m=0;j>=m;m+=k)(h=d(g=i.getPointAtLength(m)))<l&&(e=g,f=m,l=h);for(k*=.5;k>.5;){var n,o,p,q,r,s;(p=f-k)>=0&&(r=d(n=i.getPointAtLength(p)))<l?(e=n,f=p,l=r):(q=f+k)<=j&&(s=d(o=i.getPointAtLength(q)))<l?(e=o,f=q,l=s):k*=.5}return e={x:e.x,y:e.y,length:f,distance:Math.sqrt(l)}},c.is=e,c.snapTo=function(a,b,c){if(c=e(c,"finite")?c:10,e(a,"array")){for(var d=a.length;d--;)if(G(a[d]-b)<=c)return a[d]}else{a=+a;var f=b%a;if(c>f)return b-f;if(f>a-c)return b-f+a}return b},c.getRGB=i(function(a){if(!a||(a=A(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Z};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:Z};if(!(M[z](a.toLowerCase().substring(0,2))||"#"==a.charAt())&&(a=W(a)),!a)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Z};var b,d,f,g,h,i,j=a.match(K);return j?(j[2]&&(f=C(j[2].substring(5),16),d=C(j[2].substring(3,5),16),b=C(j[2].substring(1,3),16)),j[3]&&(f=C((h=j[3].charAt(3))+h,16),d=C((h=j[3].charAt(2))+h,16),b=C((h=j[3].charAt(1))+h,16)),j[4]&&(i=j[4].split(L),b=B(i[0]),"%"==i[0].slice(-1)&&(b*=2.55),d=B(i[1]),"%"==i[1].slice(-1)&&(d*=2.55),f=B(i[2]),"%"==i[2].slice(-1)&&(f*=2.55),"rgba"==j[1].toLowerCase().slice(0,4)&&(g=B(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100)),j[5]?(i=j[5].split(L),b=B(i[0]),"%"==i[0].slice(-1)&&(b/=100),d=B(i[1]),"%"==i[1].slice(-1)&&(d/=100),f=B(i[2]),"%"==i[2].slice(-1)&&(f/=100),("deg"==i[0].slice(-3)||"°"==i[0].slice(-1))&&(b/=360),"hsba"==j[1].toLowerCase().slice(0,4)&&(g=B(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100),c.hsb2rgb(b,d,f,g)):j[6]?(i=j[6].split(L),b=B(i[0]),"%"==i[0].slice(-1)&&(b/=100),d=B(i[1]),"%"==i[1].slice(-1)&&(d/=100),f=B(i[2]),"%"==i[2].slice(-1)&&(f/=100),("deg"==i[0].slice(-3)||"°"==i[0].slice(-1))&&(b/=360),"hsla"==j[1].toLowerCase().slice(0,4)&&(g=B(i[3])),i[3]&&"%"==i[3].slice(-1)&&(g/=100),c.hsl2rgb(b,d,f,g)):(b=F(D.round(b),255),d=F(D.round(d),255),f=F(D.round(f),255),g=F(E(g,0),1),j={r:b,g:d,b:f,toString:Z},j.hex="#"+(16777216|f|d<<8|b<<16).toString(16).slice(1),j.opacity=e(g,"finite")?g:1,j)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:Z}},c),c.hsb=i(function(a,b,d){return c.hsb2rgb(a,b,d).hex}),c.hsl=i(function(a,b,d){return c.hsl2rgb(a,b,d).hex}),c.rgb=i(function(a,b,c,d){if(e(d,"finite")){var f=D.round;return"rgba("+[f(a),f(b),f(c),+d.toFixed(2)]+")"}return"#"+(16777216|c|b<<8|a<<16).toString(16).slice(1)});var W=function(a){var b=y.doc.getElementsByTagName("head")[0]||y.doc.getElementsByTagName("svg")[0],c="rgb(255, 0, 0)";return(W=i(function(a){if("red"==a.toLowerCase())return c;b.style.color=c,b.style.color=a;var d=y.doc.defaultView.getComputedStyle(b,I).getPropertyValue("color");return d==c?null:d}))(a)},X=function(){return"hsb("+[this.h,this.s,this.b]+")"},Y=function(){return"hsl("+[this.h,this.s,this.l]+")"},Z=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"},$=function(a,b,d){if(null==b&&e(a,"object")&&"r"in a&&"g"in a&&"b"in a&&(d=a.b,b=a.g,a=a.r),null==b&&e(a,string)){var f=c.getRGB(a);a=f.r,b=f.g,d=f.b}return(a>1||b>1||d>1)&&(a/=255,b/=255,d/=255),[a,b,d]},_=function(a,b,d,f){a=D.round(255*a),b=D.round(255*b),d=D.round(255*d);var g={r:a,g:b,b:d,opacity:e(f,"finite")?f:1,hex:c.rgb(a,b,d),toString:Z};return e(f,"finite")&&(g.opacity=f),g};c.color=function(a){var b;return e(a,"object")&&"h"in a&&"s"in a&&"b"in a?(b=c.hsb2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.opacity=1,a.hex=b.hex):e(a,"object")&&"h"in a&&"s"in a&&"l"in a?(b=c.hsl2rgb(a),a.r=b.r,a.g=b.g,a.b=b.b,a.opacity=1,a.hex=b.hex):(e(a,"string")&&(a=c.getRGB(a)),e(a,"object")&&"r"in a&&"g"in a&&"b"in a&&!("error"in a)?(b=c.rgb2hsl(a),a.h=b.h,a.s=b.s,a.l=b.l,b=c.rgb2hsb(a),a.v=b.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1,a.error=1)),a.toString=Z,a},c.hsb2rgb=function(a,b,c,d){e(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(c=a.b,b=a.s,d=a.o,a=a.h),a*=360;var f,g,h,i,j;return a=a%360/60,j=c*b,i=j*(1-G(a%2-1)),f=g=h=c-j,a=~~a,f+=[j,i,0,0,i,j][a],g+=[i,j,j,i,0,0][a],h+=[0,0,i,j,j,i][a],_(f,g,h,d)},c.hsl2rgb=function(a,b,c,d){e(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(c=a.l,b=a.s,a=a.h),(a>1||b>1||c>1)&&(a/=360,b/=100,c/=100),a*=360;var f,g,h,i,j;return a=a%360/60,j=2*b*(.5>c?c:1-c),i=j*(1-G(a%2-1)),f=g=h=c-j/2,a=~~a,f+=[j,i,0,0,i,j][a],g+=[i,j,j,i,0,0][a],h+=[0,0,i,j,j,i][a],_(f,g,h,d)},c.rgb2hsb=function(a,b,c){c=$(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g;return f=E(a,b,c),g=f-F(a,b,c),d=0==g?null:f==a?(b-c)/g:f==b?(c-a)/g+2:(a-b)/g+4,d=(d+360)%6*60/360,e=0==g?0:g/f,{h:d,s:e,b:f,toString:X}},c.rgb2hsl=function(a,b,c){c=$(a,b,c),a=c[0],b=c[1],c=c[2];var d,e,f,g,h,i;return g=E(a,b,c),h=F(a,b,c),i=g-h,d=0==i?null:g==a?(b-c)/i:g==b?(c-a)/i+2:(a-b)/i+4,d=(d+360)%6*60/360,f=(g+h)/2,e=0==i?0:.5>f?i/(2*f):i/(2-2*f),{h:d,s:e,l:f,toString:Y}},c.parsePathString=function(a){if(!a)return null;var b=c.path(a);if(b.arr)return c.path.clone(b.arr);var d={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},f=[];return e(a,"array")&&e(a[0],"array")&&(f=c.path.clone(a)),f.length||A(a).replace(N,function(a,b,c){var e=[],g=b.toLowerCase();if(c.replace(P,function(a,b){b&&e.push(+b)}),"m"==g&&e.length>2&&(f.push([b].concat(e.splice(0,2))),g="l",b="m"==b?"l":"L"),"o"==g&&1==e.length&&f.push([b,e[0]]),"r"==g)f.push([b].concat(e));else for(;e.length>=d[g]&&(f.push([b].concat(e.splice(0,d[g]))),d[g]););}),f.toString=c.path.toString,b.arr=c.path.clone(f),f};var aa=c.parseTransformString=function(a){if(!a)return null;var b=[];return e(a,"array")&&e(a[0],"array")&&(b=c.path.clone(a)),b.length||A(a).replace(O,function(a,c,d){var e=[];c.toLowerCase();d.replace(P,function(a,b){b&&e.push(+b)}),b.push([c].concat(e))}),b.toString=c.path.toString,b};c._.svgTransform2string=m,c._.rgTransform=/^[a-z][\s]*-?\.?\d/i,c._.transform2matrix=n,c._unit2px=q;y.doc.contains||y.doc.compareDocumentPosition?function(a,b){var c=9==a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a==d||!(!d||1!=d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)for(;b;)if(b=b.parentNode,b==a)return!0;return!1};c._.getSomeDefs=o,c._.getSomeSVG=p,c.select=function(a){return a=A(a).replace(/([^\\]):/g,"$1\\:"),w(y.doc.querySelector(a))},c.selectAll=function(a){for(var b=y.doc.querySelectorAll(a),d=(c.set||Array)(),e=0;e<b.length;e++)d.push(w(b[e]));return d},setInterval(function(){for(var a in V)if(V[z](a)){var b=V[a],c=b.node;("svg"!=b.type&&!c.ownerSVGElement||"svg"==b.type&&(!c.parentNode||"ownerSVGElement"in c.parentNode&&!c.ownerSVGElement))&&delete V[a]}},1e4),s.prototype.attr=function(a,c){var d=this,f=d.node;if(!a){if(1!=f.nodeType)return{text:f.nodeValue};for(var g=f.attributes,h={},i=0,j=g.length;j>i;i++)h[g[i].nodeName]=g[i].nodeValue;return h}if(e(a,"string")){if(!(arguments.length>1))return b("snap.util.getattr."+a,d).firstDefined();var k={};k[a]=c,a=k}for(var l in a)a[z](l)&&b("snap.util.attr."+l,d,a[l]);return d},c.parse=function(a){var b=y.doc.createDocumentFragment(),c=!0,d=y.doc.createElement("div");if(a=A(a),a.match(/^\s*<\s*svg(?:\s|>)/)||(a="<svg>"+a+"</svg>",c=!1),d.innerHTML=a,a=d.getElementsByTagName("svg")[0])if(c)b=a;else for(;a.firstChild;)b.appendChild(a.firstChild);return new t(b)},c.fragment=function(){for(var a=Array.prototype.slice.call(arguments,0),b=y.doc.createDocumentFragment(),d=0,e=a.length;e>d;d++){var f=a[d];f.node&&f.node.nodeType&&b.appendChild(f.node),f.nodeType&&b.appendChild(f),"string"==typeof f&&b.appendChild(c.parse(f).node)}return new t(b)},c._.make=u,c._.wrap=w,v.prototype.el=function(a,b){var c=u(a,this.node);return b&&c.attr(b),c},s.prototype.children=function(){for(var a=[],b=this.node.childNodes,d=0,e=b.length;e>d;d++)a[d]=c(b[d]);return a},s.prototype.toJSON=function(){var a=[];return x([this],a),a[0]},b.on("snap.util.getattr",function(){var a=b.nt();a=a.substring(a.lastIndexOf(".")+1);var c=a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});return ba[z](c)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(c):d(this.node,a)});var ba={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};b.on("snap.util.attr",function(a){var c=b.nt(),e={};c=c.substring(c.lastIndexOf(".")+1),e[c]=a;var f=c.replace(/-(\w)/gi,function(a,b){return b.toUpperCase()}),g=c.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()});ba[z](g)?this.node.style[f]=null==a?I:a:d(this.node,e)}),function(a){}(v.prototype),c.ajax=function(a,c,d,f){var g=new XMLHttpRequest,h=S();if(g){if(e(c,"function"))f=d,d=c,c=null;else if(e(c,"object")){var i=[];for(var j in c)c.hasOwnProperty(j)&&i.push(encodeURIComponent(j)+"="+encodeURIComponent(c[j]));c=i.join("&")}return g.open(c?"POST":"GET",a,!0),c&&(g.setRequestHeader("X-Requested-With","XMLHttpRequest"),g.setRequestHeader("Content-type","application/x-www-form-urlencoded")),d&&(b.once("snap.ajax."+h+".0",d),b.once("snap.ajax."+h+".200",d),b.once("snap.ajax."+h+".304",d)),g.onreadystatechange=function(){4==g.readyState&&b("snap.ajax."+h+"."+g.status,f,g)},4==g.readyState?g:(g.send(c),g)}},c.load=function(a,b,d){c.ajax(a,function(a){var e=c.parse(a.responseText);d?b.call(d,e):b(e)})};var ca=function(a){var b=a.getBoundingClientRect(),c=a.ownerDocument,d=c.body,e=c.documentElement,f=e.clientTop||d.clientTop||0,h=e.clientLeft||d.clientLeft||0,i=b.top+(g.win.pageYOffset||e.scrollTop||d.scrollTop)-f,j=b.left+(g.win.pageXOffset||e.scrollLeft||d.scrollLeft)-h;return{y:i,x:j}};return c.getElementByPoint=function(a,b){var c=this,d=(c.canvas,y.doc.elementFromPoint(a,b));if(y.win.opera&&"svg"==d.tagName){var e=ca(d),f=d.createSVGRect();f.x=a-e.x,f.y=b-e.y,f.width=f.height=1;var g=d.getIntersectionList(f,null);g.length&&(d=g[g.length-1])}return d?w(d):null},c.plugin=function(a){a(c,s,v,y,t)},y.win.DeeThemes_Snap=c,c}(a||this);return d.plugin(function(c,d,e,f,g){function h(a,b){if(null==b){var d=!0;if(b="linearGradient"==a.type||"radialGradient"==a.type?a.node.getAttribute("gradientTransform"):"pattern"==a.type?a.node.getAttribute("patternTransform"):a.node.getAttribute("transform"),!b)return new c.Matrix;b=c._.svgTransform2string(b)}else b=c._.rgTransform.test(b)?m(b).replace(/\.{3}|\u2026/g,a._.transform||""):c._.svgTransform2string(b),l(b,"array")&&(b=c.path?c.path.toString.call(b):m(b)),a._.transform=b;var e=c._.transform2matrix(b,a.getBBox(1));return d?e:void(a.matrix=e)}function i(a){function b(a,b){var d=o(a.node,b);d=d&&d.match(g),d=d&&d[2],d&&"#"==d.charAt()&&(d=d.substring(1),d&&(i[d]=(i[d]||[]).concat(function(d){var e={};e[b]=c.url(d),o(a.node,e)})))}function d(a){var b=o(a.node,"xlink:href");b&&"#"==b.charAt()&&(b=b.substring(1),b&&(i[b]=(i[b]||[]).concat(function(b){a.attr("xlink:href","#"+b)})))}for(var e,f=a.selectAll("*"),g=/^\s*url\(("|'|)(.*)\1\)\s*$/,h=[],i={},j=0,k=f.length;k>j;j++){e=f[j],b(e,"fill"),b(e,"stroke"),b(e,"filter"),b(e,"mask"),b(e,"clip-path"),d(e);var l=o(e.node,"id");l&&(o(e.node,{id:e.id}),h.push({old:l,id:e.id}))}for(j=0,k=h.length;k>j;j++){var m=i[h[j].old];if(m)for(var n=0,p=m.length;p>n;n++)m[n](h[j].id)}}function j(a){return function(){var b=a?"<"+this.type:"",c=this.node.attributes,d=this.node.childNodes;if(a)for(var e=0,f=c.length;f>e;e++)b+=" "+c[e].name+'="'+c[e].value.replace(/"/g,'\\"')+'"';if(d.length){for(a&&(b+=">"),e=0,f=d.length;f>e;e++)3==d[e].nodeType?b+=d[e].nodeValue:1==d[e].nodeType&&(b+=s(d[e]).toString());a&&(b+="</"+this.type+">")}else a&&(b+="/>");return b}}var k=d.prototype,l=c.is,m=String,n=c._unit2px,o=c._.$,p=c._.make,q=c._.getSomeDefs,r="hasOwnProperty",s=c._.wrap;k.getBBox=function(a){if("tspan"==this.type)return c._.box(this.node.getClientRects().item(0));if(!c.Matrix||!c.path)return this.node.getBBox();var b=this,d=new c.Matrix;if(b.removed)return c._.box();for(;"use"==b.type;)if(a||(d=d.add(b.transform().localMatrix.translate(b.attr("x")||0,b.attr("y")||0))),b.original)b=b.original;else{var e=b.attr("xlink:href");b=b.original=b.node.ownerDocument.getElementById(e.substring(e.indexOf("#")+1))}var f=b._,g=c.path.get[b.type]||c.path.get.deflt;try{return a?(f.bboxwt=g?c.path.getBBox(b.realPath=g(b)):c._.box(b.node.getBBox()),c._.box(f.bboxwt)):(b.realPath=g(b),b.matrix=b.transform().localMatrix,f.bbox=c.path.getBBox(c.path.map(b.realPath,d.add(b.matrix))),c._.box(f.bbox))}catch(h){return c._.box()}};var t=function(){return this.string};k.transform=function(a){var b=this._;if(null==a){for(var d,e=this,f=new c.Matrix(this.node.getCTM()),g=h(this),i=[g],j=new c.Matrix,k=g.toTransformString(),l=m(g)==m(this.matrix)?m(b.transform):k;"svg"!=e.type&&(e=e.parent());)i.push(h(e));for(d=i.length;d--;)j.add(i[d]);return{string:l,globalMatrix:f,totalMatrix:j,localMatrix:g,diffMatrix:f.clone().add(g.invert()),global:f.toTransformString(),total:j.toTransformString(),local:k,toString:t}}return a instanceof c.Matrix?(this.matrix=a,this._.transform=a.toTransformString()):h(this,a),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?o(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?o(this.node,{patternTransform:this.matrix}):o(this.node,{transform:this.matrix})),this},k.parent=function(){return s(this.node.parentNode)},k.append=k.add=function(a){if(a){if("set"==a.type){var b=this;return a.forEach(function(a){b.add(a)}),this}a=s(a),this.node.appendChild(a.node),a.paper=this.paper}return this},k.appendTo=function(a){return a&&(a=s(a),a.append(this)),this},k.prepend=function(a){if(a){if("set"==a.type){var b,c=this;return a.forEach(function(a){b?b.after(a):c.prepend(a),b=a}),this}a=s(a);var d=a.parent();this.node.insertBefore(a.node,this.node.firstChild),this.add&&this.add(),a.paper=this.paper,this.parent()&&this.parent().add(),d&&d.add()}return this},k.prependTo=function(a){return a=s(a),a.prepend(this),this},k.before=function(a){if("set"==a.type){var b=this;return a.forEach(function(a){var c=a.parent();b.node.parentNode.insertBefore(a.node,b.node),c&&c.add()}),this.parent().add(),this}a=s(a);var c=a.parent();return this.node.parentNode.insertBefore(a.node,this.node),this.parent()&&this.parent().add(),c&&c.add(),a.paper=this.paper,this},k.after=function(a){a=s(a);var b=a.parent();return this.node.nextSibling?this.node.parentNode.insertBefore(a.node,this.node.nextSibling):this.node.parentNode.appendChild(a.node),this.parent()&&this.parent().add(),b&&b.add(),a.paper=this.paper,this},k.insertBefore=function(a){a=s(a);var b=this.parent();return a.node.parentNode.insertBefore(this.node,a.node),this.paper=a.paper,b&&b.add(),a.parent()&&a.parent().add(),this},k.insertAfter=function(a){a=s(a);var b=this.parent();return a.node.parentNode.insertBefore(this.node,a.node.nextSibling),this.paper=a.paper,b&&b.add(),a.parent()&&a.parent().add(),this},k.remove=function(){var a=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,a&&a.add(),this},k.select=function(a){return s(this.node.querySelector(a))},k.selectAll=function(a){for(var b=this.node.querySelectorAll(a),d=(c.set||Array)(),e=0;e<b.length;e++)d.push(s(b[e]));return d},k.asPX=function(a,b){return null==b&&(b=this.attr(a)),+n(this,a,b)},k.use=function(){var a,b=this.node.id;return b||(b=this.id,o(this.node,{id:b})),a="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?p(this.type,this.node.parentNode):p("use",this.node.parentNode),o(a.node,{"xlink:href":"#"+b}),a.original=this,a},k.clone=function(){var a=s(this.node.cloneNode(!0));return o(a.node,"id")&&o(a.node,{id:a.id}),i(a),a.insertAfter(this),a},k.toDefs=function(){var a=q(this);return a.appendChild(this.node),this},k.pattern=k.toPattern=function(a,b,c,d){var e=p("pattern",q(this));return null==a&&(a=this.getBBox()),l(a,"object")&&"x"in a&&(b=a.y,c=a.width,d=a.height,a=a.x),o(e.node,{x:a,y:b,width:c,height:d,patternUnits:"userSpaceOnUse",id:e.id,viewBox:[a,b,c,d].join(" ")}),e.node.appendChild(this.node),e},k.marker=function(a,b,c,d,e,f){var g=p("marker",q(this));return null==a&&(a=this.getBBox()),l(a,"object")&&"x"in a&&(b=a.y,c=a.width,d=a.height,e=a.refX||a.cx,f=a.refY||a.cy,a=a.x),o(g.node,{viewBox:[a,b,c,d].join(" "),markerWidth:c,markerHeight:d,orient:"auto",refX:e||0,refY:f||0,id:g.id}),g.node.appendChild(this.node),g};var u={};k.data=function(a,d){var e=u[this.id]=u[this.id]||{};if(0==arguments.length)return b("snap.data.get."+this.id,this,e,null),e;if(1==arguments.length){if(c.is(a,"object")){for(var f in a)a[r](f)&&this.data(f,a[f]);return this}return b("snap.data.get."+this.id,this,e[a],a),e[a]}return e[a]=d,b("snap.data.set."+this.id,this,d,a),this},k.removeData=function(a){return null==a?u[this.id]={}:u[this.id]&&delete u[this.id][a],this},k.outerSVG=k.toString=j(1),k.innerSVG=j(),k.toDataURL=function(){if(a&&a.btoa){var b=this.getBBox(),d=c.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+b.x.toFixed(3),y:+b.y.toFixed(3),width:+b.width.toFixed(3),height:+b.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(d)))}},g.prototype.select=k.select,g.prototype.selectAll=k.selectAll}),d.plugin(function(a,d,e,f,g){function h(a,b,c){return function(d){var e=d.slice(a,b);return 1==e.length&&(e=e[0]),c?c(e):e}}var i=d.prototype,j=a.is,k=String,l="hasOwnProperty",m=function(a,b,d,e){"function"!=typeof d||d.length||(e=d,d=c.linear),this.attr=a,this.dur=b,d&&(this.easing=d),e&&(this.callback=e)};a._.Animation=m,a.animation=function(a,b,c,d){return new m(a,b,c,d)},i.inAnim=function(){var a=this,b=[];for(var c in a.anims)a.anims[l](c)&&!function(a){b.push({anim:new m(a._attrs,a.dur,a.easing,a._callback),mina:a,curStatus:a.status(),status:function(b){return a.status(b)},stop:function(){a.stop()}})}(a.anims[c]);return b},a.animate=function(a,d,e,f,g,h){"function"!=typeof g||g.length||(h=g,g=c.linear);var i=c.time(),j=c(a,d,i,i+f,c.time,e,g);return h&&b.once("mina.finish."+j.id,h),j},i.stop=function(){for(var a=this.inAnim(),b=0,c=a.length;c>b;b++)a[b].stop();return this},i.animate=function(a,d,e,f){"function"!=typeof e||e.length||(f=e,e=c.linear),a instanceof m&&(f=a.callback,e=a.easing,d=a.dur,a=a.attr);var g,i,n,o,p=[],q=[],r={},s=this;for(var t in a)if(a[l](t)){s.equal?(o=s.equal(t,k(a[t])),g=o.from,i=o.to,n=o.f):(g=+s.attr(t),i=+a[t]);var u=j(g,"array")?g.length:1;r[t]=h(p.length,p.length+u,n),p=p.concat(g),q=q.concat(i)}var v=c.time(),w=c(p,q,v,v+d,c.time,function(a){var b={};for(var c in r)r[l](c)&&(b[c]=r[c](a));s.attr(b)},e);return s.anims[w.id]=w,w._attrs=a,w._callback=f,b("snap.animcreated."+s.id,w),b.once("mina.finish."+w.id,function(){b.off("mina.*."+w.id),delete s.anims[w.id],f&&f.call(s)}),b.once("mina.stop."+w.id,function(){b.off("mina.*."+w.id),delete s.anims[w.id]}),s}}),d.plugin(function(a,b,c,d,e){function f(a,b,c,d,e,f){return null==b&&"[object SVGMatrix]"==g.call(a)?(this.a=a.a,this.b=a.b,this.c=a.c,this.d=a.d,this.e=a.e,void(this.f=a.f)):void(null!=a?(this.a=+a,this.b=+b,this.c=+c,this.d=+d,this.e=+e,this.f=+f):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var g=Object.prototype.toString,h=String,i=Math,j="";!function(b){function c(a){return a[0]*a[0]+a[1]*a[1]}function d(a){var b=i.sqrt(c(a));a[0]&&(a[0]/=b),a[1]&&(a[1]/=b)}b.add=function(a,b,c,d,e,g){if(a&&a instanceof f)return this.add(a.a,a.b,a.c,a.d,a.e,a.f);var h=a*this.a+b*this.c,i=a*this.b+b*this.d;return this.e+=e*this.a+g*this.c,this.f+=e*this.b+g*this.d,this.c=c*this.a+d*this.c,this.d=c*this.b+d*this.d,this.a=h,this.b=i,this},f.prototype.multLeft=function(a,b,c,d,e,g){if(a&&a instanceof f)return this.multLeft(a.a,a.b,a.c,a.d,a.e,a.f);var h=a*this.a+c*this.b,i=a*this.c+c*this.d,j=a*this.e+c*this.f+e;return this.b=b*this.a+d*this.b,this.d=b*this.c+d*this.d,this.f=b*this.e+d*this.f+g,this.a=h,this.c=i,this.e=j,this},b.invert=function(){var a=this,b=a.a*a.d-a.b*a.c;return new f(a.d/b,-a.b/b,-a.c/b,a.a/b,(a.c*a.f-a.d*a.e)/b,(a.b*a.e-a.a*a.f)/b)},b.clone=function(){return new f(this.a,this.b,this.c,this.d,this.e,this.f)},b.translate=function(a,b){return this.e+=a*this.a+b*this.c,this.f+=a*this.b+b*this.d,this},b.scale=function(a,b,c,d){return null==b&&(b=a),(c||d)&&this.translate(c,d),this.a*=a,this.b*=a,this.c*=b,this.d*=b,(c||d)&&this.translate(-c,-d),this},b.rotate=function(b,c,d){b=a.rad(b),c=c||0,d=d||0;var e=+i.cos(b).toFixed(9),f=+i.sin(b).toFixed(9);return this.add(e,f,-f,e,c,d),this.add(1,0,0,1,-c,-d)},b.skewX=function(a){return this.skew(a,0)},b.skewY=function(a){return this.skew(0,a)},b.skew=function(b,c){b=b||0,c=c||0,b=a.rad(b),c=a.rad(c);var d=i.tan(b).toFixed(9),e=i.tan(c).toFixed(9);return this.add(1,e,d,1,0,0)},b.x=function(a,b){return a*this.a+b*this.c+this.e},b.y=function(a,b){return a*this.b+b*this.d+this.f},b.get=function(a){return+this[h.fromCharCode(97+a)].toFixed(4)},b.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},b.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},b.determinant=function(){return this.a*this.d-this.b*this.c},b.split=function(){var b={};b.dx=this.e,b.dy=this.f;var e=[[this.a,this.b],[this.c,this.d]];b.scalex=i.sqrt(c(e[0])),d(e[0]),b.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1],e[1]=[e[1][0]-e[0][0]*b.shear,e[1][1]-e[0][1]*b.shear],b.scaley=i.sqrt(c(e[1])),d(e[1]),b.shear/=b.scaley,this.determinant()<0&&(b.scalex=-b.scalex);var f=e[0][1],g=e[1][1];return 0>g?(b.rotate=a.deg(i.acos(g)),0>f&&(b.rotate=360-b.rotate)):b.rotate=a.deg(i.asin(f)),b.isSimple=!(+b.shear.toFixed(9)||b.scalex.toFixed(9)!=b.scaley.toFixed(9)&&b.rotate),b.isSuperSimple=!+b.shear.toFixed(9)&&b.scalex.toFixed(9)==b.scaley.toFixed(9)&&!b.rotate,b.noRotation=!+b.shear.toFixed(9)&&!b.rotate,b},b.toTransformString=function(a){var b=a||this.split();return+b.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(b.scalex=+b.scalex.toFixed(4),b.scaley=+b.scaley.toFixed(4),b.rotate=+b.rotate.toFixed(4),(b.dx||b.dy?"t"+[+b.dx.toFixed(4),+b.dy.toFixed(4)]:j)+(b.rotate?"r"+[+b.rotate.toFixed(4),0,0]:j)+(1!=b.scalex||1!=b.scaley?"s"+[b.scalex,b.scaley,0,0]:j))}}(f.prototype),a.Matrix=f,a.matrix=function(a,b,c,d,e,g){return new f(a,b,c,d,e,g)}}),d.plugin(function(a,c,d,e,f){function g(d){return function(e){if(b.stop(),e instanceof f&&1==e.node.childNodes.length&&("radialGradient"==e.node.firstChild.tagName||"linearGradient"==e.node.firstChild.tagName||"pattern"==e.node.firstChild.tagName)&&(e=e.node.firstChild,n(this).appendChild(e),e=l(e)),e instanceof c)if("radialGradient"==e.type||"linearGradient"==e.type||"pattern"==e.type){e.node.id||p(e.node,{id:e.id});var g=q(e.node.id)}else g=e.attr(d);else if(g=a.color(e),g.error){var h=a(n(this).ownerSVGElement).gradient(e);h?(h.node.id||p(h.node,{id:h.id}),g=q(h.node.id)):g=e}else g=r(g);var i={};i[d]=g,p(this.node,i),this.node.style[d]=t}}function h(a){b.stop(),a==+a&&(a+="px"),this.node.style.fontSize=a}function i(a){for(var b=[],c=a.childNodes,d=0,e=c.length;e>d;d++){var f=c[d];3==f.nodeType&&b.push(f.nodeValue),"tspan"==f.tagName&&(1==f.childNodes.length&&3==f.firstChild.nodeType?b.push(f.firstChild.nodeValue):b.push(i(f)))}return b}function j(){return b.stop(),this.node.style.fontSize}var k=a._.make,l=a._.wrap,m=a.is,n=a._.getSomeDefs,o=/^url\((['"]?)([^)]+)\1\)$/,p=a._.$,q=a.url,r=String,s=a._.separator,t="";a.deurl=function(a){var b=String(a).match(o);return b?b[2]:a},b.on("snap.util.attr.mask",function(a){if(a instanceof c||a instanceof f){if(b.stop(),a instanceof f&&1==a.node.childNodes.length&&(a=a.node.firstChild,n(this).appendChild(a),a=l(a)),"mask"==a.type)var d=a;else d=k("mask",n(this)),d.node.appendChild(a.node);!d.node.id&&p(d.node,{id:d.id}),p(this.node,{mask:q(d.id)})}}),function(a){b.on("snap.util.attr.clip",a),b.on("snap.util.attr.clip-path",a),b.on("snap.util.attr.clipPath",a)}(function(a){if(a instanceof c||a instanceof f){b.stop();for(var d,e=a.node;e;){if("clipPath"===e.nodeName){d=new c(e);break}if("svg"===e.nodeName){d=void 0;break}e=e.parentNode}d||(d=k("clipPath",n(this)),d.node.appendChild(a.node),!d.node.id&&p(d.node,{id:d.id})),p(this.node,{"clip-path":q(d.node.id||d.id)})}}),b.on("snap.util.attr.fill",g("fill")),b.on("snap.util.attr.stroke",g("stroke"));var u=/^([lr])(?:\(([^)]*)\))?(.*)$/i;b.on("snap.util.grad.parse",function(a){function b(a,b){for(var c=(b-h)/(a-i),d=i;a>d;d++)f[d].offset=+(+h+c*(d-i)).toFixed(2);i=a,h=b}a=r(a);var c=a.match(u);if(!c)return null;var d=c[1],e=c[2],f=c[3];e=e.split(/\s*,\s*/).map(function(a){return+a==a?+a:a}),1==e.length&&0==e[0]&&(e=[]),f=f.split("-"),f=f.map(function(a){a=a.split(":");var b={color:a[0]};return a[1]&&(b.offset=parseFloat(a[1])),b});var g=f.length,h=0,i=0;g--;for(var j=0;g>j;j++)"offset"in f[j]&&b(j,f[j].offset);return f[g].offset=f[g].offset||100,b(g,f[g].offset),{type:d,params:e,stops:f}}),b.on("snap.util.attr.d",function(c){b.stop(),m(c,"array")&&m(c[0],"array")&&(c=a.path.toString.call(c)),c=r(c),c.match(/[ruo]/i)&&(c=a.path.toAbsolute(c)),p(this.node,{d:c})})(-1),b.on("snap.util.attr.#text",function(a){b.stop(),a=r(a);for(var c=e.doc.createTextNode(a);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(c)})(-1),b.on("snap.util.attr.path",function(a){b.stop(),this.attr({d:a})})(-1),b.on("snap.util.attr.class",function(a){b.stop(),this.node.className.baseVal=a})(-1),b.on("snap.util.attr.viewBox",function(a){var c;c=m(a,"object")&&"x"in a?[a.x,a.y,a.width,a.height].join(" "):m(a,"array")?a.join(" "):a,p(this.node,{viewBox:c}),b.stop()})(-1),b.on("snap.util.attr.transform",function(a){this.transform(a),b.stop()})(-1),b.on("snap.util.attr.r",function(a){"rect"==this.type&&(b.stop(),p(this.node,{rx:a,ry:a}))})(-1),b.on("snap.util.attr.textpath",function(a){if(b.stop(),"text"==this.type){var d,e,f;if(!a&&this.textPath){for(e=this.textPath;e.node.firstChild;)this.node.appendChild(e.node.firstChild);return e.remove(),void delete this.textPath}if(m(a,"string")){var g=n(this),h=l(g.parentNode).path(a);g.appendChild(h.node),d=h.id,h.attr({id:d})}else a=l(a),a instanceof c&&(d=a.attr("id"),d||(d=a.id,a.attr({id:d})));if(d)if(e=this.textPath,f=this.node,e)e.attr({"xlink:href":"#"+d});else{for(e=p("textPath",{"xlink:href":"#"+d});f.firstChild;)e.appendChild(f.firstChild);f.appendChild(e),this.textPath=l(e)}}})(-1),b.on("snap.util.attr.text",function(a){if("text"==this.type){for(var c=this.node,d=function(a){var b=p("tspan");if(m(a,"array"))for(var c=0;c<a.length;c++)b.appendChild(d(a[c]));else b.appendChild(e.doc.createTextNode(a));return b.normalize&&b.normalize(),b};c.firstChild;)c.removeChild(c.firstChild);for(var f=d(a);f.firstChild;)c.appendChild(f.firstChild)}b.stop()})(-1),b.on("snap.util.attr.fontSize",h)(-1),b.on("snap.util.attr.font-size",h)(-1),b.on("snap.util.getattr.transform",function(){return b.stop(),this.transform()})(-1),b.on("snap.util.getattr.textpath",function(){return b.stop(),this.textPath})(-1),function(){function c(c){return function(){b.stop();var d=e.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+c);return"none"==d?d:a(e.doc.getElementById(d.match(o)[1]))}}function d(a){return function(c){b.stop();var d="marker"+a.charAt(0).toUpperCase()+a.substring(1);if(""==c||!c)return void(this.node.style[d]="none");if("marker"==c.type){var e=c.node.id;return e||p(c.node,{id:c.id}),void(this.node.style[d]=q(e))}}}b.on("snap.util.getattr.marker-end",c("end"))(-1),b.on("snap.util.getattr.markerEnd",c("end"))(-1),b.on("snap.util.getattr.marker-start",c("start"))(-1),b.on("snap.util.getattr.markerStart",c("start"))(-1),b.on("snap.util.getattr.marker-mid",c("mid"))(-1),b.on("snap.util.getattr.markerMid",c("mid"))(-1),b.on("snap.util.attr.marker-end",d("end"))(-1),b.on("snap.util.attr.markerEnd",d("end"))(-1),b.on("snap.util.attr.marker-start",d("start"))(-1),b.on("snap.util.attr.markerStart",d("start"))(-1),b.on("snap.util.attr.marker-mid",d("mid"))(-1),b.on("snap.util.attr.markerMid",d("mid"))(-1)}(),b.on("snap.util.getattr.r",function(){return"rect"==this.type&&p(this.node,"rx")==p(this.node,"ry")?(b.stop(),p(this.node,"rx")):void 0})(-1),b.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){b.stop();var a=i(this.node);return 1==a.length?a[0]:a}})(-1),b.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),b.on("snap.util.getattr.fill",function(c){if(!c){b.stop();var d=b("snap.util.getattr.fill",this,!0).firstDefined();return a(a.deurl(d))||d}})(-1),b.on("snap.util.getattr.stroke",function(c){if(!c){b.stop();var d=b("snap.util.getattr.stroke",this,!0).firstDefined();return a(a.deurl(d))||d}})(-1),b.on("snap.util.getattr.viewBox",function(){b.stop();var c=p(this.node,"viewBox");return c?(c=c.split(s),a._.box(+c[0],+c[1],+c[2],+c[3])):void 0})(-1),b.on("snap.util.getattr.points",function(){var a=p(this.node,"points");return b.stop(),a?a.split(s):void 0})(-1),b.on("snap.util.getattr.path",function(){var a=p(this.node,"d");return b.stop(),a})(-1),b.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),b.on("snap.util.getattr.fontSize",j)(-1),b.on("snap.util.getattr.font-size",j)(-1)}),d.plugin(function(a,b,c,d,e){var f=/\S+/g,g=String,h=b.prototype;h.addClass=function(a){var b,c,d,e,h=g(a||"").match(f)||[],i=this.node,j=i.className.baseVal,k=j.match(f)||[];if(h.length){for(b=0;d=h[b++];)c=k.indexOf(d),~c||k.push(d);e=k.join(" "),j!=e&&(i.className.baseVal=e)}return this},h.removeClass=function(a){var b,c,d,e,h=g(a||"").match(f)||[],i=this.node,j=i.className.baseVal,k=j.match(f)||[];if(k.length){for(b=0;d=h[b++];)c=k.indexOf(d),~c&&k.splice(c,1);e=k.join(" "),j!=e&&(i.className.baseVal=e)}return this},h.hasClass=function(a){var b=this.node,c=b.className.baseVal,d=c.match(f)||[];return!!~d.indexOf(a)},h.toggleClass=function(a,b){if(null!=b)return b?this.addClass(a):this.removeClass(a);var c,d,e,g,h=(a||"").match(f)||[],i=this.node,j=i.className.baseVal,k=j.match(f)||[];for(c=0;e=h[c++];)d=k.indexOf(e),~d?k.splice(d,1):k.push(e);return g=k.join(" "),j!=g&&(i.className.baseVal=g),this}}),d.plugin(function(a,c,d,e,f){function g(a){return a}function h(a){return function(b){return+b.toFixed(3)+a}}var i={"+":function(a,b){return a+b},"-":function(a,b){return a-b},"/":function(a,b){return a/b},"*":function(a,b){return a*b}},j=String,k=/[a-z]+$/i,l=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;b.on("snap.util.attr",function(a){var c=j(a).match(l);if(c){var d=b.nt(),e=d.substring(d.lastIndexOf(".")+1),f=this.attr(e),g={};b.stop();var h=c[3]||"",m=f.match(k),n=i[c[1]];if(m&&m==h?a=n(parseFloat(f),+c[2]):(f=this.asPX(e),a=n(this.asPX(e),this.asPX(e,c[2]+h))),isNaN(f)||isNaN(a))return;g[e]=a,this.attr(g)}})(-10),b.on("snap.util.equal",function(a,c){var d=j(this.attr(a)||""),e=j(c).match(l);if(e){b.stop();var f=e[3]||"",m=d.match(k),n=i[e[1]];return m&&m==f?{from:parseFloat(d),to:n(parseFloat(d),+e[2]),f:h(m)}:(d=this.asPX(a),{from:d,to:n(d,this.asPX(a,e[2]+f)),f:g})}})(-10)}),d.plugin(function(c,d,e,f,g){var h=e.prototype,i=c.is;h.rect=function(a,b,c,d,e,f){var g;return null==f&&(f=e),i(a,"object")&&"[object Object]"==a?g=a:null!=a&&(g={x:a,y:b,width:c,height:d},null!=e&&(g.rx=e,g.ry=f)),this.el("rect",g)},h.circle=function(a,b,c){var d;return i(a,"object")&&"[object Object]"==a?d=a:null!=a&&(d={cx:a,cy:b,r:c}),this.el("circle",d)};var j=function(){function a(){this.parentNode.removeChild(this)}return function(b,c){var d=f.doc.createElement("img"),e=f.doc.body;d.style.cssText="position:absolute;left:-9999em;top:-9999em",d.onload=function(){c.call(d),d.onload=d.onerror=null,e.removeChild(d)},d.onerror=a,e.appendChild(d),d.src=b}}();h.image=function(a,b,d,e,f){var g=this.el("image");if(i(a,"object")&&"src"in a)g.attr(a);else if(null!=a){var h={"xlink:href":a,preserveAspectRatio:"none"};null!=b&&null!=d&&(h.x=b,h.y=d),null!=e&&null!=f?(h.width=e,h.height=f):j(a,function(){c._.$(g.node,{width:this.offsetWidth,height:this.offsetHeight})}),c._.$(g.node,h)}return g},h.ellipse=function(a,b,c,d){var e;return i(a,"object")&&"[object Object]"==a?e=a:null!=a&&(e={cx:a,cy:b,rx:c,ry:d}),this.el("ellipse",e)},h.path=function(a){var b;return i(a,"object")&&!i(a,"array")?b=a:a&&(b={d:a}),this.el("path",b)},h.group=h.g=function(a){var b=this.el("g");return 1==arguments.length&&a&&!a.type?b.attr(a):arguments.length&&b.add(Array.prototype.slice.call(arguments,0)),b},h.svg=function(a,b,c,d,e,f,g,h){var j={};return i(a,"object")&&null==b?j=a:(null!=a&&(j.x=a),null!=b&&(j.y=b),null!=c&&(j.width=c),null!=d&&(j.height=d),null!=e&&null!=f&&null!=g&&null!=h&&(j.viewBox=[e,f,g,h])),this.el("svg",j)},h.mask=function(a){var b=this.el("mask");return 1==arguments.length&&a&&!a.type?b.attr(a):arguments.length&&b.add(Array.prototype.slice.call(arguments,0)),b},h.ptrn=function(a,b,c,d,e,f,g,h){if(i(a,"object"))var j=a;else j={patternUnits:"userSpaceOnUse"},a&&(j.x=a),b&&(j.y=b),null!=c&&(j.width=c),null!=d&&(j.height=d),null!=e&&null!=f&&null!=g&&null!=h?j.viewBox=[e,f,g,h]:j.viewBox=[a||0,b||0,c||0,d||0];return this.el("pattern",j)},h.use=function(a){return null!=a?(a instanceof d&&(a.attr("id")||a.attr({id:c._.id(a)}),a=a.attr("id")),"#"==String(a).charAt()&&(a=a.substring(1)),this.el("use",{"xlink:href":"#"+a})):d.prototype.use.call(this)},h.symbol=function(a,b,c,d){var e={};return null!=a&&null!=b&&null!=c&&null!=d&&(e.viewBox=[a,b,c,d]),this.el("symbol",e)},h.text=function(a,b,c){var d={};return i(a,"object")?d=a:null!=a&&(d={x:a,y:b,text:c||""}),this.el("text",d)},h.line=function(a,b,c,d){var e={};return i(a,"object")?e=a:null!=a&&(e={x1:a,x2:c,y1:b,y2:d}),this.el("line",e)},h.polyline=function(a){arguments.length>1&&(a=Array.prototype.slice.call(arguments,0));var b={};return i(a,"object")&&!i(a,"array")?b=a:null!=a&&(b={points:a}),this.el("polyline",b)},h.polygon=function(a){arguments.length>1&&(a=Array.prototype.slice.call(arguments,0));var b={};return i(a,"object")&&!i(a,"array")?b=a:null!=a&&(b={points:a}),this.el("polygon",b)},function(){function d(){return this.selectAll("stop")}function e(a,b){var d=l("stop"),e={offset:+b+"%"};a=c.color(a),e["stop-color"]=a.hex,a.opacity<1&&(e["stop-opacity"]=a.opacity),l(d,e);for(var f,g=this.stops(),h=0;h<g.length;h++){var i=parseFloat(g[h].attr("offset"));if(i>b){this.node.insertBefore(d,g[h].node),f=!0;break}}return f||this.node.appendChild(d),this}function f(){if("linearGradient"==this.type){var a=l(this.node,"x1")||0,b=l(this.node,"x2")||1,d=l(this.node,"y1")||0,e=l(this.node,"y2")||0;return c._.box(a,d,math.abs(b-a),math.abs(e-d))}var f=this.node.cx||.5,g=this.node.cy||.5,h=this.node.r||0;return c._.box(f-h,g-h,2*h,2*h)}function g(a){var d=a,e=this.stops();if("string"==typeof a&&(d=b("snap.util.grad.parse",null,"l(0,0,0,1)"+a).firstDefined().stops),c.is(d,"array")){for(var f=0;f<e.length;f++)if(d[f]){var g=c.color(d[f].color),h={offset:d[f].offset+"%"};h["stop-color"]=g.hex,g.opacity<1&&(h["stop-opacity"]=g.opacity),e[f].attr(h)}else e[f].remove();for(f=e.length;f<d.length;f++)this.addStop(d[f].color,d[f].offset);return this}}function i(a,c){var d,e=b("snap.util.grad.parse",null,c).firstDefined();if(!e)return null;e.params.unshift(a),d="l"==e.type.toLowerCase()?j.apply(0,e.params):k.apply(0,e.params),e.type!=e.type.toLowerCase()&&l(d.node,{gradientUnits:"userSpaceOnUse"});for(var f=e.stops,g=f.length,h=0;g>h;h++){var i=f[h];d.addStop(i.color,i.offset)}return d}function j(a,b,h,i,j){var k=c._.make("linearGradient",a);return k.stops=d,k.addStop=e,k.getBBox=f,k.setStops=g,null!=b&&l(k.node,{x1:b,y1:h,x2:i,y2:j}),k}function k(a,b,g,h,i,j){var k=c._.make("radialGradient",a);return k.stops=d,k.addStop=e,k.getBBox=f,null!=b&&l(k.node,{cx:b,cy:g,r:h}),null!=i&&null!=j&&l(k.node,{fx:i,fy:j}),k}var l=c._.$;h.gradient=function(a){return i(this.defs,a)},h.gradientLinear=function(a,b,c,d){return j(this.defs,a,b,c,d)},h.gradientRadial=function(a,b,c,d,e){return k(this.defs,a,b,c,d,e)},h.toString=function(){var a,b=this.node.ownerDocument,d=b.createDocumentFragment(),e=b.createElement("div"),f=this.node.cloneNode(!0);return d.appendChild(e),e.appendChild(f),c._.$(f,{xmlns:"http://www.w3.org/2000/svg"}),a=e.innerHTML,d.removeChild(d.firstChild),a},h.toDataURL=function(){return a&&a.btoa?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this))):void 0},h.clear=function(){for(var a,b=this.node.firstChild;b;)a=b.nextSibling,"defs"!=b.tagName?b.parentNode.removeChild(b):h.clear.call({node:b}),b=a}}()}),d.plugin(function(a,b,c,d){function e(a){var b=e.ps=e.ps||{};return b[a]?b[a].sleep=100:b[a]={sleep:100},setTimeout(function(){for(var c in b)b[M](c)&&c!=a&&(b[c].sleep--,!b[c].sleep&&delete b[c])}),b[a]}function f(a,b,c,d){return null==a&&(a=b=c=d=0),null==b&&(b=a.y,c=a.width,d=a.height,a=a.x),{x:a,y:b,width:c,w:c,height:d,h:d,x2:a+c,y2:b+d,cx:a+c/2,cy:b+d/2,r1:P.min(c,d)/2,r2:P.max(c,d)/2,r0:P.sqrt(c*c+d*d)/2,path:y(a,b,c,d),vb:[a,b,c,d].join(" ")}}function g(){return this.join(",").replace(N,"$1")}function h(a){var b=L(a);return b.toString=g,b}function i(a,b,c,d,e,f,g,h,i){return null==i?p(a,b,c,d,e,f,g,h):k(a,b,c,d,e,f,g,h,q(a,b,c,d,e,f,g,h,i))}function j(c,d){function e(a){return+(+a).toFixed(3)}return a._.cacher(function(a,f,g){a instanceof b&&(a=a.attr("d")),a=G(a);for(var h,j,l,m,n,o="",p={},q=0,r=0,s=a.length;s>r;r++){if(l=a[r],"M"==l[0])h=+l[1],j=+l[2];else{if(m=i(h,j,l[1],l[2],l[3],l[4],l[5],l[6]),q+m>f){if(d&&!p.start){if(n=i(h,j,l[1],l[2],l[3],l[4],l[5],l[6],f-q),o+=["C"+e(n.start.x),e(n.start.y),e(n.m.x),e(n.m.y),e(n.x),e(n.y)],g)return o;p.start=o,o=["M"+e(n.x),e(n.y)+"C"+e(n.n.x),e(n.n.y),e(n.end.x),e(n.end.y),e(l[5]),e(l[6])].join(),q+=m,h=+l[5],j=+l[6];continue}if(!c&&!d)return n=i(h,j,l[1],l[2],l[3],l[4],l[5],l[6],f-q)}q+=m,h=+l[5],j=+l[6]}o+=l.shift()+l}return p.end=o,n=c?q:d?p:k(h,j,l[0],l[1],l[2],l[3],l[4],l[5],1)},null,a._.clone)}function k(a,b,c,d,e,f,g,h,i){var j=1-i,k=T(j,3),l=T(j,2),m=i*i,n=m*i,o=k*a+3*l*i*c+3*j*i*i*e+n*g,p=k*b+3*l*i*d+3*j*i*i*f+n*h,q=a+2*i*(c-a)+m*(e-2*c+a),r=b+2*i*(d-b)+m*(f-2*d+b),s=c+2*i*(e-c)+m*(g-2*e+c),t=d+2*i*(f-d)+m*(h-2*f+d),u=j*a+i*c,v=j*b+i*d,w=j*e+i*g,x=j*f+i*h,y=90-180*P.atan2(q-s,r-t)/Q;return{x:o,y:p,m:{x:q,y:r},n:{x:s,y:t},start:{x:u,y:v},end:{x:w,y:x},alpha:y}}function l(b,c,d,e,g,h,i,j){a.is(b,"array")||(b=[b,c,d,e,g,h,i,j]);var k=F.apply(null,b);return f(k.min.x,k.min.y,k.max.x-k.min.x,k.max.y-k.min.y)}function m(a,b,c){return b>=a.x&&b<=a.x+a.width&&c>=a.y&&c<=a.y+a.height}function n(a,b){return a=f(a),b=f(b),m(b,a.x,a.y)||m(b,a.x2,a.y)||m(b,a.x,a.y2)||m(b,a.x2,a.y2)||m(a,b.x,b.y)||m(a,b.x2,b.y)||m(a,b.x,b.y2)||m(a,b.x2,b.y2)||(a.x<b.x2&&a.x>b.x||b.x<a.x2&&b.x>a.x)&&(a.y<b.y2&&a.y>b.y||b.y<a.y2&&b.y>a.y)}function o(a,b,c,d,e){var f=-3*b+9*c-9*d+3*e,g=a*f+6*b-12*c+6*d;return a*g-3*b+3*c}function p(a,b,c,d,e,f,g,h,i){null==i&&(i=1),i=i>1?1:0>i?0:i;for(var j=i/2,k=12,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],m=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],n=0,p=0;k>p;p++){var q=j*l[p]+j,r=o(q,a,c,e,g),s=o(q,b,d,f,h),t=r*r+s*s;n+=m[p]*P.sqrt(t)}return j*n}function q(a,b,c,d,e,f,g,h,i){if(!(0>i||p(a,b,c,d,e,f,g,h)<i)){var j,k=1,l=k/2,m=k-l,n=.01;for(j=p(a,b,c,d,e,f,g,h,m);U(j-i)>n;)l/=2,m+=(i>j?1:-1)*l,j=p(a,b,c,d,e,f,g,h,m);return m}}function r(a,b,c,d,e,f,g,h){if(!(S(a,c)<R(e,g)||R(a,c)>S(e,g)||S(b,d)<R(f,h)||R(b,d)>S(f,h))){var i=(a*d-b*c)*(e-g)-(a-c)*(e*h-f*g),j=(a*d-b*c)*(f-h)-(b-d)*(e*h-f*g),k=(a-c)*(f-h)-(b-d)*(e-g);if(k){var l=i/k,m=j/k,n=+l.toFixed(2),o=+m.toFixed(2);if(!(n<+R(a,c).toFixed(2)||n>+S(a,c).toFixed(2)||n<+R(e,g).toFixed(2)||n>+S(e,g).toFixed(2)||o<+R(b,d).toFixed(2)||o>+S(b,d).toFixed(2)||o<+R(f,h).toFixed(2)||o>+S(f,h).toFixed(2)))return{x:l,y:m}}}}function s(a,b,c){var d=l(a),e=l(b);if(!n(d,e))return c?0:[];for(var f=p.apply(0,a),g=p.apply(0,b),h=~~(f/8),i=~~(g/8),j=[],m=[],o={},q=c?0:[],s=0;h+1>s;s++){var t=k.apply(0,a.concat(s/h));j.push({x:t.x,y:t.y,t:s/h})}for(s=0;i+1>s;s++)t=k.apply(0,b.concat(s/i)),m.push({x:t.x,y:t.y,t:s/i});for(s=0;h>s;s++)for(var u=0;i>u;u++){var v=j[s],w=j[s+1],x=m[u],y=m[u+1],z=U(w.x-v.x)<.001?"y":"x",A=U(y.x-x.x)<.001?"y":"x",B=r(v.x,v.y,w.x,w.y,x.x,x.y,y.x,y.y);if(B){if(o[B.x.toFixed(4)]==B.y.toFixed(4))continue;o[B.x.toFixed(4)]=B.y.toFixed(4);var C=v.t+U((B[z]-v[z])/(w[z]-v[z]))*(w.t-v.t),D=x.t+U((B[A]-x[A])/(y[A]-x[A]))*(y.t-x.t);C>=0&&1>=C&&D>=0&&1>=D&&(c?q++:q.push({x:B.x,y:B.y,t1:C,t2:D}))}}return q}function t(a,b){return v(a,b)}function u(a,b){return v(a,b,1)}function v(a,b,c){a=G(a),b=G(b);for(var d,e,f,g,h,i,j,k,l,m,n=c?0:[],o=0,p=a.length;p>o;o++){var q=a[o];if("M"==q[0])d=h=q[1],e=i=q[2];else{"C"==q[0]?(l=[d,e].concat(q.slice(1)),d=l[6],e=l[7]):(l=[d,e,d,e,h,i,h,i],d=h,e=i);for(var r=0,t=b.length;t>r;r++){var u=b[r];if("M"==u[0])f=j=u[1],g=k=u[2];else{"C"==u[0]?(m=[f,g].concat(u.slice(1)),f=m[6],g=m[7]):(m=[f,g,f,g,j,k,j,k],f=j,g=k);var v=s(l,m,c);if(c)n+=v;else{for(var w=0,x=v.length;x>w;w++)v[w].segment1=o,v[w].segment2=r,v[w].bez1=l,v[w].bez2=m;n=n.concat(v)}}}}}return n}function w(a,b,c){var d=x(a);return m(d,b,c)&&v(a,[["M",b,c],["H",d.x2+10]],1)%2==1}function x(a){var b=e(a);if(b.bbox)return L(b.bbox);if(!a)return f();a=G(a);for(var c,d=0,g=0,h=[],i=[],j=0,k=a.length;k>j;j++)if(c=a[j],"M"==c[0])d=c[1],g=c[2],h.push(d),i.push(g);else{var l=F(d,g,c[1],c[2],c[3],c[4],c[5],c[6]);h=h.concat(l.min.x,l.max.x),i=i.concat(l.min.y,l.max.y),d=c[5],g=c[6]}var m=R.apply(0,h),n=R.apply(0,i),o=S.apply(0,h),p=S.apply(0,i),q=f(m,n,o-m,p-n);return b.bbox=L(q),q}function y(a,b,c,d,e){if(e)return[["M",+a+ +e,b],["l",c-2*e,0],["a",e,e,0,0,1,e,e],["l",0,d-2*e],["a",e,e,0,0,1,-e,e],["l",2*e-c,0],["a",e,e,0,0,1,-e,-e],["l",0,2*e-d],["a",e,e,0,0,1,e,-e],["z"]];var f=[["M",a,b],["l",c,0],["l",0,d],["l",-c,0],["z"]];return f.toString=g,f}function z(a,b,c,d,e){if(null==e&&null==d&&(d=c),a=+a,b=+b,c=+c,d=+d,null!=e)var f=Math.PI/180,h=a+c*Math.cos(-d*f),i=a+c*Math.cos(-e*f),j=b+c*Math.sin(-d*f),k=b+c*Math.sin(-e*f),l=[["M",h,j],["A",c,c,0,+(e-d>180),0,i,k]];else l=[["M",a,b],["m",0,-d],["a",c,d,0,1,1,0,2*d],["a",c,d,0,1,1,0,-2*d],["z"]];return l.toString=g,l}function A(b){var c=e(b),d=String.prototype.toLowerCase;if(c.rel)return h(c.rel);a.is(b,"array")&&a.is(b&&b[0],"array")||(b=a.parsePathString(b));var f=[],i=0,j=0,k=0,l=0,m=0;"M"==b[0][0]&&(i=b[0][1],j=b[0][2],k=i,l=j,m++,f.push(["M",i,j]));for(var n=m,o=b.length;o>n;n++){var p=f[n]=[],q=b[n];if(q[0]!=d.call(q[0]))switch(p[0]=d.call(q[0]),p[0]){case"a":p[1]=q[1],p[2]=q[2],p[3]=q[3],p[4]=q[4],p[5]=q[5],p[6]=+(q[6]-i).toFixed(3),p[7]=+(q[7]-j).toFixed(3);break;case"v":p[1]=+(q[1]-j).toFixed(3);break;case"m":k=q[1],l=q[2];default:for(var r=1,s=q.length;s>r;r++)p[r]=+(q[r]-(r%2?i:j)).toFixed(3)}else{p=f[n]=[],"m"==q[0]&&(k=q[1]+i,l=q[2]+j);for(var t=0,u=q.length;u>t;t++)f[n][t]=q[t]}var v=f[n].length;switch(f[n][0]){case"z":i=k,j=l;break;case"h":i+=+f[n][v-1];break;case"v":j+=+f[n][v-1];break;default:i+=+f[n][v-2],j+=+f[n][v-1]}}return f.toString=g,c.rel=h(f),f}function B(b){var c=e(b);if(c.abs)return h(c.abs);if(K(b,"array")&&K(b&&b[0],"array")||(b=a.parsePathString(b)),!b||!b.length)return[["M",0,0]];var d,f=[],i=0,j=0,k=0,l=0,m=0;"M"==b[0][0]&&(i=+b[0][1],j=+b[0][2],k=i,l=j,m++,f[0]=["M",i,j]);for(var n,o,p=3==b.length&&"M"==b[0][0]&&"R"==b[1][0].toUpperCase()&&"Z"==b[2][0].toUpperCase(),q=m,r=b.length;r>q;q++){if(f.push(n=[]),o=b[q],d=o[0],d!=d.toUpperCase())switch(n[0]=d.toUpperCase(),n[0]){case"A":n[1]=o[1],n[2]=o[2],n[3]=o[3],n[4]=o[4],n[5]=o[5],n[6]=+o[6]+i,n[7]=+o[7]+j;break;case"V":n[1]=+o[1]+j;break;case"H":n[1]=+o[1]+i;break;case"R":for(var s=[i,j].concat(o.slice(1)),t=2,u=s.length;u>t;t++)s[t]=+s[t]+i,s[++t]=+s[t]+j;f.pop(),f=f.concat(I(s,p));break;case"O":f.pop(),s=z(i,j,o[1],o[2]),s.push(s[0]),f=f.concat(s);break;case"U":f.pop(),f=f.concat(z(i,j,o[1],o[2],o[3])),n=["U"].concat(f[f.length-1].slice(-2));break;case"M":k=+o[1]+i,l=+o[2]+j;default:for(t=1,u=o.length;u>t;t++)n[t]=+o[t]+(t%2?i:j)}else if("R"==d)s=[i,j].concat(o.slice(1)),f.pop(),f=f.concat(I(s,p)),n=["R"].concat(o.slice(-2));else if("O"==d)f.pop(),s=z(i,j,o[1],o[2]),s.push(s[0]),f=f.concat(s);else if("U"==d)f.pop(),f=f.concat(z(i,j,o[1],o[2],o[3])),n=["U"].concat(f[f.length-1].slice(-2));else for(var v=0,w=o.length;w>v;v++)n[v]=o[v];if(d=d.toUpperCase(),"O"!=d)switch(n[0]){case"Z":i=+k,j=+l;break;case"H":i=n[1];break;case"V":j=n[1];break;case"M":k=n[n.length-2],l=n[n.length-1];default:i=n[n.length-2],j=n[n.length-1]}}return f.toString=g,c.abs=h(f),f}function C(a,b,c,d){return[a,b,c,d,c,d]}function D(a,b,c,d,e,f){var g=1/3,h=2/3;return[g*a+h*c,g*b+h*d,g*e+h*c,g*f+h*d,e,f]}function E(b,c,d,e,f,g,h,i,j,k){var l,m=120*Q/180,n=Q/180*(+f||0),o=[],p=a._.cacher(function(a,b,c){var d=a*P.cos(c)-b*P.sin(c),e=a*P.sin(c)+b*P.cos(c);return{x:d,y:e}});if(!d||!e)return[b,c,i,j,i,j];if(k)y=k[0],z=k[1],w=k[2],x=k[3];else{l=p(b,c,-n),b=l.x,c=l.y,l=p(i,j,-n),i=l.x,j=l.y;var q=(P.cos(Q/180*f),P.sin(Q/180*f),(b-i)/2),r=(c-j)/2,s=q*q/(d*d)+r*r/(e*e);s>1&&(s=P.sqrt(s),d=s*d,e=s*e);var t=d*d,u=e*e,v=(g==h?-1:1)*P.sqrt(U((t*u-t*r*r-u*q*q)/(t*r*r+u*q*q))),w=v*d*r/e+(b+i)/2,x=v*-e*q/d+(c+j)/2,y=P.asin(((c-x)/e).toFixed(9)),z=P.asin(((j-x)/e).toFixed(9));y=w>b?Q-y:y,z=w>i?Q-z:z,0>y&&(y=2*Q+y),0>z&&(z=2*Q+z),h&&y>z&&(y-=2*Q),!h&&z>y&&(z-=2*Q)}var A=z-y;if(U(A)>m){var B=z,C=i,D=j;z=y+m*(h&&z>y?1:-1),i=w+d*P.cos(z),j=x+e*P.sin(z),o=E(i,j,d,e,f,0,h,C,D,[z,B,w,x])}A=z-y;var F=P.cos(y),G=P.sin(y),H=P.cos(z),I=P.sin(z),J=P.tan(A/4),K=4/3*d*J,L=4/3*e*J,M=[b,c],N=[b+K*G,c-L*F],O=[i+K*I,j-L*H],R=[i,j];if(N[0]=2*M[0]-N[0],N[1]=2*M[1]-N[1],k)return[N,O,R].concat(o);o=[N,O,R].concat(o).join().split(",");for(var S=[],T=0,V=o.length;V>T;T++)S[T]=T%2?p(o[T-1],o[T],n).y:p(o[T],o[T+1],n).x;return S}function F(a,b,c,d,e,f,g,h){for(var i,j,k,l,m,n,o,p,q=[],r=[[],[]],s=0;2>s;++s)if(0==s?(j=6*a-12*c+6*e,i=-3*a+9*c-9*e+3*g,k=3*c-3*a):(j=6*b-12*d+6*f,i=-3*b+9*d-9*f+3*h,k=3*d-3*b),U(i)<1e-12){if(U(j)<1e-12)continue;l=-k/j,l>0&&1>l&&q.push(l)}else o=j*j-4*k*i,p=P.sqrt(o),0>o||(m=(-j+p)/(2*i),m>0&&1>m&&q.push(m),n=(-j-p)/(2*i),n>0&&1>n&&q.push(n));for(var t,u=q.length,v=u;u--;)l=q[u],t=1-l,r[0][u]=t*t*t*a+3*t*t*l*c+3*t*l*l*e+l*l*l*g,r[1][u]=t*t*t*b+3*t*t*l*d+3*t*l*l*f+l*l*l*h;return r[0][v]=a,r[1][v]=b,r[0][v+1]=g,r[1][v+1]=h,r[0].length=r[1].length=v+2,{min:{x:R.apply(0,r[0]),y:R.apply(0,r[1])},max:{x:S.apply(0,r[0]),y:S.apply(0,r[1])}}}function G(a,b){var c=!b&&e(a);if(!b&&c.curve)return h(c.curve);for(var d=B(a),f=b&&B(b),g={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},j=(function(a,b,c){var d,e;if(!a)return["C",b.x,b.y,b.x,b.y,b.x,b.y];switch(!(a[0]in{T:1,Q:1})&&(b.qx=b.qy=null),a[0]){case"M":b.X=a[1],b.Y=a[2];break;case"A":a=["C"].concat(E.apply(0,[b.x,b.y].concat(a.slice(1))));break;case"S":"C"==c||"S"==c?(d=2*b.x-b.bx,e=2*b.y-b.by):(d=b.x,e=b.y),a=["C",d,e].concat(a.slice(1));break;case"T":"Q"==c||"T"==c?(b.qx=2*b.x-b.qx,b.qy=2*b.y-b.qy):(b.qx=b.x,b.qy=b.y),a=["C"].concat(D(b.x,b.y,b.qx,b.qy,a[1],a[2]));break;case"Q":b.qx=a[1],b.qy=a[2],a=["C"].concat(D(b.x,b.y,a[1],a[2],a[3],a[4]));break;case"L":a=["C"].concat(C(b.x,b.y,a[1],a[2]));break;case"H":a=["C"].concat(C(b.x,b.y,a[1],b.y));break;case"V":a=["C"].concat(C(b.x,b.y,b.x,a[1]));break;case"Z":a=["C"].concat(C(b.x,b.y,b.X,b.Y))}return a}),k=function(a,b){if(a[b].length>7){a[b].shift();for(var c=a[b];c.length;)m[b]="A",f&&(n[b]="A"),a.splice(b++,0,["C"].concat(c.splice(0,6)));a.splice(b,1),r=S(d.length,f&&f.length||0)}},l=function(a,b,c,e,g){a&&b&&"M"==a[g][0]&&"M"!=b[g][0]&&(b.splice(g,0,["M",e.x,e.y]),c.bx=0,c.by=0,c.x=a[g][1],c.y=a[g][2],r=S(d.length,f&&f.length||0))},m=[],n=[],o="",p="",q=0,r=S(d.length,f&&f.length||0);r>q;q++){d[q]&&(o=d[q][0]),"C"!=o&&(m[q]=o,q&&(p=m[q-1])),d[q]=j(d[q],g,p),"A"!=m[q]&&"C"==o&&(m[q]="C"),k(d,q),f&&(f[q]&&(o=f[q][0]),"C"!=o&&(n[q]=o,q&&(p=n[q-1])),f[q]=j(f[q],i,p),"A"!=n[q]&&"C"==o&&(n[q]="C"),k(f,q)),l(d,f,g,i,q),l(f,d,i,g,q);var s=d[q],t=f&&f[q],u=s.length,v=f&&t.length;g.x=s[u-2],g.y=s[u-1],g.bx=O(s[u-4])||g.x,g.by=O(s[u-3])||g.y,i.bx=f&&(O(t[v-4])||i.x),i.by=f&&(O(t[v-3])||i.y),i.x=f&&t[v-2],i.y=f&&t[v-1]}return f||(c.curve=h(d)),f?[d,f]:d}function H(a,b){if(!b)return a;var c,d,e,f,g,h,i;for(a=G(a),e=0,g=a.length;g>e;e++)for(i=a[e],f=1,h=i.length;h>f;f+=2)c=b.x(i[f],i[f+1]),d=b.y(i[f],i[f+1]),i[f]=c,i[f+1]=d;return a}function I(a,b){for(var c=[],d=0,e=a.length;e-2*!b>d;d+=2){var f=[{x:+a[d-2],y:+a[d-1]},{x:+a[d],y:+a[d+1]},{x:+a[d+2],y:+a[d+3]},{x:+a[d+4],y:+a[d+5]}];b?d?e-4==d?f[3]={x:+a[0],y:+a[1]}:e-2==d&&(f[2]={x:+a[0],y:+a[1]},f[3]={x:+a[2],y:+a[3]}):f[0]={x:+a[e-2],y:+a[e-1]}:e-4==d?f[3]=f[2]:d||(f[0]={x:+a[d],y:+a[d+1]}),c.push(["C",(-f[0].x+6*f[1].x+f[2].x)/6,(-f[0].y+6*f[1].y+f[2].y)/6,(f[1].x+6*f[2].x-f[3].x)/6,(f[1].y+6*f[2].y-f[3].y)/6,f[2].x,f[2].y])}return c}var J=b.prototype,K=a.is,L=a._.clone,M="hasOwnProperty",N=/,?([a-z]),?/gi,O=parseFloat,P=Math,Q=P.PI,R=P.min,S=P.max,T=P.pow,U=P.abs,V=j(1),W=j(),X=j(0,1),Y=a._unit2px,Z={path:function(a){return a.attr("path")},circle:function(a){var b=Y(a);return z(b.cx,b.cy,b.r)},ellipse:function(a){var b=Y(a);return z(b.cx||0,b.cy||0,b.rx,b.ry)},rect:function(a){var b=Y(a);return y(b.x||0,b.y||0,b.width,b.height,b.rx,b.ry)},image:function(a){var b=Y(a);return y(b.x||0,b.y||0,b.width,b.height)},line:function(a){return"M"+[a.attr("x1")||0,a.attr("y1")||0,a.attr("x2"),a.attr("y2")]},polyline:function(a){return"M"+a.attr("points")},polygon:function(a){return"M"+a.attr("points")+"z"},deflt:function(a){var b=a.node.getBBox();return y(b.x,b.y,b.width,b.height)}};a.path=e,a.path.getTotalLength=V,a.path.getPointAtLength=W,a.path.getSubpath=function(a,b,c){if(this.getTotalLength(a)-c<1e-6)return X(a,b).end;var d=X(a,c,1);return b?X(d,b).end:d},J.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},J.getPointAtLength=function(a){return W(this.attr("d"),a)},J.getSubpath=function(b,c){return a.path.getSubpath(this.attr("d"),b,c)},a._.box=f,a.path.findDotsAtSegment=k,a.path.bezierBBox=l,a.path.isPointInsideBBox=m,a.closest=function(b,c,d,e){for(var g=100,h=f(b-g/2,c-g/2,g,g),i=[],j=d[0].hasOwnProperty("x")?function(a){return{x:d[a].x,y:d[a].y}}:function(a){return{x:d[a],y:e[a]}},k=0;1e6>=g&&!k;){for(var l=0,n=d.length;n>l;l++){var o=j(l);if(m(h,o.x,o.y)){k++,i.push(o);break}}k||(g*=2,h=f(b-g/2,c-g/2,g,g))}if(1e6!=g){var p,q=1/0;for(l=0,n=i.length;n>l;l++){var r=a.len(b,c,i[l].x,i[l].y);q>r&&(q=r,i[l].len=r,p=i[l])}return p}},a.path.isBBoxIntersect=n,a.path.intersection=t,a.path.intersectionNumber=u,a.path.isPointInside=w,a.path.getBBox=x,a.path.get=Z,a.path.toRelative=A,a.path.toAbsolute=B,a.path.toCubic=G,a.path.map=H,a.path.toString=g,a.path.clone=h}),d.plugin(function(a,d,e,f){var g=Math.max,h=Math.min,i=function(a){if(this.items=[],this.bindings={},this.length=0,this.type="set",a)for(var b=0,c=a.length;c>b;b++)a[b]&&(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},j=i.prototype;j.push=function(){for(var a,b,c=0,d=arguments.length;d>c;c++)a=arguments[c],a&&(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this},j.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},j.forEach=function(a,b){for(var c=0,d=this.items.length;d>c;c++)if(a.call(b,this.items[c],c)===!1)return this;return this},j.animate=function(d,e,f,g){"function"!=typeof f||f.length||(g=f,f=c.linear),d instanceof a._.Animation&&(g=d.callback,f=d.easing,e=f.dur,d=d.attr);var h=arguments;if(a.is(d,"array")&&a.is(h[h.length-1],"array"))var i=!0;var j,k=function(){j?this.b=j:j=this.b},l=0,m=this,n=g&&function(){++l==m.length&&g.call(this)};return this.forEach(function(a,c){b.once("snap.animcreated."+a.id,k),i?h[c]&&a.animate.apply(a,h[c]):a.animate(d,e,f,n)})},j.remove=function(){for(;this.length;)this.pop().remove();return this},j.bind=function(a,b,c){var d={};if("function"==typeof b)this.bindings[a]=b;else{var e=c||a;this.bindings[a]=function(a){d[e]=a,b.attr(d)}}return this},j.attr=function(a){var b={};for(var c in a)this.bindings[c]?this.bindings[c](a[c]):b[c]=a[c];for(var d=0,e=this.items.length;e>d;d++)this.items[d].attr(b);return this},j.clear=function(){for(;this.length;)this.pop()},j.splice=function(a,b,c){a=0>a?g(this.length+a,0):a,b=g(0,h(this.length-a,b));var d,e=[],f=[],j=[];for(d=2;d<arguments.length;d++)j.push(arguments[d]);for(d=0;b>d;d++)f.push(this[a+d]);for(;d<this.length-a;d++)e.push(this[a+d]);var k=j.length;for(d=0;d<k+e.length;d++)this.items[a+d]=this[a+d]=k>d?j[d]:e[d-k];for(d=this.items.length=this.length-=b-k;this[d];)delete this[d++];return new i(f)},j.exclude=function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]==a)return this.splice(b,1),!0;return!1},j.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this},j.getBBox=function(){for(var a=[],b=[],c=[],d=[],e=this.items.length;e--;)if(!this.items[e].removed){var f=this.items[e].getBBox();a.push(f.x),b.push(f.y),c.push(f.x+f.width),d.push(f.y+f.height)}return a=h.apply(0,a),b=h.apply(0,b),c=g.apply(0,c),d=g.apply(0,d),{x:a,y:b,x2:c,y2:d,width:c-a,height:d-b,cx:a+(c-a)/2,cy:b+(d-b)/2}},j.clone=function(a){a=new i;for(var b=0,c=this.items.length;c>b;b++)a.push(this.items[b].clone());return a},j.toString=function(){return"Snap‘s set"},j.type="set",a.Set=i,a.set=function(){var a=new i;return arguments.length&&a.push.apply(a,Array.prototype.slice.call(arguments,0)),a}}),d.plugin(function(a,c,d,e){function f(a){var b=a[0];switch(b.toLowerCase()){case"t":return[b,0,0];case"m":return[b,1,0,0,1,0,0];case"r":return 4==a.length?[b,0,a[2],a[3]]:[b,0];case"s":return 5==a.length?[b,1,1,a[3],a[4]]:3==a.length?[b,1,1]:[b,1]}}function g(b,c,d){b=b||new a.Matrix,c=c||new a.Matrix,b=a.parseTransformString(b.toTransformString())||[],c=a.parseTransformString(c.toTransformString())||[];for(var e,g,h,i,j=Math.max(b.length,c.length),k=[],n=[],o=0;j>o;o++){if(h=b[o]||f(c[o]),i=c[o]||f(h),h[0]!=i[0]||"r"==h[0].toLowerCase()&&(h[2]!=i[2]||h[3]!=i[3])||"s"==h[0].toLowerCase()&&(h[3]!=i[3]||h[4]!=i[4])){b=a._.transform2matrix(b,d()),c=a._.transform2matrix(c,d()),k=[["m",b.a,b.b,b.c,b.d,b.e,b.f]],n=[["m",c.a,c.b,c.c,c.d,c.e,c.f]];break}for(k[o]=[],n[o]=[],e=0,g=Math.max(h.length,i.length);g>e;e++)e in h&&(k[o][e]=h[e]),e in i&&(n[o][e]=i[e])}return{from:m(k),to:m(n),f:l(k)}}function h(a){return a}function i(a){return function(b){return+b.toFixed(3)+a}}function j(a){return a.join(" ")}function k(b){return a.rgb(b[0],b[1],b[2],b[3])}function l(a){var b,c,d,e,f,g,h=0,i=[];for(b=0,c=a.length;c>b;b++){for(f="[",g=['"'+a[b][0]+'"'],d=1,e=a[b].length;e>d;d++)g[d]="val["+h++ +"]";f+=g+"]",i[b]=f}return Function("val","return DeeThemes_Snap.path.toString.call(["+i+"])")}function m(a){for(var b=[],c=0,d=a.length;d>c;c++)for(var e=1,f=a[c].length;f>e;e++)b.push(a[c][e]);return b}function n(a){return isFinite(a)}function o(b,c){return a.is(b,"array")&&a.is(c,"array")?b.toString()==c.toString():!1}var p={},q=/[%a-z]+$/i,r=String;p.stroke=p.fill="colour",c.prototype.equal=function(a,c){return b("snap.util.equal",this,a,c).firstDefined()},b.on("snap.util.equal",function(b,c){var d,e,f=r(this.attr(b)||""),s=this;if("colour"==p[b])return d=a.color(f),e=a.color(c),{from:[d.r,d.g,d.b,d.opacity],to:[e.r,e.g,e.b,e.opacity],f:k};if("viewBox"==b)return d=this.attr(b).vb.split(" ").map(Number),e=c.split(" ").map(Number),{from:d,to:e,f:j};if("transform"==b||"gradientTransform"==b||"patternTransform"==b)return"string"==typeof c&&(c=r(c).replace(/\.{3}|\u2026/g,f)),f=this.matrix,c=a._.rgTransform.test(c)?a._.transform2matrix(c,this.getBBox()):a._.transform2matrix(a._.svgTransform2string(c),this.getBBox()),g(f,c,function(){return s.getBBox(1)});if("d"==b||"path"==b)return d=a.path.toCubic(f,c),{from:m(d[0]),to:m(d[1]),f:l(d[0])};if("points"==b)return d=r(f).split(a._.separator),e=r(c).split(a._.separator),{from:d,to:e,f:function(a){return a}};if(n(f)&&n(c))return{from:parseFloat(f),to:parseFloat(c),f:h};var t=f.match(q),u=r(c).match(q);return t&&o(t,u)?{from:parseFloat(f),to:parseFloat(c),f:i(t)}:{from:this.asPX(b),to:this.asPX(b,c),f:h}})}),d.plugin(function(a,c,d,e){for(var f=c.prototype,g="hasOwnProperty",h=("createTouch"in e.doc),i=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],j={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},k=(function(a,b){var c="y"==a?"scrollTop":"scrollLeft",d=b&&b.node?b.node.ownerDocument:e.doc;return d[c in d.documentElement?"documentElement":"body"][c]}),l=function(){return this.originalEvent.preventDefault()},m=function(){return this.originalEvent.stopPropagation()},n=function(a,b,c,d){var e=h&&j[b]?j[b]:b,f=function(e){var f=k("y",d),i=k("x",d);if(h&&j[g](b))for(var n=0,o=e.targetTouches&&e.targetTouches.length;o>n;n++)if(e.targetTouches[n].target==a||a.contains(e.targetTouches[n].target)){var p=e;e=e.targetTouches[n],e.originalEvent=p,e.preventDefault=l,e.stopPropagation=m;break}var q=e.clientX+i,r=e.clientY+f;return c.call(d,e,q,r)};return b!==e&&a.addEventListener(b,f,!1),a.addEventListener(e,f,!1),function(){return b!==e&&a.removeEventListener(b,f,!1),a.removeEventListener(e,f,!1),!0}},o=[],p=function(a){for(var c,d=a.clientX,e=a.clientY,f=k("y"),g=k("x"),i=o.length;i--;){if(c=o[i],h){for(var j,l=a.touches&&a.touches.length;l--;)if(j=a.touches[l],j.identifier==c.el._drag.id||c.el.node.contains(j.target)){d=j.clientX,e=j.clientY,(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();var m=c.el.node;m.nextSibling,m.parentNode,m.style.display;d+=g,e+=f,b("snap.drag.move."+c.el.id,c.move_scope||c.el,d-c.el._drag.x,e-c.el._drag.y,d,e,a)}},q=function(c){a.unmousemove(p).unmouseup(q);for(var d,e=o.length;e--;)d=o[e],d.el._drag={},b("snap.drag.end."+d.el.id,d.end_scope||d.start_scope||d.move_scope||d.el,c),b.off("snap.drag.*."+d.el.id);o=[]},r=i.length;r--;)!function(b){a[b]=f[b]=function(c,d){if(a.is(c,"function"))this.events=this.events||[],this.events.push({name:b,f:c,unbind:n(this.node||document,b,c,d||this)});else for(var e=0,f=this.events.length;f>e;e++)if(this.events[e].name==b)try{this.events[e].f.call(this)}catch(g){}return this},a["un"+b]=f["un"+b]=function(a){for(var c=this.events||[],d=c.length;d--;)if(c[d].name==b&&(c[d].f==a||!a))return c[d].unbind(),c.splice(d,1),!c.length&&delete this.events,this;return this}}(i[r]);f.hover=function(a,b,c,d){return this.mouseover(a,c).mouseout(b,d||c)},f.unhover=function(a,b){return this.unmouseover(a).unmouseout(b)};var s=[];f.drag=function(c,d,e,f,g,h){function i(i,j,l){(i.originalEvent||i).preventDefault(),k._drag.x=j,k._drag.y=l,k._drag.id=i.identifier,!o.length&&a.mousemove(p).mouseup(q),o.push({el:k,move_scope:f,start_scope:g,end_scope:h}),d&&b.on("snap.drag.start."+k.id,d),c&&b.on("snap.drag.move."+k.id,c),e&&b.on("snap.drag.end."+k.id,e),b("snap.drag.start."+k.id,g||f||k,j,l,i)}function j(a,c,d){b("snap.draginit."+k.id,k,a,c,d)}var k=this;if(!arguments.length){var l;return k.drag(function(a,b){this.attr({transform:l+(l?"T":"t")+[a,b]})},function(){l=this.transform().local})}return b.on("snap.draginit."+k.id,i),k._drag={},s.push({el:k,start:i,init:j}),k.mousedown(j),k},f.undrag=function(){for(var c=s.length;c--;)s[c].el==this&&(this.unmousedown(s[c].init),s.splice(c,1),b.unbind("snap.drag.*."+this.id),b.unbind("snap.draginit."+this.id));return!s.length&&a.unmousemove(p).unmouseup(q),this}}),d.plugin(function(a,c,d,e){var f=(c.prototype,d.prototype),g=/^\s*url\((.+)\)/,h=String,i=a._.$;a.filter={},f.filter=function(b){var d=this;"svg"!=d.type&&(d=d.paper);var e=a.parse(h(b)),f=a._.id(),g=(d.node.offsetWidth,d.node.offsetHeight,i("filter"));return i(g,{id:f,filterUnits:"userSpaceOnUse"}),g.appendChild(e.node),d.defs.appendChild(g),new c(g)},b.on("snap.util.getattr.filter",function(){b.stop();var c=i(this.node,"filter");if(c){var d=h(c).match(g);return d&&a.select(d[1])}}),b.on("snap.util.attr.filter",function(d){if(d instanceof c&&"filter"==d.type){b.stop();var e=d.node.id;e||(i(d.node,{id:d.id}),e=d.id),i(this.node,{filter:a.url(e)})}d&&"none"!=d||(b.stop(),this.node.removeAttribute("filter"))}),a.filter.blur=function(b,c){null==b&&(b=2);var d=null==c?b:[b,c];return a.format('<feGaussianBlur stdDeviation="{def}"/>',{def:d})},a.filter.blur.toString=function(){return this()},a.filter.shadow=function(b,c,d,e,f){return null==f&&(null==e?(f=d,d=4,e="#000"):(f=e,e=d,d=4)),null==d&&(d=4),null==f&&(f=1),null==b&&(b=0,c=2),null==c&&(c=b),e=a.color(e),a.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:e,dx:b,dy:c,blur:d,opacity:f})},a.filter.shadow.toString=function(){return this()},a.filter.grayscale=function(b){return null==b&&(b=1),a.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-b),b:.7152-.7152*(1-b),c:.0722-.0722*(1-b),d:.2126-.2126*(1-b),e:.7152+.2848*(1-b),f:.0722-.0722*(1-b),g:.2126-.2126*(1-b),h:.0722+.9278*(1-b)})},a.filter.grayscale.toString=function(){return this()},a.filter.sepia=function(b){return null==b&&(b=1),a.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-b),b:.769-.769*(1-b),c:.189-.189*(1-b),d:.349-.349*(1-b),e:.686+.314*(1-b),f:.168-.168*(1-b),g:.272-.272*(1-b),h:.534-.534*(1-b),i:.131+.869*(1-b)})},a.filter.sepia.toString=function(){return this()},a.filter.saturate=function(b){return null==b&&(b=1),a.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-b})},a.filter.saturate.toString=function(){return this()},a.filter.hueRotate=function(b){return b=b||0,a.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:b})},a.filter.hueRotate.toString=function(){return this()},a.filter.invert=function(b){return null==b&&(b=1),a.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:b,amount2:1-b})},a.filter.invert.toString=function(){return this()},a.filter.brightness=function(b){return null==b&&(b=1),a.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:b})},a.filter.brightness.toString=function(){return this()},a.filter.contrast=function(b){return null==b&&(b=1),a.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:b,amount2:.5-b/2})},a.filter.contrast.toString=function(){return this()}}),d.plugin(function(a,b,c,d,e){var f=a._.box,g=a.is,h=/^[^a-z]*([tbmlrc])/i,i=function(){return"T"+this.dx+","+this.dy};b.prototype.getAlign=function(a,b){null==b&&g(a,"string")&&(b=a,a=null),a=a||this.paper;var c=a.getBBox?a.getBBox():f(a),d=this.getBBox(),e={};switch(b=b&&b.match(h),b=b?b[1].toLowerCase():"c"){case"t":e.dx=0,e.dy=c.y-d.y;break;case"b":e.dx=0,e.dy=c.y2-d.y2;break;case"m":e.dx=0,e.dy=c.cy-d.cy;break;case"l":e.dx=c.x-d.x,e.dy=0;break;case"r":e.dx=c.x2-d.x2,e.dy=0;break;default:e.dx=c.cx-d.cx,e.dy=0}return e.toString=i,e},b.prototype.align=function(a,b){return this.transform("..."+this.getAlign(a,b))}}),d.plugin(function(b,c,d,e){function f(a){a=a.split(/(?=#)/);var b=new String(a[5]);return b[50]=a[0],b[100]=a[1],b[200]=a[2],b[300]=a[3],b[400]=a[4],b[500]=a[5],b[600]=a[6],b[700]=a[7],b[800]=a[8],b[900]=a[9],a[10]&&(b.A100=a[10],b.A200=a[11],b.A400=a[12],b.A700=a[13]),b}var g="#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000",h="#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162",i="#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF",j="#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA",k="#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE",l="#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF",m="#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA",n="#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4",o="#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5",p="#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853",q="#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17",r="#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00",s="#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600",t="#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00",u="#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00",v="#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00",w="#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723",x="#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121",y="#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238";b.mui={},b.flat={},b.mui.red=f(g),b.mui.pink=f(h),b.mui.purple=f(i),b.mui.deeppurple=f(j),b.mui.indigo=f(k),b.mui.blue=f(l),b.mui.lightblue=f(m),b.mui.cyan=f(n),b.mui.teal=f(o),b.mui.green=f(p),b.mui.lightgreen=f(q),b.mui.lime=f(r),b.mui.yellow=f(s),b.mui.amber=f(t),b.mui.orange=f(u),b.mui.deeporange=f(v),b.mui.brown=f(w),b.mui.grey=f(x),b.mui.bluegrey=f(y),b.flat.turquoise="#1abc9c",b.flat.greensea="#16a085",b.flat.sunflower="#f1c40f",b.flat.orange="#f39c12",b.flat.emerland="#2ecc71",b.flat.nephritis="#27ae60",b.flat.carrot="#e67e22",b.flat.pumpkin="#d35400",b.flat.peterriver="#3498db",b.flat.belizehole="#2980b9",b.flat.alizarin="#e74c3c",b.flat.pomegranate="#c0392b",b.flat.amethyst="#9b59b6",b.flat.wisteria="#8e44ad",b.flat.clouds="#ecf0f1",b.flat.silver="#bdc3c7",b.flat.wetasphalt="#34495e",b.flat.midnightblue="#2c3e50",b.flat.concrete="#95a5a6",b.flat.asbestos="#7f8c8d",b.importMUIColors=function(){for(var c in b.mui)b.mui.hasOwnProperty(c)&&(a[c]=b.mui[c])}}),d});
/*!
 * VERSION: 1.20.4
 * DATE: 2018-02-15
 * UPDATES AND DOCS AT: http://greensock.com
 * 
 * Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * This work is subject to the terms at http://greensock.com/standard-license or for
 * Club GreenSock members, the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 **/
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},e=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},f=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=f.prototype.render},g=1e-10,h=c._internals,i=h.isSelector,j=h.isArray,k=f.prototype=c.to({},.1,{}),l=[];f.version="1.20.4",k.constructor=f,k.kill()._gc=!1,f.killTweensOf=f.killDelayedCallsTo=c.killTweensOf,f.getTweensOf=c.getTweensOf,f.lagSmoothing=c.lagSmoothing,f.ticker=c.ticker,f.render=c.render,k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),c.prototype.invalidate.call(this)},k.updateTo=function(a,b){var d,e=this.ratio,f=this.vars.immediateRender||a.immediateRender;b&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(d in a)this.vars[d]=a[d];if(this._initted||f)if(b)this._initted=!1,f&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&c._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var g=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(g,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||f)for(var h,i=1/(1-e),j=this._firstPT;j;)h=j.s+j.c,j.c*=i,j.s=h-j.c,j=j._next;return this},k.render=function(a,b,d){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var e,f,i,j,k,l,m,n,o,p=this._dirty?this.totalDuration():this._totalDuration,q=this._time,r=this._totalTime,s=this._cycle,t=this._duration,u=this._rawPrevTime;if(a>=p-1e-7&&a>=0?(this._totalTime=p,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=t,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(e=!0,f="onComplete",d=d||this._timeline.autoRemoveChildren),0===t&&(this._initted||!this.vars.lazy||d)&&(this._startTime===this._timeline._duration&&(a=0),(0>u||0>=a&&a>=-1e-7||u===g&&"isPause"!==this.data)&&u!==a&&(d=!0,u>g&&(f="onReverseComplete")),this._rawPrevTime=n=!b||a||u===a?a:g)):1e-7>a?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==r||0===t&&u>0)&&(f="onReverseComplete",e=this._reversed),0>a&&(this._active=!1,0===t&&(this._initted||!this.vars.lazy||d)&&(u>=0&&(d=!0),this._rawPrevTime=n=!b||a||u===a?a:g)),this._initted||(d=!0)):(this._totalTime=this._time=a,0!==this._repeat&&(j=t+this._repeatDelay,this._cycle=this._totalTime/j>>0,0!==this._cycle&&this._cycle===this._totalTime/j&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*j,this._yoyo&&0!==(1&this._cycle)&&(this._time=t-this._time,o=this._yoyoEase||this.vars.yoyoEase,o&&(this._yoyoEase||(o!==!0||this._initted?this._yoyoEase=o=o===!0?this._ease:o instanceof Ease?o:Ease.map[o]:(o=this.vars.ease,this._yoyoEase=o=o?o instanceof Ease?o:"function"==typeof o?new Ease(o,this.vars.easeParams):Ease.map[o]||c.defaultEase:c.defaultEase)),this.ratio=o?1-o.getRatio((t-this._time)/t):0)),this._time>t?this._time=t:this._time<0&&(this._time=0)),this._easeType&&!o?(k=this._time/t,l=this._easeType,m=this._easePower,(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===m?k*=k:2===m?k*=k*k:3===m?k*=k*k*k:4===m&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:this._time/t<.5?this.ratio=k/2:this.ratio=1-k/2):o||(this.ratio=this._ease.getRatio(this._time/t))),q===this._time&&!d&&s===this._cycle)return void(r!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!d&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=q,this._totalTime=r,this._rawPrevTime=u,this._cycle=s,h.lazyTweens.push(this),void(this._lazy=[a,b]);!this._time||e||o?e&&this._ease._calcEnd&&!o&&(this.ratio=this._ease.getRatio(0===this._time?0:1)):this.ratio=this._ease.getRatio(this._time/t)}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==q&&a>=0&&(this._active=!0),0===r&&(2===this._initted&&a>0&&this._init(),this._startAt&&(a>=0?this._startAt.render(a,!0,d):f||(f="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===t)&&(b||this._callback("onStart"))),i=this._firstPT;i;)i.f?i.t[i.p](i.c*this.ratio+i.s):i.t[i.p]=i.c*this.ratio+i.s,i=i._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,!0,d),b||(this._totalTime!==r||f)&&this._callback("onUpdate")),this._cycle!==s&&(b||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),f&&(!this._gc||d)&&(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,!0,d),e&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[f]&&this._callback(f),0===t&&this._rawPrevTime===g&&n!==g&&(this._rawPrevTime=0))},f.to=function(a,b,c){return new f(a,b,c)},f.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new f(a,b,c)},f.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new f(a,b,d)},f.staggerTo=f.allTo=function(a,b,g,h,k,m,n){h=h||0;var o,p,q,r,s=0,t=[],u=function(){g.onComplete&&g.onComplete.apply(g.onCompleteScope||this,arguments),k.apply(n||g.callbackScope||this,m||l)},v=g.cycle,w=g.startAt&&g.startAt.cycle;for(j(a)||("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a))),a=a||[],0>h&&(a=d(a),a.reverse(),h*=-1),o=a.length-1,q=0;o>=q;q++){p={};for(r in g)p[r]=g[r];if(v&&(e(p,a,q),null!=p.duration&&(b=p.duration,delete p.duration)),w){w=p.startAt={};for(r in g.startAt)w[r]=g.startAt[r];e(p.startAt,a,q)}p.delay=s+(p.delay||0),q===o&&k&&(p.onComplete=u),t[q]=new f(a[q],b,p),s+=h}return t},f.staggerFrom=f.allFrom=function(a,b,c,d,e,g,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,f.staggerTo(a,b,c,d,e,g,h)},f.staggerFromTo=f.allFromTo=function(a,b,c,d,e,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,f.staggerTo(a,b,d,e,g,h,i)},f.delayedCall=function(a,b,c,d,e){return new f(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,useFrames:e,overwrite:0})},f.set=function(a,b){return new f(a,0,b)},f.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var m=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(m(f,b)),e=d.length),f=f._next;return d},n=f.getAllTweens=function(b){return m(a._rootTimeline,b).concat(m(a._rootFramesTimeline,b))};f.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=n(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},f.killChildTweensOf=function(a,b){if(null!=a){var e,g,k,l,m,n=h.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),i(a)&&(a=d(a)),j(a))for(l=a.length;--l>-1;)f.killChildTweensOf(a[l],b);else{e=[];for(k in n)for(g=n[k].target.parentNode;g;)g===a&&(e=e.concat(n[k].tweens)),g=g.parentNode;for(m=e.length,l=0;m>l;l++)b&&e[l].totalTime(e[l].totalDuration()),e[l]._enabled(!1,!1)}}};var o=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=n(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return f.pauseAll=function(a,b,c){o(!0,a,b,c)},f.resumeAll=function(a,b,c){o(!1,a,b,c)},f.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||g,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},k.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},f},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],i(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));i(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals,g=d._internals={},h=f.isSelector,i=f.isArray,j=f.lazyTweens,k=f.lazyRender,l=_gsScope._gsDefine.globals,m=function(a){var b,c={};for(b in a)c[b]=a[b];return c},n=function(a,b,c){var d,e,f=a.cycle;for(d in f)e=f[d],a[d]="function"==typeof e?e(c,b[c]):e[c%e.length];delete a.cycle},o=g.pauseCallback=function(){},p=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},q=d.prototype=new b;return d.version="1.20.4",q.constructor=d,q.kill()._gc=q._forcingPlayhead=q._hasPause=!1,q.to=function(a,b,d,e){var f=d.repeat&&l.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},q.from=function(a,b,d,e){return this.add((d.repeat&&l.TweenMax||c).from(a,b,d),e)},q.fromTo=function(a,b,d,e,f){var g=e.repeat&&l.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},q.staggerTo=function(a,b,e,f,g,i,j,k){var l,o,q=new d({onComplete:i,onCompleteParams:j,callbackScope:k,smoothChildTiming:this.smoothChildTiming}),r=e.cycle;for("string"==typeof a&&(a=c.selector(a)||a),a=a||[],h(a)&&(a=p(a)),f=f||0,0>f&&(a=p(a),a.reverse(),f*=-1),o=0;o<a.length;o++)l=m(e),l.startAt&&(l.startAt=m(l.startAt),l.startAt.cycle&&n(l.startAt,a,o)),r&&(n(l,a,o),null!=l.duration&&(b=l.duration,delete l.duration)),q.to(a[o],b,l,o*f);return this.add(q,g)},q.staggerFrom=function(a,b,c,d,e,f,g,h){return c.immediateRender=0!=c.immediateRender,c.runBackwards=!0,this.staggerTo(a,b,c,d,e,f,g,h)},q.staggerFromTo=function(a,b,c,d,e,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,this.staggerTo(a,b,d,e,f,g,h,i)},q.call=function(a,b,d,e){return this.add(c.delayedCall(0,a,b,d),e)},q.set=function(a,b,d){return d=this._parseTimeOrLabel(d,0,!0),null==b.immediateRender&&(b.immediateRender=d===this._time&&!this._paused),this.add(new c(a,0,b),d)},d.exportRoot=function(a,b){a=a||{},null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var e,f,g,h,i=new d(a),j=i._timeline;for(null==b&&(b=!0),j._remove(i,!0),i._startTime=0,i._rawPrevTime=i._time=i._totalTime=j._time,g=j._first;g;)h=g._next,b&&g instanceof c&&g.target===g.vars.onComplete||(f=g._startTime-g._delay,0>f&&(e=1),i.add(g,f)),g=h;return j.add(i,0),e&&i.totalDuration(),i},q.add=function(e,f,g,h){var j,k,l,m,n,o;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&i(e)){for(g=g||"normal",h=h||0,j=f,k=e.length,l=0;k>l;l++)i(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===g?j=m._startTime+m.totalDuration()/m._timeScale:"start"===g&&(m._startTime-=m.delay())),j+=h;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),e._time&&e.render((this.rawTime()-e._startTime)*e._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(n=this,o=n.rawTime()>e._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},q.remove=function(b){if(b instanceof a){this._remove(b,!1);var c=b._timeline=b.vars.useFrames?a._rootFramesTimeline:a._rootTimeline;return b._startTime=(b._paused?b._pauseTime:c._time)-(b._reversed?b.totalDuration()-b._totalTime:b._totalTime)/b._timeScale,this}if(b instanceof Array||b&&b.push&&i(b)){for(var d=b.length;--d>-1;)this.remove(b[d]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},q._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},q.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},q.insert=q.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},q.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},q.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},q.addPause=function(a,b,d,e){var f=c.delayedCall(0,o,d,e||this);return f.vars.onComplete=f.vars.onReverseComplete=b,f.data="isPause",this._hasPause=!0,this.add(f,a)},q.removeLabel=function(a){return delete this._labels[a],this},q.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},q._parseTimeOrLabel=function(b,c,d,e){var f,g;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&i(e)))for(g=e.length;--g>-1;)e[g]instanceof a&&e[g].timeline===this&&this.remove(e[g]);if(f="number"!=typeof b||c?this.duration()>99999999999?this.recent().endTime(!1):this._duration:0,"string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-f:0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=f);else{if(g=b.indexOf("="),-1===g)return null==this._labels[b]?d?this._labels[b]=f+c:c:this._labels[b]+c;c=parseInt(b.charAt(g-1)+"1",10)*Number(b.substr(g+1)),b=g>1?this._parseTimeOrLabel(b.substr(0,g-1),0,d):f}return Number(b)+c},q.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},q.stop=function(){return this.paused(!0)},q.gotoAndPlay=function(a,b){return this.play(a,b)},q.gotoAndStop=function(a,b){return this.pause(a,b)},q.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,h,i,l,m,n=this._time,o=this._dirty?this.totalDuration():this._totalDuration,p=this._startTime,q=this._timeScale,r=this._paused;if(n!==this._time&&(a+=this._time-n),a>=o-1e-7&&a>=0)this._totalTime=this._time=o,this._reversed||this._hasPausedChild()||(f=!0,h="onComplete",i=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(i=!0,this._rawPrevTime>e&&(h="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=o+1e-4;else if(1e-7>a)if(this._totalTime=this._time=0,(0!==n||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(h="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(i=f=!0,h="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(i=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(i=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!b){if(a>=n)for(d=this._first;d&&d._startTime<=a&&!l;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(l=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!l;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(l=d),d=d._prev;l&&(this._time=a=l._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=a}if(this._time!==n&&this._first||c||i||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==n&&a>0&&(this._active=!0),0===n&&this.vars.onStart&&(0===this._time&&this._duration||b||this._callback("onStart")),m=this._time,m>=n)for(d=this._first;d&&(g=d._next,m===this._time&&(!this._paused||r));)(d._active||d._startTime<=m&&!d._paused&&!d._gc)&&(l===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,m===this._time&&(!this._paused||r));){if(d._active||d._startTime<=n&&!d._paused&&!d._gc){if(l===d){for(l=d._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(a-l._startTime)*l._timeScale:(a-l._startTime)*l._timeScale,b,c),l=l._prev;l=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=g}this._onUpdate&&(b||(j.length&&k(),this._callback("onUpdate"))),h&&(this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||o>=this.totalDuration())&&(f&&(j.length&&k(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[h]&&this._callback(h)))}},q._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},q.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)g._startTime<e||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getChildren(!0,b,d)),h=f.length))),g=g._next;return f},q.getTweensOf=function(a,b){var d,e,f=this._gc,g=[],h=0;for(f&&this._enabled(!0,!0),d=c.getTweensOf(a),e=d.length;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},q.recent=function(){return this._recent},q._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},q.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},q._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},q.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},q.invalidate=function(){for(var b=this._first;b;)b.invalidate(),b=b._next;return a.prototype.invalidate.call(this)},q._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},q.totalTime=function(b,c,d){this._forcingPlayhead=!0;var e=a.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,e},q.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},q.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(e,e._startTime-e._delay),this._calculatingDuration=0):f=e._startTime,e._startTime<0&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale,this._time-=e._startTime,this._totalTime-=e._startTime,this._rawPrevTime-=e._startTime),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return a&&this.totalDuration()?this.timeScale(this._totalDuration/a):this},q.paused=function(b){if(!b)for(var c=this._first,d=this._time;c;)c._startTime===d&&"isPause"===c.data&&(c._rawPrevTime=0),c=c._next;return a.prototype.paused.apply(this,arguments)},q.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},q.rawTime=function(a){return a&&(this._paused||this._repeat&&this.time()>0&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(a)-this._startTime)*this._timeScale},d},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=b._internals,g=f.lazyTweens,h=f.lazyRender,i=_gsScope._gsDefine.globals,j=new c(null,null,1,0),k=d.prototype=new a;return k.constructor=d,k.kill()._gc=!1,d.version="1.20.4",k.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},k.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},k.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},k.removePause=function(b){return this.removeCallback(a._internals.pauseCallback,b)},k.tweenTo=function(a,c){c=c||{};var d,e,f,g={ease:j,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},h=c.repeat&&i.TweenMax||b;for(e in c)g[e]=c[e];return g.time=this._parseTimeOrLabel(a),d=Math.abs(Number(g.time)-this._time)/this._timeScale||.001,f=new h(this,d,g),g.onStart=function(){f.target.paused(!0),f.vars.time===f.target.time()||d!==f.duration()||f.isFromTo||f.duration(Math.abs(f.vars.time-f.target.time())/f.target._timeScale).render(f.time(),!0,!0),c.onStart&&c.onStart.apply(c.onStartScope||c.callbackScope||f,c.onStartParams||[])},f},k.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],callbackScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.isFromTo=1,d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},k.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,i,j,k,l,m,n,o=this._time,p=this._dirty?this.totalDuration():this._totalDuration,q=this._duration,r=this._totalTime,s=this._startTime,t=this._timeScale,u=this._rawPrevTime,v=this._paused,w=this._cycle;if(o!==this._time&&(a+=this._time-o),a>=p-1e-7&&a>=0)this._locked||(this._totalTime=p,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(f=!0,j="onComplete",k=!!this._timeline.autoRemoveChildren,0===this._duration&&(0>=a&&a>=-1e-7||0>u||u===e)&&u!==a&&this._first&&(k=!0,u>e&&(j="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=q,a=q+1e-4);else if(1e-7>a)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==o||0===q&&u!==e&&(u>0||0>a&&u>=0)&&!this._locked)&&(j="onReverseComplete",f=this._reversed),0>a)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(k=f=!0,j="onReverseComplete"):u>=0&&this._first&&(k=!0),this._rawPrevTime=a;else{if(this._rawPrevTime=q||!b||a||this._rawPrevTime===a?a:e,0===a&&f)for(d=this._first;d&&0===d._startTime;)d._duration||(f=!1),d=d._next;a=0,this._initted||(k=!0)}else if(0===q&&0>u&&(k=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(l=q+this._repeatDelay,this._cycle=this._totalTime/l>>0,0!==this._cycle&&this._cycle===this._totalTime/l&&a>=r&&this._cycle--,this._time=this._totalTime-this._cycle*l,this._yoyo&&0!==(1&this._cycle)&&(this._time=q-this._time),this._time>q?(this._time=q,a=q+1e-4):this._time<0?this._time=a=0:a=this._time)),this._hasPause&&!this._forcingPlayhead&&!b){if(a=this._time,a>=o||this._repeat&&w!==this._cycle)for(d=this._first;d&&d._startTime<=a&&!m;)d._duration||"isPause"!==d.data||d.ratio||0===d._startTime&&0===this._rawPrevTime||(m=d),d=d._next;else for(d=this._last;d&&d._startTime>=a&&!m;)d._duration||"isPause"===d.data&&d._rawPrevTime>0&&(m=d),d=d._prev;m&&m._startTime<q&&(this._time=a=m._startTime,this._totalTime=a+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==w&&!this._locked){var x=this._yoyo&&0!==(1&w),y=x===(this._yoyo&&0!==(1&this._cycle)),z=this._totalTime,A=this._cycle,B=this._rawPrevTime,C=this._time;if(this._totalTime=w*q,this._cycle<w?x=!x:this._totalTime+=q,this._time=o,this._rawPrevTime=0===q?u-1e-4:u,this._cycle=w,this._locked=!0,o=x?0:q,this.render(o,b,0===q),b||this._gc||this.vars.onRepeat&&(this._cycle=A,this._locked=!1,this._callback("onRepeat")),o!==this._time)return;if(y&&(this._cycle=w,this._locked=!0,o=x?q+1e-4:-1e-4,this.render(o,!0,!1)),this._locked=!1,this._paused&&!v)return;this._time=C,this._totalTime=z,this._cycle=A,this._rawPrevTime=B}if(!(this._time!==o&&this._first||c||k||m))return void(r!==this._totalTime&&this._onUpdate&&(b||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==r&&a>0&&(this._active=!0),0===r&&this.vars.onStart&&(0===this._totalTime&&this._totalDuration||b||this._callback("onStart")),n=this._time,n>=o)for(d=this._first;d&&(i=d._next,n===this._time&&(!this._paused||v));)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(m===d&&this.pause(),d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=i;else for(d=this._last;d&&(i=d._prev,n===this._time&&(!this._paused||v));){if(d._active||d._startTime<=o&&!d._paused&&!d._gc){if(m===d){for(m=d._prev;m&&m.endTime()>this._time;)m.render(m._reversed?m.totalDuration()-(a-m._startTime)*m._timeScale:(a-m._startTime)*m._timeScale,b,c),m=m._prev;m=null,this.pause()}d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)}d=i}this._onUpdate&&(b||(g.length&&h(),this._callback("onUpdate"))),j&&(this._locked||this._gc||(s===this._startTime||t!==this._timeScale)&&(0===this._time||p>=this.totalDuration())&&(f&&(g.length&&h(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[j]&&this._callback(j)))},k.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},k.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},k.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(b[c].time<a)return b[c].name;return null},k.getLabelsArray=function(){var a,b=[],c=0;for(a in this._labels)b[c++]={time:this._labels[a],name:a};return b.sort(function(a,b){return a.time-b.time}),b},k.invalidate=function(){return this._locked=!1,a.prototype.invalidate.call(this)},k.progress=function(a,b){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),b):this._time/this.duration()||0},k.totalProgress=function(a,b){return arguments.length?this.totalTime(this.totalDuration()*a,b):this._totalTime/this.totalDuration()||0},k.totalDuration=function(b){return arguments.length?-1!==this._repeat&&b?this.timeScale(this.totalDuration()/b):this:(this._dirty&&(a.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},k.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},k.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},k.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},k.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},k.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=_gsScope._gsDefine.globals,g=function(a,b,c,d){c===d&&(c=d-(d-b)/1e6),a===b&&(b=a+(c-a)/1e6),this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},h=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",i=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},j=function(a,e,f,g,h){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,h?(t=b[j],u=c[j],v=(u+t)*e*.25/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-(l-k)*e*.5,p=l+(m-l)*e*.5,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,0!==j?n.b=y:n.b=y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=i(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=i(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},k=function(a,d,e,f){var h,i,j,k,l,m,n=[];if(f)for(a=[f].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=f[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new g(a[0][d],0,0,a[0][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new g(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new g(a[i][d],0,0,a[i+1][d]),n},l=function(a,f,g,i,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":h,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=k(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!i){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q]||0,d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=g?4:1;--n>-1;)o=w[n],p=v[o],j(p,f,g,i,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},m=function(a,b,c){b=b||"soft";var d,e,f,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||a.length<q+1)throw"invalid Bezier data";for(m in a[0])s.push(m);for(j=s.length;--j>-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],f=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new g(d,e,f,h):new g(d,(2*e+d)/3,(2*e+f)/3,f);i.length=n}return p},n=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},o=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],m=[];for(c in a)n(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,m[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=m,h[f]=j,i=0,m=[]);return{length:j,lengths:h,segments:l}},p=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._mod={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},k=i[0],n=b.autoRotate||c.vars.orientToBezier;this._autoRotate=n?n instanceof Array?n:[["x","y","rotation",n===!0?0:Number(n)||0]]:null;for(d in k)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?l(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):m(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=o(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(n=this._autoRotate)for(this._initialRotations=[],n[0]instanceof Array||(this._autoRotate=n=[n]),f=n.length;--f>-1;){for(g=0;3>g;g++)d=n[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=n[f][2],this._initialRotations[f]=(this._func[d]?this._func[d].call(this._target):this._target[d])||0,this._overwriteProps.push(d)}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&(this._l2=k[++e])<=b;);this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(b<this._l1&&e>0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&b<this._l1?this._l1=0:e++,this._l2=k[e],this._li=e,this._curSeg=l=this._segments[e],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(c=e,b-=this._l1,e=this._si,b>this._s2&&e<l.length-1){for(j=l.length-1;j>e&&(this._s2=l[++e])<=b;);this._s1=l[e-1],this._si=e}else if(b<this._s1&&e>0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&b<this._s1?this._s1=0:e++,this._s2=l[e],this._si=e}h=(e+(b-this._s1)/(this._s2-this._s1))*this._prec||0}else c=0>b?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],this._mod[f]&&(i=this._mod[f](i,o)),n[f]?o[f](i):o[f]=i)}}}),q=p.prototype;p.bezierThrough=l,p.cubicToQuadratic=i,p._autoCSS=!0,p.quadraticToCubic=function(a,b,c){return new g(a,(2*b+a)/3,(2*b+c)/3,c)},p._cssRegister=function(){var a=f.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new p;var j,k,l,m=b.values,n=m.length-1,o=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),o[j]=l.end;for(k in b)q[k]=b[k];return q.values=o,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform,l.proxy.rotation=l.autoRotate.rotation||0,g._overwriteProps.push("rotation")),i._onInitTween(l.proxy,q,g._tween),h}})}},q._mod=function(a){for(var b,c=this._overwriteProps,d=c.length;--d>-1;)b=a[c[d]],b&&"function"==typeof b&&(this._mod[c[d]]=b)},q._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);if(d=this._autoRotate)for(c=d.length;--c>-1;)a[d[c][2]]&&d.splice(c,1);return this._super._kill.call(this,a)}}(),_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h=_gsScope._gsDefine.globals,i={},j=g.prototype=new a("css");j.constructor=g,g.version="1.20.4",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",g.defaultSmoothOrigin=!0,j="px",g.suffixMap={top:j,right:j,bottom:j,left:j,width:j,height:j,fontSize:j,padding:j,margin:j,perspective:j,lineHeight:""};var k,l,m,n,o,p,q,r,s=/(?:\-|\.|\b)(\d|\.|e\-)+/g,t=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,u=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,v=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,w=/(?:\d|\-|\+|=|#|\.)*/g,x=/opacity *= *([^)]*)/i,y=/opacity:([^;]*)/i,z=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,B=/([A-Z])/g,C=/-([a-z])/gi,D=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,E=function(a,b){return b.toUpperCase()},F=/(?:Left|Right|Width)/i,G=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,H=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,I=/,(?=[^\)]*(?:\(|$))/gi,J=/[\s,\(]/i,K=Math.PI/180,L=180/Math.PI,M={},N={style:{}},O=_gsScope.document||{createElement:function(){return N}},P=function(a,b){return O.createElementNS?O.createElementNS(b||"http://www.w3.org/1999/xhtml",a):O.createElement(a)},Q=P("div"),R=P("img"),S=g._internals={_specialProps:i},T=(_gsScope.navigator||{}).userAgent||"",U=function(){var a=T.indexOf("Android"),b=P("a");return m=-1!==T.indexOf("Safari")&&-1===T.indexOf("Chrome")&&(-1===a||parseFloat(T.substr(a+8,2))>3),o=m&&parseFloat(T.substr(T.indexOf("Version/")+8,2))<6,n=-1!==T.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(T)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(T))&&(p=parseFloat(RegExp.$1)),b?(b.style.cssText="top:1px;opacity:.55;",/^0.55/.test(b.style.opacity)):!1}(),V=function(a){return x.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},W=function(a){_gsScope.console&&console.log(a)},X="",Y="",Z=function(a,b){b=b||Q;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(Y=3===d?"ms":c[d],X="-"+Y.toLowerCase()+"-",Y+a):null},$=O.defaultView?O.defaultView.getComputedStyle:function(){},_=g.getStyle=function(a,b,c,d,e){var f;return U||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||$(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(B,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):V(a)},aa=S.convertToPixels=function(a,c,d,e,f){if("px"===e||!e&&"lineHeight"!==c)return d;if("auto"===e||!d)return 0;var h,i,j,k=F.test(c),l=a,m=Q.style,n=0>d,o=1===d;if(n&&(d=-d),o&&(d*=100),"lineHeight"!==c||e)if("%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+_(a,"position")+";line-height:0;","%"!==e&&l.appendChild&&"v"!==e.charAt(0)&&"rem"!==e)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||O.body,-1!==_(l,"display").indexOf("flex")&&(m.position="absolute"),i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(Q),h=parseFloat(Q[k?"offsetWidth":"offsetHeight"]),l.removeChild(Q),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=h/d*100),0!==h||f||(h=aa(a,c,d,e,!0))}else i=$(a).lineHeight,a.style.lineHeight=d,h=parseFloat($(a).lineHeight),a.style.lineHeight=i;return o&&(h/=100),n?-h:h},ba=S.calculateOffset=function(a,b,c){if("absolute"!==_(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=_(a,"margin"+d,c);return a["offset"+d]-(aa(a,b,parseFloat(e),e.replace(w,""))||0)},ca=function(a,b){var c,d,e,f={};if(b=b||$(a,null))if(c=b.length)for(;--c>-1;)e=b[c],(-1===e.indexOf("-transform")||Da===e)&&(f[e.replace(C,E)]=b.getPropertyValue(e));else for(c in b)(-1===c.indexOf("Transform")||Ca===c)&&(f[c]=b[c]);else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===f[c]&&(f[c.replace(C,E)]=b[c]);return U||(f.opacity=V(a)),d=Ra(a,b,!1),f.rotation=d.rotation,f.skewX=d.skewX,f.scaleX=d.scaleX,f.scaleY=d.scaleY,f.x=d.x,f.y=d.y,Fa&&(f.z=d.z,f.rotationX=d.rotationX,f.rotationY=d.rotationY,f.scaleZ=d.scaleZ),f.filters&&delete f.filters,f},da=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(v,"")?f:0:ba(a,g),void 0!==j[g]&&(h=new sa(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},ea={width:["Left","Right"],height:["Top","Bottom"]},fa=["marginLeft","marginRight","marginTop","marginBottom"],ga=function(a,b,c){if("svg"===(a.nodeName+"").toLowerCase())return(c||$(a))[b]||0;if(a.getCTM&&Oa(a))return a.getBBox()[b]||0;var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=ea[b],f=e.length;for(c=c||$(a,null);--f>-1;)d-=parseFloat(_(a,"padding"+e[f],c,!0))||0,d-=parseFloat(_(a,"border"+e[f]+"Width",c,!0))||0;return d},ha=function(a,b){if("contain"===a||"auto"===a||"auto auto"===a)return a+" ";(null==a||""===a)&&(a="0 0");var c,d=a.split(" "),e=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":d[0],f=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":d[1];if(d.length>3&&!b){for(d=a.split(", ").join(",").split(","),a=[],c=0;c<d.length;c++)a.push(ha(d[c]));return a.join(",")}return null==f?f="center"===e?"50%":"0":"center"===f&&(f="50%"),("center"===e||isNaN(parseFloat(e))&&-1===(e+"").indexOf("="))&&(e="50%"),a=e+" "+f+(d.length>2?" "+d[2]:""),b&&(b.oxp=-1!==e.indexOf("%"),b.oyp=-1!==f.indexOf("%"),b.oxr="="===e.charAt(1),b.oyr="="===f.charAt(1),b.ox=parseFloat(e.replace(v,"")),b.oy=parseFloat(f.replace(v,"")),b.v=a),b||a},ia=function(a,b){return"function"==typeof a&&(a=a(r,q)),"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)||0},ja=function(a,b){return"function"==typeof a&&(a=a(r,q)),null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2))+b:parseFloat(a)||0},ka=function(a,b,c,d){var e,f,g,h,i,j=1e-6;return"function"==typeof a&&(a=a(r,q)),null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),i="="===a.charAt(1),g=(i?parseInt(a.charAt(0)+"1",10)*parseFloat(f[0].substr(2)):parseFloat(f[0]))*(-1===a.indexOf("rad")?1:L)-(i?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(g/e|0)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(g/e|0)*e)),h=b+g),j>h&&h>-j&&(h=0),h},la={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ma=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,255*(1>6*a?b+(c-b)*a*6:.5>a?c:2>3*a?b+(c-b)*(2/3-a)*6:b)+.5|0},na=g.parseColor=function(a,b){var c,d,e,f,g,h,i,j,k,l,m;if(a)if("number"==typeof a)c=[a>>16,a>>8&255,255&a];else{if(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),la[a])c=la[a];else if("#"===a.charAt(0))4===a.length&&(d=a.charAt(1),e=a.charAt(2),f=a.charAt(3),a="#"+d+d+e+e+f+f),a=parseInt(a.substr(1),16),c=[a>>16,a>>8&255,255&a];else if("hsl"===a.substr(0,3))if(c=m=a.match(s),b){if(-1!==a.indexOf("="))return a.match(t)}else g=Number(c[0])%360/360,h=Number(c[1])/100,i=Number(c[2])/100,e=.5>=i?i*(h+1):i+h-i*h,d=2*i-e,c.length>3&&(c[3]=Number(c[3])),c[0]=ma(g+1/3,d,e),c[1]=ma(g,d,e),c[2]=ma(g-1/3,d,e);else c=a.match(s)||la.transparent;c[0]=Number(c[0]),c[1]=Number(c[1]),c[2]=Number(c[2]),c.length>3&&(c[3]=Number(c[3]))}else c=la.black;return b&&!m&&(d=c[0]/255,e=c[1]/255,f=c[2]/255,j=Math.max(d,e,f),k=Math.min(d,e,f),i=(j+k)/2,j===k?g=h=0:(l=j-k,h=i>.5?l/(2-j-k):l/(j+k),g=j===d?(e-f)/l+(f>e?6:0):j===e?(f-d)/l+2:(d-e)/l+4,g*=60),c[0]=g+.5|0,c[1]=100*h+.5|0,c[2]=100*i+.5|0),c},oa=function(a,b){var c,d,e,f=a.match(pa)||[],g=0,h="";if(!f.length)return a;for(c=0;c<f.length;c++)d=f[c],e=a.substr(g,a.indexOf(d,g)-g),g+=e.length+d.length,d=na(d,b),3===d.length&&d.push(1),h+=e+(b?"hsla("+d[0]+","+d[1]+"%,"+d[2]+"%,"+d[3]:"rgba("+d.join(","))+")";return h+a.substr(g)},pa="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(j in la)pa+="|"+j+"\\b";pa=new RegExp(pa+")","gi"),g.colorStringFilter=function(a){var b,c=a[0]+" "+a[1];pa.test(c)&&(b=-1!==c.indexOf("hsl(")||-1!==c.indexOf("hsla("),a[0]=oa(a[0],b),a[1]=oa(a[1],b)),pa.lastIndex=0},b.defaultStringFilter||(b.defaultStringFilter=g.colorStringFilter);var qa=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(pa)||[""])[0]:"",g=a.split(f).join("").match(u)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(s,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(o=a.replace(I,"|").split("|"),n=0;n<o.length;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(pa)||[f])[0],m=a.split(b).join("").match(u)||[],n=m.length,k>n--)for(;++n<k;)m[n]=c?m[(n-1)/2|0]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&I.test(a)){for(f=a.replace(I,"|").split("|"),m=0;m<f.length;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(u)||[],m=b.length,k>m--)for(;++m<k;)b[m]=c?b[(m-1)/2|0]:g[m];return h+b.join(j)+i}:function(a){return a}},ra=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},sa=(S._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f,g=this.data,h=g.proxy,i=g.firstMPT,j=1e-6;i;)b=h[i.v],i.r?b=Math.round(b):j>b&&b>-j&&(b=0),i.t[i.p]=b,i=i._next;if(g.autoRotate&&(g.autoRotate.rotation=g.mod?g.mod(h.rotation,this.t):h.rotation),1===a||0===a)for(i=g.firstMPT,f=1===a?"e":"b";i;){if(c=i.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;d<c.l;d++)e+=c["xn"+d]+c["xs"+(d+1)];c[f]=e}}else c[f]=c.s+c.xs0;i=i._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ta=(S._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=M;for(c._transform=null,M=b,d=k=c.parse(a,b,d,e),M=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(d.type<=1&&(h=d.p,n[h]=d.s+d.c,m[h]=d.s,f||(j=new sa(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new sa(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},S.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ta||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),ua=function(a,b,c,d,e,f){var g=new ta(a,b,c,d-c,e,-1,f);return g.b=c,g.e=g.xs0=d,g},va=g.parseComplex=function(a,b,c,d,e,f,h,i,j,l){c=c||f||"","function"==typeof d&&(d=d(r,q)),h=new ta(a,b,0,0,h,l?2:1,null,!1,i,c,d),d+="",e&&pa.test(d+c)&&(d=[c,d],g.colorStringFilter(d),c=d[0],d=d[1]);var m,n,o,p,u,v,w,x,y,z,A,B,C,D=c.split(", ").join(",").split(" "),E=d.split(", ").join(",").split(" "),F=D.length,G=k!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(-1!==(d+c).indexOf("rgb")||-1!==(d+c).indexOf("hsl")?(D=D.join(" ").replace(I,", ").split(" "),E=E.join(" ").replace(I,", ").split(" ")):(D=D.join(" ").split(",").join(", ").split(" "),E=E.join(" ").split(",").join(", ").split(" ")),F=D.length),F!==E.length&&(D=(f||"").split(" "),F=D.length),h.plugin=j,h.setRatio=l,pa.lastIndex=0,m=0;F>m;m++)if(p=D[m],u=E[m],x=parseFloat(p),x||0===x)h.appendXtra("",x,ia(u,x),u.replace(t,""),G&&-1!==u.indexOf("px"),!0);else if(e&&pa.test(p))B=u.indexOf(")")+1,B=")"+(B?u.substr(B):""),C=-1!==u.indexOf("hsl")&&U,z=u,p=na(p,C),u=na(u,C),y=p.length+u.length>6,y&&!U&&0===u[3]?(h["xs"+h.l]+=h.l?" transparent":"transparent",h.e=h.e.split(E[m]).join("transparent")):(U||(y=!1),C?h.appendXtra(z.substr(0,z.indexOf("hsl"))+(y?"hsla(":"hsl("),p[0],ia(u[0],p[0]),",",!1,!0).appendXtra("",p[1],ia(u[1],p[1]),"%,",!1).appendXtra("",p[2],ia(u[2],p[2]),y?"%,":"%"+B,!1):h.appendXtra(z.substr(0,z.indexOf("rgb"))+(y?"rgba(":"rgb("),p[0],u[0]-p[0],",",!0,!0).appendXtra("",p[1],u[1]-p[1],",",!0).appendXtra("",p[2],u[2]-p[2],y?",":B,!0),y&&(p=p.length<4?1:p[3],h.appendXtra("",p,(u.length<4?1:u[3])-p,B,!1))),pa.lastIndex=0;else if(v=p.match(s)){if(w=u.match(t),!w||w.length!==v.length)return h;for(o=0,n=0;n<v.length;n++)A=v[n],z=p.indexOf(A,o),h.appendXtra(p.substr(o,z-o),Number(A),ia(w[n],A),"",G&&"px"===p.substr(z+A.length,2),0===n),o=z+A.length;h["xs"+h.l]+=p.substr(o)}else h["xs"+h.l]+=h.l||h["xs"+h.l]?" "+u:u;if(-1!==d.indexOf("=")&&h.data){for(B=h.xs0+h.data.s,m=1;m<h.l;m++)B+=h["xs"+m]+h.data["xn"+m];h.e=B+h["xs"+m]}return h.l||(h.type=-1,h.xs0=h.e),h.xfirst||h},wa=9;for(j=ta.prototype,j.l=j.pr=0;--wa>0;)j["xn"+wa]=0,j["xs"+wa]="";j.xs0="",j._next=j._prev=j.xfirst=j.data=j.plugin=j.setRatio=j.rxp=null,j.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&(h||g["xs"+h])?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ta(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var xa=function(a,b){b=b||{},this.p=b.prefix?Z(a)||a:a,i[a]=i[this.p]=this,this.format=b.formatter||qa(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},ya=S._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;d<f.length;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new xa(f[d],b)},za=S._registerPluginProp=function(a){if(!i[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";ya(a,{parser:function(a,c,d,e,f,g,j){var k=h.com.greensock.plugins[b];return k?(k._cssRegister(),i[d].parse(a,c,d,e,f,g,j)):(W("Error: "+b+" js file not loaded."),f)}})}};j=xa.prototype,j.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(I.test(c)||I.test(b)?(h=b.replace(I,"|").split("|"),i=c.replace(I,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(-1===l?h[g]=h[g].split(m).join(""):-1===k&&(h[g]+=" "+m)));b=h.join(", "),c=i.join(", ")}return va(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},j.parse=function(a,b,c,d,f,g,h){return this.parseComplex(a.style,this.format(_(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){ya(a,{parser:function(a,d,e,f,g,h,i){var j=new ta(a,e,0,0,g,2,e,!1,c);return j.plugin=h,j.setRatio=b(a,d,f._tween,e),j},priority:c})},g.useSVGTransformAttr=!0;var Aa,Ba="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Ca=Z("transform"),Da=X+"transform",Ea=Z("transformOrigin"),Fa=null!==Z("perspective"),Ga=S.Transform=function(){this.perspective=parseFloat(g.defaultTransformPerspective)||0,this.force3D=g.defaultForce3D!==!1&&Fa?g.defaultForce3D||"auto":!1},Ha=_gsScope.SVGElement,Ia=function(a,b,c){var d,e=O.createElementNS("http://www.w3.org/2000/svg",a),f=/([a-z])([A-Z])/g;for(d in c)e.setAttributeNS(null,d.replace(f,"$1-$2").toLowerCase(),c[d]);return b.appendChild(e),e},Ja=O.documentElement||{},Ka=function(){var a,b,c,d=p||/Android/i.test(T)&&!_gsScope.chrome;return O.createElementNS&&!d&&(a=Ia("svg",Ja),b=Ia("rect",a,{width:100,height:50,x:100}),c=b.getBoundingClientRect().width,b.style[Ea]="50% 50%",b.style[Ca]="scaleX(0.5)",d=c===b.getBoundingClientRect().width&&!(n&&Fa),Ja.removeChild(a)),d}(),La=function(a,b,c,d,e,f){var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v=a._gsTransform,w=Qa(a,!0);v&&(t=v.xOrigin,u=v.yOrigin),(!d||(h=d.split(" ")).length<2)&&(n=a.getBBox(),0===n.x&&0===n.y&&n.width+n.height===0&&(n={x:parseFloat(a.hasAttribute("x")?a.getAttribute("x"):a.hasAttribute("cx")?a.getAttribute("cx"):0)||0,y:parseFloat(a.hasAttribute("y")?a.getAttribute("y"):a.hasAttribute("cy")?a.getAttribute("cy"):0)||0,width:0,height:0}),b=ha(b).split(" "),h=[(-1!==b[0].indexOf("%")?parseFloat(b[0])/100*n.width:parseFloat(b[0]))+n.x,(-1!==b[1].indexOf("%")?parseFloat(b[1])/100*n.height:parseFloat(b[1]))+n.y]),c.xOrigin=k=parseFloat(h[0]),c.yOrigin=l=parseFloat(h[1]),d&&w!==Pa&&(m=w[0],n=w[1],o=w[2],p=w[3],q=w[4],r=w[5],s=m*p-n*o,s&&(i=k*(p/s)+l*(-o/s)+(o*r-p*q)/s,j=k*(-n/s)+l*(m/s)-(m*r-n*q)/s,k=c.xOrigin=h[0]=i,l=c.yOrigin=h[1]=j)),v&&(f&&(c.xOffset=v.xOffset,c.yOffset=v.yOffset,v=c),e||e!==!1&&g.defaultSmoothOrigin!==!1?(i=k-t,j=l-u,v.xOffset+=i*w[0]+j*w[2]-i,v.yOffset+=i*w[1]+j*w[3]-j):v.xOffset=v.yOffset=0),f||a.setAttribute("data-svg-origin",h.join(" "))},Ma=function(a){var b,c=P("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),d=this.parentNode,e=this.nextSibling,f=this.style.cssText;if(Ja.appendChild(c),c.appendChild(this),this.style.display="block",a)try{b=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ma}catch(g){}else this._originalGetBBox&&(b=this._originalGetBBox());return e?d.insertBefore(this,e):d.appendChild(this),Ja.removeChild(c),this.style.cssText=f,b},Na=function(a){try{return a.getBBox()}catch(b){return Ma.call(a,!0)}},Oa=function(a){return!(!Ha||!a.getCTM||a.parentNode&&!a.ownerSVGElement||!Na(a))},Pa=[1,0,0,1,0,0],Qa=function(a,b){var c,d,e,f,g,h,i=a._gsTransform||new Ga,j=1e5,k=a.style;if(Ca?d=_(a,Da,null,!0):a.currentStyle&&(d=a.currentStyle.filter.match(G),d=d&&4===d.length?[d[0].substr(4),Number(d[2].substr(4)),Number(d[1].substr(4)),d[3].substr(4),i.x||0,i.y||0].join(","):""),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,!Ca||!(h=!$(a)||"none"===$(a).display)&&a.parentNode||(h&&(f=k.display,k.display="block"),a.parentNode||(g=1,Ja.appendChild(a)),d=_(a,Da,null,!0),c=!d||"none"===d||"matrix(1, 0, 0, 1, 0, 0)"===d,f?k.display=f:h&&Va(k,"display"),g&&Ja.removeChild(a)),(i.svg||a.getCTM&&Oa(a))&&(c&&-1!==(k[Ca]+"").indexOf("matrix")&&(d=k[Ca],c=0),e=a.getAttribute("transform"),c&&e&&(e=a.transform.baseVal.consolidate().matrix,d="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")",c=0)),c)return Pa;for(e=(d||"").match(s)||[],wa=e.length;--wa>-1;)f=Number(e[wa]),e[wa]=(g=f-(f|=0))?(g*j+(0>g?-.5:.5)|0)/j+f:f;return b&&e.length>6?[e[0],e[1],e[4],e[5],e[12],e[13]]:e},Ra=S.getTransform=function(a,c,d,e){if(a._gsTransform&&d&&!e)return a._gsTransform;var f,h,i,j,k,l,m=d?a._gsTransform||new Ga:new Ga,n=m.scaleX<0,o=2e-5,p=1e5,q=Fa?parseFloat(_(a,Ea,c,!1,"0 0 0").split(" ")[2])||m.zOrigin||0:0,r=parseFloat(g.defaultTransformPerspective)||0;if(m.svg=!(!a.getCTM||!Oa(a)),m.svg&&(La(a,_(a,Ea,c,!1,"50% 50%")+"",m,a.getAttribute("data-svg-origin")),Aa=g.useSVGTransformAttr||Ka),f=Qa(a),f!==Pa){if(16===f.length){var s,t,u,v,w,x=f[0],y=f[1],z=f[2],A=f[3],B=f[4],C=f[5],D=f[6],E=f[7],F=f[8],G=f[9],H=f[10],I=f[12],J=f[13],K=f[14],M=f[11],N=Math.atan2(D,H);m.zOrigin&&(K=-m.zOrigin,I=F*K-f[12],J=G*K-f[13],K=H*K+m.zOrigin-f[14]),m.rotationX=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=B*v+F*w,t=C*v+G*w,u=D*v+H*w,F=B*-w+F*v,G=C*-w+G*v,H=D*-w+H*v,M=E*-w+M*v,B=s,C=t,D=u),N=Math.atan2(-z,H),m.rotationY=N*L,N&&(v=Math.cos(-N),w=Math.sin(-N),s=x*v-F*w,t=y*v-G*w,u=z*v-H*w,G=y*w+G*v,H=z*w+H*v,M=A*w+M*v,x=s,y=t,z=u),N=Math.atan2(y,x),m.rotation=N*L,N&&(v=Math.cos(N),w=Math.sin(N),s=x*v+y*w,t=B*v+C*w,u=F*v+G*w,y=y*v-x*w,C=C*v-B*w,G=G*v-F*w,x=s,B=t,F=u),m.rotationX&&Math.abs(m.rotationX)+Math.abs(m.rotation)>359.9&&(m.rotationX=m.rotation=0,m.rotationY=180-m.rotationY),N=Math.atan2(B,C),m.scaleX=(Math.sqrt(x*x+y*y+z*z)*p+.5|0)/p,m.scaleY=(Math.sqrt(C*C+D*D)*p+.5|0)/p,m.scaleZ=(Math.sqrt(F*F+G*G+H*H)*p+.5|0)/p,x/=m.scaleX,B/=m.scaleY,y/=m.scaleX,C/=m.scaleY,Math.abs(N)>o?(m.skewX=N*L,B=0,"simple"!==m.skewType&&(m.scaleY*=1/Math.cos(N))):m.skewX=0,m.perspective=M?1/(0>M?-M:M):0,m.x=I,m.y=J,m.z=K,m.svg&&(m.x-=m.xOrigin-(m.xOrigin*x-m.yOrigin*B),m.y-=m.yOrigin-(m.yOrigin*y-m.xOrigin*C))}else if(!Fa||e||!f.length||m.x!==f[4]||m.y!==f[5]||!m.rotationX&&!m.rotationY){var O=f.length>=6,P=O?f[0]:1,Q=f[1]||0,R=f[2]||0,S=O?f[3]:1;m.x=f[4]||0,m.y=f[5]||0,i=Math.sqrt(P*P+Q*Q),j=Math.sqrt(S*S+R*R),k=P||Q?Math.atan2(Q,P)*L:m.rotation||0,l=R||S?Math.atan2(R,S)*L+k:m.skewX||0,m.scaleX=i,m.scaleY=j,m.rotation=k,m.skewX=l,Fa&&(m.rotationX=m.rotationY=m.z=0,m.perspective=r,m.scaleZ=1),m.svg&&(m.x-=m.xOrigin-(m.xOrigin*P+m.yOrigin*R),m.y-=m.yOrigin-(m.xOrigin*Q+m.yOrigin*S))}Math.abs(m.skewX)>90&&Math.abs(m.skewX)<270&&(n?(m.scaleX*=-1,m.skewX+=m.rotation<=0?180:-180,m.rotation+=m.rotation<=0?180:-180):(m.scaleY*=-1,m.skewX+=m.skewX<=0?180:-180)),m.zOrigin=q;for(h in m)m[h]<o&&m[h]>-o&&(m[h]=0)}return d&&(a._gsTransform=m,m.svg&&(Aa&&a.style[Ca]?b.delayedCall(.001,function(){Va(a.style,Ca)}):!Aa&&a.getAttribute("transform")&&b.delayedCall(.001,function(){a.removeAttribute("transform")}))),m},Sa=function(a){var b,c,d=this.data,e=-d.rotation*K,f=e+d.skewX*K,g=1e5,h=(Math.cos(e)*d.scaleX*g|0)/g,i=(Math.sin(e)*d.scaleX*g|0)/g,j=(Math.sin(f)*-d.scaleY*g|0)/g,k=(Math.cos(f)*d.scaleY*g|0)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,o,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,t="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,u=d.x+q*d.xPercent/100,v=d.y+r*d.yPercent/100;if(null!=d.ox&&(n=(d.oxp?q*d.ox*.01:d.ox)-q/2,o=(d.oyp?r*d.oy*.01:d.oy)-r/2,u+=n-(n*h+o*i),v+=o-(n*j+o*k)),s?(n=q/2,o=r/2,t+=", Dx="+(n-(n*h+o*i)+u)+", Dy="+(o-(n*j+o*k)+v)+")"):t+=", sizingMethod='auto expand')",-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=b.replace(H,t):l.filter=t+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===t.indexOf("Dx=0, Dy=0")||x.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf(b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>p?1:-1;for(n=d.ieOffsetX||0,o=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+u),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+v),wa=0;4>wa;wa++)z=fa[wa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):aa(this.t,z,parseFloat(y),y.replace(w,""))||0,A=c!==d[z]?2>wa?-d.ieOffsetX:-d.ieOffsetY:2>wa?n-d.ieOffsetX:o-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===wa||2===wa?1:B)))+"px"}}},Ta=S.set3DTransformRatio=S.setTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation,C=z.rotationX,D=z.rotationY,E=z.scaleX,F=z.scaleY,G=z.scaleZ,H=z.x,I=z.y,J=z.z,L=z.svg,M=z.perspective,N=z.force3D,O=z.skewY,P=z.skewX;if(O&&(P+=O,B+=O),((1===a||0===a)&&"auto"===N&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!N)&&!J&&!M&&!D&&!C&&1===G||Aa&&L||!Fa)return void(B||P||L?(B*=K,x=P*K,y=1e5,c=Math.cos(B)*E,f=Math.sin(B)*E,d=Math.sin(B-x)*-F,g=Math.cos(B-x)*F,x&&"simple"===z.skewType&&(b=Math.tan(x-O*K),b=Math.sqrt(1+b*b),d*=b,g*=b,O&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b)),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset,Aa&&(z.xPercent||z.yPercent)&&(q=this.t.getBBox(),H+=.01*z.xPercent*q.width,I+=.01*z.yPercent*q.height),q=1e-6,q>H&&H>-q&&(H=0),q>I&&I>-q&&(I=0)),u=(c*y|0)/y+","+(f*y|0)/y+","+(d*y|0)/y+","+(g*y|0)/y+","+H+","+I+")",L&&Aa?this.t.setAttribute("transform","matrix("+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+u):A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix(":"matrix(")+E+",0,0,"+F+","+H+","+I+")");if(n&&(q=1e-4,q>E&&E>-q&&(E=G=2e-5),q>F&&F>-q&&(F=G=2e-5),!M||z.z||z.rotationX||z.rotationY||(M=0)),B||P)B*=K,r=c=Math.cos(B),s=f=Math.sin(B),P&&(B-=P*K,r=Math.cos(B),s=Math.sin(B),"simple"===z.skewType&&(b=Math.tan((P-O)*K),b=Math.sqrt(1+b*b),r*=b,s*=b,z.skewY&&(b=Math.tan(O*K),b=Math.sqrt(1+b*b),c*=b,f*=b))),d=-s,g=r;else{if(!(D||C||1!==G||M||L))return void(A[Ca]=(z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) translate3d(":"translate3d(")+H+"px,"+I+"px,"+J+"px)"+(1!==E||1!==F?" scale("+E+","+F+")":""));c=g=1,d=f=0}k=1,e=h=i=j=l=m=0,o=M?-1/M:0,p=z.zOrigin,q=1e-6,v=",",w="0",B=D*K,B&&(r=Math.cos(B),s=Math.sin(B),i=-s,l=o*-s,e=c*s,h=f*s,k=r,o*=r,c*=r,f*=r),B=C*K,B&&(r=Math.cos(B),s=Math.sin(B),b=d*r+e*s,t=g*r+h*s,j=k*s,m=o*s,e=d*-s+e*r,h=g*-s+h*r,k*=r,o*=r,d=b,g=t),1!==G&&(e*=G,h*=G,k*=G,o*=G),1!==F&&(d*=F,g*=F,j*=F,m*=F),1!==E&&(c*=E,f*=E,i*=E,l*=E),(p||L)&&(p&&(H+=e*-p,I+=h*-p,J+=k*-p+p),L&&(H+=z.xOrigin-(z.xOrigin*c+z.yOrigin*d)+z.xOffset,I+=z.yOrigin-(z.xOrigin*f+z.yOrigin*g)+z.yOffset),q>H&&H>-q&&(H=w),q>I&&I>-q&&(I=w),q>J&&J>-q&&(J=0)),u=z.xPercent||z.yPercent?"translate("+z.xPercent+"%,"+z.yPercent+"%) matrix3d(":"matrix3d(",u+=(q>c&&c>-q?w:c)+v+(q>f&&f>-q?w:f)+v+(q>i&&i>-q?w:i),u+=v+(q>l&&l>-q?w:l)+v+(q>d&&d>-q?w:d)+v+(q>g&&g>-q?w:g),C||D||1!==G?(u+=v+(q>j&&j>-q?w:j)+v+(q>m&&m>-q?w:m)+v+(q>e&&e>-q?w:e),u+=v+(q>h&&h>-q?w:h)+v+(q>k&&k>-q?w:k)+v+(q>o&&o>-q?w:o)+v):u+=",0,0,0,0,1,0,",u+=H+v+I+v+J+v+(M?1+-J/M:1)+")",A[Ca]=u};j=Ga.prototype,j.x=j.y=j.z=j.skewX=j.skewY=j.rotation=j.rotationX=j.rotationY=j.zOrigin=j.xPercent=j.yPercent=j.xOffset=j.yOffset=0,j.scaleX=j.scaleY=j.scaleZ=1,ya("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(a,b,c,d,f,h,i){if(d._lastParsedTransform===i)return f;d._lastParsedTransform=i;var j,k=i.scale&&"function"==typeof i.scale?i.scale:0;"function"==typeof i[c]&&(j=i[c],i[c]=b),k&&(i.scale=k(r,a));var l,m,n,o,p,s,t,u,v,w=a._gsTransform,x=a.style,y=1e-6,z=Ba.length,A=i,B={},C="transformOrigin",D=Ra(a,e,!0,A.parseTransform),E=A.transform&&("function"==typeof A.transform?A.transform(r,q):A.transform);if(D.skewType=A.skewType||D.skewType||g.defaultSkewType,d._transform=D,E&&"string"==typeof E&&Ca)m=Q.style,m[Ca]=E,m.display="block",m.position="absolute",O.body.appendChild(Q),l=Ra(Q,null,!1),"simple"===D.skewType&&(l.scaleY*=Math.cos(l.skewX*K)),D.svg&&(s=D.xOrigin,t=D.yOrigin,l.x-=D.xOffset,l.y-=D.yOffset,(A.transformOrigin||A.svgOrigin)&&(E={},La(a,ha(A.transformOrigin),E,A.svgOrigin,A.smoothOrigin,!0),s=E.xOrigin,t=E.yOrigin,l.x-=E.xOffset-D.xOffset,l.y-=E.yOffset-D.yOffset),(s||t)&&(u=Qa(Q,!0),l.x-=s-(s*u[0]+t*u[2]),l.y-=t-(s*u[1]+t*u[3]))),O.body.removeChild(Q),l.perspective||(l.perspective=D.perspective),null!=A.xPercent&&(l.xPercent=ja(A.xPercent,D.xPercent)),null!=A.yPercent&&(l.yPercent=ja(A.yPercent,D.yPercent));else if("object"==typeof A){if(l={scaleX:ja(null!=A.scaleX?A.scaleX:A.scale,D.scaleX),scaleY:ja(null!=A.scaleY?A.scaleY:A.scale,D.scaleY),scaleZ:ja(A.scaleZ,D.scaleZ),x:ja(A.x,D.x),y:ja(A.y,D.y),z:ja(A.z,D.z),xPercent:ja(A.xPercent,D.xPercent),yPercent:ja(A.yPercent,D.yPercent),perspective:ja(A.transformPerspective,D.perspective)},p=A.directionalRotation,null!=p)if("object"==typeof p)for(m in p)A[m]=p[m];else A.rotation=p;"string"==typeof A.x&&-1!==A.x.indexOf("%")&&(l.x=0,l.xPercent=ja(A.x,D.xPercent)),"string"==typeof A.y&&-1!==A.y.indexOf("%")&&(l.y=0,l.yPercent=ja(A.y,D.yPercent)),l.rotation=ka("rotation"in A?A.rotation:"shortRotation"in A?A.shortRotation+"_short":"rotationZ"in A?A.rotationZ:D.rotation,D.rotation,"rotation",B),Fa&&(l.rotationX=ka("rotationX"in A?A.rotationX:"shortRotationX"in A?A.shortRotationX+"_short":D.rotationX||0,D.rotationX,"rotationX",B),l.rotationY=ka("rotationY"in A?A.rotationY:"shortRotationY"in A?A.shortRotationY+"_short":D.rotationY||0,D.rotationY,"rotationY",B)),l.skewX=ka(A.skewX,D.skewX),l.skewY=ka(A.skewY,D.skewY)}for(Fa&&null!=A.force3D&&(D.force3D=A.force3D,o=!0),n=D.force3D||D.z||D.rotationX||D.rotationY||l.z||l.rotationX||l.rotationY||l.perspective,n||null==A.scale||(l.scaleZ=1);--z>-1;)v=Ba[z],E=l[v]-D[v],(E>y||-y>E||null!=A[v]||null!=M[v])&&(o=!0,f=new ta(D,v,D[v],E,f),v in B&&(f.e=B[v]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return E=A.transformOrigin,D.svg&&(E||A.svgOrigin)&&(s=D.xOffset,t=D.yOffset,La(a,ha(E),l,A.svgOrigin,A.smoothOrigin),f=ua(D,"xOrigin",(w?D:l).xOrigin,l.xOrigin,f,C),f=ua(D,"yOrigin",(w?D:l).yOrigin,l.yOrigin,f,C),(s!==D.xOffset||t!==D.yOffset)&&(f=ua(D,"xOffset",w?s:D.xOffset,D.xOffset,f,C),f=ua(D,"yOffset",w?t:D.yOffset,D.yOffset,f,C)),E="0px 0px"),(E||Fa&&n&&D.zOrigin)&&(Ca?(o=!0,v=Ea,E=(E||_(a,v,e,!1,"50% 50%"))+"",f=new ta(x,v,0,0,f,-1,C),f.b=x[v],f.plugin=h,Fa?(m=D.zOrigin,E=E.split(" "),D.zOrigin=(E.length>2&&(0===m||"0px"!==E[2])?parseFloat(E[2]):m)||0,f.xs0=f.e=E[0]+" "+(E[1]||"50%")+" 0px",f=new ta(D,"zOrigin",0,0,f,-1,f.n),f.b=m,f.xs0=f.e=D.zOrigin):f.xs0=f.e=E):ha(E+"",D)),o&&(d._transformType=D.svg&&Aa||!n&&3!==this._transformType?2:3),j&&(i[c]=j),k&&(i.scale=k),f},prefix:!0}),ya("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),ya("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g,h){b=this.format(b);var i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],z=a.style;for(q=parseFloat(a.offsetWidth),r=parseFloat(a.offsetHeight),i=b.split(" "),j=0;j<y.length;j++)this.p.indexOf("border")&&(y[j]=Z(y[j])),m=l=_(a,y[j],e,!1,"0px"),-1!==m.indexOf(" ")&&(l=m.split(" "),m=l[0],l=l[1]),n=k=i[j],o=parseFloat(m),t=m.substr((o+"").length),u="="===n.charAt(1),u?(p=parseInt(n.charAt(0)+"1",10),n=n.substr(2),p*=parseFloat(n),s=n.substr((p+"").length-(0>p?1:0))||""):(p=parseFloat(n),s=n.substr((p+"").length)),""===s&&(s=d[c]||t),s!==t&&(v=aa(a,"borderLeft",o,t),w=aa(a,"borderTop",o,t),"%"===s?(m=v/q*100+"%",l=w/r*100+"%"):"em"===s?(x=aa(a,"borderLeft",1,"em"),m=v/x+"em",l=w/x+"em"):(m=v+"px",l=w+"px"),u&&(n=parseFloat(m)+p+s,k=parseFloat(l)+p+s)),g=va(z,y[j],m+" "+l,n+" "+k,!1,"0px",g);return g},prefix:!0,formatter:qa("0px 0px 0px 0px",!1,!0)}),ya("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(a,b,c,d,f,g){return va(a.style,c,this.format(_(a,c,e,!1,"0px 0px")),this.format(b),!1,"0px",f)},prefix:!0,formatter:qa("0px 0px",!1,!0)}),ya("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",o=e||$(a,null),q=this.format((o?p?o.getPropertyValue(n+"-x")+" "+o.getPropertyValue(n+"-y"):o.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&r.split(",").length<2&&(m=_(a,"backgroundImage").replace(D,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),R.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-R.width:a.offsetHeight-R.height,h[j]=k?parseFloat(q)/100*l+"px":parseFloat(q)/l*100+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ha}),ya("backgroundSize",{defaultValue:"0 0",formatter:function(a){return a+="",ha(-1===a.indexOf(" ")?a+" "+a:a)}}),ya("perspective",{defaultValue:"0px",prefix:!0}),ya("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),ya("transformStyle",{prefix:!0}),ya("backfaceVisibility",{prefix:!0}),ya("userSelect",{prefix:!0}),ya("margin",{parser:ra("marginTop,marginRight,marginBottom,marginLeft")}),ya("padding",{parser:ra("paddingTop,paddingRight,paddingBottom,paddingLeft")}),ya("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>p?(i=a.currentStyle,j=8>p?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(_(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),ya("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),ya("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),ya("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){var h=_(a,"borderTopWidth",e,!1,"0px"),i=this.format(b).split(" "),j=i[0].replace(w,"");return"px"!==j&&(h=parseFloat(h)/aa(a,"borderTopWidth",1,j)+j),this.parseComplex(a.style,this.format(h+" "+_(a,"borderTopStyle",e,!1,"solid")+" "+_(a,"borderTopColor",e,!1,"#000")),i.join(" "),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(pa)||["#000"])[0]}}),ya("borderWidth",{parser:ra("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),ya("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e,f){var g=a.style,h="cssFloat"in g?"cssFloat":"styleFloat";return new ta(g,h,0,0,e,-1,c,!1,0,g[h],b)}});var Ua=function(a){var b,c=this.t,d=c.filter||_(this.data,"filter")||"",e=this.s+this.c*a|0;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!_(this.data,"filter")):(c.filter=d.replace(z,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(x,"opacity="+e))};ya("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(_(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===_(a,"visibility",e)&&0!==b&&(h=0),U?f=new ta(i,"opacity",h,b-h,f):(f=new ta(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ua),j&&(f=new ta(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Va=function(a,b){b&&(a.removeProperty?(("ms"===b.substr(0,2)||"webkit"===b.substr(0,6))&&(b="-"+b),a.removeProperty(b.replace(B,"-$1").toLowerCase())):a.removeAttribute(b))},Wa=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Va(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};ya("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ta(a,d,0,0,g,2),g.setRatio=Wa,g.pr=-11,c=!0,g.b=o,k=ca(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(new RegExp("(?:\\s|^)"+b.substr(2)+"(?![\\w-])"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),a.setAttribute("class",g.e),j=da(a,k,ca(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)}});var Xa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f,g=this.t.style,h=i.transform.parse;if("all"===this.e)g.cssText="",e=!0;else for(b=this.e.split(" ").join("").split(","),d=b.length;--d>-1;)c=b[d],i[c]&&(i[c].parse===h?e=!0:c="transformOrigin"===c?Ea:i[c].p),Va(g,c);e&&(Va(g,Ca),f=this.t._gsTransform,f&&(f.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(ya("clearProps",{parser:function(a,b,d,e,f){return f=new ta(a,d,0,0,f,2),f.setRatio=Xa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),j="bezier,throwProps,physicsProps,physics2D".split(","),wa=j.length;wa--;)za(j[wa]);j=g.prototype,j._firstPT=j._lastParsedTransform=j._transform=null,j._onInitTween=function(a,b,h,j){if(!a.nodeType)return!1;this._target=q=a,this._tween=h,this._vars=b,r=j,k=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=$(a,""),f=this._overwriteProps;var n,p,s,t,u,v,w,x,z,A=a.style;if(l&&""===A.zIndex&&(n=_(a,"zIndex",e),("auto"===n||""===n)&&this._addLazySet(A,"zIndex",0)),"string"==typeof b&&(t=A.cssText,n=ca(a,e),A.cssText=t+";"+b,n=da(a,n,ca(a)).difs,!U&&y.test(b)&&(n.opacity=parseFloat(RegExp.$1)),b=n,A.cssText=t),b.className?this._firstPT=p=i.className.parse(a,b.className,"className",this,null,null,b):this._firstPT=p=this.parse(a,b,null),this._transformType){for(z=3===this._transformType,Ca?m&&(l=!0,""===A.zIndex&&(w=_(a,"zIndex",e),("auto"===w||""===w)&&this._addLazySet(A,"zIndex",0)),o&&this._addLazySet(A,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(z?"visible":"hidden"))):A.zoom=1,s=p;s&&s._next;)s=s._next;x=new ta(a,"transform",0,0,null,2),this._linkCSSP(x,null,s),x.setRatio=Ca?Ta:Sa,x.data=this._transform||Ra(a,e,!0),x.tween=h,x.pr=-1,f.pop()}if(c){for(;p;){for(v=p._next,s=t;s&&s.pr>p.pr;)s=s._next;(p._prev=s?s._prev:u)?p._prev._next=p:t=p,(p._next=s)?s._prev=p:u=p,p=v}this._firstPT=t}return!0},j.parse=function(a,b,c,f){var g,h,j,l,m,n,o,p,s,t,u=a.style;for(g in b){if(n=b[g],"function"==typeof n&&(n=n(r,q)),h=i[g])c=h.parse(a,n,g,this,c,f,b);else{if("--"===g.substr(0,2)){this._tween._propLookup[g]=this._addTween.call(this._tween,a.style,"setProperty",$(a).getPropertyValue(g)+"",n+"",g,!1,g);continue}m=_(a,g,e)+"",s="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||s&&A.test(n)?(s||(n=na(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=va(u,g,m,n,!0,"transparent",c,0,f)):s&&J.test(n)?c=va(u,g,m,n,!0,null,c,0,f):(j=parseFloat(m),o=j||0===j?m.substr((j+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(j=ga(a,g,e),o="px"):"left"===g||"top"===g?(j=ba(a,g,e),o="px"):(j="opacity"!==g?0:1,o="")),t=s&&"="===n.charAt(1),t?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(w,"")):(l=parseFloat(n),p=s?n.replace(w,""):""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(t?l+j:l)+p:b[g],o!==p&&(""!==p||"lineHeight"===g)&&(l||0===l)&&j&&(j=aa(a,g,j,o),"%"===p?(j/=aa(a,g,100,"%")/100,b.strictUnits!==!0&&(m=j+"%")):"em"===p||"rem"===p||"vw"===p||"vh"===p?j/=aa(a,g,1,p):"px"!==p&&(l=aa(a,g,l,p),p="px"),t&&(l||0===l)&&(n=l+j+p)),t&&(l+=j),!j&&0!==j||!l&&0!==l?void 0!==u[g]&&(n||n+""!="NaN"&&null!=n)?(c=new ta(u,g,l||j||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):W("invalid "+g+" tween value: "+b[g]):(c=new ta(u,g,j,l-j,c,0,g,k!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p))}f&&c&&!c.plugin&&(c.plugin=f)}return c},j.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;){if(2!==e.type)if(e.r&&-1!==e.type)if(b=Math.round(e.s+e.c),e.type){if(1===e.type){for(d=e.l,c=e.xs0+b+e.xs1,d=1;d<e.l;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}}else e.t[e.p]=b+e.xs0;else e.t[e.p]=e.e;else e.setRatio(a);e=e._next}},j._enableTransforms=function(a){this._transform=this._transform||Ra(this._target,e,!0),this._transformType=this._transform.svg&&Aa||!a&&3!==this._transformType?2:3};var Ya=function(a){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};j._addLazySet=function(a,b,c){var d=this._firstPT=new ta(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Ya,d.data=this},j._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},j._mod=function(a){for(var b=this._firstPT;b;)"function"==typeof a[b.p]&&a[b.p]===Math.round&&(b.r=1),b=b._next},j._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}for(b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),c=this._firstPT;c;)c.plugin&&c.plugin!==d&&c.plugin._kill&&(c.plugin._kill(b),d=c.plugin),c=c._next;return a.prototype._kill.call(this,f)};var Za=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Za(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(ca(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Za(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h,i=b.to(a,c,d),j=[i],k=[],l=[],m=[],n=b._internals.reservedProps;for(a=i._targets||i.target,Za(a,k,m),i.render(c,!0,!0),Za(a,l),i.render(0,!0,!0),i._enabled(!0),e=m.length;--e>-1;)if(f=da(m[e],k[e],l[e]),f.firstMPT){f=f.difs;for(g in d)n[g]&&(f[g]=d[g]);h={};for(g in f)h[g]=k[e][g];j.push(b.fromTo(m[e],c,h,f))}return j},a.activate([g]),g},!0),function(){var a=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=function(a){for(;a;)a.f||a.blob||(a.m=Math.round),a=a._next},c=a.prototype;c._onInitAllProps=function(){for(var a,c,d,e=this._tween,f=e.vars.roundProps.join?e.vars.roundProps:e.vars.roundProps.split(","),g=f.length,h={},i=e._propLookup.roundProps;--g>-1;)h[f[g]]=Math.round;for(g=f.length;--g>-1;)for(a=f[g],c=e._firstPT;c;)d=c._next,c.pg?c.t._mod(h):c.n===a&&(2===c.f&&c.t?b(c.t._firstPT):(this._add(c.t,a,c.s,c.c),d&&(d._prev=c._prev),c._prev?c._prev._next=d:e._firstPT===c&&(e._firstPT=d),c._next=c._prev=null,e._propLookup[a]=i)),c=d;return!1},c._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,Math.round),this._overwriteProps.push(b)}}(),function(){_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(a,b,c,d){var e,f;if("function"!=typeof a.setAttribute)return!1;for(e in b)f=b[e],"function"==typeof f&&(f=f(d,a)),this._addTween(a,"setAttribute",a.getAttribute(e)+"",f+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(a,b,c,d){"object"!=typeof b&&(b={rotation:b}),this.finals={};var e,f,g,h,i,j,k=b.useRadians===!0?2*Math.PI:360,l=1e-6;for(e in b)"useRadians"!==e&&(h=b[e],"function"==typeof h&&(h=h(d,a)),j=(h+"").split("_"),f=j[0],g=parseFloat("function"!=typeof a[e]?a[e]:a[e.indexOf("set")||"function"!=typeof a["get"+e.substr(3)]?e:"get"+e.substr(3)]()),h=this.finals[e]="string"==typeof f&&"="===f.charAt(1)?g+parseInt(f.charAt(0)+"1",10)*Number(f.substr(2)):Number(f)||0,i=h-g,j.length&&(f=j.join("_"),-1!==f.indexOf("short")&&(i%=k,i!==i%(k/2)&&(i=0>i?i+k:i-k)),-1!==f.indexOf("_cw")&&0>i?i=(i+9999999999*k)%k-(i/k|0)*k:-1!==f.indexOf("ccw")&&i>0&&(i=(i-9999999999*k)%k-(i/k|0)*k)),(i>l||-l>i)&&(this._addTween(a,e,g,g+i,e),this._overwriteProps.push(e)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e,f=_gsScope.GreenSockGlobals||_gsScope,g=f.com.greensock,h=2*Math.PI,i=Math.PI/2,j=g._class,k=function(b,c){var d=j("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},l=a.register||function(){},m=function(a,b,c,d,e){var f=j("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return l(f,a),f},n=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},o=function(b,c){var d=j("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},p=m("Back",o("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),o("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),o("BackInOut",function(a){return(a*=2)<1?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),q=j("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),r=q.prototype=new a;return r.constructor=q,r.getRatio=function(a){var b=a+(.5-a)*this._p;return a<this._p1?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1===a?0:1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},q.ease=new q(.7,.7),r.config=q.config=function(a,b,c){return new q(a,b,c)},b=j("easing.SteppedEase",function(a,b){a=a||1,this._p1=1/a,this._p2=a+(b?0:1),this._p3=b?1:0},!0),r=b.prototype=new a,r.constructor=b,r.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),((this._p2*a|0)+this._p3)*this._p1},r.config=b.config=function(a,c){return new b(a,c)},c=j("easing.ExpoScaleEase",function(a,b,c){this._p1=Math.log(b/a),this._p2=b-a,this._p3=a,this._ease=c},!0),r=c.prototype=new a,r.constructor=c,r.getRatio=function(a){return this._ease&&(a=this._ease.getRatio(a)),(this._p3*Math.exp(this._p1*a)-this._p3)/this._p2},r.config=c.config=function(a,b,d){return new c(a,b,d)},d=j("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),m=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--m>-1;)c=o?Math.random():1/l*m,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=f*f*.5*r):(f=2*(1-c),e=f*f*.5*r),o?d+=Math.random()*e-.5*e:m%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new n(1,1,null),m=l;--m>-1;)g=j[m],h=new n(g.x,g.y,h);this._prev=new n(0,0,0!==h.t?h:h.next)},!0),r=d.prototype=new a,r.constructor=d,r.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&a<=b.t;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},r.config=function(a){return new d(a)},d.ease=new d,m("Bounce",k("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),k("BounceIn",function(a){return(a=1-a)<1/2.75?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),k("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),m("Circ",k("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),k("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),k("CircInOut",function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),e=function(b,c,d){var e=j("easing."+b,function(a,b){this._p1=a>=1?a:1,this._p2=(b||d)/(1>a?a:1),this._p3=this._p2/h*(Math.asin(1/this._p1)||0),this._p2=h/this._p2},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},m("Elastic",e("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*this._p2)+1},.3),e("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2))},.3),e("ElasticInOut",function(a){return(a*=2)<1?-.5*(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*this._p2)*.5+1},.45)),m("Expo",k("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),k("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),k("ExpoInOut",function(a){return(a*=2)<1?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),m("Sine",k("SineOut",function(a){return Math.sin(a*i)}),k("SineIn",function(a){return-Math.cos(a*i)+1}),k("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),j("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),l(f.SlowMo,"SlowMo","ease,"),l(d,"RoughEase","ease,"),l(b,"SteppedEase","ease,"),p},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a,b){"use strict";var c={},d=a.document,e=a.GreenSockGlobals=a.GreenSockGlobals||a;if(!e.TweenLite){var f,g,h,i,j,k=function(a){var b,c=a.split("."),d=e;for(b=0;b<c.length;b++)d[c[b]]=d=d[c[b]]||{};return d},l=k("com.greensock"),m=1e-10,n=function(a){var b,c=[],d=a.length;for(b=0;b!==d;c.push(a[b++]));return c},o=function(){},p=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),q={},r=function(d,f,g,h){this.sc=q[d]?q[d].sc:[],q[d]=this,this.gsClass=null,this.func=g;var i=[];this.check=function(j){for(var l,m,n,o,p=f.length,s=p;--p>-1;)(l=q[f[p]]||new r(f[p],[])).gsClass?(i[p]=l.gsClass,s--):j&&l.sc.push(this);if(0===s&&g){if(m=("com.greensock."+d).split("."),n=m.pop(),o=k(m.join("."))[n]=this.gsClass=g.apply(g,i),h)if(e[n]=c[n]=o,"undefined"!=typeof module&&module.exports)if(d===b){module.exports=c[b]=o;for(p in c)o[p]=c[p]}else c[b]&&(c[b][n]=o);else"function"==typeof define&&define.amd&&define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+d.split(".").pop(),[],function(){return o});for(p=0;p<this.sc.length;p++)this.sc[p].check()}},this.check(!0)},s=a._gsDefine=function(a,b,c,d){return new r(a,b,c,d)},t=l._class=function(a,b,c){return b=b||function(){},s(a,[],function(){return b},c),b};s.globals=e;var u=[0,0,1,1],v=t("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?u.concat(b):u},!0),w=v.map={},x=v.register=function(a,b,c,d){for(var e,f,g,h,i=b.split(","),j=i.length,k=(c||"easeIn,easeOut,easeInOut").split(",");--j>-1;)for(f=i[j],e=d?t("easing."+f,null,!0):l.easing[f]||{},g=k.length;--g>-1;)h=k[g],w[f+"."+h]=w[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(h=v.prototype,h._calcEnd=!1,h.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},f=["Linear","Quad","Cubic","Quart","Quint,Strong"],g=f.length;--g>-1;)h=f[g]+",Power"+g,x(new v(null,null,1,g),h,"easeOut",!0),x(new v(null,null,2,g),h,"easeIn"+(0===g?",easeNone":"")),x(new v(null,null,3,g),h,"easeInOut");w.linear=l.easing.Linear.easeIn,w.swing=l.easing.Quad.easeInOut;var y=t("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});h=y.prototype,h.addEventListener=function(a,b,c,d,e){e=e||0;var f,g,h=this._listeners[a],k=0;for(this!==i||j||i.wake(),null==h&&(this._listeners[a]=h=[]),g=h.length;--g>-1;)f=h[g],f.c===b&&f.s===c?h.splice(g,1):0===k&&f.pr<e&&(k=g+1);h.splice(k,0,{c:b,s:c,up:d,pr:e})},h.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return void d.splice(c,1)},h.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,b>1&&(e=e.slice(0)),c=this._eventTarget;--b>-1;)d=e[b],d&&(d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c))};var z=a.requestAnimationFrame,A=a.cancelAnimationFrame,B=Date.now||function(){return(new Date).getTime()},C=B();for(f=["ms","moz","webkit","o"],g=f.length;--g>-1&&!z;)z=a[f[g]+"RequestAnimationFrame"],A=a[f[g]+"CancelAnimationFrame"]||a[f[g]+"CancelRequestAnimationFrame"];t("Ticker",function(a,b){var c,e,f,g,h,k=this,l=B(),n=b!==!1&&z?"auto":!1,p=500,q=33,r="tick",s=function(a){var b,d,i=B()-C;i>p&&(l+=i-q),C+=i,k.time=(C-l)/1e3,b=k.time-h,(!c||b>0||a===!0)&&(k.frame++,h+=b+(b>=g?.004:g-b),d=!0),a!==!0&&(f=e(s)),d&&k.dispatchEvent(r)};y.call(k),k.time=k.frame=0,k.tick=function(){s(!0)},k.lagSmoothing=function(a,b){return arguments.length?(p=a||1/m,void(q=Math.min(b,p,0))):1/m>p},k.sleep=function(){null!=f&&(n&&A?A(f):clearTimeout(f),e=o,f=null,k===i&&(j=!1))},k.wake=function(a){null!==f?k.sleep():a?l+=-C+(C=B()):k.frame>10&&(C=B()-p+5),e=0===c?o:n&&z?z:function(a){return setTimeout(a,1e3*(h-k.time)+1|0)},k===i&&(j=!0),s(2)},k.fps=function(a){return arguments.length?(c=a,g=1/(c||60),h=this.time+g,void k.wake()):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,void k.fps(c)):n},k.fps(a),setTimeout(function(){"auto"===n&&k.frame<5&&"hidden"!==(d||{}).visibilityState&&k.useRAF(!1)},1500)}),h=l.Ticker.prototype=new l.events.EventDispatcher,h.constructor=l.Ticker;var D=t("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,X){j||i.wake();var c=this.vars.useFrames?W:X;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});i=D.ticker=new l.Ticker,h=D.prototype,h._dirty=h._gc=h._initted=h._paused=!1,h._totalTime=h._time=0,h._rawPrevTime=-1,h._next=h._last=h._onUpdate=h._timeline=h.timeline=null,h._paused=!1;var E=function(){j&&B()-C>2e3&&("hidden"!==(d||{}).visibilityState||!i.lagSmoothing())&&i.wake();var a=setTimeout(E,2e3);a.unref&&a.unref()};E(),h.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},h.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},h.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},h.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},h.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},h.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},h.render=function(a,b,c){},h.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,(this._gc||!this.timeline)&&this._enabled(!0),this},h.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime(!0))>=c&&a<c+this.totalDuration()/this._timeScale-1e-7},h._enabled=function(a,b){return j||i.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},h._kill=function(a,b){return this._enabled(!1,!1)},h.kill=function(a,b){return this._kill(a,b),this},h._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},h._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},h._callback=function(a){var b=this.vars,c=b[a],d=b[a+"Params"],e=b[a+"Scope"]||b.callbackScope||this,f=d?d.length:0;switch(f){case 0:c.call(e);break;case 1:c.call(e,d[0]);break;case 2:c.call(e,d[0],d[1]);break;default:c.apply(e,d)}},h.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=p(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},h.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},h.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&0!==a&&this.totalTime(this._totalTime*(a/this._duration),!0),this):(this._dirty=!1,this._duration)},h.totalDuration=function(a){return this._dirty=!1,arguments.length?this.duration(a):this._totalDuration},h.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(a>this._duration?this._duration:a,b)):this._time},h.totalTime=function(a,b,c){if(j||i.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(J.length&&Z(),this.render(a,b,!1),J.length&&Z())}return this},h.progress=h.totalProgress=function(a,b){var c=this.duration();return arguments.length?this.totalTime(c*a,b):c?this._time/c:this.ratio},h.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},h.endTime=function(a){return this._startTime+(0!=a?this.totalDuration():this.duration())/this._timeScale},h.timeScale=function(a){if(!arguments.length)return this._timeScale;var b,c;for(a=a||m,this._timeline&&this._timeline.smoothChildTiming&&(b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime(),this._startTime=c-(c-this._startTime)*this._timeScale/a),this._timeScale=a,c=this.timeline;c&&c.timeline;)c._dirty=!0,c.totalDuration(),c=c.timeline;return this},h.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},h.paused=function(a){if(!arguments.length)return this._paused;var b,c,d=this._timeline;return a!=this._paused&&d&&(j||a||i.wake(),b=d.rawTime(),c=b-this._pauseTime,!a&&d.smoothChildTiming&&(this._startTime+=c,this._uncache(!1)),this._pauseTime=a?b:null,this._paused=a,this._active=this.isActive(),!a&&0!==c&&this._initted&&this.duration()&&(b=d.smoothChildTiming?this._totalTime:(b-this._startTime)/this._timeScale,this.render(b,b===this._totalTime,!0))),this._gc&&!a&&this._enabled(!0,!1),this};var F=t("core.SimpleTimeline",function(a){D.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});h=F.prototype=new D,h.constructor=F,h.kill()._gc=!1,h._first=h._last=h._recent=null,h._sortChildren=!1,h.add=h.insert=function(a,b,c,d){var e,f;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),e=this._last,this._sortChildren)for(f=a._startTime;e&&e._startTime>f;)e=e._prev;return e?(a._next=e._next,e._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=e,this._recent=a,this._timeline&&this._uncache(!0),this},h._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),a._next=a._prev=a.timeline=null,a===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},h.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused&&!e._gc)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},h.rawTime=function(){return j||i.wake(),this._totalTime};var G=t("TweenLite",function(b,c,d){if(D.call(this,c,d),this.render=G.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:G.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?V[G.defaultOverwrite]:"number"==typeof i?i>>0:V[i],(h||b instanceof Array||b.push&&p(b))&&"number"!=typeof b[0])for(this._targets=g=n(b),this._propLookup=[],this._siblings=[],e=0;e<g.length;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(n(f))):(this._siblings[e]=$(f,this,!1),1===i&&this._siblings[e].length>1&&aa(f,this,null,1,this._siblings[e])):(f=g[e--]=G.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=$(b,this,!1),1===i&&this._siblings.length>1&&aa(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-m,this.render(Math.min(0,-this._delay)))},!0),H=function(b){return b&&b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},I=function(a,b){var c,d={};for(c in a)U[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!R[c]||R[c]&&R[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};h=G.prototype=new D,h.constructor=G,h.kill()._gc=!1,h.ratio=0,h._firstPT=h._targets=h._overwrittenProps=h._startAt=null,h._notifyPluginsOfEnabled=h._lazy=!1,G.version="1.20.4",G.defaultEase=h._ease=new v(null,null,1,1),G.defaultOverwrite="auto",G.ticker=i,G.autoSleep=120,G.lagSmoothing=function(a,b){i.lagSmoothing(a,b)},G.selector=a.$||a.jQuery||function(b){var c=a.$||a.jQuery;return c?(G.selector=c,c(b)):"undefined"==typeof d?b:d.querySelectorAll?d.querySelectorAll(b):d.getElementById("#"===b.charAt(0)?b.substr(1):b)};var J=[],K={},L=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,M=/[\+-]=-?[\.\d]/,N=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.blob?1===a&&null!=this.end?this.end:a?this.join(""):this.start:c.c*a+c.s,c.m?b=c.m(b,this._target||c.t):d>b&&b>-d&&!c.blob&&(b=0),c.f?c.fp?c.t[c.p](c.fp,b):c.t[c.p](b):c.t[c.p]=b,c=c._next},O=function(a,b,c,d){var e,f,g,h,i,j,k,l=[],m=0,n="",o=0;for(l.start=a,l.end=b,a=l[0]=a+"",b=l[1]=b+"",c&&(c(l),a=l[0],b=l[1]),l.length=0,e=a.match(L)||[],f=b.match(L)||[],d&&(d._next=null,d.blob=1,l._firstPT=l._applyPT=d),i=f.length,h=0;i>h;h++)k=f[h],j=b.substr(m,b.indexOf(k,m)-m),n+=j||!h?j:",",m+=j.length,o?o=(o+1)%5:"rgba("===j.substr(-5)&&(o=1),k===e[h]||e.length<=h?n+=k:(n&&(l.push(n),n=""),g=parseFloat(e[h]),l.push(g),l._firstPT={_next:l._firstPT,t:l,p:l.length-1,s:g,c:("="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*parseFloat(k.substr(2)):parseFloat(k)-g)||0,f:0,m:o&&4>o?Math.round:0}),m+=k.length;return n+=b.substr(m),n&&l.push(n),l.setRatio=N,M.test(b)&&(l.end=null),l},P=function(a,b,c,d,e,f,g,h,i){"function"==typeof d&&(d=d(i||0,a));var j,k=typeof a[b],l="function"!==k?"":b.indexOf("set")||"function"!=typeof a["get"+b.substr(3)]?b:"get"+b.substr(3),m="get"!==c?c:l?g?a[l](g):a[l]():a[b],n="string"==typeof d&&"="===d.charAt(1),o={t:a,p:b,s:m,f:"function"===k,pg:0,n:e||b,m:f?"function"==typeof f?f:Math.round:0,pr:0,c:n?parseInt(d.charAt(0)+"1",10)*parseFloat(d.substr(2)):parseFloat(d)-m||0};return("number"!=typeof m||"number"!=typeof d&&!n)&&(g||isNaN(m)||!n&&isNaN(d)||"boolean"==typeof m||"boolean"==typeof d?(o.fp=g,j=O(m,n?parseFloat(o.s)+o.c+(o.s+"").replace(/[0-9\-\.]/g,""):d,h||G.defaultStringFilter,o),o={t:j,p:"setRatio",s:0,c:1,f:2,pg:0,n:e||b,pr:0,m:0}):(o.s=parseFloat(m),n||(o.c=parseFloat(d)-o.s||0))),o.c?((o._next=this._firstPT)&&(o._next._prev=o),this._firstPT=o,o):void 0},Q=G._internals={isArray:p,isSelector:H,lazyTweens:J,blobDif:O},R=G._plugins={},S=Q.tweenLookup={},T=0,U=Q.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},V={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,"true":1,"false":0},W=D._rootFramesTimeline=new F,X=D._rootTimeline=new F,Y=30,Z=Q.lazyRender=function(){var a,b=J.length;for(K={};--b>-1;)a=J[b],a&&a._lazy!==!1&&(a.render(a._lazy[0],a._lazy[1],!0),a._lazy=!1);J.length=0};X._startTime=i.time,W._startTime=i.frame,X._active=W._active=!0,setTimeout(Z,1),D._updateRoot=G.render=function(){var a,b,c;if(J.length&&Z(),X.render((i.time-X._startTime)*X._timeScale,!1,!1),W.render((i.frame-W._startTime)*W._timeScale,!1,!1),J.length&&Z(),i.frame>=Y){Y=i.frame+(parseInt(G.autoSleep,10)||120);for(c in S){for(b=S[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete S[c]}if(c=X._first,(!c||c._paused)&&G.autoSleep&&!W._first&&1===i._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||i.sleep()}}},i.addEventListener("tick",D._updateRoot);var $=function(a,b,c){var d,e,f=a._gsTweenID;if(S[f||(a._gsTweenID=f="t"+T++)]||(S[f]={target:a,tweens:[]}),b&&(d=S[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return S[f].tweens},_=function(a,b,c,d){var e,f,g=a.vars.onOverwrite;return g&&(e=g(a,b,c,d)),g=G.onOverwrite,g&&(f=g(a,b,c,d)),e!==!1&&f!==!1},aa=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._kill(null,a,b)&&(g=!0);else if(5===d)break;return g}var j,k=b._startTime+m,l=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(j=j||ba(b,0,o),0===ba(h,j,o)&&(l[n++]=h)):h._startTime<=k&&h._startTime+h.totalDuration()/h._timeScale>k&&((o||!h._initted)&&k-h._startTime<=2e-10||(l[n++]=h)));for(f=n;--f>-1;)if(h=l[f],2===d&&h._kill(c,a,b)&&(g=!0),2!==d||!h._firstPT&&h._initted){if(2!==d&&!_(h,b))continue;h._enabled(!1,!1)&&(g=!0)}return g},ba=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*m>f-b?m:(f+=a.totalDuration()/a._timeScale/e)>b+m?0:f-b-m};h._init=function(){var a,b,c,d,e,f,g=this.vars,h=this._overwrittenProps,i=this._duration,j=!!g.immediateRender,k=g.ease;if(g.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in g.startAt)e[d]=g.startAt[d];if(e.data="isStart",e.overwrite=!1,e.immediateRender=!0,e.lazy=j&&g.lazy!==!1,e.startAt=e.delay=null,e.onUpdate=g.onUpdate,e.onUpdateParams=g.onUpdateParams,e.onUpdateScope=g.onUpdateScope||g.callbackScope||this,this._startAt=G.to(this.target,0,e),j)if(this._time>0)this._startAt=null;else if(0!==i)return}else if(g.runBackwards&&0!==i)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{0!==this._time&&(j=!1),c={};for(d in g)U[d]&&"autoCSS"!==d||(c[d]=g[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=j&&g.lazy!==!1,c.immediateRender=j,this._startAt=G.to(this.target,0,c),j){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=k=k?k instanceof v?k:"function"==typeof k?new v(k,g.easeParams):w[k]||G.defaultEase:G.defaultEase,g.easeParams instanceof Array&&k.config&&(this._ease=k.config.apply(k,g.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(f=this._targets.length,a=0;f>a;a++)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],h?h[a]:null,a)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,h,0);if(b&&G._onPluginEvent("_onInitAllProps",this),h&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),g.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=g.onUpdate,this._initted=!0},h._initProps=function(b,c,d,e,f){var g,h,i,j,k,l;if(null==b)return!1;K[b._gsTweenID]&&Z(),this.vars.css||b.style&&b!==a&&b.nodeType&&R.css&&this.vars.autoCSS!==!1&&I(this.vars,b);for(g in this.vars)if(l=this.vars[g],U[g])l&&(l instanceof Array||l.push&&p(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[g]=l=this._swapSelfInParams(l,this));else if(R[g]&&(j=new R[g])._onInitTween(b,this.vars[g],this,f)){for(this._firstPT=k={_next:this._firstPT,t:j,p:"setRatio",s:0,c:1,f:1,n:g,pg:1,pr:j._priority,m:0},h=j._overwriteProps.length;--h>-1;)c[j._overwriteProps[h]]=this._firstPT;(j._priority||j._onInitAllProps)&&(i=!0),(j._onDisable||j._onEnable)&&(this._notifyPluginsOfEnabled=!0),k._next&&(k._next._prev=k)}else c[g]=P.call(this,b,g,"get",l,g,0,null,this.vars.stringFilter,f);return e&&this._kill(e,b)?this._initProps(b,c,d,e,f):this._overwrite>1&&this._firstPT&&d.length>1&&aa(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e,f)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[b._gsTweenID]=!0),i)},h.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,j=this._rawPrevTime;if(a>=i-1e-7&&a>=0)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete",c=c||this._timeline.autoRemoveChildren),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0>j||0>=a&&a>=-1e-7||j===m&&"isPause"!==this.data)&&j!==a&&(c=!0,j>m&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||j===a?a:m);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&j>0)&&(e="onReverseComplete",d=this._reversed),0>a&&(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(j>=0&&(j!==m||"isPause"!==this.data)&&(c=!0),this._rawPrevTime=g=!b||a||j===a?a:m)),(!this._initted||this._startAt&&this._startAt.progress())&&(c=!0);else if(this._totalTime=this._time=a,this._easeType){var k=a/i,l=this._easeType,n=this._easePower;(1===l||3===l&&k>=.5)&&(k=1-k),3===l&&(k*=2),1===n?k*=k:2===n?k*=k*k:3===n?k*=k*k*k:4===n&&(k*=k*k*k*k),1===l?this.ratio=1-k:2===l?this.ratio=k:.5>a/i?this.ratio=k/2:this.ratio=1-k/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=j,J.push(this),void(this._lazy=[a,b]);this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,!0,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this._callback("onStart"))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&a!==-1e-4&&this._startAt.render(a,!0,c),b||(this._time!==h||d||c)&&this._callback("onUpdate")),e&&(!this._gc||c)&&(0>a&&this._startAt&&!this._onUpdate&&a!==-1e-4&&this._startAt.render(a,!0,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this._callback(e),0===i&&this._rawPrevTime===m&&g!==m&&(this._rawPrevTime=0))}},h._kill=function(a,b,c){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:G.selector(b)||b;var d,e,f,g,h,i,j,k,l,m=c&&this._time&&c._startTime===this._startTime&&this._timeline===c._timeline;if((p(b)||H(b))&&"number"!=typeof b[0])for(d=b.length;--d>-1;)this._kill(a,b[d],c)&&(i=!0);else{if(this._targets){for(d=this._targets.length;--d>-1;)if(b===this._targets[d]){h=this._propLookup[d]||{},this._overwrittenProps=this._overwrittenProps||[],e=this._overwrittenProps[d]=a?this._overwrittenProps[d]||{}:"all";break}}else{if(b!==this.target)return!1;h=this._propLookup,e=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(h){if(j=a||h,k=a!==e&&"all"!==e&&a!==h&&("object"!=typeof a||!a._tempKill),c&&(G.onOverwrite||this.vars.onOverwrite)){for(f in j)h[f]&&(l||(l=[]),l.push(f));if((l||!a)&&!_(this,c,b,l))return!1}for(f in j)(g=h[f])&&(m&&(g.f?g.t[g.p](g.s):g.t[g.p]=g.s,i=!0),g.pg&&g.t._kill(j)&&(i=!0),g.pg&&0!==g.t._overwriteProps.length||(g._prev?g._prev._next=g._next:g===this._firstPT&&(this._firstPT=g._next),g._next&&(g._next._prev=g._prev),g._next=g._prev=null),delete h[f]),k&&(e[f]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return i},h.invalidate=function(){return this._notifyPluginsOfEnabled&&G._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],D.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-m,this.render(Math.min(0,-this._delay))),this},h._enabled=function(a,b){if(j||i.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=$(d[c],this,!0);else this._siblings=$(this.target,this,!0)}return D.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?G._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},G.to=function(a,b,c){return new G(a,b,c)},G.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new G(a,b,c)},G.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new G(a,b,d)},G.delayedCall=function(a,b,c,d,e){return new G(b,0,{delay:a,onComplete:b,onCompleteParams:c,callbackScope:d,onReverseComplete:b,onReverseCompleteParams:c,immediateRender:!1,lazy:!1,useFrames:e,overwrite:0})},G.set=function(a,b){return new G(a,0,b)},G.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:G.selector(a)||a;var c,d,e,f;if((p(a)||H(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(G.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else if(a._gsTweenID)for(d=$(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d||[]},G.killTweensOf=G.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=G.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var ca=t("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=ca.prototype},!0);if(h=ca.prototype,ca.version="1.19.0",ca.API=2,h._firstPT=null,h._addTween=P,h.setRatio=N,h._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},h._mod=h._roundProps=function(a){for(var b,c=this._firstPT;c;)b=a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")],b&&"function"==typeof b&&(2===c.f?c.t._applyPT.m=b:c.m=b),c=c._next},G._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},ca.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===ca.API&&(R[(new a[b])._propName]=a[b]);return!0},s.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},g=t("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){ca.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new ca(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,ca.activate([g]),g},f=a._gsQueue){for(g=0;g<f.length;g++)f[g]();for(h in q)q[h].func||a.console.log("GSAP encountered missing dependency: "+h)}j=!1}}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax");
/*!
 * VERSION: 0.2.0
 * DATE: 2018-08-27
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * DrawSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
 * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
 * This work is subject to the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";function a(a,b,c,d,e,f){return c=(parseFloat(c||0)-parseFloat(a||0))*e,d=(parseFloat(d||0)-parseFloat(b||0))*f,Math.sqrt(c*c+d*d)}function b(a){return"string"!=typeof a&&a.nodeType||(a=_gsScope.TweenLite.selector(a),a.length&&(a=a[0])),a}function c(a,b,c){var d,e,f=a.indexOf(" ");return-1===f?(d=void 0!==c?c+"":a,e=a):(d=a.substr(0,f),e=a.substr(f+1)),d=-1!==d.indexOf("%")?parseFloat(d)/100*b:parseFloat(d),e=-1!==e.indexOf("%")?parseFloat(e)/100*b:parseFloat(e),d>e?[e,d]:[d,e]}function d(c){if(!c)return 0;c=b(c);var d,e,f,g,h,j,l,m=c.tagName.toLowerCase(),n=1,o=1;"non-scaling-stroke"===c.getAttribute("vector-effect")&&(o=c.getScreenCTM(),n=Math.sqrt(o.a*o.a+o.b*o.b),o=Math.sqrt(o.d*o.d+o.c*o.c));try{e=c.getBBox()}catch(p){/*console.log("Error: Some browsers like Firefox won't report measurements of invisible elements (like display:none or masks inside defs).")*/}if(e&&(e.width||e.height)||!k[m]||(e={width:parseFloat(c.getAttribute(k[m][0])),height:parseFloat(c.getAttribute(k[m][1]))},"rect"!==m&&"line"!==m&&(e.width*=2,e.height*=2),"line"===m&&(e.x=parseFloat(c.getAttribute("x1")),e.y=parseFloat(c.getAttribute("y1")),e.width=Math.abs(e.width-e.x),e.height=Math.abs(e.height-e.y))),"path"===m)g=c.style.strokeDasharray,c.style.strokeDasharray="none",d=c.getTotalLength()||0,n!==o&&console.log("Warning: <path> length cannot be measured accurately when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),d*=(n+o)/2,c.style.strokeDasharray=g;else if("rect"===m)d=2*e.width*n+2*e.height*o;else if("line"===m)d=a(e.x,e.y,e.x+e.width,e.y+e.height,n,o);else if("polyline"===m||"polygon"===m)for(f=c.getAttribute("points").match(i)||[],"polygon"===m&&f.push(f[0],f[1]),d=0,h=2;h<f.length;h+=2)d+=a(f[h-2],f[h-1],f[h],f[h+1],n,o)||0;else("circle"===m||"ellipse"===m)&&(j=e.width/2*n,l=e.height/2*o,d=Math.PI*(3*(j+l)-Math.sqrt((3*j+l)*(j+3*l))));return d||0}function e(a,c){if(!a)return[0,0];a=b(a),c=c||d(a)+1;var e=h(a),f=e.strokeDasharray||"",g=parseFloat(e.strokeDashoffset),i=f.indexOf(",");return 0>i&&(i=f.indexOf(" ")),f=0>i?c:parseFloat(f.substr(0,i))||1e-5,f>c&&(f=c),[Math.max(0,-g),Math.max(0,f-g)]}var f,g=_gsScope.document,h=g.defaultView?g.defaultView.getComputedStyle:function(){},i=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,j=-1!==((_gsScope.navigator||{}).userAgent||"").indexOf("Edge"),k={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]};f=_gsScope._gsDefine.plugin({propName:"drawSVG",API:2,version:"0.2.0",global:!0,overwriteProps:["drawSVG"],init:function(a,b,f,g){if(!a.getBBox)return!1;var i,k,l,m,n=d(a)+1;return this._style=a.style,this._target=a,"function"==typeof b&&(b=b(g,a)),b===!0||"true"===b?b="0 100%":b?-1===(b+"").indexOf(" ")&&(b="0 "+b):b="0 0",i=e(a,n),k=c(b,n,i[0]),this._length=n+10,0===i[0]&&0===k[0]?(l=Math.max(1e-5,k[1]-n),this._dash=n+l,this._offset=n-i[1]+l,this._offsetPT=this._addTween(this,"_offset",this._offset,n-k[1]+l,"drawSVG")):(this._dash=i[1]-i[0]||1e-6,this._offset=-i[0],this._dashPT=this._addTween(this,"_dash",this._dash,k[1]-k[0]||1e-5,"drawSVG"),this._offsetPT=this._addTween(this,"_offset",this._offset,-k[0],"drawSVG")),j&&(m=h(a),m.strokeLinecap!==m.strokeLinejoin&&(k=parseFloat(m.strokeMiterlimit),this._addTween(a.style,"strokeMiterlimit",k,k+1e-4,"strokeMiterlimit"))),this._live="non-scaling-stroke"===a.getAttribute("vector-effect")||-1!==(b+"").indexOf("live"),!0},set:function(a){if(this._firstPT){if(this._live){var b,c=d(this._target)+11;c!==this._length&&(b=c/this._length,this._length=c,this._offsetPT.s*=b,this._offsetPT.c*=b,this._dashPT?(this._dashPT.s*=b,this._dashPT.c*=b):this._dash*=b)}this._super.setRatio.call(this,a),this._style.strokeDashoffset=this._offset,1===a||0===a?this._style.strokeDasharray=this._offset<.001&&this._length-this._dash<=10?"none":this._offset===this._dash?"0px, 999999px":this._dash+"px,"+this._length+"px":this._style.strokeDasharray=this._dash+"px,"+this._length+"px"}}}),f.getLength=d,f.getPosition=e}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("DrawSVGPlugin");

/*!
 * VERSION: 0.8.11
 * DATE: 2018-02-15
 * UPDATES AND DOCS AT: http://greensock.com
 *
 * @license Copyright (c) 2008-2018, GreenSock. All rights reserved.
 * MorphSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use
 * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details.
 * This work is subject to the software agreement that was issued with your membership.
 * 
 * @author: Jack Doyle, jack@greensock.com
 */
var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a=Math.PI/180,b=180/Math.PI,c=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,d=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(^[#\.][a-z]|[a-y][a-z])/gi,f=/[achlmqstvz]/gi,g=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,h=_gsScope._gsDefine.globals.TweenLite,i=function(a){_gsScope.console&&console.log(a)},j=function(b,c){var d,e,f,g,h,i,j=Math.ceil(Math.abs(c)/90),k=0,l=[];for(b*=a,c*=a,d=c/j,e=4/3*Math.sin(d/2)/(1+Math.cos(d/2)),i=0;j>i;i++)f=b+i*d,g=Math.cos(f),h=Math.sin(f),l[k++]=g-e*h,l[k++]=h+e*g,f+=d,g=Math.cos(f),h=Math.sin(f),l[k++]=g+e*h,l[k++]=h-e*g,l[k++]=g,l[k++]=h;return l},k=function(c,d,e,f,g,h,i,k,l){if(c!==k||d!==l){e=Math.abs(e),f=Math.abs(f);var m=g%360*a,n=Math.cos(m),o=Math.sin(m),p=(c-k)/2,q=(d-l)/2,r=n*p+o*q,s=-o*p+n*q,t=e*e,u=f*f,v=r*r,w=s*s,x=v/t+w/u;x>1&&(e=Math.sqrt(x)*e,f=Math.sqrt(x)*f,t=e*e,u=f*f);var y=h===i?-1:1,z=(t*u-t*w-u*v)/(t*w+u*v);0>z&&(z=0);var A=y*Math.sqrt(z),B=A*(e*s/f),C=A*-(f*r/e),D=(c+k)/2,E=(d+l)/2,F=D+(n*B-o*C),G=E+(o*B+n*C),H=(r-B)/e,I=(s-C)/f,J=(-r-B)/e,K=(-s-C)/f,L=Math.sqrt(H*H+I*I),M=H;y=0>I?-1:1;var N=y*Math.acos(M/L)*b;L=Math.sqrt((H*H+I*I)*(J*J+K*K)),M=H*J+I*K,y=0>H*K-I*J?-1:1;var O=y*Math.acos(M/L)*b;!i&&O>0?O-=360:i&&0>O&&(O+=360),O%=360,N%=360;var P,Q,R,S=j(N,O),T=n*e,U=o*e,V=o*-f,W=n*f,X=S.length-2;for(P=0;X>P;P+=2)Q=S[P],R=S[P+1],S[P]=Q*T+R*V+F,S[P+1]=Q*U+R*W+G;return S[S.length-2]=k,S[S.length-1]=l,S}},l=function(a){var b,d,e,f,h,j,l,m,n,o,p,q,r,s=(a+"").replace(g,function(a){var b=+a;return 1e-4>b&&b>-1e-4?0:b}).match(c)||[],t=[],u=0,v=0,w=s.length,x=2,y=0;if(!a||!isNaN(s[0])||isNaN(s[1]))return i("ERROR: malformed path data: "+a),t;for(b=0;w>b;b++)if(r=h,isNaN(s[b])?(h=s[b].toUpperCase(),j=h!==s[b]):b--,e=+s[b+1],f=+s[b+2],j&&(e+=u,f+=v),0===b&&(m=e,n=f),"M"===h)l&&l.length<8&&(t.length-=1,x=0),u=m=e,v=n=f,l=[e,f],y+=x,x=2,t.push(l),b+=2,h="L";else if("C"===h)l||(l=[0,0]),l[x++]=e,l[x++]=f,j||(u=v=0),l[x++]=u+1*s[b+3],l[x++]=v+1*s[b+4],l[x++]=u+=1*s[b+5],l[x++]=v+=1*s[b+6],b+=6;else if("S"===h)"C"===r||"S"===r?(o=u-l[x-4],p=v-l[x-3],l[x++]=u+o,l[x++]=v+p):(l[x++]=u,l[x++]=v),l[x++]=e,l[x++]=f,j||(u=v=0),l[x++]=u+=1*s[b+3],l[x++]=v+=1*s[b+4],b+=4;else if("Q"===h)o=e-u,p=f-v,l[x++]=u+2*o/3,l[x++]=v+2*p/3,j||(u=v=0),u+=1*s[b+3],v+=1*s[b+4],o=e-u,p=f-v,l[x++]=u+2*o/3,l[x++]=v+2*p/3,l[x++]=u,l[x++]=v,b+=4;else if("T"===h)o=u-l[x-4],p=v-l[x-3],l[x++]=u+o,l[x++]=v+p,o=u+1.5*o-e,p=v+1.5*p-f,l[x++]=e+2*o/3,l[x++]=f+2*p/3,l[x++]=u=e,l[x++]=v=f,b+=2;else if("H"===h)f=v,l[x++]=u+(e-u)/3,l[x++]=v+(f-v)/3,l[x++]=u+2*(e-u)/3,l[x++]=v+2*(f-v)/3,l[x++]=u=e,l[x++]=f,b+=1;else if("V"===h)f=e,e=u,j&&(f+=v-u),l[x++]=e,l[x++]=v+(f-v)/3,l[x++]=e,l[x++]=v+2*(f-v)/3,l[x++]=e,l[x++]=v=f,b+=1;else if("L"===h||"Z"===h)"Z"===h&&(e=m,f=n,l.closed=!0),("L"===h||Math.abs(u-e)>.5||Math.abs(v-f)>.5)&&(l[x++]=u+(e-u)/3,l[x++]=v+(f-v)/3,l[x++]=u+2*(e-u)/3,l[x++]=v+2*(f-v)/3,l[x++]=e,l[x++]=f,"L"===h&&(b+=2)),u=e,v=f;else if("A"===h){if(q=k(u,v,1*s[b+1],1*s[b+2],1*s[b+3],1*s[b+4],1*s[b+5],(j?u:0)+1*s[b+6],(j?v:0)+1*s[b+7]))for(d=0;d<q.length;d++)l[x++]=q[d];u=l[x-2],v=l[x-1],b+=7}else i("Error: malformed path data: "+a);return t.totalPoints=y+x,t},m=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=0,r=.999999,s=a.length,t=b/((s-2)/6);for(o=2;s>o;o+=6)for(q+=t;q>r;)c=a[o-2],d=a[o-1],e=a[o],f=a[o+1],g=a[o+2],h=a[o+3],i=a[o+4],j=a[o+5],p=1/(Math.floor(q)+1),k=c+(e-c)*p,m=e+(g-e)*p,k+=(m-k)*p,m+=(g+(i-g)*p-m)*p,l=d+(f-d)*p,n=f+(h-f)*p,l+=(n-l)*p,n+=(h+(j-h)*p-n)*p,a.splice(o,4,c+(e-c)*p,d+(f-d)*p,k,l,k+(m-k)*p,l+(n-l)*p,m,n,g+(i-g)*p,h+(j-h)*p),o+=6,s+=6,q--;return a},n=function(a){var b,c,d,e,f="",g=a.length,h=100;for(c=0;g>c;c++){for(e=a[c],f+="M"+e[0]+","+e[1]+" C",b=e.length,d=2;b>d;d++)f+=(e[d++]*h|0)/h+","+(e[d++]*h|0)/h+" "+(e[d++]*h|0)/h+","+(e[d++]*h|0)/h+" "+(e[d++]*h|0)/h+","+(e[d]*h|0)/h+" ";e.closed&&(f+="z")}return f},o=function(a){for(var b=[],c=a.length-1,d=0;--c>-1;)b[d++]=a[c],b[d++]=a[c+1],c--;for(c=0;d>c;c++)a[c]=b[c];a.reversed=a.reversed?!1:!0},p=function(a){var b,c=a.length,d=0,e=0;for(b=0;c>b;b++)d+=a[b++],e+=a[b];return[d/(c/2),e/(c/2)]},q=function(a){var b,c,d,e=a.length,f=a[0],g=f,h=a[1],i=h;for(d=6;e>d;d+=6)b=a[d],c=a[d+1],b>f?f=b:g>b&&(g=b),c>h?h=c:i>c&&(i=c);return a.centerX=(f+g)/2,a.centerY=(h+i)/2,a.size=(f-g)*(h-i)},r=function(a){for(var b,c,d,e,f,g=a.length,h=a[0][0],i=h,j=a[0][1],k=j;--g>-1;)for(f=a[g],b=f.length,e=6;b>e;e+=6)c=f[e],d=f[e+1],c>h?h=c:i>c&&(i=c),d>j?j=d:k>d&&(k=d);return a.centerX=(h+i)/2,a.centerY=(j+k)/2,a.size=(h-i)*(j-k)},s=function(a,b){return b.length-a.length},t=function(a,b){var c=a.size||q(a),d=b.size||q(b);return Math.abs(d-c)<(c+d)/20?b.centerX-a.centerX||b.centerY-a.centerY:d-c},u=function(a,b){var c,d,e=a.slice(0),f=a.length,g=f-2;for(b=0|b,c=0;f>c;c++)d=(c+b)%g,a[c++]=e[d],a[c]=e[d+1]},v=function(a,b,c,d,e){var f,g,h,i,j=a.length,k=0,l=j-2;for(c*=6,g=0;j>g;g+=6)f=(g+c)%l,i=a[f]-(b[g]-d),h=a[f+1]-(b[g+1]-e),k+=Math.sqrt(h*h+i*i);return k},w=function(a,b,c){var d,e,f,g=a.length,h=p(a),i=p(b),j=i[0]-h[0],k=i[1]-h[1],l=v(a,b,0,j,k),m=0;for(f=6;g>f;f+=6)e=v(a,b,f/6,j,k),l>e&&(l=e,m=f);if(c)for(d=a.slice(0),o(d),f=6;g>f;f+=6)e=v(d,b,f/6,j,k),l>e&&(l=e,m=-f);return m/6},x=function(a,b,c){for(var d,e,f,g,h,i,j=a.length,k=99999999999,l=0,m=0;--j>-1;)for(d=a[j],i=d.length,h=0;i>h;h+=6)e=d[h]-b,f=d[h+1]-c,g=Math.sqrt(e*e+f*f),k>g&&(k=g,l=d[h],m=d[h+1]);return[l,m]},y=function(a,b,c,d,e,f){var g,h,i,j,k,l=b.length,m=0,n=Math.min(a.size||q(a),b[c].size||q(b[c]))*d,o=999999999999,p=a.centerX+e,r=a.centerY+f;for(h=c;l>h&&(g=b[h].size||q(b[h]),!(n>g));h++)i=b[h].centerX-p,j=b[h].centerY-r,k=Math.sqrt(i*i+j*j),o>k&&(m=h,o=k);return k=b[m],b.splice(m,1),k},z=function(a,b,c,d){var e,f,g,h,j,k,l,n=b.length-a.length,p=n>0?b:a,v=n>0?a:b,z=0,A="complexity"===d?s:t,B="position"===d?0:"number"==typeof d?d:.8,C=v.length,D="object"==typeof c&&c.push?c.slice(0):[c],E="reverse"===D[0]||D[0]<0,F="log"===c;if(v[0]){if(p.length>1&&(a.sort(A),b.sort(A),k=p.size||r(p),k=v.size||r(v),k=p.centerX-v.centerX,l=p.centerY-v.centerY,A===t))for(C=0;C<v.length;C++)p.splice(C,0,y(v[C],p,C,B,k,l));if(n)for(0>n&&(n=-n),p[0].length>v[0].length&&m(v[0],(p[0].length-v[0].length)/6|0),C=v.length;n>z;)h=p[C].size||q(p[C]),g=x(v,p[C].centerX,p[C].centerY),h=g[0],j=g[1],v[C++]=[h,j,h,j,h,j,h,j],v.totalPoints+=8,z++;for(C=0;C<a.length;C++)e=b[C],f=a[C],n=e.length-f.length,0>n?m(e,-n/6|0):n>0&&m(f,n/6|0),E&&!f.reversed&&o(f),c=D[C]||0===D[C]?D[C]:"auto",c&&(f.closed||Math.abs(f[0]-f[f.length-2])<.5&&Math.abs(f[1]-f[f.length-1])<.5?"auto"===c||"log"===c?(D[C]=c=w(f,e,0===C),0>c&&(E=!0,o(f),c=-c),u(f,6*c)):"reverse"!==c&&(C&&0>c&&o(f),u(f,6*(0>c?-c:c))):!E&&("auto"===c&&Math.abs(e[0]-f[0])+Math.abs(e[1]-f[1])+Math.abs(e[e.length-2]-f[f.length-2])+Math.abs(e[e.length-1]-f[f.length-1])>Math.abs(e[0]-f[f.length-2])+Math.abs(e[1]-f[f.length-1])+Math.abs(e[e.length-2]-f[0])+Math.abs(e[e.length-1]-f[1])||c%2)?(o(f),D[C]=-1,E=!0):"auto"===c?D[C]=0:"reverse"===c&&(D[C]=-1),f.closed!==e.closed&&(f.closed=e.closed=!1));return F&&i("shapeIndex:["+D.join(",")+"]"),D}},A=function(a,b,c,d){var e=l(a[0]),f=l(a[1]);z(e,f,b||0===b?b:"auto",c)&&(a[0]=n(e),a[1]=n(f),("log"===d||d===!0)&&i('precompile:["'+a[0]+'","'+a[1]+'"]'))},B=function(a,b,c){return b||c||a||0===a?function(d){A(d,a,b,c)}:A},C=function(a,b){if(!b)return a;var c,e,f,g=a.match(d)||[],h=g.length,i="";for("reverse"===b?(e=h-1,c=-2):(e=(2*(parseInt(b,10)||0)+1+100*h)%h,c=2),f=0;h>f;f+=2)i+=g[e-1]+","+g[e]+" ",e=(e+c)%h;return i},D=function(a,b){var c,d,e,f,g,h,i,j=0,k=parseFloat(a[0]),l=parseFloat(a[1]),m=k+","+l+" ",n=.999999;for(e=a.length,c=.5*b/(.5*e-1),d=0;e-2>d;d+=2){if(j+=c,h=parseFloat(a[d+2]),i=parseFloat(a[d+3]),j>n)for(g=1/(Math.floor(j)+1),f=1;j>n;)m+=(k+(h-k)*g*f).toFixed(2)+","+(l+(i-l)*g*f).toFixed(2)+" ",j--,f++;m+=h+","+i+" ",k=h,l=i}return m},E=function(a){var b=a[0].match(d)||[],c=a[1].match(d)||[],e=c.length-b.length;e>0?a[0]=D(b,e):a[1]=D(c,-e)},F=function(a){return isNaN(a)?E:function(b){E(b),b[1]=C(b[1],parseInt(a,10))}},G=function(a,b){var c,d=_gsScope.document.createElementNS("http://www.w3.org/2000/svg","path"),e=Array.prototype.slice.call(a.attributes),f=e.length;for(b=","+b+",";--f>-1;)c=e[f].nodeName.toLowerCase(),-1===b.indexOf(","+c+",")&&d.setAttributeNS(null,c,e[f].nodeValue);return d},H=function(a,b){var c,e,f,g,h,i,j,k,m,o,p,q,r,s,t,u,v,w,x,y,z,A=a.tagName.toLowerCase(),B=.552284749831;return"path"!==A&&a.getBBox?(i=G(a,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),"rect"===A?(g=+a.getAttribute("rx")||0,h=+a.getAttribute("ry")||0,e=+a.getAttribute("x")||0,f=+a.getAttribute("y")||0,o=(+a.getAttribute("width")||0)-2*g,p=(+a.getAttribute("height")||0)-2*h,g||h?(q=e+g*(1-B),r=e+g,s=r+o,t=s+g*B,u=s+g,v=f+h*(1-B),w=f+h,x=w+p,y=x+h*B,z=x+h,c="M"+u+","+w+" V"+x+" C"+[u,y,t,z,s,z,s-(s-r)/3,z,r+(s-r)/3,z,r,z,q,z,e,y,e,x,e,x-(x-w)/3,e,w+(x-w)/3,e,w,e,v,q,f,r,f,r+(s-r)/3,f,s-(s-r)/3,f,s,f,t,f,u,v,u,w].join(",")+"z"):c="M"+(e+o)+","+f+" v"+p+" h"+-o+" v"+-p+" h"+o+"z"):"circle"===A||"ellipse"===A?("circle"===A?(g=h=+a.getAttribute("r")||0,k=g*B):(g=+a.getAttribute("rx")||0,h=+a.getAttribute("ry")||0,k=h*B),e=+a.getAttribute("cx")||0,f=+a.getAttribute("cy")||0,j=g*B,c="M"+(e+g)+","+f+" C"+[e+g,f+k,e+j,f+h,e,f+h,e-j,f+h,e-g,f+k,e-g,f,e-g,f-k,e-j,f-h,e,f-h,e+j,f-h,e+g,f-k,e+g,f].join(",")+"z"):"line"===A?c=n(l("M"+(a.getAttribute("x1")||0)+","+(a.getAttribute("y1")||0)+" L"+(a.getAttribute("x2")||0)+","+(a.getAttribute("y2")||0))):("polyline"===A||"polygon"===A)&&(m=(a.getAttribute("points")+"").match(d)||[],e=m.shift(),f=m.shift(),c="M"+e+","+f+" L"+m.join(","),"polygon"===A&&(c+=","+e+","+f+"z")),i.setAttribute("d",c),b&&a.parentNode&&(a.parentNode.insertBefore(i,a),a.parentNode.removeChild(a)),i):a},I=function(a,b,c){var f,g,j="string"==typeof a;return(!j||e.test(a)||(a.match(d)||[]).length<3)&&(f=j?h.selector(a):a&&a[0]?a:[a],f&&f[0]?(f=f[0],g=f.nodeName.toUpperCase(),b&&"PATH"!==g&&(f=H(f,!1),g="PATH"),a=f.getAttribute("PATH"===g?"d":"points")||"",f===c&&(a=f.getAttributeNS(null,"data-original")||a)):(i("WARNING: invalid morph to: "+a),a=!1)),a},J="Use MorphSVGPlugin.convertToPath(elementOrSelectorText) to convert to a path before morphing.",K=_gsScope._gsDefine.plugin({propName:"morphSVG",API:2,global:!0,version:"0.8.11",init:function(a,b,c,d){var e,g,h,j,k;return"function"!=typeof a.setAttribute?!1:("function"==typeof b&&(b=b(d,a)),e=a.nodeName.toUpperCase(),k="POLYLINE"===e||"POLYGON"===e,"PATH"===e||k?(g="PATH"===e?"d":"points",("string"==typeof b||b.getBBox||b[0])&&(b={shape:b}),j=I(b.shape||b.d||b.points||"","d"===g,a),k&&f.test(j)?(i("WARNING: a <"+e+"> cannot accept path data. "+J),!1):(j&&(this._target=a,a.getAttributeNS(null,"data-original")||a.setAttributeNS(null,"data-original",a.getAttribute(g)),h=this._addTween(a,"setAttribute",a.getAttribute(g)+"",j+"","morphSVG",!1,g,"object"==typeof b.precompile?function(a){a[0]=b.precompile[0],a[1]=b.precompile[1]}:"d"===g?B(b.shapeIndex,b.map||K.defaultMap,b.precompile):F(b.shapeIndex)),h&&(this._overwriteProps.push("morphSVG"),h.end=j,h.endProp=g)),!0)):(i("WARNING: cannot morph a <"+e+"> SVG element. "+J),!1))},set:function(a){var b;if(this._super.setRatio.call(this,a),1===a)for(b=this._firstPT;b;)b.end&&this._target.setAttribute(b.endProp,b.end),b=b._next}});K.pathFilter=A,K.pointsFilter=E,K.subdivideRawBezier=m,K.defaultMap="size",K.pathDataToRawBezier=function(a){return l(I(a,!0))},K.equalizeSegmentQuantity=z,K.convertToPath=function(a,b){"string"==typeof a&&(a=h.selector(a));for(var c=a&&0!==a.length?a.length&&a[0]&&a[0].nodeType?Array.prototype.slice.call(a,0):[a]:[],d=c.length;--d>-1;)c[d]=H(c[d],b!==!1);return c},K.pathDataToBezier=function(a,b){var c,d,e,f,g,i,j,k,m=l(I(a,!0))[0]||[],n=0;if(b=b||{},k=b.align||b.relative,f=b.matrix||[1,0,0,1,0,0],g=b.offsetX||0,i=b.offsetY||0,"relative"===k||k===!0?(g-=m[0]*f[0]+m[1]*f[2],i-=m[0]*f[1]+m[1]*f[3],n="+="):(g+=f[4],i+=f[5],k&&(k="string"==typeof k?h.selector(k):k&&k[0]?k:[k],k&&k[0]&&(j=k[0].getBBox()||{x:0,y:0},g-=j.x,i-=j.y))),c=[],e=m.length,f&&"1,0,0,1,0,0"!==f.join(","))for(d=0;e>d;d+=2)c.push({x:n+(m[d]*f[0]+m[d+1]*f[2]+g),y:n+(m[d]*f[1]+m[d+1]*f[3]+i)});else for(d=0;e>d;d+=2)c.push({x:n+(m[d]+g),y:n+(m[d+1]+i)});return c}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("MorphSVGPlugin");try{window.GreenSockGlobals=null;window._gsQueue=null;window._gsDefine=null;delete(window.GreenSockGlobals);delete(window._gsQueue);delete(window._gsDefine)}catch(e){};try{window.GreenSockGlobals=old_GS;window._gsQueue=old_GS_queue;window._gsDefine=old_GS_gsDefine}catch(e){};
/*!
 * verge 1.10.2+201705300050
 * http://npm.im/verge
 * MIT Ryan Van Etten
 */
!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c():a[b]=c()}(this,"DeeThemes_Verge",function(){function a(){return{width:k(),height:l()}}function b(a,b){var c={};return b=+b||0,c.width=(c.right=a.right+b)-(c.left=a.left-b),c.height=(c.bottom=a.bottom+b)-(c.top=a.top-b),c}function c(a,c){return!(!(a=a&&!a.nodeType?a[0]:a)||1!==a.nodeType)&&b(a.getBoundingClientRect(),c)}function d(b){b=null==b?a():1===b.nodeType?c(b):b;var d=b.height,e=b.width;return d="function"==typeof d?d.call(b):d,(e="function"==typeof e?e.call(b):e)/d}var e={},f="undefined"!=typeof window&&window,g="undefined"!=typeof document&&document,h=g&&g.documentElement,i=f.matchMedia||f.msMatchMedia,j=i?function(a){return!!i.call(f,a).matches}:function(){return!1},k=e.viewportW=function(){var a=h.clientWidth,b=f.innerWidth;return a<b?b:a},l=e.viewportH=function(){var a=h.clientHeight,b=f.innerHeight;return a<b?b:a};return e.mq=j,e.matchMedia=i?function(){return i.apply(f,arguments)}:function(){return{}},e.viewport=a,e.scrollX=function(){return f.pageXOffset||h.scrollLeft},e.scrollY=function(){return f.pageYOffset||h.scrollTop},e.rectangle=c,e.aspect=d,e.inX=function(a,b){var d=c(a,b);return!!d&&d.right>=0&&d.left<=k()},e.inY=function(a,b){var d=c(a,b);return!!d&&d.bottom>=0&&d.top<=l()},e.inViewport=function(a,b){var d=c(a,b);return!!d&&d.bottom>=0&&d.right>=0&&d.top<=l()&&d.left<=k()},e});function LivIconsEvoDefaults(){var default_options={pathToFolder:'/plugins/wordpress-cf7-stripe/wp-content/plugins/livicons-evolution/assets/svg/',name:'bell',style:'original',size:'60px',strokeStyle:'original',strokeWidth:'original',tryToSharpen:!0,rotate:'none',flipHorizontal:!1,flipVertical:!1,strokeColor:'#22A7F0',strokeColorAction:'#b3421b',strokeColorAlt:'#F9B32F',strokeColorAltAction:'#ab69c6',fillColor:'#91e9ff',fillColorAction:'#ff926b',solidColor:'#6C7A89',solidColorAction:'#4C5A69',solidColorBg:'#ffffff',solidColorBgAction:'#ffffff',colorsOnHover:'none',colorsHoverTime:0.3,colorsWhenMorph:'none',brightness:0.1,saturation:0.07,morphState:'start',morphImage:'none',allowMorphImageTransform:!1,strokeWidthFactorOnHover:'none',strokeWidthOnHoverTime:0.3,keepStrokeWidthOnResize:!1,animated:!0,eventType:'hover',eventOn:'self',autoPlay:!1,delay:0,duration:'default',repeat:'default',repeatDelay:'default',drawOnViewport:!1,viewportShift:'oneHalf',drawDelay:0,drawTime:1,drawStagger:0.1,drawStartPoint:'middle',drawColor:'same',drawColorTime:1,drawReversed:!1,drawEase:'Power1.easeOut',eraseDelay:0,eraseTime:1,eraseStagger:0.1,eraseStartPoint:'middle',eraseReversed:!0,eraseEase:'Power1.easeOut',touchEvents:!1,beforeAdd:!1,afterAdd:!1,beforeUpdate:!1,afterUpdate:!1,beforeRemove:!1,afterRemove:!1,beforeDraw:!1,afterDraw:!1,duringDraw:!1,beforeErase:!1,afterErase:!1,duringErase:!1,beforeAnim:!1,afterAnim:!1,duringAnim:!1};return default_options};/*****************************************************************************************************
 * @name:       LivIconsEvo.min.js - the main (minified) JS file of LivIcons (Live Icons) Evolution
 * @version:    2.5.XXX (XXX is a total number of icons)
 * @URL:        https://livicons.com
 * @copyright:  (c) 2013-2018 DeeThemes (http://codecanyon.net/user/DeeThemes)
 * @licenses:   http://codecanyon.net/licenses/regular
                http://codecanyon.net/licenses/extended
******************************************************************************************************/
;(function(k,C){function M(b,a){b.css("visibility","hidden");var e=n(b.find("svg")[0]);e.attr({preserveAspectRatio:"xMinYMin meet"});var c=e.attr("viewBox").w/2+" "+e.attr("viewBox").h/2;e.selectAll("desc").forEach(function(a){"Created with Snap"==a.innerSVG()&&k(a.node).text("LivIcons Evolution")});var f=k(e.node),w=e.select("g.lievo-main"),g=e.g().addClass("lievo-setrotation");e.prepend(g);g=g.g().addClass("lievo-setsharp");g=g.g().addClass("lievo-setflip");g.append(w);a.morph?"end"===a.morphState?(f.find("g.lievo-main g.lievo-morphstartstate").remove(),a.curMorphState="end"):(f.find("g.lievo-main g.lievo-morphendstate").remove(),a.curMorphState="start"):a.curMorphState="not morph";switch(a.style){case "solid":f.find("g.lievo-main g.lievo-solidicon").siblings(":not(g.lievo-common)").remove();break;case "lines":case "lines-alt":case "linesAlt":f.find("g.lievo-main g.lievo-lineicon").siblings(":not(g.lievo-common)").remove();break;default:f.find("g.lievo-main g.lievo-filledicon").siblings(":not(g.lievo-common)").remove()}f=w.rect(-19,-19,4,4).addClass("lievo-checkshift lievo-donotdraw lievo-nohoverstroke lievo-nohovercolor").attr({fill:"none",stroke:"#ffffff","stroke-width":2,"stroke-linecap":"butt","stroke-linejoin":"round",opacity:0});e.attr("data-shift")&&("x"===e.attr("data-shift")?f.attr("x",-20):"y"===e.attr("data-shift")?f.attr("y",-20):"xy"===e.attr("data-shift")&&f.attr({x:-20,y:-20}));"solid"===a.style&&e.attr("data-solidshift")&&("x"===e.attr("data-solidshift")?f.attr("x",-19.5):"y"===e.attr("data-solidshift")?f.attr("y",-19.5):"xy"===e.attr("data-solidshift")&&f.attr({x:-19.5,y:-19.5}));if(a.morph&&a.morphImage){if(e.select(".lievo-morphimage")){var d=e.ptrn(0,0,"100%","100%",0,0,0,0);d.node.removeAttribute("viewBox");var l=d.attr("patternUnits","userSpaceOnUse").addClass("lievo-morphpattern").toDefs().g()}else a.morphImage=!1;f=e.select(".lievo-morphimage").attr("fill");l.rect(0,0,60,60).attr({fill:f,stroke:"#ffffff","stroke-width":0}).addClass("lievo-donotdraw")}var q=e.selectAll("circle, ellipse, image, line, path, polygon, polyline, rect, text, use");q.forEach(function(a){k(a.node).attr("stroke")||a.attr({stroke:"none","stroke-width":0});k(a.node).attr("fill")||a.attr("fill","none")});"round"===a.strokeStyle?q.forEach(function(a){"none"===a.attr("stroke")||a.hasClass("lievo-savelinecap")||(a.node.setAttribute("stroke-linecap","round"),a.node.setAttribute("stroke-linejoin","round"))}):"square"===a.strokeStyle&&q.forEach(function(a){"none"===a.attr("stroke")||a.hasClass("lievo-savelinecap")||(a.node.setAttribute("stroke-linecap","square"),a.node.setAttribute("stroke-linejoin","miter"),a.attr("stroke-miterlimit")||a.attr("stroke-miterlimit","10"))});q.forEach(function(a){a.data("initStrokeWidth",a.attr("stroke-width"));a.data("initStrokeLinecap",a.attr("stroke-linecap"));a.data("initStrokeLinejoin",a.attr("stroke-linejoin"))});switch(a.style){case "filled":q.forEach(function(b){"none"===b.attr("stroke")||b.hasClass("lievo-savestroke")||b.attr("stroke",a.strokeColor);"none"===b.attr("fill")||b.hasClass("lievo-savefill")||b.attr("fill",a.fillColor);b.hasClass("lievo-likestroke")&&b.attr("fill",a.strokeColor)});break;case "lines":q.forEach(function(b){"none"===b.attr("stroke")||b.hasClass("lievo-savestroke")||b.attr("stroke",a.strokeColor);b.hasClass("lievo-savefill")||b.attr("fill","none");b.hasClass("lievo-likestroke")&&b.attr("fill",a.strokeColor)});break;case "lines-alt":case "linesAlt":q.forEach(function(b){b.hasClass("lievo-altstroke")?("none"!==b.attr("stroke")&&b.attr("stroke",a.strokeColorAlt),b.hasClass("lievo-likestroke")?b.attr("fill",a.strokeColorAlt):b.hasClass("lievo-savefill")||b.attr("fill","none")):("none"===b.attr("stroke")||b.hasClass("lievo-savestroke")||b.attr("stroke",a.strokeColor),b.hasClass("lievo-likestroke")?b.attr("fill",a.strokeColor):b.hasClass("lievo-savefill")||b.attr("fill","none"))});break;case "solid":q.forEach(function(b){b.hasClass("lievo-solidbg")?("none"===b.attr("stroke")||b.hasClass("lievo-savestroke")||b.attr("stroke",a.solidColorBg),"none"===b.attr("fill")||b.hasClass("lievo-savefill")||b.attr("fill",a.solidColorBg)):("none"===b.attr("stroke")||b.hasClass("lievo-savestroke")||b.attr("stroke",a.solidColor),"none"===b.attr("fill")||b.hasClass("lievo-savefill")||b.attr("fill",a.solidColor))})}b.css("width",a.size);v&&b.hasClass("livicon-evo-back-in-combined")&&(b.parent(".livicon-evo-combined").css("width",a.size),b.css("width","100%"));a.morph&&a.morphImage&&(l.image(a.morphImage,0,0,"100%","100%"),d.select("image").attr("preserveAspectRatio","xMidYMid slice"),e.select(".lievo-morphimage").attr("fill",d));var r,N=function(){a.scaleStrokeFactor=b.width()/60;0>=a.scaleStrokeFactor&&(a.scaleStrokeFactor=1);"original"!==a.strokeWidth?(q.forEach(function(b){if("none"!==b.attr("stroke")){var c=(""+a.strokeWidth).replace(/[0-9.]/g,""),d=b.data("initStrokeWidth").replace(/[^0-9.]/g,"")/2,d=+(""+a.strokeWidth).replace(/[^0-9.]/g,"")/a.scaleStrokeFactor*d;b.node.setAttribute("stroke-width",d+c);b.data("curStrokeWidth",d+c)}}),r=(""+a.strokeWidth).replace(/[^0-9.]/g,"")/a.scaleStrokeFactor/2):a.tryToSharpen&&.5>a.scaleStrokeFactor?(q.forEach(function(b){if("none"!==b.attr("stroke")){var c=b.data("initStrokeWidth").replace(/[0-9.]/g,""),d=b.data("initStrokeWidth").replace(/[^0-9.]/g,"")/2,d=1/a.scaleStrokeFactor*d;b.node.setAttribute("stroke-width",d+c);b.data("curStrokeWidth",d+c)}}),r=1/a.scaleStrokeFactor/2):(q.forEach(function(a){"none"!==a.attr("stroke")&&a.data("curStrokeWidth",a.data("initStrokeWidth"))}),r=e.select(".lievo-checkshift").attr("stroke-width").replace(/[^0-9.]/g,"")/2);(0===a.strokeWidthFactorOnHover||a.strokeWidthFactorOnHover)&&q.forEach(function(b){if("none"!==b.attr("stroke")&&!b.hasClass("lievo-nohoverstroke")){var c=b.data("curStrokeWidth");if(c){var d=(""+c).replace(/[0-9.]/g,""),c=+(""+c.replace(/[^0-9.]/g,""))*a.strokeWidthFactorOnHover;b.data("hoverStrokeWidth",c+d)}}})};N();if(a.keepStrokeWidthOnResize)k(window).on("resize",function(){N()});if(a.colorsOnHover)var m=a.colorsOnHover;a.morph&&a.colorsWhenMorph&&(a.colorsOnHover=!1,m=a.colorsWhenMorph);q.forEach(function(b){var c=k(b.node).attr("fill");b.data("curFill",c);b.data("curStroke",b.attr("stroke"));b.data("curOpacity",b.attr("opacity"));if(m){if("none"===c)b.data("actionFill","none");else if(c.toLowerCase().match(/url\(/))b.data("actionFill",c);else{if("lighter"===m)var d="solid"===a.style&&b.hasClass("lievo-solidbg")?a.solidColorBgAction:G(c,-a.saturation,a.brightness);else if("darker"===m)d="solid"===a.style&&b.hasClass("lievo-solidbg")?a.solidColorBgAction:G(c,a.saturation,-a.brightness);else if("hue"===m.replace(/[^hue]/g,""))d="solid"===a.style&&b.hasClass("lievo-solidbg")?a.solidColorBgAction:O(c,m.replace(/[^0-9.]/g,"")?m.replace(/[^0-9.]/g,""):0);else if("custom"===m)switch(a.style){case "solid":d=b.hasClass("lievo-solidbg")?a.solidColorBgAction:a.solidColorAction;break;case "lines":d=a.strokeColorAction;break;case "lines-alt":case "linesAlt":d=b.hasClass("lievo-altstroke")?a.strokeColorAltAction:a.strokeColorAction;break;default:d=b.hasClass("lievo-likestroke")?a.strokeColorAction:a.fillColorAction}b.data("actionFill",d)}if("none"===b.attr("stroke"))b.data("actionStroke","none");else{if("lighter"===m)d="solid"===a.style&&b.hasClass("lievo-solidbg")?a.solidColorBgAction:G(b.attr("stroke"),-a.saturation,a.brightness);else if("darker"===m)d="solid"===a.style&&b.hasClass("lievo-solidbg")?a.solidColorBgAction:G(b.attr("stroke"),a.saturation,-a.brightness);else if("hue"===m.replace(/[^hue]/g,""))d="solid"===a.style&&b.hasClass("lievo-solidbg")?a.solidColorBgAction:O(b.attr("stroke"),m.replace(/[^0-9.]/g,"")?m.replace(/[^0-9.]/g,""):0);else if("custom"===m)switch(a.style){case "solid":d=b.hasClass("lievo-solidbg")?a.solidColorBgAction:a.solidColorAction;break;case "lines":d=a.strokeColorAction;break;case "lines-alt":case "linesAlt":d=b.hasClass("lievo-altstroke")?a.strokeColorAltAction:a.strokeColorAction;break;default:d=a.strokeColorAction}b.data("actionStroke",d)}}});a.rotate&&(h.set(e.select("g.lievo-setrotation").node,{rotation:a.rotate,svgOrigin:c}),a.morph&&a.morphImage&&!a.allowMorphImageTransform&&(l=d.select("g"),!a.flipVertical&&a.flipHorizontal?l.transform("r"+a.rotate+",30,30"):a.flipVertical&&!a.flipHorizontal?l.transform("r"+a.rotate+",30,30"):l.transform("r"+-a.rotate+",30,30")));a.flipVertical&&!a.flipHorizontal?(e.select("g.lievo-setflip").transform("s1,-1,30,30"),a.morph&&a.morphImage&&!a.allowMorphImageTransform&&d.select("image").transform("s1,-1,30,30")):a.flipHorizontal&&!a.flipVertical?(e.select("g.lievo-setflip").transform("s-1,1,30,30"),a.morph&&a.morphImage&&!a.allowMorphImageTransform&&d.select("image").transform("s-1,1,30,30")):a.flipVertical&&a.flipHorizontal&&(e.select("g.lievo-setflip").transform("s-1,-1,30,30"),a.morph&&a.morphImage&&!a.allowMorphImageTransform&&d.select("image").transform("s-1,-1,30,30"));a.animated?(e.attr("data-animoptions")?(d=JSON.parse(e.attr("data-animoptions").replace(/\'/g,'"')),a.def_duration=d.duration?u(d.duration):1,a.def_repeat=d.repeat?"loop"===d.repeat?-1:u(d.repeat):0,a.def_repeatDelay=d.repeatDelay?u(d.repeatDelay):.5):(a.def_duration=1,a.def_repeat=0,a.def_repeatDelay=.5),a.use_duration="default"===a.duration?a.def_duration:u(a.duration),isNaN(a.use_duration)&&(a.use_duration=1),a.use_repeat="default"===a.repeat?a.def_repeat:"loop"===a.repeat?-1:u(a.repeat),isNaN(a.use_repeat)&&(a.use_repeat=0),-1!==a.use_repeat&&0>a.use_repeat&&(a.use_repeat=0),a.use_repeatDelay="default"===a.repeatDelay?a.def_repeatDelay:u(a.repeatDelay),isNaN(a.use_repeatDelay)&&(a.use_repeatDelay=a.def_repeatDelay),0>=a.delay&&(a.delay=.001),0>=a.use_repeatDelay&&(a.use_repeatDelay=.001),0>=a.drawDelay&&(a.drawDelay=.001),0>=a.eraseDelay&&(a.eraseDelay=.001),a.morph&&(a.def_repeat=0,a.use_repeat=0,a.def_repeatDelay=0,a.use_repeatDelay=0)):(a.def_duration=0,a.def_repeat=0,a.def_repeatDelay=0);var t=b.data("drawTL");t?t.pause().kill().clear():t=new y({paused:!0});var p=b.data("mainTL");p?p.pause().kill().clear():p=new y({paused:!0});if(a.animated){var d=e.selectAll("circle, ellipse, g, image, line, path, polygon, polyline, rect, text, use"),B=new y;if(a.morph&&a.colorsWhenMorph){var z=new y;d.forEach(function(b){if("end"!==a.morphState){if(!b.hasClass("lievo-nohovercolor")&&"g"!==b.type.toLowerCase()){var c=b.data("actionStroke"),d=b.data("actionFill");c&&"none"!==c&&(c=h.to(b.node,a.use_duration,{stroke:c}),z.add(c,0));d&&"none"!==d&&!d.match(/url\(/)&&(b=h.to(b.node,a.use_duration,{fill:d}),z.add(b,0))}}else b.hasClass("lievo-nohovercolor")||"g"===b.type.toLowerCase()||(c=b.data("actionStroke"),d=b.data("actionFill"),c&&"none"!==c&&h.set(b.node,{stroke:c}),d&&"none"!==d&&!d.match(/url\(/)&&h.set(b.node,{fill:d}),c=b.data("curStroke"),d=b.data("curFill"),c&&"none"!==c&&(c=h.to(b.node,a.use_duration,{stroke:c}),z.add(c,0)),d&&"none"!==d&&!d.match(/url\(/)&&(b=h.to(b.node,a.use_duration,{fill:d}),z.add(b,0)))})}d.forEach(function(a){if(a.attr("data-animdata")){var b=JSON.parse(a.attr("data-animdata").replace(/\'/g,'"')),c=new y;b.steps.forEach(function(b,d){for(var g in b.vars)b.vars.hasOwnProperty(g)&&(b.vars[g]=u(b.vars[g]),"none"!==b.vars[g]&&(b.vars[g]=A(b.vars[g])));0===u(b.duration)&&(b.duration=.001);b.vars.ease="none"!==b.vars.ease&&b.vars.ease?J(b.vars.ease):P.easeNone;b.vars.path&&(b.vars.morphSVG=b.vars.path);if(b.vars.bezier&&b.vars.bezier.values&&"string"===typeof b.vars.bezier.values)for(g=n.path.toCubic(b.vars.bezier.values).toString(),g=g.replace(/[M|m]/g,"").replace(/[C|c]/g,","),g=g.split(","),b.vars.bezier.values=[],d=0;d<g.length;d+=2){var e={};e.x=g[d];e.y=g[d+1];b.vars.bezier.values.push(e)}K||L?b.vars.drawSVG?"0%"===b.vars.drawSVG||0===b.vars.drawSVG?(g=h.to(a.node,+b.duration,b.vars),g.eventCallback("onStart",function(){"square"===a.data("initStrokeLinecap").toLowerCase()&&h.set(a.node,{attr:{"stroke-linecap":"round"}});"miter"===a.data("initStrokeLinejoin").toLowerCase()&&h.set(a.node,{attr:{"stroke-linejoin":"round"}})})):"100%"===b.vars.drawSVG?(g=h.to(a.node,+b.duration,b.vars),g.eventCallback("onComplete",function(){"square"===a.data("initStrokeLinecap").toLowerCase()&&h.set(a.node,{attr:{"stroke-linecap":"square"}});"miter"===a.data("initStrokeLinejoin").toLowerCase()&&h.set(a.node,{attr:{"stroke-linejoin":"miter"}})})):g=h.to(a.node,+b.duration,b.vars):g=h.to(a.node,+b.duration,b.vars):g=h.to(a.node,+b.duration,b.vars);c.add(g,b.position||"+=0");B.add(c,0)});a.node.removeAttribute("data-animdata")}});p.add(B,0);B.duration(a.use_duration);a.morph&&a.colorsWhenMorph&&(p.add(z,0),z.duration(a.use_duration));p.delay(a.delay).repeat(a.use_repeat).repeatDelay(a.use_repeatDelay)}else q=e.selectAll("circle, ellipse, g, image, line, path, polygon, polyline, rect, text, use"),q.forEach(function(a){a.node.removeAttribute("data-animdata")});b.data("drawTL",t);b.data("mainTL",p);a.event_elem="self"!==a.eventOn&&a.eventOn?"parent"===a.eventOn?b.parent():"grandparent"===a.eventOn?b.parent().parent():k(a.eventOn):b;v&&b.hasClass("livicon-evo-back-in-combined")&&((d=b.parent(".livicon-evo-combined"),"self"!==a.eventOn&&a.eventOn)?"parent"===a.eventOn?a.event_elem=d.parent():"grandparent"===a.eventOn&&(a.event_elem=d.parent().parent()):a.event_elem=d);v&&b.parent().hasClass("livicon-evo-front-in-combined")&&((d=b.parent(".livicon-evo-front-in-combined"),"self"!==a.eventOn&&a.eventOn)?"parent"===a.eventOn?a.event_elem=d.parent():"grandparent"===a.eventOn&&(a.event_elem=d.parent().parent()):a.event_elem=b);if(a.animated)if(!a.morph)if("click"===a.eventType)a.event_elem.on("click.LiviconEvo",function(){-1===a.use_repeat?a.ending?p.isActive()&&p.tweenTo(p.duration(),{onComplete:function(){p.pause().totalProgress(0);"function"==typeof a.afterAnim&&a.afterAnim();a.ending=!1}}):a.drawn&&(a.ending=!0,b.playLiviconEvo()):a.drawn&&(b.playLiviconEvo(),a.ending=!1)});else{if("hover"===a.eventType)if(d=function(){a.ending||a.drawn&&b.playLiviconEvo()},l=function(){p.isActive()&&(a.ending=!0,p.tweenTo(p.duration(),{onComplete:function(){p.pause().totalProgress(0);-1===a.use_repeat&&"function"==typeof a.afterAnim&&a.afterAnim();a.ending=!1}}))},-1===a.use_repeat)a.event_elem.on("mouseenter.LiviconEvo",d).on("mouseleave.LiviconEvo",l);else a.event_elem.on("mouseenter.LiviconEvo",function(){a.drawn&&b.playLiviconEvo()})}else if(a.morph)if("click"===a.eventType)a.event_elem.on("click.LiviconEvo",function(){a.drawn&&b.playLiviconEvo()});else"hover"===a.eventType&&(l=function(){a.drawn&&p.reverse()},a.event_elem.on("mouseenter.LiviconEvo",function(){a.drawn&&b.playLiviconEvo()}).on("mouseleave.LiviconEvo",l));if(a.colorsOnHover)a.event_elem.on("mouseenter.LiviconEvo",function(){!t.isActive()&&a.drawn&&q.forEach(function(b){if(!b.hasClass("lievo-nohovercolor")){var c=b.data("actionStroke"),d=b.data("actionFill");c&&"none"!==c&&h.to(b.node,a.colorsHoverTime,{stroke:c});d&&"none"!==d&&!d.match(/url\(/)&&h.to(b.node,a.colorsHoverTime,{fill:d})}})}).on("mouseleave.LiviconEvo",function(){!t.isActive()&&a.drawn&&q.forEach(function(b){if(!b.hasClass("lievo-nohovercolor")){var c=b.data("curStroke"),d=b.data("curFill");c&&"none"!==c&&h.to(b.node,a.colorsHoverTime,{stroke:c});d&&"none"!==d&&!d.match(/url\(/)&&h.to(b.node,a.colorsHoverTime,{fill:d})}})});if(0===a.strokeWidthFactorOnHover||a.strokeWidthFactorOnHover)a.event_elem.on("mouseenter.LiviconEvo",function(){!t.isActive()&&a.drawn&&q.forEach(function(b){if(!b.hasClass("lievo-nohoverstroke")){var c=b.data("hoverStrokeWidth");c&&h.to(b.node,a.strokeWidthOnHoverTime,{attr:{"stroke-width":c}})}})}).on("mouseleave.LiviconEvo",function(){!t.isActive()&&a.drawn&&q.forEach(function(b){if(!b.hasClass("lievo-nohoverstroke")){var c=b.data("curStrokeWidth");c&&h.to(b.node,a.strokeWidthOnHoverTime,{attr:{"stroke-width":c}})}})});if(a.touchEvents&&(a.animated||a.colorsOnHover||0===a.strokeWidthFactorOnHover||a.strokeWidthFactorOnHover))a.event_elem.on("touchstart.LiviconEvo",function(b){b.preventDefault();a.event_elem.trigger("mouseenter.LiviconEvo")}).on("touchend.LiviconEvo",function(){a.event_elem.trigger("mouseleave.LiviconEvo");try{a.event_elem[0].click()}catch(R){if("function"==typeof document.createEvent){var b=document.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null);a.event_elem.get(0).dispatchEvent(b)}else"function"==typeof window.MouseEvent&&(b=new MouseEvent("click",{bubbles:!0,cancelable:!0}),a.event_elem.get(0).dispatchEvent(b))}});if(d=b.find("svg")[0].getScreenCTM())l=-d.e%1,f=-d.f%1,0==l?l=0:-.5>=l&&(l+=1),0==f?f=0:-.5>=f&&(f+=1),b.find("svg").css({left:l+"px",top:f+"px"}),a.tryToSharpen&&(l=e.select(".lievo-checkshift"),f=e.select(".lievo-morphpattern"),w=n.matrix(),l&&(l=l.getBBox(),0!==(l.x+r)*d.a%1&&(h.set(e.select("g.lievo-setsharp").node,{x:"+="+((l.x-r)*d.a%1/d.a||0),svgOrigin:c}),w.e=(l.x-r)*d.a%1/d.a||0),0!==(l.y+r)*d.d%1&&(h.set(e.select("g.lievo-setsharp").node,{y:"+="+((l.y-r)*d.d%1/d.d||0),svgOrigin:c}),w.f=(l.y-r)*d.d%1/d.d||0),f&&f.attr("patternTransform",w.toString())));if(a.drawOnViewport&&!a.drawOnce){var x,c=b.find("svg").get(0).getBoundingClientRect().height;switch(a.viewportShift){case "none":case!1:x=1;break;case "one-half":case "oneHalf":x=c/2;break;case "one-third":case "oneThird":x=c/3;break;case "full":x=c;break;default:x=c/2}var E=function(){if(!a.drawOnce){var c=k(window).height();x>c&&(x=c-10);Q.inViewport(b,-x)&&(b.pauseLiviconEvo(),b.drawLiviconEvo(),a.drawOnce=!0)}};E();k(window).on("resize scroll",function(){E()})}else b.css("visibility","visible"),a.drawOnce=!0,a.drawn=!0,a.autoPlay&&b.playLiviconEvo()}function H(){return H.counter++}function I(b){if(null==b||"object"!=typeof b)return b;var a=new b.constructor,e;for(e in b)a[e]=I(b[e]);return a}function A(b){if("string"==typeof b||b instanceof String)switch(b.toLowerCase()){case "true":case "yes":return!0;case "false":case "no":case "none":return!1;default:return b}else return b}function u(b){return"string"==typeof b||b instanceof String?+b||"0"==b?+b:b:b}function J(b){var a=b.split(".");if(2===a.length&&"SteppedEase"!==a[0])return v?window.DeeThemes_GS[a[0]][a[1]]:window[a[0]][a[1]];b=b.match(/true|false|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/ig).map(JSON.parse);return"SteppedEase"!==a[0]?v?window.DeeThemes_GS[a[0]][a[1]].config.apply(null,b):window[a[0]][a[1]].config.apply(null,b):v?window.DeeThemes_GS[a[0]].config.apply(null,b):window[a[0]].config.apply(null,b)}function G(b,a,e){b=n.color(b);b=n.rgb2hsb(b.r,b.g,b.b);b.s+=a;0>b.s&&(b.s=0);1<b.s&&(b.s=1);b.b+=e;0>b.b&&(b.b=0);1<b.b&&(b.b=1);return n.hsb(b.h,b.s,b.b)}function O(b,a){var e=n.color(b),e=n.rgb2hsb(e.r,e.g,e.b);a=Math.abs(a)/360%1;e.h=(e.h+a)%1;return n.hsb(e.h,e.s,e.b)}var v=!1,h=window.TweenMax,y=window.TimelineMax,P=window.Power0,n=window.Snap,Q=window.verge;window.DeeThemes_GS&&window.DeeThemes_Snap&&window.DeeThemes_Verge&&(v=!0);v&&(h=window.DeeThemes_GS.TweenMax,y=window.DeeThemes_GS.TimelineMax,P=window.DeeThemes_GS.Power0,n=window.DeeThemes_Snap,Q=window.DeeThemes_Verge);var F=LivIconsEvoDefaults();F.pathToFolder.match(/(\/)$/)||""===F.pathToFolder.trim()||(F.pathToFolder+="/");var K="ActiveXObject"in window?!0:!1,L=navigator.userAgent.match(/Edge\/\d+/)?!0:!1;k.fn.extend({addLiviconEvo:function(b,a){if(2>arguments.length)var e=b===Object(b)?b:{};else b===Object(b)?e=b:(e={},e[b]=a);return this.each(function(){var a=k(this),b=a.data("options"),w=a.data("saved_options"),g={};a.addClass("livicon-evo-holder");w&&w.event_elem&&(w.event_elem.off(".LiviconEvo"),w.event_elem=C);b&&(b=b.split(";"),b.forEach(function(a){a=a.trim().split(/:(.+)/);a[0]&&a[1]&&(g[a[0].trim()]=a[1].trim())}));g=k.extend(I(F),g,e);if(g.name){g.name.match(/(\.svg)$/)||(g.name+=".svg");for(var d in g)g.hasOwnProperty(d)&&(g[d]=u(g[d]),g[d]=A(g[d]));g.name.match(/morph+(-)/)?g.morph=!0:g.morph=!1;g.drawOnce=!1;g.drawn=!1;g.ending=!1;a.removeData("saved_options");a.data("saved_options",g);"function"==typeof g.beforeAdd&&g.beforeAdd();k.ajax({url:g.pathToFolder+g.name,type:"GET",dataType:"text",global:!0,success:function(b){a.removeClass("livicon-evo-error");var c=b.match(/(id=[\"'](.*?)[\"'])/gi);c&&c.forEach(function(a){a=a.replace(/id=[\"']/i,"").replace(/[\"']/,"");b=b.replace(new RegExp(a,"g"),a+"_"+H())});b=n.parse(b);c=a.empty().append("<div>").children().addClass("lievo-svg-wrapper");try{c[0].appendChild(b.node)}catch(r){c.html(b.node)}M(a,g);"function"==typeof g.afterAdd&&g.afterAdd()},error:function(b,c){a.addClass("livicon-evo-error");0===b.status&&"error"===c?a.html('<span><acronym title="Please use LivIconsEvo script on a working local or internet connected webserver, it does NOT work directly opened from a HDD.">Network Error</acronym></span>'):404===b.status&&"error"===c?a.html('<span><acronym title="Please check the &quot;name&quot; option and/or default &quot;pathToFolder&quot; one where all SVG LivIconEvo files are placed.">Not Found</acronym></span>'):a.html('<span><acronym title="There is an unknown error. Please check for messages in Console (F12 key).">Unknown Error</acronym></span>')}})}else a.addClass("livicon-evo-error").html('<span><acronym title="Please check the &quot;name&quot; option of your SVG LivIconEvo file.">Name Error</acronym></span>')})},updateLiviconEvo:function(b,a){if(2>arguments.length)var e=b===Object(b)?b:{};else b===Object(b)?e=b:(e={},e[b]=a);return this.each(function(){var a=k(this),b=a.data("saved_options");if(b){b.event_elem&&b.event_elem.off(".LiviconEvo");b.event_elem=C;b=I(b);b=k.extend(b,e);b.name.match(/(\.svg)$/)||(b.name+=".svg");for(var w in b)b.hasOwnProperty(w)&&(b[w]=u(b[w]),b[w]=A(b[w]));b.name.match(/morph+(-)/)?b.morph=!0:b.morph=!1;b.drawOnce=!1;b.drawn=!1;b.ending=!1;a.data("saved_options",b);"function"==typeof b.beforeUpdate&&b.beforeUpdate();k.ajax({url:b.pathToFolder+b.name,type:"GET",dataType:"text",global:!0,success:function(c){a.addClass("livicon-evo-holder").removeClass("livicon-evo-error");var d=c.match(/(id=[\"'](.*?)[\"'])/gi);d&&d.forEach(function(a){a=a.replace(/id=[\"']/i,"").replace(/[\"']/,"");c=c.replace(new RegExp(a,"g"),a+"_"+H())});c=n.parse(c);d=a.empty().append("<div>").children().addClass("lievo-svg-wrapper");try{d[0].appendChild(c.node)}catch(l){d.html(c.node)}M(a,b);"function"==typeof b.afterUpdate&&b.afterUpdate()},error:function(b,c){a.addClass("livicon-evo-error");0===b.status&&"error"===c?a.html('<span><acronym title="Please use LivIconsEvo script on a working local or internet connected webserver, it does NOT work directly opened from a HDD.">Network Error</acronym></span>'):404===b.status&&"error"===c?a.html('<span><acronym title="Please check the &quot;name&quot; option and/or default &quot;pathToFolder&quot; one where all SVG LivIconEvo files are placed.">Not Found</acronym></span>'):a.html('<span><acronym title="There is an unknown error. Please check for messages in Console (F12 key).">Unknown Error</acronym></span>')}})}else a.addLiviconEvo(e)})},changeLiviconEvo:function(b,a){if(2>arguments.length)var e=b===Object(b)?b:{};else b===Object(b)?e=b:(e={},e[b]=a);for(var c in e)e.hasOwnProperty(c)&&(e[c]=u(e[c]),e[c]=A(e[c]));return this.each(function(){var a=k(this),b=a.data(),c=b.saved_options;if(c){var d=b.drawTL,b=b.mainTL,l=a.find("circle, ellipse, line, path, polygon, polyline, rect");c.event_elem&&c.event_elem.off(".LiviconEvo");c.event_elem=C;c=I(c);c=k.extend(c,e);d.pause().totalProgress(0).clear();b.pause().totalProgress(0);c.drawn=!0;c.drawOnViewport=0==e.drawOnViewport?!1:!0;a.eraseLiviconEvo(c);var q=setTimeout(function(){a.updateLiviconEvo(c);clearTimeout(q)},1E3*(c.eraseDelay+c.eraseTime+c.eraseStagger*l.length))}else a.addLiviconEvo(e)})},drawLiviconEvo:function(b,a,e){if(1>=arguments.length)if(b===Object(b))var c=b;else c={},c.force=b;else 2===arguments.length?b===Object(b)?(c=b,c.force=a):(c={},c[b]=a,c.force||(c.force=!1)):(c={},c[b]=a,c.force=e);for(var f in c)c.hasOwnProperty(f)&&(c[f]=u(c[f]),c[f]=A(c[f]));return this.each(function(){var a=k(this),b=a.data(),d=b.saved_options;if(d){var e=b.drawTL,f=b.mainTL,b=0===c.drawDelay||c.drawDelay?c.drawDelay:d.drawDelay,r=0===c.drawTime||c.drawTime?c.drawTime:d.drawTime,u=0===c.drawStagger||c.drawStagger?c.drawStagger:d.drawStagger,m=c.drawStartPoint?c.drawStartPoint:d.drawStartPoint,t=c.drawColor?c.drawColor:d.drawColor,p=0===c.drawColorTime||c.drawColorTime?c.drawColorTime:d.drawColorTime,B=c.drawEase?c.drawEase:d.drawEase,z=c.beforeDraw?c.beforeDraw:d.beforeDraw,x=c.afterDraw?c.afterDraw:d.afterDraw,E=c.duringDraw?c.duringDraw:d.duringDraw,D="undefined"!=typeof c.drawReversed?c.drawReversed:d.drawReversed,v=a.find("circle, ellipse, line, path, polygon, polyline, rect").not(".lievo-morphpattern").not(".lievo-donotdraw").not(".lievo-nohovercolor").get();e.eventCallback("onStart",null);e.eventCallback("onComplete",null);e.eventCallback("onUpdate",null);0>=b&&(b=.001);0>=r&&(r=.001);A(c.force)&&(e.clear(),e.pause().totalProgress(0),f.pause().totalProgress(0),d.drawn=!1);if(!e.isActive()&&!f.isActive()&&!d.drawn){D&&v.reverse();if(d.morph&&d.colorsWhenMorph){n(a.find("svg")[0]).selectAll("circle, ellipse, image, line, path, polygon, polyline, rect, text, use").forEach(function(a){a.data("curFill",k(a.node).attr("fill"));a.data("curStroke",a.attr("stroke"));a.data("curOpacity",a.attr("opacity"))});var y=n(a.find("svg")[0]).select(".lievo-checkshift"),y=y.data("actionStroke")}var f=function(){var a=n(this.target);if(K||L)"square"===a.data("initStrokeLinecap").toLowerCase()&&h.set(this.target,{attr:{"stroke-linecap":"round"}}),"miter"===a.data("initStrokeLinejoin").toLowerCase()&&h.set(this.target,{attr:{"stroke-linejoin":"round"}});"same"!==t?(h.set(this.target,{strokeOpacity:1,stroke:t}),"none"===a.data("curStroke")&&a.attr({"stroke-width":1/d.scaleStrokeFactor})):(h.set(this.target,{strokeOpacity:1}),"none"===a.data("curStroke")&&a.attr({"stroke-width":1/d.scaleStrokeFactor,stroke:a.data("curFill")}),"solid"===d.style&&a.hasClass("lievo-solidbg")&&(d.morph&&d.colorsWhenMorph&&"end"===d.morphState?y?a.attr({stroke:y}):a.attr({stroke:d.solidColorAction}):a.attr({stroke:d.solidColor})))},D=function(){var a=n(this.target);if(K||L)"square"===a.data("initStrokeLinecap").toLowerCase()&&h.set(this.target,{attr:{"stroke-linecap":"square"}}),"miter"===a.data("initStrokeLinejoin").toLowerCase()&&h.set(this.target,{attr:{"stroke-linejoin":"miter"}});h.to(this.target,p,{stroke:a.data("curStroke"),fillOpacity:1})},C=function(){d.drawn=!0};e.clear();"function"==typeof z&&e.eventCallback("onStart",z);"function"==typeof E&&e.eventCallback("onUpdate",E);e.eventCallback("onComplete",function(){"function"==typeof x&&x();d.autoPlay&&a.playLiviconEvo()});e.delay(b);h.set(v,{strokeOpacity:0,fillOpacity:0});a.css("visibility","visible");"string"==typeof B&&(B=J(B));switch(m){case "middle":h.set(v,{drawSVG:"0% 100%"});e.staggerFrom(v,r,{drawSVG:"50% 50%",ease:B,onStart:f,onComplete:D},u,0,C);break;case "end":e.staggerFromTo(v,r,{drawSVG:"100% 100%"},{drawSVG:"0% 100%",ease:B,onStart:f,onComplete:D},u,0,C);break;default:e.staggerFromTo(v,r,{drawSVG:"0% 0%"},{drawSVG:"0% 100%",ease:B,onStart:f,onComplete:D},u,0,C)}e.restart(!0)}}else c.drawOnViewport=!0,a.addLiviconEvo(c)})},eraseLiviconEvo:function(b,a,e){if(1>=arguments.length)if(b===Object(b))var c=b;else c={},c.force=b;else 2===arguments.length?b===Object(b)?(c=b,c.force=a):(c={},c[b]=a,c.force||(c.force=!1)):(c={},c[b]=a,c.force=e);for(var f in c)c.hasOwnProperty(f)&&(c[f]=u(c[f]),c[f]=A(c[f]));return this.each(function(){var a=k(this),b=a.data(),d=b.saved_options;if(d){var e=b.drawTL,f=b.mainTL,b=0===c.eraseDelay||c.eraseDelay?c.eraseDelay:d.eraseDelay,r=0===c.eraseTime||c.eraseTime?c.eraseTime:d.eraseTime,u=c.eraseStartPoint?c.eraseStartPoint:d.eraseStartPoint,m=c.eraseEase?c.eraseEase:d.eraseEase,t=c.beforeErase?c.beforeErase:d.beforeErase,p=c.afterErase?c.afterErase:d.afterErase,v=c.duringErase?c.duringErase:d.duringErase,z="undefined"!=typeof c.eraseReversed?c.eraseReversed:d.eraseReversed,x=a.find("circle, ellipse, line, path, polygon, polyline, rect").not(".lievo-donotdraw").not(".lievo-nohovercolor").get();0>=b&&(b=.001);e.eventCallback("onStart",null);e.eventCallback("onComplete",null);e.eventCallback("onUpdate",null);A(c.force)&&(e.clear(),e.pause().totalProgress(0),f.pause().totalProgress(0),d.drawn=!0);if(!e.isActive()&&!f.isActive()&&d.drawn){z&&x.reverse();d.morph&&d.colorsWhenMorph&&n(a.find("svg")[0]).selectAll("circle, ellipse, image, line, path, polygon, polyline, rect, text, use").forEach(function(a){a.data("curFill",k(a.node).attr("fill"));a.data("curStroke",a.attr("stroke"));a.data("curOpacity",a.attr("opacity"))});var f=function(){"none"===n(this.target).data("curStroke")&&n(this.target).attr({"stroke-width":1/d.scaleStrokeFactor,stroke:n(this.target).data("curFill")});h.to(this.target,r,{fillOpacity:0})},z=function(){h.set(this.target,{strokeOpacity:0,fillOpacity:0});"none"===n(this.target).data("curStroke")&&h.set(this.target,{"stroke-width":0,stroke:"none"})},y=function(){d.drawn=!1};e.clear();"function"==typeof t&&e.eventCallback("onStart",t);"function"==typeof p&&e.eventCallback("onComplete",p);"function"==typeof v&&e.eventCallback("onUpdate",v);"string"==typeof m&&(m=J(m));e.delay(b);h.set(x,{strokeOpacity:1,fillOpacity:1});a.css("visibility","visible");switch(u){case "middle":e.staggerFromTo(x,r,{drawSVG:"0% 100%"},{drawSVG:"50% 50%",ease:m,onStart:f,onComplete:z},d.eraseStagger,0,y);break;case "end":e.staggerFromTo(x,r,{drawSVG:"0% 100%"},{drawSVG:"100% 100%",ease:m,onStart:f,onComplete:z},d.eraseStagger,0,y);break;default:e.staggerFromTo(x,r,{drawSVG:"0% 100%"},{drawSVG:0,ease:m,onStart:f,onComplete:z},d.eraseStagger,0,y)}e.restart(!0)}}else a.addLiviconEvo(c)})},playLiviconEvo:function(b,a,e){if(1>=arguments.length)if(b===Object(b))var c=b;else c={},c.force=b;else 2===arguments.length?b===Object(b)?(c=b,c.force=a):(c={},c[b]=a,c.force||(c.force=!1)):(c={},c[b]=a,c.force=e);for(var f in c)c.hasOwnProperty(f)&&(c[f]=u(c[f]),c[f]=A(c[f]));return this.each(function(){var a=k(this),b=a.data(),d=b.saved_options;if(d){var a=b.drawTL,b=b.mainTL,e=0===c.duration||c.duration?c.duration:d.duration,f=0===c.delay||c.delay?c.delay:d.delay,h=0===c.repeat||c.repeat?c.repeat:d.repeat,n=0===c.repeatDelay||c.repeatDelay?c.repeatDelay:d.repeatDelay,m=c.beforeAnim?c.beforeAnim:d.beforeAnim,t=c.afterAnim?c.afterAnim:d.afterAnim,p=c.duringAnim?c.duringAnim:d.duringAnim;d.animated&&(A(c.force)&&(a.pause().totalProgress(1),b.pause().totalProgress(0),d.drawn=!0),"default"===e&&(e=d.def_duration),b.getChildren(!1,!1,!0).forEach(function(a){a.duration(e)}),0>=f&&(f=.001),b.delay(f),"default"===h?h=d.def_repeat:"loop"===h&&(h=-1),"default"===n&&(n=d.def_repeatDelay),0>=n&&(n=.001),d.morph?(b.repeat(0).repeatDelay(0),"function"==typeof m&&b.eventCallback("onStart",m),"function"==typeof p&&b.eventCallback("onUpdate",p),b.eventCallback("onComplete",function(){d.curMorphState="end"===d.morphState?"start":"end";"function"==typeof t&&t()}),b.eventCallback("onReverseComplete",function(){d.curMorphState="end"===d.morphState?"end":"start";"function"==typeof t&&t()}),a.isActive()||b.isActive()||!d.drawn||(a=b.progress(),0===a?b.restart(!0):b.paused()&&0<a&&1>a?b.resume():b.pause().reverse(0))):(b.repeat(h).repeatDelay(n),"function"==typeof m&&b.eventCallback("onStart",m),"function"==typeof t&&-1!==h&&b.eventCallback("onComplete",t),"function"==typeof p&&b.eventCallback("onUpdate",p),a.isActive()||b.isActive()||!d.drawn||(a=b.totalProgress(),b.paused()&&0<a&&1>a?b.resume():(b.restart(!0),d.ending=!0))))}else a.addLiviconEvo(c)})},stopLiviconEvo:function(){return this.each(function(){var b=k(this),a=b.data(),e=a.saved_options;e?(b=a.mainTL,e.morph?b.pause().progress(0):(b.pause().totalProgress(0),e.ending=!1)):b.addLiviconEvo()})},pauseLiviconEvo:function(){return this.each(function(){var b=k(this).data("mainTL");b&&b.pause()})},resumeLiviconEvo:function(){return this.each(function(){var b=k(this).data("mainTL");b&&b.resume()})},removeLiviconEvo:function(b,a,e){if(1>=arguments.length)if(b===Object(b))var c=b;else c={},c.total=b;else 2===arguments.length?b===Object(b)?(c=b,c.total=a):(c={},c[b]=a,c.total||(c.total=!1)):(c={},c[b]=a,c.total=e);return this.each(function(){var a=k(this),b=a.data("saved_options");if(b){var e=c.beforeRemove?c.beforeRemove:b.beforeRemove,d=c.afterRemove?c.afterRemove:b.afterRemove;b.event_elem&&b.event_elem.off(".LiviconEvo");b.event_elem=C;"function"==typeof e&&e();a.removeData("saved_options drawTL mainTL");A(c.total)?a.remove():a.empty();"function"==typeof d&&d()}})},liviconEvoState:function(b){if(0===arguments.length)return k(this).data("saved_options").curMorphState;if(1<=arguments.length)return this.each(function(){var a=k(this).data("saved_options"),e=k(this).data("mainTL");"start"===b.toLowerCase()?e&&a.morph&&("end"===a.morphState?e.pause().progress(1):e.pause().progress(0),a.curMorphState="start"):"end"===b.toLowerCase()&&e&&a.morph&&("end"===a.morphState?e.pause().progress(0):e.pause().progress(1),a.curMorphState="end")})},liviconEvoOptions:function(){var b=k(this).data("saved_options");if(b){var a={};a.afterAdd=b.afterAdd;a.afterAnim=b.afterAnim;a.afterDraw=b.afterDraw;a.afterErase=b.afterErase;a.afterRemove=b.afterRemove;a.afterUpdate=b.afterUpdate;a.allowMorphImageTransform=b.allowMorphImageTransform;a.animated=b.animated;a.autoPlay=b.autoPlay;a.beforeAdd=b.beforeAdd;a.beforeAnim=b.beforeAnim;a.beforeDraw=b.beforeDraw;a.beforeErase=b.beforeErase;a.beforeRemove=b.beforeRemove;a.beforeUpdate=b.beforeUpdate;a.brightness=b.brightness;a.colorsHoverTime=b.colorsHoverTime;a.colorsOnHover=!1===b.colorsOnHover?"none":b.colorsOnHover;a.colorsWhenMorph=!1===b.colorsWhenMorph?"none":b.colorsWhenMorph;a.delay=.001===b.delay?0:b.delay;a.drawColor=b.drawColor;a.drawColorTime=b.drawColorTime;a.drawDelay=.001===b.drawDelay?0:b.drawDelay;a.drawEase=b.drawEase;a.drawOnViewport=b.drawOnViewport;a.drawReversed=b.drawReversed;a.drawStagger=b.drawStagger;a.drawStartPoint=b.drawStartPoint;a.drawTime=b.drawTime;a.duration=b.duration;a.duringAnim=b.duringAnim;a.duringDraw=b.duringDraw;a.duringErase=b.duringErase;a.eraseDelay=.001===b.eraseDelay?0:b.eraseDelay;a.eraseEase=b.eraseEase;a.eraseReversed=b.eraseReversed;a.eraseStagger=b.eraseStagger;a.eraseStartPoint=b.eraseStartPoint;a.eraseTime=b.eraseTime;a.eventOn=b.eventOn;a.eventType=!1===b.eventType?"none":b.eventType;a.fillColor=b.fillColor;a.fillColorAction=b.fillColorAction;a.flipHorizontal=b.flipHorizontal;a.flipVertical=b.flipVertical;a.keepStrokeWidthOnResize=b.keepStrokeWidthOnResize;a.morphImage=!1===b.morphImage?"none":b.morphImage;a.morphState=b.morphState;a.name=b.name;a.pathToFolder=b.pathToFolder;a.repeat=b.repeat;a.repeatDelay=b.repeatDelay;a.rotate=!1===b.rotate?"none":b.rotate;a.saturation=b.saturation;a.size=b.size;a.solidColor=b.solidColor;a.solidColorAction=b.solidColorAction;a.solidColorBg=b.solidColorBg;a.solidColorBgAction=b.solidColorBgAction;a.strokeColor=b.strokeColor;a.strokeColorAction=b.strokeColorAction;a.strokeColorAlt=b.strokeColorAlt;a.strokeColorAltAction=b.strokeColorAltAction;a.strokeStyle=b.strokeStyle;a.strokeWidth=b.strokeWidth;a.strokeWidthFactorOnHover=!1===b.strokeWidthFactorOnHover?"none":b.strokeWidthFactorOnHover;a.strokeWidthOnHoverTime=b.strokeWidthOnHoverTime;a.style=b.style;a.touchEvents=b.touchEvents;a.tryToSharpen=b.tryToSharpen;a.viewportShift=!1===b.viewportShift?"none":b.viewportShift;a.def_duration=b.def_duration;a.def_repeat=b.def_repeat;a.def_repeatDelay=b.def_repeatDelay;return a}return C}});k(document).ready(function(){k(".livicon-evo").addLiviconEvo()});k(window).on("orientationchange",function(){k(window).resize()});H.counter=1})(jQuery);!function(i,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):i.Push=t()}(this,function(){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(i){return typeof i}:function(i){return i&&"function"==typeof Symbol&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i})(t)}function t(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}function n(i,t){for(var n=0;n<t.length;n++){var e=t[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,e.key,e)}}function e(i,t,e){return t&&n(i.prototype,t),e&&n(i,e),i}function o(i,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(t&&t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(i,t):i.__proto__=t)}function r(i,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0===i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}var s="PushError:",c={errors:{incompatible:"".concat(s," Push.js is incompatible with browser."),invalid_plugin:"".concat(s," plugin class missing from plugin manifest (invalid plugin). Please check the documentation."),invalid_title:"".concat(s," title of notification must be a string"),permission_denied:"".concat(s," permission request declined"),sw_notification_error:"".concat(s," could not show a ServiceWorker notification due to the following reason: "),sw_registration_error:"".concat(s," could not register the ServiceWorker due to the following reason: "),unknown_interface:"".concat(s," unable to create notification: unknown interface")}},a=function(){function i(n){t(this,i),this._win=n,this.GRANTED="granted",this.DEFAULT="default",this.DENIED="denied",this._permissions=[this.GRANTED,this.DEFAULT,this.DENIED]}return e(i,[{key:"request",value:function(i,t){return arguments.length>0?this._requestWithCallback.apply(this,arguments):this._requestAsPromise()}},{key:"_requestWithCallback",value:function(i,t){var n=this,e=this.get(),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n._win.Notification.permission;void 0===e&&n._win.webkitNotifications&&(e=n._win.webkitNotifications.checkPermission()),e===n.GRANTED||0===e?i&&i():t&&t()};e!==this.DEFAULT?o(e):this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._win.webkitNotifications.requestPermission(o):this._win.Notification&&this._win.Notification.requestPermission?this._win.Notification.requestPermission().then(o).catch(function(){t&&t()}):i&&i()}},{key:"_requestAsPromise",value:function(){var i=this,t=this.get(),n=t!==this.DEFAULT,e=this._win.Notification&&this._win.Notification.requestPermission,o=this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission;return new Promise(function(r,s){var c=function(t){return function(t){return t===i.GRANTED||0===t}(t)?r():s()};n?c(t):o?i._win.webkitNotifications.requestPermission(function(i){c(i)}):e?i._win.Notification.requestPermission().then(function(i){c(i)}).catch(s):r()})}},{key:"has",value:function(){return this.get()===this.GRANTED}},{key:"get",value:function(){return this._win.Notification&&this._win.Notification.permission?this._win.Notification.permission:this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._permissions[this._win.webkitNotifications.checkPermission()]:navigator.mozNotification?this.GRANTED:this._win.external&&this._win.external.msIsSiteMode?this._win.external.msIsSiteMode()?this.GRANTED:this.DEFAULT:this.GRANTED}}]),i}(),u=function(){function n(){t(this,n)}return e(n,null,[{key:"isUndefined",value:function(i){return void 0===i}},{key:"isNull",value:function(i){return null===obj}},{key:"isString",value:function(i){return"string"==typeof i}},{key:"isFunction",value:function(i){return i&&"[object Function]"==={}.toString.call(i)}},{key:"isObject",value:function(t){return"object"===i(t)}},{key:"objectMerge",value:function(i,t){for(var n in t)i.hasOwnProperty(n)&&this.isObject(i[n])&&this.isObject(t[n])?this.objectMerge(i[n],t[n]):i[n]=t[n]}}]),n}(),f=function i(n){t(this,i),this._win=n},l=function(i){function n(){return t(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,f),e(n,[{key:"isSupported",value:function(){return void 0!==this._win.Notification}},{key:"create",value:function(i,t){return new this._win.Notification(i,{icon:u.isString(t.icon)||u.isUndefined(t.icon)||u.isNull(t.icon)?t.icon:t.icon.x32,body:t.body,tag:t.tag,requireInteraction:t.requireInteraction})}},{key:"close",value:function(i){i.close()}}]),n}(),h=function(i){function n(){return t(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,f),e(n,[{key:"isSupported",value:function(){return void 0!==this._win.navigator&&void 0!==this._win.navigator.serviceWorker}},{key:"getFunctionBody",value:function(i){var t=i.toString().match(/function[^{]+{([\s\S]*)}$/);return void 0!==t&&null!==t&&t.length>1?t[1]:null}},{key:"create",value:function(i,t,n,e,o){var r=this;this._win.navigator.serviceWorker.register(e),this._win.navigator.serviceWorker.ready.then(function(e){var s={id:i,link:n.link,origin:document.location.href,onClick:u.isFunction(n.onClick)?r.getFunctionBody(n.onClick):"",onClose:u.isFunction(n.onClose)?r.getFunctionBody(n.onClose):""};void 0!==n.data&&null!==n.data&&(s=Object.assign(s,n.data)),e.showNotification(t,{icon:n.icon,body:n.body,vibrate:n.vibrate,tag:n.tag,data:s,requireInteraction:n.requireInteraction,silent:n.silent}).then(function(){e.getNotifications().then(function(i){e.active.postMessage(""),o(i)})}).catch(function(i){throw new Error(c.errors.sw_notification_error+i.message)})}).catch(function(i){throw new Error(c.errors.sw_registration_error+i.message)})}},{key:"close",value:function(){}}]),n}(),_=function(i){function n(){return t(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,f),e(n,[{key:"isSupported",value:function(){return void 0!==this._win.navigator.mozNotification}},{key:"create",value:function(i,t){var n=this._win.navigator.mozNotification.createNotification(i,t.body,t.icon);return n.show(),n}}]),n}(),v=function(i){function n(){return t(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,f),e(n,[{key:"isSupported",value:function(){return void 0!==this._win.external&&void 0!==this._win.external.msIsSiteMode}},{key:"create",value:function(i,t){return this._win.external.msSiteModeClearIconOverlay(),this._win.external.msSiteModeSetIconOverlay(u.isString(t.icon)||u.isUndefined(t.icon)?t.icon:t.icon.x16,i),this._win.external.msSiteModeActivate(),null}},{key:"close",value:function(){this._win.external.msSiteModeClearIconOverlay()}}]),n}(),d=function(i){function n(){return t(this,n),r(this,(n.__proto__||Object.getPrototypeOf(n)).apply(this,arguments))}return o(n,f),e(n,[{key:"isSupported",value:function(){return void 0!==this._win.webkitNotifications}},{key:"create",value:function(i,t){var n=this._win.webkitNotifications.createNotification(t.icon,i,t.body);return n.show(),n}},{key:"close",value:function(i){i.cancel()}}]),n}();return new(function(){function i(n){t(this,i),this._currentId=0,this._notifications={},this._win=n,this.Permission=new a(n),this._agents={desktop:new l(n),chrome:new h(n),firefox:new _(n),ms:new v(n),webkit:new d(n)},this._configuration={serviceWorker:"/serviceWorker.min.js",fallback:function(i){}}}return e(i,[{key:"_closeNotification",value:function(i){var t=!0,n=this._notifications[i];if(void 0!==n){if(t=this._removeNotification(i),this._agents.desktop.isSupported())this._agents.desktop.close(n);else if(this._agents.webkit.isSupported())this._agents.webkit.close(n);else{if(!this._agents.ms.isSupported())throw t=!1,new Error(c.errors.unknown_interface);this._agents.ms.close()}return t}return!1}},{key:"_addNotification",value:function(i){var t=this._currentId;return this._notifications[t]=i,this._currentId++,t}},{key:"_removeNotification",value:function(i){var t=!1;return this._notifications.hasOwnProperty(i)&&(delete this._notifications[i],t=!0),t}},{key:"_prepareNotification",value:function(i,t){var n,e=this;return n={get:function(){return e._notifications[i]},close:function(){e._closeNotification(i)}},t.timeout&&setTimeout(function(){n.close()},t.timeout),n}},{key:"_serviceWorkerCallback",value:function(i,t,n){var e=this,o=this._addNotification(i[i.length-1]);navigator&&navigator.serviceWorker&&(navigator.serviceWorker.addEventListener("message",function(i){var t=JSON.parse(i.data);"close"===t.action&&Number.isInteger(t.id)&&e._removeNotification(t.id)}),n(this._prepareNotification(o,t))),n(null)}},{key:"_createCallback",value:function(i,t,n){var e,o=this,r=null;if(t=t||{},e=function(i){o._removeNotification(i),u.isFunction(t.onClose)&&t.onClose.call(o,r)},this._agents.desktop.isSupported())try{r=this._agents.desktop.create(i,t)}catch(e){var s=this._currentId,c=this.config().serviceWorker,a=function(i){return o._serviceWorkerCallback(i,t,n)};this._agents.chrome.isSupported()&&this._agents.chrome.create(s,i,t,c,a)}else this._agents.webkit.isSupported()?r=this._agents.webkit.create(i,t):this._agents.firefox.isSupported()?this._agents.firefox.create(i,t):this._agents.ms.isSupported()?r=this._agents.ms.create(i,t):(t.title=i,this.config().fallback(t));if(null!==r){var f=this._addNotification(r),l=this._prepareNotification(f,t);u.isFunction(t.onShow)&&r.addEventListener("show",t.onShow),u.isFunction(t.onError)&&r.addEventListener("error",t.onError),u.isFunction(t.onClick)&&r.addEventListener("click",t.onClick),r.addEventListener("close",function(){e(f)}),r.addEventListener("cancel",function(){e(f)}),n(l)}n(null)}},{key:"create",value:function(i,t){var n,e=this;if(!u.isString(i))throw new Error(c.errors.invalid_title);return n=this.Permission.has()?function(n,o){try{e._createCallback(i,t,n)}catch(i){o(i)}}:function(n,o){e.Permission.request().then(function(){e._createCallback(i,t,n)}).catch(function(){o(c.errors.permission_denied)})},new Promise(n)}},{key:"count",value:function(){var i,t=0;for(i in this._notifications)this._notifications.hasOwnProperty(i)&&t++;return t}},{key:"close",value:function(i){var t;for(t in this._notifications)if(this._notifications.hasOwnProperty(t)&&this._notifications[t].tag===i)return this._closeNotification(t)}},{key:"clear",value:function(){var i,t=!0;for(i in this._notifications)this._notifications.hasOwnProperty(i)&&(t=t&&this._closeNotification(i));return t}},{key:"supported",value:function(){var i=!1;for(var t in this._agents)this._agents.hasOwnProperty(t)&&(i=i||this._agents[t].isSupported());return i}},{key:"config",value:function(i){return(void 0!==i||null!==i&&u.isObject(i))&&u.objectMerge(this._configuration,i),this._configuration}},{key:"extend",value:function(i){var t,n={}.hasOwnProperty;if(!n.call(i,"plugin"))throw new Error(c.errors.invalid_plugin);n.call(i,"config")&&u.isObject(i.config)&&null!==i.config&&this.config(i.config),t=new(0,i.plugin)(this.config());for(var e in t)n.call(t,e)&&u.isFunction(t[e])&&(this[e]=t[e])}}]),i}())("undefined"!=typeof window?window:global)});;var m="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;function p(){p=function(){},m.Symbol||(m.Symbol=t)}var u=0;function t(t){return"jscomp_symbol_"+(t||"")+u++}!function(t){function i(n){if(e[n])return e[n].G;var o=e[n]={ga:n,ba:!1,G:{}};return t[n].call(o.G,o,o.G,i),o.ba=!0,o.G}var e={};i.m=t,i.f=e,i.a=function(t,e,n){i.b(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){p(),p(),"undefined"!=typeof Symbol&&Symbol.toStringTag&&(p(),Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})),Object.defineProperty(t,"__esModule",{value:!0})},i.j=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.Z)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)i.a(n,o,function(i){return t[i]}.bind(null,o));return n},i.g=function(t){var e=t&&t.Z?function(){return t.default}:function(){return t};return i.a(e,"a",e),e},i.b=function(t,i){return Object.prototype.hasOwnProperty.call(t,i)},i.h="",i(i.o=0)}([function(t,i,e){function n(t,i,e){i=void 0===i?{}:i,e=void 0===e?{}:e,this.f=this.f.bind(this),this.h={M:void 0===i.M||i.M},this.a=t,this.b=e,this.b.i=this,this.b.l=this.h.M,this.j()}function o(t,i){if(i=void 0===i?{}:i,this.u=this.u.bind(this),this.open=this.open.bind(this),this.close=this.close.bind(this),this.f=this.f.bind(this),this.h=!1,this.g=t,!h(this.g))throw new TypeError("`new Luminous` requires a DOM element as its first argument.");this.a={w:i.namespace||null,s:i.sourceAttribute||"href",caption:i.caption||null,W:i.openTrigger||"click",U:i.closeTrigger||"click",V:i.closeWithEscape||!0,T:i.closeOnScroll||!1,$:i.appendToSelector||"body",ea:i.onOpen||null,da:i.onClose||null,v:i.includeImgixJSClass||!1,aa:i.injectBaseStyles||!0,i:i._gallery||null,l:i._arrowNavigation||null},this.a.aa&&!document.querySelector(".lum-base-styles")&&((t=document.createElement("style")).type="text/css",t.classList.add("lum-base-styles"),t.appendChild(document.createTextNode("@keyframes lum-noop{0%{zoom:1}}.lum-lightbox{position:fixed;display:none;top:0;right:0;bottom:0;left:0}.lum-lightbox.lum-open{display:block}.lum-lightbox.lum-closing,.lum-lightbox.lum-opening{animation:lum-noop 1ms}.lum-lightbox-inner{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.lum-lightbox-loader{display:none}.lum-lightbox-inner img{max-width:100%;max-height:100%}.lum-lightbox-image-wrapper{vertical-align:middle;display:table-cell;text-align:center}")),(i=document.head).insertBefore(t,i.firstChild)),this.o(),this.m()}function s(t){t=void 0===t?{}:t,this.g=this.g.bind(this),this.D=this.D.bind(this),this.F=this.F.bind(this),this.A=this.A.bind(this),this.o=this.o.bind(this),this.H=this.H.bind(this);var i=void 0===t.w?null:t.w,e=void 0===t.B?l():t.B,n=void 0===t.C?l():t.C,o=void 0===t.s?l():t.s;if(this.a={w:i,B:e,C:n,s:o,caption:void 0===t.caption?null:t.caption,v:void 0!==t.v&&t.v,i:void 0===t.i?null:t.i,l:void 0===t.l?null:t.l},!h(this.a.B))throw new TypeError("`new Lightbox` requires a DOM element passed as `parentEl`.");this.h=this.a.C,this.L=this.b("open"),this.S=this.b("opening"),this.P=this.b("closing"),this.N=this.R=!1}function h(t){return c?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}function r(t,i){i.forEach(function(i){t.classList.add(i)})}function a(t,i){i.forEach(function(i){t.classList.remove(i)})}function l(){throw Error("Missing parameter")}e.r(i);var c="object"==typeof HTMLElement,u="undefined"!=typeof document&&"animation"in document.createElement("div").style;s.prototype.b=function(t){var i=["lum-"+t],e=this.a.w;return e&&i.push(e+"-"+t),i},s.prototype.X=function(){this.c=document.createElement("div"),r(this.c,this.b("lightbox")),this.f=document.createElement("div"),r(this.f,this.b("lightbox-inner")),this.c.appendChild(this.f);var t=document.createElement("div");r(t,this.b("lightbox-loader")),this.f.appendChild(t),this.K=document.createElement("div"),r(this.K,this.b("lightbox-image-wrapper")),this.f.appendChild(this.K),r(t=document.createElement("span"),this.b("lightbox-position-helper")),this.K.appendChild(t),this.m=document.createElement("img"),r(this.m,this.b("img")),t.appendChild(this.m),this.j=document.createElement("p"),r(this.j,this.b("lightbox-caption")),t.appendChild(this.j),this.a.i&&this.Y(),this.a.B.appendChild(this.c),this.J(),this.I(),this.a.v&&this.m.classList.add("imgix-fluid")},s.prototype.Y=function(){this.O("previous",this.F),this.O("next",this.D)},s.prototype.O=function(t,i){var e=document.createElement("button");this[t+"Button"]=e,e.innerText=t,r(e,this.b(t+"-button")),r(e,this.b("gallery-button")),this.f.appendChild(e),e.addEventListener("click",function(t){t.stopPropagation(),i()},!1)},s.prototype.g=function(){var t=this.K.style;t.width=this.f.clientWidth+"px",t.maxWidth=this.f.clientWidth+"px",t.height=this.f.clientHeight-this.j.clientHeight+"px",t.maxHeight=this.f.clientHeight-this.j.clientHeight+"px"},s.prototype.I=function(){var t=typeof this.a.caption,i="";"string"===t?i=this.a.caption:"function"===t&&(i=this.a.caption(this.h)),this.j.innerHTML=i},s.prototype.J=function(){var t=this,i=this.h.getAttribute(this.a.s);if(!i)throw Error("No image URL was found in the "+this.a.s+" attribute of the trigger.");var e=this.b("loading");this.R||r(this.c,e),this.m.onload=function(){a(t.c,e),t.R=!0},this.m.setAttribute("src",i)},s.prototype.H=function(t){37==t.keyCode?this.F():39==t.keyCode&&this.D()},s.prototype.D=function(){this.a.i&&(this.h=this.a.i.ca(this.h),this.J(),this.I(),this.g())},s.prototype.F=function(){this.a.i&&(this.h=this.a.i.fa(this.h),this.J(),this.I(),this.g())},s.prototype.open=function(){this.N||(this.X(),this.N=!0),this.h=this.a.C,this.J(),this.I(),r(this.c,this.L),this.g(),window.addEventListener("resize",this.g,!1),this.a.l&&window.addEventListener("keydown",this.H,!1),u&&(this.c.addEventListener("animationend",this.A,!1),r(this.c,this.S))},s.prototype.close=function(){window.removeEventListener("resize",this.g,!1),this.a.l&&window.removeEventListener("keydown",this.H,!1),u?(this.c.addEventListener("animationend",this.o,!1),r(this.c,this.P)):a(this.c,this.L)},s.prototype.A=function(){this.c.removeEventListener("animationend",this.A,!1),a(this.c,this.S)},s.prototype.o=function(){this.c.removeEventListener("animationend",this.o,!1),a(this.c,this.L),a(this.c,this.P)},s.prototype.u=function(){this.c&&this.a.B.removeChild(this.c)},o.prototype.open=function(t){t&&"function"==typeof t.preventDefault&&t.preventDefault(),t=this.b.N,this.b.open(),t||this.j(),this.a.T&&window.addEventListener("scroll",this.close,!1),(t=this.a.ea)&&"function"==typeof t&&t(),this.h=!0},o.prototype.close=function(t){t&&"function"==typeof t.preventDefault&&t.preventDefault(),this.a.T&&window.removeEventListener("scroll",this.close,!1),this.b.close(),(t=this.a.da)&&"function"==typeof t&&t(),this.h=!1},o.prototype.o=function(){this.b=new s({w:this.a.w,B:document.querySelector(this.a.$),C:this.g,s:this.a.s,caption:this.a.caption,v:this.a.v,i:this.a.i,l:this.a.l})},o.prototype.m=function(){this.g.addEventListener(this.a.W,this.open,!1),this.a.V&&window.addEventListener("keyup",this.f,!1)},o.prototype.j=function(){this.b.c.addEventListener(this.a.U,this.close,!1)},o.prototype.A=function(){this.g.removeEventListener(this.a.W,this.open,!1),this.b.c&&this.b.c.removeEventListener(this.a.U,this.close,!1),this.a.V&&window.removeEventListener("keyup",this.f,!1)},o.prototype.f=function(t){this.h&&27===t.keyCode&&this.close()},o.prototype.u=function(){this.A(),this.b.u()},n.prototype.j=function(){this.g=[];for(var t=this.a.length,i=0;i<t;i++){var e=new o(this.a[i],this.b);this.g.push(e)}},n.prototype.ca=function(t){return(t=Array.prototype.indexOf.call(this.a,t)+1)>=this.a.length?this.a[0]:this.a[t]},n.prototype.fa=function(t){return 0>(t=Array.prototype.indexOf.call(this.a,t)-1)?this.a[this.a.length-1]:this.a[t]},n.prototype.f=function(){},n.prototype.u=function(){this.g.forEach(function(t){return t.u()})},window.LuminousGallery=n,window.Luminous=o}]);/*!
 DataTables 1.10.18
 ©2008-2018 SpryMedia Ltd - datatables.net/license
*/
(function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(H,E,E.document)}:h(jQuery,window,document)})(function(h,E,H,k){function Z(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),d[c]=e,"o"===b[1]&&Z(a[e])});a._hungarianMap=d}function J(a,b,c){a._hungarianMap||Z(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),J(a[d],b[d],c)):b[d]=b[e]})}function Ca(a){var b=n.defaults.oLanguage,c=b.sDecimal;c&&Da(c);if(a){var d=a.sZeroRecords;!a.sEmptyTable&&(d&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(d&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&c!==a&&Da(a)}}function eb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&J(n.models.oSearch,a[b])}function fb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"===typeof b&&!h.isArray(b)&&(a.aDataSort=[b])}function gb(a){if(!n.__browser){var b={};n.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,n.__browser);a.oScroll.iBarWidth=n.__browser.barWidth}
function hb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ea(a,b){var c=n.defaults.column,d=a.aoColumns.length,c=h.extend({},n.models.oColumn,c,{nTh:b?b:H.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},n.models.oSearch,c[d]);ka(a,d,h(b).data())}function ka(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(fb(c),J(n.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),c.sClass&&e.addClass(c.sClass),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=S(g),i=b.mRender?S(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return N(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function $(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Fa(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&la(a);r(a,null,"column-sizing",[a])}function aa(a,b){var c=ma(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function ba(a,b){var c=ma(a,"bVisible"),c=h.inArray(b,c);return-1!==c?c:null}function V(a){var b=0;h.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==h(d.nTh).css("display")&&b++});return b}function ma(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ga(a){var b=a.aoColumns,c=a.aoData,d=n.ext.type.detect,e,f,g,j,i,h,l,q,t;e=0;for(f=b.length;e<f;e++)if(l=b[e],t=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){t[i]===k&&(t[i]=B(a,i,e,"type"));q=d[g](t[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=q;break}}l.sType||(l.sType="string")}}function ib(a,b,c,d){var e,f,g,j,i,m,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){m=b[e];var q=m.targets!==k?m.targets:m.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ea(a);d(q[f],m)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],m);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&d(j,m)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}function O(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},n.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ha(a,e,c,d);return e}function na(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ia(a,e);return O(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw,f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(K(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function jb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}function Ja(a){return h.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function S(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=S(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=Ja(f);for(var i=0,m=j.length;i<m;i++){f=j[i].match(ca);g=j[i].match(W);if(f){j[i]=j[i].replace(ca,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(m=a.length;i<m;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(W,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}
function N(a){if(h.isPlainObject(a))return N(a._);if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=Ja(e),f;f=e[e.length-1];for(var g,j,i=0,m=e.length-1;i<m;i++){g=e[i].match(ca);j=e[i].match(W);if(g){e[i]=e[i].replace(ca,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(m=d.length;j<m;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(W,""),a=a[e[i]](d));if(null===a[e[i]]||a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(W))a[f.replace(W,"")](d);else a[f.replace(ca,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ka(a){return D(a.aoData,"_aData")}function oa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function pa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--;-1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ia(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;La(a,e)}}function Ia(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,m,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],t=function(a,b){if("string"===typeof a){var c=a.indexOf("@");-1!==c&&(c=a.substring(c+1),N(a)(d,b.getAttribute(c)))}},G=function(a){if(c===k||c===i)j=l[i],m=h.trim(a.innerHTML),j&&j._bAttrSrc?(N(j.mData._)(d,m),t(j.mData.sort,a),t(j.mData.type,a),t(j.mData.filter,a)):q?(j._setter||(j._setter=N(j.mData)),j._setter(d,m)):d[i]=m;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)G(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)G(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&N(a.rowId)(d,b);return{data:d,cells:e}}function Ha(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,m,l,q;if(null===e.nTr){j=c||H.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;La(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){m=a.aoColumns[l];i=c?d[l]:H.createElement(m.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||m.mRender||m.mData!==l)&&(!h.isPlainObject(m.mData)||m.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");m.sClass&&(i.className+=" "+m.sClass);m.bVisible&&!c?j.appendChild(i):!m.bVisible&&c&&i.parentNode.removeChild(i);m.fnCreatedCell&&m.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}r(a,"aoRowCreatedCallback",null,[j,f,b,g])}e.nTr.setAttribute("role","row")}function La(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?qa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function kb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0===h("th, td",g).length,m=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Ma(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Na(a,"header")(a,d,f,m);i&&ea(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(m.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(m.sFooterTH);if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function fa(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,m;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(m=i=1,j[d][f]===k){a.appendChild(g[d][f].cell);for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+m]!==k&&g[d][f].cell==g[d][f+m].cell;){for(c=0;c<i;c++)j[d+c][f+m]=1;m++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",m)}}}}function P(a){var b=r(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var g=a._iDisplayStart,m=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!lb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:m;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ha(a,l);var t=q.nTr;if(0!==e){var G=d[c%e];q._sRowStripe!=G&&(h(t).removeClass(q._sRowStripe).addClass(G),q._sRowStripe=G)}r(a,"aoRowCallback",null,[t,q._aData,c,j,l]);b.push(t);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords:f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:V(a),"class":a.oClasses.sRowEmpty}).html(c))[0];r(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ka(a),g,m,i]);r(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ka(a),g,m,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));r(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter;c.bSort&&mb(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;P(a);a._drawHold=!1}function nb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,m,l,q,k=0;k<f.length;k++){g=null;j=f[k];if("<"==j){i=h("<div/>")[0];m=f[k+1];if("'"==m||'"'==m){l="";for(q=2;f[k+q]!=m;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(m=l.split("."),i.id=m[0].substr(1,m[0].length-1),i.className=m[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=ob(a);else if("f"==j&&d.bFilter)g=pb(a);else if("r"==j&&d.bProcessing)g=qb(a);else if("t"==j)g=rb(a);else if("i"==j&&d.bInfo)g=sb(a);else if("p"==j&&d.bPaginate)g=tb(a);else if(0!==n.ext.feature.length){i=n.ext.feature;q=0;for(m=i.length;q<m;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function ea(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,m,l,q,k;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan");q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;m=g;k=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][m+j]={cell:e,unique:k},a[f+g].nTr=d}e=e.nextSibling}}}function ra(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],ea(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function sa(a,b,c){r(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={},e=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){r(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var m="function"===typeof f?f(b,a):f,b="function"===typeof f&&m?m:h.extend(!0,b,m);delete g.data}m={data:b,success:function(b){var c=b.error||b.sError;c&&K(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=r(a,null,"xhr",[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?K(a,0,"Invalid JSON response",1):4===b.readyState&&K(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;r(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(m,{url:g||a.sAjaxSource})):"function"===typeof g?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(m,g)),g.data=f)}function lb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,!0),sa(a,ub(a),function(b){vb(a,b)}),!1):!0}function ub(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,m,l,k=X(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var t=function(a,b){j.push({name:a,value:b})};t("sEcho",a.iDraw);t("iColumns",c);t("sColumns",D(b,"sName").join(","));t("iDisplayStart",g);t("iDisplayLength",i);var G={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)m=b[g],l=f[g],i="function"==typeof m.mData?"function":m.mData,G.columns.push({data:i,name:m.sName,searchable:m.bSearchable,orderable:m.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),t("mDataProp_"+g,i),d.bFilter&&(t("sSearch_"+g,l.sSearch),t("bRegex_"+g,l.bRegex),t("bSearchable_"+g,m.bSearchable)),d.bSort&&t("bSortable_"+g,m.bSortable);d.bFilter&&(t("sSearch",e.sSearch),t("bRegex",e.bRegex));d.bSort&&(h.each(k,function(a,b){G.order.push({column:b.col,dir:b.dir});t("iSortCol_"+a,b.col);t("sSortDir_"+a,b.dir)}),t("iSortingCols",k.length));b=n.ext.legacy.ajax;return null===b?a.sAjaxSource?j:G:b?j:G}function vb(a,b){var c=ta(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}oa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)O(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;P(a);a._bInitComplete||ua(a,b);a.bAjaxDataGet=!0;C(a,!1)}function ta(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?S(c)(b):b}function pb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?"":this.value;b!=e.sSearch&&(ga(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,P(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Oa(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==H.activeElement&&i.val(e.sSearch)}catch(d){}});return b[0]}function ga(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ga(a);if("ssp"!=y(a)){wb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)xb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);yb(a)}else f(b);a.bFiltered=!0;r(a,null,"search",[a])}function yb(a){for(var b=n.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,m=c.length;i<m;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function xb(a,b,c,d,e,f){if(""!==b){for(var g=[],j=a.aiDisplay,d=Pa(b,d,e,f),e=0;e<j.length;e++)b=a.aoData[j[e]]._aFilterData[c],d.test(b)&&g.push(j[e]);a.aiDisplay=g}}function wb(a,b,c,d,e,f){var d=Pa(b,d,e,f),f=a.oPreviousSearch.sSearch,g=a.aiDisplayMaster,j,e=[];0!==n.ext.search.length&&(c=!0);j=zb(a);if(0>=b.length)a.aiDisplay=g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)d.test(a.aoData[b[c]]._sFilterRow)&&e.push(b[c]);a.aiDisplay=e}}function Pa(a,b,c,d){a=b?a:Qa(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function zb(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=n.ext.type.search;c=!1;d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(va.innerHTML=i,i=Wb?va.textContent:va.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join("  ");c=!0}return c}function Ab(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,caseInsensitive:a.bCaseInsensitive}}function Bb(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function sb(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Cb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Cb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Db(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Db(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){nb(a);kb(a);fa(a,a.aoHeader);fa(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Fa(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=v(f.sWidth));r(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?sa(a,[],function(c){var f=ta(a,c);for(b=0;b<f.length;b++)O(a,f[b]);a.iInitDisplayStart=d;T(a);C(a,!1);ua(a,c)},a):(C(a,!1),ua(a))}else setTimeout(function(){ha(a)},200)}function ua(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&$(a);r(a,null,"plugin-init",[a,b]);r(a,"aoInitComplete","init",[a,b])}function Ra(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Sa(a);r(a,null,"length",[a,c])}function ob(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)e[0][g]=new Option("number"===typeof d[g]?a.fnFormatNumber(d[g]):d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Ra(a,h(this).val());P(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function tb(a){var b=a.sPaginationType,c=n.ext.pager[b],d="function"===typeof c,e=function(a){P(a)},b=h("<div/>").addClass(a.oClasses.sPaging+b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Na(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Ta(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"===typeof b?(d=b*e,d>f&&(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:K(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(r(a,null,"page",[a]),c&&P(a));return b}function qb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}
function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none");r(a,null,"processing",[a,b])}function rb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),m=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(m.removeAttr("id").css("margin-left",0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],t=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(t.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=t;a.aoDrawCallback.push({fn:la,sName:"scrolling"});return i[0]}function la(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,m=j.children("table"),j=a.nScrollBody,l=h(j),q=j.style,t=h(a.nScrollFoot).children("div"),n=t.children("table"),o=h(a.nTHead),p=h(a.nTable),s=p[0],r=s.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,U=x.bScrollOversize,Xb=D(a.aoColumns,"nTh"),Q,L,R,w,Ua=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};L=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==L&&a.scrollBarVis!==k)a.scrollBarVis=L,$(a);else{a.scrollBarVis=L;p.children("thead, tfoot").remove();u&&(R=u.clone().prependTo(p),Q=u.find("tr"),R=R.find("tr"));w=o.clone().prependTo(p);o=o.find("tr");L=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ra(a,w),function(b,c){B=aa(a,b);c.style.width=a.aoColumns[B].sWidth});u&&I(function(a){a.style.width=""},R);f=p.outerWidth();if(""===c){r.width="100%";if(U&&(p.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=v(p.outerWidth()-b);f=p.outerWidth()}else""!==d&&(r.width=v(d),f=p.outerWidth());I(C,L);I(function(a){z.push(a.innerHTML);Ua.push(v(h(a).css("width")))},L);I(function(a,b){if(h.inArray(a,Xb)!==-1)a.style.width=Ua[b]},o);h(L).height(0);u&&(I(C,R),I(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},R),I(function(a,b){a.style.width=y[b]},Q),h(R).height(0));I(function(a,b){a.innerHTML='<div class="dataTables_sizing">'+z[b]+"</div>";a.childNodes[0].style.height="0";a.childNodes[0].style.overflow="hidden";a.style.width=Ua[b]},L);u&&I(function(a,b){a.innerHTML='<div class="dataTables_sizing">'+A[b]+"</div>";a.childNodes[0].style.height="0";a.childNodes[0].style.overflow="hidden";a.style.width=y[b]},R);if(p.outerWidth()<f){Q=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(U&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))r.width=v(Q-b);(""===c||""!==d)&&K(a,1,"Possible column misalignment",6)}else Q="100%";q.width=v(Q);g.width=v(Q);u&&(a.nScrollFoot.style.width=v(Q));!e&&U&&(q.height=v(s.offsetHeight+b));c=p.outerWidth();m[0].style.width=v(c);i.width=v(c);d=p.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+(x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(n[0].style.width=v(c),t[0].style.width=v(c),t[0].style[e]=d?b+"px":"0px");p.children("colgroup").insertBefore(p.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function I(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Fa(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=ma(a,"bVisible"),m=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,t=!1,n,o,p=a.oBrowser,d=p.bScrollOversize;(n=b.style.width)&&-1!==n.indexOf("%")&&(l=n);for(n=0;n<i.length;n++)o=c[i[n]],null!==o.sWidth&&(o.sWidth=Eb(o.sWidthOrig,k),t=!0);if(d||!t&&!f&&!e&&j==V(a)&&j==m.length)for(n=0;n<j;n++)i=aa(a,n),null!==i&&(c[i].sWidth=v(m.eq(n).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var s=h("<tr/>").appendTo(j.find("tbody"));j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");m=ra(a,j.find("thead")[0]);for(n=0;n<i.length;n++)o=c[i[n]],m[n].style.width=null!==o.sWidthOrig&&""!==o.sWidthOrig?v(o.sWidthOrig):"",o.sWidthOrig&&f&&h(m[n]).append(h("<div/>").css({width:o.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(n=0;n<i.length;n++)t=i[n],o=c[t],h(Fb(a,t)).clone(!1).append(o.sContentPadding).appendTo(s);h("[name]",j).removeAttr("name");o=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(n=e=0;n<i.length;n++)k=h(m[n]),g=k.outerWidth()-k.width(),k=p.bBounding?Math.ceil(m[n].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[n]].sWidth=v(k-g);b.style.width=v(e);o.remove()}l&&(b.style.width=v(l));if((l||f)&&!a._reszEvt)b=function(){h(E).on("resize.DT-"+a.sInstance,Oa(function(){$(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function Eb(a,b){if(!a)return 0;var c=h("<div/>").css("width",v(a)).appendTo(b||H.body),d=c[0].offsetWidth;c.remove();return d}function Fb(a,b){var c=Gb(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Gb(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(Yb,""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function X(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var m=[];f=function(a){a.length&&!h.isArray(a[0])?m.push(a):h.merge(m,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<m.length;a++){i=m[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType||"string",m[a]._idx===k&&(m[a]._idx=h.inArray(m[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:m[a][1],index:m[a]._idx,type:j,formatter:n.ext.type.order[j+"-pre"]})}return d}function mb(a){var b,c,d=[],e=n.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ga(a);h=X(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Hb(a,j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,n=f[b]._aSortData;for(g=0;g<i;g++)if(j=h[g],c=k[j.col],e=n[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,n=f[a]._aSortData,o=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=n[i.col],g=o[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Ib(a){for(var b,c,d=a.aoColumns,e=X(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Va(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,D(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Ma(a,b,c,d){var e=a.aoColumns[c];Wa(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Va(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Va(a,c,b.shiftKey,d))})}function wa(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=X(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(D(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Hb(a,b){var c=a.aoColumns[b],d=n.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,ba(a,b)));for(var f,g=n.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function xa(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Ab(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Ab(a.aoPreSearchCols[d])}})};r(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,b)}}function Jb(a,b,c){var d,e,f=a.aoColumns,b=function(b){if(b&&b.time){var g=r(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===h.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g)&&!(b.columns&&f.length!==b.columns.length))){a.oLoadedState=h.extend(!0,{},b);b.start!==k&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==k&&(a._iDisplayLength=b.length);b.order!==k&&(a.aaSorting=[],h.each(b.order,function(b,c){a.aaSorting.push(c[0]>=f.length?[0,c[1]]:c)}));b.search!==k&&h.extend(a.oPreviousSearch,Bb(b.search));if(b.columns){d=0;for(e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==k&&(f[d].bVisible=g.visible),g.search!==k&&h.extend(a.aoPreSearchCols[d],Bb(g.search))}r(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==k&&b(g)}else c()}function ya(a){var b=n.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function K(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)E.console&&console.log&&console.log(c);else if(b=n.ext,b=b.sErrMode||b.errMode,a&&r(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function F(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?F(a,b,d[0],d[1]):F(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Xa(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Wa(a,b,c){h(a).on("click.DT",b,function(b){h(a).blur();c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function r(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Sa(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Na(a,b){var c=a.renderer,d=n.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ia(a,b){var c=[],c=Kb.numbers_length,d=Math.floor(c/2);b<=c?c=Y(0,b):a<=d?(c=Y(0,c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=Y(b-(c-2),b):(c=Y(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function Da(a){h.each({num:function(b){return za(b,a)},"num-fmt":function(b){return za(b,a,Ya)},"html-num":function(b){return za(b,a,Aa)},"html-num-fmt":function(b){return za(b,a,Aa,Ya)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Lb(a){return function(){var b=[ya(this[n.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return n.ext.internal[a].apply(this,b)}}var n=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new s(ya(this[x.iApiIndex])):new s(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&la(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return ya(this[x.iApiIndex])};this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in n.ext.internal)e&&(this[e]=Lb(e));this.each(function(){var e={},g=1<d?Xa(e,a,!0):a,j=0,i,e=this.getAttribute("id"),m=!1,l=n.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())K(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{eb(l);fb(l.column);J(l,l,!0);J(l.column,l.column,!0);J(l,h.extend(g,q.data()));var t=n.settings,j=0;for(i=t.length;j<i;j++){var o=t[j];if(o.nTable==this||o.nTHead&&o.nTHead.parentNode==this||o.nTFoot&&o.nTFoot.parentNode==this){var s=g.bRetrieve!==k?g.bRetrieve:l.bRetrieve;if(c||s)return o.oInstance;if(g.bDestroy!==k?g.bDestroy:l.bDestroy){o.oInstance.fnDestroy();break}else{K(o,0,"Cannot reinitialise DataTable",3);return}}if(o.sTableId==this.id){t.splice(j,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+n.ext._unique++;var p=h.extend(!0,{},n.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:e,sTableId:e});p.nTable=this;p.oApi=b.internal;p.oInit=g;t.push(p);p.oInstance=1===b.length?b:q.dataTable();eb(g);Ca(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=h.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);g=Xa(h.extend(!0,{},l),g);F(p.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));F(p,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]);F(p.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);F(p.oLanguage,g,"fnInfoCallback");z(p,"aoDrawCallback",g.fnDrawCallback,"user");z(p,"aoServerParams",g.fnServerParams,"user");z(p,"aoStateSaveParams",g.fnStateSaveParams,"user");z(p,"aoStateLoadParams",g.fnStateLoadParams,"user");z(p,"aoStateLoaded",g.fnStateLoaded,"user");z(p,"aoRowCallback",g.fnRowCallback,"user");z(p,"aoRowCreatedCallback",g.fnCreatedRow,"user");z(p,"aoHeaderCallback",g.fnHeaderCallback,"user");z(p,"aoFooterCallback",g.fnFooterCallback,"user");z(p,"aoInitComplete",g.fnInitComplete,"user");z(p,"aoPreDrawCallback",g.fnPreDrawCallback,"user");p.rowIdFn=S(g.rowId);gb(p);var u=p.oClasses;h.extend(u,n.ext.classes,g.oClasses);q.addClass(u.sTable);p.iInitDisplayStart===k&&(p.iInitDisplayStart=g.iDisplayStart,p._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(p.bDeferLoading=!0,e=h.isArray(g.iDeferLoading),p._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,p._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var v=p.oLanguage;h.extend(!0,v,g.oLanguage);v.sUrl&&(h.ajax({dataType:"json",url:v.sUrl,success:function(a){Ca(a);J(l.oLanguage,a);h.extend(!0,v,a);ha(p)},error:function(){ha(p)}}),m=!0);null===g.asStripeClasses&&(p.asStripeClasses=[u.sStripeOdd,u.sStripeEven]);var e=p.asStripeClasses,x=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(e,function(a){return x.hasClass(a)}))&&(h("tbody tr",this).removeClass(e.join(" ")),p.asDestroyStripes=e.slice());e=[];t=this.getElementsByTagName("thead");0!==t.length&&(ea(p.aoHeader,t[0]),e=ra(p));if(null===g.aoColumns){t=[];j=0;for(i=e.length;j<i;j++)t.push(null)}else t=g.aoColumns;j=0;for(i=t.length;j<i;j++)Ea(p,e?e[j]:null);ib(p,g.aoColumnDefs,t,function(a,b){ka(p,a,b)});if(x.length){var w=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(x[0]).children("th, td").each(function(a,b){var c=p.aoColumns[a];if(c.mData===a){var d=w(b,"sort")||w(b,"order"),e=w(b,"filter")||w(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};ka(p,a)}}})}var U=p.oFeatures,e=function(){if(g.aaSorting===k){var a=p.aaSorting;j=0;for(i=a.length;j<i;j++)a[j][1]=p.aoColumns[j].asSorting[0]}wa(p);U.bSort&&z(p,"aoDrawCallback",function(){if(p.bSorted){var a=X(p),b={};h.each(a,function(a,c){b[c.src]=c.dir});r(p,null,"order",[p,a,b]);Ib(p)}});z(p,"aoDrawCallback",function(){(p.bSorted||y(p)==="ssp"||U.bDeferRender)&&wa(p)},"sc");var a=q.children("caption").each(function(){this._captionSide=h(this).css("caption-side")}),b=q.children("thead");b.length===0&&(b=h("<thead/>").appendTo(q));p.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h("<tbody/>").appendTo(q));p.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(p.oScroll.sX!==""||p.oScroll.sY!==""))b=h("<tfoot/>").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);else if(b.length>0){p.nTFoot=b[0];ea(p.aoFooter,p.nTFoot)}if(g.aaData)for(j=0;j<g.aaData.length;j++)O(p,g.aaData[j]);else(p.bDeferLoading||y(p)=="dom")&&na(p,h(p.nTBody).children("tr"));p.aiDisplay=p.aiDisplayMaster.slice();p.bInitialised=!0;m===!1&&ha(p)};g.bStateSave?(U.bStateSave=!0,z(p,"aoDrawCallback",xa,"state_save"),Jb(p,g,e)):e()}});b=null;return this},x,s,o,u,Za={},Mb=/[\r\n]/g,Aa=/<.*?>/g,Zb=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,$b=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Ya=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},Nb=function(a){var b=parseInt(a,10);return!isNaN(b)&&isFinite(a)?b:null},Ob=function(a,b){Za[b]||(Za[b]=RegExp(Qa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace(Za[b],"."):a},$a=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Ob(a,b));c&&d&&(a=a.replace(Ya,""));return!isNaN(parseFloat(a))&&isFinite(a)},Pb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:$a(a.replace(Aa,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<f;e++)a[e]&&d.push(a[e][b]);return d},ja=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},Y=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Qb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},qa=function(a){var b;a:{if(!(2>a.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice();b=[];var e=a.length,f,g=0,d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b};n.util={throttle:function(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,j=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,j)},c)):(d=g,a.apply(b,j))}},escapeRegex:function(a){return a.replace($b,"\\$1")}};var A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ca=/\[.*?\]$/,W=/\(\)$/,Qa=n.util.escapeRegex,va=h("<div>")[0],Wb=va.textContent!==k,Yb=/<.*?>/g,Oa=n.util.throttle,Rb=[],w=Array.prototype,ac=function(a){var b,c,d=n.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};s=function(a,b){if(!(this instanceof s))return new s(a,b);var c=[],d=function(a){(a=ac(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=qa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};s.extend(this,this,Rb)};n.Api=s;h.extend(s.prototype,{any:function(){return 0!==this.count()},concat:w.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=this.context;return b.length>a?new s(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new s(this.context,b)},flatten:function(){var a=[];return new s(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,j,h,m,l=this.context,n,o,u=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(j=l.length;g<j;g++){var r=new s(l[g]);if("table"===b)f=c.call(r,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(r,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){o=this[g];"column-rows"===b&&(n=Ba(l[g],u.opts));h=0;for(m=o.length;h<m;h++)f=o[h],f="cell"===b?c.call(r,l[g],f.row,f.column,g,h):c.call(r,l[g],f,g,h,n),f!==k&&e.push(f)}}return e.length||d?(a=new s(l,a?e.concat.apply([],e):e),b=a.selector,b.rows=u.rows,b.cols=u.cols,b.opts=u.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new s(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return hb(this,a,b,0,this.length,1)},reduceRight:w.reduceRight||function(a,b){return hb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,slice:function(){return new s(this.context,this)},sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new s(this.context,qa(this))},unshift:w.unshift});s.extend=function(a,b,c){if(c.length&&b&&(b instanceof s||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d=b.apply(a,arguments);s.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,s.extend(a,b[f.name],f.propExt)}};s.register=o=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)s.register(a[c],b);else for(var e=a.split("."),f=Rb,g,j,c=0,d=e.length;c<d;c++){g=(j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var m=f.length;i<m;i++)if(f[i].name===g){i=f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};s.registerPlural=u=function(a,b,c){s.register(a,c);s.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof s?a.length?h.isArray(a[0])?new s(a.context,a[0]):a[0]:k:a})};o("tables()",function(a){var b;if(a){b=s;var c=this.context;if("number"===typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this,d);return c[a]}).toArray();b=new b(a)}else b=this;return b});o("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new s(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});u("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});u("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});u("tables().footer()","table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});u("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});o("draw()",function(a){return this.iterator("table",function(b){"page"===a?P(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});o("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Ta(b,a)})});o("page.info()",function(){if(0===this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});o("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:k:this.iterator("table",function(b){Ra(b,a)})});var Sb=function(a,b,c){if(c){var d=new s(a);d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();sa(a,[],function(c){oa(a);for(var c=ta(a,c),d=0,e=c.length;d<e;d++)O(a,c[d]);T(a,b);C(a,!1)})}};o("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});o("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});o("ajax.reload()",function(a,b){return this.iterator("table",function(c){Sb(c,!1===b,a)})});o("ajax.url()",function(a){var b=this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});o("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Sb(c,!1===b,a)})});var ab=function(a,b,c,d,e){var f=[],g,j,i,m,l,n;i=typeof b;if(!b||"string"===i||"function"===i||b.length===k)b=[b];i=0;for(m=b.length;i<m;i++){j=b[i]&&b[i].split&&!b[i].match(/[\[\(:]/)?b[i].split(","):[b[i]];l=0;for(n=j.length;l<n;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=x.selector[a];if(a.length){i=0;for(m=a.length;i<m;i++)f=a[i](d,e,f)}return qa(f)},bb=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},cb=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Ba=function(a,b){var c,d,e,f=[],g=a.aiDisplay;e=a.aiDisplayMaster;var j=b.search;c=b.order;d=b.page;if("ssp"==y(a))return"removed"===j?[]:Y(0,e.length);if("current"==d){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==c||"applied"==c)if("none"==j)f=e.slice();else if("applied"==j)f=g.slice();else{if("removed"==j){var i={};c=0;for(d=g.length;c<d;c++)i[g[c]]=null;f=h.map(e,function(a){return!i.hasOwnProperty(a)?a:null})}}else if("index"==c||"original"==c){c=0;for(d=a.aoData.length;c<d;c++)"none"==j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f};o("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=bb(b),c=this.iterator("table",function(c){var e=b,f;return ab("row",a,function(a){var b=Nb(a),i=c.aoData;if(b!==null&&!e)return[b];f||(f=Ba(c,e));if(b!==null&&h.inArray(b,f)!==-1)return[b];if(a===null||a===k||a==="")return f;if(typeof a==="function")return h.map(f,function(b){var c=i[b];return a(b,c._aData,c.nTr)?b:null});if(a.nodeName){var b=a._DT_RowIndex,m=a._DT_CellIndex;if(b!==k)return i[b]&&i[b].nTr===a?[b]:[];if(m)return i[m.row]&&i[m.row].nTr===a?[m.row]:[];b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){b=c.aIds[a.replace(/^#/,"")];if(b!==k)return[b.idx]}b=Qb(ja(c.aoData,f,"nTr"));return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});o("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});o("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ja(a.aoData,b,"_aData")},1)});u("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});u("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){da(b,c,a)})});u("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});u("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new s(c,b)});u("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,m,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(m=l.length;i<m;i++)l[i]._DT_CellIndex.row=g}pa(b.aiDisplayMaster,c);pa(b.aiDisplay,c);pa(a[d],c,!1);0<b._iRecordsDisplay&&b._iRecordsDisplay--;Sa(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]});this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});o("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(na(b,c)[0]):h.push(O(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});o("row()",function(a,b){return cb(this.rows(a,b))});o("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:k;var c=b[0].aoData[this[0]];c._aData=a;h.isArray(a)&&c.nTr.id&&N(b[0].rowId)(a,c.nTr.id);da(b[0],this[0],"data");return this});o("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});o("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?na(b,a)[0]:O(b,a)});return this.row(b[0])});var db=function(a,b){var c=a.context;if(c.length&&(c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow=k,c._details=k},Tb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new s(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",function(a,b){if(e===b)for(var c,d=V(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&db(f,c)}))}}};o("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)db(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=V(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});o(["row().child.show()","row().child().show()"],function(){Tb(this,!0);return this});o(["row().child.hide()","row().child().hide()"],function(){Tb(this,!1);return this});o(["row().child.remove()","row().child().remove()"],function(){db(this);return this});o("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var bc=/^([^:]+):(name|visIdx|visible)$/,Ub=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};o("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=bb(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns,j=D(g,"sName"),i=D(g,"nTh");return ab("column",e,function(a){var b=Nb(a);if(a==="")return Y(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Ba(c,f);return h.map(g,function(b,f){return a(f,Ub(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(bc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var n=h.map(g,function(a,b){return a.bVisible?b:null});return[n[n.length+b]]}return[aa(c,b)];case "name":return h.map(j,function(a,b){return a===k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Ub,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,m,l;if(a!==k&&g.bVisible!==a){if(a){var n=h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(m=j.length;i<m;i++)l=j[i].nTr,f=j[i].anCells,l&&l.insertBefore(f[c],f[n]||null)}else h(D(b.aoData,"anCells",c)).detach();g.bVisible=a;fa(b,b.aoHeader);fa(b,b.aoFooter);b.aiDisplay.length||h(b.nTBody).find("td[colspan]").attr("colspan",V(b));xa(b)}});a!==k&&(this.iterator("column",function(c,e){r(c,null,"column-visibility",[c,e,a,b])}),(b===k||b)&&this.columns.adjust());return c});u("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?ba(b,c):c},1)});o("columns.adjust()",function(){return this.iterator("table",function(a){$(a)},1)});o("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===a||"toData"===a)return aa(c,b);if("fromData"===a||"toVisible"===a)return ba(c,b)}});o("column()",function(a,b){return cb(this.columns(a,b))});o("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=bb(c),f=b.aoData,g=Ba(b,e),j=Qb(ja(f,g,"anCells")),i=h([].concat.apply([],j)),l,m=b.aoColumns.length,n,o,u,s,r,v;return ab("cell",d,function(a){var c=typeof a==="function";if(a===null||a===k||c){n=[];o=0;for(u=g.length;o<u;o++){l=g[o];for(s=0;s<m;s++){r={row:l,column:s};if(c){v=f[l];a(r,B(b,l,s),v.anCells?v.anCells[s]:null)&&n.push(r)}else n.push(r)}}return n}if(h.isPlainObject(a))return a.column!==k&&a.row!==k&&h.inArray(a.row,g)!==-1?[a]:[];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;v=h(a).closest("*[data-dt-row]");return v.length?[{row:v.data("dt-row"),column:v.data("dt-column")}]:[]},b,e)});var d=this.columns(b),e=this.rows(a),f,g,j,i,m;this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(m=d[b].length;i<m;i++)f.push({row:e[b][g],column:d[b][i]})}},1);var l=this.cells(f,c);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});u("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});o("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});u("cells().cache()","cell().cache()",function(a){a="search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});u("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});u("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:ba(a,c)}},1)});u("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){da(b,c,a,d)})});o("cell()",function(a,b,c){return cb(this.cells(a,b,c))});o("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;jb(b[0],c[0].row,c[0].column,a);da(b[0],c[0].row,"data",c[0].column);return this});o("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:a.length&&!h.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});o("order.listener()",function(a,b,c){return this.iterator("table",function(d){Ma(d,a,b,c)})});o("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});o(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});o("search()",function(a,b,c,d){var e=this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&ga(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});u("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),ga(e,e.oPreviousSearch,1))})});o("state()",function(){return this.context.length?this.context[0].oSavedState:null});o("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});o("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});o("state.save()",function(){return this.iterator("table",function(a){xa(a)})});n.versionCheck=n.fnVersionCheck=function(a){for(var b=n.version.split("."),a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};n.isDataTable=n.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof n.Api)return!0;h.each(n.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};n.tables=n.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(n.settings,function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new s(c):c};n.camelToHungarian=J;o("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){o(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});o("clear()",function(){return this.iterator("table",function(a){oa(a)})});o("settings()",function(){return new s(this.context,this.context)});o("init()",function(){var a=this.context;return a.length?a[0].oInit:null});o("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});o("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),o;b.bDestroying=!0;r(b,"aoDestroyCallback","destroy",[b]);a||(new s(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];wa(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(o=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%o])}));c=h.inArray(b,n.settings);-1!==c&&n.settings.splice(c,1)})});h.each(["column","row","cell"],function(a,b){o(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,m){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,m)})})});o("i18n()",function(a,b,c){var d=this.context[0],a=S(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});n.version="1.10.18";n.settings=[];n.models={};n.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};n.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};n.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};n.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},n.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};Z(n.defaults);n.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Z(n.defaults.column);n.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};n.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:n.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:n.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(n.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Kb=n.ext.pager;h.extend(Kb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ia(a,b)]},simple_numbers:function(a,b){return["previous",ia(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ia(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ia(a,b),"last"]},_numbers:ia,numbers_length:7});h.extend(!0,n.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},m,l,n=0,o=function(b,d){var k,s,u,r,v=function(b){Ta(a,b.data.action,!0)};k=0;for(s=d.length;k<s;k++){r=d[k];if(h.isArray(r)){u=h("<"+(r.DT_el||"div")+"/>").appendTo(b);o(u,r)}else{m=null;l="";switch(r){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":m=j.sFirst;l=r+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":m=j.sPrevious;l=r+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":m=j.sNext;l=r+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":m=j.sLast;l=r+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:m=r+1;l=e===r?g.sPageButtonActive:""}if(m!==null){u=h("<a>",{"class":g.sPageButton+" "+l,"aria-controls":a.sTableId,"aria-label":i[r],"data-dt-idx":n,tabindex:a.iTabIndex,id:c===0&&typeof r==="string"?a.sTableId+"_"+r:null}).html(m).appendTo(b);Wa(u,{action:r},v);n++}}}},s;try{s=h(b).find(H.activeElement).data("dt-idx")}catch(u){}o(h(b).empty(),d);s!==k&&h(b).find("[data-dt-idx="+s+"]").focus()}}});h.extend(n.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!Zb.test(a))return null;var b=Date.parse(a);return null!==b&&!isNaN(b)||M(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return $a(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Pb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Pb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(n.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Mb," ").replace(Aa,""):""},string:function(a){return M(a)?a:"string"===typeof a?a.replace(Mb," "):a}});var za=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Ob(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){a=Date.parse(a);return isNaN(a)?-Infinity:a},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});Da("");h.extend(!0,n.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Vb=function(a){return"string"===typeof a?a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):a};n.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Vb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Vb}}};h.extend(n.ext.internal,{_fnExternApiFunc:Lb,_fnBuildAjax:sa,_fnAjaxUpdate:lb,_fnAjaxParameters:ub,_fnAjaxUpdateDraw:vb,_fnAjaxDataSrc:ta,_fnAddColumn:Ea,_fnColumnOptions:ka,_fnAdjustColumnSizing:$,_fnVisibleToColumnIndex:aa,_fnColumnIndexToVisible:ba,_fnVisbleColumns:V,_fnGetColumns:ma,_fnColumnTypes:Ga,_fnApplyColumnDefs:ib,_fnHungarianMap:Z,_fnCamelToHungarian:J,_fnLanguageCompat:Ca,_fnBrowserDetect:gb,_fnAddData:O,_fnAddTr:na,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:jb,_fnSplitObjNotation:Ja,_fnGetObjectDataFn:S,_fnSetObjectDataFn:N,_fnGetDataMaster:Ka,_fnClearTable:oa,_fnDeleteIndex:pa,_fnInvalidate:da,_fnGetRowElements:Ia,_fnCreateTr:Ha,_fnBuildHead:kb,_fnDrawHead:fa,_fnDraw:P,_fnReDraw:T,_fnAddOptionsHtml:nb,_fnDetectHeader:ea,_fnGetUniqueThs:ra,_fnFeatureHtmlFilter:pb,_fnFilterComplete:ga,_fnFilterCustom:yb,_fnFilterColumn:xb,_fnFilter:wb,_fnFilterCreateSearch:Pa,_fnEscapeRegex:Qa,_fnFilterData:zb,_fnFeatureHtmlInfo:sb,_fnUpdateInfo:Cb,_fnInfoMacros:Db,_fnInitialise:ha,_fnInitComplete:ua,_fnLengthChange:Ra,_fnFeatureHtmlLength:ob,_fnFeatureHtmlPaginate:tb,_fnPageChange:Ta,_fnFeatureHtmlProcessing:qb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:rb,_fnScrollDraw:la,_fnApplyToChildren:I,_fnCalculateColumnWidths:Fa,_fnThrottle:Oa,_fnConvertToWidth:Eb,_fnGetWidestNode:Fb,_fnGetMaxLenString:Gb,_fnStringToCss:v,_fnSortFlatten:X,_fnSort:mb,_fnSortAria:Ib,_fnSortListener:Va,_fnSortAttachListener:Ma,_fnSortingClasses:wa,_fnSortData:Hb,_fnSaveState:xa,_fnLoadState:Jb,_fnSettingsFromNode:ya,_fnLog:K,_fnMap:F,_fnBindAction:Wa,_fnCallbackReg:z,_fnCallbackFire:r,_fnLengthOverflow:Sa,_fnRenderer:Na,_fnDataSource:y,_fnRowAttributes:La,_fnExtend:Xa,_fnCalculateEnd:function(){}});h.fn.dataTable=n;n.$=h;h.fn.dataTableSettings=n.settings;h.fn.dataTableExt=n.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(n,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});(function($){'use strict';var pluginName="helpdesk",defaults={bla:"",};function Plugin(element,options){this.element=element;this.settings=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;this.init()}
$.extend(Plugin.prototype,{init:function(){var that=this;this.window=$(window);this.documentHeight=$(document).height();this.windowHeight=this.window.height();this.comment_ids=[];this.desktopNotifications.comment_ids=[];if(this.settings.integrationsWooCommerce==1){this.woocommerceForm()}
if(this.settings.FAQShowSearch==1){this.FAQSearch()}
if(this.settings.enableDesktopNotifications==1){this.desktopNotifications()}
if(this.settings.enableLiveChat==1){this.liveChatNew()}
if(this.settings.FAQRatingEnable==1){this.FAQRating()}
this.mytickets();this.attachments()},woocommerceForm:function(){var links=$('.wordpress-helpdesk-woo-form-show');links.on('click',function(e){e.preventDefault();var $this=$(this);var toShow=$this.data('show');$('.wordpress-helpdesk-order-form').addClass('wordpress-helpdesk-hidden');$('.wordpress-helpdesk-product-form').addClass('wordpress-helpdesk-hidden');$('.wordpress-helpdesk-other-form').addClass('wordpress-helpdesk-hidden');$('.wordpress-helpdesk-'+toShow+'-form').removeClass('wordpress-helpdesk-hidden');$('.wordpress-helpdesk-form').fadeIn()})},attachments:function(){var comment_form=$('.single-ticket #commentform');if(comment_form.length>0){$('.single-ticket #commentform')[0].encoding='multipart/form-data'}
if(typeof LuminousGallery!=='undefined'){new LuminousGallery($('.wordpress-helpdesk-ticket-attachments a, .wordpress-helpdesk-comment-attachments a'),{},{caption:function(trigger){return trigger.querySelector('img').getAttribute('alt')}})}},mytickets:function(){var my_tickets_table=$('.wordpress-helpdesk-my-tickets-table');if(my_tickets_table.length>0&&this.settings.myTicketsDatatablesEnable=="1"){var datatableOptions={'language':{'url':this.settings.myTicketsDatatablesLanguageURL}};my_tickets_table.DataTable(datatableOptions)}},FAQSearch:function(){var that=this;var searchTerms=$('.wordpress-helpdesk-faq-searchterm');var delayTimer;$('.wordpress-helpdesk-faq-searchform').on('submit',function(e){e.preventDefault();$(this).find('.wordpress-helpdesk-faq-searchterm').trigger('keyup');return!1});searchTerms.each(function(i,index){var searchTerm=$(this);var resultContainer=searchTerm.siblings('.wordpress-helpdesk-faq-live-search-results');var searchIcon=searchTerm.siblings('.searchform-submit').find('.fa-search');searchTerm.on('keyup',function(e){resultContainer.fadeOut();var $this=$(this);var term=$this.val();if(term.length>1){searchIcon.removeClass('fa-search').addClass('fa-spinner fa-spin');clearTimeout(delayTimer);delayTimer=setTimeout(function(){$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{term:term,action:'search_faqs'},success:function(response){if((searchTerm.attr('name')=="subject")&&response.count==0){return!1}else{resultContainer.fadeIn().html(response.message)}
searchIcon.removeClass('fa-spinner fa-spin').addClass('fa-search')}})},700)}});$(document).click(function(e){if($(e.target).closest('.wordpress-helpdesk-faq-live-search-results').length===0){resultContainer.fadeOut()}})})},FAQRating:function(){var that=this;var likeButton=$('.wordpress-helpdesk-faq-rating-like');var likeCount=$('#wordpress-helpdesk-faq-rating-like-count');var dislikeButton=$('.wordpress-helpdesk-faq-rating-dislike');var dislikeCount=$('#wordpress-helpdesk-faq-rating-dislike-count');likeButton.on('click',function(e){e.preventDefault();var $this=$(this);var post_id=$this.data('post_id');$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{post_id:post_id,action:'count_likes'},success:function(response){likeCount.text(response)}})});if(dislikeButton.length>0){dislikeButton.on('click',function(e){e.preventDefault();var $this=$(this);var post_id=$this.data('post_id');$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{post_id:post_id,action:'count_dislikes'},success:function(response){dislikeCount.text(response)}})})}},desktopNotifications:function(){var that=this;var showWelcome=that.getCookie('desktopNotificationsShowWelcome');if(that.isEmpty(showWelcome)){Push.create(that.settings.desktopNotificationsWelcomeTitle,{body:that.settings.desktopNotificationsWelcomeText,icon:that.settings.desktopNotificationsIcon,timeout:that.settings.desktopNotificationsTimeout,});that.createCookie('desktopNotificationsShowWelcome','false',that.settings.desktopNotificationsWelcomeTimeout)}
$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{action:'desktop_notifications_get_comment_ids',},success:function(response){if(response.message=="Not logged in"){return!1}
that.desktopNotifications.comment_ids=that.desktopNotifications.comment_ids.concat(response.comment_ids)
that.desktopNotificationsInterval=setInterval(function(){that.desktopNotificationsCheck()},that.settings.desktopNotificationsAJAXInterval)},error:function(jqXHR,textStatus,errorThrown){console.log('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!')}})},desktopNotificationsCheck:function(){var that=this;$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{comment_ids:that.desktopNotifications.comment_ids,action:'desktop_notifications_get_new_comments',},success:function(response){if(response.status=="false"){return}
that.desktopNotifications.comment_ids.push(response.comment_id);Push.create(response.title,{body:response.body,link:response.link,icon:that.settings.desktopNotificationsIcon,timeout:that.settings.desktopNotificationsTimeout,})},error:function(jqXHR,textStatus,errorThrown){console.log('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!')}})},liveChatNew:function(){var that=this;that.livechat={};that.livechat.trigger=$('#wordpress-helpdesk-livechat-trigger');if(that.livechat.trigger.length<1){return}
that.liveChatCheckAllowed(function(allowed){if(allowed==!1||allowed=='false'){return}
that.livechat.trigger.fadeIn();that.livechat.content=$('#wordpress-helpdesk-livechat-content');that.livechat.close=$('#wordpress-helpdesk-livechat-close');that.livechat.title=$('#wordpress-helpdesk-livechat-header-title');that.livechat.status=$('#wordpress-helpdesk-livechat-header-status');that.livechat.messages=$('#wordpress-helpdesk-livechat-messages');that.livechat.welcome=$('#wordpress-helpdesk-livechat-welcome');that.livechat.footer=$('#wordpress-helpdesk-livechat-footer');that.livechat.comment_form=$('#wordpress-helpdesk-livechat-comment-form');that.livechat.error_container=$('#wordpress-helpdesk-livechat-enter-chat-form-error');that.livechat.success_container=$('#wordpress-helpdesk-livechat-enter-chat-form-success');that.livechat.ticket_form=$('#wordpress-helpdesk-livechat-enter-chat-form');that.livechat.chat_messages=$('#wordpress-helpdesk-livechat-chat-messages');that.liveChatComment();that.liveChatAttachment();that.liveChatEnterChatForm();that.livechat.trigger.on('click',function(e){that.livechat.trigger.fadeOut(function(){that.livechat.content.slideDown();that.liveChatCheckStatus()})});that.livechat.close.on('click',function(e){that.livechat.content.slideUp(function(){that.livechat.error_container.fadeOut();that.livechat.success_container.fadeOut();that.deleteCookie('wordpress-helpdesk-livechat-ticket');that.comment_ids=[];that.settings.ticket='';that.livechat.chat_messages.html('');console.log(that.liveChatWatchCommentsInterval);clearInterval(that.liveChatWatchCommentsInterval);that.livechat.trigger.fadeIn();that.livechat.title.text('Live Chat')})});that.livechat.ticket_cookie=that.getCookie('wordpress-helpdesk-livechat-ticket');if(that.livechat.ticket_cookie!==""){that.settings.ticket=that.livechat.ticket_cookie;that.livechat.trigger.trigger('click')}})},liveChatCheckAllowed:function(callback){var that=this;$.ajax({type:'post',url:that.settings.ajax_url,data:{action:'livechat_frontend_check_allowed'},success:function(response){callback(response)},error:function(xhr,ajaxOptions,thrownError){console.log(xhr);console.log(ajaxOptions);console.log(thrownError);callback(!1)}})},liveChatCheckStatus:function(){var that=this;$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{action:'livechat_frontend_check_status'},success:function(response){that.livechat.status.text(response.status);that.livechat.welcome.html(response.welcome);that.livechat.ticket_form.html(response.enter_chat_fields);if(!(that.isEmpty(that.settings.ticket))){that.liveChatGetTicket(!0)}else{$('.wordpress-helpdesk-livechat-enter-chat').fadeIn()}}})},liveChatEnterChatForm:function(){var that=this;that.livechat.ticket_form.on('submit',function(e){e.preventDefault();that.livechat.ticket_form_username=that.livechat.ticket_form.find('input[name="helpdesk_username"]');that.livechat.ticket_form_email=that.livechat.ticket_form.find('input[name="helpdesk_email"]');that.livechat.ticket_form_subject=that.livechat.ticket_form.find('input[name="helpdesk_subject"]');that.livechat.ticket_form_message=that.livechat.ticket_form.find('input[name="helpdesk_message"]');that.livechat.ticket_form_ticket=that.livechat.ticket_form.find('input[name="ticket"]');if(that.livechat.ticket_form_ticket.length>0&&!that.isEmpty(that.livechat.ticket_form_ticket.val())){that.settings.ticket=that.livechat.ticket_form_ticket.val();that.liveChatGetTicket(!0)}else{if(that.livechat.ticket_form_username.length>0&&that.isEmpty(that.livechat.ticket_form_username.val())){that.livechat.ticket_form_username.css('border-color','red');return}else{that.livechat.ticket_form_username.css('border-color','none')}
if(that.livechat.ticket_form_email.length>0&&that.isEmpty(that.livechat.ticket_form_email.val())){that.livechat.ticket_form_email.css('border-color','red');return}else{that.livechat.ticket_form_email.css('border-color','none')}
if(that.livechat.ticket_form_subject.length>0&&that.isEmpty(that.livechat.ticket_form_subject.val())){that.livechat.ticket_form_subject.css('border-color','red');return}else{that.livechat.ticket_form_subject.css('border-color','none')}
if(that.livechat.ticket_form_message.length>0&&that.isEmpty(that.livechat.ticket_form_message.val())){that.livechat.ticket_form_message.css('border-color','red');return}else{that.livechat.ticket_form_message.css('border-color','none')}
$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{helpdeskTicket:'Chat',helpdesk_username:that.livechat.ticket_form_username.val(),helpdesk_email:that.livechat.ticket_form_email.val(),helpdesk_subject:that.livechat.ticket_form_subject.val(),helpdesk_message:that.livechat.ticket_form_message.val(),action:'livechat_frontend_create_ticket',},success:function(response){if(response.status=="true"){that.livechat.error_container.fadeOut();that.livechat.success_container.html(response.message).fadeIn();that.settings.ticket=response.ticket;that.liveChatGetTicket(!0)}else{that.livechat.success_container.fadeOut();that.livechat.error_container.html(response.message).fadeIn();return!1}},error:function(jqXHR,textStatus,errorThrown){console.log('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!')}})}})},liveChatComment:function(){var that=this;that.livechat.comment_form.on('submit',function(e){e.preventDefault();var message=that.livechat.comment_form.find('input[name="helpdesk_message"]');if(message.length>0&&that.isEmpty(message.val())){message.css('border-color','red');return}
$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{helpdesk_post_id:that.settings.ticket,helpdesk_message:message.val(),action:'livechat_frontend_comment_ticket',},success:function(response){if(response.status=="true"){message.val('')}else{console.log('An error occured');console.log(response)}},error:function(jqXHR,textStatus,errorThrown){console.log('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!')}})})},liveChatAttachment:function(){var that=this;var attachmentInput=that.livechat.comment_form.find('#helpdesk_attachment');attachmentInput.on('change',function(event){clearInterval(that.liveChatWatchCommentsInterval);event.stopPropagation();event.preventDefault();$('.wordpress-helpdesk-livechat-comment-form-attachment').find('.fa').removeClass('fa-paperclip').addClass('fa-spinner fa-spin');var data=new FormData();data.append('helpdesk-attachments[]',$(this)[0].files[0]);data.append('action','livechat_frontend_upload_file');data.append('ticket',that.settings.ticket)
$.ajax({url:that.settings.ajax_url,type:'POST',data:data,cache:!1,dataType:'json',processData:!1,contentType:!1,success:function(data,textStatus,jqXHR){$('.wordpress-helpdesk-livechat-comment-form-attachment').find('.fa').addClass('fa-paperclip').removeClass('fa-spinner fa-spin');that.liveChatWatchCommentsInterval=setInterval(function(){that.liveChatWatchComments()},that.settings.liveChatAJAXInterval)},error:function(jqXHR,textStatus,errorThrown){$('.wordpress-helpdesk-livechat-comment-form-attachment').find('.fa').addClass('fa-paperclip').removeClass('fa-spinner fa-spin');console.log(jqXHR);console.log(textStatus)}})})},liveChatGetTicket:function(all){all=all||!1;var that=this;that.livechat.chat_messages.html('');$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{comment_ids:that.comment_ids,all:all,ticket:that.settings.ticket,action:'livechat_frontend_get_ticket',},success:function(response){if(response.status==="false"){clearInterval(that.liveChatWatchCommentsInterval)
that.livechat.error_container.html(response.error).fadeIn();return!1}
that.livechat.title.text(response.title)
$('.wordpress-helpdesk-livechat-enter-chat').fadeOut();that.createCookie('wordpress-helpdesk-livechat-ticket',that.settings.ticket,10);that.livechat.footer.fadeIn();that.liveChatWatchCommentsInterval=setInterval(function(){that.liveChatWatchComments()},that.settings.liveChatAJAXInterval);console.log(that.liveChatWatchCommentsInterval);that.comment_ids=that.comment_ids.concat(response.comment_ids).filter(that.onlyUnique);if(Object.keys(response.chat).length===0){return!1}
that.liveChatRenderChatMessages(response.chat)},error:function(jqXHR,textStatus,errorThrown){console.log('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!')}})},liveChatRenderChatMessages:function(messages){var html="";var that=this;for(var i=0;i<messages.length;i++){var agentCSS="";if(messages[i].agent==!0){var agentCSS="wordpress-helpdesk-livechat-message-agent"}
html+='<div class="wordpress-helpdesk-livechat-message-container wordpress-helpdesk-clearfix '+agentCSS+'">'+'<div class="wordpress-helpdesk-livechat-author">'+'<img src="'+messages[i].author_img+'" class="wordpress-helpdesk-livechat-author-image">'+'<span class="wordpress-helpdesk-livechat-author-name">'+messages[i].author_name+'</span>'+'</div>'+'<div class="wordpress-helpdesk-livechat-message">';if(messages[i].attachment_thumb!==""){html+='<div class="wordpress-helpdesk-livechat-attachment">'+'<a href="'+messages[i].attachment_url+'" class="wordpress-helpdesk-livechat-attachment-link">'+'<img src="'+messages[i].attachment_thumb+'" class="wordpress-helpdesk-livechat-attachment-thumb" />'+'</a>'+'</div>'}
html+=messages[i].content+'</div>'+'</div>'}
that.livechat.chat_messages.append(html);if(typeof LuminousGallery!=='undefined'){new LuminousGallery($('.wordpress-helpdesk-livechat-attachment a'),{},{caption:function(trigger){return trigger.querySelector('img').getAttribute('alt')}})}
$('#wordpress-helpdesk-livechat-messages').animate({scrollTop:$('#wordpress-helpdesk-livechat-messages').prop("scrollHeight")},1000)},liveChatWatchComments:function(){var that=this;$.ajax({type:'post',url:that.settings.ajax_url,dataType:'json',data:{comment_ids:that.comment_ids,ticket:that.settings.ticket,action:'livechat_frontend_get_comments',},success:function(response){if(response.status==="false"){clearInterval(that.liveChatWatchComments)
that.livechat.error_container.html(response.error).fadeIn();return!1}
that.comment_ids=that.comment_ids.concat(response.comment_ids).filter(that.onlyUnique);if(Object.keys(response.chat).length===0){return!1}
that.liveChatRenderChatMessages(response.chat)},error:function(jqXHR,textStatus,errorThrown){console.log('An Error Occured: '+jqXHR.status+' '+errorThrown+'! Please contact System Administrator!')}})},onlyUnique:function(value,index,self){return self.indexOf(value)===index},isEmpty:function(obj){if(obj==null)return!0;if(obj.length>0)return!1;if(obj.length===0)return!0;for(var key in obj){if(hasOwnProperty.call(obj,key))return!1}
return!0},sprintf:function parse(str){var args=[].slice.call(arguments,1),i=0;return str.replace(/%s/g,function(){return args[i++]})},getCookie:function(cname){var name=cname+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)===0)return c.substring(name.length,c.length)}
return""},createCookie:function(name,value,minutes){var expires="";if(minutes){var date=new Date();date.setTime(date.getTime()+(minutes*60*1000));var expires="; expires="+date.toGMTString()}
document.cookie=name+"="+value+expires+"; path=/"},deleteCookie:function(name){this.createCookie(name,'',-10)}});$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,"plugin_"+pluginName)){$.data(this,"plugin_"+pluginName,new Plugin(this,options))}})};$(document).ready(function(){$("body").helpdesk(helpdesk_options)})})(jQuery);var renderInvisibleReCaptcha=function(){for(var i=0;i<document.forms.length;++i){var form=document.forms[i];var holder=form.querySelector('.inv-recaptcha-holder');if(null===holder)continue;holder.innerHTML='';(function(frm){var cf7SubmitElm=frm.querySelector('.wpcf7-submit');var holderId=grecaptcha.render(holder,{'sitekey':'6Lc3ZW8UAAAAAEMX3sb7t_ZYSKN_oFaXXYNuxtUp','size':'invisible','badge':'bottomright','callback':function(recaptchaToken){if((null!==cf7SubmitElm)&&(typeof jQuery!='undefined')){jQuery(frm).submit();grecaptcha.reset(holderId);return}
HTMLFormElement.prototype.submit.call(frm)},'expired-callback':function(){grecaptcha.reset(holderId)}});if(null!==cf7SubmitElm&&(typeof jQuery!='undefined')){jQuery(cf7SubmitElm).off('click').on('click',function(clickEvt){clickEvt.preventDefault();grecaptcha.execute(holderId)})}else{frm.onsubmit=function(evt){evt.preventDefault();grecaptcha.execute(holderId)}}})(form)}};(function(factory){if(typeof define==="function"&&define.amd){define(['jquery'],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require('jquery'))}else{factory(jQuery)}})(function($){if(typeof $.easing!=='undefined'){$.easing.jswing=$.easing.swing}
var pow=Math.pow,sqrt=Math.sqrt,sin=Math.sin,cos=Math.cos,PI=Math.PI,c1=1.70158,c2=c1*1.525,c3=c1+1,c4=(2*PI)/3,c5=(2*PI)/4.5;function bounceOut(x){var n1=7.5625,d1=2.75;if(x<1/d1){return n1*x*x}else if(x<2/d1){return n1*(x-=(1.5/d1))*x+.75}else if(x<2.5/d1){return n1*(x-=(2.25/d1))*x+.9375}else{return n1*(x-=(2.625/d1))*x+.984375}}
$.extend($.easing,{def:'easeOutQuad',swing:function(x){return $.easing[$.easing.def](x)},easeInQuad:function(x){return x*x},easeOutQuad:function(x){return 1-(1-x)*(1-x)},easeInOutQuad:function(x){return x<0.5?2*x*x:1-pow(-2*x+2,2)/2},easeInCubic:function(x){return x*x*x},easeOutCubic:function(x){return 1-pow(1-x,3)},easeInOutCubic:function(x){return x<0.5?4*x*x*x:1-pow(-2*x+2,3)/2},easeInQuart:function(x){return x*x*x*x},easeOutQuart:function(x){return 1-pow(1-x,4)},easeInOutQuart:function(x){return x<0.5?8*x*x*x*x:1-pow(-2*x+2,4)/2},easeInQuint:function(x){return x*x*x*x*x},easeOutQuint:function(x){return 1-pow(1-x,5)},easeInOutQuint:function(x){return x<0.5?16*x*x*x*x*x:1-pow(-2*x+2,5)/2},easeInSine:function(x){return 1-cos(x*PI/2)},easeOutSine:function(x){return sin(x*PI/2)},easeInOutSine:function(x){return-(cos(PI*x)-1)/2},easeInExpo:function(x){return x===0?0:pow(2,10*x-10)},easeOutExpo:function(x){return x===1?1:1-pow(2,-10*x)},easeInOutExpo:function(x){return x===0?0:x===1?1:x<0.5?pow(2,20*x-10)/2:(2-pow(2,-20*x+10))/2},easeInCirc:function(x){return 1-sqrt(1-pow(x,2))},easeOutCirc:function(x){return sqrt(1-pow(x-1,2))},easeInOutCirc:function(x){return x<0.5?(1-sqrt(1-pow(2*x,2)))/2:(sqrt(1-pow(-2*x+2,2))+1)/2},easeInElastic:function(x){return x===0?0:x===1?1:-pow(2,10*x-10)*sin((x*10-10.75)*c4)},easeOutElastic:function(x){return x===0?0:x===1?1:pow(2,-10*x)*sin((x*10-0.75)*c4)+1},easeInOutElastic:function(x){return x===0?0:x===1?1:x<0.5?-(pow(2,20*x-10)*sin((20*x-11.125)*c5))/2:pow(2,-20*x+10)*sin((20*x-11.125)*c5)/2+1},easeInBack:function(x){return c3*x*x*x-c1*x*x},easeOutBack:function(x){return 1+c3*pow(x-1,3)+c1*pow(x-1,2)},easeInOutBack:function(x){return x<0.5?(pow(2*x,2)*((c2+1)*2*x-c2))/2:(pow(2*x-2,2)*((c2+1)*(x*2-2)+c2)+2)/2},easeInBounce:function(x){return 1-bounceOut(1-x)},easeOutBounce:bounceOut,easeInOutBounce:function(x){return x<0.5?(1-bounceOut(1-2*x))/2:(1+bounceOut(2*x-1))/2}})});(function($,w){"use strict";var methods=(function(){var c={bcClass:'sf-breadcrumb',menuClass:'sf-js-enabled',anchorClass:'sf-with-ul',menuArrowClass:'sf-arrows'},ios=(function(){var ios=/^(?![\w\W]*Windows Phone)[\w\W]*(iPhone|iPad|iPod)/i.test(navigator.userAgent);if(ios){$('html').css('cursor','pointer').on('click',$.noop)}
return ios})(),wp7=(function(){var style=document.documentElement.style;return('behavior' in style&&'fill' in style&&/iemobile/i.test(navigator.userAgent))})(),unprefixedPointerEvents=(function(){return(!!w.PointerEvent)})(),toggleMenuClasses=function($menu,o,add){var classes=c.menuClass,method;if(o.cssArrows){classes+=' '+c.menuArrowClass}
method=(add)?'addClass':'removeClass';$menu[method](classes)},setPathToCurrent=function($menu,o){return $menu.find('li.'+o.pathClass).slice(0,o.pathLevels).addClass(o.hoverClass+' '+c.bcClass).filter(function(){return($(this).children(o.popUpSelector).hide().show().length)}).removeClass(o.pathClass)},toggleAnchorClass=function($li,add){var method=(add)?'addClass':'removeClass';$li.children('a')[method](c.anchorClass)},toggleTouchAction=function($menu){var msTouchAction=$menu.css('ms-touch-action');var touchAction=$menu.css('touch-action');touchAction=touchAction||msTouchAction;touchAction=(touchAction==='pan-y')?'auto':'pan-y';$menu.css({'ms-touch-action':touchAction,'touch-action':touchAction})},getMenu=function($el){return $el.closest('.'+c.menuClass)},getOptions=function($el){return getMenu($el).data('sfOptions')},over=function(){var $this=$(this),o=getOptions($this);clearTimeout(o.sfTimer);$this.siblings().superfish('hide').end().superfish('show')},close=function(o){o.retainPath=($.inArray(this[0],o.$path)>-1);this.superfish('hide');if(!this.parents('.'+o.hoverClass).length){o.onIdle.call(getMenu(this));if(o.$path.length){$.proxy(over,o.$path)()}}},out=function(){var $this=$(this),o=getOptions($this);if(ios){$.proxy(close,$this,o)()}else{clearTimeout(o.sfTimer);o.sfTimer=setTimeout($.proxy(close,$this,o),o.delay)}},touchHandler=function(e){var $this=$(this),o=getOptions($this),$ul=$this.siblings(e.data.popUpSelector);if(o.onHandleTouch.call($ul)===!1){return this}
if($ul.length>0&&$ul.is(':hidden')){$this.one('click.superfish',!1);if(e.type==='MSPointerDown'||e.type==='pointerdown'){$this.trigger('focus')}else{$.proxy(over,$this.parent('li'))()}}},applyHandlers=function($menu,o){var targets='li:has('+o.popUpSelector+')';if($.fn.hoverIntent&&!o.disableHI){$menu.hoverIntent(over,out,targets)}else{$menu.on('mouseenter.superfish',targets,over).on('mouseleave.superfish',targets,out)}
var touchevent='MSPointerDown.superfish';if(unprefixedPointerEvents){touchevent='pointerdown.superfish'}
if(!ios){touchevent+=' touchend.superfish'}
if(wp7){touchevent+=' mousedown.superfish'}
$menu.on('focusin.superfish','li',over).on('focusout.superfish','li',out).on(touchevent,'a',o,touchHandler)};return{hide:function(instant){if(this.length){var $this=this,o=getOptions($this);if(!o){return this}
var not=(o.retainPath===!0)?o.$path:'',$ul=$this.find('li.'+o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),speed=o.speedOut;if(instant){$ul.show();speed=0}
o.retainPath=!1;if(o.onBeforeHide.call($ul)===!1){return this}
$ul.stop(!0,!0).animate(o.animationOut,speed,function(){var $this=$(this);o.onHide.call($this)})}
return this},show:function(){var o=getOptions(this);if(!o){return this}
var $this=this.addClass(o.hoverClass),$ul=$this.children(o.popUpSelector);if(o.onBeforeShow.call($ul)===!1){return this}
$ul.stop(!0,!0).animate(o.animation,o.speed,function(){o.onShow.call($ul)});return this},destroy:function(){return this.each(function(){var $this=$(this),o=$this.data('sfOptions'),$hasPopUp;if(!o){return!1}
$hasPopUp=$this.find(o.popUpSelector).parent('li');clearTimeout(o.sfTimer);toggleMenuClasses($this,o);toggleAnchorClass($hasPopUp);toggleTouchAction($this);$this.off('.superfish').off('.hoverIntent');$hasPopUp.children(o.popUpSelector).attr('style',function(i,style){return style.replace(/display[^;]+;?/g,'')});o.$path.removeClass(o.hoverClass+' '+c.bcClass).addClass(o.pathClass);$this.find('.'+o.hoverClass).removeClass(o.hoverClass);o.onDestroy.call($this);$this.removeData('sfOptions')})},init:function(op){return this.each(function(){var $this=$(this);if($this.data('sfOptions')){return!1}
var o=$.extend({},$.fn.superfish.defaults,op),$hasPopUp=$this.find(o.popUpSelector).parent('li');o.$path=setPathToCurrent($this,o);$this.data('sfOptions',o);toggleMenuClasses($this,o,!0);toggleAnchorClass($hasPopUp,!0);toggleTouchAction($this);applyHandlers($this,o);$hasPopUp.not('.'+c.bcClass).superfish('hide',!0);o.onInit.call(this)})}}})();$.fn.superfish=function(method,args){if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==='object'||!method){return methods.init.apply(this,arguments)}else{return $.error('Method '+method+' does not exist on jQuery.fn.superfish')}};$.fn.superfish.defaults={popUpSelector:'ul,.sf-mega',hoverClass:'sfHover',pathClass:'overrideThisToUse',pathLevels:1,delay:800,animation:{opacity:'show'},animationOut:{opacity:'hide'},speed:'normal',speedOut:'fast',cssArrows:!0,disableHI:!1,onInit:$.noop,onBeforeShow:$.noop,onShow:$.noop,onBeforeHide:$.noop,onHide:$.noop,onIdle:$.noop,onDestroy:$.noop,onHandleTouch:$.noop}})(jQuery,window);(function($){$.fn.supersubs=function(options){var opts=$.extend({},$.fn.supersubs.defaults,options);return this.each(function(){var $$=$(this);var o=$.meta?$.extend({},opts,$$.data()):opts;$ULs=$$.find("ul").show();var fontsize=$('<li id="menu-fontsize">&#8212;</li>').css({"padding":0,"position":"absolute","top":"-999em","width":"auto"}).appendTo($$)[0].clientWidth;$("#menu-fontsize").remove();$ULs.each(function(i){var $ul=$(this);var $LIs=$ul.children();var $As=$LIs.children("a");var liFloat=$LIs.css("white-space","nowrap").css("float");$ul.add($LIs).add($As).css({"float":"none","width":"auto"});var emWidth=$ul[0].clientWidth/fontsize;emWidth+=o.extraWidth;if(emWidth>o.maxWidth)emWidth=o.maxWidth;else if(emWidth<o.minWidth)emWidth=o.minWidth;emWidth+="em";$ul.css("width",emWidth);$LIs.css({"float":liFloat,"width":"100%","white-space":"normal"}).each(function(){var $childUl=$(this).children("ul");var offsetDirection=$childUl.css("left")!==undefined?"left":"right";$childUl.css(offsetDirection,"100%")})}).hide()})};$.fn.supersubs.defaults={minWidth:9,maxWidth:25,extraWidth:0}})(jQuery);(function($){$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var cfg={interval:100,sensitivity:7,timeout:0};if(typeof handlerIn==="object")cfg=$.extend(cfg,handlerIn);else if($.isFunction(handlerOut))cfg=$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector});else cfg=$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(Math.abs(pX-cX)+Math.abs(pY-cY)<cfg.sensitivity){$(ob).off("mousemove.hoverIntent",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t)ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).on("mousemove.hoverIntent",track);if(ob.hoverIntent_s!=1)ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}else{$(ob).off("mousemove.hoverIntent",track);if(ob.hoverIntent_s==1)ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}};return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}})(jQuery);(function($){function maybeCall(thing,ctx){return typeof thing=="function"?thing.call(ctx):thing}function isElementInDOM(ele){while(ele=ele.parentNode)if(ele==document)return!0;return!1}function Tipsy(element,options){this.$element=$(element);this.options=options;this.enabled=!0;this.fixTitle()}Tipsy.prototype={show:function(){var title=this.getTitle();if(title&&this.enabled){var $tip=this.tip();$tip.find(".tipsy-inner")[this.options.html?"html":"text"](title);$tip[0].className="tipsy";$tip.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var pos=$.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var actualWidth=$tip[0].offsetWidth,actualHeight=$tip[0].offsetHeight,gravity=maybeCall(this.options.gravity,this.$element[0]);var tp;switch(gravity.charAt(0)){case "n":tp={top:pos.top+pos.height+this.options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case "s":tp={top:pos.top-actualHeight-this.options.offset,left:pos.left+pos.width/2-actualWidth/2};break;case "e":tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth-this.options.offset};break;case "w":tp={top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width+this.options.offset};break}if(gravity.length==2)if(gravity.charAt(1)=="w")tp.left=pos.left+pos.width/2-15;else tp.left=pos.left+pos.width/2-actualWidth+15;$tip.css(tp).addClass("tipsy-"+gravity);$tip.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+gravity.charAt(0);if(this.options.className)$tip.addClass(maybeCall(this.options.className,this.$element[0]));if(this.options.fade)$tip.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity});else $tip.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){if(this.options.fade)this.tip().stop().fadeOut(function(){$(this).remove()});else this.tip().remove()},fixTitle:function(){var $e=this.$element;if($e.attr("title")||typeof $e.attr("original-title")!="string")$e.attr("original-title",$e.attr("title")||"").removeAttr("title")},getTitle:function(){var title,$e=this.$element,o=this.options;this.fixTitle();var title,o=this.options;if(typeof o.title=="string")title=$e.attr(o.title=="title"?"original-title":o.title);else if(typeof o.title=="function")title=o.title.call($e[0]);title=(""+title).replace(/(^\s*|\s*$)/,"");return title||o.fallback},tip:function(){if(!this.$tip){this.$tip=$('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>');this.$tip.data("tipsy-pointee",this.$element[0])}return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}};$.fn.tipsy=function(options){if(options===!0)return this.data("tipsy");else if(typeof options=="string"){var tipsy=this.data("tipsy");if(tipsy)tipsy[options]();return this}options=$.extend({},$.fn.tipsy.defaults,options);function get(ele){var tipsy=$.data(ele,"tipsy");if(!tipsy){tipsy=new Tipsy(ele,$.fn.tipsy.elementOptions(ele,options));$.data(ele,"tipsy",tipsy)}return tipsy}function enter(){var tipsy=get(this);tipsy.hoverState="in";if(options.delayIn==0)tipsy.show();else{tipsy.fixTitle();setTimeout(function(){if(tipsy.hoverState=="in")tipsy.show()},options.delayIn)}}function leave(){var tipsy=get(this);tipsy.hoverState="out";if(options.delayOut==0)tipsy.hide();else setTimeout(function(){if(tipsy.hoverState=="out")tipsy.hide()},options.delayOut)}if(!options.live)this.each(function(){get(this)});if(options.trigger!="manual"){var binder=options.live?"live":"bind",eventIn=options.trigger=="hover"?"mouseenter":"focus",eventOut=options.trigger=="hover"?"mouseleave":"blur";this[binder](eventIn,enter)[binder](eventOut,leave)}return this};$.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:0.8,title:"title",trigger:"hover"};$.fn.tipsy.revalidate=function(){$(".tipsy").each(function(){var pointee=$.data(this,"tipsy-pointee");if(!pointee||!isElementInDOM(pointee))$(this).remove()})};$.fn.tipsy.elementOptions=function(ele,options){return $.metadata?$.extend({},options,$(ele).metadata()):options};$.fn.tipsy.autoNS=function(){return $(this).offset().top>$(document).scrollTop()+$(window).height()/2?"s":"n"};$.fn.tipsy.autoWE=function(){return $(this).offset().left>$(document).scrollLeft()+$(window).width()/2?"e":"w"};$.fn.tipsy.autoBounds=function(margin,prefer){return function(){var dir={ns:prefer[0],ew:prefer.length>1?prefer[1]:!1},boundTop=$(document).scrollTop()+margin,boundLeft=$(document).scrollLeft()+margin,$this=$(this);if($this.offset().top<boundTop)dir.ns="n";if($this.offset().left<boundLeft)dir.ew="w";if($(window).width()+$(document).scrollLeft()-$this.offset().left<margin)dir.ew="e";if($(window).height()+$(document).scrollTop()-$this.offset().top<margin)dir.ns="s";return dir.ns+(dir.ew?dir.ew:"")}}})(jQuery);/*!
 * imagesLoaded PACKAGED v4.1.4
 * JavaScript is all like "You images are done yet or what?"
 * MIT License
 */
!function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return n.indexOf(t)==-1&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{},n=i[e]=i[e]||{};return n[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return n!=-1&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],o=0;o<i.length;o++){var r=i[o],s=n&&n[r];s&&(this.off(e,r),delete n[r]),r.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function n(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?d.call(e):[e]}function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);var s=e;return"string"==typeof e&&(s=document.querySelectorAll(e)),s?(this.elements=n(s),this.options=i({},this.options),"function"==typeof t?r=t:i(this.options,t),r&&this.on("always",r),this.getImages(),h&&(this.jqDeferred=new h.Deferred),void setTimeout(this.check.bind(this))):void a.error("Bad element for imagesLoaded "+(s||e))}function r(e){this.img=e}function s(e,t){this.url=e,this.element=t,this.img=new Image}var h=e.jQuery,a=e.console,d=Array.prototype.slice;o.prototype=Object.create(t.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&u[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var r=e.querySelectorAll(this.options.background);for(n=0;n<r.length;n++){var s=r[n];this.addElementBackgroundImages(s)}}}};var u={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var o=n&&n[2];o&&this.addBackground(o,e),n=i.exec(t.backgroundImage)}},o.prototype.addImage=function(e){var t=new r(e);this.images.push(t)},o.prototype.addBackground=function(e,t){var i=new s(e,t);this.images.push(i)},o.prototype.check=function(){function e(e,i,n){setTimeout(function(){t.progress(e,i,n)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},o.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&a&&a.log("progress: "+i,e,t)},o.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},r.prototype=Object.create(t.prototype),r.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},r.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},r.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},r.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},r.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},r.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},r.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype=Object.create(r.prototype),s.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},s.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},s.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},o.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(h=t,h.fn.imagesLoaded=function(e,t){var i=new o(this,e,t);return i.jqDeferred.promise(h(this))})},o.makeJQueryPlugin(),o});/*!
 * Isotope PACKAGED v2.2.2
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */

/**
 * Bridget makes jQuery widgets
 * v1.1.0
 * MIT license
 */

( function( window ) {



// -------------------------- utils -------------------------- //

var slice = Array.prototype.slice;

function noop() {}

// -------------------------- definition -------------------------- //

function defineBridget( $ ) {

// bail if no jQuery
if ( !$ ) {
  return;
}

// -------------------------- addOptionMethod -------------------------- //

/**
 * adds option method -> $().plugin('option', {...})
 * @param {Function} PluginClass - constructor class
 */
function addOptionMethod( PluginClass ) {
  // don't overwrite original option method
  if ( PluginClass.prototype.option ) {
    return;
  }

  // option setter
  PluginClass.prototype.option = function( opts ) {
    // bail out if not an object
    if ( !$.isPlainObject( opts ) ){
      return;
    }
    this.options = $.extend( true, this.options, opts );
  };
}

// -------------------------- plugin bridge -------------------------- //

// helper function for logging errors
// $.error breaks jQuery chaining
var logError = typeof console === 'undefined' ? noop :
  function( message ) {
    console.error( message );
  };

/**
 * jQuery plugin bridge, access methods like $elem.plugin('method')
 * @param {String} namespace - plugin name
 * @param {Function} PluginClass - constructor class
 */
function bridge( namespace, PluginClass ) {
  // add to jQuery fn namespace
  $.fn[ namespace ] = function( options ) {
    if ( typeof options === 'string' ) {
      // call plugin method when first argument is a string
      // get arguments for method
      var args = slice.call( arguments, 1 );

      for ( var i=0, len = this.length; i < len; i++ ) {
        var elem = this[i];
        var instance = $.data( elem, namespace );
        if ( !instance ) {
          logError( "cannot call methods on " + namespace + " prior to initialization; " +
            "attempted to call '" + options + "'" );
          continue;
        }
        if ( !$.isFunction( instance[options] ) || options.charAt(0) === '_' ) {
          logError( "no such method '" + options + "' for " + namespace + " instance" );
          continue;
        }

        // trigger method with arguments
        var returnValue = instance[ options ].apply( instance, args );

        // break look and return first value if provided
        if ( returnValue !== undefined ) {
          return returnValue;
        }
      }
      // return this if no return value
      return this;
    } else {
      return this.each( function() {
        var instance = $.data( this, namespace );
        if ( instance ) {
          // apply options & init
          instance.option( options );
          instance._init();
        } else {
          // initialize new instance
          instance = new PluginClass( this, options );
          $.data( this, namespace, instance );
        }
      });
    }
  };

}

// -------------------------- bridget -------------------------- //

/**
 * converts a Prototypical class into a proper jQuery plugin
 *   the class must have a ._init method
 * @param {String} namespace - plugin name, used in $().pluginName
 * @param {Function} PluginClass - constructor class
 */
$.bridget = function( namespace, PluginClass ) {
  addOptionMethod( PluginClass );
  bridge( namespace, PluginClass );
};

return $.bridget;

}

// transport
if ( typeof define === 'function' && define.amd ) {
  // AMD
  define( 'jquery-bridget/jquery.bridget',[ 'jquery' ], defineBridget );
} else if ( typeof exports === 'object' ) {
  defineBridget( require('jquery') );
} else {
  // get jquery from browser global
  defineBridget( window.jQuery );
}

})( window );

/*!
 * eventie v1.0.6
 * event binding helper
 *   eventie.bind( elem, 'click', myFn )
 *   eventie.unbind( elem, 'click', myFn )
 * MIT license
 */

/*jshint browser: true, undef: true, unused: true */
/*global define: false, module: false */

( function( window ) {



var docElem = document.documentElement;

var bind = function() {};

function getIEEvent( obj ) {
  var event = window.event;
  // add event.target
  event.target = event.target || event.srcElement || obj;
  return event;
}

if ( docElem.addEventListener ) {
  bind = function( obj, type, fn ) {
    obj.addEventListener( type, fn, false );
  };
} else if ( docElem.attachEvent ) {
  bind = function( obj, type, fn ) {
    obj[ type + fn ] = fn.handleEvent ?
      function() {
        var event = getIEEvent( obj );
        fn.handleEvent.call( fn, event );
      } :
      function() {
        var event = getIEEvent( obj );
        fn.call( obj, event );
      };
    obj.attachEvent( "on" + type, obj[ type + fn ] );
  };
}

var unbind = function() {};

if ( docElem.removeEventListener ) {
  unbind = function( obj, type, fn ) {
    obj.removeEventListener( type, fn, false );
  };
} else if ( docElem.detachEvent ) {
  unbind = function( obj, type, fn ) {
    obj.detachEvent( "on" + type, obj[ type + fn ] );
    try {
      delete obj[ type + fn ];
    } catch ( err ) {
      // can't delete window object properties
      obj[ type + fn ] = undefined;
    }
  };
}

var eventie = {
  bind: bind,
  unbind: unbind
};

// ----- module definition ----- //

if ( typeof define === 'function' && define.amd ) {
  // AMD
  define( 'eventie/eventie',eventie );
} else if ( typeof exports === 'object' ) {
  // CommonJS
  module.exports = eventie;
} else {
  // browser global
  window.eventie = eventie;
}

})( window );

/*!
 * EventEmitter v4.2.11 - git.io/ee
 * Unlicense - http://unlicense.org/
 * Oliver Caldwell - http://oli.me.uk/
 * @preserve
 */
;(function(){'use strict';function EventEmitter(){}
var proto=EventEmitter.prototype;var exports=this;var originalGlobalValue=exports.EventEmitter;function indexOfListener(listeners,listener){var i=listeners.length;while(i--){if(listeners[i].listener===listener){return i}}
return-1}
function alias(name){return function aliasClosure(){return this[name].apply(this,arguments)}}
proto.getListeners=function getListeners(evt){var events=this._getEvents();var response;var key;if(evt instanceof RegExp){response={};for(key in events){if(events.hasOwnProperty(key)&&evt.test(key)){response[key]=events[key]}}}else{response=events[evt]||(events[evt]=[])}
return response};proto.flattenListeners=function flattenListeners(listeners){var flatListeners=[];var i;for(i=0;i<listeners.length;i+=1){flatListeners.push(listeners[i].listener)}
return flatListeners};proto.getListenersAsObject=function getListenersAsObject(evt){var listeners=this.getListeners(evt);var response;if(listeners instanceof Array){response={};response[evt]=listeners}
return response||listeners};proto.addListener=function addListener(evt,listener){var listeners=this.getListenersAsObject(evt);var listenerIsWrapped=typeof listener==='object';var key;for(key in listeners){if(listeners.hasOwnProperty(key)&&indexOfListener(listeners[key],listener)===-1){listeners[key].push(listenerIsWrapped?listener:{listener:listener,once:!1})}}
return this};proto.on=alias('addListener');proto.addOnceListener=function addOnceListener(evt,listener){return this.addListener(evt,{listener:listener,once:!0})};proto.once=alias('addOnceListener');proto.defineEvent=function defineEvent(evt){this.getListeners(evt);return this};proto.defineEvents=function defineEvents(evts){for(var i=0;i<evts.length;i+=1){this.defineEvent(evts[i])}
return this};proto.removeListener=function removeListener(evt,listener){var listeners=this.getListenersAsObject(evt);var index;var key;for(key in listeners){if(listeners.hasOwnProperty(key)){index=indexOfListener(listeners[key],listener);if(index!==-1){listeners[key].splice(index,1)}}}
return this};proto.off=alias('removeListener');proto.addListeners=function addListeners(evt,listeners){return this.manipulateListeners(!1,evt,listeners)};proto.removeListeners=function removeListeners(evt,listeners){return this.manipulateListeners(!0,evt,listeners)};proto.manipulateListeners=function manipulateListeners(remove,evt,listeners){var i;var value;var single=remove?this.removeListener:this.addListener;var multiple=remove?this.removeListeners:this.addListeners;if(typeof evt==='object'&&!(evt instanceof RegExp)){for(i in evt){if(evt.hasOwnProperty(i)&&(value=evt[i])){if(typeof value==='function'){single.call(this,i,value)}else{multiple.call(this,i,value)}}}}else{i=listeners.length;while(i--){single.call(this,evt,listeners[i])}}
return this};proto.removeEvent=function removeEvent(evt){var type=typeof evt;var events=this._getEvents();var key;if(type==='string'){delete events[evt]}else if(evt instanceof RegExp){for(key in events){if(events.hasOwnProperty(key)&&evt.test(key)){delete events[key]}}}else{delete this._events}
return this};proto.removeAllListeners=alias('removeEvent');proto.emitEvent=function emitEvent(evt,args){var listeners=this.getListenersAsObject(evt);var listener;var i;var key;var response;for(key in listeners){if(listeners.hasOwnProperty(key)){i=listeners[key].length;while(i--){listener=listeners[key][i];if(listener.once===!0){this.removeListener(evt,listener.listener)}
response=listener.listener.apply(this,args||[]);if(response===this._getOnceReturnValue()){this.removeListener(evt,listener.listener)}}}}
return this};proto.trigger=alias('emitEvent');proto.emit=function emit(evt){var args=Array.prototype.slice.call(arguments,1);return this.emitEvent(evt,args)};proto.setOnceReturnValue=function setOnceReturnValue(value){this._onceReturnValue=value;return this};proto._getOnceReturnValue=function _getOnceReturnValue(){if(this.hasOwnProperty('_onceReturnValue')){return this._onceReturnValue}else{return!0}};proto._getEvents=function _getEvents(){return this._events||(this._events={})};EventEmitter.noConflict=function noConflict(){exports.EventEmitter=originalGlobalValue;return EventEmitter};if(typeof define==='function'&&define.amd){define('eventEmitter/EventEmitter',[],function(){return EventEmitter})}else if(typeof module==='object'&&module.exports){module.exports=EventEmitter}else{exports.EventEmitter=EventEmitter}}.call(this));
/*!
 * getStyleProperty v1.0.4
 * original by kangax
 * http://perfectionkills.com/feature-testing-css-properties/
 * MIT license
 */
(function(window){var prefixes='Webkit Moz ms Ms O'.split(' ');var docElemStyle=document.documentElement.style;function getStyleProperty(propName){if(!propName){return}
if(typeof docElemStyle[propName]==='string'){return propName}
propName=propName.charAt(0).toUpperCase()+propName.slice(1);var prefixed;for(var i=0,len=prefixes.length;i<len;i++){prefixed=prefixes[i]+propName;if(typeof docElemStyle[prefixed]==='string'){return prefixed}}}
if(typeof define==='function'&&define.amd){define('get-style-property/get-style-property',[],function(){return getStyleProperty})}else if(typeof exports==='object'){module.exports=getStyleProperty}else{window.getStyleProperty=getStyleProperty}})(window);
/*!
 * getSize v1.2.2
 * measure size of elements
 * MIT license
 */
(function(window,undefined){function getStyleSize(value){var num=parseFloat(value);var isValid=value.indexOf('%')===-1&&!isNaN(num);return isValid&&num}
function noop(){}
var logError=typeof console==='undefined'?noop:function(message){console.error(message)};var measurements=['paddingLeft','paddingRight','paddingTop','paddingBottom','marginLeft','marginRight','marginTop','marginBottom','borderLeftWidth','borderRightWidth','borderTopWidth','borderBottomWidth'];function getZeroSize(){var size={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0};for(var i=0,len=measurements.length;i<len;i++){var measurement=measurements[i];size[measurement]=0}
return size}
function defineGetSize(getStyleProperty){var isSetup=!1;var getStyle,boxSizingProp,isBoxSizeOuter;function setup(){if(isSetup){return}
isSetup=!0;var getComputedStyle=window.getComputedStyle;getStyle=(function(){var getStyleFn=getComputedStyle?function(elem){return getComputedStyle(elem,null)}:function(elem){return elem.currentStyle};return function getStyle(elem){var style=getStyleFn(elem);if(!style){logError('Style returned '+style+'. Are you running this code in a hidden iframe on Firefox? '+'See http://bit.ly/getsizebug1')}
return style}})();boxSizingProp=getStyleProperty('boxSizing');if(boxSizingProp){var div=document.createElement('div');div.style.width='200px';div.style.padding='1px 2px 3px 4px';div.style.borderStyle='solid';div.style.borderWidth='1px 2px 3px 4px';div.style[boxSizingProp]='border-box';var body=document.body||document.documentElement;body.appendChild(div);var style=getStyle(div);isBoxSizeOuter=getStyleSize(style.width)===200;body.removeChild(div)}}
function getSize(elem){setup();if(typeof elem==='string'){elem=document.querySelector(elem)}
if(!elem||typeof elem!=='object'||!elem.nodeType){return}
var style=getStyle(elem);if(style.display==='none'){return getZeroSize()}
var size={};size.width=elem.offsetWidth;size.height=elem.offsetHeight;var isBorderBox=size.isBorderBox=!!(boxSizingProp&&style[boxSizingProp]&&style[boxSizingProp]==='border-box');for(var i=0,len=measurements.length;i<len;i++){var measurement=measurements[i];var value=style[measurement];value=mungeNonPixel(elem,value);var num=parseFloat(value);size[measurement]=!isNaN(num)?num:0}
var paddingWidth=size.paddingLeft+size.paddingRight;var paddingHeight=size.paddingTop+size.paddingBottom;var marginWidth=size.marginLeft+size.marginRight;var marginHeight=size.marginTop+size.marginBottom;var borderWidth=size.borderLeftWidth+size.borderRightWidth;var borderHeight=size.borderTopWidth+size.borderBottomWidth;var isBorderBoxSizeOuter=isBorderBox&&isBoxSizeOuter;var styleWidth=getStyleSize(style.width);if(styleWidth!==!1){size.width=styleWidth+(isBorderBoxSizeOuter?0:paddingWidth+borderWidth)}
var styleHeight=getStyleSize(style.height);if(styleHeight!==!1){size.height=styleHeight+(isBorderBoxSizeOuter?0:paddingHeight+borderHeight)}
size.innerWidth=size.width-(paddingWidth+borderWidth);size.innerHeight=size.height-(paddingHeight+borderHeight);size.outerWidth=size.width+marginWidth;size.outerHeight=size.height+marginHeight;return size}
function mungeNonPixel(elem,value){if(window.getComputedStyle||value.indexOf('%')===-1){return value}
var style=elem.style;var left=style.left;var rs=elem.runtimeStyle;var rsLeft=rs&&rs.left;if(rsLeft){rs.left=elem.currentStyle.left}
style.left=value;value=style.pixelLeft;style.left=left;if(rsLeft){rs.left=rsLeft}
return value}
return getSize}
if(typeof define==='function'&&define.amd){define('get-size/get-size',['get-style-property/get-style-property'],defineGetSize)}else if(typeof exports==='object'){module.exports=defineGetSize(require('desandro-get-style-property'))}else{window.getSize=defineGetSize(window.getStyleProperty)}})(window);
/*!
 * docReady v1.0.4
 * Cross browser DOMContentLoaded event emitter
 * MIT license
 */
(function(window){var document=window.document;var queue=[];function docReady(fn){if(typeof fn!=='function'){return}
if(docReady.isReady){fn()}else{queue.push(fn)}}
docReady.isReady=!1;function onReady(event){var isIE8NotReady=event.type==='readystatechange'&&document.readyState!=='complete';if(docReady.isReady||isIE8NotReady){return}
trigger()}
function trigger(){docReady.isReady=!0;for(var i=0,len=queue.length;i<len;i++){var fn=queue[i];fn()}}
function defineDocReady(eventie){if(document.readyState==='complete'){trigger()}else{eventie.bind(document,'DOMContentLoaded',onReady);eventie.bind(document,'readystatechange',onReady);eventie.bind(window,'load',onReady)}
return docReady}
if(typeof define==='function'&&define.amd){define('doc-ready/doc-ready',['eventie/eventie'],defineDocReady)}else if(typeof exports==='object'){module.exports=defineDocReady(require('eventie'))}else{window.docReady=defineDocReady(window.eventie)}})(window);(function(ElemProto){'use strict';var matchesMethod=(function(){if(ElemProto.matches){return'matches'}
if(ElemProto.matchesSelector){return'matchesSelector'}
var prefixes=['webkit','moz','ms','o'];for(var i=0,len=prefixes.length;i<len;i++){var prefix=prefixes[i];var method=prefix+'MatchesSelector';if(ElemProto[method]){return method}}})();function match(elem,selector){return elem[matchesMethod](selector)}
function checkParent(elem){if(elem.parentNode){return}
var fragment=document.createDocumentFragment();fragment.appendChild(elem)}
function query(elem,selector){checkParent(elem);var elems=elem.parentNode.querySelectorAll(selector);for(var i=0,len=elems.length;i<len;i++){if(elems[i]===elem){return!0}}
return!1}
function matchChild(elem,selector){checkParent(elem);return match(elem,selector)}
var matchesSelector;if(matchesMethod){var div=document.createElement('div');var supportsOrphans=match(div,'div');matchesSelector=supportsOrphans?match:matchChild}else{matchesSelector=query}
if(typeof define==='function'&&define.amd){define('matches-selector/matches-selector',[],function(){return matchesSelector})}else if(typeof exports==='object'){module.exports=matchesSelector}else{window.matchesSelector=matchesSelector}})(Element.prototype);(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('fizzy-ui-utils/utils',['doc-ready/doc-ready','matches-selector/matches-selector'],function(docReady,matchesSelector){return factory(window,docReady,matchesSelector)})}else if(typeof exports=='object'){module.exports=factory(window,require('doc-ready'),require('desandro-matches-selector'))}else{window.fizzyUIUtils=factory(window,window.docReady,window.matchesSelector)}}(window,function factory(window,docReady,matchesSelector){var utils={};utils.extend=function(a,b){for(var prop in b){a[prop]=b[prop]}
return a};utils.modulo=function(num,div){return((num%div)+div)%div};var objToString=Object.prototype.toString;utils.isArray=function(obj){return objToString.call(obj)=='[object Array]'};utils.makeArray=function(obj){var ary=[];if(utils.isArray(obj)){ary=obj}else if(obj&&typeof obj.length=='number'){for(var i=0,len=obj.length;i<len;i++){ary.push(obj[i])}}else{ary.push(obj)}
return ary};utils.indexOf=Array.prototype.indexOf?function(ary,obj){return ary.indexOf(obj)}:function(ary,obj){for(var i=0,len=ary.length;i<len;i++){if(ary[i]===obj){return i}}
return-1};utils.removeFrom=function(ary,obj){var index=utils.indexOf(ary,obj);if(index!=-1){ary.splice(index,1)}};utils.isElement=(typeof HTMLElement=='function'||typeof HTMLElement=='object')?function isElementDOM2(obj){return obj instanceof HTMLElement}:function isElementQuirky(obj){return obj&&typeof obj=='object'&&obj.nodeType==1&&typeof obj.nodeName=='string'};utils.setText=(function(){var setTextProperty;function setText(elem,text){setTextProperty=setTextProperty||(document.documentElement.textContent!==undefined?'textContent':'innerText');elem[setTextProperty]=text}
return setText})();utils.getParent=function(elem,selector){while(elem!=document.body){elem=elem.parentNode;if(matchesSelector(elem,selector)){return elem}}};utils.getQueryElement=function(elem){if(typeof elem=='string'){return document.querySelector(elem)}
return elem};utils.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};utils.filterFindElements=function(elems,selector){elems=utils.makeArray(elems);var ffElems=[];for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];if(!utils.isElement(elem)){continue}
if(selector){if(matchesSelector(elem,selector)){ffElems.push(elem)}
var childElems=elem.querySelectorAll(selector);for(var j=0,jLen=childElems.length;j<jLen;j++){ffElems.push(childElems[j])}}else{ffElems.push(elem)}}
return ffElems};utils.debounceMethod=function(_class,methodName,threshold){var method=_class.prototype[methodName];var timeoutName=methodName+'Timeout';_class.prototype[methodName]=function(){var timeout=this[timeoutName];if(timeout){clearTimeout(timeout)}
var args=arguments;var _this=this;this[timeoutName]=setTimeout(function(){method.apply(_this,args);delete _this[timeoutName]},threshold||100)}};utils.toDashed=function(str){return str.replace(/(.)([A-Z])/g,function(match,$1,$2){return $1+'-'+$2}).toLowerCase()};var console=window.console;utils.htmlInit=function(WidgetClass,namespace){docReady(function(){var dashedNamespace=utils.toDashed(namespace);var elems=document.querySelectorAll('.js-'+dashedNamespace);var dataAttr='data-'+dashedNamespace+'-options';for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];var attr=elem.getAttribute(dataAttr);var options;try{options=attr&&JSON.parse(attr)}catch(error){if(console){console.error('Error parsing '+dataAttr+' on '+elem.nodeName.toLowerCase()+(elem.id?'#'+elem.id:'')+': '+error)}
continue}
var instance=new WidgetClass(elem,options);var jQuery=window.jQuery;if(jQuery){jQuery.data(elem,namespace,instance)}}})};return utils}));(function(window,factory){'use strict';if(typeof define==='function'&&define.amd){define('outlayer/item',['eventEmitter/EventEmitter','get-size/get-size','get-style-property/get-style-property','fizzy-ui-utils/utils'],function(EventEmitter,getSize,getStyleProperty,utils){return factory(window,EventEmitter,getSize,getStyleProperty,utils)})}else if(typeof exports==='object'){module.exports=factory(window,require('wolfy87-eventemitter'),require('get-size'),require('desandro-get-style-property'),require('fizzy-ui-utils'))}else{window.Outlayer={};window.Outlayer.Item=factory(window,window.EventEmitter,window.getSize,window.getStyleProperty,window.fizzyUIUtils)}}(window,function factory(window,EventEmitter,getSize,getStyleProperty,utils){'use strict';var getComputedStyle=window.getComputedStyle;var getStyle=getComputedStyle?function(elem){return getComputedStyle(elem,null)}:function(elem){return elem.currentStyle};function isEmptyObj(obj){for(var prop in obj){return!1}
prop=null;return!0}
var transitionProperty=getStyleProperty('transition');var transformProperty=getStyleProperty('transform');var supportsCSS3=transitionProperty&&transformProperty;var is3d=!!getStyleProperty('perspective');var transitionEndEvent={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'otransitionend',transition:'transitionend'}[transitionProperty];var prefixableProperties=['transform','transition','transitionDuration','transitionProperty'];var vendorProperties=(function(){var cache={};for(var i=0,len=prefixableProperties.length;i<len;i++){var prop=prefixableProperties[i];var supportedProp=getStyleProperty(prop);if(supportedProp&&supportedProp!==prop){cache[prop]=supportedProp}}
return cache})();function Item(element,layout){if(!element){return}
this.element=element;this.layout=layout;this.position={x:0,y:0};this._create()}
utils.extend(Item.prototype,EventEmitter.prototype);Item.prototype._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}};this.css({position:'absolute'})};Item.prototype.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};Item.prototype.getSize=function(){this.size=getSize(this.element)};Item.prototype.css=function(style){var elemStyle=this.element.style;for(var prop in style){var supportedProp=vendorProperties[prop]||prop;elemStyle[supportedProp]=style[prop]}};Item.prototype.getPosition=function(){var style=getStyle(this.element);var layoutOptions=this.layout.options;var isOriginLeft=layoutOptions.isOriginLeft;var isOriginTop=layoutOptions.isOriginTop;var xValue=style[isOriginLeft?'left':'right'];var yValue=style[isOriginTop?'top':'bottom'];var layoutSize=this.layout.size;var x=xValue.indexOf('%')!=-1?(parseFloat(xValue)/100)*layoutSize.width:parseInt(xValue,10);var y=yValue.indexOf('%')!=-1?(parseFloat(yValue)/100)*layoutSize.height:parseInt(yValue,10);x=isNaN(x)?0:x;y=isNaN(y)?0:y;x-=isOriginLeft?layoutSize.paddingLeft:layoutSize.paddingRight;y-=isOriginTop?layoutSize.paddingTop:layoutSize.paddingBottom;this.position.x=x;this.position.y=y};Item.prototype.layoutPosition=function(){var layoutSize=this.layout.size;var layoutOptions=this.layout.options;var style={};var xPadding=layoutOptions.isOriginLeft?'paddingLeft':'paddingRight';var xProperty=layoutOptions.isOriginLeft?'left':'right';var xResetProperty=layoutOptions.isOriginLeft?'right':'left';var x=this.position.x+layoutSize[xPadding];style[xProperty]=this.getXValue(x);style[xResetProperty]='';var yPadding=layoutOptions.isOriginTop?'paddingTop':'paddingBottom';var yProperty=layoutOptions.isOriginTop?'top':'bottom';var yResetProperty=layoutOptions.isOriginTop?'bottom':'top';var y=this.position.y+layoutSize[yPadding];style[yProperty]=this.getYValue(y);style[yResetProperty]='';this.css(style);this.emitEvent('layout',[this])};Item.prototype.getXValue=function(x){var layoutOptions=this.layout.options;return layoutOptions.percentPosition&&!layoutOptions.isHorizontal?((x/this.layout.size.width)*100)+'%':x+'px'};Item.prototype.getYValue=function(y){var layoutOptions=this.layout.options;return layoutOptions.percentPosition&&layoutOptions.isHorizontal?((y/this.layout.size.height)*100)+'%':y+'px'};Item.prototype._transitionTo=function(x,y){this.getPosition();var curX=this.position.x;var curY=this.position.y;var compareX=parseInt(x,10);var compareY=parseInt(y,10);var didNotMove=compareX===this.position.x&&compareY===this.position.y;this.setPosition(x,y);if(didNotMove&&!this.isTransitioning){this.layoutPosition();return}
var transX=x-curX;var transY=y-curY;var transitionStyle={};transitionStyle.transform=this.getTranslate(transX,transY);this.transition({to:transitionStyle,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})};Item.prototype.getTranslate=function(x,y){var layoutOptions=this.layout.options;x=layoutOptions.isOriginLeft?x:-x;y=layoutOptions.isOriginTop?y:-y;if(is3d){return'translate3d('+x+'px, '+y+'px, 0)'}
return'translate('+x+'px, '+y+'px)'};Item.prototype.goTo=function(x,y){this.setPosition(x,y);this.layoutPosition()};Item.prototype.moveTo=supportsCSS3?Item.prototype._transitionTo:Item.prototype.goTo;Item.prototype.setPosition=function(x,y){this.position.x=parseInt(x,10);this.position.y=parseInt(y,10)};Item.prototype._nonTransition=function(args){this.css(args.to);if(args.isCleaning){this._removeStyles(args.to)}
for(var prop in args.onTransitionEnd){args.onTransitionEnd[prop].call(this)}};Item.prototype._transition=function(args){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(args);return}
var _transition=this._transn;for(var prop in args.onTransitionEnd){_transition.onEnd[prop]=args.onTransitionEnd[prop]}
for(prop in args.to){_transition.ingProperties[prop]=!0;if(args.isCleaning){_transition.clean[prop]=!0}}
if(args.from){this.css(args.from);var h=this.element.offsetHeight;h=null}
this.enableTransition(args.to);this.css(args.to);this.isTransitioning=!0};function toDashedAll(str){return str.replace(/([A-Z])/g,function($1){return'-'+$1.toLowerCase()})}
var transitionProps='opacity,'+toDashedAll(vendorProperties.transform||'transform');Item.prototype.enableTransition=function(){if(this.isTransitioning){return}
this.css({transitionProperty:transitionProps,transitionDuration:this.layout.options.transitionDuration});this.element.addEventListener(transitionEndEvent,this,!1)};Item.prototype.transition=Item.prototype[transitionProperty?'_transition':'_nonTransition'];Item.prototype.onwebkitTransitionEnd=function(event){this.ontransitionend(event)};Item.prototype.onotransitionend=function(event){this.ontransitionend(event)};var dashedVendorProperties={'-webkit-transform':'transform','-moz-transform':'transform','-o-transform':'transform'};Item.prototype.ontransitionend=function(event){if(event.target!==this.element){return}
var _transition=this._transn;var propertyName=dashedVendorProperties[event.propertyName]||event.propertyName;delete _transition.ingProperties[propertyName];if(isEmptyObj(_transition.ingProperties)){this.disableTransition()}
if(propertyName in _transition.clean){this.element.style[event.propertyName]='';delete _transition.clean[propertyName]}
if(propertyName in _transition.onEnd){var onTransitionEnd=_transition.onEnd[propertyName];onTransitionEnd.call(this);delete _transition.onEnd[propertyName]}
this.emitEvent('transitionEnd',[this])};Item.prototype.disableTransition=function(){this.removeTransitionStyles();this.element.removeEventListener(transitionEndEvent,this,!1);this.isTransitioning=!1};Item.prototype._removeStyles=function(style){var cleanStyle={};for(var prop in style){cleanStyle[prop]=''}
this.css(cleanStyle)};var cleanTransitionStyle={transitionProperty:'',transitionDuration:''};Item.prototype.removeTransitionStyles=function(){this.css(cleanTransitionStyle)};Item.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element);this.css({display:''});this.emitEvent('remove',[this])};Item.prototype.remove=function(){if(!transitionProperty||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}
var _this=this;this.once('transitionEnd',function(){_this.removeElem()});this.hide()};Item.prototype.reveal=function(){delete this.isHidden;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('visibleStyle');onTransitionEnd[transitionEndProperty]=this.onRevealTransitionEnd;this.transition({from:options.hiddenStyle,to:options.visibleStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})};Item.prototype.onRevealTransitionEnd=function(){if(!this.isHidden){this.emitEvent('reveal')}};Item.prototype.getHideRevealTransitionEndProperty=function(styleProperty){var optionStyle=this.layout.options[styleProperty];if(optionStyle.opacity){return'opacity'}
for(var prop in optionStyle){return prop}};Item.prototype.hide=function(){this.isHidden=!0;this.css({display:''});var options=this.layout.options;var onTransitionEnd={};var transitionEndProperty=this.getHideRevealTransitionEndProperty('hiddenStyle');onTransitionEnd[transitionEndProperty]=this.onHideTransitionEnd;this.transition({from:options.visibleStyle,to:options.hiddenStyle,isCleaning:!0,onTransitionEnd:onTransitionEnd})};Item.prototype.onHideTransitionEnd=function(){if(this.isHidden){this.css({display:'none'});this.emitEvent('hide')}};Item.prototype.destroy=function(){this.css({position:'',left:'',right:'',top:'',bottom:'',transition:'',transform:''})};return Item}));
/*!
 * Outlayer v1.4.2
 * the brains and guts of a layout library
 * MIT license
 */
(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('outlayer/outlayer',['eventie/eventie','eventEmitter/EventEmitter','get-size/get-size','fizzy-ui-utils/utils','./item'],function(eventie,EventEmitter,getSize,utils,Item){return factory(window,eventie,EventEmitter,getSize,utils,Item)})}else if(typeof exports=='object'){module.exports=factory(window,require('eventie'),require('wolfy87-eventemitter'),require('get-size'),require('fizzy-ui-utils'),require('./item'))}else{window.Outlayer=factory(window,window.eventie,window.EventEmitter,window.getSize,window.fizzyUIUtils,window.Outlayer.Item)}}(window,function factory(window,eventie,EventEmitter,getSize,utils,Item){'use strict';var console=window.console;var jQuery=window.jQuery;var noop=function(){};var GUID=0;var instances={};function Outlayer(element,options){var queryElement=utils.getQueryElement(element);if(!queryElement){if(console){console.error('Bad element for '+this.constructor.namespace+': '+(queryElement||element))}
return}
this.element=queryElement;if(jQuery){this.$element=jQuery(this.element)}
this.options=utils.extend({},this.constructor.defaults);this.option(options);var id=++GUID;this.element.outlayerGUID=id;instances[id]=this;this._create();if(this.options.isInitLayout){this.layout()}}
Outlayer.namespace='outlayer';Outlayer.Item=Item;Outlayer.defaults={containerStyle:{position:'relative'},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,isResizingContainer:!0,transitionDuration:'0.4s',hiddenStyle:{opacity:0,transform:'scale(0.001)'},visibleStyle:{opacity:1,transform:'scale(1)'}};utils.extend(Outlayer.prototype,EventEmitter.prototype);Outlayer.prototype.option=function(opts){utils.extend(this.options,opts)};Outlayer.prototype._create=function(){this.reloadItems();this.stamps=[];this.stamp(this.options.stamp);utils.extend(this.element.style,this.options.containerStyle);if(this.options.isResizeBound){this.bindResize()}};Outlayer.prototype.reloadItems=function(){this.items=this._itemize(this.element.children)};Outlayer.prototype._itemize=function(elems){var itemElems=this._filterFindItemElements(elems);var Item=this.constructor.Item;var items=[];for(var i=0,len=itemElems.length;i<len;i++){var elem=itemElems[i];var item=new Item(elem,this);items.push(item)}
return items};Outlayer.prototype._filterFindItemElements=function(elems){return utils.filterFindElements(elems,this.options.itemSelector)};Outlayer.prototype.getItemElements=function(){var elems=[];for(var i=0,len=this.items.length;i<len;i++){elems.push(this.items[i].element)}
return elems};Outlayer.prototype.layout=function(){this._resetLayout();this._manageStamps();var isInstant=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,isInstant);this._isLayoutInited=!0};Outlayer.prototype._init=Outlayer.prototype.layout;Outlayer.prototype._resetLayout=function(){this.getSize()};Outlayer.prototype.getSize=function(){this.size=getSize(this.element)};Outlayer.prototype._getMeasurement=function(measurement,size){var option=this.options[measurement];var elem;if(!option){this[measurement]=0}else{if(typeof option==='string'){elem=this.element.querySelector(option)}else if(utils.isElement(option)){elem=option}
this[measurement]=elem?getSize(elem)[size]:option}};Outlayer.prototype.layoutItems=function(items,isInstant){items=this._getItemsForLayout(items);this._layoutItems(items,isInstant);this._postLayout()};Outlayer.prototype._getItemsForLayout=function(items){var layoutItems=[];for(var i=0,len=items.length;i<len;i++){var item=items[i];if(!item.isIgnored){layoutItems.push(item)}}
return layoutItems};Outlayer.prototype._layoutItems=function(items,isInstant){this._emitCompleteOnItems('layout',items);if(!items||!items.length){return}
var queue=[];for(var i=0,len=items.length;i<len;i++){var item=items[i];var position=this._getItemLayoutPosition(item);position.item=item;position.isInstant=isInstant||item.isLayoutInstant;queue.push(position)}
this._processLayoutQueue(queue)};Outlayer.prototype._getItemLayoutPosition=function(){return{x:0,y:0}};Outlayer.prototype._processLayoutQueue=function(queue){for(var i=0,len=queue.length;i<len;i++){var obj=queue[i];this._positionItem(obj.item,obj.x,obj.y,obj.isInstant)}};Outlayer.prototype._positionItem=function(item,x,y,isInstant){if(isInstant){item.goTo(x,y)}else{item.moveTo(x,y)}};Outlayer.prototype._postLayout=function(){this.resizeContainer()};Outlayer.prototype.resizeContainer=function(){if(!this.options.isResizingContainer){return}
var size=this._getContainerSize();if(size){this._setContainerMeasure(size.width,!0);this._setContainerMeasure(size.height,!1)}};Outlayer.prototype._getContainerSize=noop;Outlayer.prototype._setContainerMeasure=function(measure,isWidth){if(measure===undefined){return}
var elemSize=this.size;if(elemSize.isBorderBox){measure+=isWidth?elemSize.paddingLeft+elemSize.paddingRight+elemSize.borderLeftWidth+elemSize.borderRightWidth:elemSize.paddingBottom+elemSize.paddingTop+elemSize.borderTopWidth+elemSize.borderBottomWidth}
measure=Math.max(measure,0);this.element.style[isWidth?'width':'height']=measure+'px'};Outlayer.prototype._emitCompleteOnItems=function(eventName,items){var _this=this;function onComplete(){_this.dispatchEvent(eventName+'Complete',null,[items])}
var count=items.length;if(!items||!count){onComplete();return}
var doneCount=0;function tick(){doneCount++;if(doneCount===count){onComplete()}}
for(var i=0,len=items.length;i<len;i++){var item=items[i];item.once(eventName,tick)}};Outlayer.prototype.dispatchEvent=function(type,event,args){var emitArgs=event?[event].concat(args):args;this.emitEvent(type,emitArgs);if(jQuery){this.$element=this.$element||jQuery(this.element);if(event){var $event=jQuery.Event(event);$event.type=type;this.$element.trigger($event,args)}else{this.$element.trigger(type,args)}}};Outlayer.prototype.ignore=function(elem){var item=this.getItem(elem);if(item){item.isIgnored=!0}};Outlayer.prototype.unignore=function(elem){var item=this.getItem(elem);if(item){delete item.isIgnored}};Outlayer.prototype.stamp=function(elems){elems=this._find(elems);if(!elems){return}
this.stamps=this.stamps.concat(elems);for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];this.ignore(elem)}};Outlayer.prototype.unstamp=function(elems){elems=this._find(elems);if(!elems){return}
for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];utils.removeFrom(this.stamps,elem);this.unignore(elem)}};Outlayer.prototype._find=function(elems){if(!elems){return}
if(typeof elems==='string'){elems=this.element.querySelectorAll(elems)}
elems=utils.makeArray(elems);return elems};Outlayer.prototype._manageStamps=function(){if(!this.stamps||!this.stamps.length){return}
this._getBoundingRect();for(var i=0,len=this.stamps.length;i<len;i++){var stamp=this.stamps[i];this._manageStamp(stamp)}};Outlayer.prototype._getBoundingRect=function(){var boundingRect=this.element.getBoundingClientRect();var size=this.size;this._boundingRect={left:boundingRect.left+size.paddingLeft+size.borderLeftWidth,top:boundingRect.top+size.paddingTop+size.borderTopWidth,right:boundingRect.right-(size.paddingRight+size.borderRightWidth),bottom:boundingRect.bottom-(size.paddingBottom+size.borderBottomWidth)}};Outlayer.prototype._manageStamp=noop;Outlayer.prototype._getElementOffset=function(elem){var boundingRect=elem.getBoundingClientRect();var thisRect=this._boundingRect;var size=getSize(elem);var offset={left:boundingRect.left-thisRect.left-size.marginLeft,top:boundingRect.top-thisRect.top-size.marginTop,right:thisRect.right-boundingRect.right-size.marginRight,bottom:thisRect.bottom-boundingRect.bottom-size.marginBottom};return offset};Outlayer.prototype.handleEvent=function(event){var method='on'+event.type;if(this[method]){this[method](event)}};Outlayer.prototype.bindResize=function(){if(this.isResizeBound){return}
eventie.bind(window,'resize',this);this.isResizeBound=!0};Outlayer.prototype.unbindResize=function(){if(this.isResizeBound){eventie.unbind(window,'resize',this)}
this.isResizeBound=!1};Outlayer.prototype.onresize=function(){if(this.resizeTimeout){clearTimeout(this.resizeTimeout)}
var _this=this;function delayed(){_this.resize();delete _this.resizeTimeout}
this.resizeTimeout=setTimeout(delayed,100)};Outlayer.prototype.resize=function(){if(!this.isResizeBound||!this.needsResizeLayout()){return}
this.layout()};Outlayer.prototype.needsResizeLayout=function(){var size=getSize(this.element);var hasSizes=this.size&&size;return hasSizes&&size.innerWidth!==this.size.innerWidth};Outlayer.prototype.addItems=function(elems){var items=this._itemize(elems);if(items.length){this.items=this.items.concat(items)}
return items};Outlayer.prototype.appended=function(elems){var items=this.addItems(elems);if(!items.length){return}
this.layoutItems(items,!0);this.reveal(items)};Outlayer.prototype.prepended=function(elems){var items=this._itemize(elems);if(!items.length){return}
var previousItems=this.items.slice(0);this.items=items.concat(previousItems);this._resetLayout();this._manageStamps();this.layoutItems(items,!0);this.reveal(items);this.layoutItems(previousItems)};Outlayer.prototype.reveal=function(items){this._emitCompleteOnItems('reveal',items);var len=items&&items.length;for(var i=0;len&&i<len;i++){var item=items[i];item.reveal()}};Outlayer.prototype.hide=function(items){this._emitCompleteOnItems('hide',items);var len=items&&items.length;for(var i=0;len&&i<len;i++){var item=items[i];item.hide()}};Outlayer.prototype.revealItemElements=function(elems){var items=this.getItems(elems);this.reveal(items)};Outlayer.prototype.hideItemElements=function(elems){var items=this.getItems(elems);this.hide(items)};Outlayer.prototype.getItem=function(elem){for(var i=0,len=this.items.length;i<len;i++){var item=this.items[i];if(item.element===elem){return item}}};Outlayer.prototype.getItems=function(elems){elems=utils.makeArray(elems);var items=[];for(var i=0,len=elems.length;i<len;i++){var elem=elems[i];var item=this.getItem(elem);if(item){items.push(item)}}
return items};Outlayer.prototype.remove=function(elems){var removeItems=this.getItems(elems);this._emitCompleteOnItems('remove',removeItems);if(!removeItems||!removeItems.length){return}
for(var i=0,len=removeItems.length;i<len;i++){var item=removeItems[i];item.remove();utils.removeFrom(this.items,item)}};Outlayer.prototype.destroy=function(){var style=this.element.style;style.height='';style.position='';style.width='';for(var i=0,len=this.items.length;i<len;i++){var item=this.items[i];item.destroy()}
this.unbindResize();var id=this.element.outlayerGUID;delete instances[id];delete this.element.outlayerGUID;if(jQuery){jQuery.removeData(this.element,this.constructor.namespace)}};Outlayer.data=function(elem){elem=utils.getQueryElement(elem);var id=elem&&elem.outlayerGUID;return id&&instances[id]};Outlayer.create=function(namespace,options){function Layout(){Outlayer.apply(this,arguments)}
if(Object.create){Layout.prototype=Object.create(Outlayer.prototype)}else{utils.extend(Layout.prototype,Outlayer.prototype)}
Layout.prototype.constructor=Layout;Layout.defaults=utils.extend({},Outlayer.defaults);utils.extend(Layout.defaults,options);Layout.prototype.settings={};Layout.namespace=namespace;Layout.data=Outlayer.data;Layout.Item=function LayoutItem(){Item.apply(this,arguments)};Layout.Item.prototype=new Item();utils.htmlInit(Layout,namespace);if(jQuery&&jQuery.bridget){jQuery.bridget(namespace,Layout)}
return Layout};Outlayer.Item=Item;return Outlayer}));(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('isotope/js/item',['outlayer/outlayer'],factory)}else if(typeof exports=='object'){module.exports=factory(require('outlayer'))}else{window.Isotope=window.Isotope||{};window.Isotope.Item=factory(window.Outlayer)}}(window,function factory(Outlayer){'use strict';function Item(){Outlayer.Item.apply(this,arguments)}
Item.prototype=new Outlayer.Item();Item.prototype._create=function(){this.id=this.layout.itemGUID++;Outlayer.Item.prototype._create.call(this);this.sortData={}};Item.prototype.updateSortData=function(){if(this.isIgnored){return}
this.sortData.id=this.id;this.sortData['original-order']=this.id;this.sortData.random=Math.random();var getSortData=this.layout.options.getSortData;var sorters=this.layout._sorters;for(var key in getSortData){var sorter=sorters[key];this.sortData[key]=sorter(this.element,this)}};var _destroy=Item.prototype.destroy;Item.prototype.destroy=function(){_destroy.apply(this,arguments);this.css({display:''})};return Item}));(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('isotope/js/layout-mode',['get-size/get-size','outlayer/outlayer'],factory)}else if(typeof exports=='object'){module.exports=factory(require('get-size'),require('outlayer'))}else{window.Isotope=window.Isotope||{};window.Isotope.LayoutMode=factory(window.getSize,window.Outlayer)}}(window,function factory(getSize,Outlayer){'use strict';function LayoutMode(isotope){this.isotope=isotope;if(isotope){this.options=isotope.options[this.namespace];this.element=isotope.element;this.items=isotope.filteredItems;this.size=isotope.size}}(function(){var facadeMethods=['_resetLayout','_getItemLayoutPosition','_manageStamp','_getContainerSize','_getElementOffset','needsResizeLayout'];for(var i=0,len=facadeMethods.length;i<len;i++){var methodName=facadeMethods[i];LayoutMode.prototype[methodName]=getOutlayerMethod(methodName)}
function getOutlayerMethod(methodName){return function(){return Outlayer.prototype[methodName].apply(this.isotope,arguments)}}})();LayoutMode.prototype.needsVerticalResizeLayout=function(){var size=getSize(this.isotope.element);var hasSizes=this.isotope.size&&size;return hasSizes&&size.innerHeight!=this.isotope.size.innerHeight};LayoutMode.prototype._getMeasurement=function(){this.isotope._getMeasurement.apply(this,arguments)};LayoutMode.prototype.getColumnWidth=function(){this.getSegmentSize('column','Width')};LayoutMode.prototype.getRowHeight=function(){this.getSegmentSize('row','Height')};LayoutMode.prototype.getSegmentSize=function(segment,size){var segmentName=segment+size;var outerSize='outer'+size;this._getMeasurement(segmentName,outerSize);if(this[segmentName]){return}
var firstItemSize=this.getFirstItemSize();this[segmentName]=firstItemSize&&firstItemSize[outerSize]||this.isotope.size['inner'+size]};LayoutMode.prototype.getFirstItemSize=function(){var firstItem=this.isotope.filteredItems[0];return firstItem&&firstItem.element&&getSize(firstItem.element)};LayoutMode.prototype.layout=function(){this.isotope.layout.apply(this.isotope,arguments)};LayoutMode.prototype.getSize=function(){this.isotope.getSize();this.size=this.isotope.size};LayoutMode.modes={};LayoutMode.create=function(namespace,options){function Mode(){LayoutMode.apply(this,arguments)}
Mode.prototype=new LayoutMode();if(options){Mode.options=options}
Mode.prototype.namespace=namespace;LayoutMode.modes[namespace]=Mode;return Mode};return LayoutMode}));
/*!
 * Masonry v3.3.1
 * Cascading grid layout library
 * http://masonry.desandro.com
 * MIT License
 * by David DeSandro
 */
(function(window,factory){'use strict';if(typeof define==='function'&&define.amd){define('masonry/masonry',['outlayer/outlayer','get-size/get-size','fizzy-ui-utils/utils'],factory)}else if(typeof exports==='object'){module.exports=factory(require('outlayer'),require('get-size'),require('fizzy-ui-utils'))}else{window.Masonry=factory(window.Outlayer,window.getSize,window.fizzyUIUtils)}}(window,function factory(Outlayer,getSize,utils){var Masonry=Outlayer.create('masonry');Masonry.prototype._resetLayout=function(){this.getSize();this._getMeasurement('columnWidth','outerWidth');this._getMeasurement('gutter','outerWidth');this.measureColumns();var i=this.cols;this.colYs=[];while(i--){this.colYs.push(0)}
this.maxY=0};Masonry.prototype.measureColumns=function(){this.getContainerWidth();if(!this.columnWidth){var firstItem=this.items[0];var firstItemElem=firstItem&&firstItem.element;this.columnWidth=firstItemElem&&getSize(firstItemElem).outerWidth||this.containerWidth}
var columnWidth=this.columnWidth+=this.gutter;var containerWidth=this.containerWidth+this.gutter;var cols=containerWidth/columnWidth;var excess=columnWidth-containerWidth%columnWidth;var mathMethod=excess&&excess<1?'round':'floor';cols=Math[mathMethod](cols);this.cols=Math.max(cols,1)};Masonry.prototype.getContainerWidth=function(){var container=this.options.isFitWidth?this.element.parentNode:this.element;var size=getSize(container);this.containerWidth=size&&size.innerWidth};Masonry.prototype._getItemLayoutPosition=function(item){item.getSize();var remainder=item.size.outerWidth%this.columnWidth;var mathMethod=remainder&&remainder<1?'round':'ceil';var colSpan=Math[mathMethod](item.size.outerWidth/this.columnWidth);colSpan=Math.min(colSpan,this.cols);var colGroup=this._getColGroup(colSpan);var minimumY=Math.min.apply(Math,colGroup);var shortColIndex=utils.indexOf(colGroup,minimumY);var position={x:this.columnWidth*shortColIndex,y:minimumY};var setHeight=minimumY+item.size.outerHeight;var setSpan=this.cols+1-colGroup.length;for(var i=0;i<setSpan;i++){this.colYs[shortColIndex+i]=setHeight}
return position};Masonry.prototype._getColGroup=function(colSpan){if(colSpan<2){return this.colYs}
var colGroup=[];var groupCount=this.cols+1-colSpan;for(var i=0;i<groupCount;i++){var groupColYs=this.colYs.slice(i,i+colSpan);colGroup[i]=Math.max.apply(Math,groupColYs)}
return colGroup};Masonry.prototype._manageStamp=function(stamp){var stampSize=getSize(stamp);var offset=this._getElementOffset(stamp);var firstX=this.options.isOriginLeft?offset.left:offset.right;var lastX=firstX+stampSize.outerWidth;var firstCol=Math.floor(firstX/this.columnWidth);firstCol=Math.max(0,firstCol);var lastCol=Math.floor(lastX/this.columnWidth);lastCol-=lastX%this.columnWidth?0:1;lastCol=Math.min(this.cols-1,lastCol);var stampMaxY=(this.options.isOriginTop?offset.top:offset.bottom)+stampSize.outerHeight;for(var i=firstCol;i<=lastCol;i++){this.colYs[i]=Math.max(stampMaxY,this.colYs[i])}};Masonry.prototype._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var size={height:this.maxY};if(this.options.isFitWidth){size.width=this._getContainerFitWidth()}
return size};Masonry.prototype._getContainerFitWidth=function(){var unusedCols=0;var i=this.cols;while(--i){if(this.colYs[i]!==0){break}
unusedCols++}
return(this.cols-unusedCols)*this.columnWidth-this.gutter};Masonry.prototype.needsResizeLayout=function(){var previousWidth=this.containerWidth;this.getContainerWidth();return previousWidth!==this.containerWidth};return Masonry}));
/*!
 * Masonry layout mode
 * sub-classes Masonry
 * http://masonry.desandro.com
 */
(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('isotope/js/layout-modes/masonry',['../layout-mode','masonry/masonry'],factory)}else if(typeof exports=='object'){module.exports=factory(require('../layout-mode'),require('masonry-layout'))}else{factory(window.Isotope.LayoutMode,window.Masonry)}}(window,function factory(LayoutMode,Masonry){'use strict';function extend(a,b){for(var prop in b){a[prop]=b[prop]}
return a}
var MasonryMode=LayoutMode.create('masonry');var _getElementOffset=MasonryMode.prototype._getElementOffset;var layout=MasonryMode.prototype.layout;var _getMeasurement=MasonryMode.prototype._getMeasurement;extend(MasonryMode.prototype,Masonry.prototype);MasonryMode.prototype._getElementOffset=_getElementOffset;MasonryMode.prototype.layout=layout;MasonryMode.prototype._getMeasurement=_getMeasurement;var measureColumns=MasonryMode.prototype.measureColumns;MasonryMode.prototype.measureColumns=function(){this.items=this.isotope.filteredItems;measureColumns.call(this)};var _manageStamp=MasonryMode.prototype._manageStamp;MasonryMode.prototype._manageStamp=function(){this.options.isOriginLeft=this.isotope.options.isOriginLeft;this.options.isOriginTop=this.isotope.options.isOriginTop;_manageStamp.apply(this,arguments)};return MasonryMode}));(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('isotope/js/layout-modes/fit-rows',['../layout-mode'],factory)}else if(typeof exports=='object'){module.exports=factory(require('../layout-mode'))}else{factory(window.Isotope.LayoutMode)}}(window,function factory(LayoutMode){'use strict';var FitRows=LayoutMode.create('fitRows');FitRows.prototype._resetLayout=function(){this.x=0;this.y=0;this.maxY=0;this._getMeasurement('gutter','outerWidth')};FitRows.prototype._getItemLayoutPosition=function(item){item.getSize();var itemWidth=item.size.outerWidth+this.gutter;var containerWidth=this.isotope.size.innerWidth+this.gutter;if(this.x!==0&&itemWidth+this.x>containerWidth){this.x=0;this.y=this.maxY}
var position={x:this.x,y:this.y};this.maxY=Math.max(this.maxY,this.y+item.size.outerHeight);this.x+=itemWidth;return position};FitRows.prototype._getContainerSize=function(){return{height:this.maxY}};return FitRows}));(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define('isotope/js/layout-modes/vertical',['../layout-mode'],factory)}else if(typeof exports=='object'){module.exports=factory(require('../layout-mode'))}else{factory(window.Isotope.LayoutMode)}}(window,function factory(LayoutMode){'use strict';var Vertical=LayoutMode.create('vertical',{horizontalAlignment:0});Vertical.prototype._resetLayout=function(){this.y=0};Vertical.prototype._getItemLayoutPosition=function(item){item.getSize();var x=(this.isotope.size.innerWidth-item.size.outerWidth)*this.options.horizontalAlignment;var y=this.y;this.y+=item.size.outerHeight;return{x:x,y:y}};Vertical.prototype._getContainerSize=function(){return{height:this.y}};return Vertical}));
/*!
 * Isotope v2.2.2
 *
 * Licensed GPLv3 for open source use
 * or Isotope Commercial License for commercial use
 *
 * http://isotope.metafizzy.co
 * Copyright 2015 Metafizzy
 */
(function(window,factory){'use strict';if(typeof define=='function'&&define.amd){define(['outlayer/outlayer','get-size/get-size','matches-selector/matches-selector','fizzy-ui-utils/utils','isotope/js/item','isotope/js/layout-mode','isotope/js/layout-modes/masonry','isotope/js/layout-modes/fit-rows','isotope/js/layout-modes/vertical'],function(Outlayer,getSize,matchesSelector,utils,Item,LayoutMode){return factory(window,Outlayer,getSize,matchesSelector,utils,Item,LayoutMode)})}else if(typeof exports=='object'){module.exports=factory(window,require('outlayer'),require('get-size'),require('desandro-matches-selector'),require('fizzy-ui-utils'),require('./item'),require('./layout-mode'),require('./layout-modes/masonry'),require('./layout-modes/fit-rows'),require('./layout-modes/vertical'))}else{window.Isotope=factory(window,window.Outlayer,window.getSize,window.matchesSelector,window.fizzyUIUtils,window.Isotope.Item,window.Isotope.LayoutMode)}}(window,function factory(window,Outlayer,getSize,matchesSelector,utils,Item,LayoutMode){var jQuery=window.jQuery;var trim=String.prototype.trim?function(str){return str.trim()}:function(str){return str.replace(/^\s+|\s+$/g,'')};var docElem=document.documentElement;var getText=docElem.textContent?function(elem){return elem.textContent}:function(elem){return elem.innerText};var Isotope=Outlayer.create('isotope',{layoutMode:"masonry",isJQueryFiltering:!0,sortAscending:!0});Isotope.Item=Item;Isotope.LayoutMode=LayoutMode;Isotope.prototype._create=function(){this.itemGUID=0;this._sorters={};this._getSorters();Outlayer.prototype._create.call(this);this.modes={};this.filteredItems=this.items;this.sortHistory=['original-order'];for(var name in LayoutMode.modes){this._initLayoutMode(name)}};Isotope.prototype.reloadItems=function(){this.itemGUID=0;Outlayer.prototype.reloadItems.call(this)};Isotope.prototype._itemize=function(){var items=Outlayer.prototype._itemize.apply(this,arguments);for(var i=0,len=items.length;i<len;i++){var item=items[i];item.id=this.itemGUID++}
this._updateItemsSortData(items);return items};Isotope.prototype._initLayoutMode=function(name){var Mode=LayoutMode.modes[name];var initialOpts=this.options[name]||{};this.options[name]=Mode.options?utils.extend(Mode.options,initialOpts):initialOpts;this.modes[name]=new Mode(this)};Isotope.prototype.layout=function(){if(!this._isLayoutInited&&this.options.isInitLayout){this.arrange();return}
this._layout()};Isotope.prototype._layout=function(){var isInstant=this._getIsInstant();this._resetLayout();this._manageStamps();this.layoutItems(this.filteredItems,isInstant);this._isLayoutInited=!0};Isotope.prototype.arrange=function(opts){this.option(opts);this._getIsInstant();var filtered=this._filter(this.items);this.filteredItems=filtered.matches;var _this=this;function hideReveal(){_this.reveal(filtered.needReveal);_this.hide(filtered.needHide)}
this._bindArrangeComplete();if(this._isInstant){this._noTransition(hideReveal)}else{hideReveal()}
this._sort();this._layout()};Isotope.prototype._init=Isotope.prototype.arrange;Isotope.prototype._getIsInstant=function(){var isInstant=this.options.isLayoutInstant!==undefined?this.options.isLayoutInstant:!this._isLayoutInited;this._isInstant=isInstant;return isInstant};Isotope.prototype._bindArrangeComplete=function(){var isLayoutComplete,isHideComplete,isRevealComplete;var _this=this;function arrangeParallelCallback(){if(isLayoutComplete&&isHideComplete&&isRevealComplete){_this.dispatchEvent('arrangeComplete',null,[_this.filteredItems])}}
this.once('layoutComplete',function(){isLayoutComplete=!0;arrangeParallelCallback()});this.once('hideComplete',function(){isHideComplete=!0;arrangeParallelCallback()});this.once('revealComplete',function(){isRevealComplete=!0;arrangeParallelCallback()})};Isotope.prototype._filter=function(items){var filter=this.options.filter;filter=filter||'*';var matches=[];var hiddenMatched=[];var visibleUnmatched=[];var test=this._getFilterTest(filter);for(var i=0,len=items.length;i<len;i++){var item=items[i];if(item.isIgnored){continue}
var isMatched=test(item);if(isMatched){matches.push(item)}
if(isMatched&&item.isHidden){hiddenMatched.push(item)}else if(!isMatched&&!item.isHidden){visibleUnmatched.push(item)}}
return{matches:matches,needReveal:hiddenMatched,needHide:visibleUnmatched}};Isotope.prototype._getFilterTest=function(filter){if(jQuery&&this.options.isJQueryFiltering){return function(item){return jQuery(item.element).is(filter)}}
if(typeof filter=='function'){return function(item){return filter(item.element)}}
return function(item){return matchesSelector(item.element,filter)}};Isotope.prototype.updateSortData=function(elems){var items;if(elems){elems=utils.makeArray(elems);items=this.getItems(elems)}else{items=this.items}
this._getSorters();this._updateItemsSortData(items)};Isotope.prototype._getSorters=function(){var getSortData=this.options.getSortData;for(var key in getSortData){var sorter=getSortData[key];this._sorters[key]=mungeSorter(sorter)}};Isotope.prototype._updateItemsSortData=function(items){var len=items&&items.length;for(var i=0;len&&i<len;i++){var item=items[i];item.updateSortData()}};var mungeSorter=(function(){function mungeSorter(sorter){if(typeof sorter!='string'){return sorter}
var args=trim(sorter).split(' ');var query=args[0];var attrMatch=query.match(/^\[(.+)\]$/);var attr=attrMatch&&attrMatch[1];var getValue=getValueGetter(attr,query);var parser=Isotope.sortDataParsers[args[1]];sorter=parser?function(elem){return elem&&parser(getValue(elem))}:function(elem){return elem&&getValue(elem)};return sorter}
function getValueGetter(attr,query){var getValue;if(attr){getValue=function(elem){return elem.getAttribute(attr)}}else{getValue=function(elem){var child=elem.querySelector(query);return child&&getText(child)}}
return getValue}
return mungeSorter})();Isotope.sortDataParsers={'parseInt':function(val){return parseInt(val,10)},'parseFloat':function(val){return parseFloat(val)}};Isotope.prototype._sort=function(){var sortByOpt=this.options.sortBy;if(!sortByOpt){return}
var sortBys=[].concat.apply(sortByOpt,this.sortHistory);var itemSorter=getItemSorter(sortBys,this.options.sortAscending);this.filteredItems.sort(itemSorter);if(sortByOpt!=this.sortHistory[0]){this.sortHistory.unshift(sortByOpt)}};function getItemSorter(sortBys,sortAsc){return function sorter(itemA,itemB){for(var i=0,len=sortBys.length;i<len;i++){var sortBy=sortBys[i];var a=itemA.sortData[sortBy];var b=itemB.sortData[sortBy];if(a>b||a<b){var isAscending=sortAsc[sortBy]!==undefined?sortAsc[sortBy]:sortAsc;var direction=isAscending?1:-1;return(a>b?1:-1)*direction}}
return 0}}
Isotope.prototype._mode=function(){var layoutMode=this.options.layoutMode;var mode=this.modes[layoutMode];if(!mode){throw new Error('No layout mode: '+layoutMode)}
mode.options=this.options[layoutMode];return mode};Isotope.prototype._resetLayout=function(){Outlayer.prototype._resetLayout.call(this);this._mode()._resetLayout()};Isotope.prototype._getItemLayoutPosition=function(item){return this._mode()._getItemLayoutPosition(item)};Isotope.prototype._manageStamp=function(stamp){this._mode()._manageStamp(stamp)};Isotope.prototype._getContainerSize=function(){return this._mode()._getContainerSize()};Isotope.prototype.needsResizeLayout=function(){return this._mode().needsResizeLayout()};Isotope.prototype.appended=function(elems){var items=this.addItems(elems);if(!items.length){return}
var filteredItems=this._filterRevealAdded(items);this.filteredItems=this.filteredItems.concat(filteredItems)};Isotope.prototype.prepended=function(elems){var items=this._itemize(elems);if(!items.length){return}
this._resetLayout();this._manageStamps();var filteredItems=this._filterRevealAdded(items);this.layoutItems(this.filteredItems);this.filteredItems=filteredItems.concat(this.filteredItems);this.items=items.concat(this.items)};Isotope.prototype._filterRevealAdded=function(items){var filtered=this._filter(items);this.hide(filtered.needHide);this.reveal(filtered.matches);this.layoutItems(filtered.matches,!0);return filtered.matches};Isotope.prototype.insert=function(elems){var items=this.addItems(elems);if(!items.length){return}
var i,item;var len=items.length;for(i=0;i<len;i++){item=items[i];this.element.appendChild(item.element)}
var filteredInsertItems=this._filter(items).matches;for(i=0;i<len;i++){items[i].isLayoutInstant=!0}
this.arrange();for(i=0;i<len;i++){delete items[i].isLayoutInstant}
this.reveal(filteredInsertItems)};var _remove=Isotope.prototype.remove;Isotope.prototype.remove=function(elems){elems=utils.makeArray(elems);var removeItems=this.getItems(elems);_remove.call(this,elems);var len=removeItems&&removeItems.length;if(!len){return}
for(var i=0;i<len;i++){var item=removeItems[i];utils.removeFrom(this.filteredItems,item)}};Isotope.prototype.shuffle=function(){for(var i=0,len=this.items.length;i<len;i++){var item=this.items[i];item.sortData.random=Math.random()}
this.options.sortBy='random';this._sort();this._layout()};Isotope.prototype._noTransition=function(fn){var transitionDuration=this.options.transitionDuration;this.options.transitionDuration=0;var returnValue=fn.call(this);this.options.transitionDuration=transitionDuration;return returnValue};Isotope.prototype.getFilteredItemElements=function(){var elems=[];for(var i=0,len=this.filteredItems.length;i<len;i++){elems.push(this.filteredItems[i].element)}
return elems};return Isotope}));/*!
*  - v1.3
* Homepage: http://bqworks.com/slider-pro/
* Author: bqworks
* Author URL: http://bqworks.com/
*/
;(function(window,$){"use strict";$.SliderPro={modules:[],addModule:function(name,module){this.modules.push(name);$.extend(SliderPro.prototype,module)}};var NS=$.SliderPro.namespace='SliderPro';var SliderPro=function(instance,options){this.instance=instance;this.$slider=$(this.instance);this.$slides=null;this.$slidesMask=null;this.$slidesContainer=null;this.slides=[];this.slidesOrder=[];this.options=options;this.settings={};this.originalSettings={};this.originalGotoSlide=null;this.selectedSlideIndex=0;this.previousSlideIndex=0;this.middleSlidePosition=0;this.supportedAnimation=null;this.vendorPrefix=null;this.transitionEvent=null;this.positionProperty=null;this.sizeProperty=null;this.isIE=null;this.slidesPosition=0;this.slidesSize=0;this.averageSlideSize=0;this.slideWidth=0;this.slideHeight=0;this.previousSlideWidth=0;this.previousSlideHeight=0;this.previousWindowWidth=0;this.previousWindowHeight=0;this.allowResize=!0;this.uniqueId=new Date().valueOf();this.breakpoints=[];this.currentBreakpoint=-1;this.shuffledIndexes=[];this._init()};SliderPro.prototype={_init:function(){var that=this;this.supportedAnimation=SliderProUtils.getSupportedAnimation();this.vendorPrefix=SliderProUtils.getVendorPrefix();this.transitionEvent=SliderProUtils.getTransitionEvent();this.isIE=SliderProUtils.checkIE();this.$slider.removeClass('sp-no-js');if(window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)){this.$slider.addClass('ios')}
var rmsie=/(msie) ([\w.]+)/,ieVersion=rmsie.exec(window.navigator.userAgent.toLowerCase());if(this.isIE){this.$slider.addClass('ie')}
if(ieVersion!==null){this.$slider.addClass('ie'+parseInt(ieVersion[2],10))}
this.$slidesContainer=$('<div class="sp-slides-container"></div>').appendTo(this.$slider);this.$slidesMask=$('<div class="sp-mask"></div>').appendTo(this.$slidesContainer);this.$slides=this.$slider.find('.sp-slides').appendTo(this.$slidesMask);this.$slider.find('.sp-slide').appendTo(this.$slides);var modules=$.SliderPro.modules;if(typeof modules!=='undefined'){for(var i=0;i<modules.length;i++){var defaults=modules[i].substring(0,1).toLowerCase()+modules[i].substring(1)+'Defaults';if(typeof this[defaults]!=='undefined'){$.extend(this.defaults,this[defaults])}}}
this.settings=$.extend({},this.defaults,this.options);if(typeof modules!=='undefined'){for(var j=0;j<modules.length;j++){if(typeof this['init'+modules[j]]!=='undefined'){this['init'+modules[j]]()}}}
this.originalSettings=$.extend({},this.settings);this.originalGotoSlide=this.gotoSlide;if(this.settings.breakpoints!==null){for(var sizes in this.settings.breakpoints){this.breakpoints.push({size:parseInt(sizes,10),properties:this.settings.breakpoints[sizes]})}
this.breakpoints=this.breakpoints.sort(function(a,b){return a.size>=b.size?1:-1})}
this.selectedSlideIndex=this.settings.startSlide;if(this.settings.shuffle===!0){var slides=this.$slides.find('.sp-slide'),shuffledSlides=[];slides.each(function(index){that.shuffledIndexes.push(index)});for(var k=this.shuffledIndexes.length-1;k>0;k--){var l=Math.floor(Math.random()*(k+1)),temp=this.shuffledIndexes[k];this.shuffledIndexes[k]=this.shuffledIndexes[l];this.shuffledIndexes[l]=temp}
$.each(this.shuffledIndexes,function(index,element){shuffledSlides.push(slides[element])});this.$slides.empty().append(shuffledSlides)}
$(window).on('resize.'+this.uniqueId+'.'+NS,function(){var newWindowWidth=$(window).width(),newWindowHeight=$(window).height();if(that.allowResize===!1||(that.previousWindowWidth===newWindowWidth&&that.previousWindowHeight===newWindowHeight)){return}
that.previousWindowWidth=newWindowWidth;that.previousWindowHeight=newWindowHeight;that.allowResize=!1;setTimeout(function(){that.resize();that.allowResize=!0},200)});this.on('update.'+NS,function(){that.previousSlideWidth=0;that.resize()});this.update();this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).addClass('sp-selected');this.trigger({type:'init'});if($.isFunction(this.settings.init)){this.settings.init.call(this,{type:'init'})}},update:function(){var that=this;if(this.settings.orientation==='horizontal'){this.$slider.removeClass('sp-vertical').addClass('sp-horizontal');this.$slider.css({'height':'','max-height':''});this.$slides.find('.sp-slide').css('top','')}else if(this.settings.orientation==='vertical'){this.$slider.removeClass('sp-horizontal').addClass('sp-vertical');this.$slides.find('.sp-slide').css('left','')}
if(this.settings.rightToLeft===!0){this.$slider.addClass('sp-rtl')}else{this.$slider.removeClass('sp-rtl')}
this.positionProperty=this.settings.orientation==='horizontal'?'left':'top';this.sizeProperty=this.settings.orientation==='horizontal'?'width':'height';this.gotoSlide=this.originalGotoSlide;for(var i=this.slides.length-1;i>=0;i--){if(this.$slider.find('.sp-slide[data-index="'+i+'"]').length===0){var slide=this.slides[i];slide.off('imagesLoaded.'+NS);slide.destroy();this.slides.splice(i,1)}}
this.slidesOrder.length=0;this.$slider.find('.sp-slide').each(function(index){var $slide=$(this);if(typeof $slide.attr('data-init')==='undefined'){that._createSlide(index,$slide)}else{that.slides[index].setIndex(index)}
that.slidesOrder.push(index)});this.middleSlidePosition=parseInt((that.slidesOrder.length-1)/2,10);if(this.settings.loop===!0){this._updateSlidesOrder()}
this.trigger({type:'update'});if($.isFunction(this.settings.update)){this.settings.update.call(this,{type:'update'})}},_createSlide:function(index,element){var that=this,slide=new SliderProSlide($(element),index,this.settings);this.slides.splice(index,0,slide);slide.on('imagesLoaded.'+NS,function(event){if(that.$slides.hasClass('sp-animated')===!1){that._resetSlidesPosition()}
that._calculateSlidesSize();if(that.settings.autoHeight===!0&&event.index===that.selectedSlideIndex){that._resizeHeightTo(slide.getSize().height)}})},_updateSlidesOrder:function(){var slicedItems,i,distance=$.inArray(this.selectedSlideIndex,this.slidesOrder)-this.middleSlidePosition;if(distance<0){slicedItems=this.slidesOrder.splice(distance,Math.abs(distance));for(i=slicedItems.length-1;i>=0;i--){this.slidesOrder.unshift(slicedItems[i])}}else if(distance>0){slicedItems=this.slidesOrder.splice(0,distance);for(i=0;i<=slicedItems.length-1;i++){this.slidesOrder.push(slicedItems[i])}}},_updateSlidesPosition:function(){var selectedSlidePixelPosition=parseInt(this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).css(this.positionProperty),10),slide,$slideElement,slideIndex,slideSize,previousPosition=selectedSlidePixelPosition;if(this.settings.rightToLeft===!0&&this.settings.orientation==='horizontal'){for(slideIndex=this.middleSlidePosition;slideIndex>=0;slideIndex--){slide=this.getSlideAt(this.slidesOrder[slideIndex]);$slideElement=slide.$slide;$slideElement.css(this.positionProperty,previousPosition);previousPosition=parseInt($slideElement.css(this.positionProperty),10)+slide.getSize()[this.sizeProperty]+this.settings.slideDistance}
previousPosition=selectedSlidePixelPosition;for(slideIndex=this.middleSlidePosition+1;slideIndex<this.slidesOrder.length;slideIndex++){slide=this.getSlideAt(this.slidesOrder[slideIndex]);$slideElement=slide.$slide;$slideElement.css(this.positionProperty,previousPosition-(slide.getSize()[this.sizeProperty]+this.settings.slideDistance));previousPosition=parseInt($slideElement.css(this.positionProperty),10)}}else{for(slideIndex=this.middleSlidePosition-1;slideIndex>=0;slideIndex--){slide=this.getSlideAt(this.slidesOrder[slideIndex]);$slideElement=slide.$slide;$slideElement.css(this.positionProperty,previousPosition-(slide.getSize()[this.sizeProperty]+this.settings.slideDistance));previousPosition=parseInt($slideElement.css(this.positionProperty),10)}
previousPosition=selectedSlidePixelPosition;for(slideIndex=this.middleSlidePosition;slideIndex<this.slidesOrder.length;slideIndex++){slide=this.getSlideAt(this.slidesOrder[slideIndex]);$slideElement=slide.$slide;$slideElement.css(this.positionProperty,previousPosition);previousPosition=parseInt($slideElement.css(this.positionProperty),10)+slide.getSize()[this.sizeProperty]+this.settings.slideDistance}}},_resetSlidesPosition:function(){var previousPosition=0,slide,$slideElement,slideIndex;if(this.settings.rightToLeft===!0&&this.settings.orientation==='horizontal'){for(slideIndex=0;slideIndex<this.slidesOrder.length;slideIndex++){slide=this.getSlideAt(this.slidesOrder[slideIndex]);$slideElement=slide.$slide;$slideElement.css(this.positionProperty,previousPosition-(slide.getSize()[this.sizeProperty]+this.settings.slideDistance));previousPosition=parseInt($slideElement.css(this.positionProperty),10)}}else{for(slideIndex=0;slideIndex<this.slidesOrder.length;slideIndex++){slide=this.getSlideAt(this.slidesOrder[slideIndex]);$slideElement=slide.$slide;$slideElement.css(this.positionProperty,previousPosition);previousPosition=parseInt($slideElement.css(this.positionProperty),10)+slide.getSize()[this.sizeProperty]+this.settings.slideDistance}}
var selectedSlideOffset=this.settings.centerSelectedSlide===!0?Math.round((parseInt(this.$slidesMask.css(this.sizeProperty),10)-this.getSlideAt(this.selectedSlideIndex).getSize()[this.sizeProperty])/2):0,newSlidesPosition=-parseInt(this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).css(this.positionProperty),10)+selectedSlideOffset;this._moveTo(newSlidesPosition,!0)},_calculateSlidesSize:function(){var firstSlide=this.$slides.find('.sp-slide').eq(this.slidesOrder[0]),firstSlidePosition=parseInt(firstSlide.css(this.positionProperty),10),lastSlide=this.$slides.find('.sp-slide').eq(this.slidesOrder[this.slidesOrder.length-1]),lastSlidePosition=parseInt(lastSlide.css(this.positionProperty),10)+(this.settings.rightToLeft===!0&&this.settings.orientation==='horizontal'?-1:1)*parseInt(lastSlide.css(this.sizeProperty),10);this.slidesSize=Math.abs(lastSlidePosition-firstSlidePosition);this.averageSlideSize=Math.round(this.slidesSize/this.slides.length)},resize:function(){var that=this;if(this.settings.breakpoints!==null&&this.breakpoints.length>0){if($(window).width()>this.breakpoints[this.breakpoints.length-1].size&&this.currentBreakpoint!==-1){this.currentBreakpoint=-1;this._setProperties(this.originalSettings,!1)}else{for(var i=0,n=this.breakpoints.length;i<n;i++){if($(window).width()<=this.breakpoints[i].size){if(this.currentBreakpoint!==this.breakpoints[i].size){var eventObject={type:'breakpointReach',size:this.breakpoints[i].size,settings:this.breakpoints[i].properties};this.trigger(eventObject);if($.isFunction(this.settings.breakpointReach))
this.settings.breakpointReach.call(this,eventObject);this.currentBreakpoint=this.breakpoints[i].size;var settings=$.extend({},this.originalSettings,this.breakpoints[i].properties);this._setProperties(settings,!1);return}
break}}}}
if(this.settings.responsive===!0){if((this.settings.forceSize==='fullWidth'||this.settings.forceSize==='fullWindow')&&(this.settings.visibleSize==='auto'||this.settings.visibleSize!=='auto'&&this.settings.orientation==='vertical')){this.$slider.css('margin',0);this.$slider.css({'width':$(window).width(),'max-width':'','marginLeft':-this.$slider.offset().left})}else{this.$slider.css({'width':'100%','max-width':this.settings.width,'marginLeft':''})}}else{this.$slider.css({'width':this.settings.width})}
if(this.settings.aspectRatio===-1){this.settings.aspectRatio=this.settings.width/this.settings.height}
this.slideWidth=this.$slider.width();if(this.settings.forceSize==='fullWindow'){this.slideHeight=$(window).height()}else{this.slideHeight=isNaN(this.settings.aspectRatio)?this.settings.height:this.slideWidth/this.settings.aspectRatio}
if(this.previousSlideWidth!==this.slideWidth||this.previousSlideHeight!==this.slideHeight||this.settings.visibleSize!=='auto'||this.$slider.outerWidth()>this.$slider.parent().width()||this.$slider.width()!==this.$slidesMask.width()){this.previousSlideWidth=this.slideWidth;this.previousSlideHeight=this.slideHeight}else{return}
this._resizeSlides();this.$slidesMask.css({'width':this.slideWidth,'height':this.slideHeight});if(this.settings.autoHeight===!0){setTimeout(function(){that._resizeHeight()},1)}else{this.$slidesMask.css(this.vendorPrefix+'transition','')}
if(this.settings.visibleSize!=='auto'){if(this.settings.orientation==='horizontal'){if(this.settings.forceSize==='fullWidth'||this.settings.forceSize==='fullWindow'){this.$slider.css('margin',0);this.$slider.css({'width':$(window).width(),'max-width':'','marginLeft':-this.$slider.offset().left})}else{this.$slider.css({'width':this.settings.visibleSize,'max-width':'100%','marginLeft':0})}
this.$slidesMask.css('width',this.$slider.width())}else{if(this.settings.forceSize==='fullWindow'){this.$slider.css({'height':$(window).height(),'max-height':''})}else{this.$slider.css({'height':this.settings.visibleSize,'max-height':'100%'})}
this.$slidesMask.css('height',this.$slider.height())}}
this._resetSlidesPosition();this._calculateSlidesSize();this.trigger({type:'sliderResize'});if($.isFunction(this.settings.sliderResize)){this.settings.sliderResize.call(this,{type:'sliderResize'})}},_resizeSlides:function(){var slideWidth=this.slideWidth,slideHeight=this.slideHeight;if(this.settings.autoSlideSize===!0){if(this.settings.orientation==='horizontal'){slideWidth='auto'}else if(this.settings.orientation==='vertical'){slideHeight='auto'}}else if(this.settings.autoHeight===!0){slideHeight='auto'}
$.each(this.slides,function(index,element){element.setSize(slideWidth,slideHeight)})},_resizeHeight:function(){var that=this,selectedSlide=this.getSlideAt(this.selectedSlideIndex);this._resizeHeightTo(selectedSlide.getSize().height)},gotoSlide:function(index){if(index===this.selectedSlideIndex||typeof this.slides[index]==='undefined'){return}
var that=this;this.previousSlideIndex=this.selectedSlideIndex;this.selectedSlideIndex=index;this.$slides.find('.sp-selected').removeClass('sp-selected');this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).addClass('sp-selected');if(this.settings.loop===!0){this._updateSlidesOrder();this._updateSlidesPosition()}
if(this.settings.autoHeight===!0){this._resizeHeight()}
var selectedSlideOffset=this.settings.centerSelectedSlide===!0?Math.round((parseInt(this.$slidesMask.css(this.sizeProperty),10)-this.getSlideAt(this.selectedSlideIndex).getSize()[this.sizeProperty])/2):0,newSlidesPosition=-parseInt(this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).css(this.positionProperty),10)+selectedSlideOffset;this._moveTo(newSlidesPosition,!1,function(){that._resetSlidesPosition();that.trigger({type:'gotoSlideComplete',index:index,previousIndex:that.previousSlideIndex});if($.isFunction(that.settings.gotoSlideComplete)){that.settings.gotoSlideComplete.call(that,{type:'gotoSlideComplete',index:index,previousIndex:that.previousSlideIndex})}});this.trigger({type:'gotoSlide',index:index,previousIndex:this.previousSlideIndex});if($.isFunction(this.settings.gotoSlide)){this.settings.gotoSlide.call(this,{type:'gotoSlide',index:index,previousIndex:this.previousSlideIndex})}},nextSlide:function(){var index=(this.selectedSlideIndex>=this.getTotalSlides()-1)?0:(this.selectedSlideIndex+1);this.gotoSlide(index)},previousSlide:function(){var index=this.selectedSlideIndex<=0?(this.getTotalSlides()-1):(this.selectedSlideIndex-1);this.gotoSlide(index)},_moveTo:function(position,instant,callback){var that=this,css={};if(position===this.slidesPosition){return}
this.slidesPosition=position;if((this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d')&&this.isIE===!1){var transition,left=this.settings.orientation==='horizontal'?position:0,top=this.settings.orientation==='horizontal'?0:position;if(this.supportedAnimation==='css-3d'){css[this.vendorPrefix+'transform']='translate3d('+left+'px, '+top+'px, 0)'}else{css[this.vendorPrefix+'transform']='translate('+left+'px, '+top+'px)'}
if(typeof instant!=='undefined'&&instant===!0){transition=''}else{this.$slides.addClass('sp-animated');transition=this.vendorPrefix+'transform '+this.settings.slideAnimationDuration/1000+'s';this.$slides.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
that.$slides.off(that.transitionEvent);that.$slides.removeClass('sp-animated');if(typeof callback==='function'){callback()}})}
css[this.vendorPrefix+'transition']=transition;this.$slides.css(css)}else{css['margin-'+this.positionProperty]=position;if(typeof instant!=='undefined'&&instant===!0){this.$slides.css(css)}else{this.$slides.addClass('sp-animated');this.$slides.animate(css,this.settings.slideAnimationDuration,function(){that.$slides.removeClass('sp-animated');if(typeof callback==='function'){callback()}})}}},_stopMovement:function(){var css={};if((this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d')&&this.isIE===!1){var matrixString=this.$slides.css(this.vendorPrefix+'transform'),matrixType=matrixString.indexOf('matrix3d')!==-1?'matrix3d':'matrix',matrixArray=matrixString.replace(matrixType,'').match(/-?[0-9\.]+/g),left=matrixType==='matrix3d'?parseInt(matrixArray[12],10):parseInt(matrixArray[4],10),top=matrixType==='matrix3d'?parseInt(matrixArray[13],10):parseInt(matrixArray[5],10);if(this.supportedAnimation==='css-3d'){css[this.vendorPrefix+'transform']='translate3d('+left+'px, '+top+'px, 0)'}else{css[this.vendorPrefix+'transform']='translate('+left+'px, '+top+'px)'}
css[this.vendorPrefix+'transition']='';this.$slides.css(css);this.$slides.off(this.transitionEvent);this.slidesPosition=this.settings.orientation==='horizontal'?left:top}else{this.$slides.stop();this.slidesPosition=parseInt(this.$slides.css('margin-'+this.positionProperty),10)}
this.$slides.removeClass('sp-animated')},_resizeHeightTo:function(height){var that=this,css={'height':height};if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){css[this.vendorPrefix+'transition']='height '+this.settings.heightAnimationDuration/1000+'s';this.$slidesMask.off(this.transitionEvent);this.$slidesMask.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
that.$slidesMask.off(that.transitionEvent);that.trigger({type:'resizeHeightComplete'});if($.isFunction(that.settings.resizeHeightComplete)){that.settings.resizeHeightComplete.call(that,{type:'resizeHeightComplete'})}});this.$slidesMask.css(css)}else{this.$slidesMask.stop().animate(css,this.settings.heightAnimationDuration,function(event){that.trigger({type:'resizeHeightComplete'});if($.isFunction(that.settings.resizeHeightComplete)){that.settings.resizeHeightComplete.call(that,{type:'resizeHeightComplete'})}})}},destroy:function(){this.$slider.removeData('sliderPro');this.$slider.removeAttr('style');this.$slides.removeAttr('style');this.off('update.'+NS);$(window).off('resize.'+this.uniqueId+'.'+NS);var modules=$.SliderPro.modules;if(typeof modules!=='undefined'){for(var i=0;i<modules.length;i++){if(typeof this['destroy'+modules[i]]!=='undefined'){this['destroy'+modules[i]]()}}}
$.each(this.slides,function(index,element){element.destroy()});this.slides.length=0;this.$slides.prependTo(this.$slider);this.$slidesContainer.remove()},_setProperties:function(properties,store){for(var prop in properties){this.settings[prop]=properties[prop];if(store!==!1){this.originalSettings[prop]=properties[prop]}}
this.update()},on:function(type,callback){return this.$slider.on(type,callback)},off:function(type){return this.$slider.off(type)},trigger:function(data){return this.$slider.triggerHandler(data)},getSlideAt:function(index){return this.slides[index]},getSelectedSlide:function(){return this.selectedSlideIndex},getTotalSlides:function(){return this.slides.length},defaults:{width:500,height:300,responsive:!0,aspectRatio:-1,imageScaleMode:'cover',centerImage:!0,allowScaleUp:!0,autoHeight:!1,autoSlideSize:!1,startSlide:0,shuffle:!1,orientation:'horizontal',forceSize:'none',loop:!0,slideDistance:10,slideAnimationDuration:700,heightAnimationDuration:700,visibleSize:'auto',centerSelectedSlide:!0,rightToLeft:!1,breakpoints:null,init:function(){},update:function(){},sliderResize:function(){},gotoSlide:function(){},gotoSlideComplete:function(){},resizeHeightComplete:function(){},breakpointReach:function(){}}};var SliderProSlide=function(slide,index,settings){this.$slide=slide;this.$mainImage=null;this.$imageContainer=null;this.hasMainImage=!1;this.isMainImageLoaded=!1;this.isMainImageLoading=!1;this.hasImages=!1;this.areImagesLoaded=!1;this.areImagesLoading=!1;this.width=0;this.height=0;this.settings=settings;this.setIndex(index);this._init()};SliderProSlide.prototype={_init:function(){var that=this;this.$slide.attr('data-init',!0);this.$mainImage=this.$slide.find('.sp-image').length!==0?this.$slide.find('.sp-image'):null;if(this.$mainImage!==null){this.hasMainImage=!0;this.$imageContainer=$('<div class="sp-image-container"></div>').prependTo(this.$slide);if(this.$mainImage.parent('a').length!==0){this.$mainImage.parent('a').appendTo(this.$imageContainer)}else{this.$mainImage.appendTo(this.$imageContainer)}}
this.hasImages=this.$slide.find('img').length!==0?!0:!1},setSize:function(width,height){var that=this;this.width=width;this.height=height;this.$slide.css({'width':this.width,'height':this.height});if(this.hasMainImage===!0){this.$imageContainer.css({'width':this.settings.width,'height':this.settings.height});if(typeof this.$mainImage.attr('data-src')==='undefined'){this.resizeMainImage()}}},getSize:function(){var that=this,size;if(this.hasImages===!0&&this.areImagesLoaded===!1&&this.areImagesLoading===!1){this.areImagesLoading=!0;var status=SliderProUtils.checkImagesStatus(this.$slide);if(status!=='complete'){SliderProUtils.checkImagesComplete(this.$slide,function(){that.areImagesLoaded=!0;that.areImagesLoading=!1;that.trigger({type:'imagesLoaded.'+NS,index:that.index})});return{'width':this.settings.width,'height':this.settings.height}}}
size=this.calculateSize();return{'width':size.width,'height':size.height}},calculateSize:function(){var width=this.$slide.width(),height=this.$slide.height();this.$slide.children().each(function(index,element){var child=$(element);if(child.is(':hidden')===!0){return}
var rect=element.getBoundingClientRect(),bottom=child.position().top+(rect.bottom-rect.top),right=child.position().left+(rect.right-rect.left);if(bottom>height){height=bottom}
if(right>width){width=right}});return{width:width,height:height}},resizeMainImage:function(isNewImage){var that=this;if(isNewImage===!0){this.isMainImageLoaded=!1;this.isMainImageLoading=!1}
if(this.isMainImageLoaded===!1&&this.isMainImageLoading===!1){this.isMainImageLoading=!0;SliderProUtils.checkImagesComplete(this.$mainImage,function(){that.isMainImageLoaded=!0;that.isMainImageLoading=!1;that.resizeMainImage();that.trigger({type:'imagesLoaded.'+NS,index:that.index})});return}
this.$imageContainer.css({'width':this.width,'height':this.height});if(this.settings.allowScaleUp===!1){this.$mainImage.css({'width':'','height':'','maxWidth':'','maxHeight':''});this.$mainImage.css({'maxWidth':this.$mainImage.width(),'maxHeight':this.$mainImage.height()})}
if(this.settings.autoSlideSize===!0){if(this.settings.orientation==='horizontal'){this.$mainImage.css({width:'auto',height:'100%'})}else if(this.settings.orientation==='vertical'){this.$mainImage.css({width:'100%',height:'auto'})}}else if(this.settings.autoHeight===!0){this.$mainImage.css({width:'100%',height:'auto'})}else{if(this.settings.imageScaleMode==='cover'){if(this.$mainImage.width()/this.$mainImage.height()<=this.width/this.height){this.$mainImage.css({width:'100%',height:'auto'})}else{this.$mainImage.css({width:'auto',height:'100%'})}}else if(this.settings.imageScaleMode==='contain'){if(this.$mainImage.width()/this.$mainImage.height()>=this.width/this.height){this.$mainImage.css({width:'100%',height:'auto'})}else{this.$mainImage.css({width:'auto',height:'100%'})}}else if(this.settings.imageScaleMode==='exact'){this.$mainImage.css({width:'100%',height:'100%'})}
if(this.settings.centerImage===!0){this.$mainImage.css({'marginLeft':(this.$imageContainer.width()-this.$mainImage.width())*0.5,'marginTop':(this.$imageContainer.height()-this.$mainImage.height())*0.5})}}},destroy:function(){this.$slide.removeAttr('style');this.$slide.removeAttr('data-init');this.$slide.removeAttr('data-index');this.$slide.removeAttr('data-loaded');if(this.hasMainImage===!0){this.$slide.find('.sp-image').removeAttr('style').appendTo(this.$slide);this.$slide.find('.sp-image-container').remove()}},getIndex:function(){return this.index},setIndex:function(index){this.index=index;this.$slide.attr('data-index',this.index)},on:function(type,callback){return this.$slide.on(type,callback)},off:function(type){return this.$slide.off(type)},trigger:function(data){return this.$slide.triggerHandler(data)}};window.SliderPro=SliderPro;window.SliderProSlide=SliderProSlide;$.fn.sliderPro=function(options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof $(this).data('sliderPro')==='undefined'){var newInstance=new SliderPro(this,options);$(this).data('sliderPro',newInstance)}else if(typeof options!=='undefined'){var currentInstance=$(this).data('sliderPro');if(typeof currentInstance[options]==='function'){currentInstance[options].apply(currentInstance,args)}else if(typeof currentInstance.settings[options]!=='undefined'){var obj={};obj[options]=args[0];currentInstance._setProperties(obj)}else if(typeof options==='object'){currentInstance._setProperties(options)}else{$.error(options+' does not exist in sliderPro.')}}})};var SliderProUtils={supportedAnimation:null,vendorPrefix:null,transitionEvent:null,isIE:null,getSupportedAnimation:function(){if(this.supportedAnimation!==null){return this.supportedAnimation}
var element=document.body||document.documentElement,elementStyle=element.style,isCSSTransitions=typeof elementStyle.transition!=='undefined'||typeof elementStyle.WebkitTransition!=='undefined'||typeof elementStyle.MozTransition!=='undefined'||typeof elementStyle.OTransition!=='undefined';if(isCSSTransitions===!0){var div=document.createElement('div');if(typeof div.style.WebkitPerspective!=='undefined'||typeof div.style.perspective!=='undefined'){this.supportedAnimation='css-3d'}
if(this.supportedAnimation==='css-3d'&&typeof div.styleWebkitPerspective!=='undefined'){var style=document.createElement('style');style.textContent='@media (transform-3d),(-webkit-transform-3d){#test-3d{left:9px;position:absolute;height:5px;margin:0;padding:0;border:0;}}';document.getElementsByTagName('head')[0].appendChild(style);div.id='test-3d';document.body.appendChild(div);if(!(div.offsetLeft===9&&div.offsetHeight===5)){this.supportedAnimation=null}
style.parentNode.removeChild(style);div.parentNode.removeChild(div)}
if(this.supportedAnimation===null&&(typeof div.style['-webkit-transform']!=='undefined'||typeof div.style.transform!=='undefined')){this.supportedAnimation='css-2d'}}else{this.supportedAnimation='javascript'}
return this.supportedAnimation},getVendorPrefix:function(){if(this.vendorPrefix!==null){return this.vendorPrefix}
var div=document.createElement('div'),prefixes=['Webkit','Moz','ms','O'];if('transform' in div.style){this.vendorPrefix='';return this.vendorPrefix}
for(var i=0;i<prefixes.length;i++){if((prefixes[i]+'Transform')in div.style){this.vendorPrefix='-'+prefixes[i].toLowerCase()+'-';break}}
return this.vendorPrefix},getTransitionEvent:function(){if(this.transitionEvent!==null){return this.transitionEvent}
var div=document.createElement('div'),transitions={'transition':'transitionend','WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'oTransitionEnd'};for(var transition in transitions){if(transition in div.style){this.transitionEvent=transitions[transition];break}}
return this.transitionEvent},checkImagesComplete:function(target,callback){var that=this,status=this.checkImagesStatus(target);if(status==='loading'){var checkImages=setInterval(function(){status=that.checkImagesStatus(target);if(status==='complete'){clearInterval(checkImages);if(typeof callback==='function'){callback()}}},100)}else if(typeof callback==='function'){callback()}
return status},checkImagesStatus:function(target){var status='complete';if(target.is('img')&&target[0].complete===!1){status='loading'}else{target.find('img').each(function(index){var image=$(this)[0];if(image.complete===!1){status='loading'}})}
return status},checkIE:function(){if(this.isIE!==null){return this.isIE}
var userAgent=window.navigator.userAgent,msie=userAgent.indexOf('MSIE');if(userAgent.indexOf('MSIE')!==-1||userAgent.match(/Trident.*rv\:11\./)){this.isIE=!0}else{this.isIE=!1}
return this.isIE}};window.SliderProUtils=SliderProUtils})(window,jQuery);(function(window,$){"use strict";var NS='Thumbnails.'+$.SliderPro.namespace;var Thumbnails={$thumbnails:null,$thumbnailsContainer:null,thumbnails:null,selectedThumbnailIndex:0,thumbnailsSize:0,thumbnailsContainerSize:0,thumbnailsPosition:0,thumbnailsOrientation:null,thumbnailsPositionProperty:null,isThumbnailScroller:!1,initThumbnails:function(){var that=this;this.thumbnails=[];this.on('update.'+NS,$.proxy(this._thumbnailsOnUpdate,this));this.on('sliderResize.'+NS,$.proxy(this._thumbnailsOnResize,this));this.on('gotoSlide.'+NS,function(event){that._gotoThumbnail(event.index)})},_thumbnailsOnUpdate:function(){var that=this;if(this.$slider.find('.sp-thumbnail').length===0&&this.thumbnails.length===0){this.isThumbnailScroller=!1;return}
this.isThumbnailScroller=!0;if(this.$thumbnailsContainer===null){this.$thumbnailsContainer=$('<div class="sp-thumbnails-container"></div>').insertAfter(this.$slidesContainer)}
if(this.$thumbnails===null){if(this.$slider.find('.sp-thumbnails').length!==0){this.$thumbnails=this.$slider.find('.sp-thumbnails').appendTo(this.$thumbnailsContainer);if(this.settings.shuffle===!0){var thumbnails=this.$thumbnails.find('.sp-thumbnail'),shuffledThumbnails=[];$.each(this.shuffledIndexes,function(index,element){var $thumbnail=$(thumbnails[element]);if($thumbnail.parent('a').length!==0){$thumbnail=$thumbnail.parent('a')}
shuffledThumbnails.push($thumbnail)});this.$thumbnails.empty().append(shuffledThumbnails)}}else{this.$thumbnails=$('<div class="sp-thumbnails"></div>').appendTo(this.$thumbnailsContainer)}}
this.$slides.find('.sp-thumbnail').each(function(index){var $thumbnail=$(this),thumbnailIndex=$thumbnail.parents('.sp-slide').index(),lastThumbnailIndex=that.$thumbnails.find('.sp-thumbnail').length-1;if($thumbnail.parent('a').length!==0){$thumbnail=$thumbnail.parent('a')}
if(thumbnailIndex>lastThumbnailIndex){$thumbnail.appendTo(that.$thumbnails)}else{$thumbnail.insertBefore(that.$thumbnails.find('.sp-thumbnail').eq(thumbnailIndex))}});for(var i=this.thumbnails.length-1;i>=0;i--){if(this.$thumbnails.find('.sp-thumbnail[data-index="'+i+'"]').length===0){var thumbnail=this.thumbnails[i];thumbnail.destroy();this.thumbnails.splice(i,1)}}
this.$thumbnails.find('.sp-thumbnail').each(function(index){var $thumbnail=$(this);if(typeof $thumbnail.attr('data-init')==='undefined'){that._createThumbnail($thumbnail,index)}else{that.thumbnails[index].setIndex(index)}});this.$thumbnailsContainer.removeClass('sp-top-thumbnails sp-bottom-thumbnails sp-left-thumbnails sp-right-thumbnails');if(this.settings.thumbnailsPosition==='top'){this.$thumbnailsContainer.addClass('sp-top-thumbnails');this.thumbnailsOrientation='horizontal'}else if(this.settings.thumbnailsPosition==='bottom'){this.$thumbnailsContainer.addClass('sp-bottom-thumbnails');this.thumbnailsOrientation='horizontal'}else if(this.settings.thumbnailsPosition==='left'){this.$thumbnailsContainer.addClass('sp-left-thumbnails');this.thumbnailsOrientation='vertical'}else if(this.settings.thumbnailsPosition==='right'){this.$thumbnailsContainer.addClass('sp-right-thumbnails');this.thumbnailsOrientation='vertical'}
if(this.settings.thumbnailPointer===!0){this.$thumbnailsContainer.addClass('sp-has-pointer')}else{this.$thumbnailsContainer.removeClass('sp-has-pointer')}
this.selectedThumbnailIndex=this.selectedSlideIndex;this.$thumbnails.find('.sp-thumbnail-container').eq(this.selectedThumbnailIndex).addClass('sp-selected-thumbnail');this.thumbnailsSize=0;$.each(this.thumbnails,function(index,thumbnail){thumbnail.setSize(that.settings.thumbnailWidth,that.settings.thumbnailHeight);that.thumbnailsSize+=that.thumbnailsOrientation==='horizontal'?thumbnail.getSize().width:thumbnail.getSize().height});if(this.thumbnailsOrientation==='horizontal'){this.$thumbnails.css({'width':this.thumbnailsSize,'height':this.settings.thumbnailHeight});this.$thumbnailsContainer.css('height','');this.thumbnailsPositionProperty='left'}else{this.$thumbnails.css({'width':this.settings.thumbnailWidth,'height':this.thumbnailsSize});this.$thumbnailsContainer.css('width','');this.thumbnailsPositionProperty='top'}
this.trigger({type:'thumbnailsUpdate'});if($.isFunction(this.settings.thumbnailsUpdate)){this.settings.thumbnailsUpdate.call(this,{type:'thumbnailsUpdate'})}},_createThumbnail:function(element,index){var that=this,thumbnail=new Thumbnail(element,this.$thumbnails,index);thumbnail.on('thumbnailClick.'+NS,function(event){that.gotoSlide(event.index)});this.thumbnails.splice(index,0,thumbnail)},_thumbnailsOnResize:function(){if(this.isThumbnailScroller===!1){return}
var that=this,newThumbnailsPosition;if(this.thumbnailsOrientation==='horizontal'){this.thumbnailsContainerSize=Math.min(this.$slidesMask.width(),this.thumbnailsSize);this.$thumbnailsContainer.css('width',this.thumbnailsContainerSize);if(this.settings.forceSize==='fullWindow'){this.$slidesMask.css('height',this.$slidesMask.height()-this.$thumbnailsContainer.outerHeight(!0));this.slideHeight=this.$slidesMask.height();this._resizeSlides();this._resetSlidesPosition()}}else if(this.thumbnailsOrientation==='vertical'){if(this.$slidesMask.width()+this.$thumbnailsContainer.outerWidth(!0)>this.$slider.parent().width()){if(this.settings.forceSize==='fullWidth'||this.settings.forceSize==='fullWindow'){this.$slider.css('max-width',$(window).width()-this.$thumbnailsContainer.outerWidth(!0))}else{this.$slider.css('max-width',this.$slider.parent().width()-this.$thumbnailsContainer.outerWidth(!0))}
this.$slidesMask.css('width',this.$slider.width());if(this.settings.orientation==='vertical'){this.slideWidth=this.$slider.width();this._resizeSlides()}
this._resetSlidesPosition()}
this.thumbnailsContainerSize=Math.min(this.$slidesMask.height(),this.thumbnailsSize);this.$thumbnailsContainer.css('height',this.thumbnailsContainerSize)}
if(this.thumbnailsSize<=this.thumbnailsContainerSize||this.$thumbnails.find('.sp-selected-thumbnail').length===0){newThumbnailsPosition=0}else{newThumbnailsPosition=Math.max(-this.thumbnails[this.selectedThumbnailIndex].getPosition()[this.thumbnailsPositionProperty],this.thumbnailsContainerSize-this.thumbnailsSize)}
if(this.settings.thumbnailsPosition==='top'){this.$slider.css({'paddingTop':this.$thumbnailsContainer.outerHeight(!0),'paddingLeft':'','paddingRight':''})}else if(this.settings.thumbnailsPosition==='bottom'){this.$slider.css({'paddingTop':'','paddingLeft':'','paddingRight':''})}else if(this.settings.thumbnailsPosition==='left'){this.$slider.css({'paddingTop':'','paddingLeft':this.$thumbnailsContainer.outerWidth(!0),'paddingRight':''})}else if(this.settings.thumbnailsPosition==='right'){this.$slider.css({'paddingTop':'','paddingLeft':'','paddingRight':this.$thumbnailsContainer.outerWidth(!0)})}
this._moveThumbnailsTo(newThumbnailsPosition,!0)},_gotoThumbnail:function(index){if(this.isThumbnailScroller===!1||typeof this.thumbnails[index]==='undefined'){return}
var previousIndex=this.selectedThumbnailIndex,newThumbnailsPosition=this.thumbnailsPosition;this.selectedThumbnailIndex=index;this.$thumbnails.find('.sp-selected-thumbnail').removeClass('sp-selected-thumbnail');this.$thumbnails.find('.sp-thumbnail-container').eq(this.selectedThumbnailIndex).addClass('sp-selected-thumbnail');if(this.settings.rightToLeft===!0&&this.thumbnailsOrientation==='horizontal'){if(this.selectedThumbnailIndex>=previousIndex){var rtlNextThumbnailIndex=this.selectedThumbnailIndex===this.thumbnails.length-1?this.selectedThumbnailIndex:this.selectedThumbnailIndex+1,rtlNextThumbnail=this.thumbnails[rtlNextThumbnailIndex];if(rtlNextThumbnail.getPosition().left<-this.thumbnailsPosition){newThumbnailsPosition=-rtlNextThumbnail.getPosition().left}}else if(this.selectedThumbnailIndex<previousIndex){var rtlPreviousThumbnailIndex=this.selectedThumbnailIndex===0?this.selectedThumbnailIndex:this.selectedThumbnailIndex-1,rtlPreviousThumbnail=this.thumbnails[rtlPreviousThumbnailIndex],rtlThumbnailsRightPosition=-this.thumbnailsPosition+this.thumbnailsContainerSize;if(rtlPreviousThumbnail.getPosition().right>rtlThumbnailsRightPosition){newThumbnailsPosition=this.thumbnailsPosition-(rtlPreviousThumbnail.getPosition().right-rtlThumbnailsRightPosition)}}}else{if(this.selectedThumbnailIndex>=previousIndex){var nextThumbnailIndex=this.selectedThumbnailIndex===this.thumbnails.length-1?this.selectedThumbnailIndex:this.selectedThumbnailIndex+1,nextThumbnail=this.thumbnails[nextThumbnailIndex],nextThumbnailPosition=this.thumbnailsOrientation==='horizontal'?nextThumbnail.getPosition().right:nextThumbnail.getPosition().bottom,thumbnailsRightPosition=-this.thumbnailsPosition+this.thumbnailsContainerSize;if(nextThumbnailPosition>thumbnailsRightPosition){newThumbnailsPosition=this.thumbnailsPosition-(nextThumbnailPosition-thumbnailsRightPosition)}}else if(this.selectedThumbnailIndex<previousIndex){var previousThumbnailIndex=this.selectedThumbnailIndex===0?this.selectedThumbnailIndex:this.selectedThumbnailIndex-1,previousThumbnail=this.thumbnails[previousThumbnailIndex],previousThumbnailPosition=this.thumbnailsOrientation==='horizontal'?previousThumbnail.getPosition().left:previousThumbnail.getPosition().top;if(previousThumbnailPosition<-this.thumbnailsPosition){newThumbnailsPosition=-previousThumbnailPosition}}}
this._moveThumbnailsTo(newThumbnailsPosition);this.trigger({type:'gotoThumbnail'});if($.isFunction(this.settings.gotoThumbnail)){this.settings.gotoThumbnail.call(this,{type:'gotoThumbnail'})}},_moveThumbnailsTo:function(position,instant,callback){var that=this,css={};if(position===this.thumbnailsPosition){return}
this.thumbnailsPosition=position;if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){var transition,left=this.thumbnailsOrientation==='horizontal'?position:0,top=this.thumbnailsOrientation==='horizontal'?0:position;if(this.supportedAnimation==='css-3d'){css[this.vendorPrefix+'transform']='translate3d('+left+'px, '+top+'px, 0)'}else{css[this.vendorPrefix+'transform']='translate('+left+'px, '+top+'px)'}
if(typeof instant!=='undefined'&&instant===!0){transition=''}else{this.$thumbnails.addClass('sp-animated');transition=this.vendorPrefix+'transform '+700/1000+'s';this.$thumbnails.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
that.$thumbnails.off(that.transitionEvent);that.$thumbnails.removeClass('sp-animated');if(typeof callback==='function'){callback()}
that.trigger({type:'thumbnailsMoveComplete'});if($.isFunction(that.settings.thumbnailsMoveComplete)){that.settings.thumbnailsMoveComplete.call(that,{type:'thumbnailsMoveComplete'})}})}
css[this.vendorPrefix+'transition']=transition;this.$thumbnails.css(css)}else{css['margin-'+this.thumbnailsPositionProperty]=position;if(typeof instant!=='undefined'&&instant===!0){this.$thumbnails.css(css)}else{this.$thumbnails.addClass('sp-animated').animate(css,700,function(){that.$thumbnails.removeClass('sp-animated');if(typeof callback==='function'){callback()}
that.trigger({type:'thumbnailsMoveComplete'});if($.isFunction(that.settings.thumbnailsMoveComplete)){that.settings.thumbnailsMoveComplete.call(that,{type:'thumbnailsMoveComplete'})}})}}},_stopThumbnailsMovement:function(){var css={};if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){var matrixString=this.$thumbnails.css(this.vendorPrefix+'transform'),matrixType=matrixString.indexOf('matrix3d')!==-1?'matrix3d':'matrix',matrixArray=matrixString.replace(matrixType,'').match(/-?[0-9\.]+/g),left=matrixType==='matrix3d'?parseInt(matrixArray[12],10):parseInt(matrixArray[4],10),top=matrixType==='matrix3d'?parseInt(matrixArray[13],10):parseInt(matrixArray[5],10);if(this.supportedAnimation==='css-3d'){css[this.vendorPrefix+'transform']='translate3d('+left+'px, '+top+'px, 0)'}else{css[this.vendorPrefix+'transform']='translate('+left+'px, '+top+'px)'}
css[this.vendorPrefix+'transition']='';this.$thumbnails.css(css);this.$thumbnails.off(this.transitionEvent);this.thumbnailsPosition=this.thumbnailsOrientation==='horizontal'?parseInt(matrixArray[4],10):parseInt(matrixArray[5],10)}else{this.$thumbnails.stop();this.thumbnailsPosition=parseInt(this.$thumbnails.css('margin-'+this.thumbnailsPositionProperty),10)}
this.$thumbnails.removeClass('sp-animated')},destroyThumbnails:function(){var that=this;this.off('update.'+NS);if(this.isThumbnailScroller===!1){return}
this.off('sliderResize.'+NS);this.off('gotoSlide.'+NS);$(window).off('resize.'+this.uniqueId+'.'+NS);this.$thumbnails.find('.sp-thumbnail').each(function(){var $thumbnail=$(this),index=parseInt($thumbnail.attr('data-index'),10),thumbnail=that.thumbnails[index];thumbnail.off('thumbnailClick.'+NS);thumbnail.destroy()});this.thumbnails.length=0;this.$thumbnails.appendTo(this.$slider);this.$thumbnailsContainer.remove();this.$slider.css({'paddingTop':'','paddingLeft':'','paddingRight':''})},thumbnailsDefaults:{thumbnailWidth:100,thumbnailHeight:80,thumbnailsPosition:'bottom',thumbnailPointer:!1,thumbnailsUpdate:function(){},gotoThumbnail:function(){},thumbnailsMoveComplete:function(){}}};var Thumbnail=function(thumbnail,thumbnails,index){this.$thumbnail=thumbnail;this.$thumbnails=thumbnails;this.$thumbnailContainer=null;this.width=0;this.height=0;this.isImageLoaded=!1;this.setIndex(index);this._init()};Thumbnail.prototype={_init:function(){var that=this;this.$thumbnail.attr('data-init',!0);this.$thumbnailContainer=$('<div class="sp-thumbnail-container"></div>').appendTo(this.$thumbnails);if(this.$thumbnail.parent('a').length!==0){this.$thumbnail.parent('a').appendTo(this.$thumbnailContainer)}else{this.$thumbnail.appendTo(this.$thumbnailContainer)}
this.$thumbnailContainer.on('click.'+NS,function(){that.trigger({type:'thumbnailClick.'+NS,index:that.index})})},setSize:function(width,height){this.width=width;this.height=height;this.$thumbnailContainer.css({'width':this.width,'height':this.height});if(this.$thumbnail.is('img')&&typeof this.$thumbnail.attr('data-src')==='undefined'){this.resizeImage()}},getSize:function(){return{width:this.$thumbnailContainer.outerWidth(!0),height:this.$thumbnailContainer.outerHeight(!0)}},getPosition:function(){return{left:this.$thumbnailContainer.position().left+parseInt(this.$thumbnailContainer.css('marginLeft'),10),right:this.$thumbnailContainer.position().left+parseInt(this.$thumbnailContainer.css('marginLeft'),10)+this.$thumbnailContainer.outerWidth(),top:this.$thumbnailContainer.position().top+parseInt(this.$thumbnailContainer.css('marginTop'),10),bottom:this.$thumbnailContainer.position().top+parseInt(this.$thumbnailContainer.css('marginTop'),10)+this.$thumbnailContainer.outerHeight()}},setIndex:function(index){this.index=index;this.$thumbnail.attr('data-index',this.index)},resizeImage:function(){var that=this;if(this.isImageLoaded===!1){SliderProUtils.checkImagesComplete(this.$thumbnailContainer,function(){that.isImageLoaded=!0;that.resizeImage()});return}
this.$thumbnail=this.$thumbnailContainer.find('.sp-thumbnail');var imageWidth=this.$thumbnail.width(),imageHeight=this.$thumbnail.height();if(imageWidth/imageHeight<=this.width/this.height){this.$thumbnail.css({width:'100%',height:'auto'})}else{this.$thumbnail.css({width:'auto',height:'100%'})}
this.$thumbnail.css({'marginLeft':(this.$thumbnailContainer.width()-this.$thumbnail.width())*0.5,'marginTop':(this.$thumbnailContainer.height()-this.$thumbnail.height())*0.5})},destroy:function(){this.$thumbnailContainer.off('click.'+NS);this.$thumbnail.removeAttr('data-init');this.$thumbnail.removeAttr('data-index');if(this.$thumbnail.parent('a').length!==0){this.$thumbnail.parent('a').insertBefore(this.$thumbnailContainer)}else{this.$thumbnail.insertBefore(this.$thumbnailContainer)}
this.$thumbnailContainer.remove()},on:function(type,callback){return this.$thumbnailContainer.on(type,callback)},off:function(type){return this.$thumbnailContainer.off(type)},trigger:function(data){return this.$thumbnailContainer.triggerHandler(data)}};$.SliderPro.addModule('Thumbnails',Thumbnails)})(window,jQuery);(function(window,$){"use strict";var NS='ConditionalImages.'+$.SliderPro.namespace;var ConditionalImages={previousImageSize:null,currentImageSize:null,isRetinaScreen:!1,initConditionalImages:function(){this.currentImageSize=this.previousImageSize='default';this.isRetinaScreen=(typeof this._isRetina!=='undefined')&&(this._isRetina()===!0);this.on('update.'+NS,$.proxy(this._conditionalImagesOnUpdate,this));this.on('sliderResize.'+NS,$.proxy(this._conditionalImagesOnResize,this))},_conditionalImagesOnUpdate:function(){$.each(this.slides,function(index,element){var $slide=element.$slide;$slide.find('img:not([ data-default ])').each(function(){var $image=$(this);if(typeof $image.attr('data-src')!=='undefined'){$image.attr('data-default',$image.attr('data-src'))}else{$image.attr('data-default',$image.attr('src'))}})})},_conditionalImagesOnResize:function(){if(this.slideWidth<=this.settings.smallSize){this.currentImageSize='small'}else if(this.slideWidth<=this.settings.mediumSize){this.currentImageSize='medium'}else if(this.slideWidth<=this.settings.largeSize){this.currentImageSize='large'}else{this.currentImageSize='default'}
if(this.previousImageSize!==this.currentImageSize){var that=this;$.each(this.slides,function(index,element){var $slide=element.$slide;$slide.find('img').each(function(){var $image=$(this),imageSource='';if(that.isRetinaScreen===!0&&typeof $image.attr('data-retina'+that.currentImageSize)!=='undefined'){imageSource=$image.attr('data-retina'+that.currentImageSize);if(typeof $image.attr('data-retina')!=='undefined'&&$image.attr('data-retina')!==imageSource){$image.attr('data-retina',imageSource)}}else if((that.isRetinaScreen===!1||that.isRetinaScreen===!0&&typeof $image.attr('data-retina')==='undefined')&&typeof $image.attr('data-'+that.currentImageSize)!=='undefined'){imageSource=$image.attr('data-'+that.currentImageSize);if(typeof $image.attr('data-src')!=='undefined'&&$image.attr('data-src')!==imageSource){$image.attr('data-src',imageSource)}}
if(imageSource!==''){if(typeof $image.attr('data-src')==='undefined'&&$image.attr('src')!==imageSource){that._loadConditionalImage($image,imageSource,function(newImage){if(newImage.hasClass('sp-image')){element.$mainImage=newImage;element.resizeMainImage(!0)}})}}})});this.previousImageSize=this.currentImageSize}},_loadConditionalImage:function(image,source,callback){var newImage=$(new Image());newImage.attr('class',image.attr('class'));newImage.attr('style',image.attr('style'));$.each(image.data(),function(name,value){newImage.attr('data-'+name,value)});if(typeof image.attr('width')!=='undefined'){newImage.attr('width',image.attr('width'))}
if(typeof image.attr('height')!=='undefined'){newImage.attr('height',image.attr('height'))}
if(typeof image.attr('alt')!=='undefined'){newImage.attr('alt',image.attr('alt'))}
if(typeof image.attr('title')!=='undefined'){newImage.attr('title',image.attr('title'))}
newImage.attr('src',source);newImage.insertAfter(image);image.remove();image=null;if(typeof callback==='function'){callback(newImage)}},destroyConditionalImages:function(){this.off('update.'+NS);this.off('sliderResize.'+NS)},conditionalImagesDefaults:{smallSize:480,mediumSize:768,largeSize:1024}};$.SliderPro.addModule('ConditionalImages',ConditionalImages)})(window,jQuery);(function(window,$){"use strict";var NS='Retina.'+$.SliderPro.namespace;var Retina={initRetina:function(){var that=this;if(this._isRetina()===!1){return}
this.on('update.'+NS,$.proxy(this._checkRetinaImages,this));if(this.$slider.find('.sp-thumbnail').length!==0){this.on('update.Thumbnails.'+NS,$.proxy(this._checkRetinaThumbnailImages,this))}},_isRetina:function(){if(window.devicePixelRatio>=2){return!0}
if(window.matchMedia&&(window.matchMedia("(-webkit-min-device-pixel-ratio: 2),(min-resolution: 2dppx)").matches)){return!0}
return!1},_checkRetinaImages:function(){var that=this;$.each(this.slides,function(index,element){var $slide=element.$slide;if(typeof $slide.attr('data-retina-loaded')==='undefined'){$slide.attr('data-retina-loaded',!0);$slide.find('img[data-retina]').each(function(){var $image=$(this);if(typeof $image.attr('data-src')!=='undefined'){$image.attr('data-src',$image.attr('data-retina'))}else{that._loadRetinaImage($image,function(newImage){if(newImage.hasClass('sp-image')){element.$mainImage=newImage;element.resizeMainImage(!0)}})}})}})},_checkRetinaThumbnailImages:function(){var that=this;$.each(this.thumbnails,function(index,element){var $thumbnail=element.$thumbnailContainer;if(typeof $thumbnail.attr('data-retina-loaded')==='undefined'){$thumbnail.attr('data-retina-loaded',!0);$thumbnail.find('img[data-retina]').each(function(){var $image=$(this);if(typeof $image.attr('data-src')!=='undefined'){$image.attr('data-src',$image.attr('data-retina'))}else{that._loadRetinaImage($image,function(newImage){if(newImage.hasClass('sp-thumbnail')){element.resizeImage()}})}})}})},_loadRetinaImage:function(image,callback){var retinaFound=!1,newImagePath='';if(typeof image.attr('data-retina')!=='undefined'){retinaFound=!0;newImagePath=image.attr('data-retina')}
if(typeof image.attr('data-src')!=='undefined'){if(retinaFound===!1){newImagePath=image.attr('data-src')}
image.removeAttr('data-src')}
if(newImagePath===''){return}
var newImage=$(new Image());newImage.attr('class',image.attr('class'));newImage.attr('style',image.attr('style'));$.each(image.data(),function(name,value){newImage.attr('data-'+name,value)});if(typeof image.attr('width')!=='undefined'){newImage.attr('width',image.attr('width'))}
if(typeof image.attr('height')!=='undefined'){newImage.attr('height',image.attr('height'))}
if(typeof image.attr('alt')!=='undefined'){newImage.attr('alt',image.attr('alt'))}
if(typeof image.attr('title')!=='undefined'){newImage.attr('title',image.attr('title'))}
newImage.insertAfter(image);image.remove();image=null;newImage.attr('src',newImagePath);if(typeof callback==='function'){callback(newImage)}},destroyRetina:function(){this.off('update.'+NS);this.off('update.Thumbnails.'+NS)}};$.SliderPro.addModule('Retina',Retina)})(window,jQuery);(function(window,$){"use strict";var NS='LazyLoading.'+$.SliderPro.namespace;var LazyLoading={allowLazyLoadingCheck:!0,initLazyLoading:function(){var that=this;this.on('sliderResize.'+NS,$.proxy(this._lazyLoadingOnResize,this));this.on('gotoSlide.'+NS,$.proxy(this._checkAndLoadVisibleImages,this));this.on('thumbnailsUpdate.'+NS+' '+'thumbnailsMoveComplete.'+NS,$.proxy(this._checkAndLoadVisibleThumbnailImages,this))},_lazyLoadingOnResize:function(){var that=this;if(this.allowLazyLoadingCheck===!1){return}
this.allowLazyLoadingCheck=!1;this._checkAndLoadVisibleImages();if(this.$slider.find('.sp-thumbnail').length!==0){this._checkAndLoadVisibleThumbnailImages()}
setTimeout(function(){that.allowLazyLoadingCheck=!0},500)},_checkAndLoadVisibleImages:function(){if(this.$slider.find('.sp-slide:not([ data-loaded ])').length===0){return}
var that=this,referencePosition=this.settings.loop===!0?this.middleSlidePosition:this.selectedSlideIndex,visibleOnSides=Math.ceil((parseInt(this.$slidesMask.css(this.sizeProperty),10)-this.averageSlideSize)/2/this.averageSlideSize),from=referencePosition-visibleOnSides-1>0?referencePosition-visibleOnSides-1:0,to=referencePosition+visibleOnSides+1<this.getTotalSlides()-1?referencePosition+visibleOnSides+1:this.getTotalSlides()-1,slidesToCheck=this.slidesOrder.slice(from,to+1);$.each(slidesToCheck,function(index,element){var slide=that.slides[element],$slide=slide.$slide;if(typeof $slide.attr('data-loaded')==='undefined'){$slide.attr('data-loaded',!0);$slide.find('img[ data-src ]').each(function(){var image=$(this);that._loadImage(image,function(newImage){if(newImage.hasClass('sp-image')){slide.$mainImage=newImage;slide.resizeMainImage(!0)}})})}})},_checkAndLoadVisibleThumbnailImages:function(){if(this.$slider.find('.sp-thumbnail-container:not([ data-loaded ])').length===0){return}
var that=this,thumbnailSize=this.thumbnailsSize/this.thumbnails.length,from=Math.floor(Math.abs(this.thumbnailsPosition/thumbnailSize)),to=Math.floor((-this.thumbnailsPosition+this.thumbnailsContainerSize)/thumbnailSize),thumbnailsToCheck=this.thumbnails.slice(from,to+1);$.each(thumbnailsToCheck,function(index,element){var $thumbnailContainer=element.$thumbnailContainer;if(typeof $thumbnailContainer.attr('data-loaded')==='undefined'){$thumbnailContainer.attr('data-loaded',!0);$thumbnailContainer.find('img[ data-src ]').each(function(){var image=$(this);that._loadImage(image,function(){element.resizeImage()})})}})},_loadImage:function(image,callback){var newImage=$(new Image());newImage.attr('class',image.attr('class'));newImage.attr('style',image.attr('style'));$.each(image.data(),function(name,value){newImage.attr('data-'+name,value)});if(typeof image.attr('width')!=='undefined'){newImage.attr('width',image.attr('width'))}
if(typeof image.attr('height')!=='undefined'){newImage.attr('height',image.attr('height'))}
if(typeof image.attr('alt')!=='undefined'){newImage.attr('alt',image.attr('alt'))}
if(typeof image.attr('title')!=='undefined'){newImage.attr('title',image.attr('title'))}
newImage.attr('src',image.attr('data-src'));newImage.removeAttr('data-src');newImage.insertAfter(image);image.remove();image=null;if(typeof callback==='function'){callback(newImage)}},destroyLazyLoading:function(){this.off('update.'+NS);this.off('gotoSlide.'+NS);this.off('sliderResize.'+NS);this.off('thumbnailsUpdate.'+NS);this.off('thumbnailsMoveComplete.'+NS)}};$.SliderPro.addModule('LazyLoading',LazyLoading)})(window,jQuery);(function(window,$){"use strict";var NS='Layers.'+$.SliderPro.namespace;var Layers={layersGotoSlideReference:null,waitForLayersTimer:null,initLayers:function(){this.on('update.'+NS,$.proxy(this._layersOnUpdate,this));this.on('sliderResize.'+NS,$.proxy(this._layersOnResize,this));this.on('gotoSlide.'+NS,$.proxy(this._layersOnGotoSlide,this))},_layersOnUpdate:function(event){var that=this;$.each(this.slides,function(index,element){var $slide=element.$slide;this.$slide.find('.sp-layer:not([ data-layer-init ])' ).each(function(){var layer=new Layer($(this));if(typeof element.layers==='undefined'){element.layers=[]}
element.layers.push(layer);if($(this).hasClass('sp-static')===!1){if(typeof element.animatedLayers==='undefined'){element.animatedLayers=[]}
element.animatedLayers.push(layer)}})});if(this.settings.waitForLayers===!0){clearTimeout(this.waitForLayersTimer);this.waitForLayersTimer=setTimeout(function(){that.layersGotoSlideReference=that.gotoSlide;that.gotoSlide=that._layersGotoSlide},1)}
setTimeout(function(){that.showLayers(that.selectedSlideIndex)},1)},_layersOnResize:function(){var that=this,autoScaleReference,useAutoScale=this.settings.autoScaleLayers,scaleRatio;if(this.settings.autoScaleLayers===!1){return}
if(this.settings.autoScaleReference===-1){if(typeof this.settings.width==='string'&&this.settings.width.indexOf('%')!==-1){useAutoScale=!1}else{autoScaleReference=parseInt(this.settings.width,10)}}else{autoScaleReference=this.settings.autoScaleReference}
if(useAutoScale===!0&&this.slideWidth<autoScaleReference){scaleRatio=that.slideWidth/autoScaleReference}else{scaleRatio=1}
$.each(this.slides,function(index,slide){if(typeof slide.layers!=='undefined'){$.each(slide.layers,function(index,layer){layer.scale(scaleRatio)})}})},_layersGotoSlide:function(index){var that=this,animatedLayers=this.slides[this.selectedSlideIndex].animatedLayers;if(this.$slider.hasClass('sp-swiping')||typeof animatedLayers==='undefined'||animatedLayers.length===0){this.layersGotoSlideReference(index)}else{this.on('hideLayersComplete.'+NS,function(){that.off('hideLayersComplete.'+NS);that.layersGotoSlideReference(index)});this.hideLayers(this.selectedSlideIndex)}},_layersOnGotoSlide:function(event){if(this.previousSlideIndex!==this.selectedSlideIndex){this.hideLayers(this.previousSlideIndex)}
this.showLayers(this.selectedSlideIndex)},showLayers:function(index){var that=this,animatedLayers=this.slides[index].animatedLayers,layerCounter=0;if(typeof animatedLayers==='undefined'){return}
$.each(animatedLayers,function(index,element){if(element.isVisible()===!0){layerCounter++;if(layerCounter===animatedLayers.length){that.trigger({type:'showLayersComplete',index:index});if($.isFunction(that.settings.showLayersComplete)){that.settings.showLayersComplete.call(that,{type:'showLayersComplete',index:index})}}}else{element.show(function(){layerCounter++;if(layerCounter===animatedLayers.length){that.trigger({type:'showLayersComplete',index:index});if($.isFunction(that.settings.showLayersComplete)){that.settings.showLayersComplete.call(that,{type:'showLayersComplete',index:index})}}})}})},hideLayers:function(index){var that=this,animatedLayers=this.slides[index].animatedLayers,layerCounter=0;if(typeof animatedLayers==='undefined'){return}
$.each(animatedLayers,function(index,element){if(element.isVisible()===!1){layerCounter++;if(layerCounter===animatedLayers.length){that.trigger({type:'hideLayersComplete',index:index});if($.isFunction(that.settings.hideLayersComplete)){that.settings.hideLayersComplete.call(that,{type:'hideLayersComplete',index:index})}}}else{element.hide(function(){layerCounter++;if(layerCounter===animatedLayers.length){that.trigger({type:'hideLayersComplete',index:index});if($.isFunction(that.settings.hideLayersComplete)){that.settings.hideLayersComplete.call(that,{type:'hideLayersComplete',index:index})}}})}})},destroyLayers:function(){this.off('update.'+NS);this.off('resize.'+NS);this.off('gotoSlide.'+NS);this.off('hideLayersComplete.'+NS)},layersDefaults:{waitForLayers:!1,autoScaleLayers:!0,autoScaleReference:-1,showLayersComplete:function(){},hideLayersComplete:function(){}}};var slideDestroy=window.SliderProSlide.prototype.destroy;window.SliderProSlide.prototype.destroy=function(){if(typeof this.layers!=='undefined'){$.each(this.layers,function(index,element){element.destroy()});this.layers.length=0}
if(typeof this.animatedLayers!=='undefined'){this.animatedLayers.length=0}
slideDestroy.apply(this)};var Layer=function(layer){this.$layer=layer;this.visible=!1;this.styled=!1;this.data=null;this.position=null;this.horizontalProperty=null;this.verticalProperty=null;this.horizontalPosition=null;this.verticalPosition=null;this.scaleRatio=1;this.supportedAnimation=SliderProUtils.getSupportedAnimation();this.vendorPrefix=SliderProUtils.getVendorPrefix();this.transitionEvent=SliderProUtils.getTransitionEvent();this.stayTimer=null;this._init()};Layer.prototype={_init:function(){this.$layer.attr('data-layer-init',!0);if(this.$layer.hasClass('sp-static')){this._setStyle()}else{this.$layer.css({'visibility':'hidden'})}},_setStyle:function(){this.styled=!0;this.data=this.$layer.data();if(typeof this.data.width!=='undefined'){this.$layer.css('width',this.data.width)}
if(typeof this.data.height!=='undefined'){this.$layer.css('height',this.data.height)}
if(typeof this.data.depth!=='undefined'){this.$layer.css('z-index',this.data.depth)}
this.position=this.data.position?(this.data.position).toLowerCase():'topleft';if(this.position.indexOf('right')!==-1){this.horizontalProperty='right'}else if(this.position.indexOf('left')!==-1){this.horizontalProperty='left'}else{this.horizontalProperty='center'}
if(this.position.indexOf('bottom')!==-1){this.verticalProperty='bottom'}else if(this.position.indexOf('top')!==-1){this.verticalProperty='top'}else{this.verticalProperty='center'}
this._setPosition();this.scale(this.scaleRatio)},_setPosition:function(){var inlineStyle=this.$layer.attr('style');this.horizontalPosition=typeof this.data.horizontal!=='undefined'?this.data.horizontal:0;this.verticalPosition=typeof this.data.vertical!=='undefined'?this.data.vertical:0;if(this.horizontalProperty==='center'){if(this.$layer.is('img')===!1&&(typeof inlineStyle==='undefined'||(typeof inlineStyle!=='undefined'&&inlineStyle.indexOf('width')===-1))){this.$layer.css('white-space','nowrap');this.$layer.css('width',this.$layer.outerWidth(!0))}
this.$layer.css({'marginLeft':'auto','marginRight':'auto','left':this.horizontalPosition,'right':0})}else{this.$layer.css(this.horizontalProperty,this.horizontalPosition)}
if(this.verticalProperty==='center'){if(this.$layer.is('img')===!1&&(typeof inlineStyle==='undefined'||(typeof inlineStyle!=='undefined'&&inlineStyle.indexOf('height')===-1))){this.$layer.css('white-space','nowrap');this.$layer.css('height',this.$layer.outerHeight(!0))}
this.$layer.css({'marginTop':'auto','marginBottom':'auto','top':this.verticalPosition,'bottom':0})}else{this.$layer.css(this.verticalProperty,this.verticalPosition)}},scale:function(ratio){if(this.$layer.hasClass('sp-no-scale')){return}
this.scaleRatio=ratio;if(this.styled===!1){return}
var horizontalProperty=this.horizontalProperty==='center'?'left':this.horizontalProperty,verticalProperty=this.verticalProperty==='center'?'top':this.verticalProperty,css={};css[this.vendorPrefix+'transform-origin']=this.horizontalProperty+' '+this.verticalProperty;css[this.vendorPrefix+'transform']='scale('+this.scaleRatio+')';if(typeof this.horizontalPosition!=='string'){css[horizontalProperty]=this.horizontalPosition*this.scaleRatio}
if(typeof this.verticalPosition!=='string'){css[verticalProperty]=this.verticalPosition*this.scaleRatio}
if(typeof this.data.width==='string'&&this.data.width.indexOf('%')!==-1){css.width=(parseInt(this.data.width,10)/this.scaleRatio).toString()+'%'}
if(typeof this.data.height==='string'&&this.data.height.indexOf('%')!==-1){css.height=(parseInt(this.data.height,10)/this.scaleRatio).toString()+'%'}
this.$layer.css(css)},show:function(callback){if(this.visible===!0){return}
this.visible=!0;if(this.styled===!1){this._setStyle()}
var that=this,offset=typeof this.data.showOffset!=='undefined'?this.data.showOffset:50,duration=typeof this.data.showDuration!=='undefined'?this.data.showDuration/1000:0.4,delay=typeof this.data.showDelay!=='undefined'?this.data.showDelay:10,stayDuration=typeof that.data.stayDuration!=='undefined'?parseInt(that.data.stayDuration,10):-1;if(this.supportedAnimation==='javascript'){this.$layer.stop().delay(delay).css({'opacity':0,'visibility':'visible'}).animate({'opacity':1},duration*1000,function(){if(stayDuration!==-1){that.stayTimer=setTimeout(function(){that.hide();that.stayTimer=null},stayDuration)}
if(typeof callback!=='undefined'){callback()}})}else{var start={'opacity':0,'visibility':'visible'},target={'opacity':1},transformValues='';start[this.vendorPrefix+'transform']='scale('+this.scaleRatio+')';target[this.vendorPrefix+'transform']='scale('+this.scaleRatio+')';target[this.vendorPrefix+'transition']='opacity '+duration+'s';if(typeof this.data.showTransition!=='undefined'){if(this.data.showTransition==='left'){transformValues=offset+'px, 0'}else if(this.data.showTransition==='right'){transformValues='-'+offset+'px, 0'}else if(this.data.showTransition==='up'){transformValues='0, '+offset+'px'}else if(this.data.showTransition==='down'){transformValues='0, -'+offset+'px'}
start[this.vendorPrefix+'transform']+=this.supportedAnimation==='css-3d'?' translate3d('+transformValues+', 0)':' translate('+transformValues+')';target[this.vendorPrefix+'transform']+=this.supportedAnimation==='css-3d'?' translate3d(0, 0, 0)':' translate(0, 0)';target[this.vendorPrefix+'transition']+=', '+this.vendorPrefix+'transform '+duration+'s'}
this.$layer.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
that.$layer.off(that.transitionEvent).css(that.vendorPrefix+'transition','');if(stayDuration!==-1){that.stayTimer=setTimeout(function(){that.hide();that.stayTimer=null},stayDuration)}
if(typeof callback!=='undefined'){callback()}});this.$layer.css(start);setTimeout(function(){that.$layer.css(target)},delay)}},hide:function(callback){if(this.visible===!1){return}
var that=this,offset=typeof this.data.hideOffset!=='undefined'?this.data.hideOffset:50,duration=typeof this.data.hideDuration!=='undefined'?this.data.hideDuration/1000:0.4,delay=typeof this.data.hideDelay!=='undefined'?this.data.hideDelay:10;this.visible=!1;if(this.stayTimer!==null){clearTimeout(this.stayTimer)}
if(this.supportedAnimation==='javascript'){this.$layer.stop().delay(delay).animate({'opacity':0},duration*1000,function(){$(this).css('visibility','hidden');if(typeof callback!=='undefined'){callback()}})}else{var transformValues='',target={'opacity':0};target[this.vendorPrefix+'transform']='scale('+this.scaleRatio+')';target[this.vendorPrefix+'transition']='opacity '+duration+'s';if(typeof this.data.hideTransition!=='undefined'){if(this.data.hideTransition==='left'){transformValues='-'+offset+'px, 0'}else if(this.data.hideTransition==='right'){transformValues=offset+'px, 0'}else if(this.data.hideTransition==='up'){transformValues='0, -'+offset+'px'}else if(this.data.hideTransition==='down'){transformValues='0, '+offset+'px'}
target[this.vendorPrefix+'transform']+=this.supportedAnimation==='css-3d'?' translate3d('+transformValues+', 0)':' translate('+transformValues+')';target[this.vendorPrefix+'transition']+=', '+this.vendorPrefix+'transform '+duration+'s'}
this.$layer.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
that.$layer.off(that.transitionEvent).css(that.vendorPrefix+'transition','');if(that.visible===!1){that.$layer.css('visibility','hidden')}
if(typeof callback!=='undefined'){callback()}});setTimeout(function(){that.$layer.css(target)},delay)}},isVisible:function(){if(this.visible===!1||this.$layer.is(':hidden')){return!1}
return!0},destroy:function(){this.$layer.removeAttr('style');this.$layer.removeAttr('data-layer-init')}};$.SliderPro.addModule('Layers',Layers)})(window,jQuery);(function(window,$){"use strict";var NS='Fade.'+$.SliderPro.namespace;var Fade={fadeGotoSlideReference:null,initFade:function(){this.on('update.'+NS,$.proxy(this._fadeOnUpdate,this))},_fadeOnUpdate:function(){if(this.settings.fade===!0){this.fadeGotoSlideReference=this.gotoSlide;this.gotoSlide=this._fadeGotoSlide}},_fadeGotoSlide:function(index){if(index===this.selectedSlideIndex){return}
if(this.$slider.hasClass('sp-swiping')){this.fadeGotoSlideReference(index)}else{var that=this,$nextSlide,$previousSlide,newIndex=index;$.each(this.slides,function(index,element){var slideIndex=element.getIndex(),$slide=element.$slide;if(slideIndex===newIndex){$slide.css({'opacity':0,'left':0,'top':0,'z-index':20,visibility:'visible'});$nextSlide=$slide}else if(slideIndex===that.selectedSlideIndex){$slide.css({'opacity':1,'left':0,'top':0,'z-index':10,visibility:'visible'});$previousSlide=$slide}else{$slide.css({'opacity':1,visibility:'hidden','z-index':''})}});this.previousSlideIndex=this.selectedSlideIndex;this.selectedSlideIndex=index;this.$slides.find('.sp-selected').removeClass('sp-selected');this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).addClass('sp-selected');if(that.settings.loop===!0){that._updateSlidesOrder()}
this._moveTo(0,!0);this._fadeSlideTo($nextSlide,1,function(){var allTransitionsComplete=!0;$.each(that.slides,function(index,element){if(typeof element.$slide.attr('data-transitioning')!=='undefined'){allTransitionsComplete=!1}});if(allTransitionsComplete===!0){$.each(that.slides,function(index,element){var $slide=element.$slide;$slide.css({'visibility':'','opacity':'','z-index':''})});that._resetSlidesPosition()}
that.trigger({type:'gotoSlideComplete',index:index,previousIndex:that.previousSlideIndex});if($.isFunction(that.settings.gotoSlideComplete)){that.settings.gotoSlideComplete.call(that,{type:'gotoSlideComplete',index:index,previousIndex:that.previousSlideIndex})}});if(this.settings.fadeOutPreviousSlide===!0){this._fadeSlideTo($previousSlide,0)}
if(this.settings.autoHeight===!0){this._resizeHeight()}
this.trigger({type:'gotoSlide',index:index,previousIndex:this.previousSlideIndex});if($.isFunction(this.settings.gotoSlide)){this.settings.gotoSlide.call(this,{type:'gotoSlide',index:index,previousIndex:this.previousSlideIndex})}}},_fadeSlideTo:function(target,opacity,callback){var that=this;if(opacity===1){target.attr('data-transitioning',!0)}
if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){setTimeout(function(){var css={'opacity':opacity};css[that.vendorPrefix+'transition']='opacity '+that.settings.fadeDuration/1000+'s';target.css(css)},100);target.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
target.off(that.transitionEvent);target.css(that.vendorPrefix+'transition','');target.removeAttr('data-transitioning');if(typeof callback==='function'){callback()}})}else{target.stop().animate({'opacity':opacity},this.settings.fadeDuration,function(){target.removeAttr('data-transitioning');if(typeof callback==='function'){callback()}})}},destroyFade:function(){this.off('update.'+NS);if(this.fadeGotoSlideReference!==null){this.gotoSlide=this.fadeGotoSlideReference}},fadeDefaults:{fade:!1,fadeOutPreviousSlide:!0,fadeDuration:500}};$.SliderPro.addModule('Fade',Fade)})(window,jQuery);(function(window,$){"use strict";var NS='TouchSwipe.'+$.SliderPro.namespace;var TouchSwipe={touchStartPoint:{x:0,y:0},touchEndPoint:{x:0,y:0},touchDistance:{x:0,y:0},touchStartPosition:0,isTouchMoving:!1,touchSwipeEvents:{startEvent:'',moveEvent:'',endEvent:''},initTouchSwipe:function(){var that=this;if(this.settings.touchSwipe===!1){return}
this.touchSwipeEvents.startEvent='touchstart'+'.'+NS+' mousedown'+'.'+NS;this.touchSwipeEvents.moveEvent='touchmove'+'.'+NS+' mousemove'+'.'+NS;this.touchSwipeEvents.endEvent='touchend'+'.'+this.uniqueId+'.'+NS+' mouseup'+'.'+this.uniqueId+'.'+NS;this.$slidesMask.on(this.touchSwipeEvents.startEvent,$.proxy(this._onTouchStart,this));this.$slidesMask.on('dragstart.'+NS,function(event){event.preventDefault()});this.$slidesMask.addClass('sp-grab')},_onTouchStart:function(event){if($(event.target).closest('.sp-selectable').length>=1){return}
var that=this,eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;if(typeof event.originalEvent.touches==='undefined'){event.preventDefault()}
$(event.target).parents('.sp-slide').find('a').one('click.'+NS,function(event){event.preventDefault()});this.touchStartPoint.x=eventObject.pageX||eventObject.clientX;this.touchStartPoint.y=eventObject.pageY||eventObject.clientY;this.touchStartPosition=this.slidesPosition;this.touchDistance.x=this.touchDistance.y=0;if(this.$slides.hasClass('sp-animated')){this.isTouchMoving=!0;this._stopMovement();this.touchStartPosition=this.slidesPosition}
this.$slidesMask.on(this.touchSwipeEvents.moveEvent,$.proxy(this._onTouchMove,this));$(document).on(this.touchSwipeEvents.endEvent,$.proxy(this._onTouchEnd,this));this.$slidesMask.removeClass('sp-grab').addClass('sp-grabbing');this.$slider.addClass('sp-swiping')},_onTouchMove:function(event){var eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;this.isTouchMoving=!0;this.touchEndPoint.x=eventObject.pageX||eventObject.clientX;this.touchEndPoint.y=eventObject.pageY||eventObject.clientY;this.touchDistance.x=this.touchEndPoint.x-this.touchStartPoint.x;this.touchDistance.y=this.touchEndPoint.y-this.touchStartPoint.y;var distance=this.settings.orientation==='horizontal'?this.touchDistance.x:this.touchDistance.y,oppositeDistance=this.settings.orientation==='horizontal'?this.touchDistance.y:this.touchDistance.x;if(Math.abs(distance)>Math.abs(oppositeDistance)){event.preventDefault()}else{return}
if(this.settings.loop===!1){if((this.slidesPosition>this.touchStartPosition&&this.selectedSlideIndex===0)||(this.slidesPosition<this.touchStartPosition&&this.selectedSlideIndex===this.getTotalSlides()-1)){distance=distance*0.2}}
this._moveTo(this.touchStartPosition+distance,!0)},_onTouchEnd:function(event){var that=this,touchDistance=this.settings.orientation==='horizontal'?this.touchDistance.x:this.touchDistance.y;this.$slidesMask.off(this.touchSwipeEvents.moveEvent);$(document).off(this.touchSwipeEvents.endEvent);this.$slidesMask.removeClass('sp-grabbing').addClass('sp-grab');if(this.isTouchMoving===!1||this.isTouchMoving===!0&&Math.abs(this.touchDistance.x)<10&&Math.abs(this.touchDistance.y)<10){$(event.target).parents('.sp-slide').find('a').off('click.'+NS);this.$slider.removeClass('sp-swiping')}
setTimeout(function(){that.$slider.removeClass('sp-swiping')},1);if(this.isTouchMoving===!1){return}
this.isTouchMoving=!1;$(event.target).parents('.sp-slide').one('click',function(event){event.preventDefault()});var selectedSlideOffset=this.settings.centerSelectedSlide===!0?Math.round((parseInt(this.$slidesMask.css(this.sizeProperty),10)-this.getSlideAt(this.selectedSlideIndex).getSize()[this.sizeProperty])/2):0,oldSlidesPosition=-parseInt(this.$slides.find('.sp-slide').eq(this.selectedSlideIndex).css(this.positionProperty),10)+selectedSlideOffset;if(Math.abs(touchDistance)<this.settings.touchSwipeThreshold){this._moveTo(oldSlidesPosition)}else{var slideArrayDistance=(this.settings.rightToLeft===!0&&this.settings.orientation==='horizontal'?-1:1)*touchDistance/(this.averageSlideSize+this.settings.slideDistance);slideArrayDistance=parseInt(slideArrayDistance,10)+(slideArrayDistance>0?1:-1);var nextSlideIndex=this.slidesOrder[$.inArray(this.selectedSlideIndex,this.slidesOrder)-slideArrayDistance];if(this.settings.loop===!0){this.gotoSlide(nextSlideIndex)}else{if(typeof nextSlideIndex!=='undefined'){this.gotoSlide(nextSlideIndex)}else{this._moveTo(oldSlidesPosition)}}}},destroyTouchSwipe:function(){this.$slidesMask.off(this.touchSwipeEvents.startEvent);this.$slidesMask.off(this.touchSwipeEvents.moveEvent);this.$slidesMask.off('dragstart.'+NS);$(document).off(this.touchSwipeEvents.endEvent);this.$slidesMask.removeClass('sp-grab')},touchSwipeDefaults:{touchSwipe:!0,touchSwipeThreshold:50}};$.SliderPro.addModule('TouchSwipe',TouchSwipe)})(window,jQuery);(function(window,$){"use strict";var NS='Caption.'+$.SliderPro.namespace;var Caption={$captionContainer:null,captionContent:'',initCaption:function(){this.on('update.'+NS,$.proxy(this._captionOnUpdate,this));this.on('gotoSlide.'+NS,$.proxy(this._updateCaptionContent,this))},_captionOnUpdate:function(){this.$captionContainer=this.$slider.find('.sp-caption-container');if(this.$slider.find('.sp-caption').length&&this.$captionContainer.length===0){this.$captionContainer=$('<div class="sp-caption-container"></div>').appendTo(this.$slider);this._updateCaptionContent()}
this.$slides.find('.sp-caption').each(function(){$(this).css('display','none')})},_updateCaptionContent:function(){var that=this,newCaptionField=this.$slider.find('.sp-slide').eq(this.selectedSlideIndex).find('.sp-caption'),newCaptionContent=newCaptionField.length!==0?newCaptionField.html():'';if(this.settings.fadeCaption===!0){if(this.captionContent!==''){if(parseFloat(this.$captionContainer.css('opacity'),10)===0){this.$captionContainer.css(this.vendorPrefix+'transition','');this.$captionContainer.css('opacity',1)}
this._fadeCaptionTo(0,function(){that.captionContent=newCaptionContent;if(newCaptionContent!==''){that.$captionContainer.html(that.captionContent);that._fadeCaptionTo(1)}else{that.$captionContainer.empty()}})}else{this.captionContent=newCaptionContent;this.$captionContainer.html(this.captionContent);this.$captionContainer.css('opacity',0);this._fadeCaptionTo(1)}}else{this.captionContent=newCaptionContent;this.$captionContainer.html(this.captionContent)}},_fadeCaptionTo:function(opacity,callback){var that=this;if(this.supportedAnimation==='css-3d'||this.supportedAnimation==='css-2d'){setTimeout(function(){var css={'opacity':opacity};css[that.vendorPrefix+'transition']='opacity '+that.settings.captionFadeDuration/1000+'s';that.$captionContainer.css(css)},1);this.$captionContainer.on(this.transitionEvent,function(event){if(event.target!==event.currentTarget){return}
that.$captionContainer.off(that.transitionEvent);that.$captionContainer.css(that.vendorPrefix+'transition','');if(typeof callback==='function'){callback()}})}else{this.$captionContainer.stop().animate({'opacity':opacity},this.settings.captionFadeDuration,function(){if(typeof callback==='function'){callback()}})}},destroyCaption:function(){this.off('update.'+NS);this.off('gotoSlide.'+NS);this.$captionContainer.remove();this.$slider.find('.sp-caption').each(function(){$(this).css('display','')})},captionDefaults:{fadeCaption:!0,captionFadeDuration:500}};$.SliderPro.addModule('Caption',Caption)})(window,jQuery);(function(window,$){"use strict";var NS='DeepLinking.'+$.SliderPro.namespace;var DeepLinking={initDeepLinking:function(){var that=this;this.on('init.'+NS,function(){that._gotoHash(window.location.hash)});this.on('gotoSlide.'+NS,function(event){if(that.settings.updateHash===!0){var slideId=that.$slider.find('.sp-slide').eq(event.index).attr('id');if(typeof slideId==='undefined'){slideId=event.index}
window.location.hash=that.$slider.attr('id')+'/'+slideId}});$(window).on('hashchange.'+this.uniqueId+'.'+NS,function(){that._gotoHash(window.location.hash)})},_parseHash:function(hash){if(hash!==''){hash=hash.substring(1);var values=hash.split('/'),slideId=values.pop(),sliderId=hash.slice(0,-slideId.toString().length-1);if(this.$slider.attr('id')===sliderId){return{'sliderID':sliderId,'slideId':slideId}}}
return!1},_gotoHash:function(hash){var result=this._parseHash(hash);if(result===!1){return}
var slideId=result.slideId,slideIdNumber=parseInt(slideId,10);if(isNaN(slideIdNumber)){var slideIndex=this.$slider.find('.sp-slide#'+slideId).index();if(slideIndex!==-1&&slideIndex!==this.selectedSlideIndex){this.gotoSlide(slideIndex)}}else if(slideIdNumber!==this.selectedSlideIndex){this.gotoSlide(slideIdNumber)}},destroyDeepLinking:function(){this.off('init.'+NS);this.off('gotoSlide.'+NS);$(window).off('hashchange.'+this.uniqueId+'.'+NS)},deepLinkingDefaults:{updateHash:!1}};$.SliderPro.addModule('DeepLinking',DeepLinking)})(window,jQuery);(function(window,$){"use strict";var NS='Autoplay.'+$.SliderPro.namespace;var Autoplay={autoplayTimer:null,isTimerRunning:!1,isTimerPaused:!1,initAutoplay:function(){this.on('update.'+NS,$.proxy(this._autoplayOnUpdate,this))},_autoplayOnUpdate:function(event){if(this.settings.autoplay===!0){this.on('gotoSlide.'+NS,$.proxy(this._autoplayOnGotoSlide,this));this.on('mouseenter.'+NS,$.proxy(this._autoplayOnMouseEnter,this));this.on('mouseleave.'+NS,$.proxy(this._autoplayOnMouseLeave,this));this.startAutoplay()}else{this.off('gotoSlide.'+NS);this.off('mouseenter.'+NS);this.off('mouseleave.'+NS);this.stopAutoplay()}},_autoplayOnGotoSlide:function(event){if(this.isTimerRunning===!0){this.stopAutoplay()}
if(this.isTimerPaused===!1){this.startAutoplay()}},_autoplayOnMouseEnter:function(event){if(this.isTimerRunning&&(this.settings.autoplayOnHover==='pause'||this.settings.autoplayOnHover==='stop')){this.stopAutoplay();this.isTimerPaused=!0}},_autoplayOnMouseLeave:function(event){if(this.settings.autoplay===!0&&this.isTimerRunning===!1&&this.settings.autoplayOnHover!=='stop'){this.startAutoplay();this.isTimerPaused=!1}},startAutoplay:function(){var that=this;this.isTimerRunning=!0;this.autoplayTimer=setTimeout(function(){if(that.settings.autoplayDirection==='normal'){that.nextSlide()}else if(that.settings.autoplayDirection==='backwards'){that.previousSlide()}},this.settings.autoplayDelay)},stopAutoplay:function(){this.isTimerRunning=!1;this.isTimerPaused=!1;clearTimeout(this.autoplayTimer)},destroyAutoplay:function(){clearTimeout(this.autoplayTimer);this.off('update.'+NS);this.off('gotoSlide.'+NS);this.off('mouseenter.'+NS);this.off('mouseleave.'+NS)},autoplayDefaults:{autoplay:!0,autoplayDelay:5000,autoplayDirection:'normal',autoplayOnHover:'pause'}};$.SliderPro.addModule('Autoplay',Autoplay)})(window,jQuery);(function(window,$){"use strict";var NS='Keyboard.'+$.SliderPro.namespace;var Keyboard={initKeyboard:function(){var that=this,hasFocus=!1;if(this.settings.keyboard===!1){return}
this.$slider.on('focus.'+NS,function(){hasFocus=!0});this.$slider.on('blur.'+NS,function(){hasFocus=!1});$(document).on('keydown.'+this.uniqueId+'.'+NS,function(event){if(that.settings.keyboardOnlyOnFocus===!0&&hasFocus===!1){return}
if(event.which===37){that.previousSlide()}else if(event.which===39){that.nextSlide()}else if(event.which===13){var link=that.$slider.find('.sp-slide').eq(that.selectedSlideIndex).find('.sp-image-container a');if(link.length!==0){link[0].click()}}})},destroyKeyboard:function(){this.$slider.off('focus.'+NS);this.$slider.off('blur.'+NS);$(document).off('keydown.'+this.uniqueId+'.'+NS)},keyboardDefaults:{keyboard:!0,keyboardOnlyOnFocus:!1}};$.SliderPro.addModule('Keyboard',Keyboard)})(window,jQuery);(function(window,$){"use strict";var NS='FullScreen.'+$.SliderPro.namespace;var FullScreen={isFullScreen:!1,$fullScreenButton:null,sizeBeforeFullScreen:{},initFullScreen:function(){if(!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)){return}
this.on('update.'+NS,$.proxy(this._fullScreenOnUpdate,this))},_fullScreenOnUpdate:function(){if(this.settings.fullScreen===!0&&this.$fullScreenButton===null){this._addFullScreen()}else if(this.settings.fullScreen===!1&&this.$fullScreenButton!==null){this._removeFullScreen()}
if(this.settings.fullScreen===!0){if(this.settings.fadeFullScreen===!0){this.$fullScreenButton.addClass('sp-fade-full-screen')}else if(this.settings.fadeFullScreen===!1){this.$fullScreenButton.removeClass('sp-fade-full-screen')}}},_addFullScreen:function(){this.$fullScreenButton=$('<div class="sp-full-screen-button"></div>').appendTo(this.$slider);this.$fullScreenButton.on('click.'+NS,$.proxy(this._onFullScreenButtonClick,this));document.addEventListener('fullscreenchange',$.proxy(this._onFullScreenChange,this));document.addEventListener('mozfullscreenchange',$.proxy(this._onFullScreenChange,this));document.addEventListener('webkitfullscreenchange',$.proxy(this._onFullScreenChange,this));document.addEventListener('MSFullscreenChange',$.proxy(this._onFullScreenChange,this))},_removeFullScreen:function(){if(this.$fullScreenButton!==null){this.$fullScreenButton.off('click.'+NS);this.$fullScreenButton.remove();this.$fullScreenButton=null;document.removeEventListener('fullscreenchange',this._onFullScreenChange);document.removeEventListener('mozfullscreenchange',this._onFullScreenChange);document.removeEventListener('webkitfullscreenchange',this._onFullScreenChange);document.removeEventListener('MSFullscreenChange',this._onFullScreenChange)}},_onFullScreenButtonClick:function(){if(this.isFullScreen===!1){if(this.instance.requestFullScreen){this.instance.requestFullScreen()}else if(this.instance.mozRequestFullScreen){this.instance.mozRequestFullScreen()}else if(this.instance.webkitRequestFullScreen){this.instance.webkitRequestFullScreen()}else if(this.instance.msRequestFullscreen){this.instance.msRequestFullscreen()}}else{if(document.exitFullScreen){document.exitFullScreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}else if(document.msExitFullscreen){document.msExitFullscreen()}}},_onFullScreenChange:function(){this.isFullScreen=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement?!0:!1;if(this.isFullScreen===!0){this.sizeBeforeFullScreen={forceSize:this.settings.forceSize,autoHeight:this.settings.autoHeight};this.$slider.addClass('sp-full-screen');this.settings.forceSize='fullWindow';this.settings.autoHeight=!1}else{this.$slider.css('margin','');this.$slider.removeClass('sp-full-screen');this.settings.forceSize=this.sizeBeforeFullScreen.forceSize;this.settings.autoHeight=this.sizeBeforeFullScreen.autoHeight}
this.resize()},destroyFullScreen:function(){this.off('update.'+NS);this._removeFullScreen()},fullScreenDefaults:{fullScreen:!1,fadeFullScreen:!0}};$.SliderPro.addModule('FullScreen',FullScreen)})(window,jQuery);(function(window,$){"use strict";var NS='Buttons.'+$.SliderPro.namespace;var Buttons={$buttons:null,initButtons:function(){this.on('update.'+NS,$.proxy(this._buttonsOnUpdate,this))},_buttonsOnUpdate:function(){this.$buttons=this.$slider.find('.sp-buttons');if(this.settings.buttons===!0&&this.getTotalSlides()>1&&this.$buttons.length===0){this._createButtons()}else if(this.settings.buttons===!0&&this.getTotalSlides()!==this.$buttons.find('.sp-button').length&&this.$buttons.length!==0){this._adjustButtons()}else if(this.settings.buttons===!1||(this.getTotalSlides()<=1&&this.$buttons.length!==0)){this._removeButtons()}},_createButtons:function(){var that=this;this.$buttons=$('<div class="sp-buttons"></div>').appendTo(this.$slider);for(var i=0;i<this.getTotalSlides();i++){$('<div class="sp-button"></div>').appendTo(this.$buttons)}
this.$buttons.on('click.'+NS,'.sp-button',function(){that.gotoSlide($(this).index())});this.$buttons.find('.sp-button').eq(this.selectedSlideIndex).addClass('sp-selected-button');this.on('gotoSlide.'+NS,function(event){that.$buttons.find('.sp-selected-button').removeClass('sp-selected-button');that.$buttons.find('.sp-button').eq(event.index).addClass('sp-selected-button')});this.$slider.addClass('sp-has-buttons')},_adjustButtons:function(){this.$buttons.empty();for(var i=0;i<this.getTotalSlides();i++){$('<div class="sp-button"></div>').appendTo(this.$buttons)}
this.$buttons.find('.sp-selected-button').removeClass('sp-selected-button');this.$buttons.find('.sp-button').eq(this.selectedSlideIndex).addClass('sp-selected-button')},_removeButtons:function(){this.$buttons.off('click.'+NS,'.sp-button');this.off('gotoSlide.'+NS);this.$buttons.remove();this.$slider.removeClass('sp-has-buttons')},destroyButtons:function(){this._removeButtons();this.off('update.'+NS)},buttonsDefaults:{buttons:!0}};$.SliderPro.addModule('Buttons',Buttons)})(window,jQuery);(function(window,$){"use strict";var NS='Arrows.'+$.SliderPro.namespace;var Arrows={$arrows:null,$previousArrow:null,$nextArrow:null,initArrows:function(){this.on('update.'+NS,$.proxy(this._arrowsOnUpdate,this));this.on('gotoSlide.'+NS,$.proxy(this._checkArrowsVisibility,this))},_arrowsOnUpdate:function(){var that=this;if(this.settings.arrows===!0&&this.$arrows===null){this.$arrows=$('<div class="sp-arrows"></div>').appendTo(this.$slidesContainer);this.$previousArrow=$('<div class="sp-arrow sp-previous-arrow"></div>').appendTo(this.$arrows);this.$nextArrow=$('<div class="sp-arrow sp-next-arrow"></div>').appendTo(this.$arrows);this.$previousArrow.on('click.'+NS,function(){that.previousSlide()});this.$nextArrow.on('click.'+NS,function(){that.nextSlide()});this._checkArrowsVisibility()}else if(this.settings.arrows===!1&&this.$arrows!==null){this._removeArrows()}
if(this.settings.arrows===!0){if(this.settings.fadeArrows===!0){this.$arrows.addClass('sp-fade-arrows')}else if(this.settings.fadeArrows===!1){this.$arrows.removeClass('sp-fade-arrows')}}},_checkArrowsVisibility:function(){if(this.settings.arrows===!1||this.settings.loop===!0){return}
if(this.selectedSlideIndex===0){this.$previousArrow.css('display','none')}else{this.$previousArrow.css('display','block')}
if(this.selectedSlideIndex===this.getTotalSlides()-1){this.$nextArrow.css('display','none')}else{this.$nextArrow.css('display','block')}},_removeArrows:function(){if(this.$arrows!==null){this.$previousArrow.off('click.'+NS);this.$nextArrow.off('click.'+NS);this.$arrows.remove();this.$arrows=null}},destroyArrows:function(){this._removeArrows();this.off('update.'+NS);this.off('gotoSlide.'+NS)},arrowsDefaults:{arrows:!1,fadeArrows:!0}};$.SliderPro.addModule('Arrows',Arrows)})(window,jQuery);(function(window,$){"use strict";var NS='ThumbnailTouchSwipe.'+$.SliderPro.namespace;var ThumbnailTouchSwipe={thumbnailTouchStartPoint:{x:0,y:0},thumbnailTouchEndPoint:{x:0,y:0},thumbnailTouchDistance:{x:0,y:0},thumbnailTouchStartPosition:0,isThumbnailTouchMoving:!1,isThumbnailTouchSwipe:!1,thumbnailTouchSwipeEvents:{startEvent:'',moveEvent:'',endEvent:''},initThumbnailTouchSwipe:function(){this.on('update.'+NS,$.proxy(this._thumbnailTouchSwipeOnUpdate,this))},_thumbnailTouchSwipeOnUpdate:function(){if(this.isThumbnailScroller===!1){return}
if(this.settings.thumbnailTouchSwipe===!0&&this.isThumbnailTouchSwipe===!1){this.isThumbnailTouchSwipe=!0;this.thumbnailTouchSwipeEvents.startEvent='touchstart'+'.'+NS+' mousedown'+'.'+NS;this.thumbnailTouchSwipeEvents.moveEvent='touchmove'+'.'+NS+' mousemove'+'.'+NS;this.thumbnailTouchSwipeEvents.endEvent='touchend'+'.'+this.uniqueId+'.'+NS+' mouseup'+'.'+this.uniqueId+'.'+NS;this.$thumbnails.on(this.thumbnailTouchSwipeEvents.startEvent,$.proxy(this._onThumbnailTouchStart,this));this.$thumbnails.on('dragstart.'+NS,function(event){event.preventDefault()});this.$thumbnails.addClass('sp-grab')}
$.each(this.thumbnails,function(index,thumbnail){thumbnail.off('thumbnailClick')})},_onThumbnailTouchStart:function(event){if($(event.target).closest('.sp-selectable').length>=1){return}
var that=this,eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;if(typeof event.originalEvent.touches==='undefined'){event.preventDefault()}
$(event.target).parents('.sp-thumbnail-container').find('a').one('click.'+NS,function(event){event.preventDefault()});this.thumbnailTouchStartPoint.x=eventObject.pageX||eventObject.clientX;this.thumbnailTouchStartPoint.y=eventObject.pageY||eventObject.clientY;this.thumbnailTouchStartPosition=this.thumbnailsPosition;this.thumbnailTouchDistance.x=this.thumbnailTouchDistance.y=0;if(this.$thumbnails.hasClass('sp-animated')){this.isThumbnailTouchMoving=!0;this._stopThumbnailsMovement();this.thumbnailTouchStartPosition=this.thumbnailsPosition}
this.$thumbnails.on(this.thumbnailTouchSwipeEvents.moveEvent,$.proxy(this._onThumbnailTouchMove,this));$(document).on(this.thumbnailTouchSwipeEvents.endEvent,$.proxy(this._onThumbnailTouchEnd,this));this.$thumbnails.removeClass('sp-grab').addClass('sp-grabbing');this.$thumbnailsContainer.addClass('sp-swiping')},_onThumbnailTouchMove:function(event){var eventObject=typeof event.originalEvent.touches!=='undefined'?event.originalEvent.touches[0]:event.originalEvent;this.isThumbnailTouchMoving=!0;this.thumbnailTouchEndPoint.x=eventObject.pageX||eventObject.clientX;this.thumbnailTouchEndPoint.y=eventObject.pageY||eventObject.clientY;this.thumbnailTouchDistance.x=this.thumbnailTouchEndPoint.x-this.thumbnailTouchStartPoint.x;this.thumbnailTouchDistance.y=this.thumbnailTouchEndPoint.y-this.thumbnailTouchStartPoint.y;var distance=this.thumbnailsOrientation==='horizontal'?this.thumbnailTouchDistance.x:this.thumbnailTouchDistance.y,oppositeDistance=this.thumbnailsOrientation==='horizontal'?this.thumbnailTouchDistance.y:this.thumbnailTouchDistance.x;if(Math.abs(distance)>Math.abs(oppositeDistance)){event.preventDefault()}else{return}
if(this.thumbnailsPosition>=0){var infOffset=-this.thumbnailTouchStartPosition;distance=infOffset+(distance-infOffset)*0.2}else if(this.thumbnailsPosition<=-this.thumbnailsSize+this.thumbnailsContainerSize){var supOffset=this.thumbnailsSize-this.thumbnailsContainerSize+this.thumbnailTouchStartPosition;distance=-supOffset+(distance+supOffset)*0.2}
this._moveThumbnailsTo(this.thumbnailTouchStartPosition+distance,!0)},_onThumbnailTouchEnd:function(event){var that=this,thumbnailTouchDistance=this.thumbnailsOrientation==='horizontal'?this.thumbnailTouchDistance.x:this.thumbnailTouchDistance.y;this.$thumbnails.off(this.thumbnailTouchSwipeEvents.moveEvent);$(document).off(this.thumbnailTouchSwipeEvents.endEvent);this.$thumbnails.removeClass('sp-grabbing').addClass('sp-grab');if(this.isThumbnailTouchMoving===!1||this.isThumbnailTouchMoving===!0&&Math.abs(this.thumbnailTouchDistance.x)<10&&Math.abs(this.thumbnailTouchDistance.y)<10){var targetThumbnail=$(event.target).hasClass('sp-thumbnail-container')?$(event.target):$(event.target).parents('.sp-thumbnail-container'),index=targetThumbnail.index();if($(event.target).parents('a').length!==0){$(event.target).parents('a').off('click.'+NS);this.$thumbnailsContainer.removeClass('sp-swiping')}else if(index!==this.selectedThumbnailIndex&&index!==-1){this.gotoSlide(index)}
return}
this.isThumbnailTouchMoving=!1;$(event.target).parents('.sp-thumbnail').one('click',function(event){event.preventDefault()});setTimeout(function(){that.$thumbnailsContainer.removeClass('sp-swiping')},1);if(this.thumbnailsPosition>0){this._moveThumbnailsTo(0)}else if(this.thumbnailsPosition<this.thumbnailsContainerSize-this.thumbnailsSize){this._moveThumbnailsTo(this.thumbnailsContainerSize-this.thumbnailsSize)}
this.trigger({type:'thumbnailsMoveComplete'});if($.isFunction(this.settings.thumbnailsMoveComplete)){this.settings.thumbnailsMoveComplete.call(this,{type:'thumbnailsMoveComplete'})}},destroyThumbnailTouchSwipe:function(){this.off('update.'+NS);if(this.isThumbnailScroller===!1){return}
this.$thumbnails.off(this.thumbnailTouchSwipeEvents.startEvent);this.$thumbnails.off(this.thumbnailTouchSwipeEvents.moveEvent);this.$thumbnails.off('dragstart.'+NS);$(document).off(this.thumbnailTouchSwipeEvents.endEvent);this.$thumbnails.removeClass('sp-grab')},thumbnailTouchSwipeDefaults:{thumbnailTouchSwipe:!0}};$.SliderPro.addModule('ThumbnailTouchSwipe',ThumbnailTouchSwipe)})(window,jQuery);(function(window,$){"use strict";var NS='ThumbnailArrows.'+$.SliderPro.namespace;var ThumbnailArrows={$thumbnailArrows:null,$previousThumbnailArrow:null,$nextThumbnailArrow:null,initThumbnailArrows:function(){var that=this;this.on('update.'+NS,$.proxy(this._thumbnailArrowsOnUpdate,this));this.on('sliderResize.'+NS+' '+'thumbnailsMoveComplete.'+NS,function(){if(that.isThumbnailScroller===!0&&that.settings.thumbnailArrows===!0){that._checkThumbnailArrowsVisibility()}})},_thumbnailArrowsOnUpdate:function(){var that=this;if(this.isThumbnailScroller===!1){return}
if(this.settings.thumbnailArrows===!0&&this.$thumbnailArrows===null){this.$thumbnailArrows=$('<div class="sp-thumbnail-arrows"></div>').appendTo(this.$thumbnailsContainer);this.$previousThumbnailArrow=$('<div class="sp-thumbnail-arrow sp-previous-thumbnail-arrow"></div>').appendTo(this.$thumbnailArrows);this.$nextThumbnailArrow=$('<div class="sp-thumbnail-arrow sp-next-thumbnail-arrow"></div>').appendTo(this.$thumbnailArrows);this.$previousThumbnailArrow.on('click.'+NS,function(){var previousPosition=Math.min(0,that.thumbnailsPosition+that.thumbnailsContainerSize);that._moveThumbnailsTo(previousPosition)});this.$nextThumbnailArrow.on('click.'+NS,function(){var nextPosition=Math.max(that.thumbnailsContainerSize-that.thumbnailsSize,that.thumbnailsPosition-that.thumbnailsContainerSize);that._moveThumbnailsTo(nextPosition)})}else if(this.settings.thumbnailArrows===!1&&this.$thumbnailArrows!==null){this._removeThumbnailArrows()}
if(this.settings.thumbnailArrows===!0){if(this.settings.fadeThumbnailArrows===!0){this.$thumbnailArrows.addClass('sp-fade-thumbnail-arrows')}else if(this.settings.fadeThumbnailArrows===!1){this.$thumbnailArrows.removeClass('sp-fade-thumbnail-arrows')}
this._checkThumbnailArrowsVisibility()}},_checkThumbnailArrowsVisibility:function(){if(this.thumbnailsPosition===0){this.$previousThumbnailArrow.css('display','none')}else{this.$previousThumbnailArrow.css('display','block')}
if(this.thumbnailsPosition===this.thumbnailsContainerSize-this.thumbnailsSize){this.$nextThumbnailArrow.css('display','none')}else{this.$nextThumbnailArrow.css('display','block')}},_removeThumbnailArrows:function(){if(this.$thumbnailArrows!==null){this.$previousThumbnailArrow.off('click.'+NS);this.$nextThumbnailArrow.off('click.'+NS);this.$thumbnailArrows.remove();this.$thumbnailArrows=null}},destroyThumbnailArrows:function(){this._removeThumbnailArrows();this.off('update.'+NS);this.off('sliderResize.'+NS);this.off('thumbnailsMoveComplete.'+NS)},thumbnailArrowsDefaults:{thumbnailArrows:!1,fadeThumbnailArrows:!0}};$.SliderPro.addModule('ThumbnailArrows',ThumbnailArrows)})(window,jQuery);(function(window,$){"use strict";var NS='Video.'+$.SliderPro.namespace;var Video={firstInit:!1,initVideo:function(){this.on('update.'+NS,$.proxy(this._videoOnUpdate,this));this.on('gotoSlideComplete.'+NS,$.proxy(this._videoOnGotoSlideComplete,this))},_videoOnUpdate:function(){var that=this;this.$slider.find('.sp-video').not('a, [data-video-init]').each(function(){var video=$(this);that._initVideo(video)});this.$slider.find('a.sp-video').not('[data-video-preinit]').each(function(){var video=$(this);that._preinitVideo(video)});if(this.firstInit===!1){this.firstInit=!0;this._videoOnGotoSlideComplete({index:this.selectedSlideIndex,previousIndex:-1})}},_initVideo:function(video){var that=this;video.attr('data-video-init',!0).videoController();video.on('videoPlay.'+NS,function(){if(that.settings.playVideoAction==='stopAutoplay'&&typeof that.stopAutoplay!=='undefined'){that.stopAutoplay();that.settings.autoplay=!1}
var eventObject={type:'videoPlay',video:video};that.trigger(eventObject);if($.isFunction(that.settings.videoPlay)){that.settings.videoPlay.call(that,eventObject)}});video.on('videoPause.'+NS,function(){if(that.settings.pauseVideoAction==='startAutoplay'&&typeof that.startAutoplay!=='undefined'){that.startAutoplay();that.settings.autoplay=!0}
var eventObject={type:'videoPause',video:video};that.trigger(eventObject);if($.isFunction(that.settings.videoPause)){that.settings.videoPause.call(that,eventObject)}});video.on('videoEnded.'+NS,function(){if(that.settings.endVideoAction==='startAutoplay'&&typeof that.startAutoplay!=='undefined'){that.startAutoplay();that.settings.autoplay=!0}else if(that.settings.endVideoAction==='nextSlide'){that.nextSlide()}else if(that.settings.endVideoAction==='replayVideo'){video.videoController('replay')}
var eventObject={type:'videoEnd',video:video};that.trigger(eventObject);if($.isFunction(that.settings.videoEnd)){that.settings.videoEnd.call(that,eventObject)}})},_preinitVideo:function(video){var that=this;video.attr('data-video-preinit',!0);video.on('click.'+NS,function(event){if(that.$slider.hasClass('sp-swiping')){return}
event.preventDefault();var href=video.attr('href'),iframe,provider,regExp,match,id,src,videoAttributes,videoWidth=video.children('img').attr('width')||video.children('img').width(),videoHeight=video.children('img').attr('height')||video.children('img').height();if(href.indexOf('youtube')!==-1||href.indexOf('youtu.be')!==-1){provider='youtube'}else if(href.indexOf('vimeo')!==-1){provider='vimeo'}
regExp=provider==='youtube'?/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/:/http:\/\/(www\.)?vimeo.com\/(\d+)/;match=href.match(regExp);id=match[2];src=provider==='youtube'?'//www.youtube.com/embed/'+id+'?enablejsapi=1&wmode=opaque':'//player.vimeo.com/video/'+id+'?api=1';videoAttributes=href.split('?')[1];if(typeof videoAttributes!=='undefined'){videoAttributes=videoAttributes.split('&');$.each(videoAttributes,function(index,value){if(value.indexOf(id)===-1){src+='&'+value}})}
iframe=$('<iframe></iframe>').attr({'src':src,'width':videoWidth,'height':videoHeight,'class':video.attr('class'),'frameborder':0,'allowfullscreen':'allowfullscreen'}).insertBefore(video);that._initVideo(iframe);iframe.videoController('play');video.css('display','none')})},_videoOnGotoSlideComplete:function(event){var previousVideo=this.$slides.find('.sp-slide').eq(event.previousIndex).find('.sp-video[data-video-init]');if(event.previousIndex!==-1&&previousVideo.length!==0){if(this.settings.leaveVideoAction==='stopVideo'){previousVideo.videoController('stop')}else if(this.settings.leaveVideoAction==='pauseVideo'){previousVideo.videoController('pause')}else if(this.settings.leaveVideoAction==='removeVideo'){if(previousVideo.siblings('a.sp-video').length!==0){previousVideo.siblings('a.sp-video').css('display','');previousVideo.videoController('destroy');previousVideo.remove()}else{previousVideo.videoController('stop')}}}
if(this.settings.reachVideoAction==='playVideo'){var loadedVideo=this.$slides.find('.sp-slide').eq(event.index).find('.sp-video[data-video-init]'),unloadedVideo=this.$slides.find('.sp-slide').eq(event.index).find('.sp-video[data-video-preinit]');if(loadedVideo.length!==0){loadedVideo.videoController('play')}else if(unloadedVideo.length!==0){unloadedVideo.trigger('click.'+NS)}}},destroyVideo:function(){this.$slider.find('.sp-video[ data-video-preinit ]').each(function(){var video=$(this);video.removeAttr('data-video-preinit');video.off('click.'+NS)});this.$slider.find('.sp-video[ data-video-init ]').each(function(){var video=$(this);video.removeAttr('data-video-init');video.off('Video');video.videoController('destroy')});this.off('update.'+NS);this.off('gotoSlideComplete.'+NS)},videoDefaults:{reachVideoAction:'none',leaveVideoAction:'pauseVideo',playVideoAction:'stopAutoplay',pauseVideoAction:'none',endVideoAction:'none',videoPlay:function(){},videoPause:function(){},videoEnd:function(){}}};$.SliderPro.addModule('Video',Video)})(window,jQuery);(function($){"use strict";var isIOS=window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1;var VideoController=function(instance,options){this.$video=$(instance);this.options=options;this.settings={};this.player=null;this._init()};VideoController.prototype={_init:function(){this.settings=$.extend({},this.defaults,this.options);var that=this,players=$.VideoController.players,videoID=this.$video.attr('id');for(var name in players){if(typeof players[name]!=='undefined'&&players[name].isType(this.$video)){this.player=new players[name](this.$video);break}}
if(this.player===null){return}
var events=['ready','start','play','pause','ended'];$.each(events,function(index,element){var event='video'+element.charAt(0).toUpperCase()+element.slice(1);that.player.on(element,function(){that.trigger({type:event,video:videoID});if($.isFunction(that.settings[event])){that.settings[event].call(that,{type:event,video:videoID})}})})},play:function(){if(isIOS===!0&&this.player.isStarted()===!1||this.player.getState()==='playing'){return}
this.player.play()},stop:function(){if(isIOS===!0&&this.player.isStarted()===!1||this.player.getState()==='stopped'){return}
this.player.stop()},pause:function(){if(isIOS===!0&&this.player.isStarted()===!1||this.player.getState()==='paused'){return}
this.player.pause()},replay:function(){if(isIOS===!0&&this.player.isStarted()===!1){return}
this.player.replay()},on:function(type,callback){return this.$video.on(type,callback)},off:function(type){return this.$video.off(type)},trigger:function(data){return this.$video.triggerHandler(data)},destroy:function(){if(this.player.isStarted()===!0){this.stop()}
this.player.off('ready');this.player.off('start');this.player.off('play');this.player.off('pause');this.player.off('ended');this.$video.removeData('videoController')},defaults:{videoReady:function(){},videoStart:function(){},videoPlay:function(){},videoPause:function(){},videoEnded:function(){}}};$.VideoController={players:{},addPlayer:function(name,player){this.players[name]=player}};$.fn.videoController=function(options){var args=Array.prototype.slice.call(arguments,1);return this.each(function(){if(typeof $(this).data('videoController')==='undefined'){var newInstance=new VideoController(this,options);$(this).data('videoController',newInstance)}else if(typeof options!=='undefined'){var currentInstance=$(this).data('videoController');if(typeof currentInstance[options]==='function'){currentInstance[options].apply(currentInstance,args)}else{$.error(options+' does not exist in videoController.')}}})};var Video=function(video){this.$video=video;this.player=null;this.ready=!1;this.started=!1;this.state='';this.events=$({});this._init()};Video.prototype={_init:function(){},play:function(){},pause:function(){},stop:function(){},replay:function(){},isType:function(){},isReady:function(){return this.ready},isStarted:function(){return this.started},getState:function(){return this.state},on:function(type,callback){return this.events.on(type,callback)},off:function(type){return this.events.off(type)},trigger:function(data){return this.events.triggerHandler(data)}};var YoutubeVideoHelper={youtubeAPIAdded:!1,youtubeVideos:[]};var YoutubeVideo=function(video){this.init=!1;var youtubeAPILoaded=window.YT&&window.YT.Player;if(typeof youtubeAPILoaded!=='undefined'){Video.call(this,video)}else{YoutubeVideoHelper.youtubeVideos.push({'video':video,'scope':this});if(YoutubeVideoHelper.youtubeAPIAdded===!1){YoutubeVideoHelper.youtubeAPIAdded=!0;var tag=document.createElement('script');tag.src="//www.youtube.com/player_api";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);window.onYouTubePlayerAPIReady=function(){$.each(YoutubeVideoHelper.youtubeVideos,function(index,element){Video.call(element.scope,element.video)})}}}};YoutubeVideo.prototype=new Video();YoutubeVideo.prototype.constructor=YoutubeVideo;$.VideoController.addPlayer('YoutubeVideo',YoutubeVideo);YoutubeVideo.isType=function(video){if(video.is('iframe')){var src=video.attr('src');if(src.indexOf('youtube.com')!==-1||src.indexOf('youtu.be')!==-1){return!0}}
return!1};YoutubeVideo.prototype._init=function(){this.init=!0;this._setup()};YoutubeVideo.prototype._setup=function(){var that=this;this.player=new YT.Player(this.$video[0],{events:{'onReady':function(){that.trigger({type:'ready'});that.ready=!0},'onStateChange':function(event){switch(event.data){case YT.PlayerState.PLAYING:if(that.started===!1){that.started=!0;that.trigger({type:'start'})}
that.state='playing';that.trigger({type:'play'});break;case YT.PlayerState.PAUSED:that.state='paused';that.trigger({type:'pause'});break;case YT.PlayerState.ENDED:that.state='ended';that.trigger({type:'ended'});break}}}})};YoutubeVideo.prototype.play=function(){var that=this;if(this.ready===!0){this.player.playVideo()}else{var timer=setInterval(function(){if(that.ready===!0){clearInterval(timer);that.player.playVideo()}},100)}};YoutubeVideo.prototype.pause=function(){if(isIOS===!0){this.stop()}else{this.player.pauseVideo()}};YoutubeVideo.prototype.stop=function(){this.player.seekTo(1);this.player.stopVideo();this.state='stopped'};YoutubeVideo.prototype.replay=function(){this.player.seekTo(1);this.player.playVideo()};YoutubeVideo.prototype.on=function(type,callback){var that=this;if(this.init===!0){Video.prototype.on.call(this,type,callback)}else{var timer=setInterval(function(){if(that.init===!0){clearInterval(timer);Video.prototype.on.call(that,type,callback)}},100)}};var VimeoVideoHelper={vimeoAPIAdded:!1,vimeoVideos:[]};var VimeoVideo=function(video){this.init=!1;if(typeof window.Froogaloop!=='undefined'){Video.call(this,video)}else{VimeoVideoHelper.vimeoVideos.push({'video':video,'scope':this});if(VimeoVideoHelper.vimeoAPIAdded===!1){VimeoVideoHelper.vimeoAPIAdded=!0;var tag=document.createElement('script');tag.src="//a.vimeocdn.com/js/froogaloop2.min.js";var firstScriptTag=document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);var checkVimeoAPITimer=setInterval(function(){if(typeof window.Froogaloop!=='undefined'){clearInterval(checkVimeoAPITimer);$.each(VimeoVideoHelper.vimeoVideos,function(index,element){Video.call(element.scope,element.video)})}},100)}}};VimeoVideo.prototype=new Video();VimeoVideo.prototype.constructor=VimeoVideo;$.VideoController.addPlayer('VimeoVideo',VimeoVideo);VimeoVideo.isType=function(video){if(video.is('iframe')){var src=video.attr('src');if(src.indexOf('vimeo.com')!==-1){return!0}}
return!1};VimeoVideo.prototype._init=function(){this.init=!0;this._setup()};VimeoVideo.prototype._setup=function(){var that=this;this.player=$f(this.$video[0]);this.player.addEvent('ready',function(){that.ready=!0;that.trigger({type:'ready'});that.player.addEvent('play',function(){if(that.started===!1){that.started=!0;that.trigger({type:'start'})}
that.state='playing';that.trigger({type:'play'})});that.player.addEvent('pause',function(){that.state='paused';that.trigger({type:'pause'})});that.player.addEvent('finish',function(){that.state='ended';that.trigger({type:'ended'})})})};VimeoVideo.prototype.play=function(){var that=this;if(this.ready===!0){this.player.api('play')}else{var timer=setInterval(function(){if(that.ready===!0){clearInterval(timer);that.player.api('play')}},100)}};VimeoVideo.prototype.pause=function(){this.player.api('pause')};VimeoVideo.prototype.stop=function(){this.player.api('seekTo',0);this.player.api('pause');this.state='stopped'};VimeoVideo.prototype.replay=function(){this.player.api('seekTo',0);this.player.api('play')};VimeoVideo.prototype.on=function(type,callback){var that=this;if(this.init===!0){Video.prototype.on.call(this,type,callback)}else{var timer=setInterval(function(){if(that.init===!0){clearInterval(timer);Video.prototype.on.call(that,type,callback)}},100)}};var HTML5Video=function(video){Video.call(this,video)};HTML5Video.prototype=new Video();HTML5Video.prototype.constructor=HTML5Video;$.VideoController.addPlayer('HTML5Video',HTML5Video);HTML5Video.isType=function(video){if(video.is('video')&&video.hasClass('video-js')===!1&&video.hasClass('sublime')===!1){return!0}
return!1};HTML5Video.prototype._init=function(){var that=this;this.player=this.$video[0];var checkVideoReady=setInterval(function(){if(that.player.readyState===4){clearInterval(checkVideoReady);that.ready=!0;that.trigger({type:'ready'});that.player.addEventListener('play',function(){if(that.started===!1){that.started=!0;that.trigger({type:'start'})}
that.state='playing';that.trigger({type:'play'})});that.player.addEventListener('pause',function(){that.state='paused';that.trigger({type:'pause'})});that.player.addEventListener('ended',function(){that.state='ended';that.trigger({type:'ended'})})}},100)};HTML5Video.prototype.play=function(){var that=this;if(this.ready===!0){this.player.play()}else{var timer=setInterval(function(){if(that.ready===!0){clearInterval(timer);that.player.play()}},100)}};HTML5Video.prototype.pause=function(){this.player.pause()};HTML5Video.prototype.stop=function(){this.player.currentTime=0;this.player.pause();this.state='stopped'};HTML5Video.prototype.replay=function(){this.player.currentTime=0;this.player.play()};var VideoJSVideo=function(video){Video.call(this,video)};VideoJSVideo.prototype=new Video();VideoJSVideo.prototype.constructor=VideoJSVideo;$.VideoController.addPlayer('VideoJSVideo',VideoJSVideo);VideoJSVideo.isType=function(video){if((typeof video.attr('data-videojs-id')!=='undefined'||video.hasClass('video-js'))&&typeof videojs!=='undefined'){return!0}
return!1};VideoJSVideo.prototype._init=function(){var that=this,videoID=this.$video.hasClass('video-js')?this.$video.attr('id'):this.$video.attr('data-videojs-id');this.player=videojs(videoID);this.player.ready(function(){that.ready=!0;that.trigger({type:'ready'});that.player.on('play',function(){if(that.started===!1){that.started=!0;that.trigger({type:'start'})}
that.state='playing';that.trigger({type:'play'})});that.player.on('pause',function(){that.state='paused';that.trigger({type:'pause'})});that.player.on('ended',function(){that.state='ended';that.trigger({type:'ended'})})})};VideoJSVideo.prototype.play=function(){this.player.play()};VideoJSVideo.prototype.pause=function(){this.player.pause()};VideoJSVideo.prototype.stop=function(){this.player.currentTime(0);this.player.pause();this.state='stopped'};VideoJSVideo.prototype.replay=function(){this.player.currentTime(0);this.player.play()};var SublimeVideo=function(video){Video.call(this,video)};SublimeVideo.prototype=new Video();SublimeVideo.prototype.constructor=SublimeVideo;$.VideoController.addPlayer('SublimeVideo',SublimeVideo);SublimeVideo.isType=function(video){if(video.hasClass('sublime')&&typeof sublime!=='undefined'){return!0}
return!1};SublimeVideo.prototype._init=function(){var that=this;sublime.ready(function(){that.player=sublime.player(that.$video.attr('id'));that.ready=!0;that.trigger({type:'ready'});that.player.on('play',function(){if(that.started===!1){that.started=!0;that.trigger({type:'start'})}
that.state='playing';that.trigger({type:'play'})});that.player.on('pause',function(){that.state='paused';that.trigger({type:'pause'})});that.player.on('stop',function(){that.state='stopped';that.trigger({type:'stop'})});that.player.on('end',function(){that.state='ended';that.trigger({type:'ended'})})})};SublimeVideo.prototype.play=function(){this.player.play()};SublimeVideo.prototype.pause=function(){this.player.pause()};SublimeVideo.prototype.stop=function(){this.player.stop()};SublimeVideo.prototype.replay=function(){this.player.stop();this.player.play()};var JWPlayerVideo=function(video){Video.call(this,video)};JWPlayerVideo.prototype=new Video();JWPlayerVideo.prototype.constructor=JWPlayerVideo;$.VideoController.addPlayer('JWPlayerVideo',JWPlayerVideo);JWPlayerVideo.isType=function(video){if((typeof video.attr('data-jwplayer-id')!=='undefined'||video.hasClass('jwplayer')||video.find("object[data*='jwplayer']").length!==0)&&typeof jwplayer!=='undefined'){return!0}
return!1};JWPlayerVideo.prototype._init=function(){var that=this,videoID;if(this.$video.hasClass('jwplayer')){videoID=this.$video.attr('id')}else if(typeof this.$video.attr('data-jwplayer-id')!=='undefined'){videoID=this.$video.attr('data-jwplayer-id')}else if(this.$video.find("object[data*='jwplayer']").length!==0){videoID=this.$video.find('object').attr('id')}
this.player=jwplayer(videoID);this.player.onReady(function(){that.ready=!0;that.trigger({type:'ready'});that.player.onPlay(function(){if(that.started===!1){that.started=!0;that.trigger({type:'start'})}
that.state='playing';that.trigger({type:'play'})});that.player.onPause(function(){that.state='paused';that.trigger({type:'pause'})});that.player.onComplete(function(){that.state='ended';that.trigger({type:'ended'})})})};JWPlayerVideo.prototype.play=function(){this.player.play(!0)};JWPlayerVideo.prototype.pause=function(){this.player.pause(!0)};JWPlayerVideo.prototype.stop=function(){this.player.stop();this.state='stopped'};JWPlayerVideo.prototype.replay=function(){this.player.seek(0);this.player.play(!0)}})(jQuery);(function(window,$){"use strict";var NS='ThumbnailsNc.'+$.SliderPro.namespace;var ThumbnailsNc={$thumbnailsNc:null,$thumbnailsNcContainer:null,thumbnailsNc:null,selectedThumbnailNcIndex:0,thumbnailsNcPositionProperty:null,initThumbnailsNc:function(){var that=this;if(!this.$slider.children('.sp-nc-thumbnails').length){return}
this.thumbnailsNc=[];this.on('update.'+NS,$.proxy(this._thumbnailsOnUpdateNc,this));this.on('gotoSlide.'+NS,function(event){that._gotoThumbnailNc(event.index)})},_thumbnailsOnUpdateNc:function(){var that=this;if(this.$thumbnailsNcContainer===null){this.$thumbnailsNcContainer=$('<div class="sp-nc-thumbnails-container"></div>').insertAfter(this.$slidesContainer)}
if(this.$thumbnailsNc===null){if(this.$slider.find('.sp-nc-thumbnails').length!==0){this.$thumbnailsNc=this.$slider.find('.sp-nc-thumbnails').appendTo(this.$thumbnailsNcContainer);if(this.settings.shuffle===!0){var thumbnailsNc=this.$thumbnailsNc.find('.sp-nc-thumbnail'),shuffledThumbnails=[];$.each(this.shuffledIndexes,function(index,element){var $thumbnail=$(thumbnailsNc[element]);if($thumbnail.parent('a').length!==0){$thumbnail=$thumbnail.parent('a')}
shuffledThumbnails.push($thumbnail)});this.$thumbnailsNc.empty().append(shuffledThumbnails)}}else{this.$thumbnailsNc=$('<div class="sp-nc-thumbnails"></div>').appendTo(this.$thumbnailsNcContainer)}}
this.$slides.find('.sp-nc-thumbnail').each(function(index){var $thumbnail=$(this),thumbnailIndex=$thumbnail.parents('.sp-slide').index(),lastThumbnailIndex=that.$thumbnailsNc.find('.sp-nc-thumbnail').length-1;if($thumbnail.parent('a').length!==0){$thumbnail=$thumbnail.parent('a')}
if(thumbnailIndex>lastThumbnailIndex){$thumbnail.appendTo(that.$thumbnailsNc)}else{$thumbnail.insertBefore(that.$thumbnailsNc.find('.sp-nc-thumbnail').eq(thumbnailIndex))}});for(var i=this.thumbnailsNc.length-1;i>=0;i--){if(this.$thumbnailsNc.find('.sp-nc-thumbnail[data-index="'+i+'"]').length===0){var thumbnail=this.thumbnailsNc[i];thumbnail.destroy();this.thumbnailsNc.splice(i,1)}}
this.$thumbnailsNc.find('.sp-nc-thumbnail').each(function(index){var $thumbnail=$(this);if(typeof $thumbnail.attr('data-init')==='undefined'){that._createThumbnailNc($thumbnail,index)}else{that.thumbnailsNc[index].setIndexNc(index)}});if(this.settings.thumbnailPointer===!0){this.$thumbnailsNcContainer.addClass('sp-has-pointer')}else{this.$thumbnailsNcContainer.removeClass('sp-has-pointer')}
this.selectedThumbnailNcIndex=this.selectedSlideIndex;this.$thumbnailsNc.find('.sp-nc-thumbnail-container').eq(this.selectedThumbnailNcIndex).addClass('sp-nc-selected-thumbnail')},_createThumbnailNc:function(element,index){var that=this,thumbnail=new ThumbnailNc(element,this.$thumbnailsNc,index);thumbnail.on('thumbnailClick.'+NS,function(event){that.gotoSlide(event.index)});this.thumbnailsNc.splice(index,0,thumbnail)},_gotoThumbnailNc:function(index){var previousIndex=this.selectedThumbnailNcIndex;this.selectedThumbnailNcIndex=index;this.$thumbnailsNc.find('.sp-nc-selected-thumbnail').removeClass('sp-nc-selected-thumbnail');this.$thumbnailsNc.find('.sp-nc-thumbnail-container').eq(this.selectedThumbnailNcIndex).addClass('sp-nc-selected-thumbnail');this.trigger({type:'gotoThumbnail'});if($.isFunction(this.settings.gotoThumbnail)){this.settings.gotoThumbnail.call(this,{type:'gotoThumbnail'})}},thumbnailsNcDefaults:{thumbnailWidth:100,thumbnailHeight:80,thumbnailPointer:!1,gotoThumbnail:function(){},}};var ThumbnailNc=function(thumbnail,thumbnailsNc,index){this.$thumbnail=thumbnail;this.$thumbnailsNc=thumbnailsNc;this.$thumbnailContainer=null;this.width=0;this.height=0;this.isImageLoaded=!1;this.setIndexNc(index);this._init()};ThumbnailNc.prototype={_init:function(){var that=this;this.$thumbnail.attr('data-init',!0);this.$thumbnailContainer=$('<div class="sp-nc-thumbnail-container"></div>').appendTo(this.$thumbnailsNc);this.$thumbnail.appendTo(this.$thumbnailContainer);this.$thumbnailContainer.on('click.'+NS,function(){that.trigger({type:'thumbnailClick.'+NS,index:that.index})})},setIndexNc:function(index){this.index=index;this.$thumbnail.attr('data-index',this.index)},on:function(type,callback){return this.$thumbnailContainer.on(type,callback)},off:function(type){return this.$thumbnailContainer.off(type)},trigger:function(data){return this.$thumbnailContainer.triggerHandler(data)}};$.SliderPro.addModule('ThumbnailsNc',ThumbnailsNc)})(window,jQuery);/**** Modified Owl to wpexOwl and owlCarousel to wpexOwlCarousel to prevent conflicts with plugins loading older script versions ***/

/**
 * wpexOwl Carousel v2.3.3
 * Copyright 2013-2018 David Deutsch
 * Licensed under: SEE LICENSE IN https://github.com/wpexOwlCarousel2/wpexOwlCarousel2/blob/master/LICENSE
 */
/**
 * wpexOwl carousel
 * @version 2.3.3
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 * @todo Lazy Load Icon
 * @todo prevent animationend bubling
 * @todo itemsScaleUp
 * @todo Test Zepto
 * @todo stagePadding calculate wrong active classes
 */
;(function($,window,document,undefined){/**
	 * Creates a carousel.
	 * @class The wpexOwl Carousel.
	 * @public
	 * @param {HTMLElement|jQuery} element - The element to create the carousel for.
	 * @param {Object} [options] - The options
	 */
	function wpexOwl(element, options) {

		/**
		 * Current settings for the carousel.
		 * @public
		 */
		this.settings = null;

		/**
		 * Current options set by the caller including defaults.
		 * @public
		 */
		this.options = $.extend({}, wpexOwl.Defaults, options);

		/**
		 * Plugin element.
		 * @public
		 */
		this.$element = $(element);

		/**
		 * Proxied event handlers.
		 * @protected
		 */
		this._handlers = {};

		/**
		 * References to the running plugins of this carousel.
		 * @protected
		 */
		this._plugins = {};

		/**
		 * Currently suppressed events to prevent them from being retriggered.
		 * @protected
		 */
		this._supress = {};

		/**
		 * Absolute current position.
		 * @protected
		 */
		this._current = null;

		/**
		 * Animation speed in milliseconds.
		 * @protected
		 */
		this._speed = null;

		/**
		 * Coordinates of all items in pixel.
		 * @todo The name of this member is missleading.
		 * @protected
		 */
		this._coordinates = [];

		/**
		 * Current breakpoint.
		 * @todo Real media queries would be nice.
		 * @protected
		 */
		this._breakpoint = null;

		/**
		 * Current width of the plugin element.
		 */
		this._width = null;

		/**
		 * All real items.
		 * @protected
		 */
		this._items = [];

		/**
		 * All cloned items.
		 * @protected
		 */
		this._clones = [];

		/**
		 * Merge values of all items.
		 * @todo Maybe this could be part of a plugin.
		 * @protected
		 */
		this._mergers = [];

		/**
		 * Widths of all items.
		 */
		this._widths = [];

		/**
		 * Invalidated parts within the update process.
		 * @protected
		 */
		this._invalidated = {};

		/**
		 * Ordered list of workers for the update process.
		 * @protected
		 */
		this._pipe = [];

		/**
		 * Current state information for the drag operation.
		 * @todo #261
		 * @protected
		 */
		this._drag = {
			time: null,
			target: null,
			pointer: null,
			stage: {
				start: null,
				current: null
			},
			direction: null
		};

		/**
		 * Current state information and their tags.
		 * @type {Object}
		 * @protected
		 */
		this._states = {
			current: {},
			tags: {
				'initializing': [ 'busy' ],
				'animating': [ 'busy' ],
				'dragging': [ 'interacting' ]
			}
		};

		$.each([ 'onResize', 'onThrottledResize' ], $.proxy(function(i, handler) {
			this._handlers[handler] = $.proxy(this[handler], this);
		}, this));

		$.each(wpexOwl.Plugins, $.proxy(function(key, plugin) {
			this._plugins[key.charAt(0).toLowerCase() + key.slice(1)]
				= new plugin(this);
		}, this));

		$.each(wpexOwl.Workers, $.proxy(function(priority, worker) {
			this._pipe.push({
				'filter': worker.filter,
				'run': $.proxy(worker.run, this)
			});
		}, this));

		this.setup();
		this.initialize();
	}

	/**
	 * Default options for the carousel.
	 * @public
	 */
	wpexOwl.Defaults = {
		items: 3,
		loop: false,
		center: false,
		rewind: false,
		checkVisibility: true,

		mouseDrag: true,
		touchDrag: true,
		pullDrag: true,
		freeDrag: false,

		margin: 0,
		stagePadding: 0,

		merge: false,
		mergeFit: true,
		autoWidth: false,

		startPosition: 0,
		rtl: false,

		smartSpeed: 250,
		fluidSpeed: false,
		dragEndSpeed: false,

		responsive: {},
		responsiveRefreshRate: 200,
		responsiveBaseElement: window,

		fallbackEasing: 'swing',

		info: false,

		nestedItemSelector: false,
		itemElement: 'div',
		stageElement: 'div',

		refreshClass: 'owl-refresh',
		loadedClass: 'owl-loaded',
		loadingClass: 'owl-loading',
		rtlClass: 'owl-rtl',
		responsiveClass: 'owl-responsive',
		dragClass: 'owl-drag',
		itemClass: 'owl-item',
		stageClass: 'owl-stage',
		stageOuterClass: 'owl-stage-outer',
		grabClass: 'owl-grab'
	};

	/**
	 * Enumeration for width.
	 * @public
	 * @readonly
	 * @enum {String}
	 */
	wpexOwl.Width = {
		Default: 'default',
		Inner: 'inner',
		Outer: 'outer'
	};

	/**
	 * Enumeration for types.
	 * @public
	 * @readonly
	 * @enum {String}
	 */
	wpexOwl.Type = {
		Event: 'event',
		State: 'state'
	};

	/**
	 * Contains all registered plugins.
	 * @public
	 */
	wpexOwl.Plugins = {};

	/**
	 * List of workers involved in the update process.
	 */
	wpexOwl.Workers = [ {
		filter: [ 'width', 'settings' ],
		run: function() {
			this._width = this.$element.width();
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function(cache) {
			cache.current = this._items && this._items[this.relative(this._current)];
		}
	}, {
		filter: [ 'items', 'settings' ],
		run: function() {
			this.$stage.children('.cloned').remove();
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function(cache) {
			var margin = this.settings.margin || '',
				grid = !this.settings.autoWidth,
				rtl = this.settings.rtl,
				css = {
					'width': 'auto',
					'margin-left': rtl ? margin : '',
					'margin-right': rtl ? '' : margin
				};

			!grid && this.$stage.children().css(css);

			cache.css = css;
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function(cache) {
			var width = (this.width() / this.settings.items).toFixed(3) - this.settings.margin,
				merge = null,
				iterator = this._items.length,
				grid = !this.settings.autoWidth,
				widths = [];

			cache.items = {
				merge: false,
				width: width
			};

			while (iterator--) {
				merge = this._mergers[iterator];
				merge = this.settings.mergeFit && Math.min(merge, this.settings.items) || merge;

				cache.items.merge = merge > 1 || cache.items.merge;

				widths[iterator] = !grid ? this._items[iterator].width() : width * merge;
			}

			this._widths = widths;
		}
	}, {
		filter: [ 'items', 'settings' ],
		run: function() {
			var clones = [],
				items = this._items,
				settings = this.settings,
				// TODO: Should be computed from number of min width items in stage
				view = Math.max(settings.items * 2, 4),
				size = Math.ceil(items.length / 2) * 2,
				repeat = settings.loop && items.length ? settings.rewind ? view : Math.max(view, size) : 0,
				append = '',
				prepend = '';

			repeat /= 2;

			while (repeat > 0) {
				// Switch to only using appended clones
				clones.push(this.normalize(clones.length / 2, true));
				append = append + items[clones[clones.length - 1]][0].outerHTML;
				clones.push(this.normalize(items.length - 1 - (clones.length - 1) / 2, true));
				prepend = items[clones[clones.length - 1]][0].outerHTML + prepend;
				repeat -= 1;
			}

			this._clones = clones;

			$(append).addClass('cloned').appendTo(this.$stage);
			$(prepend).addClass('cloned').prependTo(this.$stage);
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function() {
			var rtl = this.settings.rtl ? 1 : -1,
				size = this._clones.length + this._items.length,
				iterator = -1,
				previous = 0,
				current = 0,
				coordinates = [];

			while (++iterator < size) {
				previous = coordinates[iterator - 1] || 0;
				current = this._widths[this.relative(iterator)] + this.settings.margin;
				coordinates.push(previous + current * rtl);
			}

			this._coordinates = coordinates;
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function() {
			var padding = this.settings.stagePadding,
				coordinates = this._coordinates,
				css = {
					'width': Math.ceil(Math.abs(coordinates[coordinates.length - 1])) + padding * 2,
					'padding-left': padding || '',
					'padding-right': padding || ''
				};

			this.$stage.css(css);
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function(cache) {
			var iterator = this._coordinates.length,
				grid = !this.settings.autoWidth,
				items = this.$stage.children();

			if (grid && cache.items.merge) {
				while (iterator--) {
					cache.css.width = this._widths[this.relative(iterator)];
					items.eq(iterator).css(cache.css);
				}
			} else if (grid) {
				cache.css.width = cache.items.width;
				items.css(cache.css);
			}
		}
	}, {
		filter: [ 'items' ],
		run: function() {
			this._coordinates.length < 1 && this.$stage.removeAttr('style');
		}
	}, {
		filter: [ 'width', 'items', 'settings' ],
		run: function(cache) {
			cache.current = cache.current ? this.$stage.children().index(cache.current) : 0;
			cache.current = Math.max(this.minimum(), Math.min(this.maximum(), cache.current));
			this.reset(cache.current);
		}
	}, {
		filter: [ 'position' ],
		run: function() {
			this.animate(this.coordinates(this._current));
		}
	}, {
		filter: [ 'width', 'position', 'items', 'settings' ],
		run: function() {
			var rtl = this.settings.rtl ? 1 : -1,
				padding = this.settings.stagePadding * 2,
				begin = this.coordinates(this.current()) + padding,
				end = begin + this.width() * rtl,
				inner, outer, matches = [], i, n;

			for (i = 0, n = this._coordinates.length; i < n; i++) {
				inner = this._coordinates[i - 1] || 0;
				outer = Math.abs(this._coordinates[i]) + padding * rtl;

				if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end)))
					|| (this.op(outer, '<', begin) && this.op(outer, '>', end))) {
					matches.push(i);
				}
			}

			this.$stage.children('.active').removeClass('active');
			this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass('active');

			this.$stage.children('.center').removeClass('center');
			if (this.settings.center) {
				this.$stage.children().eq(this.current()).addClass('center');
			}
		}
	} ];

	/**
	 * Create the stage DOM element
	 */
	wpexOwl.prototype.initializeStage = function() {
		this.$stage = this.$element.find('.' + this.settings.stageClass);

		// if the stage is already in the DOM, grab it and skip stage initialization
		if (this.$stage.length) {
			return;
		}

		this.$element.addClass(this.options.loadingClass);

		// create stage
		this.$stage = $('<' + this.settings.stageElement + ' class="' + this.settings.stageClass + '"/>')
			.wrap('<div class="' + this.settings.stageOuterClass + '"/>');

		// append stage
		this.$element.append(this.$stage.parent());
	};

	/**
	 * Create item DOM elements
	 */
	wpexOwl.prototype.initializeItems = function() {
		var $items = this.$element.find('.owl-item');

		// if the items are already in the DOM, grab them and skip item initialization
		if ($items.length) {
			this._items = $items.get().map(function(item) {
				return $(item);
			});

			this._mergers = this._items.map(function() {
				return 1;
			});

			this.refresh();

			return;
		}

		// append content
		this.replace(this.$element.children().not(this.$stage.parent()));

		// check visibility
		if (this.isVisible()) {
			// update view
			this.refresh();
		} else {
			// invalidate width
			this.invalidate('width');
		}

		this.$element
			.removeClass(this.options.loadingClass)
			.addClass(this.options.loadedClass);
	};

	/**
	 * Initializes the carousel.
	 * @protected
	 */
	wpexOwl.prototype.initialize = function() {
		this.enter('initializing');
		this.trigger('initialize');

		this.$element.toggleClass(this.settings.rtlClass, this.settings.rtl);

		if (this.settings.autoWidth && !this.is('pre-loading')) {
			var imgs, nestedSelector, width;
			imgs = this.$element.find('img');
			nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined;
			width = this.$element.children(nestedSelector).width();

			if (imgs.length && width <= 0) {
				this.preloadAutoWidthImages(imgs);
			}
		}

		this.initializeStage();
		this.initializeItems();

		// register event handlers
		this.registerEventHandlers();

		this.leave('initializing');
		this.trigger('initialized');
	};

	/**
	 * @returns {Boolean} visibility of $element
	 *                    if you know the carousel will always be visible you can set `checkVisibility` to `false` to
	 *                    prevent the expensive browser layout forced reflow the $element.is(':visible') does
	 */
	wpexOwl.prototype.isVisible = function() {
		return this.settings.checkVisibility
			? this.$element.is(':visible')
			: true;
	};

	/**
	 * Setups the current settings.
	 * @todo Remove responsive classes. Why should adaptive designs be brought into IE8?
	 * @todo Support for media queries by using `matchMedia` would be nice.
	 * @public
	 */
	wpexOwl.prototype.setup = function() {
		var viewport = this.viewport(),
			overwrites = this.options.responsive,
			match = -1,
			settings = null;

		if (!overwrites) {
			settings = $.extend({}, this.options);
		} else {
			$.each(overwrites, function(breakpoint) {
				if (breakpoint <= viewport && breakpoint > match) {
					match = Number(breakpoint);
				}
			});

			settings = $.extend({}, this.options, overwrites[match]);
			if (typeof settings.stagePadding === 'function') {
				settings.stagePadding = settings.stagePadding();
			}
			delete settings.responsive;

			// responsive class
			if (settings.responsiveClass) {
				this.$element.attr('class',
					this.$element.attr('class').replace(new RegExp('(' + this.options.responsiveClass + '-)\\S+\\s', 'g'), '$1' + match)
				);
			}
		}

		this.trigger('change', { property: { name: 'settings', value: settings } });
		this._breakpoint = match;
		this.settings = settings;
		this.invalidate('settings');
		this.trigger('changed', { property: { name: 'settings', value: this.settings } });
	};

	/**
	 * Updates option logic if necessery.
	 * @protected
	 */
	wpexOwl.prototype.optionsLogic = function() {
		if (this.settings.autoWidth) {
			this.settings.stagePadding = false;
			this.settings.merge = false;
		}
	};

	/**
	 * Prepares an item before add.
	 * @todo Rename event parameter `content` to `item`.
	 * @protected
	 * @returns {jQuery|HTMLElement} - The item container.
	 */
	wpexOwl.prototype.prepare = function(item) {
		var event = this.trigger('prepare', { content: item });

		if (!event.data) {
			event.data = $('<' + this.settings.itemElement + '/>')
				.addClass(this.options.itemClass).append(item)
		}

		this.trigger('prepared', { content: event.data });

		return event.data;
	};

	/**
	 * Updates the view.
	 * @public
	 */
	wpexOwl.prototype.update = function() {
		var i = 0,
			n = this._pipe.length,
			filter = $.proxy(function(p) { return this[p] }, this._invalidated),
			cache = {};

		while (i < n) {
			if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) {
				this._pipe[i].run(cache);
			}
			i++;
		}

		this._invalidated = {};

		!this.is('valid') && this.enter('valid');
	};

	/**
	 * Gets the width of the view.
	 * @public
	 * @param {wpexOwl.Width} [dimension=wpexOwl.Width.Default] - The dimension to return.
	 * @returns {Number} - The width of the view in pixel.
	 */
	wpexOwl.prototype.width = function(dimension) {
		dimension = dimension || wpexOwl.Width.Default;
		switch (dimension) {
			case wpexOwl.Width.Inner:
			case wpexOwl.Width.Outer:
				return this._width;
			default:
				return this._width - this.settings.stagePadding * 2 + this.settings.margin;
		}
	};

	/**
	 * Refreshes the carousel primarily for adaptive purposes.
	 * @public
	 */
	wpexOwl.prototype.refresh = function() {
		this.enter('refreshing');
		this.trigger('refresh');

		this.setup();

		this.optionsLogic();

		this.$element.addClass(this.options.refreshClass);

		this.update();

		this.$element.removeClass(this.options.refreshClass);

		this.leave('refreshing');
		this.trigger('refreshed');
	};

	/**
	 * Checks window `resize` event.
	 * @protected
	 */
	wpexOwl.prototype.onThrottledResize = function() {
		window.clearTimeout(this.resizeTimer);
		this.resizeTimer = window.setTimeout(this._handlers.onResize, this.settings.responsiveRefreshRate);
	};

	/**
	 * Checks window `resize` event.
	 * @protected
	 */
	wpexOwl.prototype.onResize = function() {
		if (!this._items.length) {
			return false;
		}

		if (this._width === this.$element.width()) {
			return false;
		}

		if (!this.isVisible()) {
			return false;
		}

		this.enter('resizing');

		if (this.trigger('resize').isDefaultPrevented()) {
			this.leave('resizing');
			return false;
		}

		this.invalidate('width');

		this.refresh();

		this.leave('resizing');
		this.trigger('resized');
	};

	/**
	 * Registers event handlers.
	 * @todo Check `msPointerEnabled`
	 * @todo #261
	 * @protected
	 */
	wpexOwl.prototype.registerEventHandlers = function() {
		if ($.support.transition) {
			this.$stage.on($.support.transition.end + '.owl.core', $.proxy(this.onTransitionEnd, this));
		}

		if (this.settings.responsive !== false) {
			this.on(window, 'resize', this._handlers.onThrottledResize);
		}

		if (this.settings.mouseDrag) {
			this.$element.addClass(this.options.dragClass);
			this.$stage.on('mousedown.owl.core', $.proxy(this.onDragStart, this));
			this.$stage.on('dragstart.owl.core selectstart.owl.core', function() { return false });
		}

		if (this.settings.touchDrag){
			this.$stage.on('touchstart.owl.core', $.proxy(this.onDragStart, this));
			this.$stage.on('touchcancel.owl.core', $.proxy(this.onDragEnd, this));
		}
	};

	/**
	 * Handles `touchstart` and `mousedown` events.
	 * @todo Horizontal swipe threshold as option
	 * @todo #261
	 * @protected
	 * @param {Event} event - The event arguments.
	 */
	wpexOwl.prototype.onDragStart = function(event) {
		var stage = null;

		if (event.which === 3) {
			return;
		}

		if ($.support.transform) {
			stage = this.$stage.css('transform').replace(/.*\(|\)| /g, '').split(',');
			stage = {
				x: stage[stage.length === 16 ? 12 : 4],
				y: stage[stage.length === 16 ? 13 : 5]
			};
		} else {
			stage = this.$stage.position();
			stage = {
				x: this.settings.rtl ?
					stage.left + this.$stage.width() - this.width() + this.settings.margin :
					stage.left,
				y: stage.top
			};
		}

		if (this.is('animating')) {
			$.support.transform ? this.animate(stage.x) : this.$stage.stop()
			this.invalidate('position');
		}

		this.$element.toggleClass(this.options.grabClass, event.type === 'mousedown');

		this.speed(0);

		this._drag.time = new Date().getTime();
		this._drag.target = $(event.target);
		this._drag.stage.start = stage;
		this._drag.stage.current = stage;
		this._drag.pointer = this.pointer(event);

		$(document).on('mouseup.owl.core touchend.owl.core', $.proxy(this.onDragEnd, this));

		$(document).one('mousemove.owl.core touchmove.owl.core', $.proxy(function(event) {
			var delta = this.difference(this._drag.pointer, this.pointer(event));

			$(document).on('mousemove.owl.core touchmove.owl.core', $.proxy(this.onDragMove, this));

			if (Math.abs(delta.x) < Math.abs(delta.y) && this.is('valid')) {
				return;
			}

			event.preventDefault();

			this.enter('dragging');
			this.trigger('drag');
		}, this));
	};

	/**
	 * Handles the `touchmove` and `mousemove` events.
	 * @todo #261
	 * @protected
	 * @param {Event} event - The event arguments.
	 */
	wpexOwl.prototype.onDragMove = function(event) {
		var minimum = null,
			maximum = null,
			pull = null,
			delta = this.difference(this._drag.pointer, this.pointer(event)),
			stage = this.difference(this._drag.stage.start, delta);

		if (!this.is('dragging')) {
			return;
		}

		event.preventDefault();

		if (this.settings.loop) {
			minimum = this.coordinates(this.minimum());
			maximum = this.coordinates(this.maximum() + 1) - minimum;
			stage.x = (((stage.x - minimum) % maximum + maximum) % maximum) + minimum;
		} else {
			minimum = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum());
			maximum = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum());
			pull = this.settings.pullDrag ? -1 * delta.x / 5 : 0;
			stage.x = Math.max(Math.min(stage.x, minimum + pull), maximum + pull);
		}

		this._drag.stage.current = stage;

		this.animate(stage.x);
	};

	/**
	 * Handles the `touchend` and `mouseup` events.
	 * @todo #261
	 * @todo Threshold for click event
	 * @protected
	 * @param {Event} event - The event arguments.
	 */
	wpexOwl.prototype.onDragEnd = function(event) {
		var delta = this.difference(this._drag.pointer, this.pointer(event)),
			stage = this._drag.stage.current,
			direction = delta.x > 0 ^ this.settings.rtl ? 'left' : 'right';

		$(document).off('.owl.core');

		this.$element.removeClass(this.options.grabClass);

		if (delta.x !== 0 && this.is('dragging') || !this.is('valid')) {
			this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed);
			this.current(this.closest(stage.x, delta.x !== 0 ? direction : this._drag.direction));
			this.invalidate('position');
			this.update();

			this._drag.direction = direction;

			if (Math.abs(delta.x) > 3 || new Date().getTime() - this._drag.time > 300) {
				this._drag.target.one('click.owl.core', function() { return false; });
			}
		}

		if (!this.is('dragging')) {
			return;
		}

		this.leave('dragging');
		this.trigger('dragged');
	};

	/**
	 * Gets absolute position of the closest item for a coordinate.
	 * @todo Setting `freeDrag` makes `closest` not reusable. See #165.
	 * @protected
	 * @param {Number} coordinate - The coordinate in pixel.
	 * @param {String} direction - The direction to check for the closest item. Ether `left` or `right`.
	 * @return {Number} - The absolute position of the closest item.
	 */
	wpexOwl.prototype.closest = function(coordinate, direction) {
		var position = -1,
			pull = 30,
			width = this.width(),
			coordinates = this.coordinates();

		if (!this.settings.freeDrag) {
			// check closest item
			$.each(coordinates, $.proxy(function(index, value) {
				// on a left pull, check on current index
				if (direction === 'left' && coordinate > value - pull && coordinate < value + pull) {
					position = index;
				// on a right pull, check on previous index
				// to do so, subtract width from value and set position = index + 1
				} else if (direction === 'right' && coordinate > value - width - pull && coordinate < value - width + pull) {
					position = index + 1;
				} else if (this.op(coordinate, '<', value)
					&& this.op(coordinate, '>', coordinates[index + 1] !== undefined ? coordinates[index + 1] : value - width)) {
					position = direction === 'left' ? index + 1 : index;
				}
				return position === -1;
			}, this));
		}

		if (!this.settings.loop) {
			// non loop boundries
			if (this.op(coordinate, '>', coordinates[this.minimum()])) {
				position = coordinate = this.minimum();
			} else if (this.op(coordinate, '<', coordinates[this.maximum()])) {
				position = coordinate = this.maximum();
			}
		}

		return position;
	};

	/**
	 * Animates the stage.
	 * @todo #270
	 * @public
	 * @param {Number} coordinate - The coordinate in pixels.
	 */
	wpexOwl.prototype.animate = function(coordinate) {
		var animate = this.speed() > 0;

		this.is('animating') && this.onTransitionEnd();

		if (animate) {
			this.enter('animating');
			this.trigger('translate');
		}

		if ($.support.transform3d && $.support.transition) {
			this.$stage.css({
				transform: 'translate3d(' + coordinate + 'px,0px,0px)',
				transition: (this.speed() / 1000) + 's'
			});
		} else if (animate) {
			this.$stage.animate({
				left: coordinate + 'px'
			}, this.speed(), this.settings.fallbackEasing, $.proxy(this.onTransitionEnd, this));
		} else {
			this.$stage.css({
				left: coordinate + 'px'
			});
		}
	};

	/**
	 * Checks whether the carousel is in a specific state or not.
	 * @param {String} state - The state to check.
	 * @returns {Boolean} - The flag which indicates if the carousel is busy.
	 */
	wpexOwl.prototype.is = function(state) {
		return this._states.current[state] && this._states.current[state] > 0;
	};

	/**
	 * Sets the absolute position of the current item.
	 * @public
	 * @param {Number} [position] - The new absolute position or nothing to leave it unchanged.
	 * @returns {Number} - The absolute position of the current item.
	 */
	wpexOwl.prototype.current = function(position) {
		if (position === undefined) {
			return this._current;
		}

		if (this._items.length === 0) {
			return undefined;
		}

		position = this.normalize(position);

		if (this._current !== position) {
			var event = this.trigger('change', { property: { name: 'position', value: position } });

			if (event.data !== undefined) {
				position = this.normalize(event.data);
			}

			this._current = position;

			this.invalidate('position');

			this.trigger('changed', { property: { name: 'position', value: this._current } });
		}

		return this._current;
	};

	/**
	 * Invalidates the given part of the update routine.
	 * @param {String} [part] - The part to invalidate.
	 * @returns {Array.<String>} - The invalidated parts.
	 */
	wpexOwl.prototype.invalidate = function(part) {
		if ($.type(part) === 'string') {
			this._invalidated[part] = true;
			this.is('valid') && this.leave('valid');
		}
		return $.map(this._invalidated, function(v, i) { return i });
	};

	/**
	 * Resets the absolute position of the current item.
	 * @public
	 * @param {Number} position - The absolute position of the new item.
	 */
	wpexOwl.prototype.reset = function(position) {
		position = this.normalize(position);

		if (position === undefined) {
			return;
		}

		this._speed = 0;
		this._current = position;

		this.suppress([ 'translate', 'translated' ]);

		this.animate(this.coordinates(position));

		this.release([ 'translate', 'translated' ]);
	};

	/**
	 * Normalizes an absolute or a relative position of an item.
	 * @public
	 * @param {Number} position - The absolute or relative position to normalize.
	 * @param {Boolean} [relative=false] - Whether the given position is relative or not.
	 * @returns {Number} - The normalized position.
	 */
	wpexOwl.prototype.normalize = function(position, relative) {
		var n = this._items.length,
			m = relative ? 0 : this._clones.length;

		if (!this.isNumeric(position) || n < 1) {
			position = undefined;
		} else if (position < 0 || position >= n + m) {
			position = ((position - m / 2) % n + n) % n + m / 2;
		}

		return position;
	};

	/**
	 * Converts an absolute position of an item into a relative one.
	 * @public
	 * @param {Number} position - The absolute position to convert.
	 * @returns {Number} - The converted position.
	 */
	wpexOwl.prototype.relative = function(position) {
		position -= this._clones.length / 2;
		return this.normalize(position, true);
	};

	/**
	 * Gets the maximum position for the current item.
	 * @public
	 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
	 * @returns {Number}
	 */
	wpexOwl.prototype.maximum = function(relative) {
		var settings = this.settings,
			maximum = this._coordinates.length,
			iterator,
			reciprocalItemsWidth,
			elementWidth;

		if (settings.loop) {
			maximum = this._clones.length / 2 + this._items.length - 1;
		} else if (settings.autoWidth || settings.merge) {
			iterator = this._items.length;
			if (iterator) {
				reciprocalItemsWidth = this._items[--iterator].width();
				elementWidth = this.$element.width();
				while (iterator--) {
					reciprocalItemsWidth += this._items[iterator].width() + this.settings.margin;
					if (reciprocalItemsWidth > elementWidth) {
						break;
					}
				}
			}
			maximum = iterator + 1;
		} else if (settings.center) {
			maximum = this._items.length - 1;
		} else {
			maximum = this._items.length - settings.items;
		}

		if (relative) {
			maximum -= this._clones.length / 2;
		}

		return Math.max(maximum, 0);
	};

	/**
	 * Gets the minimum position for the current item.
	 * @public
	 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position.
	 * @returns {Number}
	 */
	wpexOwl.prototype.minimum = function(relative) {
		return relative ? 0 : this._clones.length / 2;
	};

	/**
	 * Gets an item at the specified relative position.
	 * @public
	 * @param {Number} [position] - The relative position of the item.
	 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
	 */
	wpexOwl.prototype.items = function(position) {
		if (position === undefined) {
			return this._items.slice();
		}

		position = this.normalize(position, true);
		return this._items[position];
	};

	/**
	 * Gets an item at the specified relative position.
	 * @public
	 * @param {Number} [position] - The relative position of the item.
	 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given.
	 */
	wpexOwl.prototype.mergers = function(position) {
		if (position === undefined) {
			return this._mergers.slice();
		}

		position = this.normalize(position, true);
		return this._mergers[position];
	};

	/**
	 * Gets the absolute positions of clones for an item.
	 * @public
	 * @param {Number} [position] - The relative position of the item.
	 * @returns {Array.<Number>} - The absolute positions of clones for the item or all if no position was given.
	 */
	wpexOwl.prototype.clones = function(position) {
		var odd = this._clones.length / 2,
			even = odd + this._items.length,
			map = function(index) { return index % 2 === 0 ? even + index / 2 : odd - (index + 1) / 2 };

		if (position === undefined) {
			return $.map(this._clones, function(v, i) { return map(i) });
		}

		return $.map(this._clones, function(v, i) { return v === position ? map(i) : null });
	};

	/**
	 * Sets the current animation speed.
	 * @public
	 * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged.
	 * @returns {Number} - The current animation speed in milliseconds.
	 */
	wpexOwl.prototype.speed = function(speed) {
		if (speed !== undefined) {
			this._speed = speed;
		}

		return this._speed;
	};

	/**
	 * Gets the coordinate of an item.
	 * @todo The name of this method is missleanding.
	 * @public
	 * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`.
	 * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates.
	 */
	wpexOwl.prototype.coordinates = function(position) {
		var multiplier = 1,
			newPosition = position - 1,
			coordinate;

		if (position === undefined) {
			return $.map(this._coordinates, $.proxy(function(coordinate, index) {
				return this.coordinates(index);
			}, this));
		}

		if (this.settings.center) {
			if (this.settings.rtl) {
				multiplier = -1;
				newPosition = position + 1;
			}

			coordinate = this._coordinates[position];
			coordinate += (this.width() - coordinate + (this._coordinates[newPosition] || 0)) / 2 * multiplier;
		} else {
			coordinate = this._coordinates[newPosition] || 0;
		}

		coordinate = Math.ceil(coordinate);

		return coordinate;
	};

	/**
	 * Calculates the speed for a translation.
	 * @protected
	 * @param {Number} from - The absolute position of the start item.
	 * @param {Number} to - The absolute position of the target item.
	 * @param {Number} [factor=undefined] - The time factor in milliseconds.
	 * @returns {Number} - The time in milliseconds for the translation.
	 */
	wpexOwl.prototype.duration = function(from, to, factor) {
		if (factor === 0) {
			return 0;
		}

		return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed));
	};

	/**
	 * Slides to the specified item.
	 * @public
	 * @param {Number} position - The position of the item.
	 * @param {Number} [speed] - The time in milliseconds for the transition.
	 */
	wpexOwl.prototype.to = function(position, speed) {
		var current = this.current(),
			revert = null,
			distance = position - this.relative(current),
			direction = (distance > 0) - (distance < 0),
			items = this._items.length,
			minimum = this.minimum(),
			maximum = this.maximum();

		if (this.settings.loop) {
			if (!this.settings.rewind && Math.abs(distance) > items / 2) {
				distance += direction * -1 * items;
			}

			position = current + distance;
			revert = ((position - minimum) % items + items) % items + minimum;

			if (revert !== position && revert - distance <= maximum && revert - distance > 0) {
				current = revert - distance;
				position = revert;
				this.reset(current);
			}
		} else if (this.settings.rewind) {
			maximum += 1;
			position = (position % maximum + maximum) % maximum;
		} else {
			position = Math.max(minimum, Math.min(maximum, position));
		}

		this.speed(this.duration(current, position, speed));
		this.current(position);

		if (this.isVisible()) {
			this.update();
		}
	};

	/**
	 * Slides to the next item.
	 * @public
	 * @param {Number} [speed] - The time in milliseconds for the transition.
	 */
	wpexOwl.prototype.next = function(speed) {
		speed = speed || false;
		this.to(this.relative(this.current()) + 1, speed);
	};

	/**
	 * Slides to the previous item.
	 * @public
	 * @param {Number} [speed] - The time in milliseconds for the transition.
	 */
	wpexOwl.prototype.prev = function(speed) {
		speed = speed || false;
		this.to(this.relative(this.current()) - 1, speed);
	};

	/**
	 * Handles the end of an animation.
	 * @protected
	 * @param {Event} event - The event arguments.
	 */
	wpexOwl.prototype.onTransitionEnd = function(event) {

		// if css2 animation then event object is undefined
		if (event !== undefined) {
			event.stopPropagation();

			// Catch only owl-stage transitionEnd event
			if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) {
				return false;
			}
		}

		this.leave('animating');
		this.trigger('translated');
	};

	/**
	 * Gets viewport width.
	 * @protected
	 * @return {Number} - The width in pixel.
	 */
	wpexOwl.prototype.viewport = function() {
		var width;
		if (this.options.responsiveBaseElement !== window) {
			width = $(this.options.responsiveBaseElement).width();
		} else if (window.innerWidth) {
			width = window.innerWidth;
		} else if (document.documentElement && document.documentElement.clientWidth) {
			width = document.documentElement.clientWidth;
		} else {
			console.warn('Can not detect viewport width.');
		}
		return width;
	};

	/**
	 * Replaces the current content.
	 * @public
	 * @param {HTMLElement|jQuery|String} content - The new content.
	 */
	wpexOwl.prototype.replace = function(content) {
		this.$stage.empty();
		this._items = [];

		if (content) {
			content = (content instanceof jQuery) ? content : $(content);
		}

		if (this.settings.nestedItemSelector) {
			content = content.find('.' + this.settings.nestedItemSelector);
		}

		content.filter(function() {
			return this.nodeType === 1;
		}).each($.proxy(function(index, item) {
			item = this.prepare(item);
			this.$stage.append(item);
			this._items.push(item);
			this._mergers.push(item.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
		}, this));

		this.reset(this.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0);

		this.invalidate('items');
	};

	/**
	 * Adds an item.
	 * @todo Use `item` instead of `content` for the event arguments.
	 * @public
	 * @param {HTMLElement|jQuery|String} content - The item content to add.
	 * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end.
	 */
	wpexOwl.prototype.add = function(content, position) {
		var current = this.relative(this._current);

		position = position === undefined ? this._items.length : this.normalize(position, true);
		content = content instanceof jQuery ? content : $(content);

		this.trigger('add', { content: content, position: position });

		content = this.prepare(content);

		if (this._items.length === 0 || position === this._items.length) {
			this._items.length === 0 && this.$stage.append(content);
			this._items.length !== 0 && this._items[position - 1].after(content);
			this._items.push(content);
			this._mergers.push(content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
		} else {
			this._items[position].before(content);
			this._items.splice(position, 0, content);
			this._mergers.splice(position, 0, content.find('[data-merge]').addBack('[data-merge]').attr('data-merge') * 1 || 1);
		}

		this._items[current] && this.reset(this._items[current].index());

		this.invalidate('items');

		this.trigger('added', { content: content, position: position });
	};

	/**
	 * Removes an item by its position.
	 * @todo Use `item` instead of `content` for the event arguments.
	 * @public
	 * @param {Number} position - The relative position of the item to remove.
	 */
	wpexOwl.prototype.remove = function(position) {
		position = this.normalize(position, true);

		if (position === undefined) {
			return;
		}

		this.trigger('remove', { content: this._items[position], position: position });

		this._items[position].remove();
		this._items.splice(position, 1);
		this._mergers.splice(position, 1);

		this.invalidate('items');

		this.trigger('removed', { content: null, position: position });
	};

	/**
	 * Preloads images with auto width.
	 * @todo Replace by a more generic approach
	 * @protected
	 */
	wpexOwl.prototype.preloadAutoWidthImages = function(images) {
		images.each($.proxy(function(i, element) {
			this.enter('pre-loading');
			element = $(element);
			$(new Image()).one('load', $.proxy(function(e) {
				element.attr('src', e.target.src);
				element.css('opacity', 1);
				this.leave('pre-loading');
				!this.is('pre-loading') && !this.is('initializing') && this.refresh();
			}, this)).attr('src', element.attr('src') || element.attr('data-src') || element.attr('data-src-retina'));
		}, this));
	};

	/**
	 * Destroys the carousel.
	 * @public
	 */
	wpexOwl.prototype.destroy = function() {

		this.$element.off('.owl.core');
		this.$stage.off('.owl.core');
		$(document).off('.owl.core');

		if (this.settings.responsive !== false) {
			window.clearTimeout(this.resizeTimer);
			this.off(window, 'resize', this._handlers.onThrottledResize);
		}

		for (var i in this._plugins) {
			this._plugins[i].destroy();
		}

		this.$stage.children('.cloned').remove();

		this.$stage.unwrap();
		this.$stage.children().contents().unwrap();
		this.$stage.children().unwrap();
		this.$stage.remove();
		this.$element
			.removeClass(this.options.refreshClass)
			.removeClass(this.options.loadingClass)
			.removeClass(this.options.loadedClass)
			.removeClass(this.options.rtlClass)
			.removeClass(this.options.dragClass)
			.removeClass(this.options.grabClass)
			.attr('class', this.$element.attr('class').replace(new RegExp(this.options.responsiveClass + '-\\S+\\s', 'g'), ''))
			.removeData('owl.carousel');
	};

	/**
	 * Operators to calculate right-to-left and left-to-right.
	 * @protected
	 * @param {Number} [a] - The left side operand.
	 * @param {String} [o] - The operator.
	 * @param {Number} [b] - The right side operand.
	 */
	wpexOwl.prototype.op = function(a, o, b) {
		var rtl = this.settings.rtl;
		switch (o) {
			case '<':
				return rtl ? a > b : a < b;
			case '>':
				return rtl ? a < b : a > b;
			case '>=':
				return rtl ? a <= b : a >= b;
			case '<=':
				return rtl ? a >= b : a <= b;
			default:
				break;
		}
	};

	/**
	 * Attaches to an internal event.
	 * @protected
	 * @param {HTMLElement} element - The event source.
	 * @param {String} event - The event name.
	 * @param {Function} listener - The event handler to attach.
	 * @param {Boolean} capture - Wether the event should be handled at the capturing phase or not.
	 */
	wpexOwl.prototype.on = function(element, event, listener, capture) {
		if (element.addEventListener) {
			element.addEventListener(event, listener, capture);
		} else if (element.attachEvent) {
			element.attachEvent('on' + event, listener);
		}
	};

	/**
	 * Detaches from an internal event.
	 * @protected
	 * @param {HTMLElement} element - The event source.
	 * @param {String} event - The event name.
	 * @param {Function} listener - The attached event handler to detach.
	 * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not.
	 */
	wpexOwl.prototype.off = function(element, event, listener, capture) {
		if (element.removeEventListener) {
			element.removeEventListener(event, listener, capture);
		} else if (element.detachEvent) {
			element.detachEvent('on' + event, listener);
		}
	};

	/**
	 * Triggers a public event.
	 * @todo Remove `status`, `relatedTarget` should be used instead.
	 * @protected
	 * @param {String} name - The event name.
	 * @param {*} [data=null] - The event data.
	 * @param {String} [namespace=carousel] - The event namespace.
	 * @param {String} [state] - The state which is associated with the event.
	 * @param {Boolean} [enter=false] - Indicates if the call enters the specified state or not.
	 * @returns {Event} - The event arguments.
	 */
	wpexOwl.prototype.trigger = function(name, data, namespace, state, enter) {
		var status = {
			item: { count: this._items.length, index: this.current() }
		}, handler = $.camelCase(
			$.grep([ 'on', name, namespace ], function(v) { return v })
				.join('-').toLowerCase()
		), event = $.Event(
			[ name, 'owl', namespace || 'carousel' ].join('.').toLowerCase(),
			$.extend({ relatedTarget: this }, status, data)
		);

		if (!this._supress[name]) {
			$.each(this._plugins, function(name, plugin) {
				if (plugin.onTrigger) {
					plugin.onTrigger(event);
				}
			});

			this.register({ type: wpexOwl.Type.Event, name: name });
			this.$element.trigger(event);

			if (this.settings && typeof this.settings[handler] === 'function') {
				this.settings[handler].call(this, event);
			}
		}

		return event;
	};

	/**
	 * Enters a state.
	 * @param name - The state name.
	 */
	wpexOwl.prototype.enter = function(name) {
		$.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) {
			if (this._states.current[name] === undefined) {
				this._states.current[name] = 0;
			}

			this._states.current[name]++;
		}, this));
	};

	/**
	 * Leaves a state.
	 * @param name - The state name.
	 */
	wpexOwl.prototype.leave = function(name) {
		$.each([ name ].concat(this._states.tags[name] || []), $.proxy(function(i, name) {
			this._states.current[name]--;
		}, this));
	};

	/**
	 * Registers an event or state.
	 * @public
	 * @param {Object} object - The event or state to register.
	 */
	wpexOwl.prototype.register = function(object) {
		if (object.type === wpexOwl.Type.Event) {
			if (!$.event.special[object.name]) {
				$.event.special[object.name] = {};
			}

			if (!$.event.special[object.name].owl) {
				var _default = $.event.special[object.name]._default;
				$.event.special[object.name]._default = function(e) {
					if (_default && _default.apply && (!e.namespace || e.namespace.indexOf('owl') === -1)) {
						return _default.apply(this, arguments);
					}
					return e.namespace && e.namespace.indexOf('owl') > -1;
				};
				$.event.special[object.name].owl = true;
			}
		} else if (object.type === wpexOwl.Type.State) {
			if (!this._states.tags[object.name]) {
				this._states.tags[object.name] = object.tags;
			} else {
				this._states.tags[object.name] = this._states.tags[object.name].concat(object.tags);
			}

			this._states.tags[object.name] = $.grep(this._states.tags[object.name], $.proxy(function(tag, i) {
				return $.inArray(tag, this._states.tags[object.name]) === i;
			}, this));
		}
	};

	/**
	 * Suppresses events.
	 * @protected
	 * @param {Array.<String>} events - The events to suppress.
	 */
	wpexOwl.prototype.suppress = function(events) {
		$.each(events, $.proxy(function(index, event) {
			this._supress[event] = true;
		}, this));
	};

	/**
	 * Releases suppressed events.
	 * @protected
	 * @param {Array.<String>} events - The events to release.
	 */
	wpexOwl.prototype.release = function(events) {
		$.each(events, $.proxy(function(index, event) {
			delete this._supress[event];
		}, this));
	};

	/**
	 * Gets unified pointer coordinates from event.
	 * @todo #261
	 * @protected
	 * @param {Event} - The `mousedown` or `touchstart` event.
	 * @returns {Object} - Contains `x` and `y` coordinates of current pointer position.
	 */
	wpexOwl.prototype.pointer = function(event) {
		var result = { x: null, y: null };

		event = event.originalEvent || event || window.event;

		event = event.touches && event.touches.length ?
			event.touches[0] : event.changedTouches && event.changedTouches.length ?
				event.changedTouches[0] : event;

		if (event.pageX) {
			result.x = event.pageX;
			result.y = event.pageY;
		} else {
			result.x = event.clientX;
			result.y = event.clientY;
		}

		return result;
	};

	/**
	 * Determines if the input is a Number or something that can be coerced to a Number
	 * @protected
	 * @param {Number|String|Object|Array|Boolean|RegExp|Function|Symbol} - The input to be tested
	 * @returns {Boolean} - An indication if the input is a Number or can be coerced to a Number
	 */
	wpexOwl.prototype.isNumeric = function(number) {
		return !isNaN(parseFloat(number));
	};

	/**
	 * Gets the difference of two vectors.
	 * @todo #261
	 * @protected
	 * @param {Object} - The first vector.
	 * @param {Object} - The second vector.
	 * @returns {Object} - The difference.
	 */
	wpexOwl.prototype.difference = function(first, second) {
		return {
			x: first.x - second.x,
			y: first.y - second.y
		};
	};

	/**
	 * The jQuery Plugin for the wpexOwl Carousel
	 * @todo Navigation plugin `next` and `prev`
	 * @public
	 */
	$.fn.wpexOwlCarousel = function(option) {
		var args = Array.prototype.slice.call(arguments, 1);

		return this.each(function() {
			var $this = $(this),
				data = $this.data('owl.carousel');

			if (!data) {
				data = new wpexOwl(this, typeof option == 'object' && option);
				$this.data('owl.carousel', data);

				$.each([
					'next', 'prev', 'to', 'destroy', 'refresh', 'replace', 'add', 'remove'
				], function(i, event) {
					data.register({ type: wpexOwl.Type.Event, name: event });
					data.$element.on(event + '.owl.carousel.core', $.proxy(function(e) {
						if (e.namespace && e.relatedTarget !== this) {
							this.suppress([ event ]);
							data[event].apply(this, [].slice.call(arguments, 1));
							this.release([ event ]);
						}
					}, data));
				});
			}

			if (typeof option == 'string' && option.charAt(0) !== '_') {
				data[option].apply(data, args);
			}
		});
	};

	/**
	 * The constructor for the jQuery Plugin
	 * @public
	 */
	$.fn.wpexOwlCarousel.Constructor = wpexOwl;

})(window.Zepto || window.jQuery, window, document);

/**
 * AutoRefresh Plugin
 * @version 2.3.3
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){/**
	 * Creates the auto refresh plugin.
	 * @class The Auto Refresh Plugin
	 * @param {wpexOwl} carousel - The wpexOwl Carousel
	 */
	var AutoRefresh = function(carousel) {
		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * Refresh interval.
		 * @protected
		 * @type {number}
		 */
		this._interval = null;

		/**
		 * Whether the element is currently visible or not.
		 * @protected
		 * @type {Boolean}
		 */
		this._visible = null;

		/**
		 * All event handlers.
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'initialized.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.autoRefresh) {
					this.watch();
				}
			}, this)
		};

		// set default options
		this._core.options = $.extend({}, AutoRefresh.Defaults, this._core.options);

		// register event handlers
		this._core.$element.on(this._handlers);
	};

	/**
	 * Default options.
	 * @public
	 */
	AutoRefresh.Defaults = {
		autoRefresh: true,
		autoRefreshInterval: 500
	};

	/**
	 * Watches the element.
	 */
	AutoRefresh.prototype.watch = function() {
		if (this._interval) {
			return;
		}

		this._visible = this._core.isVisible();
		this._interval = window.setInterval($.proxy(this.refresh, this), this._core.settings.autoRefreshInterval);
	};

	/**
	 * Refreshes the element.
	 */
	AutoRefresh.prototype.refresh = function() {
		if (this._core.isVisible() === this._visible) {
			return;
		}

		this._visible = !this._visible;

		this._core.$element.toggleClass('owl-hidden', !this._visible);

		this._visible && (this._core.invalidate('width') && this._core.refresh());
	};

	/**
	 * Destroys the plugin.
	 */
	AutoRefresh.prototype.destroy = function() {
		var handler, property;

		window.clearInterval(this._interval);

		for (handler in this._handlers) {
			this._core.$element.off(handler, this._handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.AutoRefresh = AutoRefresh;

})(window.Zepto || window.jQuery, window, document);

/**
 * Lazy Plugin
 * @version 2.3.3
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){/**
	 * Creates the lazy plugin.
	 * @class The Lazy Plugin
	 * @param {wpexOwl} carousel - The wpexOwl Carousel
	 */
	var Lazy = function(carousel) {

		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * Already loaded items.
		 * @protected
		 * @type {Array.<jQuery>}
		 */
		this._loaded = [];

		/**
		 * Event handlers.
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'initialized.owl.carousel change.owl.carousel resized.owl.carousel': $.proxy(function(e) {
				if (!e.namespace) {
					return;
				}

				if (!this._core.settings || !this._core.settings.lazyLoad) {
					return;
				}

				if ((e.property && e.property.name == 'position') || e.type == 'initialized') {
					var settings = this._core.settings,
						n = (settings.center && Math.ceil(settings.items / 2) || settings.items),
						i = ((settings.center && n * -1) || 0),
						position = (e.property && e.property.value !== undefined ? e.property.value : this._core.current()) + i,
						clones = this._core.clones().length,
						load = $.proxy(function(i, v) { this.load(v) }, this);

					while (i++ < n) {
						this.load(clones / 2 + this._core.relative(position));
						clones && $.each(this._core.clones(this._core.relative(position)), load);
						position++;
					}
				}
			}, this)
		};

		// set the default options
		this._core.options = $.extend({}, Lazy.Defaults, this._core.options);

		// register event handler
		this._core.$element.on(this._handlers);
	};

	/**
	 * Default options.
	 * @public
	 */
	Lazy.Defaults = {
		lazyLoad: false
	};

	/**
	 * Loads all resources of an item at the specified position.
	 * @param {Number} position - The absolute position of the item.
	 * @protected
	 */
	Lazy.prototype.load = function(position) {
		var $item = this._core.$stage.children().eq(position),
			$elements = $item && $item.find('.owl-lazy');

		if (!$elements || $.inArray($item.get(0), this._loaded) > -1) {
			return;
		}

		$elements.each($.proxy(function(index, element) {
			var $element = $(element), image,
                url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src') || $element.attr('data-srcset');

			this._core.trigger('load', { element: $element, url: url }, 'lazy');

			if ($element.is('img')) {
				$element.one('load.owl.lazy', $.proxy(function() {
					$element.css('opacity', 1);
					this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
				}, this)).attr('src', url);
            } else if ($element.is('source')) {
                $element.one('load.owl.lazy', $.proxy(function() {
                    this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
                }, this)).attr('srcset', url);
			} else {
				image = new Image();
				image.onload = $.proxy(function() {
					$element.css({
						'background-image': 'url("' + url + '")',
						'opacity': '1'
					});
					this._core.trigger('loaded', { element: $element, url: url }, 'lazy');
				}, this);
				image.src = url;
			}
		}, this));

		this._loaded.push($item.get(0));
	};

	/**
	 * Destroys the plugin.
	 * @public
	 */
	Lazy.prototype.destroy = function() {
		var handler, property;

		for (handler in this.handlers) {
			this._core.$element.off(handler, this.handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.Lazy = Lazy;

})(window.Zepto || window.jQuery, window, document);

/**
 * AutoHeight Plugin
 * @version 2.3.3
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){/**
	 * Creates the auto height plugin.
	 * @class The Auto Height Plugin
	 * @param {wpexOwl} carousel - The wpexOwl Carousel
	 */
	var AutoHeight = function(carousel) {
		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * All event handlers.
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'initialized.owl.carousel refreshed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.autoHeight) {
					this.update();
				}
			}, this),
			'changed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.autoHeight && e.property.name === 'position'){
					console.log('update called');
					this.update();
				}
			}, this),
			'loaded.owl.lazy': $.proxy(function(e) {
				if (e.namespace && this._core.settings.autoHeight
					&& e.element.closest('.' + this._core.settings.itemClass).index() === this._core.current()) {
					this.update();
				}
			}, this)
		};

		// set default options
		this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options);

		// register event handlers
		this._core.$element.on(this._handlers);
		this._intervalId = null;
		var refThis = this;

		// These changes have been taken from a PR by gavrochelegnou proposed in #1575
		// and have been made compatible with the latest jQuery version
		$(window).on('load', function() {
			if (refThis._core.settings.autoHeight) {
				refThis.update();
			}
		});

		// Autoresize the height of the carousel when window is resized
		// When carousel has images, the height is dependent on the width
		// and should also change on resize
		$(window).resize(function() {
			if (refThis._core.settings.autoHeight) {
				if (refThis._intervalId != null) {
					clearTimeout(refThis._intervalId);
				}

				refThis._intervalId = setTimeout(function() {
					refThis.update();
				}, 250);
			}
		});

	};

	/**
	 * Default options.
	 * @public
	 */
	AutoHeight.Defaults = {
		autoHeight: false,
		autoHeightClass: 'owl-height'
	};

	/**
	 * Updates the view.
	 */
	AutoHeight.prototype.update = function() {
		var start = this._core._current,
			end = start + this._core.settings.items,
			visible = this._core.$stage.children().toArray().slice(start, end),
			heights = [],
			maxheight = 0;

		$.each(visible, function(index, item) {
			heights.push($(item).height());
		});

		maxheight = Math.max.apply(null, heights);

		this._core.$stage.parent()
			.height(maxheight)
			.addClass(this._core.settings.autoHeightClass);
	};

	AutoHeight.prototype.destroy = function() {
		var handler, property;

		for (handler in this._handlers) {
			this._core.$element.off(handler, this._handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] !== 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.AutoHeight = AutoHeight;

})(window.Zepto || window.jQuery, window, document);

/**
 * Video Plugin
 * @version 2.3.3
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){/**
	 * Creates the video plugin.
	 * @class The Video Plugin
	 * @param {wpexOwl} carousel - The wpexOwl Carousel
	 */
	var Video = function(carousel) {
		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * Cache all video URLs.
		 * @protected
		 * @type {Object}
		 */
		this._videos = {};

		/**
		 * Current playing item.
		 * @protected
		 * @type {jQuery}
		 */
		this._playing = null;

		/**
		 * All event handlers.
		 * @todo The cloned content removale is too late
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'initialized.owl.carousel': $.proxy(function(e) {
				if (e.namespace) {
					this._core.register({ type: 'state', name: 'playing', tags: [ 'interacting' ] });
				}
			}, this),
			'resize.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.video && this.isInFullScreen()) {
					e.preventDefault();
				}
			}, this),
			'refreshed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.is('resizing')) {
					this._core.$stage.find('.cloned .owl-video-frame').remove();
				}
			}, this),
			'changed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && e.property.name === 'position' && this._playing) {
					this.stop();
				}
			}, this),
			'prepared.owl.carousel': $.proxy(function(e) {
				if (!e.namespace) {
					return;
				}

				var $element = $(e.content).find('.owl-video');

				if ($element.length) {
					$element.css('display', 'none');
					this.fetch($element, $(e.content));
				}
			}, this)
		};

		// set default options
		this._core.options = $.extend({}, Video.Defaults, this._core.options);

		// register event handlers
		this._core.$element.on(this._handlers);

		this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function(e) {
			this.play(e);
		}, this));
	};

	/**
	 * Default options.
	 * @public
	 */
	Video.Defaults = {
		video: false,
		videoHeight: false,
		videoWidth: false
	};

	/**
	 * Gets the video ID and the type (YouTube/Vimeo/vzaar only).
	 * @protected
	 * @param {jQuery} target - The target containing the video data.
	 * @param {jQuery} item - The item containing the video.
	 */
	Video.prototype.fetch = function(target, item) {
			var type = (function() {
					if (target.attr('data-vimeo-id')) {
						return 'vimeo';
					} else if (target.attr('data-vzaar-id')) {
						return 'vzaar'
					} else {
						return 'youtube';
					}
				})(),
				id = target.attr('data-vimeo-id') || target.attr('data-youtube-id') || target.attr('data-vzaar-id'),
				width = target.attr('data-width') || this._core.settings.videoWidth,
				height = target.attr('data-height') || this._core.settings.videoHeight,
				url = target.attr('href');

		if (url) {

			/*
					Parses the id's out of the following urls (and probably more):
					https://www.youtube.com/watch?v=:id
					https://youtu.be/:id
					https://vimeo.com/:id
					https://vimeo.com/channels/:channel/:id
					https://vimeo.com/groups/:group/videos/:id
					https://app.vzaar.com/videos/:id

					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
			*/

			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+)?/);

			if (id[3].indexOf('youtu') > -1) {
				type = 'youtube';
			} else if (id[3].indexOf('vimeo') > -1) {
				type = 'vimeo';
			} else if (id[3].indexOf('vzaar') > -1) {
				type = 'vzaar';
			} else {
				throw new Error('Video URL not supported.');
			}
			id = id[6];
		} else {
			throw new Error('Missing video URL.');
		}

		this._videos[url] = {
			type: type,
			id: id,
			width: width,
			height: height
		};

		item.attr('data-video', url);

		this.thumbnail(target, this._videos[url]);
	};

	/**
	 * Creates video thumbnail.
	 * @protected
	 * @param {jQuery} target - The target containing the video data.
	 * @param {Object} info - The video info object.
	 * @see `fetch`
	 */
	Video.prototype.thumbnail = function(target, video) {
		var tnLink,
			icon,
			path,
			dimensions = video.width && video.height ? 'style="width:' + video.width + 'px;height:' + video.height + 'px;"' : '',
			customTn = target.find('img'),
			srcType = 'src',
			lazyClass = '',
			settings = this._core.settings,
			create = function(path) {
				icon = '<div class="owl-video-play-icon"></div>';

				if (settings.lazyLoad) {
					tnLink = '<div class="owl-video-tn ' + lazyClass + '" ' + srcType + '="' + path + '"></div>';
				} else {
					tnLink = '<div class="owl-video-tn" style="opacity:1;background-image:url(' + path + ')"></div>';
				}
				target.after(tnLink);
				target.after(icon);
			};

		// wrap video content into owl-video-wrapper div
		target.wrap('<div class="owl-video-wrapper"' + dimensions + '></div>');

		if (this._core.settings.lazyLoad) {
			srcType = 'data-src';
			lazyClass = 'owl-lazy';
		}

		// custom thumbnail
		if (customTn.length) {
			create(customTn.attr(srcType));
			customTn.remove();
			return false;
		}

		if (video.type === 'youtube') {
			path = "//img.youtube.com/vi/" + video.id + "/hqdefault.jpg";
			create(path);
		} else if (video.type === 'vimeo') {
			$.ajax({
				type: 'GET',
				url: '//vimeo.com/api/v2/video/' + video.id + '.json',
				jsonp: 'callback',
				dataType: 'jsonp',
				success: function(data) {
					path = data[0].thumbnail_large;
					create(path);
				}
			});
		} else if (video.type === 'vzaar') {
			$.ajax({
				type: 'GET',
				url: '//vzaar.com/api/videos/' + video.id + '.json',
				jsonp: 'callback',
				dataType: 'jsonp',
				success: function(data) {
					path = data.framegrab_url;
					create(path);
				}
			});
		}
	};

	/**
	 * Stops the current video.
	 * @public
	 */
	Video.prototype.stop = function() {
		this._core.trigger('stop', null, 'video');
		this._playing.find('.owl-video-frame').remove();
		this._playing.removeClass('owl-video-playing');
		this._playing = null;
		this._core.leave('playing');
		this._core.trigger('stopped', null, 'video');
	};

	/**
	 * Starts the current video.
	 * @public
	 * @param {Event} event - The event arguments.
	 */
	Video.prototype.play = function(event) {
		var target = $(event.target),
			item = target.closest('.' + this._core.settings.itemClass),
			video = this._videos[item.attr('data-video')],
			width = video.width || '100%',
			height = video.height || this._core.$stage.height(),
			html;

		if (this._playing) {
			return;
		}

		this._core.enter('playing');
		this._core.trigger('play', null, 'video');

		item = this._core.items(this._core.relative(item.index()));

		this._core.reset(item.index());

		if (video.type === 'youtube') {
			html = '<iframe width="' + width + '" height="' + height + '" src="//www.youtube.com/embed/' +
				video.id + '?autoplay=1&rel=0&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>';
		} else if (video.type === 'vimeo') {
			html = '<iframe src="//player.vimeo.com/video/' + video.id +
				'?autoplay=1" width="' + width + '" height="' + height +
				'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
		} else if (video.type === 'vzaar') {
			html = '<iframe frameborder="0"' + 'height="' + height + '"' + 'width="' + width +
				'" allowfullscreen mozallowfullscreen webkitAllowFullScreen ' +
				'src="//view.vzaar.com/' + video.id + '/player?autoplay=true"></iframe>';
		}

		$('<div class="owl-video-frame">' + html + '</div>').insertAfter(item.find('.owl-video'));

		this._playing = item.addClass('owl-video-playing');
	};

	/**
	 * Checks whether an video is currently in full screen mode or not.
	 * @todo Bad style because looks like a readonly method but changes members.
	 * @protected
	 * @returns {Boolean}
	 */
	Video.prototype.isInFullScreen = function() {
		var element = document.fullscreenElement || document.mozFullScreenElement ||
				document.webkitFullscreenElement;

		return element && $(element).parent().hasClass('owl-video-frame');
	};

	/**
	 * Destroys the plugin.
	 */
	Video.prototype.destroy = function() {
		var handler, property;

		this._core.$element.off('click.owl.video');

		for (handler in this._handlers) {
			this._core.$element.off(handler, this._handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.Video = Video;

})(window.Zepto || window.jQuery, window, document);

/**
 * Animate Plugin
 * @version 2.3.3
 * @author Bartosz Wojciechowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){/**
	 * Creates the animate plugin.
	 * @class The Navigation Plugin
	 * @param {wpexOwl} scope - The wpexOwl Carousel
	 */
	var Animate = function(scope) {
		this.core = scope;
		this.core.options = $.extend({}, Animate.Defaults, this.core.options);
		this.swapping = true;
		this.previous = undefined;
		this.next = undefined;

		this.handlers = {
			'change.owl.carousel': $.proxy(function(e) {
				if (e.namespace && e.property.name == 'position') {
					this.previous = this.core.current();
					this.next = e.property.value;
				}
			}, this),
			'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function(e) {
				if (e.namespace) {
					this.swapping = e.type == 'translated';
				}
			}, this),
			'translate.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) {
					this.swap();
				}
			}, this)
		};

		this.core.$element.on(this.handlers);
	};

	/**
	 * Default options.
	 * @public
	 */
	Animate.Defaults = {
		animateOut: false,
		animateIn: false
	};

	/**
	 * Toggles the animation classes whenever an translations starts.
	 * @protected
	 * @returns {Boolean|undefined}
	 */
	Animate.prototype.swap = function() {

		if (this.core.settings.items !== 1) {
			return;
		}

		if (!$.support.animation || !$.support.transition) {
			return;
		}

		this.core.speed(0);

		var left,
			clear = $.proxy(this.clear, this),
			previous = this.core.$stage.children().eq(this.previous),
			next = this.core.$stage.children().eq(this.next),
			incoming = this.core.settings.animateIn,
			outgoing = this.core.settings.animateOut;

		if (this.core.current() === this.previous) {
			return;
		}

		if (outgoing) {
			left = this.core.coordinates(this.previous) - this.core.coordinates(this.next);
			previous.one($.support.animation.end, clear)
				.css( { 'left': left + 'px' } )
				.addClass('animated owl-animated-out')
				.addClass(outgoing);
		}

		if (incoming) {
			next.one($.support.animation.end, clear)
				.addClass('animated owl-animated-in')
				.addClass(incoming);
		}
	};

	Animate.prototype.clear = function(e) {
		$(e.target).css( { 'left': '' } )
			.removeClass('animated owl-animated-out owl-animated-in')
			.removeClass(this.core.settings.animateIn)
			.removeClass(this.core.settings.animateOut);
		this.core.onTransitionEnd();
	};

	/**
	 * Destroys the plugin.
	 * @public
	 */
	Animate.prototype.destroy = function() {
		var handler, property;

		for (handler in this.handlers) {
			this.core.$element.off(handler, this.handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.Animate = Animate;

})(window.Zepto || window.jQuery, window, document);

/**
 * Autoplay Plugin
 * @version 2.3.3
 * @author Bartosz Wojciechowski
 * @author Artus Kolanowski
 * @author David Deutsch
 * @author Tom De Caluwé
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){/**
	 * Creates the autoplay plugin.
	 * @class The Autoplay Plugin
	 * @param {wpexOwl} scope - The wpexOwl Carousel
	 */
	var Autoplay = function(carousel) {
		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * The autoplay timeout id.
		 * @type {Number}
		 */
		this._call = null;

		/**
		 * Depending on the state of the plugin, this variable contains either
		 * the start time of the timer or the current timer value if it's
		 * paused. Since we start in a paused state we initialize the timer
		 * value.
		 * @type {Number}
		 */
		this._time = 0;

		/**
		 * Stores the timeout currently used.
		 * @type {Number}
		 */
		this._timeout = 0;

		/**
		 * Indicates whenever the autoplay is paused.
		 * @type {Boolean}
		 */
		this._paused = true;

		/**
		 * All event handlers.
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'changed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && e.property.name === 'settings') {
					if (this._core.settings.autoplay) {
						this.play();
					} else {
						this.stop();
					}
				} else if (e.namespace && e.property.name === 'position' && this._paused) {
					// Reset the timer. This code is triggered when the position
					// of the carousel was changed through user interaction.
					this._time = 0;
				}
			}, this),
			'initialized.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.autoplay) {
					this.play();
				}
			}, this),
			'play.owl.autoplay': $.proxy(function(e, t, s) {
				if (e.namespace) {
					this.play(t, s);
				}
			}, this),
			'stop.owl.autoplay': $.proxy(function(e) {
				if (e.namespace) {
					this.stop();
				}
			}, this),
			'mouseover.owl.autoplay': $.proxy(function() {
				if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
					this.pause();
				}
			}, this),
			'mouseleave.owl.autoplay': $.proxy(function() {
				if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
					this.play();
				}
			}, this),
			'touchstart.owl.core': $.proxy(function() {
				if (this._core.settings.autoplayHoverPause && this._core.is('rotating')) {
					this.pause();
				}
			}, this),
			'touchend.owl.core': $.proxy(function() {
				if (this._core.settings.autoplayHoverPause) {
					this.play();
				}
			}, this)
		};

		// register event handlers
		this._core.$element.on(this._handlers);

		// set default options
		this._core.options = $.extend({}, Autoplay.Defaults, this._core.options);
	};

	/**
	 * Default options.
	 * @public
	 */
	Autoplay.Defaults = {
		autoplay: false,
		autoplayTimeout: 5000,
		autoplayHoverPause: false,
		autoplaySpeed: false
	};

	/**
	 * Transition to the next slide and set a timeout for the next transition.
	 * @private
	 * @param {Number} [speed] - The animation speed for the animations.
	 */
	Autoplay.prototype._next = function(speed) {
		this._call = window.setTimeout(
			$.proxy(this._next, this, speed),
			this._timeout * (Math.round(this.read() / this._timeout) + 1) - this.read()
		);

		if (this._core.is('interacting') || document.hidden) {
			return;
		}
		this._core.next(speed || this._core.settings.autoplaySpeed);
	}

	/**
	 * Reads the current timer value when the timer is playing.
	 * @public
	 */
	Autoplay.prototype.read = function() {
		return new Date().getTime() - this._time;
	};

	/**
	 * Starts the autoplay.
	 * @public
	 * @param {Number} [timeout] - The interval before the next animation starts.
	 * @param {Number} [speed] - The animation speed for the animations.
	 */
	Autoplay.prototype.play = function(timeout, speed) {
		var elapsed;

		if (!this._core.is('rotating')) {
			this._core.enter('rotating');
		}

		timeout = timeout || this._core.settings.autoplayTimeout;

		// Calculate the elapsed time since the last transition. If the carousel
		// wasn't playing this calculation will yield zero.
		elapsed = Math.min(this._time % (this._timeout || timeout), timeout);

		if (this._paused) {
			// Start the clock.
			this._time = this.read();
			this._paused = false;
		} else {
			// Clear the active timeout to allow replacement.
			window.clearTimeout(this._call);
		}

		// Adjust the origin of the timer to match the new timeout value.
		this._time += this.read() % timeout - elapsed;

		this._timeout = timeout;
		this._call = window.setTimeout($.proxy(this._next, this, speed), timeout - elapsed);
	};

	/**
	 * Stops the autoplay.
	 * @public
	 */
	Autoplay.prototype.stop = function() {
		if (this._core.is('rotating')) {
			// Reset the clock.
			this._time = 0;
			this._paused = true;

			window.clearTimeout(this._call);
			this._core.leave('rotating');
		}
	};

	/**
	 * Pauses the autoplay.
	 * @public
	 */
	Autoplay.prototype.pause = function() {
		if (this._core.is('rotating') && !this._paused) {
			// Pause the clock.
			this._time = this.read();
			this._paused = true;

			window.clearTimeout(this._call);
		}
	};

	/**
	 * Destroys the plugin.
	 */
	Autoplay.prototype.destroy = function() {
		var handler, property;

		this.stop();

		for (handler in this._handlers) {
			this._core.$element.off(handler, this._handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.autoplay = Autoplay;

})(window.Zepto || window.jQuery, window, document);

/**
 * Navigation Plugin
 * @version 2.3.3
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){'use strict';/**
	 * Creates the navigation plugin.
	 * @class The Navigation Plugin
	 * @param {wpexOwl} carousel - The wpexOwl Carousel.
	 */
	var Navigation = function(carousel) {
		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * Indicates whether the plugin is initialized or not.
		 * @protected
		 * @type {Boolean}
		 */
		this._initialized = false;

		/**
		 * The current paging indexes.
		 * @protected
		 * @type {Array}
		 */
		this._pages = [];

		/**
		 * All DOM elements of the user interface.
		 * @protected
		 * @type {Object}
		 */
		this._controls = {};

		/**
		 * Markup for an indicator.
		 * @protected
		 * @type {Array.<String>}
		 */
		this._templates = [];

		/**
		 * The carousel element.
		 * @type {jQuery}
		 */
		this.$element = this._core.$element;

		/**
		 * Overridden methods of the carousel.
		 * @protected
		 * @type {Object}
		 */
		this._overrides = {
			next: this._core.next,
			prev: this._core.prev,
			to: this._core.to
		};

		/**
		 * All event handlers.
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'prepared.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.dotsData) {
					this._templates.push('<div class="' + this._core.settings.dotClass + '">' +
						$(e.content).find('[data-dot]').addBack('[data-dot]').attr('data-dot') + '</div>');
				}
			}, this),
			'added.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.dotsData) {
					this._templates.splice(e.position, 0, this._templates.pop());
				}
			}, this),
			'remove.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.dotsData) {
					this._templates.splice(e.position, 1);
				}
			}, this),
			'changed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && e.property.name == 'position') {
					this.draw();
				}
			}, this),
			'initialized.owl.carousel': $.proxy(function(e) {
				if (e.namespace && !this._initialized) {
					this._core.trigger('initialize', null, 'navigation');
					this.initialize();
					this.update();
					this.draw();
					this._initialized = true;
					this._core.trigger('initialized', null, 'navigation');
				}
			}, this),
			'refreshed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._initialized) {
					this._core.trigger('refresh', null, 'navigation');
					this.update();
					this.draw();
					this._core.trigger('refreshed', null, 'navigation');
				}
			}, this)
		};

		// set default options
		this._core.options = $.extend({}, Navigation.Defaults, this._core.options);

		// register event handlers
		this.$element.on(this._handlers);
	};

	/**
	 * Default options.
	 * @public
	 * @todo Rename `slideBy` to `navBy`
	 */
	Navigation.Defaults = {
		nav: false,
		navText: [
			'<span aria-label="' + 'Previous' + '">&#x2039;</span>',
			'<span aria-label="' + 'Next' + '">&#x203a;</span>'
		],
		navSpeed: false,
		navElement: 'button type="button" role="presentation"',
		navContainer: false,
		navContainerClass: 'owl-nav',
		navClass: [
			'owl-prev',
			'owl-next'
		],
		slideBy: 1,
		dotClass: 'owl-dot',
		dotsClass: 'owl-dots',
		dots: true,
		dotsEach: false,
		dotsData: false,
		dotsSpeed: false,
		dotsContainer: false
	};

	/**
	 * Initializes the layout of the plugin and extends the carousel.
	 * @protected
	 */
	Navigation.prototype.initialize = function() {
		var override,
			settings = this._core.settings;

		// create DOM structure for relative navigation
		this._controls.$relative = (settings.navContainer ? $(settings.navContainer)
			: $('<div>').addClass(settings.navContainerClass).appendTo(this.$element)).addClass('disabled');

		this._controls.$previous = $('<' + settings.navElement + '>')
			.addClass(settings.navClass[0])
			.html(settings.navText[0])
			.prependTo(this._controls.$relative)
			.on('click', $.proxy(function(e) {
				this.prev(settings.navSpeed);
			}, this));
		this._controls.$next = $('<' + settings.navElement + '>')
			.addClass(settings.navClass[1])
			.html(settings.navText[1])
			.appendTo(this._controls.$relative)
			.on('click', $.proxy(function(e) {
				this.next(settings.navSpeed);
			}, this));

		// create DOM structure for absolute navigation
		if (!settings.dotsData) {
			this._templates = [ $('<button role="button">')
				.addClass(settings.dotClass)
				.append($('<span>'))
				.prop('outerHTML') ];
		}

		this._controls.$absolute = (settings.dotsContainer ? $(settings.dotsContainer)
			: $('<div>').addClass(settings.dotsClass).appendTo(this.$element)).addClass('disabled');

		this._controls.$absolute.on('click', 'button', $.proxy(function(e) {
			var index = $(e.target).parent().is(this._controls.$absolute)
				? $(e.target).index() : $(e.target).parent().index();

			e.preventDefault();

			this.to(index, settings.dotsSpeed);
		}, this));

		/*$el.on('focusin', function() {
			$(document).off(".carousel");

			$(document).on('keydown.carousel', function(e) {
				if(e.keyCode == 37) {
					$el.trigger('prev.owl')
				}
				if(e.keyCode == 39) {
					$el.trigger('next.owl')
				}
			});
		});*/

		// override public methods of the carousel
		for (override in this._overrides) {
			this._core[override] = $.proxy(this[override], this);
		}
	};

	/**
	 * Destroys the plugin.
	 * @protected
	 */
	Navigation.prototype.destroy = function() {
		var handler, control, property, override, settings;
		settings = this._core.settings;

		for (handler in this._handlers) {
			this.$element.off(handler, this._handlers[handler]);
		}
		for (control in this._controls) {
			if (control === '$relative' && settings.navContainer) {
				this._controls[control].html('');
			} else {
				this._controls[control].remove();
			}
		}
		for (override in this.overides) {
			this._core[override] = this._overrides[override];
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	/**
	 * Updates the internal state.
	 * @protected
	 */
	Navigation.prototype.update = function() {
		var i, j, k,
			lower = this._core.clones().length / 2,
			upper = lower + this._core.items().length,
			maximum = this._core.maximum(true),
			settings = this._core.settings,
			size = settings.center || settings.autoWidth || settings.dotsData
				? 1 : settings.dotsEach || settings.items;

		if (settings.slideBy !== 'page') {
			settings.slideBy = Math.min(settings.slideBy, settings.items);
		}

		if (settings.dots || settings.slideBy == 'page') {
			this._pages = [];

			for (i = lower, j = 0, k = 0; i < upper; i++) {
				if (j >= size || j === 0) {
					this._pages.push({
						start: Math.min(maximum, i - lower),
						end: i - lower + size - 1
					});
					if (Math.min(maximum, i - lower) === maximum) {
						break;
					}
					j = 0, ++k;
				}
				j += this._core.mergers(this._core.relative(i));
			}
		}
	};

	/**
	 * Draws the user interface.
	 * @todo The option `dotsData` wont work.
	 * @protected
	 */
	Navigation.prototype.draw = function() {
		var difference,
			settings = this._core.settings,
			disabled = this._core.items().length <= settings.items,
			index = this._core.relative(this._core.current()),
			loop = settings.loop || settings.rewind;

		this._controls.$relative.toggleClass('disabled', !settings.nav || disabled);

		if (settings.nav) {
			this._controls.$previous.toggleClass('disabled', !loop && index <= this._core.minimum(true));
			this._controls.$next.toggleClass('disabled', !loop && index >= this._core.maximum(true));
		}

		this._controls.$absolute.toggleClass('disabled', !settings.dots || disabled);

		if (settings.dots) {
			difference = this._pages.length - this._controls.$absolute.children().length;

			if (settings.dotsData && difference !== 0) {
				this._controls.$absolute.html(this._templates.join(''));
			} else if (difference > 0) {
				this._controls.$absolute.append(new Array(difference + 1).join(this._templates[0]));
			} else if (difference < 0) {
				this._controls.$absolute.children().slice(difference).remove();
			}

			this._controls.$absolute.find('.active').removeClass('active');
			this._controls.$absolute.children().eq($.inArray(this.current(), this._pages)).addClass('active');
		}
	};

	/**
	 * Extends event data.
	 * @protected
	 * @param {Event} event - The event object which gets thrown.
	 */
	Navigation.prototype.onTrigger = function(event) {
		var settings = this._core.settings;

		event.page = {
			index: $.inArray(this.current(), this._pages),
			count: this._pages.length,
			size: settings && (settings.center || settings.autoWidth || settings.dotsData
				? 1 : settings.dotsEach || settings.items)
		};
	};

	/**
	 * Gets the current page position of the carousel.
	 * @protected
	 * @returns {Number}
	 */
	Navigation.prototype.current = function() {
		var current = this._core.relative(this._core.current());
		return $.grep(this._pages, $.proxy(function(page, index) {
			return page.start <= current && page.end >= current;
		}, this)).pop();
	};

	/**
	 * Gets the current succesor/predecessor position.
	 * @protected
	 * @returns {Number}
	 */
	Navigation.prototype.getPosition = function(successor) {
		var position, length,
			settings = this._core.settings;

		if (settings.slideBy == 'page') {
			position = $.inArray(this.current(), this._pages);
			length = this._pages.length;
			successor ? ++position : --position;
			position = this._pages[((position % length) + length) % length].start;
		} else {
			position = this._core.relative(this._core.current());
			length = this._core.items().length;
			successor ? position += settings.slideBy : position -= settings.slideBy;
		}

		return position;
	};

	/**
	 * Slides to the next item or page.
	 * @public
	 * @param {Number} [speed=false] - The time in milliseconds for the transition.
	 */
	Navigation.prototype.next = function(speed) {
		$.proxy(this._overrides.to, this._core)(this.getPosition(true), speed);
	};

	/**
	 * Slides to the previous item or page.
	 * @public
	 * @param {Number} [speed=false] - The time in milliseconds for the transition.
	 */
	Navigation.prototype.prev = function(speed) {
		$.proxy(this._overrides.to, this._core)(this.getPosition(false), speed);
	};

	/**
	 * Slides to the specified item or page.
	 * @public
	 * @param {Number} position - The position of the item or page.
	 * @param {Number} [speed] - The time in milliseconds for the transition.
	 * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not.
	 */
	Navigation.prototype.to = function(position, speed, standard) {
		var length;

		if (!standard && this._pages.length) {
			length = this._pages.length;
			$.proxy(this._overrides.to, this._core)(this._pages[((position % length) + length) % length].start, speed);
		} else {
			$.proxy(this._overrides.to, this._core)(position, speed);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.Navigation = Navigation;

})(window.Zepto || window.jQuery, window, document);

/**
 * Hash Plugin
 * @version 2.3.3
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){'use strict';/**
	 * Creates the hash plugin.
	 * @class The Hash Plugin
	 * @param {wpexOwl} carousel - The wpexOwl Carousel
	 */
	var Hash = function(carousel) {
		/**
		 * Reference to the core.
		 * @protected
		 * @type {wpexOwl}
		 */
		this._core = carousel;

		/**
		 * Hash index for the items.
		 * @protected
		 * @type {Object}
		 */
		this._hashes = {};

		/**
		 * The carousel element.
		 * @type {jQuery}
		 */
		this.$element = this._core.$element;

		/**
		 * All event handlers.
		 * @protected
		 * @type {Object}
		 */
		this._handlers = {
			'initialized.owl.carousel': $.proxy(function(e) {
				if (e.namespace && this._core.settings.startPosition === 'URLHash') {
					$(window).trigger('hashchange.owl.navigation');
				}
			}, this),
			'prepared.owl.carousel': $.proxy(function(e) {
				if (e.namespace) {
					var hash = $(e.content).find('[data-hash]').addBack('[data-hash]').attr('data-hash');

					if (!hash) {
						return;
					}

					this._hashes[hash] = e.content;
				}
			}, this),
			'changed.owl.carousel': $.proxy(function(e) {
				if (e.namespace && e.property.name === 'position') {
					var current = this._core.items(this._core.relative(this._core.current())),
						hash = $.map(this._hashes, function(item, hash) {
							return item === current ? hash : null;
						}).join();

					if (!hash || window.location.hash.slice(1) === hash) {
						return;
					}

					window.location.hash = hash;
				}
			}, this)
		};

		// set default options
		this._core.options = $.extend({}, Hash.Defaults, this._core.options);

		// register the event handlers
		this.$element.on(this._handlers);

		// register event listener for hash navigation
		$(window).on('hashchange.owl.navigation', $.proxy(function(e) {
			var hash = window.location.hash.substring(1),
				items = this._core.$stage.children(),
				position = this._hashes[hash] && items.index(this._hashes[hash]);

			if (position === undefined || position === this._core.current()) {
				return;
			}

			this._core.to(this._core.relative(position), false, true);
		}, this));
	};

	/**
	 * Default options.
	 * @public
	 */
	Hash.Defaults = {
		URLhashListener: false
	};

	/**
	 * Destroys the plugin.
	 * @public
	 */
	Hash.prototype.destroy = function() {
		var handler, property;

		$(window).off('hashchange.owl.navigation');

		for (handler in this._handlers) {
			this._core.$element.off(handler, this._handlers[handler]);
		}
		for (property in Object.getOwnPropertyNames(this)) {
			typeof this[property] != 'function' && (this[property] = null);
		}
	};

	$.fn.wpexOwlCarousel.Constructor.Plugins.Hash = Hash;

})(window.Zepto || window.jQuery, window, document);

/**
 * Support Plugin
 *
 * @version 2.3.3
 * @author Vivid Planet Software GmbH
 * @author Artus Kolanowski
 * @author David Deutsch
 * @license The MIT License (MIT)
 */
;(function($,window,document,undefined){var style=$('<support>').get(0).style,prefixes='Webkit Moz O ms'.split(' '),events={transition:{end:{WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd',transition:'transitionend'}},animation:{end:{WebkitAnimation:'webkitAnimationEnd',MozAnimation:'animationend',OAnimation:'oAnimationEnd',animation:'animationend'}}},tests={csstransforms:function(){return!!test('transform')},csstransforms3d:function(){return!!test('perspective')},csstransitions:function(){return!!test('transition')},cssanimations:function(){return!!test('animation')}};function test(property,prefixed){var result=!1,upper=property.charAt(0).toUpperCase()+property.slice(1);$.each((property+' '+prefixes.join(upper+' ')+upper).split(' '),function(i,property){if(style[property]!==undefined){result=prefixed?property:!0;return!1}});return result}
function prefixed(property){return test(property,!0)}
if(tests.csstransitions()){$.support.transition=new String(prefixed('transition'))
$.support.transition.end=events.transition.end[$.support.transition]}
if(tests.cssanimations()){$.support.animation=new String(prefixed('animation'))
$.support.animation.end=events.animation.end[$.support.animation]}
if(tests.csstransforms()){$.support.transform=new String(prefixed('transform'));$.support.transform3d=tests.csstransforms3d()}})(window.Zepto||window.jQuery,window,document);(function(e){e.fn.appear=function(t,n){var r=e.extend({data:undefined,one:!0,accX:0,accY:0},n);return this.each(function(){var n=e(this);n.appeared=!1;if(!t){n.trigger("appear",r.data);return}var i=e(window);var s=function(){if(!n.is(":visible")){n.appeared=!1;return}var e=i.scrollLeft();var t=i.scrollTop();var s=n.offset();var o=s.left;var u=s.top;var a=r.accX;var f=r.accY;var l=n.height();var c=i.height();var h=n.width();var p=i.width();if(u+l+f>=t&&u<=t+c+f&&o+h+a>=e&&o<=e+p+a){if(!n.appeared)n.trigger("appear",r.data)}else{n.appeared=!1}};var o=function(){n.appeared=!0;if(r.one){i.unbind("scroll",s);var o=e.inArray(s,e.fn.appear.checks);if(o>=0)e.fn.appear.checks.splice(o,1)}t.apply(this,arguments)};if(r.one)n.one("appear",r.data,o);else n.bind("appear",r.data,o);i.scroll(s);e.fn.appear.checks.push(s);s()})};e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.appear.checks.length;if(t>0)while(t--)e.fn.appear.checks[t]()},run:function(){if(e.fn.appear.timeout)clearTimeout(e.fn.appear.timeout);e.fn.appear.timeout=setTimeout(e.fn.appear.checkAll,20)}});e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(t,n){var r=e.fn[n];if(r){e.fn[n]=function(){var t=r.apply(this,arguments);e.fn.appear.run();return t}}})})(jQuery);/*! sidr - v2.2.1 - 2016-02-17
 * http://www.berriart.com/sidr/
 * Copyright (c) 2013-2016 Alberto Varela; Licensed MIT */
(function(){'use strict';var babelHelpers={};babelHelpers.classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}};babelHelpers.createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1;descriptor.configurable=!0;if("value" in descriptor)descriptor.writable=!0;Object.defineProperty(target,descriptor.key,descriptor)}}
return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();babelHelpers;var sidrStatus={moving:!1,opened:!1};var helper={isUrl:function isUrl(str){var pattern=new RegExp('^(https?:\\/\\/)?'+'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|'+'((\\d{1,3}\\.){3}\\d{1,3}))'+'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*'+'(\\?[;&a-z\\d%_.~+=-]*)?'+'(\\#[-a-z\\d_]*)?$','i');if(pattern.test(str)){return!0}else{return!1}},addPrefixes:function addPrefixes($element){this.addPrefix($element,'id');this.addPrefix($element,'class');$element.removeAttr('style')},addPrefix:function addPrefix($element,attribute){var toReplace=$element.attr(attribute);if(typeof toReplace==='string'&&toReplace!==''&&toReplace!=='sidr-inner'){$element.attr(attribute,toReplace.replace(/([A-Za-z0-9_.\-]+)/g,'sidr-'+attribute+'-$1'))}},transitions:function(){var body=document.body||document.documentElement,style=body.style,supported=!1,property='transition';if(property in style){supported=!0}else{(function(){var prefixes=['moz','webkit','o','ms'],prefix=undefined,i=undefined;property=property.charAt(0).toUpperCase()+property.substr(1);supported=function(){for(i=0;i<prefixes.length;i++){prefix=prefixes[i];if(prefix+property in style){return!0}}
return!1}();property=supported?'-'+prefix.toLowerCase()+'-'+property.toLowerCase():null})()}
return{supported:supported,property:property}}()};var $$2=jQuery;var bodyAnimationClass='sidr-animating';var openAction='open';var closeAction='close';var transitionEndEvent='webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend';var Menu=function(){function Menu(name){babelHelpers.classCallCheck(this,Menu);this.name=name;this.item=$$2('#'+name);this.openClass=name==='sidr'?'sidr-open':'sidr-open '+name+'-open';this.menuWidth=this.item.outerWidth(!0);this.speed=this.item.data('speed');this.side=this.item.data('side');this.displace=this.item.data('displace');this.timing=this.item.data('timing');this.method=this.item.data('method');this.onOpenCallback=this.item.data('onOpen');this.onCloseCallback=this.item.data('onClose');this.onOpenEndCallback=this.item.data('onOpenEnd');this.onCloseEndCallback=this.item.data('onCloseEnd');this.body=$$2(this.item.data('body'))}
babelHelpers.createClass(Menu,[{key:'getAnimation',value:function getAnimation(action,element){var animation={},prop=this.side;if(action==='open'&&element==='body'){animation[prop]=this.menuWidth+'px'}else if(action==='close'&&element==='menu'){animation[prop]='-'+this.menuWidth+'px'}else{animation[prop]=0}
return animation}},{key:'prepareBody',value:function prepareBody(action){var prop=action==='open'?'hidden':'';if(this.body.is('body')){var $html=$$2('html'),scrollTop=$html.scrollTop();if(this.displace){$html.css('overflow-x',prop).scrollTop(scrollTop)}else{$html.css('overflow',prop).scrollTop(scrollTop)}}}},{key:'openBody',value:function openBody(){if(this.displace){var transitions=helper.transitions,$body=this.body;if(transitions.supported){$body.css(transitions.property,this.side+' '+this.speed/1000+'s '+this.timing).css(this.side,0).css({width:$body.width(),position:'absolute'});$body.css(this.side,this.menuWidth+'px')}else{var bodyAnimation=this.getAnimation(openAction,'body');$body.css({width:$body.width(),position:'absolute'}).animate(bodyAnimation,{queue:!1,duration:this.speed})}}}},{key:'onCloseBody',value:function onCloseBody(){var transitions=helper.transitions,resetStyles={width:'',position:'',right:'',left:''};if(transitions.supported){resetStyles[transitions.property]=''}
this.body.css(resetStyles).unbind(transitionEndEvent)}},{key:'closeBody',value:function closeBody(){var _this=this;if(this.displace){if(helper.transitions.supported){this.body.css(this.side,0).one(transitionEndEvent,function(){_this.onCloseBody()})}else{var bodyAnimation=this.getAnimation(closeAction,'body');this.body.animate(bodyAnimation,{queue:!1,duration:this.speed,complete:function complete(){_this.onCloseBody()}})}}}},{key:'moveBody',value:function moveBody(action){if(action===openAction){this.openBody()}else{this.closeBody()}}},{key:'onOpenMenu',value:function onOpenMenu(callback){var name=this.name;sidrStatus.moving=!1;sidrStatus.opened=name;this.item.unbind(transitionEndEvent);this.body.removeClass(bodyAnimationClass).addClass(this.openClass);this.onOpenEndCallback();if(typeof callback==='function'){callback(name)}}},{key:'openMenu',value:function openMenu(callback){var _this2=this;var $item=this.item;if(helper.transitions.supported){$item.css(this.side,0).one(transitionEndEvent,function(){_this2.onOpenMenu(callback)})}else{var menuAnimation=this.getAnimation(openAction,'menu');$item.css('display','block').animate(menuAnimation,{queue:!1,duration:this.speed,complete:function complete(){_this2.onOpenMenu(callback)}})}}},{key:'onCloseMenu',value:function onCloseMenu(callback){this.item.css({left:'',right:''}).unbind(transitionEndEvent);sidrStatus.moving=!1;sidrStatus.opened=!1;this.body.removeClass(bodyAnimationClass).removeClass(this.openClass);$$2('html').css('overflow','');this.onCloseEndCallback();if(typeof callback==='function'){callback(name)}}},{key:'closeMenu',value:function closeMenu(callback){var _this3=this;var item=this.item;if(helper.transitions.supported){item.css(this.side,'').one(transitionEndEvent,function(){_this3.onCloseMenu(callback)})}else{var menuAnimation=this.getAnimation(closeAction,'menu');item.animate(menuAnimation,{queue:!1,duration:this.speed,complete:function complete(){_this3.onCloseMenu()}})}}},{key:'moveMenu',value:function moveMenu(action,callback){this.body.addClass(bodyAnimationClass);if(action===openAction){this.openMenu(callback)}else{this.closeMenu(callback)}}},{key:'move',value:function move(action,callback){sidrStatus.moving=!0;this.prepareBody(action);this.moveBody(action);this.moveMenu(action,callback)}},{key:'open',value:function open(callback){var _this4=this;if(sidrStatus.opened===this.name||sidrStatus.moving){return}
if(sidrStatus.opened!==!1){var alreadyOpenedMenu=new Menu(sidrStatus.opened);alreadyOpenedMenu.close(function(){_this4.open(callback)});return}
this.move('open',callback);this.onOpenCallback()}},{key:'close',value:function close(callback){if(sidrStatus.opened!==this.name||sidrStatus.moving){return}
this.move('close',callback);this.onCloseCallback()}},{key:'toggle',value:function toggle(callback){if(sidrStatus.opened===this.name){this.close(callback)}else{this.open(callback)}}}]);return Menu}();var $$1=jQuery;function execute(action,name,callback){var sidr=new Menu(name);switch(action){case 'open':sidr.open(callback);break;case 'close':sidr.close(callback);break;case 'toggle':sidr.toggle(callback);break;default:$$1.error('Method '+action+' does not exist on jQuery.sidr');break}}
var i;var $=jQuery;var publicMethods=['open','close','toggle'];var methodName;var methods={};var getMethod=function getMethod(methodName){return function(name,callback){if(typeof name==='function'){callback=name;name='sidr'}else if(!name){name='sidr'}
execute(methodName,name,callback)}};for(i=0;i<publicMethods.length;i++){methodName=publicMethods[i];methods[methodName]=getMethod(methodName)}
function sidr(method){if(method==='status'){return sidrStatus}else if(methods[method]){return methods[method].apply(this,Array.prototype.slice.call(arguments,1))}else if(typeof method==='function'||typeof method==='string'||!method){return methods.toggle.apply(this,arguments)}else{$.error('Method '+method+' does not exist on jQuery.sidr')}}
var $$3=jQuery;function fillContent($sideMenu,settings){if(typeof settings.source==='function'){var newContent=settings.source(name);$sideMenu.html(newContent)}else if(typeof settings.source==='string'&&helper.isUrl(settings.source)){$$3.get(settings.source,function(data){$sideMenu.html(data)})}else if(typeof settings.source==='string'){var htmlContent='',selectors=settings.source.split(',');$$3.each(selectors,function(index,element){htmlContent+='<div class="sidr-inner">'+$$3(element).html()+'</div>'});if(settings.renaming){var $htmlContent=$$3('<div />').html(htmlContent);$htmlContent.find('*').each(function(index,element){var $element=$$3(element);helper.addPrefixes($element)});htmlContent=$htmlContent.html()}
$sideMenu.html(htmlContent)}else if(settings.source!==null){$$3.error('Invalid Sidr Source')}
return $sideMenu}
function fnSidr(options){var transitions=helper.transitions,settings=$$3.extend({name:'sidr',speed:200,side:'left',source:null,renaming:!0,body:'body',displace:!0,timing:'ease',method:'toggle',bind:'touchstart click',onOpen:function onOpen(){},onClose:function onClose(){},onOpenEnd:function onOpenEnd(){},onCloseEnd:function onCloseEnd(){}},options),name=settings.name,$sideMenu=$$3('#'+name);if($sideMenu.length===0){$sideMenu=$$3('<div />').attr('id',name).appendTo($$3('body'))}
if(transitions.supported){$sideMenu.css(transitions.property,settings.side+' '+settings.speed/1000+'s '+settings.timing)}
$sideMenu.addClass('sidr').addClass(settings.side).data({speed:settings.speed,side:settings.side,body:settings.body,displace:settings.displace,timing:settings.timing,method:settings.method,onOpen:settings.onOpen,onClose:settings.onClose,onOpenEnd:settings.onOpenEnd,onCloseEnd:settings.onCloseEnd});$sideMenu=fillContent($sideMenu,settings);return this.each(function(){var $this=$$3(this),data=$this.data('sidr'),flag=!1;if(!data){sidrStatus.moving=!1;sidrStatus.opened=!1;$this.data('sidr',name);$this.bind(settings.bind,function(event){event.preventDefault();if(!flag){flag=!0;sidr(settings.method,name);setTimeout(function(){flag=!1},100)}})}})}
jQuery.sidr=sidr;jQuery.fn.sidr=fnSidr}());(function($){$.fn.wpexEqualHeights=function(options){var $items=this,$window=$(window),$targets=null;var $settings=$.extend({children:'',mobileBreakPoint:'',reset:!1},options);if(!$($settings.children).length){return}
function setHeights(el,reset){var $tallest=0;if($settings.children){var $children=el.find($settings.children).not('.vc_row.vc_inner .vc_column-inner');$children.each(function(){var $child=$(this);if(reset){$child.css('height','')}
$height=$child.outerHeight();if($height>$tallest){$tallest=$height}});$children.css('height',$tallest+'px')}}
$items.each(function(){var $this=$(this);if($this.hasClass('vcex-isotope-grid')){setHeights($this,!1)}else{$this.imagesLoaded(function(){setHeights($this,!1)})}});$window.resize(function(){$items.each(function(){setHeights($(this),!0)})})}}(jQuery));/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net)
 * Licensed under the MIT License (LICENSE.txt).
 *
 * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
 * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
 * Thanks to: Seamus Leahy for adding deltaX and deltaY
 *
 * Version: 3.0.6
 * 
 * Requires: 1.2.2+
 */
(function($){var types=['DOMMouseScroll','mousewheel'];if($.event.fixHooks){for(var i=types.length;i;){$.event.fixHooks[types[--i]]=$.event.mouseHooks}}
$.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var i=types.length;i;){this.addEventListener(types[--i],handler,!1)}}else{this.onmousewheel=handler}},teardown:function(){if(this.removeEventListener){for(var i=types.length;i;){this.removeEventListener(types[--i],handler,!1)}}else{this.onmousewheel=null}}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}});function handler(event){var orgEvent=event||window.event,args=[].slice.call(arguments,1),delta=0,returnValue=!0,deltaX=0,deltaY=0;event=$.event.fix(orgEvent);event.type="mousewheel";if(orgEvent.wheelDelta){delta=orgEvent.wheelDelta/120}
if(orgEvent.detail){delta=-orgEvent.detail/3}
deltaY=delta;if(orgEvent.axis!==undefined&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaY=0;deltaX=-1*delta}
if(orgEvent.wheelDeltaY!==undefined){deltaY=orgEvent.wheelDeltaY/120}
if(orgEvent.wheelDeltaX!==undefined){deltaX=-1*orgEvent.wheelDeltaX/120}
args.unshift(event,delta,deltaX,deltaY);return($.event.dispatch||$.event.handle).apply(this,args)}})(jQuery);(function($,window,document,undefined){var pluginName='scrolly2';function Plugin(element,options){this.$element=$(element);this.init()}
Plugin.prototype.init=function(){var self=this;this.startPosition=0;this.offsetTop=this.$element.offset().top;this.height=this.$element.outerHeight(!0);this.velocity=this.$element.attr('data-velocity');this.direction=this.$element.attr('data-direction');$(window).bind('scroll',function(){self.scrolly2()})};Plugin.prototype.scrolly2=function(){var viewTop=$(window).scrollTop()-20;var viewBottom=$(window).scrollTop()+$(window).height()+20;var elemTop=this.$element.offset().top;var elemBottom=this.$element.offset().top+this.$element.height();if(elemTop>=viewBottom||elemBottom<=viewTop){return}
if(this.$element.offset().top>$(window).height()){if(this.direction!=='none'){this.startPosition=(this.$element.offset().top-$(window).height())*Math.abs(this.velocity)}}
var position=this.startPosition+$(window).scrollTop()*this.velocity;var xPos="50%";var yPos="50%";if(this.direction==='left'){xPos=position+'px'}else if(this.direction==='right'){xPos='calc(100% + '+ -position+'px)'}else if(this.direction==='down'){var offset=-($(window).height()-this.$element.offset().top-this.$element.height()-parseInt(this.$element.css('paddingTop'))-parseInt(this.$element.css('paddingBottom')));yPos='calc(100% + '+(offset-$(window).scrollTop()-position)+'px)'}else{yPos=(this.$element.offset().top-$(window).scrollTop()+position)+'px'}
this.$element.css({backgroundPosition:xPos+' '+yPos})};$.fn[pluginName]=function(options){return this.each(function(){if(!$.data(this,'plugin_'+pluginName)){$.data(this,'plugin_'+pluginName,new Plugin(this,options))}})}})(jQuery,window,document);(function($,window,undefined){var extensions={flash:['swf'],image:['bmp','gif','jpeg','jpg','png','tiff','tif','jfif','jpe'],iframe:['asp','aspx','cgi','cfm','htm','html','jsp','php','pl','php3','php4','php5','phtml','rb','rhtml','shtml','txt'],video:['avi','mov','mpg','mpeg','movie','mp4','webm','ogv','ogg','3gp','m4v']},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi='',supportTouch=!!('ontouchstart' in window)&&(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)),clickEvent="click.iLightBox",touchStartEvent=supportTouch?"touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"touchmove.iLightBox":"mousemove.iLightBox",abs=Math.abs,sqrt=Math.sqrt,round=Math.round,max=Math.max,min=Math.min,floor=Math.floor,random=Math.random,pluginspages={quicktime:'https://www.apple.com/quicktime/download',flash:'https://www.adobe.com/go/getflash'},iLightBox=function(el,options,items,instant){var iL=this;iL.options=options,iL.selector=el.selector||el,iL.context=el.context,iL.instant=instant;if(items.length<1){iL.attachItems()}else{iL.items=items}
iL.vars={total:iL.items.length,start:0,current:null,next:null,prev:null,BODY:$('body'),loadRequests:0,overlay:$('<div class="ilightbox-overlay"></div>'),loader:$('<div class="ilightbox-loader"><div></div></div>'),toolbar:$('<div class="ilightbox-toolbar"></div>'),innerToolbar:$('<div class="ilightbox-inner-toolbar"></div>'),title:$('<div class="ilightbox-title"></div>'),closeButton:$('<a class="ilightbox-close" title="'+iL.options.text.close+'"></a>'),fullScreenButton:$('<a class="ilightbox-fullscreen" title="'+iL.options.text.enterFullscreen+'"></a>'),innerPlayButton:$('<a class="ilightbox-play" title="'+iL.options.text.slideShow+'"></a>'),innerNextButton:$('<a class="ilightbox-next-button" title="'+iL.options.text.next+'"></a>'),innerPrevButton:$('<a class="ilightbox-prev-button" title="'+iL.options.text.previous+'"></a>'),holder:$('<div class="ilightbox-holder'+(supportTouch?' supportTouch':'')+'" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:$('<div class="ilightbox-holder'+(supportTouch?' supportTouch':'')+' ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:$('<div class="ilightbox-holder'+(supportTouch?' supportTouch':'')+' ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextButton:$('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+iL.options.text.next+'"><span></span></a>'),prevButton:$('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+iL.options.text.previous+'"><span></span></a>'),thumbnails:$('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0};iL.vars.hideableElements=iL.vars.nextButton.add(iL.vars.prevButton);iL.normalizeItems();iL.availPlugins();iL.options.startFrom=(iL.options.startFrom>0&&iL.options.startFrom>=iL.vars.total)?iL.vars.total-1:iL.options.startFrom;iL.options.startFrom=(iL.options.randomStart)?floor(random()*iL.vars.total):iL.options.startFrom;iL.vars.start=iL.options.startFrom;if(instant)iL.instantCall();else iL.patchItemsEvents();if(iL.options.linkId){iL.hashChangeHandler();$win.iLightBoxHashChange(function(){iL.hashChangeHandler()})}
if(supportTouch){var RegExp=/(click|mouseenter|mouseleave|mouseover|mouseout)/ig,replace="itap";iL.options.caption.show=iL.options.caption.show.replace(RegExp,replace),iL.options.caption.hide=iL.options.caption.hide.replace(RegExp,replace),iL.options.social.show=iL.options.social.show.replace(RegExp,replace),iL.options.social.hide=iL.options.social.hide.replace(RegExp,replace)}
if(iL.options.controls.arrows){$.extend(iL.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})}};iLightBox.prototype={showLoader:function(){var iL=this;iL.vars.loadRequests+=1;if(iL.options.path.toLowerCase()=="horizontal")iL.vars.loader.stop().animate({top:'-30px'},iL.options.show.speed,'easeOutCirc');else iL.vars.loader.stop().animate({left:'-30px'},iL.options.show.speed,'easeOutCirc')},hideLoader:function(){var iL=this;iL.vars.loadRequests-=1;iL.vars.loadRequests=(iL.vars.loadRequests<0)?0:iL.vars.loadRequests;if(iL.options.path.toLowerCase()=="horizontal"){if(iL.vars.loadRequests<=0)iL.vars.loader.stop().animate({top:'-192px'},iL.options.show.speed,'easeInCirc')}else{if(iL.vars.loadRequests<=0)iL.vars.loader.stop().animate({left:'-192px'},iL.options.show.speed,'easeInCirc')}},createUI:function(){var iL=this;iL.ui={currentElement:iL.vars.holder,nextElement:iL.vars.nextPhoto,prevElement:iL.vars.prevPhoto,currentItem:iL.vars.current,nextItem:iL.vars.next,prevItem:iL.vars.prev,hide:function(){iL.closeAction()},refresh:function(){(arguments.length>0)?iL.repositionPhoto(!0):iL.repositionPhoto()},fullscreen:function(){iL.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array(),items=new Array();$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data('caption'),title=t.data('title')?t.data('title'):t.attr('title'),type=t.data('type')||getTypeByExtension(URL);if('false'==t.attr('data-title')){title=''}
items.push({URL:URL,caption:caption,title:title,type:type,options:options});if(!iL.instant)itemsObject.push(t)});iL.items=items,iL.itemsObject=itemsObject},normalizeItems:function(){var iL=this,newItems=new Array();$.each(iL.items,function(key,val){if(typeof val=="string")val={url:val};var URL=val.url||val.URL||null,options=val.options||{},caption=val.caption||null,title=val.title||null,type=(val.type)?val.type.toLowerCase():getTypeByExtension(URL),ext=(typeof URL!='object')?getExtension(URL):'';options.thumbnail=options.thumbnail||((type=="image")?URL:null),options.videoType=options.videoType||null,options.iframeType=options.iframeType||null,options.skin=options.skin||iL.options.skin,options.width=options.width||iL.options.width,options.height=options.height||iL.options.height,options.mousewheel=(typeof options.mousewheel!='undefined')?options.mousewheel:!0,options.swipe=(typeof options.swipe!='undefined')?options.swipe:!0,options.social=(typeof options.social!='undefined')?options.social:iL.options.social.buttons&&$.extend({},{},iL.options.social.buttons);if(type=="video"){options.html5video=(typeof options.html5video!='undefined')?options.html5video:{};options.html5video.webm=options.html5video.webm||options.html5video.WEBM||null;options.html5video.controls=(typeof options.html5video.controls!='undefined')?options.html5video.controls:"controls";options.html5video.preload=options.html5video.preload||"metadata";options.html5video.autoplay=(typeof options.html5video.autoplay!='undefined')?options.html5video.autoplay:!1}
if(!options.width||!options.height){if(type=="video"){options.width=iL.options.videoWidth||1280;options.height=iL.options.videoHeight||720}else if(type=="iframe"){if(options.iframeType=="video"){options.width=iL.options.videoWidth||1280;options.height=iL.options.videoHeight||720}else{options.width=iL.options.iframeWidth||'100%';options.height=iL.options.iframeHeight||'90%'}}else if(type=="flash"){options.width=iL.options.flashWidth||1280;options.height=iL.options.flashHeight||720}}
delete val.url;val.index=key;val.URL=URL;val.caption=caption;val.title=title;val.type=type;val.options=options;val.ext=ext;newItems.push(val)});iL.items=newItems},instantCall:function(){var iL=this,key=iL.vars.start;iL.vars.current=key;iL.vars.next=(iL.items[key+1])?key+1:null;iL.vars.prev=(iL.items[key-1])?key-1:null;iL.addContents();iL.patchEvents()},addContents:function(){var iL=this,vars=iL.vars,opts=iL.options,viewport=getViewport(),path=opts.path.toLowerCase(),recognizingItems=vars.total>0&&iL.items.filter(function(e,i,arr){return['image','flash','video'].indexOf(e.type)===-1&&typeof e.recognized==='undefined'&&(opts.smartRecognition||e.options.smartRecognition)}),needRecognition=recognizingItems.length>0;if(opts.mobileOptimizer&&!opts.innerToolbar)
vars.isMobile=viewport.width<=vars.mobileMaxWidth;vars.overlay.addClass(opts.skin).hide().css('opacity',opts.overlay.opacity);if(opts.linkId)
vars.overlay[0].setAttribute('linkid',opts.linkId);if(opts.controls.toolbar){vars.toolbar.addClass(opts.skin).append(vars.closeButton);if(opts.controls.fullscreen)
vars.toolbar.append(vars.fullScreenButton);if(opts.controls.slideshow)
vars.toolbar.append(vars.innerPlayButton);if(vars.total>1)
vars.toolbar.append(vars.innerPrevButton).append(vars.innerNextButton)}
vars.BODY.addClass('ilightbox-noscroll').append(vars.overlay).append(vars.loader).append(vars.holder).append(vars.nextPhoto).append(vars.prevPhoto);if(!opts.innerToolbar)
vars.BODY.append(vars.toolbar);if(opts.controls.arrows)
vars.BODY.append(vars.nextButton).append(vars.prevButton);if(opts.controls.thumbnail&&vars.total>1){vars.BODY.append(vars.thumbnails);vars.thumbnails.addClass(opts.skin).addClass('ilightbox-'+path);$('div.ilightbox-thumbnails-grid',vars.thumbnails).empty();vars.thumbs=!0}
var loaderCss=(opts.path.toLowerCase()=="horizontal")?{left:parseInt((viewport.width/2)-(vars.loader.outerWidth()/2))}:{top:parseInt((viewport.height/2)-(vars.loader.outerHeight()/2))};vars.loader.addClass(opts.skin).css(loaderCss);vars.nextButton.add(vars.prevButton).addClass(opts.skin);if(path=="horizontal")
vars.loader.add(vars.nextButton).add(vars.prevButton).addClass('horizontal');vars.BODY[vars.isMobile?'addClass':'removeClass']('isMobile');if(!opts.infinite){vars.prevButton.add(vars.prevButton).add(vars.innerPrevButton).add(vars.innerNextButton).removeClass('disabled');if(vars.current==0)
vars.prevButton.add(vars.innerPrevButton).addClass('disabled');if(vars.current>=vars.total-1)
vars.nextButton.add(vars.innerNextButton).addClass('disabled')}
if(opts.show.effect){vars.overlay.stop().fadeIn(opts.show.speed);vars.toolbar.stop().fadeIn(opts.show.speed)}else{vars.overlay.show();vars.toolbar.show()}
var length=recognizingItems.length;if(needRecognition){iL.showLoader();$.each(recognizingItems,function(key,val){var resultFnc=function(result){var key=-1,filter=iL.items.filter(function(e,i,arr){if(e.URL==result.url)
key=i;return e.URL==result.url}),self=iL.items[key];if(result)
$.extend(!0,self,{URL:result.source,type:result.type,recognized:!0,options:{html5video:result.html5video,width:(result.type=="image")?0:(result.width||self.width),height:(result.type=="image")?0:(result.height||self.height),thumbnail:self.options.thumbnail||result.thumbnail}});length--;if(length==0){iL.hideLoader();vars.dontGenerateThumbs=!1;iL.generateThumbnails();if(opts.show.effect)
setTimeout(function(){iL.generateBoxes()},opts.show.speed);else iL.generateBoxes()}};iL.ogpRecognition(this,resultFnc)})}else{if(opts.show.effect)
setTimeout(function(){iL.generateBoxes()},opts.show.speed);else iL.generateBoxes()}
iL.createUI();window.iLightBox={close:function(){iL.closeAction()},fullscreen:function(){iL.fullScreenAction()},moveNext:function(){iL.moveTo('next')},movePrev:function(){iL.moveTo('prev')},goTo:function(index){iL.goTo(index)},refresh:function(){iL.refresh()},reposition:function(){(arguments.length>0)?iL.repositionPhoto(!0):iL.repositionPhoto()},setOption:function(options){iL.setOption(options)},destroy:function(){iL.closeAction();iL.dispatchItemsEvents()}};if(opts.linkId){vars.hashLock=!0;window.location.hash=opts.linkId+'/'+vars.current;setTimeout(function(){vars.hashLock=!1},55)}
if(!opts.slideshow.startPaused){iL.resume();vars.innerPlayButton.removeClass('ilightbox-play').addClass('ilightbox-pause')}
if(typeof iL.options.callback.onOpen=='function')iL.options.callback.onOpen.call(iL)},loadContent:function(obj,opt,speed){var iL=this,holder,item;iL.createUI();obj.speed=speed||iL.options.effects.loadedFadeSpeed;if(opt=='current'){if(!obj.options.mousewheel)iL.vars.lockWheel=!0;else iL.vars.lockWheel=!1;if(!obj.options.swipe)iL.vars.lockSwipe=!0;else iL.vars.lockSwipe=!1}
switch(opt){case 'current':holder=iL.vars.holder,item=iL.vars.current;break;case 'next':holder=iL.vars.nextPhoto,item=iL.vars.next;break;case 'prev':holder=iL.vars.prevPhoto,item=iL.vars.prev;break}
holder.removeAttr('style class').addClass('ilightbox-holder'+(supportTouch?' supportTouch':'')).addClass(obj.options.skin);$('div.ilightbox-inner-toolbar',holder).remove();if(obj.title||iL.options.innerToolbar){var innerToolbar=iL.vars.innerToolbar.clone();if(obj.title&&iL.options.show.title){var title=iL.vars.title.clone();title.empty().html(obj.title);innerToolbar.append(title)}
if(iL.options.innerToolbar){innerToolbar.append((iL.vars.total>1)?iL.vars.toolbar.clone():iL.vars.toolbar)}
holder.prepend(innerToolbar)}
iL.loadSwitcher(obj,holder,item,opt)},loadSwitcher:function(obj,holder,item,opt){var iL=this,opts=iL.options,api={element:holder,position:item};switch(obj.type){case 'image':if(typeof opts.callback.onBeforeLoad=='function')opts.callback.onBeforeLoad.call(iL,iL.ui,item);if(typeof obj.options.onBeforeLoad=='function')obj.options.onBeforeLoad.call(iL,api);iL.loadImage(obj.URL,function(img){if(typeof opts.callback.onAfterLoad=='function')opts.callback.onAfterLoad.call(iL,iL.ui,item);if(typeof obj.options.onAfterLoad=='function')obj.options.onAfterLoad.call(iL,api);var width=(img)?img.width:400,height=(img)?img.height:200;holder.data({naturalWidth:width,naturalHeight:height});$('div.ilightbox-container',holder).empty().append((img)?'<img src="'+obj.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+opts.errors.loadImage+'</span>');if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);iL.configureHolder(obj,opt,holder)});break;case 'video':holder.data({naturalWidth:obj.options.width,naturalHeight:obj.options.height});iL.addContent(holder,obj);if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);iL.configureHolder(obj,opt,holder);break;case 'iframe':iL.showLoader();holder.data({naturalWidth:obj.options.width,naturalHeight:obj.options.height});var el=iL.addContent(holder,obj);if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);if(typeof opts.callback.onBeforeLoad=='function')opts.callback.onBeforeLoad.call(iL,iL.ui,item);if(typeof obj.options.onBeforeLoad=='function')obj.options.onBeforeLoad.call(iL,api);el.bind('load',function(){if(typeof opts.callback.onAfterLoad=='function')opts.callback.onAfterLoad.call(iL,iL.ui,item);if(typeof obj.options.onAfterLoad=='function')obj.options.onAfterLoad.call(iL,api);iL.hideLoader();iL.configureHolder(obj,opt,holder);el.unbind('load')});break;case 'inline':var el=$(obj.URL),content=iL.addContent(holder,obj),images=findImageInElement(holder);holder.data({naturalWidth:(iL.items[item].options.width||el.outerWidth()),naturalHeight:(iL.items[item].options.height||el.outerHeight())});content.children().eq(0).show();if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);if(typeof opts.callback.onBeforeLoad=='function')opts.callback.onBeforeLoad.call(iL,iL.ui,item);if(typeof obj.options.onBeforeLoad=='function')obj.options.onBeforeLoad.call(iL,api);iL.loadImage(images,function(){if(typeof opts.callback.onAfterLoad=='function')opts.callback.onAfterLoad.call(iL,iL.ui,item);if(typeof obj.options.onAfterLoad=='function')obj.options.onAfterLoad.call(iL,api);iL.configureHolder(obj,opt,holder)});break;case 'flash':var el=iL.addContent(holder,obj);holder.data({naturalWidth:(iL.items[item].options.width||el.outerWidth()),naturalHeight:(iL.items[item].options.height||el.outerHeight())});if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);iL.configureHolder(obj,opt,holder);break;case 'ajax':var ajax=obj.options.ajax||{};if(typeof opts.callback.onBeforeLoad=='function')opts.callback.onBeforeLoad.call(iL,iL.ui,item);if(typeof obj.options.onBeforeLoad=='function')obj.options.onBeforeLoad.call(iL,api);iL.showLoader();$.ajax({url:obj.URL||opts.ajaxSetup.url,data:ajax.data||null,dataType:ajax.dataType||"html",type:ajax.type||opts.ajaxSetup.type,cache:ajax.cache||opts.ajaxSetup.cache,crossDomain:ajax.crossDomain||opts.ajaxSetup.crossDomain,global:ajax.global||opts.ajaxSetup.global,ifModified:ajax.ifModified||opts.ajaxSetup.ifModified,username:ajax.username||opts.ajaxSetup.username,password:ajax.password||opts.ajaxSetup.password,beforeSend:ajax.beforeSend||opts.ajaxSetup.beforeSend,complete:ajax.complete||opts.ajaxSetup.complete,success:function(data,textStatus,jqXHR){iL.hideLoader();var el=$(data),container=$('div.ilightbox-container',holder),elWidth=iL.items[item].options.width||parseInt(el[0].getAttribute('width')),elHeight=iL.items[item].options.height||parseInt(el[0].getAttribute('height')),css=(el[0].getAttribute('width')&&el[0].getAttribute('height'))?{'overflow':'hidden'}:{};container.empty().append($('<div class="ilightbox-wrapper"></div>').css(css).html(el));holder.show().data({naturalWidth:(elWidth||container.outerWidth()),naturalHeight:(elHeight||container.outerHeight())}).hide();if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);var images=findImageInElement(holder);iL.loadImage(images,function(){if(typeof opts.callback.onAfterLoad=='function')opts.callback.onAfterLoad.call(iL,iL.ui,item);if(typeof obj.options.onAfterLoad=='function')obj.options.onAfterLoad.call(iL,api);iL.configureHolder(obj,opt,holder)});opts.ajaxSetup.success(data,textStatus,jqXHR);if(typeof ajax.success=='function')ajax.success(data,textStatus,jqXHR)},error:function(jqXHR,textStatus,errorThrown){if(typeof opts.callback.onAfterLoad=='function')opts.callback.onAfterLoad.call(iL,iL.ui,item);if(typeof obj.options.onAfterLoad=='function')obj.options.onAfterLoad.call(iL,api);iL.hideLoader();$('div.ilightbox-container',holder).empty().append('<span class="ilightbox-alert">'+opts.errors.loadContents+'</span>');iL.configureHolder(obj,opt,holder);opts.ajaxSetup.error(jqXHR,textStatus,errorThrown);if(typeof ajax.error=='function')ajax.error(jqXHR,textStatus,errorThrown)}});break;case 'html':var object=obj.URL,el
container=$('div.ilightbox-container',holder);if(object[0].nodeName)el=object.clone();else{var dom=$(object);if(dom.selector)el=$('<div>'+dom+'</div>');else el=dom}
var elWidth=iL.items[item].options.width||parseInt(el.attr('width')),elHeight=iL.items[item].options.height||parseInt(el.attr('height'));iL.addContent(holder,obj);el.appendTo(document.documentElement).hide();if(typeof opts.callback.onRender=='function')opts.callback.onRender.call(iL,iL.ui,item);if(typeof obj.options.onRender=='function')obj.options.onRender.call(iL,api);var images=findImageInElement(holder);if(typeof opts.callback.onBeforeLoad=='function')opts.callback.onBeforeLoad.call(iL,iL.ui,item);if(typeof obj.options.onBeforeLoad=='function')obj.options.onBeforeLoad.call(iL,api);iL.loadImage(images,function(){if(typeof opts.callback.onAfterLoad=='function')opts.callback.onAfterLoad.call(iL,iL.ui,item);if(typeof obj.options.onAfterLoad=='function')obj.options.onAfterLoad.call(iL,api);holder.show().data({naturalWidth:(elWidth||container.outerWidth()),naturalHeight:(elHeight||container.outerHeight())}).hide();el.remove();iL.configureHolder(obj,opt,holder)});break}},configureHolder:function(obj,opt,holder){var iL=this,vars=iL.vars,opts=iL.options;if(opt!="current")(opt=="next")?holder.addClass('ilightbox-next'):holder.addClass('ilightbox-prev');if(opt=="current")
var item=vars.current;else if(opt=="next")
var opacity=opts.styles.nextOpacity,item=vars.next;else var opacity=opts.styles.prevOpacity,item=vars.prev;var api={element:holder,position:item};iL.items[item].options.width=iL.items[item].options.width||0,iL.items[item].options.height=iL.items[item].options.height||0;if(opt=="current"){if(opts.show.effect)holder.css(transform,gpuAcceleration).fadeIn(obj.speed,function(){holder.css(transform,'');if(obj.caption){iL.setCaption(obj,holder);var caption=$('div.ilightbox-caption',holder),percent=parseInt((caption.outerHeight()/holder.outerHeight())*100);if(opts.caption.start&percent<=50)caption.fadeIn(opts.effects.fadeSpeed)}
var social=obj.options.social;if(social){iL.setSocial(social,obj.URL,holder);if(opts.social.start)$('div.ilightbox-social',holder).fadeIn(opts.effects.fadeSpeed)}
iL.generateThumbnails();if(typeof opts.callback.onShow=='function')opts.callback.onShow.call(iL,iL.ui,item);if(typeof obj.options.onShow=='function')obj.options.onShow.call(iL,api)});else{holder.show();iL.generateThumbnails();if(typeof opts.callback.onShow=='function')opts.callback.onShow.call(iL,iL.ui,item);if(typeof obj.options.onShow=='function')obj.options.onShow.call(iL,api)}}else{if(opts.show.effect)holder.fadeTo(obj.speed,opacity,function(){if(opt=="next")vars.nextLock=!1;else vars.prevLock=!1;iL.generateThumbnails();if(typeof opts.callback.onShow=='function')opts.callback.onShow.call(iL,iL.ui,item);if(typeof obj.options.onShow=='function')obj.options.onShow.call(iL,api)});else{holder.css({opacity:opacity}).show();if(opt=="next")vars.nextLock=!1;else vars.prevLock=!1;iL.generateThumbnails();if(typeof opts.callback.onShow=='function')opts.callback.onShow.call(iL,iL.ui,item);if(typeof obj.options.onShow=='function')obj.options.onShow.call(iL,api)}}
setTimeout(function(){iL.repositionPhoto()},0)},generateBoxes:function(){var iL=this,vars=iL.vars,opts=iL.options;if(opts.infinite&&vars.total>=2){if(vars.current==vars.total-1)vars.next=0;if(vars.current==0)vars.prev=vars.total-1}else opts.infinite=!1;iL.loadContent(iL.items[vars.current],'current',opts.show.speed);if(iL.items[vars.next])iL.loadContent(iL.items[vars.next],'next',opts.show.speed);if(iL.items[vars.prev])iL.loadContent(iL.items[vars.prev],'prev',opts.show.speed)},generateThumbnails:function(){var iL=this,vars=iL.vars,opts=iL.options,timeOut=null;if(vars.thumbs&&!iL.vars.dontGenerateThumbs){var thumbnails=vars.thumbnails,container=$('div.ilightbox-thumbnails-container',thumbnails),grid=$('div.ilightbox-thumbnails-grid',container),i=0;grid.removeAttr('style').empty();$.each(iL.items,function(key,val){var isActive=(vars.current==key)?'ilightbox-active':'',opacity=(vars.current==key)?opts.thumbnails.activeOpacity:opts.thumbnails.normalOpacity,thumb=val.options.thumbnail,thumbnail=$('<div class="ilightbox-thumbnail"></div>'),icon=$('<div class="ilightbox-thumbnail-icon"></div>');thumbnail.css({opacity:0}).addClass(isActive);if((val.type=="video"||val.type=="flash")&&typeof val.options.icon=='undefined'){icon.addClass('ilightbox-thumbnail-video');thumbnail.append(icon)}else if(val.options.icon){icon.addClass('ilightbox-thumbnail-'+val.options.icon);thumbnail.append(icon)}
if(thumb)iL.loadImage(thumb,function(img){i++;if(img)thumbnail.data({naturalWidth:img.width,naturalHeight:img.height}).append('<img src="'+thumb+'" border="0" />');else thumbnail.data({naturalWidth:opts.thumbnails.maxWidth,naturalHeight:opts.thumbnails.maxHeight});clearTimeout(timeOut);timeOut=setTimeout(function(){iL.positionThumbnails(thumbnails,container,grid)},20);setTimeout(function(){thumbnail.fadeTo(opts.effects.loadedFadeSpeed,opacity)},i*20)});grid.append(thumbnail)});iL.vars.dontGenerateThumbs=!0}},positionThumbnails:function(thumbnails,container,grid){var iL=this,vars=iL.vars,opts=iL.options,viewport=getViewport(),path=opts.path.toLowerCase();if(!thumbnails)thumbnails=vars.thumbnails;if(!container)container=$('div.ilightbox-thumbnails-container',thumbnails);if(!grid)grid=$('div.ilightbox-thumbnails-grid',container);var thumbs=$('.ilightbox-thumbnail',grid),widthAvail=(path=='horizontal')?viewport.width-opts.styles.pageOffsetX:thumbs.eq(0).outerWidth()-opts.styles.pageOffsetX,heightAvail=(path=='horizontal')?thumbs.eq(0).outerHeight()-opts.styles.pageOffsetY:viewport.height-opts.styles.pageOffsetY,gridWidth=(path=='horizontal')?0:widthAvail,gridHeight=(path=='horizontal')?heightAvail:0,active=$('.ilightbox-active',grid),gridCss={},css={};if(arguments.length<3){thumbs.css({opacity:opts.thumbnails.normalOpacity});active.css({opacity:opts.thumbnails.activeOpacity})}
thumbs.each(function(i){var t=$(this),data=t.data(),width=(path=='horizontal')?0:opts.thumbnails.maxWidth;height=(path=='horizontal')?opts.thumbnails.maxHeight:0;dims=iL.getNewDimenstions(width,height,data.naturalWidth,data.naturalHeight,!0);t.css({width:dims.width,height:dims.height});if(path=='horizontal')t.css({'float':'left'});(path=='horizontal')?(gridWidth+=t.outerWidth()):(gridHeight+=t.outerHeight())});gridCss={width:gridWidth,height:gridHeight};grid.css(gridCss);gridCss={};var gridOffset=grid.offset(),activeOffset=(active.length)?active.offset():{top:parseInt(heightAvail/2),left:parseInt(widthAvail/2)};gridOffset.top=(gridOffset.top-$doc.scrollTop()),gridOffset.left=(gridOffset.left-$doc.scrollLeft()),activeOffset.top=(activeOffset.top-gridOffset.top-$doc.scrollTop()),activeOffset.left=(activeOffset.left-gridOffset.left-$doc.scrollLeft());(path=='horizontal')?(gridCss.top=0,gridCss.left=parseInt((widthAvail/2)-activeOffset.left-(active.outerWidth()/2))):(gridCss.top=parseInt(((heightAvail/2)-activeOffset.top-(active.outerHeight()/2))),gridCss.left=0);if(arguments.length<3)grid.stop().animate(gridCss,opts.effects.repositionSpeed,'easeOutCirc');else grid.css(gridCss)},loadImage:function(image,callback){if(!$.isArray(image))image=[image];var iL=this,length=image.length;if(length>0){iL.showLoader();$.each(image,function(index,value){var img=new Image();img.onload=function(){length-=1;if(length==0){iL.hideLoader();callback(img)}};img.onerror=img.onabort=function(){length-=1;if(length==0){iL.hideLoader();callback(!1)}};img.src=image[index]})}else callback(!1)},patchItemsEvents:function(){var iL=this,vars=iL.vars,clickEvent=supportTouch?"itap.iL":"click.iL",vEvent=supportTouch?"click.iL":"itap.iL";if(iL.context&&iL.selector){var $items=$(iL.selector,iL.context);$(iL.context).on(clickEvent,iL.selector,function(){var $this=$(this),key=$items.index($this);vars.current=key;vars.next=iL.items[key+1]?key+1:null;vars.prev=iL.items[key-1]?key-1:null;iL.addContents();iL.patchEvents();return!1}).on(vEvent,iL.selector,function(){return!1})}else $.each(iL.itemsObject,function(key,val){val.on(clickEvent,function(){vars.current=key;vars.next=iL.items[key+1]?key+1:null;vars.prev=iL.items[key-1]?key-1:null;iL.addContents();iL.patchEvents();return!1}).on(vEvent,function(){return!1})})},dispatchItemsEvents:function(){var iL=this,vars=iL.vars,opts=iL.options;if(iL.context&&iL.selector)
$(iL.context).off('.iL',iL.selector);else $.each(iL.itemsObject,function(key,val){val.off('.iL')})},refresh:function(){var iL=this;iL.dispatchItemsEvents();iL.attachItems();iL.normalizeItems();iL.patchItemsEvents()},patchEvents:function(){var iL=this,vars=iL.vars,opts=iL.options,path=opts.path.toLowerCase(),holders=$('.ilightbox-holder'),fullscreenEvent=fullScreenApi.fullScreenEventName+'.iLightBox',durationThreshold=1000,horizontalDistanceThreshold=verticalDistanceThreshold=100,buttonsArray=[vars.nextButton[0],vars.prevButton[0],vars.nextButton[0].firstChild,vars.prevButton[0].firstChild];$win.bind('resize.iLightBox',function(){var viewport=getViewport();if(opts.mobileOptimizer&&!opts.innerToolbar)vars.isMobile=viewport.width<=vars.mobileMaxWidth;vars.BODY[vars.isMobile?'addClass':'removeClass']('isMobile');iL.repositionPhoto(null);if(supportTouch){clearTimeout(vars.setTime);vars.setTime=setTimeout(function(){var scrollTop=getScrollXY().y;window.scrollTo(0,scrollTop-30);window.scrollTo(0,scrollTop+30);window.scrollTo(0,scrollTop)},2000)}
if(vars.thumbs)iL.positionThumbnails()}).bind('keydown.iLightBox',function(event){if(opts.controls.keyboard){switch(event.keyCode){case 13:if(event.shiftKey&&opts.keyboard.shift_enter)iL.fullScreenAction();break;case 27:if(opts.keyboard.esc)iL.closeAction();break;case 37:if(opts.keyboard.left&&!vars.lockKey)iL.moveTo('prev');break;case 38:if(opts.keyboard.up&&!vars.lockKey)iL.moveTo('prev');break;case 39:if(opts.keyboard.right&&!vars.lockKey)iL.moveTo('next');break;case 40:if(opts.keyboard.down&&!vars.lockKey)iL.moveTo('next');break}}});if(fullScreenApi.supportsFullScreen)$win.bind(fullscreenEvent,function(){iL.doFullscreen()});var holderEventsArr=[opts.caption.show+'.iLightBox',opts.caption.hide+'.iLightBox',opts.social.show+'.iLightBox',opts.social.hide+'.iLightBox'].filter(function(e,i,arr){return arr.lastIndexOf(e)===i}),holderEvents="";$.each(holderEventsArr,function(key,val){if(key!=0)holderEvents+=' ';holderEvents+=val});$doc.on(clickEvent,'.ilightbox-overlay',function(){if(opts.overlay.blur)iL.closeAction()}).on(clickEvent,'.ilightbox-next, .ilightbox-next-button',function(){iL.moveTo('next')}).on(clickEvent,'.ilightbox-prev, .ilightbox-prev-button',function(){iL.moveTo('prev')}).on(clickEvent,'.ilightbox-thumbnail',function(){var t=$(this),thumbs=$('.ilightbox-thumbnail',vars.thumbnails),index=thumbs.index(t);if(index!=vars.current)iL.goTo(index)}).on(holderEvents,'.ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)',function(e){var caption=$('div.ilightbox-caption',vars.holder),social=$('div.ilightbox-social',vars.holder),fadeSpeed=opts.effects.fadeSpeed;if(vars.nextLock||vars.prevLock){if(e.type==opts.caption.show&&!caption.is(':visible'))caption.fadeIn(fadeSpeed);else if(e.type==opts.caption.hide&&caption.is(':visible'))caption.fadeOut(fadeSpeed);if(e.type==opts.social.show&&!social.is(':visible'))social.fadeIn(fadeSpeed);else if(e.type==opts.social.hide&&social.is(':visible'))social.fadeOut(fadeSpeed)}else{if(e.type==opts.caption.show&&!caption.is(':visible'))caption.stop().fadeIn(fadeSpeed);else if(e.type==opts.caption.hide&&caption.is(':visible'))caption.stop().fadeOut(fadeSpeed);if(e.type==opts.social.show&&!social.is(':visible'))social.stop().fadeIn(fadeSpeed);else if(e.type==opts.social.hide&&social.is(':visible'))social.stop().fadeOut(fadeSpeed)}}).on('mouseenter.iLightBox mouseleave.iLightBox','.ilightbox-wrapper',function(e){if(e.type=='mouseenter')vars.lockWheel=!0;else vars.lockWheel=!1}).on(clickEvent,'.ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause',function(){var t=$(this);if(t.hasClass('ilightbox-fullscreen'))iL.fullScreenAction();else if(t.hasClass('ilightbox-play')){iL.resume();t.addClass('ilightbox-pause').removeClass('ilightbox-play')}else if(t.hasClass('ilightbox-pause')){iL.pause();t.addClass('ilightbox-play').removeClass('ilightbox-pause')}else iL.closeAction()}).on(touchMoveEvent,'.ilightbox-overlay, .ilightbox-thumbnails-container',function(e){e.preventDefault()});function mouseMoveHandler(e){if(!vars.isMobile){if(!vars.mouseID){vars.hideableElements.show()}
vars.mouseID=clearTimeout(vars.mouseID);if(buttonsArray.indexOf(e.target)===-1)
vars.mouseID=setTimeout(function(){vars.hideableElements.hide();vars.mouseID=clearTimeout(vars.mouseID)},3000)}}
if(opts.controls.arrows&&!supportTouch)$doc.on('mousemove.iLightBox',mouseMoveHandler);if(opts.controls.slideshow&&opts.slideshow.pauseOnHover)$doc.on('mouseenter.iLightBox mouseleave.iLightBox','.ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)',function(e){if(e.type=='mouseenter'&&vars.cycleID)iL.pause();else if(e.type=='mouseleave'&&vars.isPaused)iL.resume()});var switchers=$('.ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails');if(opts.controls.mousewheel)switchers.on('mousewheel.iLightBox',function(event,delta){if(!vars.lockWheel){event.preventDefault();if(delta<0)iL.moveTo('next');else if(delta>0)iL.moveTo('prev')}});if(opts.controls.swipe)holders.on(touchStartEvent,function(event){if(vars.nextLock||vars.prevLock||vars.total==1||vars.lockSwipe)return;vars.BODY.addClass('ilightbox-closedhand');var data=event.originalEvent.touches?event.originalEvent.touches[0]:event,scrollTop=$doc.scrollTop(),scrollLeft=$doc.scrollLeft(),offsets=[holders.eq(0).offset(),holders.eq(1).offset(),holders.eq(2).offset()],offSet=[{top:offsets[0].top-scrollTop,left:offsets[0].left-scrollLeft},{top:offsets[1].top-scrollTop,left:offsets[1].left-scrollLeft},{top:offsets[2].top-scrollTop,left:offsets[2].left-scrollLeft}],start={time:(new Date()).getTime(),coords:[data.pageX-scrollLeft,data.pageY-scrollTop]},stop;function moveEachHandler(i){var t=$(this),offset=offSet[i],scroll=[(start.coords[0]-stop.coords[0]),(start.coords[1]-stop.coords[1])];t[0].style[path=="horizontal"?'left':'top']=(path=="horizontal"?offset.left-scroll[0]:offset.top-scroll[1])+'px'}
function moveHandler(event){if(!start)return;var data=event.originalEvent.touches?event.originalEvent.touches[0]:event;stop={time:(new Date()).getTime(),coords:[data.pageX-scrollLeft,data.pageY-scrollTop]};holders.each(moveEachHandler);event.preventDefault()}
function repositionHolders(){holders.each(function(){var t=$(this),offset=t.data('offset')||{top:t.offset().top-scrollTop,left:t.offset().left-scrollLeft},top=offset.top,left=offset.left;t.css(transform,gpuAcceleration).stop().animate({top:top,left:left},500,'easeOutCirc',function(){t.css(transform,'')})})}
holders.bind(touchMoveEvent,moveHandler);$doc.one(touchStopEvent,function(event){holders.unbind(touchMoveEvent,moveHandler);vars.BODY.removeClass('ilightbox-closedhand');if(start&&stop){if(path=="horizontal"&&stop.time-start.time<durationThreshold&&abs(start.coords[0]-stop.coords[0])>horizontalDistanceThreshold&&abs(start.coords[1]-stop.coords[1])<verticalDistanceThreshold){if(start.coords[0]>stop.coords[0]){if(vars.current==vars.total-1&&!opts.infinite)repositionHolders();else{vars.isSwipe=!0;iL.moveTo('next')}}else{if(vars.current==0&&!opts.infinite)repositionHolders();else{vars.isSwipe=!0;iL.moveTo('prev')}}}else if(path=="vertical"&&stop.time-start.time<durationThreshold&&abs(start.coords[1]-stop.coords[1])>horizontalDistanceThreshold&&abs(start.coords[0]-stop.coords[0])<verticalDistanceThreshold){if(start.coords[1]>stop.coords[1]){if(vars.current==vars.total-1&&!opts.infinite)repositionHolders();else{vars.isSwipe=!0;iL.moveTo('next')}}else{if(vars.current==0&&!opts.infinite)repositionHolders();else{vars.isSwipe=!0;iL.moveTo('prev')}}}else repositionHolders()}
start=stop=undefined})})},goTo:function(index){var iL=this,vars=iL.vars,opts=iL.options,diff=(index-vars.current);if(opts.infinite){if(index==vars.total-1&&vars.current==0)diff=-1;if(vars.current==vars.total-1&&index==0)diff=1}
if(diff==1)iL.moveTo('next');else if(diff==-1)iL.moveTo('prev');else{if(vars.nextLock||vars.prevLock)return!1;if(typeof opts.callback.onBeforeChange=='function')opts.callback.onBeforeChange.call(iL,iL.ui);if(opts.linkId){vars.hashLock=!0;window.location.hash=opts.linkId+'/'+index}
if(iL.items[index]){if(!iL.items[index].options.mousewheel)vars.lockWheel=!0;else iL.vars.lockWheel=!1;if(!iL.items[index].options.swipe)vars.lockSwipe=!0;else vars.lockSwipe=!1}
$.each([vars.holder,vars.nextPhoto,vars.prevPhoto],function(key,val){val.css(transform,gpuAcceleration).fadeOut(opts.effects.loadedFadeSpeed)});vars.current=index;vars.next=index+1;vars.prev=index-1;iL.createUI();setTimeout(function(){iL.generateBoxes()},opts.effects.loadedFadeSpeed+50);$('.ilightbox-thumbnail',vars.thumbnails).removeClass('ilightbox-active').eq(index).addClass('ilightbox-active');iL.positionThumbnails();if(opts.linkId)setTimeout(function(){vars.hashLock=!1},55);if(!opts.infinite){vars.nextButton.add(vars.prevButton).add(vars.innerPrevButton).add(vars.innerNextButton).removeClass('disabled');if(vars.current==0){vars.prevButton.add(vars.innerPrevButton).addClass('disabled')}
if(vars.current>=vars.total-1){vars.nextButton.add(vars.innerNextButton).addClass('disabled')}}
iL.resetCycle();if(typeof opts.callback.onAfterChange=='function')opts.callback.onAfterChange.call(iL,iL.ui)}},moveTo:function(side){var iL=this,vars=iL.vars,opts=iL.options,path=opts.path.toLowerCase(),viewport=getViewport(),switchSpeed=opts.effects.switchSpeed;if(vars.nextLock||vars.prevLock)return!1;else{var item=(side=="next")?vars.next:vars.prev;if(opts.linkId){vars.hashLock=!0;window.location.hash=opts.linkId+'/'+item}
if(side=="next"){if(!iL.items[item])return!1;var firstHolder=vars.nextPhoto,secondHolder=vars.holder,lastHolder=vars.prevPhoto,firstClass='ilightbox-prev',secondClass='ilightbox-next'}else if(side=="prev"){if(!iL.items[item])return!1;var firstHolder=vars.prevPhoto,secondHolder=vars.holder,lastHolder=vars.nextPhoto,firstClass='ilightbox-next',secondClass='ilightbox-prev'}
if(typeof opts.callback.onBeforeChange=='function')
opts.callback.onBeforeChange.call(iL,iL.ui);(side=="next")?vars.nextLock=true:vars.prevLock=!0;var captionFirst=$('div.ilightbox-caption',secondHolder),socialFirst=$('div.ilightbox-social',secondHolder);if(captionFirst.length)
captionFirst.stop().fadeOut(switchSpeed,function(){$(this).remove()});if(socialFirst.length)
socialFirst.stop().fadeOut(switchSpeed,function(){$(this).remove()});if(iL.items[item].caption){iL.setCaption(iL.items[item],firstHolder);var caption=$('div.ilightbox-caption',firstHolder),percent=parseInt((caption.outerHeight()/firstHolder.outerHeight())*100);if(opts.caption.start&&percent<=50)caption.fadeIn(switchSpeed)}
var social=iL.items[item].options.social;if(social){iL.setSocial(social,iL.items[item].URL,firstHolder);if(opts.social.start)$('div.ilightbox-social',firstHolder).fadeIn(opts.effects.fadeSpeed)}
$.each([firstHolder,secondHolder,lastHolder],function(key,val){val.removeClass('ilightbox-next ilightbox-prev')});var firstOffset=firstHolder.data('offset'),winW=(viewport.width-(opts.styles.pageOffsetX)),winH=(viewport.height-(opts.styles.pageOffsetY)),width=firstOffset.newDims.width,height=firstOffset.newDims.height,thumbsOffset=firstOffset.thumbsOffset,diff=firstOffset.diff,top=parseInt((winH/2)-(height/2)-diff.H-(thumbsOffset.H/2)),left=parseInt((winW/2)-(width/2)-diff.W-(thumbsOffset.W/2));firstHolder.css(transform,gpuAcceleration).animate({top:top,left:left,opacity:1},switchSpeed,(vars.isSwipe)?'easeOutCirc':'easeInOutCirc',function(){firstHolder.css(transform,'')});$('div.ilightbox-container',firstHolder).animate({width:width,height:height},switchSpeed,(vars.isSwipe)?'easeOutCirc':'easeInOutCirc');var secondOffset=secondHolder.data('offset'),object=secondOffset.object;diff=secondOffset.diff;width=secondOffset.newDims.width,height=secondOffset.newDims.height;width=parseInt(width*opts.styles[side=='next'?'prevScale':'nextScale']),height=parseInt(height*opts.styles[side=='next'?'prevScale':'nextScale']),top=(path=='horizontal')?parseInt((winH/2)-object.offsetY-(height/2)-diff.H-(thumbsOffset.H/2)):parseInt(winH-object.offsetX-diff.H-(thumbsOffset.H/2));if(side=='prev')
left=(path=='horizontal')?parseInt(winW-object.offsetX-diff.W-(thumbsOffset.W/2)):parseInt((winW/2)-(width/2)-diff.W-object.offsetY-(thumbsOffset.W/2));else{top=(path=='horizontal')?top:parseInt(object.offsetX-diff.H-height-(thumbsOffset.H/2)),left=(path=='horizontal')?parseInt(object.offsetX-diff.W-width-(thumbsOffset.W/2)):parseInt((winW/2)-object.offsetY-(width/2)-diff.W-(thumbsOffset.W/2))}
$('div.ilightbox-container',secondHolder).animate({width:width,height:height},switchSpeed,(vars.isSwipe)?'easeOutCirc':'easeInOutCirc');secondHolder.addClass(firstClass).css(transform,gpuAcceleration).animate({top:top,left:left,opacity:opts.styles.prevOpacity},switchSpeed,(vars.isSwipe)?'easeOutCirc':'easeInOutCirc',function(){secondHolder.css(transform,'');$('.ilightbox-thumbnail',vars.thumbnails).removeClass('ilightbox-active').eq(item).addClass('ilightbox-active');iL.positionThumbnails();if(iL.items[item]){if(!iL.items[item].options.mousewheel)vars.lockWheel=!0;else vars.lockWheel=!1;if(!iL.items[item].options.swipe)vars.lockSwipe=!0;else vars.lockSwipe=!1}
vars.isSwipe=!1;if(side=="next"){vars.nextPhoto=lastHolder,vars.prevPhoto=secondHolder,vars.holder=firstHolder;vars.nextPhoto.hide();vars.next=vars.next+1,vars.prev=vars.current,vars.current=vars.current+1;if(opts.infinite){if(vars.current>vars.total-1)vars.current=0;if(vars.current==vars.total-1)vars.next=0;if(vars.current==0)vars.prev=vars.total-1}
iL.createUI();if(!iL.items[vars.next])
vars.nextLock=!1;else iL.loadContent(iL.items[vars.next],'next')}else{vars.prevPhoto=lastHolder;vars.nextPhoto=secondHolder;vars.holder=firstHolder;vars.prevPhoto.hide();vars.next=vars.current;vars.current=vars.prev;vars.prev=vars.current-1;if(opts.infinite){if(vars.current==vars.total-1)vars.next=0;if(vars.current==0)vars.prev=vars.total-1}
iL.createUI();if(!iL.items[vars.prev])
vars.prevLock=!1;else iL.loadContent(iL.items[vars.prev],'prev')}
if(opts.linkId)setTimeout(function(){vars.hashLock=!1},55);if(!opts.infinite){vars.nextButton.add(vars.prevButton).add(vars.innerPrevButton).add(vars.innerNextButton).removeClass('disabled');if(vars.current==0)
vars.prevButton.add(vars.innerPrevButton).addClass('disabled');if(vars.current>=vars.total-1)
vars.nextButton.add(vars.innerNextButton).addClass('disabled')}
iL.repositionPhoto();iL.resetCycle();if(typeof opts.callback.onAfterChange=='function')
opts.callback.onAfterChange.call(iL,iL.ui)});top=(path=='horizontal')?getPixel(lastHolder,'top'):((side=="next")?parseInt(-(winH/2)-lastHolder.outerHeight()):parseInt(top*2)),left=(path=='horizontal')?((side=="next")?parseInt(-(winW/2)-lastHolder.outerWidth()):parseInt(left*2)):getPixel(lastHolder,'left');lastHolder.css(transform,gpuAcceleration).animate({top:top,left:left,opacity:opts.styles.nextOpacity},switchSpeed,(vars.isSwipe)?'easeOutCirc':'easeInOutCirc',function(){lastHolder.css(transform,'')}).addClass(secondClass)}},setCaption:function(obj,target){var iL=this,caption=$('<div class="ilightbox-caption"></div>');if(obj.caption){caption.html(obj.caption);$('div.ilightbox-container',target).append(caption)}},normalizeSocial:function(obj,url){var iL=this,vars=iL.vars,opts=iL.options,baseURL=window.location.href;$.each(obj,function(key,value){if(!value)
return!0;var item=key.toLowerCase(),source,text;switch(item){case 'facebook':source="https://www.facebook.com/share.php?v=4&src=bm&u={URL}",text="Share on Facebook";break;case 'twitter':source="https://twitter.com/home?status={URL}",text="Share on Twitter";break;case 'googleplus':source="https://plus.google.com/share?url={URL}",text="Share on Google+";break;case 'delicious':source="https://delicious.com/post?url={URL}",text="Share on Delicious";break;case 'digg':source="https://digg.com/submit?phase=2&url={URL}",text="Share on Digg";break;case 'reddit':source="https://reddit.com/submit?url={URL}",text="Share on reddit";break}
obj[key]={URL:value.URL&&absolutizeURI(baseURL,value.URL)||opts.linkId&&window.location.href||typeof url!=='string'&&baseURL||url&&absolutizeURI(baseURL,url)||baseURL,source:value.source||source||value.URL&&absolutizeURI(baseURL,value.URL)||url&&absolutizeURI(baseURL,url),text:value.text||text||"Share on "+key,width:(typeof(value.width)!='undefined'&&!isNaN(value.width))?parseInt(value.width):640,height:value.height||360}});return obj},setSocial:function(obj,url,target){var iL=this,socialBar=$('<div class="ilightbox-social"></div>'),buttons='<ul>';obj=iL.normalizeSocial(obj,url);$.each(obj,function(key,value){var item=key.toLowerCase(),source=value.source.replace(/\{URL\}/g,encodeURIComponent(value.URL).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A').replace(/%20/g,'+'));buttons+='<li class="'+key+'"><a href="'+source+'" onclick="javascript:window.open(this.href'+((value.width<=0||value.height<=0)?'':', \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height='+value.height+',width='+value.width+',left=40,top=40\'')+');return false;" title="'+value.text+'" target="_blank"></a></li>'});buttons+='</ul>';socialBar.html(buttons);$('div.ilightbox-container',target).append(socialBar)},fullScreenAction:function(){var iL=this,vars=iL.vars;if(fullScreenApi.supportsFullScreen){if(fullScreenApi.isFullScreen())fullScreenApi.cancelFullScreen(document.documentElement);else fullScreenApi.requestFullScreen(document.documentElement)}else{iL.doFullscreen()}},doFullscreen:function(){var iL=this,vars=iL.vars,viewport=getViewport(),opts=iL.options;if(opts.fullAlone){var currentHolder=vars.holder,current=iL.items[vars.current],windowWidth=viewport.width,windowHeight=viewport.height,elements=[currentHolder,vars.nextPhoto,vars.prevPhoto,vars.nextButton,vars.prevButton,vars.overlay,vars.toolbar,vars.thumbnails,vars.loader],hideElements=[vars.nextPhoto,vars.prevPhoto,vars.nextButton,vars.prevButton,vars.loader,vars.thumbnails];if(!vars.isInFullScreen){vars.isInFullScreen=vars.lockKey=vars.lockWheel=vars.lockSwipe=!0;vars.overlay.css({opacity:1});$.each(hideElements,function(i,element){element.hide()});vars.fullScreenButton.attr('title',opts.text.exitFullscreen);if(opts.fullStretchTypes.indexOf(current.type)!=-1)currentHolder.data({naturalWidthOld:currentHolder.data('naturalWidth'),naturalHeightOld:currentHolder.data('naturalHeight'),naturalWidth:windowWidth,naturalHeight:windowHeight});else{var viewport=current.options.fullViewPort||opts.fullViewPort||'',newWidth=windowWidth,newHeight=windowHeight,width=currentHolder.data('naturalWidth'),height=currentHolder.data('naturalHeight');if(viewport.toLowerCase()=='fill'){newHeight=(newWidth/width)*height;if(newHeight<windowHeight){newWidth=(windowHeight/height)*width,newHeight=windowHeight}}else if(viewport.toLowerCase()=='fit'){var dims=iL.getNewDimenstions(newWidth,newHeight,width,height,!0);newWidth=dims.width,newHeight=dims.height}else if(viewport.toLowerCase()=='stretch'){newWidth=newWidth,newHeight=newHeight}else{var scale=(width>newWidth||height>newHeight)?!0:!1,dims=iL.getNewDimenstions(newWidth,newHeight,width,height,scale);newWidth=dims.width,newHeight=dims.height}
currentHolder.data({naturalWidthOld:currentHolder.data('naturalWidth'),naturalHeightOld:currentHolder.data('naturalHeight'),naturalWidth:newWidth,naturalHeight:newHeight})}
$.each(elements,function(key,val){val.addClass('ilightbox-fullscreen')});if(typeof opts.callback.onEnterFullScreen=='function')opts.callback.onEnterFullScreen.call(iL,iL.ui)}else{vars.isInFullScreen=vars.lockKey=vars.lockWheel=vars.lockSwipe=!1;vars.overlay.css({opacity:iL.options.overlay.opacity});$.each(hideElements,function(i,element){element.show()});vars.fullScreenButton.attr('title',opts.text.enterFullscreen);currentHolder.data({naturalWidth:currentHolder.data('naturalWidthOld'),naturalHeight:currentHolder.data('naturalHeightOld'),naturalWidthOld:null,naturalHeightOld:null});$.each(elements,function(key,val){val.removeClass('ilightbox-fullscreen')});if(typeof opts.callback.onExitFullScreen=='function')opts.callback.onExitFullScreen.call(iL,iL.ui)}}else{if(!vars.isInFullScreen)vars.isInFullScreen=!0;else vars.isInFullScreen=!1}
iL.repositionPhoto(!0)},closeAction:function(){var iL=this,vars=iL.vars,opts=iL.options;$win.unbind('.iLightBox');$doc.off('.iLightBox');if(vars.isInFullScreen)fullScreenApi.cancelFullScreen(document.documentElement);$('.ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails').off('.iLightBox');if(opts.hide.effect)vars.overlay.stop().fadeOut(opts.hide.speed,function(){vars.overlay.remove();vars.BODY.removeClass('ilightbox-noscroll').off('.iLightBox')});else{vars.overlay.remove();vars.BODY.removeClass('ilightbox-noscroll').off('.iLightBox')}
var fadeOuts=[vars.toolbar,vars.holder,vars.nextPhoto,vars.prevPhoto,vars.nextButton,vars.prevButton,vars.loader,vars.thumbnails];$.each(fadeOuts,function(i,element){element.removeAttr('style').remove()});vars.dontGenerateThumbs=vars.isInFullScreen=!1;window.iLightBox=null;if(opts.linkId){vars.hashLock=!0;removeHash();setTimeout(function(){vars.hashLock=!1},55)}
if(typeof opts.callback.onHide=='function')opts.callback.onHide.call(iL,iL.ui)},repositionPhoto:function(){var iL=this,vars=iL.vars,opts=iL.options,path=opts.path.toLowerCase(),viewport=getViewport(),winWidth=viewport.width,winHeight=viewport.height;var thumbsOffsetW=(vars.isInFullScreen&&opts.fullAlone||vars.isMobile)?0:((path=='horizontal')?0:vars.thumbnails.outerWidth()),thumbsOffsetH=vars.isMobile?vars.toolbar.outerHeight():((vars.isInFullScreen&&opts.fullAlone)?0:((path=='horizontal')?vars.thumbnails.outerHeight():0)),width=(vars.isInFullScreen&&opts.fullAlone)?winWidth:(winWidth-(opts.styles.pageOffsetX)),height=(vars.isInFullScreen&&opts.fullAlone)?winHeight:(winHeight-(opts.styles.pageOffsetY)),offsetW=(path=='horizontal')?parseInt((iL.items[vars.next]||iL.items[vars.prev])?((opts.styles.nextOffsetX+opts.styles.prevOffsetX))*2:(((width/10)<=30)?30:(width/10))):parseInt(((width/10)<=30)?30:(width/10))+thumbsOffsetW,offsetH=(path=='horizontal')?parseInt(((height/10)<=30)?30:(height/10))+thumbsOffsetH:parseInt((iL.items[vars.next]||iL.items[vars.prev])?((opts.styles.nextOffsetX+opts.styles.prevOffsetX))*2:(((height/10)<=30)?30:(height/10)));var elObject={type:'current',width:width,height:height,item:iL.items[vars.current],offsetW:offsetW,offsetH:offsetH,thumbsOffsetW:thumbsOffsetW,thumbsOffsetH:thumbsOffsetH,animate:arguments.length,holder:vars.holder};iL.repositionEl(elObject);if(iL.items[vars.next]){elObject=$.extend(elObject,{type:'next',item:iL.items[vars.next],offsetX:opts.styles.nextOffsetX,offsetY:opts.styles.nextOffsetY,holder:vars.nextPhoto});iL.repositionEl(elObject)}
if(iL.items[vars.prev]){elObject=$.extend(elObject,{type:'prev',item:iL.items[vars.prev],offsetX:opts.styles.prevOffsetX,offsetY:opts.styles.prevOffsetY,holder:vars.prevPhoto});iL.repositionEl(elObject)}
var loaderCss=(path=="horizontal")?{left:parseInt((width/2)-(vars.loader.outerWidth()/2))}:{top:parseInt((height/2)-(vars.loader.outerHeight()/2))};vars.loader.css(loaderCss)},repositionEl:function(obj){var iL=this,vars=iL.vars,opts=iL.options,path=opts.path.toLowerCase(),widthAvail=(obj.type=='current')?((vars.isInFullScreen&&opts.fullAlone)?obj.width:(obj.width-obj.offsetW)):(obj.width-obj.offsetW),heightAvail=(obj.type=='current')?((vars.isInFullScreen&&opts.fullAlone)?obj.height:(obj.height-obj.offsetH)):(obj.height-obj.offsetH),itemParent=obj.item,item=obj.item.options,holder=obj.holder,offsetX=obj.offsetX||0,offsetY=obj.offsetY||0,thumbsOffsetW=obj.thumbsOffsetW,thumbsOffsetH=obj.thumbsOffsetH;if(obj.type=='current'){if(typeof item.width=='number'&&item.width)widthAvail=((vars.isInFullScreen&&opts.fullAlone)&&(opts.fullStretchTypes.indexOf(itemParent.type)!=-1||item.fullViewPort||opts.fullViewPort))?widthAvail:((item.width>widthAvail)?widthAvail:item.width);if(typeof item.height=='number'&&item.height)heightAvail=((vars.isInFullScreen&&opts.fullAlone)&&(opts.fullStretchTypes.indexOf(itemParent.type)!=-1||item.fullViewPort||opts.fullViewPort))?heightAvail:((item.height>heightAvail)?heightAvail:item.height)}else{if(typeof item.width=='number'&&item.width)widthAvail=(item.width>widthAvail)?widthAvail:item.width;if(typeof item.height=='number'&&item.height)heightAvail=(item.height>heightAvail)?heightAvail:item.height}
heightAvail=parseInt(heightAvail-$('.ilightbox-inner-toolbar',holder).outerHeight());var width=(typeof item.width=='string'&&item.width.indexOf('%')!=-1)?percentToValue(parseInt(item.width.replace('%','')),obj.width):holder.data('naturalWidth'),height=(typeof item.height=='string'&&item.height.indexOf('%')!=-1)?percentToValue(parseInt(item.height.replace('%','')),obj.height):holder.data('naturalHeight');var dims=((typeof item.width=='string'&&item.width.indexOf('%')!=-1||typeof item.height=='string'&&item.height.indexOf('%')!=-1)?{width:width,height:height}:iL.getNewDimenstions(widthAvail,heightAvail,width,height)),newDims=$.extend({},dims,{});if(obj.type=='prev'||obj.type=='next')
width=parseInt(dims.width*((obj.type=='next')?opts.styles.nextScale:opts.styles.prevScale)),height=parseInt(dims.height*((obj.type=='next')?opts.styles.nextScale:opts.styles.prevScale));else width=dims.width,height=dims.height;var widthDiff=parseInt((getPixel(holder,'padding-left')+getPixel(holder,'padding-right')+getPixel(holder,'border-left-width')+getPixel(holder,'border-right-width'))/2),heightDiff=parseInt((getPixel(holder,'padding-top')+getPixel(holder,'padding-bottom')+getPixel(holder,'border-top-width')+getPixel(holder,'border-bottom-width')+$('.ilightbox-inner-toolbar',holder).outerHeight())/2);switch(obj.type){case 'current':var top=parseInt((obj.height/2)-(height/2)-heightDiff-(thumbsOffsetH/2)),left=parseInt((obj.width/2)-(width/2)-widthDiff-(thumbsOffsetW/2));break;case 'next':var top=(path=='horizontal')?parseInt((obj.height/2)-offsetY-(height/2)-heightDiff-(thumbsOffsetH/2)):parseInt(obj.height-offsetX-heightDiff-(thumbsOffsetH/2)),left=(path=='horizontal')?parseInt(obj.width-offsetX-widthDiff-(thumbsOffsetW/2)):parseInt((obj.width/2)-(width/2)-widthDiff-offsetY-(thumbsOffsetW/2));break;case 'prev':var top=(path=='horizontal')?parseInt((obj.height/2)-offsetY-(height/2)-heightDiff-(thumbsOffsetH/2)):parseInt(offsetX-heightDiff-height-(thumbsOffsetH/2)),left=(path=='horizontal')?parseInt(offsetX-widthDiff-width-(thumbsOffsetW/2)):parseInt((obj.width/2)-offsetY-(width/2)-widthDiff-(thumbsOffsetW/2));break}
holder.data('offset',{top:top,left:left,newDims:newDims,diff:{W:widthDiff,H:heightDiff},thumbsOffset:{W:thumbsOffsetW,H:thumbsOffsetH},object:obj});if(obj.animate>0&&opts.effects.reposition){holder.css(transform,gpuAcceleration).stop().animate({top:top,left:left},opts.effects.repositionSpeed,'easeOutCirc',function(){holder.css(transform,'')});$('div.ilightbox-container',holder).stop().animate({width:width,height:height},opts.effects.repositionSpeed,'easeOutCirc');$('div.ilightbox-inner-toolbar',holder).stop().animate({width:width},opts.effects.repositionSpeed,'easeOutCirc',function(){$(this).css('overflow','visible')})}else{holder.css({top:top,left:left});$('div.ilightbox-container',holder).css({width:width,height:height});$('div.ilightbox-inner-toolbar',holder).css({width:width})}},resume:function(priority){var iL=this,vars=iL.vars,opts=iL.options;if(!opts.slideshow.pauseTime||opts.controls.slideshow&&vars.total<=1||priority<vars.isPaused){return}
vars.isPaused=0;if(vars.cycleID){vars.cycleID=clearTimeout(vars.cycleID)}
vars.cycleID=setTimeout(function(){if(vars.current==vars.total-1)iL.goTo(0);else iL.moveTo('next')},opts.slideshow.pauseTime)},pause:function(priority){var iL=this,vars=iL.vars,opts=iL.options;if(priority<vars.isPaused){return}
vars.isPaused=priority||100;if(vars.cycleID){vars.cycleID=clearTimeout(vars.cycleID)}},resetCycle:function(){var iL=this,vars=iL.vars,opts=iL.options;if(opts.controls.slideshow&&vars.cycleID&&!vars.isPaused){iL.resume()}},getNewDimenstions:function(width,height,width_old,height_old,thumb){var iL=this;if(!width)factor=height/height_old;else if(!height)factor=width/width_old;else factor=min(width/width_old,height/height_old);if(!thumb){if(factor>iL.options.maxScale)factor=iL.options.maxScale;else if(factor<iL.options.minScale)factor=iL.options.minScale}
var final_width=(iL.options.keepAspectRatio)?round(width_old*factor):width,final_height=(iL.options.keepAspectRatio)?round(height_old*factor):height;return{width:final_width,height:final_height,ratio:factor}},setOption:function(options){var iL=this;iL.options=$.extend(!0,iL.options,options||{});iL.refresh()},availPlugins:function(){var iL=this,testEl=document.createElement("video");iL.plugins={flash:!1,quicktime:(parseInt(PluginDetect.getVersion("QuickTime"))>=0)?!0:!1,html5H264:!!(testEl.canPlayType&&testEl.canPlayType('video/mp4').replace(/no/,'')),html5WebM:!!(testEl.canPlayType&&testEl.canPlayType('video/webm').replace(/no/,'')),html5Vorbis:!!(testEl.canPlayType&&testEl.canPlayType('video/ogg').replace(/no/,'')),html5QuickTime:!!(testEl.canPlayType&&testEl.canPlayType('video/quicktime').replace(/no/,''))}},addContent:function(element,obj){var iL=this,el;switch(obj.type){case 'video':var HTML5=!1,videoType=obj.videoType,html5video=obj.options.html5video;if(((videoType=='video/mp4'||obj.ext=='mp4'||obj.ext=='m4v')||html5video.h264)&&iL.plugins.html5H264)
obj.ext='mp4',obj.URL=html5video.h264||obj.URL;else if(html5video.webm&&iL.plugins.html5WebM)
obj.ext='webm',obj.URL=html5video.webm||obj.URL;else if(html5video.ogg&&iL.plugins.html5Vorbis)
obj.ext='ogv',obj.URL=html5video.ogg||obj.URL;if(iL.plugins.html5H264&&(videoType=='video/mp4'||obj.ext=='mp4'||obj.ext=='m4v'))HTML5=!0,videoType="video/mp4";else if(iL.plugins.html5WebM&&(videoType=='video/webm'||obj.ext=='webm'))HTML5=!0,videoType="video/webm";else if(iL.plugins.html5Vorbis&&(videoType=='video/ogg'||obj.ext=='ogv'))HTML5=!0,videoType="video/ogg";else if(iL.plugins.html5QuickTime&&(videoType=='video/quicktime'||obj.ext=='mov'||obj.ext=='qt'))HTML5=!0,videoType="video/quicktime";if(HTML5){el=$('<video />',{"width":"100%","height":"100%","preload":html5video.preload,"autoplay":html5video.autoplay,"poster":html5video.poster,"controls":html5video.controls}).append($('<source />',{"src":obj.URL,"type":videoType}))}else{if(!iL.plugins.quicktime)el=$('<span />',{"class":"ilightbox-alert",html:iL.options.errors.missingPlugin.replace('{pluginspage}',pluginspages.quicktime).replace('{type}','QuickTime')});else{el=$('<object />',{"type":"video/quicktime","pluginspage":pluginspages.quicktime}).attr({"data":obj.URL,"width":"100%","height":"100%"}).append($('<param />',{"name":"src","value":obj.URL})).append($('<param />',{"name":"autoplay","value":"false"})).append($('<param />',{"name":"loop","value":"false"})).append($('<param />',{"name":"scale","value":"tofit"}));if(browser.msie)el=QT_GenerateOBJECTText(obj.URL,'100%','100%','','SCALE','tofit','AUTOPLAY','false','LOOP','false')}}
break;case 'flash':if(!iL.plugins.flash)el=$('<span />',{"class":"ilightbox-alert",html:iL.options.errors.missingPlugin.replace('{pluginspage}',pluginspages.flash).replace('{type}','Adobe Flash player')});else{var flashvars="",i=0;if(obj.options.flashvars)$.each(obj.options.flashvars,function(k,v){if(i!=0)flashvars+="&";flashvars+=k+"="+encodeURIComponent(v);i++});else flashvars=null;el=$('<embed />').attr({"type":"application/x-shockwave-flash","src":obj.URL,"width":(typeof obj.options.width=='number'&&obj.options.width&&iL.options.minScale=='1'&&iL.options.maxScale=='1')?obj.options.width:"100%","height":(typeof obj.options.height=='number'&&obj.options.height&&iL.options.minScale=='1'&&iL.options.maxScale=='1')?obj.options.height:"100%","quality":"high","bgcolor":"#000000","play":"true","loop":"true","menu":"true","wmode":"transparent","scale":"showall","allowScriptAccess":"always","allowFullScreen":"true","flashvars":flashvars,"fullscreen":"yes"})}
break;case 'iframe':el=$('<iframe />').attr({"width":(typeof obj.options.width=='number'&&obj.options.width&&iL.options.minScale=='1'&&iL.options.maxScale=='1')?obj.options.width:"100%","height":(typeof obj.options.height=='number'&&obj.options.height&&iL.options.minScale=='1'&&iL.options.maxScale=='1')?obj.options.height:"100%",src:obj.URL,frameborder:0,'hspace':0,'vspace':0,'scrolling':supportTouch?'auto':'scroll','webkitAllowFullScreen':'','mozallowfullscreen':'','allowFullScreen':''});break;case 'inline':el=$('<div class="ilightbox-wrapper"></div>').html($(obj.URL).clone(!0));break;case 'html':var object=obj.URL,el;if(object[0].nodeName){el=$('<div class="ilightbox-wrapper"></div>').html(object)}else{var dom=$(obj.URL),html=(dom.selector)?$('<div>'+dom+'</div>'):dom;el=$('<div class="ilightbox-wrapper"></div>').html(html)}
break}
$('div.ilightbox-container',element).empty().html(el);if(el[0].tagName.toLowerCase()==='video'&&browser.webkit)setTimeout(function(){var src=el[0].currentSrc+'?'+floor(random()*30000);el[0].currentSrc=src;el[0].src=src});return el},ogpRecognition:function(obj,callback){var iL=this,url=obj.URL;iL.showLoader();doAjax(url,function(data){iL.hideLoader();if(data){var object=new Object();object.length=!1,object.url=data.url;if(data.status==200){var result=data.results,type=result.type,source=result.source;object.source=source.src,object.width=source.width&&parseInt(source.width)||0,object.height=source.height&&parseInt(source.height)||0,object.type=type,object.thumbnail=source.thumbnail||result.images[0],object.html5video=result.html5video||{},object.length=!0;if(source.type=='application/x-shockwave-flash')object.type="flash";else if(source.type.indexOf("video/")!=-1)object.type="video";else if(source.type.indexOf("/html")!=-1)object.type="iframe";else if(source.type.indexOf("image/")!=-1)object.type="image"}else if(typeof data.response!='undefined')
throw data.response;callback.call(this,object.length?object:!1)}})},hashChangeHandler:function(url){var iL=this,vars=iL.vars,opts=iL.options,URL=url||window.location.href,hash=parseURI(URL).hash,split=hash.split('/'),index=split[1];if(vars.hashLock||('#'+opts.linkId!=split[0]&&hash.length>1))return;if(index){var target=split[1]||0;if(iL.items[target]){var overlay=$('.ilightbox-overlay');if(overlay.length&&overlay.attr('linkid')==opts.linkId){iL.goTo(target)}else{iL.itemsObject[target].trigger(supportTouch?'itap':'click')}}else{var overlay=$('.ilightbox-overlay');if(overlay.length)iL.closeAction()}}else{var overlay=$('.ilightbox-overlay');if(overlay.length)iL.closeAction()}}};function getPixel($element,property){return parseInt($element.css(property),10)||0}
function within(number,min,max){return number<min?min:number>max?max:number}
function getViewport(){var e=window,a='inner';if(!('innerWidth' in window)){a='client';e=document.documentElement||document.body}
return{width:e[a+'Width'],height:e[a+'Height']}}
function removeHash(){var scroll=getScrollXY();window.location.hash="";window.scrollTo(scroll.x,scroll.y)}
function doAjax(url,callback){var url="https://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(url).replace(/!/g,'%21').replace(/'/g,'%27').replace(/\(/g,'%28').replace(/\)/g,'%29').replace(/\*/g,'%2A');$.ajax({url:url,dataType:'jsonp'});iLCallback=function(data){callback.call(this,data)}}
function findImageInElement(element){var elements=$('*',element),imagesArr=new Array();elements.each(function(){var url="",element=this;if($(element).css("background-image")!="none"){url=$(element).css("background-image")}else if(typeof($(element).attr("src"))!="undefined"&&element.nodeName.toLowerCase()=="img"){url=$(element).attr("src")}
if(url.indexOf("gradient")==-1){url=url.replace(/url\(\"/g,"");url=url.replace(/url\(/g,"");url=url.replace(/\"\)/g,"");url=url.replace(/\)/g,"");var urls=url.split(",");for(var i=0;i<urls.length;i++){if(urls[i].length>0&&$.inArray(urls[i],imagesArr)==-1){var extra="";if(browser.msie&&browser.version<9){extra="?"+floor(random()*3000)}
imagesArr.push(urls[i]+extra)}}}});return imagesArr}
function getExtension(URL){var ext=URL.split('.').pop().toLowerCase(),extra=ext.indexOf('?')!==-1?ext.split('?').pop():'';ext=ext.replace(extra,'');return ext.replace('?','')}
function getTypeByExtension(URL){var type,ext=getExtension(URL);if(extensions.image.indexOf(ext)!==-1)type='image';else if(extensions.flash.indexOf(ext)!==-1)type='flash';else if(extensions.video.indexOf(ext)!==-1)type='video';else type='iframe';return type}
function percentToValue(percent,total){return parseInt((total/100)*percent)}
function parseURI(url){var m=String(url).replace(/^\s+|\s+$/g,'').match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return(m?{href:m[0]||'',protocol:m[1]||'',authority:m[2]||'',host:m[3]||'',hostname:m[4]||'',port:m[5]||'',pathname:m[6]||'',search:m[7]||'',hash:m[8]||''}:null)}
function absolutizeURI(base,href){var iL=this;function removeDotSegments(input){var output=[];input.replace(/^(\.\.?(\/|$))+/,'').replace(/\/(\.(\/|$))+/g,'/').replace(/\/\.\.$/,'/../').replace(/\/?[^\/]*/g,function(p){if(p==='/..'){output.pop()}else{output.push(p)}});return output.join('').replace(/^\//,input.charAt(0)==='/'?'/':'')}
href=parseURI(href||'');base=parseURI(base||'');return!href||!base?null:(href.protocol||base.protocol)+(href.protocol||href.authority?href.authority:base.authority)+removeDotSegments(href.protocol||href.authority||href.pathname.charAt(0)==='/'?href.pathname:(href.pathname?((base.authority&&!base.pathname?'/':'')+base.pathname.slice(0,base.pathname.lastIndexOf('/')+1)+href.pathname):base.pathname))+(href.protocol||href.authority||href.pathname?href.search:(href.search||base.search))+href.hash}
function version_compare(v1,v2,operator){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var i=0,x=0,compare=0,vm={'dev':-6,'alpha':-5,'a':-5,'beta':-4,'b':-4,'RC':-3,'rc':-3,'#':-2,'p':1,'pl':1},prepVersion=function(v){v=(''+v).replace(/[_\-+]/g,'.');v=v.replace(/([^.\d]+)/g,'.$1.').replace(/\.{2,}/g,'.');return(!v.length?[-8]:v.split('.'))},numVersion=function(v){return!v?0:(isNaN(v)?vm[v]||-7:parseInt(v,10))};v1=prepVersion(v1);v2=prepVersion(v2);x=max(v1.length,v2.length);for(i=0;i<x;i++){if(v1[i]==v2[i]){continue}
v1[i]=numVersion(v1[i]);v2[i]=numVersion(v2[i]);if(v1[i]<v2[i]){compare=-1;break}else if(v1[i]>v2[i]){compare=1;break}}
if(!operator){return compare}
switch(operator){case '>':case 'gt':return(compare>0);case '>=':case 'ge':return(compare>=0);case '<=':case 'le':return(compare<=0);case '==':case '=':case 'eq':return(compare===0);case '<>':case '!=':case 'ne':return(compare!==0);case '':case '<':case 'lt':return(compare<0);default:return null}}
$.fn.iLightBox=function(){var args=arguments,opt=($.isPlainObject(args[0]))?args[0]:args[1],items=($.isArray(args[0])||typeof args[0]=='string')?args[0]:args[1];if(!opt)opt={};var options=$.extend(!0,{attr:'href',path:'vertical',skin:'dark',linkId:!1,infinite:!1,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:'flash, video',overlay:{blur:!0,opacity:.85},controls:{arrows:!1,slideshow:!1,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:'mouseenter',hide:'mouseleave'},social:{start:!0,show:'mouseenter',hide:'mouseleave',buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5000,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin<\/a>."},ajaxSetup:{url:'',beforeSend:function(jqXHR,settings){},cache:!1,complete:function(jqXHR,textStatus){},crossDomain:!1,error:function(jqXHR,textStatus,errorThrown){},success:function(data,textStatus,jqXHR){},global:!0,ifModified:!1,username:null,password:null,type:'GET'},callback:{}},opt);var instant=($.isArray(items)||typeof items=='string')?!0:!1;items=$.isArray(items)?items:new Array();if(typeof args[0]=='string')items[0]=args[0];if(version_compare($.fn.jquery,'1.8','>=')){var iLB=new iLightBox($(this),options,items,instant);return{close:function(){iLB.closeAction()},fullscreen:function(){iLB.fullScreenAction()},moveNext:function(){iLB.moveTo('next')},movePrev:function(){iLB.moveTo('prev')},goTo:function(index){iLB.goTo(index)},refresh:function(){iLB.refresh()},reposition:function(){(arguments.length>0)?iLB.repositionPhoto(!0):iLB.repositionPhoto()},setOption:function(options){iLB.setOption(options)},destroy:function(){iLB.closeAction();iLB.dispatchItemsEvents()}}}else{throw "The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"}};$.iLightBox=function(){return $.fn.iLightBox(arguments[0],arguments[1])};$.extend($.easing,{easeInCirc:function(x,t,b,c,d){return-c*(sqrt(1-(t/=d)*t)-1)+b},easeOutCirc:function(x,t,b,c,d){return c*sqrt(1-(t=t/d-1)*t)+b},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(sqrt(1-t*t)-1)+b;return c/2*(sqrt(1-(t-=2)*t)+1)+b}});function getScrollXY(){var scrOfX=0,scrOfY=0;if(typeof(window.pageYOffset)=='number'){scrOfY=window.pageYOffset;scrOfX=window.pageXOffset}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){scrOfY=document.body.scrollTop;scrOfX=document.body.scrollLeft}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){scrOfY=document.documentElement.scrollTop;scrOfX=document.documentElement.scrollLeft}
return{x:scrOfX,y:scrOfY}}(function(){$.each(("touchstart touchmove touchend "+"tap taphold "+"swipe swipeleft swiperight "+"scrollstart scrollstop").split(" "),function(i,name){$.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name)};if($.attrFn){$.attrFn[name]=!0}});var tapSettings={startEvent:'touchstart.iTap',endEvent:'touchend.iTap'};$.event.special.itap={setup:function(){var self=this,$self=$(this),start,stop;$self.bind(tapSettings.startEvent,function(event){start=getScrollXY();$self.one(tapSettings.endEvent,function(event){stop=getScrollXY();var orgEvent=event||window.event;event=$.event.fix(orgEvent);event.type="itap";if((start&&stop)&&(start.x==stop.x&&start.y==stop.y))($.event.dispatch||$.event.handle).call(self,event);start=stop=undefined})})},teardown:function(){$(this).unbind(tapSettings.startEvent)}}}());(function(){fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:'',prefix:''},browserPrefixes='webkit moz o ms khtml'.split(' ');if(typeof document.cancelFullScreen!='undefined'){fullScreenApi.supportsFullScreen=!0}else{for(var i=0,il=browserPrefixes.length;i<il;i++){fullScreenApi.prefix=browserPrefixes[i];if(typeof document[fullScreenApi.prefix+'CancelFullScreen']!='undefined'){fullScreenApi.supportsFullScreen=!0;break}}}
if(fullScreenApi.supportsFullScreen){fullScreenApi.fullScreenEventName=fullScreenApi.prefix+'fullscreenchange';fullScreenApi.isFullScreen=function(){switch(this.prefix){case '':return document.fullScreen;case 'webkit':return document.webkitIsFullScreen;default:return document[this.prefix+'FullScreen']}}
fullScreenApi.requestFullScreen=function(el){return(this.prefix==='')?el.requestFullScreen():el[this.prefix+'RequestFullScreen']()}
fullScreenApi.cancelFullScreen=function(el){return(this.prefix==='')?document.cancelFullScreen():document[this.prefix+'CancelFullScreen']()}}}());(function(){function uaMatch(ua){ua=ua.toLowerCase();var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)||ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)||[];return{browser:match[1]||"",version:match[2]||"0"}}
var matched=uaMatch(navigator.userAgent);browser={};if(matched.browser){browser[matched.browser]=!0;browser.version=matched.version}
if(browser.chrome){browser.webkit=!0}else if(browser.webkit){browser.safari=!0}}());(function(){var prefixes=['','webkit','moz','ms','o'];var el=document.createElement('div');function testProp(prop){for(var p=0,pl=prefixes.length;p<pl;p++){var prefixedProp=prefixes[p]?prefixes[p]+prop.charAt(0).toUpperCase()+prop.slice(1):prop;if(el.style[prefixedProp]!==undefined){return prefixedProp}}}
transform=testProp('transform')||'';gpuAcceleration=testProp('perspective')?'translateZ(0) ':''}());var PluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(c,b,a){return function(){c(b,a)}},openTag:"<",isDefined:function(b){return typeof b!="undefined"},isArray:function(b){return(/array/i).test(Object.prototype.toString.call(b))},isFunc:function(b){return typeof b=="function"},isString:function(b){return typeof b=="string"},isNum:function(b){return typeof b=="number"},isStrNum:function(b){return(typeof b=="string"&&(/\d/).test(b))},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(b,c){var d=this,a=d.isStrNum(b)?(d.isDefined(c)?new RegExp(c):d.getNumRegx).exec(b):null;return a?a[0]:null},compareNums:function(h,f,d){var e=this,c,b,a,g=parseInt;if(e.isStrNum(h)&&e.isStrNum(f)){if(e.isDefined(d)&&d.compareNums){return d.compareNums(h,f)}c=h.split(e.splitNumRegx);b=f.split(e.splitNumRegx);for(a=0;a<min(c.length,b.length);a++){if(g(c[a],10)>g(b[a],10)){return 1}if(g(c[a],10)<g(b[a],10)){return-1}}}return 0},formatNum:function(b,c){var d=this,a,e;if(!d.isStrNum(b)){return null}if(!d.isNum(c)){c=4}c--;e=b.replace(/\s/g,"").split(d.splitNumRegx).concat(["0","0","0","0"]);for(a=0;a<4;a++){if(/^(0+)(.+)$/.test(e[a])){e[a]=RegExp.$2}if(a>c||!(/\d/).test(e[a])){e[a]="0"}}return e.slice(0,4).join(",")},$$hasMimeType:function(a){return function(c){if(!a.isIE&&c){var f,e,b,d=a.isArray(c)?c:(a.isString(c)?[c]:[]);for(b=0;b<d.length;b++){if(a.isString(d[b])&&/[^\s]/.test(d[b])){f=navigator.mimeTypes[d[b]];e=f?f.enabledPlugin:0;if(e&&(e.name||e.description)){return f}}}}return null}},findNavPlugin:function(l,e,c){var j=this,h=new RegExp(l,"i"),d=(!j.isDefined(e)||e)?/\d/:0,k=c?new RegExp(c,"i"):0,a=navigator.plugins,g="",f,b,m;for(f=0;f<a.length;f++){m=a[f].description||g;b=a[f].name||g;if((h.test(m)&&(!d||d.test(RegExp.leftContext+RegExp.rightContext)))||(h.test(b)&&(!d||d.test(RegExp.leftContext+RegExp.rightContext)))){if(!k||!(k.test(m)||k.test(b))){return a[f]}}}return null},getMimeEnabledPlugin:function(k,m,c){var e=this,f,b=new RegExp(m,"i"),h="",g=c?new RegExp(c,"i"):0,a,l,d,j=e.isString(k)?[k]:k;for(d=0;d<j.length;d++){if((f=e.hasMimeType(j[d]))&&(f=f.enabledPlugin)){l=f.description||h;a=f.name||h;if(b.test(l)||b.test(a)){if(!g||!(g.test(l)||g.test(a))){return f}}}}return 0},getPluginFileVersion:function(f,b){var h=this,e,d,g,a,c=-1;if(h.OS>2||!f||!f.version||!(e=h.getNum(f.version))){return b}if(!b){return e}e=h.formatNum(e);b=h.formatNum(b);d=b.split(h.splitNumRegx);g=e.split(h.splitNumRegx);for(a=0;a<d.length;a++){if(c>-1&&a>c&&d[a]!="0"){return b}if(g[a]!=d[a]){if(c==-1){c=a}if(d[a]!="0"){return b}}}return e},AXO:window.ActiveXObject,getAXO:function(a){var f=null,d,b=this,c={};try{f=new b.AXO(a)}catch(d){}return f},convertFuncs:function(f){var a,g,d,b=/^[\$][\$]/,c=this;for(a in f){if(b.test(a)){try{g=a.slice(2);if(g.length>0&&!f[g]){f[g]=f[a](f);delete f[a]}}catch(d){}}}},initObj:function(e,b,d){var a,c;if(e){if(e[b[0]]==1||d){for(a=0;a<b.length;a=a+2){e[b[a]]=b[a+1]}}for(a in e){c=e[a];if(c&&c[b[0]]==1){this.initObj(c,b)}}}},initScript:function(){var d=this,a=navigator,h,i=document,l=a.userAgent||"",j=a.vendor||"",b=a.platform||"",k=a.product||"";d.initObj(d,["$",d]);for(h in d.Plugins){if(d.Plugins[h]){d.initObj(d.Plugins[h],["$",d,"$$",d.Plugins[h]],1)}}d.convertFuncs(d);d.OS=100;if(b){var g=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(h=g.length-2;h>=0;h=h-2){if(g[h]&&new RegExp(g[h],"i").test(b)){d.OS=g[h+1];break}}};d.head=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0]||i.body||null;d.isIE=new Function("return/*@cc_on!@*/!1")();d.verIE=d.isIE&&(/MSIE\s*(\d+\.?\d*)/i).test(l)?parseFloat(RegExp.$1,10):null;d.verIEfull=null;d.docModeIE=null;if(d.isIE){var f,n,c=document.createElement("div");try{c.style.behavior="url(#default#clientcaps)";d.verIEfull=(c.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid")).replace(/,/g,".")}catch(f){}n=parseFloat(d.verIEfull||"0",10);d.docModeIE=i.documentMode||((/back/i).test(i.compatMode||"")?5:n)||d.verIE;d.verIE=n||d.docModeIE};d.ActiveXEnabled=!1;if(d.isIE){var h,m=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(h=0;h<m.length;h++){if(d.getAXO(m[h])){d.ActiveXEnabled=!0;break}}};d.isGecko=(/Gecko/i).test(k)&&(/Gecko\s*\/\s*\d/i).test(l);d.verGecko=d.isGecko?d.formatNum((/rv\s*\:\s*([\.\,\d]+)/i).test(l)?RegExp.$1:"0.9"):null;d.isChrome=(/Chrome\s*\/\s*(\d[\d\.]*)/i).test(l);d.verChrome=d.isChrome?d.formatNum(RegExp.$1):null;d.isSafari=((/Apple/i).test(j)||(!j&&!d.isChrome))&&(/Safari\s*\/\s*(\d[\d\.]*)/i).test(l);d.verSafari=d.isSafari&&(/Version\s*\/\s*(\d[\d\.]*)/i).test(l)?d.formatNum(RegExp.$1):null;d.isOpera=(/Opera\s*[\/]?\s*(\d+\.?\d*)/i).test(l);d.verOpera=d.isOpera&&((/Version\s*\/\s*(\d+\.?\d*)/i).test(l)||1)?parseFloat(RegExp.$1,10):null;d.addWinEvent("load",d.handler(d.runWLfuncs,d))},init:function(d){var c=this,b,d,a={status:-3,plugin:0};if(!c.isString(d)){return a}if(d.length==1){c.getVersionDelimiter=d;return a}d=d.toLowerCase().replace(/\s/g,"");b=c.Plugins[d];if(!b||!b.getVersion){return a}a.plugin=b;if(!c.isDefined(b.installed)){b.installed=null;b.version=null;b.version0=null;b.getVersionDone=null;b.pluginName=d}c.garbage=!1;if(c.isIE&&!c.ActiveXEnabled&&d!=="java"){a.status=-2;return a}a.status=1;return a},fPush:function(b,a){var c=this;if(c.isArray(a)&&(c.isFunc(b)||(c.isArray(b)&&b.length>0&&c.isFunc(b[0])))){a.push(b)}},callArray:function(b){var c=this,a;if(c.isArray(b)){for(a=0;a<b.length;a++){if(b[a]===null){return}c.call(b[a]);b[a]=null}}},call:function(c){var b=this,a=b.isArray(c)?c.length:-1;if(a>0&&b.isFunc(c[0])){c[0](b,a>1?c[1]:0,a>2?c[2]:0,a>3?c[3]:0)}else{if(b.isFunc(c)){c(b)}}},getVersionDelimiter:",",$$getVersion:function(a){return function(g,d,c){var e=a.init(g),f,b,h={};if(e.status<0){return null};f=e.plugin;if(f.getVersionDone!=1){f.getVersion(null,d,c);if(f.getVersionDone===null){f.getVersionDone=1}}a.cleanup();b=(f.version||f.version0);b=b?b.replace(a.splitNumRegx,a.getVersionDelimiter):b;return b}},cleanup:function(){var a=this;if(a.garbage&&a.isDefined(window.CollectGarbage)){window.CollectGarbage()}},isActiveXObject:function(d,b){var f=this,a=!1,g,c='<object width="1" height="1" style="display:none" '+d.getCodeBaseVersion(b)+">"+d.HTML+f.openTag+"/object>";if(!f.head){return a}f.head.insertBefore(document.createElement("object"),f.head.firstChild);f.head.firstChild.outerHTML=c;try{f.head.firstChild.classid=d.classID}catch(g){}try{if(f.head.firstChild.object){a=!0}}catch(g){}try{if(a&&f.head.firstChild.readyState<4){f.garbage=!0}}catch(g){}f.head.removeChild(f.head.firstChild);return a},codebaseSearch:function(f,b){var c=this;if(!c.ActiveXEnabled||!f){return null}if(f.BIfuncs&&f.BIfuncs.length&&f.BIfuncs[f.BIfuncs.length-1]!==null){c.callArray(f.BIfuncs)}var d,o=f.SEARCH,k={};if(c.isStrNum(b)){if(o.match&&o.min&&c.compareNums(b,o.min)<=0){return!0}if(o.match&&o.max&&c.compareNums(b,o.max)>=0){return!1}d=c.isActiveXObject(f,b);if(d&&(!o.min||c.compareNums(b,o.min)>0)){o.min=b}if(!d&&(!o.max||c.compareNums(b,o.max)<0)){o.max=b}return d};var e=[0,0,0,0],l=[].concat(o.digits),a=o.min?1:0,j,i,h,g,m,n=function(p,r){var q=[].concat(e);q[p]=r;return c.isActiveXObject(f,q.join(","))};if(o.max){g=o.max.split(c.splitNumRegx);for(j=0;j<g.length;j++){g[j]=parseInt(g[j],10)}if(g[0]<l[0]){l[0]=g[0]}}if(o.min){m=o.min.split(c.splitNumRegx);for(j=0;j<m.length;j++){m[j]=parseInt(m[j],10)}if(m[0]>e[0]){e[0]=m[0]}}if(m&&g){for(j=1;j<m.length;j++){if(m[j-1]!=g[j-1]){break}if(g[j]<l[j]){l[j]=g[j]}if(m[j]>e[j]){e[j]=m[j]}}}if(o.max){for(j=1;j<l.length;j++){if(g[j]>0&&l[j]==0&&l[j-1]<o.digits[j-1]){l[j-1]+=1;break}}};for(j=0;j<l.length;j++){h={};for(i=0;i<20;i++){if(l[j]-e[j]<1){break}d=round((l[j]+e[j])/2);if(h["a"+d]){break}h["a"+d]=1;if(n(j,d)){e[j]=d;a=1}else{l[j]=d}}l[j]=e[j];if(!a&&n(j,e[j])){a=1};if(!a){break}};return a?e.join(","):null},addWinEvent:function(d,c){var e=this,a=window,b;if(e.isFunc(c)){if(a.addEventListener){a.addEventListener(d,c,!1)}else{if(a.attachEvent){a.attachEvent("on"+d,c)}else{b=a["on"+d];a["on"+d]=e.winHandler(c,b)}}}},winHandler:function(d,c){return function(){d();if(typeof c=="function"){c()}}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(a){var b={};a.winLoaded=!0;a.callArray(a.WLfuncs0);a.callArray(a.WLfuncs);if(a.onDoneEmptyDiv){a.onDoneEmptyDiv()}},winLoaded:!1,$$onWindowLoaded:function(a){return function(b){if(a.winLoaded){a.call(b)}else{a.fPush(b,a.WLfuncs)}}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var d=this,b,h,c,a,f,g;if(d.div&&d.div.childNodes){for(b=d.div.childNodes.length-1;b>=0;b--){c=d.div.childNodes[b];if(c&&c.childNodes){for(h=c.childNodes.length-1;h>=0;h--){g=c.childNodes[h];try{c.removeChild(g)}catch(f){}}}if(c){try{d.div.removeChild(c)}catch(f){}}}}if(!d.div){a=document.getElementById(d.divID);if(a){d.div=a}}if(d.div&&d.div.parentNode){try{d.div.parentNode.removeChild(d.div)}catch(f){}d.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var c=this,a,b;if(!c.winLoaded){return}if(c.WLfuncs&&c.WLfuncs.length&&c.WLfuncs[c.WLfuncs.length-1]!==null){return}for(a in c){b=c[a];if(b&&b.funcs){if(b.OTF==3){return}if(b.funcs.length&&b.funcs[b.funcs.length-1]!==null){return}}}for(a=0;a<c.DONEfuncs.length;a++){c.callArray(c.DONEfuncs)}c.emptyDiv()},getWidth:function(c){if(c){var a=c.scrollWidth||c.offsetWidth,b=this;if(b.isNum(a)){return a}}return-1},getTagStatus:function(m,g,a,b){var c=this,f,k=m.span,l=c.getWidth(k),h=a.span,j=c.getWidth(h),d=g.span,i=c.getWidth(d);if(!k||!h||!d||!c.getDOMobj(m)){return-2}if(j<i||l<0||j<0||i<0||i<=c.pluginSize||c.pluginSize<1){return 0}if(l>=i){return-1}try{if(l==c.pluginSize&&(!c.isIE||c.getDOMobj(m).readyState==4)){if(!m.winLoaded&&c.winLoaded){return 1}if(m.winLoaded&&c.isNum(b)){if(!c.isNum(m.count)){m.count=b}if(b-m.count>=10){return 1}}}}catch(f){}return 0},getDOMobj:function(g,a){var f,d=this,c=g?g.span:0,b=c&&c.firstChild?1:0;try{if(b&&a){d.div.focus()}}catch(f){}return b?c.firstChild:null},setStyle:function(b,g){var f=b.style,a,d,c=this;if(f&&g){for(a=0;a<g.length;a=a+2){try{f[g[a]]=g[a+1]}catch(d){}}}},insertDivInBody:function(i,g){var f,c=this,h="pd33993399",b=null,d=g?window.top.document:window.document,a=d.getElementsByTagName("body")[0]||d.body;if(!a){try{d.write('<div id="'+h+'">.'+c.openTag+"/div>");b=d.getElementById(h)}catch(f){}}a=d.getElementsByTagName("body")[0]||d.body;if(a){a.insertBefore(i,a.firstChild);if(b){a.removeChild(b)}}},insertHTML:function(f,b,g,a,k){var l,m=document,j=this,p,o=m.createElement("span"),n,i;var c=["outlineStyle","none","borderStyle","none","padding","0px","margin","0px","visibility","visible"];var h="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;";if(!j.isDefined(a)){a=""}if(j.isString(f)&&(/[^\s]/).test(f)){f=f.toLowerCase().replace(/\s/g,"");p=j.openTag+f+' width="'+j.pluginSize+'" height="'+j.pluginSize+'" ';p+='style="'+h+'display:inline;" ';for(n=0;n<b.length;n=n+2){if(/[^\s]/.test(b[n+1])){p+=b[n]+'="'+b[n+1]+'" '}}p+=">";for(n=0;n<g.length;n=n+2){if(/[^\s]/.test(g[n+1])){p+=j.openTag+'param name="'+g[n]+'" value="'+g[n+1]+'" />'}}p+=a+j.openTag+"/"+f+">"}else{p=a}if(!j.div){i=m.getElementById(j.divID);if(i){j.div=i}else{j.div=m.createElement("div");j.div.id=j.divID}j.setStyle(j.div,c.concat(["width",j.divWidth+"px","height",(j.pluginSize+3)+"px","fontSize",(j.pluginSize+3)+"px","lineHeight",(j.pluginSize+3)+"px","verticalAlign","baseline","display","block"]));if(!i){j.setStyle(j.div,["position","absolute","right","0px","top","0px"]);j.insertDivInBody(j.div)}}if(j.div&&j.div.parentNode){j.setStyle(o,c.concat(["fontSize",(j.pluginSize+3)+"px","lineHeight",(j.pluginSize+3)+"px","verticalAlign","baseline","display","inline"]));try{o.innerHTML=p}catch(l){};try{j.div.appendChild(o)}catch(l){};return{span:o,winLoaded:j.winLoaded,tagName:f,outerHTML:p}}return{span:null,winLoaded:j.winLoaded,tagName:"",outerHTML:p}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(a){return'codebase="#version='+a+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(c){var f=this,d=f.$,a=null,e=null,b;if(!d.isIE){if(d.hasMimeType(f.mimeType)){e=d.OS!=3?d.findNavPlugin("QuickTime.*Plug-?in",0):null;if(e&&e.name){a=d.getNum(e.name)}}}else{if(d.isStrNum(c)){b=c.split(d.splitNumRegx);if(b.length>3&&parseInt(b[3],10)>0){b[3]="9999"}c=b.join(",")}if(d.isStrNum(c)&&d.verIE>=f.minIEver&&f.canUseIsMin()>0){f.installed=f.isMin(c);f.getVersionDone=0;return}f.getVersionDone=1;if(!a&&d.verIE>=f.minIEver){a=f.CDBASE2VER(d.codebaseSearch(f))}if(!a){e=d.getAXO(f.progID);if(e&&e.QuickTimeVersion){a=e.QuickTimeVersion.toString(16);a=parseInt(a.charAt(0),16)+"."+parseInt(a.charAt(1),16)+"."+parseInt(a.charAt(2),16)}}}f.installed=a?1:(e?0:-1);f.version=d.formatNum(a,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(c,b){var a=b.split(c.$.splitNumRegx);return[a[0],a[1].charAt(0),a[1].charAt(1),a[2]].join(",")},null],CDBASE2VER:function(f){var e=this,c=e.$,b,a=e.cdbaseUpper,d=e.cdbaseLower;if(f){f=c.formatNum(f);for(b=0;b<a.length;b++){if(a[b]&&c.compareNums(f,a[b])<0&&d[b]&&c.compareNums(f,d[b])>=0&&e.cdbase2ver[b]){return e.cdbase2ver[b](e,f)}}}return f},canUseIsMin:function(){var f=this,d=f.$,b,c=f.canUseIsMin,a=f.cdbaseUpper,e=f.cdbaseLower;if(!c.value){c.value=-1;for(b=0;b<a.length;b++){if(a[b]&&d.codebaseSearch(f,a[b])){c.value=1;break}if(e[b]&&d.codebaseSearch(f,e[b])){c.value=-1;break}}}f.SEARCH.match=c.value==1?1:0;return c.value},isMin:function(c){var b=this,a=b.$;return a.codebaseSearch(b,c)?0.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var b=function(i){if(!i){return null}var e=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(i);return e?e[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null};var j=this,g=j.$,k,h,l=null,c=null,a=null,f,m,d;if(!g.isIE){m=g.hasMimeType(j.mimeType);if(m){f=g.getDOMobj(g.insertHTML("object",["type",j.mimeType],[],"",j));try{l=g.getNum(f.GetVariable("$version"))}catch(k){}}if(!l){d=m?m.enabledPlugin:null;if(d&&d.description){l=b(d.description)}if(l){l=g.getPluginFileVersion(d,l)}}}else{for(h=15;h>2;h--){c=g.getAXO(j.progID+"."+h);if(c){a=h.toString();break}}if(!c){c=g.getAXO(j.progID)}if(a=="6"){try{c.AllowScriptAccess="always"}catch(k){return"6,0,21,0"}}try{l=b(c.GetVariable("$version"))}catch(k){}if(!l&&a){l=a}}j.installed=l?1:-1;j.version=g.formatNum(l);return!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var a=null,b=null,g,f,d=this,c=d.$;if(!c.isIE){f=c.findNavPlugin("Shockwave\\s*for\\s*Director");if(f&&f.description&&c.hasMimeType(d.mimeType)){a=c.getNum(f.description)}if(a){a=c.getPluginFileVersion(f,a)}}else{try{b=c.getAXO(d.progID).ShockwaveVersion("")}catch(g){}if(c.isString(b)&&b.length>0){a=c.getNum(b)}else{if(c.getAXO(d.progID+".8")){a="8"}else{if(c.getAXO(d.progID+".7")){a="7"}else{if(c.getAXO(d.progID+".1")){a="6"}}}}}d.installed=a?1:-1;d.version=c.formatNum(a)}},zz:0}};PluginDetect.initScript();var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',gTagAttrs=null,gQTGeneratorVersion=1;function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(a,b){b=b.replace("%%",a);alert(b)}function _QTAddAttribute(a,b,c){var d;d=gTagAttrs[a+b];null==d&&(d=gTagAttrs[b]);return null!=d?(0==b.indexOf(a)&&null==c&&(c=b.substring(a.length)),null==c&&(c=b),c+'="'+d+'" '):""}function _QTAddObjectAttr(a,b){if(0==a.indexOf("emb#"))return"";0==a.indexOf("obj#")&&null==b&&(b=a.substring(4));return _QTAddAttribute("obj#",a,b)}function _QTAddEmbedAttr(a,b){if(0==a.indexOf("obj#"))return"";0==a.indexOf("emb#")&&null==b&&(b=a.substring(4));return _QTAddAttribute("emb#",a,b)}function _QTAddObjectParam(a,b){var c,d="",e=b?" />":">";-1==a.indexOf("emb#")&&(c=gTagAttrs["obj#"+a],null==c&&(c=gTagAttrs[a]),0==a.indexOf("obj#")&&(a=a.substring(4)),null!=c&&(d='  <param name="'+a+'" value="'+c+'"'+e+"\n"));return d}function _QTDeleteTagAttrs(){for(var a=0;a<arguments.length;a++){var b=arguments[a];delete gTagAttrs[b];delete gTagAttrs["emb#"+b];delete gTagAttrs["obj#"+b]}}function _QTGenerate(a,b,c){if(4>c.length||0!=c.length%2)return _QTComplain(a,gArgCountErr),"";gTagAttrs=[];gTagAttrs.src=c[0];gTagAttrs.width=c[1];gTagAttrs.height=c[2];gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B";gTagAttrs.pluginspage="https://www.apple.com/quicktime/download/";a=c[3];if(null==a||""==a)a="6,0,2,0";gTagAttrs.codebase="https://www.apple.com/qtactivex/qtplugin.cab#version="+a;for(var d,e=4;e<c.length;e+=2)d=c[e].toLowerCase(),a=c[e+1],"name"==d||"id"==d?gTagAttrs.name=a:gTagAttrs[d]=a;c="<object "+_QTAddObjectAttr("classid")+_QTAddObjectAttr("width")+_QTAddObjectAttr("height")+_QTAddObjectAttr("codebase")+_QTAddObjectAttr("name","id")+_QTAddObjectAttr("tabindex")+_QTAddObjectAttr("hspace")+_QTAddObjectAttr("vspace")+_QTAddObjectAttr("border")+_QTAddObjectAttr("align")+_QTAddObjectAttr("class")+_QTAddObjectAttr("title")+_QTAddObjectAttr("accesskey")+_QTAddObjectAttr("noexternaldata")+">\n"+_QTAddObjectParam("src",b);e="  <embed "+_QTAddEmbedAttr("src")+_QTAddEmbedAttr("width")+_QTAddEmbedAttr("height")+_QTAddEmbedAttr("pluginspage")+_QTAddEmbedAttr("name")+_QTAddEmbedAttr("align")+_QTAddEmbedAttr("tabindex");_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(d in gTagAttrs)a=gTagAttrs[d],null!=a&&(e+=_QTAddEmbedAttr(d),c+=_QTAddObjectParam(d,b));return c+e+"> </embed>\n</object>"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",!1,arguments)};(function(){function e(a){a=a||location.href;return"#"+a.replace(/^[^#]*#?(.*)$/,"$1")}var k=document,b,f=$.event.special,p=k.documentMode,m="oniLightBoxHashChange"in window&&(void 0===p||7<p);$.fn.iLightBoxHashChange=function(a){return a?this.bind("iLightBoxHashChange",a):this.trigger("iLightBoxHashChange")};$.fn.iLightBoxHashChange.delay=50;f.iLightBoxHashChange=$.extend(f.iLightBoxHashChange,{setup:function(){if(m)return!1;$(b.start)},teardown:function(){if(m)return!1;$(b.stop)}});b=function(){function a(){var c=e(),d=f(l);c!==l?(n(l=c,d),$(window).trigger("iLightBoxHashChange")):d!==l&&(location.href=location.href.replace(/#.*/,"")+d);g=setTimeout(a,$.fn.iLightBoxHashChange.delay)}var h={},g,l=e(),b=function(c){return c},n=b,f=b;h.start=function(){g||a()};h.stop=function(){g&&clearTimeout(g);g=void 0};browser.msie&&!m&&function(){var c,d;h.start=function(){c||(d=(d=$.fn.iLightBoxHashChange.src)&&d+e(),c=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){d||n(e());a()}).attr("src",d||"javascript:0").insertAfter("body")[0].contentWindow,k.onpropertychange=function(){try{"title"===event.propertyName&&(c.document.title=k.title)}catch(a){}})};h.stop=b;f=function(){return e(c.location.href)};n=function(a,d){var b=c.document,e=$.fn.iLightBoxHashChange.domain;a!==d&&(b.title=k.title,b.open(),e&&b.write('<script>document.domain="'+e+'"\x3c/script>'),b.close(),c.location.hash=a)}}();return h}()})();if(!Array.prototype.filter){Array.prototype.filter=function(fun){"use strict";if(this==null)
throw new TypeError();var t=Object(this);var len=t.length>>>0;if(typeof fun!="function")
throw new TypeError();var res=[];var thisp=arguments[1];for(var i=0;i<len;i++){if(i in t){var val=t[i];if(fun.call(thisp,val,i,t))
res.push(val)}}
return res}}
if(!Array.prototype.indexOf){Array.prototype.indexOf=function(searchElement,fromIndex){var k;if(this==null){throw new TypeError('"this" is null or not defined')}
var O=Object(this);var len=O.length>>>0;if(len===0){return-1}
var n=+fromIndex||0;if(abs(n)===Infinity){n=0}
if(n>=len){return-1}
k=max(n>=0?n:len-abs(n),0);while(k<len){var kValue;if(k in O&&O[k]===searchElement){return k}
k++}
return-1}}
if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(searchElement){"use strict";if(this==null)
throw new TypeError();var t=Object(this);var len=t.length>>>0;if(len===0)
return-1;var n=len;if(arguments.length>1){n=Number(arguments[1]);if(n!=n)
n=0;else if(n!=0&&n!=(1/0)&&n!=-(1/0))
n=(n>0||-1)*floor(abs(n))}
var k=n>=0?min(n,len-1):len-abs(n);for(;k>=0;k--){if(k in t&&t[k]===searchElement)
return k}
return-1}}})(jQuery,this);var wpex={};(function($){'use strict';wpex={init:function(){this.config();this.bindEvents()},config:function(){this.config={$window:$(window),$document:$(document),$head:$('head'),windowWidth:$(window).width(),windowHeight:$(window).height(),windowTop:$(window).scrollTop(),$body:$('body'),viewportWidth:'',$wpAdminBar:null,isRetina:!1,heightChanged:!1,widthChanged:!1,isRTL:!1,iLightboxSettings:{},vcActive:!1,isMobile:!1,mobileMenuStyle:null,mobileMenuToggleStyle:null,mobileMenuBreakpoint:960,$siteWrap:null,$siteMain:null,$siteHeader:null,siteHeaderStyle:null,siteHeaderHeight:0,siteHeaderTop:0,siteHeaderBottom:0,verticalHeaderActive:!1,hasHeaderOverlay:!1,hasStickyHeader:!1,stickyHeaderStyle:null,hasStickyMobileHeader:!1,hasStickyNavbar:!1,$siteLogo:null,siteLogoHeight:0,siteLogoSrc:null,$siteNavWrap:null,$siteNav:null,$siteNavDropdowns:null,$localScrollTargets:'li.local-scroll a, a.local-scroll, .local-scroll-link, .local-scroll-link > a',localScrollOffset:0,localScrollSpeed:600,localScrollEasing:'easeInOutCubic',localScrollSections:[],hasTopBar:!1,hasStickyTopBar:!1,$stickyTopBar:null,hasStickyTopBarMobile:!1,hasFixedFooter:!1}},bindEvents:function(){var self=this;self.config.$document.on('ready',function(){self.initUpdateConfig();self.responsiveText();self.superfish();self.mobileMenu();self.navNoClick();self.hideEditLink();self.menuWidgetAccordion();self.inlineHeaderLogo();self.menuSearch();self.headerCart();self.backTopLink();self.smoothCommentScroll();self.tipsyTooltips();self.customHovers();self.toggleBar();self.localScrollLinks();self.customSelects();self.wpexOwlCarousel();self.autoLightbox();self.iLightbox();self.overlayHovers();self.skillbar();self.milestone();self.countdown();self.typedText();self.equalHeights();self.archiveMasonryGrids();self.isotopeGrids();self.responsiveCSS();self.vcexFilterNav();self.ctf7Preloader();self.vcAccessability();self.vcPageEditable();self.wooGallery();self.twentytwenty()});self.config.$window.on('load',function(){self.config.$body.addClass('wpex-window-loaded');self.windowLoadUpdateConfig();self.megaMenusWidth();self.megaMenusTop();self.flushDropdownsTop();self.fadeIn();self.parallax();self.cartDropdownRelocate();self.sliderPro();self.stickyTopBar();self.vcTabsTogglesJS();self.headerOverlayOffset();if(self.config.hasStickyHeader){self.stickyHeaderStyle=wpexLocalize.stickyHeaderStyle;if('standard'==self.stickyHeaderStyle||'shrink'==self.stickyHeaderStyle||'shrink_animated'==self.stickyHeaderStyle){self.stickyHeader()}}
self.stickyHeaderMenu();self.stickyVcexNavbar();self.footerReveal();self.fixedFooter();self.titleBreadcrumbsFix();if($.fn.infinitescroll!==undefined&&$('div.infinite-scroll-nav').length){self.infiniteScrollInit()}
self.loadMore();if(wpexLocalize.scrollToHash){window.setTimeout(function(){self.scrollToHash(self)},parseInt(wpexLocalize.scrollToHashTimeout))}});self.config.$window.resize(function(){self.config.widthChanged=!1;self.config.heightChanged=!1;if(self.config.$window.width()!=self.config.windowWidth){self.config.widthChanged=!0;self.widthResizeUpdateConfig()}
if(self.config.$window.height()!=self.config.windowHeight){self.config.windowHeight=self.config.$window.height();self.config.heightChanged=!0}});self.config.$window.scroll(function(){self.config.$hasScrolled=!1;if(self.config.$window.scrollTop()!=self.config.windowTop){self.config.$hasScrolled=!0;self.config.windowTop=self.config.$window.scrollTop();self.localScrollHighlight()}});self.config.$window.on('orientationchange',function(){self.widthResizeUpdateConfig();self.isotopeGrids();self.vcexFilterNav();self.archiveMasonryGrids()})},initUpdateConfig:function(){var self=this;self.config.$body.addClass('wpex-docready');self.config.vcActive=this.config.$body.hasClass('wpb-js-composer');self.config.viewportWidth=self.viewportWidth();self.config.isRetina=self.retinaCheck();if(self.config.isRetina){self.config.$body.addClass('wpex-is-retina')}
if(self.mobileCheck()){self.config.isMobile=!0;self.config.$body.addClass('wpex-is-mobile-device')}
var $wpAdminBar=$('#wpadminbar');if($wpAdminBar.length){self.config.$wpAdminBar=$wpAdminBar}
var $siteWrap=$('#wrap');if($siteWrap){self.config.$siteWrap=$siteWrap}
var $siteMain=$('#main');if($siteMain){self.config.$siteMain=$siteMain}
var $siteHeader=$('#site-header');if($siteHeader.length){self.config.siteHeaderStyle=wpexLocalize.siteHeaderStyle;self.config.$siteHeader=$('#site-header')}
var $siteLogo=$('#site-logo img.logo-img');if($siteLogo.length){self.config.$siteLogo=$siteLogo;self.config.siteLogoSrc=self.config.$siteLogo.attr('src')}
var $siteNavWrap=$('#site-navigation-wrap');if($siteNavWrap.length){self.config.$siteNavWrap=$siteNavWrap;var $siteNav=$('#site-navigation',$siteNavWrap);if($siteNav.length){self.config.$siteNav=$siteNav}
if(wpexLocalize.hasStickyNavbar){self.config.hasStickyNavbar=!0}
var $siteNavDropdowns=$('.dropdown-menu > .menu-item-has-children > ul',$siteNavWrap);if($siteNavWrap.length){self.config.$siteNavDropdowns=$siteNavDropdowns}}
if(wpexLocalize.hasMobileMenu){self.config.mobileMenuStyle=wpexLocalize.mobileMenuStyle;self.config.mobileMenuToggleStyle=wpexLocalize.mobileMenuToggleStyle;self.config.mobileMenuBreakpoint=wpexLocalize.mobileMenuBreakpoint}
if(self.config.$body.hasClass('wpex-has-fixed-footer')){self.config.hasFixedFooter=!0}
self.config.$footerReveal=$('.footer-reveal-visible');if(self.config.$footerReveal.length&&self.config.$siteWrap&&self.config.$siteMain){self.config.$hasFooterReveal=!0}
if(self.config.$siteHeader&&self.config.$body.hasClass('has-overlay-header')){self.config.hasHeaderOverlay=!0}
var $topBarWrap=$('#top-bar-wrap');if($topBarWrap.length){self.config.hasTopBar=!0;if($topBarWrap.hasClass('wpex-top-bar-sticky')){self.config.$stickyTopBar=$topBarWrap;if(self.config.$stickyTopBar.length){self.config.hasStickyTopBar=!0;self.config.hasStickyTopBarMobile=wpexLocalize.hasStickyTopBarMobile}}}
self.config.hasStickyMobileHeader=wpexLocalize.hasStickyMobileHeader;if(self.config.$siteHeader&&wpexLocalize.hasStickyHeader){self.config.hasStickyHeader=!0}
if(this.config.$body.hasClass('wpex-has-vertical-header')){self.config.verticalHeaderActive=!0}
if(wpexLocalize.localScrollSpeed){self.config.localScrollSpeed=parseInt(wpexLocalize.localScrollSpeed)}
if(wpexLocalize.localScrollEasing){self.config.localScrollEasing=wpexLocalize.localScrollEasing;if('false'==self.config.localScrollEasing){self.config.localScrollEasing='swing'}}
self.config.localScrollSections=self.localScrollSections()},windowLoadUpdateConfig:function(){if(this.config.$siteHeader){var siteHeaderTop=this.config.$siteHeader.offset().top;this.config.windowHeight=this.config.$window.height();this.config.siteHeaderHeight=this.config.$siteHeader.outerHeight();this.config.siteHeaderBottom=siteHeaderTop+this.config.siteHeaderHeight;this.config.siteHeaderTop=siteHeaderTop;if(this.config.$siteLogo){this.config.siteLogoHeight=this.config.$siteLogo.height()}}
this.config.localScrollOffset=this.parseLocalScrollOffset('init')},widthResizeUpdateConfig:function(){this.config.windowHeight=this.config.$window.height();this.config.windowWidth=this.config.$window.width();this.config.windowTop=this.config.$window.scrollTop();this.config.viewportWidth=this.viewportWidth();if(this.config.$siteHeader){this.config.siteHeaderHeight=this.config.$siteHeader.outerHeight()}
if(this.config.$siteLogo){this.config.siteLogoHeight=this.config.$siteLogo.height()}
if(this.config.windowWidth<960){this.config.verticalHeaderActive=!1}else if(this.config.$body.hasClass('wpex-has-vertical-header')){this.config.verticalHeaderActive=!0}
this.config.localScrollOffset=this.parseLocalScrollOffset('resize');this.megaMenusWidth();this.cartDropdownRelocate();this.overlayHovers();this.responsiveText()},retinaCheck:function(){var mediaQuery='(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)';if(window.devicePixelRatio>1){return!0}
if(window.matchMedia&&window.matchMedia(mediaQuery).matches){return!0}
return!1},mobileCheck:function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){return!0}},viewportWidth:function(){var e=window,a='inner';if(!('innerWidth' in window)){a='client';e=document.documentElement||document.body}
return e[a+'Width']},superfish:function(){if(!this.config.$siteNav||undefined===$.fn.superfish){return}
$('ul.sf-menu',this.config.$siteNav).superfish({delay:wpexLocalize.superfishDelay,speed:wpexLocalize.superfishSpeed,speedOut:wpexLocalize.superfishSpeedOut,cssArrows:!1,disableHI:!1,animation:{opacity:'show'},animationOut:{opacity:'hide'}})},megaMenusWidth:function(){if(!wpexLocalize.megaMenuJS||'one'!=this.config.siteHeaderStyle||!this.config.$siteNavDropdowns||!this.config.$siteNavWrap.is(':visible')){return}
var $megamenu=$('.megamenu > ul',this.config.$siteNavWrap);if(!$megamenu.length){return}
var $headerContainerWidth=this.config.$siteHeader.find('.container').outerWidth(),$navWrapWidth=this.config.$siteNavWrap.outerWidth(),$siteNavigationWrapPosition=parseInt(this.config.$siteNavWrap.css('right'));if('auto'==$siteNavigationWrapPosition){$siteNavigationWrapPosition=0}
var $megaMenuNegativeMargin=$headerContainerWidth-$navWrapWidth-$siteNavigationWrapPosition;$megamenu.css({'width':$headerContainerWidth,'margin-left':-$megaMenuNegativeMargin})},megaMenusTop:function(){var self=this;if(!self.config.$siteNavDropdowns||'one'!=self.config.siteHeaderStyle){return}
var $megamenu=$('.megamenu > ul',self.config.$siteNavWrap);if(!$megamenu.length)return;function setPosition(){if(self.config.$siteNavWrap.is(':visible')){var $headerHeight=self.config.$siteHeader.outerHeight();var $navHeight=self.config.$siteNavWrap.outerHeight();var $megaMenuTop=$headerHeight-$navHeight;$megamenu.css({'top':$megaMenuTop/2+$navHeight})}}
setPosition();this.config.$window.scroll(function(){setPosition()});this.config.$window.resize(function(){setPosition()});$('.megamenu > a',self.config.$siteNav).hover(function(){setPosition()})},flushDropdownsTop:function(){var self=this;if(!self.config.$siteNavDropdowns||!self.config.$siteNavWrap.hasClass('wpex-flush-dropdowns')){return}
function setPosition(){if(self.config.$siteNavWrap.is(':visible')){var $headerHeight=self.config.$siteHeader.outerHeight();var $siteNavWrapHeight=self.config.$siteNavWrap.outerHeight();var $dropTop=$headerHeight-$siteNavWrapHeight;self.config.$siteNavDropdowns.css('top',$dropTop/2+$siteNavWrapHeight)}}
setPosition();this.config.$window.scroll(function(){setPosition()});this.config.$window.resize(function(){setPosition()});$('.wpex-flush-dropdowns li.menu-item-has-children > a').hover(function(){setPosition()})},mobileMenu:function(){if('sidr'==this.config.mobileMenuStyle&&typeof wpexLocalize.sidrSource!=='undefined'){this.mobileMenuSidr()}else if('toggle'==this.config.mobileMenuStyle){this.mobileMenuToggle()}else if('full_screen'==this.config.mobileMenuStyle){this.mobileMenuFullScreen()}},mobileMenuSidr:function(){var self=this,$toggleBtn=$('a.mobile-menu-toggle, li.mobile-menu-toggle > a');self.config.$body.append('<div class="wpex-sidr-overlay wpex-hidden"></div>');var $sidrOverlay=$('.wpex-sidr-overlay');$toggleBtn.click(function(){$(this).toggleClass('wpex-active')});$toggleBtn.sidr({name:'sidr-main',source:wpexLocalize.sidrSource,side:wpexLocalize.sidrSide,displace:wpexLocalize.sidrDisplace,speed:parseInt(wpexLocalize.sidrSpeed),renaming:!0,bind:'click',onOpen:function(){$('#sidr-main').addClass('wpex-mobile-menu');if(wpexLocalize.sidrBodyNoScroll){self.config.$body.addClass('wpex-noscroll')}
$sidrOverlay.fadeIn(wpexLocalize.sidrSpeed,function(){$sidrOverlay.addClass('wpex-custom-cursor')});$('.wpex-sidr-overlay').on('click',function(event){$.sidr('close','sidr-main');return!1})},onClose:function(){$toggleBtn.removeClass('wpex-active');if(wpexLocalize.sidrBodyNoScroll){self.config.$body.removeClass('wpex-noscroll')}
$sidrOverlay.removeClass('wpex-custom-cursor').fadeOut(wpexLocalize.sidrSpeed)},onCloseEnd:function(){$('.sidr-class-menu-item-has-children.active').removeClass('active').find('ul').hide();if($.fn.vc_rowBehaviour!==undefined){vc_rowBehaviour()}}});var $sidrMain=$('#sidr-main');var $sidrMenu=$('.sidr-class-dropdown-menu',$sidrMain),$sidrDropdownTargetEl=$('.sidr-class-menu-item-has-children > a',$sidrMenu);$('.sidr-class-menu-item-has-children',$sidrMenu).children('a').append('<span class="sidr-class-dropdown-toggle"></span>');$sidrDropdownTargetEl.on('click',function(event){var $parentEl=$(this).parent('li');if(!$parentEl.hasClass('active')){var $allParentLis=$parentEl.parents('li');$('.sidr-class-menu-item-has-children',$sidrMenu).not($allParentLis).removeClass('active').children('ul').stop(!0,!0).slideUp('fast');$parentEl.addClass('active').children('ul').stop(!0,!0).slideDown('fast')}else{$parentEl.removeClass('active');$parentEl.find('li').removeClass('active');$parentEl.find('ul').stop(!0,!0).slideUp('fast')}
return!1});var $parents=$('li.sidr-class-menu-item-has-children > a',$sidrMenu);$parents.each(function(){var $this=$(this);if($this&&$this.attr('href')&&'#'!=$this.attr('href')){var $parent=$this.parent('li'),el=$parent.clone();$this.removeAttr('data-ls_linkto');$parent.removeClass('sidr-class-local-scroll');el.removeClass('sidr-class-menu-item-has-children sidr-class-dropdown');el.find('a').removeClass();el.find('ul, .sidr-class-dropdown-toggle').remove().end().prependTo($this.next('ul'))}});$("[class*='sidr-class-fa']",$sidrMain).attr('class',function(i,c){c=c.replace('sidr-class-fa','fa');c=c.replace('sidr-class-fa-','fa-');return c});$('.sidr-class-wpex-close > a',$sidrMain).on('click',function(e){e.preventDefault();$.sidr('close','sidr-main')});self.config.$window.resize(function(){if(self.config.viewportWidth>=self.config.mobileMenuBreakpoint){$.sidr('close','sidr-main')}});$('li.sidr-class-local-scroll > a',$sidrMain).click(function(){var $hash=this.hash;if($.inArray($hash,self.config.localScrollSections)>-1){$.sidr('close','sidr-main');self.scrollTo($hash);return!1}});if($('#mobile-menu-alternative').length){$('#mobile-menu-alternative').remove()}},mobileMenuToggle:function(){var self=this,$position=wpexLocalize.mobileToggleMenuPosition,$classes='mobile-toggle-nav wpex-mobile-menu wpex-clr wpex-togglep-'+$position,$mobileMenuContents='',$mobileSearch=$('#mobile-menu-search'),$appendTo=self.config.$siteHeader,$toggleBtn=$('a.mobile-menu-toggle, li.mobile-menu-toggle > a');if('fixed_top'==self.config.mobileMenuToggleStyle){$appendTo=$('#wpex-mobile-menu-fixed-top');if($appendTo.length){$appendTo.append('<nav class="'+$classes+'" aria-label="Mobile menu"></nav>')}}else if('absolute'==$position){if('navbar'==self.config.mobileMenuToggleStyle){$appendTo=$('#wpex-mobile-menu-navbar');if($appendTo.length){$appendTo.append('<nav class="'+$classes+'" aria-label="Mobile menu"></nav>')}}else if($appendTo){$appendTo.append('<nav class="'+$classes+'" aria-label="Mobile menu"></nav>')}}else if('afterself'==$position){$appendTo=$('#wpex-mobile-menu-navbar');$('<nav class="'+$classes+'" aria-label="Mobile menu"></nav>').insertAfter($appendTo)}else{$('<nav class="'+$classes+'" aria-label="Mobile menu"></nav>').insertAfter($appendTo)}
var $mobileToggleNav=$('.mobile-toggle-nav');if($('#mobile-menu-alternative').length){$mobileMenuContents=$('#mobile-menu-alternative .dropdown-menu').html();$('#mobile-menu-alternative').remove()}else{$mobileMenuContents=$('.dropdown-menu',self.config.$siteNav).html()}
$mobileToggleNav.html('<ul class="mobile-toggle-nav-ul">'+$mobileMenuContents+'</ul>');$('.mobile-toggle-nav-ul, .mobile-toggle-nav-ul *').children().each(function(){$(this).removeAttr('style')});$('.mobile-toggle-nav-ul').addClass('container');var parseDropParents=!1;if(!parseDropParents){var $parents=$mobileToggleNav.find('li.menu-item-has-children > a');$parents.each(function(){var $this=$(this);if($this&&$this.attr('href')&&'#'!=$this.attr('href')){var $parent=$this.parent('li'),el=$parent.clone();$parent.removeClass('local-scroll');$this.removeAttr('data-ls_linkto');el.removeClass('menu-item-has-children');el.find('ul, .wpex-open-submenu').remove().end().prependTo($this.next('ul'))}});parseDropParents=!0}
var dropDownParents=$mobileToggleNav.find('.menu-item-has-children');dropDownParents.children('a').append('<span class="wpex-open-submenu" aria-haspopup="true"></span>');var $dropdownTargetEl=$dropdownTargetEl=$('.menu-item-has-children > a',$mobileToggleNav);$dropdownTargetEl.on('click',function(event){var $parentEl=$(this).parent('li');if(!$parentEl.hasClass('active')){var $allParentLis=$parentEl.parents('li');$('.menu-item-has-children',$mobileToggleNav).not($allParentLis).removeClass('active').children('ul').stop(!0,!0).slideUp('fast');$parentEl.addClass('active').children('ul').stop(!0,!0).slideDown('fast')}else{$parentEl.removeClass('active');$parentEl.find('li').removeClass('active');$parentEl.find('ul').stop(!0,!0).slideUp('fast')}
return!1});function openToggle($button){if(wpexLocalize.animateMobileToggle){$mobileToggleNav.stop(!0,!0).slideDown('fast').addClass('visible')}else{$mobileToggleNav.addClass('visible')}
$button.addClass('wpex-active')}
function closeToggle($button){if(wpexLocalize.animateMobileToggle){$mobileToggleNav.stop(!0,!0).slideUp('fast').removeClass('visible')}else{$mobileToggleNav.removeClass('visible')}
$mobileToggleNav.find('li.active > ul').stop(!0,!0).slideUp('fast');$mobileToggleNav.find('.active').removeClass('active');$button.removeClass('wpex-active')}
$toggleBtn.on('click',function(e){if($mobileToggleNav.hasClass('visible')){closeToggle($(this))}else{openToggle($(this))}
return!1});self.config.$window.resize(function(){if(self.config.viewportWidth>=self.config.mobileMenuBreakpoint&&$mobileToggleNav.hasClass('visible')){closeToggle($toggleBtn)}});if($mobileSearch.length){$mobileToggleNav.append('<div class="mobile-toggle-nav-search container"></div>');$('.mobile-toggle-nav-search').append($mobileSearch)}},mobileMenuFullScreen:function(){var self=this,$style=wpexLocalize.fullScreenMobileMenuStyle?wpexLocalize.fullScreenMobileMenuStyle:!1,$mobileSearch=$('#mobile-menu-search'),$menuHTML='';self.config.$body.append('<div class="full-screen-overlay-nav wpex-mobile-menu wpex-clr '+$style+'"><span class="full-screen-overlay-nav-close">&times;</span><nav class="full-screen-overlay-nav-ul-wrapper"><ul class="full-screen-overlay-nav-ul"></ul></nav></div>');var $navUL=$('.full-screen-overlay-nav-ul');if($('#mobile-menu-alternative').length){$menuHTML=$('#mobile-menu-alternative .dropdown-menu').html();$('#mobile-menu-alternative').remove()}else{$menuHTML=$('#site-navigation .dropdown-menu').html()}
$navUL.html($menuHTML);var $nav=$('.full-screen-overlay-nav');$('.full-screen-overlay-nav, .full-screen-overlay-nav *').children().each(function(){$(this).removeAttr('style')});var parseDropParents=!1;if(!parseDropParents){var $parents=$nav.find('li.menu-item-has-children > a');$parents.each(function(){var $this=$(this);if($this&&$this.attr('href')&&'#'!=$this.attr('href')){var $parent=$this.parent('li'),el=$parent.clone();$parent.removeClass('local-scroll');$this.removeAttr('data-ls_linkto');el.removeClass('menu-item-has-children');el.find('ul').remove().end().prependTo($this.next('ul'))}});parseDropParents=!0}
var $dropdownTargetEl=$nav.find('li.menu-item-has-children > a');$dropdownTargetEl.on('click',function(event){var $parentEl=$(this).parent('li');if(!$parentEl.hasClass('wpex-active')){var $allParentLis=$parentEl.parents('li');$nav.find('.menu-item-has-children').not($allParentLis).removeClass('wpex-active').children('ul').stop(!0,!0).slideUp('fast');$parentEl.addClass('wpex-active').children('ul').stop(!0,!0).slideDown({duration:'normal',easing:'easeInQuad'})}else{$parentEl.removeClass('wpex-active');$parentEl.find('li').removeClass('wpex-active');$parentEl.find('ul').stop(!0,!0).slideUp('fast')}
return!1});$('.mobile-menu-toggle').on('click',function(){$nav.addClass('visible');self.config.$body.addClass('wpex-noscroll');return!1});$('.local-scroll > a',$nav).click(function(){var $hash=this.hash;if($.inArray($hash,self.config.localScrollSections)>-1){$nav.removeClass('visible');self.config.$body.removeClass('wpex-noscroll');return!1}});$('.full-screen-overlay-nav-close').on('click',function(){$nav.removeClass('visible');$nav.find('li.wpex-active > ul').stop(!0,!0).slideUp('fast');$nav.find('.wpex-active').removeClass('wpex-active');self.config.$body.removeClass('wpex-noscroll');return!1});if($mobileSearch.length){$navUL.append($mobileSearch);$('#mobile-menu-search').wrap('<li class="wpex-search"></li>')}},navNoClick:function(){$('li.nav-no-click > a, li.sidr-class-nav-no-click > a').on('click',function(){return!1})},menuSearch:function(){var self=this;var $toggleEl='';var $wrapEl=$('.header-searchform-wrap');if($wrapEl.length){if($wrapEl.data('placeholder')){$wrapEl.find('input[type="search"]').attr('placeholder',$wrapEl.data('placeholder'))}
if($wrapEl.data('disable-autocomplete')){$wrapEl.find('input[type="search"]').attr('autocomplete','off')}}
if('drop_down'==wpexLocalize.menuSearchStyle){$toggleEl=$('a.search-dropdown-toggle, a.mobile-menu-search');var $searchDropdownForm=$('#searchform-dropdown');$toggleEl.click(function(event){$searchDropdownForm.toggleClass('show');$(this).parent('li').toggleClass('active');var $transitionDuration=$searchDropdownForm.css('transition-duration');$transitionDuration=$transitionDuration.replace('s','')*1000;if($transitionDuration){setTimeout(function(){$searchDropdownForm.find('input[type="search"]').focus()},$transitionDuration)}
$('div#current-shop-items-dropdown').removeClass('show');$('li.wcmenucart-toggle-dropdown').removeClass('active');return!1});self.config.$document.on('click',function(event){if(!$(event.target).closest('#searchform-dropdown.show').length){$toggleEl.parent('li').removeClass('active');$searchDropdownForm.removeClass('show')}})}else if('overlay'==wpexLocalize.menuSearchStyle){$toggleEl=$('a.search-overlay-toggle, a.mobile-menu-search, li.search-overlay-toggle > a');var $overlayEl=$('#wpex-searchform-overlay');var $inner=$overlayEl.find('.wpex-inner');$toggleEl.on('click',function(event){$overlayEl.toggleClass('active');$overlayEl.find('input[type="search"]').val('');if($overlayEl.hasClass('active')){var $overlayElTransitionDuration=$overlayEl.css('transition-duration');$overlayElTransitionDuration=$overlayElTransitionDuration.replace('s','')*1000;setTimeout(function(){$overlayEl.find('input[type="search"]').focus()},$overlayElTransitionDuration)}
return!1});$inner.click(function(event){event.stopPropagation()});$overlayEl.click(function(){$overlayEl.removeClass('active')})}else if('header_replace'==wpexLocalize.menuSearchStyle){$toggleEl=$('a.search-header-replace-toggle, a.mobile-menu-search');var $headerReplace=$('#searchform-header-replace');$toggleEl.click(function(event){$headerReplace.toggleClass('show');var $transitionDuration=$headerReplace.css('transition-duration');$transitionDuration=$transitionDuration.replace('s','')*1000;if($transitionDuration){setTimeout(function(){$headerReplace.find('input[type="search"]').focus()},$transitionDuration)}
return!1});$('#searchform-header-replace-close').click(function(){$headerReplace.removeClass('show');return!1});self.config.$document.on('click',function(event){if(!$(event.target).closest($('#searchform-header-replace.show')).length){$headerReplace.removeClass('show')}})}},headerCart:function(){if($('a.wcmenucart').hasClass('go-to-shop')){return}
var $toggle=$('.toggle-cart-widget, li.toggle-header-cart > a');if(!$toggle.length)return;if('drop_down'==wpexLocalize.wooCartStyle){var $dropdown=$('div#current-shop-items-dropdown');if(!$dropdown.length)return;$toggle.click(function(){$('#searchform-dropdown').removeClass('show');$('a.search-dropdown-toggle').parent('li').removeClass('active');$dropdown.toggleClass('show');$(this).toggleClass('active');return!1});$dropdown.click(function(event){event.stopPropagation()});this.config.$document.click(function(){$dropdown.removeClass('show');$toggle.removeClass('active')})}else if('overlay'==wpexLocalize.wooCartStyle){var $overlayEl=$('#wpex-cart-overlay');var $inner=$overlayEl.find('.wpex-inner');$toggle.on('click',function(event){$overlayEl.toggleClass('active');return!1});$inner.click(function(event){event.stopPropagation()});$overlayEl.click(function(){$overlayEl.removeClass('active')})}},headerOverlayOffset:function(){var $offset_element=$('.add-overlay-header-offset');if($offset_element.length){var self=this;var $height=self.config.siteHeaderHeight;if(!$height)return;var $offset=$('<div class="overlay-header-offset-div" style="height:'+$height+'px"></div>');$offset_element.prepend($offset);self.config.$window.resize(function(){$offset.css('height',self.config.siteHeaderHeight)})}},cartDropdownRelocate:function(){if(this.config.hasHeaderOverlay||!this.config.$siteHeader||!this.config.$siteHeader.hasClass('wpex-reposition-cart-search-drops')){return}
var $lastMenuItem=$('.dropdown-menu > li:nth-last-child(1)',this.config.$siteNav);if(!$lastMenuItem.length){return}
var $shopDrop=$('#current-shop-items-dropdown');var $lastMenuItemOffset=$lastMenuItem.position();var $leftPosition='';if($shopDrop.length){if(wpexLocalize.isRTL){$leftPosition=$lastMenuItemOffset.left}else{$leftPosition=$lastMenuItemOffset.left-$shopDrop.outerWidth()+$lastMenuItem.width()}
$shopDrop.css({'right':'auto','left':$leftPosition})}},hideEditLink:function(){$('a.hide-post-edit',$('#content')).click(function(){$('div.post-edit').hide();return!1})},menuWidgetAccordion:function(){if(!wpexLocalize.menuWidgetAccordion){return}
var self=this;$('#sidebar .widget_nav_menu .current-menu-ancestor, .widget_nav_menu_accordion .widget_nav_menu .current-menu-ancestor',self.config.$siteMain).addClass('active').children('ul').show();$('#sidebar .widget_nav_menu, .widget_nav_menu_accordion  .widget_nav_menu',self.config.$siteMain).each(function(){var $hasChildren=$(this).find('.menu-item-has-children');$hasChildren.each(function(){$(this).addClass('parent');var $links=$(this).children('a');$links.on('click',function(event){var $linkParent=$(this).parent('li');var $allParents=$linkParent.parents('li');if(!$linkParent.hasClass('active')){$hasChildren.not($allParents).removeClass('active').children('.sub-menu').slideUp('fast');$linkParent.addClass('active').children('.sub-menu').stop(!0,!0).slideDown('fast')}else{$linkParent.removeClass('active').children('.sub-menu').stop(!0,!0).slideUp('fast')}
return!1})})})},inlineHeaderLogo:function(){var self=this;if('five'!=self.config.siteHeaderStyle){return}
var $headerLogo=$('#site-header-inner > .header-five-logo',self.config.$siteHeader);var $headerNav=$('.navbar-style-five',self.config.$siteHeader);var $navLiCount=$headerNav.children('#site-navigation').children('ul').children('li').size();var $navBeforeMiddleLi=Math.round($navLiCount/2)-parseInt(wpexLocalize.headerFiveSplitOffset);function onInit(){if(self.config.viewportWidth>self.config.mobileMenuBreakpoint&&$headerLogo.length&&$headerNav.length){$('<li class="menu-item-logo"></li>').insertAfter($headerNav.find('#site-navigation > ul > li:nth( '+$navBeforeMiddleLi+' )'));$headerLogo.appendTo($headerNav.find('.menu-item-logo'))}
$headerLogo.addClass('display')}
function onResize(){var $centeredLogo=$('.menu-item-logo .header-five-logo');if(self.config.viewportWidth<=self.config.mobileMenuBreakpoint){if($centeredLogo.length){$centeredLogo.prependTo($('#site-header-inner'));$('.menu-item-logo').remove()}}else if(!$centeredLogo.length){onInit()}}
onInit();self.config.$window.resize(function(){onResize()})},backTopLink:function(){var self=this;var $scrollTopLink=$('a#site-scroll-top');if($scrollTopLink.length){var $speed=wpexLocalize.scrollTopSpeed?parseInt(wpexLocalize.scrollTopSpeed):1000;var $offset=wpexLocalize.scrollTopOffset?parseInt(wpexLocalize.scrollTopOffset):100;self.config.$window.scroll(function(){if($(this).scrollTop()>$offset){$scrollTopLink.addClass('show')}else{$scrollTopLink.removeClass('show')}});$scrollTopLink.on('click',function(event){$('html, body').stop(!0,!0).animate({scrollTop:0},$speed,self.config.localScrollEasing);return!1})}},smoothCommentScroll:function(){var self=this;$('.single li.comment-scroll a').click(function(event){var $target=$('#comments');var $offset=$target.offset().top-self.config.localScrollOffset-20;self.scrollTo($target,$offset);return!1})},tipsyTooltips:function(){$('a.tooltip-left').tipsy({fade:!0,gravity:'e'});$('a.tooltip-right').tipsy({fade:!0,gravity:'w'});$('a.tooltip-up').tipsy({fade:!0,gravity:'s'});$('a.tooltip-down').tipsy({fade:!0,gravity:'n'})},responsiveText:function(){var self=this;var $responsiveText=$('.wpex-responsive-txt');$responsiveText.each(function(){var $this=$(this);var $thisWidth=$this.width();var $data=$this.data();var $minFont=self.parseData($data.minFontSize,13);var $maxFont=self.parseData($data.maxFontSize,40);var $ratio=self.parseData($data.responsiveTextRatio,10);var $fontBase=$thisWidth/$ratio;var $fontSize=$fontBase>$maxFont?$maxFont:$fontBase<$minFont?$minFont:$fontBase;$this.css('font-size',$fontSize+'px')})},toggleBar:function(){var self=this;var $toggleBtn=$('a.toggle-bar-btn, a.togglebar-toggle, .togglebar-toggle > a');var $toggleBarWrap=$('#toggle-bar-wrap');if($toggleBtn.length&&$toggleBarWrap.length){$toggleBtn.on('click',function(event){var $fa=$('.toggle-bar-btn').find('.fa');if($fa.length){$fa.toggleClass($toggleBtn.data('icon'));$fa.toggleClass($toggleBtn.data('icon-hover'))}
$toggleBarWrap.toggleClass('active-bar');return!1});self.config.$document.on('click',function(event){if(!$(event.target).closest('#toggle-bar-wrap.active-bar').length){$toggleBarWrap.removeClass('active-bar');var $fa=$toggleBtn.children('.fa');if($fa.length){$fa.removeClass($toggleBtn.data('icon-hover')).addClass($toggleBtn.data('icon'))}}})}},skillbar:function($context){if(undefined===$.fn.appear){return}
$('.vcex-skillbar',$context).each(function(){var $this=$(this);$this.appear(function(){$this.find('.vcex-skillbar-bar').animate({width:$(this).attr('data-percent')},800)})},{accX:0,accY:0})},milestone:function($context){if(typeof CountUp!=='function'||undefined===$.fn.appear){return}
$('.vcex-countup',$context).each(function(){var $this=$(this),data=$this.data('options'),startVal=data.startVal,endVal=data.endVal,decimals=data.decimals,duration=data.duration;var options={useEasing:!0,useGrouping:!0,separator:data.separator,decimal:data.decimal,prefix:'',suffix:''};var numAnim=new CountUp(this,startVal,endVal,decimals,duration,options);if($context){numAnim.start();return}
$this.appear(function(){numAnim.start()})})},twentytwenty:function($context){if(undefined===$.fn.twentytwenty||undefined===$.fn.imagesLoaded){return}
$('.vcex-image-ba',$context).each(function(){var $this=$(this);$this.imagesLoaded(function(){$this.twentytwenty($this.data('options'))})})},countdown:function($context){if(undefined===$.fn.countdown){return}
$('.vcex-countdown',$context).each(function(){var $this=$(this),endDate=$this.data('countdown'),days=$this.data('days'),hours=$this.data('hours'),minutes=$this.data('minutes'),seconds=$this.data('seconds'),timezone=$this.data('timezone');if(timezone&&typeof moment.tz!=='undefined'&&$.isFunction(moment.tz)){endDate=moment.tz(endDate,timezone).toDate()}
if(!endDate){return}
$this.countdown(endDate,function(event){$this.html(event.strftime('<div class="wpex-days"><span>%-D</span> <small>'+days+'</small></div> <div class="wpex-hours"><span>%-H</span> <small>'+hours+'</small></div class="wpex-months"> <div class="wpex-minutes"><span>%-M</span> <small>'+minutes+'</small></div> <div class="wpex-seconds"><span>%-S</span> <small>'+seconds+'</small></div>'))})})},typedText:function($context){if(typeof Typed!=='function'||undefined===$.fn.appear){return}
$('.vcex-typed-text',$context).each(function(){var $this=$(this);var $settings=$this.data('settings');$this.appear(function(){$settings.typeSpeed=parseInt($settings.typeSpeed);$settings.backDelay=parseInt($settings.backDelay);$settings.backSpeed=parseInt($settings.backSpeed);$settings.startDelay=parseInt($settings.startDelay);$settings.strings=$this.data('strings');var typed=new Typed(this,$settings)})})},parallax:function($context){$('.wpex-parallax-bg',$context).each(function(){var $this=$(this);$this.scrolly2().trigger('scroll');$this.css({'opacity':1})})},parseLocalScrollOffset:function(instance){var self=this;var $offset=0;if(wpexLocalize.localScrollOffset){return wpexLocalize.localScrollOffset}
if(wpexLocalize.localScrollExtraOffset){$offset=$offset+parseInt(wpexLocalize.localScrollExtraOffset)}
if($('#wpadminbar').is(':visible')){$offset=parseInt($offset)+parseInt($('#wpadminbar').outerHeight())}
if('fixed_top'==self.config.mobileMenuToggleStyle){var $mmFixed=$('#wpex-mobile-menu-fixed-top');if($mmFixed.length&&$mmFixed.is(':visible')){$offset=parseInt($offset)+parseInt($mmFixed.outerHeight())}}
if(self.config.hasStickyTopBar){$offset=parseInt($offset)+parseInt(self.config.$stickyTopBar.outerHeight())}
if(self.config.hasStickyHeader){if(!self.config.hasStickyMobileHeader&&self.config.windowWidth<=wpexLocalize.stickyHeaderBreakPoint){$offset=parseInt($offset)+0}else{if(self.config.$siteHeader.hasClass('shrink-sticky-header')){if('init'==instance||self.config.$siteHeader.is(':visible')){$offset=parseInt($offset)+parseInt(wpexLocalize.shrinkHeaderHeight)}}else{$offset=parseInt($offset)+parseInt(self.config.siteHeaderHeight)}}}
if(self.config.hasStickyNavbar){if(self.config.viewportWidth>=wpexLocalize.stickyNavbarBreakPoint){$offset=parseInt($offset)+parseInt(self.config.$siteNavWrap.outerHeight())}}
var $vcexNavbarSticky=$('.vcex-navbar-sticky');if($vcexNavbarSticky.length){$offset=parseInt($offset)+parseInt($vcexNavbarSticky.outerHeight())}
$offset=$offset?$offset-1:0;return $offset},scrollTo:function(hash,offset,callback){if(!hash){return}
var self=this;var $target=null;var $page=$('html, body');var $isLsDataLink=!1;var $lsTarget=$('[data-ls_id="'+hash+'"]');if($lsTarget.length){$target=$lsTarget;$isLsDataLink=!0}else{if(typeof hash=='string'){$target=$(hash)}else{$target=hash}}
if($target.length){var $lsSpeed=self.config.localScrollSpeed?parseInt(self.config.localScrollSpeed):1000,$lsOffset=self.config.localScrollOffset,$lsEasing=self.config.localScrollEasing;offset=offset?offset:$target.offset().top-$lsOffset;if(hash&&$isLsDataLink&&wpexLocalize.localScrollUpdateHash){window.location.hash=hash}
var $mobileToggleNav=$('.mobile-toggle-nav');if($mobileToggleNav.hasClass('visible')){$('a.mobile-menu-toggle, li.mobile-menu-toggle > a').removeClass('wpex-active');if(wpexLocalize.animateMobileToggle){$mobileToggleNav.slideUp('fast',function(){$mobileToggleNav.removeClass('visible');$page.stop(!0,!0).animate({scrollTop:$target.offset().top-$lsOffset},$lsSpeed)})}else{$mobileToggleNav.hide().removeClass('visible');$page.stop(!0,!0).animate({scrollTop:$target.offset().top-$lsOffset},$lsSpeed)}}else{$page.stop(!0,!0).animate({scrollTop:offset},$lsSpeed,$lsEasing)}}},scrollToHash:function(self){var hash=location.hash;var $target='';var $offset='';if(!hash){return}
if('#view_comments'==hash||'#comments_reply'==hash){$target=$('#comments');$offset=$target.offset().top-self.config.localScrollOffset-20;if($target.length){self.scrollTo($target,$offset)}
return}
if(self.config.hasStickyHeader&&hash.indexOf('comment-')!=-1){$target=$(hash);$offset=$target.offset().top-self.config.localScrollOffset-20;self.scrollTo($target,$offset);return}
if(hash.indexOf('localscroll-')!=-1){self.scrollTo(hash.replace('localscroll-',''));return}
if($('[data-ls_id="'+hash+'"]').length){self.scrollTo(hash);return}},localScrollSections:function(){var self=this;if(self.config.$siteNav){var $navLinks=$('a',this.config.$siteNav);var $location=location;var $currentPage=$location.href;$currentPage=$location.hash?$currentPage.substr(0,$currentPage.indexOf('#')):$currentPage;$navLinks.each(function(){var $this=$(this);var $ref=$this.attr('href');if($ref&&$ref.indexOf('localscroll-')!=-1){$this.parent('li').addClass('local-scroll');var $withoutHash=$ref.substr(0,$ref.indexOf('#'));if($withoutHash==$currentPage){var $hash=$ref.substring($ref.indexOf('#')+1);var $parseHash=$hash.replace('localscroll-','');$this.attr('data-ls_linkto','#'+$parseHash)}}})}
var $array=[];var $links=$(self.config.$localScrollTargets);for(var i=0;i<$links.length;i++){var $link=$links[i];var $linkDom=$($link);var $href=$($link).attr('href');var $hash=$href?'#'+$href.replace(/^.*?(#|$)/,''):null;if($hash&&'#'!=$hash){if(!$linkDom.attr('data-ls_linkto')){$linkDom.attr('data-ls_linkto',$hash)}
if($('[data-ls_id="'+$hash+'"]').length){if($.inArray($hash,$array)==-1){$array.push($hash)}}else if($($hash).length){if($.inArray($hash,$array)==-1){$array.push($hash)}}}}
return $array},localScrollLinks:function(){var self=this;$(self.config.$localScrollTargets).on('click',function(){var $this=$(this);var $hash=$this.attr('data-ls_linkto');$hash=$hash?$hash:this.hash;if($.inArray($hash,self.config.localScrollSections)>-1){$this.parent().removeClass('sfHover');self.scrollTo($hash);return!1}});$('a.wpex-scroll-top, .wpex-scroll-top a').on('click',function(){self.scrollTo('#site_top');return!1});$('a.woocommerce-review-link',$('body.single div.entry-summary')).click(function(){var $target=$('.woocommerce-tabs');if($target.length){$('.reviews_tab a').click();var $offset=$target.offset().top-self.config.localScrollOffset;self.scrollTo($target,$offset)}
return!1})},localScrollHighlight:function(){if(!wpexLocalize.localScrollHighlight){return}
var self=this,localScrollSections=self.config.localScrollSections;if(!localScrollSections.length){return}
var $windowPos=this.config.$window.scrollTop(),$divPos,$divHeight,$higlight_link;for(var i=0;i<localScrollSections.length;i++){var $section=localScrollSections[i];if($('[data-ls_id="'+$section+'"]').length){var $targetDiv=$('[data-ls_id="'+$section+'"]');$divPos=$targetDiv.offset().top-self.config.localScrollOffset-1;$divHeight=$targetDiv.outerHeight();$higlight_link=$('[data-ls_linkto="'+$section+'"]')}else if($($section).length){$divPos=$($section).offset().top-self.config.localScrollOffset-1;$divHeight=$($section).outerHeight();$higlight_link=$('[data-ls_linkto="'+$section+'"]')}
if($windowPos>=$divPos&&$windowPos<($divPos+$divHeight)){$('.local-scroll.menu-item').removeClass('current-menu-item');$higlight_link.addClass('active');$higlight_link.parent('li').addClass('current-menu-item')}else{$higlight_link.removeClass('active');$higlight_link.parent('li').removeClass('current-menu-item')}}},equalHeights:function($context){if($.fn.wpexEqualHeights!==undefined){$('.match-height-grid',$context).wpexEqualHeights({children:'.match-height-content'});$('.match-height-row',$context).wpexEqualHeights({children:'.match-height-content'});$('.vcex-feature-box-match-height',$context).wpexEqualHeights({children:'.vcex-match-height'});$('.blog-equal-heights',$context).wpexEqualHeights({children:'.blog-entry-inner'});$('.related-posts',$context).wpexEqualHeights({children:'.related-post-content'});$('.wpex-vc-row-columns-match-height',$context).wpexEqualHeights({children:'.vc_column-inner'});$('.vc_row',$context).wpexEqualHeights({children:'.equal-height-column'});$('.vc_row',$context).wpexEqualHeights({children:'.equal-height-content'})}},footerReveal:function(){var self=this;if(!self.config.$hasFooterReveal){return}
var $footerReveal=self.config.$footerReveal;function showHide(){if(self.config.viewportWidth<960){if($footerReveal.hasClass('footer-reveal')){$footerReveal.toggleClass('footer-reveal footer-reveal-visible');self.config.$siteWrap.css('margin-bottom','')}
return}
var $hideFooter=!1,$footerRevealHeight=$footerReveal.outerHeight(),windowHeight=self.config.windowHeight,$heightCheck=0;if($footerReveal.hasClass('footer-reveal')){$heightCheck=self.config.$siteWrap.outerHeight()+self.config.localScrollOffset}else{$heightCheck=self.config.$siteWrap.outerHeight()+self.config.localScrollOffset-$footerRevealHeight}
if((windowHeight>$footerRevealHeight)&&($heightCheck>windowHeight)){$hideFooter=!0}
if($hideFooter&&$footerReveal.hasClass('footer-reveal-visible')){self.config.$siteWrap.css({'margin-bottom':$footerRevealHeight});$footerReveal.removeClass('footer-reveal-visible');$footerReveal.addClass('footer-reveal')}
if(!$hideFooter&&$footerReveal.hasClass('footer-reveal')){self.config.$siteWrap.css('margin-bottom','');$footerReveal.removeClass('footer-reveal');$footerReveal.removeClass('wpex-visible');$footerReveal.addClass('footer-reveal-visible')}}
function reveal(){if($footerReveal.hasClass('footer-reveal')){if(self.scrolledToBottom(self.config.$siteMain)){$footerReveal.addClass('wpex-visible')}else{$footerReveal.removeClass('wpex-visible')}}}
showHide();self.config.$window.scroll(function(){reveal()});self.config.$window.resize(function(){if(self.config.widthChanged||self.config.heightChanged){showHide()}})},fixedFooter:function(){var self=this;if(!self.config.$siteMain||!self.config.hasFixedFooter){return}
function run(){var $mainHeight=self.config.$siteMain.outerHeight();var $htmlHeight=$('html').height();var $minHeight=$mainHeight+(self.config.$window.height()-$htmlHeight);self.config.$siteMain.css('min-height',$minHeight)}
run();self.config.$window.resize(function(){if(self.config.widthChanged||self.config.heightChanged){run()}})},titleBreadcrumbsFix:function(){var self=this;if(!self.config.$body.hasClass('has-breadcrumbs')){return}
var $pageHeader=$('.page-header');var $crumbs=$('.site-breadcrumbs.position-absolute',$pageHeader);if(!$crumbs.length||!$crumbs.hasClass('has-js-fix')){return}
var $crumbsTrail=$('.breadcrumb-trail',$crumbs);if(!$crumbsTrail.length){return}
var $headerInner=$('.page-header-inner',$pageHeader);if(!$headerInner.length){return}
var $title=$('.page-header-title > span',$headerInner);if(!$title.length){return}
function tweak_classes(){if(($title.width()+$crumbsTrail.width()+20)>=$headerInner.width()){if($crumbs.hasClass('position-absolute')){$crumbs.removeClass('position-absolute');$crumbs.addClass('position-under-title')}}else{$crumbs.removeClass('position-under-title');$crumbs.addClass('position-absolute')}}
tweak_classes();self.config.$window.resize(function(){tweak_classes()})},customSelects:function($context){$(wpexLocalize.customSelects,$context).each(function(){var $this=$(this);var elID=$this.attr('id');var elClass=elID?' wpex-'+elID:'';if($this.is(':visible')){if($this.attr('multiple')){$this.wrap('<div class="wpex-multiselect-wrap'+elClass+'"></div>')}else{$this.wrap('<div class="wpex-select-wrap'+elClass+'"></div>')}}});$('.wpex-select-wrap',$context).append('<span class="fa fa-angle-down" aria-hidden="true"></span>');if($.fn.select2!==undefined){$('#calc_shipping_country').select2()}},fadeIn:function(){$('.fade-in-image, .wpex-show-on-load').addClass('no-opacity')},wpexOwlCarousel:function($context){if(undefined===$.fn.wpexOwlCarousel||undefined===$.fn.imagesLoaded){return}
var self=this;$('.wpex-carousel',$context).each(function(){var $this=$(this),$data=$this.data();$this.imagesLoaded(function(){var owl=$this.wpexOwlCarousel({animateIn:!1,animateOut:!1,lazyLoad:!1,smartSpeed:$data.smartSpeed?$data.smartSpeed:wpexLocalize.carouselSpeed,rtl:wpexLocalize.isRTL?!0:!1,dots:$data.dots,nav:$data.nav,items:$data.items,slideBy:$data.slideby,center:$data.center,loop:$data.loop,margin:$data.margin,autoplay:$data.autoplay,autoplayTimeout:$data.autoplayTimeout,autoHeight:$data.autoHeight,autoWidth:$data.autoWidth,autoplayHoverPause:!0,navText:['<span class="fa fa-chevron-left"><span>','<span class="fa fa-chevron-right"></span>'],responsive:{0:{items:$data.itemsMobilePortrait},480:{items:$data.itemsMobileLandscape},768:{items:$data.itemsTablet},960:{items:$data.items}},})})})},sliderPro:function($context){var self=this;if(undefined===$.fn.sliderPro){return}
$('.wpex-slider',$context).each(function(){var $slider=$(this);var $data=$slider.data();var $slides=$slider.find('.sp-slide');$slider.find('.wpex-slider-slide, .wpex-slider-thumbnails.sp-thumbnails').css({'opacity':1,'display':'block'});var $autoHeight=self.parseData($data.autoHeight,!0);var $preloader=$slider.prev('.wpex-slider-preloaderimg');var $height=($preloader.length&&$autoHeight)?$preloader.outerHeight():null;var $heightAnimationDuration=self.parseData($data.heightAnimationDuration,600);var $loop=self.parseData($data.loop,!1);var $autoplay=self.parseData($data.autoPlay,!0);if(!$autoHeight&&$slides.length){var $tallest=self.getTallestEl($slides);$height=$tallest.height()}
$slider.sliderPro({aspectRatio:-1,width:'100%',height:$height,responsive:!0,fade:self.parseData($data.fade,600),touchSwipe:self.parseData($data.touchSwipe,!0),fadeDuration:self.parseData($data.animationSpeed,600),slideAnimationDuration:self.parseData($data.animationSpeed,600),autoHeight:$autoHeight,heightAnimationDuration:parseInt($heightAnimationDuration),arrows:self.parseData($data.arrows,!0),fadeArrows:self.parseData($data.fadeArrows,!0),autoplay:$autoplay,autoplayDelay:self.parseData($data.autoPlayDelay,5000),buttons:self.parseData($data.buttons,!0),shuffle:self.parseData($data.shuffle,!1),orientation:self.parseData($data.direction,'horizontal'),loop:$loop,keyboard:!1,fullScreen:self.parseData($data.fullscreen,!1),slideDistance:self.parseData($data.slideDistance,0),thumbnailsPosition:'bottom',thumbnailHeight:self.parseData($data.thumbnailHeight,70),thumbnailWidth:self.parseData($data.thumbnailWidth,70),thumbnailPointer:self.parseData($data.thumbnailPointer,!1),updateHash:self.parseData($data.updateHash,!1),thumbnailArrows:!1,fadeThumbnailArrows:!1,thumbnailTouchSwipe:!0,fadeCaption:self.parseData($data.fadeCaption,!0),captionFadeDuration:600,waitForLayers:!0,autoScaleLayers:!0,forceSize:'none',reachVideoAction:self.parseData($data.reachVideoAction,'playVideo'),leaveVideoAction:self.parseData($data.leaveVideoAction,'pauseVideo'),endVideoAction:self.parseData($data.leaveVideoAction,'nextSlide'),fadeOutPreviousSlide:!0,autoplayOnHover:self.parseData($data.autoplayOnHover,'pause'),init:function(event){$slider.prev('.wpex-slider-preloaderimg').remove()},gotoSlide:function(event){if(!$loop&&$autoplay&&event.index===$slider.find('.sp-slide').length-1){$slider.data('sliderPro').stopAutoplay()}}})});$('.woo-product-entry-slider').click(function(){return!1});if(undefined===$.fn.imagesLoaded){return}
var $sliderProThumbsNC=$('.wpex-slider-thumbnails.sp-nc-thumbnails',$context);$sliderProThumbsNC.each(function(){var $this=$(this);$this.imagesLoaded(function(){$this.css({'opacity':1,'display':'block'})})})},isotopeGrids:function($context){if(undefined===$.fn.imagesLoaded||undefined===$.fn.isotope){return}
$('.vcex-isotope-grid').each(function(){var $container=$(this);$container.imagesLoaded(function(){var activeItems;var $filter=$container.prev('ul.vcex-filter-links');if($filter.length){var $filterLinks=$filter.find('a');activeItems=$container.data('filter');if(activeItems&&!$filter.find('[data-filter="'+activeItems+'"]').length){activeItems=''}
$filterLinks.click(function(){$grid.isotope({filter:$(this).attr('data-filter')});$(this).parents('ul').find('li').removeClass('active');$(this).parent('li').addClass('active');return!1})}
var $grid=$container.isotope({itemSelector:'.vcex-isotope-entry',transformsEnabled:!0,isOriginLeft:wpexLocalize.isRTL?!1:!0,transitionDuration:$container.data('transition-duration')?$container.data('transition-duration')+'s':'0.4s',layoutMode:$container.data('layout-mode')?$container.data('layout-mode'):'masonry',filter:activeItems})})})},customHovers:function(){var headCSS='';var cssObj={};$('.wpex-hover-data').remove();$('[data-wpex-hover]').each(function(index,value){var $this=$(this);var data=$this.data('wpex-hover');var uniqueClass='wpex-dhover-'+index;var hoverCSS='';var target='';if(data.parent){$this.parents(data.parent).addClass(uniqueClass+'-p');$this.addClass(uniqueClass);target='.'+uniqueClass+'-p:hover .'+uniqueClass}else{$this.addClass(uniqueClass);target='.'+uniqueClass+':hover'}
$.each(data,function(attribute,value){if('target'==attribute){return!0}
hoverCSS+=attribute+':'+value+'!important;'});if(hoverCSS){if(hoverCSS in cssObj){cssObj[hoverCSS]=cssObj[hoverCSS]+','+target}else{cssObj[hoverCSS]=target}}});if(cssObj){$.each(cssObj,function(css,elements){headCSS+=elements+'{'+css+'}'})}
if(headCSS){this.config.$head.append('<style class="wpex-hover-data">/** CUSTOM HOVERS **/'+headCSS+'</style>')}},responsiveCSS:function(){var headCSS='';var mediaObj={};var bkPoints={};$('.wpex-vc-rcss').remove();bkPoints.d='';bkPoints=$.extend(bkPoints,wpexLocalize.responsiveDataBreakpoints);$.each(bkPoints,function(key){mediaObj[key]=''});$('[data-wpex-rcss]').each(function(index,value){var $this=$(this);var uniqueClass='wpex-rcss-'+index;var data=$this.data('wpex-rcss');$this.addClass(uniqueClass);$.each(data,function(key,val){var thisVal=val;var target=key;$.each(bkPoints,function(key){if(thisVal[key]){mediaObj[key]+='.'+uniqueClass+'{'+target+':'+thisVal[key]+'!important;}'}})})});$.each(mediaObj,function(key,val){if('d'==key){headCSS+=val}else{if(val){headCSS+='@media (max-width: '+bkPoints[key]+') { '+val+' }'}}});if(headCSS){headCSS='<style class="wpex-vc-rcss">/** RESPONSIVE VC PARAMS **/'+headCSS+'</style>';this.config.$head.append(headCSS)}},vcexFilterNav:function($context){if(undefined===$.fn.imagesLoaded||undefined===$.fn.isotope){return}
$('.vcex-filter-nav',$context).each(function(){var $nav=$(this),$filterGrid=$('#'+$nav.data('filter-grid')),$grid;if(!$filterGrid.hasClass('wpex-row')){$filterGrid=$filterGrid.find('.wpex-row')}
if($filterGrid.length){$filterGrid.removeClass('vcex-isotope-grid');$filterGrid.imagesLoaded(function(){if(!$filterGrid.hasClass('vcex-navbar-filter-grid')){$filterGrid.addClass('vcex-navbar-filter-grid');var activeItems=$nav.data('filter');if(activeItems&&!$nav.find('[data-filter="'+activeItems+'"]').length){activeItems=''}
$grid=$filterGrid.isotope({itemSelector:'.col',transformsEnabled:!0,isOriginLeft:wpexLocalize.isRTL?!1:!0,transitionDuration:$nav.data('transition-duration')?$nav.data('transition-duration')+'s':'0.4s',layoutMode:$nav.data('layout-mode')?$nav.data('layout-mode'):'masonry',filter:activeItems})}else{$grid=$filterGrid.isotope()}
var $filterLinks=$nav.find('a');$filterLinks.click(function(){var $link=$(this);$grid.isotope({filter:$(this).attr('data-filter')});$filterLinks.removeClass('active');$link.addClass('active');return!1})})}})},archiveMasonryGrids:function(){if(undefined===$.fn.imagesLoaded||undefined===$.fn.isotope){return}
var self=this,$archives=$('.blog-masonry-grid,div.wpex-row.portfolio-masonry,div.wpex-row.portfolio-no-margins,div.wpex-row.staff-masonry,div.wpex-row.staff-no-margins');$archives.each(function(){var $this=$(this);var $data=$this.data();$this.imagesLoaded(function(){var $grid=$this.isotope({itemSelector:'.isotope-entry',transformsEnabled:!0,isOriginLeft:wpexLocalize.isRTL?!1:!0,transitionDuration:self.parseData($data.transitionDuration,'0.0')+'s',layoutMode:self.parseData($data.layoutMode,'masonry')})})})},autoLightbox:function(){if(!wpexLocalize.iLightbox.auto){return}
var self=this,imageExt=['bmp','gif','jpeg','jpg','png','tiff','tif','jfif','jpe'];$('.wpb_text_column a:has(img), body.no-composer .entry a:has(img)').each(function(){var $this=$(this);var href=$this.attr('href');var ext=self.getUrlExtension(href);if(href&&imageExt.indexOf(ext)!==-1){if(!$this.parents('.woocommerce-product-gallery').length){$this.addClass('wpex-lightbox')}}})},iLightbox:function($context){var self=this;self.iLightboxSettings=wpexLocalize.iLightbox;self.iLightboxSettings.show.speed=parseInt(self.iLightboxSettings.show.speed);self.iLightboxSettings.hide.speed=parseInt(self.iLightboxSettings.hide.speed);self.iLightboxSettings.effects.repositionSpeed=parseInt(self.iLightboxSettings.effects.repositionSpeed);self.iLightboxSettings.effects.switchSpeed=parseInt(self.iLightboxSettings.effects.switchSpeed);self.iLightboxSettings.effects.loadedFadeSpeed=parseInt(self.iLightboxSettings.effects.loadedFadeSpeed);self.iLightboxSettings.effects.fadeSpeed=parseInt(self.iLightboxSettings.effects.fadeSpeed);$('.lightbox-group, .wpex-lightbox-group',$context).each(function(){var $this=$(this);var $item=$this.find('.wpex-lightbox-group-item');var $iLightboxData=$this.data('ilightbox');if($iLightboxData){$iLightboxData.destroy()}
$item.removeClass('wpex-lightbox');if(!$item.is('a')){$item=$item.find('a');$item.removeClass('wpex-lightbox')}
var $ilightbox=$item.iLightBox($.extend(!0,{},self.iLightboxSettings,{skin:self.parseData($this.data('skin'),wpexLocalize.iLightbox.skin),path:self.parseData($this.data('path'),wpexLocalize.iLightbox.path),infinite:self.parseData($this.data('infinite'),wpexLocalize.iLightbox.infinite),show:{title:self.parseData($this.data('show_title'),wpexLocalize.iLightbox.show.title)},controls:{arrows:self.parseData($this.data('arrows'),wpexLocalize.iLightbox.controls.arrows),thumbnail:self.parseData($this.data('thumbnails'),wpexLocalize.iLightbox.controls.thumbnail)},}));$this.data('ilightbox',$ilightbox)});$('.wpex-lightbox',$context).each(function(){var $this=$(this);if(!$this.is('a')){$this=$this.find('a')}
if(!$this.hasClass('wpex-lightbox-group-item')){var $ilightbox=$this.iLightBox($.extend(!0,{},self.iLightboxSettings,{skin:self.parseData($this.data('skin'),wpexLocalize.iLightbox.skin),show:{title:self.parseData($this.data('show_title'),wpexLocalize.iLightbox.show.title)},controls:{arrows:!1,thumbnail:!1,mousewheel:!1}}));$this.data('ilightbox',$ilightbox)}});$('.wpex-lightbox-gallery',$context).on('click',function(event){var $this=$(this),data=$this.data('gallery'),imagesArray='';if(!data){return}
if(typeof data=='string'||data instanceof String){imagesArray=data.split(',')}else{imagesArray=data}
$.iLightBox(imagesArray,$.extend(!0,{},self.iLightboxSettings,{skin:self.parseData($this.data('skin'),wpexLocalize.iLightbox.skin),path:self.parseData($this.data('path'),wpexLocalize.iLightbox.path),infinite:self.parseData($this.data('skin'),wpexLocalize.iLightbox.infinite),controls:{arrows:self.parseData($this.data('arrows'),wpexLocalize.iLightbox.controls.arrows),thumbnail:self.parseData($this.data('thumbnails'),wpexLocalize.iLightbox.controls.thumbnail)}}));return!1});$('.wpex-lightbox-video, .wpb_single_image.video-lightbox a, .wpex-lightbox-autodetect, .wpex-lightbox-autodetect a',$context).each(function(){var $this=$(this),$data=$this.data();$this.iLightBox({smartRecognition:!0,skin:self.parseData($data.skin,wpexLocalize.iLightbox.skin),path:'horizontal',controls:{fullscreen:wpexLocalize.iLightbox.controls.fullscreen},show:{title:self.parseData($data.show_title,wpexLocalize.iLightbox.show.title),speed:parseInt(wpexLocalize.iLightbox.show.speed)},hide:{speed:parseInt(wpexLocalize.iLightbox.hide.speed)},effects:{reposition:!0,repositionSpeed:200,switchSpeed:300,loadedFadeSpeed:wpexLocalize.iLightbox.effects.loadedFadeSpeed,fadeSpeed:wpexLocalize.iLightbox.effects.fadeSpeed},overlay:wpexLocalize.iLightbox.overlay,social:wpexLocalize.iLightbox.social})});$('.wpex-carousel',$context).on('click','.wpex-carousel-lightbox-item',function(e){e.preventDefault();var $this=$(this),$parent=$this.parents('.wpex-carousel'),$parentOwl=$this.parents('.owl-item'),$owlItems=$parent.find('.owl-item'),$data=$this.data(),$imagesArray=[];$owlItems.each(function(){if(!$(this).hasClass('cloned')){var $image=$(this).find('.wpex-carousel-lightbox-item');if($image.length>0){$imagesArray.push({URL:$image.attr('href'),title:$image.attr('data-title'),caption:$image.attr('data-caption')})}}});if($imagesArray.length>0){var $startFrom=$this.data('count')-1;$startFrom=$startFrom?$startFrom:0;$.iLightBox($imagesArray,$.extend(!0,{},self.iLightboxSettings,{startFrom:parseInt($startFrom),skin:self.parseData($data.skin,wpexLocalize.iLightbox.skin),path:self.parseData($data.path,wpexLocalize.iLightbox.path),infinite:self.parseData($data.skin,wpexLocalize.iLightbox.infinite),show:{title:self.parseData($data.show_title,wpexLocalize.iLightbox.show.title)},controls:{arrows:self.parseData($data.arrows,wpexLocalize.iLightbox.controls.arrows),thumbnail:self.parseData($data.thumbnails,wpexLocalize.iLightbox.controls.thumbnail)}}))}})},overlayHovers:function(){if(this.config.isMobile){$('.overlay-parent.overlay-hh').each(function(){if(!$(this).hasClass('overlay-ms')){$(this).find('.theme-overlay').remove()}});$('a.overlay-parent.overlay-ms.overlay-h, .overlay-parent.overlay-ms.overlay-h > a').on('touchstart',function(e){var $this=$(this);var $overlayParent=$this.hasClass('overlay-parent')?$this:$this.parent('.overlay-parent');if($overlayParent.hasClass('wpex-touched')){return!0}else{$overlayParent.addClass('wpex-touched');$('.overlay-parent').not($overlayParent).removeClass('wpex-touched');e.preventDefault();return!1}});this.config.$document.on('touchstart',function(e){if(!$(e.target).closest('.wpex-touched').length){$('.wpex-touched').removeClass('wpex-touched')}})}
$('.overlay-parent-title-push-up').each(function(){var $this=$(this),$title=$this.find('.overlay-title-push-up'),$child=$this.find('a'),$img=$child.find('img'),$titleHeight=$title.outerHeight();$this.imagesLoaded(function(){$title.css({'bottom':-$titleHeight});$child.css({'height':$img.outerHeight()});$img.css({'position':'absolute','top':'0','left':'0','width':'auto','height':'auto'});$this.hover(function(){$img.css({'top':-20});$title.css({'bottom':0})},function(){$img.css({'top':'0'});$title.css({'bottom':-$titleHeight})})})})},stickyTopBar:function(){var self=this;if(!self.config.hasStickyTopBar||!self.config.$stickyTopBar){return}
var $isSticky=!1,$offset=0,$window=self.config.$window,$stickyTopbar=self.config.$stickyTopBar,$mobileSupport=self.config.hasStickyTopBarMobile,$brkPoint=wpexLocalize.stickyTopBarBreakPoint,$mobileMenu=$('#wpex-mobile-menu-fixed-top'),$stickyWrap=$('<div id="top-bar-wrap-sticky-wrapper" class="wpex-sticky-top-bar-holder not-sticky"></div>');$stickyTopbar.wrapAll($stickyWrap);$stickyWrap=$('#top-bar-wrap-sticky-wrapper');function getOffset(){$offset=0;if(self.config.$wpAdminBar){$offset=$offset+self.config.$wpAdminBar.outerHeight()}
if($mobileMenu.is(':visible')){$offset=$offset+$mobileMenu.outerHeight()}
return $offset}
function setSticky(){if($isSticky){return}
$stickyWrap.css('height',$stickyTopbar.outerHeight()).removeClass('not-sticky').addClass('is-sticky');$stickyTopbar.css({'top':getOffset(),'width':$stickyWrap.width()});$isSticky=!0}
function destroySticky(){if(!$isSticky){return}
$stickyWrap.css('height','').removeClass('is-sticky').addClass('not-sticky');$stickyTopbar.css({'width':'','top':'',});$isSticky=!1}
function initSetSticky(){if(!$mobileSupport&&(self.config.viewportWidth<$brkPoint)){return}
$offset=$stickyWrap.offset().top-getOffset();if(self.config.windowTop>$offset){setSticky()}}
function onScroll(){if(!$mobileSupport&&(self.config.viewportWidth<$brkPoint)){return}
if(0===self.config.windowTop){if($isSticky){destroySticky()}
return}
var $stickyWrapTop=$stickyWrap.offset().top;var $setStickyPos=$stickyWrapTop-getOffset();if(self.config.windowTop>=$setStickyPos){setSticky()}else{destroySticky()}}
function onResize(){if(!$mobileSupport&&(self.config.viewportWidth<$brkPoint)){destroySticky()}else{if($isSticky){$stickyWrap.css('height',$stickyTopbar.outerHeight());$stickyTopbar.css({'top':getOffset(),'width':$stickyWrap.width()})}else{onScroll()}}}
initSetSticky();$window.scroll(function(){onScroll()});$window.resize(function(){onResize()});$window.on('orientationchange',function(e){destroySticky();initSetSticky()})},stickyOffset:function(){var self=this;var $offset=0;var $mobileMenu=$('#wpex-mobile-menu-fixed-top');var $stickyTopbar=self.config.$stickyTopBar;if($stickyTopbar&&$stickyTopbar.is(':visible')){if(self.config.hasStickyTopBarMobile||self.config.viewportWidth>=wpexLocalize.stickyTopBarBreakPoint){$offset=$offset+$stickyTopbar.outerHeight()}}
if($mobileMenu.is(':visible')){$offset=$offset+$mobileMenu.outerHeight()}
if(this.config.$wpAdminBar&&this.config.$wpAdminBar.is(':visible')){$offset=$offset+this.config.$wpAdminBar.outerHeight()}
if(wpexLocalize.addStickyHeaderOffset){$offset=$offset+wpexLocalize.addStickyHeaderOffset}
return $offset},stickyHeaderCustomStartPoint:function(){var $startPosition=wpexLocalize.stickyHeaderStartPosition;if($.isNumeric($startPosition)){$startPosition=$startPosition}else if($($startPosition).length){$startPosition=$($startPosition).offset().top}else{$startPosition=0}
return $startPosition},stickyHeader:function(){var self=this,$isSticky=!1,$isShrunk=!1,$isLogoSwapped=!1;if(!self.config.hasStickyHeader){return}
var $header=self.config.$siteHeader;var $headerHeight=self.config.siteHeaderHeight;var $headerBottom=$header.offset().top+$header.outerHeight();var $stickyWrap=$('<div id="site-header-sticky-wrapper" class="wpex-sticky-header-holder not-sticky"></div>');$header.wrapAll($stickyWrap);$stickyWrap=$('#site-header-sticky-wrapper');var $window=self.config.$window;var $brkPoint=wpexLocalize.stickyHeaderBreakPoint;var $mobileSupport=self.config.hasStickyMobileHeader;var $customStart=self.stickyHeaderCustomStartPoint();var $headerLogo=self.config.$siteLogo;var $headerLogoSrc=self.config.siteLogoSrc;var maybeShrink=('shrink'==self.stickyHeaderStyle||'shrink_animated'==self.stickyHeaderStyle)?!0:!1;var $stickyLogo=wpexLocalize.stickyheaderCustomLogo;if($stickyLogo&&wpexLocalize.stickyheaderCustomLogoRetina&&self.config.isRetina){$stickyLogo=wpexLocalize.stickyheaderCustomLogoRetina}
if($stickyLogo){$('<img src="'+$stickyLogo+'">').appendTo('body').css('display','none')}
function pastBreakPoint(){return(self.config.viewportWidth<$brkPoint)?!0:!1}
function pastheader(){var bottomCheck=0;if(self.config.hasHeaderOverlay){bottomCheck=$headerBottom}else{bottomCheck=$stickyWrap.offset().top+$stickyWrap.outerHeight()}
if(self.config.windowTop>$headerBottom){return!0}
return!1}
function start_position(){var $startPosition=$customStart;$startPosition=$startPosition?$startPosition:$stickyWrap.offset().top;return $startPosition-self.stickyOffset()}
function transformPrepare(){if($isSticky){$header.addClass('transform-go')}
if(0===self.config.windowTop){$header.removeClass('transform-prepare')}else if(pastheader()){$header.addClass('transform-prepare')}else{$header.removeClass('transform-prepare')}}
function swapLogo(){if(!$stickyLogo||!$headerLogo){return}
if($isLogoSwapped){$headerLogo.attr('src',$headerLogoSrc);self.config.siteLogoHeight=self.config.$siteLogo.height();$isLogoSwapped=!1}else{$headerLogo.attr('src',$stickyLogo);self.config.siteLogoHeight=self.config.$siteLogo.height();$isLogoSwapped=!0}}
function shrink(){var checks=maybeShrink;if(pastBreakPoint()){if($mobileSupport&&('icon_buttons'==self.config.mobileMenuToggleStyle||'fixed_top'==self.config.mobileMenuToggleStyle)){checks=!0}else{checks=!1}}
if(checks&&pastheader()){if(!$isShrunk&&$isSticky){$header.addClass('sticky-header-shrunk');$isShrunk=!0}}else{$header.removeClass('sticky-header-shrunk');$isShrunk=!1}}
function setSticky(){if($isSticky){return}
swapLogo();$stickyWrap.css('height',$headerHeight).removeClass('not-sticky').addClass('is-sticky');$header.removeClass('dyn-styles').css({'top':self.stickyOffset(),'width':$stickyWrap.width()});if($header.hasClass('transform-prepare')){$header.addClass('transform-go')}
$isSticky=!0}
function destroyActions(){swapLogo();$stickyWrap.removeClass('is-sticky').addClass('not-sticky');if(!$header.hasClass('shrink-sticky-header')){$stickyWrap.css('height','')}
$header.addClass('dyn-styles').css({'width':'','top':''}).removeClass('transform-go');$isSticky=!1;$header.removeClass('sticky-header-shrunk');$isShrunk=!1}
function destroySticky(){if(!$isSticky){return}
if($customStart){$header.removeClass('transform-go');if($isShrunk){$header.removeClass('sticky-header-shrunk');$isShrunk=!1}}else{$header.removeClass('transform-prepare')}
destroyActions()}
function initResizeSetSticky(){if(!$mobileSupport&&pastBreakPoint()){return}
if(self.config.windowTop>start_position()&&0!==self.config.windowTop){setSticky()}
if(maybeShrink){shrink()}}
function onScroll(){if(!$mobileSupport&&pastBreakPoint()){return}
if($customStart){transformPrepare()}
if(0===self.config.windowTop){destroySticky();return}
if(self.config.windowTop>=start_position()){setSticky()}else{destroySticky()}
if(maybeShrink){shrink()}}
function onResize(){if(!$mobileSupport&&pastBreakPoint()){destroySticky();$header.removeClass('transform-prepare')}else{if($isSticky){if(!$header.hasClass('shrink-sticky-header')){$stickyWrap.css('height',self.config.siteHeaderHeight)}
$header.css({'top':self.stickyOffset(),'width':$stickyWrap.width()})}else{initResizeSetSticky()}}
if(maybeShrink){shrink()}}
initResizeSetSticky();$window.scroll(function(){if(self.config.$hasScrolled){onScroll()}});$window.resize(function(){if(self.config.widthChanged||self.config.heightChanged){onResize()}});$window.on('orientationchange',function(){destroySticky();initResizeSetSticky()})},stickyHeaderMenu:function(){var self=this;if(!self.config.hasStickyNavbar){return}
var $navWrap=self.config.$siteNavWrap,$isSticky=!1,$window=self.config.$window,elIndex=$($navWrap).index(),$stickyWrap=$('<div id="site-navigation-sticky-wrapper" class="wpex-sticky-navigation-holder not-sticky"></div>');$navWrap.wrapAll($stickyWrap);$stickyWrap=$('#site-navigation-sticky-wrapper');var $stickyWrapTop=$stickyWrap.offset().top,$stickyOffset=self.stickyOffset(),$setStickyPos=$stickyWrapTop-$stickyOffset;function setSticky(){if($isSticky){return}
$stickyWrap.css('height',self.config.$siteNavWrap.outerHeight()).removeClass('not-sticky').addClass('is-sticky');$navWrap.css({'top':self.stickyOffset(),'width':$stickyWrap.width()});self.config.$siteHeader.removeClass('dyn-styles');$isSticky=!0}
function destroySticky(){if(!$isSticky){return}
$stickyWrap.css('height','').removeClass('is-sticky').addClass('not-sticky');$navWrap.css({'width':'','top':''});self.config.$siteHeader.addClass('dyn-styles');$isSticky=!1}
function initResizeSetSticky(){if(self.config.viewportWidth<=wpexLocalize.stickyNavbarBreakPoint){return}
if(self.config.windowTop>=$setStickyPos&&0!==self.config.windowTop){setSticky()}else{destroySticky()}}
function onScroll(){if(self.config.viewportWidth<=wpexLocalize.stickyNavbarBreakPoint){return}
if(0===self.config.windowTop){if($isSticky){destroySticky()}
return}
if(self.config.windowTop>=$setStickyPos){setSticky()}else{destroySticky()}}
function onResize(){if(self.config.viewportWidth<=wpexLocalize.stickyNavbarBreakPoint){destroySticky()}
if($isSticky){$navWrap.css('width',$stickyWrap.width())}else{initResizeSetSticky()}}
initResizeSetSticky();$window.scroll(function(){if(self.config.$hasScrolled){onScroll()}});$window.resize(function(){onResize()});$window.on('orientationchange',function(){destroySticky();initResizeSetSticky()})},stickyVcexNavbar:function(){var self=this;var $nav=$('.vcex-navbar-sticky');if(!$nav.length){return}
$nav.each(function(){var $this=$(this);var $isSticky=!1;var $window=self.config.$window;var $stickyEndPoint=$this.data('sticky-endpoint')?$($this.data('sticky-endpoint')):'';var $stickyWrap=$('<div class="vcex-navbar-sticky-wrapper not-sticky"></div>');$this.wrapAll($stickyWrap);$stickyWrap=$this.parent('.vcex-navbar-sticky-wrapper');function setSticky($offset){if($isSticky||!$this.is(':visible')){return}
$stickyWrap.css('height',$this.outerHeight()).removeClass('not-sticky').addClass('is-sticky');$this.css({'top':$offset,'width':$stickyWrap.width()});$isSticky=!0}
function getStickyOffset(){var offset=0;var $stickyTopbar=$('#top-bar-wrap-sticky-wrapper');var $stickyHeader=$('#site-header-sticky-wrapper');var $stickyHeaderNavbar=$('#site-navigation-sticky-wrapper');var $mobileMenu=$('#wpex-mobile-menu-fixed-top');if($stickyTopbar.is(':visible')){if(self.config.hasStickyTopBarMobile||self.config.viewportWidth>=wpexLocalize.stickyTopBarBreakPoint){offset=offset+$stickyTopbar.outerHeight()}}
if($stickyHeader.is(':visible')){if(self.config.hasStickyMobileHeader||self.config.viewportWidth>=wpexLocalize.stickyHeaderBreakPoint){if(self.config.$siteHeader.hasClass('shrink-sticky-header')){offset=offset+parseInt(wpexLocalize.shrinkHeaderHeight)}else{offset=offset+$stickyHeader.outerHeight()}}}
if(self.config.hasStickyNavbar&&$stickyHeaderNavbar.is(':visible')){if(self.config.hasStickyMobileHeader||(self.config.viewportWidth>=wpexLocalize.stickyNavbarBreakPoint)){offset=offset+$stickyHeaderNavbar.outerHeight()}}
if($mobileMenu.is(':visible')){offset=offset+$mobileMenu.outerHeight()}
if(self.config.$wpAdminBar&&self.config.$wpAdminBar.is(':visible')){offset=offset+self.config.$wpAdminBar.outerHeight()}
return offset}
function destroySticky(){if(!$isSticky){return}
$stickyWrap.css('height','').removeClass('is-sticky').addClass('not-sticky');$this.css({'width':'','top':''});$isSticky=!1}
function stickyCheck(){var stickyOffset=getStickyOffset();var stickyWrapTop=$stickyWrap.offset().top;var setStickyPos=stickyWrapTop-stickyOffset;if(self.config.windowTop>setStickyPos&&0!==self.config.windowTop){setSticky(stickyOffset);if($stickyEndPoint.length&&$stickyEndPoint.is(':visible')){if(self.config.windowTop>($stickyEndPoint.offset().top-stickyOffset-$this.outerHeight())){$stickyWrap.addClass('sticky-hidden')}else{$stickyWrap.removeClass('sticky-hidden')}}}else{destroySticky()}}
function onResize(){stickyCheck();if($isSticky){if(!$this.is(':visible')){destroySticky()}
$stickyWrap.css('height',$this.outerHeight());$this.css({'top':getStickyOffset(),'width':$stickyWrap.width()})}else{stickyCheck()}}
stickyCheck();$window.scroll(function(){if(self.config.$hasScrolled){stickyCheck()}});$window.resize(function(){onResize()});$window.on('orientationchange',function(e){destroySticky();stickyCheck()})})},infiniteScrollInit:function(){var self=this;var $container=$('#blog-entries');$container.infinitescroll(wpexInfiniteScroll,function(newElements){var $newElems=$(newElements).css('opacity',0);$newElems.imagesLoaded(function(){if($container.hasClass('blog-masonry-grid')){$container.isotope('appended',$newElems);$newElems.css('opacity',0)}
if(typeof retinajs!=='undefined'&&$.isFunction(retinajs)){retinajs()}
$newElems.animate({opacity:1});$container.trigger('wpexinfiniteScrollLoaded',[$newElems]);self.sliderPro($newElems);self.iLightbox($newElems);if($.fn.wpexEqualHeights!==undefined){$('.blog-equal-heights').wpexEqualHeights({children:'.blog-entry-inner'})}
if(typeof($.fn.mediaelementplayer)!=='undefined'){$newElems.find('audio, video').mediaelementplayer()}})})},loadMore:function(){var self=this;var $loadMore=$('.wpex-load-more');if(!$loadMore.length){return}
$loadMore.each(function(){var $button=$(this);var $buttonInner=$button.find('.theme-button-inner');var loading=!1;var text=wpexLocalize.loadMore.text;var ajaxUrl=wpexLocalize.ajaxurl;var loadingText=wpexLocalize.loadMore.loadingText;var failedText=wpexLocalize.loadMore.failedText;var buttonData=$button.data('loadmore');var $grid=$(buttonData.grid);var page=2;if(1!=buttonData.maxPages){$button.addClass('wpex-visible')}
var loadmoreData=buttonData;$button.on('click',function(){if(!loading){loading=!0;$button.addClass('loading');$buttonInner.text(loadingText);var data={action:'wpex_ajax_load_more',nonce:buttonData.nonce,page:page,loadmore:loadmoreData};$.post(ajaxUrl,data,function(res){if(res.success){page=page+1;var $newElements=$(res.data);$newElements.css('opacity',0);$newElements.each(function(){var $this=$(this);if($this.hasClass('sticky')){$this.addClass('wpex-duplicate')}});$grid.append($newElements).imagesLoaded(function(){if($.fn.wpexEqualHeights!==undefined){$('.blog-equal-heights').wpexEqualHeights({children:'.blog-entry-inner'})}
if($grid.hasClass('blog-masonry-grid')){$grid.isotope('appended',$newElements)}
self.iLightbox($newElements);self.overlayHovers($newElements);$grid.trigger('wpexLoadMoreAddedHidden',[$newElements]);$newElements.css('opacity',1);if(typeof retinajs!=='undefined'&&$.isFunction(retinajs)){retinajs()}
self.sliderPro($newElements);if(typeof($.fn.mediaelementplayer)!=='undefined'){$newElements.find('audio, video').mediaelementplayer()}
$grid.trigger('wpexLoadMoreAddedVisible',[$newElements]);$button.removeClass('loading');$buttonInner.text(text);if((page-1)==buttonData.maxPages){$button.hide()}
loading=!1})}else{$buttonInner.text(failedText);console.log(res)}}).fail(function(xhr,textGridster,e){console.log(xhr.responseText)})}})})},ctf7Preloader:function(){if(!wpexLocalize.altercf7Prealoader){return}
var $forms=$('form.wpcf7-form');$forms.each(function(){var $this=$(this);var $button=$this.find('.wpcf7-submit');if($button.length){$this.find('.ajax-loader').remove();var $customLoader=$('<span class="fa fa-refresh fa-spin wpex-wpcf7-loader"></span>');$button.after($customLoader);$button.on('click',function(){$customLoader.addClass('visible')});$('div.wpcf7').on('wpcf7:invalid wpcf7:spam wpcf7:mailsent wpcf7:mailfailed',function(){$customLoader.removeClass('visible')})}})},vcTabsTogglesJS:function(){var self=this;if(!this.config.$body.hasClass('wpb-js-composer')){return}
function onShow(){var $this=$(this);$this.find('.wpex-slider').each(function(){$(this).sliderPro('update')});$this.find('.vcex-isotope-grid').each(function(){$(this).isotope('layout')});$this.find('.vcex-milestone').each(function(){self.milestone($(this))})}
$('.vc_tta-tabs').on('show.vc.tab',onShow);$('.vc_tta-accordion').on('show.vc.accordion',onShow);self.config.$document.on('click.vc.tabs.data-api','[data-vc-tabs]',function(e){if(self.config.$body.hasClass('vc_editor')){return}
var tab=$($(this).attr('href'));if(tab.length){tab.find('.wpex-slider').each(function(){$(this).sliderPro('update')});tab.find('.vcex-isotope-grid').each(function(){$(this).isotope('layout')})}})},vcAccessability:function(){if(!this.config.vcActive){return}
var $toggles=$('.vc_toggle .vc_toggle_title');$toggles.each(function(index){var $this=$(this);$this.attr('tabindex',0);$this.on('keydown',function(e){if(13==e.which){$this.trigger('click')}})});var $tabContainers=$('.vc_tta-container');var tabClick=function($thisTab,$allTabs,$tabPanels,i){$allTabs.attr('tabindex',-1);$thisTab.attr('tabindex',0).focus().click()}
$tabContainers.each(function(){var $tabContainer=$(this),$tabs=$tabContainer.find('.vc_tta-tab > a'),$panels=$tabContainer.find('.vc_tta-panels');$tabs.each(function(index){var $tab=$(this);if(0==index){$tab.attr('tabindex',0)}else{$tab.attr('tabindex',-1)}
$tab.on('keydown',function(e){var $this=$(this),keyCode=e.which,$nextTab=$this.parent().next().is('li.vc_tta-tab')?$this.parent().next().find('a'):!1,$previousTab=$this.parent().prev().is('li.vc_tta-tab')?$this.parent().prev().find('a'):!1,$firstTab=$this.parent().parent().find('li.vc_tta-tab:first').find('a'),$lastTab=$this.parent().parent().find('li.vc_tta-tab:last').find('a');switch(keyCode){case 37:case 38:e.preventDefault();e.stopPropagation();if(!$previousTab){tabClick($lastTab,$tabs,$panels)}else{tabClick($previousTab,$tabs,$panels)}
break;case 39:case 40:e.preventDefault();e.stopPropagation();if(!$nextTab){tabClick($firstTab,$tabs,$panels)}else{tabClick($nextTab,$tabs,$panels)}
break;case 36:e.preventDefault();e.stopPropagation();tabClick($firstTab,$tabs,$panels);break;case 35:e.preventDefault();e.stopPropagation();tabClick($lastTab,$tabs,$panels);break;case 13:case 32:e.preventDefault();e.stopPropagation();break}})})})},vcexRemoveiFrameDups:function($context){var $this=$context;var $module=$this.children(':first');if(!$module.length){return}
var $overlays=$module.find('> .wpex-bg-overlay-wrap');if($module.hasClass('wpex-has-overlay')){$overlays.not(':first').remove()}else if($overlays.length){$overlays.remove()}
var $videos=$module.find('> .wpex-video-bg-wrap');if($module.hasClass('wpex-has-video-bg')){$videos.not(':first').remove()}else if($videos.length){$videos.remove()}
var $parallax=$module.find('> .wpex-parallax-bg');if($module.hasClass('wpex-parallax-bg-wrap')){$parallax.not(':first').remove()}else if($parallax.length){$parallax.remove()}
var $videoOverlays=$module.find('> .wpex-video-bg-overlay');if($videoOverlays.length){$videoOverlays.not(':first').remove()}},vcPageEditable:function(){var self=this,$modelId='';if(!self.config.$body.hasClass('compose-mode')){return}
parent.vc.events.on('shortcodes:add shortcodes:update shortcodes:clone',function(model){$modelId=model.id});self.config.$window.on('vc_reload',function(){self.equalHeights();self.sliderPro();self.wpexOwlCarousel();self.vcexFilterNav();self.customHovers();self.responsiveCSS();if($modelId){var $context=$('[data-model-id='+$modelId+']');self.isotopeGrids($context);self.vcPageEditableFuncs($context);self.vcexRemoveiFrameDups($context)}else{self.isotopeGrids()}})},vcPageEditableFuncs:function($context){this.parallax($context);this.responsiveText($context);this.overlayHovers($context);this.iLightbox($context);if($context.hasClass('vc_vcex_skillbar')){this.skillbar($context);return}
if($context.hasClass('vc_vc_wp_custommenu')){this.menuWidgetAccordion($context);return}
if($context.hasClass('vc_vcex_form_shortcode')){this.customSelects($context);return}
if($context.hasClass('vc_vcex_milestone')){this.milestone($context);return}
if($context.hasClass('vc_vcex_image_ba')){this.twentytwenty($context);return}
if($context.hasClass('vc_vcex_animated_text')){this.typedText($context);return}
if($context.hasClass('vc_vcex_countdown')){this.countdown($context);return}},wooGallery:function(){if(typeof wc_single_product_params==='undefined'||!wc_single_product_params.flexslider.directionNav){return}
var self=this;var $wooGallery=$('.woocommerce-product-gallery--with-images');if(!$wooGallery.length){return}
function setWooSliderArrows(){$wooGallery.each(function(){var $this=$(this);var $nav=$(this).find('.flex-direction-nav');var $thumbsNav=$(this).find('.flex-control-thumbs');if($nav.length&&$thumbsNav.length){var thumbsNavHeight=$thumbsNav.outerHeight();var arrowHeight=$nav.find('a').outerHeight();var arrowTopoffset=-(thumbsNavHeight+arrowHeight)/2;if(arrowTopoffset){$this.find('.flex-direction-nav a').css('margin-top',arrowTopoffset)}}})}
self.config.$window.on('load',function(){setWooSliderArrows()});self.config.$window.resize(function(){if(self.config.widthChanged||self.config.heightChanged){setWooSliderArrows()}})},parseData:function(val,fallback){return(typeof val!=='undefined')?val:fallback},getUrlExtension:function(url){var ext=url.split('.').pop().toLowerCase();var extra=ext.indexOf('?')!==-1?ext.split('?').pop():'';ext=ext.replace(extra,'');return ext.replace('?','')},scrolledToBottom:function(elem){return this.config.windowTop>=elem.offset().top+elem.outerHeight()-window.innerHeight},isElementInWindowView:function(elem){var docViewTop=this.config.$window.scrollTop();var docViewBottom=docViewTop+this.config.windowHeight;var elemTop=$(elem).offset().top;var elemBottom=elemTop+$(elem).height();return((elemBottom<=docViewBottom)&&(elemTop>=docViewTop))},getTallestEl:function(el){var tallest;var first=1;el.each(function(){var $this=$(this);if(first==1){tallest=$this;first=0}else{if(tallest.height()<$this.height()){tallest=$this}}});return tallest}};wpex.init()})(jQuery);function lazyLoadThumb(e){var t='<img src="https://i.ytimg.com/vi/ID/hqdefault.jpg">',a='<div class="play"></div>';return t.replace("ID",e)+a}function lazyLoadYoutubeIframe(){var e=document.createElement("iframe"),t="https://www.youtube.com/embed/ID?autoplay=1";t+=0===this.dataset.query.length?'':'&'+this.dataset.query;e.setAttribute("src",t.replace("ID",this.dataset.id)),e.setAttribute("frameborder","0"),e.setAttribute("allowfullscreen","1"),this.parentNode.replaceChild(e,this)}document.addEventListener("DOMContentLoaded",function(){var e,t,a=document.getElementsByClassName("rll-youtube-player");for(t=0;t<a.length;t++)e=document.createElement("div"),e.setAttribute("data-id",a[t].dataset.id),e.setAttribute("data-query",a[t].dataset.query),e.innerHTML=lazyLoadThumb(a[t].dataset.id),e.onclick=lazyLoadYoutubeIframe,a[t].appendChild(e)});