;var MonsterInsights=function(){var e=[],i='',r=!1;this.setLastClicked=function(t,n,i){t=typeof t!=='undefined'?t:[];n=typeof n!=='undefined'?n:[];i=typeof i!=='undefined'?i:!1;e.valuesArray=t;e.fieldsArray=n};this.getLastClicked=function(){return e};this.setInternalAsOutboundCategory=function(e){i=e};this.getInternalAsOutboundCategory=function(){return i};this.sendEvent=function(e,t,n){b(e,t,n,[])};function d(){if(window.monsterinsights_debug_mode){return!0}else{return!1}};function v(e,t,n){var l={};for(var i in e){if(!e.hasOwnProperty(i)){continue};if(t&&t.indexOf(i)===-1){continue};if(n&&n.indexOf(i)>-1){continue};l[i]=e[i]};return l};function y(e,t,n){if(!monsterinsights_frontend.v4_id||e!=='event'){return};var i=n.event_category||'',a=['event_name','event_category','event_label','value',],l=v(n,null,a);l.action=t;l.send_to=monsterinsights_frontend.v4_id;let hitType=i.replace('-','_');if(i.indexOf('outbound-link')!==-1){hitType='click'}
else if(i==='download'){hitType='file_download'};__gtagTracker(e,hitType,l)};function l(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};y(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function b(t,i,l,a){t=typeof t!=='undefined'?t:'event';i=typeof i!=='undefined'?i:'';a=typeof a!=='undefined'?a:[];l=typeof l!=='undefined'?l:{};__gtagTracker(t,i,l);e.valuesArray=a;e.fieldsArray=l;e.fieldsArray.event_action=i;e.tracked=!0;n('Tracked: '+a.type);n(e)};function t(t){t=typeof t!=='undefined'?t:[];e.valuesArray=t;e.fieldsArray=[];e.tracked=!1;n('Not Tracked: '+t.exit);n(e)};function n(e){if(d()){console.dir(e)}};function o(e){return e.replace(/^\s+|\s+$/gm,'')};function u(){var n=0,e=document.domain,i=e.split('.'),t='_gd'+(new Date()).getTime();while(n<(i.length-1)&&document.cookie.indexOf(t+'='+t)==-1){e=i.slice(-1-(++n)).join('.');document.cookie=t+'='+t+';domain='+e+';'};document.cookie=t+'=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain='+e+';';return e};function c(e){e=e.toString();e=e.substring(0,(e.indexOf('#')==-1)?e.length:e.indexOf('#'));e=e.substring(0,(e.indexOf('?')==-1)?e.length:e.indexOf('?'));e=e.substring(e.lastIndexOf('/')+1,e.length);if(e.length>0&&e.indexOf('.')!==-1){e=e.substring(e.lastIndexOf('.')+1);return e}else{return''}};function x(e){return e.which==1||e.which==2||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey};function h(){var e=[];if(typeof monsterinsights_frontend.download_extensions=='string'){e=monsterinsights_frontend.download_extensions.split(',')};return e};function g(){var e=[];if(typeof monsterinsights_frontend.inbound_paths=='string'){e=JSON.parse(monsterinsights_frontend.inbound_paths)};return e};function w(e){if(e.which==1){return'event.which=1'}
else if(e.which==2){return'event.which=2'}
else if(e.metaKey){return'metaKey'}
else if(e.ctrlKey){return'ctrlKey'}
else if(e.shiftKey){return'shiftKey'}
else if(e.altKey){return'altKey'}else{return''}};function A(e){var f=h(),l=g(),t='unknown',d=e.href,p=c(e.href),k=u(),r=e.hostname,a=e.protocol,m=e.pathname;d=d.toString();var s,v,y=e.getAttribute('data-vars-ga-category');if(y){return y};if(d.match(/^javascript\:/i)){t='internal'}
else if(a&&a.length>0&&(o(a)=='tel'||o(a)=='tel:')){t='tel'}
else if(a&&a.length>0&&(o(a)=='mailto'||o(a)=='mailto:')){t='mailto'}
else if(r&&k&&r.length>0&&k.length>0&&!r.endsWith('.'+k)&&r!==k){t='external'}
else if(m&&JSON.stringify(l)!='{}'&&m.length>0){var b=l.length;for(var n=0;n<b;n++){if(l[n].path&&l[n].label&&l[n].path.length>0&&l[n].label.length>0&&m.startsWith(l[n].path)){t='internal-as-outbound';i='outbound-link-'+l[n].label;break}}}
else if(r&&window.monsterinsights_experimental_mode&&r.length>0&&document.domain.length>0&&r!==document.domain){t='cross-hostname'};if(p&&(t==='unknown'||'external'===t)&&f.length>0&&p.length>0){for(s=0,v=f.length;s<v;++s){if(f[s].length>0&&(d.endsWith(f[s])||f[s]==p)){t='download';break}}};if(t==='unknown'){t='internal'};return t};function T(e,t){var n=(e.target&&!e.target.match(/^_(self|parent|top)$/i))?e.target:!1;if(t.ctrlKey||t.shiftKey||t.metaKey||t.which==2){n='_blank'};return n};function k(e){if(e.getAttribute('data-vars-ga-label')&&e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')){return e.getAttribute('data-vars-ga-label').replace(/\n/ig,'')}
else if(e.title&&e.title.replace(/\n/ig,'')){return e.title.replace(/\n/ig,'')}
else if(e.innerText&&e.innerText.replace(/\n/ig,'')){return e.innerText.replace(/\n/ig,'')}
else if(e.getAttribute('aria-label')&&e.getAttribute('aria-label').replace(/\n/ig,'')){return e.getAttribute('aria-label').replace(/\n/ig,'')}
else if(e.alt&&e.alt.replace(/\n/ig,'')){return e.alt.replace(/\n/ig,'')}
else if(e.textContent&&e.textContent.replace(/\n/ig,'')){return e.textContent.replace(/\n/ig,'')}
else if(e.firstChild&&e.firstChild.tagName=='IMG'){return e.firstChild.src}
else if(e.href){return e.href}else{return undefined}};function O(e){var i=e.children,l=0,a,n;for(var t=0;t<i.length;t++){a=i[t];n=k(a);if(n){return n};if(l==99){return undefined};l++};return undefined};function p(n){var a=n.srcElement||n.target,e=[],m;e.el=a;e.click_type=w(n);if('undefined'===typeof __gtagTracker||!x(n)){e.exit='loaded';t(e);return}
while(a&&(typeof a.tagName=='undefined'||a.tagName.toLowerCase()!='a'||!a.href)){a=a.parentNode};if(a&&a.href&&!a.hasAttribute('xlink:href')){var p=a.href,M=c(a.href),N=h(),S=g(),D=monsterinsights_frontend.home_url,L=u(),o=A(a),K=T(a,n),y=a.getAttribute('data-vars-ga-action'),f=a.getAttribute('data-vars-ga-label');e.el=a;e.el_href=a.href;e.el_protocol=a.protocol;e.el_hostname=a.hostname;e.el_port=a.port;e.el_pathname=a.pathname;e.el_search=a.search;e.el_hash=a.hash;e.el_host=a.host;e.el_classes=a.getAttribute('class');e.el_id=a.id;e.debug_mode=d();e.download_extensions=N;e.inbound_paths=S;e.home_url=D;e.link=p;e.extension=M;e.type=o;e.target=K;e.title=k(a);if(!e.label&&!e.title){e.title=O(a)};if(o!=='internal'&&o!=='javascript'){var b=!1,v=function(){if(b){return};s();b=!0;if(a.attributes.download){var e=document.createElement('a');e.href=a.href;e.download=a.download;e.click()}else{window.location.href=p}},E=function(){e.exit='external';t(e)},C=function(){e.exit='internal-as-outbound';t(e)},I=function(){e.exit='cross-hostname';t(e)};if(K||o=='mailto'||o=='tel'){if(o=='download'){m={event_category:'download',event_label:f||e.title,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='tel'){m={event_category:'tel',event_label:f||e.title.replace('tel:',''),tel_number:p.replace('tel:',''),link_text:f||e.title,link_url:p,link_type:'tel',link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='mailto'){m={event_category:'mailto',event_label:f||e.title.replace('mailto:',''),email_address:p.replace('mailto:',''),link_text:f||e.title.replace('mailto:',''),link_url:p,link_type:'mailto',link_classes:e.el_classes,link_id:e.el_id,}}
else if(o=='internal-as-outbound'){m={event_category:i,event_label:f||e.title,event_name:'click',is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}
else if(o=='external'){m={event_category:'outbound-link',event_label:f||e.title,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,}}
else if(o=='cross-hostname'){m={event_category:'cross-hostname',event_label:f||e.title,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,}};if(m){l('event',y||p,m,e)}else{if(o&&o!='internal'){m={event_category:o,event_label:f||e.title,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}else{e.exit='type';t(e)}}}else{if(o!='cross-hostname'&&o!='external'&&o!='internal-as-outbound'){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}else{n.returnValue=!1}}};if(o=='download'){m={event_category:'download',event_label:f||e.title,event_callback:v,file_extension:e.extension,file_name:e.link.replace(/^.*\//g,''),link_text:f||e.title,link_url:p,link_type:'download',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}
else if(o=='internal-as-outbound'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}else{n.returnValue=!1}};m={event_category:i,event_label:f||e.title,event_callback:v,is_affiliate_link:!0,affiliate_label:i.replace('outbound-link-',''),link_text:f||e.title,link_url:p,link_type:'affiliate',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}
else if(o=='external'){r=!0;window.onbeforeunload=function(t){m={event_category:'outbound-link',event_label:f||e.title,event_callback:v,is_affiliate_link:!1,link_text:f||e.title,link_url:p,link_type:'outbound',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,outbound:!0,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e)}}
else if(o=='cross-hostname'){r=!0;window.onbeforeunload=function(t){if(!n.defaultPrevented){if(n.preventDefault){n.preventDefault()}else{n.returnValue=!1}};m={event_category:'cross-hostname',event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};if(navigator.sendBeacon){m.transport='beacon'};l('event',y||p,m,e);setTimeout(v,1000)}}else{if(o&&o!=='internal'){m={event_category:o,event_label:f||e.title,event_callback:v,link_text:f||e.title,link_url:p,link_type:'internal',link_domain:e.el_hostname,link_classes:e.el_classes,link_id:e.el_id,};l('event',y||p,m,e)}else{e.exit='type';t(e)}};if(o!='external'&&o!='cross-hostname'&&o!='internal-as-outbound'){setTimeout(v,1000)}else{if(o=='external'){setTimeout(E,1100)}
else if(o=='cross-hostname'){setTimeout(I,1100)}else{setTimeout(C,1100)}};setTimeout(s,100)}}else{s();e.exit='internal';t(e)}}else{e.exit='notlink';t(e)}};var f=window.location.hash;function m(){if(monsterinsights_frontend.hash_tracking==='true'&&f!=window.location.hash&&monsterinsights_frontend.v4_id){f=window.location.hash;__gtagTracker('config',monsterinsights_frontend.v4_id,{page_path:location.pathname+location.search+location.hash,});n('Hash change to: '+location.pathname+location.search+location.hash)}else{n('Hash change to (untracked): '+location.pathname+location.search+location.hash)}};function s(){if(r){window.onbeforeunload=null}};var a=window;if(a.addEventListener){a.addEventListener('load',function(){document.body.addEventListener('click',p,!1)},!1);window.addEventListener('hashchange',m,!1)}else{if(a.attachEvent){a.attachEvent('onload',function(){document.body.attachEvent('onclick',p)});window.attachEvent('onhashchange',m)}};if(typeof String.prototype.endsWith!=='function'){String.prototype.endsWith=function(e){return this.indexOf(e,this.length-e.length)!==-1}};if(typeof String.prototype.startsWith!=='function'){String.prototype.startsWith=function(e){return this.indexOf(e)===0}};if(typeof Array.prototype.lastIndexOf!=='function'){Array.prototype.lastIndexOf=function(e){'use strict';if(this===void 0||this===null){throw new TypeError()};var t,n,l=Object(this),i=l.length>>>0;if(i===0){return-1};t=i-1;if(arguments.length>1){t=Number(arguments[1]);if(t!=t){t=0}
else if(t!=0&&t!=(1/0)&&t!=-(1/0)){t=(t>0||-1)*Math.floor(Math.abs(t))}};for(n=t>=0?Math.min(t,i-1):i-Math.abs(t);n>=0;n--){if(n in l&&l[n]===e){return n}};return-1}}},MonsterInsightsObject=new MonsterInsights();
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery('#') is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass(boolean) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css("'+e+'", value)')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});
window.addComment=function(v){var I,C,h,E=v.document,b={commentReplyClass:"comment-reply-link",commentReplyTitleId:"reply-title",cancelReplyId:"cancel-comment-reply-link",commentFormId:"commentform",temporaryFormId:"wp-temp-form-div",parentIdFieldId:"comment_parent",postIdFieldId:"comment_post_ID"},e=v.MutationObserver||v.WebKitMutationObserver||v.MozMutationObserver,r="querySelector"in E&&"addEventListener"in v,n=!!E.documentElement.dataset;function t(){d(),e&&new e(o).observe(E.body,{childList:!0,subtree:!0})}function d(e){if(r&&(I=g(b.cancelReplyId),C=g(b.commentFormId),I)){I.addEventListener("touchstart",l),I.addEventListener("click",l);function t(e){if((e.metaKey||e.ctrlKey)&&13===e.keyCode&&"a"!==E.activeElement.tagName.toLowerCase())return C.removeEventListener("keydown",t),e.preventDefault(),C.submit.click(),!1}C&&C.addEventListener("keydown",t);for(var n,d=function(e){var t=b.commentReplyClass;e&&e.childNodes||(e=E);e=E.getElementsByClassName?e.getElementsByClassName(t):e.querySelectorAll("."+t);return e}(e),o=0,i=d.length;o<i;o++)(n=d[o]).addEventListener("touchstart",a),n.addEventListener("click",a)}}function l(e){var t,n,d=g(b.temporaryFormId);d&&h&&(g(b.parentIdFieldId).value="0",t=d.textContent,d.parentNode.replaceChild(h,d),this.style.display="none",n=(d=(d=g(b.commentReplyTitleId))&&d.firstChild)&&d.nextSibling,d&&d.nodeType===Node.TEXT_NODE&&t&&(n&&"A"===n.nodeName&&n.id!==b.cancelReplyId&&(n.style.display=""),d.textContent=t),e.preventDefault())}function a(e){var t=g(b.commentReplyTitleId),t=t&&t.firstChild.textContent,n=this,d=m(n,"belowelement"),o=m(n,"commentid"),i=m(n,"respondelement"),r=m(n,"postid"),n=m(n,"replyto")||t;d&&o&&i&&r&&!1===v.addComment.moveForm(d,o,i,r,n)&&e.preventDefault()}function o(e){for(var t=e.length;t--;)if(e[t].addedNodes.length)return void d()}function m(e,t){return n?e.dataset[t]:e.getAttribute("data-"+t)}function g(e){return E.getElementById(e)}return r&&"loading"!==E.readyState?t():r&&v.addEventListener("DOMContentLoaded",t,!1),{init:d,moveForm:function(e,t,n,d,o){var i,r,l,a,m,c,s,e=g(e),n=(h=g(n),g(b.parentIdFieldId)),y=g(b.postIdFieldId),p=g(b.commentReplyTitleId),u=(p=p&&p.firstChild)&&p.nextSibling;if(e&&h&&n){void 0===o&&(o=p&&p.textContent),a=h,m=b.temporaryFormId,c=g(m),s=(s=g(b.commentReplyTitleId))?s.firstChild.textContent:"",c||((c=E.createElement("div")).id=m,c.style.display="none",c.textContent=s,a.parentNode.insertBefore(c,a)),d&&y&&(y.value=d),n.value=t,I.style.display="",e.parentNode.insertBefore(h,e.nextSibling),p&&p.nodeType===Node.TEXT_NODE&&(u&&"A"===u.nodeName&&u.id!==b.cancelReplyId&&(u.style.display="none"),p.textContent=o),I.onclick=function(){return!1};try{for(var f=0;f<C.elements.length;f++)if(i=C.elements[f],r=!1,"getComputedStyle"in v?l=v.getComputedStyle(i):E.documentElement.currentStyle&&(l=i.currentStyle),(i.offsetWidth<=0&&i.offsetHeight<=0||"hidden"===l.visibility)&&(r=!0),"hidden"!==i.type&&!i.disabled&&!r){i.focus();break}}catch(e){}return!1}}}}(window);
(()=>{"use strict";var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};function i(t){if(this.formData={},this.tree={},!(t instanceof FormData))return this;this.formData=t;const e=()=>{const t=new Map;return t.largestIndex=0,t.set=function(e,i){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,i)},t};this.tree=e();const i=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,s]of this.formData){const o=t.match(i);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,s);else{const t=[...o.groups.array.matchAll(/\[([a-z][-a-z0-9_:]*|[0-9]*)\]/gi)].map((([t,e])=>e));t.unshift(o.groups.name);const i=t.pop();t.reduce(((t,i)=>{if(/^[0-9]+$/.test(i)&&(i=parseInt(i)),t.get(i)instanceof Map)return t.get(i);const s=e();return t.set(i,s),s}),this.tree).set(i,s)}}}t.r(e),t.d(e,{all:()=>D,any:()=>M,date:()=>m,dayofweek:()=>u,email:()=>r,enum:()=>h,file:()=>d,maxdate:()=>z,maxfilesize:()=>j,maxitems:()=>v,maxlength:()=>x,maxnumber:()=>y,mindate:()=>A,minfilesize:()=>$,minitems:()=>w,minlength:()=>g,minnumber:()=>b,number:()=>c,required:()=>n,requiredfile:()=>a,stepnumber:()=>I,tel:()=>l,time:()=>f,url:()=>p}),i.prototype.entries=function(){return this.tree.entries()},i.prototype.get=function(t){return this.tree.get(t)},i.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const i=[];if(t instanceof Map)for(const[s,o]of t)i.push(...e(o));else""!==t&&i.push(t);return i};return e(this.get(t))},i.prototype.has=function(t){return this.tree.has(t)},i.prototype.keys=function(){return this.tree.keys()},i.prototype.values=function(){return this.tree.values()};const s=i;function o({rule:t,field:e,error:i,...s}){this.rule=t,this.field=e,this.error=i,this.properties=s}const n=function(t){if(0===t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length)throw new o(this)},a=function(t){if(0===t.getAll(this.field).length)throw new o(this)},r=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(t.length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,i]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(i))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(i))return!1;const s=i.split(".");if(s.length<2)return!1;for(const t of s){if(/(?:^[ \t\n\r\0\x0B-]|[ \t\n\r\0\x0B-]$)/.test(t))return!1;if(!/^[a-z0-9-]+$/i.test(t))return!1}return!0})))throw new o(this)},p=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(!e.every((t=>{try{return(t=>-1!==["http","https","ftp","ftps","mailto","news","irc","irc6","ircs","gopher","nntp","feed","telnet","mms","rtsp","sms","svn","tel","fax","xmpp","webcal","urn"].indexOf(t))(new URL(t).protocol.replace(/:$/,""))}catch{return!1}})))throw new o(this)},l=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>(((t=(t=t.replace(/[#*].*$/,"")).replaceAll(/[()/.*#\s-]+/g,"")).startsWith("+")||t.startsWith("00"))&&(t=`+${t.replace(/^[+0]+/,"")}`),!!/^[+]?[0-9]+$/.test(t)&&5<t.length&&t.length<16))))throw new o(this)},c=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t))))throw new o(this)},m=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{if(!/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t))return!1;const e=new Date(t);return!Number.isNaN(e.valueOf())})))throw new o(this)},f=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=t.match(/^([0-9]{2})\:([0-9]{2})(?:\:([0-9]{2}))?$/);if(!e)return!1;const i=parseInt(e[1]),s=parseInt(e[2]),o=e[3]?parseInt(e[3]):0;return 0<=i&&i<=23&&0<=s&&s<=59&&0<=o&&o<=59})))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>t instanceof File&&this.accept?.some((e=>/^\.[a-z0-9]+$/i.test(e)?t.name.toLowerCase().endsWith(e.toLowerCase()):(t=>{const e=[],i=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(i){const t=i.groups.toplevel.toLowerCase(),s=i.groups.sub.toLowerCase();for(const[o,n]of(()=>{const t=new Map;return t.set("jpg|jpeg|jpe","image/jpeg"),t.set("gif","image/gif"),t.set("png","image/png"),t.set("bmp","image/bmp"),t.set("tiff|tif","image/tiff"),t.set("webp","image/webp"),t.set("ico","image/x-icon"),t.set("heic","image/heic"),t.set("asf|asx","video/x-ms-asf"),t.set("wmv","video/x-ms-wmv"),t.set("wmx","video/x-ms-wmx"),t.set("wm","video/x-ms-wm"),t.set("avi","video/avi"),t.set("divx","video/divx"),t.set("flv","video/x-flv"),t.set("mov|qt","video/quicktime"),t.set("mpeg|mpg|mpe","video/mpeg"),t.set("mp4|m4v","video/mp4"),t.set("ogv","video/ogg"),t.set("webm","video/webm"),t.set("mkv","video/x-matroska"),t.set("3gp|3gpp","video/3gpp"),t.set("3g2|3gp2","video/3gpp2"),t.set("txt|asc|c|cc|h|srt","text/plain"),t.set("csv","text/csv"),t.set("tsv","text/tab-separated-values"),t.set("ics","text/calendar"),t.set("rtx","text/richtext"),t.set("css","text/css"),t.set("htm|html","text/html"),t.set("vtt","text/vtt"),t.set("dfxp","application/ttaf+xml"),t.set("mp3|m4a|m4b","audio/mpeg"),t.set("aac","audio/aac"),t.set("ra|ram","audio/x-realaudio"),t.set("wav","audio/wav"),t.set("ogg|oga","audio/ogg"),t.set("flac","audio/flac"),t.set("mid|midi","audio/midi"),t.set("wma","audio/x-ms-wma"),t.set("wax","audio/x-ms-wax"),t.set("mka","audio/x-matroska"),t.set("rtf","application/rtf"),t.set("js","application/javascript"),t.set("pdf","application/pdf"),t.set("swf","application/x-shockwave-flash"),t.set("class","application/java"),t.set("tar","application/x-tar"),t.set("zip","application/zip"),t.set("gz|gzip","application/x-gzip"),t.set("rar","application/rar"),t.set("7z","application/x-7z-compressed"),t.set("exe","application/x-msdownload"),t.set("psd","application/octet-stream"),t.set("xcf","application/octet-stream"),t.set("doc","application/msword"),t.set("pot|pps|ppt","application/vnd.ms-powerpoint"),t.set("wri","application/vnd.ms-write"),t.set("xla|xls|xlt|xlw","application/vnd.ms-excel"),t.set("mdb","application/vnd.ms-access"),t.set("mpp","application/vnd.ms-project"),t.set("docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"),t.set("docm","application/vnd.ms-word.document.macroEnabled.12"),t.set("dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"),t.set("dotm","application/vnd.ms-word.template.macroEnabled.12"),t.set("xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"),t.set("xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"),t.set("xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"),t.set("xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"),t.set("xltm","application/vnd.ms-excel.template.macroEnabled.12"),t.set("xlam","application/vnd.ms-excel.addin.macroEnabled.12"),t.set("pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"),t.set("pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"),t.set("ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"),t.set("ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"),t.set("potx","application/vnd.openxmlformats-officedocument.presentationml.template"),t.set("potm","application/vnd.ms-powerpoint.template.macroEnabled.12"),t.set("ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"),t.set("sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"),t.set("sldm","application/vnd.ms-powerpoint.slide.macroEnabled.12"),t.set("onetoc|onetoc2|onetmp|onepkg","application/onenote"),t.set("oxps","application/oxps"),t.set("xps","application/vnd.ms-xpsdocument"),t.set("odt","application/vnd.oasis.opendocument.text"),t.set("odp","application/vnd.oasis.opendocument.presentation"),t.set("ods","application/vnd.oasis.opendocument.spreadsheet"),t.set("odg","application/vnd.oasis.opendocument.graphics"),t.set("odc","application/vnd.oasis.opendocument.chart"),t.set("odb","application/vnd.oasis.opendocument.database"),t.set("odf","application/vnd.oasis.opendocument.formula"),t.set("wp|wpd","application/wordperfect"),t.set("key","application/vnd.apple.keynote"),t.set("numbers","application/vnd.apple.numbers"),t.set("pages","application/vnd.apple.pages"),t})())("*"===s&&n.startsWith(t+"/")||n===i[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},h=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>this.accept?.some((e=>t===String(e))))))throw new o(this)},u=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>{const e=0===(i=new Date(t).getDay())?7:i;var i;return this.accept?.some((t=>e===parseInt(t)))})))throw new o(this)},w=function(t){if(t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).length<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),0!==i&&i<parseInt(this.threshold))throw new o(this)},x=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t));let i=0;if(e.forEach((t=>{"string"==typeof t&&(i+=t.length)})),parseInt(this.threshold)<i)throw new o(this)},b=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},A=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&t<this.threshold))))throw new o(this)},z=function(t){if(!t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)).every((t=>!(/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t)&&/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(this.threshold)&&this.threshold<t))))throw new o(this)},$=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),i<parseInt(this.threshold))throw new o(this)},j=function(t){const e=t.getAll(this.field);let i=0;if(e.forEach((t=>{t instanceof File&&(i+=t.size)})),parseInt(this.threshold)<i)throw new o(this)},I=function(t){const e=t.getAll(this.field).map((t=>t.trim())).filter((t=>""!==t)),i=parseFloat(this.base),s=parseFloat(this.interval);if(!(0<s))return!0;if(!e.every((t=>{const e=(parseFloat(t)-i)%s;return"0.000000"===Math.abs(e).toFixed(6)||"0.000000"===Math.abs(e-s).toFixed(6)})))throw new o(this)},O=({ruleObj:t,options:i})=>{const{rule:s,...o}=t;return"function"==typeof e[s]&&("function"!=typeof e[s].matches||e[s].matches(o,i))},E=({ruleObj:t,formDataTree:i,options:s})=>{const{rule:o}=t;e[o].call(t,i,s)},k=[],F=t=>[...k].reduce(((t,e)=>i=>e(i,t)),t),D=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.every((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;if(void 0!==t.error)throw t;return!1}return!0})))throw new o(this)},M=function(t,e={}){const i=(this.rules??[]).filter((t=>O({ruleObj:t,options:e}))),s=F(E);if(!i.some((i=>{try{s({ruleObj:i,formDataTree:t,options:e})}catch(t){if(!(t instanceof o))throw t;return!1}return!0})))throw new o(this)};var L;window.swv={validators:e,validate:(t,e,i={})=>{const n=(t.rules??[]).filter((t=>O({ruleObj:t,options:i})));if(!n.length)return new Map;const a=F(E),r=new s(e),p=n.reduce(((t,e)=>{try{a({ruleObj:e,formDataTree:r,options:i})}catch(e){if(!(e instanceof o))throw e;if(void 0!==e.field&&!t.has(e.field)&&void 0!==e.error)return t.set(e.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},use:t=>{k.push(t)},...null!==(L=window.swv)&&void 0!==L?L:{}}})();
(()=>{"use strict";const e=window.wp.i18n,t=e=>Math.abs(parseInt(e,10)),a=(e,t,a)=>{const n=new CustomEvent(`wpcf7${t}`,{bubbles:!0,detail:a});"string"==typeof e&&(e=document.querySelector(e)),e.dispatchEvent(n)},n=(e,t)=>{const n=new Map([["init","init"],["validation_failed","invalid"],["acceptance_missing","unaccepted"],["spam","spam"],["aborted","aborted"],["mail_sent","sent"],["mail_failed","failed"],["submitting","submitting"],["resetting","resetting"],["validating","validating"],["payment_required","payment-required"]]);n.has(t)&&(t=n.get(t)),Array.from(n.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const r=e.getAttribute("data-status");if(e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),r&&r!==t){e.classList.remove(r);const t={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,prevStatus:r};a(e,"statuschanged",t)}return t},r=e=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return c.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:c,path:o,endpoint:s,headers:i,body:l,data:p,...d}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),o=r?n+"/"+r:n),"string"==typeof o&&(-1!==t.indexOf("?")&&(o=o.replace("?","&")),o=o.replace(/^\//,""),c=t+o),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],p&&(l=JSON.stringify(p),i["Content-Type"]="application/json");const f={code:"fetch_error",message:"You are probably offline."},u={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(c||o||window.location.href,{...d,headers:i,body:l}).then((e=>Promise.resolve(e).then((e=>{if(e.status>=200&&e.status<300)return e;throw e})).then((e=>{if(204===e.status)return null;if(e&&e.json)return e.json().catch((()=>{throw u}));throw u}))),(()=>{throw f}))}))(e)},c=[];function o(e,t={}){const{target:a,scope:r=e,...c}=t;if(void 0===e.wpcf7?.schema)return;const o={...e.wpcf7.schema};if(void 0!==a){if(!e.contains(a))return;if(!a.closest(".wpcf7-form-control-wrap[data-name]"))return;if(a.closest(".novalidate"))return}const p=r.querySelectorAll(".wpcf7-form-control-wrap"),d=Array.from(p).reduce(((e,t)=>(t.closest(".novalidate")||t.querySelectorAll(":where(input, textarea, select):enabled").forEach((t=>{if(t.name)switch(t.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":t.checked&&e.append(t.name,t.value);break;case"select-multiple":for(const a of t.selectedOptions)e.append(t.name,a.value);break;case"file":for(const a of t.files)e.append(t.name,a);break;default:e.append(t.name,t.value)}})),e)),new FormData),f=e.getAttribute("data-status");Promise.resolve(n(e,"validating")).then((n=>{if(void 0!==swv){const n=swv.validate(o,d,t);for(const t of p){if(void 0===t.dataset.name)continue;const c=t.dataset.name;if(n.has(c)){const{error:t,validInputs:a}=n.get(c);i(e,c),void 0!==t&&s(e,c,t,{scope:r}),l(e,c,null!=a?a:[])}if(t.contains(a))break}}})).finally((()=>{n(e,f)}))}r.use=e=>{c.unshift(e)};const s=(e,t,a,n)=>{const{scope:r=e,...c}=null!=n?n:{},o=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),s=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",o),s&&s.id?t.insertAdjacentHTML("beforeend",`<a href="#${s.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),r.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{const t=document.createElement("span");t.classList.add("wpcf7-not-valid-tip"),t.setAttribute("aria-hidden","true"),t.insertAdjacentText("beforeend",a),e.appendChild(t),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",o),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{t.setAttribute("style","display: none")})),t.addEventListener("click",(e=>{t.setAttribute("style","display: none")})))}))}))},i=(e,t)=>{const a=`${e.wpcf7?.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${a}`)?.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{e.querySelector(".wpcf7-not-valid-tip")?.remove(),e.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","false")})),e.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.removeAttribute("aria-describedby"),e.classList.remove("wpcf7-not-valid"),"function"==typeof e.setCustomValidity&&e.setCustomValidity("")}))}))},l=(e,t,a)=>{e.querySelectorAll(`[data-reflection-of="${t}"]`).forEach((e=>{if("output"===e.tagName.toLowerCase()){const t=e;0===a.length&&a.push(t.dataset.default),a.slice(0,1).forEach((e=>{e instanceof File&&(e=e.name),t.textContent=e}))}else e.querySelectorAll("output").forEach((e=>{e.hasAttribute("data-default")?0===a.length?e.removeAttribute("hidden"):e.setAttribute("hidden","hidden"):e.remove()})),a.forEach((a=>{a instanceof File&&(a=a.name);const n=document.createElement("output");n.setAttribute("name",t),n.textContent=a,e.appendChild(n)}))}))};function p(e,t={}){if(wpcf7.blocked)return d(e),void n(e,"submitting");const c=new FormData(e);t.submitter&&t.submitter.name&&c.append(t.submitter.name,t.submitter.value);const o={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(c,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:c};r({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:c,wpcf7:{endpoint:"feedback",form:e,detail:o}}).then((t=>{const r=n(e,t.status);return o.status=t.status,o.apiResponse=t,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,o):["sent","failed"].includes(r)&&a(e,`mail${r}`,o),a(e,"submit",o),t})).then((t=>{t.posted_data_hash&&(e.querySelector('input[name="_wpcf7_posted_data_hash"]').value=t.posted_data_hash),"mail_sent"===t.status&&(e.reset(),e.wpcf7.resetOnMailSent=!0),t.invalid_fields&&t.invalid_fields.forEach((t=>{s(e,t.field,t.message)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').insertAdjacentText("beforeend",t.message),e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=t.message}))})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:t,detail:r}=e.wpcf7;d(t),a(t,"beforesubmit",r),n(t,"submitting")}return t(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&i(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function f(e){const t=new FormData(e),c={contactFormId:e.wpcf7.id,pluginVersion:e.wpcf7.pluginVersion,contactFormLocale:e.wpcf7.locale,unitTag:e.wpcf7.unitTag,containerPostId:e.wpcf7.containerPost,status:e.wpcf7.status,inputs:Array.from(t,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:t};r({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:c}}).then((t=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,n(e,"mail_sent")):n(e,"init"),c.apiResponse=t,a(e,"reset",c)})).catch((e=>console.error(e)))}r.use(((e,t)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:t,detail:a}=e.wpcf7;d(t),n(t,"resetting")}return t(e)}));const u=(e,t)=>{for(const a in t){const n=t[a];e.querySelectorAll(`input[name="${a}"]`).forEach((e=>{e.value=""})),e.querySelectorAll(`img.wpcf7-captcha-${a.replaceAll(":","")}`).forEach((e=>{e.setAttribute("src",n)}));const r=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);r&&e.querySelectorAll(`input[name="_wpcf7_captcha_challenge_${a}"]`).forEach((e=>{e.value=r[1]}))}},m=(e,t)=>{for(const a in t){const n=t[a][0],r=t[a][1];e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${a}"]`).forEach((e=>{e.querySelector(`input[name="${a}"]`).value="",e.querySelector(".wpcf7-quiz-label").textContent=n,e.querySelector(`input[name="_wpcf7_quiz_answer_${a}"]`).value=r}))}};function w(e){const a=new FormData(e);e.wpcf7={id:t(a.get("_wpcf7")),status:e.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:t(a.get("_wpcf7_container_post")),parent:e.closest(".wpcf7"),get schema(){return wpcf7.schemas.get(this.id)}},wpcf7.schemas.set(e.wpcf7.id,void 0),e.querySelectorAll(".has-spinner").forEach((e=>{e.insertAdjacentHTML("afterend",'<span class="wpcf7-spinner"></span>')})),(e=>{e.querySelectorAll(".wpcf7-exclusive-checkbox").forEach((t=>{t.addEventListener("change",(t=>{const a=t.target.getAttribute("name");e.querySelectorAll(`input[type="checkbox"][name="${a}"]`).forEach((e=>{e!==t.target&&(e.checked=!1)}))}))}))})(e),(e=>{e.querySelectorAll(".has-free-text").forEach((t=>{const a=t.querySelector("input.wpcf7-free-text"),n=t.querySelector('input[type="checkbox"], input[type="radio"]');a.disabled=!n.checked,e.addEventListener("change",(e=>{a.disabled=!n.checked,e.target===n&&n.checked&&a.focus()}))}))})(e),(e=>{e.querySelectorAll(".wpcf7-validates-as-url").forEach((e=>{e.addEventListener("change",(t=>{let a=e.value.trim();a&&!a.match(/^[a-z][a-z0-9.+-]*:/i)&&-1!==a.indexOf(".")&&(a=a.replace(/^\/+/,""),a="http://"+a),e.value=a}))}))})(e),(e=>{if(!e.querySelector(".wpcf7-acceptance")||e.classList.contains("wpcf7-acceptance-as-validation"))return;const t=()=>{let t=!0;e.querySelectorAll(".wpcf7-acceptance").forEach((e=>{if(!t||e.classList.contains("optional"))return;const a=e.querySelector('input[type="checkbox"]');(e.classList.contains("invert")&&a.checked||!e.classList.contains("invert")&&!a.checked)&&(t=!1)})),e.querySelectorAll(".wpcf7-submit").forEach((e=>{e.disabled=!t}))};t(),e.addEventListener("change",(e=>{t()})),e.addEventListener("wpcf7reset",(e=>{t()}))})(e),(e=>{const a=(e,a)=>{const n=t(e.getAttribute("data-starting-value")),r=t(e.getAttribute("data-maximum-value")),c=t(e.getAttribute("data-minimum-value")),o=e.classList.contains("down")?n-a.value.trim().length:a.value.trim().length;e.setAttribute("data-current-value",o),e.innerText=o,r&&r<a.value.length?e.classList.add("too-long"):e.classList.remove("too-long"),c&&a.value.length<c?e.classList.add("too-short"):e.classList.remove("too-short")},n=t=>{t={init:!1,...t},e.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),c=e.querySelector(`[name="${r}"]`);c&&(c.value=c.defaultValue,a(n,c),t.init&&c.addEventListener("keyup",(e=>{a(n,c)})))}))};n({init:!0}),e.addEventListener("wpcf7reset",(e=>{n()}))})(e),window.addEventListener("load",(t=>{wpcf7.cached&&e.reset()})),e.addEventListener("reset",(t=>{wpcf7.reset(e)})),e.addEventListener("submit",(t=>{wpcf7.submit(e,{submitter:t.submitter}),t.preventDefault()})),e.addEventListener("wpcf7submit",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("wpcf7reset",(t=>{t.detail.apiResponse.captcha&&u(e,t.detail.apiResponse.captcha),t.detail.apiResponse.quiz&&m(e,t.detail.apiResponse.quiz)})),e.addEventListener("change",(t=>{t.target.closest(".wpcf7-form-control")&&wpcf7.validate(e,{target:t.target})})),e.addEventListener("wpcf7statuschanged",(t=>{const a=t.detail.status;e.querySelectorAll(".active-on-any").forEach((e=>{e.removeAttribute("inert"),e.classList.remove("active-on-any")})),e.querySelectorAll(`.inert-on-${a}`).forEach((e=>{e.setAttribute("inert","inert"),e.classList.add("active-on-any")}))}))}document.addEventListener("DOMContentLoaded",(t=>{var a;if("undefined"!=typeof wpcf7)if(void 0!==wpcf7.api)if("function"==typeof window.fetch)if("function"==typeof window.FormData)if("function"==typeof NodeList.prototype.forEach)if("function"==typeof String.prototype.replaceAll){wpcf7={init:w,submit:p,reset:f,validate:o,schemas:new Map,...null!==(a=wpcf7)&&void 0!==a?a:{}},document.querySelectorAll("form .wpcf7[data-wpcf7-id]").forEach((t=>{const a=document.createElement("p");a.setAttribute("class","wpcf7-form-in-wrong-place");const n=document.createElement("strong");n.append((0,e.__)("Error:","contact-form-7"));const r=(0,e.__)("This contact form is placed in the wrong place.","contact-form-7");a.append(n," ",r),t.replaceWith(a)})),document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}));for(const e of wpcf7.schemas.keys())r({endpoint:`contact-forms/${e}/feedback/schema`,method:"GET"}).then((t=>{wpcf7.schemas.set(e,t)}))}else console.error("Your browser does not support String.replaceAll().");else console.error("Your browser does not support NodeList.forEach().");else console.error("Your browser does not support window.FormData().");else console.error("Your browser does not support window.fetch().");else console.error("wpcf7.api is not defined.");else console.error("wpcf7 is not defined.")}))})();
;
/*! Magnific Popup - v1.0.0 - 2015-01-03
* http://dimsemenov.com/plugins/magnific-popup/
* Copyright (c) 2015 Dmitry Semenov; */
(function(factory){if(typeof define==='function'&&define.amd){define(['jquery'],factory);}else if(typeof exports==='object'){factory(require('jquery'));}else{factory(window.jQuery||window.Zepto);}}(function($){var CLOSE_EVENT='Close',BEFORE_CLOSE_EVENT='BeforeClose',AFTER_CLOSE_EVENT='AfterClose',BEFORE_APPEND_EVENT='BeforeAppend',MARKUP_PARSE_EVENT='MarkupParse',OPEN_EVENT='Open',CHANGE_EVENT='Change',NS='mfp',EVENT_NS='.'+NS,READY_CLASS='mfp-ready',REMOVING_CLASS='mfp-removing',PREVENT_CLOSE_CLASS='mfp-prevent-close';var mfp,MagnificPopup=function(){},_isJQ=!!(window.jQuery),_prevStatus,_window=$(window),_document,_prevContentType,_wrapClasses,_currPopupType;var _mfpOn=function(name,f){mfp.ev.on(NS+name+EVENT_NS,f);},_getEl=function(className,appendTo,html,raw){var el=document.createElement('div');el.className='mfp-'+className;if(html){el.innerHTML=html;}
if(!raw){el=$(el);if(appendTo){el.appendTo(appendTo);}}else if(appendTo){appendTo.appendChild(el);}
return el;},_mfpTrigger=function(e,data){mfp.ev.triggerHandler(NS+e,data);if(mfp.st.callbacks){e=e.charAt(0).toLowerCase()+e.slice(1);if(mfp.st.callbacks[e]){mfp.st.callbacks[e].apply(mfp,$.isArray(data)?data:[data]);}}},_getCloseBtn=function(type){if(type!==_currPopupType||!mfp.currTemplate.closeBtn){mfp.currTemplate.closeBtn=$(mfp.st.closeMarkup.replace('%title%',mfp.st.tClose));_currPopupType=type;}
return mfp.currTemplate.closeBtn;},_checkInstance=function(){if(!$.magnificPopup.instance){mfp=new MagnificPopup();mfp.init();$.magnificPopup.instance=mfp;}},supportsTransitions=function(){var s=document.createElement('p').style,v=['ms','O','Moz','Webkit'];if(s['transition']!==undefined){return true;}
while(v.length){if(v.pop()+'Transition'in s){return true;}}
return false;};MagnificPopup.prototype={constructor:MagnificPopup,init:function(){var appVersion=navigator.appVersion;mfp.isIE7=appVersion.indexOf("MSIE 7.")!==-1;mfp.isIE8=appVersion.indexOf("MSIE 8.")!==-1;mfp.isLowIE=mfp.isIE7||mfp.isIE8;mfp.isAndroid=(/android/gi).test(appVersion);mfp.isIOS=(/iphone|ipad|ipod/gi).test(appVersion);mfp.supportsTransition=supportsTransitions();mfp.probablyMobile=(mfp.isAndroid||mfp.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent));_document=$(document);mfp.popupsCache={};},open:function(data){var i;if(data.isObj===false){mfp.items=data.items.toArray();mfp.index=0;var items=data.items,item;for(i=0;i<items.length;i++){item=items[i];if(item.parsed){item=item.el[0];}
if(item===data.el[0]){mfp.index=i;break;}}}else{mfp.items=$.isArray(data.items)?data.items:[data.items];mfp.index=data.index||0;}
if(mfp.isOpen){mfp.updateItemHTML();return;}
mfp.types=[];_wrapClasses='';if(data.mainEl&&data.mainEl.length){mfp.ev=data.mainEl.eq(0);}else{mfp.ev=_document;}
if(data.key){if(!mfp.popupsCache[data.key]){mfp.popupsCache[data.key]={};}
mfp.currTemplate=mfp.popupsCache[data.key];}else{mfp.currTemplate={};}
mfp.st=$.extend(true,{},$.magnificPopup.defaults,data);mfp.fixedContentPos=mfp.st.fixedContentPos==='auto'?!mfp.probablyMobile:mfp.st.fixedContentPos;if(mfp.st.modal){mfp.st.closeOnContentClick=false;mfp.st.closeOnBgClick=false;mfp.st.showCloseBtn=false;mfp.st.enableEscapeKey=false;}
if(!mfp.bgOverlay){mfp.bgOverlay=_getEl('bg').on('click'+EVENT_NS,function(){mfp.close();});mfp.wrap=_getEl('wrap').attr('tabindex',-1).on('click'+EVENT_NS,function(e){if(mfp._checkIfClose(e.target)){mfp.close();}});mfp.container=_getEl('container',mfp.wrap);}
mfp.contentContainer=_getEl('content');if(mfp.st.preloader){mfp.preloader=_getEl('preloader',mfp.container,mfp.st.tLoading);}
var modules=$.magnificPopup.modules;for(i=0;i<modules.length;i++){var n=modules[i];n=n.charAt(0).toUpperCase()+n.slice(1);mfp['init'+n].call(mfp);}
_mfpTrigger('BeforeOpen');if(mfp.st.showCloseBtn){if(!mfp.st.closeBtnInside){mfp.wrap.append(_getCloseBtn());}else{_mfpOn(MARKUP_PARSE_EVENT,function(e,template,values,item){values.close_replaceWith=_getCloseBtn(item.type);});_wrapClasses+=' mfp-close-btn-in';}}
if(mfp.st.alignTop){_wrapClasses+=' mfp-align-top';}
if(mfp.fixedContentPos){mfp.wrap.css({overflow:mfp.st.overflowY,overflowX:'hidden',overflowY:mfp.st.overflowY});}else{mfp.wrap.css({top:_window.scrollTop(),position:'absolute'});}
if(mfp.st.fixedBgPos===false||(mfp.st.fixedBgPos==='auto'&&!mfp.fixedContentPos)){mfp.bgOverlay.css({height:_document.height(),position:'absolute'});}
if(mfp.st.enableEscapeKey){_document.on('keyup'+EVENT_NS,function(e){if(e.keyCode===27){mfp.close();}});}
_window.on('resize'+EVENT_NS,function(){mfp.updateSize();});if(!mfp.st.closeOnContentClick){_wrapClasses+=' mfp-auto-cursor';}
if(_wrapClasses)
mfp.wrap.addClass(_wrapClasses);var windowHeight=mfp.wH=_window.height();var windowStyles={};if(mfp.fixedContentPos){if(mfp._hasScrollBar(windowHeight)){var s=mfp._getScrollbarSize();if(s){windowStyles.marginRight=s;}}}
if(mfp.fixedContentPos){if(!mfp.isIE7){windowStyles.overflow='hidden';}else{$('body, html').css('overflow','hidden');}}
var classesToadd=mfp.st.mainClass;if(mfp.isIE7){classesToadd+=' mfp-ie7';}
if(classesToadd){mfp._addClassToMFP(classesToadd);}
mfp.updateItemHTML();_mfpTrigger('BuildControls');$('html').css(windowStyles);mfp.bgOverlay.add(mfp.wrap).prependTo(mfp.st.prependTo||$(document.body));mfp._lastFocusedEl=document.activeElement;setTimeout(function(){if(mfp.content){mfp._addClassToMFP(READY_CLASS);mfp._setFocus();}else{mfp.bgOverlay.addClass(READY_CLASS);}
_document.on('focusin'+EVENT_NS,mfp._onFocusIn);},16);mfp.isOpen=true;mfp.updateSize(windowHeight);_mfpTrigger(OPEN_EVENT);return data;},close:function(){if(!mfp.isOpen)return;_mfpTrigger(BEFORE_CLOSE_EVENT);mfp.isOpen=false;if(mfp.st.removalDelay&&!mfp.isLowIE&&mfp.supportsTransition){mfp._addClassToMFP(REMOVING_CLASS);setTimeout(function(){mfp._close();},mfp.st.removalDelay);}else{mfp._close();}},_close:function(){_mfpTrigger(CLOSE_EVENT);var classesToRemove=REMOVING_CLASS+' '+READY_CLASS+' ';mfp.bgOverlay.detach();mfp.wrap.detach();mfp.container.empty();if(mfp.st.mainClass){classesToRemove+=mfp.st.mainClass+' ';}
mfp._removeClassFromMFP(classesToRemove);if(mfp.fixedContentPos){var windowStyles={marginRight:''};if(mfp.isIE7){$('body, html').css('overflow','');}else{windowStyles.overflow='';}
$('html').css(windowStyles);}
_document.off('keyup'+EVENT_NS+' focusin'+EVENT_NS);mfp.ev.off(EVENT_NS);mfp.wrap.attr('class','mfp-wrap').removeAttr('style');mfp.bgOverlay.attr('class','mfp-bg');mfp.container.attr('class','mfp-container');if(mfp.st.showCloseBtn&&(!mfp.st.closeBtnInside||mfp.currTemplate[mfp.currItem.type]===true)){if(mfp.currTemplate.closeBtn)
mfp.currTemplate.closeBtn.detach();}
if(mfp._lastFocusedEl){$(mfp._lastFocusedEl).focus();}
mfp.currItem=null;mfp.content=null;mfp.currTemplate=null;mfp.prevHeight=0;_mfpTrigger(AFTER_CLOSE_EVENT);},updateSize:function(winHeight){if(mfp.isIOS){var zoomLevel=document.documentElement.clientWidth/window.innerWidth;var height=window.innerHeight*zoomLevel;mfp.wrap.css('height',height);mfp.wH=height;}else{mfp.wH=winHeight||_window.height();}
if(!mfp.fixedContentPos){mfp.wrap.css('height',mfp.wH);}
_mfpTrigger('Resize');},updateItemHTML:function(){var item=mfp.items[mfp.index];mfp.contentContainer.detach();if(mfp.content)
mfp.content.detach();if(!item.parsed){item=mfp.parseEl(mfp.index);}
var type=item.type;_mfpTrigger('BeforeChange',[mfp.currItem?mfp.currItem.type:'',type]);mfp.currItem=item;if(!mfp.currTemplate[type]){var markup=mfp.st[type]?mfp.st[type].markup:false;_mfpTrigger('FirstMarkupParse',markup);if(markup){mfp.currTemplate[type]=$(markup);}else{mfp.currTemplate[type]=true;}}
if(_prevContentType&&_prevContentType!==item.type){mfp.container.removeClass('mfp-'+_prevContentType+'-holder');}
var newContent=mfp['get'+type.charAt(0).toUpperCase()+type.slice(1)](item,mfp.currTemplate[type]);mfp.appendContent(newContent,type);item.preloaded=true;_mfpTrigger(CHANGE_EVENT,item);_prevContentType=item.type;mfp.container.prepend(mfp.contentContainer);_mfpTrigger('AfterChange');},appendContent:function(newContent,type){mfp.content=newContent;if(newContent){if(mfp.st.showCloseBtn&&mfp.st.closeBtnInside&&mfp.currTemplate[type]===true){if(!mfp.content.find('.mfp-close').length){mfp.content.append(_getCloseBtn());}}else{mfp.content=newContent;}}else{mfp.content='';}
_mfpTrigger(BEFORE_APPEND_EVENT);mfp.container.addClass('mfp-'+type+'-holder');mfp.contentContainer.append(mfp.content);},parseEl:function(index){var item=mfp.items[index],type;if(item.tagName){item={el:$(item)};}else{type=item.type;item={data:item,src:item.src};}
if(item.el){var types=mfp.types;for(var i=0;i<types.length;i++){if(item.el.hasClass('mfp-'+types[i])){type=types[i];break;}}
item.src=item.el.attr('data-mfp-src');if(!item.src){item.src=item.el.attr('href');}}
item.type=type||mfp.st.type||'inline';item.index=index;item.parsed=true;mfp.items[index]=item;_mfpTrigger('ElementParse',item);return mfp.items[index];},addGroup:function(el,options){var eHandler=function(e){e.mfpEl=this;mfp._openClick(e,el,options);};if(!options){options={};}
var eName='click.magnificPopup';options.mainEl=el;if(options.items){options.isObj=true;el.off(eName).on(eName,eHandler);}else{options.isObj=false;if(options.delegate){el.off(eName).on(eName,options.delegate,eHandler);}else{options.items=el;el.off(eName).on(eName,eHandler);}}},_openClick:function(e,el,options){var midClick=options.midClick!==undefined?options.midClick:$.magnificPopup.defaults.midClick;if(!midClick&&(e.which===2||e.ctrlKey||e.metaKey)){return;}
var disableOn=options.disableOn!==undefined?options.disableOn:$.magnificPopup.defaults.disableOn;if(disableOn){if($.isFunction(disableOn)){if(!disableOn.call(mfp)){return true;}}else{if(_window.width()<disableOn){return true;}}}
if(e.type){e.preventDefault();if(mfp.isOpen){e.stopPropagation();}}
options.el=$(e.mfpEl);if(options.delegate){options.items=el.find(options.delegate);}
mfp.open(options);},updateStatus:function(status,text){if(mfp.preloader){if(_prevStatus!==status){mfp.container.removeClass('mfp-s-'+_prevStatus);}
if(!text&&status==='loading'){text=mfp.st.tLoading;}
var data={status:status,text:text};_mfpTrigger('UpdateStatus',data);status=data.status;text=data.text;mfp.preloader.html(text);mfp.preloader.find('a').on('click',function(e){e.stopImmediatePropagation();});mfp.container.addClass('mfp-s-'+status);_prevStatus=status;}},_checkIfClose:function(target){if($(target).hasClass(PREVENT_CLOSE_CLASS)){return;}
var closeOnContent=mfp.st.closeOnContentClick;var closeOnBg=mfp.st.closeOnBgClick;if(closeOnContent&&closeOnBg){return true;}else{if(!mfp.content||$(target).hasClass('mfp-close')||(mfp.preloader&&target===mfp.preloader[0])){return true;}
if((target!==mfp.content[0]&&!$.contains(mfp.content[0],target))){if(closeOnBg){if($.contains(document,target)){return true;}}}else if(closeOnContent){return true;}}
return false;},_addClassToMFP:function(cName){mfp.bgOverlay.addClass(cName);mfp.wrap.addClass(cName);},_removeClassFromMFP:function(cName){this.bgOverlay.removeClass(cName);mfp.wrap.removeClass(cName);},_hasScrollBar:function(winHeight){return((mfp.isIE7?_document.height():document.body.scrollHeight)>(winHeight||_window.height()));},_setFocus:function(){(mfp.st.focus?mfp.content.find(mfp.st.focus).eq(0):mfp.wrap).focus();},_onFocusIn:function(e){if(e.target!==mfp.wrap[0]&&!$.contains(mfp.wrap[0],e.target)){mfp._setFocus();return false;}},_parseMarkup:function(template,values,item){var arr;if(item.data){values=$.extend(item.data,values);}
_mfpTrigger(MARKUP_PARSE_EVENT,[template,values,item]);$.each(values,function(key,value){if(value===undefined||value===false){return true;}
arr=key.split('_');if(arr.length>1){var el=template.find(EVENT_NS+'-'+arr[0]);if(el.length>0){var attr=arr[1];if(attr==='replaceWith'){if(el[0]!==value[0]){el.replaceWith(value);}}else if(attr==='img'){if(el.is('img')){el.attr('src',value);}else{el.replaceWith('<img src="'+value+'" class="'+el.attr('class')+'" />');}}else{el.attr(arr[1],value);}}}else{template.find(EVENT_NS+'-'+key).html(value);}});},_getScrollbarSize:function(){if(mfp.scrollbarSize===undefined){var scrollDiv=document.createElement("div");scrollDiv.style.cssText='width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;';document.body.appendChild(scrollDiv);mfp.scrollbarSize=scrollDiv.offsetWidth-scrollDiv.clientWidth;document.body.removeChild(scrollDiv);}
return mfp.scrollbarSize;}};$.magnificPopup={instance:null,proto:MagnificPopup.prototype,modules:[],open:function(options,index){_checkInstance();if(!options){options={};}else{options=$.extend(true,{},options);}
options.isObj=true;options.index=index||0;return this.instance.open(options);},close:function(){return $.magnificPopup.instance&&$.magnificPopup.instance.close();},registerModule:function(name,module){if(module.options){$.magnificPopup.defaults[name]=module.options;}
$.extend(this.proto,module.proto);this.modules.push(name);},defaults:{disableOn:0,key:null,midClick:false,mainClass:'',preloader:true,focus:'',closeOnContentClick:false,closeOnBgClick:true,closeBtnInside:true,showCloseBtn:true,enableEscapeKey:true,modal:false,alignTop:false,removalDelay:0,prependTo:null,fixedContentPos:'auto',fixedBgPos:'auto',overflowY:'auto',closeMarkup:'<a title="%title%" class="mfp-close"></a>',tClose:'Close (Esc)',tLoading:'<i class="fa fa-circle-o-notch fa-spin"></i>'}};$.fn.magnificPopup=function(options){_checkInstance();var jqEl=$(this);if(typeof options==="string"){if(options==='open'){var items,itemOpts=_isJQ?jqEl.data('magnificPopup'):jqEl[0].magnificPopup,index=parseInt(arguments[1],10)||0;if(itemOpts.items){items=itemOpts.items[index];}else{items=jqEl;if(itemOpts.delegate){items=items.find(itemOpts.delegate);}
items=items.eq(index);}
mfp._openClick({mfpEl:items},jqEl,itemOpts);}else{if(mfp.isOpen)
mfp[options].apply(mfp,Array.prototype.slice.call(arguments,1));}}else{options=$.extend(true,{},options);if(_isJQ){jqEl.data('magnificPopup',options);}else{jqEl[0].magnificPopup=options;}
mfp.addGroup(jqEl,options);}
return jqEl;};var INLINE_NS='inline',_hiddenClass,_inlinePlaceholder,_lastInlineElement,_putInlineElementsBack=function(){if(_lastInlineElement){_inlinePlaceholder.after(_lastInlineElement.addClass(_hiddenClass)).detach();_lastInlineElement=null;}};$.magnificPopup.registerModule(INLINE_NS,{options:{hiddenClass:'hide',markup:'',tNotFound:'Content not found'},proto:{initInline:function(){mfp.types.push(INLINE_NS);_mfpOn(CLOSE_EVENT+'.'+INLINE_NS,function(){_putInlineElementsBack();});},getInline:function(item,template){_putInlineElementsBack();if(item.src){var inlineSt=mfp.st.inline,el=$(item.src);if(el.length){var parent=el[0].parentNode;if(parent&&parent.tagName){if(!_inlinePlaceholder){_hiddenClass=inlineSt.hiddenClass;_inlinePlaceholder=_getEl(_hiddenClass);_hiddenClass='mfp-'+_hiddenClass;}
_lastInlineElement=el.after(_inlinePlaceholder).detach().removeClass(_hiddenClass);}
mfp.updateStatus('ready');}else{mfp.updateStatus('error',inlineSt.tNotFound);el=$('<div>');}
item.inlineElement=el;return el;}
mfp.updateStatus('ready');mfp._parseMarkup(template,{},item);return template;}}});var AJAX_NS='ajax',_ajaxCur,_removeAjaxCursor=function(){if(_ajaxCur){$(document.body).removeClass(_ajaxCur);}},_destroyAjaxRequest=function(){_removeAjaxCursor();if(mfp.req){mfp.req.abort();}};$.magnificPopup.registerModule(AJAX_NS,{options:{settings:null,cursor:'mfp-ajax-cur',tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){mfp.types.push(AJAX_NS);_ajaxCur=mfp.st.ajax.cursor;_mfpOn(CLOSE_EVENT+'.'+AJAX_NS,_destroyAjaxRequest);_mfpOn('BeforeChange.'+AJAX_NS,_destroyAjaxRequest);},getAjax:function(item){if(_ajaxCur){$(document.body).addClass(_ajaxCur);}
mfp.updateStatus('loading');var opts=$.extend({url:item.src,success:function(data,textStatus,jqXHR){var temp={data:data,xhr:jqXHR};_mfpTrigger('ParseAjax',temp);mfp.appendContent($(temp.data),AJAX_NS);item.finished=true;_removeAjaxCursor();mfp._setFocus();setTimeout(function(){mfp.wrap.addClass(READY_CLASS);},16);mfp.updateStatus('ready');_mfpTrigger('AjaxContentAdded');},error:function(){_removeAjaxCursor();item.finished=item.loadError=true;mfp.updateStatus('error',mfp.st.ajax.tError.replace('%url%',item.src));}},mfp.st.ajax.settings);mfp.req=$.ajax(opts);return'';}}});var _imgInterval,_getTitle=function(item){if(item.data&&item.data.title!==undefined)
return item.data.title;var src=mfp.st.image.titleSrc;if(src){if($.isFunction(src)){return src.call(mfp,item);}else if(item.el){return item.el.attr(src)||'';}}
return'';};$.magnificPopup.registerModule('image',{options:{markup:'<div class="mfp-figure">'+'<div class="mfp-close"></div>'+'<figure>'+'<div class="mfp-img"></div>'+'<figcaption>'+'<div class="mfp-bottom-bar">'+'<div class="mfp-title"></div>'+'<div class="mfp-counter"></div>'+'</div>'+'</figcaption>'+'</figure>'+'</div>',cursor:'mfp-zoom-out-cur',titleSrc:'title',verticalFit:true,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var imgSt=mfp.st.image,ns='.image';mfp.types.push('image');_mfpOn(OPEN_EVENT+ns,function(){if(mfp.currItem.type==='image'&&imgSt.cursor){$(document.body).addClass(imgSt.cursor);}});_mfpOn(CLOSE_EVENT+ns,function(){if(imgSt.cursor){$(document.body).removeClass(imgSt.cursor);}
_window.off('resize'+EVENT_NS);});_mfpOn('Resize'+ns,mfp.resizeImage);if(mfp.isLowIE){_mfpOn('AfterChange',mfp.resizeImage);}},resizeImage:function(){var item=mfp.currItem;if(!item||!item.img)return;if(mfp.st.image.verticalFit){var decr=0;if(mfp.isLowIE){decr=parseInt(item.img.css('padding-top'),10)+parseInt(item.img.css('padding-bottom'),10);}
item.img.css('max-height',parseInt(mfp.wH-decr-30));}},_onImageHasSize:function(item){if(item.img){item.hasSize=true;if(_imgInterval){clearInterval(_imgInterval);}
item.isCheckingImgSize=false;_mfpTrigger('ImageHasSize',item);if(item.imgHidden){if(mfp.content)
mfp.content.removeClass('mfp-loading');item.imgHidden=false;}}},findImageSize:function(item){var counter=0,img=item.img[0],mfpSetInterval=function(delay){if(_imgInterval){clearInterval(_imgInterval);}
_imgInterval=setInterval(function(){if(img.naturalWidth>0){mfp._onImageHasSize(item);return;}
if(counter>200){clearInterval(_imgInterval);}
counter++;if(counter===3){mfpSetInterval(10);}else if(counter===40){mfpSetInterval(50);}else if(counter===100){mfpSetInterval(500);}},delay);};mfpSetInterval(1);},getImage:function(item,template){var guard=0,onLoadComplete=function(){if(item){if(item.img[0].complete){item.img.off('.mfploader');if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus('ready');}
item.hasSize=true;item.loaded=true;_mfpTrigger('ImageLoadComplete');}else{guard++;if(guard<200){setTimeout(onLoadComplete,100);}else{onLoadError();}}}},onLoadError=function(){if(item){item.img.off('.mfploader');if(item===mfp.currItem){mfp._onImageHasSize(item);mfp.updateStatus('error',imgSt.tError.replace('%url%',item.src));}
item.hasSize=true;item.loaded=true;item.loadError=true;}},imgSt=mfp.st.image;var el=template.find('.mfp-img');if(el.length){var img=document.createElement('img');img.className='mfp-img';if(item.el&&item.el.find('img').length){img.alt=item.el.find('img').attr('alt');}
item.img=$(img).on('load.mfploader',onLoadComplete).on('error.mfploader',onLoadError);img.src=item.src;if(el.is('img')){item.img=item.img.clone();}
img=item.img[0];if(img.naturalWidth>0){item.hasSize=true;}else if(!img.width){item.hasSize=false;}}
mfp._parseMarkup(template,{title:_getTitle(item),img_replaceWith:item.img},item);mfp.resizeImage();if(item.hasSize){if(_imgInterval)clearInterval(_imgInterval);if(item.loadError){template.addClass('mfp-loading');mfp.updateStatus('error',imgSt.tError.replace('%url%',item.src));}else{template.removeClass('mfp-loading');mfp.updateStatus('ready');}
return template;}
mfp.updateStatus('loading');item.loading=true;if(!item.hasSize){item.imgHidden=true;template.addClass('mfp-loading');mfp.findImageSize(item);}
return template;}}});var hasMozTransform,getHasMozTransform=function(){if(hasMozTransform===undefined){hasMozTransform=document.createElement('p').style.MozTransform!==undefined;}
return hasMozTransform;};$.magnificPopup.registerModule('zoom',{options:{enabled:false,easing:'ease-in-out',duration:300,opener:function(element){return element.is('img')?element:element.find('img');}},proto:{initZoom:function(){var zoomSt=mfp.st.zoom,ns='.zoom',image;if(!zoomSt.enabled||!mfp.supportsTransition){return;}
var duration=zoomSt.duration,getElToAnimate=function(image){var newImg=image.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),transition='all '+(zoomSt.duration/1000)+'s '+zoomSt.easing,cssObj={position:'fixed',zIndex:9999,left:0,top:0,'-webkit-backface-visibility':'hidden'},t='transition';cssObj['-webkit-'+t]=cssObj['-moz-'+t]=cssObj['-o-'+t]=cssObj[t]=transition;newImg.css(cssObj);return newImg;},showMainContent=function(){mfp.content.css('visibility','visible');},openTimeout,animatedImg;_mfpOn('BuildControls'+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.content.css('visibility','hidden');image=mfp._getItemToZoom();if(!image){showMainContent();return;}
animatedImg=getElToAnimate(image);animatedImg.css(mfp._getOffset());mfp.wrap.append(animatedImg);openTimeout=setTimeout(function(){animatedImg.css(mfp._getOffset(true));openTimeout=setTimeout(function(){showMainContent();setTimeout(function(){animatedImg.remove();image=animatedImg=null;_mfpTrigger('ZoomAnimationEnded');},16);},duration);},16);}});_mfpOn(BEFORE_CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){clearTimeout(openTimeout);mfp.st.removalDelay=duration;if(!image){image=mfp._getItemToZoom();if(!image){return;}
animatedImg=getElToAnimate(image);}
animatedImg.css(mfp._getOffset(true));mfp.wrap.append(animatedImg);mfp.content.css('visibility','hidden');setTimeout(function(){animatedImg.css(mfp._getOffset());},16);}});_mfpOn(CLOSE_EVENT+ns,function(){if(mfp._allowZoom()){showMainContent();if(animatedImg){animatedImg.remove();}
image=null;}});},_allowZoom:function(){return mfp.currItem.type==='image';},_getItemToZoom:function(){if(mfp.currItem.hasSize){return mfp.currItem.img;}else{return false;}},_getOffset:function(isLarge){var el;if(isLarge){el=mfp.currItem.img;}else{el=mfp.st.zoom.opener(mfp.currItem.el||mfp.currItem);}
var offset=el.offset();var paddingTop=parseInt(el.css('padding-top'),10);var paddingBottom=parseInt(el.css('padding-bottom'),10);offset.top-=($(window).scrollTop()-paddingTop);var obj={width:el.width(),height:(_isJQ?el.innerHeight():el[0].offsetHeight)-paddingBottom-paddingTop};if(getHasMozTransform()){obj['-moz-transform']=obj['transform']='translate('+offset.left+'px,'+offset.top+'px)';}else{obj.left=offset.left;obj.top=offset.top;}
return obj;}}});var IFRAME_NS='iframe',_emptyPage='//about:blank',_fixIframeBugs=function(isShowing){if(mfp.currTemplate[IFRAME_NS]){var el=mfp.currTemplate[IFRAME_NS].find('iframe');if(el.length){if(!isShowing){el[0].src=_emptyPage;}
if(mfp.isIE8){el.css('display',isShowing?'block':'none');}}}};$.magnificPopup.registerModule(IFRAME_NS,{options:{markup:'<div class="mfp-iframe-scaler">'+'<div class="mfp-close"></div>'+'<iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe>'+'</div>',srcAction:'iframe_src',patterns:{youtube:{index:'youtube.com',id:'v=',src:'//www.youtube.com/embed/%id%?autoplay=1'},vimeo:{index:'vimeo.com/',id:'/',src:'//player.vimeo.com/video/%id%?autoplay=1'},gmaps:{index:'//maps.google.',src:'%id%&output=embed'}}},proto:{initIframe:function(){mfp.types.push(IFRAME_NS);_mfpOn('BeforeChange',function(e,prevType,newType){if(prevType!==newType){if(prevType===IFRAME_NS){_fixIframeBugs();}else if(newType===IFRAME_NS){_fixIframeBugs(true);}}});_mfpOn(CLOSE_EVENT+'.'+IFRAME_NS,function(){_fixIframeBugs();});},getIframe:function(item,template){var embedSrc=item.src;var iframeSt=mfp.st.iframe;$.each(iframeSt.patterns,function(){if(embedSrc.indexOf(this.index)>-1){if(this.id){if(typeof this.id==='string'){embedSrc=embedSrc.substr(embedSrc.lastIndexOf(this.id)+this.id.length,embedSrc.length);}else{embedSrc=this.id.call(this,embedSrc);}}
embedSrc=this.src.replace('%id%',embedSrc);return false;}});var dataObj={};if(iframeSt.srcAction){dataObj[iframeSt.srcAction]=embedSrc;}
mfp._parseMarkup(template,dataObj,item);mfp.updateStatus('ready');return template;}}});var _getLoopedId=function(index){var numSlides=mfp.items.length;if(index>numSlides-1){return index-numSlides;}else if(index<0){return numSlides+index;}
return index;},_replaceCurrTotal=function(text,curr,total){return text.replace(/%curr%/gi,curr+1).replace(/%total%/gi,total);};$.magnificPopup.registerModule('gallery',{options:{enabled:false,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:true,arrows:true,tPrev:'Previous (Left arrow key)',tNext:'Next (Right arrow key)',tCounter:'%curr% / %total%'},proto:{initGallery:function(){var gSt=mfp.st.gallery,ns='.mfp-gallery',supportsFastClick=Boolean($.fn.mfpFastClick);mfp.direction=true;if(!gSt||!gSt.enabled)return false;_wrapClasses+=' mfp-gallery';_mfpOn(OPEN_EVENT+ns,function(){if(gSt.navigateByImgClick){mfp.wrap.on('click'+ns,'.mfp-img',function(){if(mfp.items.length>1){mfp.next();return false;}});}
_document.on('keydown'+ns,function(e){if(e.keyCode===37){mfp.prev();}else if(e.keyCode===39){mfp.next();}});});_mfpOn('UpdateStatus'+ns,function(e,data){if(data.text){data.text=_replaceCurrTotal(data.text,mfp.currItem.index,mfp.items.length);}});_mfpOn(MARKUP_PARSE_EVENT+ns,function(e,element,values,item){var l=mfp.items.length;values.counter=l>1?_replaceCurrTotal(gSt.tCounter,item.index,l):'';});_mfpOn('BuildControls'+ns,function(){if(mfp.items.length>1&&gSt.arrows&&!mfp.arrowLeft){var markup=gSt.arrowMarkup,arrowLeft=mfp.arrowLeft=$(markup.replace(/%title%/gi,gSt.tPrev).replace(/%dir%/gi,'left')).addClass(PREVENT_CLOSE_CLASS),arrowRight=mfp.arrowRight=$(markup.replace(/%title%/gi,gSt.tNext).replace(/%dir%/gi,'right')).addClass(PREVENT_CLOSE_CLASS);var eName=supportsFastClick?'mfpFastClick':'click';arrowLeft[eName](function(){mfp.prev();});arrowRight[eName](function(){mfp.next();});if(mfp.isIE7){_getEl('b',arrowLeft[0],false,true);_getEl('a',arrowLeft[0],false,true);_getEl('b',arrowRight[0],false,true);_getEl('a',arrowRight[0],false,true);}
mfp.container.append(arrowLeft.add(arrowRight));}});_mfpOn(CHANGE_EVENT+ns,function(){if(mfp._preloadTimeout)clearTimeout(mfp._preloadTimeout);mfp._preloadTimeout=setTimeout(function(){mfp.preloadNearbyImages();mfp._preloadTimeout=null;},16);});_mfpOn(CLOSE_EVENT+ns,function(){_document.off(ns);mfp.wrap.off('click'+ns);if(mfp.arrowLeft&&supportsFastClick){mfp.arrowLeft.add(mfp.arrowRight).destroyMfpFastClick();}
mfp.arrowRight=mfp.arrowLeft=null;});},next:function(){mfp.direction=true;mfp.index=_getLoopedId(mfp.index+1);mfp.updateItemHTML();},prev:function(){mfp.direction=false;mfp.index=_getLoopedId(mfp.index-1);mfp.updateItemHTML();},goTo:function(newIndex){mfp.direction=(newIndex>=mfp.index);mfp.index=newIndex;mfp.updateItemHTML();},preloadNearbyImages:function(){var p=mfp.st.gallery.preload,preloadBefore=Math.min(p[0],mfp.items.length),preloadAfter=Math.min(p[1],mfp.items.length),i;for(i=1;i<=(mfp.direction?preloadAfter:preloadBefore);i++){mfp._preloadItem(mfp.index+i);}
for(i=1;i<=(mfp.direction?preloadBefore:preloadAfter);i++){mfp._preloadItem(mfp.index-i);}},_preloadItem:function(index){index=_getLoopedId(index);if(mfp.items[index].preloaded){return;}
var item=mfp.items[index];if(!item.parsed){item=mfp.parseEl(index);}
_mfpTrigger('LazyLoad',item);if(item.type==='image'){item.img=$('<img class="mfp-img" />').on('load.mfploader',function(){item.hasSize=true;}).on('error.mfploader',function(){item.hasSize=true;item.loadError=true;_mfpTrigger('LazyLoadError',item);}).attr('src',item.src);}
item.preloaded=true;}}});var RETINA_NS='retina';$.magnificPopup.registerModule(RETINA_NS,{options:{replaceSrc:function(item){return item.src.replace(/\.\w+$/,function(m){return'@2x'+m;});},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var st=mfp.st.retina,ratio=st.ratio;ratio=!isNaN(ratio)?ratio:ratio();if(ratio>1){_mfpOn('ImageHasSize'+'.'+RETINA_NS,function(e,item){item.img.css({'max-width':item.img[0].naturalWidth/ratio,'width':'100%'});});_mfpOn('ElementParse'+'.'+RETINA_NS,function(e,item){item.src=st.replaceSrc(item,ratio);});}}}}});(function(){var ghostClickDelay=1000,supportsTouch='ontouchstart'in window,unbindTouchMove=function(){_window.off('touchmove'+ns+' touchend'+ns);},eName='mfpFastClick',ns='.'+eName;$.fn.mfpFastClick=function(callback){return $(this).each(function(){var elem=$(this),lock;if(supportsTouch){var timeout,startX,startY,pointerMoved,point,numPointers;elem.on('touchstart'+ns,function(e){pointerMoved=false;numPointers=1;point=e.originalEvent?e.originalEvent.touches[0]:e.touches[0];startX=point.clientX;startY=point.clientY;_window.on('touchmove'+ns,function(e){point=e.originalEvent?e.originalEvent.touches:e.touches;numPointers=point.length;point=point[0];if(Math.abs(point.clientX-startX)>10||Math.abs(point.clientY-startY)>10){pointerMoved=true;unbindTouchMove();}}).on('touchend'+ns,function(e){unbindTouchMove();if(pointerMoved||numPointers>1){return;}
lock=true;e.preventDefault();clearTimeout(timeout);timeout=setTimeout(function(){lock=false;},ghostClickDelay);callback();});});}
elem.on('click'+ns,function(){if(!lock){callback();}});});};$.fn.destroyMfpFastClick=function(){$(this).off('touchstart'+ns+' click'+ns);if(supportsTouch)_window.off('touchmove'+ns+' touchend'+ns);};})();_checkInstance();}));
jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10*--t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});;
(function(){
var t=[].indexOf||function(t){
for (var e=0, n=this.length; e < n; e++){
if(e in this&&this[e]===t) return e
}
return -1
},
e=[].slice;
(function(t, e){
if(typeof define==="function"&&define.amd){
return define("waypoints", ["jquery"], function(n){
return e(n, t)
})
}else{
return e(t.jQuery, t)
}})(this, function(n, r){
var i, o, l, s, f, u, a, c, h, d, p, y, v, w, g, m;
i=n(r);
c=t.call(r, "ontouchstart") >=0;
s={
horizontal: {},
vertical: {}};
f=1;
a={};
u="waypoints-context-id";
p="resize.waypoints";
y="scroll.waypoints";
v=1;
w="waypoints-waypoint-ids";
g="waypoint";
m="waypoints";
o=function(){
function t(t){
var e=this;
this.$element=t;
this.element=t[0];
this.didResize=false;
this.didScroll=false;
this.id="context" + f++;
this.oldScroll={
x: t.scrollLeft(),
y: t.scrollTop()
};
this.waypoints={
horizontal: {},
vertical: {}};
t.data(u, this.id);
a[this.id]=this;
t.bind(y, function(){
var t;
if(!(e.didScroll||c)){
e.didScroll=true;
t=function(){
e.doScroll();
return e.didScroll=false
};
return r.setTimeout(t, n[m].settings.scrollThrottle)
}});
t.bind(p, function(){
var t;
if(!e.didResize){
e.didResize=true;
t=function(){
n[m]("refresh");
return e.didResize=false
};
return r.setTimeout(t, n[m].settings.resizeThrottle)
}})
}
t.prototype.doScroll=function(){
var t, e=this;
t={
horizontal: {
newScroll: this.$element.scrollLeft(),
oldScroll: this.oldScroll.x,
forward: "right",
backward: "left"
},
vertical: {
newScroll: this.$element.scrollTop(),
oldScroll: this.oldScroll.y,
forward: "down",
backward: "up"
}};
if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){
n[m]("refresh")
}
n.each(t, function(t, r){
var i, o, l;
l=[];
o=r.newScroll > r.oldScroll;
i=o ? r.forward:r.backward;
n.each(e.waypoints[t], function(t, e){
var n, i;
if(r.oldScroll < (n=e.offset)&&n <=r.newScroll){
return l.push(e)
}else if(r.newScroll < (i=e.offset)&&i <=r.oldScroll){
return l.push(e)
}});
l.sort(function(t, e){
return t.offset - e.offset
});
if(!o){
l.reverse()
}
return n.each(l, function(t, e){
if(e.options.continuous||t===l.length - 1){
return e.trigger([i])
}})
});
return this.oldScroll={
x: t.horizontal.newScroll,
y: t.vertical.newScroll
}};
t.prototype.refresh=function(){
var t, e, r, i=this;
r=n.isWindow(this.element);
e=this.$element.offset();
this.doScroll();
t={
horizontal: {
contextOffset: r ? 0:e.left,
contextScroll: r ? 0:this.oldScroll.x,
contextDimension: this.$element.width(),
oldScroll: this.oldScroll.x,
forward: "right",
backward: "left",
offsetProp: "left"
},
vertical: {
contextOffset: r ? 0:e.top,
contextScroll: r ? 0:this.oldScroll.y,
contextDimension: r ? n[m]("viewportHeight"):this.$element.height(),
oldScroll: this.oldScroll.y,
forward: "down",
backward: "up",
offsetProp: "top"
}};
return n.each(t, function(t, e){
return n.each(i.waypoints[t], function(t, r){
var i, o, l, s, f;
i=r.options.offset;
l=r.offset;
o=n.isWindow(r.element) ? 0:r.$element.offset()[e.offsetProp];
if(n.isFunction(i)){
i=i.apply(r.element)
}else if(typeof i==="string"){
i=parseFloat(i);
if(r.options.offset.indexOf("%") > -1){
i=Math.ceil(e.contextDimension * i / 100)
}}
r.offset=o - e.contextOffset + e.contextScroll - i;
if(r.options.onlyOnScroll&&l!=null||!r.enabled){
return
}
if(l!==null&&l < (s=e.oldScroll)&&s <=r.offset){
return r.trigger([e.backward])
}else if(l!==null&&l > (f=e.oldScroll)&&f >=r.offset){
return r.trigger([e.forward])
}else if(l===null&&e.oldScroll >=r.offset){
return r.trigger([e.forward])
}})
})
};
t.prototype.checkEmpty=function(){
if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){
this.$element.unbind([p, y].join(" "));
return delete a[this.id]
}};
return t
}();
l=function(){
function t(t, e, r){
var i, o;
r=n.extend({}, n.fn[g].defaults, r);
if(r.offset==="bottom-in-view"){
r.offset=function(){
var t;
t=n[m]("viewportHeight");
if(!n.isWindow(e.element)){
t=e.$element.height()
}
return t - n(this).outerHeight()
}}
this.$element=t;
this.element=t[0];
this.axis=r.horizontal ? "horizontal":"vertical";
this.callback=r.handler;
this.context=e;
this.enabled=r.enabled;
this.id="waypoints" + v++;
this.offset=null;
this.options=r;
e.waypoints[this.axis][this.id]=this;
s[this.axis][this.id]=this;
i=(o=t.data(w))!=null ? o:[];
i.push(this.id);
t.data(w, i)
}
t.prototype.trigger=function(t){
if(!this.enabled){
return
}
if(this.callback!=null){
this.callback.apply(this.element, t)
}
if(this.options.triggerOnce){
return this.destroy()
}};
t.prototype.disable=function(){
return this.enabled=false
};
t.prototype.enable=function(){
this.context.refresh();
return this.enabled=true
};
t.prototype.destroy=function(){
delete s[this.axis][this.id];
delete this.context.waypoints[this.axis][this.id];
return this.context.checkEmpty()
};
t.getWaypointsByElement=function(t){
var e, r;
r=n(t).data(w);
if(!r){
return []
}
e=n.extend({}, s.horizontal, s.vertical);
return n.map(r, function(t){
return e[t]
})
};
return t
}();
d={
init: function(t, e){
var r;
if(e==null){
e={}}
if((r=e.handler)==null){
e.handler=t
}
this.each(function(){
var t, r, i, s;
t=n(this);
i=(s=e.context)!=null ? s:n.fn[g].defaults.context;
if(!n.isWindow(i)){
i=t.closest(i)
}
i=n(i);
r=a[i.data(u)];
if(!r){
r=new o(i)
}
return new l(t, r, e)
});
n[m]("refresh");
return this
},
disable: function(){
return d._invoke(this, "disable")
},
enable: function(){
return d._invoke(this, "enable")
},
destroy: function(){
return d._invoke(this, "destroy")
},
prev: function(t, e){
return d._traverse.call(this, t, e, function(t, e, n){
if(e > 0){
return t.push(n[e - 1])
}})
},
next: function(t, e){
return d._traverse.call(this, t, e, function(t, e, n){
if(e < n.length - 1){
return t.push(n[e + 1])
}})
},
_traverse: function(t, e, i){
var o, l;
if(t==null){
t="vertical"
}
if(e==null){
e=r
}
l=h.aggregate(e);
o=[];
this.each(function(){
var e;
e=n.inArray(this, l[t]);
return i(o, e, l[t])
});
return this.pushStack(o)
},
_invoke: function(t, e){
t.each(function(){
var t;
t=l.getWaypointsByElement(this);
return n.each(t, function(t, n){
n[e]();
return true
})
});
return this
}};
n.fn[g]=function(){
var t, r;
r=arguments[0], t=2 <=arguments.length ? e.call(arguments, 1):[];
if(d[r]){
return d[r].apply(this, t)
}else if(n.isFunction(r)){
return d.init.apply(this, arguments)
}else if(n.isPlainObject(r)){
return d.init.apply(this, [null, r])
}else if(!r){
return n.error("jQuery Waypoints needs a callback function or handler option.")
}else{
return n.error("The " + r + " method does not exist in jQuery Waypoints.")
}};
n.fn[g].defaults={
context: r,
continuous: true,
enabled: true,
horizontal: false,
offset: 0,
triggerOnce: false
};
h={
refresh: function(){
return n.each(a, function(t, e){
return e.refresh()
})
},
viewportHeight: function(){
var t;
return (t=r.innerHeight)!=null ? t:i.height()
},
aggregate: function(t){
var e, r, i;
e=s;
if(t){
e=(i=a[n(t).data(u)])!=null ? i.waypoints:void 0
}
if(!e){
return []
}
r={
horizontal: [],
vertical: []
};
n.each(r, function(t, i){
n.each(e[t], function(t, e){
return i.push(e)
});
i.sort(function(t, e){
return t.offset - e.offset
});
r[t]=n.map(i, function(t){
return t.element
});
return r[t]=n.unique(r[t])
});
return r
},
above: function(t){
if(t==null){
t=r
}
return h._filter(t, "vertical", function(t, e){
return e.offset <=t.oldScroll.y
})
},
below: function(t){
if(t==null){
t=r
}
return h._filter(t, "vertical", function(t, e){
return e.offset > t.oldScroll.y
})
},
left: function(t){
if(t==null){
t=r
}
return h._filter(t, "horizontal", function(t, e){
return e.offset <=t.oldScroll.x
})
},
right: function(t){
if(t==null){
t=r
}
return h._filter(t, "horizontal", function(t, e){
return e.offset > t.oldScroll.x
})
},
enable: function(){
return h._invoke("enable")
},
disable: function(){
return h._invoke("disable")
},
destroy: function(){
return h._invoke("destroy")
},
extendFn: function(t, e){
return d[t]=e
},
_invoke: function(t){
var e;
e=n.extend({}, s.vertical, s.horizontal);
return n.each(e, function(e, n){
n[t]();
return true
})
},
_filter: function(t, e, r){
var i, o;
i=a[n(t).data(u)];
if(!i){
return []
}
o=[];
n.each(i.waypoints[e], function(t, e){
if(r(i, e)){
return o.push(e)
}});
o.sort(function(t, e){
return t.offset - e.offset
});
return n.map(o, function(t){
return t.element
})
}};
n[m]=function(){
var t, n;
n=arguments[0], t=2 <=arguments.length ? e.call(arguments, 1):[];
if(h[n]){
return h[n].apply(null, t)
}else{
return h.aggregate.call(null, n)
}};
n[m].settings={
resizeThrottle: 100,
scrollThrottle: 30
};
return i.load(function(){
return n[m]("refresh")
})
})
}).call(this);
(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b=d.documentElement.style,c;if(typeof b[a]=="string")return a;a=f(a);for(var e=0,h=g.length;e<h;e++){c=g[e]+a;if(typeof b[c]=="string")return c}},i=h("transform"),j=h("transitionProperty"),k={csstransforms:function(){return!!i},csstransforms3d:function(){var a=!!h("perspective");if(a){var c=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d="@media ("+c.join("transform-3d),(")+"modernizr)",e=b("<style>"+d+"{#modernizr{height:3px}}"+"</style>").appendTo("head"),f=b('<div id="modernizr" />').appendTo("html");a=f.height()===3,f.remove(),e.remove()}
return a},csstransitions:function(){return!!j}},l;if(e)
for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m=" ",n;for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}
if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var e=b.data(a,"isoTransform")||{},f={},g,h={},j;f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}
var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[j],r=h("transitionDuration"));var s=b.event,t=b.event.handle?"handle":"dispatch",u;s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",u&&clearTimeout(u),u=setTimeout(function(){s[t].apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var v=["width","height"],w=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=v.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;f<g;f++)e=d[f],this.originalStyle[e]=c[e]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var h={"original-order":function(a,b){return b.elemCount++,b.elemCount},random:function(){return Math.random()}};this.options.getSortData=b.extend(this.options.getSortData,h),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var i=this;setTimeout(function(){i.element.addClass(i.options.containerClass)},0),this.options.resizable&&w.bind("smartresize.isotope",function(){i.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(a){var b=this.options.itemSelector,c=b?a.filter(b).add(a.find(b)):a,d={position:"absolute"};return c=c.filter(function(a,b){return b.nodeType===1}),this.usingTransforms&&(d.left=0,d.top=0),c.css(d).addClass(this.options.itemClass),this.updateSortData(c,!0),c},_init:function(a){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(a)},option:function(a){if(b.isPlainObject(a)){this.options=b.extend(!0,this.options,a);var c;for(var d in a)c="_update"+f(d),this[c]&&this[c]()}},_updateAnimationEngine:function(){var a=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,""),b;switch(a){case"css":case"none":b=!1;break;case"jquery":b=!0;break;default:b=!e.csstransitions}
this.isUsingJQueryAnimation=b,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var a=this.usingTransforms=this.options.transformsEnabled&&e.csstransforms&&e.csstransitions&&!this.isUsingJQueryAnimation;a||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=a?this._translate:this._positionAbs},_filter:function(a){var b=this.options.filter===""?"*":this.options.filter;if(!b)return a;var c=this.options.hiddenClass,d="."+c,e=a.filter(d),f=e;if(b!=="*"){f=e.filter(b);var g=a.not(d).not(b).addClass(c);this.styleQueue.push({$el:g,style:this.options.hiddenStyle})}
return this.styleQueue.push({$el:f,style:this.options.visibleStyle}),f.removeClass(c),a.filter(b)},updateSortData:function(a,c){var d=this,e=this.options.getSortData,f,g;a.each(function(){f=b(this),g={};for(var a in e)!c&&a==="original-order"?g[a]=b.data(this,"isotope-sort-data")[a]:g[a]=e[a](f,d);b.data(this,"isotope-sort-data",g)})},_sort:function(){var a=this.options.sortBy,b=this._getSorter,c=this.options.sortAscending?1:-1,d=function(d,e){var f=b(d,a),g=b(e,a);return f===g&&a!=="original-order"&&(f=b(d,"original-order"),g=b(e,"original-order")),(f>g?1:f<g?-1:0)*c};this.$filteredAtoms.sort(d)},_getSorter:function(a,c){return b.data(a,"isotope-sort-data")[c]},_translate:function(a,b){return{translate:[a,b]}},_positionAbs:function(a,b){return{left:a,top:b}},_pushPosition:function(a,b,c){b=Math.round(b+this.offset.left),c=Math.round(c+this.offset.top);var d=this.getPositionStyles(b,c);this.styleQueue.push({$el:a,style:d}),this.options.itemPositionDataEnabled&&a.data("isotope-item-position",{x:b,y:c})},layout:function(a,b){var c=this.options.layoutMode;this["_"+c+"Layout"](a);if(this.options.resizesContainer){var d=this["_"+c+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:d})}
this._processStyleQueue(a,b),this.isLaidOut=!0},_processStyleQueue:function(a,c){var d=this.isLaidOut?this.isUsingJQueryAnimation?"animate":"css":"css",f=this.options.animationOptions,g=this.options.onLayout,h,i,j,k;i=function(a,b){b.$el[d](b.style,f)};if(this._isInserting&&this.isUsingJQueryAnimation)i=function(a,b){h=b.$el.hasClass("no-transition")?"css":d,b.$el[h](b.style,f)};else if(c||g||f.complete){var l=!1,m=[c,g,f.complete],n=this;j=!0,k=function(){if(l)return;var b;for(var c=0,d=m.length;c<d;c++)b=m[c],typeof b=="function"&&b.call(n.element,a,n);l=!0};if(this.isUsingJQueryAnimation&&d==="animate")f.complete=k,j=!1;else if(e.csstransitions){var o=0,p=this.styleQueue[0],s=p&&p.$el,t;while(!s||!s.length){t=this.styleQueue[o++];if(!t)return;s=t.$el}
var u=parseFloat(getComputedStyle(s[0])[r]);u>0&&(i=function(a,b){b.$el[d](b.style,f).one(q,k)},j=!1)}}
b.each(this.styleQueue,i),j&&k(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){this.$allAtoms=this.$allAtoms.not(a),this.$filteredAtoms=this.$filteredAtoms.not(a);var c=this,d=function(){a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),w.unbind(".isotope")},_getSegments:function(a){var b=this.options.layoutMode,c=a?"rowHeight":"columnWidth",d=a?"height":"width",e=a?"rows":"cols",g=this.element[d](),h,i=this.options[b]&&this.options[b][c]||this.$filteredAtoms["outer"+f(d)](!0)||g;h=Math.floor(g/i),h=Math.max(h,1),this[b][e]=h,this[b][c]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;this.masonry.colYs=[];while(a--)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);e=Math.min(e,d.cols);if(e===1)c._masonryPlaceBrick(a,d.colYs);else{var f=d.cols+1-e,g=[],h,i;for(i=0;i<f;i++)h=d.colYs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryPlaceBrick(a,g)}})},_masonryPlaceBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)
if(b[e]===c){d=e;break}
var g=this.masonry.columnWidth*d,h=c;this._pushPosition(a,g,h);var i=c+a.outerHeight(!0),j=this.masonry.cols+1-f;for(e=0;e<j;e++)this.masonry.colYs[d+e]=i},_masonryGetContainerSize:function(){var a=Math.max.apply(Math,this.masonry.colYs);return{height:a}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(a){var c=this,d=this.element.width(),e=this.fitRows;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);e.x!==0&&f+e.x>d&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,0,c.straightDown.y),c.straightDown.y+=d.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(a--)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);e=Math.min(e,d.rows);if(e===1)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var f=d.rows+1-e,g=[],h,i;for(i=0;i<f;i++)h=d.rowXs.slice(i,i+e),g[i]=Math.max.apply(Math,h);c._masonryHorizontalPlaceBrick(a,g)}})},_masonryHorizontalPlaceBrick:function(a,b){var c=Math.min.apply(Math,b),d=0;for(var e=0,f=b.length;e<f;e++)
if(b[e]===c){d=e;break}
var g=c,h=this.masonryHorizontal.rowHeight*d;this._pushPosition(a,g,h);var i=c+a.outerWidth(!0),j=this.masonryHorizontal.rows+1-f;for(e=0;e<j;e++)this.masonryHorizontal.rowXs[d+e]=i},_masonryHorizontalGetContainerSize:function(){var a=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:a}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(a){var c=this,d=this.element.height(),e=this.fitColumns;a.each(function(){var a=b(this),f=a.outerWidth(!0),g=a.outerHeight(!0);e.y!==0&&g+e.y>d&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,c.straightAcross.x,0),c.straightAcross.x+=d.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function h(){a.call(c,d)}
function i(a){var c=a.target;c.src!==f&&b.inArray(c,g)===-1&&(g.push(c),--e<=0&&(setTimeout(h),d.unbind(".imagesLoaded",i)))}
var c=this,d=c.find("img").add(c.filter("img")),e=d.length,f="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",g=[];return e||h(),d.bind("load.imagesLoaded error.imagesLoaded",i).each(function(){var a=this.src;this.src=f,this.src=a}),c};var x=function(b){a.console&&a.console.error(b)};b.fn.isotope=function(a,c){if(typeof a=="string"){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");if(!c){x("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'");return}
if(!b.isFunction(c[a])||a.charAt(0)==="_"){x("no such method '"+a+"' for isotope instance");return}
c[a].apply(c,d)})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}})(window,jQuery);
(function(t){"use strict";function e(t){if(t){if("string"==typeof n[t])return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e,o=0,r=i.length;r>o;o++)
if(e=i[o]+t,"string"==typeof n[e])return e}}
var i="Webkit Moz ms Ms O".split(" "),n=document.documentElement.style;"function"==typeof define&&define.amd?define(function(){return e}):t.getStyleProperty=e})(window),function(t){"use strict";function e(t){var e=parseFloat(t),i=-1===t.indexOf("%")&&!isNaN(e);return i&&e}
function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0,i=s.length;i>e;e++){var n=s[e];t[n]=0}
return t}
function n(t){function n(t){if("string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var n=r(t);if("none"===n.display)return i();var h={};h.width=t.offsetWidth,h.height=t.offsetHeight;for(var p=h.isBorderBox=!(!a||!n[a]||"border-box"!==n[a]),u=0,f=s.length;f>u;u++){var d=s[u],c=n[d],l=parseFloat(c);h[d]=isNaN(l)?0:l}
var m=h.paddingLeft+h.paddingRight,y=h.paddingTop+h.paddingBottom,g=h.marginLeft+h.marginRight,v=h.marginTop+h.marginBottom,_=h.borderLeftWidth+h.borderRightWidth,b=h.borderTopWidth+h.borderBottomWidth,L=p&&o,E=e(n.width);E!==!1&&(h.width=E+(L?0:m+_));var I=e(n.height);return I!==!1&&(h.height=I+(L?0:y+b)),h.innerWidth=h.width-(m+_),h.innerHeight=h.height-(y+b),h.outerWidth=h.width+g,h.outerHeight=h.height+v,h}}
var o,a=t("boxSizing");return function(){if(a){var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style[a]="border-box";var i=document.body||document.documentElement;i.appendChild(t);var n=r(t);o=200===e(n.width),i.removeChild(t)}}(),n}
var o=document.defaultView,r=o&&o.getComputedStyle?function(t){return o.getComputedStyle(t,null)}:function(t){return t.currentStyle},s=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"];"function"==typeof define&&define.amd?define(["get-style-property"],n):t.getSize=n(t.getStyleProperty)}(window),function(t){"use strict";var e=document.documentElement,i=function(){};e.addEventListener?i=function(t,e,i){t.addEventListener(e,i,!1)}:e.attachEvent&&(i=function(e,i,n){e[i+n]=n.handleEvent?function(){var e=t.event;e.target=e.target||e.srcElement,n.handleEvent.call(n,e)}:function(){var i=t.event;i.target=i.target||i.srcElement,n.call(e,i)},e.attachEvent("on"+i,e[i+n])});var n=function(){};e.removeEventListener?n=function(t,e,i){t.removeEventListener(e,i,!1)}:e.detachEvent&&(n=function(t,e,i){t.detachEvent("on"+e,t[e+i]);try{delete t[e+i]}catch(n){t[e+i]=void 0}});var o={bind:i,unbind:n};"function"==typeof define&&define.amd?define(o):t.eventie=o}(this),function(t){"use strict";function e(t){"function"==typeof t&&(e.isReady?t():r.push(t))}
function i(t){var i="readystatechange"===t.type&&"complete"!==o.readyState;if(!e.isReady&&!i){e.isReady=!0;for(var n=0,s=r.length;s>n;n++){var a=r[n];a()}}}
function n(n){return n.bind(o,"DOMContentLoaded",i),n.bind(o,"readystatechange",i),n.bind(t,"load",i),e}
var o=t.document,r=[];e.isReady=!1,"function"==typeof define&&define.amd?define(["eventie"],n):t.docReady=n(t.eventie)}(this),function(t){"use strict";function e(){}
function i(t,e){if(o)return e.indexOf(t);for(var i=e.length;i--;)
if(e[i]===t)return i;return-1}
var n=e.prototype,o=Array.prototype.indexOf?!0:!1;n._getEvents=function(){return this._events||(this._events={})},n.getListeners=function(t){var e,i,n=this._getEvents();if("object"==typeof t){e={};for(i in n)n.hasOwnProperty(i)&&t.test(i)&&(e[i]=n[i])}else e=n[t]||(n[t]=[]);return e},n.getListenersAsObject=function(t){var e,i=this.getListeners(t);return i instanceof Array&&(e={},e[t]=i),e||i},n.addListener=function(t,e){var n,o=this.getListenersAsObject(t);for(n in o)o.hasOwnProperty(n)&&-1===i(e,o[n])&&o[n].push(e);return this},n.on=n.addListener,n.defineEvent=function(t){return this.getListeners(t),this},n.defineEvents=function(t){for(var e=0;t.length>e;e+=1)this.defineEvent(t[e]);return this},n.removeListener=function(t,e){var n,o,r=this.getListenersAsObject(t);for(o in r)r.hasOwnProperty(o)&&(n=i(e,r[o]),-1!==n&&r[o].splice(n,1));return this},n.off=n.removeListener,n.addListeners=function(t,e){return this.manipulateListeners(!1,t,e)},n.removeListeners=function(t,e){return this.manipulateListeners(!0,t,e)},n.manipulateListeners=function(t,e,i){var n,o,r=t?this.removeListener:this.addListener,s=t?this.removeListeners:this.addListeners;if("object"!=typeof e||e instanceof RegExp)
for(n=i.length;n--;)r.call(this,e,i[n]);else
for(n in e)e.hasOwnProperty(n)&&(o=e[n])&&("function"==typeof o?r.call(this,n,o):s.call(this,n,o));return this},n.removeEvent=function(t){var e,i=typeof t,n=this._getEvents();if("string"===i)delete n[t];else if("object"===i)
for(e in n)n.hasOwnProperty(e)&&t.test(e)&&delete n[e];else delete this._events;return this},n.emitEvent=function(t,e){var i,n,o,r=this.getListenersAsObject(t);for(n in r)
if(r.hasOwnProperty(n))
for(i=r[n].length;i--;)o=e?r[n][i].apply(null,e):r[n][i](),o===!0&&this.removeListener(t,r[n][i]);return this},n.trigger=n.emitEvent,n.emit=function(t){var e=Array.prototype.slice.call(arguments,1);return this.emitEvent(t,e)},"function"==typeof define&&define.amd?define(function(){return e}):t.EventEmitter=e}(this),function(t){"use strict";function e(){}
function i(t){function i(e){e.prototype.option||(e.prototype.option=function(e){t.isPlainObject(e)&&(this.options=t.extend(!0,this.options,e))})}
function o(e,i){t.fn[e]=function(o){if("string"==typeof o){for(var s=n.call(arguments,1),a=0,h=this.length;h>a;a++){var p=this[a],u=t.data(p,e);if(u)
if(t.isFunction(u[o])&&"_"!==o.charAt(0)){var f=u[o].apply(u,s);if(void 0!==f)return f}else r("no such method '"+o+"' for "+e+" instance");else r("cannot call methods on "+e+" prior to initialization; "+"attempted to call '"+o+"'")}
return this}
return this.each(function(){var n=t.data(this,e);n?(n.option(o),n._init()):(n=new i(this,o),t.data(this,e,n))})}}
if(t){var r="undefined"==typeof console?e:function(t){console.error(t)};t.bridget=function(t,e){i(e),o(t,e)}}}
var n=Array.prototype.slice;"function"==typeof define&&define.amd?define(["jquery"],i):i(t.jQuery)}(window),function(t,e){"use strict";function i(t,e){return t[a](e)}
function n(t){if(!t.parentNode){var e=document.createDocumentFragment();e.appendChild(t)}}
function o(t,e){n(t);for(var i=t.parentNode.querySelectorAll(e),o=0,r=i.length;r>o;o++)
if(i[o]===t)return!0;return!1}
function r(t,e){return n(t),i(t,e)}
var s,a=function(){if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0,n=t.length;n>i;i++){var o=t[i],r=o+"MatchesSelector";if(e[r])return r}}();if(a){var h=document.createElement("div"),p=i(h,"div");s=p?i:r}else s=o;"function"==typeof define&&define.amd?define(function(){return s}):window.matchesSelector=s}(this,Element.prototype),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}
function i(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}
var n=t.getSize,o=t.getStyleProperty,r=t.EventEmitter,s=document.defaultView,a=s&&s.getComputedStyle?function(t){return s.getComputedStyle(t,null)}:function(t){return t.currentStyle},h=o("transition"),p=o("transform"),u=h&&p,f=!!o("perspective"),d={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"}[h],c=["transform","transition","transitionDuration","transitionProperty"],l=function(){for(var t={},e=0,i=c.length;i>e;e++){var n=c[e],r=o(n);r&&r!==n&&(t[n]=r)}
return t}();e(i.prototype,r.prototype),i.prototype._create=function(){this.css({position:"absolute"})},i.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.prototype.getSize=function(){this.size=n(this.element)},i.prototype.css=function(t){var e=this.element.style;for(var i in t){var n=l[i]||i;e[n]=t[i]}},i.prototype.getPosition=function(){var t=a(this.element),e=this.layout.options,i=e.isOriginLeft,n=e.isOriginTop,o=parseInt(t[i?"left":"right"],10),r=parseInt(t[n?"top":"bottom"],10);o=isNaN(o)?0:o,r=isNaN(r)?0:r;var s=this.layout.size;o-=i?s.paddingLeft:s.paddingRight,r-=n?s.paddingTop:s.paddingBottom,this.position.x=o,this.position.y=r},i.prototype.layoutPosition=function(){var t=this.layout.size,e=this.layout.options,i={};e.isOriginLeft?(i.left=this.position.x+t.paddingLeft+"px",i.right=""):(i.right=this.position.x+t.paddingRight+"px",i.left=""),e.isOriginTop?(i.top=this.position.y+t.paddingTop+"px",i.bottom=""):(i.bottom=this.position.y+t.paddingBottom+"px",i.top=""),this.css(i),this.emitEvent("layout",[this])};var m=f?function(t,e){return"translate3d("+t+"px, "+e+"px, 0)"}:function(t,e){return"translate("+t+"px, "+e+"px)"};i.prototype._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=parseInt(t,10),r=parseInt(e,10),s=o===this.position.x&&r===this.position.y;if(this.setPosition(t,e),s&&!this.isTransitioning)return this.layoutPosition(),void 0;var a=t-i,h=e-n,p={},u=this.layout.options;a=u.isOriginLeft?a:-a,h=u.isOriginTop?h:-h,p.transform=m(a,h),this.transition({to:p,onTransitionEnd:this.layoutPosition,isCleaning:!0})},i.prototype.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},i.prototype.moveTo=u?i.prototype._transitionTo:i.prototype.goTo,i.prototype.setPosition=function(t,e){this.position.x=parseInt(t,10),this.position.y=parseInt(e,10)},i.prototype._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd&&t.onTransitionEnd.call(this)},i.prototype._transition=function(t){var e=this.layout.options.transitionDuration;if(!parseFloat(e))return this._nonTransition(t),void 0;var i=t.to,n=[];for(var o in i)n.push(o);var r={};if(r.transitionProperty=n.join(","),r.transitionDuration=e,this.element.addEventListener(d,this,!1),(t.isCleaning||t.onTransitionEnd)&&this.on("transitionEnd",function(e){return t.isCleaning&&e._removeStyles(i),t.onTransitionEnd&&t.onTransitionEnd.call(e),!0}),t.from){this.css(t.from);var s=this.element.offsetHeight;s=null}
this.css(r),this.css(i),this.isTransitioning=!0},i.prototype.transition=i.prototype[h?"_transition":"_nonTransition"],i.prototype.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},i.prototype.onotransitionend=function(t){this.ontransitionend(t)},i.prototype.ontransitionend=function(t){t.target===this.element&&(this.removeTransitionStyles(),this.element.removeEventListener(d,this,!1),this.isTransitioning=!1,this.emitEvent("transitionEnd",[this]))},i.prototype._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var y={transitionProperty:"",transitionDuration:""};i.prototype.removeTransitionStyles=function(){this.css(y)},i.prototype.removeElem=function(){this.element.parentNode.removeChild(this.element),this.emitEvent("remove",[this])},i.prototype.remove=h?function(){var t=this;this.on("transitionEnd",function(){return t.removeElem(),!0}),this.hide()}:i.prototype.removeElem,i.prototype.reveal=function(){this.css({display:""});var t=this.layout.options;this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0})},i.prototype.hide=function(){this.css({display:""});var t=this.layout.options;this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:function(){this.css({display:"none"})}})},i.prototype.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},t.Outlayer={Item:i}}(window),function(t){"use strict";function e(t,e){for(var i in e)t[i]=e[i];return t}
function i(t){return"[object Array]"===v.call(t)}
function n(t){var e=[];if(i(t))e=t;else if("number"==typeof t.length)
for(var n=0,o=t.length;o>n;n++)e.push(t[n]);else e.push(t);return e}
function o(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()}
function r(t,i){if("string"==typeof t&&(t=l.querySelector(t)),!t||!_(t))return m&&m.error("Bad "+this.settings.namespace+" element: "+t),void 0;this.element=t,this.options=e({},this.options),e(this.options,i);var n=++L;this.element.outlayerGUID=n,E[n]=this,this._create(),this.options.isInitLayout&&this.layout()}
function s(t,i){t.prototype[i]=e({},r.prototype[i])}
var a=t.Outlayer,h=a.Item,p=t.docReady,u=t.EventEmitter,f=t.eventie,d=t.getSize,c=t.matchesSelector,l=t.document,m=t.console,y=t.jQuery,g=function(){},v=Object.prototype.toString,_="object"==typeof HTMLElement?function(t){return t instanceof HTMLElement}:function(t){return t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},b=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++)
if(t[i]===e)return i;return-1},L=0,E={};r.prototype.settings={namespace:"outlayer",item:a.Item},r.prototype.options={containerStyle:{position:"relative"},isInitLayout:!0,isOriginLeft:!0,isOriginTop:!0,isResizeBound:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}},e(r.prototype,u.prototype),r.prototype._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),e(this.element.style,this.options.containerStyle),this.options.isResizeBound&&this.bindResize()},r.prototype.reloadItems=function(){this.items=this._getItems(this.element.children)},r.prototype._getItems=function(t){for(var e=this._filterFindItemElements(t),i=this.settings.item,n=[],o=0,r=e.length;r>o;o++){var s=e[o],a=new i(s,this,this.options.itemOptions);n.push(a)}
return n},r.prototype._filterFindItemElements=function(t){t=n(t);var e=this.options.itemSelector;if(!e)return t;for(var i=[],o=0,r=t.length;r>o;o++){var s=t[o];c(s,e)&&i.push(s);for(var a=s.querySelectorAll(e),h=0,p=a.length;p>h;h++)i.push(a[h])}
return i},r.prototype.getItemElements=function(){for(var t=[],e=0,i=this.items.length;i>e;e++)t.push(this.items[e].element);return t},r.prototype.layout=function(){this._resetLayout(),this._manageStamps();var t=void 0!==this.options.isLayoutInstant?this.options.isLayoutInstant:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},r.prototype._init=r.prototype.layout,r.prototype._resetLayout=function(){this.getSize()},r.prototype.getSize=function(){this.size=d(this.element)},r.prototype._getMeasurement=function(t,e){var i,n=this.options[t];n?("string"==typeof n?i=this.element.querySelector(n):_(n)&&(i=n),this[t]=i?d(i)[e]:n):this[t]=0},r.prototype.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},r.prototype._getItemsForLayout=function(t){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i];o.isIgnored||e.push(o)}
return e},r.prototype._layoutItems=function(t,e){if(!t||!t.length)return this.emitEvent("layoutComplete",[this,t]),void 0;this._itemsOn(t,"layout",function(){this.emitEvent("layoutComplete",[this,t])});for(var i=[],n=0,o=t.length;o>n;n++){var r=t[n],s=this._getItemLayoutPosition(r);s.item=r,s.isInstant=e,i.push(s)}
this._processLayoutQueue(i)},r.prototype._getItemLayoutPosition=function(){return{x:0,y:0}},r.prototype._processLayoutQueue=function(t){for(var e=0,i=t.length;i>e;e++){var n=t[e];this._positionItem(n.item,n.x,n.y,n.isInstant)}},r.prototype._positionItem=function(t,e,i,n){n?t.goTo(e,i):t.moveTo(e,i)},r.prototype._postLayout=function(){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))},r.prototype._getContainerSize=g,r.prototype._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},r.prototype._itemsOn=function(t,e,i){function n(){return o++,o===r&&i.call(s),!0}
for(var o=0,r=t.length,s=this,a=0,h=t.length;h>a;a++){var p=t[a];p.on(e,n)}},r.prototype.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},r.prototype.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},r.prototype.stamp=function(t){if(t=this._find(t)){this.stamps=this.stamps.concat(t);for(var e=0,i=t.length;i>e;e++){var n=t[e];this.ignore(n)}}},r.prototype.unstamp=function(t){if(t=this._find(t))
for(var e=0,i=t.length;i>e;e++){var n=t[e],o=b(this.stamps,n);-1!==o&&this.stamps.splice(o,1),this.unignore(n)}},r.prototype._find=function(t){return t?("string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n(t)):void 0},r.prototype._manageStamps=function(){if(this.stamps&&this.stamps.length){this._getBoundingRect();for(var t=0,e=this.stamps.length;e>t;t++){var i=this.stamps[t];this._manageStamp(i)}}},r.prototype._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},r.prototype._manageStamp=g,r.prototype._getElementOffset=function(t){var e=t.getBoundingClientRect(),i=this._boundingRect,n=d(t),o={left:e.left-i.left-n.marginLeft,top:e.top-i.top-n.marginTop,right:i.right-e.right-n.marginRight,bottom:i.bottom-e.bottom-n.marginBottom};return o},r.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},r.prototype.bindResize=function(){this.isResizeBound||(f.bind(t,"resize",this),this.isResizeBound=!0)},r.prototype.unbindResize=function(){f.unbind(t,"resize",this),this.isResizeBound=!1},r.prototype.onresize=function(){function t(){e.resize()}
this.resizeTimeout&&clearTimeout(this.resizeTimeout);var e=this;this.resizeTimeout=setTimeout(t,100)},r.prototype.resize=function(){var t=d(this.element),e=this.size&&t;e&&t.innerWidth===this.size.innerWidth||(this.layout(),delete this.resizeTimeout)},r.prototype.addItems=function(t){var e=this._getItems(t);if(e.length)return this.items=this.items.concat(e),e},r.prototype.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},r.prototype.prepended=function(t){var e=this._getItems(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},r.prototype.reveal=function(t){if(t&&t.length)
for(var e=0,i=t.length;i>e;e++){var n=t[e];n.reveal()}},r.prototype.hide=function(t){if(t&&t.length)
for(var e=0,i=t.length;i>e;e++){var n=t[e];n.hide()}},r.prototype.getItem=function(t){for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];if(n.element===t)return n}},r.prototype.getItems=function(t){if(t&&t.length){for(var e=[],i=0,n=t.length;n>i;i++){var o=t[i],r=this.getItem(o);r&&e.push(r)}
return e}},r.prototype.remove=function(t){t=n(t);var e=this.getItems(t);this._itemsOn(e,"remove",function(){this.emitEvent("removeComplete",[this,e])});for(var i=0,o=e.length;o>i;i++){var r=e[i];r.remove();var s=b(this.items,r);this.items.splice(s,1)}},r.prototype.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="";for(var e=0,i=this.items.length;i>e;e++){var n=this.items[e];n.destroy()}
this.unbindResize(),delete this.element.outlayerGUID},r.data=function(t){var e=t&&t.outlayerGUID;return e&&E[e]},r.create=function(t,i){function n(){r.apply(this,arguments)}
return e(n.prototype,r.prototype),s(n,"options"),s(n,"settings"),e(n.prototype.options,i),n.prototype.settings.namespace=t,n.data=r.data,n.Item=function(){h.apply(this,arguments)},n.Item.prototype=new r.Item,n.prototype.settings.item=n.Item,p(function(){for(var e=o(t),i=l.querySelectorAll(".js-"+e),r="data-"+e+"-options",s=0,a=i.length;a>s;s++){var h,p=i[s],u=p.getAttribute(r);try{h=u&&JSON.parse(u)}catch(f){m&&m.error("Error parsing "+r+" on "+p.nodeName.toLowerCase()+(p.id?"#"+p.id:"")+": "+f);continue}
var d=new n(p,h);y&&y.data(p,t,d)}}),y&&y.bridget&&y.bridget(t,n),n},r.Item=h,t.Outlayer=r}(window),function(t){"use strict";function e(t,e){var n=t.create("masonry");return n.prototype._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns();var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0);this.maxY=0},n.prototype.measureColumns=function(){var t=this.items[0].element;this.columnWidth=this.columnWidth||e(t).outerWidth,this.columnWidth+=this.gutter,this.cols=Math.floor((this.size.innerWidth+this.gutter)/this.columnWidth),this.cols=Math.max(this.cols,1)},n.prototype._getItemLayoutPosition=function(t){t.getSize();var e=Math.ceil(t.size.outerWidth/this.columnWidth);e=Math.min(e,this.cols);for(var n=this._getColGroup(e),o=Math.min.apply(Math,n),r=i(n,o),s={x:this.columnWidth*r,y:o},a=o+t.size.outerHeight,h=this.cols+1-n.length,p=0;h>p;p++)this.colYs[r+p]=a;return s},n.prototype._getColGroup=function(t){if(1===t)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;i>n;n++){var o=this.colYs.slice(n,n+t);e[n]=Math.max.apply(Math,o)}
return e},n.prototype._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this.options.isOriginLeft?n.left:n.right,r=o+i.outerWidth,s=Math.floor(o/this.columnWidth);s=Math.max(0,s);var a=Math.floor(r/this.columnWidth);a=Math.min(this.cols-1,a);for(var h=(this.options.isOriginTop?n.top:n.bottom)+i.outerHeight,p=s;a>=p;p++)this.colYs[p]=Math.max(h,this.colYs[p])},n.prototype._getContainerSize=function(){return this.maxY=Math.max.apply(Math,this.colYs),{height:this.maxY}},n}
var i=Array.prototype.indexOf?function(t,e){return t.indexOf(e)}:function(t,e){for(var i=0,n=t.length;n>i;i++){var o=t[i];if(o===e)return i}
return-1};"function"==typeof define&&define.amd?define(["outlayer","get-size"],e):t.Masonry=e(t.Outlayer,t.getSize)}(window);
;
(function(e, t, n){
function s(t, n){
this.bodyOverflowX;
this.callbacks={
hide: [],
show: []
};
this.checkInterval=null;
this.Content;
this.$el=e(t);
this.$elProxy;
this.elProxyPosition;
this.enabled=true;
this.options=e.extend({}, i, n);
this.mouseIsOverProxy=false;
this.namespace="tooltipster-" + Math.round(Math.random() * 1e5);
this.Status="hidden";
this.timerHide=null;
this.timerShow=null;
this.$tooltip;
this.options.iconTheme=this.options.iconTheme.replace(".", "");
this.options.theme=this.options.theme.replace(".", "");
this._init()
}
function o(t, n){
var r=true;
e.each(t, function(e, i){
if(typeof n[e]==="undefined"||t[e]!==n[e]){
r=false;
return false
}});
return r
}
function f(){
return !a&&u
}
function l(){
var e=n.body||n.documentElement,
t=e.style,
r="transition";
if(typeof t[r]=="string"){
return true
}
v=["Moz", "Webkit", "Khtml", "O", "ms"], r=r.charAt(0).toUpperCase() + r.substr(1);
for (var i=0; i < v.length; i++){
if(typeof t[v[i] + r]=="string"){
return true
}}
return false
}
var r="tooltipster",
i={
animation: "fade",
arrow: true,
arrowColor: "",
autoClose: true,
content: null,
contentAsHTML: false,
contentCloning: true,
delay: 200,
minWidth: 0,
maxWidth: null,
functionInit: function(e, t){},
functionBefore: function(e, t){
t()
},
functionReady: function(e, t){},
functionAfter: function(e){},
icon: "(?)",
iconCloning: true,
iconDesktop: false,
iconTouch: false,
iconTheme: "tooltipster-icon",
interactive: false,
interactiveTolerance: 350,
multiple: false,
offsetX: 0,
offsetY: 0,
onlyOne: false,
position: "top",
positionTracker: false,
speed: 350,
timer: 0,
theme: "tooltipster-default",
touchDevices: true,
trigger: "hover",
updateAnimation: true
};
s.prototype={
_init: function(){
var t=this;
if(n.querySelector){
if(t.options.content!==null){
t._content_set(t.options.content)
}else{
var r=t.$el.attr("title");
if(typeof r==="undefined") r=null;
t._content_set(r)
}
var i=t.options.functionInit.call(t.$el, t.$el, t.Content);
if(typeof i!=="undefined") t._content_set(i);
t.$el.removeAttr("title").addClass("tooltipstered");
if(!u&&t.options.iconDesktop||u&&t.options.iconTouch){
if(typeof t.options.icon==="string"){
t.$elProxy=e('<span class="' + t.options.iconTheme + '"></span>');
t.$elProxy.text(t.options.icon)
}else{
if(t.options.iconCloning) t.$elProxy=t.options.icon.clone(true);
else t.$elProxy=t.options.icon
}
t.$elProxy.insertAfter(t.$el)
}else{
t.$elProxy=t.$el
}
if(t.options.trigger=="hover"){
t.$elProxy.on("mouseenter." + t.namespace, function(){
if(!f()||t.options.touchDevices){
t.mouseIsOverProxy=true;
t._show()
}}).on("mouseleave." + t.namespace, function(){
if(!f()||t.options.touchDevices){
t.mouseIsOverProxy=false
}});
if(u&&t.options.touchDevices){
t.$elProxy.on("touchstart." + t.namespace, function(){
t._showNow()
})
}}else if(t.options.trigger=="click"){
t.$elProxy.on("click." + t.namespace, function(){
if(!f()||t.options.touchDevices){
t._show()
}})
}}
},
_show: function(){
var e=this;
if(e.Status!="shown"&&e.Status!="appearing"){
if(e.options.delay){
e.timerShow=setTimeout(function(){
if(e.options.trigger=="click"||e.options.trigger=="hover"&&e.mouseIsOverProxy){
e._showNow()
}}, e.options.delay)
} else e._showNow()
}},
_showNow: function(n){
var r=this;
r.options.functionBefore.call(r.$el, r.$el, function(){
if(r.enabled&&r.Content!==null){
if(n) r.callbacks.show.push(n);
r.callbacks.hide=[];
clearTimeout(r.timerShow);
r.timerShow=null;
clearTimeout(r.timerHide);
r.timerHide=null;
if(r.options.onlyOne){
e(".tooltipstered").not(r.$el).each(function(t, n){
var r=e(n),
i=r.data("tooltipster-ns");
e.each(i, function(e, t){
var n=r.data(t),
i=n.status(),
s=n.option("autoClose");
if(i!=="hidden"&&i!=="disappearing"&&s){
n.hide()
}})
})
}
var i=function(){
r.Status="shown";
e.each(r.callbacks.show, function(e, t){
t.call(r.$el)
});
r.callbacks.show=[]
};
if(r.Status!=="hidden"){
var s=0;
if(r.Status==="disappearing"){
r.Status="appearing";
if(l()){
r.$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-" + r.options.animation + "-show");
if(r.options.speed > 0) r.$tooltip.delay(r.options.speed);
r.$tooltip.queue(i)
}else{
r.$tooltip.stop().fadeIn(i)
}}else if(r.Status==="shown"){
i()
}}else{
r.Status="appearing";
var s=r.options.speed;
r.bodyOverflowX=e("body").css("overflow-x");
e("body").css("overflow-x", "hidden");
var o="tooltipster-" + r.options.animation,
a="-webkit-transition-duration: " + r.options.speed + "ms; -webkit-animation-duration: " + r.options.speed + "ms; -moz-transition-duration: " + r.options.speed + "ms; -moz-animation-duration: " + r.options.speed + "ms; -o-transition-duration: " + r.options.speed + "ms; -o-animation-duration: " + r.options.speed + "ms; -ms-transition-duration: " + r.options.speed + "ms; -ms-animation-duration: " + r.options.speed + "ms; transition-duration: " + r.options.speed + "ms; animation-duration: " + r.options.speed + "ms;",
f=r.options.minWidth ? "min-width:" + Math.round(r.options.minWidth) + "px;":"",
c=r.options.maxWidth ? "max-width:" + Math.round(r.options.maxWidth) + "px;":"",
h=r.options.interactive ? "pointer-events: auto;":"";
r.$tooltip=e('<div class="tooltipster-base ' + r.options.theme + '" style="' + f + " " + c + " " + h + " " + a + '"><div class="tooltipster-content"></div></div>');
if(l()) r.$tooltip.addClass(o);
r._content_insert();
r.$tooltip.appendTo("body");
r.reposition();
r.options.functionReady.call(r.$el, r.$el, r.$tooltip);
if(l()){
r.$tooltip.addClass(o + "-show");
if(r.options.speed > 0) r.$tooltip.delay(r.options.speed);
r.$tooltip.queue(i)
}else{
r.$tooltip.css("display", "none").fadeIn(r.options.speed, i)
}
r._interval_set();
e(t).on("scroll." + r.namespace + " resize." + r.namespace, function(){
r.reposition()
});
if(r.options.autoClose){
e("body").off("." + r.namespace);
if(r.options.trigger=="hover"){
if(u){
setTimeout(function(){
e("body").on("touchstart." + r.namespace, function(){
r.hide()
})
}, 0)
}
if(r.options.interactive){
if(u){
r.$tooltip.on("touchstart." + r.namespace, function(e){
e.stopPropagation()
})
}
var p=null;
r.$elProxy.add(r.$tooltip).on("mouseleave." + r.namespace + "-autoClose", function(){
clearTimeout(p);
p=setTimeout(function(){
r.hide()
}, r.options.interactiveTolerance)
}).on("mouseenter." + r.namespace + "-autoClose", function(){
clearTimeout(p)
})
}else{
r.$elProxy.on("mouseleave." + r.namespace + "-autoClose", function(){
r.hide()
})
}}else if(r.options.trigger=="click"){
setTimeout(function(){
e("body").on("click." + r.namespace + " touchstart." + r.namespace, function(){
r.hide()
})
}, 0);
if(r.options.interactive){
r.$tooltip.on("click." + r.namespace + " touchstart." + r.namespace, function(e){
e.stopPropagation()
})
}}
}}
if(r.options.timer > 0){
r.timerHide=setTimeout(function(){
r.timerHide=null;
r.hide()
}, r.options.timer + s)
}}
})
},
_interval_set: function(){
var t=this;
t.checkInterval=setInterval(function(){
if(e("body").find(t.$el).length===0||e("body").find(t.$elProxy).length===0||t.Status=="hidden"||e("body").find(t.$tooltip).length===0){
if(t.Status=="shown"||t.Status=="appearing") t.hide();
t._interval_cancel()
}else{
if(t.options.positionTracker){
var n=t._repositionInfo(t.$elProxy),
r=false;
if(o(n.dimension, t.elProxyPosition.dimension)){
if(t.$elProxy.css("position")==="fixed"){
if(o(n.position, t.elProxyPosition.position)) r=true
}else{
if(o(n.offset, t.elProxyPosition.offset)) r=true
}}
if(!r){
t.reposition()
}}
}}, 200)
},
_interval_cancel: function(){
clearInterval(this.checkInterval);
this.checkInterval=null
},
_content_set: function(e){
if(typeof e==="object"&&e!==null&&this.options.contentCloning){
e=e.clone(true)
}
this.Content=e
},
_content_insert: function(){
var e=this,
t=this.$tooltip.find(".tooltipster-content");
if(typeof e.Content==="string"&&!e.options.contentAsHTML){
t.text(e.Content)
}else{
t.empty().append(e.Content)
}},
_update: function(e){
var t=this;
t._content_set(e);
if(t.Content!==null){
if(t.Status!=="hidden"){
t._content_insert();
t.reposition();
if(t.options.updateAnimation){
if(l()){
t.$tooltip.css({
width: "",
"-webkit-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms",
"-moz-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms",
"-o-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms",
"-ms-transition": "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms",
transition: "all " + t.options.speed + "ms, width 0ms, height 0ms, left 0ms, top 0ms"
}).addClass("tooltipster-content-changing");
setTimeout(function(){
if(t.Status!="hidden"){
t.$tooltip.removeClass("tooltipster-content-changing");
setTimeout(function(){
if(t.Status!=="hidden"){
t.$tooltip.css({
"-webkit-transition": t.options.speed + "ms",
"-moz-transition": t.options.speed + "ms",
"-o-transition": t.options.speed + "ms",
"-ms-transition": t.options.speed + "ms",
transition: t.options.speed + "ms"
})
}}, t.options.speed)
}}, t.options.speed)
}else{
t.$tooltip.fadeTo(t.options.speed, .5, function(){
if(t.Status!="hidden"){
t.$tooltip.fadeTo(t.options.speed, 1)
}})
}}
}}else{
t.hide()
}},
_repositionInfo: function(e){
return {
dimension: {
height: e.outerHeight(false),
width: e.outerWidth(false)
},
offset: e.offset(),
position: {
left: parseInt(e.css("left")),
top: parseInt(e.css("top"))
}}
},
hide: function(n){
var r=this;
if(n) r.callbacks.hide.push(n);
r.callbacks.show=[];
clearTimeout(r.timerShow);
r.timerShow=null;
clearTimeout(r.timerHide);
r.timerHide=null;
var i=function(){
e.each(r.callbacks.hide, function(e, t){
t.call(r.$el)
});
r.callbacks.hide=[]
};
if(r.Status=="shown"||r.Status=="appearing"){
r.Status="disappearing";
var s=function(){
r.Status="hidden";
if(typeof r.Content=="object"&&r.Content!==null){
r.Content.detach()
}
r.$tooltip.remove();
r.$tooltip=null;
e(t).off("." + r.namespace);
e("body").off("." + r.namespace).css("overflow-x", r.bodyOverflowX);
e("body").off("." + r.namespace);
r.$elProxy.off("." + r.namespace + "-autoClose");
r.options.functionAfter.call(r.$el, r.$el);
i()
};
if(l()){
r.$tooltip.clearQueue().removeClass("tooltipster-" + r.options.animation + "-show").addClass("tooltipster-dying");
if(r.options.speed > 0) r.$tooltip.delay(r.options.speed);
r.$tooltip.queue(s)
}else{
r.$tooltip.stop().fadeOut(r.options.speed, s)
}}else if(r.Status=="hidden"){
i()
}
return r
},
show: function(e){
this._showNow(e);
return this
},
update: function(e){
return this.content(e)
},
content: function(e){
if(typeof e==="undefined"){
return this.Content
}else{
this._update(e);
return this
}},
reposition: function(){
var n=this;
if(e("body").find(n.$tooltip).length!==0){
n.$tooltip.css("width", "");
n.elProxyPosition=n._repositionInfo(n.$elProxy);
var r=null,
i=e(t).width(),
s=n.elProxyPosition,
o=n.$tooltip.outerWidth(false),
u=n.$tooltip.innerWidth() + 1,
a=n.$tooltip.outerHeight(false);
if(n.$elProxy.is("area")){
var f=n.$elProxy.attr("shape"),
l=n.$elProxy.parent().attr("name"),
c=e('img[usemap="#' + l + '"]'),
h=c.offset().left,
p=c.offset().top,
d=n.$elProxy.attr("coords")!==undefined ? n.$elProxy.attr("coords").split(","):undefined;
if(f=="circle"){
var v=parseInt(d[0]),
m=parseInt(d[1]),
g=parseInt(d[2]);
s.dimension.height=g * 2;
s.dimension.width=g * 2;
s.offset.top=p + m - g;
s.offset.left=h + v - g
}else if(f=="rect"){
var v=parseInt(d[0]),
m=parseInt(d[1]),
y=parseInt(d[2]),
b=parseInt(d[3]);
s.dimension.height=b - m;
s.dimension.width=y - v;
s.offset.top=p + m;
s.offset.left=h + v
}else if(f=="poly"){
var w=[],
E=[],
S=0,
x=0,
T=0,
N=0,
C="even";
for (var k=0; k < d.length; k++){
var L=parseInt(d[k]);
if(C=="even"){
if(L > T){
T=L;
if(k===0){
S=T
}}
if(L < S){
S=L
}
C="odd"
}else{
if(L > N){
N=L;
if(k==1){
x=N
}}
if(L < x){
x=L
}
C="even"
}}
s.dimension.height=N - x;
s.dimension.width=T - S;
s.offset.top=p + x;
s.offset.left=h + S
}else{
s.dimension.height=c.outerHeight(false);
s.dimension.width=c.outerWidth(false);
s.offset.top=p;
s.offset.left=h
}}
var A=0,
O=0,
M=0,
_=parseInt(n.options.offsetY),
D=parseInt(n.options.offsetX),
P=n.options.position;
function H(){
var n=e(t).scrollLeft();
if(A - n < 0){
r=A - n;
A=n
}
if(A + o - n > i){
r=A - (i + n - o);
A=i + n - o
}}
function B(n, r){
if(s.offset.top - e(t).scrollTop() - a - _ - 12 < 0&&r.indexOf("top") > -1){
P=n
}
if(s.offset.top + s.dimension.height + a + 12 + _ > e(t).scrollTop() + e(t).height()&&r.indexOf("bottom") > -1){
P=n;
M=s.offset.top - a - _ - 12
}}
if(P=="top"){
var j=s.offset.left + o - (s.offset.left + s.dimension.width);
A=s.offset.left + D - j / 2;
M=s.offset.top - a - _ - 12;
H();
B("bottom", "top")
}
if(P=="top-left"){
A=s.offset.left + D;
M=s.offset.top - a - _ - 12;
H();
B("bottom-left", "top-left")
}
if(P=="top-right"){
A=s.offset.left + s.dimension.width + D - o;
M=s.offset.top - a - _ - 12;
H();
B("bottom-right", "top-right")
}
if(P=="bottom"){
var j=s.offset.left + o - (s.offset.left + s.dimension.width);
A=s.offset.left - j / 2 + D;
M=s.offset.top + s.dimension.height + _ + 12;
H();
B("top", "bottom")
}
if(P=="bottom-left"){
A=s.offset.left + D;
M=s.offset.top + s.dimension.height + _ + 12;
H();
B("top-left", "bottom-left")
}
if(P=="bottom-right"){
A=s.offset.left + s.dimension.width + D - o;
M=s.offset.top + s.dimension.height + _ + 12;
H();
B("top-right", "bottom-right")
}
if(P=="left"){
A=s.offset.left - D - o - 12;
O=s.offset.left + D + s.dimension.width + 12;
var F=s.offset.top + a - (s.offset.top + s.dimension.height);
M=s.offset.top - F / 2 - _;
if(A < 0&&O + o > i){
var I=parseFloat(n.$tooltip.css("border-width")) * 2,
q=o + A - I;
n.$tooltip.css("width", q + "px");
a=n.$tooltip.outerHeight(false);
A=s.offset.left - D - q - 12 - I;
F=s.offset.top + a - (s.offset.top + s.dimension.height);
M=s.offset.top - F / 2 - _
}else if(A < 0){
A=s.offset.left + D + s.dimension.width + 12;
r="left"
}}
if(P=="right"){
A=s.offset.left + D + s.dimension.width + 12;
O=s.offset.left - D - o - 12;
var F=s.offset.top + a - (s.offset.top + s.dimension.height);
M=s.offset.top - F / 2 - _;
if(A + o > i&&O < 0){
var I=parseFloat(n.$tooltip.css("border-width")) * 2,
q=i - A - I;
n.$tooltip.css("width", q + "px");
a=n.$tooltip.outerHeight(false);
F=s.offset.top + a - (s.offset.top + s.dimension.height);
M=s.offset.top - F / 2 - _
}else if(A + o > i){
A=s.offset.left - D - o - 12;
r="right"
}}
if(n.options.arrow){
var R="tooltipster-arrow-" + P;
if(n.options.arrowColor.length < 1){
var U=n.$tooltip.css("background-color")
}else{
var U=n.options.arrowColor
}
if(!r){
r=""
}else if(r=="left"){
R="tooltipster-arrow-right";
r=""
}else if(r=="right"){
R="tooltipster-arrow-left";
r=""
}else{
r="left:" + Math.round(r) + "px;"
}
if(P=="top"||P=="top-left"||P=="top-right"){
var z=parseFloat(n.$tooltip.css("border-bottom-width")),
W=n.$tooltip.css("border-bottom-color")
}else if(P=="bottom"||P=="bottom-left"||P=="bottom-right"){
var z=parseFloat(n.$tooltip.css("border-top-width")),
W=n.$tooltip.css("border-top-color")
}else if(P=="left"){
var z=parseFloat(n.$tooltip.css("border-right-width")),
W=n.$tooltip.css("border-right-color")
}else if(P=="right"){
var z=parseFloat(n.$tooltip.css("border-left-width")),
W=n.$tooltip.css("border-left-color")
}else{
var z=parseFloat(n.$tooltip.css("border-bottom-width")),
W=n.$tooltip.css("border-bottom-color")
}
if(z > 1){
z++
}
var X="";
if(z!==0){
var V="",
J="border-color: " + W + ";";
if(R.indexOf("bottom")!==-1){
V="margin-top: -" + Math.round(z) + "px;"
}else if(R.indexOf("top")!==-1){
V="margin-bottom: -" + Math.round(z) + "px;"
}else if(R.indexOf("left")!==-1){
V="margin-right: -" + Math.round(z) + "px;"
}else if(R.indexOf("right")!==-1){
V="margin-left: -" + Math.round(z) + "px;"
}
X='<span class="tooltipster-arrow-border" style="' + V + " " + J + ';"></span>'
}
n.$tooltip.find(".tooltipster-arrow").remove();
var K='<div class="' + R + ' tooltipster-arrow" style="' + r + '">' + X + '<span style="border-color:' + U + ';"></span></div>';
n.$tooltip.append(K)
}
n.$tooltip.css({
top: Math.round(M) + "px",
left: Math.round(A) + "px"
})
}
return n
},
enable: function(){
this.enabled=true;
return this
},
disable: function(){
this.hide();
this.enabled=false;
return this
},
destroy: function(){
var t=this;
t.hide();
if(t.$el[0]!==t.$elProxy[0]) t.$elProxy.remove();
t.$el.removeData(t.namespace).off("." + t.namespace);
var n=t.$el.data("tooltipster-ns");
if(n.length===1){
var r=typeof t.Content==="string" ? t.Content:e("<div></div>").append(t.Content).html();
t.$el.removeClass("tooltipstered").attr("title", r).removeData(t.namespace).removeData("tooltipster-ns").off("." + t.namespace)
}else{
n=e.grep(n, function(e, n){
return e!==t.namespace
});
t.$el.data("tooltipster-ns", n)
}
return t
},
elementIcon: function(){
return this.$el[0]!==this.$elProxy[0] ? this.$elProxy[0]:undefined
},
elementTooltip: function(){
return this.$tooltip ? this.$tooltip[0]:undefined
},
option: function(e, t){
if(typeof t=="undefined") return this.options[e];
else {
this.options[e]=t;
return this
}},
status: function(){
return this.Status
}};
e.fn[r]=function(){
var t=arguments;
if(this.length===0){
if(typeof t[0]==="string"){
var n=true;
switch (t[0]){
case "setDefaults":
e.extend(i, t[1]);
break;
default:
n=false;
break
}
if(n) return true;
else return this
}else{
return this
}}else{
if(typeof t[0]==="string"){
var r="#*$~&";
this.each(function(){
var n=e(this).data("tooltipster-ns"),
i=n ? e(this).data(n[0]):null;
if(i){
if(typeof i[t[0]]==="function"){
var s=i[t[0]](t[1], t[2])
}else{
throw new Error('Unknown method .tooltipster("' + t[0] + '")')
}
if(s!==i){
r=s;
return false
}}else{
throw new Error("You called Tooltipster's \"" + t[0] + '" method on an uninitialized element')
}});
return r!=="#*$~&" ? r:this
}else{
var o=[],
u=t[0]&&typeof t[0].multiple!=="undefined",
a=u&&t[0].multiple||!u&&i.multiple;
this.each(function(){
var n=false,
r=e(this).data("tooltipster-ns"),
i=null;
if(!r){
n=true
}else{
if(a) n=true;
else console.log('Tooltipster: one or more tooltips are already attached to this element: ignoring. Use the "multiple" option to attach more tooltips.')
}
if(n){
i=new s(this, t[0]);
if(!r) r=[];
r.push(i.namespace);
e(this).data("tooltipster-ns", r);
e(this).data(i.namespace, i)
}
o.push(i)
});
if(a) return o;
else return this
}}
};
var u = !!("ontouchstart" in t);
var a=false;
e("body").one("mousemove", function(){
a=true
})
})(jQuery, window, document);
;(function($){var ParallaxManager=function(options){this.options=options;this.vendor_prefixes=['webkit','moz','o','ms'];this.num_vendor_prefixes=this.vendor_prefixes.length;var thisBrowserSupportsStyle=function(style){var vendors=['Webkit','Moz','ms','O'];var num_vendors=vendors.length;var dummy_el=window.document.createElement('parallax');if(dummy_el.style[style]!==undefined){return true;}
style=style.replace(/./,function(first){return first.toUpperCase();});for(var i=0;i<num_vendors;i++){var pfx_style=vendors[i]+style;if(dummy_el.style[pfx_style]!==undefined){return true;}}
return false;};this.has_3dtransforms=thisBrowserSupportsStyle('perspective');if(this.has_3dtransforms&&thisBrowserSupportsStyle('WebkitPerspective')){var $test_el=$('<div><style type="text/css">@media (transform-3d),(-webkit-transform-3d){#parallax-3dtest {position: absolute;left: 9px;height: 5px;margin: 0;padding: 0;border: 0;}</style><div id="parallax-3dtest"></div></div>').appendTo('body');var $el=$('#parallax-3dtest');this.has_3dtransforms=$el.height()==5&&$el.offset().left==9;$test_el.remove();}
this.has_2dtransforms=thisBrowserSupportsStyle('transform');};$.extend(ParallaxManager.prototype,{init:function(){this.scroll_factor=this.options.scroll_factor;var parallax_blocks=this.parallax_blocks=[];var image_attr=this.options.image_attr
var $body=$('body');var $origins=this.options.origins;$origins.each(function(){var $origin=$(this);var $parallax_block;if($origin.data(image_attr)){$parallax_block=$('<div class="parallax-block"><img class="parallax-image" src="'+$origin.data(image_attr)+'"></div>');parallax_blocks.push({origin:$origin,block:$parallax_block,bg_ratio:$origin.data('width')/$origin.data('height')});$body.prepend($parallax_block);}
else if($origin.data('tile')){$parallax_block=$('<div class="parallax-block"><div class="parallax-image" style="background-image: url('+$origin.data('tile')+')"></div></div>')
parallax_blocks.push({origin:$origin,block:$parallax_block,bg_ratio:1});$body.prepend($parallax_block);}});var manager=this;var reconfigure=function(){manager.redrawBlocks();manager.render();};var $window=$(window);$window.on('load',reconfigure);$window.on('resize',reconfigure);$window.on('hwparallax.reconfigure',reconfigure);$window.on('scroll',function(){manager.render();});},redrawBlocks:function(){var window_width=$(window).width();var window_height=this.window_height=$(window).height();var body=document.body;var html=document.documentElement;var document_height=Math.max(body.scrollHeight,body.offsetHeight,html.clientHeight,html.scrollHeight,html.offsetHeight);this.max_scrolltop=Math.max(0,document_height-window_height);var num_parallax_blocks=this.parallax_blocks.length;for(var i=0;i<num_parallax_blocks;i++){var parallax_block_data=this.parallax_blocks[i];var $parallax_block=parallax_block_data.block;var bg_ratio=parallax_block_data.bg_ratio;var $parallax_image=$parallax_block.children('.parallax-image');var $origin=parallax_block_data.origin;var origin_height=$origin.outerHeight();var min_height=window_height-((window_height-origin_height)*this.scroll_factor);var img_width=window_width;var img_height=Math.ceil(img_width/bg_ratio);var img_xoff=0;if(img_height<min_height){img_height=min_height;img_width=img_height*bg_ratio;img_xoff=Math.floor(img_width-window_width)/2;}
$parallax_image.width(img_width).height(img_height);$parallax_block.width(window_width).height(origin_height).css('visibility','hidden');$.extend(parallax_block_data,{origin_position:$origin.offset().top,origin_height:origin_height,image:$parallax_image,image_xoff:img_xoff,image_height:img_height});}},render:function(){if(!this.drawing){this.drawing=true;var manager=this;if(window.requestAnimationFrame){window.requestAnimationFrame(function(){manager.draw();},document);}else{manager.draw();}}},draw:function(){var scroll_top=Math.min(Math.max(0,$(window).scrollTop()),this.max_scrolltop);var num_blocks=this.parallax_blocks.length;var data;for(var i=0;i<num_blocks;i++){data=this.parallax_blocks[i];if(data.origin_position<scroll_top+this.window_height&&data.origin_position+data.origin_height>scroll_top){var new_block_position=data.origin_position-scroll_top;var new_image_position=new_block_position*(this.scroll_factor-1);var block_styles={visibility:'visible'};var image_styles={};var block_transform,image_transform,prefixed_style;var j;if(this.has_3dtransforms){block_transform=block_styles.transform='translate3d(0px, '+new_block_position+'px, 0px)';image_transform=image_styles.transform='translate3d(-'+data.image_xoff+'px, '+new_image_position+'px, 0px)';for(j=0;j<this.num_vendor_prefixes;j++){prefixed_style='-'+this.vendor_prefixes[j]+'-transform';block_styles[prefixed_style]=block_transform;image_styles[prefixed_style]=image_transform;}}
else if(this.has_2dtransforms){block_transform=block_styles.transform='translate(0px, '+new_block_position+'px)';image_transform=image_styles.transform='translate(-'+data.image_xoff+'px, '+new_image_position+'px)';for(j=0;j<this.num_vendor_prefixes;j++){prefixed_style='-'+this.vendor_prefixes[j]+'-transform';block_styles[prefixed_style]=block_transform;image_styles[prefixed_style]=image_transform;}}else{block_styles.top=new_block_position+'px';block_styles.left=0+'px';image_styles.top=new_image_position+'px';image_styles.left=-data.image_xoff+'px';}
data.block.css(block_styles);data.image.css(image_styles);}else{data.block.css('visibility','hidden');}}
this.drawing=false;}});$.extend($.fn,{parallax:function(options){var settings=$.extend({scroll_factor:0.2,image_attr:'image'},options,{origins:$(this)});var pm=new ParallaxManager(settings);pm.init();}});})(jQuery);
jQuery.fn.center=function(){this.css("left",(jQuery(window).width()/2)-(this.outerWidth()/2));return this;}
jQuery.fn.animateAuto=function(prop,speed,callback){var elem,height,width;return this.each(function(i,el){el=jQuery(el),elem=el.clone().css({"height":"auto"}).appendTo("body");if(navigator.userAgent.indexOf('Safari')!=-1&&navigator.userAgent.indexOf('Chrome')==-1){height=elem.height();height=elem.css("auto"),width=elem.css("width");}else{height=elem.height();height=height,width=elem.css("width");}
elem.remove();if(prop==="height")
el.animate({"height":height+15},speed,callback);else if(prop==="max-height")
el.animate({"max-height":height},speed,callback);else if(prop==="width")
el.animate({"width":width},speed,callback);else if(prop==="both")
el.animate({"width":width,"height":height},speed,callback);});}
jQuery.fn.setNav=function(){var calScreenWidth=jQuery(window).width();var menuLayout=jQuery('#pp_menu_layout').val();if(calScreenWidth>=960){jQuery('#main_menu li ul').css({display:'none',opacity:1});if(menuLayout!='leftmenu'){jQuery('#menu_wrapper div .nav li.megamenu > ul > li').each(function(){jQuery(this).css('height',jQuery(this).parent('ul').height()+'px');});}
jQuery('#main_menu li').each(function(){var jQuerysublist=jQuery(this).find('ul:first');jQuery(this).hover(function(){position=jQuery(this).position();if(jQuery(this).parents().attr('class')=='sub-menu'){jQuerysublist.stop().fadeIn(500);}else{jQuerysublist.stop().css({overflow:'visible'}).fadeIn(500);}},function(){jQuerysublist.stop().css({height:'auto'}).fadeOut(500);});});jQuery('#menu_wrapper .nav ul li ul').css({display:'none',opacity:1});jQuery('#menu_wrapper .nav ul li').each(function(){var jQuerysublist=jQuery(this).find('ul:first');jQuery(this).hover(function(){jQuerysublist.stop().fadeIn(500);},function(){jQuerysublist.stop().fadeOut(500);});});}
jQuery('body').on('click','.mobile_main_nav > li a',function(event){var jQuerysublist=jQuery(this).parent('li').find('ul.sub-menu:first');var menuContainerClass=jQuery(this).parent('li').parent('#mobile_main_menu.mobile_main_nav').parent('div');if(jQuerysublist.length>0){event.preventDefault();}
var menuLevel='top_level';var parentMenu='';var menuClickedId=jQuery(this).attr('id');if(jQuery(this).parent('li').parent('ul').attr('id')=='mobile_main_menu'){menuLevel='parent_level';}else{parentMenu=jQuery(this).parent('li').attr('id');}
if(jQuerysublist.length>0){jQuery('#mobile_main_menu.mobile_main_nav').addClass('mainnav_out');jQuery('.mobile_menu_wrapper div #sub_menu').removeClass('subnav_in');jQuery('.mobile_menu_wrapper div #sub_menu').addClass('mainnav_out');setTimeout(function(){jQuery('#mobile_main_menu.mobile_main_nav').css('display','none');jQuery('.mobile_menu_wrapper div #sub_menu').remove();var subMenuHTML='<li><a href="#" id="menu_back" class="'+menuLevel+'" data-parent="'+parentMenu+'">'+jQuery('#pp_back').val()+'</a></li>';subMenuHTML+=jQuerysublist.html();menuContainerClass.append('<ul id="sub_menu" class="nav '+menuLevel+'"></ul>');menuContainerClass.find('#sub_menu').html(subMenuHTML);menuContainerClass.find('#sub_menu').addClass('subnav_in');},200);}});jQuery('body').on('click','#menu_back.parent_level',function(){jQuery('.mobile_menu_wrapper div #sub_menu').removeClass('subnav_in');jQuery('.mobile_menu_wrapper div #sub_menu').addClass('subnav_out');jQuery('#mobile_main_menu.mobile_main_nav').removeClass('mainnav_out');setTimeout(function(){jQuery('.mobile_menu_wrapper div #sub_menu').remove();jQuery('#mobile_main_menu.mobile_main_nav').css('display','block');jQuery('#mobile_main_menu.mobile_main_nav').addClass('mainnav_in');},200);});jQuery('body').on('click','#menu_back.top_level',function(){event.preventDefault();jQuery('.mobile_menu_wrapper div #sub_menu').addClass('subnav_out');var parentMenuId=jQuery(this).data('parent');setTimeout(function(){jQuery('.mobile_menu_wrapper div #sub_menu').remove();var menuLevel='top_level';var parentMenu='';if(jQuery('#mobile_main_menu.mobile_main_nav li#'+parentMenuId).parent('ul.sub-menu:first').parent('li').parent('ul#main_menu').length==1){menuLevel='parent_level';}else{parentMenu=jQuery('#mobile_main_menu.mobile_main_nav li#'+parentMenuId).parent('ul.sub-menu:first').parent('li').attr('id');}
var subMenuHTML='<li><a href="#" id="menu_back" class="'+menuLevel+'" data-parent="'+parentMenu+'">'+jQuery('#pp_back').val()+'</a></li>';subMenuHTML+=jQuery('#mobile_main_menu.mobile_main_nav li#'+parentMenuId).parent('ul.sub-menu:first').html();jQuery('.mobile_menu_wrapper div').append('<ul id="sub_menu" class="nav '+menuLevel+'"></ul>');jQuery('.mobile_menu_wrapper div #sub_menu').html(subMenuHTML);jQuery('.mobile_menu_wrapper div #sub_menu').addClass('mainnav_in');},200);});}
function adjustIframes(){jQuery('iframe').each(function(){var
$this=jQuery(this),proportion=$this.data('proportion'),w=$this.attr('width'),actual_w=$this.width();if(!proportion){proportion=$this.attr('height')/w;$this.data('proportion',proportion);}
if(actual_w!=w){$this.css('height',Math.round(actual_w*proportion)+'px !important');}});}
function is_touch_device(){return'ontouchstart'in window||'onmsgesturechange'in window;};
if(jQuery('#pp_page_title_img_blur').val()!=''){(function(){jQuery(window).scroll(function(){var oVal;oVal=jQuery(window).scrollTop()/400;if(oVal>1){oVal=1;}
return jQuery("#bg_blurred").css("opacity",oVal);});}).call(this);}
if(jQuery('#pp_page_title_img_blur').val()!=''){(function(){jQuery(window).scroll(function(){var oVal;oVal=jQuery(window).scrollTop()/140;if(oVal>1){oVal=1;}
oVal=parseFloat(1-oVal);return jQuery("#page_caption.hasbg .page_title_wrapper .page_title_inner").css("opacity",oVal);});}).call(this);}
jQuery(document).ready(function(){"use strict";jQuery(document).setNav();jQuery(window).resize(function(){jQuery(document).setNav();});jQuery('.fancy_video, .lightbox_vimeo, .lightbox_youtube').magnificPopup({src:jQuery(this).attr('href'),type:'inline',removalDelay:300,mainClass:'mfp-fade'});jQuery('a.fancy-gallery, .pp_gallery a, .woocommerce-product-gallery__image a').magnificPopup({type:'image',removalDelay:300,mainClass:'mfp-fade',gallery:{enabled:true}});jQuery('.img_frame').magnificPopup({type:'image',removalDelay:300,mainClass:'mfp-fade'});jQuery('#menu_expand_wrapper a').on('click',function(){jQuery('#menu_wrapper').fadeIn();jQuery('#custom_logo').animate({'left':'15px','opacity':1},400);jQuery('#menu_close').animate({'left':'-10px','opacity':1},400);jQuery(this).animate({'left':'-60px','opacity':0},400);jQuery('#menu_border_wrapper select').animate({'left':'0','opacity':1},400).fadeIn();});jQuery('#menu_close').on('click',function(){jQuery('#custom_logo').animate({'left':'-200px','opacity':0},400);jQuery(this).stop().animate({'left':'-200px','opacity':0},400);jQuery('#menu_expand_wrapper a').animate({'left':'20px','opacity':1},400);jQuery('#menu_border_wrapper select').animate({'left':'-200px','opacity':0},400).fadeOut();jQuery('#menu_wrapper').fadeOut();});jQuery.Isotope.prototype._getMasonryGutterColumns=function(){var gutter=this.options.masonry&&this.options.masonry.gutterWidth||0;var containerWidth=this.element.width();this.masonry.columnWidth=this.options.masonry&&this.options.masonry.columnWidth||this.$filteredAtoms.outerWidth(true)||containerWidth;this.masonry.columnWidth+=gutter;this.masonry.cols=Math.floor((containerWidth+gutter)/this.masonry.columnWidth);this.masonry.cols=Math.max(this.masonry.cols,1);};jQuery.Isotope.prototype._masonryReset=function(){this.masonry={};this._getMasonryGutterColumns();var i=this.masonry.cols;this.masonry.colYs=[];while(i--){this.masonry.colYs.push(0);}};jQuery.Isotope.prototype._masonryResizeChanged=function(){var prevSegments=this.masonry.cols;this._getMasonryGutterColumns();return(this.masonry.cols!==prevSegments);};var $window=jQuery(window);var dropdowns=jQuery(".portfolio_filter_dropdown");dropdowns.find(".portfolio_filter_dropdown_title").on('click',function(){dropdowns.find(".portfolio_filter_dropdown_select ul.portfolio_select").hide();jQuery(this).next().children().toggle();});dropdowns.find(".portfolio_filter_dropdown_select ul.portfolio_select li a").on('click',function(){var leSpan=jQuery(this).parents(".portfolio_filter_dropdown").find(".portfolio_filter_dropdown_title a span");jQuery(this).parents(".portfolio_filter_dropdown").find('.portfolio_filter_dropdown_select a').each(function(){jQuery(this).removeClass('selected');});leSpan.html(jQuery(this).html());if(jQuery(this).hasClass('default')){leSpan.removeClass('selected')}else{leSpan.addClass('selected');jQuery(this).addClass('selected');}
jQuery(this).parents("ul").hide();});jQuery(document).bind('click',function(e){if(!jQuery(e.target).parents().hasClass("portfolio_filter_dropdown"))jQuery(".portfolio_filter_dropdown .portfolio_filter_dropdown_select ul.portfolio_select").hide();});function reLayout(){var jQuerycontainer=jQuery('#photo_wall_wrapper, .photo_wall_wrapper');var windowWidth=parseInt(jQuerycontainer.width());var jQueryportfolioColumn=4;var columnValue;var masonryOpts;if(windowWidth<480){jQueryportfolioColumn=1;}
else if(windowWidth>=480&&windowWidth<960){jQueryportfolioColumn=2;}
else if(windowWidth>=960&&windowWidth<1400){jQueryportfolioColumn=4;}
else if(windowWidth>=1400&&windowWidth<2100){jQueryportfolioColumn=5;}
else if(windowWidth>=2100){jQueryportfolioColumn=6;}
if(windowWidth>480){columnValue=windowWidth/jQueryportfolioColumn;}
else if(windowWidth<=480){columnValue=480;}
masonryOpts={columnWidth:columnValue};$container.addClass('visible');$container.isotope({resizable:false,itemSelector:'.wall_entry',masonry:masonryOpts}).isotope();}
var $container=jQuery('#photo_wall_wrapper, .photo_wall_wrapper');$container.imagesLoaded(function(){reLayout();$window.smartresize(reLayout);$container.children('.wall_entry').children('.gallery_type').each(function(){jQuery(this).addClass('fade-in');});$container.children('.wall_entry').mouseenter(function(){jQuery(this).addClass('hover');});$container.children('.wall_entry').mouseleave(function(){$container.children('.wall_entry').removeClass('hover');});});jQuery(window).resize(function(){if(jQuery(this).width()<768){jQuery('#menu_expand_wrapper a').trigger('click');}});var isDisableRightClick=jQuery('#pp_enable_right_click').val();if(isDisableRightClick!=''){jQuery(this).bind("contextmenu",function(e){e.preventDefault();});}
function rePortfolioLayout(){var jQuerycontainer=jQuery('#portfolio_filter_wrapper');var windowWidth=jQuerycontainer.width();if(jQuery('#pp_menu_layout').val()=='leftmenu'&&jQuery(window).width()>768){windowWidth=parseInt(windowWidth+265);}
var jQueryportfolioColumn=jQuerycontainer.data('columns');var columnValue;var masonryOpts;if(jQuery('#pp_menu_layout').val()=='leftmenu'){var windowWidth=jQuerycontainer.width();}
if(windowWidth>959){columnValue=parseInt(windowWidth/jQueryportfolioColumn);}
else if(windowWidth<959&&windowWidth>480){columnValue=parseInt(windowWidth/jQueryportfolioColumn);}
else if(windowWidth<=480){columnValue=480;}
masonryOpts={columnWidth:columnValue};jQuerycontainer.isotope({resizable:false,itemSelector:'.element',masonry:masonryOpts}).isotope();}
var $window=jQuery(window);var jQuerycontainer=jQuery('#portfolio_filter_wrapper');jQuerycontainer.imagesLoaded(function(){rePortfolioLayout();$window.smartresize(rePortfolioLayout);jQuerycontainer.children('.element').children('.gallery_type').each(function(){jQuery(this).addClass('fadeIn');});jQuerycontainer.children('.element').children('.portfolio_type').each(function(){jQuery(this).addClass('fadeIn');});jQuerycontainer.children('.element').mouseenter(function(){jQuery(this).addClass('hover');});jQuerycontainer.children('.element').mouseleave(function(){jQuerycontainer.children('.element').removeClass('hover');});jQuery(this).addClass('visible');});if(jQuery('#tg_portfolio_filterable_link').val()!=1){jQuery('#portfolio_wall_filters li a').click(function(){var selector=jQuery(this).attr('data-filter');jQuerycontainer.isotope({filter:selector});jQuery('#portfolio_wall_filters li a').removeClass('active');jQuery(this).addClass('active');return false;});}
function reBlogLayout(){var windowWidth=jQuery(window).width();var jQueryblogcontainer=jQuery('#blog_grid_wrapper, .blog_grid_wrapper');var containerWidth=jQuery('#blog_grid_wrapper, .blog_grid_wrapper').width();var $blogGridColumn=3;var columnValue=0;var masonryOpts;if(containerWidth>=960){columnValue=containerWidth/$blogGridColumn;}
else if(containerWidth<960&&containerWidth>=660){columnValue=containerWidth/2;}else{columnValue=containerWidth/1;}
masonryOpts={columnWidth:columnValue};jQueryblogcontainer.isotope({resizable:false,itemSelector:'.status-publish',masonry:masonryOpts}).isotope();}
var jQueryblogcontainer=jQuery('#blog_grid_wrapper, .blog_grid_wrapper');jQueryblogcontainer.imagesLoaded(function(){reBlogLayout();$window.smartresize(reBlogLayout);});jQuery(window).scroll(function(){var calScreenWidth=jQuery(window).width();if(jQuery(this).scrollTop()>200){jQuery('#toTop').stop().css({opacity:0.5,"visibility":"visible"}).animate({"visibility":"visible"},{duration:1000,easing:"easeOutExpo"});}else if(jQuery(this).scrollTop()==0){jQuery('#toTop').stop().css({opacity:0,"visibility":"hidden"}).animate({"visibility":"hidden"},{duration:1500,easing:"easeOutExpo"});}});jQuery('#toTop, .hr_totop').on('click',function(){jQuery('body,html').animate({scrollTop:0},800);});var isDisableDragging=jQuery('#pp_enable_dragging').val();if(isDisableDragging!=''){jQuery("img").mousedown(function(){return false;});}
if(jQuery('#pp_topbar').val()==0){var topBarHeight=jQuery('.header_style_wrapper').height();}else{var topBarHeight=parseInt(jQuery('.header_style_wrapper').height()-jQuery('.header_style_wrapper .above_top_bar').height());}
var logoHeight=jQuery('#custom_logo img').height();var logoTransHeight=jQuery('#custom_logo_transparent img').height();var logoMargin=parseInt(jQuery('#custom_logo').css('marginTop'));var logoTransMargin=parseInt(jQuery('#custom_logo_transparent').css('marginTop'));var menuPaddingTop=parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingTop'));var menuPaddingBottom=parseInt(jQuery('#menu_wrapper div .nav li > a').css('paddingBottom'));var SearchPaddingTop=parseInt(jQuery('.top_bar #searchform button').css('paddingTop'));var menuLayout=jQuery('#pp_menu_layout').val();if(menuLayout!='leftmenu'||jQuery(window).width()<=768){jQuery('#wrapper').css('paddingTop',parseInt(jQuery('.header_style_wrapper').height())+'px');}
jQuery(window).resize(function(){if(jQuery(this).width()>768){if(menuLayout!='leftmenu'){if(jQuery('#pp_topbar').val()==0){var resizedTopBarHeight=jQuery('.top_bar').height();}else{var resizedTopBarHeight=parseInt(jQuery('.top_bar').height()+jQuery('.header_style_wrapper .above_top_bar').height());}
jQuery('#wrapper').css('paddingTop',resizedTopBarHeight+'px');jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top',resizedTopBarHeight+'px');jQuery('.logo_wrapper').css('marginTop','');jQuery('.top_bar #searchform button').css('paddingTop','');}else{jQuery('#wrapper').css('paddingTop',0);}}else{jQuery('#wrapper').css('paddingTop',parseInt(jQuery('.header_style_wrapper').height())+'px');}
jQuery('#page_caption.split').css('height',jQuery(window).height()+'px');});if(menuLayout!='leftmenu'||jQuery(window).width()<=960){jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('top',parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');jQuery('#page_content_wrapper.split, .page_content_wrapper.split').css('paddingBottom',parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');jQuery('#page_caption.split').css('top',parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height())+'px');jQuery('#imageFlow').css('top',parseInt(topBarHeight+jQuery('.header_style_wrapper .above_top_bar').height()+50)+'px');jQuery(window).scroll(function(){if(jQuery('#pp_fixed_menu').val()==1){if(jQuery(this).scrollTop()>=200){jQuery('.header_style_wrapper .above_top_bar').hide();jQuery('.extend_top_contact_info').hide();jQuery('.top_bar').addClass('scroll');if(jQuery('.top_bar').hasClass('hasbg')){jQuery('.top_bar').removeClass('hasbg');jQuery('.top_bar').data('hasbg',1);jQuery('#custom_logo').removeClass('hidden');jQuery('#custom_logo_transparent').addClass('hidden');}
if(jQuery(window).width()>960){jQuery('#mobile_nav_icon').hide();}}
else if(jQuery(this).scrollTop()<200){jQuery('.header_style_wrapper .above_top_bar').show();jQuery('.extend_top_contact_info').show();jQuery('#custom_logo img').removeClass('zoom');jQuery('#custom_logo img').css('maxHeight','');jQuery('#custom_logo_transparent img').removeClass('zoom');jQuery('#custom_logo').css('marginTop',parseInt(logoMargin)+'px');jQuery('#custom_logo_transparent').css('marginTop',parseInt(logoTransMargin)+'px');jQuery('#menu_wrapper div .nav > li > a').css('paddingTop',menuPaddingTop+'px');jQuery('#menu_wrapper div .nav > li > a').css('paddingBottom',menuPaddingBottom+'px');;if(jQuery('.top_bar').data('hasbg')==1){jQuery('.top_bar').addClass('hasbg');jQuery('#custom_logo').addClass('hidden');jQuery('#custom_logo_transparent').removeClass('hidden');}
jQuery('.top_bar').removeClass('scroll');jQuery('#mobile_nav_icon').show();}}else{if(jQuery(this).scrollTop()>=200){jQuery('.header_style_wrapper').addClass('nofixed');}else{jQuery('.header_style_wrapper').removeClass('nofixed');}}});}
jQuery('.post_img img').imagesLoaded(function(){jQuery(this).parent('.post_img').addClass('fadeIn');});jQuery(document).mouseenter(function(){jQuery('body').addClass('hover');});jQuery(document).mouseleave(function(){jQuery('body').removeClass('hover');});var siteBaseURL=jQuery('#pp_homepage_url').val();if(jQuery('#pp_ajax_search').val()!=''){jQuery('#s').on('input',function(){jQuery.ajax({url:siteBaseURL+"/wp-admin/admin-ajax.php",type:'POST',data:'action=pp_ajax_search&s='+jQuery('#s').val(),success:function(results){jQuery("#autocomplete").html(results);if(results!=''){jQuery("#autocomplete").addClass('visible');jQuery("#autocomplete").show();jQuery("body.js_nav .mobile_menu_wrapper").css('overflow','visible');}else{jQuery("#autocomplete").hide();jQuery("body.js_nav .mobile_menu_wrapper").css('overflow','scroll');}}})});jQuery("#s").keypress(function(event){if(event.which==13){event.preventDefault();jQuery("form#searchform").submit();}});jQuery('#s').focus(function(){if(jQuery('#autocomplete').html()!=''){jQuery("#autocomplete").addClass('visible');jQuery("#autocomplete").fadeIn();}});jQuery('#s').blur(function(){jQuery("#autocomplete").fadeOut();});}
jQuery('.animated').imagesLoaded(function(){var windowWidth=jQuery(window).width();if(windowWidth>=960){jQuery(this).waypoint(function(direction){var animationClass=jQuery(this).data('animation');jQuery(this).addClass(animationClass,direction==='down');},{offset:'100%'});}});jQuery('#post_more_close').on('click',function(){jQuery('#post_more_wrapper').animate({right:'-380px'},300);return false;});jQuery('#mobile_nav_icon').on('click',function(){jQuery('body,html').animate({scrollTop:0},100);jQuery('body').toggleClass('js_nav');if(is_touch_device()){jQuery('body.js_nav').css('overflow','auto');}});jQuery('#close_mobile_menu').on('click',function(){jQuery('body').removeClass('js_nav');});jQuery('.mobile_menu_close a').on('click',function(){jQuery('body').removeClass('js_nav');});jQuery('.close_alert').on('click',function(){var target=jQuery(this).data('target');jQuery('#'+target).fadeOut();});jQuery('.progress_bar').waypoint(function(direction){jQuery(this).addClass('fadeIn');var progressContent=jQuery(this).children('.progress_bar_holder').children('.progress_bar_content');var progressWidth=progressContent.data('score');progressContent.css({'width':progressWidth+'%'});},{offset:'100%'});jQuery('.tooltip').tooltipster();jQuery('.demotip').tooltipster({position:'left'});jQuery('.portfolio_prev_next_link').each(function(){jQuery(this).tooltipster({content:jQuery('<img src="'+jQuery(this).attr('data-img')+'" /><br/><div style="text-align:center;margin:7px 0 5px 0;"><strong>'+jQuery(this).attr('data-title')+'</strong></div>')});});jQuery('.post_prev_next_link').each(function(){jQuery(this).tooltipster({content:jQuery('<img src="'+jQuery(this).attr('data-img')+'" />')});});jQuery('.post_share').on('click',function(){var targetShareID=jQuery(this).attr('data-share');var targetParentID=jQuery(this).attr('data-parent');jQuery(this).toggleClass('visible');jQuery('#'+targetShareID).toggleClass('slideUp');jQuery('#'+targetParentID).toggleClass('sharing');return false;});if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length>0){var sliderHeight=jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();var topBarHeight=jQuery('.top_bar').height();if(jQuery('.above_top_bar').length>0){topBarHeight+=jQuery('.above_top_bar').height();}
if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length>0){var topBarHeight=55;}
jQuery('.ppb_wrapper').css('marginTop',sliderHeight-topBarHeight+'px');jQuery('#page_content_wrapper').css('marginTop',sliderHeight-topBarHeight+'px');}
jQuery(window).resize(function(){if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').length>0){var sliderHeight=jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper').height();var topBarHeight=jQuery('.top_bar').height();if(jQuery('.above_top_bar').length>0){topBarHeight+=jQuery('.above_top_bar').height();}
if(jQuery('.page_slider.menu_transparent').find('.rev_slider_wrapper.fullscreen-container').length>0){var topBarHeight=55;}
jQuery('.ppb_wrapper').css('marginTop',sliderHeight-topBarHeight+'px');jQuery('#page_content_wrapper').css('marginTop',sliderHeight-topBarHeight+'px');}});jQuery('.skin_box').on('click',function(){jQuery('.skin_box').removeClass('selected');jQuery(this).addClass('selected');jQuery('#skin').val(jQuery(this).attr('data-color'));});jQuery('#demo_apply').on('click',function(){jQuery('#ajax_loading').addClass('visible');jQuery('body').addClass('loading');jQuery("form#form_option").submit();});jQuery('#option_wrapper').mouseenter(function(){jQuery('body').addClass('overflow_hidden');});jQuery('#option_wrapper').mouseleave(function(){jQuery('body').removeClass('overflow_hidden');});jQuery('.animate').waypoint(function(direction){var windowWidth=jQuery(window).width();jQuery(this).addClass('visible',direction==='down');},{offset:'80%'});var calScreenHeight=jQuery(window).height()-108;var miniRightPos=800;var cols=3
var masonry=jQuery('.gallery_mansory_wrapper');masonry.imagesLoaded(function(){masonry.masonry({itemSelector:'.mansory_thumbnail',isResizable:true,isAnimated:true,isFitWidth:true,columnWidth:Math.floor((masonry.width()/cols))});masonry.children('.mansory_thumbnail').children('.gallery_type').each(function(){jQuery(this).addClass('fade-in');});});jQuery(window).resize(function(){var masonry=jQuery('.gallery_mansory_wrapper');masonry.imagesLoaded(function(){masonry.masonry({itemSelector:'.mansory_thumbnail',isResizable:true,isAnimated:true,isFitWidth:true,columnWidth:Math.floor((masonry.width()/cols))});masonry.children('.mansory_thumbnail').children('.gallery_type').each(function(){jQuery(this).addClass('fade-in');});});});function launchFullscreen(element){if(element.requestFullscreen){element.requestFullscreen();}else if(element.mozRequestFullScreen){element.mozRequestFullScreen();}else if(element.webkitRequestFullscreen){element.webkitRequestFullscreen();}else if(element.msRequestFullscreen){element.msRequestFullscreen();}}
function exitFullscreen(){if(document.exitFullscreen){document.exitFullscreen();}else if(document.mozCancelFullScreen){document.mozCancelFullScreen();}else if(document.webkitExitFullscreen){document.webkitExitFullscreen();}}
jQuery('#page_maximize').click(function(){launchFullscreen(document.documentElement);jQuery(this).hide();jQuery('#page_minimize').show();});jQuery('#page_minimize').click(function(){exitFullscreen();jQuery('#page_maximize').show();jQuery(this).hide();});jQuery('#page_share').click(function(){jQuery('#overlay_background').addClass('visible');jQuery('#overlay_background').addClass('share_open');jQuery('#fullscreen_share_wrapper').css('visibility','visible');});jQuery('#overlay_background').click(function(){if(!jQuery('body').hasClass('js_nav')){jQuery('#overlay_background').removeClass('visible');jQuery('#overlay_background').removeClass('share_open');jQuery('#fullscreen_share_wrapper').css('visibility','hidden');}});jQuery('.parallax').parallax();jQuery(window).trigger('resize');jQuery(window).resize(function(){jQuery('.parallax').each(function(){var parallaxHeight=jQuery(this).data('content-height');parallaxHeight=parseInt((parallaxHeight/100)*jQuery(window).height());jQuery(this).css('height',parallaxHeight+'px');});jQuery(window).trigger('hwparallax.reconfigure');});var menuLayout=jQuery('#pp_menu_layout').val();if(jQuery(window).width()<960&&menuLayout=='leftmenu'){document.getElementById("leftmenu.css-css").disabled=true;jQuery('.mobile_menu_wrapper .logo_container').hide();}
jQuery(window).resize(function(){if(jQuery(window).width()>=960&&menuLayout=='leftmenu'){document.getElementById("leftmenu.css-css").disabled=false;jQuery('.mobile_menu_wrapper .logo_container').show();}
else if(jQuery(window).width()<960&&menuLayout=='leftmenu'){document.getElementById("leftmenu.css-css").disabled=true;jQuery('.mobile_menu_wrapper .logo_container').hide();}});jQuery('.rev_slider_wrapper.fullscreen-container').each(function(){jQuery(this).append('<div class="icon-scroll"></div>');});if(jQuery('.one.fullwidth.slideronly').length>0){jQuery('body').addClass('overflow_hidden');}});jQuery(window).on('resize load',adjustIframes);
"use strict";let cf7signature_resized=0;let wpcf7cf_timeout;let wpcf7cf_change_time_ms=100;if(window.wpcf7&&!wpcf7.setStatus){wpcf7.setStatus=(form,status)=>{form=form.length?form[0]:form;const defaultStatuses=new Map([['init','init'],['validation_failed','invalid'],['acceptance_missing','unaccepted'],['spam','spam'],['aborted','aborted'],['mail_sent','sent'],['mail_failed','failed'],['submitting','submitting'],['resetting','resetting'],]);if(defaultStatuses.has(status)){status=defaultStatuses.get(status);}
if(!Array.from(defaultStatuses.values()).includes(status)){status=status.replace(/[^0-9a-z]+/i,' ').trim();status=status.replace(/\s+/,'-');status=`custom-${ status }`;}
const prevStatus=form.getAttribute('data-status');form.wpcf7.status=status;form.setAttribute('data-status',status);form.classList.add(status);if(prevStatus&&prevStatus!==status){form.classList.remove(prevStatus);}
return status;};}
if(window.wpcf7cf_running_tests){document.querySelectorAll('input[name="_wpcf7cf_options"]').forEach(input=>{const opt=JSON.parse(input.value);opt.settings.animation_intime=0;opt.settings.animation_outtime=0;input.value=JSON.stringify(opt);});wpcf7cf_change_time_ms=0;}
const wpcf7cf_show_animation={"height":"show","marginTop":"show","marginBottom":"show","paddingTop":"show","paddingBottom":"show"};const wpcf7cf_hide_animation={"height":"hide","marginTop":"hide","marginBottom":"hide","paddingTop":"hide","paddingBottom":"hide"};const wpcf7cf_show_step_animation={"opacity":"show"};const wpcf7cf_hide_step_animation={"opacity":"hide"};const wpcf7cf_change_events='input.wpcf7cf paste.wpcf7cf change.wpcf7cf click.wpcf7cf propertychange.wpcf7cf changedisabledprop.wpcf7cf';const wpcf7cf_forms=[];const Wpcf7cfForm=function(formElement){const $form=jQuery(formElement);const options_element=$form.find('input[name="_wpcf7cf_options"]').eq(0);if(!options_element.length||!options_element.val()){return false;}
const form=this;formElement.addEventListener('submit',function(e){if(window.wpcf7cf_updatingGroups){e.preventDefault();e.stopImmediatePropagation();const retry=()=>{if(!window.wpcf7cf_updatingGroups){$form.off('.wpcf7cf-autosubmit');formElement.requestSubmit();}else{requestAnimationFrame(retry);}};$form.on('submit.wpcf7cf-autosubmit',(e)=>e.preventDefault());retry();return false;}},true);const submitButtons=formElement.querySelectorAll('button[type=submit], input[type=submit]');const observer=new MutationObserver(()=>{const isSubmitting=formElement.classList.contains('submitting');submitButtons.forEach(button=>{button.disabled=isSubmitting;button.classList.toggle('is-disabled',isSubmitting);});});observer.observe(formElement,{attributes:true,attributeFilter:['class']});const form_options=JSON.parse(options_element.val());form.$form=$form;form.formElement=formElement;form.$input_hidden_group_fields=$form.find('[name="_wpcf7cf_hidden_group_fields"]');form.$input_hidden_groups=$form.find('[name="_wpcf7cf_hidden_groups"]');form.$input_visible_groups=$form.find('[name="_wpcf7cf_visible_groups"]');form.$input_repeaters=$form.find('[name="_wpcf7cf_repeaters"]');form.$input_steps=$form.find('[name="_wpcf7cf_steps"]');form.unit_tag=$form.closest('.wpcf7').attr('id');form.conditions=form_options['conditions'];form.simpleDom=null;form.reloadSimpleDom=function(){form.simpleDom=wpcf7cf.get_simplified_dom_model(form.formElement);}
form.updateSimpleDom=function(){if(!form.simpleDom){form.reloadSimpleDom();}
const inputs=Object.values(form.simpleDom).filter(item=>item.type==='input');const formdata=new FormData(form.formElement);let formdataEntries=[...formdata.entries()].map(entry=>[entry[0],entry[1].name??entry[1]]);const buttonEntries=Array.from(form.formElement.querySelectorAll('button'),b=>[b.name,b.value]);formdataEntries=formdataEntries.concat(buttonEntries);inputs.forEach(simpleDomItem=>{const newValue=form.getNewDomValueIfChanged(simpleDomItem,formdataEntries);if(newValue!==null){form.simpleDom[simpleDomItem.name].val=newValue;}});}
form.isDomMatch=function(simpleDomItem,formDataEntries){const simpleDomItemName=simpleDomItem.name;const simpleDomItemValues=simpleDomItem.val;const currentValues=formDataEntries.filter(entry=>entry[0]===simpleDomItemName).map(entry=>entry[1]);return currentValues.join('|')===simpleDomItemValues.join('|');}
form.getNewDomValueIfChanged=function(simpleDomItem,formDataEntries){const simpleDomItemName=simpleDomItem.name;const simpleDomItemValues=simpleDomItem.val;const currentValues=formDataEntries.filter(entry=>entry[0]===simpleDomItemName).map(entry=>entry[1]);return currentValues.join('|')===simpleDomItemValues.join('|')?null:currentValues;}
form.get=function(selector){return jQuery(selector,form.$form);}
form.getFieldByName=function(name){return form.simpleDom[name]||form.simpleDom[name+'[]'];}
for(let i=0;i<form.conditions.length;i++){const condition=form.conditions[i];if(!('and_rules'in condition)){condition.and_rules=[{'if_field':condition.if_field,'if_value':condition.if_value,'operator':condition.operator}];}}
form.initial_conditions=form.conditions;form.settings=form_options['settings'];form.$groups=jQuery();form.repeaters=[];form.multistep=null;form.fields=[];form.settings.animation_intime=parseInt(form.settings.animation_intime);form.settings.animation_outtime=parseInt(form.settings.animation_outtime);if(form.settings.animation==='no'){form.settings.animation_intime=0;form.settings.animation_outtime=0;}
form.updateGroups();form.updateEventListeners();form.displayFields();form.$form.on('reset.wpcf7cf',form,function(e){const form=e.data;setTimeout(function(){form.reloadSimpleDom();form.displayFields();form.resetRepeaters();if(form.multistep!=null){form.multistep.moveToStep(1,false);}
setTimeout(function(){if(form.$form.hasClass('sent')){jQuery('.wpcf7-response-output',form.$form)[0].scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"});}},400);},200);});}
Wpcf7cfForm.prototype.resetRepeaters=function(){const form=this;form.repeaters.forEach(repeater=>{repeater.updateSubs(repeater.params.$repeater.initial_subs);});}
Wpcf7cfForm.prototype.displayFields=function(){const form=this;const wpcf7cf_conditions=this.conditions;const wpcf7cf_settings=this.settings;if(cf7signature_resized===0&&typeof signatures!=='undefined'&&signatures.constructor===Array&&signatures.length>0){for(let i=0;i<signatures.length;i++){if(signatures[i].canvas.width===0){const $sig_canvas=jQuery(".wpcf7-form-control-signature-body>canvas");const $sig_wrap=jQuery(".wpcf7-form-control-signature-wrap");$sig_canvas.eq(i).attr('width',$sig_wrap.width());$sig_canvas.eq(i).attr('height',$sig_wrap.height());cf7signature_resized=1;}}}
form.$groups.addClass('wpcf7cf-hidden');for(let i=0;i<wpcf7cf_conditions.length;i++){const condition=wpcf7cf_conditions[i];const show_group=window.wpcf7cf.should_group_be_shown(condition,form);if(show_group){form.get('[data-id="'+condition.then_field+'"]').removeClass('wpcf7cf-hidden');}}
const animation_intime=wpcf7cf_settings.animation_intime;const animation_outtime=wpcf7cf_settings.animation_outtime;form.$groups.each(function(index){const $group=jQuery(this);if($group.is(':animated')){$group.finish();}
if($group.css('display')==='none'&&!$group.hasClass('wpcf7cf-hidden')){if($group.prop('tagName')==='SPAN'){$group.show().trigger('wpcf7cf_show_group');}else{$group.animate(wpcf7cf_show_animation,animation_intime).trigger('wpcf7cf_show_group');}
if($group.attr('data-disable_on_hide')!==undefined){$group.find(':input').prop('disabled',false).trigger('changedisabledprop.wpcf7cf');$group.find('.wpcf7-form-control-wrap').removeClass('wpcf7cf-disabled');}}else if($group.css('display')!=='none'&&$group.hasClass('wpcf7cf-hidden')){if($group.attr('data-clear_on_hide')!==undefined){const $inputs=jQuery(':input',$group).not(':button, :submit, :reset, :hidden');$inputs.each(function(){const $this=jQuery(this);$this.val(this.defaultValue);$this.prop('checked',this.defaultChecked);});jQuery('option',$group).each(function(){this.selected=this.defaultSelected;});jQuery('select',$group).each(function(){const $select=jQuery(this);if($select.val()===null){$select.val(jQuery("option:first",$select).val());}});$inputs.each(function(){this.dispatchEvent(new Event("change",{"bubbles":true}))});}
if($group.prop('tagName')==='SPAN'){$group.hide().trigger('wpcf7cf_hide_group');}else{$group.animate(wpcf7cf_hide_animation,animation_outtime).trigger('wpcf7cf_hide_group');}}});form.updateHiddenFields();form.updateSummaryFields();};Wpcf7cfForm.prototype.updateSummaryFields=function(){const form=this;const $summary=form.get('.wpcf7cf-summary');if($summary.length==0||!$summary.is(':visible')){return;}
const fd=new FormData();const formdata=form.$form.serializeArray();jQuery.each(formdata,function(key,input){fd.append(input.name,input.value);});jQuery.each(form.$form.find('input[type="file"]'),function(index,el){if(!el.files.length)return true;const fieldName=el.name;fd.append(fieldName,new Blob(),Array.from(el.files).map(file=>file.name).join(', '));});jQuery.ajax({url:wpcf7cf_global_settings.ajaxurl+'?action=wpcf7cf_get_summary',type:'POST',data:fd,processData:false,contentType:false,dataType:'json',success:function(json){$summary.html(json.summaryHtml);}});};Wpcf7cfForm.prototype.updateHiddenFields=function(){const form=this;const hidden_fields=[];const hidden_groups=[];const visible_groups=[];form.$groups.each(function(){const $group=jQuery(this);if($group.hasClass('wpcf7cf-hidden')){hidden_groups.push($group.attr('data-id'));if($group.attr('data-disable_on_hide')!==undefined){$group.find('input,select,textarea').each(function(){const $this=jQuery(this);if(!$this.prop('disabled')){$this.prop('disabled',true).trigger('changedisabledprop.wpcf7cf');}
if(form.$form.find(`[data-class="wpcf7cf_group"]:not(.wpcf7cf-hidden) [name='${$this.attr('name')}']`).length===0){hidden_fields.push($this.attr('name'));}})
$group.find('.wpcf7-form-control-wrap').addClass('wpcf7cf-disabled');}else{$group.find('input,select,textarea').each(function(){hidden_fields.push(jQuery(this).attr('name'));});}}else{visible_groups.push($group.attr('data-id'));}});form.hidden_fields=hidden_fields;form.hidden_groups=hidden_groups;form.visible_groups=visible_groups;form.$input_hidden_group_fields.val(JSON.stringify(hidden_fields));form.$input_hidden_groups.val(JSON.stringify(hidden_groups));form.$input_visible_groups.val(JSON.stringify(visible_groups));return true;};Wpcf7cfForm.prototype.updateGroups=function(){const form=this;form.$groups=form.$form.find('[data-class="wpcf7cf_group"]');form.$groups.height('auto');form.conditions=window.wpcf7cf.get_nested_conditions(form);};Wpcf7cfForm.prototype.updateEventListeners=function(){const form=this;form.get('input, select, textarea, button').not('.wpcf7cf_add, .wpcf7cf_remove').off(wpcf7cf_change_events).on(wpcf7cf_change_events,form,function(e){window.wpcf7cf_updatingGroups=true;const form=e.data;clearTimeout(wpcf7cf_timeout);wpcf7cf_timeout=setTimeout(function(){window.wpcf7cf.updateMultistepState(form.multistep);form.updateSimpleDom();form.displayFields();window.wpcf7cf_updatingGroups=false;},wpcf7cf_change_time_ms);});};window.wpcf7cf={hideGroup:function($group,animate){},showGroup:function($group,animate){},updateRepeaterSubHTML:function(html,oldSuffix,newSuffix,parentRepeaters){const oldIndexes=oldSuffix.split('__');oldIndexes.shift();const newIndexes=newSuffix.split('__');newIndexes.shift();let returnHtml=html;if(oldIndexes&&newIndexes&&oldIndexes.length===parentRepeaters.length&&newIndexes.length===parentRepeaters.length){const parentRepeatersInfo=parentRepeaters.map((repeaterId,i)=>{return{[repeaterId.split('__')[0]]:[oldIndexes[i],newIndexes[i]]};});const length=parentRepeatersInfo.length;let replacements=oldIndexes.map((oldIndex,i)=>{return['__'+oldIndexes.slice(0,length-i).join('__'),'__'+newIndexes.slice(0,length-i).join('__'),];});for(let i=0;i<length;i++){const id=Object.keys(parentRepeatersInfo[i])[0];const find=parentRepeatersInfo[i][id][0];const repl=parentRepeatersInfo[i][id][1];replacements.push([`<span class="wpcf7cf-index wpcf7cf__${id}">${find}<\\/span>`,`<span class="wpcf7cf-index wpcf7cf__${id}">${repl}</span>`]);}
replacements.forEach(([oldSuffix,newSuffix])=>{returnHtml=returnHtml.replace(new RegExp(oldSuffix,'g'),newSuffix);});}
return returnHtml;},initForm:function($forms){$forms.each(function(){const formElement=this;if(formElement.classList.contains('wpcf7-form')&&!wpcf7cf_forms.some((form)=>{return form.$form.get(0)===formElement;})){wpcf7cf_forms.push(new Wpcf7cfForm(formElement));}});},getWpcf7cfForm:function($form){const matched_forms=wpcf7cf_forms.filter((form)=>{return form.$form.get(0)===$form.get(0);});if(matched_forms.length){return matched_forms[0];}
return false;},get_nested_conditions:function(form){const conditions=form.initial_conditions;form.reloadSimpleDom();const groups=Object.values(form.simpleDom).filter(function(item,i){return item.type==='group';});let sub_conditions=[];for(let i=0;i<groups.length;i++){const g=groups[i];let relevant_conditions=conditions.filter(function(condition,i){return condition.then_field===g.original_name;});relevant_conditions=relevant_conditions.map(function(item,i){return{then_field:g.name,and_rules:item.and_rules.map(function(and_rule,i){return{if_field:and_rule.if_field+g.suffix,if_value:and_rule.if_value,operator:and_rule.operator};})}});sub_conditions=sub_conditions.concat(relevant_conditions);}
return sub_conditions;},get_simplified_dom_model:function(currentNode,simplified_dom={},parentGroups=[],parentRepeaters=[]){const type=currentNode.classList&&currentNode.classList.contains('wpcf7cf_repeater')?'repeater':currentNode.dataset.class=='wpcf7cf_group'?'group':currentNode.className=='wpcf7cf_step'?'step':currentNode.hasAttribute('name')?'input':false;let newParentRepeaters=[...parentRepeaters];let newParentGroups=[...parentGroups];if(type){const name=type==='input'?currentNode.getAttribute('name'):currentNode.dataset.id;if(type==='repeater'){newParentRepeaters.push(name);}
if(type==='group'){newParentGroups.push(name);}
if(name.substring(0,6)==='_wpcf7')return{};const original_name=type==='repeater'||type==='group'?currentNode.dataset.orig_data_id:type==='input'?(currentNode.getAttribute('data-orig_name')||name):name;const nameWithoutBrackets=name.replace('[]','');const originalNameWithoutBrackets=original_name.replace('[]','');const val=type==='step'?[currentNode.dataset.id.substring(5)]:[];const suffix=nameWithoutBrackets.replace(originalNameWithoutBrackets,'');if(!simplified_dom[name]){simplified_dom[name]={name,type,original_name,suffix,val,parentGroups,parentRepeaters}}
if(type==='input'){if((currentNode.type==='checkbox'||currentNode.type==='radio')&&!currentNode.checked)return{};if(currentNode.multiple&&currentNode.options){simplified_dom[name].val=Object.values(currentNode.options).filter(o=>o.selected).map(o=>o.value)}else{simplified_dom[name].val.push(currentNode.value);}}}
const getter=Object.getOwnPropertyDescriptor(Element.prototype,"children").get;const children=getter.call(currentNode);Array.from(children).forEach(childNode=>{const dom=wpcf7cf.get_simplified_dom_model(childNode,simplified_dom,newParentGroups,newParentRepeaters);simplified_dom={...dom,...simplified_dom};});return simplified_dom;},updateMultistepState:function(multistep){if(multistep==null)return;if(multistep.form.$form.hasClass('submitting'))return;const stepsData={currentStep:multistep.currentStep,numSteps:multistep.numSteps,fieldsInCurrentStep:multistep.getFieldsInStep(multistep.currentStep)};multistep.form.$input_steps.val(JSON.stringify(stepsData));multistep.$btn_prev.removeClass('disabled').attr('disabled',false);multistep.$btn_next.removeClass('disabled').attr('disabled',false);if(multistep.currentStep==multistep.numSteps){multistep.$btn_next.addClass('disabled').attr('disabled',true);}
if(multistep.currentStep==1){multistep.$btn_prev.addClass('disabled').attr('disabled',true);}
const $submit_button=multistep.form.$form.find('input[type="submit"]:last').eq(0);const $ajax_loader=multistep.form.$form.find('.wpcf7-spinner').eq(0);$submit_button.detach().prependTo(multistep.$btn_next.parent());$ajax_loader.detach().prependTo(multistep.$btn_next.parent());if(multistep.currentStep==multistep.numSteps){multistep.$btn_next.hide();$submit_button.show();}else{$submit_button.hide();multistep.$btn_next.show();}
const $dots=multistep.$dots.find('.dot');$dots.removeClass('active').removeClass('completed');for(let step=1;step<=multistep.numSteps;step++){if(step<multistep.currentStep){$dots.eq(step-1).addClass('completed');}else if(step==multistep.currentStep){$dots.eq(step-1).addClass('active');}}},should_group_be_shown:function(condition,form){let show_group=true;let atLeastOneFieldFound=false;for(let and_rule_i=0;and_rule_i<condition.and_rules.length;and_rule_i++){let condition_ok=false;const condition_and_rule=condition.and_rules[and_rule_i];const inputField=form.getFieldByName(condition_and_rule.if_field);if(!inputField)continue;atLeastOneFieldFound=true;const if_val=condition_and_rule.if_value;let operator=condition_and_rule.operator;operator=operator==='≤'?'less than or equals':operator;operator=operator==='≥'?'greater than or equals':operator;operator=operator==='>'?'greater than':operator;operator=operator==='<'?'less than':operator;const $field=operator==='function'&&jQuery(`[name="${inputField.name}"]`).eq(0);condition_ok=this.isConditionTrue(inputField.val,operator,if_val,$field);show_group=show_group&&condition_ok;}
return show_group&&atLeastOneFieldFound;},isConditionTrue(values,operator,testValue='',$field=jQuery()){if(!Array.isArray(values)){values=[values];}
let condition_ok=false;const valuesAreEmpty=values.length===0||values.every((v)=>!v&&v!==0);if(operator==='equals'&&testValue===''&&valuesAreEmpty){return true;}
if(operator==='not equals'&&testValue===''&&valuesAreEmpty){return false;}
if(valuesAreEmpty){if(operator==='is empty'){condition_ok=true;}}else{if(operator==='not empty'){condition_ok=true;}}
const testValueNumber=isFinite(parseFloat(testValue))?parseFloat(testValue):NaN;if(operator==='not equals'||operator==='not equals (regex)'){condition_ok=true;}
if(operator==='function'&&typeof window[testValue]=='function'&&window[testValue]($field)){condition_ok=true;}
let regex_patt=/.*/i;let isValidRegex=true;if(operator==='equals (regex)'||operator==='not equals (regex)'){try{regex_patt=new RegExp(testValue,'i');}catch(e){isValidRegex=false;}}
for(let i=0;i<values.length;i++){const value=values[i];const valueNumber=isFinite(parseFloat(value))?parseFloat(value):NaN;const valsAreNumbers=!isNaN(valueNumber)&&!isNaN(testValueNumber);if(operator==='equals'&&value===testValue||operator==='equals (regex)'&&regex_patt.test(value)||operator==='greater than'&&valsAreNumbers&&valueNumber>testValueNumber||operator==='less than'&&valsAreNumbers&&valueNumber<testValueNumber||operator==='greater than or equals'&&valsAreNumbers&&valueNumber>=testValueNumber||operator==='less than or equals'&&valsAreNumbers&&valueNumber<=testValueNumber){condition_ok=true;break;}else if(operator==='not equals'&&value===testValue||operator==='not equals (regex)'&&regex_patt.test(value)){condition_ok=false;break;}}
return condition_ok;},getFormObj($form){if(typeof $form==='string'){$form=jQuery($form).eq(0);}
return wpcf7cf.getWpcf7cfForm($form);},getRepeaterObj($form,repeaterDataId){const form=wpcf7cf.getFormObj($form);const repeater=form.repeaters.find(repeater=>repeater.params.$repeater.attr('data-id')===repeaterDataId);return repeater;},getMultiStepObj($form){const form=wpcf7cf.getFormObj($form);return form.multistep;},repeaterAddSub($form,repeaterDataId){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(repeater.params.$repeater.num_subs+1);},repeaterAddSubAtIndex($form,repeaterDataId,index){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.addSubs(1,index);},repeaterRemoveSubAtIndex($form,repeaterDataId,index){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.removeSubs(1,index);},repeaterRemoveSub($form,repeaterDataId){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(repeater.params.$repeater.num_subs-1);},repeaterSetNumberOfSubs($form,repeaterDataId,numberOfSubs){const repeater=wpcf7cf.getRepeaterObj($form,repeaterDataId);repeater.updateSubs(numberOfSubs);},multistepMoveToStep($form,step){const multistep=wpcf7cf.getMultiStepObj($form);multistep.moveToStep(step);},async multistepMoveToStepWithValidation($form,step){const multistep=wpcf7cf.getMultiStepObj($form);const result=await multistep.validateStep(multistep.currentStep);if(result==='success'){multistep.moveToStep(step);}},};document.querySelectorAll('.wpcf7-form').forEach(function(formElement){wpcf7cf_forms.push(new Wpcf7cfForm(formElement));});document.addEventListener('DOMContentLoaded',function(){wpcf7cf_forms.forEach(function(f){f.displayFields();});});
jQuery(document).ready(function(){"use strict";jQuery('#menu_wrapper div .nav li a, .mobile_main_nav li a').on('click',function(event){var documentScroll=jQuery(document).scrollTop();var linkURL=jQuery(this).attr('href');if(linkURL.slice(0,1)=='#'){event.preventDefault();var sectionID=jQuery(this).attr('href').substr(1);var topBarHeight=jQuery('.top_bar').height();if(sectionID=='top'){jQuery('body,html').animate({scrollTop:0},1200);}else{if(documentScroll!=0){var scrollToPos=parseInt(jQuery('#'+sectionID).offset().top-topBarHeight);}else{var scrollToPos=parseInt(jQuery('#'+sectionID).offset().top-topBarHeight+32);}
jQuery('body,html').animate({scrollTop:scrollToPos},1200);}
jQuery('#menu_wrapper div .nav li').removeClass('current-menu-item');jQuery(this).parent('li').addClass('current-menu-item');if(jQuery(window).width()<960){jQuery('body').removeClass('js_nav');}}else{return true;}});jQuery('#menu_wrapper div .nav li a').each(function(){var sectionElement=jQuery(this).attr('href');if(typeof sectionElement!='undefined'&&sectionElement.charAt(0)=='#'){var topBarHeight=jQuery('.top_bar').height();jQuery(sectionElement).waypoint(function(direction){jQuery('#menu_wrapper div .nav li a').each(function(){if(jQuery(this).attr('href')==sectionElement){jQuery('#menu_wrapper div .nav li').removeClass('current-menu-item');jQuery(this).parent('li').addClass('current-menu-item');}})},{offset:topBarHeight});}});});
(function($){$.extend($.fn,{validate:function(options){if(!this.length){options&&options.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return;}
var validator=$.data(this[0],'validator');if(validator){return validator;}
validator=new $.validator(options,this[0]);$.data(this[0],'validator',validator);if(validator.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){validator.cancelSubmit=true;});if(validator.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){validator.submitButton=this;});}
this.submit(function(event){if(validator.settings.debug)event.preventDefault();function handle(){if(validator.settings.submitHandler){if(validator.submitButton){var hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val(validator.submitButton.value).appendTo(validator.currentForm);}
validator.settings.submitHandler.call(validator,validator.currentForm);if(validator.submitButton){hidden.remove();}
return false;}
return true;}
if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}
if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}
return handle();}else{validator.focusInvalid();return false;}});}
return validator;},valid:function(){if($(this[0]).is('form')){return this.validate().form();}else{var valid=true;var validator=$(this[0].form).validate();this.each(function(){valid&=validator.element(this);});return valid;}},removeAttrs:function(attributes){var result={},$element=this;$.each(attributes.split(/\s/),function(index,value){result[value]=$element.attr(value);$element.removeAttr(value);});return result;},rules:function(command,argument){var element=this[0];if(command){var settings=$.data(element.form,'validator').settings;var staticRules=settings.rules;var existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case"remove":if(!argument){delete staticRules[element.name];return existingRules;}
var filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}
var data=$.validator.normalizeRules($.extend({},$.validator.metadataRules(element),$.validator.classRules(element),$.validator.attributeRules(element),$.validator.staticRules(element)),element);if(data.required){var param=data.required;delete data.required;data=$.extend({required:param},data);}
return data;}});$.extend($.expr[":"],{blank:function(a){return!$.trim(""+a.value);},filled:function(a){return!!$.trim(""+a.value);},unchecked:function(a){return!a.checked;}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length==1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};if(arguments.length>2&&params.constructor!=Array){params=$.makeArray(arguments).slice(1);}
if(params.constructor!=Array){params=[params];}
$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),n);});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.errorsFor(element).hide();}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function(element){if(element.name in this.submitted||element==this.lastElement){this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);else if(element.parentNode.name in this.submitted)this.element(element.parentNode);},highlight:function(element,errorClass,validClass){$(element).addClass(errorClass).removeClass(validClass);},unhighlight:function(element,errorClass,validClass){$(element).removeClass(errorClass).addClass(validClass);}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var groups=(this.groups={});$.each(this.settings.groups,function(key,value){$.each(value.split(/\s/),function(index,name){groups[name]=key;});});var rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var validator=$.data(this[0].form,"validator"),eventType="on"+event.type.replace(/^validate/,"");validator.settings[eventType]&&validator.settings[eventType].call(validator,this[0]);}
$(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",delegate).validateDelegate(":radio, :checkbox, select, option","click",delegate);if(this.settings.invalidHandler)$(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler);},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++){this.check(elements[i]);}
return this.valid();},element:function(element){element=this.clean(element);this.lastElement=element;this.prepareElement(element);this.currentElements=$(element);var result=this.check(element);if(result){delete this.invalid[element.name];}else{this.invalid[element.name]=true;}
if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}
this.showErrors();return result;},showErrors:function(errors){if(errors){$.extend(this.errorMap,errors);this.errorList=[];for(var name in errors){this.errorList.push({message:errors[name],element:this.findByName(name)[0]});}
this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}
this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors();},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0;for(var i in obj)count++;return count;},hideErrors:function(){this.addWrapper(this.toHide).hide();},valid:function(){return this.size()==0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin");}catch(e){}}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name==lastActive.name;}).length==1&&lastActive;},elements:function(){var validator=this,rulesCache={};return $([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&validator.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[this.name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){return $(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext);},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},check:function(element){element=this.clean(element);if(this.checkable(element)){element=this.findByName(element.name)[0];}
var rules=$(element).rules();var dependencyMismatch=false;for(method in rules){var rule={method:method,parameters:rules[method]};try{var result=$.validator.methods[method].call(this,element.value.replace(/\r/g,""),element,rule.parameters);if(result=="dependency-mismatch"){dependencyMismatch=true;continue;}
dependencyMismatch=false;if(result=="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return;}
if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){this.settings.debug&&window.console&&console.log("exception occured when checking element "+element.id+", check the '"+rule.method+"' method",e);throw e;}}
if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true;},customMetaMessage:function(element,method){if(!$.metadata)return;var meta=this.settings.meta?$(element).metadata()[this.settings.meta]:$(element).metadata();return meta&&meta.messages&&meta.messages[method];},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor==String?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined)return arguments[i];}
return undefined;},defaultMessage:function(element,method){return this.findDefined(this.customMessage(element.name,method),this.customMetaMessage(element,method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[method],"<strong>Warning: No message defined for "+element.name+"</strong>");},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule.method),theregex=/\$?\{(\d+)\}/g;if(typeof message=="function"){message=message.call(this,rule.parameters,element);}else if(theregex.test(message)){message=jQuery.format(message.replace(theregex,'{$1}'),rule.parameters);}
this.errorList.push({message:message,element:element});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){for(var i=0;this.errorList[i];i++){var error=this.errorList[i];this.settings.highlight&&this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message);}
if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}
if(this.settings.success){for(var i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}
if(this.settings.unhighlight){for(var i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}
this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var label=this.errorsFor(element);if(label.length){label.removeClass().addClass(this.settings.errorClass);label.attr("generated")&&label.html(message);}else{label=$("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(element),generated:true}).addClass(this.settings.errorClass).html(message||"");if(this.settings.wrapper){label=label.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}
if(!this.labelContainer.append(label).length)this.settings.errorPlacement?this.settings.errorPlacement(label,$(element)):label.insertAfter(element);}
if(!message&&this.settings.success){label.text("");typeof this.settings.success=="string"?label.addClass(this.settings.success):this.settings.success(label);}
this.toShow=this.toShow.add(label);},errorsFor:function(element){var name=this.idOrName(element);return this.errors().filter(function(){return $(this).attr('for')==name;});},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},checkable:function(element){return/radio|checkbox/i.test(element.type);},findByName:function(name){var form=this.currentForm;return $(document.getElementsByName(name)).map(function(index,element){return element.form==form&&element.name==name&&element||null;});},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case'select':return $("option:selected",element).length;case'input':if(this.checkable(element))return this.findByName(element.name).filter(':checked').length;}
return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param,element){return param;},"string":function(param,element){return!!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){return!$.validator.methods.required.call(this,$.trim(element.value),element)&&"dependency-mismatch";},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;this.pending[element.name]=true;}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];if(valid&&this.pendingRequest==0&&this.formSubmitted&&this.form()){$(this.currentForm).submit();this.formSubmitted=false;}else if(!valid&&this.pendingRequest==0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false;}},previousValue:function(element){return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,"remote")});}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){className.constructor==String?this.classRuleSettings[className]=rules:$.extend(this.classRuleSettings,className);},classRules:function(element){var rules={};var classes=$(element).attr('class');classes&&$.each(classes.split(' '),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);}});return rules;},attributeRules:function(element){var rules={};var $element=$(element);for(method in $.validator.methods){var value=$element.attr(method);if(value){rules[method]=value;}}
if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}
return rules;},metadataRules:function(element){if(!$.metadata)return{};var meta=$.data(element.form,'validator').settings.meta;return meta?$(element).metadata()[meta]:$(element).metadata();},staticRules:function(element){var rules={};var validator=$.data(element.form,'validator');if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};}
return rules;},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}
if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break;}
if(keepRule){rules[prop]=val.param!==undefined?val.param:true;}else{delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=$.isFunction(parameter)?parameter(element):parameter;});$.each(['minlength','maxlength','min','max'],function(){if(rules[this]){rules[this]=Number(rules[this]);}});$.each(['rangelength','range'],function(){if(rules[this]){rules[this]=[Number(rules[this][0]),Number(rules[this][1])];}});if($.validator.autoCreateRanges){if(rules.min&&rules.max){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}
if(rules.minlength&&rules.maxlength){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}
if(rules.messages){delete rules.messages;}
return rules;},normalizeRule:function(data){if(typeof data=="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}
return data;},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!=undefined?message:$.validator.messages[name];if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function(value,element,param){if(!this.depend(param,element))return"dependency-mismatch";switch(element.nodeName.toLowerCase()){case'select':var val=$(element).val();return val&&val.length>0;case'input':if(this.checkable(element))return this.getLength(value,element)>0;default:return $.trim(value).length>0;}},remote:function(value,element,param){if(this.optional(element))return"dependency-mismatch";var previous=this.previousValue(element);if(!this.settings.messages[element.name])this.settings.messages[element.name]={};previous.originalMessage=this.settings.messages[element.name].remote;this.settings.messages[element.name].remote=previous.message;param=typeof param=="string"&&{url:param}||param;if(previous.old!==value){previous.old=value;var validator=this;this.startRequest(element);var data={};data[element.name]=value;$.ajax($.extend(true,{url:param,mode:"abort",port:"validate"+element.name,dataType:"json",data:data,success:function(response){validator.settings.messages[element.name].remote=previous.originalMessage;var valid=response===true;if(valid){var submitted=validator.formSubmitted;validator.prepareElement(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.showErrors();}else{var errors={};var message=(previous.message=response||validator.defaultMessage(element,"remote"));errors[element.name]=$.isFunction(message)?message(value):message;validator.showErrors(errors);}
previous.valid=valid;validator.stopRequest(element,valid);}},param));return"pending";}else if(this.pending[element.name]){return"pending";}
return previous.valid;},minlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)>=param;},maxlength:function(value,element,param){return this.optional(element)||this.getLength($.trim(value),element)<=param;},rangelength:function(value,element,param){var length=this.getLength($.trim(value),element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},email:function(value,element){return this.optional(element)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(value);},url:function(value,element){return this.optional(element)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(value);},date:function(value,element){return this.optional(element)||!/Invalid|NaN/.test(new Date(value));},dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(value);},number:function(value,element){return this.optional(element)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},creditcard:function(value,element){if(this.optional(element))return"dependency-mismatch";if(/[^0-9-]+/.test(value))return false;var nCheck=0,nDigit=0,bEven=false;value=value.replace(/\D/g,"");for(var n=value.length-1;n>=0;n--){var cDigit=value.charAt(n);var nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9)nDigit-=9;}
nCheck+=nDigit;bEven=!bEven;}
return(nCheck%10)==0;},accept:function(value,element,param){param=typeof param=="string"?param.replace(/,/g,'|'):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp(".("+param+")$","i"));},equalTo:function(value,element,param){var target=$(param).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){$(element).valid();});return value==target.val();}}});$.format=$.validator.format;})(jQuery);;(function($){var ajax=$.ajax;var pendingRequests={};$.ajax=function(settings){settings=$.extend(settings,$.extend({},$.ajaxSettings,settings));var port=settings.port;if(settings.mode=="abort"){if(pendingRequests[port]){pendingRequests[port].abort();}
return(pendingRequests[port]=ajax.apply(this,arguments));}
return ajax.apply(this,arguments);};})(jQuery);;(function($){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){$.each({focus:'focusin',blur:'focusout'},function(original,fix){$.event.special[fix]={setup:function(){this.addEventListener(original,handler,true);},teardown:function(){this.removeEventListener(original,handler,true);},handler:function(e){arguments[0]=$.event.fix(e);arguments[0].type=fix;return $.event.handle.apply(this,arguments);}};function handler(e){e=$.event.fix(e);e.type=fix;return $.event.handle.call(this,e);}});};$.extend($.fn,{validateDelegate:function(delegate,type,handler){return this.bind(type,function(event){var target=$(event.target);if(target.is(delegate)){return handler.apply(target,arguments);}});}});})(jQuery);
(function(){
var COUNT_FRAMERATE, COUNT_MS_PER_FRAME, DIGIT_FORMAT, DIGIT_HTML, DIGIT_SPEEDBOOST, DURATION, FORMAT_MARK_HTML, FORMAT_PARSER, FRAMERATE, FRAMES_PER_VALUE, MS_PER_FRAME, MutationObserver, Odometer, RIBBON_HTML, TRANSITION_END_EVENTS, TRANSITION_SUPPORT, VALUE_HTML, addClass, createFromHTML, fractionalPart, now, removeClass, requestAnimationFrame, round, transitionCheckStyles, trigger, truncate, wrapJQuery, _jQueryWrapped, _old, _ref, _ref1,
__slice=[].slice;
VALUE_HTML='<span class="odometer-value"></span>';
RIBBON_HTML='<span class="odometer-ribbon"><span class="odometer-ribbon-inner">' + VALUE_HTML + '</span></span>';
DIGIT_HTML='<span class="odometer-digit"><span class="odometer-digit-spacer">8</span><span class="odometer-digit-inner">' + RIBBON_HTML + '</span></span>';
FORMAT_MARK_HTML='<span class="odometer-formatting-mark"></span>';
DIGIT_FORMAT='(,ddd).dd';
FORMAT_PARSER=/^\(?([^)]*)\)?(?:(.)(d+))?$/;
FRAMERATE=30;
DURATION=2000;
COUNT_FRAMERATE=20;
FRAMES_PER_VALUE=2;
DIGIT_SPEEDBOOST=.5;
MS_PER_FRAME=1000 / FRAMERATE;
COUNT_MS_PER_FRAME=1000 / COUNT_FRAMERATE;
TRANSITION_END_EVENTS='transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd';
transitionCheckStyles=document.createElement('div').style;
TRANSITION_SUPPORT=(transitionCheckStyles.transition!=null)||(transitionCheckStyles.webkitTransition!=null)||(transitionCheckStyles.mozTransition!=null)||(transitionCheckStyles.oTransition!=null);
requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame;
MutationObserver=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;
createFromHTML=function(html){
var el;
el=document.createElement('div');
el.innerHTML=html;
return el.children[0];
};
removeClass=function(el, name){
return el.className=el.className.replace(new RegExp("(^|)" + (name.split(' ').join('|')) + "(|$)", 'gi'), ' ');
};
addClass=function(el, name){
removeClass(el, name);
return el.className +=" " + name;
};
trigger=function(el, name){
var evt;
if(document.createEvent!=null){
evt=document.createEvent('HTMLEvents');
evt.initEvent(name, true, true);
return el.dispatchEvent(evt);
}};
now=function(){
var _ref, _ref1;
return (_ref=(_ref1=window.performance)!=null ? typeof _ref1.now==="function" ? _ref1.now():void 0:void 0)!=null ? _ref:+(new Date);
};
round=function(val, precision){
if(precision==null){
precision=0;
}
if(!precision){
return Math.round(val);
}
val *=Math.pow(10, precision);
val +=0.5;
val=Math.floor(val);
return val /=Math.pow(10, precision);
};
truncate=function(val){
if(val < 0){
return Math.ceil(val);
}else{
return Math.floor(val);
}};
fractionalPart=function(val){
return val - round(val);
};
_jQueryWrapped=false;
(wrapJQuery=function(){
var property, _i, _len, _ref, _results;
if(_jQueryWrapped){
return;
}
if(window.jQuery!=null){
_jQueryWrapped=true;
_ref=['html', 'text'];
_results=[];
for (_i=0, _len=_ref.length; _i < _len; _i++){
property=_ref[_i];
_results.push((function(property){
var old;
old=window.jQuery.fn[property];
return window.jQuery.fn[property]=function(val){
var _ref1;
if((val==null)||(((_ref1=this[0])!=null ? _ref1.odometer:void 0)==null)){
return old.apply(this, arguments);
}
return this[0].odometer.update(val);
};})(property));
}
return _results;
}})();
setTimeout(wrapJQuery, 0);
Odometer=(function(){
function Odometer(options){
var e, k, property, v, _base, _i, _len, _ref, _ref1, _ref2,
_this=this;
this.options=options;
this.el=this.options.el;
if(this.el.odometer!=null){
return this.el.odometer;
}
this.el.odometer=this;
_ref=Odometer.options;
for (k in _ref){
v=_ref[k];
if(this.options[k]==null){
this.options[k]=v;
}}
if((_base=this.options).duration==null){
_base.duration=DURATION;
}
this.MAX_VALUES=((this.options.duration / MS_PER_FRAME) / FRAMES_PER_VALUE) | 0;
this.resetFormat();
this.value=this.cleanValue((_ref1=this.options.value)!=null ? _ref1:'');
this.renderInside();
this.render();
try {
_ref2=['innerHTML', 'innerText', 'textContent'];
for (_i=0, _len=_ref2.length; _i < _len; _i++){
property=_ref2[_i];
if(this.el[property]!=null){
(function(property){
return Object.defineProperty(_this.el, property, {
get: function(){
var _ref3;
if(property==='innerHTML'){
return _this.inside.outerHTML;
}else{
return (_ref3=_this.inside.innerText)!=null ? _ref3:_this.inside.textContent;
}},
set: function(val){
return _this.update(val);
}});
})(property);
}}
} catch (_error){
e=_error;
this.watchForMutations();
}
this;
}
Odometer.prototype.renderInside=function(){
this.inside=document.createElement('div');
this.inside.className='odometer-inside';
this.el.innerHTML='';
return this.el.appendChild(this.inside);
};
Odometer.prototype.watchForMutations=function(){
var e,
_this=this;
if(MutationObserver==null){
return;
}
try {
if(this.observer==null){
this.observer=new MutationObserver(function(mutations){
var newVal;
newVal=_this.el.innerText;
_this.renderInside();
_this.render(_this.value);
return _this.update(newVal);
});
}
this.watchMutations=true;
return this.startWatchingMutations();
} catch (_error){
e=_error;
}};
Odometer.prototype.startWatchingMutations=function(){
if(this.watchMutations){
return this.observer.observe(this.el, {
childList: true
});
}};
Odometer.prototype.stopWatchingMutations=function(){
var _ref;
return (_ref=this.observer)!=null ? _ref.disconnect():void 0;
};
Odometer.prototype.cleanValue=function(val){
var _ref;
if(typeof val==='string'){
val=val.replace((_ref=this.format.radix)!=null ? _ref:'.', '<radix>');
val=val.replace(/[.,]/g, '');
val=val.replace('<radix>', '.');
val=parseFloat(val, 10)||0;
}
return round(val, this.format.precision);
};
Odometer.prototype.bindTransitionEnd=function(){
var event, renderEnqueued, _i, _len, _ref, _results,
_this=this;
if(this.transitionEndBound){
return;
}
this.transitionEndBound=true;
renderEnqueued=false;
_ref=TRANSITION_END_EVENTS.split(' ');
_results=[];
for (_i=0, _len=_ref.length; _i < _len; _i++){
event=_ref[_i];
_results.push(this.el.addEventListener(event, function(){
if(renderEnqueued){
return true;
}
renderEnqueued=true;
setTimeout(function(){
_this.render();
renderEnqueued=false;
return trigger(_this.el, 'odometerdone');
}, 0);
return true;
}, false));
}
return _results;
};
Odometer.prototype.resetFormat=function(){
var format, fractional, parsed, precision, radix, repeating, _ref, _ref1;
format=(_ref=this.options.format)!=null ? _ref:DIGIT_FORMAT;
format||(format='d');
parsed=FORMAT_PARSER.exec(format);
if(!parsed){
throw new Error("Odometer: Unparsable digit format");
}
_ref1=parsed.slice(1, 4), repeating=_ref1[0], radix=_ref1[1], fractional=_ref1[2];
precision=(fractional!=null ? fractional.length:void 0)||0;
return this.format={
repeating: repeating,
radix: radix,
precision: precision
};};
Odometer.prototype.render=function(value){
var classes, cls, digit, match, newClasses, theme, wholePart, _i, _j, _len, _len1, _ref;
if(value==null){
value=this.value;
}
this.stopWatchingMutations();
this.resetFormat();
this.inside.innerHTML='';
theme=this.options.theme;
classes=this.el.className.split(' ');
newClasses=[];
for (_i=0, _len=classes.length; _i < _len; _i++){
cls=classes[_i];
if(!cls.length){
continue;
}
if(match=/^odometer-theme-(.+)$/.exec(cls)){
theme=match[1];
continue;
}
if(/^odometer(-|$)/.test(cls)){
continue;
}
newClasses.push(cls);
}
newClasses.push('odometer');
if(!TRANSITION_SUPPORT){
newClasses.push('odometer-no-transitions');
}
if(theme){
newClasses.push("odometer-theme-" + theme);
}else{
newClasses.push("odometer-auto-theme");
}
this.el.className=newClasses.join(' ');
this.ribbons={};
this.digits=[];
wholePart = !this.format.precision||!fractionalPart(value)||false;
_ref=value.toString().split('').reverse();
for (_j=0, _len1=_ref.length; _j < _len1; _j++){
digit=_ref[_j];
if(digit==='.'){
wholePart=true;
}
this.addDigit(digit, wholePart);
}
return this.startWatchingMutations();
};
Odometer.prototype.update=function(newValue){
var diff,
_this=this;
newValue=this.cleanValue(newValue);
if(!(diff=newValue - this.value)){
return;
}
removeClass(this.el, 'odometer-animating-up odometer-animating-down odometer-animating');
if(diff > 0){
addClass(this.el, 'odometer-animating-up');
}else{
addClass(this.el, 'odometer-animating-down');
}
this.stopWatchingMutations();
this.animate(newValue);
this.startWatchingMutations();
setTimeout(function(){
_this.el.offsetHeight;
return addClass(_this.el, 'odometer-animating');
}, 0);
return this.value=newValue;
};
Odometer.prototype.renderDigit=function(){
return createFromHTML(DIGIT_HTML);
};
Odometer.prototype.insertDigit=function(digit, before){
if(before!=null){
return this.inside.insertBefore(digit, before);
}else if(!this.inside.children.length){
return this.inside.appendChild(digit);
}else{
return this.inside.insertBefore(digit, this.inside.children[0]);
}};
Odometer.prototype.addSpacer=function(chr, before, extraClasses){
var spacer;
spacer=createFromHTML(FORMAT_MARK_HTML);
spacer.innerHTML=chr;
if(extraClasses){
addClass(spacer, extraClasses);
}
return this.insertDigit(spacer, before);
};
Odometer.prototype.addDigit=function(value, repeating){
var chr, digit, resetted, _ref;
if(repeating==null){
repeating=true;
}
if(value==='-'){
return this.addSpacer(value, null, 'odometer-negation-mark');
}
if(value==='.'){
return this.addSpacer((_ref=this.format.radix)!=null ? _ref:'.', null, 'odometer-radix-mark');
}
if(repeating){
resetted=false;
while (true){
if(!this.format.repeating.length){
if(resetted){
throw new Error("Bad odometer format without digits");
}
this.resetFormat();
resetted=true;
}
chr=this.format.repeating[this.format.repeating.length - 1];
this.format.repeating=this.format.repeating.substring(0, this.format.repeating.length - 1);
if(chr==='d'){
break;
}
this.addSpacer(chr);
}}
digit=this.renderDigit();
digit.querySelector('.odometer-value').innerHTML=value;
this.digits.push(digit);
return this.insertDigit(digit);
};
Odometer.prototype.animate=function(newValue){
if(!TRANSITION_SUPPORT||this.options.animation==='count'){
return this.animateCount(newValue);
}else{
return this.animateSlide(newValue);
}};
Odometer.prototype.animateCount=function(newValue){
var cur, diff, last, start, tick,
_this=this;
if(!(diff=+newValue - this.value)){
return;
}
start=last=now();
cur=this.value;
return (tick=function(){
var delta, dist, fraction;
if((now() - start) > _this.options.duration){
_this.value=newValue;
_this.render();
trigger(_this.el, 'odometerdone');
return;
}
delta=now() - last;
if(delta > COUNT_MS_PER_FRAME){
last=now();
fraction=delta / _this.options.duration;
dist=diff * fraction;
cur +=dist;
_this.render(Math.round(cur));
}
if(requestAnimationFrame!=null){
return requestAnimationFrame(tick);
}else{
return setTimeout(tick, COUNT_MS_PER_FRAME);
}})();
};
Odometer.prototype.getDigitCount=function(){
var i, max, value, values, _i, _len;
values=1 <=arguments.length ? __slice.call(arguments, 0):[];
for (i=_i=0, _len=values.length; _i < _len; i=++_i){
value=values[i];
values[i]=Math.abs(value);
}
max=Math.max.apply(Math, values);
return Math.ceil(Math.log(max + 1) / Math.log(10));
};
Odometer.prototype.getFractionalDigitCount=function(){
var i, parser, parts, value, values, _i, _len;
values=1 <=arguments.length ? __slice.call(arguments, 0):[];
parser=/^\-?\d*\.(\d*?)0*$/;
for (i=_i=0, _len=values.length; _i < _len; i=++_i){
value=values[i];
values[i]=value.toString();
parts=parser.exec(values[i]);
if(parts==null){
values[i]=0;
}else{
values[i]=parts[1].length;
}}
return Math.max.apply(Math, values);
};
Odometer.prototype.resetDigits=function(){
this.digits=[];
this.ribbons=[];
this.inside.innerHTML='';
return this.resetFormat();
};
Odometer.prototype.animateSlide=function(newValue){
var boosted, cur, diff, digitCount, digits, dist, end, fractionalCount, frame, frames, i, incr, j, mark, numEl, oldValue, start, _base, _i, _j, _k, _l, _len, _len1, _len2, _m, _ref, _results;
oldValue=this.value;
fractionalCount=this.getFractionalDigitCount(oldValue, newValue);
if(fractionalCount){
newValue=newValue * Math.pow(10, fractionalCount);
oldValue=oldValue * Math.pow(10, fractionalCount);
}
if(!(diff=newValue - oldValue)){
return;
}
this.bindTransitionEnd();
digitCount=this.getDigitCount(oldValue, newValue);
digits=[];
boosted=0;
for (i=_i=0; 0 <=digitCount ? _i < digitCount:_i > digitCount; i=0 <=digitCount ? ++_i:--_i){
start=truncate(oldValue / Math.pow(10, digitCount - i - 1));
end=truncate(newValue / Math.pow(10, digitCount - i - 1));
dist=end - start;
if(Math.abs(dist) > this.MAX_VALUES){
frames=[];
incr=dist / (this.MAX_VALUES + this.MAX_VALUES * boosted * DIGIT_SPEEDBOOST);
cur=start;
while ((dist > 0&&cur < end)||(dist < 0&&cur > end)){
frames.push(Math.round(cur));
cur +=incr;
}
if(frames[frames.length - 1]!==end){
frames.push(end);
}
boosted++;
}else{
frames=(function(){
_results=[];
for (var _j=start; start <=end ? _j <=end:_j >=end; start <=end ? _j++:_j--){ _results.push(_j); }
return _results;
}).apply(this);
}
for (i=_k=0, _len=frames.length; _k < _len; i=++_k){
frame=frames[i];
frames[i]=Math.abs(frame % 10);
}
digits.push(frames);
}
this.resetDigits();
_ref=digits.reverse();
for (i=_l=0, _len1=_ref.length; _l < _len1; i=++_l){
frames=_ref[i];
if(!this.digits[i]){
this.addDigit(' ', i >=fractionalCount);
}
if((_base=this.ribbons)[i]==null){
_base[i]=this.digits[i].querySelector('.odometer-ribbon-inner');
}
this.ribbons[i].innerHTML='';
if(diff < 0){
frames=frames.reverse();
}
for (j=_m=0, _len2=frames.length; _m < _len2; j=++_m){
frame=frames[j];
numEl=document.createElement('div');
numEl.className='odometer-value';
numEl.innerHTML=frame;
this.ribbons[i].appendChild(numEl);
if(j===frames.length - 1){
addClass(numEl, 'odometer-last-value');
}
if(j===0){
addClass(numEl, 'odometer-first-value');
}}
}
if(start < 0){
this.addDigit('-');
}
mark=this.inside.querySelector('.odometer-radix-mark');
if(mark!=null){
mark.parent.removeChild(mark);
}
if(fractionalCount){
return this.addSpacer(this.format.radix, this.digits[fractionalCount - 1], 'odometer-radix-mark');
}};
return Odometer;
})();
Odometer.options=(_ref=window.odometerOptions)!=null ? _ref:{};
setTimeout(function(){
var k, v, _base, _ref1, _results;
if(window.odometerOptions){
_ref1=window.odometerOptions;
_results=[];
for (k in _ref1){
v=_ref1[k];
_results.push((_base=Odometer.options)[k]!=null ? (_base=Odometer.options)[k]:_base[k]=v);
}
return _results;
}}, 0);
Odometer.init=function(){
var el, elements, _i, _len, _ref1, _results;
if(document.querySelectorAll==null){
return;
}
elements=document.querySelectorAll(Odometer.options.selector||'.odometer');
_results=[];
for (_i=0, _len=elements.length; _i < _len; _i++){
el=elements[_i];
_results.push(el.odometer=new Odometer({
el: el,
value: (_ref1=el.innerText)!=null ? _ref1:el.textContent
}));
}
return _results;
};
if((((_ref1=document.documentElement)!=null ? _ref1.doScroll:void 0)!=null)&&(document.createEventObject!=null)){
_old=document.onreadystatechange;
document.onreadystatechange=function(){
if(document.readyState==='complete'&&Odometer.options.auto!==false){
Odometer.init();
}
return _old!=null ? _old.apply(this, arguments):void 0;
};}else{
document.addEventListener('DOMContentLoaded', function(){
if(Odometer.options.auto!==false){
return Odometer.init();
}}, false);
}
if(typeof define==='function'&&define.amd){
define(['jquery'], function(){
return Odometer;
});
}else if(typeof exports===!'undefined'){
module.exports=Odometer;
}else{
window.Odometer=Odometer;
}}).call(this);