PageSourceSearch

https://soiree-eventdesign.com/wp-content/cache/autoptimize/js/autoptimize_7b5e02f2f00a9978b3d747dc8ec52fb6.js

js soiree-eventdesign.com collected 2026-10-03 19:07:16 UTC 90,027 bytes, 1,030 lines download raw bytes

1/*! jQuery Migrate v3.4.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */
2"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(+n[a]>+o[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.0";var t=Object.create(null),o=(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")||n.console.log("JQMIGRATE: jQuery 3.0.0+ 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)),{});function i(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 i(n,o),r},set:function(e){i(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&i(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function u(e,t,r,n,o){if(!o)throw new Error("No warning message provided");a(e,t,r,n,o)}function d(e,t,r,n){a(e,t,r,n)}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&i("quirks","jQuery is not compatible with Quirks Mode");var c,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]+$/g;for(c in d(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(i("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,d(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),i("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){i("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,c)&&(s.find[c]=y[c]);u(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),u(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),u(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),u(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")&&u(s,"trim",function(e){return null==e?"":(e+"").replace(v,"")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(u(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),u(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(u(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()}),u(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"),u(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),u(s,"isWindow",function(e){return null!=e&&e===e.window}
2,"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,d(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(u(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),u(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),u(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))&&i("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function Q(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}d(s.fn,"removeAttr",function(e){var r=this;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&(i("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),d(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(i("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 x,A=!1,R=/^[a-z]/,T=/^(?: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 A=!0,e=r.apply(this,arguments),A=!1,e})}),d(s,"swap",function(e,t,r,n){var o,a={};for(o in A||i("swap","jQuery.swap() is undocumented and deprecated"),t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=r.apply(e,n||[]),t)e.style[o]=a[o];return r},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return i("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")&&"undefined"!=typeof Proxy&&(s.cssNumber=new Proxy({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},{get:function(){return i("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return i("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}})),x=s.fn.css,d(s.fn,"css",function(e,t){var r,n=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(n,e,t)}),this):("number"==typeof t&&(t=Q(e),r=t,R.test(r)&&T.test(r[0].toUpperCase()+r.slice(1))||s.cssNumber[t]||i("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),x.apply(this,arguments))},"css-number");function C(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var S,N,P,k,H,E,M,q=s.data,D=(d(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)&&q.call(this,e),o={},t)a!==Q(a)?(i("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return q.call(this,e,o),t}return t&&"string"==typeof t&&t!==Q(t)&&(n=s.hasData(e)&&q.call(this,e))&&t in n?(i("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):q.apply(this,arguments)},"data-camelCase"),s.fx&&(P=s.Tween.prototype.run,k=function(e){return e},d(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(i("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=k),P.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,N="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||i("fx-interval",N),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){i("fx-interval",N),S=e}}
2)),s.fn.load),F=s.event.add,W=s.event.fix,O=(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"),d(s.event,"fix",function(e){var t=e.type,r=this.fixHooks[t],n=s.event.props;if(n.length){i("event-old-patch","jQuery.event.props are deprecated and removed: "+n.join());while(n.length)s.event.addProp(n.pop())}if(r&&!r._migrated_&&(r._migrated_=!0,i("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+t),(n=r.props)&&n.length))while(n.length)s.event.addProp(n.pop());return t=W.call(this,e),r&&r.filter?r.filter(t,e):t},"event-old-patch"),d(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&i("load-after-event","jQuery(window).on('load'...) called after load event occurred"),F.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){d(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?D.apply(this,e):(i("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){u(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&&i("ready-event","'ready' event is deprecated")}},u(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),u(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),u(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),u(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"),u(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated"),/<(?!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")},d(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(O,"<$1></$2>
2"))!==t&&C(t)!==C(r)&&i("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(O,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags"),s.fn.offset);return d(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?_.apply(this,arguments):(i("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(H=s.param,d(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(i("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),H.call(this,e,t)},"param-ajax-traditional")),u(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(E=s.Deferred,M=[["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")]],d(s,"Deferred",function(e){var a=E(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(M,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 u(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),u(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=E.exceptionHook),s});
3(()=>{"use strict";var t={d:(e,s)=>{for(var i in s)t.o(s,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:s[i]})},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 s(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,s){""===e?e=t.largestIndex++:/^[0-9]+$/.test(e)&&(e=parseInt(e),t.largestIndex<=e&&(t.largestIndex=e+1)),Map.prototype.set.call(t,e,s)},t};this.tree=e();const s=/^(?<name>[a-z][-a-z0-9_:]*)(?<array>(?:\[(?:[a-z][-a-z0-9_:]*|[0-9]*)\])*)/i;for(const[t,i]of this.formData){const o=t.match(s);if(o)if(""===o.groups.array)this.tree.set(o.groups.name,i);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 s=t.pop();t.reduce(((t,s)=>{if(/^[0-9]+$/.test(s)&&(s=parseInt(s)),t.get(s)instanceof Map)return t.get(s);const i=e();return t.set(s,i),i}),this.tree).set(s,i)}}}t.r(e),t.d(e,{date:()=>d,email:()=>r,enum:()=>f,file:()=>m,maxdate:()=>b,maxfilesize:()=>z,maxitems:()=>u,maxlength:()=>v,maxnumber:()=>x,mindate:()=>y,minfilesize:()=>A,minitems:()=>h,minlength:()=>g,minnumber:()=>w,number:()=>c,required:()=>n,requiredfile:()=>a,tel:()=>l,url:()=>p}),s.prototype.entries=function(){return this.tree.entries()},s.prototype.get=function(t){return this.tree.get(t)},s.prototype.getAll=function(t){if(!this.has(t))return[];const e=t=>{const s=[];if(t instanceof Map)for(const[i,o]of t)s.push(...e(o));else""!==t&&s.push(t);return s};return e(this.get(t))},s.prototype.has=function(t){return this.tree.has(t)},s.prototype.keys=function(){return this.tree.keys()},s.prototype.values=function(){return this.tree.values()};const i=s;function o({rule:t,field:e,error:s,...i}){this.rule=t,this.field=e,this.error=s,this.properties=i}const n=function(t){if(0===t.getAll(this.field).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).every((t=>{if((t=t.trim()).length<6)return!1;if(-1===t.indexOf("@",1))return!1;if(t.indexOf("@")!==t.lastIndexOf("@"))return!1;const[e,s]=t.split("@",2);if(!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.-]+$/.test(e))return!1;if(/\.{2,}/.test(s))return!1;if(/(?:^[ \t\n\r\0\x0B.]|[ \t\n\r\0\x0B.]$)/.test(s))return!1;const i=s.split(".");if(i.length<2)return!1;for(const t of i){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);if(!e.every((t=>{if(""===(t=t.trim()))return!1;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}}
3)))throw new o(this)},l=function(t){if(!t.getAll(this.field).every((t=>(t=(t=t.trim()).replaceAll(/[()/.*#\s-]+/g,""),/^[+]?[0-9]+$/.test(t)))))throw new o(this)},c=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!!/^[-]?[0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)||!!/^[-]?(?:[0-9]+)?[.][0-9]+(?:[eE][+-]?[0-9]+)?$/.test(t)))))throw new o(this)},d=function(t){if(!t.getAll(this.field).every((t=>/^[0-9]{4,}-[0-9]{2}-[0-9]{2}$/.test(t.trim()))))throw new o(this)},m=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=[],s=t.match(/^(?<toplevel>[a-z]+)\/(?<sub>[*]|[a-z0-9.+-]+)$/i);if(s){const t=s.groups.toplevel.toLowerCase(),i=s.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})())("*"===i&&n.startsWith(t+"/")||n===s[0])&&e.push(...o.split("|"))}return e})(e).some((e=>(e="."+e.trim(),t.name.toLowerCase().endsWith(e.toLowerCase())))))))))throw new o(this)},f=function(t){if(!t.getAll(this.field).every((t=>this.accept?.some((e=>
3t===String(e))))))throw new o(this)},h=function(t){if(t.getAll(this.field).length<parseInt(this.threshold))throw new o(this)},u=function(t){const e=t.getAll(this.field);if(parseInt(this.threshold)<e.length)throw new o(this)},g=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{"string"==typeof t&&(s+=t.length)})),0!==s&&s<parseInt(this.threshold))throw new o(this)},v=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{"string"==typeof t&&(s+=t.length)})),parseInt(this.threshold)<s)throw new o(this)},w=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(t)<parseFloat(this.threshold)))))throw new o(this)},x=function(t){if(!t.getAll(this.field).every((t=>!(parseFloat(this.threshold)<parseFloat(t)))))throw new o(this)},y=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[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)},b=function(t){if(!t.getAll(this.field).every((t=>(t=t.trim(),!(/^[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)},A=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{t instanceof File&&(s+=t.size)})),s<parseInt(this.threshold))throw new o(this)},z=function(t){const e=t.getAll(this.field);let s=0;if(e.forEach((t=>{t instanceof File&&(s+=t.size)})),parseInt(this.threshold)<s)throw new o(this)};var $;window.swv={validators:e,validate:(t,s,n={})=>{const a=(t.rules??[]).filter((({rule:t,...s})=>"function"==typeof e[t]&&("function"!=typeof e[t].matches||e[t].matches(s,n))));if(!a.length)return new Map;const r=new i(s),p=a.reduce(((t,s)=>{const{rule:i,...n}=s;if(t.get(n.field)?.error)return t;try{e[i].call({rule:i,...n},r)}catch(e){if(e instanceof o)return t.set(n.field,e)}return t}),new Map);for(const t of r.keys())p.has(t)||p.set(t,{validInputs:r.getAll(t)});return p},...null!==($=window.swv)&&void 0!==$?$:{}}})();
4(()=>{"use strict";const e=e=>Math.abs(parseInt(e,10)),t=(e,t)=>{const a=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"]]);a.has(t)&&(t=a.get(t)),Array.from(a.values()).includes(t)||(t=`custom-${t=(t=t.replace(/[^0-9a-z]+/i," ").trim()).replace(/\s+/,"-")}`);const n=e.getAttribute("data-status");return e.wpcf7.status=t,e.setAttribute("data-status",t),e.classList.add(t),n&&n!==t&&e.classList.remove(n),t},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=>{const{root:t,namespace:a="contact-form-7/v1"}=wpcf7.api;return r.reduceRight(((e,t)=>a=>t(a,e)),(e=>{let n,r,{url:o,path:c,endpoint:s,headers:i,body:l,data:d,...p}=e;"string"==typeof s&&(n=a.replace(/^\/|\/$/g,""),r=s.replace(/^\//,""),c=r?n+"/"+r:n),"string"==typeof c&&(-1!==t.indexOf("?")&&(c=c.replace("?","&")),c=c.replace(/^\//,""),o=t+c),i={Accept:"application/json, */*;q=0.1",...i},delete i["X-WP-Nonce"],d&&(l=JSON.stringify(d),i["Content-Type"]="application/json");const u={code:"fetch_error",message:"You are probably offline."},f={code:"invalid_json",message:"The response is not a valid JSON response."};return window.fetch(o||c||window.location.href,{...p,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 f}));throw f}))),(()=>{throw u}))}))(e)},r=[];function o(e){var a,n;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{target:o,scope:l=e,...d}=r;if(void 0===(null===(a=e.wpcf7)||void 0===a?void 0:a.schema))return;const p={...e.wpcf7.schema};if(void 0!==o){if(!e.contains(o))return;if(!o.closest(".wpcf7-form-control-wrap[data-name]"))return;if(o.closest(".novalidate"))return}const u=new FormData,f=[];for(const e of l.querySelectorAll(".wpcf7-form-control-wrap"))if(!e.closest(".
4novalidate")&&(e.querySelectorAll(":where( input, textarea, select ):enabled").forEach((e=>{if(e.name)switch(e.type){case"button":case"image":case"reset":case"submit":break;case"checkbox":case"radio":e.checked&&u.append(e.name,e.value);break;case"select-multiple":for(const t of e.selectedOptions)u.append(e.name,t.value);break;case"file":for(const t of e.files)u.append(e.name,t);break;default:u.append(e.name,e.value)}})),e.dataset.name&&(f.push(e.dataset.name),e.setAttribute("data-under-validation","1"),e.contains(o))))break;p.rules=(null!==(n=p.rules)&&void 0!==n?n:[]).filter((e=>{let{field:t}=e;return f.includes(t)}));const m=e.getAttribute("data-status");Promise.resolve(t(e,"validating")).then((t=>{if(void 0!==swv){const t=swv.validate(p,u,r);for(const[a,{error:n,validInputs:r}]of t)s(e,a),void 0!==n&&c(e,a,n,{scope:l}),i(e,a,null!=r?r:[])}})).finally((()=>{t(e,m),e.querySelectorAll(".wpcf7-form-control-wrap[data-under-validation]").forEach((e=>{e.removeAttribute("data-under-validation")}))}))}n.use=e=>{r.unshift(e)};const c=(e,t,a,n)=>{var r;const{scope:o=e,...c}=null!=n?n:{},s=`${null===(r=e.wpcf7)||void 0===r?void 0:r.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,""),i=e.querySelector(`.wpcf7-form-control-wrap[data-name="${t}"] .wpcf7-form-control`);(()=>{const t=document.createElement("li");t.setAttribute("id",s),i&&i.id?t.insertAdjacentHTML("beforeend",`<a href="#${i.id}">${a}</a>`):t.insertAdjacentText("beforeend",a),e.wpcf7.parent.querySelector(".screen-reader-response ul").appendChild(t)})(),o.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((t=>{if("validating"===e.getAttribute("data-status")&&!t.dataset.underValidation)return;const n=document.createElement("span");n.classList.add("wpcf7-not-valid-tip"),n.setAttribute("aria-hidden","true"),n.insertAdjacentText("beforeend",a),t.appendChild(n),t.querySelectorAll("[aria-invalid]").forEach((e=>{e.setAttribute("aria-invalid","true")})),t.querySelectorAll(".wpcf7-form-control").forEach((e=>{e.classList.add("wpcf7-not-valid"),e.setAttribute("aria-describedby",s),"function"==typeof e.setCustomValidity&&e.setCustomValidity(a),e.closest(".use-floating-validation-tip")&&(e.addEventListener("focus",(e=>{n.setAttribute("style","display: none")})),n.addEventListener("click",(e=>{n.setAttribute("style","display: none")})))}))}))},s=(e,t)=>{var a,n;const r=`${null===(a=e.wpcf7)||void 0===a?void 0:a.unitTag}-ve-${t}`.replaceAll(/[^0-9a-z_-]+/gi,"");null===(n=e.wpcf7.parent.querySelector(`.screen-reader-response ul li#${r}`))||void 0===n||n.remove(),e.querySelectorAll(`.wpcf7-form-control-wrap[data-name="${t}"]`).forEach((e=>{var t;null===(t=e.querySelector(".wpcf7-not-valid-tip"))||void 0===t||t.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("")}))}))},i=(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 l(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(wpcf7.blocked)return d(e),void t(e,"submitting");const o=new FormData(e);r.submitter&&r.submitter.name&&o.append(r.submitter.name,r.submitter.value);const s={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(o,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:o};n({endpoint:`contact-forms/${e.wpcf7.id}/feedback`,method:"POST",body:o,wpcf7:{endpoint:"feedback",form:e,detail:s}}).then((n=>{const r=t(e,n.status);
4return s.status=n.status,s.apiResponse=n,["invalid","unaccepted","spam","aborted"].includes(r)?a(e,r,s):["sent","failed"].includes(r)&&a(e,`mail${r}`,s),a(e,"submit",s),n})).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=>{c(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)))}n.use(((e,n)=>{if(e.wpcf7&&"feedback"===e.wpcf7.endpoint){const{form:n,detail:r}=e.wpcf7;d(n),a(n,"beforesubmit",r),t(n,"submitting")}return n(e)}));const d=e=>{e.querySelectorAll(".wpcf7-form-control-wrap").forEach((t=>{t.dataset.name&&s(e,t.dataset.name)})),e.wpcf7.parent.querySelector('.screen-reader-response [role="status"]').innerText="",e.querySelectorAll(".wpcf7-response-output").forEach((e=>{e.innerText=""}))};function p(e){const r=new FormData(e),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(r,(e=>{const t=e[0],a=e[1];return!t.match(/^_/)&&{name:t,value:a}})).filter((e=>!1!==e)),formData:r};n({endpoint:`contact-forms/${e.wpcf7.id}/refill`,method:"GET",wpcf7:{endpoint:"refill",form:e,detail:o}}).then((n=>{e.wpcf7.resetOnMailSent?(delete e.wpcf7.resetOnMailSent,t(e,"mail_sent")):t(e,"init"),o.apiResponse=n,a(e,"reset",o)})).catch((e=>console.error(e)))}n.use(((e,a)=>{if(e.wpcf7&&"refill"===e.wpcf7.endpoint){const{form:a,detail:n}=e.wpcf7;d(a),t(a,"resetting")}return a(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]}))}},f=(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 m(t){const a=new FormData(t);t.wpcf7={id:e(a.get("_wpcf7")),status:t.getAttribute("data-status"),pluginVersion:a.get("_wpcf7_version"),locale:a.get("_wpcf7_locale"),unitTag:a.get("_wpcf7_unit_tag"),containerPost:e(a.get("_wpcf7_container_post")),parent:t.closest(".wpcf7"),schema:void 0},t.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)}))}))}))})(t),(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()}))}))})(t),(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}))}))})(t),(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()}))})(t),(t=>{const a=(t,a)=>{const n=e(t.getAttribute("data-starting-value")),r=e(t.getAttribute("data-maximum-value")),o=e(t.getAttribute("data-minimum-value")),c=t.classList.contains("down")?n-a.value.length:a.value.length;t.setAttribute("data-current-value",c),t.innerText=c,r&&r<a.value.length?t.classList.add("too-long"):t.classList.remove("too-long"),o&&a.value.length<o?t.classList.add("too-short"):t.classList.remove("too-short")},n=e=>{e={init:!1,...e},t.querySelectorAll(".wpcf7-character-count").forEach((n=>{const r=n.getAttribute("data-target-name"),o=t.querySelector(`[name="${r}"]`);o&&(o.value=o.defaultValue,a(n,o),e.init&&o.addEventListener("keyup",(e=>{a(n,o)})))}))};n({init:!0}),t.addEventListener("wpcf7reset",(e=>{n()}))})(t),window.addEventListener("load",(e=>{wpcf7.cached&&t.reset()})),t.addEventListener("reset",(e=>{wpcf7.reset(t)})),t.addEventListener("submit",(e=>{wpcf7.submit(t,{submitter:e.submitter}),e.preventDefault()})),t.addEventListener("wpcf7submit",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),t.addEventListener("wpcf7reset",(e=>{e.detail.apiResponse.captcha&&u(t,e.detail.apiResponse.captcha),e.detail.apiResponse.quiz&&f(t,e.detail.apiResponse.quiz)})),n({endpoint:`contact-forms/${t.wpcf7.id}/feedback/schema`,method:"GET"}).then((e=>{t.wpcf7.schema=e})),t.addEventListener("change",(e=>{e.target.closest(".wpcf7-form-control")&&wpcf7.validate(t,{target:e.target})}))}document.addEventListener("DOMContentLoaded",(e=>{var t;"undefined"!=typeof wpcf7?void 0!==wpcf7.api?"function"==typeof window.fetch?"function"==typeof window.FormData?"function"==typeof NodeList.prototype.forEach?"function"==typeof String.prototype.replaceAll?(wpcf7={init:m,submit:l,reset:p,validate:o,...null!==(t=wpcf7)&&void 0!==t?t:{}},document.querySelectorAll(".wpcf7 > form").forEach((e=>{wpcf7.init(e),e.closest(".wpcf7").classList.replace("no-js","js")}))):console.error("Your browser does not support String.replaceAll()."):console.error("Your browser does not support NodeList.forEach()."):console.error("Your browser does not support window.FormData()."):console.error("Your browser does not support window.fetch()."):console.error("wpcf7.api is not defined."):console.error("wpcf7 is not defined.")}))})();
5function disableSelection(e){void 0!==e.onselectstart?e.onselectstart=function(){return!1}:void 0!==e.style.MozUserSelect?e.style.MozUserSelect="none":e.onmousedown=function(){return!1},e.style.cursor="default"}function wpccpDisableCtrlActions(e){const t=(e.ctrlKey||e.metaKey)&&"c"===e.key;wpccpMessage&&t&&alert(wpccpMessage);const n=["a","b","c","f","p","s","u","x","shift","i","j"];wpccpPaste||n.push("v");
5const c=n.includes(e.key);(e.ctrlKey||e.metaKey)&&c&&e.preventDefault()}function wpccpDisableKeys(e){(["Control","Alt","F12"].includes(e.key)||[91,93,224].includes(e.keyCode))&&e.preventDefault()}function wpccpDisablePrintScreen(e){44===e.keyCode&&window.location.replace("http://google.com/")}window.onload=function(){disableSelection(document.body)},document.ondragstart=function(){return!1},document.oncontextmenu=function(e){const t=e||window.event,n=t.target||t.srcElement;return"A"===n.nodeName&&"text"===n.type||"password"===n.type||(wpccpMessage&&alert(wpccpMessage),!1)},window.addEventListener("keyup",wpccpDisableCtrlActions,!1),window.addEventListener("keydown",wpccpDisableCtrlActions,!1),window.addEventListener("keyup",wpccpDisableKeys,!1),window.addEventListener("keydown",wpccpDisableKeys,!1),window.addEventListener("keyup",wpccpDisablePrintScreen,!1);
6window.socialWarfare = window.socialWarfare || {};
7( function ( window, $ ) {
8	'use strict';
9	if ( typeof $ !== 'function' ) {
10		if ( typeof jQuery === 'function' ) {
11			var $ = jQuery;
12		} else {
13			console.log(
14				'Social Warfare requires jQuery, or $ as an alias of jQuery. Please make sure your theme provides access to jQuery before activating Social Warfare.'
15			);
16			return;
17		}
18	}
19	function isString( maybeString ) {
20		return typeof maybeString === 'string' && maybeString.length > 0;
21	}
22	socialWarfare.paddingTop = parseInt( $( 'body' ).css( 'padding-top' ) );
23	socialWarfare.paddingBottom = parseInt(
24		$( 'body' ).css( 'padding-bottom' )
25	);
26	socialWarfare.initPlugin = function () {
27		$( 'body' ).css( {
28			paddingTop: socialWarfare.paddingTop,
29			paddingBottom: socialWarfare.paddingBottom,
30		} );
31		socialWarfare.establishPanels();
32		socialWarfare.establishBreakpoint();
33		if (
34			! socialWarfare.panels.staticHorizontal &&
35			! socialWarfare.panels.floatingSide &&
36			! socialWarfare.panels.floatingHorizontal
37		) {
38			return;
39		}
40		socialWarfare.emphasizeButtons();
41		socialWarfare.createFloatHorizontalPanel();
42		socialWarfare.positionFloatSidePanel();
43		socialWarfare.activateHoverStates();
44		socialWarfare.handleButtonClicks();
45		socialWarfare.updateFloatingButtons();
46		socialWarfare.closeLightboxOverlay();
47		socialWarfare.preloadPinterestImages();
48		if ( typeof swpPinIt === 'object' && swpPinIt.enabled == true ) {
49			socialWarfare.createHoverSaveButton();
50			socialWarfare.triggerImageListeners();
51		}
52		setTimeout( function () {
53			socialWarfare.checkListeners( 0, 5 );
54		}, 2e3 );
55		let time = Date.now();
56		const scrollDelay = 50;
57		$( window ).on( 'scroll', function () {
58			if ( time + scrollDelay - Date.now() < 0 ) {
59				socialWarfare.updateFloatingButtons();
60				time = Date.now();
61			}
62		} );
63	};
64	let resizeWait;
65	socialWarfare.onWindowResize = function () {
66		clearTimeout( resizeWait );
67		resizeWait = setTimeout( socialWarfare.initPlugin, 100 );
68	};
69	socialWarfare.establishPanels = function () {
70		socialWarfare.panels = {
71			staticHorizontal: null,
72			floatingSide: null,
73			floatingHorizontal: null,
74		};
75		socialWarfare.panels.staticHorizontal = $( '.swp_social_panel' ).not(
76			'.swp_social_panelSide'
77		);
78		socialWarfare.panels.floatingSide = $( '.swp_social_panelSide' );
79		return socialWarfare.panels;
80	};
81	socialWarfare.emphasizeButtons = function () {
82		if ( typeof socialWarfare.variables.emphasizeIcons === 'undefined' ) {
83			return;
84		}
85		if ( socialWarfare.isMobile() ) {
86			return;
87		}
88		jQuery( '.swp_social_panel:not(.swp_social_panelSide)' ).each(
89			function ( i, panel ) {
90				jQuery( panel )
91					.find( '.nc_tweetContainer:not(.total_shares)' )
92					.each( function ( index, button ) {
93						if ( index < socialWarfare.variables.emphasizeIcons ) {
94							const shareWidth = jQuery( button )
95								.find( '.swp_share' )
96								.width();
97							const iconWidth = jQuery( button )
98								.find( 'i.sw' )
99								.outerWidth();
100							const iconTextWidth = shareWidth + iconWidth + 35;
101							const containerWidth = jQuery( button ).width();
102							const change =
103								1 + ( shareWidth + 35 ) / containerWidth;
104							if ( change < 2 ) {
105								jQuery( button )
106									.addClass( 'swp_nohover' )
107									.css( { flex: '2 1 0%' } )
108									.find( '.iconFiller' )
109									.width( iconTextWidth );
110							} else {
111								jQuery( button )
112									.addClass( 'swp_nohover' )
113									.css( { flex: change + ' 1 0%' } )
114									.find( '.iconFiller' )
115									.width( iconTextWidth );
116							}
117						}
118					} );
119			}
120		);
121	};
122	socialWarfare.activateHoverStates = function () {
123		socialWarfare.trigger( 'pre_activate_buttons' );
124		$(
125			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer'
126		).on( 'mouseenter', function () {
127			if ( $( this ).hasClass( 'swp_nohover' ) ) {
128				return;
129			}
130			socialWarfare.resetStaticPanel();
131			const termWidth = $( this ).find( '.swp_share' ).outerWidth();
132			const iconWidth = $( this ).find( 'i.sw' ).outerWidth();
133			const containerWidth = $( this ).width();
134			const change = 1 + ( termWidth + 35 ) / containerWidth;
135			$( this )
136				.find( '.iconFiller' )
137				.width( termWidth + iconWidth + 25 + 'px' );
138			$( this ).css( 'flex', change + ' 1 0%' );
139		} );
140		$( '.swp_social_panel:not(.swp_social_panelSide)' ).on(
141			'mouseleave',
142			socialWarfare.resetStaticPanel
143		);
144	};
145	socialWarfare.resetStaticPanel = function () {
146		$(
147			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover) .iconFiller'
148		).removeAttr( 'style' );
149		$(
150			'.swp_social_panel:not(.swp_social_panelSide) .nc_tweetContainer:not(.swp_nohover)'
151		).removeAttr( 'style' );
152	};
153	socialWarfare.handleButtonClicks = function () {
154		$( '.nc_tweet, a.swp_CTT' ).off( 'click' );
155		$( '.nc_tweet, a.swp_CTT' ).on( 'click', function ( event ) {
156			if ( $( this ).parent( '.swp_print' ).length > 0 ) {
157				event.preventDefault();
158				window.print();
159				return;
160			}
161			if (
162				true === $( this ).hasClass( 'pinterest_multi_image_select' )
163			) {
164				event.preventDefault();
165				socialWarfare.openMultiPinterestOverlay( $( this ) );
166				return;
167			}
168			if ( $( this ).parent( '.swp_more' ).length > 0 ) {
169				event.preventDefault();
170				socialWarfare.openMoreOptions( $( this ) );
171				return;
172			}
173			if ( $( this ).hasClass( 'noPop' ) ) {
174				return event;
175			}
176			if (
177				'undefined' === typeof $( this ).data( 'link' ) &&
178				false === $( this ).is( '.swp-hover-pin-button' )
179			) {
180				return event;
181			}
182			event.preventDefault();
183			const href = $( this ).data( 'link' ).replace( '’', "'" );
184			let height, width, top, left, instance, windowAttributes, network;
185			height = 270;
186			width = 500;
187			if (
188				$( this ).is(
189					'.swp_pinterest a, .buffer_link a, .flipboard a, .swp-hover-pin-button'
190				)
191			) {
192				height = 550;
193				width = 775;
194			}
195			if ( $( this ).hasClass( 'nc_tweet' ) ) {
196				network = $( this )
197					.parents( '.nc_tweetContainer' )
198					.data( 'network' );
199			} else if ( $( this ).hasClass( 'swp_CTT' ) ) {
200				network = 'ctt';
201			}
202			top = window.screenY + ( window.innerHeight - height ) / 2;
203			left = window.screenX + ( window.innerWidth - width ) / 2;
204			windowAttributes =
205				'height=' +
206				height +
207				',width=' +
208				width +
209				',top=' +
210				top +
211				',left=' +
212				left;
213			instance = window.open( href, network, windowAttributes );
214			socialWarfare.trackClick( network );
215		} );
216	};
217	socialWarfare.openMultiPinterestOverlay = function ( element ) {
218		if ( $( '.pinterest-overlay' ).length > 0 ) {
219			$( '.pinterest-overlay' ).fadeIn();
220			$( '.swp-lightbox-inner' ).scrollTop( 0 );
221			return;
222		}
223		let html = '';
224		const pin_data = element.data( 'pins' );
225		let pin_images = '';
226		pin_data.images.forEach( function ( image ) {
227			const share_url =
228				'https://pinterest.com/pin/create/button/?url=' +
229				pin_data.url +
230				'&media=' +
231				image +
232				'&description=' +
233				encodeURIComponent( pin_data.description );
234			let pin_html = '';
235			pin_html += '<div class="pin_image_select_wrapper">';
236			pin_html += '<img class="pin_image" src="' + image + '" />';
237			pin_html +=
238				'<a class="swp-hover-pin-button" href="' +
239				share_url +
240				'" data-link="' +
241				share_url +
242				'">Save</a>';
243			pin_html += '</div>';
244			pin_images += pin_html;
245		} );
246		html +=
247			'<div class="swp-lightbox-wrapper pinterest-overlay"><div class="swp-lightbox-inner">';
248		html += '<i class="sw swp_pinterest_icon top_icon"></i>';
249		html += '<div class="swp-lightbox-close"></div>';
250		html += '<h5>Which image would you like to pin?</h5>';
251		html += '<div class="pin_images_wrapper">';
252		html += pin_images;
253		html += '</div>';
254		html += socialWarfare.buildPoweredByLink();
255		html += '</div></div>';
256		$( 'body' ).append( html );
257		$( '.pinterest-overlay' ).hide().fadeIn();
258		socialWarfare.handleButtonClicks();
259		let max_height = 999999;
260		let iteration = 0,
261			images = $( '.pinterest-overlay .pin_images_wrapper img' );
262		images.load( function () {
263			if ( ++iteration === images.length ) {
264				images
265					.each( function () {
266						if ( $( this ).height() < max_height ) {
267							max_height = $( this ).height();
268						}
269					} )
270					.promise()
271					.done( function () {
272						images.height( max_height + 'px' );
273						const number_of_rows = Math.ceil( images.length / 4 );
274						for ( i = 0; i < number_of_rows; i++ ) {
275							const current_row_images = images.slice(
276								i * 4,
277								i * 4 + 4
278							);
279							var max_allowable_width =
280								current_row_images.length / 4;
281							var total_width = $(
282								'.pin_images_wrapper'
283							).width();
284							var total_images_width = 0;
285							current_row_images.each( function () {
286								total_images_width =
287									total_images_width + $( this ).width();
288							} );
289							var ratio = total_width / total_images_width;
290							current_row_images.each( function () {
291								const new_width =
292									( ( $( this ).width() * ratio ) /
293										total_width ) *
294										100 *
295										max_allowable_width -
296									1;
297								$( this )
298									.parent()
299									.width( new_width + '%' );
300								$( this ).height( 'auto' );
301							} );
302							var height = current_row_images.first().height();
303							current_row_images.each( function () {
304								$( this )
305									.width( $( this ).width() )
306									.height( height );
307							} );
308						}
309					} );
310			}
311		} );
312	};
313	socialWarfare.buildPoweredByLink = function () {
314		let html = '';
315		if ( true === socialWarfare.variables.powered_by_toggle ) {
316			let anchor_tag_open = '';
317			let anchor_tag_close = '';
318			if ( false !== socialWarfare.variables.affiliate_link ) {
319				anchor_tag_open =
320					'<a href="' +
321					socialWarfare.variables.affiliate_link +
322					'" target="_blank">';
323				anchor_tag_close = '</a>';
324			}
325			html =
326				'<div class="swp_powered_by">' +
327				anchor_tag_open +
328				'<span>Powered by</span> <img src="/wp-content/plugins/social-warfare/assets/images/admin-options-page/social-warfare-pro-light.png">' +
329				anchor_tag_close +
330				'</div>';
331		}
332		return html;
333	};
334	socialWarfare.preloadPinterestImages = function () {
335		if ( $( '.pinterest_multi_image_select' ).length < 1 ) {
336			return;
337		}
338		const pin_data = $( '.pinterest_multi_image_select' ).data( 'pins' );
339		pin_data.images.forEach( function ( image_url ) {
340			const image_object = new Image();
341			image_object.src = image_url;
342		} );
343	};
344	socialWarfare.openMoreOptions = function ( element ) {
345		if ( $( '.swp-more-wrapper' ).length > 0 ) {
346			$( '.swp-more-wrapper' ).fadeIn();
347			return;
348		}
349		const post_id = element
350			.parents( '.swp_social_panel' )
351			.data( 'post-id' );
352		const data = {
353			action: 'swp_buttons_panel',
354			post_id,
355			_ajax_nonce: swp_nonce,
356		};
357		jQuery.post( swp_ajax_url, data, function ( response ) {
358			$( 'body' ).append( response );
359			$( '.swp-lightbox-wrapper' ).hide().fadeIn();
360			socialWarfare.activateHoverStates();
361			socialWarfare.handleButtonClicks();
362		} );
363	};
364	socialWarfare.closeLightboxOverlay = function () {
365		$( 'body' ).on( 'click', '.swp-lightbox-close', function () {
366			$( '.swp-lightbox-wrapper' ).fadeOut();
367		} );
368		$( document ).on( 'keyup', function ( e ) {
369			if ( e.key === 'Escape' ) {
370				$( '.swp-lightbox-wrapper' ).fadeOut();
371			}
372		} );
373	};
374	socialWarfare.createFloatHorizontalPanel = function () {
375		if ( ! socialWarfare.panels.staticHorizontal.length ) {
376			return;
377		}
378		const floatLocation =
379			socialWarfare.panels.staticHorizontal.data( 'float' );
380		const mobileFloatLocation =
381			socialWarfare.panels.staticHorizontal.data( 'float-mobile' );
382		const backgroundColor =
383			socialWarfare.panels.staticHorizontal.data( 'float-color' );
384		const wrapper = $(
385			'<div class="nc_wrapper swp_floating_horizontal_wrapper" style="background-color:' +
386				backgroundColor +
387				'"></div>'
388		);
389		let barLocation = '';
390		if ( $( '.nc_wrapper' ).length ) {
391			$( '.nc_wrapper' ).remove();
392		}
393		if ( $( '.swp_floating_horizontal_wrapper' ).length ) {
394			$( '.swp_floating_horizontal_wrapper' ).remove();
395		}
396		if (
397			floatLocation != 'top' &&
398			floatLocation != 'bottom' &&
399			mobileFloatLocation != 'top' &&
400			mobileFloatLocation != 'bottom'
401		) {
402			return;
403		}
404		if ( socialWarfare.isMobile() ) {
405			barLocation = mobileFloatLocation;
406		} else {
407			barLocation = floatLocation;
408		}
409		wrapper.addClass( barLocation ).hide().appendTo( 'body' );
410		socialWarfare.panels.floatingHorizontal =
411			socialWarfare.panels.staticHorizontal.first().clone();
412		socialWarfare.panels.floatingHorizontal
413			.addClass( 'nc_floater' )
414			.appendTo( wrapper );
415		socialWarfare.updateFloatingHorizontalDimensions();
416		$( '.swp_social_panel .swp_count' ).css( {
417			transition: 'padding .1s linear',
418		} );
419	};
420	socialWarfare.updateFloatingHorizontalDimensions = function () {
421		if ( ! socialWarfare.panels.staticHorizontal.length ) {
422			return;
423		}
424		if ( ! socialWarfare.panels.floatingHorizontal ) {
425			return;
426		}
427		let width = '100%';
428		let left = 0;
429		const panel = socialWarfare.panels.staticHorizontal;
430		let parent = panel.parent();
431		if ( parent.hasClass( 'swp-hidden-panel-wrap' ) ) {
432			parent = parent.parent();
433		}
434		if ( 'undefined' !== typeof panel.offset().left ) {
435			left = panel.offset().left;
436		}
437		if ( 'undefined' !== typeof panel.width() ) {
438			width = panel.width();
439		}
440		if ( left == 0 ) {
441			left = parent.offset().left;
442		}
443		if ( width == 100 || width == 0 ) {
444			width = parent.width();
445		}
446		socialWarfare.panels.floatingHorizontal.css( {
447			width,
448			left,
449		} );
450	};
451	socialWarfare.staticPanelIsVisible = function () {
452		let visible = false;
453		const scrollPos = $( window ).scrollTop();
454		$( '.swp_social_panel' )
455			.not( '.swp_social_panelSide, .nc_floater' )
456			.each( function ( index ) {
457				const offset = $( this ).offset();
458				if (
459					typeof socialWarfare.floatBeforeContent !== 'undefined' &&
460					'1' != socialWarfare.floatBeforeContent
461				) {
462					const theContent = $( '.swp-content-locator' ).parent();
463					if (
464						index === 0 &&
465						theContent.length &&
466						theContent.offset().top >
467							scrollPos + $( window ).height()
468					) {
469						visible = true;
470					}
471				}
472				if (
473					$( this ).is( ':visible' ) &&
474					offset.top + $( this ).height() > scrollPos &&
475					offset.top < scrollPos + $( window ).height()
476				) {
477					visible = true;
478				}
479			} );
480		return visible;
481	};
482	socialWarfare.updateFloatingButtons = function () {
483		if ( socialWarfare.panels.staticHorizontal.length ) {
484			var panel = socialWarfare.panels.staticHorizontal;
485		} else if ( socialWarfare.panels.floatingSide.length ) {
486			var panel = socialWarfare.panels.floatingSide;
487		} else {
488			return;
489		}
490		var location = panel.data( 'float' );
491		if ( true == socialWarfare.isMobile() ) {
492			var location = panel.data( 'float-mobile' );
493		}
494		if ( location == 'none' ) {
495			return $(
496				'.nc_wrapper, .swp_floating_horizontal_wrapper, .swp_social_panelSide'
497			).hide();
498		}
499		if ( socialWarfare.isMobile() ) {
500			socialWarfare.toggleMobileButtons();
501			socialWarfare.toggleFloatingHorizontalPanel();
502			return;
503		}
504		if ( location == 'right' || location == 'left' ) {
505			socialWarfare.toggleFloatingVerticalPanel();
506		}
507		if ( location == 'bottom' || location == 'top' ) {
508			socialWarfare.toggleFloatingHorizontalPanel();
509		}
510	};
511	socialWarfare.toggleMobileButtons = function () {
512		socialWarfare.panels.floatingSide.hide();
513		const visibility = socialWarfare.staticPanelIsVisible()
514			? 'collapse'
515			: 'visible';
516		$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).css(
517			'visibility',
518			visibility
519		);
520	};
521	socialWarfare.toggleFloatingVerticalPanel = function () {
522		let direction = '';
523		const location = socialWarfare.panels.floatingSide.data( 'float' );
524		let visible = socialWarfare.staticPanelIsVisible();
525		let offset = '';
526		if ( socialWarfare.isMobile() ) {
527			return socialWarfare.panels.floatingSide.hide();
528		}
529		if (
530			! socialWarfare.panels.floatingSide ||
531			! socialWarfare.panels.floatingSide.length
532		) {
533			visible = true;
534		}
535		if (
536			socialWarfare.panels.floatingSide.data( 'transition' ) == 'slide'
537		) {
538			direction = location;
539			offset = visible ? '-150px' : '5px';
540			socialWarfare.panels.floatingSide.css( direction, offset ).show();
541		} else if ( visible ) {
542			socialWarfare.panels.floatingSide
543				.css( 'opacity', 1 )
544				.fadeOut( 300 )
545				.css( 'opacity', 0 );
546		} else {
547			socialWarfare.panels.floatingSide
548				.css( 'opacity', 0 )
549				.fadeIn( 300 )
550				.css( 'display', 'flex' )
551				.css( 'opacity', 1 );
552		}
553	};
554	socialWarfare.hasReferencePanel = function () {
555		return (
556			typeof socialWarfare.panels.staticHorizontal !== 'undefined' &&
557			socialWarfare.panels.staticHorizontal.length > 0
558		);
559	};
560	socialWarfare.toggleFloatingHorizontalPanel = function () {
561		if ( ! socialWarfare.hasReferencePanel() ) {
562			return;
563		}
564		if ( ! socialWarfare.panels.floatingHorizontal ) {
565			return;
566		}
567		const panel = socialWarfare.panels.floatingHorizontal.first();
568		const location = socialWarfare.isMobile()
569			? $( panel ).data( 'float-mobile' )
570			: $( panel ).data( 'float' );
571		let newPadding =
572			location == 'bottom'
573				? socialWarfare.paddingBottom
574				: socialWarfare.paddingTop;
575		const paddingProp = 'padding-' + location;
576		if ( location == 'off' ) {
577			return;
578		}
579		if ( socialWarfare.staticPanelIsVisible() ) {
580			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).hide();
581			if ( socialWarfare.isMobile() && $( '#wpadminbar' ).length ) {
582				$( '#wpadminbar' ).css( 'top', 0 );
583			}
584		} else {
585			newPadding += 50;
586			$( '.nc_wrapper, .swp_floating_horizontal_wrapper' ).show();
587			if (
588				socialWarfare.isMobile() &&
589				location == 'top' &&
590				$( '#wpadminbar' ).length
591			) {
592				$( '#wpadminbar' ).css( 'top', panel.parent().height() );
593			}
594		}
595		$( 'body' ).css( paddingProp, newPadding );
596	};
597	socialWarfare.positionFloatSidePanel = function () {
598		let panelHeight, windowHeight, offset;
599		const sidePanel = socialWarfare.panels.floatingSide;
600		if ( ! sidePanel || ! sidePanel.length ) {
601			return;
602		}
603		if (
604			sidePanel.hasClass( 'swp_side_top' ) ||
605			sidePanel.hasClass( 'swp_side_bottom' )
606		) {
607			return;
608		}
609		panelHeight = sidePanel.outerHeight();
610		windowHeight = window.innerHeight;
611		if ( panelHeight > windowHeight ) {
612			return sidePanel.css( 'top', 0 );
613		}
614		offset = ( windowHeight - panelHeight ) / 2;
615		sidePanel.css( 'top', offset );
616	};
617	socialWarfare.createHoverSaveButton = function () {
618		if ( $( '.tve_editor_page' ).length ) {
619			$( '.sw-pinit-button' ).remove();
620			$( '.sw-pinit' ).each( function () {
621				const inner_content = $( '.sw-pinit' ).contents();
622				$( this ).replaceWith( inner_content );
623			} );
624			return;
625		}
626		const button = $( document.createElement( 'a' ) );
627		button.css( 'display: none' );
628		button.addClass( 'swp-hover-pin-button' );
629		button.text( 'Save' );
630		socialWarfare.hoverSaveButton = $( button );
631		return button;
632	};
633	socialWarfare.triggerImageListeners = function () {
634		$( '.swp-content-locator' )
635			.parent()
636			.find( 'img' )
637			.off( 'mouseenter', socialWarfare.renderPinterestSaveButton );
638		$( '.swp-content-locator' )
639			.parent()
640			.find( 'img' )
641			.on( 'mouseenter', socialWarfare.renderPinterestSaveButton );
642		setTimeout( socialWarfare.triggerImageListeners, 2e3 );
643	};
644	socialWarfare.getPinMedia = function ( image ) {
645		if ( isString( swpPinIt.image_source ) ) {
646			return swpPinIt.image_source;
647		}
648		if ( isString( image.attr( 'src' ) ) ) {
649			return image.attr( 'src' );
650		}
651		const dataSources = [ 'src', 'lazy-src', 'media' ];
652		let media = '';
653		dataSources.some( function ( maybeSource ) {
654			if ( isString( image.data( maybeSource ) ) ) {
655				media = image.data( maybeSource );
656				return true;
657			}
658		} );
659		if ( media == '' ) {
660			return;
661		}
662		const i = $( '<img>' );
663		i.attr( 'src', media );
664		return i.prop( 'src' );
665	};
666	socialWarfare.getPinDescription = function ( image ) {
667		if ( isString( image.data( 'pin-description' ) ) ) {
668			return image.data( 'pin-description' );
669		}
670		if ( isString( swpPinIt.image_description ) ) {
671			return swpPinIt.image_description;
672		}
673		if ( isString( image.attr( 'title' ) ) ) {
674			return image.attr( 'title' );
675		}
676		if ( isString( image.attr( 'alt' ) ) ) {
677			return image.attr( 'alt' );
678		}
679		if ( isString( swpPinIt.post_title ) ) {
680			return swpPinIt.post_title;
681		}
682	};
683	socialWarfare.enablePinterestSaveButtons = function () {
684		jQuery( 'img' ).on( 'mouseenter', function () {
685			const pinterestBrowserButtons =
686				socialWarfare.findPinterestBrowserSaveButtons();
687			if (
688				typeof pinterestBrowserButtons !== 'undefined' &&
689				pinterestBrowserButtons
690			) {
691				socialWarfare.removePinterestBrowserSaveButtons(
692					pinterestBrowserButtons
693				);
694			}
695		} );
696	};
697	socialWarfare.toggleHoverSaveDisplay = function ( image ) {
698		let top = image.offset().top;
699		let left = image.offset().left;
700		const vMargin = 15;
701		const hMargin = 15;
702		const button_size = swpPinIt.button_size || 1;
703		const buttonHeight = 24;
704		const buttonWidth = 120;
705		switch ( swpPinIt.vLocation ) {
706			case 'top':
707				top += vMargin;
708				break;
709			case 'middle':
710				var offset =
711					image.height() / 2 - vMargin / 2 - buttonHeight / 2;
712				top += offset;
713				break;
714			case 'bottom':
715				top += image.height() - vMargin - buttonHeight;
716				break;
717		}
718		switch ( swpPinIt.hLocation ) {
719			case 'left':
720				left += hMargin;
721				break;
722			case 'center':
723				var offset = image.width() / 2 - hMargin / 2 - buttonWidth / 2;
724				left += offset;
725				break;
726			case 'right':
727				left += image.width() - hMargin - buttonWidth;
728				break;
729		}
730		socialWarfare.hoverSaveButton.css( {
731			top,
732			left,
733			transform: 'scale(' + button_size + ')',
734			'transform-origin': swpPinIt.vLocation + ' ' + swpPinIt.hLocation,
735		} );
736		image.on( 'mouseleave', function ( event ) {
737			if (
738				event.relatedTarget != null &&
739				event.relatedTarget.className == 'swp-hover-pin-button'
740			) {
741				return;
742			}
743			$( '.swp-hover-pin-button' ).remove();
744		} );
745		$( document.body ).append( socialWarfare.hoverSaveButton );
746	};
747	socialWarfare.renderPinterestSaveButton = function ( event ) {
748		if (
749			event.relatedTarget &&
750			event.relatedTarget.className == 'swp-hover-pin-button'
751		) {
752			return;
753		}
754		if ( $( '.swp-hover-pin-button' ).length > 0 ) {
755			return;
756		}
757		const image = $( event.target );
758		if (
759			typeof swpPinIt.disableOnAnchors !== undefined &&
760			swpPinIt.disableOnAnchors
761		) {
762			if ( image.parents().filter( 'a' ).length ) {
763				return;
764			}
765		}
766		if (
767			image.outerHeight() < swpPinIt.minHeight ||
768			image.outerWidth() < swpPinIt.minWidth
769		) {
770			return;
771		}
772		if ( image.hasClass( 'no_pin' ) || image.hasClass( 'no-pin' ) ) {
773			return;
774		}
775		socialWarfare.toggleHoverSaveDisplay( image );
776		const description = socialWarfare.getPinDescription( image );
777		const media = socialWarfare.getPinMedia( image );
778		const shareLink =
779			'http://pinterest.com/pin/create/bookmarklet/?media=' +
780			encodeURI( media ) +
781			'&url=' +
782			encodeURI( document.URL ) +
783			'&is_video=false' +
784			'&description=' +
785			encodeURIComponent( description );
786		function openPinterestDialogue( event ) {
787			const offsetLeft = ( $( window ).width() - 775 ) / 2;
788			const offsetTop = ( $( window ).height() - 550 ) / 2;
789			const position = ',top=' + offsetTop + ',left=' + offsetLeft;
790			window.open(
791				shareLink,
792				'Pinterest',
793				'width=775,height=550,status=0,toolbar=0,menubar=0,location=1,scrollbars=1' +
794					position
795			);
796			socialWarfare.trackClick( 'pin_image' );
797			$( '.swp-hover-pin-button' ).remove();
798		}
799		$( '.swp-hover-pin-button' ).on( 'click', openPinterestDialogue );
800	};
801	socialWarfare.findPinterestBrowserSaveButtons = function () {
802		let pinterestRed,
803			pinterestRed2019,
804			pinterestZIndex,
805			pinterestBackgroundSize,
806			button,
807			style;
808		pinterestRed = 'rgb(189, 8, 28)';
809		pinterestRed2019 = 'rgb(230, 0, 35)';
810		pinterestZIndex = '8675309';
811		pinterestBackgroundSize = '14px 14px';
812		button = null;
813		document
814			.querySelectorAll( 'span' )
815			.forEach( function ( element, index ) {
816				style = window.getComputedStyle( element );
817				if (
818					style.backgroundColor == pinterestRed ||
819					style.backgroundColor == pinterestRed2019
820				) {
821					if (
822						style.backgroundSize == pinterestBackgroundSize &&
823						style.zIndex == pinterestZIndex
824					) {
825						button = element;
826					}
827				}
828			} );
829		return button;
830	};
831	socialWarfare.removePinterestBrowserSaveButtons = function ( button ) {
832		let pinterestSquare, style, size;
833		pinterestSquare = button.nextSibling;
834		if (
835			pinterestSquare != undefined &&
836			pinterestSquare.nodeName == 'SPAN'
837		) {
838			style = window.getComputedStyle( pinterestSquare );
839			size = '24px';
840			if (
841				style.width.indexOf( size ) === 0 &&
842				style.height.indexOf( size ) === 0
843			) {
844				pinterestSquare.remove();
845			}
846		}
847		button.remove();
848	};
849	socialWarfare.fetchFacebookShares = function () {
850		const url1 =
851			'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id=' +
852			swp_post_url;
853		const url2 = swp_post_recovery_url
854			? 'https://graph.facebook.com/v18.0/?fields=og_object{engagement}&id=' +
855			  swp_post_recovery_url
856			: '';
857		console.log( 'Facebook Share API: ' + url1 );
858		console.log( 'Facebook Share API (recovery): ' + url2 );
859		$.when( $.get( url1 ), $.get( url2 ) ).then(
860			function ( response1, response2 ) {
861				var shares, shares1, shares2, data;
862				shares1 = socialWarfare.parseFacebookShares( response1[ 0 ] );
863				shares2 = 0;
864				if ( swp_post_recovery_url ) {
865					shares2 = socialWarfare.parseFacebookShares(
866						response2[ 0 ]
867					);
868				}
869				shares = shares1;
870				if ( shares1 !== shares2 ) {
871					shares = shares1 + shares2;
872				}
873				var data = {
874					action: 'swp_facebook_shares_update',
875					post_id: swp_post_id,
876					share_counts: shares,
877				};
878				$.post( swp_admin_ajax, data, function ( response ) {
879					console.log( response );
880				} );
881			}
882		);
883	};
884	socialWarfare.parseFacebookShares = function ( response ) {
885		if ( 'undefined' === typeof response.og_object ) {
886			console.log( 'Facebook Shares: 0' );
887			return 0;
888		}
889		console.log(
890			'Facebook Shares: ' + response.og_object.engagement.count
891		);
892		return parseInt( response.og_object.engagement.count );
893	};
894	socialWarfare.trigger = function ( event ) {
895		$( window ).trigger( $.Event( event ) );
896	};
897	socialWarfare.trackClick = function ( event ) {
898		if ( true === swpClickTracking ) {
899			if ( 'function' === typeof ga ) {
900				ga(
901					'send',
902					'event',
903					'social_media',
904					'swp_' + event + '_share'
905				);
906			}
907			if ( 'object' === typeof dataLayer ) {
908				dataLayer.push( { event: 'swp_' + event + '_share' } );
909			}
910		}
911	};
912	socialWarfare.checkListeners = function ( count, limit ) {
913		if ( count > limit ) {
914			return;
915		}
916		const panel = $( '.swp_social_panel' );
917		if ( panel.length > 0 && panel.find( '.swp_pinterest' ) ) {
918			socialWarfare.handleButtonClicks();
919			return;
920		}
921		setTimeout( function () {
922			socialWarfare.checkListeners( ++count, limit );
923		}, 2e3 );
924	};
925	socialWarfare.establishBreakpoint = function () {
926		const panel = $( '.swp_social_panel' );
927		socialWarfare.breakpoint = 1100;
928		if (
929			( panel.length && panel.data( 'min-width' ) ) ||
930			panel.data( 'min-width' ) == 0
931		) {
932			socialWarfare.breakpoint = parseInt( panel.data( 'min-width' ) );
933		}
934	};
935	socialWarfare.isMobile = function () {
936		return $( window ).width() < socialWarfare.breakpoint;
937	};
938	$( document ).ready( function () {
939		socialWarfare.initPlugin();
940		socialWarfare.panels.floatingSide.hide();
941		$( window ).on( 'resize', socialWarfare.onWindowResize );
942		if ( 'undefined' !== typeof swpPinIt && swpPinIt.enabled ) {
943			socialWarfare.enablePinterestSaveButtons();
944		}
945	} );
946	$( window ).on( 'load', function () {
947		if ( 'undefined' !== typeof swpPinIt && swpPinIt.enabled ) {
948			socialWarfare.enablePinterestSaveButtons();
949		}
950		window.clearCheckID = 0;
951	} );
952} )( this, jQuery );
953;
954/*! This file is auto-generated */
955window.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)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);
955d&&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);
956(function(window,$,undefined){'use strict';$('nav').before('<button class="menu-toggle" role="button" aria-pressed="false"></button>');$('nav .sub-menu').before('<button class="sub-menu-toggle" role="button" aria-pressed="false"></button>');$('.menu-toggle, .sub-menu-toggle').on('click',function(){var $this=$(this);$this.attr('aria-pressed',function(index,value){return'false'===value?'true':'false';});$this.toggleClass('activated');$this.next('nav, .sub-menu').slideToggle('fast');});})(this,jQuery);
957;(function($){$.flexslider=function(el,options){var slider=el;slider.init=function(){slider.vars=$.extend({},$.flexslider.defaults,options);slider.data('flexslider',true);slider.container=$('.slides',slider);slider.slides=$('.slides > li',slider);slider.count=slider.slides.length;slider.animating=false;slider.currentSlide=slider.vars.slideToStart;slider.animatingTo=slider.currentSlide;slider.atEnd=(slider.currentSlide==0)?true:false;slider.eventType=('ontouchstart'in document.documentElement)?'touchstart':'click';slider.cloneCount=0;slider.cloneOffset=0;slider.manualPause=false;slider.vertical=(slider.vars.slideDirection=="vertical");slider.prop=(slider.vertical)?"top":"marginLeft";slider.args={};slider.transitions="webkitTransition"in document.body.style;if(slider.transitions)slider.prop="-webkit-transform";if(slider.vars.controlsContainer!=""){slider.controlsContainer=$(slider.vars.controlsContainer).eq($('.slides').index(slider.container));slider.containerExists=slider.controlsContainer.length>0;}
958if(slider.vars.manualControls!=""){slider.manualControls=$(slider.vars.manualControls,((slider.containerExists)?slider.controlsContainer:slider));slider.manualExists=slider.manualControls.length>0;}
959if(slider.vars.randomize){slider.slides.sort(function(){return(Math.round(Math.random())-0.5);});slider.container.empty().append(slider.slides);}
960if(slider.vars.animation.toLowerCase()=="slide"){if(slider.transitions){slider.setTransition(0);}
961slider.css({"overflow":"hidden"});if(slider.vars.animationLoop){slider.cloneCount=2;slider.cloneOffset=1;slider.container.append(slider.slides.filter(':first').clone().addClass('clone')).prepend(slider.slides.filter(':last').clone().addClass('clone'));}
962slider.newSlides=$('.slides > li',slider);var sliderOffset=(-1*(slider.currentSlide+slider.cloneOffset));if(slider.vertical){slider.newSlides.css({"display":"block","width":"100%","float":"left"});slider.container.height((slider.count+slider.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){slider.css({"position":"relative"}).height(slider.slides.filter(':first').height());slider.args[slider.prop]=(slider.transitions)?"translate3d(0,"+sliderOffset*slider.height()+"px,0)":sliderOffset*slider.height()+"px";slider.container.css(slider.args);},100);}else{slider.args[slider.prop]=(slider.transitions)?"translate3d("+sliderOffset*slider.width()+"px,0,0)":sliderOffset*slider.width()+"px";slider.container.width((slider.count+slider.cloneCount)*200+"%").css(slider.args);setTimeout(function(){slider.newSlides.width(slider.width()).css({"float":"left","display":"block"});},100);}}else{slider.transitions=false;slider.slides.css({"width":"100%","float":"left","marginRight":"-100%"}).eq(slider.currentSlide).fadeIn(slider.vars.animationDuration);}
963if(slider.vars.controlNav){if(slider.manualExists){slider.controlNav=slider.manualControls;}
963else{var controlNavScaffold=$('<ol class="flex-control-nav"></ol>');var j=1;for(var i=0;i<slider.count;i++){controlNavScaffold.append('<li><a>'+j+'</a></li>');j++;}
964if(slider.containerExists){$(slider.controlsContainer).append(controlNavScaffold);slider.controlNav=$('.flex-control-nav li a',slider.controlsContainer);}else{slider.append(controlNavScaffold);slider.controlNav=$('.flex-control-nav li a',slider);}}
965slider.controlNav.eq(slider.currentSlide).addClass('active');slider.controlNav.bind(slider.eventType,function(event){event.preventDefault();if(!$(this).hasClass('active')){(slider.controlNav.index($(this))>slider.currentSlide)?slider.direction="next":slider.direction="prev";slider.flexAnimate(slider.controlNav.index($(this)),slider.vars.pauseOnAction);}});}
966if(slider.vars.directionNav){var directionNavScaffold=$('<ul class="flex-direction-nav"><li><a class="prev" href="#">'+slider.vars.prevText+'</a></li><li><a class="next" href="#">'+slider.vars.nextText+'</a></li></ul>');if(slider.containerExists){$(slider.controlsContainer).append(directionNavScaffold);slider.directionNav=$('.flex-direction-nav li a',slider.controlsContainer);}else{slider.append(directionNavScaffold);slider.directionNav=$('.flex-direction-nav li a',slider);}
967if(!slider.vars.animationLoop){if(slider.currentSlide==0){slider.directionNav.filter('.prev').addClass('disabled');}else if(slider.currentSlide==slider.count-1){slider.directionNav.filter('.next').addClass('disabled');}}
968slider.directionNav.bind(slider.eventType,function(event){event.preventDefault();var target=($(this).hasClass('next'))?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)){slider.flexAnimate(target,slider.vars.pauseOnAction);}});}
969if(slider.vars.keyboardNav&&$('ul.slides').length==1){function keyboardMove(event){if(slider.animating){return;}else if(event.keyCode!=39&&event.keyCode!=37){return;}else{if(event.keyCode==39){var target=slider.getTarget('next');}else if(event.keyCode==37){var target=slider.getTarget('prev');}
970if(slider.canAdvance(target)){slider.flexAnimate(target,slider.vars.pauseOnAction);}}}
971$(document).bind('keyup',keyboardMove);}
972if(slider.vars.mousewheel){slider.mousewheelEvent=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll":"mousewheel";slider.bind(slider.mousewheelEvent,function(e){e.preventDefault();e=e?e:window.event;var wheelData=e.detail?e.detail*-1:e.wheelDelta/40,target=(wheelData<0)?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)){slider.flexAnimate(target,slider.vars.pauseOnAction);}});}
973if(slider.vars.slideshow){if(slider.vars.pauseOnHover&&slider.vars.slideshow){slider.hover(function(){slider.pause();},function(){if(!slider.manualPause){slider.resume();}});}
974slider.animatedSlides=setInterval(slider.animateSlides,slider.vars.slideshowSpeed);}
975if(slider.vars.pausePlay){var pausePlayScaffold=$('<div class="flex-pauseplay"><span></span></div>');if(slider.containerExists){slider.controlsContainer.append(pausePlayScaffold);slider.pausePlay=$('.flex-pauseplay span',slider.controlsContainer);}else{slider.append(pausePlayScaffold);slider.pausePlay=$('.flex-pauseplay span',slider);}
976var pausePlayState=(slider.vars.slideshow)?'pause':'play';slider.pausePlay.addClass(pausePlayState).text((pausePlayState=='pause')?slider.vars.pauseText:slider.vars.playText);slider.pausePlay.bind(slider.eventType,function(event){event.preventDefault();if($(this).hasClass('pause')){slider.pause();slider.manualPause=true;}else{slider.resume();slider.manualPause=false;}});}
977if('ontouchstart'in document.documentElement){var startX,startY,offset,cwidth,dx,startT,scrolling=false;slider.each(function(){if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false);}});function onTouchStart(e){if(slider.animating){e.preventDefault();}else if(e.touches.length==1){slider.pause();cwidth=(slider.vertical)?slider.height():slider.width();startT=Number(new Date());offset=(slider.vertical)?(slider.currentSlide+slider.cloneOffset)*slider.height():(slider.currentSlide+slider.cloneOffset)*slider.width();startX=(slider.vertical)?e.touches[0].pageY:e.touches[0].pageX;startY=(slider.vertical)?e.touches[0].pageX:e.touches[0].pageY;slider.setTransition(0);this.addEventListener('touchmove',onTouchMove,false);this.addEventListener('touchend',onTouchEnd,false);}}
978function onTouchMove(e){dx=(slider.vertical)?startX-e.touches[0].pageY:startX-e.touches[0].pageX;scrolling=(slider.vertical)?(Math.abs(dx)<Math.abs(e.touches[0].pageX-startY)):(Math.abs(dx)<Math.abs(e.touches[0].pageY-startY));if(!scrolling){e.preventDefault();if(slider.vars.animation=="slide"&&slider.transitions){if(!slider.vars.animationLoop){dx=dx/((slider.currentSlide==0&&dx<0||slider.currentSlide==slider.count-1&&dx>0)?(Math.abs(dx)/cwidth+2):1);}
979slider.args[slider.prop]=(slider.vertical)?"translate3d(0,"+(-offset-dx)+"px,0)":"translate3d("+(-offset-dx)+"px,0,0)";slider.container.css(slider.args);}}}
980function onTouchEnd(e){slider.animating=false;if(slider.animatingTo==slider.currentSlide&&!scrolling&&!(dx==null)){var target=(dx>0)?slider.getTarget('next'):slider.getTarget('prev');if(slider.canAdvance(target)&&Number(new Date())-startT<550&&Math.abs(dx)>20||Math.abs(dx)>cwidth/2){slider.flexAnimate(target,slider.vars.pauseOnAction);}else{slider.flexAnimate(slider.currentSlide,slider.vars.pauseOnAction);}}
981this.removeEventListener('touchmove',onTouchMove,false);this.removeEventListener('touchend',onTouchEnd,false);startX=null;startY=null;dx=null;offset=null;}}
982if(slider.vars.animation.toLowerCase()=="slide"){$(window).resize(function(){if(!slider.animating){if(slider.vertical){slider.height(slider.slides.filter(':first').height());slider.args[slider.prop]=(-1*(slider.currentSlide+slider.cloneOffset))*slider.slides.filter(':first').height()+"px";if(slider.transitions){slider.setTransition(0);slider.args[slider.prop]=(slider.vertical)?"translate3d(0,"+slider.args[slider.prop]+",0)":"translate3d("+slider.args[slider.prop]+",0,0
982)";}
983slider.container.css(slider.args);}else{slider.newSlides.width(slider.width());slider.args[slider.prop]=(-1*(slider.currentSlide+slider.cloneOffset))*slider.width()+"px";if(slider.transitions){slider.setTransition(0);slider.args[slider.prop]=(slider.vertical)?"translate3d(0,"+slider.args[slider.prop]+",0)":"translate3d("+slider.args[slider.prop]+",0,0)";}
984slider.container.css(slider.args);}}});}
985slider.vars.start(slider);}
986slider.flexAnimate=function(target,pause){if(!slider.animating){slider.animating=true;slider.animatingTo=target;slider.vars.before(slider);if(pause){slider.pause();}
987if(slider.vars.controlNav){slider.controlNav.removeClass('active').eq(target).addClass('active');}
988slider.atEnd=(target==0||target==slider.count-1)?true:false;if(!slider.vars.animationLoop&&slider.vars.directionNav){if(target==0){slider.directionNav.removeClass('disabled').filter('.prev').addClass('disabled');}else if(target==slider.count-1){slider.directionNav.removeClass('disabled').filter('.next').addClass('disabled');}else{slider.directionNav.removeClass('disabled');}}
989if(!slider.vars.animationLoop&&target==slider.count-1){slider.pause();slider.vars.end(slider);}
990if(slider.vars.animation.toLowerCase()=="slide"){var dimension=(slider.vertical)?slider.slides.filter(':first').height():slider.slides.filter(':first').width();if(slider.currentSlide==0&&target==slider.count-1&&slider.vars.animationLoop&&slider.direction!="next"){slider.slideString="0px";}else if(slider.currentSlide==slider.count-1&&target==0&&slider.vars.animationLoop&&slider.direction!="prev"){slider.slideString=(-1*(slider.count+1))*dimension+"px";}else{slider.slideString=(-1*(target+slider.cloneOffset))*dimension+"px";}
991slider.args[slider.prop]=slider.slideString;if(slider.transitions){slider.setTransition(slider.vars.animationDuration);slider.args[slider.prop]=(slider.vertical)?"translate3d(0,"+slider.slideString+",0)":"translate3d("+slider.slideString+",0,0)";slider.container.css(slider.args).one("webkitTransitionEnd transitionend",function(){slider.wrapup(dimension);});}else{slider.container.animate(slider.args,slider.vars.animationDuration,function(){slider.wrapup(dimension);});}}else{slider.slides.eq(slider.currentSlide).fadeOut(slider.vars.animationDuration);slider.slides.eq(target).fadeIn(slider.vars.animationDuration,function(){slider.wrapup();});}}}
992slider.wrapup=function(dimension){if(slider.vars.animation=="slide"){if(slider.currentSlide==0&&slider.animatingTo==slider.count-1&&slider.vars.animationLoop){slider.args[slider.prop]=(-1*slider.count)*dimension+"px";if(slider.transitions){slider.setTransition(0);slider.args[slider.prop]=(slider.vertical)?"translate3d(0,"+slider.args[slider.prop]+",0)":"translate3d("+slider.args[slider.prop]+",0,0)";}
993slider.container.css(slider.args);}else if(slider.currentSlide==slider.count-1&&slider.animatingTo==0&&slider.vars.animationLoop){slider.args[slider.prop]=-1*dimension+"px";if(slider.transitions){slider.setTransition(0);slider.args[slider.prop]=(slider.vertical)?"translate3d(0,"+slider.args[slider.prop]+",0)":"translate3d("+slider.args[slider.prop]+",0,0)";}
994slider.container.css(slider.args);}}
995slider.animating=false;slider.currentSlide=slider.animatingTo;slider.vars.after(slider);}
996slider.animateSlides=function(){if(!slider.animating){slider.flexAnimate(slider.getTarget("next"));}}
997slider.pause=function(){clearInterval(slider.animatedSlides);if(slider.vars.pausePlay){slider.pausePlay.removeClass('pause').addClass('play').text(slider.vars.playText);}}
998slider.resume=function(){slider.animatedSlides=setInterval(slider.animateSlides,slider.vars.slideshowSpeed);if(slider.vars.pausePlay){slider.pausePlay.removeClass('play').addClass('pause').text(slider.vars.pauseText);}}
999slider.canAdvance=function(target){if(!slider.vars.animationLoop&&slider.atEnd){if(slider.currentSlide==0&&target==slider.count-1&&slider.direction!="next"){return false;}else if(slider.currentSlide==slider.count-1&&target==0&&slider.direction=="next"){return false;}else{return true;}}else{return true;}}
1000slider.getTarget=function(dir){slider.direction=dir;if(dir=="next"){return(slider.currentSlide==slider.count-1)?0:slider.currentSlide+1;}else{return(slider.currentSlide==0)?slider.count-1:slider.currentSlide-1;}}
1001slider.setTransition=function(dur){slider.container.css({'-webkit-transition-duration':(dur/1000)+"s"});}
1002slider.init();}
1003$.flexslider.defaults={animation:"fade",slideDirection:"horizontal",slideshow:true,slideshowSpeed:7000,animationDuration:600,directionNav:true,controlNav:true,keyboardNav:true,mousewheel:false,prevText:"Previous",nextText:"Next",pausePlay:false,pauseText:'Pause',playText:'Play',randomize:false,slideToStart:0,animationLoop:true,pauseOnAction:true,pauseOnHover:false,controlsContainer:"",manualControls:"",start:function(){},before:function(){},after:function(){},end:function(){}}
1004$.fn.flexslider=function(options){return this.each(function(){if($(this).find('.slides li').length==1){$(this).find('.slides li').fadeIn(400);}
1005else if($(this).data('flexslider')!=true){new $.flexslider($(this),options);}});}})(jQuery);
1006(function(){var supportsPassive=false;try{var opts=Object.defineProperty({},'passive',{get:function(){supportsPassive=true;}});window.addEventListener('testPassive',null,opts);window.removeEventListener('testPassive',null,opts);}catch(e){}
1007function init(){var input_begin='';var keydowns={};var lastKeyup=null;var lastKeydown=null;var keypresses=[];var modifierKeys=[];var correctionKeys=[];var lastMouseup=null;var lastMousedown=null;var mouseclicks=[];var mouseclickCoordinates=[];var mousemoveTimer=null;var lastMousemoveX=null;var lastMousemoveY=null;var mousemoveStart=null;var mousemoves=[];var touchmoveCountTimer=null;var touchmoveCount=0;var lastTouchEnd=null;var lastTouchStart=null;var touchEvents=[];var scrollCountTimer=null;var scrollCount=0;var correctionKeyCodes=['Backspace','Delete','ArrowUp','ArrowDown','ArrowLeft','ArrowRight','Home','End','PageUp','PageDown'];var modifierKeyCodes=['Shift','CapsLock'];var forms=document.querySelectorAll('form[method=post]');for(var i=0;i<forms.length;i++){var form=forms[i];var formAction=form.getAttribute('action');if(formAction){if(formAction.indexOf('http://')==0||formAction.indexOf('https://')==0){if(formAction.indexOf('http://'+window.location.hostname+'/')!=0&&formAction.indexOf('https://'+window.location.hostname+'/')!=0){continue;}}}
1008form.addEventListener('submit',function(){var ak_bkp=prepare_array_for_request(keypresses);var ak_bmc=prepare_array_for_request(mouseclicks);var ak_bte=prepare_array_for_request(touchEvents);var ak_bmm=prepare_array_for_request(mousemoves);var ak_bcc=prepare_array_for_request(mouseclickCoordinates);var input_fields={'bib':input_begin,'bfs':Date.now(),'bkpc':keypresses.length,'bkp':ak_bkp,'bmc':ak_bmc,'bmcc':mouseclicks.length,'bmk':modifierKeys.join(';'),'bck':correctionKeys.join(';'),'bmmc':mousemoves.length,'btmc':touchmoveCount,'bsc':scrollCount,'bte':ak_bte,'btec':touchEvents.length,'bmm':ak_bmm,'bcc':ak_bcc};var akismet_field_prefix='ak_';if(this.getElementsByClassName){var possible_akismet_containers=this.getElementsByClassName('akismet-fields-container');for(var containerIndex=0;containerIndex<possible_akismet_containers.length;containerIndex++){var container=possible_akismet_containers.item(containerIndex);if(container.getAttribute('data-prefix')){akismet_field_prefix=container.getAttribute('data-prefix');break;}}}
1009for(var field_name in input_fields){var field=document.createElement('input');field.setAttribute('type','hidden');field.setAttribute('name',akismet_field_prefix+field_name);field.setAttribute('value',input_fields[field_name]);this.appendChild(field);}},supportsPassive?{passive:true}:false);form.addEventListener('keydown',function(e){if(e.key in keydowns){return;}
1010var keydownTime=(new Date()).getTime();keydowns[e.key]=[keydownTime];if(!input_begin){input_begin=keydownTime;}
1011var lastKeyEvent=Math.max(lastKeydown,lastKeyup);if(lastKeyEvent){keydowns[e.key].push(keydownTime-lastKeyEvent);}
1012lastKeydown=keydownTime;},supportsPassive?{passive:true}:false);form.addEventListener('keyup',function(e){if(!(e.key in keydowns)){return;}
1013var keyupTime=(new Date()).getTime();if('TEXTAREA'===e.target.nodeName||'INPUT'===e.target.nodeName){if(-1!==modifierKeyCodes.indexOf(e.key)){modifierKeys.push(keypresses.length-1);}else if(-1!==correctionKeyCodes.indexOf(e.key)){correctionKeys.push(keypresses.length-1);}
1013else{var keydownTime=keydowns[e.key][0];var keypress=[];keypress.push(keyupTime-keydownTime);if(keydowns[e.key].length>1){keypress.push(keydowns[e.key][1]);}
1014keypresses.push(keypress);}}
1015delete keydowns[e.key];lastKeyup=keyupTime;},supportsPassive?{passive:true}:false);form.addEventListener("focusin",function(e){lastKeydown=null;lastKeyup=null;keydowns={};},supportsPassive?{passive:true}:false);form.addEventListener("focusout",function(e){lastKeydown=null;lastKeyup=null;keydowns={};},supportsPassive?{passive:true}:false);}
1016document.addEventListener('mousedown',function(e){lastMousedown=(new Date()).getTime();var mouseclickCoordinate=[];var rect=e.target.getBoundingClientRect();var relativeX=e.clientX-rect.left;var relativeY=e.clientY-rect.top;mouseclickCoordinate.push(Math.round(relativeX));mouseclickCoordinate.push(Math.round(relativeY));mouseclickCoordinate.push(rect.width>0?Math.round(relativeX/rect.width*100):0);mouseclickCoordinate.push(rect.height>0?Math.round(relativeY/rect.height*100):0);mouseclickCoordinates.push(mouseclickCoordinate);},supportsPassive?{passive:true}:false);document.addEventListener('mouseup',function(e){if(!lastMousedown){return;}
1017var now=(new Date()).getTime();var mouseclick=[];mouseclick.push(now-lastMousedown);if(lastMouseup){mouseclick.push(lastMousedown-lastMouseup);}
1018mouseclicks.push(mouseclick);lastMouseup=now;lastKeydown=null;lastKeyup=null;keydowns={};},supportsPassive?{passive:true}:false);document.addEventListener('mousemove',function(e){if(mousemoveTimer){clearTimeout(mousemoveTimer);mousemoveTimer=null;}
1019else{mousemoveStart=(new Date()).getTime();lastMousemoveX=e.offsetX;lastMousemoveY=e.offsetY;}
1020mousemoveTimer=setTimeout(function(theEvent,originalMousemoveStart){var now=(new Date()).getTime()-500;var mousemove=[];mousemove.push(now-originalMousemoveStart);mousemove.push(Math.round(Math.sqrt(Math.pow(theEvent.offsetX-lastMousemoveX,2)+
1021Math.pow(theEvent.offsetY-lastMousemoveY,2))));if(mousemove[1]>0){mousemoves.push(mousemove);}
1022mousemoveStart=null;mousemoveTimer=null;},500,e,mousemoveStart);},supportsPassive?{passive:true}:false);document.addEventListener('touchmove',function(e){if(touchmoveCountTimer){clearTimeout(touchmoveCountTimer);}
1023touchmoveCountTimer=setTimeout(function(){touchmoveCount++;},500);},supportsPassive?{passive:true}:false);document.addEventListener('touchstart',function(e){lastTouchStart=(new Date()).getTime();},supportsPassive?{passive:true}:false);document.addEventListener('touchend',function(e){if(!lastTouchStart){return;}
1024var now=(new Date()).getTime();var touchEvent=[];touchEvent.push(now-lastTouchStart);if(lastTouchEnd){touchEvent.push(lastTouchStart-lastTouchEnd);}
1025touchEvents.push(touchEvent);lastTouchEnd=now;lastKeydown=null;lastKeyup=null;keydowns={};},supportsPassive?{passive:true}:false);document.addEventListener('scroll',function(e){if(scrollCountTimer){clearTimeout(scrollCountTimer);}
1026scrollCountTimer=setTimeout(function(){scrollCount++;},500);},supportsPassive?{passive:true}:false);}
1027function prepare_array_for_request(a,limit){if(!limit){limit=100;}
1028var rv='';if(a.length>0){var random_starting_point=Math.max(0,Math.floor(Math.random()*a.length-limit));for(var i=0;i<limit&&i<a.length;i++){var entry=a[random_starting_point+i];rv+=entry.join(',')+';';}}
1029return rv;}
1030if(document.readyState!=='loading'){init();}else{document.addEventListener('DOMContentLoaded',init);}})();

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